]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
b3baf5d0 | 3 | # Generated by Autoconf 2.49d. |
252b5132 | 4 | # |
b3baf5d0 NC |
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
6 | # Free Software Foundation, Inc. | |
252b5132 RH |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
b3baf5d0 NC |
10 | # Be Bourne compatible |
11 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12 | emulate sh | |
13 | NULLCMD=: | |
14 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
15 | set -o posix | |
16 | fi | |
17 | ||
18 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
19 | as_expr=expr | |
20 | else | |
21 | as_expr=false | |
22 | fi | |
23 | ||
24 | rm -f conf$$ conf$$.exe conf$$.file | |
25 | echo >conf$$.file | |
26 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
27 | # We could just check for DJGPP; but this test a) works b) is more generic | |
28 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
29 | if test -f conf$$.exe; then | |
30 | # Don't use ln at all; we don't have any links | |
31 | as_ln_s='cp -p' | |
32 | else | |
33 | as_ln_s='ln -s' | |
34 | fi | |
35 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
36 | as_ln_s=ln | |
37 | else | |
38 | as_ln_s='cp -p' | |
39 | fi | |
40 | rm -f conf$$ conf$$.exe conf$$.file | |
41 | ||
42 | as_executable_p="test -f" | |
43 | ||
44 | # Support unset when possible. | |
45 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
46 | as_unset=unset | |
47 | else | |
48 | as_unset=false | |
49 | fi | |
50 | ||
51 | # NLS nuisances. | |
52 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
53 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
54 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
55 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
56 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
57 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
58 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
59 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
60 | ||
61 | # IFS | |
62 | # We need space, tab and new line, in precisely that order. | |
63 | as_nl=' | |
64 | ' | |
65 | IFS=" $as_nl" | |
66 | ||
67 | # CDPATH. | |
68 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
69 | ||
70 | # Name of the host. | |
71 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
72 | # so uname gets run too. | |
73 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
74 | ||
75 | # Name of the executable. | |
76 | as_me=`echo "$0" | sed 's,.*/,,'` | |
77 | ||
78 | cat >config.log <<EOF | |
79 | This file contains any messages produced by compilers while | |
80 | running configure, to aid debugging if configure makes a mistake. | |
81 | ||
82 | It was created by $as_me 2.49d, executed with | |
83 | > $0 $@ | |
84 | ||
85 | EOF | |
86 | { | |
87 | cat <<_ASUNAME | |
88 | ## ---------- ## | |
89 | ## Platform. ## | |
90 | ## ---------- ## | |
91 | ||
92 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
93 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
94 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
95 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
96 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
97 | ||
98 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
99 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
100 | ||
101 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
102 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
103 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
104 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
105 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
106 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
107 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
108 | ||
109 | PATH = $PATH | |
110 | ||
111 | _ASUNAME | |
112 | } >>config.log | |
113 | ||
114 | cat >>config.log <<EOF | |
115 | ## ------------ ## | |
116 | ## Core tests. ## | |
117 | ## ------------ ## | |
118 | ||
119 | EOF | |
120 | ||
121 | # File descriptor usage: | |
122 | # 0 standard input | |
123 | # 1 file creation | |
124 | # 2 errors and warnings | |
125 | # 5 compiler messages saved in config.log | |
126 | # 6 checking for... messages and results | |
127 | exec 5>>config.log | |
128 | exec 6>&1 | |
129 | ||
130 | # | |
131 | # Initializations. | |
132 | # | |
252b5132 | 133 | ac_default_prefix=/usr/local |
b3baf5d0 NC |
134 | cross_compiling=no |
135 | subdirs= | |
136 | MFLAGS= MAKEFLAGS= | |
137 | SHELL=${CONFIG_SHELL-/bin/sh} | |
138 | ||
139 | # Maximum number of lines to put in a shell here document. | |
140 | # This variable seems obsolete. It should probably be removed, and | |
141 | # only ac_max_sed_lines should be used. | |
142 | : ${ac_max_here_lines=38} | |
143 | ||
144 | # Avoid depending upon Character Ranges. | |
145 | ac_cr_az='abcdefghijklmnopqrstuvwxyz' | |
146 | ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
147 | ac_cr_09='0123456789' | |
148 | ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 | |
149 | ||
150 | # Sed expression to map a string onto a valid sh and CPP variable names. | |
151 | ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" | |
152 | ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" | |
153 | ||
154 | ac_unique_file="libbfd.c" | |
155 | # Factoring default headers for most tests. | |
156 | ac_includes_default="\ | |
157 | #include <stdio.h> | |
158 | #include <sys/types.h> | |
159 | #include <sys/stat.h> | |
160 | #if STDC_HEADERS | |
161 | # include <stdlib.h> | |
162 | # include <stddef.h> | |
163 | #else | |
164 | # if HAVE_STDLIB_H | |
165 | # include <stdlib.h> | |
166 | # endif | |
167 | #endif | |
168 | #if HAVE_STRING_H | |
169 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
170 | # include <memory.h> | |
171 | # endif | |
172 | # include <string.h> | |
173 | #else | |
174 | # if HAVE_STRINGS_H | |
175 | # include <strings.h> | |
176 | # endif | |
177 | #endif | |
178 | #if HAVE_INTTYPES_H | |
179 | # include <inttypes.h> | |
180 | #endif | |
181 | #if HAVE_UNISTD_H | |
182 | # include <unistd.h> | |
183 | #endif" | |
252b5132 RH |
184 | |
185 | # Initialize some variables set by options. | |
b3baf5d0 NC |
186 | ac_init_help= |
187 | ac_init_version=false | |
252b5132 RH |
188 | # The variables have the same names as the options, with |
189 | # dashes changed to underlines. | |
b3baf5d0 | 190 | cache_file=/dev/null |
252b5132 | 191 | exec_prefix=NONE |
252b5132 | 192 | no_create= |
252b5132 RH |
193 | no_recursion= |
194 | prefix=NONE | |
195 | program_prefix=NONE | |
196 | program_suffix=NONE | |
197 | program_transform_name=s,x,x, | |
198 | silent= | |
199 | site= | |
200 | srcdir= | |
252b5132 RH |
201 | verbose= |
202 | x_includes=NONE | |
203 | x_libraries=NONE | |
b3baf5d0 NC |
204 | |
205 | # Installation directory options. | |
206 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
207 | # and all the variables that are supposed to be based on exec_prefix | |
208 | # by default will actually change. | |
209 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
210 | bindir='${exec_prefix}/bin' |
211 | sbindir='${exec_prefix}/sbin' | |
212 | libexecdir='${exec_prefix}/libexec' | |
213 | datadir='${prefix}/share' | |
214 | sysconfdir='${prefix}/etc' | |
215 | sharedstatedir='${prefix}/com' | |
216 | localstatedir='${prefix}/var' | |
217 | libdir='${exec_prefix}/lib' | |
218 | includedir='${prefix}/include' | |
219 | oldincludedir='/usr/include' | |
220 | infodir='${prefix}/info' | |
221 | mandir='${prefix}/man' | |
222 | ||
b3baf5d0 NC |
223 | # Identity of this package. |
224 | PACKAGE_NAME= | |
225 | PACKAGE_TARNAME= | |
226 | PACKAGE_VERSION= | |
227 | PACKAGE_STRING= | |
228 | PACKAGE_BUGREPORT= | |
252b5132 RH |
229 | |
230 | ac_prev= | |
231 | for ac_option | |
232 | do | |
252b5132 RH |
233 | # If the previous option needs an argument, assign it. |
234 | if test -n "$ac_prev"; then | |
235 | eval "$ac_prev=\$ac_option" | |
236 | ac_prev= | |
237 | continue | |
238 | fi | |
239 | ||
b3baf5d0 | 240 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
241 | |
242 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
243 | ||
b3baf5d0 | 244 | case $ac_option in |
252b5132 RH |
245 | |
246 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
247 | ac_prev=bindir ;; | |
248 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b3baf5d0 | 249 | bindir=$ac_optarg ;; |
252b5132 RH |
250 | |
251 | -build | --build | --buil | --bui | --bu) | |
b3baf5d0 | 252 | ac_prev=build_alias ;; |
252b5132 | 253 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b3baf5d0 | 254 | build_alias=$ac_optarg ;; |
252b5132 RH |
255 | |
256 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
257 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
258 | ac_prev=cache_file ;; | |
259 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
260 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b3baf5d0 NC |
261 | cache_file=$ac_optarg ;; |
262 | ||
263 | --config-cache | -C) | |
264 | cache_file=config.cache ;; | |
252b5132 RH |
265 | |
266 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
267 | ac_prev=datadir ;; | |
268 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
269 | | --da=*) | |
b3baf5d0 | 270 | datadir=$ac_optarg ;; |
252b5132 RH |
271 | |
272 | -disable-* | --disable-*) | |
b3baf5d0 | 273 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 274 | # Reject names that are not valid shell variable names. |
b3baf5d0 NC |
275 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
276 | { { echo "$as_me:276: error: invalid feature name: $ac_feature" >&5 | |
277 | echo "$as_me: error: invalid feature name: $ac_feature" >&2;} | |
278 | { (exit 1); exit 1; }; } | |
279 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
280 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
281 | |
282 | -enable-* | --enable-*) | |
b3baf5d0 | 283 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 284 | # Reject names that are not valid shell variable names. |
b3baf5d0 NC |
285 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
286 | { { echo "$as_me:286: error: invalid feature name: $ac_feature" >&5 | |
287 | echo "$as_me: error: invalid feature name: $ac_feature" >&2;} | |
288 | { (exit 1); exit 1; }; } | |
289 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
290 | case $ac_option in | |
291 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
292 | *) ac_optarg=yes ;; |
293 | esac | |
b3baf5d0 | 294 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
295 | |
296 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
297 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
298 | | --exec | --exe | --ex) | |
299 | ac_prev=exec_prefix ;; | |
300 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
301 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
302 | | --exec=* | --exe=* | --ex=*) | |
b3baf5d0 | 303 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
304 | |
305 | -gas | --gas | --ga | --g) | |
306 | # Obsolete; use --with-gas. | |
307 | with_gas=yes ;; | |
308 | ||
b3baf5d0 NC |
309 | -help | --help | --hel | --he | -h) |
310 | ac_init_help=long ;; | |
311 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
312 | ac_init_help=recursive ;; | |
313 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
314 | ac_init_help=short ;; | |
252b5132 RH |
315 | |
316 | -host | --host | --hos | --ho) | |
b3baf5d0 | 317 | ac_prev=host_alias ;; |
252b5132 | 318 | -host=* | --host=* | --hos=* | --ho=*) |
b3baf5d0 | 319 | host_alias=$ac_optarg ;; |
252b5132 RH |
320 | |
321 | -includedir | --includedir | --includedi | --included | --include \ | |
322 | | --includ | --inclu | --incl | --inc) | |
323 | ac_prev=includedir ;; | |
324 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
325 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b3baf5d0 | 326 | includedir=$ac_optarg ;; |
252b5132 RH |
327 | |
328 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
329 | ac_prev=infodir ;; | |
330 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b3baf5d0 | 331 | infodir=$ac_optarg ;; |
252b5132 RH |
332 | |
333 | -libdir | --libdir | --libdi | --libd) | |
334 | ac_prev=libdir ;; | |
335 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b3baf5d0 | 336 | libdir=$ac_optarg ;; |
252b5132 RH |
337 | |
338 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
339 | | --libexe | --libex | --libe) | |
340 | ac_prev=libexecdir ;; | |
341 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
342 | | --libexe=* | --libex=* | --libe=*) | |
b3baf5d0 | 343 | libexecdir=$ac_optarg ;; |
252b5132 RH |
344 | |
345 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
346 | | --localstate | --localstat | --localsta | --localst \ | |
347 | | --locals | --local | --loca | --loc | --lo) | |
348 | ac_prev=localstatedir ;; | |
349 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
350 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
351 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
b3baf5d0 | 352 | localstatedir=$ac_optarg ;; |
252b5132 RH |
353 | |
354 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
355 | ac_prev=mandir ;; | |
356 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b3baf5d0 | 357 | mandir=$ac_optarg ;; |
252b5132 RH |
358 | |
359 | -nfp | --nfp | --nf) | |
360 | # Obsolete; use --without-fp. | |
361 | with_fp=no ;; | |
362 | ||
363 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
364 | | --no-cr | --no-c) | |
365 | no_create=yes ;; | |
366 | ||
367 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
368 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
369 | no_recursion=yes ;; | |
370 | ||
371 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
372 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
373 | | --oldin | --oldi | --old | --ol | --o) | |
374 | ac_prev=oldincludedir ;; | |
375 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
376 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
377 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b3baf5d0 | 378 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
379 | |
380 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
381 | ac_prev=prefix ;; | |
382 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b3baf5d0 | 383 | prefix=$ac_optarg ;; |
252b5132 RH |
384 | |
385 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
386 | | --program-pre | --program-pr | --program-p) | |
387 | ac_prev=program_prefix ;; | |
388 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
389 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b3baf5d0 | 390 | program_prefix=$ac_optarg ;; |
252b5132 RH |
391 | |
392 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
393 | | --program-suf | --program-su | --program-s) | |
394 | ac_prev=program_suffix ;; | |
395 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
396 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b3baf5d0 | 397 | program_suffix=$ac_optarg ;; |
252b5132 RH |
398 | |
399 | -program-transform-name | --program-transform-name \ | |
400 | | --program-transform-nam | --program-transform-na \ | |
401 | | --program-transform-n | --program-transform- \ | |
402 | | --program-transform | --program-transfor \ | |
403 | | --program-transfo | --program-transf \ | |
404 | | --program-trans | --program-tran \ | |
405 | | --progr-tra | --program-tr | --program-t) | |
406 | ac_prev=program_transform_name ;; | |
407 | -program-transform-name=* | --program-transform-name=* \ | |
408 | | --program-transform-nam=* | --program-transform-na=* \ | |
409 | | --program-transform-n=* | --program-transform-=* \ | |
410 | | --program-transform=* | --program-transfor=* \ | |
411 | | --program-transfo=* | --program-transf=* \ | |
412 | | --program-trans=* | --program-tran=* \ | |
413 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b3baf5d0 | 414 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
415 | |
416 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
417 | | -silent | --silent | --silen | --sile | --sil) | |
418 | silent=yes ;; | |
419 | ||
420 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
421 | ac_prev=sbindir ;; | |
422 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
423 | | --sbi=* | --sb=*) | |
b3baf5d0 | 424 | sbindir=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
427 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
428 | | --sharedst | --shareds | --shared | --share | --shar \ | |
429 | | --sha | --sh) | |
430 | ac_prev=sharedstatedir ;; | |
431 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
432 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
433 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
434 | | --sha=* | --sh=*) | |
b3baf5d0 | 435 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
436 | |
437 | -site | --site | --sit) | |
438 | ac_prev=site ;; | |
439 | -site=* | --site=* | --sit=*) | |
b3baf5d0 | 440 | site=$ac_optarg ;; |
252b5132 RH |
441 | |
442 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
443 | ac_prev=srcdir ;; | |
444 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b3baf5d0 | 445 | srcdir=$ac_optarg ;; |
252b5132 RH |
446 | |
447 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
448 | | --syscon | --sysco | --sysc | --sys | --sy) | |
449 | ac_prev=sysconfdir ;; | |
450 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
451 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b3baf5d0 | 452 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b3baf5d0 | 455 | ac_prev=target_alias ;; |
252b5132 | 456 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b3baf5d0 | 457 | target_alias=$ac_optarg ;; |
252b5132 RH |
458 | |
459 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
460 | verbose=yes ;; | |
461 | ||
b3baf5d0 NC |
462 | -version | --version | --versio | --versi | --vers | -V) |
463 | ac_init_version=: ;; | |
252b5132 RH |
464 | |
465 | -with-* | --with-*) | |
b3baf5d0 | 466 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 467 | # Reject names that are not valid shell variable names. |
b3baf5d0 NC |
468 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
469 | { { echo "$as_me:469: error: invalid package name: $ac_package" >&5 | |
470 | echo "$as_me: error: invalid package name: $ac_package" >&2;} | |
471 | { (exit 1); exit 1; }; } | |
252b5132 | 472 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b3baf5d0 NC |
473 | case $ac_option in |
474 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
475 | *) ac_optarg=yes ;; |
476 | esac | |
b3baf5d0 | 477 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
478 | |
479 | -without-* | --without-*) | |
b3baf5d0 | 480 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 481 | # Reject names that are not valid shell variable names. |
b3baf5d0 NC |
482 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
483 | { { echo "$as_me:483: error: invalid package name: $ac_package" >&5 | |
484 | echo "$as_me: error: invalid package name: $ac_package" >&2;} | |
485 | { (exit 1); exit 1; }; } | |
486 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
487 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
488 | |
489 | --x) | |
490 | # Obsolete; use --with-x. | |
491 | with_x=yes ;; | |
492 | ||
493 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
494 | | --x-incl | --x-inc | --x-in | --x-i) | |
495 | ac_prev=x_includes ;; | |
496 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
497 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b3baf5d0 | 498 | x_includes=$ac_optarg ;; |
252b5132 RH |
499 | |
500 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
501 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
502 | ac_prev=x_libraries ;; | |
503 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
504 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b3baf5d0 | 505 | x_libraries=$ac_optarg ;; |
252b5132 | 506 | |
b3baf5d0 NC |
507 | -*) { { echo "$as_me:507: error: unrecognized option: $ac_option |
508 | Try \`$0 --help' for more information." >&5 | |
509 | echo "$as_me: error: unrecognized option: $ac_option | |
510 | Try \`$0 --help' for more information." >&2;} | |
511 | { (exit 1); exit 1; }; } | |
252b5132 RH |
512 | ;; |
513 | ||
b3baf5d0 NC |
514 | *=*) |
515 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
516 | # Reject names that are not valid shell variable names. | |
517 | expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && | |
518 | { { echo "$as_me:518: error: invalid variable name: $ac_envvar" >&5 | |
519 | echo "$as_me: error: invalid variable name: $ac_envvar" >&2;} | |
520 | { (exit 1); exit 1; }; } | |
521 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
522 | eval "$ac_envvar='$ac_optarg'" | |
523 | export $ac_envvar ;; | |
524 | ||
252b5132 | 525 | *) |
b3baf5d0 NC |
526 | # FIXME: should be removed in autoconf 3.0. |
527 | { echo "$as_me:527: WARNING: you should use --build, --host, --target" >&5 | |
528 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2;} | |
529 | expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && | |
530 | { echo "$as_me:530: WARNING: invalid host type: $ac_option" >&5 | |
531 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2;} | |
532 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
533 | ;; |
534 | ||
535 | esac | |
536 | done | |
537 | ||
538 | if test -n "$ac_prev"; then | |
b3baf5d0 NC |
539 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
540 | { { echo "$as_me:540: error: missing argument to $ac_option" >&5 | |
541 | echo "$as_me: error: missing argument to $ac_option" >&2;} | |
542 | { (exit 1); exit 1; }; } | |
252b5132 | 543 | fi |
252b5132 | 544 | |
b3baf5d0 NC |
545 | # Be sure to have absolute paths. |
546 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
547 | localstatedir libdir includedir oldincludedir infodir mandir \ | |
548 | exec_prefix prefix | |
252b5132 | 549 | do |
b3baf5d0 NC |
550 | eval ac_val=$`echo $ac_var` |
551 | case $ac_val in | |
552 | [\\/$]* | ?:[\\/]* ) ;; | |
553 | NONE ) ;; | |
554 | *) { { echo "$as_me:554: error: expected an absolute path for --$ac_var: $ac_val" >&5 | |
555 | echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;} | |
556 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
557 | esac |
558 | done | |
559 | ||
b3baf5d0 NC |
560 | # There might be people who depend on the old broken behavior: `$host' |
561 | # used to hold the argument of --host etc. | |
562 | build=$build_alias | |
563 | host=$host_alias | |
564 | target=$target_alias | |
565 | ||
566 | # FIXME: should be removed in autoconf 3.0. | |
567 | if test "x$host_alias" != x; then | |
568 | if test "x$build_alias" = x; then | |
569 | cross_compiling=maybe | |
570 | { echo "$as_me:570: WARNING: If you wanted to set the --build type, don't use --host. | |
571 | If a cross compiler is detected then cross compile mode will be used." >&5 | |
572 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
573 | If a cross compiler is detected then cross compile mode will be used." >&2;} | |
574 | elif test "x$build_alias" != "x$host_alias"; then | |
575 | cross_compiling=yes | |
576 | fi | |
577 | fi | |
252b5132 | 578 | |
b3baf5d0 NC |
579 | ac_tool_prefix= |
580 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
252b5132 | 581 | |
b3baf5d0 | 582 | test "$silent" = yes && exec 6>/dev/null |
252b5132 RH |
583 | |
584 | # Find the source files, if location was not specified. | |
585 | if test -z "$srcdir"; then | |
586 | ac_srcdir_defaulted=yes | |
587 | # Try the directory containing this script, then its parent. | |
588 | ac_prog=$0 | |
b3baf5d0 | 589 | ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'` |
252b5132 RH |
590 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
591 | srcdir=$ac_confdir | |
592 | if test ! -r $srcdir/$ac_unique_file; then | |
593 | srcdir=.. | |
594 | fi | |
595 | else | |
596 | ac_srcdir_defaulted=no | |
597 | fi | |
598 | if test ! -r $srcdir/$ac_unique_file; then | |
599 | if test "$ac_srcdir_defaulted" = yes; then | |
b3baf5d0 NC |
600 | { { echo "$as_me:600: error: cannot find sources in $ac_confdir or .." >&5 |
601 | echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;} | |
602 | { (exit 1); exit 1; }; } | |
252b5132 | 603 | else |
b3baf5d0 NC |
604 | { { echo "$as_me:604: error: cannot find sources in $srcdir" >&5 |
605 | echo "$as_me: error: cannot find sources in $srcdir" >&2;} | |
606 | { (exit 1); exit 1; }; } | |
252b5132 RH |
607 | fi |
608 | fi | |
b3baf5d0 NC |
609 | srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'` |
610 | ac_env_build_alias_set=${build_alias+set} | |
611 | ac_env_build_alias_value=$build_alias | |
612 | ac_cv_env_build_alias_set=${build_alias+set} | |
613 | ac_cv_env_build_alias_value=$build_alias | |
614 | ac_env_host_alias_set=${host_alias+set} | |
615 | ac_env_host_alias_value=$host_alias | |
616 | ac_cv_env_host_alias_set=${host_alias+set} | |
617 | ac_cv_env_host_alias_value=$host_alias | |
618 | ac_env_target_alias_set=${target_alias+set} | |
619 | ac_env_target_alias_value=$target_alias | |
620 | ac_cv_env_target_alias_set=${target_alias+set} | |
621 | ac_cv_env_target_alias_value=$target_alias | |
622 | ac_env_CC_set=${CC+set} | |
623 | ac_env_CC_value=$CC | |
624 | ac_cv_env_CC_set=${CC+set} | |
625 | ac_cv_env_CC_value=$CC | |
626 | ac_env_CFLAGS_set=${CFLAGS+set} | |
627 | ac_env_CFLAGS_value=$CFLAGS | |
628 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
629 | ac_cv_env_CFLAGS_value=$CFLAGS | |
630 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
631 | ac_env_LDFLAGS_value=$LDFLAGS | |
632 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
633 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
634 | ac_env_CPP_set=${CPP+set} | |
635 | ac_env_CPP_value=$CPP | |
636 | ac_cv_env_CPP_set=${CPP+set} | |
637 | ac_cv_env_CPP_value=$CPP | |
638 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
639 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
640 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
641 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
642 | ||
643 | # | |
644 | # Report the --help message. | |
645 | # | |
646 | if test "$ac_init_help" = "long"; then | |
647 | # Omit some internal or obsolete options to make the list less imposing. | |
648 | # This message is too long to be a string in the A/UX 3.1 sh. | |
649 | cat <<EOF | |
650 | \`configure' configures this package to adapt to many kinds of systems. | |
651 | ||
652 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
653 | ||
654 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
655 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
656 | ||
657 | Defaults for the options are specified in brackets. | |
658 | ||
659 | Configuration: | |
660 | -h, --help display this help and exit | |
661 | --help=short display options specific to this package | |
662 | --help=recursive display the short help of all the included packages | |
663 | -V, --version display version information and exit | |
664 | -q, --quiet, --silent do not print \`checking...' messages | |
665 | --cache-file=FILE cache test results in FILE [disabled] | |
666 | -C, --config-cache alias for \`--cache-file=config.cache' | |
667 | -n, --no-create do not create output files | |
668 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
669 | ||
670 | EOF | |
671 | ||
672 | cat <<EOF | |
673 | Installation directories: | |
674 | --prefix=PREFIX install architecture-independent files in PREFIX | |
675 | [$ac_default_prefix] | |
676 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
677 | [PREFIX] | |
678 | ||
679 | By default, \`make install' will install all the files in | |
680 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
681 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
682 | for instance \`--prefix=\$HOME'. | |
683 | ||
684 | For better control, use the options below. | |
685 | ||
686 | Fine tuning of the installation directories: | |
687 | --bindir=DIR user executables [EPREFIX/bin] | |
688 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
689 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
690 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
691 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
692 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
693 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
694 | --libdir=DIR object code libraries [EPREFIX/lib] | |
695 | --includedir=DIR C header files [PREFIX/include] | |
696 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
697 | --infodir=DIR info documentation [PREFIX/info] | |
698 | --mandir=DIR man documentation [PREFIX/man] | |
699 | EOF | |
700 | ||
701 | cat <<\EOF | |
702 | ||
703 | Program names: | |
704 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
705 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
706 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
707 | ||
708 | System types: | |
709 | --build=BUILD configure for building on BUILD [guessed] | |
710 | --host=HOST build programs to run on HOST [BUILD] | |
711 | --target=TARGET configure for building compilers for TARGET [HOST] | |
712 | EOF | |
713 | fi | |
714 | ||
715 | if test -n "$ac_init_help"; then | |
716 | ||
717 | cat <<\EOF | |
718 | ||
719 | Optional Features: | |
720 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
721 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
722 | --enable-shared=PKGS build shared libraries default=no | |
723 | --enable-static=PKGS build static libraries default=yes | |
724 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
725 | --disable-libtool-lock avoid locking (might break parallel builds) | |
726 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
727 | --enable-targets alternative target configurations | |
728 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
729 | --enable-build-warnings Enable build-time compiler warnings if gcc is used | |
730 | --enable-maintainer-mode enable make rules and dependencies not useful | |
731 | (and sometimes confusing) to the casual installer | |
732 | --disable-nls do not use Native Language Support | |
733 | ||
734 | Optional Packages: | |
735 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
736 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
737 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
738 | --with-pic try to use only PIC/non-PIC objects default=use both | |
739 | --with-mmap try using mmap for BFD input files if available | |
740 | --with-included-gettext use the GNU gettext library included here | |
741 | ||
742 | Some influential environment variables: | |
743 | CC C compiler command | |
744 | CFLAGS C compiler flags | |
745 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
746 | nonstandard directory <lib dir> | |
747 | CPP C preprocessor | |
748 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
749 | headers in a nonstandard directory <include dir> | |
750 | ||
751 | Use these variables to override the choices made by `configure' or to help | |
752 | it to find libraries and programs with nonstandard names/locations. | |
753 | ||
754 | EOF | |
755 | fi | |
756 | ||
757 | if test "$ac_init_help" = "recursive"; then | |
758 | # If there are subdirs, report their specific --help. | |
759 | ac_popdir=`pwd` | |
760 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
761 | cd $ac_subdir | |
762 | # A "../" for each directory in /$ac_subdir. | |
763 | ac_dots=`echo $ac_subdir | | |
764 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
765 | ||
766 | case $srcdir in | |
767 | .) # No --srcdir option. We are building in place. | |
768 | ac_sub_srcdir=$srcdir ;; | |
769 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
770 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
771 | *) # Relative path. | |
772 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
773 | esac | |
774 | ||
775 | # Check for guested configure; otherwise get Cygnus style configure. | |
776 | if test -f $ac_sub_srcdir/configure.gnu; then | |
777 | echo | |
778 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
779 | elif test -f $ac_sub_srcdir/configure; then | |
780 | echo | |
781 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
782 | elif test -f $ac_sub_srcdir/configure.ac || | |
783 | test -f $ac_sub_srcdir/configure.in; then | |
784 | echo | |
785 | $ac_configure --help | |
786 | else | |
787 | { echo "$as_me:787: WARNING: no configuration information is in $ac_subdir" >&5 | |
788 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} | |
789 | fi | |
790 | cd $ac_popdir | |
791 | done | |
792 | fi | |
793 | ||
794 | test -n "$ac_init_help" && exit 0 | |
795 | if $ac_init_version; then | |
796 | cat <<\EOF | |
797 | ||
798 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
799 | Free Software Foundation, Inc. | |
800 | This configure script is free software; the Free Software Foundation | |
801 | gives unlimited permission to copy, distribute and modify it. | |
802 | EOF | |
803 | exit 0 | |
804 | fi | |
805 | ||
806 | # Keep a trace of the command line. | |
807 | # Strip out --no-create and --no-recursion so they do not pile up. | |
808 | # Also quote any args containing shell meta-characters. | |
809 | ac_configure_args= | |
810 | ac_sep= | |
811 | for ac_arg | |
812 | do | |
813 | case $ac_arg in | |
814 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
815 | | --no-cr | --no-c) ;; | |
816 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
817 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
818 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
819 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
820 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
821 | ac_sep=" " ;; | |
822 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
823 | ac_sep=" " ;; | |
824 | esac | |
825 | # Get rid of the leading space. | |
826 | done | |
827 | ||
828 | # When interrupted or exit'd, cleanup temporary files, and complete | |
829 | # config.log. We remove comments because anyway the quotes in there | |
830 | # would cause problems or look ugly. | |
831 | trap 'exit_status=$? | |
832 | # Save into config.log some information that might help in debugging. | |
833 | echo >&5 | |
834 | echo "## ----------------- ##" >&5 | |
835 | echo "## Cache variables. ##" >&5 | |
836 | echo "## ----------------- ##" >&5 | |
837 | echo >&5 | |
838 | # The following way of writing the cache mishandles newlines in values, | |
839 | { | |
840 | (set) 2>&1 | | |
841 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
842 | *ac_space=\ *) | |
843 | sed -n \ | |
844 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
845 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
846 | ;; | |
847 | *) | |
848 | sed -n \ | |
849 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
850 | ;; | |
851 | esac; | |
852 | } >&5 | |
853 | sed "/^$/d" confdefs.h >conftest.log | |
854 | if test -s conftest.log; then | |
855 | echo >&5 | |
856 | echo "## ------------ ##" >&5 | |
857 | echo "## confdefs.h. ##" >&5 | |
858 | echo "## ------------ ##" >&5 | |
859 | echo >&5 | |
860 | cat conftest.log >&5 | |
861 | fi | |
862 | (echo; echo) >&5 | |
863 | test "$ac_signal" != 0 && | |
864 | echo "$as_me: caught signal $ac_signal" >&5 | |
865 | echo "$as_me: exit $exit_status" >&5 | |
866 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
867 | exit $exit_status | |
868 | ' 0 | |
869 | for ac_signal in 1 2 13 15; do | |
870 | trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal | |
871 | done | |
872 | ac_signal=0 | |
873 | ||
874 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
875 | rm -rf conftest* confdefs.h | |
876 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
877 | echo >confdefs.h | |
252b5132 | 878 | |
b3baf5d0 | 879 | # Let the site file select an alternate cache file if it wants to. |
252b5132 | 880 | # Prefer explicitly selected file to automatically selected ones. |
fdbafa10 L |
881 | if test -z "$CONFIG_SITE"; then |
882 | if test "x$prefix" != xNONE; then | |
883 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
884 | else | |
885 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
252b5132 RH |
886 | fi |
887 | fi | |
888 | for ac_site_file in $CONFIG_SITE; do | |
889 | if test -r "$ac_site_file"; then | |
b3baf5d0 NC |
890 | { echo "$as_me:890: loading site script $ac_site_file" >&5 |
891 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
892 | cat "$ac_site_file" >&5 | |
252b5132 RH |
893 | . "$ac_site_file" |
894 | fi | |
895 | done | |
896 | ||
897 | if test -r "$cache_file"; then | |
b3baf5d0 NC |
898 | # Some versions of bash will fail to source /dev/null (special |
899 | # files actually), so we avoid doing that. | |
900 | if test -f "$cache_file"; then | |
901 | { echo "$as_me:901: loading cache $cache_file" >&5 | |
902 | echo "$as_me: loading cache $cache_file" >&6;} | |
903 | case $cache_file in | |
904 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
905 | *) . ./$cache_file;; | |
906 | esac | |
907 | fi | |
252b5132 | 908 | else |
b3baf5d0 NC |
909 | { echo "$as_me:909: creating cache $cache_file" >&5 |
910 | echo "$as_me: creating cache $cache_file" >&6;} | |
911 | >$cache_file | |
912 | fi | |
913 | ||
914 | # Check that the precious variables saved in the cache have kept the same | |
915 | # value. | |
916 | ac_suggest_removing_cache=false | |
917 | for ac_var in `(set) 2>&1 | | |
918 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
919 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
920 | eval ac_new_set=\$ac_env_${ac_var}_set | |
921 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
922 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
923 | case $ac_old_set,$ac_new_set in | |
924 | set,) | |
925 | { echo "$as_me:925: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
926 | echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
927 | ac_suggest_removing_cache=: ;; | |
928 | ,set) | |
929 | { echo "$as_me:929: WARNING: \`$ac_var' was not set in the previous run" >&5 | |
930 | echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} | |
931 | ac_suggest_removing_cache=: ;; | |
932 | ,);; | |
933 | *) | |
934 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
935 | { echo "$as_me:935: WARNING: \`$ac_var' has changed since the previous run:" >&5 | |
936 | echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} | |
937 | { echo "$as_me:937: WARNING: former value: $ac_old_val" >&5 | |
938 | echo "$as_me: WARNING: former value: $ac_old_val" >&2;} | |
939 | { echo "$as_me:939: WARNING: current value: $ac_new_val" >&5 | |
940 | echo "$as_me: WARNING: current value: $ac_new_val" >&2;} | |
941 | ac_suggest_removing_cache=: | |
942 | fi;; | |
943 | esac | |
944 | done | |
945 | if $ac_suggest_removing_cache; then | |
946 | { echo "$as_me:946: WARNING: changes in the environment can compromise the build" >&5 | |
947 | echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} | |
948 | { echo "$as_me:948: WARNING: consider removing $cache_file and starting over" >&5 | |
949 | echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} | |
252b5132 RH |
950 | fi |
951 | ||
952 | ac_ext=c | |
252b5132 | 953 | ac_cpp='$CPP $CPPFLAGS' |
b3baf5d0 NC |
954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
957 | ||
958 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
959 | *c*,-n*) ECHO_N= ECHO_C=' | |
960 | ' ECHO_T=' ' ;; | |
961 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
962 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
963 | esac | |
964 | echo "#! $SHELL" >conftest.sh | |
965 | echo "exit 0" >>conftest.sh | |
966 | chmod +x conftest.sh | |
967 | if { (echo "$as_me:967: PATH=\".;.\"; conftest.sh") >&5 | |
968 | (PATH=".;."; conftest.sh) 2>&5 | |
969 | ac_status=$? | |
970 | echo "$as_me:970: \$? = $ac_status" >&5 | |
971 | (exit $ac_status); }; then | |
972 | ac_path_separator=';' | |
ac48eca1 | 973 | else |
b3baf5d0 | 974 | ac_path_separator=: |
ac48eca1 | 975 | fi |
b3baf5d0 NC |
976 | PATH_SEPARATOR="$ac_path_separator" |
977 | rm -f conftest.sh | |
252b5132 RH |
978 | |
979 | ac_aux_dir= | |
980 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
981 | if test -f $ac_dir/install-sh; then | |
982 | ac_aux_dir=$ac_dir | |
983 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
984 | break | |
985 | elif test -f $ac_dir/install.sh; then | |
986 | ac_aux_dir=$ac_dir | |
987 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
988 | break | |
b3baf5d0 NC |
989 | elif test -f $ac_dir/shtool; then |
990 | ac_aux_dir=$ac_dir | |
991 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
992 | break | |
252b5132 RH |
993 | fi |
994 | done | |
995 | if test -z "$ac_aux_dir"; then | |
b3baf5d0 NC |
996 | { { echo "$as_me:996: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
997 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
998 | { (exit 1); exit 1; }; } | |
252b5132 | 999 | fi |
b3baf5d0 NC |
1000 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1001 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1002 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
252b5132 | 1003 | |
b3baf5d0 NC |
1004 | # Make sure we can run config.sub. |
1005 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1006 | { { echo "$as_me:1006: error: cannot run $ac_config_sub" >&5 | |
1007 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1008 | { (exit 1); exit 1; }; } | |
1009 | ||
1010 | echo "$as_me:1010: checking build system type" >&5 | |
1011 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1012 | if test "${ac_cv_build+set}" = set; then | |
1013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1014 | else | |
1015 | ac_cv_build_alias=$build_alias | |
1016 | test -z "$ac_cv_build_alias" && | |
1017 | ac_cv_build_alias=`$ac_config_guess` | |
1018 | test -z "$ac_cv_build_alias" && | |
1019 | { { echo "$as_me:1019: error: cannot guess build type; you must specify one" >&5 | |
1020 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1021 | { (exit 1); exit 1; }; } | |
1022 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1023 | { { echo "$as_me:1023: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | |
1024 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | |
1025 | { (exit 1); exit 1; }; } | |
1026 | ||
1027 | fi | |
1028 | echo "$as_me:1028: result: $ac_cv_build" >&5 | |
1029 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1030 | build=$ac_cv_build | |
1031 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1032 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1033 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1034 | ||
1035 | echo "$as_me:1035: checking host system type" >&5 | |
1036 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1037 | if test "${ac_cv_host+set}" = set; then | |
1038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1039 | else | |
1040 | ac_cv_host_alias=$host_alias | |
1041 | test -z "$ac_cv_host_alias" && | |
1042 | ac_cv_host_alias=$ac_cv_build_alias | |
1043 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1044 | { { echo "$as_me:1044: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1045 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1046 | { (exit 1); exit 1; }; } | |
1047 | ||
1048 | fi | |
1049 | echo "$as_me:1049: result: $ac_cv_host" >&5 | |
1050 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1051 | host=$ac_cv_host | |
1052 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1053 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1054 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1055 | ||
1056 | echo "$as_me:1056: checking target system type" >&5 | |
1057 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1058 | if test "${ac_cv_target+set}" = set; then | |
1059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1060 | else | |
1061 | ac_cv_target_alias=$target_alias | |
1062 | test "x$ac_cv_target_alias" = "x" && | |
1063 | ac_cv_target_alias=$ac_cv_host_alias | |
1064 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1065 | { { echo "$as_me:1065: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1066 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1067 | { (exit 1); exit 1; }; } | |
1068 | ||
1069 | fi | |
1070 | echo "$as_me:1070: result: $ac_cv_target" >&5 | |
1071 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1072 | target=$ac_cv_target | |
1073 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1074 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1075 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
252b5132 RH |
1076 | |
1077 | # The aliases save the names the user supplied, while $host etc. | |
1078 | # will get canonicalized. | |
b3baf5d0 | 1079 | test -n "$target_alias" && |
252b5132 RH |
1080 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1081 | NONENONEs,x,x, && | |
1082 | program_prefix=${target_alias}- | |
b3baf5d0 NC |
1083 | ac_ext=c |
1084 | ac_cpp='$CPP $CPPFLAGS' | |
1085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1088 | if test -n "$ac_tool_prefix"; then | |
1089 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1090 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1091 | echo "$as_me:1091: checking for $ac_word" >&5 | |
1092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1093 | if test "${ac_cv_prog_CC+set}" = set; then | |
1094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 1095 | else |
b3baf5d0 NC |
1096 | if test -n "$CC"; then |
1097 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1098 | else | |
1099 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1100 | ac_dummy="$PATH" | |
1101 | for ac_dir in $ac_dummy; do | |
1102 | IFS=$ac_save_IFS | |
1103 | test -z "$ac_dir" && ac_dir=. | |
1104 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1105 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1106 | break | |
1107 | done | |
252b5132 | 1108 | |
b3baf5d0 NC |
1109 | fi |
1110 | fi | |
1111 | CC=$ac_cv_prog_CC | |
1112 | if test -n "$CC"; then | |
1113 | echo "$as_me:1113: result: $CC" >&5 | |
1114 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 1115 | else |
b3baf5d0 NC |
1116 | echo "$as_me:1116: result: no" >&5 |
1117 | echo "${ECHO_T}no" >&6 | |
252b5132 | 1118 | fi |
252b5132 RH |
1119 | |
1120 | fi | |
b3baf5d0 NC |
1121 | if test -z "$ac_cv_prog_CC"; then |
1122 | ac_ct_CC=$CC | |
1123 | # Extract the first word of "gcc", so it can be a program name with args. | |
1124 | set dummy gcc; ac_word=$2 | |
1125 | echo "$as_me:1125: checking for $ac_word" >&5 | |
1126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1127 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1129 | else | |
1130 | if test -n "$ac_ct_CC"; then | |
1131 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1132 | else | |
1133 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1134 | ac_dummy="$PATH" | |
1135 | for ac_dir in $ac_dummy; do | |
1136 | IFS=$ac_save_IFS | |
1137 | test -z "$ac_dir" && ac_dir=. | |
1138 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1139 | ac_cv_prog_ac_ct_CC="gcc" | |
1140 | break | |
1141 | done | |
1142 | ||
1143 | fi | |
1144 | fi | |
1145 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1146 | if test -n "$ac_ct_CC"; then | |
1147 | echo "$as_me:1147: result: $ac_ct_CC" >&5 | |
1148 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 1149 | else |
b3baf5d0 NC |
1150 | echo "$as_me:1150: result: no" >&5 |
1151 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
1152 | fi |
1153 | ||
b3baf5d0 NC |
1154 | CC=$ac_ct_CC |
1155 | else | |
1156 | CC="$ac_cv_prog_CC" | |
1157 | fi | |
8d88c4ca | 1158 | |
b3baf5d0 NC |
1159 | if test -z "$CC"; then |
1160 | if test -n "$ac_tool_prefix"; then | |
1161 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1162 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1163 | echo "$as_me:1163: checking for $ac_word" >&5 | |
1164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1165 | if test "${ac_cv_prog_CC+set}" = set; then | |
1166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1167 | else | |
1168 | if test -n "$CC"; then | |
1169 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1170 | else | |
1171 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1172 | ac_dummy="$PATH" | |
1173 | for ac_dir in $ac_dummy; do | |
1174 | IFS=$ac_save_IFS | |
1175 | test -z "$ac_dir" && ac_dir=. | |
1176 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1177 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1178 | break | |
1179 | done | |
1180 | ||
1181 | fi | |
1182 | fi | |
1183 | CC=$ac_cv_prog_CC | |
1184 | if test -n "$CC"; then | |
1185 | echo "$as_me:1185: result: $CC" >&5 | |
1186 | echo "${ECHO_T}$CC" >&6 | |
1187 | else | |
1188 | echo "$as_me:1188: result: no" >&5 | |
1189 | echo "${ECHO_T}no" >&6 | |
1190 | fi | |
1191 | ||
1192 | fi | |
1193 | if test -z "$ac_cv_prog_CC"; then | |
1194 | ac_ct_CC=$CC | |
1195 | # Extract the first word of "cc", so it can be a program name with args. | |
1196 | set dummy cc; ac_word=$2 | |
1197 | echo "$as_me:1197: checking for $ac_word" >&5 | |
1198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1199 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1201 | else | |
1202 | if test -n "$ac_ct_CC"; then | |
1203 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1204 | else | |
1205 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1206 | ac_dummy="$PATH" | |
1207 | for ac_dir in $ac_dummy; do | |
1208 | IFS=$ac_save_IFS | |
1209 | test -z "$ac_dir" && ac_dir=. | |
1210 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1211 | ac_cv_prog_ac_ct_CC="cc" | |
1212 | break | |
1213 | done | |
1214 | ||
1215 | fi | |
1216 | fi | |
1217 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1218 | if test -n "$ac_ct_CC"; then | |
1219 | echo "$as_me:1219: result: $ac_ct_CC" >&5 | |
1220 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1221 | else | |
1222 | echo "$as_me:1222: result: no" >&5 | |
1223 | echo "${ECHO_T}no" >&6 | |
1224 | fi | |
1225 | ||
1226 | CC=$ac_ct_CC | |
1227 | else | |
1228 | CC="$ac_cv_prog_CC" | |
1229 | fi | |
1230 | ||
1231 | fi | |
1232 | if test -z "$CC"; then | |
1233 | # Extract the first word of "cc", so it can be a program name with args. | |
1234 | set dummy cc; ac_word=$2 | |
1235 | echo "$as_me:1235: checking for $ac_word" >&5 | |
1236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1237 | if test "${ac_cv_prog_CC+set}" = set; then | |
1238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1239 | else | |
1240 | if test -n "$CC"; then | |
1241 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1242 | else | |
1243 | ac_prog_rejected=no | |
1244 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1245 | ac_dummy="$PATH" | |
1246 | for ac_dir in $ac_dummy; do | |
1247 | IFS=$ac_save_IFS | |
1248 | test -z "$ac_dir" && ac_dir=. | |
1249 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1250 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1251 | ac_prog_rejected=yes | |
1252 | continue | |
1253 | fi | |
1254 | ac_cv_prog_CC="cc" | |
1255 | break | |
1256 | done | |
1257 | ||
1258 | if test $ac_prog_rejected = yes; then | |
1259 | # We found a bogon in the path, so make sure we never use it. | |
1260 | set dummy $ac_cv_prog_CC | |
1261 | shift | |
1262 | if test $# != 0; then | |
1263 | # We chose a different compiler from the bogus one. | |
1264 | # However, it has the same basename, so the bogon will be chosen | |
1265 | # first if we set CC to just the basename; use the full file name. | |
1266 | shift | |
1267 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1268 | shift | |
1269 | ac_cv_prog_CC="$@" | |
1270 | fi | |
1271 | fi | |
1272 | fi | |
1273 | fi | |
1274 | CC=$ac_cv_prog_CC | |
1275 | if test -n "$CC"; then | |
1276 | echo "$as_me:1276: result: $CC" >&5 | |
1277 | echo "${ECHO_T}$CC" >&6 | |
1278 | else | |
1279 | echo "$as_me:1279: result: no" >&5 | |
1280 | echo "${ECHO_T}no" >&6 | |
1281 | fi | |
1282 | ||
1283 | fi | |
1284 | if test -z "$CC"; then | |
1285 | if test -n "$ac_tool_prefix"; then | |
1286 | for ac_prog in cl | |
1287 | do | |
1288 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1289 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1290 | echo "$as_me:1290: checking for $ac_word" >&5 | |
1291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1292 | if test "${ac_cv_prog_CC+set}" = set; then | |
1293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1294 | else | |
1295 | if test -n "$CC"; then | |
1296 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1297 | else | |
1298 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1299 | ac_dummy="$PATH" | |
1300 | for ac_dir in $ac_dummy; do | |
1301 | IFS=$ac_save_IFS | |
1302 | test -z "$ac_dir" && ac_dir=. | |
1303 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1304 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1305 | break | |
1306 | done | |
1307 | ||
1308 | fi | |
1309 | fi | |
1310 | CC=$ac_cv_prog_CC | |
1311 | if test -n "$CC"; then | |
1312 | echo "$as_me:1312: result: $CC" >&5 | |
1313 | echo "${ECHO_T}$CC" >&6 | |
1314 | else | |
1315 | echo "$as_me:1315: result: no" >&5 | |
1316 | echo "${ECHO_T}no" >&6 | |
1317 | fi | |
1318 | ||
1319 | test -n "$CC" && break | |
1320 | done | |
1321 | fi | |
1322 | if test -z "$CC"; then | |
1323 | ac_ct_CC=$CC | |
1324 | for ac_prog in cl | |
1325 | do | |
1326 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1327 | set dummy $ac_prog; ac_word=$2 | |
1328 | echo "$as_me:1328: checking for $ac_word" >&5 | |
1329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1330 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1332 | else | |
1333 | if test -n "$ac_ct_CC"; then | |
1334 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1335 | else | |
1336 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1337 | ac_dummy="$PATH" | |
1338 | for ac_dir in $ac_dummy; do | |
1339 | IFS=$ac_save_IFS | |
1340 | test -z "$ac_dir" && ac_dir=. | |
1341 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1342 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1343 | break | |
1344 | done | |
1345 | ||
1346 | fi | |
1347 | fi | |
1348 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1349 | if test -n "$ac_ct_CC"; then | |
1350 | echo "$as_me:1350: result: $ac_ct_CC" >&5 | |
1351 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1352 | else | |
1353 | echo "$as_me:1353: result: no" >&5 | |
1354 | echo "${ECHO_T}no" >&6 | |
1355 | fi | |
1356 | ||
1357 | test -n "$ac_ct_CC" && break | |
1358 | done | |
1359 | ||
1360 | CC=$ac_ct_CC | |
1361 | fi | |
1362 | ||
1363 | fi | |
1364 | ||
1365 | test -z "$CC" && { { echo "$as_me:1365: error: no acceptable cc found in \$PATH" >&5 | |
1366 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
1367 | { (exit 1); exit 1; }; } | |
1368 | ||
1369 | cat >conftest.$ac_ext <<_ACEOF | |
1370 | #line 1370 "configure" | |
1371 | #include "confdefs.h" | |
1372 | ||
1373 | int | |
1374 | main () | |
1375 | { | |
1376 | ||
1377 | ; | |
1378 | return 0; | |
1379 | } | |
1380 | _ACEOF | |
1381 | ac_clean_files_save=$ac_clean_files | |
1382 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1383 | # Try to create an executable without -o first, disregard a.out. | |
1384 | # It will help us diagnose broken compiler, and finding out an intuition | |
1385 | # of exeext. | |
1386 | echo "$as_me:1386: checking for C compiler default output" >&5 | |
1387 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
1388 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1389 | if { (eval echo "$as_me:1389: \"$ac_link_default\"") >&5 | |
1390 | (eval $ac_link_default) 2>&5 | |
1391 | ac_status=$? | |
1392 | echo "$as_me:1392: \$? = $ac_status" >&5 | |
1393 | (exit $ac_status); }; then | |
1394 | for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do | |
1395 | case $ac_file in | |
1396 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1397 | a.out ) # We found the default executable, but exeext='' is most | |
1398 | # certainly right. | |
1399 | break;; | |
1400 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1401 | export ac_cv_exeext | |
1402 | break;; | |
1403 | * ) break;; | |
1404 | esac | |
1405 | done | |
1406 | else | |
1407 | echo "$as_me: failed program was:" >&5 | |
1408 | cat conftest.$ac_ext >&5 | |
1409 | { { echo "$as_me:1409: error: C compiler cannot create executables" >&5 | |
1410 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
1411 | { (exit 77); exit 77; }; } | |
1412 | fi | |
1413 | ||
1414 | ac_exeext=$ac_cv_exeext | |
1415 | echo "$as_me:1415: result: $ac_file" >&5 | |
1416 | echo "${ECHO_T}$ac_file" >&6 | |
1417 | ||
1418 | # Check the compiler produces executables we can run. If not, either | |
1419 | # the compiler is broken, or we cross compile. | |
1420 | echo "$as_me:1420: checking whether the C compiler works" >&5 | |
1421 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1422 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1423 | # If not cross compiling, check that we can run a simple program. | |
1424 | if test "$cross_compiling" != yes; then | |
1425 | if { ac_try='./$ac_file' | |
1426 | { (eval echo "$as_me:1426: \"$ac_try\"") >&5 | |
1427 | (eval $ac_try) 2>&5 | |
1428 | ac_status=$? | |
1429 | echo "$as_me:1429: \$? = $ac_status" >&5 | |
1430 | (exit $ac_status); }; }; then | |
1431 | cross_compiling=no | |
1432 | else | |
1433 | if test "$cross_compiling" = maybe; then | |
1434 | cross_compiling=yes | |
1435 | else | |
1436 | { { echo "$as_me:1436: error: cannot run C compiled programs. | |
1437 | If you meant to cross compile, use \`--host'." >&5 | |
1438 | echo "$as_me: error: cannot run C compiled programs. | |
1439 | If you meant to cross compile, use \`--host'." >&2;} | |
1440 | { (exit 1); exit 1; }; } | |
1441 | fi | |
1442 | fi | |
1443 | fi | |
1444 | echo "$as_me:1444: result: yes" >&5 | |
1445 | echo "${ECHO_T}yes" >&6 | |
1446 | ||
1447 | rm -f a.out a.exe conftest$ac_cv_exeext | |
1448 | ac_clean_files=$ac_clean_files_save | |
1449 | # Check the compiler produces executables we can run. If not, either | |
1450 | # the compiler is broken, or we cross compile. | |
1451 | echo "$as_me:1451: checking whether we are cross compiling" >&5 | |
1452 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1453 | echo "$as_me:1453: result: $cross_compiling" >&5 | |
1454 | echo "${ECHO_T}$cross_compiling" >&6 | |
1455 | ||
1456 | echo "$as_me:1456: checking for executable suffix" >&5 | |
1457 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | |
1458 | if { (eval echo "$as_me:1458: \"$ac_link\"") >&5 | |
1459 | (eval $ac_link) 2>&5 | |
1460 | ac_status=$? | |
1461 | echo "$as_me:1461: \$? = $ac_status" >&5 | |
1462 | (exit $ac_status); }; then | |
1463 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1464 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1465 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1466 | # `rm'. | |
1467 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1468 | case $ac_file in | |
1469 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1470 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1471 | export ac_cv_exeext | |
1472 | break;; | |
1473 | * ) break;; | |
1474 | esac | |
1475 | done | |
1476 | else | |
1477 | { { echo "$as_me:1477: error: cannot compute EXEEXT: cannot compile and link" >&5 | |
1478 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | |
1479 | { (exit 1); exit 1; }; } | |
1480 | fi | |
1481 | ||
1482 | rm -f conftest$ac_cv_exeext | |
1483 | echo "$as_me:1483: result: $ac_cv_exeext" >&5 | |
1484 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1485 | ||
1486 | rm -f conftest.$ac_ext | |
1487 | EXEEXT=$ac_cv_exeext | |
1488 | ac_exeext=$EXEEXT | |
1489 | echo "$as_me:1489: checking for object suffix" >&5 | |
1490 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | |
1491 | if test "${ac_cv_objext+set}" = set; then | |
1492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1493 | else | |
1494 | cat >conftest.$ac_ext <<_ACEOF | |
1495 | #line 1495 "configure" | |
1496 | #include "confdefs.h" | |
1497 | ||
1498 | int | |
1499 | main () | |
1500 | { | |
1501 | ||
1502 | ; | |
1503 | return 0; | |
1504 | } | |
1505 | _ACEOF | |
1506 | rm -f conftest.o conftest.obj | |
1507 | if { (eval echo "$as_me:1507: \"$ac_compile\"") >&5 | |
1508 | (eval $ac_compile) 2>&5 | |
1509 | ac_status=$? | |
1510 | echo "$as_me:1510: \$? = $ac_status" >&5 | |
1511 | (exit $ac_status); }; then | |
1512 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1513 | case $ac_file in | |
1514 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1515 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1516 | break;; | |
1517 | esac | |
1518 | done | |
1519 | else | |
1520 | echo "$as_me: failed program was:" >&5 | |
1521 | cat conftest.$ac_ext >&5 | |
1522 | { { echo "$as_me:1522: error: cannot compute OBJEXT: cannot compile" >&5 | |
1523 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | |
1524 | { (exit 1); exit 1; }; } | |
1525 | fi | |
1526 | ||
1527 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1528 | fi | |
1529 | echo "$as_me:1529: result: $ac_cv_objext" >&5 | |
1530 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1531 | OBJEXT=$ac_cv_objext | |
1532 | ac_objext=$OBJEXT | |
1533 | echo "$as_me:1533: checking whether we are using the GNU C compiler" >&5 | |
1534 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1535 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1537 | else | |
1538 | cat >conftest.$ac_ext <<_ACEOF | |
1539 | #line 1539 "configure" | |
1540 | #include "confdefs.h" | |
1541 | ||
1542 | int | |
1543 | main () | |
1544 | { | |
1545 | #ifndef __GNUC__ | |
1546 | choke me | |
1547 | #endif | |
1548 | ||
1549 | ; | |
1550 | return 0; | |
1551 | } | |
1552 | _ACEOF | |
1553 | rm -f conftest.$ac_objext | |
1554 | if { (eval echo "$as_me:1554: \"$ac_compile\"") >&5 | |
1555 | (eval $ac_compile) 2>&5 | |
1556 | ac_status=$? | |
1557 | echo "$as_me:1557: \$? = $ac_status" >&5 | |
1558 | (exit $ac_status); } && | |
1559 | { ac_try='test -s conftest.$ac_objext' | |
1560 | { (eval echo "$as_me:1560: \"$ac_try\"") >&5 | |
1561 | (eval $ac_try) 2>&5 | |
1562 | ac_status=$? | |
1563 | echo "$as_me:1563: \$? = $ac_status" >&5 | |
1564 | (exit $ac_status); }; }; then | |
1565 | ac_compiler_gnu=yes | |
1566 | else | |
1567 | echo "$as_me: failed program was:" >&5 | |
1568 | cat conftest.$ac_ext >&5 | |
1569 | ac_compiler_gnu=no | |
1570 | fi | |
1571 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1572 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1573 | ||
1574 | fi | |
1575 | echo "$as_me:1575: result: $ac_cv_c_compiler_gnu" >&5 | |
1576 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1577 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1578 | ac_test_CFLAGS=${CFLAGS+set} | |
1579 | ac_save_CFLAGS=$CFLAGS | |
1580 | CFLAGS="-g" | |
1581 | echo "$as_me:1581: checking whether $CC accepts -g" >&5 | |
1582 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1583 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1585 | else | |
1586 | cat >conftest.$ac_ext <<_ACEOF | |
1587 | #line 1587 "configure" | |
1588 | #include "confdefs.h" | |
1589 | ||
1590 | int | |
1591 | main () | |
1592 | { | |
1593 | ||
1594 | ; | |
1595 | return 0; | |
1596 | } | |
1597 | _ACEOF | |
1598 | rm -f conftest.$ac_objext | |
1599 | if { (eval echo "$as_me:1599: \"$ac_compile\"") >&5 | |
1600 | (eval $ac_compile) 2>&5 | |
1601 | ac_status=$? | |
1602 | echo "$as_me:1602: \$? = $ac_status" >&5 | |
1603 | (exit $ac_status); } && | |
1604 | { ac_try='test -s conftest.$ac_objext' | |
1605 | { (eval echo "$as_me:1605: \"$ac_try\"") >&5 | |
1606 | (eval $ac_try) 2>&5 | |
1607 | ac_status=$? | |
1608 | echo "$as_me:1608: \$? = $ac_status" >&5 | |
1609 | (exit $ac_status); }; }; then | |
1610 | ac_cv_prog_cc_g=yes | |
1611 | else | |
1612 | echo "$as_me: failed program was:" >&5 | |
1613 | cat conftest.$ac_ext >&5 | |
1614 | ac_cv_prog_cc_g=no | |
1615 | fi | |
1616 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1617 | fi | |
1618 | echo "$as_me:1618: result: $ac_cv_prog_cc_g" >&5 | |
1619 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
1620 | if test "$ac_test_CFLAGS" = set; then | |
1621 | CFLAGS=$ac_save_CFLAGS | |
1622 | elif test $ac_cv_prog_cc_g = yes; then | |
1623 | if test "$GCC" = yes; then | |
1624 | CFLAGS="-g -O2" | |
1625 | else | |
1626 | CFLAGS="-g" | |
1627 | fi | |
1628 | else | |
1629 | if test "$GCC" = yes; then | |
1630 | CFLAGS="-O2" | |
1631 | else | |
1632 | CFLAGS= | |
1633 | fi | |
1634 | fi | |
1635 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
1636 | # in C++ we need to declare it. In case someone uses the same compiler | |
1637 | # for both compiling C and C++ we need to have the C++ compiler decide | |
1638 | # the declaration of exit, since it's the most demanding environment. | |
1639 | cat >conftest.$ac_ext <<_ACEOF | |
1640 | #ifndef __cplusplus | |
1641 | choke me | |
1642 | #endif | |
1643 | _ACEOF | |
1644 | rm -f conftest.$ac_objext | |
1645 | if { (eval echo "$as_me:1645: \"$ac_compile\"") >&5 | |
1646 | (eval $ac_compile) 2>&5 | |
1647 | ac_status=$? | |
1648 | echo "$as_me:1648: \$? = $ac_status" >&5 | |
1649 | (exit $ac_status); } && | |
1650 | { ac_try='test -s conftest.$ac_objext' | |
1651 | { (eval echo "$as_me:1651: \"$ac_try\"") >&5 | |
1652 | (eval $ac_try) 2>&5 | |
1653 | ac_status=$? | |
1654 | echo "$as_me:1654: \$? = $ac_status" >&5 | |
1655 | (exit $ac_status); }; }; then | |
1656 | for ac_declaration in \ | |
1657 | ''\ | |
1658 | '#include <stdlib.h>' \ | |
1659 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1660 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1661 | 'extern "C" void exit (int) throw ();' \ | |
1662 | 'extern "C" void exit (int);' \ | |
1663 | 'void exit (int);' | |
1664 | do | |
1665 | cat >conftest.$ac_ext <<_ACEOF | |
1666 | #line 1666 "configure" | |
1667 | #include "confdefs.h" | |
1668 | #include <stdlib.h> | |
1669 | $ac_declaration | |
1670 | int | |
1671 | main () | |
1672 | { | |
1673 | exit (42); | |
1674 | ; | |
1675 | return 0; | |
1676 | } | |
1677 | _ACEOF | |
1678 | rm -f conftest.$ac_objext | |
1679 | if { (eval echo "$as_me:1679: \"$ac_compile\"") >&5 | |
1680 | (eval $ac_compile) 2>&5 | |
1681 | ac_status=$? | |
1682 | echo "$as_me:1682: \$? = $ac_status" >&5 | |
1683 | (exit $ac_status); } && | |
1684 | { ac_try='test -s conftest.$ac_objext' | |
1685 | { (eval echo "$as_me:1685: \"$ac_try\"") >&5 | |
1686 | (eval $ac_try) 2>&5 | |
1687 | ac_status=$? | |
1688 | echo "$as_me:1688: \$? = $ac_status" >&5 | |
1689 | (exit $ac_status); }; }; then | |
1690 | : | |
1691 | else | |
1692 | echo "$as_me: failed program was:" >&5 | |
1693 | cat conftest.$ac_ext >&5 | |
1694 | continue | |
1695 | fi | |
1696 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1697 | cat >conftest.$ac_ext <<_ACEOF | |
1698 | #line 1698 "configure" | |
1699 | #include "confdefs.h" | |
1700 | $ac_declaration | |
1701 | int | |
1702 | main () | |
1703 | { | |
1704 | exit (42); | |
1705 | ; | |
1706 | return 0; | |
1707 | } | |
1708 | _ACEOF | |
1709 | rm -f conftest.$ac_objext | |
1710 | if { (eval echo "$as_me:1710: \"$ac_compile\"") >&5 | |
1711 | (eval $ac_compile) 2>&5 | |
1712 | ac_status=$? | |
1713 | echo "$as_me:1713: \$? = $ac_status" >&5 | |
1714 | (exit $ac_status); } && | |
1715 | { ac_try='test -s conftest.$ac_objext' | |
1716 | { (eval echo "$as_me:1716: \"$ac_try\"") >&5 | |
1717 | (eval $ac_try) 2>&5 | |
1718 | ac_status=$? | |
1719 | echo "$as_me:1719: \$? = $ac_status" >&5 | |
1720 | (exit $ac_status); }; }; then | |
1721 | break | |
1722 | else | |
1723 | echo "$as_me: failed program was:" >&5 | |
1724 | cat conftest.$ac_ext >&5 | |
1725 | fi | |
1726 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1727 | done | |
1728 | echo '#ifdef __cplusplus' >>confdefs.h | |
1729 | echo $ac_declaration >>confdefs.h | |
1730 | echo '#endif' >>confdefs.h | |
1731 | ||
1732 | else | |
1733 | echo "$as_me: failed program was:" >&5 | |
1734 | cat conftest.$ac_ext >&5 | |
1735 | fi | |
1736 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1737 | ac_ext=c | |
1738 | ac_cpp='$CPP $CPPFLAGS' | |
1739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1742 | ||
1743 | echo "$as_me:1743: checking for POSIXized ISC" >&5 | |
1744 | echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 | |
1745 | if test -d /etc/conf/kconfig.d && | |
1746 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
1747 | then | |
1748 | echo "$as_me:1748: result: yes" >&5 | |
1749 | echo "${ECHO_T}yes" >&6 | |
1750 | ISC=yes # If later tests want to check for ISC. | |
1751 | ||
1752 | cat >>confdefs.h <<\EOF | |
1753 | #define _POSIX_SOURCE 1 | |
1754 | EOF | |
1755 | ||
1756 | if test "$GCC" = yes; then | |
1757 | CC="$CC -posix" | |
1758 | else | |
1759 | CC="$CC -Xp" | |
1760 | fi | |
1761 | else | |
1762 | echo "$as_me:1762: result: no" >&5 | |
1763 | echo "${ECHO_T}no" >&6 | |
1764 | ISC= | |
1765 | fi | |
252b5132 RH |
1766 | |
1767 | # Find a good install program. We prefer a C program (faster), | |
1768 | # so one script is as good as another. But avoid the broken or | |
1769 | # incompatible versions: | |
1770 | # SysV /etc/install, /usr/sbin/install | |
1771 | # SunOS /usr/etc/install | |
1772 | # IRIX /sbin/install | |
1773 | # AIX /bin/install | |
b3baf5d0 | 1774 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
1775 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1776 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1777 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1778 | # ./install, which can be erroneously created by make from ./install.sh. | |
b3baf5d0 NC |
1779 | echo "$as_me:1779: checking for a BSD compatible install" >&5 |
1780 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | |
252b5132 | 1781 | if test -z "$INSTALL"; then |
b3baf5d0 NC |
1782 | if test "${ac_cv_path_install+set}" = set; then |
1783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 1784 | else |
b3baf5d0 | 1785 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
252b5132 | 1786 | for ac_dir in $PATH; do |
b3baf5d0 | 1787 | IFS=$ac_save_IFS |
252b5132 | 1788 | # Account for people who put trailing slashes in PATH elements. |
b3baf5d0 NC |
1789 | case $ac_dir/ in |
1790 | / | ./ | .// | /cC/* \ | |
1791 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1792 | | /usr/ucb/* ) ;; | |
252b5132 RH |
1793 | *) |
1794 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1795 | # Don't use installbsd from OSF since it installs stuff as root | |
1796 | # by default. | |
1797 | for ac_prog in ginstall scoinst install; do | |
b3baf5d0 | 1798 | if $as_executable_p "$ac_dir/$ac_prog"; then |
252b5132 | 1799 | if test $ac_prog = install && |
b3baf5d0 | 1800 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
252b5132 RH |
1801 | # AIX install. It has an incompatible calling convention. |
1802 | : | |
b3baf5d0 NC |
1803 | elif test $ac_prog = install && |
1804 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1805 | # program-specific install script used by HP pwplus--don't use. | |
1806 | : | |
252b5132 RH |
1807 | else |
1808 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1809 | break 2 | |
1810 | fi | |
1811 | fi | |
1812 | done | |
1813 | ;; | |
1814 | esac | |
1815 | done | |
252b5132 RH |
1816 | |
1817 | fi | |
1818 | if test "${ac_cv_path_install+set}" = set; then | |
b3baf5d0 | 1819 | INSTALL=$ac_cv_path_install |
252b5132 RH |
1820 | else |
1821 | # As a last resort, use the slow shell script. We don't cache a | |
1822 | # path for INSTALL within a source directory, because that will | |
1823 | # break other packages using the cache if that directory is | |
1824 | # removed, or if the path is relative. | |
b3baf5d0 | 1825 | INSTALL=$ac_install_sh |
252b5132 RH |
1826 | fi |
1827 | fi | |
b3baf5d0 NC |
1828 | echo "$as_me:1828: result: $INSTALL" >&5 |
1829 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
1830 | |
1831 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1832 | # It thinks the first close brace ends the variable substitution. | |
1833 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1834 | ||
b3baf5d0 | 1835 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
1836 | |
1837 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1838 | ||
b3baf5d0 NC |
1839 | echo "$as_me:1839: checking whether build environment is sane" >&5 |
1840 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
1841 | # Just in case |
1842 | sleep 1 | |
1843 | echo timestamp > conftestfile | |
1844 | # Do `set' in a subshell so we don't clobber the current shell's | |
1845 | # arguments. Must try -L first in case configure is actually a | |
1846 | # symlink; some systems play weird games with the mod time of symlinks | |
1847 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1848 | # directory). | |
1849 | if ( | |
1850 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
1851 | if test "$*" = "X"; then | |
1852 | # -L didn't work. | |
1853 | set X `ls -t $srcdir/configure conftestfile` | |
1854 | fi | |
1855 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
1856 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
1857 | ||
1858 | # If neither matched, then we have a broken ls. This can happen | |
1859 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1860 | # broken ls alias from the environment. This has actually | |
1861 | # happened. Such a system could not be considered "sane". | |
b3baf5d0 NC |
1862 | { { echo "$as_me:1862: error: ls -t appears to fail. Make sure there is not a broken |
1863 | alias in your environment" >&5 | |
1864 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1865 | alias in your environment" >&2;} | |
1866 | { (exit 1); exit 1; }; } | |
252b5132 RH |
1867 | fi |
1868 | ||
1869 | test "$2" = conftestfile | |
1870 | ) | |
1871 | then | |
1872 | # Ok. | |
1873 | : | |
1874 | else | |
b3baf5d0 NC |
1875 | { { echo "$as_me:1875: error: newly created file is older than distributed files! |
1876 | Check your system clock" >&5 | |
1877 | echo "$as_me: error: newly created file is older than distributed files! | |
1878 | Check your system clock" >&2;} | |
1879 | { (exit 1); exit 1; }; } | |
252b5132 RH |
1880 | fi |
1881 | rm -f conftest* | |
b3baf5d0 NC |
1882 | echo "$as_me:1882: result: yes" >&5 |
1883 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
1884 | if test "$program_transform_name" = s,x,x,; then |
1885 | program_transform_name= | |
1886 | else | |
1887 | # Double any \ or $. echo might interpret backslashes. | |
b3baf5d0 | 1888 | cat <<\EOF >conftest.sed |
252b5132 | 1889 | s,\\,\\\\,g; s,\$,$$,g |
b3baf5d0 NC |
1890 | EOF |
1891 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1892 | rm -f conftest.sed | |
252b5132 RH |
1893 | fi |
1894 | test "$program_prefix" != NONE && | |
b3baf5d0 | 1895 | program_transform_name="s,^,${program_prefix},;$program_transform_name" |
252b5132 RH |
1896 | # Use a double $ so make ignores it. |
1897 | test "$program_suffix" != NONE && | |
b3baf5d0 | 1898 | program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" |
252b5132 RH |
1899 | |
1900 | # sed with no file args requires a program. | |
b3baf5d0 | 1901 | test -z "$program_transform_name" && program_transform_name="s,x,x," |
252b5132 | 1902 | |
b3baf5d0 NC |
1903 | echo "$as_me:1903: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
1904 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
1905 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1906 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 1908 | else |
b3baf5d0 | 1909 | cat >conftest.make <<\EOF |
252b5132 RH |
1910 | all: |
1911 | @echo 'ac_maketemp="${MAKE}"' | |
1912 | EOF | |
1913 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
b3baf5d0 | 1914 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
1915 | if test -n "$ac_maketemp"; then |
1916 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1917 | else | |
1918 | eval ac_cv_prog_make_${ac_make}_set=no | |
1919 | fi | |
b3baf5d0 | 1920 | rm -f conftest.make |
252b5132 RH |
1921 | fi |
1922 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
b3baf5d0 NC |
1923 | echo "$as_me:1923: result: yes" >&5 |
1924 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
1925 | SET_MAKE= |
1926 | else | |
b3baf5d0 NC |
1927 | echo "$as_me:1927: result: no" >&5 |
1928 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
1929 | SET_MAKE="MAKE=${MAKE-make}" |
1930 | fi | |
1931 | ||
252b5132 RH |
1932 | PACKAGE=bfd |
1933 | ||
27b7e12d | 1934 | VERSION=2.11.90 |
252b5132 RH |
1935 | |
1936 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
b3baf5d0 NC |
1937 | { { echo "$as_me:1937: error: source directory already configured; run \"make distclean\" there first" >&5 |
1938 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1939 | { (exit 1); exit 1; }; } | |
252b5132 | 1940 | fi |
b3baf5d0 NC |
1941 | |
1942 | cat >>confdefs.h <<EOF | |
252b5132 RH |
1943 | #define PACKAGE "$PACKAGE" |
1944 | EOF | |
1945 | ||
b3baf5d0 | 1946 | cat >>confdefs.h <<EOF |
252b5132 RH |
1947 | #define VERSION "$VERSION" |
1948 | EOF | |
1949 | ||
252b5132 | 1950 | missing_dir=`cd $ac_aux_dir && pwd` |
b3baf5d0 NC |
1951 | echo "$as_me:1951: checking for working aclocal" >&5 |
1952 | echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 | |
252b5132 RH |
1953 | # Run test in a subshell; some versions of sh will print an error if |
1954 | # an executable is not found, even if stderr is redirected. | |
1955 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1956 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1957 | ACLOCAL=aclocal | |
b3baf5d0 NC |
1958 | echo "$as_me:1958: result: found" >&5 |
1959 | echo "${ECHO_T}found" >&6 | |
252b5132 RH |
1960 | else |
1961 | ACLOCAL="$missing_dir/missing aclocal" | |
b3baf5d0 NC |
1962 | echo "$as_me:1962: result: missing" >&5 |
1963 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
1964 | fi |
1965 | ||
b3baf5d0 NC |
1966 | echo "$as_me:1966: checking for working autoconf" >&5 |
1967 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 | |
252b5132 RH |
1968 | # Run test in a subshell; some versions of sh will print an error if |
1969 | # an executable is not found, even if stderr is redirected. | |
1970 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1971 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1972 | AUTOCONF=autoconf | |
b3baf5d0 NC |
1973 | echo "$as_me:1973: result: found" >&5 |
1974 | echo "${ECHO_T}found" >&6 | |
252b5132 RH |
1975 | else |
1976 | AUTOCONF="$missing_dir/missing autoconf" | |
b3baf5d0 NC |
1977 | echo "$as_me:1977: result: missing" >&5 |
1978 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
1979 | fi |
1980 | ||
b3baf5d0 NC |
1981 | echo "$as_me:1981: checking for working automake" >&5 |
1982 | echo $ECHO_N "checking for working automake... $ECHO_C" >&6 | |
252b5132 RH |
1983 | # Run test in a subshell; some versions of sh will print an error if |
1984 | # an executable is not found, even if stderr is redirected. | |
1985 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1986 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1987 | AUTOMAKE=automake | |
b3baf5d0 NC |
1988 | echo "$as_me:1988: result: found" >&5 |
1989 | echo "${ECHO_T}found" >&6 | |
252b5132 RH |
1990 | else |
1991 | AUTOMAKE="$missing_dir/missing automake" | |
b3baf5d0 NC |
1992 | echo "$as_me:1992: result: missing" >&5 |
1993 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
1994 | fi |
1995 | ||
b3baf5d0 NC |
1996 | echo "$as_me:1996: checking for working autoheader" >&5 |
1997 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 | |
252b5132 RH |
1998 | # Run test in a subshell; some versions of sh will print an error if |
1999 | # an executable is not found, even if stderr is redirected. | |
2000 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
2001 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
2002 | AUTOHEADER=autoheader | |
b3baf5d0 NC |
2003 | echo "$as_me:2003: result: found" >&5 |
2004 | echo "${ECHO_T}found" >&6 | |
252b5132 RH |
2005 | else |
2006 | AUTOHEADER="$missing_dir/missing autoheader" | |
b3baf5d0 NC |
2007 | echo "$as_me:2007: result: missing" >&5 |
2008 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
2009 | fi |
2010 | ||
b3baf5d0 NC |
2011 | echo "$as_me:2011: checking for working makeinfo" >&5 |
2012 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 | |
252b5132 RH |
2013 | # Run test in a subshell; some versions of sh will print an error if |
2014 | # an executable is not found, even if stderr is redirected. | |
2015 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
2016 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
2017 | MAKEINFO=makeinfo | |
b3baf5d0 NC |
2018 | echo "$as_me:2018: result: found" >&5 |
2019 | echo "${ECHO_T}found" >&6 | |
252b5132 RH |
2020 | else |
2021 | MAKEINFO="$missing_dir/missing makeinfo" | |
b3baf5d0 NC |
2022 | echo "$as_me:2022: result: missing" >&5 |
2023 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
2024 | fi |
2025 | ||
b3baf5d0 NC |
2026 | if test -n "$ac_tool_prefix"; then |
2027 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 2028 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
b3baf5d0 NC |
2029 | echo "$as_me:2029: checking for $ac_word" >&5 |
2030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2031 | if test "${ac_cv_prog_AR+set}" = set; then | |
2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
2033 | else |
2034 | if test -n "$AR"; then | |
2035 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
2036 | else | |
b3baf5d0 NC |
2037 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2038 | ac_dummy="$PATH" | |
2039 | for ac_dir in $ac_dummy; do | |
2040 | IFS=$ac_save_IFS | |
2041 | test -z "$ac_dir" && ac_dir=. | |
2042 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2043 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
2044 | break | |
2045 | done | |
2046 | ||
252b5132 RH |
2047 | fi |
2048 | fi | |
b3baf5d0 | 2049 | AR=$ac_cv_prog_AR |
252b5132 | 2050 | if test -n "$AR"; then |
b3baf5d0 NC |
2051 | echo "$as_me:2051: result: $AR" >&5 |
2052 | echo "${ECHO_T}$AR" >&6 | |
2053 | else | |
2054 | echo "$as_me:2054: result: no" >&5 | |
2055 | echo "${ECHO_T}no" >&6 | |
2056 | fi | |
2057 | ||
2058 | fi | |
2059 | if test -z "$ac_cv_prog_AR"; then | |
2060 | ac_ct_AR=$AR | |
2061 | # Extract the first word of "ar", so it can be a program name with args. | |
2062 | set dummy ar; ac_word=$2 | |
2063 | echo "$as_me:2063: checking for $ac_word" >&5 | |
2064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2065 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
2066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2067 | else | |
2068 | if test -n "$ac_ct_AR"; then | |
2069 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
2070 | else | |
2071 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2072 | ac_dummy="$PATH" | |
2073 | for ac_dir in $ac_dummy; do | |
2074 | IFS=$ac_save_IFS | |
2075 | test -z "$ac_dir" && ac_dir=. | |
2076 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2077 | ac_cv_prog_ac_ct_AR="ar" | |
2078 | break | |
2079 | done | |
2080 | ||
2081 | fi | |
2082 | fi | |
2083 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
2084 | if test -n "$ac_ct_AR"; then | |
2085 | echo "$as_me:2085: result: $ac_ct_AR" >&5 | |
2086 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
252b5132 | 2087 | else |
b3baf5d0 NC |
2088 | echo "$as_me:2088: result: no" >&5 |
2089 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2090 | fi |
2091 | ||
b3baf5d0 NC |
2092 | AR=$ac_ct_AR |
2093 | else | |
2094 | AR="$ac_cv_prog_AR" | |
2095 | fi | |
252b5132 | 2096 | |
b3baf5d0 NC |
2097 | if test -n "$ac_tool_prefix"; then |
2098 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 2099 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
b3baf5d0 NC |
2100 | echo "$as_me:2100: checking for $ac_word" >&5 |
2101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2102 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
2104 | else |
2105 | if test -n "$RANLIB"; then | |
2106 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2107 | else | |
b3baf5d0 NC |
2108 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2109 | ac_dummy="$PATH" | |
2110 | for ac_dir in $ac_dummy; do | |
2111 | IFS=$ac_save_IFS | |
2112 | test -z "$ac_dir" && ac_dir=. | |
2113 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2114 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2115 | break | |
2116 | done | |
2117 | ||
252b5132 RH |
2118 | fi |
2119 | fi | |
b3baf5d0 | 2120 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 2121 | if test -n "$RANLIB"; then |
b3baf5d0 NC |
2122 | echo "$as_me:2122: result: $RANLIB" >&5 |
2123 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 2124 | else |
b3baf5d0 NC |
2125 | echo "$as_me:2125: result: no" >&5 |
2126 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2127 | fi |
2128 | ||
b3baf5d0 | 2129 | fi |
252b5132 | 2130 | if test -z "$ac_cv_prog_RANLIB"; then |
b3baf5d0 | 2131 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
2132 | # Extract the first word of "ranlib", so it can be a program name with args. |
2133 | set dummy ranlib; ac_word=$2 | |
b3baf5d0 NC |
2134 | echo "$as_me:2134: checking for $ac_word" >&5 |
2135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2136 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2138 | else | |
2139 | if test -n "$ac_ct_RANLIB"; then | |
2140 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2141 | else | |
2142 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2143 | ac_dummy="$PATH" | |
2144 | for ac_dir in $ac_dummy; do | |
2145 | IFS=$ac_save_IFS | |
2146 | test -z "$ac_dir" && ac_dir=. | |
2147 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2148 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2149 | break | |
2150 | done | |
2151 | ||
2152 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
2153 | fi |
2154 | fi | |
b3baf5d0 NC |
2155 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2156 | if test -n "$ac_ct_RANLIB"; then | |
2157 | echo "$as_me:2157: result: $ac_ct_RANLIB" >&5 | |
2158 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 2159 | else |
b3baf5d0 NC |
2160 | echo "$as_me:2160: result: no" >&5 |
2161 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2162 | fi |
2163 | ||
b3baf5d0 | 2164 | RANLIB=$ac_ct_RANLIB |
252b5132 | 2165 | else |
b3baf5d0 | 2166 | RANLIB="$ac_cv_prog_RANLIB" |
252b5132 | 2167 | fi |
252b5132 RH |
2168 | |
2169 | # Check whether --enable-shared or --disable-shared was given. | |
2170 | if test "${enable_shared+set}" = set; then | |
2171 | enableval="$enable_shared" | |
2172 | p=${PACKAGE-default} | |
55c80943 | 2173 | case $enableval in |
252b5132 RH |
2174 | yes) enable_shared=yes ;; |
2175 | no) enable_shared=no ;; | |
2176 | *) | |
2177 | enable_shared=no | |
2178 | # Look at the argument we got. We use all the common list separators. | |
2179 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2180 | for pkg in $enableval; do | |
2181 | if test "X$pkg" = "X$p"; then | |
2182 | enable_shared=yes | |
2183 | fi | |
2184 | done | |
2185 | IFS="$ac_save_ifs" | |
2186 | ;; | |
2187 | esac | |
2188 | else | |
2189 | enable_shared=no | |
b3baf5d0 | 2190 | fi; |
252b5132 RH |
2191 | |
2192 | # Check whether --enable-static or --disable-static was given. | |
2193 | if test "${enable_static+set}" = set; then | |
2194 | enableval="$enable_static" | |
2195 | p=${PACKAGE-default} | |
55c80943 | 2196 | case $enableval in |
252b5132 RH |
2197 | yes) enable_static=yes ;; |
2198 | no) enable_static=no ;; | |
2199 | *) | |
2200 | enable_static=no | |
2201 | # Look at the argument we got. We use all the common list separators. | |
2202 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2203 | for pkg in $enableval; do | |
2204 | if test "X$pkg" = "X$p"; then | |
2205 | enable_static=yes | |
2206 | fi | |
2207 | done | |
2208 | IFS="$ac_save_ifs" | |
2209 | ;; | |
2210 | esac | |
2211 | else | |
2212 | enable_static=yes | |
b3baf5d0 | 2213 | fi; |
b2ef150d ILT |
2214 | # Check whether --enable-fast-install or --disable-fast-install was given. |
2215 | if test "${enable_fast_install+set}" = set; then | |
2216 | enableval="$enable_fast_install" | |
2217 | p=${PACKAGE-default} | |
55c80943 | 2218 | case $enableval in |
b2ef150d ILT |
2219 | yes) enable_fast_install=yes ;; |
2220 | no) enable_fast_install=no ;; | |
2221 | *) | |
2222 | enable_fast_install=no | |
2223 | # Look at the argument we got. We use all the common list separators. | |
2224 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2225 | for pkg in $enableval; do | |
2226 | if test "X$pkg" = "X$p"; then | |
2227 | enable_fast_install=yes | |
2228 | fi | |
2229 | done | |
2230 | IFS="$ac_save_ifs" | |
2231 | ;; | |
2232 | esac | |
2233 | else | |
2234 | enable_fast_install=yes | |
b3baf5d0 | 2235 | fi; |
8d88c4ca | 2236 | |
252b5132 RH |
2237 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
2238 | if test "${with_gnu_ld+set}" = set; then | |
2239 | withval="$with_gnu_ld" | |
2240 | test "$withval" = no || with_gnu_ld=yes | |
2241 | else | |
2242 | with_gnu_ld=no | |
b3baf5d0 | 2243 | fi; |
252b5132 | 2244 | ac_prog=ld |
55c80943 | 2245 | if test "$GCC" = yes; then |
252b5132 | 2246 | # Check if gcc -print-prog-name=ld gives a path. |
b3baf5d0 NC |
2247 | echo "$as_me:2247: checking for ld used by GCC" >&5 |
2248 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
2249 | case $host in |
2250 | *-*-mingw*) | |
2251 | # gcc leaves a trailing carriage return which upsets mingw | |
2252 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
2253 | *) | |
2254 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
2255 | esac | |
55c80943 | 2256 | case $ac_prog in |
b2ef150d | 2257 | # Accept absolute paths. |
a74801ba | 2258 | [\\/]* | [A-Za-z]:[\\/]*) |
b2ef150d ILT |
2259 | re_direlt='/[^/][^/]*/\.\./' |
2260 | # Canonicalize the path of ld | |
2261 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
2262 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
2263 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
2264 | done | |
2265 | test -z "$LD" && LD="$ac_prog" | |
2266 | ;; | |
252b5132 RH |
2267 | "") |
2268 | # If it fails, then pretend we aren't using GCC. | |
2269 | ac_prog=ld | |
2270 | ;; | |
2271 | *) | |
2272 | # If it is relative, then search for the first ld in PATH. | |
2273 | with_gnu_ld=unknown | |
2274 | ;; | |
2275 | esac | |
2276 | elif test "$with_gnu_ld" = yes; then | |
b3baf5d0 NC |
2277 | echo "$as_me:2277: checking for GNU ld" >&5 |
2278 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 2279 | else |
b3baf5d0 NC |
2280 | echo "$as_me:2280: checking for non-GNU ld" >&5 |
2281 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 2282 | fi |
b3baf5d0 NC |
2283 | if test "${lt_cv_path_LD+set}" = set; then |
2284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
2285 | else |
2286 | if test -z "$LD"; then | |
a74801ba | 2287 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
2288 | for ac_dir in $PATH; do |
2289 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 2290 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
55c80943 | 2291 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
2292 | # Check to see if the program is GNU ld. I'd rather use --version, |
2293 | # but apparently some GNU ld's only accept -v. | |
2294 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
55c80943 | 2295 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
2296 | test "$with_gnu_ld" != no && break |
2297 | else | |
b2ef150d | 2298 | test "$with_gnu_ld" != yes && break |
252b5132 RH |
2299 | fi |
2300 | fi | |
2301 | done | |
2302 | IFS="$ac_save_ifs" | |
2303 | else | |
55c80943 | 2304 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
2305 | fi |
2306 | fi | |
2307 | ||
55c80943 | 2308 | LD="$lt_cv_path_LD" |
252b5132 | 2309 | if test -n "$LD"; then |
b3baf5d0 NC |
2310 | echo "$as_me:2310: result: $LD" >&5 |
2311 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 2312 | else |
b3baf5d0 NC |
2313 | echo "$as_me:2313: result: no" >&5 |
2314 | echo "${ECHO_T}no" >&6 | |
252b5132 | 2315 | fi |
b3baf5d0 NC |
2316 | test -z "$LD" && { { echo "$as_me:2316: error: no acceptable ld found in \$PATH" >&5 |
2317 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
2318 | { (exit 1); exit 1; }; } | |
2319 | echo "$as_me:2319: checking if the linker ($LD) is GNU ld" >&5 | |
2320 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
2321 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
2322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
2323 | else |
2324 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
2325 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
55c80943 | 2326 | lt_cv_prog_gnu_ld=yes |
252b5132 | 2327 | else |
55c80943 | 2328 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
2329 | fi |
2330 | fi | |
b3baf5d0 NC |
2331 | echo "$as_me:2331: result: $lt_cv_prog_gnu_ld" >&5 |
2332 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
55c80943 | 2333 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 | 2334 | |
b3baf5d0 NC |
2335 | echo "$as_me:2335: checking for $LD option to reload object files" >&5 |
2336 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
2337 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
2338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
2339 | else |
2340 | lt_cv_ld_reload_flag='-r' | |
2341 | fi | |
b3baf5d0 NC |
2342 | echo "$as_me:2342: result: $lt_cv_ld_reload_flag" >&5 |
2343 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
2344 | reload_flag=$lt_cv_ld_reload_flag |
2345 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
2346 | ||
b3baf5d0 NC |
2347 | echo "$as_me:2347: checking for BSD-compatible nm" >&5 |
2348 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
2349 | if test "${lt_cv_path_NM+set}" = set; then | |
2350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
2351 | else |
2352 | if test -n "$NM"; then | |
2353 | # Let the user override the test. | |
55c80943 | 2354 | lt_cv_path_NM="$NM" |
252b5132 | 2355 | else |
a74801ba | 2356 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2ef150d | 2357 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
252b5132 | 2358 | test -z "$ac_dir" && ac_dir=. |
ac48eca1 AO |
2359 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
2360 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
2361 | # Check to see if the nm accepts a BSD-compat flag. |
2362 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
2363 | # nm: unknown option "B" ignored | |
90f2472a AO |
2364 | # Tru64's nm complains that /dev/null is an invalid object file |
2365 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
55c80943 | 2366 | lt_cv_path_NM="$tmp_nm -B" |
b2ef150d | 2367 | break |
ac48eca1 | 2368 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
55c80943 | 2369 | lt_cv_path_NM="$tmp_nm -p" |
b2ef150d | 2370 | break |
252b5132 | 2371 | else |
55c80943 | 2372 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2ef150d | 2373 | continue # so that we can try to find one that supports BSD flags |
252b5132 | 2374 | fi |
252b5132 RH |
2375 | fi |
2376 | done | |
2377 | IFS="$ac_save_ifs" | |
55c80943 | 2378 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
2379 | fi |
2380 | fi | |
2381 | ||
55c80943 | 2382 | NM="$lt_cv_path_NM" |
b3baf5d0 NC |
2383 | echo "$as_me:2383: result: $NM" >&5 |
2384 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 2385 | |
b3baf5d0 NC |
2386 | echo "$as_me:2386: checking whether ln -s works" >&5 |
2387 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2388 | LN_S=$as_ln_s | |
2389 | if test "$LN_S" = "ln -s"; then | |
2390 | echo "$as_me:2390: result: yes" >&5 | |
2391 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2392 | else |
b3baf5d0 NC |
2393 | echo "$as_me:2393: result: no, using $LN_S" >&5 |
2394 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
2395 | fi |
2396 | ||
b3baf5d0 NC |
2397 | echo "$as_me:2397: checking how to recognise dependant libraries" >&5 |
2398 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
2399 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
2400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 2401 | else |
d64552c5 | 2402 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
2403 | lt_cv_file_magic_test_file= |
2404 | lt_cv_deplibs_check_method='unknown' | |
2405 | # Need to set the preceding variable on all platforms that support | |
2406 | # interlibrary dependencies. | |
2407 | # 'none' -- dependencies not supported. | |
2408 | # `unknown' -- same as none, but documents that we really don't know. | |
2409 | # 'pass_all' -- all dependencies passed with no checks. | |
2410 | # 'test_compile' -- check by making test program. | |
2411 | # 'file_magic [regex]' -- check by looking for files in library path | |
2412 | # which responds to the $file_magic_cmd with a given egrep regex. | |
2413 | # If you have `file' or equivalent on your system and you're not sure | |
2414 | # whether `pass_all' will *always* work, you probably want this one. | |
2415 | ||
55c80943 NC |
2416 | case $host_os in |
2417 | aix*) | |
ac48eca1 AO |
2418 | lt_cv_deplibs_check_method=pass_all |
2419 | ;; | |
2420 | ||
2421 | beos*) | |
2422 | lt_cv_deplibs_check_method=pass_all | |
2423 | ;; | |
2424 | ||
2425 | bsdi4*) | |
55c80943 NC |
2426 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
2427 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
2428 | lt_cv_file_magic_test_file=/shlib/libc.so |
2429 | ;; | |
2430 | ||
d64552c5 | 2431 | cygwin* | mingw* |pw32*) |
ac48eca1 | 2432 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 2433 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
2434 | ;; |
2435 | ||
55c80943 NC |
2436 | darwin* | rhapsody*) |
2437 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
b3baf5d0 NC |
2438 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
2439 | case "$host_os" in | |
2440 | rhapsody* | darwin1.012) | |
2441 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
2442 | ;; | |
2443 | *) # Darwin 1.3 on | |
2444 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
2445 | ;; | |
2446 | esac | |
55c80943 NC |
2447 | ;; |
2448 | ||
ac48eca1 AO |
2449 | freebsd* ) |
2450 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
55c80943 | 2451 | case $host_cpu in |
ac48eca1 | 2452 | i*86 ) |
90f2472a AO |
2453 | # Not sure whether the presence of OpenBSD here was a mistake. |
2454 | # Let's accept both of them until this is cleared up. | |
55c80943 NC |
2455 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
2456 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
2457 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
2458 | ;; | |
2459 | esac | |
2460 | else | |
2461 | lt_cv_deplibs_check_method=pass_all | |
2462 | fi | |
2463 | ;; | |
2464 | ||
2465 | gnu*) | |
2466 | lt_cv_deplibs_check_method=pass_all | |
2467 | ;; | |
2468 | ||
55c80943 NC |
2469 | hpux10.20*|hpux11*) |
2470 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
ac48eca1 AO |
2471 | lt_cv_file_magic_cmd=/usr/bin/file |
2472 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
2473 | ;; | |
2474 | ||
2475 | irix5* | irix6*) | |
55c80943 | 2476 | case $host_os in |
ac48eca1 AO |
2477 | irix5*) |
2478 | # this will be overridden with pass_all, but let us keep it just in case | |
2479 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
2480 | ;; | |
2481 | *) | |
55c80943 | 2482 | case $LD in |
ac48eca1 AO |
2483 | *-32|*"-32 ") libmagic=32-bit;; |
2484 | *-n32|*"-n32 ") libmagic=N32;; | |
2485 | *-64|*"-64 ") libmagic=64-bit;; | |
2486 | *) libmagic=never-match;; | |
2487 | esac | |
2488 | # this will be overridden with pass_all, but let us keep it just in case | |
55c80943 NC |
2489 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
2490 | ;; | |
ac48eca1 AO |
2491 | esac |
2492 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
2493 | lt_cv_deplibs_check_method=pass_all | |
2494 | ;; | |
2495 | ||
2496 | # This must be Linux ELF. | |
90f2472a | 2497 | linux-gnu*) |
55c80943 | 2498 | case $host_cpu in |
ac48eca1 AO |
2499 | alpha* | i*86 | powerpc* | sparc* | ia64* ) |
2500 | lt_cv_deplibs_check_method=pass_all ;; | |
2501 | *) | |
2502 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
55c80943 NC |
2503 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
2504 | esac | |
ac48eca1 AO |
2505 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
2506 | ;; | |
2507 | ||
2508 | netbsd*) | |
55c80943 | 2509 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
b3baf5d0 | 2510 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
ac48eca1 | 2511 | else |
b3baf5d0 | 2512 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 | 2513 | fi |
55c80943 NC |
2514 | ;; |
2515 | ||
2516 | newsos6) | |
2517 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
2518 | lt_cv_file_magic_cmd=/usr/bin/file | |
2519 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
ac48eca1 AO |
2520 | ;; |
2521 | ||
2522 | osf3* | osf4* | osf5*) | |
2523 | # this will be overridden with pass_all, but let us keep it just in case | |
2524 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
2525 | lt_cv_file_magic_test_file=/shlib/libc.so | |
2526 | lt_cv_deplibs_check_method=pass_all | |
2527 | ;; | |
2528 | ||
2529 | sco3.2v5*) | |
2530 | lt_cv_deplibs_check_method=pass_all | |
2531 | ;; | |
2532 | ||
2533 | solaris*) | |
2534 | lt_cv_deplibs_check_method=pass_all | |
2535 | lt_cv_file_magic_test_file=/lib/libc.so | |
2536 | ;; | |
2537 | ||
2538 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
55c80943 | 2539 | case $host_vendor in |
ac48eca1 AO |
2540 | ncr) |
2541 | lt_cv_deplibs_check_method=pass_all | |
2542 | ;; | |
2543 | motorola) | |
55c80943 NC |
2544 | 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]' |
2545 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
2546 | ;; |
2547 | esac | |
2548 | ;; | |
2549 | esac | |
2550 | ||
2551 | fi | |
b3baf5d0 NC |
2552 | echo "$as_me:2552: result: $lt_cv_deplibs_check_method" >&5 |
2553 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
2554 | file_magic_cmd=$lt_cv_file_magic_cmd |
2555 | deplibs_check_method=$lt_cv_deplibs_check_method | |
2556 | ||
ac48eca1 AO |
2557 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
2558 | ||
2559 | # Only perform the check for file, if the check method requires it | |
55c80943 | 2560 | case $deplibs_check_method in |
ac48eca1 | 2561 | file_magic*) |
d64552c5 | 2562 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
b3baf5d0 NC |
2563 | echo "$as_me:2563: checking for ${ac_tool_prefix}file" >&5 |
2564 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
2565 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
2566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 2567 | else |
55c80943 | 2568 | case $MAGIC_CMD in |
ac48eca1 | 2569 | /*) |
d64552c5 | 2570 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
2571 | ;; |
2572 | ?:/*) | |
d64552c5 | 2573 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
2574 | ;; |
2575 | *) | |
d64552c5 | 2576 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
2577 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2578 | ac_dummy="/usr/bin:$PATH" | |
2579 | for ac_dir in $ac_dummy; do | |
2580 | test -z "$ac_dir" && ac_dir=. | |
2581 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 2582 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 2583 | if test -n "$file_magic_test_file"; then |
55c80943 | 2584 | case $deplibs_check_method in |
ac48eca1 AO |
2585 | "file_magic "*) |
2586 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 2587 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
2588 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2589 | egrep "$file_magic_regex" > /dev/null; then | |
2590 | : | |
2591 | else | |
2592 | cat <<EOF 1>&2 | |
2593 | ||
2594 | *** Warning: the command libtool uses to detect shared libraries, | |
2595 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2596 | *** The result is that libtool may fail to recognize shared libraries | |
2597 | *** as such. This will affect the creation of libtool libraries that | |
2598 | *** depend on shared libraries, but programs linked with such libtool | |
2599 | *** libraries will work regardless of this problem. Nevertheless, you | |
2600 | *** may want to report the problem to your system manager and/or to | |
2601 | *** bug-libtool@gnu.org | |
2602 | ||
2603 | EOF | |
2604 | fi ;; | |
2605 | esac | |
2606 | fi | |
2607 | break | |
2608 | fi | |
2609 | done | |
2610 | IFS="$ac_save_ifs" | |
d64552c5 | 2611 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
2612 | ;; |
2613 | esac | |
2614 | fi | |
2615 | ||
d64552c5 AO |
2616 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2617 | if test -n "$MAGIC_CMD"; then | |
b3baf5d0 NC |
2618 | echo "$as_me:2618: result: $MAGIC_CMD" >&5 |
2619 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 2620 | else |
b3baf5d0 NC |
2621 | echo "$as_me:2621: result: no" >&5 |
2622 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
2623 | fi |
2624 | ||
d64552c5 | 2625 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 2626 | if test -n "$ac_tool_prefix"; then |
b3baf5d0 NC |
2627 | echo "$as_me:2627: checking for file" >&5 |
2628 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
2629 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
2630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 2631 | else |
55c80943 | 2632 | case $MAGIC_CMD in |
ac48eca1 | 2633 | /*) |
d64552c5 | 2634 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
2635 | ;; |
2636 | ?:/*) | |
d64552c5 | 2637 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
2638 | ;; |
2639 | *) | |
d64552c5 | 2640 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
2641 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2642 | ac_dummy="/usr/bin:$PATH" | |
2643 | for ac_dir in $ac_dummy; do | |
2644 | test -z "$ac_dir" && ac_dir=. | |
2645 | if test -f $ac_dir/file; then | |
d64552c5 | 2646 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 2647 | if test -n "$file_magic_test_file"; then |
55c80943 | 2648 | case $deplibs_check_method in |
ac48eca1 AO |
2649 | "file_magic "*) |
2650 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 2651 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
2652 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2653 | egrep "$file_magic_regex" > /dev/null; then | |
2654 | : | |
2655 | else | |
2656 | cat <<EOF 1>&2 | |
2657 | ||
2658 | *** Warning: the command libtool uses to detect shared libraries, | |
2659 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2660 | *** The result is that libtool may fail to recognize shared libraries | |
2661 | *** as such. This will affect the creation of libtool libraries that | |
2662 | *** depend on shared libraries, but programs linked with such libtool | |
2663 | *** libraries will work regardless of this problem. Nevertheless, you | |
2664 | *** may want to report the problem to your system manager and/or to | |
2665 | *** bug-libtool@gnu.org | |
2666 | ||
2667 | EOF | |
2668 | fi ;; | |
2669 | esac | |
2670 | fi | |
2671 | break | |
2672 | fi | |
2673 | done | |
2674 | IFS="$ac_save_ifs" | |
d64552c5 | 2675 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
2676 | ;; |
2677 | esac | |
2678 | fi | |
2679 | ||
d64552c5 AO |
2680 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2681 | if test -n "$MAGIC_CMD"; then | |
b3baf5d0 NC |
2682 | echo "$as_me:2682: result: $MAGIC_CMD" >&5 |
2683 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 2684 | else |
b3baf5d0 NC |
2685 | echo "$as_me:2685: result: no" >&5 |
2686 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
2687 | fi |
2688 | ||
2689 | else | |
d64552c5 | 2690 | MAGIC_CMD=: |
ac48eca1 AO |
2691 | fi |
2692 | fi | |
2693 | ||
2694 | fi | |
2695 | ;; | |
2696 | esac | |
2697 | ||
b3baf5d0 NC |
2698 | if test -n "$ac_tool_prefix"; then |
2699 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 2700 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
b3baf5d0 NC |
2701 | echo "$as_me:2701: checking for $ac_word" >&5 |
2702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2703 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
2705 | else |
2706 | if test -n "$RANLIB"; then | |
2707 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2708 | else | |
b3baf5d0 NC |
2709 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2710 | ac_dummy="$PATH" | |
2711 | for ac_dir in $ac_dummy; do | |
2712 | IFS=$ac_save_IFS | |
2713 | test -z "$ac_dir" && ac_dir=. | |
2714 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2715 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2716 | break | |
2717 | done | |
2718 | ||
ac48eca1 AO |
2719 | fi |
2720 | fi | |
b3baf5d0 | 2721 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 2722 | if test -n "$RANLIB"; then |
b3baf5d0 NC |
2723 | echo "$as_me:2723: result: $RANLIB" >&5 |
2724 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 2725 | else |
b3baf5d0 NC |
2726 | echo "$as_me:2726: result: no" >&5 |
2727 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
2728 | fi |
2729 | ||
b3baf5d0 | 2730 | fi |
ac48eca1 | 2731 | if test -z "$ac_cv_prog_RANLIB"; then |
b3baf5d0 | 2732 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
2733 | # Extract the first word of "ranlib", so it can be a program name with args. |
2734 | set dummy ranlib; ac_word=$2 | |
b3baf5d0 NC |
2735 | echo "$as_me:2735: checking for $ac_word" >&5 |
2736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2737 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2739 | else | |
2740 | if test -n "$ac_ct_RANLIB"; then | |
2741 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2742 | else | |
2743 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2744 | ac_dummy="$PATH" | |
2745 | for ac_dir in $ac_dummy; do | |
2746 | IFS=$ac_save_IFS | |
2747 | test -z "$ac_dir" && ac_dir=. | |
2748 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2749 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2750 | break | |
2751 | done | |
2752 | ||
2753 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
2754 | fi |
2755 | fi | |
b3baf5d0 NC |
2756 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2757 | if test -n "$ac_ct_RANLIB"; then | |
2758 | echo "$as_me:2758: result: $ac_ct_RANLIB" >&5 | |
2759 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 2760 | else |
b3baf5d0 NC |
2761 | echo "$as_me:2761: result: no" >&5 |
2762 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
2763 | fi |
2764 | ||
b3baf5d0 | 2765 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 2766 | else |
b3baf5d0 | 2767 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
2768 | fi |
2769 | ||
b3baf5d0 NC |
2770 | if test -n "$ac_tool_prefix"; then |
2771 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 2772 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
b3baf5d0 NC |
2773 | echo "$as_me:2773: checking for $ac_word" >&5 |
2774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2775 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
2777 | else |
2778 | if test -n "$STRIP"; then | |
2779 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2780 | else | |
b3baf5d0 NC |
2781 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2782 | ac_dummy="$PATH" | |
2783 | for ac_dir in $ac_dummy; do | |
2784 | IFS=$ac_save_IFS | |
2785 | test -z "$ac_dir" && ac_dir=. | |
2786 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2787 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2788 | break | |
2789 | done | |
2790 | ||
ac48eca1 AO |
2791 | fi |
2792 | fi | |
b3baf5d0 | 2793 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 2794 | if test -n "$STRIP"; then |
b3baf5d0 NC |
2795 | echo "$as_me:2795: result: $STRIP" >&5 |
2796 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 2797 | else |
b3baf5d0 NC |
2798 | echo "$as_me:2798: result: no" >&5 |
2799 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
2800 | fi |
2801 | ||
b3baf5d0 | 2802 | fi |
ac48eca1 | 2803 | if test -z "$ac_cv_prog_STRIP"; then |
b3baf5d0 | 2804 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
2805 | # Extract the first word of "strip", so it can be a program name with args. |
2806 | set dummy strip; ac_word=$2 | |
b3baf5d0 NC |
2807 | echo "$as_me:2807: checking for $ac_word" >&5 |
2808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2809 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2811 | else | |
2812 | if test -n "$ac_ct_STRIP"; then | |
2813 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2814 | else | |
2815 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2816 | ac_dummy="$PATH" | |
2817 | for ac_dir in $ac_dummy; do | |
2818 | IFS=$ac_save_IFS | |
2819 | test -z "$ac_dir" && ac_dir=. | |
2820 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2821 | ac_cv_prog_ac_ct_STRIP="strip" | |
2822 | break | |
2823 | done | |
2824 | ||
2825 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
2826 | fi |
2827 | fi | |
b3baf5d0 NC |
2828 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2829 | if test -n "$ac_ct_STRIP"; then | |
2830 | echo "$as_me:2830: result: $ac_ct_STRIP" >&5 | |
2831 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 2832 | else |
b3baf5d0 NC |
2833 | echo "$as_me:2833: result: no" >&5 |
2834 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
2835 | fi |
2836 | ||
b3baf5d0 | 2837 | STRIP=$ac_ct_STRIP |
ac48eca1 | 2838 | else |
b3baf5d0 | 2839 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 | 2840 | fi |
252b5132 RH |
2841 | |
2842 | # Check for any special flags to pass to ltconfig. | |
b2ef150d | 2843 | libtool_flags="--cache-file=$cache_file" |
252b5132 RH |
2844 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
2845 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
b2ef150d | 2846 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
55c80943 NC |
2847 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
2848 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 2849 | |
a74801ba ILT |
2850 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
2851 | if test "${enable_libtool_lock+set}" = set; then | |
2852 | enableval="$enable_libtool_lock" | |
a74801ba | 2853 | |
b3baf5d0 | 2854 | fi; |
a74801ba ILT |
2855 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
2856 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2857 | ||
ac48eca1 AO |
2858 | # Check whether --with-pic or --without-pic was given. |
2859 | if test "${with_pic+set}" = set; then | |
2860 | withval="$with_pic" | |
2861 | pic_mode="$withval" | |
2862 | else | |
2863 | pic_mode=default | |
b3baf5d0 | 2864 | fi; |
ac48eca1 AO |
2865 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
2866 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2867 | ||
252b5132 RH |
2868 | # Some flags need to be propagated to the compiler or linker for good |
2869 | # libtool support. | |
55c80943 | 2870 | case $host in |
252b5132 RH |
2871 | *-*-irix6*) |
2872 | # Find out which ABI we are using. | |
b3baf5d0 NC |
2873 | echo '#line 2873 "configure"' > conftest.$ac_ext |
2874 | if { (eval echo "$as_me:2874: \"$ac_compile\"") >&5 | |
2875 | (eval $ac_compile) 2>&5 | |
2876 | ac_status=$? | |
2877 | echo "$as_me:2877: \$? = $ac_status" >&5 | |
2878 | (exit $ac_status); }; then | |
55c80943 | 2879 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
2880 | *32-bit*) |
2881 | LD="${LD-ld} -32" | |
2882 | ;; | |
2883 | *N32*) | |
2884 | LD="${LD-ld} -n32" | |
2885 | ;; | |
2886 | *64-bit*) | |
2887 | LD="${LD-ld} -64" | |
2888 | ;; | |
2889 | esac | |
2890 | fi | |
2891 | rm -rf conftest* | |
2892 | ;; | |
2893 | ||
2894 | *-*-sco3.2v5*) | |
2895 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
b2ef150d | 2896 | SAVE_CFLAGS="$CFLAGS" |
252b5132 | 2897 | CFLAGS="$CFLAGS -belf" |
b3baf5d0 NC |
2898 | echo "$as_me:2898: checking whether the C compiler needs -belf" >&5 |
2899 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
2900 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2ef150d | 2902 | else |
b3baf5d0 | 2903 | |
ac48eca1 | 2904 | ac_ext=c |
ac48eca1 | 2905 | ac_cpp='$CPP $CPPFLAGS' |
b3baf5d0 NC |
2906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 2909 | |
b3baf5d0 NC |
2910 | cat >conftest.$ac_ext <<_ACEOF |
2911 | #line 2911 "configure" | |
b2ef150d ILT |
2912 | #include "confdefs.h" |
2913 | ||
b3baf5d0 NC |
2914 | int |
2915 | main () | |
2916 | { | |
b2ef150d | 2917 | |
b3baf5d0 NC |
2918 | ; |
2919 | return 0; | |
2920 | } | |
2921 | _ACEOF | |
2922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2923 | if { (eval echo "$as_me:2923: \"$ac_link\"") >&5 | |
2924 | (eval $ac_link) 2>&5 | |
2925 | ac_status=$? | |
2926 | echo "$as_me:2926: \$? = $ac_status" >&5 | |
2927 | (exit $ac_status); } && | |
2928 | { ac_try='test -s conftest$ac_exeext' | |
2929 | { (eval echo "$as_me:2929: \"$ac_try\"") >&5 | |
2930 | (eval $ac_try) 2>&5 | |
2931 | ac_status=$? | |
2932 | echo "$as_me:2932: \$? = $ac_status" >&5 | |
2933 | (exit $ac_status); }; }; then | |
b2ef150d ILT |
2934 | lt_cv_cc_needs_belf=yes |
2935 | else | |
b3baf5d0 NC |
2936 | echo "$as_me: failed program was:" >&5 |
2937 | cat conftest.$ac_ext >&5 | |
2938 | lt_cv_cc_needs_belf=no | |
b2ef150d | 2939 | fi |
b3baf5d0 | 2940 | rm -f conftest$ac_exeext conftest.$ac_ext |
ac48eca1 | 2941 | ac_ext=c |
ac48eca1 | 2942 | ac_cpp='$CPP $CPPFLAGS' |
b3baf5d0 NC |
2943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 2946 | |
b2ef150d | 2947 | fi |
b3baf5d0 NC |
2948 | echo "$as_me:2948: result: $lt_cv_cc_needs_belf" >&5 |
2949 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2ef150d ILT |
2950 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
2951 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2952 | CFLAGS="$SAVE_CFLAGS" | |
2953 | fi | |
252b5132 RH |
2954 | ;; |
2955 | ||
252b5132 RH |
2956 | esac |
2957 | ||
b2ef150d | 2958 | # Save cache, so that ltconfig can load it |
b3baf5d0 | 2959 | cat >confcache <<\_ACEOF |
b2ef150d ILT |
2960 | # This file is a shell script that caches the results of configure |
2961 | # tests run on this system so they can be shared between configure | |
b3baf5d0 NC |
2962 | # scripts and configure runs, see configure's option --config-cache. |
2963 | # It is not useful on other systems. If it contains results you don't | |
2964 | # want to keep, you may remove or edit it. | |
b2ef150d | 2965 | # |
b3baf5d0 NC |
2966 | # config.status only pays attention to the cache file if you give it |
2967 | # the --recheck option to rerun configure. | |
b2ef150d | 2968 | # |
b3baf5d0 NC |
2969 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
2970 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
2971 | # following values. | |
2972 | ||
2973 | _ACEOF | |
2974 | ||
b2ef150d ILT |
2975 | # The following way of writing the cache mishandles newlines in values, |
2976 | # but we know of no workaround that is simple, portable, and efficient. | |
2977 | # So, don't put newlines in cache variables' values. | |
2978 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2979 | # and sets the high bit in the cache file unless we assign to the vars. | |
b3baf5d0 NC |
2980 | { |
2981 | (set) 2>&1 | | |
2982 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2983 | *ac_space=\ *) | |
2984 | # `set' does not quote correctly, so add quotes (double-quote | |
2985 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
2986 | sed -n \ | |
2987 | "s/'/'\\\\''/g; | |
2988 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
2989 | ;; | |
2990 | *) | |
2991 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2992 | sed -n \ | |
2993 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
2994 | ;; | |
2995 | esac; | |
2996 | } | | |
2997 | sed ' | |
2998 | t clear | |
2999 | : clear | |
3000 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3001 | t end | |
3002 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3003 | : end' >>confcache | |
3004 | if cmp -s $cache_file confcache; then :; else | |
b2ef150d | 3005 | if test -w $cache_file; then |
b3baf5d0 NC |
3006 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
3007 | cat confcache >$cache_file | |
b2ef150d ILT |
3008 | else |
3009 | echo "not updating unwritable cache $cache_file" | |
3010 | fi | |
3011 | fi | |
3012 | rm -f confcache | |
3013 | ||
252b5132 | 3014 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 3015 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 3016 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
3017 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
3018 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
3019 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
3020 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 3021 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 3022 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
b3baf5d0 NC |
3023 | || { { echo "$as_me:3023: error: libtool configure failed" >&5 |
3024 | echo "$as_me: error: libtool configure failed" >&2;} | |
3025 | { (exit 1); exit 1; }; } | |
252b5132 | 3026 | |
b2ef150d ILT |
3027 | # Reload cache, that may have been modified by ltconfig |
3028 | if test -r "$cache_file"; then | |
b3baf5d0 NC |
3029 | # Some versions of bash will fail to source /dev/null (special |
3030 | # files actually), so we avoid doing that. | |
3031 | if test -f "$cache_file"; then | |
3032 | { echo "$as_me:3032: loading cache $cache_file" >&5 | |
3033 | echo "$as_me: loading cache $cache_file" >&6;} | |
3034 | case $cache_file in | |
3035 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
3036 | *) . ./$cache_file;; | |
3037 | esac | |
3038 | fi | |
b2ef150d | 3039 | else |
b3baf5d0 NC |
3040 | { echo "$as_me:3040: creating cache $cache_file" >&5 |
3041 | echo "$as_me: creating cache $cache_file" >&6;} | |
3042 | >$cache_file | |
b2ef150d ILT |
3043 | fi |
3044 | ||
b2ef150d | 3045 | # This can be used to rebuild libtool when needed |
ac48eca1 | 3046 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2ef150d ILT |
3047 | |
3048 | # Always use our own libtool. | |
3049 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
3050 | ||
252b5132 RH |
3051 | # Redirect the config.log output again, so that the ltconfig log is not |
3052 | # clobbered by the next message. | |
3053 | exec 5>>./config.log | |
3054 | ||
252b5132 RH |
3055 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
3056 | if test "${enable_64_bit_bfd+set}" = set; then | |
3057 | enableval="$enable_64_bit_bfd" | |
3058 | case "${enableval}" in | |
3059 | yes) want64=true ;; | |
3060 | no) want64=false ;; | |
b3baf5d0 NC |
3061 | *) { { echo "$as_me:3061: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
3062 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
3063 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
3064 | esac |
3065 | else | |
3066 | want64=false | |
b3baf5d0 | 3067 | fi; # Check whether --enable-targets or --disable-targets was given. |
252b5132 RH |
3068 | if test "${enable_targets+set}" = set; then |
3069 | enableval="$enable_targets" | |
3070 | case "${enableval}" in | |
b3baf5d0 NC |
3071 | yes | "") { { echo "$as_me:3071: error: enable-targets option must specify target names or 'all'" >&5 |
3072 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
3073 | { (exit 1); exit 1; }; } | |
252b5132 RH |
3074 | ;; |
3075 | no) enable_targets= ;; | |
3076 | *) enable_targets=$enableval ;; | |
3077 | esac | |
b3baf5d0 | 3078 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
3079 | if test "${enable_commonbfdlib+set}" = set; then |
3080 | enableval="$enable_commonbfdlib" | |
3081 | case "${enableval}" in | |
3082 | yes) commonbfdlib=true ;; | |
3083 | no) commonbfdlib=false ;; | |
b3baf5d0 NC |
3084 | *) { { echo "$as_me:3084: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
3085 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
3086 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 3087 | esac |
b3baf5d0 | 3088 | fi; |
252b5132 RH |
3089 | # Check whether --with-mmap or --without-mmap was given. |
3090 | if test "${with_mmap+set}" = set; then | |
3091 | withval="$with_mmap" | |
3092 | case "${withval}" in | |
3093 | yes) want_mmap=true ;; | |
3094 | no) want_mmap=false ;; | |
b3baf5d0 NC |
3095 | *) { { echo "$as_me:3095: error: bad value ${withval} for BFD with-mmap option" >&5 |
3096 | echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} | |
3097 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
3098 | esac |
3099 | else | |
3100 | want_mmap=false | |
b3baf5d0 | 3101 | fi; |
a2d91340 AC |
3102 | build_warnings="-W -Wall" |
3103 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
3104 | if test "${enable_build_warnings+set}" = set; then | |
3105 | enableval="$enable_build_warnings" | |
3106 | case "${enableval}" in | |
3107 | yes) ;; | |
3108 | no) build_warnings="-w";; | |
3109 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
3110 | build_warnings="${build_warnings} ${t}";; | |
3111 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
3112 | build_warnings="${t} ${build_warnings}";; | |
3113 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
3114 | esac | |
3115 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
3116 | echo "Setting warning flags = $build_warnings" 6>&1 | |
3117 | fi | |
b3baf5d0 | 3118 | fi; WARN_CFLAGS="" |
a2d91340 AC |
3119 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then |
3120 | WARN_CFLAGS="${build_warnings}" | |
3121 | fi | |
3122 | ||
b3baf5d0 | 3123 | ac_config_headers="$ac_config_headers config.h:config.in" |
a2d91340 | 3124 | |
b3baf5d0 | 3125 | ac_config_commands="$ac_config_commands default-1" |
252b5132 RH |
3126 | |
3127 | if test -z "$target" ; then | |
b3baf5d0 NC |
3128 | { { echo "$as_me:3128: error: Unrecognized target system type; please check config.sub." >&5 |
3129 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
3130 | { (exit 1); exit 1; }; } | |
252b5132 | 3131 | fi |
252b5132 | 3132 | |
b3baf5d0 NC |
3133 | echo "$as_me:3133: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3134 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
3135 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
3136 | if test "${enable_maintainer_mode+set}" = set; then | |
3137 | enableval="$enable_maintainer_mode" | |
3138 | USE_MAINTAINER_MODE=$enableval | |
3139 | else | |
3140 | USE_MAINTAINER_MODE=no | |
b3baf5d0 NC |
3141 | fi; |
3142 | echo "$as_me:3142: result: $USE_MAINTAINER_MODE" >&5 | |
3143 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
252b5132 RH |
3144 | |
3145 | if test $USE_MAINTAINER_MODE = yes; then | |
3146 | MAINTAINER_MODE_TRUE= | |
3147 | MAINTAINER_MODE_FALSE='#' | |
3148 | else | |
3149 | MAINTAINER_MODE_TRUE='#' | |
3150 | MAINTAINER_MODE_FALSE= | |
3151 | fi | |
3152 | MAINT=$MAINTAINER_MODE_TRUE | |
252b5132 | 3153 | |
b3baf5d0 NC |
3154 | host64=false |
3155 | target64=false | |
252b5132 | 3156 | |
b3baf5d0 | 3157 | # host stuff: |
252b5132 | 3158 | |
b3baf5d0 NC |
3159 | ac_ext=c |
3160 | ac_cpp='$CPP $CPPFLAGS' | |
3161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3164 | if test -n "$ac_tool_prefix"; then | |
3165 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3166 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3167 | echo "$as_me:3167: checking for $ac_word" >&5 | |
3168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3169 | if test "${ac_cv_prog_CC+set}" = set; then | |
3170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3171 | else |
b3baf5d0 NC |
3172 | if test -n "$CC"; then |
3173 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3174 | else |
b3baf5d0 NC |
3175 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3176 | ac_dummy="$PATH" | |
3177 | for ac_dir in $ac_dummy; do | |
3178 | IFS=$ac_save_IFS | |
3179 | test -z "$ac_dir" && ac_dir=. | |
3180 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3181 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3182 | break | |
3183 | done | |
3184 | ||
252b5132 RH |
3185 | fi |
3186 | fi | |
b3baf5d0 NC |
3187 | CC=$ac_cv_prog_CC |
3188 | if test -n "$CC"; then | |
3189 | echo "$as_me:3189: result: $CC" >&5 | |
3190 | echo "${ECHO_T}$CC" >&6 | |
3191 | else | |
3192 | echo "$as_me:3192: result: no" >&5 | |
3193 | echo "${ECHO_T}no" >&6 | |
3194 | fi | |
252b5132 | 3195 | |
b3baf5d0 NC |
3196 | fi |
3197 | if test -z "$ac_cv_prog_CC"; then | |
3198 | ac_ct_CC=$CC | |
3199 | # Extract the first word of "gcc", so it can be a program name with args. | |
3200 | set dummy gcc; ac_word=$2 | |
3201 | echo "$as_me:3201: checking for $ac_word" >&5 | |
3202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3203 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3205 | else | |
3206 | if test -n "$ac_ct_CC"; then | |
3207 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3208 | else | |
3209 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3210 | ac_dummy="$PATH" | |
3211 | for ac_dir in $ac_dummy; do | |
3212 | IFS=$ac_save_IFS | |
3213 | test -z "$ac_dir" && ac_dir=. | |
3214 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3215 | ac_cv_prog_ac_ct_CC="gcc" | |
3216 | break | |
3217 | done | |
252b5132 | 3218 | |
b3baf5d0 NC |
3219 | fi |
3220 | fi | |
3221 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3222 | if test -n "$ac_ct_CC"; then | |
3223 | echo "$as_me:3223: result: $ac_ct_CC" >&5 | |
3224 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3225 | else | |
3226 | echo "$as_me:3226: result: no" >&5 | |
3227 | echo "${ECHO_T}no" >&6 | |
3228 | fi | |
252b5132 | 3229 | |
b3baf5d0 NC |
3230 | CC=$ac_ct_CC |
3231 | else | |
3232 | CC="$ac_cv_prog_CC" | |
3233 | fi | |
252b5132 | 3234 | |
b3baf5d0 NC |
3235 | if test -z "$CC"; then |
3236 | if test -n "$ac_tool_prefix"; then | |
3237 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3238 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3239 | echo "$as_me:3239: checking for $ac_word" >&5 | |
3240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3241 | if test "${ac_cv_prog_CC+set}" = set; then | |
3242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3243 | else |
3244 | if test -n "$CC"; then | |
3245 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3246 | else | |
b3baf5d0 NC |
3247 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3248 | ac_dummy="$PATH" | |
3249 | for ac_dir in $ac_dummy; do | |
3250 | IFS=$ac_save_IFS | |
3251 | test -z "$ac_dir" && ac_dir=. | |
3252 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3253 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3254 | break | |
3255 | done | |
3256 | ||
252b5132 RH |
3257 | fi |
3258 | fi | |
b3baf5d0 | 3259 | CC=$ac_cv_prog_CC |
252b5132 | 3260 | if test -n "$CC"; then |
b3baf5d0 NC |
3261 | echo "$as_me:3261: result: $CC" >&5 |
3262 | echo "${ECHO_T}$CC" >&6 | |
3263 | else | |
3264 | echo "$as_me:3264: result: no" >&5 | |
3265 | echo "${ECHO_T}no" >&6 | |
3266 | fi | |
3267 | ||
3268 | fi | |
3269 | if test -z "$ac_cv_prog_CC"; then | |
3270 | ac_ct_CC=$CC | |
3271 | # Extract the first word of "cc", so it can be a program name with args. | |
3272 | set dummy cc; ac_word=$2 | |
3273 | echo "$as_me:3273: checking for $ac_word" >&5 | |
3274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3275 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3277 | else | |
3278 | if test -n "$ac_ct_CC"; then | |
3279 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3280 | else | |
3281 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3282 | ac_dummy="$PATH" | |
3283 | for ac_dir in $ac_dummy; do | |
3284 | IFS=$ac_save_IFS | |
3285 | test -z "$ac_dir" && ac_dir=. | |
3286 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3287 | ac_cv_prog_ac_ct_CC="cc" | |
3288 | break | |
3289 | done | |
3290 | ||
3291 | fi | |
3292 | fi | |
3293 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3294 | if test -n "$ac_ct_CC"; then | |
3295 | echo "$as_me:3295: result: $ac_ct_CC" >&5 | |
3296 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 3297 | else |
b3baf5d0 NC |
3298 | echo "$as_me:3298: result: no" >&5 |
3299 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3300 | fi |
3301 | ||
b3baf5d0 NC |
3302 | CC=$ac_ct_CC |
3303 | else | |
3304 | CC="$ac_cv_prog_CC" | |
3305 | fi | |
3306 | ||
3307 | fi | |
252b5132 RH |
3308 | if test -z "$CC"; then |
3309 | # Extract the first word of "cc", so it can be a program name with args. | |
3310 | set dummy cc; ac_word=$2 | |
b3baf5d0 NC |
3311 | echo "$as_me:3311: checking for $ac_word" >&5 |
3312 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3313 | if test "${ac_cv_prog_CC+set}" = set; then | |
3314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3315 | else |
3316 | if test -n "$CC"; then | |
3317 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3318 | else | |
252b5132 | 3319 | ac_prog_rejected=no |
b3baf5d0 NC |
3320 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3321 | ac_dummy="$PATH" | |
3322 | for ac_dir in $ac_dummy; do | |
3323 | IFS=$ac_save_IFS | |
3324 | test -z "$ac_dir" && ac_dir=. | |
3325 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3326 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
3327 | ac_prog_rejected=yes | |
3328 | continue | |
3329 | fi | |
3330 | ac_cv_prog_CC="cc" | |
3331 | break | |
3332 | done | |
3333 | ||
252b5132 RH |
3334 | if test $ac_prog_rejected = yes; then |
3335 | # We found a bogon in the path, so make sure we never use it. | |
3336 | set dummy $ac_cv_prog_CC | |
3337 | shift | |
b3baf5d0 | 3338 | if test $# != 0; then |
252b5132 RH |
3339 | # We chose a different compiler from the bogus one. |
3340 | # However, it has the same basename, so the bogon will be chosen | |
3341 | # first if we set CC to just the basename; use the full file name. | |
3342 | shift | |
b3baf5d0 | 3343 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
252b5132 RH |
3344 | shift |
3345 | ac_cv_prog_CC="$@" | |
3346 | fi | |
3347 | fi | |
3348 | fi | |
3349 | fi | |
b3baf5d0 | 3350 | CC=$ac_cv_prog_CC |
252b5132 | 3351 | if test -n "$CC"; then |
b3baf5d0 NC |
3352 | echo "$as_me:3352: result: $CC" >&5 |
3353 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3354 | else |
b3baf5d0 NC |
3355 | echo "$as_me:3355: result: no" >&5 |
3356 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3357 | fi |
3358 | ||
b3baf5d0 NC |
3359 | fi |
3360 | if test -z "$CC"; then | |
3361 | if test -n "$ac_tool_prefix"; then | |
3362 | for ac_prog in cl | |
3363 | do | |
3364 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3365 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3366 | echo "$as_me:3366: checking for $ac_word" >&5 | |
3367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3368 | if test "${ac_cv_prog_CC+set}" = set; then | |
3369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3370 | else |
3371 | if test -n "$CC"; then | |
3372 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3373 | else | |
b3baf5d0 NC |
3374 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3375 | ac_dummy="$PATH" | |
3376 | for ac_dir in $ac_dummy; do | |
3377 | IFS=$ac_save_IFS | |
3378 | test -z "$ac_dir" && ac_dir=. | |
3379 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3380 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3381 | break | |
3382 | done | |
3383 | ||
252b5132 RH |
3384 | fi |
3385 | fi | |
b3baf5d0 | 3386 | CC=$ac_cv_prog_CC |
252b5132 | 3387 | if test -n "$CC"; then |
b3baf5d0 NC |
3388 | echo "$as_me:3388: result: $CC" >&5 |
3389 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3390 | else |
b3baf5d0 NC |
3391 | echo "$as_me:3391: result: no" >&5 |
3392 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3393 | fi |
3394 | ||
b3baf5d0 NC |
3395 | test -n "$CC" && break |
3396 | done | |
3397 | fi | |
3398 | if test -z "$CC"; then | |
3399 | ac_ct_CC=$CC | |
3400 | for ac_prog in cl | |
3401 | do | |
3402 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3403 | set dummy $ac_prog; ac_word=$2 | |
3404 | echo "$as_me:3404: checking for $ac_word" >&5 | |
3405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3406 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3408 | else | |
3409 | if test -n "$ac_ct_CC"; then | |
3410 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3411 | else | |
3412 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3413 | ac_dummy="$PATH" | |
3414 | for ac_dir in $ac_dummy; do | |
3415 | IFS=$ac_save_IFS | |
3416 | test -z "$ac_dir" && ac_dir=. | |
3417 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3418 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3419 | break | |
3420 | done | |
252b5132 | 3421 | |
b3baf5d0 NC |
3422 | fi |
3423 | fi | |
3424 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3425 | if test -n "$ac_ct_CC"; then | |
3426 | echo "$as_me:3426: result: $ac_ct_CC" >&5 | |
3427 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3428 | else | |
3429 | echo "$as_me:3429: result: no" >&5 | |
3430 | echo "${ECHO_T}no" >&6 | |
3431 | fi | |
252b5132 | 3432 | |
b3baf5d0 NC |
3433 | test -n "$ac_ct_CC" && break |
3434 | done | |
252b5132 | 3435 | |
b3baf5d0 | 3436 | CC=$ac_ct_CC |
252b5132 | 3437 | fi |
252b5132 | 3438 | |
252b5132 | 3439 | fi |
252b5132 | 3440 | |
b3baf5d0 NC |
3441 | test -z "$CC" && { { echo "$as_me:3441: error: no acceptable cc found in \$PATH" >&5 |
3442 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
3443 | { (exit 1); exit 1; }; } | |
3444 | ||
3445 | echo "$as_me:3445: checking whether we are using the GNU C compiler" >&5 | |
3446 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3447 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3449 | else |
b3baf5d0 NC |
3450 | cat >conftest.$ac_ext <<_ACEOF |
3451 | #line 3451 "configure" | |
3452 | #include "confdefs.h" | |
3453 | ||
3454 | int | |
3455 | main () | |
3456 | { | |
3457 | #ifndef __GNUC__ | |
3458 | choke me | |
252b5132 | 3459 | #endif |
252b5132 | 3460 | |
b3baf5d0 NC |
3461 | ; |
3462 | return 0; | |
3463 | } | |
3464 | _ACEOF | |
3465 | rm -f conftest.$ac_objext | |
3466 | if { (eval echo "$as_me:3466: \"$ac_compile\"") >&5 | |
3467 | (eval $ac_compile) 2>&5 | |
3468 | ac_status=$? | |
3469 | echo "$as_me:3469: \$? = $ac_status" >&5 | |
3470 | (exit $ac_status); } && | |
3471 | { ac_try='test -s conftest.$ac_objext' | |
3472 | { (eval echo "$as_me:3472: \"$ac_try\"") >&5 | |
3473 | (eval $ac_try) 2>&5 | |
3474 | ac_status=$? | |
3475 | echo "$as_me:3475: \$? = $ac_status" >&5 | |
3476 | (exit $ac_status); }; }; then | |
3477 | ac_compiler_gnu=yes | |
3478 | else | |
3479 | echo "$as_me: failed program was:" >&5 | |
3480 | cat conftest.$ac_ext >&5 | |
3481 | ac_compiler_gnu=no | |
3482 | fi | |
3483 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3484 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3485 | ||
3486 | fi | |
3487 | echo "$as_me:3487: result: $ac_cv_c_compiler_gnu" >&5 | |
3488 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3489 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3490 | ac_test_CFLAGS=${CFLAGS+set} | |
3491 | ac_save_CFLAGS=$CFLAGS | |
3492 | CFLAGS="-g" | |
3493 | echo "$as_me:3493: checking whether $CC accepts -g" >&5 | |
3494 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3495 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3497 | else | |
3498 | cat >conftest.$ac_ext <<_ACEOF | |
3499 | #line 3499 "configure" | |
3500 | #include "confdefs.h" | |
252b5132 | 3501 | |
b3baf5d0 NC |
3502 | int |
3503 | main () | |
3504 | { | |
252b5132 | 3505 | |
b3baf5d0 NC |
3506 | ; |
3507 | return 0; | |
3508 | } | |
3509 | _ACEOF | |
3510 | rm -f conftest.$ac_objext | |
3511 | if { (eval echo "$as_me:3511: \"$ac_compile\"") >&5 | |
3512 | (eval $ac_compile) 2>&5 | |
3513 | ac_status=$? | |
3514 | echo "$as_me:3514: \$? = $ac_status" >&5 | |
3515 | (exit $ac_status); } && | |
3516 | { ac_try='test -s conftest.$ac_objext' | |
3517 | { (eval echo "$as_me:3517: \"$ac_try\"") >&5 | |
3518 | (eval $ac_try) 2>&5 | |
3519 | ac_status=$? | |
3520 | echo "$as_me:3520: \$? = $ac_status" >&5 | |
3521 | (exit $ac_status); }; }; then | |
252b5132 RH |
3522 | ac_cv_prog_cc_g=yes |
3523 | else | |
b3baf5d0 NC |
3524 | echo "$as_me: failed program was:" >&5 |
3525 | cat conftest.$ac_ext >&5 | |
3526 | ac_cv_prog_cc_g=no | |
252b5132 | 3527 | fi |
b3baf5d0 | 3528 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 | 3529 | fi |
b3baf5d0 NC |
3530 | echo "$as_me:3530: result: $ac_cv_prog_cc_g" >&5 |
3531 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
252b5132 | 3532 | if test "$ac_test_CFLAGS" = set; then |
b3baf5d0 | 3533 | CFLAGS=$ac_save_CFLAGS |
252b5132 RH |
3534 | elif test $ac_cv_prog_cc_g = yes; then |
3535 | if test "$GCC" = yes; then | |
3536 | CFLAGS="-g -O2" | |
3537 | else | |
3538 | CFLAGS="-g" | |
3539 | fi | |
3540 | else | |
3541 | if test "$GCC" = yes; then | |
3542 | CFLAGS="-O2" | |
3543 | else | |
3544 | CFLAGS= | |
3545 | fi | |
3546 | fi | |
b3baf5d0 NC |
3547 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3548 | # in C++ we need to declare it. In case someone uses the same compiler | |
3549 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3550 | # the declaration of exit, since it's the most demanding environment. | |
3551 | cat >conftest.$ac_ext <<_ACEOF | |
3552 | #ifndef __cplusplus | |
3553 | choke me | |
3554 | #endif | |
3555 | _ACEOF | |
3556 | rm -f conftest.$ac_objext | |
3557 | if { (eval echo "$as_me:3557: \"$ac_compile\"") >&5 | |
3558 | (eval $ac_compile) 2>&5 | |
3559 | ac_status=$? | |
3560 | echo "$as_me:3560: \$? = $ac_status" >&5 | |
3561 | (exit $ac_status); } && | |
3562 | { ac_try='test -s conftest.$ac_objext' | |
3563 | { (eval echo "$as_me:3563: \"$ac_try\"") >&5 | |
3564 | (eval $ac_try) 2>&5 | |
3565 | ac_status=$? | |
3566 | echo "$as_me:3566: \$? = $ac_status" >&5 | |
3567 | (exit $ac_status); }; }; then | |
3568 | for ac_declaration in \ | |
3569 | ''\ | |
3570 | '#include <stdlib.h>' \ | |
3571 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3572 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3573 | 'extern "C" void exit (int) throw ();' \ | |
3574 | 'extern "C" void exit (int);' \ | |
3575 | 'void exit (int);' | |
3576 | do | |
3577 | cat >conftest.$ac_ext <<_ACEOF | |
3578 | #line 3578 "configure" | |
3579 | #include "confdefs.h" | |
3580 | #include <stdlib.h> | |
3581 | $ac_declaration | |
3582 | int | |
3583 | main () | |
3584 | { | |
3585 | exit (42); | |
3586 | ; | |
3587 | return 0; | |
3588 | } | |
3589 | _ACEOF | |
3590 | rm -f conftest.$ac_objext | |
3591 | if { (eval echo "$as_me:3591: \"$ac_compile\"") >&5 | |
3592 | (eval $ac_compile) 2>&5 | |
3593 | ac_status=$? | |
3594 | echo "$as_me:3594: \$? = $ac_status" >&5 | |
3595 | (exit $ac_status); } && | |
3596 | { ac_try='test -s conftest.$ac_objext' | |
3597 | { (eval echo "$as_me:3597: \"$ac_try\"") >&5 | |
3598 | (eval $ac_try) 2>&5 | |
3599 | ac_status=$? | |
3600 | echo "$as_me:3600: \$? = $ac_status" >&5 | |
3601 | (exit $ac_status); }; }; then | |
3602 | : | |
3603 | else | |
3604 | echo "$as_me: failed program was:" >&5 | |
3605 | cat conftest.$ac_ext >&5 | |
3606 | continue | |
3607 | fi | |
3608 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3609 | cat >conftest.$ac_ext <<_ACEOF | |
3610 | #line 3610 "configure" | |
3611 | #include "confdefs.h" | |
3612 | $ac_declaration | |
3613 | int | |
3614 | main () | |
3615 | { | |
3616 | exit (42); | |
3617 | ; | |
3618 | return 0; | |
3619 | } | |
3620 | _ACEOF | |
3621 | rm -f conftest.$ac_objext | |
3622 | if { (eval echo "$as_me:3622: \"$ac_compile\"") >&5 | |
3623 | (eval $ac_compile) 2>&5 | |
3624 | ac_status=$? | |
3625 | echo "$as_me:3625: \$? = $ac_status" >&5 | |
3626 | (exit $ac_status); } && | |
3627 | { ac_try='test -s conftest.$ac_objext' | |
3628 | { (eval echo "$as_me:3628: \"$ac_try\"") >&5 | |
3629 | (eval $ac_try) 2>&5 | |
3630 | ac_status=$? | |
3631 | echo "$as_me:3631: \$? = $ac_status" >&5 | |
3632 | (exit $ac_status); }; }; then | |
3633 | break | |
3634 | else | |
3635 | echo "$as_me: failed program was:" >&5 | |
3636 | cat conftest.$ac_ext >&5 | |
3637 | fi | |
3638 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3639 | done | |
3640 | echo '#ifdef __cplusplus' >>confdefs.h | |
3641 | echo $ac_declaration >>confdefs.h | |
3642 | echo '#endif' >>confdefs.h | |
252b5132 | 3643 | |
b3baf5d0 NC |
3644 | else |
3645 | echo "$as_me: failed program was:" >&5 | |
3646 | cat conftest.$ac_ext >&5 | |
3647 | fi | |
3648 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3649 | ac_ext=c | |
3650 | ac_cpp='$CPP $CPPFLAGS' | |
3651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
252b5132 RH |
3654 | |
3655 | ALL_LINGUAS= | |
b3baf5d0 NC |
3656 | if test -n "$ac_tool_prefix"; then |
3657 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3658 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3659 | echo "$as_me:3659: checking for $ac_word" >&5 | |
3660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3661 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3663 | else | |
3664 | if test -n "$RANLIB"; then | |
3665 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3666 | else | |
3667 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3668 | ac_dummy="$PATH" | |
3669 | for ac_dir in $ac_dummy; do | |
3670 | IFS=$ac_save_IFS | |
3671 | test -z "$ac_dir" && ac_dir=. | |
3672 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3673 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3674 | break | |
3675 | done | |
3676 | ||
3677 | fi | |
3678 | fi | |
3679 | RANLIB=$ac_cv_prog_RANLIB | |
3680 | if test -n "$RANLIB"; then | |
3681 | echo "$as_me:3681: result: $RANLIB" >&5 | |
3682 | echo "${ECHO_T}$RANLIB" >&6 | |
3683 | else | |
3684 | echo "$as_me:3684: result: no" >&5 | |
3685 | echo "${ECHO_T}no" >&6 | |
3686 | fi | |
3687 | ||
3688 | fi | |
3689 | if test -z "$ac_cv_prog_RANLIB"; then | |
3690 | ac_ct_RANLIB=$RANLIB | |
3691 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3692 | set dummy ranlib; ac_word=$2 | |
3693 | echo "$as_me:3693: checking for $ac_word" >&5 | |
3694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3695 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3697 | else | |
3698 | if test -n "$ac_ct_RANLIB"; then | |
3699 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3700 | else | |
3701 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3702 | ac_dummy="$PATH" | |
3703 | for ac_dir in $ac_dummy; do | |
3704 | IFS=$ac_save_IFS | |
3705 | test -z "$ac_dir" && ac_dir=. | |
3706 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3707 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3708 | break | |
3709 | done | |
3710 | ||
3711 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3712 | fi | |
3713 | fi | |
3714 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3715 | if test -n "$ac_ct_RANLIB"; then | |
3716 | echo "$as_me:3716: result: $ac_ct_RANLIB" >&5 | |
3717 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3718 | else | |
3719 | echo "$as_me:3719: result: no" >&5 | |
3720 | echo "${ECHO_T}no" >&6 | |
3721 | fi | |
3722 | ||
3723 | RANLIB=$ac_ct_RANLIB | |
3724 | else | |
3725 | RANLIB="$ac_cv_prog_RANLIB" | |
3726 | fi | |
3727 | ||
3728 | ac_ext=c | |
3729 | ac_cpp='$CPP $CPPFLAGS' | |
3730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3733 | echo "$as_me:3733: checking how to run the C preprocessor" >&5 | |
3734 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
252b5132 RH |
3735 | # On Suns, sometimes $CPP names a directory. |
3736 | if test -n "$CPP" && test -d "$CPP"; then | |
3737 | CPP= | |
3738 | fi | |
3739 | if test -z "$CPP"; then | |
b3baf5d0 NC |
3740 | if test "${ac_cv_prog_CPP+set}" = set; then |
3741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3742 | else |
b3baf5d0 NC |
3743 | # Double quotes because CPP needs to be expanded |
3744 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3745 | do | |
3746 | # Use a header file that comes with gcc, so configuring glibc | |
3747 | # with a fresh cross-compiler works. | |
3748 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3749 | # not just through cpp. "Syntax error" is here to catch this case. | |
3750 | ac_c_preproc_warn_flag=maybe | |
3751 | cat >conftest.$ac_ext <<_ACEOF | |
3752 | #line 3752 "configure" | |
252b5132 RH |
3753 | #include "confdefs.h" |
3754 | #include <assert.h> | |
b3baf5d0 NC |
3755 | Syntax error |
3756 | _ACEOF | |
3757 | if { (eval echo "$as_me:3757: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3758 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3759 | ac_status=$? | |
3760 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3761 | rm -f conftest.er1 | |
3762 | cat conftest.err >&5 | |
3763 | echo "$as_me:3763: \$? = $ac_status" >&5 | |
3764 | (exit $ac_status); } >/dev/null; then | |
3765 | if test -s conftest.err; then | |
3766 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3767 | else | |
3768 | ac_cpp_err= | |
3769 | fi | |
252b5132 | 3770 | else |
b3baf5d0 NC |
3771 | ac_cpp_err=yes |
3772 | fi | |
3773 | if test -z "$ac_cpp_err"; then | |
3774 | # Now check whether non-existent headers can be detected and how | |
3775 | # Skip if ac_cpp_err is not empty - ac_cpp is broken | |
3776 | if test -z "$ac_cpp_err"; then | |
3777 | cat >conftest.$ac_ext <<_ACEOF | |
3778 | #line 3778 "configure" | |
252b5132 | 3779 | #include "confdefs.h" |
b3baf5d0 NC |
3780 | #include <ac_nonexistent.h> |
3781 | _ACEOF | |
3782 | if { (eval echo "$as_me:3782: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3783 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3784 | ac_status=$? | |
3785 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3786 | rm -f conftest.er1 | |
3787 | cat conftest.err >&5 | |
3788 | echo "$as_me:3788: \$? = $ac_status" >&5 | |
3789 | (exit $ac_status); } >/dev/null; then | |
3790 | if test -s conftest.err; then | |
3791 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3792 | else | |
3793 | ac_cpp_err= | |
3794 | fi | |
3795 | else | |
3796 | ac_cpp_err=yes | |
3797 | fi | |
3798 | if test -z "$ac_cpp_err"; then | |
3799 | # cannot detect missing includes at all | |
3800 | ac_cpp_err=yes | |
252b5132 | 3801 | else |
b3baf5d0 | 3802 | echo "$as_me: failed program was:" >&5 |
252b5132 | 3803 | cat conftest.$ac_ext >&5 |
b3baf5d0 NC |
3804 | if test "x$ac_cpp_err" = xmaybe; then |
3805 | ac_c_preproc_warn_flag=yes | |
3806 | else | |
3807 | ac_c_preproc_warn_flag= | |
3808 | fi | |
3809 | ac_cpp_err= | |
252b5132 | 3810 | fi |
b3baf5d0 | 3811 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 3812 | fi |
b3baf5d0 NC |
3813 | else |
3814 | echo "$as_me: failed program was:" >&5 | |
3815 | cat conftest.$ac_ext >&5 | |
3816 | ||
252b5132 | 3817 | fi |
b3baf5d0 NC |
3818 | rm -f conftest.err conftest.$ac_ext |
3819 | if test -z "$ac_cpp_err"; then | |
3820 | break | |
3821 | fi | |
3822 | done | |
3823 | ac_cv_prog_CPP=$CPP | |
3824 | ||
252b5132 | 3825 | fi |
b3baf5d0 NC |
3826 | CPP=$ac_cv_prog_CPP |
3827 | else | |
3828 | # Use a header file that comes with gcc, so configuring glibc | |
3829 | # with a fresh cross-compiler works. | |
3830 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3831 | # not just through cpp. "Syntax error" is here to catch this case. | |
3832 | ac_c_preproc_warn_flag=maybe | |
3833 | cat >conftest.$ac_ext <<_ACEOF | |
3834 | #line 3834 "configure" | |
3835 | #include "confdefs.h" | |
3836 | #include <assert.h> | |
3837 | Syntax error | |
3838 | _ACEOF | |
3839 | if { (eval echo "$as_me:3839: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3841 | ac_status=$? | |
3842 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3843 | rm -f conftest.er1 | |
3844 | cat conftest.err >&5 | |
3845 | echo "$as_me:3845: \$? = $ac_status" >&5 | |
3846 | (exit $ac_status); } >/dev/null; then | |
3847 | if test -s conftest.err; then | |
3848 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3849 | else | |
3850 | ac_cpp_err= | |
3851 | fi | |
252b5132 | 3852 | else |
b3baf5d0 | 3853 | ac_cpp_err=yes |
252b5132 | 3854 | fi |
b3baf5d0 NC |
3855 | if test -z "$ac_cpp_err"; then |
3856 | # Now check whether non-existent headers can be detected and how | |
3857 | # Skip if ac_cpp_err is not empty - ac_cpp is broken | |
3858 | if test -z "$ac_cpp_err"; then | |
3859 | cat >conftest.$ac_ext <<_ACEOF | |
3860 | #line 3860 "configure" | |
3861 | #include "confdefs.h" | |
3862 | #include <ac_nonexistent.h> | |
3863 | _ACEOF | |
3864 | if { (eval echo "$as_me:3864: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3865 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3866 | ac_status=$? | |
3867 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3868 | rm -f conftest.er1 | |
3869 | cat conftest.err >&5 | |
3870 | echo "$as_me:3870: \$? = $ac_status" >&5 | |
3871 | (exit $ac_status); } >/dev/null; then | |
3872 | if test -s conftest.err; then | |
3873 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3874 | else | |
3875 | ac_cpp_err= | |
3876 | fi | |
ac48eca1 | 3877 | else |
b3baf5d0 NC |
3878 | ac_cpp_err=yes |
3879 | fi | |
3880 | if test -z "$ac_cpp_err"; then | |
3881 | # cannot detect missing includes at all | |
3882 | ac_cpp_err=yes | |
ac48eca1 | 3883 | else |
b3baf5d0 NC |
3884 | echo "$as_me: failed program was:" >&5 |
3885 | cat conftest.$ac_ext >&5 | |
3886 | if test "x$ac_cpp_err" = xmaybe; then | |
3887 | ac_c_preproc_warn_flag=yes | |
3888 | else | |
3889 | ac_c_preproc_warn_flag= | |
ac48eca1 | 3890 | fi |
b3baf5d0 | 3891 | ac_cpp_err= |
ac48eca1 | 3892 | fi |
b3baf5d0 | 3893 | rm -f conftest.err conftest.$ac_ext |
ac48eca1 | 3894 | fi |
ac48eca1 | 3895 | else |
b3baf5d0 NC |
3896 | echo "$as_me: failed program was:" >&5 |
3897 | cat conftest.$ac_ext >&5 | |
3898 | ||
ac48eca1 | 3899 | fi |
b3baf5d0 NC |
3900 | rm -f conftest.err conftest.$ac_ext |
3901 | ac_cv_prog_CPP=$CPP | |
3902 | fi | |
3903 | echo "$as_me:3903: result: $CPP" >&5 | |
3904 | echo "${ECHO_T}$CPP" >&6 | |
3905 | if test -n "$ac_cpp_err"; then | |
3906 | { { echo "$as_me:3906: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
3907 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
3908 | { (exit 1); exit 1; }; } | |
3909 | fi | |
3910 | ac_ext=c | |
3911 | ac_cpp='$CPP $CPPFLAGS' | |
3912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3915 | |
b3baf5d0 NC |
3916 | echo "$as_me:3916: checking for ANSI C header files" >&5 |
3917 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3918 | if test "${ac_cv_header_stdc+set}" = set; then | |
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3920 | else |
b3baf5d0 NC |
3921 | cat >conftest.$ac_ext <<_ACEOF |
3922 | #line 3922 "configure" | |
252b5132 RH |
3923 | #include "confdefs.h" |
3924 | #include <stdlib.h> | |
3925 | #include <stdarg.h> | |
3926 | #include <string.h> | |
3927 | #include <float.h> | |
b3baf5d0 NC |
3928 | |
3929 | _ACEOF | |
3930 | if { (eval echo "$as_me:3930: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3931 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3932 | ac_status=$? | |
3933 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3934 | rm -f conftest.er1 | |
3935 | cat conftest.err >&5 | |
3936 | echo "$as_me:3936: \$? = $ac_status" >&5 | |
3937 | (exit $ac_status); } >/dev/null; then | |
3938 | if test -s conftest.err; then | |
3939 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3940 | else | |
3941 | ac_cpp_err= | |
3942 | fi | |
3943 | else | |
3944 | ac_cpp_err=yes | |
3945 | fi | |
3946 | if test -z "$ac_cpp_err"; then | |
252b5132 RH |
3947 | ac_cv_header_stdc=yes |
3948 | else | |
b3baf5d0 | 3949 | echo "$as_me: failed program was:" >&5 |
252b5132 | 3950 | cat conftest.$ac_ext >&5 |
252b5132 RH |
3951 | ac_cv_header_stdc=no |
3952 | fi | |
b3baf5d0 | 3953 | rm -f conftest.err conftest.$ac_ext |
252b5132 RH |
3954 | |
3955 | if test $ac_cv_header_stdc = yes; then | |
3956 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b3baf5d0 NC |
3957 | cat >conftest.$ac_ext <<_ACEOF |
3958 | #line 3958 "configure" | |
252b5132 RH |
3959 | #include "confdefs.h" |
3960 | #include <string.h> | |
b3baf5d0 NC |
3961 | |
3962 | _ACEOF | |
252b5132 RH |
3963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3964 | egrep "memchr" >/dev/null 2>&1; then | |
3965 | : | |
3966 | else | |
252b5132 RH |
3967 | ac_cv_header_stdc=no |
3968 | fi | |
3969 | rm -f conftest* | |
3970 | ||
3971 | fi | |
3972 | ||
3973 | if test $ac_cv_header_stdc = yes; then | |
3974 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b3baf5d0 NC |
3975 | cat >conftest.$ac_ext <<_ACEOF |
3976 | #line 3976 "configure" | |
252b5132 RH |
3977 | #include "confdefs.h" |
3978 | #include <stdlib.h> | |
b3baf5d0 NC |
3979 | |
3980 | _ACEOF | |
252b5132 RH |
3981 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3982 | egrep "free" >/dev/null 2>&1; then | |
3983 | : | |
3984 | else | |
252b5132 RH |
3985 | ac_cv_header_stdc=no |
3986 | fi | |
3987 | rm -f conftest* | |
3988 | ||
3989 | fi | |
3990 | ||
3991 | if test $ac_cv_header_stdc = yes; then | |
3992 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b3baf5d0 | 3993 | if test "$cross_compiling" = yes; then |
252b5132 RH |
3994 | : |
3995 | else | |
b3baf5d0 NC |
3996 | cat >conftest.$ac_ext <<_ACEOF |
3997 | #line 3997 "configure" | |
252b5132 RH |
3998 | #include "confdefs.h" |
3999 | #include <ctype.h> | |
b3baf5d0 NC |
4000 | #if ((' ' & 0x0FF) == 0x020) |
4001 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4002 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4003 | #else | |
4004 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4005 | || ('j' <= (c) && (c) <= 'r') \ | |
4006 | || ('s' <= (c) && (c) <= 'z')) | |
4007 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4008 | #endif | |
252b5132 | 4009 | |
b3baf5d0 NC |
4010 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4011 | int | |
4012 | main () | |
4013 | { | |
4014 | int i; | |
4015 | for (i = 0; i < 256; i++) | |
4016 | if (XOR (islower (i), ISLOWER (i)) | |
4017 | || toupper (i) != TOUPPER (i)) | |
4018 | exit(2); | |
4019 | exit (0); | |
4020 | } | |
4021 | _ACEOF | |
4022 | rm -f conftest$ac_exeext | |
4023 | if { (eval echo "$as_me:4023: \"$ac_link\"") >&5 | |
4024 | (eval $ac_link) 2>&5 | |
4025 | ac_status=$? | |
4026 | echo "$as_me:4026: \$? = $ac_status" >&5 | |
4027 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4028 | { (eval echo "$as_me:4028: \"$ac_try\"") >&5 | |
4029 | (eval $ac_try) 2>&5 | |
4030 | ac_status=$? | |
4031 | echo "$as_me:4031: \$? = $ac_status" >&5 | |
4032 | (exit $ac_status); }; }; then | |
252b5132 RH |
4033 | : |
4034 | else | |
b3baf5d0 NC |
4035 | echo "$as_me: program exited with status $ac_status" >&5 |
4036 | echo "$as_me: failed program was:" >&5 | |
4037 | cat conftest.$ac_ext >&5 | |
4038 | ac_cv_header_stdc=no | |
252b5132 | 4039 | fi |
b3baf5d0 | 4040 | rm -f conftest$ac_exeext conftest.$ac_ext |
252b5132 | 4041 | fi |
252b5132 RH |
4042 | fi |
4043 | fi | |
b3baf5d0 NC |
4044 | echo "$as_me:4044: result: $ac_cv_header_stdc" >&5 |
4045 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
252b5132 | 4046 | if test $ac_cv_header_stdc = yes; then |
b3baf5d0 NC |
4047 | |
4048 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
4049 | #define STDC_HEADERS 1 |
4050 | EOF | |
4051 | ||
4052 | fi | |
4053 | ||
b3baf5d0 NC |
4054 | echo "$as_me:4054: checking for $CC option to accept ANSI C" >&5 |
4055 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4056 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4058 | else |
b3baf5d0 NC |
4059 | ac_cv_prog_cc_stdc=no |
4060 | ac_save_CC=$CC | |
4061 | cat >conftest.$ac_ext <<_ACEOF | |
4062 | #line 4062 "configure" | |
252b5132 | 4063 | #include "confdefs.h" |
b3baf5d0 NC |
4064 | #include <stdarg.h> |
4065 | #include <stdio.h> | |
4066 | #include <sys/types.h> | |
4067 | #include <sys/stat.h> | |
4068 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4069 | struct buf { int x; }; | |
4070 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4071 | static char *e (p, i) | |
4072 | char **p; | |
4073 | int i; | |
4074 | { | |
4075 | return p[i]; | |
252b5132 | 4076 | } |
b3baf5d0 NC |
4077 | static char *f (char * (*g) (char **, int), char **p, ...) |
4078 | { | |
4079 | char *s; | |
4080 | va_list v; | |
4081 | va_start (v,p); | |
4082 | s = g (p, va_arg (v,int)); | |
4083 | va_end (v); | |
4084 | return s; | |
252b5132 | 4085 | } |
b3baf5d0 NC |
4086 | int test (int i, double x); |
4087 | struct s1 {int (*f) (int a);}; | |
4088 | struct s2 {int (*f) (double a);}; | |
4089 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4090 | int argc; | |
4091 | char **argv; | |
4092 | int | |
4093 | main () | |
4094 | { | |
4095 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4096 | ; | |
4097 | return 0; | |
252b5132 | 4098 | } |
b3baf5d0 NC |
4099 | _ACEOF |
4100 | # Don't try gcc -ansi; that turns off useful extensions and | |
4101 | # breaks some systems' header files. | |
4102 | # AIX -qlanglvl=ansi | |
4103 | # Ultrix and OSF/1 -std1 | |
4104 | # HP-UX 10.20 and later -Ae | |
4105 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4106 | # SVR4 -Xc -D__EXTENSIONS__ | |
4107 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4108 | do | |
4109 | CC="$ac_save_CC $ac_arg" | |
4110 | rm -f conftest.$ac_objext | |
4111 | if { (eval echo "$as_me:4111: \"$ac_compile\"") >&5 | |
4112 | (eval $ac_compile) 2>&5 | |
4113 | ac_status=$? | |
4114 | echo "$as_me:4114: \$? = $ac_status" >&5 | |
4115 | (exit $ac_status); } && | |
4116 | { ac_try='test -s conftest.$ac_objext' | |
4117 | { (eval echo "$as_me:4117: \"$ac_try\"") >&5 | |
4118 | (eval $ac_try) 2>&5 | |
4119 | ac_status=$? | |
4120 | echo "$as_me:4120: \$? = $ac_status" >&5 | |
4121 | (exit $ac_status); }; }; then | |
4122 | ac_cv_prog_cc_stdc=$ac_arg | |
4123 | break | |
4124 | else | |
4125 | echo "$as_me: failed program was:" >&5 | |
4126 | cat conftest.$ac_ext >&5 | |
4127 | fi | |
4128 | rm -f conftest.$ac_objext | |
4129 | done | |
4130 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4131 | CC=$ac_save_CC | |
252b5132 | 4132 | |
b3baf5d0 NC |
4133 | fi |
4134 | ||
4135 | case "x$ac_cv_prog_cc_stdc" in | |
4136 | x|xno) | |
4137 | echo "$as_me:4137: result: none needed" >&5 | |
4138 | echo "${ECHO_T}none needed" >&6 ;; | |
4139 | *) | |
4140 | echo "$as_me:4140: result: $ac_cv_prog_cc_stdc" >&5 | |
4141 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4142 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4143 | esac | |
4144 | ||
4145 | echo "$as_me:4145: checking for an ANSI C-conforming const" >&5 | |
4146 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4147 | if test "${ac_cv_c_const+set}" = set; then | |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4149 | else | |
4150 | cat >conftest.$ac_ext <<_ACEOF | |
4151 | #line 4151 "configure" | |
4152 | #include "confdefs.h" | |
4153 | ||
4154 | int | |
4155 | main () | |
4156 | { | |
4157 | /* FIXME: Include the comments suggested by Paul. */ | |
4158 | #ifndef __cplusplus | |
4159 | /* Ultrix mips cc rejects this. */ | |
4160 | typedef int charset[2]; | |
4161 | const charset x; | |
4162 | /* SunOS 4.1.1 cc rejects this. */ | |
4163 | char const *const *ccp; | |
4164 | char **p; | |
4165 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4166 | struct point {int x, y;}; | |
4167 | static struct point const zero = {0,0}; | |
4168 | /* AIX XL C 1.02.0.0 rejects this. | |
4169 | It does not let you subtract one const X* pointer from another in | |
4170 | an arm of an if-expression whose if-part is not a constant | |
4171 | expression */ | |
4172 | const char *g = "string"; | |
4173 | ccp = &g + (g ? g-g : 0); | |
4174 | /* HPUX 7.0 cc rejects these. */ | |
4175 | ++ccp; | |
4176 | p = (char**) ccp; | |
4177 | ccp = (char const *const *) p; | |
4178 | { /* SCO 3.2v4 cc rejects this. */ | |
4179 | char *t; | |
4180 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4181 | ||
4182 | *t++ = 0; | |
4183 | } | |
4184 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4185 | int x[] = {25, 17}; | |
4186 | const int *foo = &x[0]; | |
4187 | ++foo; | |
4188 | } | |
4189 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4190 | typedef const int *iptr; | |
4191 | iptr p = 0; | |
4192 | ++p; | |
4193 | } | |
4194 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4195 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4196 | struct s { int j; const int *ap[3]; }; | |
4197 | struct s *b; b->j = 5; | |
4198 | } | |
4199 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4200 | const int foo = 10; | |
4201 | } | |
4202 | #endif | |
4203 | ||
4204 | ; | |
4205 | return 0; | |
4206 | } | |
4207 | _ACEOF | |
4208 | rm -f conftest.$ac_objext | |
4209 | if { (eval echo "$as_me:4209: \"$ac_compile\"") >&5 | |
4210 | (eval $ac_compile) 2>&5 | |
4211 | ac_status=$? | |
4212 | echo "$as_me:4212: \$? = $ac_status" >&5 | |
4213 | (exit $ac_status); } && | |
4214 | { ac_try='test -s conftest.$ac_objext' | |
4215 | { (eval echo "$as_me:4215: \"$ac_try\"") >&5 | |
4216 | (eval $ac_try) 2>&5 | |
4217 | ac_status=$? | |
4218 | echo "$as_me:4218: \$? = $ac_status" >&5 | |
4219 | (exit $ac_status); }; }; then | |
252b5132 RH |
4220 | ac_cv_c_const=yes |
4221 | else | |
b3baf5d0 NC |
4222 | echo "$as_me: failed program was:" >&5 |
4223 | cat conftest.$ac_ext >&5 | |
4224 | ac_cv_c_const=no | |
252b5132 | 4225 | fi |
b3baf5d0 | 4226 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 | 4227 | fi |
b3baf5d0 NC |
4228 | echo "$as_me:4228: result: $ac_cv_c_const" >&5 |
4229 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
252b5132 | 4230 | if test $ac_cv_c_const = no; then |
b3baf5d0 NC |
4231 | |
4232 | cat >>confdefs.h <<\EOF | |
4233 | #define const | |
252b5132 RH |
4234 | EOF |
4235 | ||
4236 | fi | |
4237 | ||
b3baf5d0 NC |
4238 | echo "$as_me:4238: checking for inline" >&5 |
4239 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4240 | if test "${ac_cv_c_inline+set}" = set; then | |
4241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4242 | else |
4243 | ac_cv_c_inline=no | |
4244 | for ac_kw in inline __inline__ __inline; do | |
b3baf5d0 NC |
4245 | cat >conftest.$ac_ext <<_ACEOF |
4246 | #line 4246 "configure" | |
252b5132 | 4247 | #include "confdefs.h" |
b3baf5d0 NC |
4248 | #ifndef __cplusplus |
4249 | static $ac_kw int static_foo () {return 0; } | |
4250 | $ac_kw int foo () {return 0; } | |
4251 | #endif | |
252b5132 | 4252 | |
b3baf5d0 NC |
4253 | _ACEOF |
4254 | rm -f conftest.$ac_objext | |
4255 | if { (eval echo "$as_me:4255: \"$ac_compile\"") >&5 | |
4256 | (eval $ac_compile) 2>&5 | |
4257 | ac_status=$? | |
4258 | echo "$as_me:4258: \$? = $ac_status" >&5 | |
4259 | (exit $ac_status); } && | |
4260 | { ac_try='test -s conftest.$ac_objext' | |
4261 | { (eval echo "$as_me:4261: \"$ac_try\"") >&5 | |
4262 | (eval $ac_try) 2>&5 | |
4263 | ac_status=$? | |
4264 | echo "$as_me:4264: \$? = $ac_status" >&5 | |
4265 | (exit $ac_status); }; }; then | |
252b5132 RH |
4266 | ac_cv_c_inline=$ac_kw; break |
4267 | else | |
b3baf5d0 NC |
4268 | echo "$as_me: failed program was:" >&5 |
4269 | cat conftest.$ac_ext >&5 | |
252b5132 | 4270 | fi |
b3baf5d0 | 4271 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
4272 | done |
4273 | ||
4274 | fi | |
b3baf5d0 NC |
4275 | echo "$as_me:4275: result: $ac_cv_c_inline" >&5 |
4276 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
4277 | case $ac_cv_c_inline in | |
252b5132 | 4278 | inline | yes) ;; |
b3baf5d0 NC |
4279 | no) |
4280 | cat >>confdefs.h <<\EOF | |
4281 | #define inline | |
252b5132 RH |
4282 | EOF |
4283 | ;; | |
b3baf5d0 | 4284 | *) cat >>confdefs.h <<EOF |
252b5132 RH |
4285 | #define inline $ac_cv_c_inline |
4286 | EOF | |
4287 | ;; | |
4288 | esac | |
4289 | ||
b3baf5d0 NC |
4290 | for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h |
4291 | do | |
4292 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
4293 | echo "$as_me:4293: checking for $ac_header" >&5 | |
4294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4295 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4297 | else | |
4298 | cat >conftest.$ac_ext <<_ACEOF | |
4299 | #line 4299 "configure" | |
252b5132 | 4300 | #include "confdefs.h" |
b3baf5d0 NC |
4301 | #include <$ac_header> |
4302 | _ACEOF | |
4303 | if { (eval echo "$as_me:4303: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4304 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4305 | ac_status=$? | |
4306 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4307 | rm -f conftest.er1 | |
4308 | cat conftest.err >&5 | |
4309 | echo "$as_me:4309: \$? = $ac_status" >&5 | |
4310 | (exit $ac_status); } >/dev/null; then | |
4311 | if test -s conftest.err; then | |
4312 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4313 | else | |
4314 | ac_cpp_err= | |
4315 | fi | |
4316 | else | |
4317 | ac_cpp_err=yes | |
4318 | fi | |
4319 | if test -z "$ac_cpp_err"; then | |
4320 | eval "$ac_ac_Header=yes" | |
4321 | else | |
4322 | echo "$as_me: failed program was:" >&5 | |
4323 | cat conftest.$ac_ext >&5 | |
4324 | eval "$ac_ac_Header=no" | |
4325 | fi | |
4326 | rm -f conftest.err conftest.$ac_ext | |
4327 | fi | |
4328 | echo "$as_me:4328: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
4329 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
4330 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
4331 | cat >>confdefs.h <<EOF | |
4332 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
252b5132 | 4333 | EOF |
b3baf5d0 NC |
4334 | |
4335 | fi | |
4336 | done | |
4337 | ||
4338 | echo "$as_me:4338: checking for off_t" >&5 | |
4339 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4340 | if test "${ac_cv_type_off_t+set}" = set; then | |
4341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4342 | else | |
4343 | cat >conftest.$ac_ext <<_ACEOF | |
4344 | #line 4344 "configure" | |
4345 | #include "confdefs.h" | |
4346 | $ac_includes_default | |
4347 | int | |
4348 | main () | |
4349 | { | |
4350 | if ((off_t *) 0) | |
4351 | return 0; | |
4352 | if (sizeof (off_t)) | |
4353 | return 0; | |
4354 | ; | |
4355 | return 0; | |
4356 | } | |
4357 | _ACEOF | |
4358 | rm -f conftest.$ac_objext | |
4359 | if { (eval echo "$as_me:4359: \"$ac_compile\"") >&5 | |
4360 | (eval $ac_compile) 2>&5 | |
4361 | ac_status=$? | |
4362 | echo "$as_me:4362: \$? = $ac_status" >&5 | |
4363 | (exit $ac_status); } && | |
4364 | { ac_try='test -s conftest.$ac_objext' | |
4365 | { (eval echo "$as_me:4365: \"$ac_try\"") >&5 | |
4366 | (eval $ac_try) 2>&5 | |
4367 | ac_status=$? | |
4368 | echo "$as_me:4368: \$? = $ac_status" >&5 | |
4369 | (exit $ac_status); }; }; then | |
653f71ca | 4370 | ac_cv_type_off_t=yes |
252b5132 | 4371 | else |
b3baf5d0 NC |
4372 | echo "$as_me: failed program was:" >&5 |
4373 | cat conftest.$ac_ext >&5 | |
4374 | ac_cv_type_off_t=no | |
252b5132 | 4375 | fi |
b3baf5d0 | 4376 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 | 4377 | fi |
b3baf5d0 NC |
4378 | echo "$as_me:4378: result: $ac_cv_type_off_t" >&5 |
4379 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4380 | if test $ac_cv_type_off_t = yes; then | |
4381 | : | |
4382 | else | |
4383 | ||
4384 | cat >>confdefs.h <<EOF | |
252b5132 RH |
4385 | #define off_t long |
4386 | EOF | |
4387 | ||
4388 | fi | |
4389 | ||
b3baf5d0 NC |
4390 | echo "$as_me:4390: checking for size_t" >&5 |
4391 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
4392 | if test "${ac_cv_type_size_t+set}" = set; then | |
4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4394 | else |
b3baf5d0 NC |
4395 | cat >conftest.$ac_ext <<_ACEOF |
4396 | #line 4396 "configure" | |
252b5132 | 4397 | #include "confdefs.h" |
b3baf5d0 NC |
4398 | $ac_includes_default |
4399 | int | |
4400 | main () | |
4401 | { | |
4402 | if ((size_t *) 0) | |
4403 | return 0; | |
4404 | if (sizeof (size_t)) | |
4405 | return 0; | |
4406 | ; | |
4407 | return 0; | |
4408 | } | |
4409 | _ACEOF | |
4410 | rm -f conftest.$ac_objext | |
4411 | if { (eval echo "$as_me:4411: \"$ac_compile\"") >&5 | |
4412 | (eval $ac_compile) 2>&5 | |
4413 | ac_status=$? | |
4414 | echo "$as_me:4414: \$? = $ac_status" >&5 | |
4415 | (exit $ac_status); } && | |
4416 | { ac_try='test -s conftest.$ac_objext' | |
4417 | { (eval echo "$as_me:4417: \"$ac_try\"") >&5 | |
4418 | (eval $ac_try) 2>&5 | |
4419 | ac_status=$? | |
4420 | echo "$as_me:4420: \$? = $ac_status" >&5 | |
4421 | (exit $ac_status); }; }; then | |
653f71ca | 4422 | ac_cv_type_size_t=yes |
252b5132 | 4423 | else |
b3baf5d0 NC |
4424 | echo "$as_me: failed program was:" >&5 |
4425 | cat conftest.$ac_ext >&5 | |
4426 | ac_cv_type_size_t=no | |
252b5132 | 4427 | fi |
b3baf5d0 | 4428 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 | 4429 | fi |
b3baf5d0 NC |
4430 | echo "$as_me:4430: result: $ac_cv_type_size_t" >&5 |
4431 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
4432 | if test $ac_cv_type_size_t = yes; then | |
4433 | : | |
4434 | else | |
4435 | ||
4436 | cat >>confdefs.h <<EOF | |
252b5132 RH |
4437 | #define size_t unsigned |
4438 | EOF | |
4439 | ||
4440 | fi | |
4441 | ||
4442 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4443 | # for constant arguments. Useless! | |
b3baf5d0 NC |
4444 | echo "$as_me:4444: checking for working alloca.h" >&5 |
4445 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
4446 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
4447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4448 | else |
b3baf5d0 NC |
4449 | cat >conftest.$ac_ext <<_ACEOF |
4450 | #line 4450 "configure" | |
252b5132 RH |
4451 | #include "confdefs.h" |
4452 | #include <alloca.h> | |
b3baf5d0 NC |
4453 | int |
4454 | main () | |
4455 | { | |
4456 | char *p = (char *) alloca (2 * sizeof (int)); | |
4457 | ; | |
4458 | return 0; | |
4459 | } | |
4460 | _ACEOF | |
4461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4462 | if { (eval echo "$as_me:4462: \"$ac_link\"") >&5 | |
4463 | (eval $ac_link) 2>&5 | |
4464 | ac_status=$? | |
4465 | echo "$as_me:4465: \$? = $ac_status" >&5 | |
4466 | (exit $ac_status); } && | |
4467 | { ac_try='test -s conftest$ac_exeext' | |
4468 | { (eval echo "$as_me:4468: \"$ac_try\"") >&5 | |
4469 | (eval $ac_try) 2>&5 | |
4470 | ac_status=$? | |
4471 | echo "$as_me:4471: \$? = $ac_status" >&5 | |
4472 | (exit $ac_status); }; }; then | |
4473 | ac_cv_working_alloca_h=yes | |
4474 | else | |
4475 | echo "$as_me: failed program was:" >&5 | |
4476 | cat conftest.$ac_ext >&5 | |
4477 | ac_cv_working_alloca_h=no | |
4478 | fi | |
4479 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4480 | fi | |
4481 | echo "$as_me:4481: result: $ac_cv_working_alloca_h" >&5 | |
4482 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
4483 | if test $ac_cv_working_alloca_h = yes; then | |
4484 | ||
4485 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
4486 | #define HAVE_ALLOCA_H 1 |
4487 | EOF | |
4488 | ||
4489 | fi | |
4490 | ||
b3baf5d0 NC |
4491 | echo "$as_me:4491: checking for alloca" >&5 |
4492 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
4493 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4495 | else |
b3baf5d0 NC |
4496 | cat >conftest.$ac_ext <<_ACEOF |
4497 | #line 4497 "configure" | |
252b5132 | 4498 | #include "confdefs.h" |
252b5132 RH |
4499 | #ifdef __GNUC__ |
4500 | # define alloca __builtin_alloca | |
4501 | #else | |
4502 | # ifdef _MSC_VER | |
4503 | # include <malloc.h> | |
4504 | # define alloca _alloca | |
4505 | # else | |
4506 | # if HAVE_ALLOCA_H | |
4507 | # include <alloca.h> | |
4508 | # else | |
4509 | # ifdef _AIX | |
4510 | #pragma alloca | |
4511 | # else | |
4512 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
4513 | char *alloca (); | |
4514 | # endif | |
4515 | # endif | |
4516 | # endif | |
4517 | # endif | |
4518 | #endif | |
4519 | ||
b3baf5d0 NC |
4520 | int |
4521 | main () | |
4522 | { | |
4523 | char *p = (char *) alloca (1); | |
4524 | ; | |
4525 | return 0; | |
4526 | } | |
4527 | _ACEOF | |
4528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4529 | if { (eval echo "$as_me:4529: \"$ac_link\"") >&5 | |
4530 | (eval $ac_link) 2>&5 | |
4531 | ac_status=$? | |
4532 | echo "$as_me:4532: \$? = $ac_status" >&5 | |
4533 | (exit $ac_status); } && | |
4534 | { ac_try='test -s conftest$ac_exeext' | |
4535 | { (eval echo "$as_me:4535: \"$ac_try\"") >&5 | |
4536 | (eval $ac_try) 2>&5 | |
4537 | ac_status=$? | |
4538 | echo "$as_me:4538: \$? = $ac_status" >&5 | |
4539 | (exit $ac_status); }; }; then | |
252b5132 RH |
4540 | ac_cv_func_alloca_works=yes |
4541 | else | |
b3baf5d0 NC |
4542 | echo "$as_me: failed program was:" >&5 |
4543 | cat conftest.$ac_ext >&5 | |
4544 | ac_cv_func_alloca_works=no | |
252b5132 | 4545 | fi |
b3baf5d0 | 4546 | rm -f conftest$ac_exeext conftest.$ac_ext |
252b5132 | 4547 | fi |
b3baf5d0 NC |
4548 | echo "$as_me:4548: result: $ac_cv_func_alloca_works" >&5 |
4549 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 4550 | |
252b5132 | 4551 | if test $ac_cv_func_alloca_works = yes; then |
b3baf5d0 NC |
4552 | |
4553 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
4554 | #define HAVE_ALLOCA 1 |
4555 | EOF | |
4556 | ||
b3baf5d0 | 4557 | else |
252b5132 | 4558 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
b3baf5d0 NC |
4559 | # that cause trouble. Some versions do not even contain alloca or |
4560 | # contain a buggy version. If you still want to use their alloca, | |
4561 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4562 | ||
4563 | ALLOCA=alloca.$ac_objext | |
4564 | ||
4565 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
4566 | #define C_ALLOCA 1 |
4567 | EOF | |
4568 | ||
b3baf5d0 NC |
4569 | echo "$as_me:4569: checking whether \`alloca.c' needs Cray hooks" >&5 |
4570 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
4571 | if test "${ac_cv_os_cray+set}" = set; then | |
4572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4573 | else |
b3baf5d0 NC |
4574 | cat >conftest.$ac_ext <<_ACEOF |
4575 | #line 4575 "configure" | |
252b5132 RH |
4576 | #include "confdefs.h" |
4577 | #if defined(CRAY) && ! defined(CRAY2) | |
4578 | webecray | |
4579 | #else | |
4580 | wenotbecray | |
4581 | #endif | |
4582 | ||
b3baf5d0 | 4583 | _ACEOF |
252b5132 RH |
4584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4585 | egrep "webecray" >/dev/null 2>&1; then | |
252b5132 RH |
4586 | ac_cv_os_cray=yes |
4587 | else | |
252b5132 RH |
4588 | ac_cv_os_cray=no |
4589 | fi | |
4590 | rm -f conftest* | |
4591 | ||
4592 | fi | |
b3baf5d0 NC |
4593 | echo "$as_me:4593: result: $ac_cv_os_cray" >&5 |
4594 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 4595 | if test $ac_cv_os_cray = yes; then |
b3baf5d0 NC |
4596 | for ac_func in _getb67 GETB67 getb67; do |
4597 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
4598 | echo "$as_me:4598: checking for $ac_func" >&5 | |
4599 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4600 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
4601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4602 | else | |
4603 | cat >conftest.$ac_ext <<_ACEOF | |
4604 | #line 4604 "configure" | |
252b5132 RH |
4605 | #include "confdefs.h" |
4606 | /* System header to define __stub macros and hopefully few prototypes, | |
b3baf5d0 | 4607 | which can conflict with char $ac_func (); below. */ |
252b5132 RH |
4608 | #include <assert.h> |
4609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
b3baf5d0 NC |
4610 | #ifdef __cplusplus |
4611 | extern "C" | |
4612 | #endif | |
252b5132 | 4613 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
4614 | builtin and then its argument prototype would still apply. */ |
4615 | char $ac_func (); | |
4616 | char (*f) (); | |
252b5132 | 4617 | |
b3baf5d0 NC |
4618 | int |
4619 | main () | |
4620 | { | |
252b5132 RH |
4621 | /* The GNU C library defines this for functions which it implements |
4622 | to always fail with ENOSYS. Some functions are actually named | |
4623 | something starting with __ and the normal name is an alias. */ | |
4624 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4625 | choke me | |
4626 | #else | |
b3baf5d0 | 4627 | f = $ac_func; |
252b5132 RH |
4628 | #endif |
4629 | ||
b3baf5d0 NC |
4630 | ; |
4631 | return 0; | |
4632 | } | |
4633 | _ACEOF | |
4634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4635 | if { (eval echo "$as_me:4635: \"$ac_link\"") >&5 | |
4636 | (eval $ac_link) 2>&5 | |
4637 | ac_status=$? | |
4638 | echo "$as_me:4638: \$? = $ac_status" >&5 | |
4639 | (exit $ac_status); } && | |
4640 | { ac_try='test -s conftest$ac_exeext' | |
4641 | { (eval echo "$as_me:4641: \"$ac_try\"") >&5 | |
4642 | (eval $ac_try) 2>&5 | |
4643 | ac_status=$? | |
4644 | echo "$as_me:4644: \$? = $ac_status" >&5 | |
4645 | (exit $ac_status); }; }; then | |
4646 | eval "$ac_ac_var=yes" | |
4647 | else | |
4648 | echo "$as_me: failed program was:" >&5 | |
4649 | cat conftest.$ac_ext >&5 | |
4650 | eval "$ac_ac_var=no" | |
4651 | fi | |
4652 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4653 | fi | |
4654 | echo "$as_me:4654: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
4655 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
4656 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
4657 | ||
4658 | cat >>confdefs.h <<EOF | |
252b5132 RH |
4659 | #define CRAY_STACKSEG_END $ac_func |
4660 | EOF | |
4661 | ||
b3baf5d0 | 4662 | break |
252b5132 RH |
4663 | fi |
4664 | ||
b3baf5d0 | 4665 | done |
252b5132 RH |
4666 | fi |
4667 | ||
b3baf5d0 NC |
4668 | echo "$as_me:4668: checking stack direction for C alloca" >&5 |
4669 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
4670 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
4671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4672 | else |
4673 | if test "$cross_compiling" = yes; then | |
4674 | ac_cv_c_stack_direction=0 | |
4675 | else | |
b3baf5d0 NC |
4676 | cat >conftest.$ac_ext <<_ACEOF |
4677 | #line 4677 "configure" | |
252b5132 | 4678 | #include "confdefs.h" |
b3baf5d0 | 4679 | int |
252b5132 RH |
4680 | find_stack_direction () |
4681 | { | |
4682 | static char *addr = 0; | |
4683 | auto char dummy; | |
4684 | if (addr == 0) | |
4685 | { | |
4686 | addr = &dummy; | |
4687 | return find_stack_direction (); | |
4688 | } | |
4689 | else | |
4690 | return (&dummy > addr) ? 1 : -1; | |
4691 | } | |
b3baf5d0 NC |
4692 | |
4693 | int | |
252b5132 RH |
4694 | main () |
4695 | { | |
b3baf5d0 | 4696 | exit (find_stack_direction () < 0); |
252b5132 | 4697 | } |
b3baf5d0 NC |
4698 | _ACEOF |
4699 | rm -f conftest$ac_exeext | |
4700 | if { (eval echo "$as_me:4700: \"$ac_link\"") >&5 | |
4701 | (eval $ac_link) 2>&5 | |
4702 | ac_status=$? | |
4703 | echo "$as_me:4703: \$? = $ac_status" >&5 | |
4704 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4705 | { (eval echo "$as_me:4705: \"$ac_try\"") >&5 | |
4706 | (eval $ac_try) 2>&5 | |
4707 | ac_status=$? | |
4708 | echo "$as_me:4708: \$? = $ac_status" >&5 | |
4709 | (exit $ac_status); }; }; then | |
252b5132 RH |
4710 | ac_cv_c_stack_direction=1 |
4711 | else | |
b3baf5d0 NC |
4712 | echo "$as_me: program exited with status $ac_status" >&5 |
4713 | echo "$as_me: failed program was:" >&5 | |
4714 | cat conftest.$ac_ext >&5 | |
4715 | ac_cv_c_stack_direction=-1 | |
252b5132 | 4716 | fi |
b3baf5d0 | 4717 | rm -f conftest$ac_exeext conftest.$ac_ext |
252b5132 | 4718 | fi |
252b5132 | 4719 | fi |
b3baf5d0 NC |
4720 | echo "$as_me:4720: result: $ac_cv_c_stack_direction" >&5 |
4721 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 4722 | |
b3baf5d0 | 4723 | cat >>confdefs.h <<EOF |
252b5132 RH |
4724 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
4725 | EOF | |
4726 | ||
4727 | fi | |
4728 | ||
b3baf5d0 | 4729 | for ac_header in stdlib.h unistd.h |
252b5132 | 4730 | do |
b3baf5d0 NC |
4731 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
4732 | echo "$as_me:4732: checking for $ac_header" >&5 | |
4733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4734 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4736 | else | |
4737 | cat >conftest.$ac_ext <<_ACEOF | |
4738 | #line 4738 "configure" | |
252b5132 | 4739 | #include "confdefs.h" |
b3baf5d0 NC |
4740 | #include <$ac_header> |
4741 | _ACEOF | |
4742 | if { (eval echo "$as_me:4742: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4743 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4744 | ac_status=$? | |
4745 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4746 | rm -f conftest.er1 | |
4747 | cat conftest.err >&5 | |
4748 | echo "$as_me:4748: \$? = $ac_status" >&5 | |
4749 | (exit $ac_status); } >/dev/null; then | |
4750 | if test -s conftest.err; then | |
4751 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4752 | else | |
4753 | ac_cpp_err= | |
4754 | fi | |
4755 | else | |
4756 | ac_cpp_err=yes | |
4757 | fi | |
4758 | if test -z "$ac_cpp_err"; then | |
4759 | eval "$ac_ac_Header=yes" | |
252b5132 | 4760 | else |
b3baf5d0 | 4761 | echo "$as_me: failed program was:" >&5 |
252b5132 | 4762 | cat conftest.$ac_ext >&5 |
b3baf5d0 | 4763 | eval "$ac_ac_Header=no" |
252b5132 | 4764 | fi |
b3baf5d0 | 4765 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 4766 | fi |
b3baf5d0 NC |
4767 | echo "$as_me:4767: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
4768 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
4769 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
4770 | cat >>confdefs.h <<EOF | |
4771 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
252b5132 | 4772 | EOF |
b3baf5d0 | 4773 | |
252b5132 RH |
4774 | fi |
4775 | done | |
4776 | ||
4777 | for ac_func in getpagesize | |
4778 | do | |
b3baf5d0 NC |
4779 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
4780 | echo "$as_me:4780: checking for $ac_func" >&5 | |
4781 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4782 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
4783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4784 | else | |
4785 | cat >conftest.$ac_ext <<_ACEOF | |
4786 | #line 4786 "configure" | |
252b5132 RH |
4787 | #include "confdefs.h" |
4788 | /* System header to define __stub macros and hopefully few prototypes, | |
b3baf5d0 | 4789 | which can conflict with char $ac_func (); below. */ |
252b5132 RH |
4790 | #include <assert.h> |
4791 | /* Override any gcc2 internal prototype to avoid an error. */ | |
b3baf5d0 NC |
4792 | #ifdef __cplusplus |
4793 | extern "C" | |
4794 | #endif | |
252b5132 | 4795 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
4796 | builtin and then its argument prototype would still apply. */ |
4797 | char $ac_func (); | |
4798 | char (*f) (); | |
252b5132 | 4799 | |
b3baf5d0 NC |
4800 | int |
4801 | main () | |
4802 | { | |
252b5132 RH |
4803 | /* The GNU C library defines this for functions which it implements |
4804 | to always fail with ENOSYS. Some functions are actually named | |
4805 | something starting with __ and the normal name is an alias. */ | |
4806 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4807 | choke me | |
4808 | #else | |
b3baf5d0 | 4809 | f = $ac_func; |
252b5132 RH |
4810 | #endif |
4811 | ||
b3baf5d0 NC |
4812 | ; |
4813 | return 0; | |
4814 | } | |
4815 | _ACEOF | |
4816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4817 | if { (eval echo "$as_me:4817: \"$ac_link\"") >&5 | |
4818 | (eval $ac_link) 2>&5 | |
4819 | ac_status=$? | |
4820 | echo "$as_me:4820: \$? = $ac_status" >&5 | |
4821 | (exit $ac_status); } && | |
4822 | { ac_try='test -s conftest$ac_exeext' | |
4823 | { (eval echo "$as_me:4823: \"$ac_try\"") >&5 | |
4824 | (eval $ac_try) 2>&5 | |
4825 | ac_status=$? | |
4826 | echo "$as_me:4826: \$? = $ac_status" >&5 | |
4827 | (exit $ac_status); }; }; then | |
4828 | eval "$ac_ac_var=yes" | |
4829 | else | |
4830 | echo "$as_me: failed program was:" >&5 | |
4831 | cat conftest.$ac_ext >&5 | |
4832 | eval "$ac_ac_var=no" | |
4833 | fi | |
4834 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4835 | fi | |
4836 | echo "$as_me:4836: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
4837 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
4838 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
4839 | cat >>confdefs.h <<EOF | |
4840 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
252b5132 | 4841 | EOF |
252b5132 | 4842 | |
252b5132 RH |
4843 | fi |
4844 | done | |
4845 | ||
b3baf5d0 NC |
4846 | echo "$as_me:4846: checking for working mmap" >&5 |
4847 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
4848 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4850 | else |
4851 | if test "$cross_compiling" = yes; then | |
4852 | ac_cv_func_mmap_fixed_mapped=no | |
4853 | else | |
b3baf5d0 NC |
4854 | cat >conftest.$ac_ext <<_ACEOF |
4855 | #line 4855 "configure" | |
252b5132 | 4856 | #include "confdefs.h" |
252b5132 RH |
4857 | /* Thanks to Mike Haertel and Jim Avera for this test. |
4858 | Here is a matrix of mmap possibilities: | |
4859 | mmap private not fixed | |
4860 | mmap private fixed at somewhere currently unmapped | |
4861 | mmap private fixed at somewhere already mapped | |
4862 | mmap shared not fixed | |
4863 | mmap shared fixed at somewhere currently unmapped | |
4864 | mmap shared fixed at somewhere already mapped | |
4865 | For private mappings, we should verify that changes cannot be read() | |
4866 | back from the file, nor mmap's back from the file at a different | |
4867 | address. (There have been systems where private was not correctly | |
4868 | implemented like the infamous i386 svr4.0, and systems where the | |
b3baf5d0 | 4869 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
4870 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
4871 | For shared mappings, we should conversely verify that changes get | |
4872 | propogated back to all the places they're supposed to be. | |
4873 | ||
4874 | Grep wants private fixed already mapped. | |
4875 | The main things grep needs to know about mmap are: | |
4876 | * does it exist and is it safe to write into the mmap'd area | |
4877 | * how to use it (BSD variants) */ | |
4878 | #include <sys/types.h> | |
4879 | #include <fcntl.h> | |
4880 | #include <sys/mman.h> | |
4881 | ||
b3baf5d0 NC |
4882 | #if STDC_HEADERS || HAVE_STDLIB_H |
4883 | # include <stdlib.h> | |
4884 | #else | |
4885 | char *malloc (); | |
4886 | #endif | |
4887 | #if HAVE_UNISTD_H | |
4888 | # include <unistd.h> | |
4889 | #endif | |
4890 | #include <sys/stat.h> | |
252b5132 | 4891 | |
b3baf5d0 NC |
4892 | /* This mess was copied from the GNU getpagesize.h. */ |
4893 | #if !HAVE_GETPAGESIZE | |
252b5132 | 4894 | /* Assume that all systems that can run configure have sys/param.h. */ |
b3baf5d0 | 4895 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
4896 | # define HAVE_SYS_PARAM_H 1 |
4897 | # endif | |
4898 | ||
4899 | # ifdef _SC_PAGESIZE | |
4900 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4901 | # else /* no _SC_PAGESIZE */ | |
b3baf5d0 | 4902 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
4903 | # include <sys/param.h> |
4904 | # ifdef EXEC_PAGESIZE | |
4905 | # define getpagesize() EXEC_PAGESIZE | |
4906 | # else /* no EXEC_PAGESIZE */ | |
4907 | # ifdef NBPG | |
4908 | # define getpagesize() NBPG * CLSIZE | |
4909 | # ifndef CLSIZE | |
4910 | # define CLSIZE 1 | |
4911 | # endif /* no CLSIZE */ | |
4912 | # else /* no NBPG */ | |
4913 | # ifdef NBPC | |
4914 | # define getpagesize() NBPC | |
4915 | # else /* no NBPC */ | |
4916 | # ifdef PAGESIZE | |
4917 | # define getpagesize() PAGESIZE | |
4918 | # endif /* PAGESIZE */ | |
4919 | # endif /* no NBPC */ | |
4920 | # endif /* no NBPG */ | |
4921 | # endif /* no EXEC_PAGESIZE */ | |
4922 | # else /* no HAVE_SYS_PARAM_H */ | |
4923 | # define getpagesize() 8192 /* punt totally */ | |
4924 | # endif /* no HAVE_SYS_PARAM_H */ | |
4925 | # endif /* no _SC_PAGESIZE */ | |
4926 | ||
4927 | #endif /* no HAVE_GETPAGESIZE */ | |
4928 | ||
252b5132 | 4929 | int |
b3baf5d0 | 4930 | main () |
252b5132 | 4931 | { |
b3baf5d0 NC |
4932 | char *data, *data2, *data3; |
4933 | int i, pagesize; | |
4934 | int fd; | |
4935 | ||
4936 | pagesize = getpagesize (); | |
4937 | ||
4938 | /* First, make a file with some known garbage in it. */ | |
4939 | data = (char *) malloc (pagesize); | |
4940 | if (!data) | |
4941 | exit (1); | |
4942 | for (i = 0; i < pagesize; ++i) | |
4943 | *(data + i) = rand (); | |
4944 | umask (0); | |
4945 | fd = creat ("conftest.mmap", 0600); | |
4946 | if (fd < 0) | |
4947 | exit (1); | |
4948 | if (write (fd, data, pagesize) != pagesize) | |
4949 | exit (1); | |
4950 | close (fd); | |
4951 | ||
4952 | /* Next, try to mmap the file at a fixed address which already has | |
4953 | something else allocated at it. If we can, also make sure that | |
4954 | we see the same garbage. */ | |
4955 | fd = open ("conftest.mmap", O_RDWR); | |
4956 | if (fd < 0) | |
4957 | exit (1); | |
4958 | data2 = (char *) malloc (2 * pagesize); | |
4959 | if (!data2) | |
4960 | exit (1); | |
4961 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
4962 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
4963 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4964 | exit (1); | |
4965 | for (i = 0; i < pagesize; ++i) | |
4966 | if (*(data + i) != *(data2 + i)) | |
4967 | exit (1); | |
4968 | ||
4969 | /* Finally, make sure that changes to the mapped area do not | |
4970 | percolate back to the file as seen by read(). (This is a bug on | |
4971 | some variants of i386 svr4.0.) */ | |
4972 | for (i = 0; i < pagesize; ++i) | |
4973 | *(data2 + i) = *(data2 + i) + 1; | |
4974 | data3 = (char *) malloc (pagesize); | |
4975 | if (!data3) | |
4976 | exit (1); | |
4977 | if (read (fd, data3, pagesize) != pagesize) | |
4978 | exit (1); | |
4979 | for (i = 0; i < pagesize; ++i) | |
4980 | if (*(data + i) != *(data3 + i)) | |
4981 | exit (1); | |
4982 | close (fd); | |
4983 | exit (0); | |
252b5132 | 4984 | } |
b3baf5d0 NC |
4985 | _ACEOF |
4986 | rm -f conftest$ac_exeext | |
4987 | if { (eval echo "$as_me:4987: \"$ac_link\"") >&5 | |
4988 | (eval $ac_link) 2>&5 | |
4989 | ac_status=$? | |
4990 | echo "$as_me:4990: \$? = $ac_status" >&5 | |
4991 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4992 | { (eval echo "$as_me:4992: \"$ac_try\"") >&5 | |
4993 | (eval $ac_try) 2>&5 | |
4994 | ac_status=$? | |
4995 | echo "$as_me:4995: \$? = $ac_status" >&5 | |
4996 | (exit $ac_status); }; }; then | |
252b5132 RH |
4997 | ac_cv_func_mmap_fixed_mapped=yes |
4998 | else | |
b3baf5d0 NC |
4999 | echo "$as_me: program exited with status $ac_status" >&5 |
5000 | echo "$as_me: failed program was:" >&5 | |
5001 | cat conftest.$ac_ext >&5 | |
5002 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 5003 | fi |
b3baf5d0 | 5004 | rm -f conftest$ac_exeext conftest.$ac_ext |
252b5132 | 5005 | fi |
252b5132 | 5006 | fi |
b3baf5d0 NC |
5007 | echo "$as_me:5007: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
5008 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
252b5132 | 5009 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
b3baf5d0 NC |
5010 | |
5011 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
5012 | #define HAVE_MMAP 1 |
5013 | EOF | |
5014 | ||
5015 | fi | |
b3baf5d0 | 5016 | rm -f conftest.mmap |
252b5132 | 5017 | |
b3baf5d0 | 5018 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
252b5132 RH |
5019 | unistd.h values.h sys/param.h |
5020 | do | |
b3baf5d0 NC |
5021 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
5022 | echo "$as_me:5022: checking for $ac_header" >&5 | |
5023 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5024 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5026 | else | |
5027 | cat >conftest.$ac_ext <<_ACEOF | |
5028 | #line 5028 "configure" | |
252b5132 | 5029 | #include "confdefs.h" |
b3baf5d0 NC |
5030 | #include <$ac_header> |
5031 | _ACEOF | |
5032 | if { (eval echo "$as_me:5032: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5033 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5034 | ac_status=$? | |
5035 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5036 | rm -f conftest.er1 | |
5037 | cat conftest.err >&5 | |
5038 | echo "$as_me:5038: \$? = $ac_status" >&5 | |
5039 | (exit $ac_status); } >/dev/null; then | |
5040 | if test -s conftest.err; then | |
5041 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5042 | else | |
5043 | ac_cpp_err= | |
5044 | fi | |
5045 | else | |
5046 | ac_cpp_err=yes | |
5047 | fi | |
5048 | if test -z "$ac_cpp_err"; then | |
5049 | eval "$ac_ac_Header=yes" | |
252b5132 | 5050 | else |
b3baf5d0 | 5051 | echo "$as_me: failed program was:" >&5 |
252b5132 | 5052 | cat conftest.$ac_ext >&5 |
b3baf5d0 | 5053 | eval "$ac_ac_Header=no" |
252b5132 | 5054 | fi |
b3baf5d0 | 5055 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 5056 | fi |
b3baf5d0 NC |
5057 | echo "$as_me:5057: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
5058 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
5059 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5060 | cat >>confdefs.h <<EOF | |
5061 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
252b5132 | 5062 | EOF |
b3baf5d0 | 5063 | |
252b5132 RH |
5064 | fi |
5065 | done | |
5066 | ||
b3baf5d0 | 5067 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
252b5132 RH |
5068 | __argz_count __argz_stringify __argz_next |
5069 | do | |
b3baf5d0 NC |
5070 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
5071 | echo "$as_me:5071: checking for $ac_func" >&5 | |
5072 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5073 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5075 | else | |
5076 | cat >conftest.$ac_ext <<_ACEOF | |
5077 | #line 5077 "configure" | |
252b5132 RH |
5078 | #include "confdefs.h" |
5079 | /* System header to define __stub macros and hopefully few prototypes, | |
b3baf5d0 | 5080 | which can conflict with char $ac_func (); below. */ |
252b5132 RH |
5081 | #include <assert.h> |
5082 | /* Override any gcc2 internal prototype to avoid an error. */ | |
b3baf5d0 NC |
5083 | #ifdef __cplusplus |
5084 | extern "C" | |
5085 | #endif | |
252b5132 | 5086 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
5087 | builtin and then its argument prototype would still apply. */ |
5088 | char $ac_func (); | |
5089 | char (*f) (); | |
252b5132 | 5090 | |
b3baf5d0 NC |
5091 | int |
5092 | main () | |
5093 | { | |
252b5132 RH |
5094 | /* The GNU C library defines this for functions which it implements |
5095 | to always fail with ENOSYS. Some functions are actually named | |
5096 | something starting with __ and the normal name is an alias. */ | |
5097 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5098 | choke me | |
5099 | #else | |
b3baf5d0 | 5100 | f = $ac_func; |
252b5132 RH |
5101 | #endif |
5102 | ||
b3baf5d0 NC |
5103 | ; |
5104 | return 0; | |
5105 | } | |
5106 | _ACEOF | |
5107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5108 | if { (eval echo "$as_me:5108: \"$ac_link\"") >&5 | |
5109 | (eval $ac_link) 2>&5 | |
5110 | ac_status=$? | |
5111 | echo "$as_me:5111: \$? = $ac_status" >&5 | |
5112 | (exit $ac_status); } && | |
5113 | { ac_try='test -s conftest$ac_exeext' | |
5114 | { (eval echo "$as_me:5114: \"$ac_try\"") >&5 | |
5115 | (eval $ac_try) 2>&5 | |
5116 | ac_status=$? | |
5117 | echo "$as_me:5117: \$? = $ac_status" >&5 | |
5118 | (exit $ac_status); }; }; then | |
5119 | eval "$ac_ac_var=yes" | |
5120 | else | |
5121 | echo "$as_me: failed program was:" >&5 | |
5122 | cat conftest.$ac_ext >&5 | |
5123 | eval "$ac_ac_var=no" | |
5124 | fi | |
5125 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5126 | fi | |
5127 | echo "$as_me:5127: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
5128 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
5129 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5130 | cat >>confdefs.h <<EOF | |
5131 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
252b5132 | 5132 | EOF |
252b5132 | 5133 | |
252b5132 RH |
5134 | fi |
5135 | done | |
5136 | ||
252b5132 | 5137 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
b3baf5d0 NC |
5138 | |
5139 | for ac_func in stpcpy | |
252b5132 | 5140 | do |
b3baf5d0 NC |
5141 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
5142 | echo "$as_me:5142: checking for $ac_func" >&5 | |
5143 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5144 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5146 | else | |
5147 | cat >conftest.$ac_ext <<_ACEOF | |
5148 | #line 5148 "configure" | |
252b5132 RH |
5149 | #include "confdefs.h" |
5150 | /* System header to define __stub macros and hopefully few prototypes, | |
b3baf5d0 | 5151 | which can conflict with char $ac_func (); below. */ |
252b5132 RH |
5152 | #include <assert.h> |
5153 | /* Override any gcc2 internal prototype to avoid an error. */ | |
b3baf5d0 NC |
5154 | #ifdef __cplusplus |
5155 | extern "C" | |
5156 | #endif | |
252b5132 | 5157 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
5158 | builtin and then its argument prototype would still apply. */ |
5159 | char $ac_func (); | |
5160 | char (*f) (); | |
252b5132 | 5161 | |
b3baf5d0 NC |
5162 | int |
5163 | main () | |
5164 | { | |
252b5132 RH |
5165 | /* The GNU C library defines this for functions which it implements |
5166 | to always fail with ENOSYS. Some functions are actually named | |
5167 | something starting with __ and the normal name is an alias. */ | |
5168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5169 | choke me | |
5170 | #else | |
b3baf5d0 | 5171 | f = $ac_func; |
252b5132 RH |
5172 | #endif |
5173 | ||
b3baf5d0 NC |
5174 | ; |
5175 | return 0; | |
5176 | } | |
5177 | _ACEOF | |
5178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5179 | if { (eval echo "$as_me:5179: \"$ac_link\"") >&5 | |
5180 | (eval $ac_link) 2>&5 | |
5181 | ac_status=$? | |
5182 | echo "$as_me:5182: \$? = $ac_status" >&5 | |
5183 | (exit $ac_status); } && | |
5184 | { ac_try='test -s conftest$ac_exeext' | |
5185 | { (eval echo "$as_me:5185: \"$ac_try\"") >&5 | |
5186 | (eval $ac_try) 2>&5 | |
5187 | ac_status=$? | |
5188 | echo "$as_me:5188: \$? = $ac_status" >&5 | |
5189 | (exit $ac_status); }; }; then | |
5190 | eval "$ac_ac_var=yes" | |
5191 | else | |
5192 | echo "$as_me: failed program was:" >&5 | |
5193 | cat conftest.$ac_ext >&5 | |
5194 | eval "$ac_ac_var=no" | |
5195 | fi | |
5196 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5197 | fi | |
5198 | echo "$as_me:5198: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
5199 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
5200 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5201 | cat >>confdefs.h <<EOF | |
5202 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
252b5132 | 5203 | EOF |
252b5132 | 5204 | |
252b5132 RH |
5205 | fi |
5206 | done | |
5207 | ||
5208 | fi | |
5209 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
b3baf5d0 NC |
5210 | |
5211 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
5212 | #define HAVE_STPCPY 1 |
5213 | EOF | |
5214 | ||
5215 | fi | |
5216 | ||
5217 | if test $ac_cv_header_locale_h = yes; then | |
b3baf5d0 NC |
5218 | echo "$as_me:5218: checking for LC_MESSAGES" >&5 |
5219 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
5220 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
5221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5222 | else |
b3baf5d0 NC |
5223 | cat >conftest.$ac_ext <<_ACEOF |
5224 | #line 5224 "configure" | |
252b5132 RH |
5225 | #include "confdefs.h" |
5226 | #include <locale.h> | |
b3baf5d0 NC |
5227 | int |
5228 | main () | |
5229 | { | |
252b5132 | 5230 | return LC_MESSAGES |
b3baf5d0 NC |
5231 | ; |
5232 | return 0; | |
5233 | } | |
5234 | _ACEOF | |
5235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5236 | if { (eval echo "$as_me:5236: \"$ac_link\"") >&5 | |
5237 | (eval $ac_link) 2>&5 | |
5238 | ac_status=$? | |
5239 | echo "$as_me:5239: \$? = $ac_status" >&5 | |
5240 | (exit $ac_status); } && | |
5241 | { ac_try='test -s conftest$ac_exeext' | |
5242 | { (eval echo "$as_me:5242: \"$ac_try\"") >&5 | |
5243 | (eval $ac_try) 2>&5 | |
5244 | ac_status=$? | |
5245 | echo "$as_me:5245: \$? = $ac_status" >&5 | |
5246 | (exit $ac_status); }; }; then | |
252b5132 RH |
5247 | am_cv_val_LC_MESSAGES=yes |
5248 | else | |
b3baf5d0 NC |
5249 | echo "$as_me: failed program was:" >&5 |
5250 | cat conftest.$ac_ext >&5 | |
5251 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 5252 | fi |
b3baf5d0 | 5253 | rm -f conftest$ac_exeext conftest.$ac_ext |
252b5132 | 5254 | fi |
b3baf5d0 NC |
5255 | echo "$as_me:5255: result: $am_cv_val_LC_MESSAGES" >&5 |
5256 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
252b5132 | 5257 | if test $am_cv_val_LC_MESSAGES = yes; then |
b3baf5d0 NC |
5258 | |
5259 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
5260 | #define HAVE_LC_MESSAGES 1 |
5261 | EOF | |
5262 | ||
5263 | fi | |
5264 | fi | |
b3baf5d0 NC |
5265 | echo "$as_me:5265: checking whether NLS is requested" >&5 |
5266 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
5267 | # Check whether --enable-nls or --disable-nls was given. |
5268 | if test "${enable_nls+set}" = set; then | |
5269 | enableval="$enable_nls" | |
5270 | USE_NLS=$enableval | |
5271 | else | |
5272 | USE_NLS=yes | |
b3baf5d0 NC |
5273 | fi; |
5274 | echo "$as_me:5274: result: $USE_NLS" >&5 | |
5275 | echo "${ECHO_T}$USE_NLS" >&6 | |
252b5132 RH |
5276 | |
5277 | USE_INCLUDED_LIBINTL=no | |
5278 | ||
5279 | if test "$USE_NLS" = "yes"; then | |
b3baf5d0 NC |
5280 | |
5281 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
5282 | #define ENABLE_NLS 1 |
5283 | EOF | |
5284 | ||
b3baf5d0 NC |
5285 | echo "$as_me:5285: checking whether included gettext is requested" >&5 |
5286 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
5287 | ||
5288 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
252b5132 RH |
5289 | if test "${with_included_gettext+set}" = set; then |
5290 | withval="$with_included_gettext" | |
5291 | nls_cv_force_use_gnu_gettext=$withval | |
5292 | else | |
5293 | nls_cv_force_use_gnu_gettext=no | |
b3baf5d0 NC |
5294 | fi; |
5295 | echo "$as_me:5295: result: $nls_cv_force_use_gnu_gettext" >&5 | |
5296 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
5297 | |
5298 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
5299 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
5300 | nls_cv_header_intl= | |
5301 | nls_cv_header_libgt= | |
5302 | CATOBJEXT=NONE | |
5303 | ||
b3baf5d0 NC |
5304 | echo "$as_me:5304: checking for libintl.h" >&5 |
5305 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
5306 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
5307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5308 | else |
b3baf5d0 NC |
5309 | cat >conftest.$ac_ext <<_ACEOF |
5310 | #line 5310 "configure" | |
252b5132 RH |
5311 | #include "confdefs.h" |
5312 | #include <libintl.h> | |
b3baf5d0 NC |
5313 | _ACEOF |
5314 | if { (eval echo "$as_me:5314: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5316 | ac_status=$? | |
5317 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5318 | rm -f conftest.er1 | |
5319 | cat conftest.err >&5 | |
5320 | echo "$as_me:5320: \$? = $ac_status" >&5 | |
5321 | (exit $ac_status); } >/dev/null; then | |
5322 | if test -s conftest.err; then | |
5323 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5324 | else | |
5325 | ac_cpp_err= | |
5326 | fi | |
5327 | else | |
5328 | ac_cpp_err=yes | |
5329 | fi | |
5330 | if test -z "$ac_cpp_err"; then | |
5331 | ac_cv_header_libintl_h=yes | |
252b5132 | 5332 | else |
b3baf5d0 | 5333 | echo "$as_me: failed program was:" >&5 |
252b5132 | 5334 | cat conftest.$ac_ext >&5 |
b3baf5d0 | 5335 | ac_cv_header_libintl_h=no |
252b5132 | 5336 | fi |
b3baf5d0 | 5337 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 5338 | fi |
b3baf5d0 NC |
5339 | echo "$as_me:5339: result: $ac_cv_header_libintl_h" >&5 |
5340 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
5341 | if test $ac_cv_header_libintl_h = yes; then | |
5342 | echo "$as_me:5342: checking for gettext in libc" >&5 | |
5343 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
5344 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
5345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5346 | else |
b3baf5d0 NC |
5347 | cat >conftest.$ac_ext <<_ACEOF |
5348 | #line 5348 "configure" | |
252b5132 RH |
5349 | #include "confdefs.h" |
5350 | #include <libintl.h> | |
b3baf5d0 NC |
5351 | int |
5352 | main () | |
5353 | { | |
252b5132 | 5354 | return (int) gettext ("") |
b3baf5d0 NC |
5355 | ; |
5356 | return 0; | |
5357 | } | |
5358 | _ACEOF | |
5359 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5360 | if { (eval echo "$as_me:5360: \"$ac_link\"") >&5 | |
5361 | (eval $ac_link) 2>&5 | |
5362 | ac_status=$? | |
5363 | echo "$as_me:5363: \$? = $ac_status" >&5 | |
5364 | (exit $ac_status); } && | |
5365 | { ac_try='test -s conftest$ac_exeext' | |
5366 | { (eval echo "$as_me:5366: \"$ac_try\"") >&5 | |
5367 | (eval $ac_try) 2>&5 | |
5368 | ac_status=$? | |
5369 | echo "$as_me:5369: \$? = $ac_status" >&5 | |
5370 | (exit $ac_status); }; }; then | |
252b5132 RH |
5371 | gt_cv_func_gettext_libc=yes |
5372 | else | |
b3baf5d0 NC |
5373 | echo "$as_me: failed program was:" >&5 |
5374 | cat conftest.$ac_ext >&5 | |
5375 | gt_cv_func_gettext_libc=no | |
252b5132 | 5376 | fi |
b3baf5d0 | 5377 | rm -f conftest$ac_exeext conftest.$ac_ext |
252b5132 | 5378 | fi |
b3baf5d0 NC |
5379 | echo "$as_me:5379: result: $gt_cv_func_gettext_libc" >&5 |
5380 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
5381 | |
5382 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
b3baf5d0 NC |
5383 | echo "$as_me:5383: checking for bindtextdomain in -lintl" >&5 |
5384 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
5385 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5387 | else |
b3baf5d0 | 5388 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 5389 | LIBS="-lintl $LIBS" |
b3baf5d0 NC |
5390 | cat >conftest.$ac_ext <<_ACEOF |
5391 | #line 5391 "configure" | |
252b5132 | 5392 | #include "confdefs.h" |
b3baf5d0 | 5393 | |
252b5132 | 5394 | /* Override any gcc2 internal prototype to avoid an error. */ |
b3baf5d0 NC |
5395 | #ifdef __cplusplus |
5396 | extern "C" | |
5397 | #endif | |
252b5132 | 5398 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
5399 | builtin and then its argument prototype would still apply. */ |
5400 | char bindtextdomain (); | |
5401 | int | |
5402 | main () | |
5403 | { | |
5404 | bindtextdomain (); | |
5405 | ; | |
5406 | return 0; | |
5407 | } | |
5408 | _ACEOF | |
5409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5410 | if { (eval echo "$as_me:5410: \"$ac_link\"") >&5 | |
5411 | (eval $ac_link) 2>&5 | |
5412 | ac_status=$? | |
5413 | echo "$as_me:5413: \$? = $ac_status" >&5 | |
5414 | (exit $ac_status); } && | |
5415 | { ac_try='test -s conftest$ac_exeext' | |
5416 | { (eval echo "$as_me:5416: \"$ac_try\"") >&5 | |
5417 | (eval $ac_try) 2>&5 | |
5418 | ac_status=$? | |
5419 | echo "$as_me:5419: \$? = $ac_status" >&5 | |
5420 | (exit $ac_status); }; }; then | |
5421 | ac_cv_lib_intl_bindtextdomain=yes | |
5422 | else | |
5423 | echo "$as_me: failed program was:" >&5 | |
5424 | cat conftest.$ac_ext >&5 | |
5425 | ac_cv_lib_intl_bindtextdomain=no | |
5426 | fi | |
5427 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5428 | LIBS=$ac_check_lib_save_LIBS | |
5429 | fi | |
5430 | echo "$as_me:5430: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5431 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5432 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5433 | echo "$as_me:5433: checking for gettext in libintl" >&5 | |
5434 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5435 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5437 | else | |
5438 | cat >conftest.$ac_ext <<_ACEOF | |
5439 | #line 5439 "configure" | |
252b5132 RH |
5440 | #include "confdefs.h" |
5441 | ||
b3baf5d0 NC |
5442 | int |
5443 | main () | |
5444 | { | |
252b5132 | 5445 | return (int) gettext ("") |
b3baf5d0 NC |
5446 | ; |
5447 | return 0; | |
5448 | } | |
5449 | _ACEOF | |
5450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5451 | if { (eval echo "$as_me:5451: \"$ac_link\"") >&5 | |
5452 | (eval $ac_link) 2>&5 | |
5453 | ac_status=$? | |
5454 | echo "$as_me:5454: \$? = $ac_status" >&5 | |
5455 | (exit $ac_status); } && | |
5456 | { ac_try='test -s conftest$ac_exeext' | |
5457 | { (eval echo "$as_me:5457: \"$ac_try\"") >&5 | |
5458 | (eval $ac_try) 2>&5 | |
5459 | ac_status=$? | |
5460 | echo "$as_me:5460: \$? = $ac_status" >&5 | |
5461 | (exit $ac_status); }; }; then | |
252b5132 RH |
5462 | gt_cv_func_gettext_libintl=yes |
5463 | else | |
b3baf5d0 NC |
5464 | echo "$as_me: failed program was:" >&5 |
5465 | cat conftest.$ac_ext >&5 | |
5466 | gt_cv_func_gettext_libintl=no | |
252b5132 | 5467 | fi |
b3baf5d0 | 5468 | rm -f conftest$ac_exeext conftest.$ac_ext |
252b5132 | 5469 | fi |
b3baf5d0 NC |
5470 | echo "$as_me:5470: result: $gt_cv_func_gettext_libintl" >&5 |
5471 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
5472 | fi |
5473 | ||
5474 | fi | |
5475 | ||
5476 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5477 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
b3baf5d0 NC |
5478 | |
5479 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
5480 | #define HAVE_GETTEXT 1 |
5481 | EOF | |
5482 | ||
5483 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5484 | set dummy msgfmt; ac_word=$2 | |
b3baf5d0 NC |
5485 | echo "$as_me:5485: checking for $ac_word" >&5 |
5486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5487 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5489 | else |
5490 | case "$MSGFMT" in | |
5491 | /*) | |
5492 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5493 | ;; | |
5494 | *) | |
5495 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5496 | for ac_dir in $PATH; do | |
5497 | test -z "$ac_dir" && ac_dir=. | |
5498 | if test -f $ac_dir/$ac_word; then | |
5499 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5500 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5501 | break | |
5502 | fi | |
5503 | fi | |
5504 | done | |
5505 | IFS="$ac_save_ifs" | |
5506 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5507 | ;; | |
5508 | esac | |
5509 | fi | |
5510 | MSGFMT="$ac_cv_path_MSGFMT" | |
5511 | if test -n "$MSGFMT"; then | |
b3baf5d0 NC |
5512 | echo "$as_me:5512: result: $MSGFMT" >&5 |
5513 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 5514 | else |
b3baf5d0 NC |
5515 | echo "$as_me:5515: result: no" >&5 |
5516 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5517 | fi |
5518 | if test "$MSGFMT" != "no"; then | |
b3baf5d0 NC |
5519 | |
5520 | for ac_func in dcgettext | |
252b5132 | 5521 | do |
b3baf5d0 NC |
5522 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
5523 | echo "$as_me:5523: checking for $ac_func" >&5 | |
5524 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5525 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5527 | else | |
5528 | cat >conftest.$ac_ext <<_ACEOF | |
5529 | #line 5529 "configure" | |
252b5132 RH |
5530 | #include "confdefs.h" |
5531 | /* System header to define __stub macros and hopefully few prototypes, | |
b3baf5d0 | 5532 | which can conflict with char $ac_func (); below. */ |
252b5132 RH |
5533 | #include <assert.h> |
5534 | /* Override any gcc2 internal prototype to avoid an error. */ | |
b3baf5d0 NC |
5535 | #ifdef __cplusplus |
5536 | extern "C" | |
5537 | #endif | |
252b5132 | 5538 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
5539 | builtin and then its argument prototype would still apply. */ |
5540 | char $ac_func (); | |
5541 | char (*f) (); | |
252b5132 | 5542 | |
b3baf5d0 NC |
5543 | int |
5544 | main () | |
5545 | { | |
252b5132 RH |
5546 | /* The GNU C library defines this for functions which it implements |
5547 | to always fail with ENOSYS. Some functions are actually named | |
5548 | something starting with __ and the normal name is an alias. */ | |
5549 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5550 | choke me | |
5551 | #else | |
b3baf5d0 | 5552 | f = $ac_func; |
252b5132 RH |
5553 | #endif |
5554 | ||
b3baf5d0 NC |
5555 | ; |
5556 | return 0; | |
5557 | } | |
5558 | _ACEOF | |
5559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5560 | if { (eval echo "$as_me:5560: \"$ac_link\"") >&5 | |
5561 | (eval $ac_link) 2>&5 | |
5562 | ac_status=$? | |
5563 | echo "$as_me:5563: \$? = $ac_status" >&5 | |
5564 | (exit $ac_status); } && | |
5565 | { ac_try='test -s conftest$ac_exeext' | |
5566 | { (eval echo "$as_me:5566: \"$ac_try\"") >&5 | |
5567 | (eval $ac_try) 2>&5 | |
5568 | ac_status=$? | |
5569 | echo "$as_me:5569: \$? = $ac_status" >&5 | |
5570 | (exit $ac_status); }; }; then | |
5571 | eval "$ac_ac_var=yes" | |
5572 | else | |
5573 | echo "$as_me: failed program was:" >&5 | |
5574 | cat conftest.$ac_ext >&5 | |
5575 | eval "$ac_ac_var=no" | |
5576 | fi | |
5577 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5578 | fi | |
5579 | echo "$as_me:5579: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
5580 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
5581 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5582 | cat >>confdefs.h <<EOF | |
5583 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
252b5132 | 5584 | EOF |
252b5132 | 5585 | |
252b5132 RH |
5586 | fi |
5587 | done | |
5588 | ||
5589 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5590 | set dummy gmsgfmt; ac_word=$2 | |
b3baf5d0 NC |
5591 | echo "$as_me:5591: checking for $ac_word" >&5 |
5592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5593 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5595 | else |
b3baf5d0 NC |
5596 | case $GMSGFMT in |
5597 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
5598 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5599 | ;; | |
252b5132 | 5600 | *) |
b3baf5d0 NC |
5601 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
5602 | ac_dummy="$PATH" | |
5603 | for ac_dir in $ac_dummy; do | |
5604 | IFS=$ac_save_IFS | |
5605 | test -z "$ac_dir" && ac_dir=. | |
5606 | if $as_executable_p "$ac_dir/$ac_word"; then | |
5607 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
5608 | break | |
5609 | fi | |
5610 | done | |
5611 | ||
252b5132 RH |
5612 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5613 | ;; | |
5614 | esac | |
5615 | fi | |
b3baf5d0 NC |
5616 | GMSGFMT=$ac_cv_path_GMSGFMT |
5617 | ||
252b5132 | 5618 | if test -n "$GMSGFMT"; then |
b3baf5d0 NC |
5619 | echo "$as_me:5619: result: $GMSGFMT" >&5 |
5620 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 5621 | else |
b3baf5d0 NC |
5622 | echo "$as_me:5622: result: no" >&5 |
5623 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5624 | fi |
5625 | ||
5626 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5627 | set dummy xgettext; ac_word=$2 | |
b3baf5d0 NC |
5628 | echo "$as_me:5628: checking for $ac_word" >&5 |
5629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5630 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5632 | else |
5633 | case "$XGETTEXT" in | |
5634 | /*) | |
5635 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5636 | ;; | |
5637 | *) | |
5638 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5639 | for ac_dir in $PATH; do | |
5640 | test -z "$ac_dir" && ac_dir=. | |
5641 | if test -f $ac_dir/$ac_word; then | |
5642 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5643 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5644 | break | |
5645 | fi | |
5646 | fi | |
5647 | done | |
5648 | IFS="$ac_save_ifs" | |
5649 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5650 | ;; | |
5651 | esac | |
5652 | fi | |
5653 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5654 | if test -n "$XGETTEXT"; then | |
b3baf5d0 NC |
5655 | echo "$as_me:5655: result: $XGETTEXT" >&5 |
5656 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 5657 | else |
b3baf5d0 NC |
5658 | echo "$as_me:5658: result: no" >&5 |
5659 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5660 | fi |
5661 | ||
b3baf5d0 NC |
5662 | cat >conftest.$ac_ext <<_ACEOF |
5663 | #line 5663 "configure" | |
252b5132 RH |
5664 | #include "confdefs.h" |
5665 | ||
b3baf5d0 NC |
5666 | int |
5667 | main () | |
5668 | { | |
252b5132 RH |
5669 | extern int _nl_msg_cat_cntr; |
5670 | return _nl_msg_cat_cntr | |
b3baf5d0 NC |
5671 | ; |
5672 | return 0; | |
5673 | } | |
5674 | _ACEOF | |
5675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5676 | if { (eval echo "$as_me:5676: \"$ac_link\"") >&5 | |
5677 | (eval $ac_link) 2>&5 | |
5678 | ac_status=$? | |
5679 | echo "$as_me:5679: \$? = $ac_status" >&5 | |
5680 | (exit $ac_status); } && | |
5681 | { ac_try='test -s conftest$ac_exeext' | |
5682 | { (eval echo "$as_me:5682: \"$ac_try\"") >&5 | |
5683 | (eval $ac_try) 2>&5 | |
5684 | ac_status=$? | |
5685 | echo "$as_me:5685: \$? = $ac_status" >&5 | |
5686 | (exit $ac_status); }; }; then | |
252b5132 RH |
5687 | CATOBJEXT=.gmo |
5688 | DATADIRNAME=share | |
5689 | else | |
b3baf5d0 NC |
5690 | echo "$as_me: failed program was:" >&5 |
5691 | cat conftest.$ac_ext >&5 | |
5692 | CATOBJEXT=.mo | |
252b5132 RH |
5693 | DATADIRNAME=lib |
5694 | fi | |
b3baf5d0 | 5695 | rm -f conftest$ac_exeext conftest.$ac_ext |
252b5132 RH |
5696 | INSTOBJEXT=.mo |
5697 | fi | |
5698 | fi | |
252b5132 | 5699 | |
b3baf5d0 | 5700 | fi |
252b5132 | 5701 | |
252b5132 RH |
5702 | if test "$CATOBJEXT" = "NONE"; then |
5703 | nls_cv_use_gnu_gettext=yes | |
5704 | fi | |
5705 | fi | |
5706 | ||
5707 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5708 | INTLOBJS="\$(GETTOBJS)" | |
5709 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5710 | set dummy msgfmt; ac_word=$2 | |
b3baf5d0 NC |
5711 | echo "$as_me:5711: checking for $ac_word" >&5 |
5712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5713 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5715 | else |
5716 | case "$MSGFMT" in | |
5717 | /*) | |
5718 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5719 | ;; | |
5720 | *) | |
5721 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5722 | for ac_dir in $PATH; do | |
5723 | test -z "$ac_dir" && ac_dir=. | |
5724 | if test -f $ac_dir/$ac_word; then | |
5725 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5726 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5727 | break | |
5728 | fi | |
5729 | fi | |
5730 | done | |
5731 | IFS="$ac_save_ifs" | |
5732 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5733 | ;; | |
5734 | esac | |
5735 | fi | |
5736 | MSGFMT="$ac_cv_path_MSGFMT" | |
5737 | if test -n "$MSGFMT"; then | |
b3baf5d0 NC |
5738 | echo "$as_me:5738: result: $MSGFMT" >&5 |
5739 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 5740 | else |
b3baf5d0 NC |
5741 | echo "$as_me:5741: result: no" >&5 |
5742 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5743 | fi |
5744 | ||
5745 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5746 | set dummy gmsgfmt; ac_word=$2 | |
b3baf5d0 NC |
5747 | echo "$as_me:5747: checking for $ac_word" >&5 |
5748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5749 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5751 | else |
b3baf5d0 NC |
5752 | case $GMSGFMT in |
5753 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
5754 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5755 | ;; | |
252b5132 | 5756 | *) |
b3baf5d0 NC |
5757 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
5758 | ac_dummy="$PATH" | |
5759 | for ac_dir in $ac_dummy; do | |
5760 | IFS=$ac_save_IFS | |
5761 | test -z "$ac_dir" && ac_dir=. | |
5762 | if $as_executable_p "$ac_dir/$ac_word"; then | |
5763 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
5764 | break | |
5765 | fi | |
5766 | done | |
5767 | ||
252b5132 RH |
5768 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5769 | ;; | |
5770 | esac | |
5771 | fi | |
b3baf5d0 NC |
5772 | GMSGFMT=$ac_cv_path_GMSGFMT |
5773 | ||
252b5132 | 5774 | if test -n "$GMSGFMT"; then |
b3baf5d0 NC |
5775 | echo "$as_me:5775: result: $GMSGFMT" >&5 |
5776 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 5777 | else |
b3baf5d0 NC |
5778 | echo "$as_me:5778: result: no" >&5 |
5779 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5780 | fi |
5781 | ||
5782 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5783 | set dummy xgettext; ac_word=$2 | |
b3baf5d0 NC |
5784 | echo "$as_me:5784: checking for $ac_word" >&5 |
5785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5786 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5788 | else |
5789 | case "$XGETTEXT" in | |
5790 | /*) | |
5791 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5792 | ;; | |
5793 | *) | |
5794 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5795 | for ac_dir in $PATH; do | |
5796 | test -z "$ac_dir" && ac_dir=. | |
5797 | if test -f $ac_dir/$ac_word; then | |
5798 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5799 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5800 | break | |
5801 | fi | |
5802 | fi | |
5803 | done | |
5804 | IFS="$ac_save_ifs" | |
5805 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5806 | ;; | |
5807 | esac | |
5808 | fi | |
5809 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5810 | if test -n "$XGETTEXT"; then | |
b3baf5d0 NC |
5811 | echo "$as_me:5811: result: $XGETTEXT" >&5 |
5812 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 5813 | else |
b3baf5d0 NC |
5814 | echo "$as_me:5814: result: no" >&5 |
5815 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5816 | fi |
5817 | ||
252b5132 RH |
5818 | USE_INCLUDED_LIBINTL=yes |
5819 | CATOBJEXT=.gmo | |
5820 | INSTOBJEXT=.mo | |
5821 | DATADIRNAME=share | |
5822 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5823 | INTLLIBS=$INTLDEPS | |
5824 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5825 | nls_cv_header_intl=libintl.h | |
5826 | nls_cv_header_libgt=libgettext.h | |
5827 | fi | |
5828 | ||
5829 | if test "$XGETTEXT" != ":"; then | |
5830 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5831 | : ; | |
5832 | else | |
b3baf5d0 NC |
5833 | echo "$as_me:5833: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
5834 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
5835 | XGETTEXT=":" |
5836 | fi | |
5837 | fi | |
5838 | ||
5839 | # We need to process the po/ directory. | |
5840 | POSUB=po | |
5841 | else | |
5842 | DATADIRNAME=share | |
5843 | nls_cv_header_intl=libintl.h | |
5844 | nls_cv_header_libgt=libgettext.h | |
5845 | fi | |
5846 | ||
5847 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5848 | # because some of the sources are only built for this goal. | |
5849 | if test "$PACKAGE" = gettext; then | |
5850 | USE_NLS=yes | |
5851 | USE_INCLUDED_LIBINTL=yes | |
5852 | fi | |
5853 | ||
5854 | for lang in $ALL_LINGUAS; do | |
5855 | GMOFILES="$GMOFILES $lang.gmo" | |
5856 | POFILES="$POFILES $lang.po" | |
5857 | done | |
5858 | ||
252b5132 RH |
5859 | if test "x$CATOBJEXT" != "x"; then |
5860 | if test "x$ALL_LINGUAS" = "x"; then | |
5861 | LINGUAS= | |
5862 | else | |
b3baf5d0 NC |
5863 | echo "$as_me:5863: checking for catalogs to be installed" >&5 |
5864 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
5865 | NEW_LINGUAS= |
5866 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5867 | case "$ALL_LINGUAS" in | |
5868 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5869 | esac | |
5870 | done | |
5871 | LINGUAS=$NEW_LINGUAS | |
b3baf5d0 NC |
5872 | echo "$as_me:5872: result: $LINGUAS" >&5 |
5873 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
5874 | fi |
5875 | ||
5876 | if test -n "$LINGUAS"; then | |
5877 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5878 | fi | |
5879 | fi | |
5880 | ||
5881 | if test $ac_cv_header_locale_h = yes; then | |
5882 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5883 | else | |
5884 | INCLUDE_LOCALE_H="\ | |
5885 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5886 | fi | |
252b5132 RH |
5887 | |
5888 | if test -f $srcdir/po2tbl.sed.in; then | |
5889 | if test "$CATOBJEXT" = ".cat"; then | |
b3baf5d0 NC |
5890 | echo "$as_me:5890: checking for linux/version.h" >&5 |
5891 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5892 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5894 | else | |
5895 | cat >conftest.$ac_ext <<_ACEOF | |
5896 | #line 5896 "configure" | |
252b5132 RH |
5897 | #include "confdefs.h" |
5898 | #include <linux/version.h> | |
b3baf5d0 NC |
5899 | _ACEOF |
5900 | if { (eval echo "$as_me:5900: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5901 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5902 | ac_status=$? | |
5903 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5904 | rm -f conftest.er1 | |
5905 | cat conftest.err >&5 | |
5906 | echo "$as_me:5906: \$? = $ac_status" >&5 | |
5907 | (exit $ac_status); } >/dev/null; then | |
5908 | if test -s conftest.err; then | |
5909 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5910 | else | |
5911 | ac_cpp_err= | |
5912 | fi | |
5913 | else | |
5914 | ac_cpp_err=yes | |
5915 | fi | |
5916 | if test -z "$ac_cpp_err"; then | |
5917 | ac_cv_header_linux_version_h=yes | |
252b5132 | 5918 | else |
b3baf5d0 | 5919 | echo "$as_me: failed program was:" >&5 |
252b5132 | 5920 | cat conftest.$ac_ext >&5 |
b3baf5d0 | 5921 | ac_cv_header_linux_version_h=no |
252b5132 | 5922 | fi |
b3baf5d0 | 5923 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 5924 | fi |
b3baf5d0 NC |
5925 | echo "$as_me:5925: result: $ac_cv_header_linux_version_h" >&5 |
5926 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5927 | if test $ac_cv_header_linux_version_h = yes; then | |
252b5132 RH |
5928 | msgformat=linux |
5929 | else | |
b3baf5d0 | 5930 | msgformat=xopen |
252b5132 RH |
5931 | fi |
5932 | ||
252b5132 RH |
5933 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
5934 | fi | |
5935 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5936 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5937 | fi | |
5938 | ||
5939 | if test "$PACKAGE" = "gettext"; then | |
5940 | GT_NO="#NO#" | |
5941 | GT_YES= | |
5942 | else | |
5943 | GT_NO= | |
5944 | GT_YES="#YES#" | |
5945 | fi | |
252b5132 RH |
5946 | |
5947 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
252b5132 RH |
5948 | |
5949 | l= | |
252b5132 RH |
5950 | |
5951 | if test -d $srcdir/po; then | |
5952 | test -d po || mkdir po | |
5953 | if test "x$srcdir" != "x."; then | |
5954 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5955 | posrcprefix="$srcdir/" | |
5956 | else | |
5957 | posrcprefix="../$srcdir/" | |
5958 | fi | |
5959 | else | |
5960 | posrcprefix="../" | |
5961 | fi | |
5962 | rm -f po/POTFILES | |
5963 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5964 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5965 | fi | |
252b5132 RH |
5966 | |
5967 | # Permit host specific settings. | |
5968 | . ${srcdir}/configure.host | |
5969 | ||
252b5132 RH |
5970 | # Find a good install program. We prefer a C program (faster), |
5971 | # so one script is as good as another. But avoid the broken or | |
5972 | # incompatible versions: | |
5973 | # SysV /etc/install, /usr/sbin/install | |
5974 | # SunOS /usr/etc/install | |
5975 | # IRIX /sbin/install | |
5976 | # AIX /bin/install | |
b3baf5d0 | 5977 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
5978 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
5979 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5980 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5981 | # ./install, which can be erroneously created by make from ./install.sh. | |
b3baf5d0 NC |
5982 | echo "$as_me:5982: checking for a BSD compatible install" >&5 |
5983 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | |
252b5132 | 5984 | if test -z "$INSTALL"; then |
b3baf5d0 NC |
5985 | if test "${ac_cv_path_install+set}" = set; then |
5986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5987 | else |
b3baf5d0 | 5988 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
252b5132 | 5989 | for ac_dir in $PATH; do |
b3baf5d0 | 5990 | IFS=$ac_save_IFS |
252b5132 | 5991 | # Account for people who put trailing slashes in PATH elements. |
b3baf5d0 NC |
5992 | case $ac_dir/ in |
5993 | / | ./ | .// | /cC/* \ | |
5994 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
5995 | | /usr/ucb/* ) ;; | |
252b5132 RH |
5996 | *) |
5997 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5998 | # Don't use installbsd from OSF since it installs stuff as root | |
5999 | # by default. | |
6000 | for ac_prog in ginstall scoinst install; do | |
b3baf5d0 | 6001 | if $as_executable_p "$ac_dir/$ac_prog"; then |
252b5132 | 6002 | if test $ac_prog = install && |
b3baf5d0 | 6003 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
252b5132 RH |
6004 | # AIX install. It has an incompatible calling convention. |
6005 | : | |
b3baf5d0 NC |
6006 | elif test $ac_prog = install && |
6007 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
6008 | # program-specific install script used by HP pwplus--don't use. | |
6009 | : | |
252b5132 RH |
6010 | else |
6011 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6012 | break 2 | |
6013 | fi | |
6014 | fi | |
6015 | done | |
6016 | ;; | |
6017 | esac | |
6018 | done | |
252b5132 RH |
6019 | |
6020 | fi | |
6021 | if test "${ac_cv_path_install+set}" = set; then | |
b3baf5d0 | 6022 | INSTALL=$ac_cv_path_install |
252b5132 RH |
6023 | else |
6024 | # As a last resort, use the slow shell script. We don't cache a | |
6025 | # path for INSTALL within a source directory, because that will | |
6026 | # break other packages using the cache if that directory is | |
6027 | # removed, or if the path is relative. | |
b3baf5d0 | 6028 | INSTALL=$ac_install_sh |
252b5132 RH |
6029 | fi |
6030 | fi | |
b3baf5d0 NC |
6031 | echo "$as_me:6031: result: $INSTALL" >&5 |
6032 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
6033 | |
6034 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6035 | # It thinks the first close brace ends the variable substitution. | |
6036 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6037 | ||
b3baf5d0 | 6038 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
6039 | |
6040 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6041 | ||
252b5132 RH |
6042 | BFD_HOST_64BIT_LONG=0 |
6043 | BFD_HOST_64_BIT_DEFINED=0 | |
6044 | BFD_HOST_64_BIT= | |
6045 | BFD_HOST_U_64_BIT= | |
6046 | if test "x${HOST_64BIT_TYPE}" = "xlong"; then | |
6047 | BFD_HOST_64BIT_LONG=1 | |
6048 | elif test "x${HOST_64BIT_TYPE}" != "x"; then | |
6049 | BFD_HOST_64_BIT_DEFINED=1 | |
6050 | BFD_HOST_64_BIT=${HOST_64BIT_TYPE} | |
6051 | BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE} | |
6052 | fi | |
6053 | ||
252b5132 RH |
6054 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
6055 | if test -z "$CC_FOR_BUILD"; then | |
6056 | if test "x$cross_compiling" = "xno"; then | |
6057 | CC_FOR_BUILD='$(CC)' | |
6058 | else | |
6059 | CC_FOR_BUILD=gcc | |
6060 | fi | |
6061 | fi | |
6062 | ||
6063 | # Also set EXEEXT_FOR_BUILD. | |
6064 | if test "x$cross_compiling" = "xno"; then | |
6065 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
6066 | else | |
b3baf5d0 NC |
6067 | echo "$as_me:6067: checking for build system executable suffix" >&5 |
6068 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
6069 | if test "${bfd_cv_build_exeext+set}" = set; then | |
6070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6071 | else |
aab08431 ILT |
6072 | rm -f conftest* |
6073 | echo 'int main () { return 0; }' > conftest.c | |
6074 | bfd_cv_build_exeext= | |
6075 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
6076 | for file in conftest.*; do | |
6077 | case $file in | |
6078 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
6079 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
6080 | esac | |
6081 | done | |
6082 | rm -f conftest* | |
6083 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 6084 | fi |
b3baf5d0 NC |
6085 | echo "$as_me:6085: result: $bfd_cv_build_exeext" >&5 |
6086 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
252b5132 RH |
6087 | EXEEXT_FOR_BUILD="" |
6088 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
6089 | fi | |
6090 | ||
b3baf5d0 | 6091 | for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h |
252b5132 | 6092 | do |
b3baf5d0 NC |
6093 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
6094 | echo "$as_me:6094: checking for $ac_header" >&5 | |
6095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6096 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6098 | else | |
6099 | cat >conftest.$ac_ext <<_ACEOF | |
6100 | #line 6100 "configure" | |
252b5132 | 6101 | #include "confdefs.h" |
b3baf5d0 NC |
6102 | #include <$ac_header> |
6103 | _ACEOF | |
6104 | if { (eval echo "$as_me:6104: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6105 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6106 | ac_status=$? | |
6107 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6108 | rm -f conftest.er1 | |
6109 | cat conftest.err >&5 | |
6110 | echo "$as_me:6110: \$? = $ac_status" >&5 | |
6111 | (exit $ac_status); } >/dev/null; then | |
6112 | if test -s conftest.err; then | |
6113 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6114 | else | |
6115 | ac_cpp_err= | |
6116 | fi | |
6117 | else | |
6118 | ac_cpp_err=yes | |
6119 | fi | |
6120 | if test -z "$ac_cpp_err"; then | |
6121 | eval "$ac_ac_Header=yes" | |
252b5132 | 6122 | else |
b3baf5d0 | 6123 | echo "$as_me: failed program was:" >&5 |
252b5132 | 6124 | cat conftest.$ac_ext >&5 |
b3baf5d0 | 6125 | eval "$ac_ac_Header=no" |
252b5132 | 6126 | fi |
b3baf5d0 | 6127 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 6128 | fi |
b3baf5d0 NC |
6129 | echo "$as_me:6129: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
6130 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
6131 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
6132 | cat >>confdefs.h <<EOF | |
6133 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
252b5132 | 6134 | EOF |
b3baf5d0 | 6135 | |
252b5132 RH |
6136 | fi |
6137 | done | |
6138 | ||
b3baf5d0 | 6139 | for ac_header in fcntl.h sys/file.h sys/time.h |
252b5132 | 6140 | do |
b3baf5d0 NC |
6141 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
6142 | echo "$as_me:6142: checking for $ac_header" >&5 | |
6143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6144 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
6145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6146 | else | |
6147 | cat >conftest.$ac_ext <<_ACEOF | |
6148 | #line 6148 "configure" | |
252b5132 | 6149 | #include "confdefs.h" |
b3baf5d0 NC |
6150 | #include <$ac_header> |
6151 | _ACEOF | |
6152 | if { (eval echo "$as_me:6152: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6153 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6154 | ac_status=$? | |
6155 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6156 | rm -f conftest.er1 | |
6157 | cat conftest.err >&5 | |
6158 | echo "$as_me:6158: \$? = $ac_status" >&5 | |
6159 | (exit $ac_status); } >/dev/null; then | |
6160 | if test -s conftest.err; then | |
6161 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6162 | else | |
6163 | ac_cpp_err= | |
6164 | fi | |
6165 | else | |
6166 | ac_cpp_err=yes | |
6167 | fi | |
6168 | if test -z "$ac_cpp_err"; then | |
6169 | eval "$ac_ac_Header=yes" | |
252b5132 | 6170 | else |
b3baf5d0 | 6171 | echo "$as_me: failed program was:" >&5 |
252b5132 | 6172 | cat conftest.$ac_ext >&5 |
b3baf5d0 | 6173 | eval "$ac_ac_Header=no" |
252b5132 | 6174 | fi |
b3baf5d0 | 6175 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 6176 | fi |
b3baf5d0 NC |
6177 | echo "$as_me:6177: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
6178 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
6179 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
6180 | cat >>confdefs.h <<EOF | |
6181 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
252b5132 | 6182 | EOF |
b3baf5d0 | 6183 | |
252b5132 RH |
6184 | fi |
6185 | done | |
6186 | ||
b3baf5d0 NC |
6187 | echo "$as_me:6187: checking whether time.h and sys/time.h may both be included" >&5 |
6188 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
6189 | if test "${ac_cv_header_time+set}" = set; then | |
6190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6191 | else |
b3baf5d0 NC |
6192 | cat >conftest.$ac_ext <<_ACEOF |
6193 | #line 6193 "configure" | |
252b5132 RH |
6194 | #include "confdefs.h" |
6195 | #include <sys/types.h> | |
6196 | #include <sys/time.h> | |
6197 | #include <time.h> | |
b3baf5d0 NC |
6198 | |
6199 | int | |
6200 | main () | |
6201 | { | |
252b5132 | 6202 | struct tm *tp; |
b3baf5d0 NC |
6203 | ; |
6204 | return 0; | |
6205 | } | |
6206 | _ACEOF | |
6207 | rm -f conftest.$ac_objext | |
6208 | if { (eval echo "$as_me:6208: \"$ac_compile\"") >&5 | |
6209 | (eval $ac_compile) 2>&5 | |
6210 | ac_status=$? | |
6211 | echo "$as_me:6211: \$? = $ac_status" >&5 | |
6212 | (exit $ac_status); } && | |
6213 | { ac_try='test -s conftest.$ac_objext' | |
6214 | { (eval echo "$as_me:6214: \"$ac_try\"") >&5 | |
6215 | (eval $ac_try) 2>&5 | |
6216 | ac_status=$? | |
6217 | echo "$as_me:6217: \$? = $ac_status" >&5 | |
6218 | (exit $ac_status); }; }; then | |
252b5132 RH |
6219 | ac_cv_header_time=yes |
6220 | else | |
b3baf5d0 NC |
6221 | echo "$as_me: failed program was:" >&5 |
6222 | cat conftest.$ac_ext >&5 | |
6223 | ac_cv_header_time=no | |
252b5132 | 6224 | fi |
b3baf5d0 | 6225 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6226 | fi |
b3baf5d0 NC |
6227 | echo "$as_me:6227: result: $ac_cv_header_time" >&5 |
6228 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
252b5132 | 6229 | if test $ac_cv_header_time = yes; then |
b3baf5d0 NC |
6230 | |
6231 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
6232 | #define TIME_WITH_SYS_TIME 1 |
6233 | EOF | |
6234 | ||
6235 | fi | |
6236 | ||
6237 | ac_header_dirent=no | |
b3baf5d0 NC |
6238 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
6239 | ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh` | |
6240 | echo "$as_me:6240: checking for $ac_hdr that defines DIR" >&5 | |
6241 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
6242 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
6243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6244 | else | |
6245 | cat >conftest.$ac_ext <<_ACEOF | |
6246 | #line 6246 "configure" | |
252b5132 RH |
6247 | #include "confdefs.h" |
6248 | #include <sys/types.h> | |
6249 | #include <$ac_hdr> | |
b3baf5d0 NC |
6250 | |
6251 | int | |
6252 | main () | |
6253 | { | |
252b5132 | 6254 | DIR *dirp = 0; |
b3baf5d0 NC |
6255 | ; |
6256 | return 0; | |
6257 | } | |
6258 | _ACEOF | |
6259 | rm -f conftest.$ac_objext | |
6260 | if { (eval echo "$as_me:6260: \"$ac_compile\"") >&5 | |
6261 | (eval $ac_compile) 2>&5 | |
6262 | ac_status=$? | |
6263 | echo "$as_me:6263: \$? = $ac_status" >&5 | |
6264 | (exit $ac_status); } && | |
6265 | { ac_try='test -s conftest.$ac_objext' | |
6266 | { (eval echo "$as_me:6266: \"$ac_try\"") >&5 | |
6267 | (eval $ac_try) 2>&5 | |
6268 | ac_status=$? | |
6269 | echo "$as_me:6269: \$? = $ac_status" >&5 | |
6270 | (exit $ac_status); }; }; then | |
6271 | eval "$ac_ac_Header=yes" | |
252b5132 | 6272 | else |
b3baf5d0 NC |
6273 | echo "$as_me: failed program was:" >&5 |
6274 | cat conftest.$ac_ext >&5 | |
6275 | eval "$ac_ac_Header=no" | |
252b5132 | 6276 | fi |
b3baf5d0 | 6277 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6278 | fi |
b3baf5d0 NC |
6279 | echo "$as_me:6279: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
6280 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
6281 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
6282 | cat >>confdefs.h <<EOF | |
6283 | #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1 | |
252b5132 | 6284 | EOF |
b3baf5d0 NC |
6285 | |
6286 | ac_header_dirent=$ac_hdr; break | |
252b5132 | 6287 | fi |
b3baf5d0 | 6288 | |
252b5132 RH |
6289 | done |
6290 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6291 | if test $ac_header_dirent = dirent.h; then | |
b3baf5d0 NC |
6292 | echo "$as_me:6292: checking for opendir in -ldir" >&5 |
6293 | echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 | |
6294 | if test "${ac_cv_lib_dir_opendir+set}" = set; then | |
6295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6296 | else |
b3baf5d0 | 6297 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 6298 | LIBS="-ldir $LIBS" |
b3baf5d0 NC |
6299 | cat >conftest.$ac_ext <<_ACEOF |
6300 | #line 6300 "configure" | |
252b5132 | 6301 | #include "confdefs.h" |
b3baf5d0 | 6302 | |
252b5132 | 6303 | /* Override any gcc2 internal prototype to avoid an error. */ |
b3baf5d0 NC |
6304 | #ifdef __cplusplus |
6305 | extern "C" | |
6306 | #endif | |
252b5132 | 6307 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
6308 | builtin and then its argument prototype would still apply. */ |
6309 | char opendir (); | |
6310 | int | |
6311 | main () | |
6312 | { | |
6313 | opendir (); | |
6314 | ; | |
6315 | return 0; | |
6316 | } | |
6317 | _ACEOF | |
6318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6319 | if { (eval echo "$as_me:6319: \"$ac_link\"") >&5 | |
6320 | (eval $ac_link) 2>&5 | |
6321 | ac_status=$? | |
6322 | echo "$as_me:6322: \$? = $ac_status" >&5 | |
6323 | (exit $ac_status); } && | |
6324 | { ac_try='test -s conftest$ac_exeext' | |
6325 | { (eval echo "$as_me:6325: \"$ac_try\"") >&5 | |
6326 | (eval $ac_try) 2>&5 | |
6327 | ac_status=$? | |
6328 | echo "$as_me:6328: \$? = $ac_status" >&5 | |
6329 | (exit $ac_status); }; }; then | |
6330 | ac_cv_lib_dir_opendir=yes | |
6331 | else | |
6332 | echo "$as_me: failed program was:" >&5 | |
6333 | cat conftest.$ac_ext >&5 | |
6334 | ac_cv_lib_dir_opendir=no | |
6335 | fi | |
6336 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6337 | LIBS=$ac_check_lib_save_LIBS | |
6338 | fi | |
6339 | echo "$as_me:6339: result: $ac_cv_lib_dir_opendir" >&5 | |
6340 | echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 | |
6341 | if test $ac_cv_lib_dir_opendir = yes; then | |
252b5132 | 6342 | LIBS="$LIBS -ldir" |
252b5132 RH |
6343 | fi |
6344 | ||
6345 | else | |
b3baf5d0 NC |
6346 | echo "$as_me:6346: checking for opendir in -lx" >&5 |
6347 | echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 | |
6348 | if test "${ac_cv_lib_x_opendir+set}" = set; then | |
6349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6350 | else | |
6351 | ac_check_lib_save_LIBS=$LIBS | |
6352 | LIBS="-lx $LIBS" | |
6353 | cat >conftest.$ac_ext <<_ACEOF | |
6354 | #line 6354 "configure" | |
6355 | #include "confdefs.h" | |
252b5132 | 6356 | |
b3baf5d0 NC |
6357 | /* Override any gcc2 internal prototype to avoid an error. */ |
6358 | #ifdef __cplusplus | |
6359 | extern "C" | |
6360 | #endif | |
6361 | /* We use char because int might match the return type of a gcc2 | |
6362 | builtin and then its argument prototype would still apply. */ | |
6363 | char opendir (); | |
6364 | int | |
6365 | main () | |
6366 | { | |
6367 | opendir (); | |
6368 | ; | |
6369 | return 0; | |
6370 | } | |
6371 | _ACEOF | |
6372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6373 | if { (eval echo "$as_me:6373: \"$ac_link\"") >&5 | |
6374 | (eval $ac_link) 2>&5 | |
6375 | ac_status=$? | |
6376 | echo "$as_me:6376: \$? = $ac_status" >&5 | |
6377 | (exit $ac_status); } && | |
6378 | { ac_try='test -s conftest$ac_exeext' | |
6379 | { (eval echo "$as_me:6379: \"$ac_try\"") >&5 | |
6380 | (eval $ac_try) 2>&5 | |
6381 | ac_status=$? | |
6382 | echo "$as_me:6382: \$? = $ac_status" >&5 | |
6383 | (exit $ac_status); }; }; then | |
6384 | ac_cv_lib_x_opendir=yes | |
6385 | else | |
6386 | echo "$as_me: failed program was:" >&5 | |
6387 | cat conftest.$ac_ext >&5 | |
6388 | ac_cv_lib_x_opendir=no | |
6389 | fi | |
6390 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6391 | LIBS=$ac_check_lib_save_LIBS | |
6392 | fi | |
6393 | echo "$as_me:6393: result: $ac_cv_lib_x_opendir" >&5 | |
6394 | echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 | |
6395 | if test $ac_cv_lib_x_opendir = yes; then | |
252b5132 | 6396 | LIBS="$LIBS -lx" |
252b5132 RH |
6397 | fi |
6398 | ||
6399 | fi | |
6400 | ||
633fd09f | 6401 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 | 6402 | do |
b3baf5d0 NC |
6403 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
6404 | echo "$as_me:6404: checking for $ac_func" >&5 | |
6405 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6406 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
6407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6408 | else | |
6409 | cat >conftest.$ac_ext <<_ACEOF | |
6410 | #line 6410 "configure" | |
252b5132 RH |
6411 | #include "confdefs.h" |
6412 | /* System header to define __stub macros and hopefully few prototypes, | |
b3baf5d0 | 6413 | which can conflict with char $ac_func (); below. */ |
252b5132 RH |
6414 | #include <assert.h> |
6415 | /* Override any gcc2 internal prototype to avoid an error. */ | |
b3baf5d0 NC |
6416 | #ifdef __cplusplus |
6417 | extern "C" | |
6418 | #endif | |
252b5132 | 6419 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
6420 | builtin and then its argument prototype would still apply. */ |
6421 | char $ac_func (); | |
6422 | char (*f) (); | |
252b5132 | 6423 | |
b3baf5d0 NC |
6424 | int |
6425 | main () | |
6426 | { | |
252b5132 RH |
6427 | /* The GNU C library defines this for functions which it implements |
6428 | to always fail with ENOSYS. Some functions are actually named | |
6429 | something starting with __ and the normal name is an alias. */ | |
6430 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6431 | choke me | |
6432 | #else | |
b3baf5d0 | 6433 | f = $ac_func; |
252b5132 RH |
6434 | #endif |
6435 | ||
b3baf5d0 NC |
6436 | ; |
6437 | return 0; | |
6438 | } | |
6439 | _ACEOF | |
6440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6441 | if { (eval echo "$as_me:6441: \"$ac_link\"") >&5 | |
6442 | (eval $ac_link) 2>&5 | |
6443 | ac_status=$? | |
6444 | echo "$as_me:6444: \$? = $ac_status" >&5 | |
6445 | (exit $ac_status); } && | |
6446 | { ac_try='test -s conftest$ac_exeext' | |
6447 | { (eval echo "$as_me:6447: \"$ac_try\"") >&5 | |
6448 | (eval $ac_try) 2>&5 | |
6449 | ac_status=$? | |
6450 | echo "$as_me:6450: \$? = $ac_status" >&5 | |
6451 | (exit $ac_status); }; }; then | |
6452 | eval "$ac_ac_var=yes" | |
6453 | else | |
6454 | echo "$as_me: failed program was:" >&5 | |
6455 | cat conftest.$ac_ext >&5 | |
6456 | eval "$ac_ac_var=no" | |
6457 | fi | |
6458 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6459 | fi | |
6460 | echo "$as_me:6460: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
6461 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
6462 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
6463 | cat >>confdefs.h <<EOF | |
6464 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
252b5132 | 6465 | EOF |
252b5132 | 6466 | |
252b5132 RH |
6467 | fi |
6468 | done | |
6469 | ||
252b5132 | 6470 | case "${host}" in |
855b0be7 | 6471 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
b3baf5d0 NC |
6472 | |
6473 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
6474 | #define USE_BINARY_FOPEN 1 |
6475 | EOF | |
6476 | ;; | |
6477 | esac | |
6478 | ||
b3baf5d0 NC |
6479 | echo "$as_me:6479: checking whether strstr must be declared" >&5 |
6480 | echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6 | |
6481 | if test "${bfd_cv_decl_needed_strstr+set}" = set; then | |
6482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6483 | else |
b3baf5d0 NC |
6484 | cat >conftest.$ac_ext <<_ACEOF |
6485 | #line 6485 "configure" | |
252b5132 RH |
6486 | #include "confdefs.h" |
6487 | ||
6488 | #include <stdio.h> | |
6489 | #ifdef HAVE_STRING_H | |
6490 | #include <string.h> | |
6491 | #else | |
6492 | #ifdef HAVE_STRINGS_H | |
6493 | #include <strings.h> | |
6494 | #endif | |
6495 | #endif | |
6496 | #ifdef HAVE_STDLIB_H | |
6497 | #include <stdlib.h> | |
6498 | #endif | |
6499 | #ifdef HAVE_UNISTD_H | |
6500 | #include <unistd.h> | |
6501 | #endif | |
b3baf5d0 NC |
6502 | int |
6503 | main () | |
6504 | { | |
252b5132 | 6505 | char *(*pfn) = (char *(*)) strstr |
b3baf5d0 NC |
6506 | ; |
6507 | return 0; | |
6508 | } | |
6509 | _ACEOF | |
6510 | rm -f conftest.$ac_objext | |
6511 | if { (eval echo "$as_me:6511: \"$ac_compile\"") >&5 | |
6512 | (eval $ac_compile) 2>&5 | |
6513 | ac_status=$? | |
6514 | echo "$as_me:6514: \$? = $ac_status" >&5 | |
6515 | (exit $ac_status); } && | |
6516 | { ac_try='test -s conftest.$ac_objext' | |
6517 | { (eval echo "$as_me:6517: \"$ac_try\"") >&5 | |
6518 | (eval $ac_try) 2>&5 | |
6519 | ac_status=$? | |
6520 | echo "$as_me:6520: \$? = $ac_status" >&5 | |
6521 | (exit $ac_status); }; }; then | |
252b5132 RH |
6522 | bfd_cv_decl_needed_strstr=no |
6523 | else | |
b3baf5d0 NC |
6524 | echo "$as_me: failed program was:" >&5 |
6525 | cat conftest.$ac_ext >&5 | |
6526 | bfd_cv_decl_needed_strstr=yes | |
252b5132 | 6527 | fi |
b3baf5d0 | 6528 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
6529 | fi |
6530 | ||
b3baf5d0 NC |
6531 | echo "$as_me:6531: result: $bfd_cv_decl_needed_strstr" >&5 |
6532 | echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6 | |
252b5132 | 6533 | if test $bfd_cv_decl_needed_strstr = yes; then |
b3baf5d0 NC |
6534 | |
6535 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
6536 | #define NEED_DECLARATION_STRSTR 1 |
6537 | EOF | |
6538 | ||
6539 | fi | |
6540 | ||
b3baf5d0 NC |
6541 | echo "$as_me:6541: checking whether malloc must be declared" >&5 |
6542 | echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6 | |
6543 | if test "${bfd_cv_decl_needed_malloc+set}" = set; then | |
6544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6545 | else |
b3baf5d0 NC |
6546 | cat >conftest.$ac_ext <<_ACEOF |
6547 | #line 6547 "configure" | |
252b5132 RH |
6548 | #include "confdefs.h" |
6549 | ||
6550 | #include <stdio.h> | |
6551 | #ifdef HAVE_STRING_H | |
6552 | #include <string.h> | |
6553 | #else | |
6554 | #ifdef HAVE_STRINGS_H | |
6555 | #include <strings.h> | |
6556 | #endif | |
6557 | #endif | |
6558 | #ifdef HAVE_STDLIB_H | |
6559 | #include <stdlib.h> | |
6560 | #endif | |
6561 | #ifdef HAVE_UNISTD_H | |
6562 | #include <unistd.h> | |
6563 | #endif | |
b3baf5d0 NC |
6564 | int |
6565 | main () | |
6566 | { | |
252b5132 | 6567 | char *(*pfn) = (char *(*)) malloc |
b3baf5d0 NC |
6568 | ; |
6569 | return 0; | |
6570 | } | |
6571 | _ACEOF | |
6572 | rm -f conftest.$ac_objext | |
6573 | if { (eval echo "$as_me:6573: \"$ac_compile\"") >&5 | |
6574 | (eval $ac_compile) 2>&5 | |
6575 | ac_status=$? | |
6576 | echo "$as_me:6576: \$? = $ac_status" >&5 | |
6577 | (exit $ac_status); } && | |
6578 | { ac_try='test -s conftest.$ac_objext' | |
6579 | { (eval echo "$as_me:6579: \"$ac_try\"") >&5 | |
6580 | (eval $ac_try) 2>&5 | |
6581 | ac_status=$? | |
6582 | echo "$as_me:6582: \$? = $ac_status" >&5 | |
6583 | (exit $ac_status); }; }; then | |
252b5132 RH |
6584 | bfd_cv_decl_needed_malloc=no |
6585 | else | |
b3baf5d0 NC |
6586 | echo "$as_me: failed program was:" >&5 |
6587 | cat conftest.$ac_ext >&5 | |
6588 | bfd_cv_decl_needed_malloc=yes | |
252b5132 | 6589 | fi |
b3baf5d0 | 6590 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
6591 | fi |
6592 | ||
b3baf5d0 NC |
6593 | echo "$as_me:6593: result: $bfd_cv_decl_needed_malloc" >&5 |
6594 | echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6 | |
252b5132 | 6595 | if test $bfd_cv_decl_needed_malloc = yes; then |
b3baf5d0 NC |
6596 | |
6597 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
6598 | #define NEED_DECLARATION_MALLOC 1 |
6599 | EOF | |
6600 | ||
6601 | fi | |
6602 | ||
b3baf5d0 NC |
6603 | echo "$as_me:6603: checking whether realloc must be declared" >&5 |
6604 | echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6 | |
6605 | if test "${bfd_cv_decl_needed_realloc+set}" = set; then | |
6606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6607 | else |
b3baf5d0 NC |
6608 | cat >conftest.$ac_ext <<_ACEOF |
6609 | #line 6609 "configure" | |
252b5132 RH |
6610 | #include "confdefs.h" |
6611 | ||
6612 | #include <stdio.h> | |
6613 | #ifdef HAVE_STRING_H | |
6614 | #include <string.h> | |
6615 | #else | |
6616 | #ifdef HAVE_STRINGS_H | |
6617 | #include <strings.h> | |
6618 | #endif | |
6619 | #endif | |
6620 | #ifdef HAVE_STDLIB_H | |
6621 | #include <stdlib.h> | |
6622 | #endif | |
6623 | #ifdef HAVE_UNISTD_H | |
6624 | #include <unistd.h> | |
6625 | #endif | |
b3baf5d0 NC |
6626 | int |
6627 | main () | |
6628 | { | |
252b5132 | 6629 | char *(*pfn) = (char *(*)) realloc |
b3baf5d0 NC |
6630 | ; |
6631 | return 0; | |
6632 | } | |
6633 | _ACEOF | |
6634 | rm -f conftest.$ac_objext | |
6635 | if { (eval echo "$as_me:6635: \"$ac_compile\"") >&5 | |
6636 | (eval $ac_compile) 2>&5 | |
6637 | ac_status=$? | |
6638 | echo "$as_me:6638: \$? = $ac_status" >&5 | |
6639 | (exit $ac_status); } && | |
6640 | { ac_try='test -s conftest.$ac_objext' | |
6641 | { (eval echo "$as_me:6641: \"$ac_try\"") >&5 | |
6642 | (eval $ac_try) 2>&5 | |
6643 | ac_status=$? | |
6644 | echo "$as_me:6644: \$? = $ac_status" >&5 | |
6645 | (exit $ac_status); }; }; then | |
252b5132 RH |
6646 | bfd_cv_decl_needed_realloc=no |
6647 | else | |
b3baf5d0 NC |
6648 | echo "$as_me: failed program was:" >&5 |
6649 | cat conftest.$ac_ext >&5 | |
6650 | bfd_cv_decl_needed_realloc=yes | |
252b5132 | 6651 | fi |
b3baf5d0 | 6652 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
6653 | fi |
6654 | ||
b3baf5d0 NC |
6655 | echo "$as_me:6655: result: $bfd_cv_decl_needed_realloc" >&5 |
6656 | echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6 | |
252b5132 | 6657 | if test $bfd_cv_decl_needed_realloc = yes; then |
b3baf5d0 NC |
6658 | |
6659 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
6660 | #define NEED_DECLARATION_REALLOC 1 |
6661 | EOF | |
6662 | ||
6663 | fi | |
6664 | ||
b3baf5d0 NC |
6665 | echo "$as_me:6665: checking whether free must be declared" >&5 |
6666 | echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6 | |
6667 | if test "${bfd_cv_decl_needed_free+set}" = set; then | |
6668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6669 | else |
b3baf5d0 NC |
6670 | cat >conftest.$ac_ext <<_ACEOF |
6671 | #line 6671 "configure" | |
252b5132 RH |
6672 | #include "confdefs.h" |
6673 | ||
6674 | #include <stdio.h> | |
6675 | #ifdef HAVE_STRING_H | |
6676 | #include <string.h> | |
6677 | #else | |
6678 | #ifdef HAVE_STRINGS_H | |
6679 | #include <strings.h> | |
6680 | #endif | |
6681 | #endif | |
6682 | #ifdef HAVE_STDLIB_H | |
6683 | #include <stdlib.h> | |
6684 | #endif | |
6685 | #ifdef HAVE_UNISTD_H | |
6686 | #include <unistd.h> | |
6687 | #endif | |
b3baf5d0 NC |
6688 | int |
6689 | main () | |
6690 | { | |
252b5132 | 6691 | char *(*pfn) = (char *(*)) free |
b3baf5d0 NC |
6692 | ; |
6693 | return 0; | |
6694 | } | |
6695 | _ACEOF | |
6696 | rm -f conftest.$ac_objext | |
6697 | if { (eval echo "$as_me:6697: \"$ac_compile\"") >&5 | |
6698 | (eval $ac_compile) 2>&5 | |
6699 | ac_status=$? | |
6700 | echo "$as_me:6700: \$? = $ac_status" >&5 | |
6701 | (exit $ac_status); } && | |
6702 | { ac_try='test -s conftest.$ac_objext' | |
6703 | { (eval echo "$as_me:6703: \"$ac_try\"") >&5 | |
6704 | (eval $ac_try) 2>&5 | |
6705 | ac_status=$? | |
6706 | echo "$as_me:6706: \$? = $ac_status" >&5 | |
6707 | (exit $ac_status); }; }; then | |
252b5132 RH |
6708 | bfd_cv_decl_needed_free=no |
6709 | else | |
b3baf5d0 NC |
6710 | echo "$as_me: failed program was:" >&5 |
6711 | cat conftest.$ac_ext >&5 | |
6712 | bfd_cv_decl_needed_free=yes | |
252b5132 | 6713 | fi |
b3baf5d0 | 6714 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
6715 | fi |
6716 | ||
b3baf5d0 NC |
6717 | echo "$as_me:6717: result: $bfd_cv_decl_needed_free" >&5 |
6718 | echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6 | |
252b5132 | 6719 | if test $bfd_cv_decl_needed_free = yes; then |
b3baf5d0 NC |
6720 | |
6721 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
6722 | #define NEED_DECLARATION_FREE 1 |
6723 | EOF | |
6724 | ||
6725 | fi | |
6726 | ||
b3baf5d0 NC |
6727 | echo "$as_me:6727: checking whether getenv must be declared" >&5 |
6728 | echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6 | |
6729 | if test "${bfd_cv_decl_needed_getenv+set}" = set; then | |
6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6731 | else |
b3baf5d0 NC |
6732 | cat >conftest.$ac_ext <<_ACEOF |
6733 | #line 6733 "configure" | |
252b5132 RH |
6734 | #include "confdefs.h" |
6735 | ||
6736 | #include <stdio.h> | |
6737 | #ifdef HAVE_STRING_H | |
6738 | #include <string.h> | |
6739 | #else | |
6740 | #ifdef HAVE_STRINGS_H | |
6741 | #include <strings.h> | |
6742 | #endif | |
6743 | #endif | |
6744 | #ifdef HAVE_STDLIB_H | |
6745 | #include <stdlib.h> | |
6746 | #endif | |
6747 | #ifdef HAVE_UNISTD_H | |
6748 | #include <unistd.h> | |
6749 | #endif | |
b3baf5d0 NC |
6750 | int |
6751 | main () | |
6752 | { | |
252b5132 | 6753 | char *(*pfn) = (char *(*)) getenv |
b3baf5d0 NC |
6754 | ; |
6755 | return 0; | |
6756 | } | |
6757 | _ACEOF | |
6758 | rm -f conftest.$ac_objext | |
6759 | if { (eval echo "$as_me:6759: \"$ac_compile\"") >&5 | |
6760 | (eval $ac_compile) 2>&5 | |
6761 | ac_status=$? | |
6762 | echo "$as_me:6762: \$? = $ac_status" >&5 | |
6763 | (exit $ac_status); } && | |
6764 | { ac_try='test -s conftest.$ac_objext' | |
6765 | { (eval echo "$as_me:6765: \"$ac_try\"") >&5 | |
6766 | (eval $ac_try) 2>&5 | |
6767 | ac_status=$? | |
6768 | echo "$as_me:6768: \$? = $ac_status" >&5 | |
6769 | (exit $ac_status); }; }; then | |
252b5132 RH |
6770 | bfd_cv_decl_needed_getenv=no |
6771 | else | |
b3baf5d0 NC |
6772 | echo "$as_me: failed program was:" >&5 |
6773 | cat conftest.$ac_ext >&5 | |
6774 | bfd_cv_decl_needed_getenv=yes | |
252b5132 | 6775 | fi |
b3baf5d0 | 6776 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
6777 | fi |
6778 | ||
b3baf5d0 NC |
6779 | echo "$as_me:6779: result: $bfd_cv_decl_needed_getenv" >&5 |
6780 | echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6 | |
252b5132 | 6781 | if test $bfd_cv_decl_needed_getenv = yes; then |
b3baf5d0 NC |
6782 | |
6783 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
6784 | #define NEED_DECLARATION_GETENV 1 |
6785 | EOF | |
6786 | ||
6787 | fi | |
6788 | ||
252b5132 RH |
6789 | # If we are configured native, pick a core file support file. |
6790 | COREFILE= | |
6791 | COREFLAG= | |
6792 | TRAD_HEADER= | |
6793 | if test "${target}" = "${host}"; then | |
6794 | case "${host}" in | |
46d59bfa DB |
6795 | alpha*-*-freebsd*) |
6796 | COREFILE='' | |
6797 | ;; | |
252b5132 RH |
6798 | alpha*-*-linux-gnu*) |
6799 | COREFILE=trad-core.lo | |
6800 | TRAD_HEADER='"hosts/alphalinux.h"' | |
6801 | ;; | |
6802 | alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;; | |
6803 | alpha*-*-*) COREFILE=osf-core.lo ;; | |
d4af9775 | 6804 | arm-*-freebsd*) COREFILE='' ;; |
252b5132 RH |
6805 | arm-*-riscix) COREFILE=trad-core.lo ;; |
6806 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
6807 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
6808 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
6809 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
6810 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
b3baf5d0 | 6811 | i370-*-*) |
5b93d8bb AM |
6812 | COREFILE=trad-core.lo |
6813 | TRAD_HEADER='"hosts/i370linux.h"' | |
6814 | ;; | |
6815 | ||
252b5132 | 6816 | i[3456]86-sequent-bsd*) |
5b93d8bb | 6817 | COREFILE=trad-core.lo |
252b5132 RH |
6818 | TRAD_HEADER='"hosts/symmetry.h"' |
6819 | ;; | |
6820 | i[3456]86-sequent-sysv4*) ;; | |
6821 | i[3456]86-sequent-sysv*) | |
6822 | COREFILE=trad-core.lo | |
6823 | TRAD_HEADER='"hosts/symmetry.h"' | |
6824 | ;; | |
d4af9775 | 6825 | i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*) |
252b5132 RH |
6826 | COREFILE=trad-core.lo |
6827 | TRAD_HEADER='"hosts/i386bsd.h"' | |
6828 | ;; | |
d4af9775 DB |
6829 | i[3456]86-*-freebsd*) |
6830 | COREFILE='' | |
6831 | TRAD_HEADER='"hosts/i386bsd.h"' | |
6832 | ;; | |
252b5132 RH |
6833 | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) |
6834 | COREFILE=netbsd-core.lo | |
6835 | ;; | |
6836 | i[3456]86-esix-sysv3*) | |
6837 | COREFILE=trad-core.lo | |
6838 | TRAD_HEADER='"hosts/esix.h"' | |
6839 | ;; | |
6840 | i[3456]86-*-sco3.2v5*) | |
6841 | COREFILE=sco5-core.lo | |
6842 | ;; | |
6843 | i[3456]86-*-sco* | i[3456]86-*-isc*) | |
6844 | COREFILE=trad-core.lo | |
6845 | TRAD_HEADER='"hosts/i386sco.h"' | |
6846 | ;; | |
6847 | i[3456]86-*-mach3*) | |
6848 | COREFILE=trad-core.lo | |
6849 | TRAD_HEADER='"hosts/i386mach3.h"' | |
6850 | ;; | |
6851 | i[3456]86-*-linux-gnu*) | |
6852 | COREFILE=trad-core.lo | |
6853 | TRAD_HEADER='"hosts/i386linux.h"' | |
6854 | ;; | |
6855 | i[3456]86-*-isc*) COREFILE=trad-core.lo ;; | |
6856 | i[3456]86-*-aix*) COREFILE=aix386-core.lo ;; | |
6857 | i860-*-mach3* | i860-*-osf1*) | |
6858 | COREFILE=trad-core.lo | |
6859 | TRAD_HEADER='"hosts/i860mach3.h"' | |
6860 | ;; | |
6861 | mips-dec-bsd*) | |
6862 | COREFILE=trad-core.lo | |
6863 | TRAD_HEADER='"hosts/mipsbsd.h"' | |
6864 | ;; | |
6865 | mips-dec-mach3*) | |
6866 | COREFILE=trad-core.lo | |
6867 | TRAD_HEADER='"hosts/mipsmach3.h"' | |
6868 | ;; | |
6869 | mips-*-netbsd* | mips*-*-openbsd*) | |
6870 | COREFILE=netbsd-core.lo | |
6871 | ;; | |
6872 | mips-dec-*) | |
6873 | COREFILE=trad-core.lo | |
6874 | TRAD_HEADER='"hosts/decstation.h"' | |
6875 | ;; | |
6876 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
6877 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
6878 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
6879 | mips-*-mach3*) | |
6880 | COREFILE=trad-core.lo | |
6881 | TRAD_HEADER='"hosts/mipsmach3.h"' | |
6882 | ;; | |
6883 | mips-*-sysv4*) ;; | |
6884 | mips-*-sysv* | mips-*-riscos*) | |
6885 | COREFILE=trad-core.lo | |
6886 | TRAD_HEADER='"hosts/riscos.h"' | |
6887 | ;; | |
6888 | mips-sony-bsd*) | |
6889 | COREFILE=trad-core.lo | |
6890 | TRAD_HEADER='"hosts/news-mips.h"' | |
6891 | ;; | |
6892 | m68*-bull*-sysv*) | |
6893 | COREFILE=trad-core.lo | |
6894 | TRAD_HEADER='"hosts/dpx2.h"' | |
6895 | ;; | |
6896 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
6897 | m68*-hp-bsd*) | |
6898 | COREFILE=trad-core.lo | |
6899 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
6900 | ;; | |
6901 | m68*-*-linux-gnu*) | |
6902 | COREFILE=trad-core.lo | |
6903 | TRAD_HEADER='"hosts/m68klinux.h"' | |
6904 | ;; | |
6905 | m68*-motorola-sysv*) | |
6906 | COREFILE=trad-core.lo | |
6907 | TRAD_HEADER='"hosts/delta68.h"' | |
6908 | ;; | |
6909 | m68*-sony-*) | |
6910 | COREFILE=trad-core.lo | |
6911 | TRAD_HEADER='"hosts/news.h"' | |
6912 | ;; | |
6913 | m68*-*-netbsd* | m68*-*-openbsd*) | |
6914 | COREFILE=netbsd-core.lo | |
6915 | ;; | |
6916 | m68*-apple-aux*) | |
6917 | COREFILE=trad-core.lo | |
6918 | TRAD_HEADER='"hosts/m68kaux.h"' | |
6919 | ;; | |
6920 | m88*-*-sysv4*) ;; | |
6921 | m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;; | |
6922 | m88*-*-mach3*) | |
6923 | COREFILE=trad-core.lo | |
6924 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
6925 | ;; | |
6926 | ns32k-pc532-mach) | |
6927 | COREFILE=trad-core.lo | |
6928 | TRAD_HEADER='"hosts/pc532mach.h"' | |
6929 | ;; | |
6930 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
6931 | COREFILE=netbsd-core.lo | |
6932 | ;; | |
6933 | rs6000-*-lynx*) COREFILE=lynx-core.lo ;; | |
653f71ca KB |
6934 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
6935 | COREFILE=rs6000-core.lo | |
6936 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
6937 | ;; | |
252b5132 RH |
6938 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
6939 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
6940 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
6941 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
6942 | powerpc-*-beos*) ;; | |
d4af9775 | 6943 | powerpc-*-freebsd*) COREFILE='' ;; |
252b5132 | 6944 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 6945 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
b3baf5d0 | 6946 | s390*-*-*) COREFILE=trad-core.lo ;; |
252b5132 RH |
6947 | sparc-*-netbsd* | sparc-*-openbsd*) |
6948 | COREFILE=netbsd-core.lo | |
6949 | ;; | |
6950 | tahoe-*-*) | |
6951 | COREFILE=trad-core.lo | |
6952 | TRAD_HEADER='"hosts/tahoe.h"' | |
6953 | ;; | |
6954 | vax-*-ultrix2*) | |
6955 | COREFILE=trad-core.lo | |
6956 | TRAD_HEADER='"hosts/vaxult2.h"' | |
6957 | ;; | |
6958 | vax-*-ultrix*) | |
6959 | COREFILE=trad-core.lo | |
6960 | TRAD_HEADER='"hosts/vaxult2.h"' | |
6961 | ;; | |
6962 | vax-*-*) | |
6963 | COREFILE=trad-core.lo | |
6964 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
6965 | ;; | |
6966 | esac | |
6967 | ||
6968 | case "$COREFILE" in | |
6969 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
6970 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
6971 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
6972 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
6973 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
6974 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
6975 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
6976 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
6977 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
6978 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
6979 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
6980 | esac | |
6981 | ||
6982 | # ELF corefile support has several flavors, but all of | |
6983 | # them use something called <sys/procfs.h> | |
b3baf5d0 NC |
6984 | |
6985 | for ac_header in sys/procfs.h | |
252b5132 | 6986 | do |
b3baf5d0 NC |
6987 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
6988 | echo "$as_me:6988: checking for $ac_header" >&5 | |
6989 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6990 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
6991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6992 | else | |
6993 | cat >conftest.$ac_ext <<_ACEOF | |
6994 | #line 6994 "configure" | |
252b5132 | 6995 | #include "confdefs.h" |
b3baf5d0 NC |
6996 | #include <$ac_header> |
6997 | _ACEOF | |
6998 | if { (eval echo "$as_me:6998: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7000 | ac_status=$? | |
7001 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7002 | rm -f conftest.er1 | |
7003 | cat conftest.err >&5 | |
7004 | echo "$as_me:7004: \$? = $ac_status" >&5 | |
7005 | (exit $ac_status); } >/dev/null; then | |
7006 | if test -s conftest.err; then | |
7007 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7008 | else | |
7009 | ac_cpp_err= | |
7010 | fi | |
7011 | else | |
7012 | ac_cpp_err=yes | |
7013 | fi | |
7014 | if test -z "$ac_cpp_err"; then | |
7015 | eval "$ac_ac_Header=yes" | |
252b5132 | 7016 | else |
b3baf5d0 | 7017 | echo "$as_me: failed program was:" >&5 |
252b5132 | 7018 | cat conftest.$ac_ext >&5 |
b3baf5d0 | 7019 | eval "$ac_ac_Header=no" |
252b5132 | 7020 | fi |
b3baf5d0 | 7021 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 7022 | fi |
b3baf5d0 NC |
7023 | echo "$as_me:7023: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
7024 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
7025 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
7026 | cat >>confdefs.h <<EOF | |
7027 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
252b5132 | 7028 | EOF |
b3baf5d0 | 7029 | |
252b5132 RH |
7030 | fi |
7031 | done | |
7032 | ||
7033 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b3baf5d0 NC |
7034 | echo "$as_me:7034: checking for prstatus_t in sys/procfs.h" >&5 |
7035 | echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
7036 | if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then | |
7037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7038 | else |
b3baf5d0 NC |
7039 | cat >conftest.$ac_ext <<_ACEOF |
7040 | #line 7040 "configure" | |
252b5132 | 7041 | #include "confdefs.h" |
7ee38065 MS |
7042 | |
7043 | #define _SYSCALL32 | |
252b5132 | 7044 | #include <sys/procfs.h> |
b3baf5d0 NC |
7045 | int |
7046 | main () | |
7047 | { | |
252b5132 | 7048 | prstatus_t avar |
b3baf5d0 NC |
7049 | ; |
7050 | return 0; | |
7051 | } | |
7052 | _ACEOF | |
7053 | rm -f conftest.$ac_objext | |
7054 | if { (eval echo "$as_me:7054: \"$ac_compile\"") >&5 | |
7055 | (eval $ac_compile) 2>&5 | |
7056 | ac_status=$? | |
7057 | echo "$as_me:7057: \$? = $ac_status" >&5 | |
7058 | (exit $ac_status); } && | |
7059 | { ac_try='test -s conftest.$ac_objext' | |
7060 | { (eval echo "$as_me:7060: \"$ac_try\"") >&5 | |
7061 | (eval $ac_try) 2>&5 | |
7062 | ac_status=$? | |
7063 | echo "$as_me:7063: \$? = $ac_status" >&5 | |
7064 | (exit $ac_status); }; }; then | |
252b5132 RH |
7065 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
7066 | else | |
b3baf5d0 NC |
7067 | echo "$as_me: failed program was:" >&5 |
7068 | cat conftest.$ac_ext >&5 | |
7069 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
7070 | ||
252b5132 | 7071 | fi |
b3baf5d0 | 7072 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7073 | fi |
7074 | ||
7075 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
b3baf5d0 NC |
7076 | |
7077 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
7078 | #define HAVE_PRSTATUS_T 1 |
7079 | EOF | |
7080 | ||
7081 | fi | |
b3baf5d0 NC |
7082 | echo "$as_me:7082: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 |
7083 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 | |
252b5132 | 7084 | |
b3baf5d0 NC |
7085 | echo "$as_me:7085: checking for prstatus32_t in sys/procfs.h" >&5 |
7086 | echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
7087 | if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then | |
7088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 7089 | else |
b3baf5d0 NC |
7090 | cat >conftest.$ac_ext <<_ACEOF |
7091 | #line 7091 "configure" | |
7ee38065 MS |
7092 | #include "confdefs.h" |
7093 | ||
7094 | #define _SYSCALL32 | |
7095 | #include <sys/procfs.h> | |
b3baf5d0 NC |
7096 | int |
7097 | main () | |
7098 | { | |
7ee38065 | 7099 | prstatus32_t avar |
b3baf5d0 NC |
7100 | ; |
7101 | return 0; | |
7102 | } | |
7103 | _ACEOF | |
7104 | rm -f conftest.$ac_objext | |
7105 | if { (eval echo "$as_me:7105: \"$ac_compile\"") >&5 | |
7106 | (eval $ac_compile) 2>&5 | |
7107 | ac_status=$? | |
7108 | echo "$as_me:7108: \$? = $ac_status" >&5 | |
7109 | (exit $ac_status); } && | |
7110 | { ac_try='test -s conftest.$ac_objext' | |
7111 | { (eval echo "$as_me:7111: \"$ac_try\"") >&5 | |
7112 | (eval $ac_try) 2>&5 | |
7113 | ac_status=$? | |
7114 | echo "$as_me:7114: \$? = $ac_status" >&5 | |
7115 | (exit $ac_status); }; }; then | |
7ee38065 MS |
7116 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
7117 | else | |
b3baf5d0 NC |
7118 | echo "$as_me: failed program was:" >&5 |
7119 | cat conftest.$ac_ext >&5 | |
7120 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
7121 | ||
7ee38065 | 7122 | fi |
b3baf5d0 | 7123 | rm -f conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
7124 | fi |
7125 | ||
7126 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
b3baf5d0 NC |
7127 | |
7128 | cat >>confdefs.h <<\EOF | |
7ee38065 MS |
7129 | #define HAVE_PRSTATUS32_T 1 |
7130 | EOF | |
7131 | ||
7132 | fi | |
b3baf5d0 NC |
7133 | echo "$as_me:7133: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 |
7134 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 | |
7ee38065 | 7135 | |
b3baf5d0 NC |
7136 | echo "$as_me:7136: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
7137 | echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
7138 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then | |
7139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7140 | else |
b3baf5d0 NC |
7141 | cat >conftest.$ac_ext <<_ACEOF |
7142 | #line 7142 "configure" | |
252b5132 | 7143 | #include "confdefs.h" |
7ee38065 MS |
7144 | |
7145 | #define _SYSCALL32 | |
252b5132 | 7146 | #include <sys/procfs.h> |
b3baf5d0 NC |
7147 | int |
7148 | main () | |
7149 | { | |
252b5132 | 7150 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
b3baf5d0 NC |
7151 | ; |
7152 | return 0; | |
7153 | } | |
7154 | _ACEOF | |
7155 | rm -f conftest.$ac_objext | |
7156 | if { (eval echo "$as_me:7156: \"$ac_compile\"") >&5 | |
7157 | (eval $ac_compile) 2>&5 | |
7158 | ac_status=$? | |
7159 | echo "$as_me:7159: \$? = $ac_status" >&5 | |
7160 | (exit $ac_status); } && | |
7161 | { ac_try='test -s conftest.$ac_objext' | |
7162 | { (eval echo "$as_me:7162: \"$ac_try\"") >&5 | |
7163 | (eval $ac_try) 2>&5 | |
7164 | ac_status=$? | |
7165 | echo "$as_me:7165: \$? = $ac_status" >&5 | |
7166 | (exit $ac_status); }; }; then | |
252b5132 RH |
7167 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
7168 | else | |
b3baf5d0 NC |
7169 | echo "$as_me: failed program was:" >&5 |
7170 | cat conftest.$ac_ext >&5 | |
7171 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
7172 | ||
252b5132 | 7173 | fi |
b3baf5d0 | 7174 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7175 | fi |
7176 | ||
7177 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
b3baf5d0 NC |
7178 | |
7179 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
7180 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
7181 | EOF | |
7182 | ||
7183 | fi | |
b3baf5d0 NC |
7184 | echo "$as_me:7184: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 |
7185 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 | |
252b5132 | 7186 | |
b3baf5d0 NC |
7187 | echo "$as_me:7187: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
7188 | echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
7189 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then | |
7190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 7191 | else |
b3baf5d0 NC |
7192 | cat >conftest.$ac_ext <<_ACEOF |
7193 | #line 7193 "configure" | |
7ee38065 MS |
7194 | #include "confdefs.h" |
7195 | ||
7196 | #define _SYSCALL32 | |
7197 | #include <sys/procfs.h> | |
b3baf5d0 NC |
7198 | int |
7199 | main () | |
7200 | { | |
7ee38065 | 7201 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
b3baf5d0 NC |
7202 | ; |
7203 | return 0; | |
7204 | } | |
7205 | _ACEOF | |
7206 | rm -f conftest.$ac_objext | |
7207 | if { (eval echo "$as_me:7207: \"$ac_compile\"") >&5 | |
7208 | (eval $ac_compile) 2>&5 | |
7209 | ac_status=$? | |
7210 | echo "$as_me:7210: \$? = $ac_status" >&5 | |
7211 | (exit $ac_status); } && | |
7212 | { ac_try='test -s conftest.$ac_objext' | |
7213 | { (eval echo "$as_me:7213: \"$ac_try\"") >&5 | |
7214 | (eval $ac_try) 2>&5 | |
7215 | ac_status=$? | |
7216 | echo "$as_me:7216: \$? = $ac_status" >&5 | |
7217 | (exit $ac_status); }; }; then | |
7ee38065 MS |
7218 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
7219 | else | |
b3baf5d0 NC |
7220 | echo "$as_me: failed program was:" >&5 |
7221 | cat conftest.$ac_ext >&5 | |
7222 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
7223 | ||
7ee38065 | 7224 | fi |
b3baf5d0 | 7225 | rm -f conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
7226 | fi |
7227 | ||
7228 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
b3baf5d0 NC |
7229 | |
7230 | cat >>confdefs.h <<\EOF | |
7ee38065 MS |
7231 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
7232 | EOF | |
7233 | ||
7234 | fi | |
b3baf5d0 NC |
7235 | echo "$as_me:7235: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 |
7236 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 | |
7ee38065 | 7237 | |
b3baf5d0 NC |
7238 | echo "$as_me:7238: checking for pstatus_t in sys/procfs.h" >&5 |
7239 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
7240 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
7241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7242 | else |
b3baf5d0 NC |
7243 | cat >conftest.$ac_ext <<_ACEOF |
7244 | #line 7244 "configure" | |
252b5132 | 7245 | #include "confdefs.h" |
7ee38065 MS |
7246 | |
7247 | #define _SYSCALL32 | |
252b5132 | 7248 | #include <sys/procfs.h> |
b3baf5d0 NC |
7249 | int |
7250 | main () | |
7251 | { | |
252b5132 | 7252 | pstatus_t avar |
b3baf5d0 NC |
7253 | ; |
7254 | return 0; | |
7255 | } | |
7256 | _ACEOF | |
7257 | rm -f conftest.$ac_objext | |
7258 | if { (eval echo "$as_me:7258: \"$ac_compile\"") >&5 | |
7259 | (eval $ac_compile) 2>&5 | |
7260 | ac_status=$? | |
7261 | echo "$as_me:7261: \$? = $ac_status" >&5 | |
7262 | (exit $ac_status); } && | |
7263 | { ac_try='test -s conftest.$ac_objext' | |
7264 | { (eval echo "$as_me:7264: \"$ac_try\"") >&5 | |
7265 | (eval $ac_try) 2>&5 | |
7266 | ac_status=$? | |
7267 | echo "$as_me:7267: \$? = $ac_status" >&5 | |
7268 | (exit $ac_status); }; }; then | |
252b5132 RH |
7269 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
7270 | else | |
b3baf5d0 NC |
7271 | echo "$as_me: failed program was:" >&5 |
7272 | cat conftest.$ac_ext >&5 | |
7273 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
7274 | ||
252b5132 | 7275 | fi |
b3baf5d0 | 7276 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7277 | fi |
7278 | ||
7279 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
b3baf5d0 NC |
7280 | |
7281 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
7282 | #define HAVE_PSTATUS_T 1 |
7283 | EOF | |
7284 | ||
7285 | fi | |
b3baf5d0 NC |
7286 | echo "$as_me:7286: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
7287 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
252b5132 | 7288 | |
b3baf5d0 NC |
7289 | echo "$as_me:7289: checking for pxstatus_t in sys/procfs.h" >&5 |
7290 | echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
7291 | if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then | |
7292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 7293 | else |
b3baf5d0 NC |
7294 | cat >conftest.$ac_ext <<_ACEOF |
7295 | #line 7295 "configure" | |
f572a39d AM |
7296 | #include "confdefs.h" |
7297 | ||
7298 | #define _SYSCALL32 | |
7299 | #include <sys/procfs.h> | |
b3baf5d0 NC |
7300 | int |
7301 | main () | |
7302 | { | |
f572a39d | 7303 | pxstatus_t avar |
b3baf5d0 NC |
7304 | ; |
7305 | return 0; | |
7306 | } | |
7307 | _ACEOF | |
7308 | rm -f conftest.$ac_objext | |
7309 | if { (eval echo "$as_me:7309: \"$ac_compile\"") >&5 | |
7310 | (eval $ac_compile) 2>&5 | |
7311 | ac_status=$? | |
7312 | echo "$as_me:7312: \$? = $ac_status" >&5 | |
7313 | (exit $ac_status); } && | |
7314 | { ac_try='test -s conftest.$ac_objext' | |
7315 | { (eval echo "$as_me:7315: \"$ac_try\"") >&5 | |
7316 | (eval $ac_try) 2>&5 | |
7317 | ac_status=$? | |
7318 | echo "$as_me:7318: \$? = $ac_status" >&5 | |
7319 | (exit $ac_status); }; }; then | |
f572a39d AM |
7320 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
7321 | else | |
b3baf5d0 NC |
7322 | echo "$as_me: failed program was:" >&5 |
7323 | cat conftest.$ac_ext >&5 | |
7324 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
7325 | ||
f572a39d | 7326 | fi |
b3baf5d0 | 7327 | rm -f conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
7328 | fi |
7329 | ||
7330 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
b3baf5d0 NC |
7331 | |
7332 | cat >>confdefs.h <<\EOF | |
f572a39d AM |
7333 | #define HAVE_PXSTATUS_T 1 |
7334 | EOF | |
7335 | ||
7336 | fi | |
b3baf5d0 NC |
7337 | echo "$as_me:7337: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 |
7338 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 | |
f572a39d | 7339 | |
b3baf5d0 NC |
7340 | echo "$as_me:7340: checking for pstatus32_t in sys/procfs.h" >&5 |
7341 | echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
7342 | if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then | |
7343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 7344 | else |
b3baf5d0 NC |
7345 | cat >conftest.$ac_ext <<_ACEOF |
7346 | #line 7346 "configure" | |
7ee38065 MS |
7347 | #include "confdefs.h" |
7348 | ||
7349 | #define _SYSCALL32 | |
7350 | #include <sys/procfs.h> | |
b3baf5d0 NC |
7351 | int |
7352 | main () | |
7353 | { | |
7ee38065 | 7354 | pstatus32_t avar |
b3baf5d0 NC |
7355 | ; |
7356 | return 0; | |
7357 | } | |
7358 | _ACEOF | |
7359 | rm -f conftest.$ac_objext | |
7360 | if { (eval echo "$as_me:7360: \"$ac_compile\"") >&5 | |
7361 | (eval $ac_compile) 2>&5 | |
7362 | ac_status=$? | |
7363 | echo "$as_me:7363: \$? = $ac_status" >&5 | |
7364 | (exit $ac_status); } && | |
7365 | { ac_try='test -s conftest.$ac_objext' | |
7366 | { (eval echo "$as_me:7366: \"$ac_try\"") >&5 | |
7367 | (eval $ac_try) 2>&5 | |
7368 | ac_status=$? | |
7369 | echo "$as_me:7369: \$? = $ac_status" >&5 | |
7370 | (exit $ac_status); }; }; then | |
7ee38065 MS |
7371 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
7372 | else | |
b3baf5d0 NC |
7373 | echo "$as_me: failed program was:" >&5 |
7374 | cat conftest.$ac_ext >&5 | |
7375 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
7376 | ||
7ee38065 | 7377 | fi |
b3baf5d0 | 7378 | rm -f conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
7379 | fi |
7380 | ||
7381 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
b3baf5d0 NC |
7382 | |
7383 | cat >>confdefs.h <<\EOF | |
7ee38065 MS |
7384 | #define HAVE_PSTATUS32_T 1 |
7385 | EOF | |
7386 | ||
7387 | fi | |
b3baf5d0 NC |
7388 | echo "$as_me:7388: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 |
7389 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 | |
7ee38065 | 7390 | |
b3baf5d0 NC |
7391 | echo "$as_me:7391: checking for prpsinfo_t in sys/procfs.h" >&5 |
7392 | echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
7393 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then | |
7394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7395 | else |
b3baf5d0 NC |
7396 | cat >conftest.$ac_ext <<_ACEOF |
7397 | #line 7397 "configure" | |
252b5132 | 7398 | #include "confdefs.h" |
7ee38065 MS |
7399 | |
7400 | #define _SYSCALL32 | |
252b5132 | 7401 | #include <sys/procfs.h> |
b3baf5d0 NC |
7402 | int |
7403 | main () | |
7404 | { | |
252b5132 | 7405 | prpsinfo_t avar |
b3baf5d0 NC |
7406 | ; |
7407 | return 0; | |
7408 | } | |
7409 | _ACEOF | |
7410 | rm -f conftest.$ac_objext | |
7411 | if { (eval echo "$as_me:7411: \"$ac_compile\"") >&5 | |
7412 | (eval $ac_compile) 2>&5 | |
7413 | ac_status=$? | |
7414 | echo "$as_me:7414: \$? = $ac_status" >&5 | |
7415 | (exit $ac_status); } && | |
7416 | { ac_try='test -s conftest.$ac_objext' | |
7417 | { (eval echo "$as_me:7417: \"$ac_try\"") >&5 | |
7418 | (eval $ac_try) 2>&5 | |
7419 | ac_status=$? | |
7420 | echo "$as_me:7420: \$? = $ac_status" >&5 | |
7421 | (exit $ac_status); }; }; then | |
252b5132 RH |
7422 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
7423 | else | |
b3baf5d0 NC |
7424 | echo "$as_me: failed program was:" >&5 |
7425 | cat conftest.$ac_ext >&5 | |
7426 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
7427 | ||
252b5132 | 7428 | fi |
b3baf5d0 | 7429 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7430 | fi |
7431 | ||
7432 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
b3baf5d0 NC |
7433 | |
7434 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
7435 | #define HAVE_PRPSINFO_T 1 |
7436 | EOF | |
7437 | ||
7438 | fi | |
b3baf5d0 NC |
7439 | echo "$as_me:7439: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 |
7440 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 | |
252b5132 | 7441 | |
b3baf5d0 NC |
7442 | echo "$as_me:7442: checking for prpsinfo32_t in sys/procfs.h" >&5 |
7443 | echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
7444 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then | |
7445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 7446 | else |
b3baf5d0 NC |
7447 | cat >conftest.$ac_ext <<_ACEOF |
7448 | #line 7448 "configure" | |
7ee38065 MS |
7449 | #include "confdefs.h" |
7450 | ||
7451 | #define _SYSCALL32 | |
7452 | #include <sys/procfs.h> | |
b3baf5d0 NC |
7453 | int |
7454 | main () | |
7455 | { | |
7ee38065 | 7456 | prpsinfo32_t avar |
b3baf5d0 NC |
7457 | ; |
7458 | return 0; | |
7459 | } | |
7460 | _ACEOF | |
7461 | rm -f conftest.$ac_objext | |
7462 | if { (eval echo "$as_me:7462: \"$ac_compile\"") >&5 | |
7463 | (eval $ac_compile) 2>&5 | |
7464 | ac_status=$? | |
7465 | echo "$as_me:7465: \$? = $ac_status" >&5 | |
7466 | (exit $ac_status); } && | |
7467 | { ac_try='test -s conftest.$ac_objext' | |
7468 | { (eval echo "$as_me:7468: \"$ac_try\"") >&5 | |
7469 | (eval $ac_try) 2>&5 | |
7470 | ac_status=$? | |
7471 | echo "$as_me:7471: \$? = $ac_status" >&5 | |
7472 | (exit $ac_status); }; }; then | |
7ee38065 MS |
7473 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
7474 | else | |
b3baf5d0 NC |
7475 | echo "$as_me: failed program was:" >&5 |
7476 | cat conftest.$ac_ext >&5 | |
7477 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
7478 | ||
7ee38065 | 7479 | fi |
b3baf5d0 | 7480 | rm -f conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
7481 | fi |
7482 | ||
7483 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
b3baf5d0 NC |
7484 | |
7485 | cat >>confdefs.h <<\EOF | |
7ee38065 MS |
7486 | #define HAVE_PRPSINFO32_T 1 |
7487 | EOF | |
7488 | ||
7489 | fi | |
b3baf5d0 NC |
7490 | echo "$as_me:7490: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 |
7491 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 | |
7ee38065 | 7492 | |
b3baf5d0 NC |
7493 | echo "$as_me:7493: checking for psinfo_t in sys/procfs.h" >&5 |
7494 | echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
7495 | if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then | |
7496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7497 | else |
b3baf5d0 NC |
7498 | cat >conftest.$ac_ext <<_ACEOF |
7499 | #line 7499 "configure" | |
252b5132 | 7500 | #include "confdefs.h" |
7ee38065 MS |
7501 | |
7502 | #define _SYSCALL32 | |
252b5132 | 7503 | #include <sys/procfs.h> |
b3baf5d0 NC |
7504 | int |
7505 | main () | |
7506 | { | |
252b5132 | 7507 | psinfo_t avar |
b3baf5d0 NC |
7508 | ; |
7509 | return 0; | |
7510 | } | |
7511 | _ACEOF | |
7512 | rm -f conftest.$ac_objext | |
7513 | if { (eval echo "$as_me:7513: \"$ac_compile\"") >&5 | |
7514 | (eval $ac_compile) 2>&5 | |
7515 | ac_status=$? | |
7516 | echo "$as_me:7516: \$? = $ac_status" >&5 | |
7517 | (exit $ac_status); } && | |
7518 | { ac_try='test -s conftest.$ac_objext' | |
7519 | { (eval echo "$as_me:7519: \"$ac_try\"") >&5 | |
7520 | (eval $ac_try) 2>&5 | |
7521 | ac_status=$? | |
7522 | echo "$as_me:7522: \$? = $ac_status" >&5 | |
7523 | (exit $ac_status); }; }; then | |
252b5132 RH |
7524 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
7525 | else | |
b3baf5d0 NC |
7526 | echo "$as_me: failed program was:" >&5 |
7527 | cat conftest.$ac_ext >&5 | |
7528 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
7529 | ||
252b5132 | 7530 | fi |
b3baf5d0 | 7531 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7532 | fi |
7533 | ||
7534 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
b3baf5d0 NC |
7535 | |
7536 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
7537 | #define HAVE_PSINFO_T 1 |
7538 | EOF | |
7539 | ||
7540 | fi | |
b3baf5d0 NC |
7541 | echo "$as_me:7541: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 |
7542 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 | |
252b5132 | 7543 | |
b3baf5d0 NC |
7544 | echo "$as_me:7544: checking for psinfo32_t in sys/procfs.h" >&5 |
7545 | echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
7546 | if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then | |
7547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 7548 | else |
b3baf5d0 NC |
7549 | cat >conftest.$ac_ext <<_ACEOF |
7550 | #line 7550 "configure" | |
7ee38065 MS |
7551 | #include "confdefs.h" |
7552 | ||
7553 | #define _SYSCALL32 | |
7554 | #include <sys/procfs.h> | |
b3baf5d0 NC |
7555 | int |
7556 | main () | |
7557 | { | |
7ee38065 | 7558 | psinfo32_t avar |
b3baf5d0 NC |
7559 | ; |
7560 | return 0; | |
7561 | } | |
7562 | _ACEOF | |
7563 | rm -f conftest.$ac_objext | |
7564 | if { (eval echo "$as_me:7564: \"$ac_compile\"") >&5 | |
7565 | (eval $ac_compile) 2>&5 | |
7566 | ac_status=$? | |
7567 | echo "$as_me:7567: \$? = $ac_status" >&5 | |
7568 | (exit $ac_status); } && | |
7569 | { ac_try='test -s conftest.$ac_objext' | |
7570 | { (eval echo "$as_me:7570: \"$ac_try\"") >&5 | |
7571 | (eval $ac_try) 2>&5 | |
7572 | ac_status=$? | |
7573 | echo "$as_me:7573: \$? = $ac_status" >&5 | |
7574 | (exit $ac_status); }; }; then | |
7ee38065 MS |
7575 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
7576 | else | |
b3baf5d0 NC |
7577 | echo "$as_me: failed program was:" >&5 |
7578 | cat conftest.$ac_ext >&5 | |
7579 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
7580 | ||
7ee38065 | 7581 | fi |
b3baf5d0 | 7582 | rm -f conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
7583 | fi |
7584 | ||
7585 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
b3baf5d0 NC |
7586 | |
7587 | cat >>confdefs.h <<\EOF | |
7ee38065 MS |
7588 | #define HAVE_PSINFO32_T 1 |
7589 | EOF | |
7590 | ||
7591 | fi | |
b3baf5d0 NC |
7592 | echo "$as_me:7592: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 |
7593 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 | |
7ee38065 | 7594 | |
b3baf5d0 NC |
7595 | echo "$as_me:7595: checking for lwpstatus_t in sys/procfs.h" >&5 |
7596 | echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
7597 | if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then | |
7598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7599 | else |
b3baf5d0 NC |
7600 | cat >conftest.$ac_ext <<_ACEOF |
7601 | #line 7601 "configure" | |
252b5132 | 7602 | #include "confdefs.h" |
7ee38065 MS |
7603 | |
7604 | #define _SYSCALL32 | |
252b5132 | 7605 | #include <sys/procfs.h> |
b3baf5d0 NC |
7606 | int |
7607 | main () | |
7608 | { | |
252b5132 | 7609 | lwpstatus_t avar |
b3baf5d0 NC |
7610 | ; |
7611 | return 0; | |
7612 | } | |
7613 | _ACEOF | |
7614 | rm -f conftest.$ac_objext | |
7615 | if { (eval echo "$as_me:7615: \"$ac_compile\"") >&5 | |
7616 | (eval $ac_compile) 2>&5 | |
7617 | ac_status=$? | |
7618 | echo "$as_me:7618: \$? = $ac_status" >&5 | |
7619 | (exit $ac_status); } && | |
7620 | { ac_try='test -s conftest.$ac_objext' | |
7621 | { (eval echo "$as_me:7621: \"$ac_try\"") >&5 | |
7622 | (eval $ac_try) 2>&5 | |
7623 | ac_status=$? | |
7624 | echo "$as_me:7624: \$? = $ac_status" >&5 | |
7625 | (exit $ac_status); }; }; then | |
252b5132 RH |
7626 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
7627 | else | |
b3baf5d0 NC |
7628 | echo "$as_me: failed program was:" >&5 |
7629 | cat conftest.$ac_ext >&5 | |
7630 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
7631 | ||
252b5132 | 7632 | fi |
b3baf5d0 | 7633 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7634 | fi |
7635 | ||
7636 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
b3baf5d0 NC |
7637 | |
7638 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
7639 | #define HAVE_LWPSTATUS_T 1 |
7640 | EOF | |
7641 | ||
7642 | fi | |
b3baf5d0 NC |
7643 | echo "$as_me:7643: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 |
7644 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 | |
252b5132 | 7645 | |
b3baf5d0 NC |
7646 | echo "$as_me:7646: checking for lwpxstatus_t in sys/procfs.h" >&5 |
7647 | echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
7648 | if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then | |
7649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 7650 | else |
b3baf5d0 NC |
7651 | cat >conftest.$ac_ext <<_ACEOF |
7652 | #line 7652 "configure" | |
f572a39d AM |
7653 | #include "confdefs.h" |
7654 | ||
7655 | #define _SYSCALL32 | |
7656 | #include <sys/procfs.h> | |
b3baf5d0 NC |
7657 | int |
7658 | main () | |
7659 | { | |
f572a39d | 7660 | lwpxstatus_t avar |
b3baf5d0 NC |
7661 | ; |
7662 | return 0; | |
7663 | } | |
7664 | _ACEOF | |
7665 | rm -f conftest.$ac_objext | |
7666 | if { (eval echo "$as_me:7666: \"$ac_compile\"") >&5 | |
7667 | (eval $ac_compile) 2>&5 | |
7668 | ac_status=$? | |
7669 | echo "$as_me:7669: \$? = $ac_status" >&5 | |
7670 | (exit $ac_status); } && | |
7671 | { ac_try='test -s conftest.$ac_objext' | |
7672 | { (eval echo "$as_me:7672: \"$ac_try\"") >&5 | |
7673 | (eval $ac_try) 2>&5 | |
7674 | ac_status=$? | |
7675 | echo "$as_me:7675: \$? = $ac_status" >&5 | |
7676 | (exit $ac_status); }; }; then | |
f572a39d AM |
7677 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
7678 | else | |
b3baf5d0 NC |
7679 | echo "$as_me: failed program was:" >&5 |
7680 | cat conftest.$ac_ext >&5 | |
7681 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
7682 | ||
f572a39d | 7683 | fi |
b3baf5d0 | 7684 | rm -f conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
7685 | fi |
7686 | ||
7687 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
b3baf5d0 NC |
7688 | |
7689 | cat >>confdefs.h <<\EOF | |
f572a39d AM |
7690 | #define HAVE_LWPXSTATUS_T 1 |
7691 | EOF | |
7692 | ||
7693 | fi | |
b3baf5d0 NC |
7694 | echo "$as_me:7694: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 |
7695 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 | |
f572a39d | 7696 | |
b3baf5d0 NC |
7697 | echo "$as_me:7697: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
7698 | echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 | |
7699 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then | |
7700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7701 | else |
b3baf5d0 NC |
7702 | cat >conftest.$ac_ext <<_ACEOF |
7703 | #line 7703 "configure" | |
252b5132 | 7704 | #include "confdefs.h" |
7ee38065 MS |
7705 | |
7706 | #define _SYSCALL32 | |
252b5132 | 7707 | #include <sys/procfs.h> |
b3baf5d0 NC |
7708 | int |
7709 | main () | |
7710 | { | |
252b5132 | 7711 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
b3baf5d0 NC |
7712 | ; |
7713 | return 0; | |
7714 | } | |
7715 | _ACEOF | |
7716 | rm -f conftest.$ac_objext | |
7717 | if { (eval echo "$as_me:7717: \"$ac_compile\"") >&5 | |
7718 | (eval $ac_compile) 2>&5 | |
7719 | ac_status=$? | |
7720 | echo "$as_me:7720: \$? = $ac_status" >&5 | |
7721 | (exit $ac_status); } && | |
7722 | { ac_try='test -s conftest.$ac_objext' | |
7723 | { (eval echo "$as_me:7723: \"$ac_try\"") >&5 | |
7724 | (eval $ac_try) 2>&5 | |
7725 | ac_status=$? | |
7726 | echo "$as_me:7726: \$? = $ac_status" >&5 | |
7727 | (exit $ac_status); }; }; then | |
252b5132 RH |
7728 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
7729 | else | |
b3baf5d0 NC |
7730 | echo "$as_me: failed program was:" >&5 |
7731 | cat conftest.$ac_ext >&5 | |
7732 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
7733 | ||
252b5132 | 7734 | fi |
b3baf5d0 | 7735 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7736 | fi |
7737 | ||
7738 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
b3baf5d0 NC |
7739 | |
7740 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
7741 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
7742 | EOF | |
7743 | ||
7744 | fi | |
b3baf5d0 NC |
7745 | echo "$as_me:7745: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 |
7746 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 | |
252b5132 | 7747 | |
b3baf5d0 NC |
7748 | echo "$as_me:7748: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
7749 | echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 | |
7750 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then | |
7751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7752 | else |
b3baf5d0 NC |
7753 | cat >conftest.$ac_ext <<_ACEOF |
7754 | #line 7754 "configure" | |
252b5132 | 7755 | #include "confdefs.h" |
7ee38065 MS |
7756 | |
7757 | #define _SYSCALL32 | |
252b5132 | 7758 | #include <sys/procfs.h> |
b3baf5d0 NC |
7759 | int |
7760 | main () | |
7761 | { | |
252b5132 | 7762 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
b3baf5d0 NC |
7763 | ; |
7764 | return 0; | |
7765 | } | |
7766 | _ACEOF | |
7767 | rm -f conftest.$ac_objext | |
7768 | if { (eval echo "$as_me:7768: \"$ac_compile\"") >&5 | |
7769 | (eval $ac_compile) 2>&5 | |
7770 | ac_status=$? | |
7771 | echo "$as_me:7771: \$? = $ac_status" >&5 | |
7772 | (exit $ac_status); } && | |
7773 | { ac_try='test -s conftest.$ac_objext' | |
7774 | { (eval echo "$as_me:7774: \"$ac_try\"") >&5 | |
7775 | (eval $ac_try) 2>&5 | |
7776 | ac_status=$? | |
7777 | echo "$as_me:7777: \$? = $ac_status" >&5 | |
7778 | (exit $ac_status); }; }; then | |
252b5132 RH |
7779 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
7780 | else | |
b3baf5d0 NC |
7781 | echo "$as_me: failed program was:" >&5 |
7782 | cat conftest.$ac_ext >&5 | |
7783 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
7784 | ||
252b5132 | 7785 | fi |
b3baf5d0 | 7786 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7787 | fi |
7788 | ||
7789 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
b3baf5d0 NC |
7790 | |
7791 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
7792 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
7793 | EOF | |
7794 | ||
7795 | fi | |
b3baf5d0 NC |
7796 | echo "$as_me:7796: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 |
7797 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 | |
252b5132 | 7798 | |
b3baf5d0 NC |
7799 | echo "$as_me:7799: checking for win32_pstatus_t in sys/procfs.h" >&5 |
7800 | echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
7801 | if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then | |
7802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e3c976c4 | 7803 | else |
b3baf5d0 NC |
7804 | cat >conftest.$ac_ext <<_ACEOF |
7805 | #line 7805 "configure" | |
e3c976c4 | 7806 | #include "confdefs.h" |
7ee38065 MS |
7807 | |
7808 | #define _SYSCALL32 | |
e3c976c4 | 7809 | #include <sys/procfs.h> |
b3baf5d0 NC |
7810 | int |
7811 | main () | |
7812 | { | |
e3c976c4 | 7813 | win32_pstatus_t avar |
b3baf5d0 NC |
7814 | ; |
7815 | return 0; | |
7816 | } | |
7817 | _ACEOF | |
7818 | rm -f conftest.$ac_objext | |
7819 | if { (eval echo "$as_me:7819: \"$ac_compile\"") >&5 | |
7820 | (eval $ac_compile) 2>&5 | |
7821 | ac_status=$? | |
7822 | echo "$as_me:7822: \$? = $ac_status" >&5 | |
7823 | (exit $ac_status); } && | |
7824 | { ac_try='test -s conftest.$ac_objext' | |
7825 | { (eval echo "$as_me:7825: \"$ac_try\"") >&5 | |
7826 | (eval $ac_try) 2>&5 | |
7827 | ac_status=$? | |
7828 | echo "$as_me:7828: \$? = $ac_status" >&5 | |
7829 | (exit $ac_status); }; }; then | |
e3c976c4 ILT |
7830 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
7831 | else | |
b3baf5d0 NC |
7832 | echo "$as_me: failed program was:" >&5 |
7833 | cat conftest.$ac_ext >&5 | |
7834 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
7835 | ||
e3c976c4 | 7836 | fi |
b3baf5d0 | 7837 | rm -f conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7838 | fi |
7839 | ||
e3c976c4 | 7840 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
b3baf5d0 NC |
7841 | |
7842 | cat >>confdefs.h <<\EOF | |
e3c976c4 | 7843 | #define HAVE_WIN32_PSTATUS_T 1 |
16e9c715 NC |
7844 | EOF |
7845 | ||
7846 | fi | |
b3baf5d0 NC |
7847 | echo "$as_me:7847: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 |
7848 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 | |
e3c976c4 ILT |
7849 | |
7850 | fi | |
7851 | fi | |
16e9c715 | 7852 | |
3f9b03b5 | 7853 | if test -n "$TRAD_HEADER"; then |
b3baf5d0 NC |
7854 | |
7855 | cat >>confdefs.h <<EOF | |
252b5132 RH |
7856 | #define TRAD_HEADER $TRAD_HEADER |
7857 | EOF | |
7858 | ||
3f9b03b5 | 7859 | fi |
252b5132 RH |
7860 | |
7861 | # Horrible hacks to build DLLs on Windows. | |
7862 | WIN32LDFLAGS= | |
7863 | WIN32LIBADD= | |
7864 | case "${host}" in | |
7865 | *-*-cygwin*) | |
7866 | if test "$enable_shared" = "yes"; then | |
7867 | WIN32LDFLAGS="-no-undefined" | |
7868 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
7869 | fi | |
7870 | ;; | |
7871 | esac | |
7872 | ||
252b5132 RH |
7873 | # target stuff: |
7874 | ||
7875 | # Canonicalize the secondary target names. | |
7876 | if test -n "$enable_targets" ; then | |
7877 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
7878 | do | |
6d83c84b | 7879 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
7880 | if test -n "$result" ; then |
7881 | canon_targets="$canon_targets $result" | |
7882 | else | |
7883 | # Allow targets that config.sub doesn't recognize, like "all". | |
7884 | canon_targets="$canon_targets $targ" | |
7885 | fi | |
7886 | done | |
7887 | fi | |
7888 | ||
7889 | all_targets=false | |
7890 | defvec= | |
7891 | selvecs= | |
7892 | selarchs= | |
7893 | TDEFINES= | |
7894 | for targ in $target $canon_targets | |
7895 | do | |
7896 | if test "x$targ" = "xall"; then | |
7897 | all_targets=true | |
7898 | else | |
7899 | . $srcdir/config.bfd | |
7900 | if test "x$targ" = "x$target"; then | |
7901 | defvec=$targ_defvec | |
7902 | fi | |
7903 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
7904 | selarchs="$selarchs $targ_archs" | |
7905 | TDEFINES="$TDEFINES $targ_cflags" | |
7906 | fi | |
7907 | done | |
7908 | ||
252b5132 RH |
7909 | # This processing still needs to be done if we're to decide properly whether |
7910 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
7911 | # the default or any other explicitly requested target requires it; it | |
7912 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 7913 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
7914 | # used. |
7915 | ||
7916 | # uniq the default and selected vectors in all the configured targets. | |
7917 | f="" | |
7918 | for i in $selvecs ; do | |
7919 | case " $f " in | |
7920 | *" $i "*) ;; | |
7921 | *) f="$f $i" ;; | |
7922 | esac | |
7923 | done | |
7924 | selvecs="$f" | |
7925 | ||
252b5132 RH |
7926 | # uniq the architectures in all the configured targets. |
7927 | f="" | |
7928 | for i in $selarchs ; do | |
7929 | case " $f " in | |
7930 | *" $i "*) ;; | |
7931 | *) f="$f $i" ;; | |
7932 | esac | |
7933 | done | |
7934 | selarchs="$f" | |
7935 | ||
7936 | # Target backend .o files. | |
7937 | tb= | |
7938 | ||
51db3708 | 7939 | elf="elf.lo elflink.lo dwarf1.lo" |
252b5132 RH |
7940 | |
7941 | for vec in $selvecs | |
7942 | do | |
7943 | case "$vec" in | |
7944 | # This list is alphabetized to make it easy to compare | |
7945 | # with the two vector lists in targets.c. | |
7946 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; | |
7947 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; | |
7948 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
7949 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
021e3cc0 | 7950 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; |
277d1b5e ILT |
7951 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; |
7952 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
7953 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
7954 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
7955 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
7956 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
7957 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
7958 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
7959 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
7960 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
7961 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
7962 | aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;; | |
7963 | aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;; | |
7964 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; | |
7965 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; | |
7966 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 7967 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
6433dece | 7968 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo" |
fac41780 | 7969 | target64=true ;; |
252b5132 RH |
7970 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf" |
7971 | target64=true ;; | |
d952f17a AM |
7972 | bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec) |
7973 | tb="$tb elf64-hppa.lo elf64.lo $elf" | |
e59db122 | 7974 | target64=true ;; |
800eeca4 JW |
7975 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf" |
7976 | target64=true ;; | |
7977 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf" | |
7978 | target64=true ;; | |
b3baf5d0 | 7979 | bfd_elf64_ia64_aix_little_vec) |
7b6dab7f TW |
7980 | tb="$tb elf64-ia64.lo elf64.lo $elf" |
7981 | target64=true ;; | |
7982 | bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf" | |
7983 | target64=true ;; | |
bbe66d08 | 7984 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
adde6300 | 7985 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
252b5132 RH |
7986 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
7987 | bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; | |
7988 | bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; | |
7989 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; | |
7990 | bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; | |
7991 | bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; | |
7992 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; | |
7993 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
7994 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" | |
7995 | target64=true ;; | |
06c15ad7 | 7996 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
4da81684 | 7997 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 RH |
7998 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
7999 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
8000 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; | |
d952f17a AM |
8001 | bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec) |
8002 | tb="$tb elf32-hppa.lo elf32.lo $elf" ;; | |
5b93d8bb | 8003 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
252b5132 | 8004 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; |
6e0b89ee AM |
8005 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf" |
8006 | target64=true ;; | |
252b5132 | 8007 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
9d751335 | 8008 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 8009 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
252b5132 RH |
8010 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
8011 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
8012 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" | |
8013 | target64=true ;; | |
8014 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
60bcf0fa NC |
8015 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;; |
8016 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;; | |
252b5132 RH |
8017 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
8018 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
8019 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
8020 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
8021 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; | |
8022 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
b3baf5d0 | 8023 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
0bcb993b ILT |
8024 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
8025 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
252b5132 RH |
8026 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; |
8027 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; | |
a85d7ed0 | 8028 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
252b5132 RH |
8029 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; |
8030 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; | |
b129bfef AO |
8031 | bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
8032 | bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
252b5132 | 8033 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; |
dd745cfa UC |
8034 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; |
8035 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
252b5132 RH |
8036 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
8037 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" | |
8038 | target64=true ;; | |
8039 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" | |
8040 | target64=true ;; | |
b3baf5d0 | 8041 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf" |
a85d7ed0 | 8042 | target64=true ;; |
252b5132 RH |
8043 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf" |
8044 | target64=true ;; | |
fdbafa10 L |
8045 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo" |
8046 | target64=true ;; | |
8047 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo" | |
8048 | target64=true ;; | |
f4bda984 RH |
8049 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; |
8050 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
06c15ad7 | 8051 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
252b5132 RH |
8052 | demo_64_vec) tb="$tb demo64.lo aout64.lo" |
8053 | target64=true ;; | |
8054 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; | |
8055 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; | |
8056 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; | |
8057 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo" | |
8058 | target64=true ;; | |
8059 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; | |
8060 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
8061 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
8062 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
8063 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
8064 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
8065 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
8066 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
8067 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
8068 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
8069 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; | |
8070 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
8071 | i386msdos_vec) tb="$tb i386msdos.lo" ;; | |
277d1b5e ILT |
8072 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
8073 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
8074 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
8075 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
8076 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
8077 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
8078 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; | |
8079 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
8080 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; | |
8081 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
8082 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
8083 | ieee_vec) tb="$tb ieee.lo" ;; | |
8084 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; | |
8085 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
8086 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
8087 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; | |
8088 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; | |
8089 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; | |
8090 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; | |
8091 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
8092 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; | |
8093 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
fb67355a NC |
8094 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
8095 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
277d1b5e ILT |
8096 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
8097 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
8098 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
8099 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
8100 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
8101 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; | |
7f6d05e8 CP |
8102 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo" |
8103 | target64=true ;; | |
252b5132 RH |
8104 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
8105 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo" | |
8106 | target64=true ;; | |
8107 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; | |
8108 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; | |
8109 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; | |
8110 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; | |
e135f41b | 8111 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
252b5132 RH |
8112 | pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;; |
8113 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; | |
b3baf5d0 NC |
8114 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
8115 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
277d1b5e ILT |
8116 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; |
8117 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
8118 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
8119 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; | |
8120 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; | |
8121 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; | |
8122 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; | |
60bcf0fa NC |
8123 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
8124 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
8125 | som_vec) tb="$tb som.lo" ;; |
8126 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; | |
8127 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
8128 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
8129 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
8130 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
8131 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; | |
8132 | srec_vec) tb="$tb srec.lo" ;; | |
8133 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; | |
8134 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
8135 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
8136 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; | |
8137 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
81635ce4 TW |
8138 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
8139 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; | |
8140 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; | |
8141 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; | |
8142 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; | |
8143 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; | |
252b5132 RH |
8144 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
8145 | versados_vec) tb="$tb versados.lo" ;; | |
8146 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" | |
8147 | target64=true ;; | |
8148 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; | |
8149 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
8150 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
8151 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; | |
8152 | ||
8153 | "") ;; | |
b3baf5d0 NC |
8154 | *) { { echo "$as_me:8154: error: *** unknown target vector $vec" >&5 |
8155 | echo "$as_me: error: *** unknown target vector $vec" >&2;} | |
8156 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
8157 | esac |
8158 | done | |
8159 | ||
8160 | # Target architecture .o files. | |
8161 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
8162 | # filesystems. | |
8163 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` | |
8164 | ||
8165 | # Weed out duplicate .o files. | |
8166 | f="" | |
8167 | for i in $tb ; do | |
8168 | case " $f " in | |
8169 | *" $i "*) ;; | |
8170 | *) f="$f $i" ;; | |
8171 | esac | |
8172 | done | |
8173 | tb="$f" | |
8174 | ||
8175 | f="" | |
8176 | for i in $ta ; do | |
8177 | case " $f " in | |
8178 | *" $i "*) ;; | |
8179 | *) f="$f $i" ;; | |
8180 | esac | |
8181 | done | |
8182 | ta="$f" | |
8183 | ||
8184 | bfd_backends="$tb" | |
8185 | bfd_machines="$ta" | |
8186 | ||
8187 | if test x${all_targets} = xtrue ; then | |
8188 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
8189 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
8190 | selvecs= | |
8191 | havevecs= | |
8192 | selarchs= | |
8193 | else # all_targets is true | |
8194 | # Only set these if they will be nonempty, for the clever echo. | |
8195 | havevecs= | |
8196 | test -n "$selvecs" && | |
8197 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
8198 | test -n "$selvecs" && | |
8199 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
8200 | test -n "$selarchs" && | |
8201 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
8202 | fi # all_targets is true | |
8203 | ||
8204 | case ${host64}-${target64}-${want64} in | |
8205 | *true*) | |
8206 | wordsize=64 | |
8207 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' | |
8208 | if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then | |
b3baf5d0 NC |
8209 | { echo "$as_me:8209: WARNING: You have requested a 64 bit BFD configuration, but" >&5 |
8210 | echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
8211 | { echo "$as_me:8211: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
8212 | echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
252b5132 RH |
8213 | fi |
8214 | ;; | |
8215 | false-false-false) | |
8216 | wordsize=32 | |
8217 | all_backends='$(BFD32_BACKENDS)' | |
8218 | ;; | |
8219 | esac | |
8220 | ||
252b5132 RH |
8221 | tdefaults="" |
8222 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
8223 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
8224 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" | |
8225 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
8226 | ||
b3baf5d0 | 8227 | for ac_header in stdlib.h unistd.h |
252b5132 | 8228 | do |
b3baf5d0 NC |
8229 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
8230 | echo "$as_me:8230: checking for $ac_header" >&5 | |
8231 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8232 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
8233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8234 | else | |
8235 | cat >conftest.$ac_ext <<_ACEOF | |
8236 | #line 8236 "configure" | |
252b5132 | 8237 | #include "confdefs.h" |
b3baf5d0 NC |
8238 | #include <$ac_header> |
8239 | _ACEOF | |
8240 | if { (eval echo "$as_me:8240: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8241 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8242 | ac_status=$? | |
8243 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8244 | rm -f conftest.er1 | |
8245 | cat conftest.err >&5 | |
8246 | echo "$as_me:8246: \$? = $ac_status" >&5 | |
8247 | (exit $ac_status); } >/dev/null; then | |
8248 | if test -s conftest.err; then | |
8249 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8250 | else | |
8251 | ac_cpp_err= | |
8252 | fi | |
8253 | else | |
8254 | ac_cpp_err=yes | |
8255 | fi | |
8256 | if test -z "$ac_cpp_err"; then | |
8257 | eval "$ac_ac_Header=yes" | |
252b5132 | 8258 | else |
b3baf5d0 | 8259 | echo "$as_me: failed program was:" >&5 |
252b5132 | 8260 | cat conftest.$ac_ext >&5 |
b3baf5d0 | 8261 | eval "$ac_ac_Header=no" |
252b5132 | 8262 | fi |
b3baf5d0 | 8263 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 8264 | fi |
b3baf5d0 NC |
8265 | echo "$as_me:8265: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
8266 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
8267 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
8268 | cat >>confdefs.h <<EOF | |
8269 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
252b5132 | 8270 | EOF |
b3baf5d0 | 8271 | |
252b5132 RH |
8272 | fi |
8273 | done | |
8274 | ||
8275 | for ac_func in getpagesize | |
8276 | do | |
b3baf5d0 NC |
8277 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
8278 | echo "$as_me:8278: checking for $ac_func" >&5 | |
8279 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8280 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
8281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8282 | else | |
8283 | cat >conftest.$ac_ext <<_ACEOF | |
8284 | #line 8284 "configure" | |
252b5132 RH |
8285 | #include "confdefs.h" |
8286 | /* System header to define __stub macros and hopefully few prototypes, | |
b3baf5d0 | 8287 | which can conflict with char $ac_func (); below. */ |
252b5132 RH |
8288 | #include <assert.h> |
8289 | /* Override any gcc2 internal prototype to avoid an error. */ | |
b3baf5d0 NC |
8290 | #ifdef __cplusplus |
8291 | extern "C" | |
8292 | #endif | |
252b5132 | 8293 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
8294 | builtin and then its argument prototype would still apply. */ |
8295 | char $ac_func (); | |
8296 | char (*f) (); | |
252b5132 | 8297 | |
b3baf5d0 NC |
8298 | int |
8299 | main () | |
8300 | { | |
252b5132 RH |
8301 | /* The GNU C library defines this for functions which it implements |
8302 | to always fail with ENOSYS. Some functions are actually named | |
8303 | something starting with __ and the normal name is an alias. */ | |
8304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8305 | choke me | |
8306 | #else | |
b3baf5d0 | 8307 | f = $ac_func; |
252b5132 RH |
8308 | #endif |
8309 | ||
b3baf5d0 NC |
8310 | ; |
8311 | return 0; | |
8312 | } | |
8313 | _ACEOF | |
8314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8315 | if { (eval echo "$as_me:8315: \"$ac_link\"") >&5 | |
8316 | (eval $ac_link) 2>&5 | |
8317 | ac_status=$? | |
8318 | echo "$as_me:8318: \$? = $ac_status" >&5 | |
8319 | (exit $ac_status); } && | |
8320 | { ac_try='test -s conftest$ac_exeext' | |
8321 | { (eval echo "$as_me:8321: \"$ac_try\"") >&5 | |
8322 | (eval $ac_try) 2>&5 | |
8323 | ac_status=$? | |
8324 | echo "$as_me:8324: \$? = $ac_status" >&5 | |
8325 | (exit $ac_status); }; }; then | |
8326 | eval "$ac_ac_var=yes" | |
8327 | else | |
8328 | echo "$as_me: failed program was:" >&5 | |
8329 | cat conftest.$ac_ext >&5 | |
8330 | eval "$ac_ac_var=no" | |
8331 | fi | |
8332 | rm -f conftest$ac_exeext conftest.$ac_ext | |
8333 | fi | |
8334 | echo "$as_me:8334: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
8335 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
8336 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
8337 | cat >>confdefs.h <<EOF | |
8338 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
252b5132 | 8339 | EOF |
252b5132 | 8340 | |
252b5132 RH |
8341 | fi |
8342 | done | |
8343 | ||
b3baf5d0 NC |
8344 | echo "$as_me:8344: checking for working mmap" >&5 |
8345 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
8346 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
8347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
8348 | else |
8349 | if test "$cross_compiling" = yes; then | |
8350 | ac_cv_func_mmap_fixed_mapped=no | |
8351 | else | |
b3baf5d0 NC |
8352 | cat >conftest.$ac_ext <<_ACEOF |
8353 | #line 8353 "configure" | |
252b5132 | 8354 | #include "confdefs.h" |
252b5132 RH |
8355 | /* Thanks to Mike Haertel and Jim Avera for this test. |
8356 | Here is a matrix of mmap possibilities: | |
8357 | mmap private not fixed | |
8358 | mmap private fixed at somewhere currently unmapped | |
8359 | mmap private fixed at somewhere already mapped | |
8360 | mmap shared not fixed | |
8361 | mmap shared fixed at somewhere currently unmapped | |
8362 | mmap shared fixed at somewhere already mapped | |
8363 | For private mappings, we should verify that changes cannot be read() | |
8364 | back from the file, nor mmap's back from the file at a different | |
8365 | address. (There have been systems where private was not correctly | |
8366 | implemented like the infamous i386 svr4.0, and systems where the | |
b3baf5d0 | 8367 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
8368 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
8369 | For shared mappings, we should conversely verify that changes get | |
8370 | propogated back to all the places they're supposed to be. | |
8371 | ||
8372 | Grep wants private fixed already mapped. | |
8373 | The main things grep needs to know about mmap are: | |
8374 | * does it exist and is it safe to write into the mmap'd area | |
8375 | * how to use it (BSD variants) */ | |
8376 | #include <sys/types.h> | |
8377 | #include <fcntl.h> | |
8378 | #include <sys/mman.h> | |
8379 | ||
b3baf5d0 NC |
8380 | #if STDC_HEADERS || HAVE_STDLIB_H |
8381 | # include <stdlib.h> | |
8382 | #else | |
8383 | char *malloc (); | |
8384 | #endif | |
8385 | #if HAVE_UNISTD_H | |
8386 | # include <unistd.h> | |
8387 | #endif | |
8388 | #include <sys/stat.h> | |
252b5132 | 8389 | |
b3baf5d0 NC |
8390 | /* This mess was copied from the GNU getpagesize.h. */ |
8391 | #if !HAVE_GETPAGESIZE | |
252b5132 | 8392 | /* Assume that all systems that can run configure have sys/param.h. */ |
b3baf5d0 | 8393 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
8394 | # define HAVE_SYS_PARAM_H 1 |
8395 | # endif | |
8396 | ||
8397 | # ifdef _SC_PAGESIZE | |
8398 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8399 | # else /* no _SC_PAGESIZE */ | |
b3baf5d0 | 8400 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
8401 | # include <sys/param.h> |
8402 | # ifdef EXEC_PAGESIZE | |
8403 | # define getpagesize() EXEC_PAGESIZE | |
8404 | # else /* no EXEC_PAGESIZE */ | |
8405 | # ifdef NBPG | |
8406 | # define getpagesize() NBPG * CLSIZE | |
8407 | # ifndef CLSIZE | |
8408 | # define CLSIZE 1 | |
8409 | # endif /* no CLSIZE */ | |
8410 | # else /* no NBPG */ | |
8411 | # ifdef NBPC | |
8412 | # define getpagesize() NBPC | |
8413 | # else /* no NBPC */ | |
8414 | # ifdef PAGESIZE | |
8415 | # define getpagesize() PAGESIZE | |
8416 | # endif /* PAGESIZE */ | |
8417 | # endif /* no NBPC */ | |
8418 | # endif /* no NBPG */ | |
8419 | # endif /* no EXEC_PAGESIZE */ | |
8420 | # else /* no HAVE_SYS_PARAM_H */ | |
8421 | # define getpagesize() 8192 /* punt totally */ | |
8422 | # endif /* no HAVE_SYS_PARAM_H */ | |
8423 | # endif /* no _SC_PAGESIZE */ | |
8424 | ||
8425 | #endif /* no HAVE_GETPAGESIZE */ | |
8426 | ||
252b5132 | 8427 | int |
b3baf5d0 | 8428 | main () |
252b5132 | 8429 | { |
b3baf5d0 NC |
8430 | char *data, *data2, *data3; |
8431 | int i, pagesize; | |
8432 | int fd; | |
8433 | ||
8434 | pagesize = getpagesize (); | |
8435 | ||
8436 | /* First, make a file with some known garbage in it. */ | |
8437 | data = (char *) malloc (pagesize); | |
8438 | if (!data) | |
8439 | exit (1); | |
8440 | for (i = 0; i < pagesize; ++i) | |
8441 | *(data + i) = rand (); | |
8442 | umask (0); | |
8443 | fd = creat ("conftest.mmap", 0600); | |
8444 | if (fd < 0) | |
8445 | exit (1); | |
8446 | if (write (fd, data, pagesize) != pagesize) | |
8447 | exit (1); | |
8448 | close (fd); | |
8449 | ||
8450 | /* Next, try to mmap the file at a fixed address which already has | |
8451 | something else allocated at it. If we can, also make sure that | |
8452 | we see the same garbage. */ | |
8453 | fd = open ("conftest.mmap", O_RDWR); | |
8454 | if (fd < 0) | |
8455 | exit (1); | |
8456 | data2 = (char *) malloc (2 * pagesize); | |
8457 | if (!data2) | |
8458 | exit (1); | |
8459 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
8460 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
8461 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
8462 | exit (1); | |
8463 | for (i = 0; i < pagesize; ++i) | |
8464 | if (*(data + i) != *(data2 + i)) | |
8465 | exit (1); | |
8466 | ||
8467 | /* Finally, make sure that changes to the mapped area do not | |
8468 | percolate back to the file as seen by read(). (This is a bug on | |
8469 | some variants of i386 svr4.0.) */ | |
8470 | for (i = 0; i < pagesize; ++i) | |
8471 | *(data2 + i) = *(data2 + i) + 1; | |
8472 | data3 = (char *) malloc (pagesize); | |
8473 | if (!data3) | |
8474 | exit (1); | |
8475 | if (read (fd, data3, pagesize) != pagesize) | |
8476 | exit (1); | |
8477 | for (i = 0; i < pagesize; ++i) | |
8478 | if (*(data + i) != *(data3 + i)) | |
8479 | exit (1); | |
8480 | close (fd); | |
8481 | exit (0); | |
252b5132 | 8482 | } |
b3baf5d0 NC |
8483 | _ACEOF |
8484 | rm -f conftest$ac_exeext | |
8485 | if { (eval echo "$as_me:8485: \"$ac_link\"") >&5 | |
8486 | (eval $ac_link) 2>&5 | |
8487 | ac_status=$? | |
8488 | echo "$as_me:8488: \$? = $ac_status" >&5 | |
8489 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8490 | { (eval echo "$as_me:8490: \"$ac_try\"") >&5 | |
8491 | (eval $ac_try) 2>&5 | |
8492 | ac_status=$? | |
8493 | echo "$as_me:8493: \$? = $ac_status" >&5 | |
8494 | (exit $ac_status); }; }; then | |
252b5132 RH |
8495 | ac_cv_func_mmap_fixed_mapped=yes |
8496 | else | |
b3baf5d0 NC |
8497 | echo "$as_me: program exited with status $ac_status" >&5 |
8498 | echo "$as_me: failed program was:" >&5 | |
8499 | cat conftest.$ac_ext >&5 | |
8500 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 8501 | fi |
b3baf5d0 | 8502 | rm -f conftest$ac_exeext conftest.$ac_ext |
252b5132 | 8503 | fi |
252b5132 | 8504 | fi |
b3baf5d0 NC |
8505 | echo "$as_me:8505: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8506 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
252b5132 | 8507 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
b3baf5d0 NC |
8508 | |
8509 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
8510 | #define HAVE_MMAP 1 |
8511 | EOF | |
8512 | ||
8513 | fi | |
b3baf5d0 | 8514 | rm -f conftest.mmap |
252b5132 RH |
8515 | |
8516 | for ac_func in madvise mprotect | |
8517 | do | |
b3baf5d0 NC |
8518 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
8519 | echo "$as_me:8519: checking for $ac_func" >&5 | |
8520 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8521 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
8522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8523 | else | |
8524 | cat >conftest.$ac_ext <<_ACEOF | |
8525 | #line 8525 "configure" | |
252b5132 RH |
8526 | #include "confdefs.h" |
8527 | /* System header to define __stub macros and hopefully few prototypes, | |
b3baf5d0 | 8528 | which can conflict with char $ac_func (); below. */ |
252b5132 RH |
8529 | #include <assert.h> |
8530 | /* Override any gcc2 internal prototype to avoid an error. */ | |
b3baf5d0 NC |
8531 | #ifdef __cplusplus |
8532 | extern "C" | |
8533 | #endif | |
252b5132 | 8534 | /* We use char because int might match the return type of a gcc2 |
b3baf5d0 NC |
8535 | builtin and then its argument prototype would still apply. */ |
8536 | char $ac_func (); | |
8537 | char (*f) (); | |
252b5132 | 8538 | |
b3baf5d0 NC |
8539 | int |
8540 | main () | |
8541 | { | |
252b5132 RH |
8542 | /* The GNU C library defines this for functions which it implements |
8543 | to always fail with ENOSYS. Some functions are actually named | |
8544 | something starting with __ and the normal name is an alias. */ | |
8545 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8546 | choke me | |
8547 | #else | |
b3baf5d0 | 8548 | f = $ac_func; |
252b5132 RH |
8549 | #endif |
8550 | ||
b3baf5d0 NC |
8551 | ; |
8552 | return 0; | |
8553 | } | |
8554 | _ACEOF | |
8555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8556 | if { (eval echo "$as_me:8556: \"$ac_link\"") >&5 | |
8557 | (eval $ac_link) 2>&5 | |
8558 | ac_status=$? | |
8559 | echo "$as_me:8559: \$? = $ac_status" >&5 | |
8560 | (exit $ac_status); } && | |
8561 | { ac_try='test -s conftest$ac_exeext' | |
8562 | { (eval echo "$as_me:8562: \"$ac_try\"") >&5 | |
8563 | (eval $ac_try) 2>&5 | |
8564 | ac_status=$? | |
8565 | echo "$as_me:8565: \$? = $ac_status" >&5 | |
8566 | (exit $ac_status); }; }; then | |
8567 | eval "$ac_ac_var=yes" | |
8568 | else | |
8569 | echo "$as_me: failed program was:" >&5 | |
8570 | cat conftest.$ac_ext >&5 | |
8571 | eval "$ac_ac_var=no" | |
8572 | fi | |
8573 | rm -f conftest$ac_exeext conftest.$ac_ext | |
8574 | fi | |
8575 | echo "$as_me:8575: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
8576 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
8577 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
8578 | cat >>confdefs.h <<EOF | |
8579 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
252b5132 | 8580 | EOF |
252b5132 | 8581 | |
252b5132 RH |
8582 | fi |
8583 | done | |
8584 | ||
8585 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
b3baf5d0 NC |
8586 | true+yes ) |
8587 | cat >>confdefs.h <<\EOF | |
252b5132 RH |
8588 | #define USE_MMAP 1 |
8589 | EOF | |
8590 | ;; | |
8591 | esac | |
8592 | ||
8593 | rm -f doc/config.status | |
b3baf5d0 NC |
8594 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" |
8595 | ac_config_commands="$ac_config_commands default" | |
8596 | cat >confcache <<\_ACEOF | |
252b5132 RH |
8597 | # This file is a shell script that caches the results of configure |
8598 | # tests run on this system so they can be shared between configure | |
b3baf5d0 NC |
8599 | # scripts and configure runs, see configure's option --config-cache. |
8600 | # It is not useful on other systems. If it contains results you don't | |
8601 | # want to keep, you may remove or edit it. | |
252b5132 | 8602 | # |
b3baf5d0 NC |
8603 | # config.status only pays attention to the cache file if you give it |
8604 | # the --recheck option to rerun configure. | |
252b5132 | 8605 | # |
b3baf5d0 NC |
8606 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
8607 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8608 | # following values. | |
8609 | ||
8610 | _ACEOF | |
8611 | ||
252b5132 RH |
8612 | # The following way of writing the cache mishandles newlines in values, |
8613 | # but we know of no workaround that is simple, portable, and efficient. | |
8614 | # So, don't put newlines in cache variables' values. | |
8615 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8616 | # and sets the high bit in the cache file unless we assign to the vars. | |
b3baf5d0 NC |
8617 | { |
8618 | (set) 2>&1 | | |
8619 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8620 | *ac_space=\ *) | |
8621 | # `set' does not quote correctly, so add quotes (double-quote | |
8622 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8623 | sed -n \ | |
8624 | "s/'/'\\\\''/g; | |
8625 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
8626 | ;; | |
8627 | *) | |
8628 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8629 | sed -n \ | |
8630 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
8631 | ;; | |
8632 | esac; | |
8633 | } | | |
8634 | sed ' | |
8635 | t clear | |
8636 | : clear | |
8637 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
8638 | t end | |
8639 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
8640 | : end' >>confcache | |
8641 | if cmp -s $cache_file confcache; then :; else | |
252b5132 | 8642 | if test -w $cache_file; then |
b3baf5d0 NC |
8643 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
8644 | cat confcache >$cache_file | |
252b5132 RH |
8645 | else |
8646 | echo "not updating unwritable cache $cache_file" | |
8647 | fi | |
8648 | fi | |
8649 | rm -f confcache | |
8650 | ||
252b5132 RH |
8651 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8652 | # Let make expand exec_prefix. | |
8653 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8654 | ||
b3baf5d0 NC |
8655 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8656 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8657 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8658 | # (actually we leave an empty line to preserve line numbers). | |
252b5132 | 8659 | if test "x$srcdir" = x.; then |
b3baf5d0 NC |
8660 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
8661 | s/:*\$(srcdir):*/:/; | |
8662 | s/:*\${srcdir}:*/:/; | |
8663 | s/:*@srcdir@:*/:/; | |
8664 | s/^\([^=]*=[ ]*\):*/\1/; | |
8665 | s/:*$//; | |
8666 | s/^[^=]*=[ ]*$//; | |
8667 | }' | |
252b5132 RH |
8668 | fi |
8669 | ||
252b5132 RH |
8670 | DEFS=-DHAVE_CONFIG_H |
8671 | ||
252b5132 | 8672 | : ${CONFIG_STATUS=./config.status} |
b3baf5d0 NC |
8673 | ac_clean_files_save=$ac_clean_files |
8674 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
8675 | { echo "$as_me:8675: creating $CONFIG_STATUS" >&5 | |
8676 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8677 | cat >$CONFIG_STATUS <<_ACEOF | |
8678 | #! $SHELL | |
252b5132 RH |
8679 | # Generated automatically by configure. |
8680 | # Run this file to recreate the current configuration. | |
252b5132 | 8681 | # Compiler output produced by configure, useful for debugging |
b3baf5d0 | 8682 | # configure, is in config.log if it exists. |
252b5132 | 8683 | |
b3baf5d0 NC |
8684 | debug=false |
8685 | as_me=\`echo "\$0" | sed 's,.*/,,'\` | |
8686 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8687 | ||
8688 | _ACEOF | |
8689 | ||
8690 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8691 | # Be Bourne compatible | |
8692 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
8693 | emulate sh | |
8694 | NULLCMD=: | |
8695 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
8696 | set -o posix | |
8697 | fi | |
8698 | ||
8699 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8700 | as_expr=expr | |
8701 | else | |
8702 | as_expr=false | |
8703 | fi | |
8704 | ||
8705 | rm -f conf$$ conf$$.exe conf$$.file | |
8706 | echo >conf$$.file | |
8707 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8708 | # We could just check for DJGPP; but this test a) works b) is more generic | |
8709 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
8710 | if test -f conf$$.exe; then | |
8711 | # Don't use ln at all; we don't have any links | |
8712 | as_ln_s='cp -p' | |
8713 | else | |
8714 | as_ln_s='ln -s' | |
8715 | fi | |
8716 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8717 | as_ln_s=ln | |
8718 | else | |
8719 | as_ln_s='cp -p' | |
8720 | fi | |
8721 | rm -f conf$$ conf$$.exe conf$$.file | |
8722 | ||
8723 | as_executable_p="test -f" | |
8724 | ||
8725 | # Support unset when possible. | |
8726 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
8727 | as_unset=unset | |
8728 | else | |
8729 | as_unset=false | |
8730 | fi | |
8731 | ||
8732 | # NLS nuisances. | |
8733 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
8734 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
8735 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
8736 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
8737 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
8738 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
8739 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
8740 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
8741 | ||
8742 | # IFS | |
8743 | # We need space, tab and new line, in precisely that order. | |
8744 | as_nl=' | |
8745 | ' | |
8746 | IFS=" $as_nl" | |
8747 | ||
8748 | # CDPATH. | |
8749 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
8750 | ||
8751 | # File descriptor usage: | |
8752 | # 0 standard input | |
8753 | # 1 file creation | |
8754 | # 2 errors and warnings | |
8755 | # 5 compiler messages saved in config.log | |
8756 | # 6 checking for... messages and results | |
8757 | exec 5>>config.log | |
8758 | exec 6>&1 | |
8759 | ||
8760 | cat >&5 << EOF | |
8761 | ||
8762 | ## ----------------------- ## | |
8763 | ## Running config.status. ## | |
8764 | ## ----------------------- ## | |
8765 | ||
8766 | This file was extended by $as_me 2.49d, executed with | |
8767 | > $0 $@ | |
8768 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
8769 | ||
8770 | EOF | |
8771 | ||
8772 | _ACEOF | |
8773 | ||
8774 | # Files that config.status was made for. | |
8775 | if test -n "$ac_config_files"; then | |
8776 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
8777 | fi | |
8778 | ||
8779 | if test -n "$ac_config_headers"; then | |
8780 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
8781 | fi | |
8782 | ||
8783 | if test -n "$ac_config_links"; then | |
8784 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
8785 | fi | |
8786 | ||
8787 | if test -n "$ac_config_commands"; then | |
8788 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
8789 | fi | |
8790 | ||
8791 | cat >>$CONFIG_STATUS <<\EOF | |
8792 | ||
8793 | ac_cs_usage="\ | |
8794 | \`$as_me' instantiates files from templates according to the | |
8795 | current configuration. | |
8796 | ||
8797 | Usage: $0 [OPTIONS] [FILE]... | |
8798 | ||
8799 | -h, --help print this help, then exit | |
8800 | -V, --version print version number, then exit | |
8801 | -d, --debug don't remove temporary files | |
8802 | --recheck update $as_me by reconfiguring in the same conditions | |
8803 | --file=FILE[:TEMPLATE] | |
8804 | instantiate the configuration file FILE | |
8805 | --header=FILE[:TEMPLATE] | |
8806 | instantiate the configuration header FILE | |
8807 | ||
8808 | Configuration files: | |
8809 | $config_files | |
8810 | ||
8811 | Configuration headers: | |
8812 | $config_headers | |
8813 | ||
8814 | Configuration commands: | |
8815 | $config_commands | |
8816 | ||
8817 | Report bugs to <bug-autoconf@gnu.org>." | |
8818 | EOF | |
8819 | ||
8820 | cat >>$CONFIG_STATUS <<EOF | |
8821 | ac_cs_version="\\ | |
8822 | $CONFIG_STATUS generated by $as_me (Autoconf 2.49d). | |
8823 | Configured on host $ac_hostname by | |
8824 | `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`" | |
8825 | srcdir=$srcdir | |
8826 | INSTALL="$INSTALL" | |
8827 | EOF | |
8828 | ||
8829 | cat >>$CONFIG_STATUS <<\EOF | |
8830 | # If no file are specified by the user, then we need to provide default | |
8831 | # value. By we need to know if files were specified by the user. | |
8832 | ac_need_defaults=: | |
8833 | while test $# != 0 | |
252b5132 | 8834 | do |
b3baf5d0 NC |
8835 | case $1 in |
8836 | --*=*) | |
8837 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8838 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8839 | shift | |
8840 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
8841 | shift | |
8842 | ;; | |
8843 | -*);; | |
8844 | *) # This is not an option, so the user has probably given explicit | |
8845 | # arguments. | |
8846 | ac_need_defaults=false;; | |
8847 | esac | |
8848 | ||
8849 | case $1 in | |
8850 | # Handling of the options. | |
8851 | EOF | |
8852 | cat >>$CONFIG_STATUS <<EOF | |
252b5132 | 8853 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b3baf5d0 NC |
8854 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
8855 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
8856 | EOF | |
8857 | cat >>$CONFIG_STATUS <<\EOF | |
8858 | --version | --vers* | -V ) | |
8859 | echo "$ac_cs_version"; exit 0 ;; | |
8860 | --he | --h) | |
8861 | # Conflict between --help and --header | |
8862 | { { echo "$as_me:8862: error: ambiguous option: $1 | |
8863 | Try \`$0 --help' for more information." >&5 | |
8864 | echo "$as_me: error: ambiguous option: $1 | |
8865 | Try \`$0 --help' for more information." >&2;} | |
8866 | { (exit 1); exit 1; }; };; | |
8867 | --help | --hel | -h ) | |
8868 | echo "$ac_cs_usage"; exit 0 ;; | |
8869 | --debug | --d* | -d ) | |
8870 | debug=: ;; | |
8871 | --file | --fil | --fi | --f ) | |
8872 | shift | |
8873 | CONFIG_FILES="$CONFIG_FILES $1" | |
8874 | ac_need_defaults=false;; | |
8875 | --header | --heade | --head | --hea ) | |
8876 | shift | |
8877 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
8878 | ac_need_defaults=false;; | |
8879 | ||
8880 | # Handling of arguments. | |
8881 | 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8882 | 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
8883 | 'bfd-in3.h' ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
8884 | 'po/Makefile.in' ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
8885 | 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
8886 | 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
8887 | 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8888 | ||
8889 | # This is an error. | |
8890 | -*) { { echo "$as_me:8890: error: unrecognized option: $1 | |
8891 | Try \`$0 --help' for more information." >&5 | |
8892 | echo "$as_me: error: unrecognized option: $1 | |
8893 | Try \`$0 --help' for more information." >&2;} | |
8894 | { (exit 1); exit 1; }; } ;; | |
8895 | *) { { echo "$as_me:8895: error: invalid argument: $1" >&5 | |
8896 | echo "$as_me: error: invalid argument: $1" >&2;} | |
8897 | { (exit 1); exit 1; }; };; | |
252b5132 | 8898 | esac |
b3baf5d0 | 8899 | shift |
252b5132 RH |
8900 | done |
8901 | ||
b3baf5d0 NC |
8902 | EOF |
8903 | ||
8904 | cat >>$CONFIG_STATUS <<\EOF | |
8905 | # If the user did not use the arguments to specify the items to instantiate, | |
8906 | # then the envvar interface is used. Set only those that are not. | |
8907 | # We use the long form for the default assignment because of an extremely | |
8908 | # bizarre bug on SunOS 4.1.3. | |
8909 | if $ac_need_defaults; then | |
8910 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8911 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8912 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8913 | fi | |
8914 | ||
8915 | # Create a temporary directory, and hook for its removal unless debugging. | |
8916 | $debug || | |
8917 | { | |
8918 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
8919 | trap '{ (exit $?); exit $?; }' 1 2 13 15 | |
8920 | } | |
8921 | ||
8922 | # Create a (secure) tmp directory for tmp files. | |
8923 | : ${TMPDIR=/tmp} | |
8924 | { | |
8925 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
8926 | test -n "$tmp" && test -d "$tmp" | |
8927 | } || | |
8928 | { | |
8929 | tmp=$TMPDIR/cs$$-$RANDOM | |
8930 | (umask 077 && mkdir $tmp) | |
8931 | } || | |
8932 | { | |
8933 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
8934 | { (exit 1); exit 1; } | |
8935 | } | |
252b5132 | 8936 | |
252b5132 | 8937 | EOF |
252b5132 | 8938 | |
b3baf5d0 NC |
8939 | cat >>$CONFIG_STATUS <<EOF |
8940 | # | |
8941 | # INIT-COMMANDS section. | |
8942 | # | |
8943 | ||
8944 | EOF | |
8945 | ||
8946 | cat >>$CONFIG_STATUS <<EOF | |
252b5132 | 8947 | |
b3baf5d0 NC |
8948 | # |
8949 | # CONFIG_FILES section. | |
8950 | # | |
8951 | ||
8952 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8953 | # This happens for instance when ./config.status config.h | |
8954 | if test -n "\$CONFIG_FILES"; then | |
8955 | # Protect against being on the right side of a sed subst in config.status. | |
8956 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
8957 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
8958 | s,@SHELL@,$SHELL,;t t | |
8959 | s,@exec_prefix@,$exec_prefix,;t t | |
8960 | s,@prefix@,$prefix,;t t | |
8961 | s,@program_transform_name@,$program_transform_name,;t t | |
8962 | s,@bindir@,$bindir,;t t | |
8963 | s,@sbindir@,$sbindir,;t t | |
8964 | s,@libexecdir@,$libexecdir,;t t | |
8965 | s,@datadir@,$datadir,;t t | |
8966 | s,@sysconfdir@,$sysconfdir,;t t | |
8967 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8968 | s,@localstatedir@,$localstatedir,;t t | |
8969 | s,@libdir@,$libdir,;t t | |
8970 | s,@includedir@,$includedir,;t t | |
8971 | s,@oldincludedir@,$oldincludedir,;t t | |
8972 | s,@infodir@,$infodir,;t t | |
8973 | s,@mandir@,$mandir,;t t | |
8974 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8975 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8976 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8977 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8978 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
8979 | s,@ECHO_C@,$ECHO_C,;t t | |
8980 | s,@ECHO_N@,$ECHO_N,;t t | |
8981 | s,@ECHO_T@,$ECHO_T,;t t | |
8982 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
8983 | s,@DEFS@,$DEFS,;t t | |
8984 | s,@LIBS@,$LIBS,;t t | |
8985 | s,@build@,$build,;t t | |
8986 | s,@build_cpu@,$build_cpu,;t t | |
8987 | s,@build_vendor@,$build_vendor,;t t | |
8988 | s,@build_os@,$build_os,;t t | |
8989 | s,@host@,$host,;t t | |
8990 | s,@host_cpu@,$host_cpu,;t t | |
8991 | s,@host_vendor@,$host_vendor,;t t | |
8992 | s,@host_os@,$host_os,;t t | |
8993 | s,@target@,$target,;t t | |
8994 | s,@target_cpu@,$target_cpu,;t t | |
8995 | s,@target_vendor@,$target_vendor,;t t | |
8996 | s,@target_os@,$target_os,;t t | |
8997 | s,@CC@,$CC,;t t | |
8998 | s,@CFLAGS@,$CFLAGS,;t t | |
8999 | s,@LDFLAGS@,$LDFLAGS,;t t | |
9000 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
9001 | s,@EXEEXT@,$EXEEXT,;t t | |
9002 | s,@OBJEXT@,$OBJEXT,;t t | |
9003 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
9004 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
9005 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
9006 | s,@PACKAGE@,$PACKAGE,;t t | |
9007 | s,@VERSION@,$VERSION,;t t | |
9008 | s,@ACLOCAL@,$ACLOCAL,;t t | |
9009 | s,@AUTOCONF@,$AUTOCONF,;t t | |
9010 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
9011 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
9012 | s,@MAKEINFO@,$MAKEINFO,;t t | |
9013 | s,@SET_MAKE@,$SET_MAKE,;t t | |
9014 | s,@AR@,$AR,;t t | |
9015 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
9016 | s,@RANLIB@,$RANLIB,;t t | |
9017 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9018 | s,@LN_S@,$LN_S,;t t | |
9019 | s,@STRIP@,$STRIP,;t t | |
9020 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
9021 | s,@LIBTOOL@,$LIBTOOL,;t t | |
9022 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
9023 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
9024 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
9025 | s,@MAINT@,$MAINT,;t t | |
9026 | s,@CPP@,$CPP,;t t | |
9027 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
9028 | s,@ALLOCA@,$ALLOCA,;t t | |
9029 | s,@USE_NLS@,$USE_NLS,;t t | |
9030 | s,@MSGFMT@,$MSGFMT,;t t | |
9031 | s,@GMSGFMT@,$GMSGFMT,;t t | |
9032 | s,@XGETTEXT@,$XGETTEXT,;t t | |
9033 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
9034 | s,@CATALOGS@,$CATALOGS,;t t | |
9035 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
9036 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
9037 | s,@GMOFILES@,$GMOFILES,;t t | |
9038 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
9039 | s,@INTLDEPS@,$INTLDEPS,;t t | |
9040 | s,@INTLLIBS@,$INTLLIBS,;t t | |
9041 | s,@INTLOBJS@,$INTLOBJS,;t t | |
9042 | s,@POFILES@,$POFILES,;t t | |
9043 | s,@POSUB@,$POSUB,;t t | |
9044 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
9045 | s,@GT_NO@,$GT_NO,;t t | |
9046 | s,@GT_YES@,$GT_YES,;t t | |
9047 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
9048 | s,@l@,$l,;t t | |
9049 | s,@HDEFINES@,$HDEFINES,;t t | |
9050 | s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t | |
9051 | s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t | |
9052 | s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t | |
9053 | s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t | |
9054 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
9055 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
9056 | s,@COREFILE@,$COREFILE,;t t | |
9057 | s,@COREFLAG@,$COREFLAG,;t t | |
9058 | s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t | |
9059 | s,@WIN32LIBADD@,$WIN32LIBADD,;t t | |
9060 | s,@TDEFINES@,$TDEFINES,;t t | |
9061 | s,@wordsize@,$wordsize,;t t | |
9062 | s,@all_backends@,$all_backends,;t t | |
9063 | s,@bfd_backends@,$bfd_backends,;t t | |
9064 | s,@bfd_machines@,$bfd_machines,;t t | |
9065 | s,@tdefaults@,$tdefaults,;t t | |
252b5132 | 9066 | CEOF |
b3baf5d0 | 9067 | |
252b5132 RH |
9068 | EOF |
9069 | ||
b3baf5d0 NC |
9070 | cat >>$CONFIG_STATUS <<\EOF |
9071 | # Split the substitutions into bite-sized pieces for seds with | |
9072 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9073 | ac_max_sed_lines=48 | |
9074 | ac_sed_frag=1 # Number of current file. | |
9075 | ac_beg=1 # First line for current file. | |
9076 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
9077 | ac_more_lines=: | |
9078 | ac_sed_cmds= | |
9079 | while $ac_more_lines; do | |
9080 | if test $ac_beg -gt 1; then | |
9081 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9082 | else | |
9083 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9084 | fi | |
9085 | if test ! -s $tmp/subs.frag; then | |
9086 | ac_more_lines=false | |
252b5132 | 9087 | else |
b3baf5d0 NC |
9088 | # The purpose of the label and of the branching condition is to |
9089 | # speed up the sed processing (if there are no `@' at all, there | |
9090 | # is no need to browse any of the substitutions). | |
9091 | # These are the two extra sed commands mentioned above. | |
9092 | (echo ':t | |
9093 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
9094 | if test -z "$ac_sed_cmds"; then | |
9095 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
9096 | else | |
9097 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
9098 | fi | |
9099 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
9100 | ac_beg=$ac_end | |
9101 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 9102 | fi |
b3baf5d0 NC |
9103 | done |
9104 | if test -z "$ac_sed_cmds"; then | |
9105 | ac_sed_cmds=cat | |
252b5132 | 9106 | fi |
b3baf5d0 | 9107 | fi # test -n "$CONFIG_FILES" |
252b5132 | 9108 | |
252b5132 | 9109 | EOF |
b3baf5d0 NC |
9110 | cat >>$CONFIG_STATUS <<\EOF |
9111 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 9112 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b3baf5d0 NC |
9113 | case $ac_file in |
9114 | - | *:- | *:-:* ) # input from stdin | |
9115 | cat >$tmp/stdin | |
9116 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9117 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9118 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9119 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9120 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
9121 | esac |
9122 | ||
b3baf5d0 NC |
9123 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
9124 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9125 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9126 | X"$ac_file" : 'X\(//\)$' \| \ | |
9127 | X"$ac_file" : 'X\(/\)' \| \ | |
9128 | . : '\(.\)' 2>/dev/null || | |
9129 | echo X"$ac_file" | | |
9130 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9131 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9132 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9133 | /^X\(\/\).*/{ s//\1/; q; } | |
9134 | s/.*/./; q'` | |
252b5132 | 9135 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
b3baf5d0 NC |
9136 | { case "$ac_dir" in |
9137 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
9138 | *) as_incr_dir=.;; | |
9139 | esac | |
9140 | as_dummy="$ac_dir" | |
9141 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
9142 | case $as_mkdir_dir in | |
9143 | # Skip DOS drivespec | |
9144 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
9145 | *) | |
9146 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
9147 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
9148 | ;; | |
9149 | esac | |
9150 | done; } | |
9151 | ||
9152 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
252b5132 | 9153 | # A "../" for each directory in $ac_dir_suffix. |
b3baf5d0 | 9154 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
252b5132 RH |
9155 | else |
9156 | ac_dir_suffix= ac_dots= | |
9157 | fi | |
9158 | ||
b3baf5d0 NC |
9159 | case $srcdir in |
9160 | .) ac_srcdir=. | |
9161 | if test -z "$ac_dots"; then | |
9162 | ac_top_srcdir=. | |
9163 | else | |
9164 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
9165 | fi ;; | |
9166 | [\\/]* | ?:[\\/]* ) | |
9167 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9168 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 9169 | *) # Relative path. |
b3baf5d0 NC |
9170 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
9171 | ac_top_srcdir=$ac_dots$srcdir ;; | |
252b5132 RH |
9172 | esac |
9173 | ||
b3baf5d0 NC |
9174 | case $INSTALL in |
9175 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
9176 | *) ac_INSTALL=$ac_dots$INSTALL ;; | |
252b5132 RH |
9177 | esac |
9178 | ||
b3baf5d0 NC |
9179 | if test x"$ac_file" != x-; then |
9180 | { echo "$as_me:9180: creating $ac_file" >&5 | |
9181 | echo "$as_me: creating $ac_file" >&6;} | |
9182 | rm -f "$ac_file" | |
9183 | fi | |
9184 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9185 | # use $as_me), people would be surprised to read: | |
9186 | # /* config.h. Generated automatically by config.status. */ | |
9187 | configure_input="Generated automatically from `echo $ac_file_in | | |
9188 | sed 's,.*/,,'` by configure." | |
9189 | ||
9190 | # First look for the input files in the build tree, otherwise in the | |
9191 | # src tree. | |
9192 | ac_file_inputs=`IFS=: | |
9193 | for f in $ac_file_in; do | |
9194 | case $f in | |
9195 | -) echo $tmp/stdin ;; | |
9196 | [\\/$]* | ?:[\\/]*) | |
9197 | # Absolute | |
9198 | test -f "$f" || { { echo "$as_me:9198: error: cannot find input file: $f" >&5 | |
9199 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9200 | { (exit 1); exit 1; }; } | |
9201 | echo $f;; | |
9202 | *) # Relative | |
9203 | if test -f "$f"; then | |
9204 | # Build tree | |
9205 | echo $f | |
9206 | elif test -f "$srcdir/$f"; then | |
9207 | # Source tree | |
9208 | echo $srcdir/$f | |
9209 | else | |
9210 | # /dev/null tree | |
9211 | { { echo "$as_me:9211: error: cannot find input file: $f" >&5 | |
9212 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9213 | { (exit 1); exit 1; }; } | |
9214 | fi;; | |
9215 | esac | |
9216 | done` || { (exit 1); exit 1; } | |
9217 | EOF | |
9218 | cat >>$CONFIG_STATUS <<EOF | |
9219 | sed "$ac_vpsub | |
9220 | $extrasub | |
9221 | EOF | |
9222 | cat >>$CONFIG_STATUS <<\EOF | |
9223 | :t | |
9224 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
9225 | s,@configure_input@,$configure_input,;t t | |
9226 | s,@srcdir@,$ac_srcdir,;t t | |
9227 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
9228 | s,@INSTALL@,$ac_INSTALL,;t t | |
9229 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
9230 | rm -f $tmp/stdin | |
9231 | if test x"$ac_file" != x-; then | |
9232 | mv $tmp/out $ac_file | |
9233 | else | |
9234 | cat $tmp/out | |
9235 | rm -f $tmp/out | |
9236 | fi | |
9237 | ||
9238 | done | |
9239 | EOF | |
9240 | cat >>$CONFIG_STATUS <<\EOF | |
252b5132 | 9241 | |
b3baf5d0 NC |
9242 | # |
9243 | # CONFIG_HEADER section. | |
9244 | # | |
252b5132 RH |
9245 | |
9246 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9247 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9248 | # | |
9249 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b3baf5d0 NC |
9250 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
9251 | ac_dB='[ ].*$,\1#\2' | |
9252 | ac_dC=' ' | |
9253 | ac_dD=',;t' | |
9254 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9255 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9256 | ac_uB='$,\1#\2define\3' | |
252b5132 | 9257 | ac_uC=' ' |
b3baf5d0 NC |
9258 | ac_uD=',;t' |
9259 | ||
9260 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 9261 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b3baf5d0 NC |
9262 | case $ac_file in |
9263 | - | *:- | *:-:* ) # input from stdin | |
9264 | cat >$tmp/stdin | |
9265 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9266 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9267 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9268 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9269 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
9270 | esac |
9271 | ||
b3baf5d0 NC |
9272 | test x"$ac_file" != x- && { echo "$as_me:9272: creating $ac_file" >&5 |
9273 | echo "$as_me: creating $ac_file" >&6;} | |
9274 | ||
9275 | # First look for the input files in the build tree, otherwise in the | |
9276 | # src tree. | |
9277 | ac_file_inputs=`IFS=: | |
9278 | for f in $ac_file_in; do | |
9279 | case $f in | |
9280 | -) echo $tmp/stdin ;; | |
9281 | [\\/$]* | ?:[\\/]*) | |
9282 | # Absolute | |
9283 | test -f "$f" || { { echo "$as_me:9283: error: cannot find input file: $f" >&5 | |
9284 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9285 | { (exit 1); exit 1; }; } | |
9286 | echo $f;; | |
9287 | *) # Relative | |
9288 | if test -f "$f"; then | |
9289 | # Build tree | |
9290 | echo $f | |
9291 | elif test -f "$srcdir/$f"; then | |
9292 | # Source tree | |
9293 | echo $srcdir/$f | |
9294 | else | |
9295 | # /dev/null tree | |
9296 | { { echo "$as_me:9296: error: cannot find input file: $f" >&5 | |
9297 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9298 | { (exit 1); exit 1; }; } | |
9299 | fi;; | |
9300 | esac | |
9301 | done` || { (exit 1); exit 1; } | |
9302 | # Remove the trailing spaces. | |
9303 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
9304 | ||
9305 | EOF | |
9306 | ||
9307 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
9308 | # `conftest.undefs', that substitutes the proper values into | |
9309 | # config.h.in to produce config.h. The first handles `#define' | |
9310 | # templates, and the second `#undef' templates. | |
9311 | # And first: Protect against being on the right side of a sed subst in | |
9312 | # config.status. Protect against being in an unquoted here document | |
9313 | # in config.status. | |
9314 | rm -f conftest.defines conftest.undefs | |
9315 | # Using a here document instead of a string reduces the quoting nightmare. | |
9316 | # Putting comments in sed scripts is not portable. | |
9317 | # | |
9318 | # `end' is used to avoid that the second main sed command (meant for | |
9319 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
9320 | # See the Autoconf documentation for `clear'. | |
9321 | cat >confdef2sed.sed <<\EOF | |
9322 | s/[\\&,]/\\&/g | |
9323 | s,[\\$`],\\&,g | |
9324 | t clear | |
9325 | : clear | |
9326 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
9327 | t end | |
9328 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
9329 | : end | |
9330 | EOF | |
9331 | # If some macros were called several times there might be several times | |
9332 | # the same #defines, which is useless. Nevertheless, we may not want to | |
9333 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
9334 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
9335 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
9336 | rm -f confdef2sed.sed | |
252b5132 RH |
9337 | |
9338 | # This sed command replaces #undef with comments. This is necessary, for | |
9339 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9340 | # on some systems where configure will not decide to define it. | |
b3baf5d0 NC |
9341 | cat >>conftest.undefs <<\EOF |
9342 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
252b5132 RH |
9343 | EOF |
9344 | ||
b3baf5d0 NC |
9345 | # Break up conftest.defines because some shells have a limit on the size |
9346 | # of here documents, and old seds have small limits too (100 cmds). | |
9347 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
9348 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
9349 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
9350 | echo ' :' >>$CONFIG_STATUS | |
9351 | rm -f conftest.tail | |
9352 | while grep . conftest.defines >/dev/null | |
9353 | do | |
9354 | # Write a limited-size here document to $tmp/defines.sed. | |
9355 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
9356 | # Speed up: don't consider the non `#define' lines. | |
9357 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
9358 | # Work around the forget-to-reset-the-flag bug. | |
9359 | echo 't clr' >>$CONFIG_STATUS | |
9360 | echo ': clr' >>$CONFIG_STATUS | |
9361 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9362 | echo 'CEOF | |
9363 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
9364 | rm -f $tmp/in | |
9365 | mv $tmp/out $tmp/in | |
9366 | ' >>$CONFIG_STATUS | |
9367 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
9368 | rm -f conftest.defines | |
9369 | mv conftest.tail conftest.defines | |
9370 | done | |
9371 | rm -f conftest.defines | |
9372 | echo ' fi # egrep' >>$CONFIG_STATUS | |
9373 | echo >>$CONFIG_STATUS | |
252b5132 | 9374 | |
b3baf5d0 NC |
9375 | # Break up conftest.undefs because some shells have a limit on the size |
9376 | # of here documents, and old seds have small limits too (100 cmds). | |
9377 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 9378 | rm -f conftest.tail |
b3baf5d0 | 9379 | while grep . conftest.undefs >/dev/null |
252b5132 | 9380 | do |
b3baf5d0 NC |
9381 | # Write a limited-size here document to $tmp/undefs.sed. |
9382 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
9383 | # Speed up: don't consider the non `#undef' | |
9384 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
9385 | # Work around the forget-to-reset-the-flag bug. | |
9386 | echo 't clr' >>$CONFIG_STATUS | |
9387 | echo ': clr' >>$CONFIG_STATUS | |
9388 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 9389 | echo 'CEOF |
b3baf5d0 NC |
9390 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
9391 | rm -f $tmp/in | |
9392 | mv $tmp/out $tmp/in | |
9393 | ' >>$CONFIG_STATUS | |
9394 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
9395 | rm -f conftest.undefs | |
9396 | mv conftest.tail conftest.undefs | |
252b5132 | 9397 | done |
b3baf5d0 NC |
9398 | rm -f conftest.undefs |
9399 | ||
9400 | cat >>$CONFIG_STATUS <<\EOF | |
9401 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9402 | # use $as_me), people would be surprised to read: | |
9403 | # /* config.h. Generated automatically by config.status. */ | |
9404 | if test x"$ac_file" = x-; then | |
9405 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
252b5132 | 9406 | else |
b3baf5d0 NC |
9407 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
9408 | fi | |
9409 | cat $tmp/in >>$tmp/config.h | |
9410 | rm -f $tmp/in | |
9411 | if test x"$ac_file" != x-; then | |
9412 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
9413 | { echo "$as_me:9413: $ac_file is unchanged" >&5 | |
9414 | echo "$as_me: $ac_file is unchanged" >&6;} | |
9415 | else | |
9416 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9417 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9418 | X"$ac_file" : 'X\(//\)$' \| \ | |
9419 | X"$ac_file" : 'X\(/\)' \| \ | |
9420 | . : '\(.\)' 2>/dev/null || | |
9421 | echo X"$ac_file" | | |
9422 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9423 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9424 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9425 | /^X\(\/\).*/{ s//\1/; q; } | |
9426 | s/.*/./; q'` | |
252b5132 | 9427 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
b3baf5d0 NC |
9428 | { case "$ac_dir" in |
9429 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
9430 | *) as_incr_dir=.;; | |
9431 | esac | |
9432 | as_dummy="$ac_dir" | |
9433 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
9434 | case $as_mkdir_dir in | |
9435 | # Skip DOS drivespec | |
9436 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
9437 | *) | |
9438 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
9439 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
9440 | ;; | |
9441 | esac | |
9442 | done; } | |
9443 | ||
9444 | fi | |
9445 | rm -f $ac_file | |
9446 | mv $tmp/config.h $ac_file | |
252b5132 | 9447 | fi |
b3baf5d0 NC |
9448 | else |
9449 | cat $tmp/config.h | |
9450 | rm -f $tmp/config.h | |
252b5132 | 9451 | fi |
b3baf5d0 | 9452 | done |
252b5132 | 9453 | EOF |
b3baf5d0 | 9454 | cat >>$CONFIG_STATUS <<\EOF |
252b5132 | 9455 | |
b3baf5d0 NC |
9456 | # |
9457 | # CONFIG_COMMANDS section. | |
9458 | # | |
9459 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
9460 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
9461 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
252b5132 | 9462 | |
b3baf5d0 NC |
9463 | case $ac_dest in |
9464 | default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; | |
9465 | default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;; | |
9466 | esac | |
9467 | done | |
252b5132 | 9468 | EOF |
b3baf5d0 NC |
9469 | |
9470 | cat >>$CONFIG_STATUS <<\EOF | |
9471 | ||
9472 | { (exit 0); exit 0; } | |
252b5132 RH |
9473 | EOF |
9474 | chmod +x $CONFIG_STATUS | |
b3baf5d0 | 9475 | ac_clean_files=$ac_clean_files_save |
252b5132 | 9476 | |
b3baf5d0 | 9477 | test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit 1; } |
55c80943 | 9478 |