Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
6be7c12c | 2 | |
252b5132 | 3 | # Guess values for system-dependent variables and create Makefiles. |
6be7c12c AO |
4 | # Generated automatically using autoconf version 2.13 |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
252b5132 RH |
6 | # |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
6be7c12c AO |
10 | # Defaults: |
11 | ac_help= | |
252b5132 | 12 | ac_default_prefix=/usr/local |
6be7c12c AO |
13 | # Any additions from configure.in: |
14 | ac_help="$ac_help | |
15 | --enable-shared[=PKGS] build shared libraries [default=no]" | |
16 | ac_help="$ac_help | |
17 | --enable-static[=PKGS] build static libraries [default=yes]" | |
18 | ac_help="$ac_help | |
19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
20 | ac_help="$ac_help | |
21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
22 | ac_help="$ac_help | |
23 | --disable-libtool-lock avoid locking (might break parallel builds)" | |
24 | ac_help="$ac_help | |
25 | --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
26 | ac_help="$ac_help | |
27 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)" | |
28 | ac_help="$ac_help | |
29 | --enable-targets alternative target configurations" | |
30 | ac_help="$ac_help | |
31 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library" | |
32 | ac_help="$ac_help | |
33 | --with-mmap try using mmap for BFD input files if available" | |
34 | ac_help="$ac_help | |
35 | --enable-build-warnings Enable build-time compiler warnings if gcc is used" | |
36 | ac_help="$ac_help | |
37 | --enable-maintainer-mode enable make rules and dependencies not useful | |
38 | (and sometimes confusing) to the casual installer" | |
39 | ac_help="$ac_help | |
40 | --disable-nls do not use Native Language Support" | |
41 | ac_help="$ac_help | |
42 | --with-included-gettext use the GNU gettext library included here" | |
252b5132 RH |
43 | |
44 | # Initialize some variables set by options. | |
45 | # The variables have the same names as the options, with | |
46 | # dashes changed to underlines. | |
6be7c12c AO |
47 | build=NONE |
48 | cache_file=./config.cache | |
252b5132 | 49 | exec_prefix=NONE |
6be7c12c | 50 | host=NONE |
252b5132 | 51 | no_create= |
6be7c12c | 52 | nonopt=NONE |
252b5132 RH |
53 | no_recursion= |
54 | prefix=NONE | |
55 | program_prefix=NONE | |
56 | program_suffix=NONE | |
57 | program_transform_name=s,x,x, | |
58 | silent= | |
59 | site= | |
60 | srcdir= | |
6be7c12c | 61 | target=NONE |
252b5132 RH |
62 | verbose= |
63 | x_includes=NONE | |
64 | x_libraries=NONE | |
65 | bindir='${exec_prefix}/bin' | |
66 | sbindir='${exec_prefix}/sbin' | |
67 | libexecdir='${exec_prefix}/libexec' | |
68 | datadir='${prefix}/share' | |
69 | sysconfdir='${prefix}/etc' | |
70 | sharedstatedir='${prefix}/com' | |
71 | localstatedir='${prefix}/var' | |
72 | libdir='${exec_prefix}/lib' | |
73 | includedir='${prefix}/include' | |
74 | oldincludedir='/usr/include' | |
75 | infodir='${prefix}/info' | |
76 | mandir='${prefix}/man' | |
77 | ||
6be7c12c AO |
78 | # Initialize some other variables. |
79 | subdirs= | |
80 | MFLAGS= MAKEFLAGS= | |
81 | SHELL=${CONFIG_SHELL-/bin/sh} | |
82 | # Maximum number of lines to put in a shell here document. | |
83 | ac_max_here_lines=12 | |
252b5132 RH |
84 | |
85 | ac_prev= | |
86 | for ac_option | |
87 | do | |
6be7c12c | 88 | |
252b5132 RH |
89 | # If the previous option needs an argument, assign it. |
90 | if test -n "$ac_prev"; then | |
91 | eval "$ac_prev=\$ac_option" | |
92 | ac_prev= | |
93 | continue | |
94 | fi | |
95 | ||
6be7c12c AO |
96 | case "$ac_option" in |
97 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
98 | *) ac_optarg= ;; | |
99 | esac | |
252b5132 RH |
100 | |
101 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
102 | ||
6be7c12c | 103 | case "$ac_option" in |
252b5132 RH |
104 | |
105 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
106 | ac_prev=bindir ;; | |
107 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
6be7c12c | 108 | bindir="$ac_optarg" ;; |
252b5132 RH |
109 | |
110 | -build | --build | --buil | --bui | --bu) | |
6be7c12c | 111 | ac_prev=build ;; |
252b5132 | 112 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
6be7c12c | 113 | build="$ac_optarg" ;; |
252b5132 RH |
114 | |
115 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
116 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
117 | ac_prev=cache_file ;; | |
118 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
119 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
6be7c12c | 120 | cache_file="$ac_optarg" ;; |
252b5132 RH |
121 | |
122 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
123 | ac_prev=datadir ;; | |
124 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
125 | | --da=*) | |
6be7c12c | 126 | datadir="$ac_optarg" ;; |
252b5132 RH |
127 | |
128 | -disable-* | --disable-*) | |
6be7c12c | 129 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
252b5132 | 130 | # Reject names that are not valid shell variable names. |
6be7c12c AO |
131 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
133 | fi | |
134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
135 | eval "enable_${ac_feature}=no" ;; | |
252b5132 RH |
136 | |
137 | -enable-* | --enable-*) | |
6be7c12c | 138 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
252b5132 | 139 | # Reject names that are not valid shell variable names. |
6be7c12c AO |
140 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
142 | fi | |
143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
144 | case "$ac_option" in | |
145 | *=*) ;; | |
252b5132 RH |
146 | *) ac_optarg=yes ;; |
147 | esac | |
6be7c12c | 148 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
252b5132 RH |
149 | |
150 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
151 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
152 | | --exec | --exe | --ex) | |
153 | ac_prev=exec_prefix ;; | |
154 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
155 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
156 | | --exec=* | --exe=* | --ex=*) | |
6be7c12c | 157 | exec_prefix="$ac_optarg" ;; |
252b5132 RH |
158 | |
159 | -gas | --gas | --ga | --g) | |
160 | # Obsolete; use --with-gas. | |
161 | with_gas=yes ;; | |
162 | ||
6be7c12c AO |
163 | -help | --help | --hel | --he) |
164 | # Omit some internal or obsolete options to make the list less imposing. | |
165 | # This message is too long to be a string in the A/UX 3.1 sh. | |
166 | cat << EOF | |
167 | Usage: configure [options] [host] | |
168 | Options: [defaults in brackets after descriptions] | |
169 | Configuration: | |
170 | --cache-file=FILE cache test results in FILE | |
171 | --help print this message | |
172 | --no-create do not create output files | |
173 | --quiet, --silent do not print \`checking...' messages | |
6be7c12c AO |
174 | --version print the version of autoconf that created configure |
175 | Directory and file names: | |
176 | --prefix=PREFIX install architecture-independent files in PREFIX | |
177 | [$ac_default_prefix] | |
178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
179 | [same as prefix] | |
180 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
181 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
182 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
183 | --datadir=DIR read-only architecture-independent data in DIR | |
184 | [PREFIX/share] | |
185 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
186 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
187 | [PREFIX/com] | |
188 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
189 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
190 | --includedir=DIR C header files in DIR [PREFIX/include] | |
191 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
192 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
193 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
194 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
195 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
196 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
197 | --program-transform-name=PROGRAM | |
198 | run sed PROGRAM on installed program names | |
199 | EOF | |
200 | cat << EOF | |
201 | Host type: | |
202 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
203 | --host=HOST configure for HOST [guessed] | |
204 | --target=TARGET configure for TARGET [TARGET=HOST] | |
205 | Features and packages: | |
206 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
207 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
208 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
209 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
210 | --x-includes=DIR X include files are in DIR | |
211 | --x-libraries=DIR X library files are in DIR | |
212 | EOF | |
213 | if test -n "$ac_help"; then | |
214 | echo "--enable and --with options recognized:$ac_help" | |
215 | fi | |
216 | exit 0 ;; | |
252b5132 RH |
217 | |
218 | -host | --host | --hos | --ho) | |
6be7c12c | 219 | ac_prev=host ;; |
252b5132 | 220 | -host=* | --host=* | --hos=* | --ho=*) |
6be7c12c | 221 | host="$ac_optarg" ;; |
252b5132 RH |
222 | |
223 | -includedir | --includedir | --includedi | --included | --include \ | |
224 | | --includ | --inclu | --incl | --inc) | |
225 | ac_prev=includedir ;; | |
226 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
227 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
6be7c12c | 228 | includedir="$ac_optarg" ;; |
252b5132 RH |
229 | |
230 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
231 | ac_prev=infodir ;; | |
232 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
6be7c12c | 233 | infodir="$ac_optarg" ;; |
252b5132 RH |
234 | |
235 | -libdir | --libdir | --libdi | --libd) | |
236 | ac_prev=libdir ;; | |
237 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
6be7c12c | 238 | libdir="$ac_optarg" ;; |
252b5132 RH |
239 | |
240 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
241 | | --libexe | --libex | --libe) | |
242 | ac_prev=libexecdir ;; | |
243 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
244 | | --libexe=* | --libex=* | --libe=*) | |
6be7c12c | 245 | libexecdir="$ac_optarg" ;; |
252b5132 RH |
246 | |
247 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
248 | | --localstate | --localstat | --localsta | --localst \ | |
249 | | --locals | --local | --loca | --loc | --lo) | |
250 | ac_prev=localstatedir ;; | |
251 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
252 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
253 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
6be7c12c | 254 | localstatedir="$ac_optarg" ;; |
252b5132 RH |
255 | |
256 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
257 | ac_prev=mandir ;; | |
258 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
6be7c12c | 259 | mandir="$ac_optarg" ;; |
252b5132 RH |
260 | |
261 | -nfp | --nfp | --nf) | |
262 | # Obsolete; use --without-fp. | |
263 | with_fp=no ;; | |
264 | ||
265 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
266 | | --no-cr | --no-c) | |
267 | no_create=yes ;; | |
268 | ||
269 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
270 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
271 | no_recursion=yes ;; | |
272 | ||
273 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
274 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
275 | | --oldin | --oldi | --old | --ol | --o) | |
276 | ac_prev=oldincludedir ;; | |
277 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
278 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
279 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
6be7c12c | 280 | oldincludedir="$ac_optarg" ;; |
252b5132 RH |
281 | |
282 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
283 | ac_prev=prefix ;; | |
284 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
6be7c12c | 285 | prefix="$ac_optarg" ;; |
252b5132 RH |
286 | |
287 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
288 | | --program-pre | --program-pr | --program-p) | |
289 | ac_prev=program_prefix ;; | |
290 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
291 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
6be7c12c | 292 | program_prefix="$ac_optarg" ;; |
252b5132 RH |
293 | |
294 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
295 | | --program-suf | --program-su | --program-s) | |
296 | ac_prev=program_suffix ;; | |
297 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
298 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
6be7c12c | 299 | program_suffix="$ac_optarg" ;; |
252b5132 RH |
300 | |
301 | -program-transform-name | --program-transform-name \ | |
302 | | --program-transform-nam | --program-transform-na \ | |
303 | | --program-transform-n | --program-transform- \ | |
304 | | --program-transform | --program-transfor \ | |
305 | | --program-transfo | --program-transf \ | |
306 | | --program-trans | --program-tran \ | |
307 | | --progr-tra | --program-tr | --program-t) | |
308 | ac_prev=program_transform_name ;; | |
309 | -program-transform-name=* | --program-transform-name=* \ | |
310 | | --program-transform-nam=* | --program-transform-na=* \ | |
311 | | --program-transform-n=* | --program-transform-=* \ | |
312 | | --program-transform=* | --program-transfor=* \ | |
313 | | --program-transfo=* | --program-transf=* \ | |
314 | | --program-trans=* | --program-tran=* \ | |
315 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
6be7c12c | 316 | program_transform_name="$ac_optarg" ;; |
252b5132 RH |
317 | |
318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
319 | | -silent | --silent | --silen | --sile | --sil) | |
320 | silent=yes ;; | |
321 | ||
322 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
323 | ac_prev=sbindir ;; | |
324 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
325 | | --sbi=* | --sb=*) | |
6be7c12c | 326 | sbindir="$ac_optarg" ;; |
252b5132 RH |
327 | |
328 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
329 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
330 | | --sharedst | --shareds | --shared | --share | --shar \ | |
331 | | --sha | --sh) | |
332 | ac_prev=sharedstatedir ;; | |
333 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
334 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
335 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
336 | | --sha=* | --sh=*) | |
6be7c12c | 337 | sharedstatedir="$ac_optarg" ;; |
252b5132 RH |
338 | |
339 | -site | --site | --sit) | |
340 | ac_prev=site ;; | |
341 | -site=* | --site=* | --sit=*) | |
6be7c12c AO |
342 | site="$ac_optarg" ;; |
343 | ||
252b5132 RH |
344 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
345 | ac_prev=srcdir ;; | |
346 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
6be7c12c | 347 | srcdir="$ac_optarg" ;; |
252b5132 RH |
348 | |
349 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
350 | | --syscon | --sysco | --sysc | --sys | --sy) | |
351 | ac_prev=sysconfdir ;; | |
352 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
353 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
6be7c12c | 354 | sysconfdir="$ac_optarg" ;; |
252b5132 RH |
355 | |
356 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
6be7c12c | 357 | ac_prev=target ;; |
252b5132 | 358 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
6be7c12c | 359 | target="$ac_optarg" ;; |
252b5132 RH |
360 | |
361 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
362 | verbose=yes ;; | |
363 | ||
6be7c12c AO |
364 | -version | --version | --versio | --versi | --vers) |
365 | echo "configure generated by autoconf version 2.13" | |
366 | exit 0 ;; | |
252b5132 RH |
367 | |
368 | -with-* | --with-*) | |
6be7c12c | 369 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
252b5132 | 370 | # Reject names that are not valid shell variable names. |
6be7c12c AO |
371 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
373 | fi | |
252b5132 | 374 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
6be7c12c AO |
375 | case "$ac_option" in |
376 | *=*) ;; | |
252b5132 RH |
377 | *) ac_optarg=yes ;; |
378 | esac | |
6be7c12c | 379 | eval "with_${ac_package}='$ac_optarg'" ;; |
252b5132 RH |
380 | |
381 | -without-* | --without-*) | |
6be7c12c | 382 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
252b5132 | 383 | # Reject names that are not valid shell variable names. |
6be7c12c AO |
384 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
385 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
386 | fi | |
387 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
388 | eval "with_${ac_package}=no" ;; | |
252b5132 RH |
389 | |
390 | --x) | |
391 | # Obsolete; use --with-x. | |
392 | with_x=yes ;; | |
393 | ||
394 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
395 | | --x-incl | --x-inc | --x-in | --x-i) | |
396 | ac_prev=x_includes ;; | |
397 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
398 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
6be7c12c | 399 | x_includes="$ac_optarg" ;; |
252b5132 RH |
400 | |
401 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
402 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
403 | ac_prev=x_libraries ;; | |
404 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
405 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
6be7c12c | 406 | x_libraries="$ac_optarg" ;; |
252b5132 | 407 | |
6be7c12c | 408 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
252b5132 RH |
409 | ;; |
410 | ||
411 | *) | |
6be7c12c AO |
412 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
413 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
414 | fi | |
415 | if test "x$nonopt" != xNONE; then | |
416 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
417 | fi | |
418 | nonopt="$ac_option" | |
252b5132 RH |
419 | ;; |
420 | ||
421 | esac | |
422 | done | |
423 | ||
424 | if test -n "$ac_prev"; then | |
6be7c12c AO |
425 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
426 | fi | |
427 | ||
428 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
429 | ||
430 | # File descriptor usage: | |
431 | # 0 standard input | |
432 | # 1 file creation | |
433 | # 2 errors and warnings | |
434 | # 3 some systems may open it to /dev/tty | |
435 | # 4 used on the Kubota Titan | |
436 | # 6 checking for... messages and results | |
437 | # 5 compiler messages saved in config.log | |
438 | if test "$silent" = yes; then | |
439 | exec 6>/dev/null | |
440 | else | |
441 | exec 6>&1 | |
252b5132 | 442 | fi |
6be7c12c | 443 | exec 5>./config.log |
252b5132 | 444 | |
6be7c12c AO |
445 | echo "\ |
446 | This file contains any messages produced by compilers while | |
447 | running configure, to aid debugging if configure makes a mistake. | |
448 | " 1>&5 | |
449 | ||
450 | # Strip out --no-create and --no-recursion so they do not pile up. | |
451 | # Also quote any args containing shell metacharacters. | |
452 | ac_configure_args= | |
453 | for ac_arg | |
252b5132 | 454 | do |
6be7c12c AO |
455 | case "$ac_arg" in |
456 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
457 | | --no-cr | --no-c) ;; | |
458 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
459 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
461 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
462 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
252b5132 RH |
463 | esac |
464 | done | |
465 | ||
6be7c12c AO |
466 | # NLS nuisances. |
467 | # Only set these to C if already set. These must not be set unconditionally | |
468 | # because not all systems understand e.g. LANG=C (notably SCO). | |
469 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
470 | # Non-C LC_CTYPE values break the ctype check. | |
471 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
472 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
473 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
474 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
252b5132 | 475 | |
6be7c12c AO |
476 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
477 | rm -rf conftest* confdefs.h | |
478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
479 | echo > confdefs.h | |
252b5132 | 480 | |
6be7c12c AO |
481 | # A filename unique to this package, relative to the directory that |
482 | # configure is in, which we can look for to find out if srcdir is correct. | |
483 | ac_unique_file=libbfd.c | |
252b5132 RH |
484 | |
485 | # Find the source files, if location was not specified. | |
486 | if test -z "$srcdir"; then | |
487 | ac_srcdir_defaulted=yes | |
488 | # Try the directory containing this script, then its parent. | |
489 | ac_prog=$0 | |
6be7c12c | 490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
252b5132 RH |
491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
492 | srcdir=$ac_confdir | |
493 | if test ! -r $srcdir/$ac_unique_file; then | |
494 | srcdir=.. | |
495 | fi | |
496 | else | |
497 | ac_srcdir_defaulted=no | |
498 | fi | |
499 | if test ! -r $srcdir/$ac_unique_file; then | |
500 | if test "$ac_srcdir_defaulted" = yes; then | |
6be7c12c | 501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
252b5132 | 502 | else |
6be7c12c | 503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
252b5132 RH |
504 | fi |
505 | fi | |
6be7c12c | 506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
b3baf5d0 | 507 | |
6be7c12c | 508 | # Prefer explicitly selected file to automatically selected ones. |
39691762 L |
509 | if test -z "$CONFIG_SITE"; then |
510 | if test "x$prefix" != xNONE; then | |
511 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
512 | else | |
513 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
252b5132 RH |
514 | fi |
515 | fi | |
516 | for ac_site_file in $CONFIG_SITE; do | |
517 | if test -r "$ac_site_file"; then | |
6be7c12c | 518 | echo "loading site script $ac_site_file" |
252b5132 RH |
519 | . "$ac_site_file" |
520 | fi | |
521 | done | |
522 | ||
523 | if test -r "$cache_file"; then | |
6be7c12c AO |
524 | echo "loading cache $cache_file" |
525 | . $cache_file | |
252b5132 | 526 | else |
6be7c12c AO |
527 | echo "creating cache $cache_file" |
528 | > $cache_file | |
252b5132 RH |
529 | fi |
530 | ||
531 | ac_ext=c | |
6be7c12c | 532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
252b5132 | 533 | ac_cpp='$CPP $CPPFLAGS' |
6be7c12c AO |
534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
535 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
536 | cross_compiling=$ac_cv_prog_cc_cross | |
537 | ||
538 | ac_exeext= | |
539 | ac_objext=o | |
540 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
541 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
542 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
543 | ac_n= ac_c=' | |
544 | ' ac_t=' ' | |
545 | else | |
546 | ac_n=-n ac_c= ac_t= | |
547 | fi | |
548 | else | |
549 | ac_n= ac_c='\c' ac_t= | |
550 | fi | |
551 | ||
552 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
39691762 | 553 | echo "configure:554: checking for Cygwin environment" >&5 |
6be7c12c AO |
554 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
556 | else | |
557 | cat > conftest.$ac_ext <<EOF | |
39691762 | 558 | #line 559 "configure" |
6be7c12c AO |
559 | #include "confdefs.h" |
560 | ||
561 | int main() { | |
562 | ||
563 | #ifndef __CYGWIN__ | |
564 | #define __CYGWIN__ __CYGWIN32__ | |
565 | #endif | |
566 | return __CYGWIN__; | |
567 | ; return 0; } | |
568 | EOF | |
39691762 | 569 | if { (eval echo configure:570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c AO |
570 | rm -rf conftest* |
571 | ac_cv_cygwin=yes | |
572 | else | |
573 | echo "configure: failed program was:" >&5 | |
574 | cat conftest.$ac_ext >&5 | |
575 | rm -rf conftest* | |
576 | ac_cv_cygwin=no | |
577 | fi | |
578 | rm -f conftest* | |
579 | rm -f conftest* | |
580 | fi | |
581 | ||
582 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
583 | CYGWIN= | |
584 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
585 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
39691762 | 586 | echo "configure:587: checking for mingw32 environment" >&5 |
6be7c12c AO |
587 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
589 | else | |
590 | cat > conftest.$ac_ext <<EOF | |
39691762 | 591 | #line 592 "configure" |
6be7c12c AO |
592 | #include "confdefs.h" |
593 | ||
594 | int main() { | |
595 | return __MINGW32__; | |
596 | ; return 0; } | |
597 | EOF | |
39691762 | 598 | if { (eval echo configure:599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c AO |
599 | rm -rf conftest* |
600 | ac_cv_mingw32=yes | |
ac48eca1 | 601 | else |
6be7c12c AO |
602 | echo "configure: failed program was:" >&5 |
603 | cat conftest.$ac_ext >&5 | |
604 | rm -rf conftest* | |
605 | ac_cv_mingw32=no | |
606 | fi | |
607 | rm -f conftest* | |
608 | rm -f conftest* | |
ac48eca1 | 609 | fi |
6be7c12c AO |
610 | |
611 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
612 | MINGW32= | |
613 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
614 | ||
252b5132 RH |
615 | |
616 | ac_aux_dir= | |
617 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
618 | if test -f $ac_dir/install-sh; then | |
619 | ac_aux_dir=$ac_dir | |
620 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
621 | break | |
622 | elif test -f $ac_dir/install.sh; then | |
623 | ac_aux_dir=$ac_dir | |
624 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
625 | break | |
626 | fi | |
627 | done | |
628 | if test -z "$ac_aux_dir"; then | |
6be7c12c | 629 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
252b5132 | 630 | fi |
6be7c12c AO |
631 | ac_config_guess=$ac_aux_dir/config.guess |
632 | ac_config_sub=$ac_aux_dir/config.sub | |
633 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
252b5132 | 634 | |
6be7c12c AO |
635 | |
636 | # Do some error checking and defaulting for the host and target type. | |
637 | # The inputs are: | |
638 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
639 | # | |
640 | # The rules are: | |
641 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
642 | # same time. | |
643 | # 2. Host defaults to nonopt. | |
644 | # 3. If nonopt is not specified, then host defaults to the current host, | |
645 | # as determined by config.guess. | |
646 | # 4. Target and build default to nonopt. | |
647 | # 5. If nonopt is not specified, then target and build default to host. | |
252b5132 RH |
648 | |
649 | # The aliases save the names the user supplied, while $host etc. | |
650 | # will get canonicalized. | |
6be7c12c AO |
651 | case $host---$target---$nonopt in |
652 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
653 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
654 | esac | |
655 | ||
656 | ||
657 | # Make sure we can run config.sub. | |
658 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
659 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
660 | fi | |
661 | ||
662 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
39691762 | 663 | echo "configure:664: checking host system type" >&5 |
6be7c12c AO |
664 | |
665 | host_alias=$host | |
666 | case "$host_alias" in | |
667 | NONE) | |
668 | case $nonopt in | |
669 | NONE) | |
670 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
671 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
672 | fi ;; | |
673 | *) host_alias=$nonopt ;; | |
674 | esac ;; | |
675 | esac | |
676 | ||
677 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
678 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
679 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
680 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
681 | echo "$ac_t""$host" 1>&6 | |
682 | ||
683 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
39691762 | 684 | echo "configure:685: checking target system type" >&5 |
6be7c12c AO |
685 | |
686 | target_alias=$target | |
687 | case "$target_alias" in | |
688 | NONE) | |
689 | case $nonopt in | |
690 | NONE) target_alias=$host_alias ;; | |
691 | *) target_alias=$nonopt ;; | |
692 | esac ;; | |
693 | esac | |
694 | ||
695 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
696 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
697 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
698 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
699 | echo "$ac_t""$target" 1>&6 | |
700 | ||
701 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
39691762 | 702 | echo "configure:703: checking build system type" >&5 |
6be7c12c AO |
703 | |
704 | build_alias=$build | |
705 | case "$build_alias" in | |
706 | NONE) | |
707 | case $nonopt in | |
708 | NONE) build_alias=$host_alias ;; | |
709 | *) build_alias=$nonopt ;; | |
710 | esac ;; | |
711 | esac | |
712 | ||
713 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
714 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
715 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
716 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
717 | echo "$ac_t""$build" 1>&6 | |
718 | ||
719 | test "$host_alias" != "$target_alias" && | |
252b5132 RH |
720 | test "$program_prefix$program_suffix$program_transform_name" = \ |
721 | NONENONEs,x,x, && | |
722 | program_prefix=${target_alias}- | |
6be7c12c AO |
723 | |
724 | # Extract the first word of "gcc", so it can be a program name with args. | |
725 | set dummy gcc; ac_word=$2 | |
726 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
39691762 | 727 | echo "configure:728: checking for $ac_word" >&5 |
6be7c12c AO |
728 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 730 | else |
b3baf5d0 NC |
731 | if test -n "$CC"; then |
732 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
733 | else | |
6be7c12c AO |
734 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
735 | ac_dummy="$PATH" | |
736 | for ac_dir in $ac_dummy; do | |
737 | test -z "$ac_dir" && ac_dir=. | |
738 | if test -f $ac_dir/$ac_word; then | |
739 | ac_cv_prog_CC="gcc" | |
740 | break | |
741 | fi | |
742 | done | |
743 | IFS="$ac_save_ifs" | |
b3baf5d0 NC |
744 | fi |
745 | fi | |
6be7c12c | 746 | CC="$ac_cv_prog_CC" |
b3baf5d0 | 747 | if test -n "$CC"; then |
6be7c12c | 748 | echo "$ac_t""$CC" 1>&6 |
252b5132 | 749 | else |
6be7c12c | 750 | echo "$ac_t""no" 1>&6 |
252b5132 | 751 | fi |
b3baf5d0 | 752 | |
6be7c12c AO |
753 | if test -z "$CC"; then |
754 | # Extract the first word of "cc", so it can be a program name with args. | |
755 | set dummy cc; ac_word=$2 | |
756 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
39691762 | 757 | echo "configure:758: checking for $ac_word" >&5 |
6be7c12c AO |
758 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3baf5d0 NC |
760 | else |
761 | if test -n "$CC"; then | |
762 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
763 | else | |
6be7c12c | 764 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b3baf5d0 | 765 | ac_prog_rejected=no |
6be7c12c AO |
766 | ac_dummy="$PATH" |
767 | for ac_dir in $ac_dummy; do | |
768 | test -z "$ac_dir" && ac_dir=. | |
769 | if test -f $ac_dir/$ac_word; then | |
770 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
771 | ac_prog_rejected=yes | |
772 | continue | |
773 | fi | |
774 | ac_cv_prog_CC="cc" | |
775 | break | |
776 | fi | |
777 | done | |
778 | IFS="$ac_save_ifs" | |
b3baf5d0 NC |
779 | if test $ac_prog_rejected = yes; then |
780 | # We found a bogon in the path, so make sure we never use it. | |
781 | set dummy $ac_cv_prog_CC | |
782 | shift | |
6be7c12c | 783 | if test $# -gt 0; then |
b3baf5d0 NC |
784 | # We chose a different compiler from the bogus one. |
785 | # However, it has the same basename, so the bogon will be chosen | |
786 | # first if we set CC to just the basename; use the full file name. | |
787 | shift | |
6be7c12c | 788 | set dummy "$ac_dir/$ac_word" "$@" |
b3baf5d0 NC |
789 | shift |
790 | ac_cv_prog_CC="$@" | |
791 | fi | |
792 | fi | |
793 | fi | |
794 | fi | |
6be7c12c | 795 | CC="$ac_cv_prog_CC" |
b3baf5d0 | 796 | if test -n "$CC"; then |
6be7c12c | 797 | echo "$ac_t""$CC" 1>&6 |
b3baf5d0 | 798 | else |
6be7c12c | 799 | echo "$ac_t""no" 1>&6 |
b3baf5d0 NC |
800 | fi |
801 | ||
6be7c12c AO |
802 | if test -z "$CC"; then |
803 | case "`uname -s`" in | |
804 | *win32* | *WIN32*) | |
805 | # Extract the first word of "cl", so it can be a program name with args. | |
806 | set dummy cl; ac_word=$2 | |
807 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
39691762 | 808 | echo "configure:809: checking for $ac_word" >&5 |
6be7c12c AO |
809 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3baf5d0 NC |
811 | else |
812 | if test -n "$CC"; then | |
813 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
814 | else | |
6be7c12c AO |
815 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
816 | ac_dummy="$PATH" | |
817 | for ac_dir in $ac_dummy; do | |
818 | test -z "$ac_dir" && ac_dir=. | |
819 | if test -f $ac_dir/$ac_word; then | |
820 | ac_cv_prog_CC="cl" | |
821 | break | |
822 | fi | |
823 | done | |
824 | IFS="$ac_save_ifs" | |
b3baf5d0 NC |
825 | fi |
826 | fi | |
6be7c12c | 827 | CC="$ac_cv_prog_CC" |
b3baf5d0 | 828 | if test -n "$CC"; then |
6be7c12c | 829 | echo "$ac_t""$CC" 1>&6 |
b3baf5d0 | 830 | else |
6be7c12c | 831 | echo "$ac_t""no" 1>&6 |
b3baf5d0 | 832 | fi |
6be7c12c AO |
833 | ;; |
834 | esac | |
835 | fi | |
836 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
b3baf5d0 | 837 | fi |
b3baf5d0 | 838 | |
6be7c12c | 839 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
39691762 | 840 | echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
b3baf5d0 | 841 | |
6be7c12c AO |
842 | ac_ext=c |
843 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
844 | ac_cpp='$CPP $CPPFLAGS' | |
845 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
846 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
847 | cross_compiling=$ac_cv_prog_cc_cross | |
b3baf5d0 | 848 | |
6be7c12c | 849 | cat > conftest.$ac_ext << EOF |
b3baf5d0 | 850 | |
39691762 | 851 | #line 852 "configure" |
b3baf5d0 NC |
852 | #include "confdefs.h" |
853 | ||
6be7c12c AO |
854 | main(){return(0);} |
855 | EOF | |
39691762 | 856 | if { (eval echo configure:857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
857 | ac_cv_prog_cc_works=yes |
858 | # If we can't run a trivial program, we are probably using a cross compiler. | |
859 | if (./conftest; exit) 2>/dev/null; then | |
860 | ac_cv_prog_cc_cross=no | |
b3baf5d0 | 861 | else |
6be7c12c | 862 | ac_cv_prog_cc_cross=yes |
b3baf5d0 | 863 | fi |
b3baf5d0 | 864 | else |
6be7c12c AO |
865 | echo "configure: failed program was:" >&5 |
866 | cat conftest.$ac_ext >&5 | |
867 | ac_cv_prog_cc_works=no | |
b3baf5d0 | 868 | fi |
6be7c12c AO |
869 | rm -fr conftest* |
870 | ac_ext=c | |
871 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
872 | ac_cpp='$CPP $CPPFLAGS' | |
873 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
874 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
875 | cross_compiling=$ac_cv_prog_cc_cross | |
b3baf5d0 | 876 | |
6be7c12c AO |
877 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
878 | if test $ac_cv_prog_cc_works = no; then | |
879 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
880 | fi | |
881 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
39691762 | 882 | echo "configure:883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
6be7c12c AO |
883 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
884 | cross_compiling=$ac_cv_prog_cc_cross | |
b3baf5d0 | 885 | |
6be7c12c | 886 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
39691762 | 887 | echo "configure:888: checking whether we are using GNU C" >&5 |
6be7c12c AO |
888 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3baf5d0 | 890 | else |
6be7c12c AO |
891 | cat > conftest.c <<EOF |
892 | #ifdef __GNUC__ | |
893 | yes; | |
894 | #endif | |
895 | EOF | |
39691762 | 896 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
6be7c12c | 897 | ac_cv_prog_gcc=yes |
b3baf5d0 | 898 | else |
6be7c12c | 899 | ac_cv_prog_gcc=no |
b3baf5d0 | 900 | fi |
b3baf5d0 | 901 | fi |
b3baf5d0 | 902 | |
6be7c12c | 903 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
b3baf5d0 | 904 | |
6be7c12c AO |
905 | if test $ac_cv_prog_gcc = yes; then |
906 | GCC=yes | |
907 | else | |
908 | GCC= | |
909 | fi | |
b3baf5d0 | 910 | |
6be7c12c AO |
911 | ac_test_CFLAGS="${CFLAGS+set}" |
912 | ac_save_CFLAGS="$CFLAGS" | |
913 | CFLAGS= | |
914 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
39691762 | 915 | echo "configure:916: checking whether ${CC-cc} accepts -g" >&5 |
6be7c12c AO |
916 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
918 | else | |
919 | echo 'void f(){}' > conftest.c | |
920 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
b3baf5d0 NC |
921 | ac_cv_prog_cc_g=yes |
922 | else | |
6be7c12c | 923 | ac_cv_prog_cc_g=no |
b3baf5d0 | 924 | fi |
6be7c12c AO |
925 | rm -f conftest* |
926 | ||
b3baf5d0 | 927 | fi |
6be7c12c AO |
928 | |
929 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
b3baf5d0 | 930 | if test "$ac_test_CFLAGS" = set; then |
6be7c12c | 931 | CFLAGS="$ac_save_CFLAGS" |
b3baf5d0 NC |
932 | elif test $ac_cv_prog_cc_g = yes; then |
933 | if test "$GCC" = yes; then | |
934 | CFLAGS="-g -O2" | |
935 | else | |
936 | CFLAGS="-g" | |
937 | fi | |
938 | else | |
939 | if test "$GCC" = yes; then | |
940 | CFLAGS="-O2" | |
941 | else | |
942 | CFLAGS= | |
943 | fi | |
944 | fi | |
b3baf5d0 | 945 | |
6be7c12c | 946 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
39691762 | 947 | echo "configure:948: checking for POSIXized ISC" >&5 |
b3baf5d0 | 948 | if test -d /etc/conf/kconfig.d && |
6be7c12c | 949 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
b3baf5d0 | 950 | then |
6be7c12c | 951 | echo "$ac_t""yes" 1>&6 |
b3baf5d0 | 952 | ISC=yes # If later tests want to check for ISC. |
6be7c12c | 953 | cat >> confdefs.h <<\EOF |
b3baf5d0 NC |
954 | #define _POSIX_SOURCE 1 |
955 | EOF | |
956 | ||
957 | if test "$GCC" = yes; then | |
958 | CC="$CC -posix" | |
959 | else | |
960 | CC="$CC -Xp" | |
961 | fi | |
962 | else | |
6be7c12c | 963 | echo "$ac_t""no" 1>&6 |
b3baf5d0 NC |
964 | ISC= |
965 | fi | |
252b5132 | 966 | |
6be7c12c | 967 | |
252b5132 RH |
968 | # Find a good install program. We prefer a C program (faster), |
969 | # so one script is as good as another. But avoid the broken or | |
970 | # incompatible versions: | |
971 | # SysV /etc/install, /usr/sbin/install | |
972 | # SunOS /usr/etc/install | |
973 | # IRIX /sbin/install | |
974 | # AIX /bin/install | |
975 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
976 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
977 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
978 | # ./install, which can be erroneously created by make from ./install.sh. | |
6be7c12c | 979 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
39691762 | 980 | echo "configure:981: checking for a BSD compatible install" >&5 |
252b5132 | 981 | if test -z "$INSTALL"; then |
6be7c12c AO |
982 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
983 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 984 | else |
6be7c12c | 985 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
252b5132 RH |
986 | for ac_dir in $PATH; do |
987 | # Account for people who put trailing slashes in PATH elements. | |
6be7c12c AO |
988 | case "$ac_dir/" in |
989 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
252b5132 RH |
990 | *) |
991 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
992 | # Don't use installbsd from OSF since it installs stuff as root | |
993 | # by default. | |
994 | for ac_prog in ginstall scoinst install; do | |
6be7c12c | 995 | if test -f $ac_dir/$ac_prog; then |
252b5132 | 996 | if test $ac_prog = install && |
6be7c12c | 997 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
252b5132 RH |
998 | # AIX install. It has an incompatible calling convention. |
999 | : | |
1000 | else | |
1001 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1002 | break 2 | |
1003 | fi | |
1004 | fi | |
1005 | done | |
1006 | ;; | |
1007 | esac | |
1008 | done | |
6be7c12c | 1009 | IFS="$ac_save_IFS" |
252b5132 RH |
1010 | |
1011 | fi | |
1012 | if test "${ac_cv_path_install+set}" = set; then | |
6be7c12c | 1013 | INSTALL="$ac_cv_path_install" |
252b5132 RH |
1014 | else |
1015 | # As a last resort, use the slow shell script. We don't cache a | |
1016 | # path for INSTALL within a source directory, because that will | |
1017 | # break other packages using the cache if that directory is | |
1018 | # removed, or if the path is relative. | |
6be7c12c | 1019 | INSTALL="$ac_install_sh" |
252b5132 RH |
1020 | fi |
1021 | fi | |
6be7c12c | 1022 | echo "$ac_t""$INSTALL" 1>&6 |
252b5132 RH |
1023 | |
1024 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1025 | # It thinks the first close brace ends the variable substitution. | |
1026 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1027 | ||
6be7c12c | 1028 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
252b5132 RH |
1029 | |
1030 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1031 | ||
6be7c12c | 1032 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
39691762 | 1033 | echo "configure:1034: checking whether build environment is sane" >&5 |
252b5132 RH |
1034 | # Just in case |
1035 | sleep 1 | |
1036 | echo timestamp > conftestfile | |
1037 | # Do `set' in a subshell so we don't clobber the current shell's | |
1038 | # arguments. Must try -L first in case configure is actually a | |
1039 | # symlink; some systems play weird games with the mod time of symlinks | |
1040 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1041 | # directory). | |
1042 | if ( | |
1043 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
1044 | if test "$*" = "X"; then | |
1045 | # -L didn't work. | |
1046 | set X `ls -t $srcdir/configure conftestfile` | |
1047 | fi | |
1048 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
1049 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
1050 | ||
1051 | # If neither matched, then we have a broken ls. This can happen | |
1052 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1053 | # broken ls alias from the environment. This has actually | |
1054 | # happened. Such a system could not be considered "sane". | |
6be7c12c AO |
1055 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
1056 | alias in your environment" 1>&2; exit 1; } | |
252b5132 RH |
1057 | fi |
1058 | ||
1059 | test "$2" = conftestfile | |
1060 | ) | |
1061 | then | |
1062 | # Ok. | |
1063 | : | |
1064 | else | |
6be7c12c AO |
1065 | { echo "configure: error: newly created file is older than distributed files! |
1066 | Check your system clock" 1>&2; exit 1; } | |
252b5132 RH |
1067 | fi |
1068 | rm -f conftest* | |
6be7c12c | 1069 | echo "$ac_t""yes" 1>&6 |
252b5132 RH |
1070 | if test "$program_transform_name" = s,x,x,; then |
1071 | program_transform_name= | |
1072 | else | |
1073 | # Double any \ or $. echo might interpret backslashes. | |
6be7c12c | 1074 | cat <<\EOF_SED > conftestsed |
252b5132 | 1075 | s,\\,\\\\,g; s,\$,$$,g |
6be7c12c AO |
1076 | EOF_SED |
1077 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
1078 | rm -f conftestsed | |
252b5132 RH |
1079 | fi |
1080 | test "$program_prefix" != NONE && | |
6be7c12c | 1081 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
252b5132 RH |
1082 | # Use a double $ so make ignores it. |
1083 | test "$program_suffix" != NONE && | |
6be7c12c | 1084 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
252b5132 RH |
1085 | |
1086 | # sed with no file args requires a program. | |
6be7c12c | 1087 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
252b5132 | 1088 | |
6be7c12c | 1089 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
39691762 | 1090 | echo "configure:1091: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
6be7c12c AO |
1091 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1092 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 1094 | else |
6be7c12c | 1095 | cat > conftestmake <<\EOF |
252b5132 RH |
1096 | all: |
1097 | @echo 'ac_maketemp="${MAKE}"' | |
1098 | EOF | |
1099 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6be7c12c | 1100 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
252b5132 RH |
1101 | if test -n "$ac_maketemp"; then |
1102 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1103 | else | |
1104 | eval ac_cv_prog_make_${ac_make}_set=no | |
1105 | fi | |
6be7c12c | 1106 | rm -f conftestmake |
252b5132 RH |
1107 | fi |
1108 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
6be7c12c | 1109 | echo "$ac_t""yes" 1>&6 |
252b5132 RH |
1110 | SET_MAKE= |
1111 | else | |
6be7c12c | 1112 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
1113 | SET_MAKE="MAKE=${MAKE-make}" |
1114 | fi | |
1115 | ||
6be7c12c | 1116 | |
252b5132 RH |
1117 | PACKAGE=bfd |
1118 | ||
862517b6 | 1119 | VERSION=2.11.92 |
252b5132 RH |
1120 | |
1121 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
6be7c12c | 1122 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
252b5132 | 1123 | fi |
6be7c12c | 1124 | cat >> confdefs.h <<EOF |
252b5132 RH |
1125 | #define PACKAGE "$PACKAGE" |
1126 | EOF | |
1127 | ||
6be7c12c | 1128 | cat >> confdefs.h <<EOF |
252b5132 RH |
1129 | #define VERSION "$VERSION" |
1130 | EOF | |
1131 | ||
6be7c12c AO |
1132 | |
1133 | ||
252b5132 | 1134 | missing_dir=`cd $ac_aux_dir && pwd` |
6be7c12c | 1135 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
39691762 | 1136 | echo "configure:1137: checking for working aclocal" >&5 |
252b5132 RH |
1137 | # Run test in a subshell; some versions of sh will print an error if |
1138 | # an executable is not found, even if stderr is redirected. | |
1139 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1140 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1141 | ACLOCAL=aclocal | |
6be7c12c | 1142 | echo "$ac_t""found" 1>&6 |
252b5132 RH |
1143 | else |
1144 | ACLOCAL="$missing_dir/missing aclocal" | |
6be7c12c | 1145 | echo "$ac_t""missing" 1>&6 |
252b5132 RH |
1146 | fi |
1147 | ||
6be7c12c | 1148 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
39691762 | 1149 | echo "configure:1150: checking for working autoconf" >&5 |
252b5132 RH |
1150 | # Run test in a subshell; some versions of sh will print an error if |
1151 | # an executable is not found, even if stderr is redirected. | |
1152 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1153 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1154 | AUTOCONF=autoconf | |
6be7c12c | 1155 | echo "$ac_t""found" 1>&6 |
252b5132 RH |
1156 | else |
1157 | AUTOCONF="$missing_dir/missing autoconf" | |
6be7c12c | 1158 | echo "$ac_t""missing" 1>&6 |
252b5132 RH |
1159 | fi |
1160 | ||
6be7c12c | 1161 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
39691762 | 1162 | echo "configure:1163: checking for working automake" >&5 |
252b5132 RH |
1163 | # Run test in a subshell; some versions of sh will print an error if |
1164 | # an executable is not found, even if stderr is redirected. | |
1165 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1166 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1167 | AUTOMAKE=automake | |
6be7c12c | 1168 | echo "$ac_t""found" 1>&6 |
252b5132 RH |
1169 | else |
1170 | AUTOMAKE="$missing_dir/missing automake" | |
6be7c12c | 1171 | echo "$ac_t""missing" 1>&6 |
252b5132 RH |
1172 | fi |
1173 | ||
6be7c12c | 1174 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
39691762 | 1175 | echo "configure:1176: checking for working autoheader" >&5 |
252b5132 RH |
1176 | # Run test in a subshell; some versions of sh will print an error if |
1177 | # an executable is not found, even if stderr is redirected. | |
1178 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1179 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1180 | AUTOHEADER=autoheader | |
6be7c12c | 1181 | echo "$ac_t""found" 1>&6 |
252b5132 RH |
1182 | else |
1183 | AUTOHEADER="$missing_dir/missing autoheader" | |
6be7c12c | 1184 | echo "$ac_t""missing" 1>&6 |
252b5132 RH |
1185 | fi |
1186 | ||
6be7c12c | 1187 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
39691762 | 1188 | echo "configure:1189: checking for working makeinfo" >&5 |
252b5132 RH |
1189 | # Run test in a subshell; some versions of sh will print an error if |
1190 | # an executable is not found, even if stderr is redirected. | |
1191 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1192 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1193 | MAKEINFO=makeinfo | |
6be7c12c | 1194 | echo "$ac_t""found" 1>&6 |
252b5132 RH |
1195 | else |
1196 | MAKEINFO="$missing_dir/missing makeinfo" | |
6be7c12c | 1197 | echo "$ac_t""missing" 1>&6 |
252b5132 RH |
1198 | fi |
1199 | ||
6be7c12c | 1200 | |
e43d48cc AM |
1201 | # Uncomment the next line to remove the date from the reported bfd version |
1202 | #is_release=y | |
1203 | ||
1204 | bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'` | |
1205 | ||
1206 | bfd_version_string="\"${VERSION}\"" | |
1207 | bfd_version_date=`sed -e 's/.*DATE //' < ${srcdir}/version.h` | |
1208 | if test x${is_release} = x; then | |
1209 | bfd_version_string="\"${VERSION} ${bfd_version_date}\"" | |
1210 | fi | |
1211 | ||
1212 | ||
1213 | ||
6be7c12c AO |
1214 | |
1215 | if test $host != $build; then | |
1216 | ac_tool_prefix=${host_alias}- | |
1217 | else | |
1218 | ac_tool_prefix= | |
1219 | fi | |
1220 | ||
1221 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 1222 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
6be7c12c | 1223 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
39691762 | 1224 | echo "configure:1225: checking for $ac_word" >&5 |
6be7c12c AO |
1225 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
1227 | else |
1228 | if test -n "$AR"; then | |
1229 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1230 | else | |
6be7c12c AO |
1231 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1232 | ac_dummy="$PATH" | |
1233 | for ac_dir in $ac_dummy; do | |
1234 | test -z "$ac_dir" && ac_dir=. | |
1235 | if test -f $ac_dir/$ac_word; then | |
1236 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1237 | break | |
1238 | fi | |
1239 | done | |
1240 | IFS="$ac_save_ifs" | |
1241 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
252b5132 RH |
1242 | fi |
1243 | fi | |
6be7c12c | 1244 | AR="$ac_cv_prog_AR" |
252b5132 | 1245 | if test -n "$AR"; then |
6be7c12c | 1246 | echo "$ac_t""$AR" 1>&6 |
252b5132 | 1247 | else |
6be7c12c | 1248 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
1249 | fi |
1250 | ||
1251 | ||
6be7c12c AO |
1252 | |
1253 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 1254 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6be7c12c | 1255 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
39691762 | 1256 | echo "configure:1257: checking for $ac_word" >&5 |
6be7c12c AO |
1257 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
1259 | else |
1260 | if test -n "$RANLIB"; then | |
1261 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1262 | else | |
6be7c12c AO |
1263 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1264 | ac_dummy="$PATH" | |
1265 | for ac_dir in $ac_dummy; do | |
1266 | test -z "$ac_dir" && ac_dir=. | |
1267 | if test -f $ac_dir/$ac_word; then | |
1268 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1269 | break | |
1270 | fi | |
1271 | done | |
1272 | IFS="$ac_save_ifs" | |
252b5132 RH |
1273 | fi |
1274 | fi | |
6be7c12c | 1275 | RANLIB="$ac_cv_prog_RANLIB" |
252b5132 | 1276 | if test -n "$RANLIB"; then |
6be7c12c | 1277 | echo "$ac_t""$RANLIB" 1>&6 |
252b5132 | 1278 | else |
6be7c12c | 1279 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
1280 | fi |
1281 | ||
6be7c12c | 1282 | |
252b5132 | 1283 | if test -z "$ac_cv_prog_RANLIB"; then |
6be7c12c | 1284 | if test -n "$ac_tool_prefix"; then |
252b5132 RH |
1285 | # Extract the first word of "ranlib", so it can be a program name with args. |
1286 | set dummy ranlib; ac_word=$2 | |
6be7c12c | 1287 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
39691762 | 1288 | echo "configure:1289: checking for $ac_word" >&5 |
6be7c12c AO |
1289 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1291 | else | |
1292 | if test -n "$RANLIB"; then | |
1293 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1294 | else | |
1295 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1296 | ac_dummy="$PATH" | |
1297 | for ac_dir in $ac_dummy; do | |
1298 | test -z "$ac_dir" && ac_dir=. | |
1299 | if test -f $ac_dir/$ac_word; then | |
1300 | ac_cv_prog_RANLIB="ranlib" | |
1301 | break | |
1302 | fi | |
1303 | done | |
1304 | IFS="$ac_save_ifs" | |
1305 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
252b5132 RH |
1306 | fi |
1307 | fi | |
6be7c12c AO |
1308 | RANLIB="$ac_cv_prog_RANLIB" |
1309 | if test -n "$RANLIB"; then | |
1310 | echo "$ac_t""$RANLIB" 1>&6 | |
252b5132 | 1311 | else |
6be7c12c | 1312 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
1313 | fi |
1314 | ||
1315 | else | |
6be7c12c | 1316 | RANLIB=":" |
252b5132 | 1317 | fi |
6be7c12c AO |
1318 | fi |
1319 | ||
252b5132 RH |
1320 | |
1321 | # Check whether --enable-shared or --disable-shared was given. | |
1322 | if test "${enable_shared+set}" = set; then | |
1323 | enableval="$enable_shared" | |
1324 | p=${PACKAGE-default} | |
55c80943 | 1325 | case $enableval in |
252b5132 RH |
1326 | yes) enable_shared=yes ;; |
1327 | no) enable_shared=no ;; | |
1328 | *) | |
1329 | enable_shared=no | |
1330 | # Look at the argument we got. We use all the common list separators. | |
1331 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1332 | for pkg in $enableval; do | |
1333 | if test "X$pkg" = "X$p"; then | |
1334 | enable_shared=yes | |
1335 | fi | |
1336 | done | |
1337 | IFS="$ac_save_ifs" | |
1338 | ;; | |
1339 | esac | |
1340 | else | |
1341 | enable_shared=no | |
6be7c12c AO |
1342 | fi |
1343 | ||
252b5132 RH |
1344 | |
1345 | # Check whether --enable-static or --disable-static was given. | |
1346 | if test "${enable_static+set}" = set; then | |
1347 | enableval="$enable_static" | |
1348 | p=${PACKAGE-default} | |
55c80943 | 1349 | case $enableval in |
252b5132 RH |
1350 | yes) enable_static=yes ;; |
1351 | no) enable_static=no ;; | |
1352 | *) | |
1353 | enable_static=no | |
1354 | # Look at the argument we got. We use all the common list separators. | |
1355 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1356 | for pkg in $enableval; do | |
1357 | if test "X$pkg" = "X$p"; then | |
1358 | enable_static=yes | |
1359 | fi | |
1360 | done | |
1361 | IFS="$ac_save_ifs" | |
1362 | ;; | |
1363 | esac | |
1364 | else | |
1365 | enable_static=yes | |
6be7c12c AO |
1366 | fi |
1367 | ||
b2ef150d ILT |
1368 | # Check whether --enable-fast-install or --disable-fast-install was given. |
1369 | if test "${enable_fast_install+set}" = set; then | |
1370 | enableval="$enable_fast_install" | |
1371 | p=${PACKAGE-default} | |
55c80943 | 1372 | case $enableval in |
b2ef150d ILT |
1373 | yes) enable_fast_install=yes ;; |
1374 | no) enable_fast_install=no ;; | |
1375 | *) | |
1376 | enable_fast_install=no | |
1377 | # Look at the argument we got. We use all the common list separators. | |
1378 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1379 | for pkg in $enableval; do | |
1380 | if test "X$pkg" = "X$p"; then | |
1381 | enable_fast_install=yes | |
1382 | fi | |
1383 | done | |
1384 | IFS="$ac_save_ifs" | |
1385 | ;; | |
1386 | esac | |
1387 | else | |
1388 | enable_fast_install=yes | |
6be7c12c | 1389 | fi |
8d88c4ca | 1390 | |
252b5132 RH |
1391 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1392 | if test "${with_gnu_ld+set}" = set; then | |
1393 | withval="$with_gnu_ld" | |
1394 | test "$withval" = no || with_gnu_ld=yes | |
1395 | else | |
1396 | with_gnu_ld=no | |
6be7c12c AO |
1397 | fi |
1398 | ||
252b5132 | 1399 | ac_prog=ld |
55c80943 | 1400 | if test "$GCC" = yes; then |
252b5132 | 1401 | # Check if gcc -print-prog-name=ld gives a path. |
6be7c12c | 1402 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
39691762 | 1403 | echo "configure:1404: checking for ld used by GCC" >&5 |
ac48eca1 AO |
1404 | case $host in |
1405 | *-*-mingw*) | |
1406 | # gcc leaves a trailing carriage return which upsets mingw | |
1407 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1408 | *) | |
1409 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1410 | esac | |
55c80943 | 1411 | case $ac_prog in |
b2ef150d | 1412 | # Accept absolute paths. |
a74801ba | 1413 | [\\/]* | [A-Za-z]:[\\/]*) |
b2ef150d ILT |
1414 | re_direlt='/[^/][^/]*/\.\./' |
1415 | # Canonicalize the path of ld | |
1416 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1417 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1418 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1419 | done | |
1420 | test -z "$LD" && LD="$ac_prog" | |
1421 | ;; | |
252b5132 RH |
1422 | "") |
1423 | # If it fails, then pretend we aren't using GCC. | |
1424 | ac_prog=ld | |
1425 | ;; | |
1426 | *) | |
1427 | # If it is relative, then search for the first ld in PATH. | |
1428 | with_gnu_ld=unknown | |
1429 | ;; | |
1430 | esac | |
1431 | elif test "$with_gnu_ld" = yes; then | |
6be7c12c | 1432 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
39691762 | 1433 | echo "configure:1434: checking for GNU ld" >&5 |
252b5132 | 1434 | else |
6be7c12c | 1435 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
39691762 | 1436 | echo "configure:1437: checking for non-GNU ld" >&5 |
252b5132 | 1437 | fi |
6be7c12c AO |
1438 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
1439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
1440 | else |
1441 | if test -z "$LD"; then | |
a74801ba | 1442 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
1443 | for ac_dir in $PATH; do |
1444 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 1445 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
55c80943 | 1446 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
1447 | # Check to see if the program is GNU ld. I'd rather use --version, |
1448 | # but apparently some GNU ld's only accept -v. | |
1449 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
55c80943 | 1450 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
1451 | test "$with_gnu_ld" != no && break |
1452 | else | |
b2ef150d | 1453 | test "$with_gnu_ld" != yes && break |
252b5132 RH |
1454 | fi |
1455 | fi | |
1456 | done | |
1457 | IFS="$ac_save_ifs" | |
1458 | else | |
55c80943 | 1459 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
1460 | fi |
1461 | fi | |
1462 | ||
55c80943 | 1463 | LD="$lt_cv_path_LD" |
252b5132 | 1464 | if test -n "$LD"; then |
6be7c12c | 1465 | echo "$ac_t""$LD" 1>&6 |
252b5132 | 1466 | else |
6be7c12c | 1467 | echo "$ac_t""no" 1>&6 |
252b5132 | 1468 | fi |
6be7c12c AO |
1469 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
1470 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
39691762 | 1471 | echo "configure:1472: checking if the linker ($LD) is GNU ld" >&5 |
6be7c12c AO |
1472 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
1473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
1474 | else |
1475 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1476 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
55c80943 | 1477 | lt_cv_prog_gnu_ld=yes |
252b5132 | 1478 | else |
55c80943 | 1479 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
1480 | fi |
1481 | fi | |
6be7c12c AO |
1482 | |
1483 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 | |
55c80943 | 1484 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 | 1485 | |
6be7c12c AO |
1486 | |
1487 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | |
39691762 | 1488 | echo "configure:1489: checking for $LD option to reload object files" >&5 |
6be7c12c AO |
1489 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ac48eca1 AO |
1491 | else |
1492 | lt_cv_ld_reload_flag='-r' | |
1493 | fi | |
6be7c12c AO |
1494 | |
1495 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | |
ac48eca1 AO |
1496 | reload_flag=$lt_cv_ld_reload_flag |
1497 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
1498 | ||
6be7c12c | 1499 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
39691762 | 1500 | echo "configure:1501: checking for BSD-compatible nm" >&5 |
6be7c12c AO |
1501 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
1502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
1503 | else |
1504 | if test -n "$NM"; then | |
1505 | # Let the user override the test. | |
55c80943 | 1506 | lt_cv_path_NM="$NM" |
252b5132 | 1507 | else |
a74801ba | 1508 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2ef150d | 1509 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
252b5132 | 1510 | test -z "$ac_dir" && ac_dir=. |
ac48eca1 AO |
1511 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
1512 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
1513 | # Check to see if the nm accepts a BSD-compat flag. |
1514 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1515 | # nm: unknown option "B" ignored | |
90f2472a AO |
1516 | # Tru64's nm complains that /dev/null is an invalid object file |
1517 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
55c80943 | 1518 | lt_cv_path_NM="$tmp_nm -B" |
b2ef150d | 1519 | break |
ac48eca1 | 1520 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
55c80943 | 1521 | lt_cv_path_NM="$tmp_nm -p" |
b2ef150d | 1522 | break |
252b5132 | 1523 | else |
55c80943 | 1524 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2ef150d | 1525 | continue # so that we can try to find one that supports BSD flags |
252b5132 | 1526 | fi |
252b5132 RH |
1527 | fi |
1528 | done | |
1529 | IFS="$ac_save_ifs" | |
55c80943 | 1530 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
1531 | fi |
1532 | fi | |
1533 | ||
55c80943 | 1534 | NM="$lt_cv_path_NM" |
6be7c12c | 1535 | echo "$ac_t""$NM" 1>&6 |
252b5132 | 1536 | |
6be7c12c | 1537 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
39691762 | 1538 | echo "configure:1539: checking whether ln -s works" >&5 |
6be7c12c AO |
1539 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1541 | else | |
1542 | rm -f conftestdata | |
1543 | if ln -s X conftestdata 2>/dev/null | |
1544 | then | |
1545 | rm -f conftestdata | |
1546 | ac_cv_prog_LN_S="ln -s" | |
252b5132 | 1547 | else |
6be7c12c AO |
1548 | ac_cv_prog_LN_S=ln |
1549 | fi | |
1550 | fi | |
1551 | LN_S="$ac_cv_prog_LN_S" | |
1552 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1553 | echo "$ac_t""yes" 1>&6 | |
1554 | else | |
1555 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
1556 | fi |
1557 | ||
6be7c12c | 1558 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
39691762 | 1559 | echo "configure:1560: checking how to recognise dependant libraries" >&5 |
6be7c12c AO |
1560 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ac48eca1 | 1562 | else |
d64552c5 | 1563 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
1564 | lt_cv_file_magic_test_file= |
1565 | lt_cv_deplibs_check_method='unknown' | |
1566 | # Need to set the preceding variable on all platforms that support | |
1567 | # interlibrary dependencies. | |
1568 | # 'none' -- dependencies not supported. | |
1569 | # `unknown' -- same as none, but documents that we really don't know. | |
1570 | # 'pass_all' -- all dependencies passed with no checks. | |
1571 | # 'test_compile' -- check by making test program. | |
1572 | # 'file_magic [regex]' -- check by looking for files in library path | |
1573 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1574 | # If you have `file' or equivalent on your system and you're not sure | |
1575 | # whether `pass_all' will *always* work, you probably want this one. | |
1576 | ||
55c80943 NC |
1577 | case $host_os in |
1578 | aix*) | |
ac48eca1 AO |
1579 | lt_cv_deplibs_check_method=pass_all |
1580 | ;; | |
1581 | ||
1582 | beos*) | |
1583 | lt_cv_deplibs_check_method=pass_all | |
1584 | ;; | |
1585 | ||
1586 | bsdi4*) | |
55c80943 NC |
1587 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
1588 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
1589 | lt_cv_file_magic_test_file=/shlib/libc.so |
1590 | ;; | |
1591 | ||
d64552c5 | 1592 | cygwin* | mingw* |pw32*) |
ac48eca1 | 1593 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 1594 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
1595 | ;; |
1596 | ||
55c80943 NC |
1597 | darwin* | rhapsody*) |
1598 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
b3baf5d0 NC |
1599 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
1600 | case "$host_os" in | |
1601 | rhapsody* | darwin1.012) | |
1602 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
1603 | ;; | |
1604 | *) # Darwin 1.3 on | |
1605 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
1606 | ;; | |
1607 | esac | |
55c80943 NC |
1608 | ;; |
1609 | ||
ac48eca1 AO |
1610 | freebsd* ) |
1611 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
55c80943 | 1612 | case $host_cpu in |
ac48eca1 | 1613 | i*86 ) |
90f2472a AO |
1614 | # Not sure whether the presence of OpenBSD here was a mistake. |
1615 | # Let's accept both of them until this is cleared up. | |
55c80943 NC |
1616 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
1617 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
1618 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
1619 | ;; | |
1620 | esac | |
1621 | else | |
1622 | lt_cv_deplibs_check_method=pass_all | |
1623 | fi | |
1624 | ;; | |
1625 | ||
1626 | gnu*) | |
1627 | lt_cv_deplibs_check_method=pass_all | |
1628 | ;; | |
1629 | ||
55c80943 NC |
1630 | hpux10.20*|hpux11*) |
1631 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
ac48eca1 AO |
1632 | lt_cv_file_magic_cmd=/usr/bin/file |
1633 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
1634 | ;; | |
1635 | ||
1636 | irix5* | irix6*) | |
55c80943 | 1637 | case $host_os in |
ac48eca1 AO |
1638 | irix5*) |
1639 | # this will be overridden with pass_all, but let us keep it just in case | |
1640 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
1641 | ;; | |
1642 | *) | |
55c80943 | 1643 | case $LD in |
ac48eca1 AO |
1644 | *-32|*"-32 ") libmagic=32-bit;; |
1645 | *-n32|*"-n32 ") libmagic=N32;; | |
1646 | *-64|*"-64 ") libmagic=64-bit;; | |
1647 | *) libmagic=never-match;; | |
1648 | esac | |
1649 | # this will be overridden with pass_all, but let us keep it just in case | |
55c80943 NC |
1650 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
1651 | ;; | |
ac48eca1 AO |
1652 | esac |
1653 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
1654 | lt_cv_deplibs_check_method=pass_all | |
1655 | ;; | |
1656 | ||
1657 | # This must be Linux ELF. | |
90f2472a | 1658 | linux-gnu*) |
55c80943 | 1659 | case $host_cpu in |
6be7c12c | 1660 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
1661 | lt_cv_deplibs_check_method=pass_all ;; |
1662 | *) | |
1663 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
55c80943 NC |
1664 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
1665 | esac | |
ac48eca1 AO |
1666 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
1667 | ;; | |
1668 | ||
1669 | netbsd*) | |
55c80943 | 1670 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
b3baf5d0 | 1671 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
ac48eca1 | 1672 | else |
b3baf5d0 | 1673 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 | 1674 | fi |
55c80943 NC |
1675 | ;; |
1676 | ||
1677 | newsos6) | |
1678 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
1679 | lt_cv_file_magic_cmd=/usr/bin/file | |
1680 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
ac48eca1 AO |
1681 | ;; |
1682 | ||
1683 | osf3* | osf4* | osf5*) | |
1684 | # this will be overridden with pass_all, but let us keep it just in case | |
1685 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
1686 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1687 | lt_cv_deplibs_check_method=pass_all | |
1688 | ;; | |
1689 | ||
1690 | sco3.2v5*) | |
1691 | lt_cv_deplibs_check_method=pass_all | |
1692 | ;; | |
1693 | ||
1694 | solaris*) | |
1695 | lt_cv_deplibs_check_method=pass_all | |
1696 | lt_cv_file_magic_test_file=/lib/libc.so | |
1697 | ;; | |
1698 | ||
6be7c12c AO |
1699 | sysv5uw[78]* | sysv4*uw2*) |
1700 | lt_cv_deplibs_check_method=pass_all | |
1701 | ;; | |
1702 | ||
ac48eca1 | 1703 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
55c80943 | 1704 | case $host_vendor in |
ac48eca1 AO |
1705 | ncr) |
1706 | lt_cv_deplibs_check_method=pass_all | |
1707 | ;; | |
1708 | motorola) | |
55c80943 NC |
1709 | 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]' |
1710 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
1711 | ;; |
1712 | esac | |
1713 | ;; | |
1714 | esac | |
1715 | ||
1716 | fi | |
6be7c12c AO |
1717 | |
1718 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
ac48eca1 AO |
1719 | file_magic_cmd=$lt_cv_file_magic_cmd |
1720 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1721 | ||
6be7c12c | 1722 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 |
39691762 | 1723 | echo "configure:1724: checking for object suffix" >&5 |
6be7c12c AO |
1724 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
1725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1726 | else | |
1727 | rm -f conftest* | |
1728 | echo 'int i = 1;' > conftest.$ac_ext | |
39691762 | 1729 | if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c AO |
1730 | for ac_file in conftest.*; do |
1731 | case $ac_file in | |
1732 | *.c) ;; | |
1733 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
1734 | esac | |
1735 | done | |
1736 | else | |
1737 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
1738 | fi | |
1739 | rm -f conftest* | |
1740 | fi | |
ac48eca1 | 1741 | |
6be7c12c AO |
1742 | echo "$ac_t""$ac_cv_objext" 1>&6 |
1743 | OBJEXT=$ac_cv_objext | |
1744 | ac_objext=$ac_cv_objext | |
1745 | ||
1746 | ||
1747 | ||
1748 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
39691762 | 1749 | echo "configure:1750: checking for executable suffix" >&5 |
6be7c12c AO |
1750 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ac48eca1 | 1752 | else |
6be7c12c AO |
1753 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
1754 | ac_cv_exeext=.exe | |
1755 | else | |
1756 | rm -f conftest* | |
1757 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1758 | ac_cv_exeext= | |
39691762 | 1759 | if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
6be7c12c AO |
1760 | for file in conftest.*; do |
1761 | case $file in | |
39691762 | 1762 | *.c | *.o | *.obj) ;; |
6be7c12c AO |
1763 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1764 | esac | |
1765 | done | |
1766 | else | |
1767 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1768 | fi | |
1769 | rm -f conftest* | |
1770 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1771 | fi | |
1772 | fi | |
1773 | ||
1774 | EXEEXT="" | |
1775 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1776 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1777 | ac_exeext=$EXEEXT | |
1778 | ||
1779 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
1780 | ||
1781 | # Only perform the check for file, if the check method requires it | |
1782 | case $deplibs_check_method in | |
1783 | file_magic*) | |
1784 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
1785 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | |
39691762 | 1786 | echo "configure:1787: checking for ${ac_tool_prefix}file" >&5 |
6be7c12c AO |
1787 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
1788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1789 | else | |
1790 | case $MAGIC_CMD in | |
1791 | /*) | |
1792 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
1793 | ;; | |
1794 | ?:/*) | |
1795 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
1796 | ;; | |
1797 | *) | |
d64552c5 | 1798 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
1799 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1800 | ac_dummy="/usr/bin:$PATH" | |
1801 | for ac_dir in $ac_dummy; do | |
1802 | test -z "$ac_dir" && ac_dir=. | |
1803 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 1804 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 1805 | if test -n "$file_magic_test_file"; then |
55c80943 | 1806 | case $deplibs_check_method in |
ac48eca1 AO |
1807 | "file_magic "*) |
1808 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 1809 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
1810 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1811 | egrep "$file_magic_regex" > /dev/null; then | |
1812 | : | |
1813 | else | |
1814 | cat <<EOF 1>&2 | |
1815 | ||
1816 | *** Warning: the command libtool uses to detect shared libraries, | |
1817 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1818 | *** The result is that libtool may fail to recognize shared libraries | |
1819 | *** as such. This will affect the creation of libtool libraries that | |
1820 | *** depend on shared libraries, but programs linked with such libtool | |
1821 | *** libraries will work regardless of this problem. Nevertheless, you | |
1822 | *** may want to report the problem to your system manager and/or to | |
1823 | *** bug-libtool@gnu.org | |
1824 | ||
1825 | EOF | |
1826 | fi ;; | |
1827 | esac | |
1828 | fi | |
1829 | break | |
1830 | fi | |
1831 | done | |
1832 | IFS="$ac_save_ifs" | |
d64552c5 | 1833 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
1834 | ;; |
1835 | esac | |
1836 | fi | |
1837 | ||
d64552c5 AO |
1838 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1839 | if test -n "$MAGIC_CMD"; then | |
6be7c12c | 1840 | echo "$ac_t""$MAGIC_CMD" 1>&6 |
ac48eca1 | 1841 | else |
6be7c12c | 1842 | echo "$ac_t""no" 1>&6 |
ac48eca1 AO |
1843 | fi |
1844 | ||
d64552c5 | 1845 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 1846 | if test -n "$ac_tool_prefix"; then |
6be7c12c | 1847 | echo $ac_n "checking for file""... $ac_c" 1>&6 |
39691762 | 1848 | echo "configure:1849: checking for file" >&5 |
6be7c12c AO |
1849 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
1850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ac48eca1 | 1851 | else |
55c80943 | 1852 | case $MAGIC_CMD in |
ac48eca1 | 1853 | /*) |
d64552c5 | 1854 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
1855 | ;; |
1856 | ?:/*) | |
d64552c5 | 1857 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
1858 | ;; |
1859 | *) | |
d64552c5 | 1860 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
1861 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1862 | ac_dummy="/usr/bin:$PATH" | |
1863 | for ac_dir in $ac_dummy; do | |
1864 | test -z "$ac_dir" && ac_dir=. | |
1865 | if test -f $ac_dir/file; then | |
d64552c5 | 1866 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 1867 | if test -n "$file_magic_test_file"; then |
55c80943 | 1868 | case $deplibs_check_method in |
ac48eca1 AO |
1869 | "file_magic "*) |
1870 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 1871 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
1872 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1873 | egrep "$file_magic_regex" > /dev/null; then | |
1874 | : | |
1875 | else | |
1876 | cat <<EOF 1>&2 | |
1877 | ||
1878 | *** Warning: the command libtool uses to detect shared libraries, | |
1879 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1880 | *** The result is that libtool may fail to recognize shared libraries | |
1881 | *** as such. This will affect the creation of libtool libraries that | |
1882 | *** depend on shared libraries, but programs linked with such libtool | |
1883 | *** libraries will work regardless of this problem. Nevertheless, you | |
1884 | *** may want to report the problem to your system manager and/or to | |
1885 | *** bug-libtool@gnu.org | |
1886 | ||
1887 | EOF | |
1888 | fi ;; | |
1889 | esac | |
1890 | fi | |
1891 | break | |
1892 | fi | |
1893 | done | |
1894 | IFS="$ac_save_ifs" | |
d64552c5 | 1895 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
1896 | ;; |
1897 | esac | |
1898 | fi | |
1899 | ||
d64552c5 AO |
1900 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1901 | if test -n "$MAGIC_CMD"; then | |
6be7c12c | 1902 | echo "$ac_t""$MAGIC_CMD" 1>&6 |
ac48eca1 | 1903 | else |
6be7c12c | 1904 | echo "$ac_t""no" 1>&6 |
ac48eca1 AO |
1905 | fi |
1906 | ||
1907 | else | |
d64552c5 | 1908 | MAGIC_CMD=: |
ac48eca1 AO |
1909 | fi |
1910 | fi | |
1911 | ||
1912 | fi | |
1913 | ;; | |
1914 | esac | |
1915 | ||
6be7c12c | 1916 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
ac48eca1 | 1917 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6be7c12c | 1918 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
39691762 | 1919 | echo "configure:1920: checking for $ac_word" >&5 |
6be7c12c AO |
1920 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ac48eca1 AO |
1922 | else |
1923 | if test -n "$RANLIB"; then | |
1924 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1925 | else | |
6be7c12c AO |
1926 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1927 | ac_dummy="$PATH" | |
1928 | for ac_dir in $ac_dummy; do | |
1929 | test -z "$ac_dir" && ac_dir=. | |
1930 | if test -f $ac_dir/$ac_word; then | |
1931 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1932 | break | |
1933 | fi | |
1934 | done | |
1935 | IFS="$ac_save_ifs" | |
ac48eca1 AO |
1936 | fi |
1937 | fi | |
6be7c12c | 1938 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 | 1939 | if test -n "$RANLIB"; then |
6be7c12c | 1940 | echo "$ac_t""$RANLIB" 1>&6 |
ac48eca1 | 1941 | else |
6be7c12c | 1942 | echo "$ac_t""no" 1>&6 |
ac48eca1 AO |
1943 | fi |
1944 | ||
6be7c12c | 1945 | |
ac48eca1 | 1946 | if test -z "$ac_cv_prog_RANLIB"; then |
6be7c12c | 1947 | if test -n "$ac_tool_prefix"; then |
ac48eca1 AO |
1948 | # Extract the first word of "ranlib", so it can be a program name with args. |
1949 | set dummy ranlib; ac_word=$2 | |
6be7c12c | 1950 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
39691762 | 1951 | echo "configure:1952: checking for $ac_word" >&5 |
6be7c12c AO |
1952 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1954 | else | |
1955 | if test -n "$RANLIB"; then | |
1956 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1957 | else | |
1958 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1959 | ac_dummy="$PATH" | |
1960 | for ac_dir in $ac_dummy; do | |
1961 | test -z "$ac_dir" && ac_dir=. | |
1962 | if test -f $ac_dir/$ac_word; then | |
1963 | ac_cv_prog_RANLIB="ranlib" | |
1964 | break | |
1965 | fi | |
1966 | done | |
1967 | IFS="$ac_save_ifs" | |
1968 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
ac48eca1 AO |
1969 | fi |
1970 | fi | |
6be7c12c AO |
1971 | RANLIB="$ac_cv_prog_RANLIB" |
1972 | if test -n "$RANLIB"; then | |
1973 | echo "$ac_t""$RANLIB" 1>&6 | |
ac48eca1 | 1974 | else |
6be7c12c | 1975 | echo "$ac_t""no" 1>&6 |
ac48eca1 AO |
1976 | fi |
1977 | ||
1978 | else | |
6be7c12c AO |
1979 | RANLIB=":" |
1980 | fi | |
ac48eca1 AO |
1981 | fi |
1982 | ||
6be7c12c | 1983 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
ac48eca1 | 1984 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6be7c12c | 1985 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
39691762 | 1986 | echo "configure:1987: checking for $ac_word" >&5 |
6be7c12c AO |
1987 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
1988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ac48eca1 AO |
1989 | else |
1990 | if test -n "$STRIP"; then | |
1991 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1992 | else | |
6be7c12c AO |
1993 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1994 | ac_dummy="$PATH" | |
1995 | for ac_dir in $ac_dummy; do | |
1996 | test -z "$ac_dir" && ac_dir=. | |
1997 | if test -f $ac_dir/$ac_word; then | |
1998 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1999 | break | |
2000 | fi | |
2001 | done | |
2002 | IFS="$ac_save_ifs" | |
ac48eca1 AO |
2003 | fi |
2004 | fi | |
6be7c12c | 2005 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 | 2006 | if test -n "$STRIP"; then |
6be7c12c | 2007 | echo "$ac_t""$STRIP" 1>&6 |
ac48eca1 | 2008 | else |
6be7c12c | 2009 | echo "$ac_t""no" 1>&6 |
ac48eca1 AO |
2010 | fi |
2011 | ||
6be7c12c | 2012 | |
ac48eca1 | 2013 | if test -z "$ac_cv_prog_STRIP"; then |
6be7c12c | 2014 | if test -n "$ac_tool_prefix"; then |
ac48eca1 AO |
2015 | # Extract the first word of "strip", so it can be a program name with args. |
2016 | set dummy strip; ac_word=$2 | |
6be7c12c | 2017 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
39691762 | 2018 | echo "configure:2019: checking for $ac_word" >&5 |
6be7c12c AO |
2019 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2021 | else | |
2022 | if test -n "$STRIP"; then | |
2023 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2024 | else | |
2025 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2026 | ac_dummy="$PATH" | |
2027 | for ac_dir in $ac_dummy; do | |
2028 | test -z "$ac_dir" && ac_dir=. | |
2029 | if test -f $ac_dir/$ac_word; then | |
2030 | ac_cv_prog_STRIP="strip" | |
2031 | break | |
2032 | fi | |
2033 | done | |
2034 | IFS="$ac_save_ifs" | |
2035 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
ac48eca1 AO |
2036 | fi |
2037 | fi | |
6be7c12c AO |
2038 | STRIP="$ac_cv_prog_STRIP" |
2039 | if test -n "$STRIP"; then | |
2040 | echo "$ac_t""$STRIP" 1>&6 | |
ac48eca1 | 2041 | else |
6be7c12c | 2042 | echo "$ac_t""no" 1>&6 |
ac48eca1 AO |
2043 | fi |
2044 | ||
2045 | else | |
6be7c12c AO |
2046 | STRIP=":" |
2047 | fi | |
ac48eca1 | 2048 | fi |
252b5132 | 2049 | |
6be7c12c | 2050 | |
252b5132 | 2051 | # Check for any special flags to pass to ltconfig. |
b2ef150d | 2052 | libtool_flags="--cache-file=$cache_file" |
252b5132 RH |
2053 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
2054 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
b2ef150d | 2055 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
55c80943 NC |
2056 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
2057 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 2058 | |
6be7c12c | 2059 | |
a74801ba ILT |
2060 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
2061 | if test "${enable_libtool_lock+set}" = set; then | |
2062 | enableval="$enable_libtool_lock" | |
6be7c12c AO |
2063 | : |
2064 | fi | |
a74801ba ILT |
2065 | |
2066 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2067 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2068 | ||
ac48eca1 AO |
2069 | # Check whether --with-pic or --without-pic was given. |
2070 | if test "${with_pic+set}" = set; then | |
2071 | withval="$with_pic" | |
2072 | pic_mode="$withval" | |
2073 | else | |
2074 | pic_mode=default | |
6be7c12c AO |
2075 | fi |
2076 | ||
ac48eca1 AO |
2077 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
2078 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2079 | ||
252b5132 RH |
2080 | # Some flags need to be propagated to the compiler or linker for good |
2081 | # libtool support. | |
55c80943 | 2082 | case $host in |
252b5132 RH |
2083 | *-*-irix6*) |
2084 | # Find out which ABI we are using. | |
39691762 L |
2085 | echo '#line 2086 "configure"' > conftest.$ac_ext |
2086 | if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
55c80943 | 2087 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
2088 | *32-bit*) |
2089 | LD="${LD-ld} -32" | |
2090 | ;; | |
2091 | *N32*) | |
2092 | LD="${LD-ld} -n32" | |
2093 | ;; | |
2094 | *64-bit*) | |
2095 | LD="${LD-ld} -64" | |
2096 | ;; | |
2097 | esac | |
2098 | fi | |
2099 | rm -rf conftest* | |
2100 | ;; | |
2101 | ||
2102 | *-*-sco3.2v5*) | |
2103 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
b2ef150d | 2104 | SAVE_CFLAGS="$CFLAGS" |
252b5132 | 2105 | CFLAGS="$CFLAGS -belf" |
6be7c12c | 2106 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
39691762 | 2107 | echo "configure:2108: checking whether the C compiler needs -belf" >&5 |
6be7c12c AO |
2108 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
2109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b2ef150d | 2110 | else |
6be7c12c | 2111 | |
ac48eca1 | 2112 | ac_ext=c |
6be7c12c | 2113 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
ac48eca1 | 2114 | ac_cpp='$CPP $CPPFLAGS' |
6be7c12c AO |
2115 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2116 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2117 | cross_compiling=$ac_cv_prog_cc_cross | |
ac48eca1 | 2118 | |
6be7c12c | 2119 | cat > conftest.$ac_ext <<EOF |
39691762 | 2120 | #line 2121 "configure" |
b2ef150d ILT |
2121 | #include "confdefs.h" |
2122 | ||
6be7c12c | 2123 | int main() { |
b2ef150d | 2124 | |
6be7c12c AO |
2125 | ; return 0; } |
2126 | EOF | |
39691762 | 2127 | if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c | 2128 | rm -rf conftest* |
b2ef150d ILT |
2129 | lt_cv_cc_needs_belf=yes |
2130 | else | |
6be7c12c AO |
2131 | echo "configure: failed program was:" >&5 |
2132 | cat conftest.$ac_ext >&5 | |
2133 | rm -rf conftest* | |
2134 | lt_cv_cc_needs_belf=no | |
b2ef150d | 2135 | fi |
6be7c12c | 2136 | rm -f conftest* |
ac48eca1 | 2137 | ac_ext=c |
6be7c12c | 2138 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
ac48eca1 | 2139 | ac_cpp='$CPP $CPPFLAGS' |
6be7c12c AO |
2140 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2141 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2142 | cross_compiling=$ac_cv_prog_cc_cross | |
ac48eca1 | 2143 | |
b2ef150d | 2144 | fi |
6be7c12c AO |
2145 | |
2146 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
b2ef150d ILT |
2147 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
2148 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2149 | CFLAGS="$SAVE_CFLAGS" | |
2150 | fi | |
252b5132 RH |
2151 | ;; |
2152 | ||
6be7c12c | 2153 | |
252b5132 RH |
2154 | esac |
2155 | ||
6be7c12c | 2156 | |
b2ef150d | 2157 | # Save cache, so that ltconfig can load it |
6be7c12c | 2158 | cat > confcache <<\EOF |
b2ef150d ILT |
2159 | # This file is a shell script that caches the results of configure |
2160 | # tests run on this system so they can be shared between configure | |
6be7c12c AO |
2161 | # scripts and configure runs. It is not useful on other systems. |
2162 | # If it contains results you don't want to keep, you may remove or edit it. | |
b2ef150d | 2163 | # |
6be7c12c AO |
2164 | # By default, configure uses ./config.cache as the cache file, |
2165 | # creating it if it does not exist already. You can give configure | |
2166 | # the --cache-file=FILE option to use a different cache file; that is | |
2167 | # what configure does when it calls configure scripts in | |
2168 | # subdirectories, so they share the cache. | |
2169 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2170 | # config.status only pays attention to the cache file if you give it the | |
2171 | # --recheck option to rerun configure. | |
b2ef150d | 2172 | # |
6be7c12c | 2173 | EOF |
b2ef150d ILT |
2174 | # The following way of writing the cache mishandles newlines in values, |
2175 | # but we know of no workaround that is simple, portable, and efficient. | |
2176 | # So, don't put newlines in cache variables' values. | |
2177 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2178 | # and sets the high bit in the cache file unless we assign to the vars. | |
6be7c12c AO |
2179 | (set) 2>&1 | |
2180 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2181 | *ac_space=\ *) | |
2182 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2183 | # turns \\\\ into \\, and sed turns \\ into \). | |
2184 | sed -n \ | |
2185 | -e "s/'/'\\\\''/g" \ | |
2186 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2187 | ;; | |
2188 | *) | |
2189 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2190 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2191 | ;; | |
2192 | esac >> confcache | |
2193 | if cmp -s $cache_file confcache; then | |
2194 | : | |
2195 | else | |
b2ef150d | 2196 | if test -w $cache_file; then |
6be7c12c AO |
2197 | echo "updating cache $cache_file" |
2198 | cat confcache > $cache_file | |
b2ef150d ILT |
2199 | else |
2200 | echo "not updating unwritable cache $cache_file" | |
2201 | fi | |
2202 | fi | |
2203 | rm -f confcache | |
2204 | ||
6be7c12c | 2205 | |
252b5132 | 2206 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 2207 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 2208 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
2209 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2210 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2211 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2212 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 2213 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 2214 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
6be7c12c | 2215 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
252b5132 | 2216 | |
b2ef150d ILT |
2217 | # Reload cache, that may have been modified by ltconfig |
2218 | if test -r "$cache_file"; then | |
6be7c12c AO |
2219 | echo "loading cache $cache_file" |
2220 | . $cache_file | |
b2ef150d | 2221 | else |
6be7c12c AO |
2222 | echo "creating cache $cache_file" |
2223 | > $cache_file | |
b2ef150d ILT |
2224 | fi |
2225 | ||
6be7c12c | 2226 | |
b2ef150d | 2227 | # This can be used to rebuild libtool when needed |
ac48eca1 | 2228 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2ef150d ILT |
2229 | |
2230 | # Always use our own libtool. | |
2231 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2232 | ||
252b5132 RH |
2233 | # Redirect the config.log output again, so that the ltconfig log is not |
2234 | # clobbered by the next message. | |
2235 | exec 5>>./config.log | |
2236 | ||
6be7c12c AO |
2237 | |
2238 | ||
2239 | ||
2240 | ||
2241 | ||
2242 | ||
252b5132 RH |
2243 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
2244 | if test "${enable_64_bit_bfd+set}" = set; then | |
2245 | enableval="$enable_64_bit_bfd" | |
2246 | case "${enableval}" in | |
2247 | yes) want64=true ;; | |
2248 | no) want64=false ;; | |
6be7c12c | 2249 | *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; |
252b5132 RH |
2250 | esac |
2251 | else | |
2252 | want64=false | |
6be7c12c AO |
2253 | fi |
2254 | # Check whether --enable-targets or --disable-targets was given. | |
252b5132 RH |
2255 | if test "${enable_targets+set}" = set; then |
2256 | enableval="$enable_targets" | |
2257 | case "${enableval}" in | |
6be7c12c | 2258 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } |
252b5132 RH |
2259 | ;; |
2260 | no) enable_targets= ;; | |
2261 | *) enable_targets=$enableval ;; | |
2262 | esac | |
6be7c12c AO |
2263 | fi |
2264 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | |
252b5132 RH |
2265 | if test "${enable_commonbfdlib+set}" = set; then |
2266 | enableval="$enable_commonbfdlib" | |
2267 | case "${enableval}" in | |
2268 | yes) commonbfdlib=true ;; | |
2269 | no) commonbfdlib=false ;; | |
6be7c12c | 2270 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; |
252b5132 | 2271 | esac |
6be7c12c | 2272 | fi |
252b5132 RH |
2273 | # Check whether --with-mmap or --without-mmap was given. |
2274 | if test "${with_mmap+set}" = set; then | |
2275 | withval="$with_mmap" | |
2276 | case "${withval}" in | |
2277 | yes) want_mmap=true ;; | |
2278 | no) want_mmap=false ;; | |
6be7c12c | 2279 | *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; |
252b5132 RH |
2280 | esac |
2281 | else | |
2282 | want_mmap=false | |
6be7c12c AO |
2283 | fi |
2284 | ||
0218d1e4 | 2285 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
a2d91340 AC |
2286 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
2287 | if test "${enable_build_warnings+set}" = set; then | |
2288 | enableval="$enable_build_warnings" | |
2289 | case "${enableval}" in | |
2290 | yes) ;; | |
2291 | no) build_warnings="-w";; | |
2292 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2293 | build_warnings="${build_warnings} ${t}";; | |
2294 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2295 | build_warnings="${t} ${build_warnings}";; | |
2296 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
2297 | esac | |
2298 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
2299 | echo "Setting warning flags = $build_warnings" 6>&1 | |
2300 | fi | |
6be7c12c AO |
2301 | fi |
2302 | WARN_CFLAGS="" | |
a2d91340 AC |
2303 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then |
2304 | WARN_CFLAGS="${build_warnings}" | |
2305 | fi | |
2306 | ||
2307 | ||
6be7c12c AO |
2308 | |
2309 | ||
2310 | ||
252b5132 RH |
2311 | |
2312 | if test -z "$target" ; then | |
6be7c12c | 2313 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } |
252b5132 | 2314 | fi |
252b5132 | 2315 | |
6be7c12c | 2316 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
39691762 | 2317 | echo "configure:2318: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
252b5132 RH |
2318 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
2319 | if test "${enable_maintainer_mode+set}" = set; then | |
2320 | enableval="$enable_maintainer_mode" | |
2321 | USE_MAINTAINER_MODE=$enableval | |
2322 | else | |
2323 | USE_MAINTAINER_MODE=no | |
6be7c12c AO |
2324 | fi |
2325 | ||
2326 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
2327 | ||
252b5132 RH |
2328 | |
2329 | if test $USE_MAINTAINER_MODE = yes; then | |
2330 | MAINTAINER_MODE_TRUE= | |
2331 | MAINTAINER_MODE_FALSE='#' | |
2332 | else | |
2333 | MAINTAINER_MODE_TRUE='#' | |
2334 | MAINTAINER_MODE_FALSE= | |
2335 | fi | |
2336 | MAINT=$MAINTAINER_MODE_TRUE | |
6be7c12c | 2337 | |
252b5132 | 2338 | |
252b5132 RH |
2339 | |
2340 | ||
6be7c12c | 2341 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
39691762 | 2342 | echo "configure:2343: checking for executable suffix" >&5 |
6be7c12c AO |
2343 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
2344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 2345 | else |
6be7c12c AO |
2346 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
2347 | ac_cv_exeext=.exe | |
252b5132 | 2348 | else |
6be7c12c AO |
2349 | rm -f conftest* |
2350 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
2351 | ac_cv_exeext= | |
39691762 | 2352 | if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
6be7c12c AO |
2353 | for file in conftest.*; do |
2354 | case $file in | |
39691762 | 2355 | *.c | *.o | *.obj) ;; |
6be7c12c AO |
2356 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
2357 | esac | |
2358 | done | |
2359 | else | |
2360 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
2361 | fi | |
2362 | rm -f conftest* | |
2363 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
252b5132 | 2364 | fi |
b3baf5d0 | 2365 | fi |
252b5132 | 2366 | |
6be7c12c AO |
2367 | EXEEXT="" |
2368 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
2369 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
2370 | ac_exeext=$EXEEXT | |
252b5132 | 2371 | |
252b5132 | 2372 | |
6be7c12c AO |
2373 | host64=false |
2374 | target64=false | |
69263e90 | 2375 | bfd_default_target_size=32 |
252b5132 | 2376 | |
6be7c12c AO |
2377 | # host stuff: |
2378 | ||
2379 | # Extract the first word of "gcc", so it can be a program name with args. | |
2380 | set dummy gcc; ac_word=$2 | |
2381 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
39691762 | 2382 | echo "configure:2383: checking for $ac_word" >&5 |
6be7c12c AO |
2383 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
2384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
2385 | else |
2386 | if test -n "$CC"; then | |
2387 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2388 | else | |
6be7c12c AO |
2389 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2390 | ac_dummy="$PATH" | |
2391 | for ac_dir in $ac_dummy; do | |
2392 | test -z "$ac_dir" && ac_dir=. | |
2393 | if test -f $ac_dir/$ac_word; then | |
2394 | ac_cv_prog_CC="gcc" | |
2395 | break | |
2396 | fi | |
2397 | done | |
2398 | IFS="$ac_save_ifs" | |
252b5132 RH |
2399 | fi |
2400 | fi | |
6be7c12c | 2401 | CC="$ac_cv_prog_CC" |
252b5132 | 2402 | if test -n "$CC"; then |
6be7c12c | 2403 | echo "$ac_t""$CC" 1>&6 |
b3baf5d0 | 2404 | else |
6be7c12c | 2405 | echo "$ac_t""no" 1>&6 |
b3baf5d0 NC |
2406 | fi |
2407 | ||
252b5132 RH |
2408 | if test -z "$CC"; then |
2409 | # Extract the first word of "cc", so it can be a program name with args. | |
2410 | set dummy cc; ac_word=$2 | |
6be7c12c | 2411 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
39691762 | 2412 | echo "configure:2413: checking for $ac_word" >&5 |
6be7c12c AO |
2413 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
2414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
2415 | else |
2416 | if test -n "$CC"; then | |
2417 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2418 | else | |
6be7c12c | 2419 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
252b5132 | 2420 | ac_prog_rejected=no |
6be7c12c AO |
2421 | ac_dummy="$PATH" |
2422 | for ac_dir in $ac_dummy; do | |
2423 | test -z "$ac_dir" && ac_dir=. | |
2424 | if test -f $ac_dir/$ac_word; then | |
2425 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2426 | ac_prog_rejected=yes | |
2427 | continue | |
2428 | fi | |
2429 | ac_cv_prog_CC="cc" | |
2430 | break | |
2431 | fi | |
2432 | done | |
2433 | IFS="$ac_save_ifs" | |
252b5132 RH |
2434 | if test $ac_prog_rejected = yes; then |
2435 | # We found a bogon in the path, so make sure we never use it. | |
2436 | set dummy $ac_cv_prog_CC | |
2437 | shift | |
6be7c12c | 2438 | if test $# -gt 0; then |
252b5132 RH |
2439 | # We chose a different compiler from the bogus one. |
2440 | # However, it has the same basename, so the bogon will be chosen | |
2441 | # first if we set CC to just the basename; use the full file name. | |
2442 | shift | |
6be7c12c | 2443 | set dummy "$ac_dir/$ac_word" "$@" |
252b5132 RH |
2444 | shift |
2445 | ac_cv_prog_CC="$@" | |
2446 | fi | |
2447 | fi | |
2448 | fi | |
2449 | fi | |
6be7c12c | 2450 | CC="$ac_cv_prog_CC" |
252b5132 | 2451 | if test -n "$CC"; then |
6be7c12c | 2452 | echo "$ac_t""$CC" 1>&6 |
252b5132 | 2453 | else |
6be7c12c | 2454 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
2455 | fi |
2456 | ||
6be7c12c AO |
2457 | if test -z "$CC"; then |
2458 | case "`uname -s`" in | |
2459 | *win32* | *WIN32*) | |
2460 | # Extract the first word of "cl", so it can be a program name with args. | |
2461 | set dummy cl; ac_word=$2 | |
2462 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
39691762 | 2463 | echo "configure:2464: checking for $ac_word" >&5 |
6be7c12c AO |
2464 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
2465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
2466 | else |
2467 | if test -n "$CC"; then | |
2468 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2469 | else | |
6be7c12c AO |
2470 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2471 | ac_dummy="$PATH" | |
2472 | for ac_dir in $ac_dummy; do | |
2473 | test -z "$ac_dir" && ac_dir=. | |
2474 | if test -f $ac_dir/$ac_word; then | |
2475 | ac_cv_prog_CC="cl" | |
2476 | break | |
2477 | fi | |
2478 | done | |
2479 | IFS="$ac_save_ifs" | |
252b5132 RH |
2480 | fi |
2481 | fi | |
6be7c12c | 2482 | CC="$ac_cv_prog_CC" |
252b5132 | 2483 | if test -n "$CC"; then |
6be7c12c | 2484 | echo "$ac_t""$CC" 1>&6 |
252b5132 | 2485 | else |
6be7c12c | 2486 | echo "$ac_t""no" 1>&6 |
252b5132 | 2487 | fi |
6be7c12c AO |
2488 | ;; |
2489 | esac | |
2490 | fi | |
2491 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
b3baf5d0 | 2492 | fi |
252b5132 | 2493 | |
6be7c12c | 2494 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
39691762 | 2495 | echo "configure:2496: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
252b5132 | 2496 | |
6be7c12c AO |
2497 | ac_ext=c |
2498 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2499 | ac_cpp='$CPP $CPPFLAGS' | |
2500 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2501 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2502 | cross_compiling=$ac_cv_prog_cc_cross | |
252b5132 | 2503 | |
6be7c12c | 2504 | cat > conftest.$ac_ext << EOF |
252b5132 | 2505 | |
39691762 | 2506 | #line 2507 "configure" |
6be7c12c AO |
2507 | #include "confdefs.h" |
2508 | ||
2509 | main(){return(0);} | |
2510 | EOF | |
39691762 | 2511 | if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
2512 | ac_cv_prog_cc_works=yes |
2513 | # If we can't run a trivial program, we are probably using a cross compiler. | |
2514 | if (./conftest; exit) 2>/dev/null; then | |
2515 | ac_cv_prog_cc_cross=no | |
2516 | else | |
2517 | ac_cv_prog_cc_cross=yes | |
2518 | fi | |
2519 | else | |
2520 | echo "configure: failed program was:" >&5 | |
2521 | cat conftest.$ac_ext >&5 | |
2522 | ac_cv_prog_cc_works=no | |
252b5132 | 2523 | fi |
6be7c12c AO |
2524 | rm -fr conftest* |
2525 | ac_ext=c | |
2526 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2527 | ac_cpp='$CPP $CPPFLAGS' | |
2528 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2529 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2530 | cross_compiling=$ac_cv_prog_cc_cross | |
252b5132 | 2531 | |
6be7c12c AO |
2532 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
2533 | if test $ac_cv_prog_cc_works = no; then | |
2534 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2535 | fi | |
2536 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
39691762 | 2537 | echo "configure:2538: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
6be7c12c AO |
2538 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
2539 | cross_compiling=$ac_cv_prog_cc_cross | |
b3baf5d0 | 2540 | |
6be7c12c | 2541 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
39691762 | 2542 | echo "configure:2543: checking whether we are using GNU C" >&5 |
6be7c12c AO |
2543 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
2544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 2545 | else |
6be7c12c AO |
2546 | cat > conftest.c <<EOF |
2547 | #ifdef __GNUC__ | |
2548 | yes; | |
252b5132 | 2549 | #endif |
6be7c12c | 2550 | EOF |
39691762 | 2551 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
6be7c12c AO |
2552 | ac_cv_prog_gcc=yes |
2553 | else | |
2554 | ac_cv_prog_gcc=no | |
2555 | fi | |
2556 | fi | |
252b5132 | 2557 | |
6be7c12c | 2558 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
252b5132 | 2559 | |
6be7c12c AO |
2560 | if test $ac_cv_prog_gcc = yes; then |
2561 | GCC=yes | |
2562 | else | |
2563 | GCC= | |
2564 | fi | |
252b5132 | 2565 | |
6be7c12c AO |
2566 | ac_test_CFLAGS="${CFLAGS+set}" |
2567 | ac_save_CFLAGS="$CFLAGS" | |
2568 | CFLAGS= | |
2569 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
39691762 | 2570 | echo "configure:2571: checking whether ${CC-cc} accepts -g" >&5 |
6be7c12c AO |
2571 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
2572 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2573 | else | |
2574 | echo 'void f(){}' > conftest.c | |
2575 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
252b5132 RH |
2576 | ac_cv_prog_cc_g=yes |
2577 | else | |
6be7c12c | 2578 | ac_cv_prog_cc_g=no |
252b5132 | 2579 | fi |
6be7c12c AO |
2580 | rm -f conftest* |
2581 | ||
252b5132 | 2582 | fi |
6be7c12c AO |
2583 | |
2584 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
252b5132 | 2585 | if test "$ac_test_CFLAGS" = set; then |
6be7c12c | 2586 | CFLAGS="$ac_save_CFLAGS" |
252b5132 RH |
2587 | elif test $ac_cv_prog_cc_g = yes; then |
2588 | if test "$GCC" = yes; then | |
2589 | CFLAGS="-g -O2" | |
2590 | else | |
2591 | CFLAGS="-g" | |
2592 | fi | |
2593 | else | |
2594 | if test "$GCC" = yes; then | |
2595 | CFLAGS="-O2" | |
2596 | else | |
2597 | CFLAGS= | |
2598 | fi | |
2599 | fi | |
2600 | ||
2601 | ||
2299ff43 | 2602 | ALL_LINGUAS="fr tr" |
6be7c12c | 2603 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
39691762 | 2604 | echo "configure:2605: checking how to run the C preprocessor" >&5 |
252b5132 RH |
2605 | # On Suns, sometimes $CPP names a directory. |
2606 | if test -n "$CPP" && test -d "$CPP"; then | |
2607 | CPP= | |
2608 | fi | |
2609 | if test -z "$CPP"; then | |
6be7c12c AO |
2610 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
2611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2612 | else | |
2613 | # This must be in double quotes, not single quotes, because CPP may get | |
2614 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2615 | CPP="${CC-cc} -E" | |
2616 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2617 | # not just through cpp. | |
2618 | cat > conftest.$ac_ext <<EOF | |
39691762 | 2619 | #line 2620 "configure" |
252b5132 RH |
2620 | #include "confdefs.h" |
2621 | #include <assert.h> | |
6be7c12c AO |
2622 | Syntax Error |
2623 | EOF | |
2624 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
39691762 | 2625 | { (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
2626 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2627 | if test -z "$ac_err"; then | |
2628 | : | |
252b5132 | 2629 | else |
6be7c12c AO |
2630 | echo "$ac_err" >&5 |
2631 | echo "configure: failed program was:" >&5 | |
2632 | cat conftest.$ac_ext >&5 | |
2633 | rm -rf conftest* | |
2634 | CPP="${CC-cc} -E -traditional-cpp" | |
2635 | cat > conftest.$ac_ext <<EOF | |
39691762 | 2636 | #line 2637 "configure" |
252b5132 | 2637 | #include "confdefs.h" |
6be7c12c AO |
2638 | #include <assert.h> |
2639 | Syntax Error | |
2640 | EOF | |
2641 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
39691762 | 2642 | { (eval echo configure:2643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
2643 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2644 | if test -z "$ac_err"; then | |
2645 | : | |
252b5132 | 2646 | else |
6be7c12c AO |
2647 | echo "$ac_err" >&5 |
2648 | echo "configure: failed program was:" >&5 | |
252b5132 | 2649 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
2650 | rm -rf conftest* |
2651 | CPP="${CC-cc} -nologo -E" | |
2652 | cat > conftest.$ac_ext <<EOF | |
39691762 | 2653 | #line 2654 "configure" |
6be7c12c AO |
2654 | #include "confdefs.h" |
2655 | #include <assert.h> | |
2656 | Syntax Error | |
2657 | EOF | |
2658 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
39691762 | 2659 | { (eval echo configure:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
2660 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2661 | if test -z "$ac_err"; then | |
2662 | : | |
b3baf5d0 | 2663 | else |
6be7c12c AO |
2664 | echo "$ac_err" >&5 |
2665 | echo "configure: failed program was:" >&5 | |
b3baf5d0 | 2666 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
2667 | rm -rf conftest* |
2668 | CPP=/lib/cpp | |
252b5132 | 2669 | fi |
6be7c12c | 2670 | rm -f conftest* |
252b5132 | 2671 | fi |
6be7c12c | 2672 | rm -f conftest* |
252b5132 | 2673 | fi |
6be7c12c AO |
2674 | rm -f conftest* |
2675 | ac_cv_prog_CPP="$CPP" | |
2676 | fi | |
2677 | CPP="$ac_cv_prog_CPP" | |
ac48eca1 | 2678 | else |
6be7c12c | 2679 | ac_cv_prog_CPP="$CPP" |
b3baf5d0 | 2680 | fi |
6be7c12c AO |
2681 | echo "$ac_t""$CPP" 1>&6 |
2682 | ||
2683 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2684 | set dummy ranlib; ac_word=$2 | |
2685 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
39691762 | 2686 | echo "configure:2687: checking for $ac_word" >&5 |
6be7c12c AO |
2687 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ac48eca1 | 2689 | else |
6be7c12c AO |
2690 | if test -n "$RANLIB"; then |
2691 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2692 | else | |
2693 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2694 | ac_dummy="$PATH" | |
2695 | for ac_dir in $ac_dummy; do | |
2696 | test -z "$ac_dir" && ac_dir=. | |
2697 | if test -f $ac_dir/$ac_word; then | |
2698 | ac_cv_prog_RANLIB="ranlib" | |
2699 | break | |
ac48eca1 | 2700 | fi |
6be7c12c AO |
2701 | done |
2702 | IFS="$ac_save_ifs" | |
2703 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
ac48eca1 AO |
2704 | fi |
2705 | fi | |
6be7c12c AO |
2706 | RANLIB="$ac_cv_prog_RANLIB" |
2707 | if test -n "$RANLIB"; then | |
2708 | echo "$ac_t""$RANLIB" 1>&6 | |
ac48eca1 | 2709 | else |
6be7c12c | 2710 | echo "$ac_t""no" 1>&6 |
b3baf5d0 | 2711 | fi |
ac48eca1 | 2712 | |
6be7c12c | 2713 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
39691762 | 2714 | echo "configure:2715: checking for ANSI C header files" >&5 |
6be7c12c AO |
2715 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 2717 | else |
6be7c12c | 2718 | cat > conftest.$ac_ext <<EOF |
39691762 | 2719 | #line 2720 "configure" |
252b5132 RH |
2720 | #include "confdefs.h" |
2721 | #include <stdlib.h> | |
2722 | #include <stdarg.h> | |
2723 | #include <string.h> | |
2724 | #include <float.h> | |
6be7c12c AO |
2725 | EOF |
2726 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
39691762 | 2727 | { (eval echo configure:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
2728 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2729 | if test -z "$ac_err"; then | |
2730 | rm -rf conftest* | |
252b5132 RH |
2731 | ac_cv_header_stdc=yes |
2732 | else | |
6be7c12c AO |
2733 | echo "$ac_err" >&5 |
2734 | echo "configure: failed program was:" >&5 | |
252b5132 | 2735 | cat conftest.$ac_ext >&5 |
6be7c12c | 2736 | rm -rf conftest* |
252b5132 RH |
2737 | ac_cv_header_stdc=no |
2738 | fi | |
6be7c12c | 2739 | rm -f conftest* |
252b5132 RH |
2740 | |
2741 | if test $ac_cv_header_stdc = yes; then | |
2742 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6be7c12c | 2743 | cat > conftest.$ac_ext <<EOF |
39691762 | 2744 | #line 2745 "configure" |
252b5132 RH |
2745 | #include "confdefs.h" |
2746 | #include <string.h> | |
6be7c12c | 2747 | EOF |
252b5132 RH |
2748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2749 | egrep "memchr" >/dev/null 2>&1; then | |
2750 | : | |
2751 | else | |
6be7c12c | 2752 | rm -rf conftest* |
252b5132 RH |
2753 | ac_cv_header_stdc=no |
2754 | fi | |
2755 | rm -f conftest* | |
2756 | ||
2757 | fi | |
2758 | ||
2759 | if test $ac_cv_header_stdc = yes; then | |
2760 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6be7c12c | 2761 | cat > conftest.$ac_ext <<EOF |
39691762 | 2762 | #line 2763 "configure" |
252b5132 RH |
2763 | #include "confdefs.h" |
2764 | #include <stdlib.h> | |
6be7c12c | 2765 | EOF |
252b5132 RH |
2766 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2767 | egrep "free" >/dev/null 2>&1; then | |
2768 | : | |
2769 | else | |
6be7c12c | 2770 | rm -rf conftest* |
252b5132 RH |
2771 | ac_cv_header_stdc=no |
2772 | fi | |
2773 | rm -f conftest* | |
2774 | ||
2775 | fi | |
2776 | ||
2777 | if test $ac_cv_header_stdc = yes; then | |
2778 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6be7c12c | 2779 | if test "$cross_compiling" = yes; then |
252b5132 RH |
2780 | : |
2781 | else | |
6be7c12c | 2782 | cat > conftest.$ac_ext <<EOF |
39691762 | 2783 | #line 2784 "configure" |
252b5132 RH |
2784 | #include "confdefs.h" |
2785 | #include <ctype.h> | |
6be7c12c AO |
2786 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2787 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
b3baf5d0 | 2788 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6be7c12c AO |
2789 | int main () { int i; for (i = 0; i < 256; i++) |
2790 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2791 | exit (0); } | |
2792 | ||
2793 | EOF | |
39691762 | 2794 | if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6be7c12c | 2795 | then |
252b5132 RH |
2796 | : |
2797 | else | |
6be7c12c AO |
2798 | echo "configure: failed program was:" >&5 |
2799 | cat conftest.$ac_ext >&5 | |
2800 | rm -fr conftest* | |
2801 | ac_cv_header_stdc=no | |
252b5132 | 2802 | fi |
6be7c12c | 2803 | rm -fr conftest* |
252b5132 | 2804 | fi |
6be7c12c | 2805 | |
252b5132 RH |
2806 | fi |
2807 | fi | |
b3baf5d0 | 2808 | |
6be7c12c AO |
2809 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
2810 | if test $ac_cv_header_stdc = yes; then | |
2811 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
2812 | #define STDC_HEADERS 1 |
2813 | EOF | |
2814 | ||
2815 | fi | |
2816 | ||
6be7c12c | 2817 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
39691762 | 2818 | echo "configure:2819: checking for working const" >&5 |
6be7c12c AO |
2819 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 2821 | else |
6be7c12c | 2822 | cat > conftest.$ac_ext <<EOF |
39691762 | 2823 | #line 2824 "configure" |
252b5132 | 2824 | #include "confdefs.h" |
6be7c12c AO |
2825 | |
2826 | int main() { | |
2827 | ||
2828 | /* Ultrix mips cc rejects this. */ | |
2829 | typedef int charset[2]; const charset x; | |
2830 | /* SunOS 4.1.1 cc rejects this. */ | |
2831 | char const *const *ccp; | |
2832 | char **p; | |
2833 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
2834 | struct point {int x, y;}; | |
2835 | static struct point const zero = {0,0}; | |
2836 | /* AIX XL C 1.02.0.0 rejects this. | |
2837 | It does not let you subtract one const X* pointer from another in an arm | |
2838 | of an if-expression whose if-part is not a constant expression */ | |
2839 | const char *g = "string"; | |
2840 | ccp = &g + (g ? g-g : 0); | |
2841 | /* HPUX 7.0 cc rejects these. */ | |
2842 | ++ccp; | |
2843 | p = (char**) ccp; | |
2844 | ccp = (char const *const *) p; | |
2845 | { /* SCO 3.2v4 cc rejects this. */ | |
2846 | char *t; | |
2847 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2848 | ||
2849 | *t++ = 0; | |
252b5132 | 2850 | } |
6be7c12c AO |
2851 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
2852 | int x[] = {25, 17}; | |
2853 | const int *foo = &x[0]; | |
2854 | ++foo; | |
252b5132 | 2855 | } |
6be7c12c AO |
2856 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
2857 | typedef const int *iptr; | |
2858 | iptr p = 0; | |
2859 | ++p; | |
252b5132 | 2860 | } |
6be7c12c AO |
2861 | { /* AIX XL C 1.02.0.0 rejects this saying |
2862 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2863 | struct s { int j; const int *ap[3]; }; | |
2864 | struct s *b; b->j = 5; | |
b3baf5d0 | 2865 | } |
6be7c12c AO |
2866 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
2867 | const int foo = 10; | |
2868 | } | |
2869 | ||
2870 | ; return 0; } | |
2871 | EOF | |
39691762 | 2872 | if { (eval echo configure:2873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 2873 | rm -rf conftest* |
252b5132 RH |
2874 | ac_cv_c_const=yes |
2875 | else | |
6be7c12c AO |
2876 | echo "configure: failed program was:" >&5 |
2877 | cat conftest.$ac_ext >&5 | |
2878 | rm -rf conftest* | |
2879 | ac_cv_c_const=no | |
252b5132 | 2880 | fi |
6be7c12c | 2881 | rm -f conftest* |
252b5132 | 2882 | fi |
b3baf5d0 | 2883 | |
6be7c12c AO |
2884 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
2885 | if test $ac_cv_c_const = no; then | |
2886 | cat >> confdefs.h <<\EOF | |
2887 | #define const | |
252b5132 RH |
2888 | EOF |
2889 | ||
2890 | fi | |
2891 | ||
6be7c12c | 2892 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
39691762 | 2893 | echo "configure:2894: checking for inline" >&5 |
6be7c12c AO |
2894 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
2895 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
2896 | else |
2897 | ac_cv_c_inline=no | |
2898 | for ac_kw in inline __inline__ __inline; do | |
6be7c12c | 2899 | cat > conftest.$ac_ext <<EOF |
39691762 | 2900 | #line 2901 "configure" |
252b5132 RH |
2901 | #include "confdefs.h" |
2902 | ||
6be7c12c AO |
2903 | int main() { |
2904 | } $ac_kw foo() { | |
2905 | ; return 0; } | |
2906 | EOF | |
39691762 | 2907 | if { (eval echo configure:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 2908 | rm -rf conftest* |
252b5132 RH |
2909 | ac_cv_c_inline=$ac_kw; break |
2910 | else | |
6be7c12c AO |
2911 | echo "configure: failed program was:" >&5 |
2912 | cat conftest.$ac_ext >&5 | |
252b5132 | 2913 | fi |
6be7c12c | 2914 | rm -f conftest* |
252b5132 RH |
2915 | done |
2916 | ||
2917 | fi | |
6be7c12c AO |
2918 | |
2919 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
2920 | case "$ac_cv_c_inline" in | |
252b5132 | 2921 | inline | yes) ;; |
6be7c12c AO |
2922 | no) cat >> confdefs.h <<\EOF |
2923 | #define inline | |
252b5132 RH |
2924 | EOF |
2925 | ;; | |
6be7c12c | 2926 | *) cat >> confdefs.h <<EOF |
252b5132 RH |
2927 | #define inline $ac_cv_c_inline |
2928 | EOF | |
2929 | ;; | |
2930 | esac | |
2931 | ||
6be7c12c | 2932 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
39691762 | 2933 | echo "configure:2934: checking for off_t" >&5 |
6be7c12c AO |
2934 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
2935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3baf5d0 | 2936 | else |
6be7c12c | 2937 | cat > conftest.$ac_ext <<EOF |
39691762 | 2938 | #line 2939 "configure" |
b3baf5d0 | 2939 | #include "confdefs.h" |
6be7c12c AO |
2940 | #include <sys/types.h> |
2941 | #if STDC_HEADERS | |
2942 | #include <stdlib.h> | |
2943 | #include <stddef.h> | |
2944 | #endif | |
2945 | EOF | |
2946 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2947 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2948 | rm -rf conftest* | |
653f71ca | 2949 | ac_cv_type_off_t=yes |
252b5132 | 2950 | else |
6be7c12c AO |
2951 | rm -rf conftest* |
2952 | ac_cv_type_off_t=no | |
252b5132 | 2953 | fi |
6be7c12c | 2954 | rm -f conftest* |
b3baf5d0 | 2955 | |
6be7c12c AO |
2956 | fi |
2957 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
2958 | if test $ac_cv_type_off_t = no; then | |
2959 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
2960 | #define off_t long |
2961 | EOF | |
2962 | ||
2963 | fi | |
2964 | ||
6be7c12c | 2965 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
39691762 | 2966 | echo "configure:2967: checking for size_t" >&5 |
6be7c12c AO |
2967 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
2968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 2969 | else |
6be7c12c | 2970 | cat > conftest.$ac_ext <<EOF |
39691762 | 2971 | #line 2972 "configure" |
252b5132 | 2972 | #include "confdefs.h" |
6be7c12c AO |
2973 | #include <sys/types.h> |
2974 | #if STDC_HEADERS | |
2975 | #include <stdlib.h> | |
2976 | #include <stddef.h> | |
2977 | #endif | |
2978 | EOF | |
2979 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2980 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2981 | rm -rf conftest* | |
653f71ca | 2982 | ac_cv_type_size_t=yes |
252b5132 | 2983 | else |
6be7c12c AO |
2984 | rm -rf conftest* |
2985 | ac_cv_type_size_t=no | |
252b5132 | 2986 | fi |
6be7c12c | 2987 | rm -f conftest* |
b3baf5d0 | 2988 | |
6be7c12c AO |
2989 | fi |
2990 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
2991 | if test $ac_cv_type_size_t = no; then | |
2992 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
2993 | #define size_t unsigned |
2994 | EOF | |
2995 | ||
2996 | fi | |
2997 | ||
2998 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2999 | # for constant arguments. Useless! | |
6be7c12c | 3000 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
39691762 | 3001 | echo "configure:3002: checking for working alloca.h" >&5 |
6be7c12c AO |
3002 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
3003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 3004 | else |
6be7c12c | 3005 | cat > conftest.$ac_ext <<EOF |
39691762 | 3006 | #line 3007 "configure" |
252b5132 RH |
3007 | #include "confdefs.h" |
3008 | #include <alloca.h> | |
6be7c12c AO |
3009 | int main() { |
3010 | char *p = alloca(2 * sizeof(int)); | |
3011 | ; return 0; } | |
3012 | EOF | |
39691762 | 3013 | if { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
3014 | rm -rf conftest* |
3015 | ac_cv_header_alloca_h=yes | |
3016 | else | |
3017 | echo "configure: failed program was:" >&5 | |
3018 | cat conftest.$ac_ext >&5 | |
3019 | rm -rf conftest* | |
3020 | ac_cv_header_alloca_h=no | |
3021 | fi | |
3022 | rm -f conftest* | |
3023 | fi | |
3024 | ||
3025 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
3026 | if test $ac_cv_header_alloca_h = yes; then | |
3027 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
3028 | #define HAVE_ALLOCA_H 1 |
3029 | EOF | |
3030 | ||
3031 | fi | |
3032 | ||
6be7c12c | 3033 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
39691762 | 3034 | echo "configure:3035: checking for alloca" >&5 |
6be7c12c AO |
3035 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
3036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 3037 | else |
6be7c12c | 3038 | cat > conftest.$ac_ext <<EOF |
39691762 | 3039 | #line 3040 "configure" |
252b5132 | 3040 | #include "confdefs.h" |
6be7c12c | 3041 | |
252b5132 RH |
3042 | #ifdef __GNUC__ |
3043 | # define alloca __builtin_alloca | |
3044 | #else | |
3045 | # ifdef _MSC_VER | |
3046 | # include <malloc.h> | |
3047 | # define alloca _alloca | |
3048 | # else | |
3049 | # if HAVE_ALLOCA_H | |
3050 | # include <alloca.h> | |
3051 | # else | |
3052 | # ifdef _AIX | |
3053 | #pragma alloca | |
3054 | # else | |
3055 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3056 | char *alloca (); | |
3057 | # endif | |
3058 | # endif | |
3059 | # endif | |
3060 | # endif | |
3061 | #endif | |
3062 | ||
6be7c12c AO |
3063 | int main() { |
3064 | char *p = (char *) alloca(1); | |
3065 | ; return 0; } | |
3066 | EOF | |
39691762 | 3067 | if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c | 3068 | rm -rf conftest* |
252b5132 RH |
3069 | ac_cv_func_alloca_works=yes |
3070 | else | |
6be7c12c AO |
3071 | echo "configure: failed program was:" >&5 |
3072 | cat conftest.$ac_ext >&5 | |
3073 | rm -rf conftest* | |
3074 | ac_cv_func_alloca_works=no | |
252b5132 | 3075 | fi |
6be7c12c | 3076 | rm -f conftest* |
252b5132 RH |
3077 | fi |
3078 | ||
6be7c12c | 3079 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
252b5132 | 3080 | if test $ac_cv_func_alloca_works = yes; then |
6be7c12c | 3081 | cat >> confdefs.h <<\EOF |
252b5132 RH |
3082 | #define HAVE_ALLOCA 1 |
3083 | EOF | |
3084 | ||
6be7c12c | 3085 | fi |
b3baf5d0 | 3086 | |
6be7c12c AO |
3087 | if test $ac_cv_func_alloca_works = no; then |
3088 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3089 | # that cause trouble. Some versions do not even contain alloca or | |
3090 | # contain a buggy version. If you still want to use their alloca, | |
3091 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3092 | ALLOCA=alloca.${ac_objext} | |
3093 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
3094 | #define C_ALLOCA 1 |
3095 | EOF | |
3096 | ||
6be7c12c AO |
3097 | |
3098 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
39691762 | 3099 | echo "configure:3100: checking whether alloca needs Cray hooks" >&5 |
6be7c12c AO |
3100 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
3101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 3102 | else |
6be7c12c | 3103 | cat > conftest.$ac_ext <<EOF |
39691762 | 3104 | #line 3105 "configure" |
252b5132 RH |
3105 | #include "confdefs.h" |
3106 | #if defined(CRAY) && ! defined(CRAY2) | |
3107 | webecray | |
3108 | #else | |
3109 | wenotbecray | |
3110 | #endif | |
3111 | ||
6be7c12c | 3112 | EOF |
252b5132 RH |
3113 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3114 | egrep "webecray" >/dev/null 2>&1; then | |
6be7c12c | 3115 | rm -rf conftest* |
252b5132 RH |
3116 | ac_cv_os_cray=yes |
3117 | else | |
6be7c12c | 3118 | rm -rf conftest* |
252b5132 RH |
3119 | ac_cv_os_cray=no |
3120 | fi | |
3121 | rm -f conftest* | |
3122 | ||
3123 | fi | |
6be7c12c AO |
3124 | |
3125 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
252b5132 | 3126 | if test $ac_cv_os_cray = yes; then |
6be7c12c AO |
3127 | for ac_func in _getb67 GETB67 getb67; do |
3128 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
39691762 | 3129 | echo "configure:3130: checking for $ac_func" >&5 |
6be7c12c AO |
3130 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3132 | else | |
3133 | cat > conftest.$ac_ext <<EOF | |
39691762 | 3134 | #line 3135 "configure" |
252b5132 RH |
3135 | #include "confdefs.h" |
3136 | /* System header to define __stub macros and hopefully few prototypes, | |
6be7c12c | 3137 | which can conflict with char $ac_func(); below. */ |
252b5132 RH |
3138 | #include <assert.h> |
3139 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3140 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
3141 | builtin and then its argument prototype would still apply. */ |
3142 | char $ac_func(); | |
3143 | ||
3144 | int main() { | |
252b5132 RH |
3145 | |
3146 | /* The GNU C library defines this for functions which it implements | |
3147 | to always fail with ENOSYS. Some functions are actually named | |
3148 | something starting with __ and the normal name is an alias. */ | |
3149 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3150 | choke me | |
3151 | #else | |
6be7c12c | 3152 | $ac_func(); |
252b5132 RH |
3153 | #endif |
3154 | ||
6be7c12c AO |
3155 | ; return 0; } |
3156 | EOF | |
39691762 | 3157 | if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
3158 | rm -rf conftest* |
3159 | eval "ac_cv_func_$ac_func=yes" | |
3160 | else | |
3161 | echo "configure: failed program was:" >&5 | |
3162 | cat conftest.$ac_ext >&5 | |
3163 | rm -rf conftest* | |
3164 | eval "ac_cv_func_$ac_func=no" | |
3165 | fi | |
3166 | rm -f conftest* | |
3167 | fi | |
3168 | ||
3169 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3170 | echo "$ac_t""yes" 1>&6 | |
3171 | cat >> confdefs.h <<EOF | |
252b5132 RH |
3172 | #define CRAY_STACKSEG_END $ac_func |
3173 | EOF | |
3174 | ||
6be7c12c AO |
3175 | break |
3176 | else | |
3177 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
3178 | fi |
3179 | ||
6be7c12c | 3180 | done |
252b5132 RH |
3181 | fi |
3182 | ||
6be7c12c | 3183 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
39691762 | 3184 | echo "configure:3185: checking stack direction for C alloca" >&5 |
6be7c12c AO |
3185 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
3186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
3187 | else |
3188 | if test "$cross_compiling" = yes; then | |
3189 | ac_cv_c_stack_direction=0 | |
3190 | else | |
6be7c12c | 3191 | cat > conftest.$ac_ext <<EOF |
39691762 | 3192 | #line 3193 "configure" |
252b5132 RH |
3193 | #include "confdefs.h" |
3194 | find_stack_direction () | |
3195 | { | |
3196 | static char *addr = 0; | |
3197 | auto char dummy; | |
3198 | if (addr == 0) | |
3199 | { | |
3200 | addr = &dummy; | |
3201 | return find_stack_direction (); | |
3202 | } | |
3203 | else | |
3204 | return (&dummy > addr) ? 1 : -1; | |
3205 | } | |
3206 | main () | |
3207 | { | |
6be7c12c | 3208 | exit (find_stack_direction() < 0); |
252b5132 | 3209 | } |
6be7c12c | 3210 | EOF |
39691762 | 3211 | if { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6be7c12c | 3212 | then |
252b5132 RH |
3213 | ac_cv_c_stack_direction=1 |
3214 | else | |
6be7c12c AO |
3215 | echo "configure: failed program was:" >&5 |
3216 | cat conftest.$ac_ext >&5 | |
3217 | rm -fr conftest* | |
3218 | ac_cv_c_stack_direction=-1 | |
252b5132 | 3219 | fi |
6be7c12c | 3220 | rm -fr conftest* |
252b5132 | 3221 | fi |
6be7c12c | 3222 | |
252b5132 RH |
3223 | fi |
3224 | ||
6be7c12c AO |
3225 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
3226 | cat >> confdefs.h <<EOF | |
252b5132 RH |
3227 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
3228 | EOF | |
3229 | ||
3230 | fi | |
3231 | ||
2858ef35 | 3232 | for ac_hdr in unistd.h |
252b5132 | 3233 | do |
6be7c12c AO |
3234 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3235 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
39691762 | 3236 | echo "configure:3237: checking for $ac_hdr" >&5 |
6be7c12c AO |
3237 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3238 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3239 | else | |
3240 | cat > conftest.$ac_ext <<EOF | |
39691762 | 3241 | #line 3242 "configure" |
252b5132 | 3242 | #include "confdefs.h" |
6be7c12c AO |
3243 | #include <$ac_hdr> |
3244 | EOF | |
3245 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
39691762 | 3246 | { (eval echo configure:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
3247 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3248 | if test -z "$ac_err"; then | |
3249 | rm -rf conftest* | |
3250 | eval "ac_cv_header_$ac_safe=yes" | |
252b5132 | 3251 | else |
6be7c12c AO |
3252 | echo "$ac_err" >&5 |
3253 | echo "configure: failed program was:" >&5 | |
252b5132 | 3254 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
3255 | rm -rf conftest* |
3256 | eval "ac_cv_header_$ac_safe=no" | |
252b5132 | 3257 | fi |
6be7c12c | 3258 | rm -f conftest* |
252b5132 | 3259 | fi |
6be7c12c AO |
3260 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3261 | echo "$ac_t""yes" 1>&6 | |
3262 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3263 | cat >> confdefs.h <<EOF | |
3264 | #define $ac_tr_hdr 1 | |
252b5132 | 3265 | EOF |
6be7c12c AO |
3266 | |
3267 | else | |
3268 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
3269 | fi |
3270 | done | |
3271 | ||
3272 | for ac_func in getpagesize | |
3273 | do | |
6be7c12c | 3274 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
39691762 | 3275 | echo "configure:3276: checking for $ac_func" >&5 |
6be7c12c AO |
3276 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3278 | else | |
3279 | cat > conftest.$ac_ext <<EOF | |
39691762 | 3280 | #line 3281 "configure" |
252b5132 RH |
3281 | #include "confdefs.h" |
3282 | /* System header to define __stub macros and hopefully few prototypes, | |
6be7c12c | 3283 | which can conflict with char $ac_func(); below. */ |
252b5132 RH |
3284 | #include <assert.h> |
3285 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3286 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
3287 | builtin and then its argument prototype would still apply. */ |
3288 | char $ac_func(); | |
3289 | ||
3290 | int main() { | |
252b5132 RH |
3291 | |
3292 | /* The GNU C library defines this for functions which it implements | |
3293 | to always fail with ENOSYS. Some functions are actually named | |
3294 | something starting with __ and the normal name is an alias. */ | |
3295 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3296 | choke me | |
3297 | #else | |
6be7c12c | 3298 | $ac_func(); |
252b5132 RH |
3299 | #endif |
3300 | ||
6be7c12c | 3301 | ; return 0; } |
252b5132 | 3302 | EOF |
39691762 | 3303 | if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
3304 | rm -rf conftest* |
3305 | eval "ac_cv_func_$ac_func=yes" | |
3306 | else | |
3307 | echo "configure: failed program was:" >&5 | |
3308 | cat conftest.$ac_ext >&5 | |
3309 | rm -rf conftest* | |
3310 | eval "ac_cv_func_$ac_func=no" | |
3311 | fi | |
3312 | rm -f conftest* | |
3313 | fi | |
252b5132 | 3314 | |
6be7c12c AO |
3315 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3316 | echo "$ac_t""yes" 1>&6 | |
3317 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3318 | cat >> confdefs.h <<EOF | |
3319 | #define $ac_tr_func 1 | |
3320 | EOF | |
3321 | ||
3322 | else | |
3323 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
3324 | fi |
3325 | done | |
3326 | ||
6be7c12c | 3327 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
39691762 | 3328 | echo "configure:3329: checking for working mmap" >&5 |
6be7c12c AO |
3329 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
3330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
3331 | else |
3332 | if test "$cross_compiling" = yes; then | |
3333 | ac_cv_func_mmap_fixed_mapped=no | |
3334 | else | |
6be7c12c | 3335 | cat > conftest.$ac_ext <<EOF |
39691762 | 3336 | #line 3337 "configure" |
252b5132 | 3337 | #include "confdefs.h" |
6be7c12c | 3338 | |
252b5132 RH |
3339 | /* Thanks to Mike Haertel and Jim Avera for this test. |
3340 | Here is a matrix of mmap possibilities: | |
3341 | mmap private not fixed | |
3342 | mmap private fixed at somewhere currently unmapped | |
3343 | mmap private fixed at somewhere already mapped | |
3344 | mmap shared not fixed | |
3345 | mmap shared fixed at somewhere currently unmapped | |
3346 | mmap shared fixed at somewhere already mapped | |
3347 | For private mappings, we should verify that changes cannot be read() | |
3348 | back from the file, nor mmap's back from the file at a different | |
3349 | address. (There have been systems where private was not correctly | |
3350 | implemented like the infamous i386 svr4.0, and systems where the | |
6be7c12c | 3351 | VM page cache was not coherent with the filesystem buffer cache |
252b5132 RH |
3352 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
3353 | For shared mappings, we should conversely verify that changes get | |
3354 | propogated back to all the places they're supposed to be. | |
3355 | ||
3356 | Grep wants private fixed already mapped. | |
3357 | The main things grep needs to know about mmap are: | |
3358 | * does it exist and is it safe to write into the mmap'd area | |
3359 | * how to use it (BSD variants) */ | |
3360 | #include <sys/types.h> | |
3361 | #include <fcntl.h> | |
3362 | #include <sys/mman.h> | |
3363 | ||
b3baf5d0 | 3364 | /* This mess was copied from the GNU getpagesize.h. */ |
6be7c12c | 3365 | #ifndef HAVE_GETPAGESIZE |
2858ef35 HPN |
3366 | # ifdef HAVE_UNISTD_H |
3367 | # include <unistd.h> | |
3368 | # endif | |
6be7c12c | 3369 | |
252b5132 | 3370 | /* Assume that all systems that can run configure have sys/param.h. */ |
6be7c12c | 3371 | # ifndef HAVE_SYS_PARAM_H |
252b5132 RH |
3372 | # define HAVE_SYS_PARAM_H 1 |
3373 | # endif | |
3374 | ||
3375 | # ifdef _SC_PAGESIZE | |
3376 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
3377 | # else /* no _SC_PAGESIZE */ | |
6be7c12c | 3378 | # ifdef HAVE_SYS_PARAM_H |
252b5132 RH |
3379 | # include <sys/param.h> |
3380 | # ifdef EXEC_PAGESIZE | |
3381 | # define getpagesize() EXEC_PAGESIZE | |
3382 | # else /* no EXEC_PAGESIZE */ | |
3383 | # ifdef NBPG | |
3384 | # define getpagesize() NBPG * CLSIZE | |
3385 | # ifndef CLSIZE | |
3386 | # define CLSIZE 1 | |
3387 | # endif /* no CLSIZE */ | |
3388 | # else /* no NBPG */ | |
3389 | # ifdef NBPC | |
3390 | # define getpagesize() NBPC | |
3391 | # else /* no NBPC */ | |
3392 | # ifdef PAGESIZE | |
3393 | # define getpagesize() PAGESIZE | |
3394 | # endif /* PAGESIZE */ | |
3395 | # endif /* no NBPC */ | |
3396 | # endif /* no NBPG */ | |
3397 | # endif /* no EXEC_PAGESIZE */ | |
3398 | # else /* no HAVE_SYS_PARAM_H */ | |
3399 | # define getpagesize() 8192 /* punt totally */ | |
3400 | # endif /* no HAVE_SYS_PARAM_H */ | |
3401 | # endif /* no _SC_PAGESIZE */ | |
3402 | ||
3403 | #endif /* no HAVE_GETPAGESIZE */ | |
3404 | ||
6be7c12c AO |
3405 | #ifdef __cplusplus |
3406 | extern "C" { void *malloc(unsigned); } | |
3407 | #else | |
3408 | char *malloc(); | |
3409 | #endif | |
3410 | ||
252b5132 | 3411 | int |
6be7c12c | 3412 | main() |
252b5132 | 3413 | { |
6be7c12c AO |
3414 | char *data, *data2, *data3; |
3415 | int i, pagesize; | |
3416 | int fd; | |
3417 | ||
3418 | pagesize = getpagesize(); | |
3419 | ||
3420 | /* | |
3421 | * First, make a file with some known garbage in it. | |
3422 | */ | |
3423 | data = malloc(pagesize); | |
3424 | if (!data) | |
3425 | exit(1); | |
3426 | for (i = 0; i < pagesize; ++i) | |
3427 | *(data + i) = rand(); | |
3428 | umask(0); | |
3429 | fd = creat("conftestmmap", 0600); | |
3430 | if (fd < 0) | |
3431 | exit(1); | |
3432 | if (write(fd, data, pagesize) != pagesize) | |
3433 | exit(1); | |
3434 | close(fd); | |
3435 | ||
3436 | /* | |
3437 | * Next, try to mmap the file at a fixed address which | |
3438 | * already has something else allocated at it. If we can, | |
3439 | * also make sure that we see the same garbage. | |
3440 | */ | |
3441 | fd = open("conftestmmap", O_RDWR); | |
3442 | if (fd < 0) | |
3443 | exit(1); | |
3444 | data2 = malloc(2 * pagesize); | |
3445 | if (!data2) | |
3446 | exit(1); | |
3447 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
3448 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
3449 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3450 | exit(1); | |
3451 | for (i = 0; i < pagesize; ++i) | |
3452 | if (*(data + i) != *(data2 + i)) | |
3453 | exit(1); | |
3454 | ||
3455 | /* | |
3456 | * Finally, make sure that changes to the mapped area | |
3457 | * do not percolate back to the file as seen by read(). | |
3458 | * (This is a bug on some variants of i386 svr4.0.) | |
3459 | */ | |
3460 | for (i = 0; i < pagesize; ++i) | |
3461 | *(data2 + i) = *(data2 + i) + 1; | |
3462 | data3 = malloc(pagesize); | |
3463 | if (!data3) | |
3464 | exit(1); | |
3465 | if (read(fd, data3, pagesize) != pagesize) | |
3466 | exit(1); | |
3467 | for (i = 0; i < pagesize; ++i) | |
3468 | if (*(data + i) != *(data3 + i)) | |
3469 | exit(1); | |
3470 | close(fd); | |
3471 | unlink("conftestmmap"); | |
3472 | exit(0); | |
252b5132 | 3473 | } |
6be7c12c AO |
3474 | |
3475 | EOF | |
2858ef35 | 3476 | if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6be7c12c | 3477 | then |
252b5132 RH |
3478 | ac_cv_func_mmap_fixed_mapped=yes |
3479 | else | |
6be7c12c AO |
3480 | echo "configure: failed program was:" >&5 |
3481 | cat conftest.$ac_ext >&5 | |
3482 | rm -fr conftest* | |
3483 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 3484 | fi |
6be7c12c | 3485 | rm -fr conftest* |
252b5132 | 3486 | fi |
6be7c12c | 3487 | |
252b5132 | 3488 | fi |
b3baf5d0 | 3489 | |
6be7c12c AO |
3490 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
3491 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
3492 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
3493 | #define HAVE_MMAP 1 |
3494 | EOF | |
3495 | ||
3496 | fi | |
3497 | ||
6be7c12c AO |
3498 | |
3499 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
3500 | unistd.h values.h sys/param.h |
3501 | do | |
6be7c12c AO |
3502 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3503 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2858ef35 | 3504 | echo "configure:3505: checking for $ac_hdr" >&5 |
6be7c12c AO |
3505 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3507 | else | |
3508 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 3509 | #line 3510 "configure" |
252b5132 | 3510 | #include "confdefs.h" |
6be7c12c AO |
3511 | #include <$ac_hdr> |
3512 | EOF | |
3513 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2858ef35 | 3514 | { (eval echo configure:3515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
3515 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3516 | if test -z "$ac_err"; then | |
3517 | rm -rf conftest* | |
3518 | eval "ac_cv_header_$ac_safe=yes" | |
252b5132 | 3519 | else |
6be7c12c AO |
3520 | echo "$ac_err" >&5 |
3521 | echo "configure: failed program was:" >&5 | |
252b5132 | 3522 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
3523 | rm -rf conftest* |
3524 | eval "ac_cv_header_$ac_safe=no" | |
252b5132 | 3525 | fi |
6be7c12c | 3526 | rm -f conftest* |
252b5132 | 3527 | fi |
6be7c12c AO |
3528 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3529 | echo "$ac_t""yes" 1>&6 | |
3530 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3531 | cat >> confdefs.h <<EOF | |
3532 | #define $ac_tr_hdr 1 | |
252b5132 | 3533 | EOF |
6be7c12c AO |
3534 | |
3535 | else | |
3536 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
3537 | fi |
3538 | done | |
3539 | ||
6be7c12c | 3540 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
252b5132 RH |
3541 | __argz_count __argz_stringify __argz_next |
3542 | do | |
6be7c12c | 3543 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2858ef35 | 3544 | echo "configure:3545: checking for $ac_func" >&5 |
6be7c12c AO |
3545 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3547 | else | |
3548 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 3549 | #line 3550 "configure" |
252b5132 RH |
3550 | #include "confdefs.h" |
3551 | /* System header to define __stub macros and hopefully few prototypes, | |
6be7c12c | 3552 | which can conflict with char $ac_func(); below. */ |
252b5132 RH |
3553 | #include <assert.h> |
3554 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3555 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
3556 | builtin and then its argument prototype would still apply. */ |
3557 | char $ac_func(); | |
3558 | ||
3559 | int main() { | |
252b5132 RH |
3560 | |
3561 | /* The GNU C library defines this for functions which it implements | |
3562 | to always fail with ENOSYS. Some functions are actually named | |
3563 | something starting with __ and the normal name is an alias. */ | |
3564 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3565 | choke me | |
3566 | #else | |
6be7c12c | 3567 | $ac_func(); |
252b5132 RH |
3568 | #endif |
3569 | ||
6be7c12c | 3570 | ; return 0; } |
252b5132 | 3571 | EOF |
2858ef35 | 3572 | if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
3573 | rm -rf conftest* |
3574 | eval "ac_cv_func_$ac_func=yes" | |
3575 | else | |
3576 | echo "configure: failed program was:" >&5 | |
3577 | cat conftest.$ac_ext >&5 | |
3578 | rm -rf conftest* | |
3579 | eval "ac_cv_func_$ac_func=no" | |
3580 | fi | |
3581 | rm -f conftest* | |
3582 | fi | |
252b5132 | 3583 | |
6be7c12c AO |
3584 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3585 | echo "$ac_t""yes" 1>&6 | |
3586 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3587 | cat >> confdefs.h <<EOF | |
3588 | #define $ac_tr_func 1 | |
3589 | EOF | |
3590 | ||
3591 | else | |
3592 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
3593 | fi |
3594 | done | |
3595 | ||
b3baf5d0 | 3596 | |
6be7c12c AO |
3597 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
3598 | for ac_func in stpcpy | |
252b5132 | 3599 | do |
6be7c12c | 3600 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2858ef35 | 3601 | echo "configure:3602: checking for $ac_func" >&5 |
6be7c12c AO |
3602 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3604 | else | |
3605 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 3606 | #line 3607 "configure" |
252b5132 RH |
3607 | #include "confdefs.h" |
3608 | /* System header to define __stub macros and hopefully few prototypes, | |
6be7c12c | 3609 | which can conflict with char $ac_func(); below. */ |
252b5132 RH |
3610 | #include <assert.h> |
3611 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3612 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
3613 | builtin and then its argument prototype would still apply. */ |
3614 | char $ac_func(); | |
3615 | ||
3616 | int main() { | |
252b5132 RH |
3617 | |
3618 | /* The GNU C library defines this for functions which it implements | |
3619 | to always fail with ENOSYS. Some functions are actually named | |
3620 | something starting with __ and the normal name is an alias. */ | |
3621 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3622 | choke me | |
3623 | #else | |
6be7c12c | 3624 | $ac_func(); |
252b5132 RH |
3625 | #endif |
3626 | ||
6be7c12c | 3627 | ; return 0; } |
252b5132 | 3628 | EOF |
2858ef35 | 3629 | if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
3630 | rm -rf conftest* |
3631 | eval "ac_cv_func_$ac_func=yes" | |
3632 | else | |
3633 | echo "configure: failed program was:" >&5 | |
3634 | cat conftest.$ac_ext >&5 | |
3635 | rm -rf conftest* | |
3636 | eval "ac_cv_func_$ac_func=no" | |
3637 | fi | |
3638 | rm -f conftest* | |
3639 | fi | |
252b5132 | 3640 | |
6be7c12c AO |
3641 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3642 | echo "$ac_t""yes" 1>&6 | |
3643 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3644 | cat >> confdefs.h <<EOF | |
3645 | #define $ac_tr_func 1 | |
3646 | EOF | |
3647 | ||
3648 | else | |
3649 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
3650 | fi |
3651 | done | |
3652 | ||
3653 | fi | |
3654 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
6be7c12c | 3655 | cat >> confdefs.h <<\EOF |
252b5132 RH |
3656 | #define HAVE_STPCPY 1 |
3657 | EOF | |
3658 | ||
3659 | fi | |
3660 | ||
3661 | if test $ac_cv_header_locale_h = yes; then | |
6be7c12c | 3662 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
2858ef35 | 3663 | echo "configure:3664: checking for LC_MESSAGES" >&5 |
6be7c12c AO |
3664 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
3665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 3666 | else |
6be7c12c | 3667 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 3668 | #line 3669 "configure" |
252b5132 RH |
3669 | #include "confdefs.h" |
3670 | #include <locale.h> | |
6be7c12c | 3671 | int main() { |
252b5132 | 3672 | return LC_MESSAGES |
6be7c12c AO |
3673 | ; return 0; } |
3674 | EOF | |
2858ef35 | 3675 | if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c | 3676 | rm -rf conftest* |
252b5132 RH |
3677 | am_cv_val_LC_MESSAGES=yes |
3678 | else | |
6be7c12c AO |
3679 | echo "configure: failed program was:" >&5 |
3680 | cat conftest.$ac_ext >&5 | |
3681 | rm -rf conftest* | |
3682 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 3683 | fi |
6be7c12c | 3684 | rm -f conftest* |
252b5132 | 3685 | fi |
b3baf5d0 | 3686 | |
6be7c12c AO |
3687 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
3688 | if test $am_cv_val_LC_MESSAGES = yes; then | |
3689 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
3690 | #define HAVE_LC_MESSAGES 1 |
3691 | EOF | |
3692 | ||
3693 | fi | |
3694 | fi | |
6be7c12c | 3695 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
2858ef35 | 3696 | echo "configure:3697: checking whether NLS is requested" >&5 |
252b5132 RH |
3697 | # Check whether --enable-nls or --disable-nls was given. |
3698 | if test "${enable_nls+set}" = set; then | |
3699 | enableval="$enable_nls" | |
3700 | USE_NLS=$enableval | |
3701 | else | |
3702 | USE_NLS=yes | |
6be7c12c AO |
3703 | fi |
3704 | ||
3705 | echo "$ac_t""$USE_NLS" 1>&6 | |
3706 | ||
252b5132 RH |
3707 | |
3708 | USE_INCLUDED_LIBINTL=no | |
3709 | ||
3710 | if test "$USE_NLS" = "yes"; then | |
6be7c12c | 3711 | cat >> confdefs.h <<\EOF |
252b5132 RH |
3712 | #define ENABLE_NLS 1 |
3713 | EOF | |
3714 | ||
6be7c12c | 3715 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
2858ef35 | 3716 | echo "configure:3717: checking whether included gettext is requested" >&5 |
6be7c12c | 3717 | # Check whether --with-included-gettext or --without-included-gettext was given. |
252b5132 RH |
3718 | if test "${with_included_gettext+set}" = set; then |
3719 | withval="$with_included_gettext" | |
3720 | nls_cv_force_use_gnu_gettext=$withval | |
3721 | else | |
3722 | nls_cv_force_use_gnu_gettext=no | |
6be7c12c AO |
3723 | fi |
3724 | ||
3725 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
252b5132 RH |
3726 | |
3727 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
3728 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
3729 | nls_cv_header_intl= | |
3730 | nls_cv_header_libgt= | |
3731 | CATOBJEXT=NONE | |
3732 | ||
6be7c12c AO |
3733 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
3734 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
2858ef35 | 3735 | echo "configure:3736: checking for libintl.h" >&5 |
6be7c12c AO |
3736 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 3738 | else |
6be7c12c | 3739 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 3740 | #line 3741 "configure" |
252b5132 RH |
3741 | #include "confdefs.h" |
3742 | #include <libintl.h> | |
6be7c12c AO |
3743 | EOF |
3744 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2858ef35 | 3745 | { (eval echo configure:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
3746 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3747 | if test -z "$ac_err"; then | |
3748 | rm -rf conftest* | |
3749 | eval "ac_cv_header_$ac_safe=yes" | |
252b5132 | 3750 | else |
6be7c12c AO |
3751 | echo "$ac_err" >&5 |
3752 | echo "configure: failed program was:" >&5 | |
252b5132 | 3753 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
3754 | rm -rf conftest* |
3755 | eval "ac_cv_header_$ac_safe=no" | |
252b5132 | 3756 | fi |
6be7c12c | 3757 | rm -f conftest* |
252b5132 | 3758 | fi |
6be7c12c AO |
3759 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3760 | echo "$ac_t""yes" 1>&6 | |
3761 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
2858ef35 | 3762 | echo "configure:3763: checking for gettext in libc" >&5 |
6be7c12c AO |
3763 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
3764 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 3765 | else |
6be7c12c | 3766 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 3767 | #line 3768 "configure" |
252b5132 RH |
3768 | #include "confdefs.h" |
3769 | #include <libintl.h> | |
6be7c12c | 3770 | int main() { |
252b5132 | 3771 | return (int) gettext ("") |
6be7c12c AO |
3772 | ; return 0; } |
3773 | EOF | |
2858ef35 | 3774 | if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c | 3775 | rm -rf conftest* |
252b5132 RH |
3776 | gt_cv_func_gettext_libc=yes |
3777 | else | |
6be7c12c AO |
3778 | echo "configure: failed program was:" >&5 |
3779 | cat conftest.$ac_ext >&5 | |
3780 | rm -rf conftest* | |
3781 | gt_cv_func_gettext_libc=no | |
252b5132 | 3782 | fi |
6be7c12c | 3783 | rm -f conftest* |
252b5132 | 3784 | fi |
6be7c12c AO |
3785 | |
3786 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
252b5132 RH |
3787 | |
3788 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
6be7c12c | 3789 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
2858ef35 | 3790 | echo "configure:3791: checking for bindtextdomain in -lintl" >&5 |
6be7c12c AO |
3791 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
3792 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 3794 | else |
6be7c12c | 3795 | ac_save_LIBS="$LIBS" |
252b5132 | 3796 | LIBS="-lintl $LIBS" |
6be7c12c | 3797 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 3798 | #line 3799 "configure" |
252b5132 RH |
3799 | #include "confdefs.h" |
3800 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3801 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
3802 | builtin and then its argument prototype would still apply. */ |
3803 | char bindtextdomain(); | |
3804 | ||
3805 | int main() { | |
3806 | bindtextdomain() | |
3807 | ; return 0; } | |
3808 | EOF | |
2858ef35 | 3809 | if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
3810 | rm -rf conftest* |
3811 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3812 | else | |
3813 | echo "configure: failed program was:" >&5 | |
3814 | cat conftest.$ac_ext >&5 | |
3815 | rm -rf conftest* | |
3816 | eval "ac_cv_lib_$ac_lib_var=no" | |
3817 | fi | |
3818 | rm -f conftest* | |
3819 | LIBS="$ac_save_LIBS" | |
3820 | ||
3821 | fi | |
3822 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3823 | echo "$ac_t""yes" 1>&6 | |
3824 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
2858ef35 | 3825 | echo "configure:3826: checking for gettext in libintl" >&5 |
6be7c12c AO |
3826 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
3827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3828 | else | |
3829 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 3830 | #line 3831 "configure" |
252b5132 RH |
3831 | #include "confdefs.h" |
3832 | ||
6be7c12c | 3833 | int main() { |
252b5132 | 3834 | return (int) gettext ("") |
6be7c12c AO |
3835 | ; return 0; } |
3836 | EOF | |
2858ef35 | 3837 | if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c | 3838 | rm -rf conftest* |
252b5132 RH |
3839 | gt_cv_func_gettext_libintl=yes |
3840 | else | |
6be7c12c AO |
3841 | echo "configure: failed program was:" >&5 |
3842 | cat conftest.$ac_ext >&5 | |
3843 | rm -rf conftest* | |
3844 | gt_cv_func_gettext_libintl=no | |
252b5132 | 3845 | fi |
6be7c12c | 3846 | rm -f conftest* |
252b5132 | 3847 | fi |
6be7c12c AO |
3848 | |
3849 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
3850 | else | |
3851 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
3852 | fi |
3853 | ||
3854 | fi | |
3855 | ||
3856 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
3857 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
6be7c12c | 3858 | cat >> confdefs.h <<\EOF |
252b5132 RH |
3859 | #define HAVE_GETTEXT 1 |
3860 | EOF | |
3861 | ||
3862 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3863 | set dummy msgfmt; ac_word=$2 | |
6be7c12c | 3864 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2858ef35 | 3865 | echo "configure:3866: checking for $ac_word" >&5 |
6be7c12c AO |
3866 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
3867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
3868 | else |
3869 | case "$MSGFMT" in | |
3870 | /*) | |
3871 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3872 | ;; | |
3873 | *) | |
3874 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3875 | for ac_dir in $PATH; do | |
3876 | test -z "$ac_dir" && ac_dir=. | |
3877 | if test -f $ac_dir/$ac_word; then | |
3878 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3879 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3880 | break | |
3881 | fi | |
3882 | fi | |
3883 | done | |
3884 | IFS="$ac_save_ifs" | |
3885 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
3886 | ;; | |
3887 | esac | |
3888 | fi | |
3889 | MSGFMT="$ac_cv_path_MSGFMT" | |
3890 | if test -n "$MSGFMT"; then | |
6be7c12c | 3891 | echo "$ac_t""$MSGFMT" 1>&6 |
252b5132 | 3892 | else |
6be7c12c | 3893 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
3894 | fi |
3895 | if test "$MSGFMT" != "no"; then | |
6be7c12c | 3896 | for ac_func in dcgettext |
252b5132 | 3897 | do |
6be7c12c | 3898 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2858ef35 | 3899 | echo "configure:3900: checking for $ac_func" >&5 |
6be7c12c AO |
3900 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3902 | else | |
3903 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 3904 | #line 3905 "configure" |
252b5132 RH |
3905 | #include "confdefs.h" |
3906 | /* System header to define __stub macros and hopefully few prototypes, | |
6be7c12c | 3907 | which can conflict with char $ac_func(); below. */ |
252b5132 RH |
3908 | #include <assert.h> |
3909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3910 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
3911 | builtin and then its argument prototype would still apply. */ |
3912 | char $ac_func(); | |
3913 | ||
3914 | int main() { | |
252b5132 RH |
3915 | |
3916 | /* The GNU C library defines this for functions which it implements | |
3917 | to always fail with ENOSYS. Some functions are actually named | |
3918 | something starting with __ and the normal name is an alias. */ | |
3919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3920 | choke me | |
3921 | #else | |
6be7c12c | 3922 | $ac_func(); |
252b5132 RH |
3923 | #endif |
3924 | ||
6be7c12c | 3925 | ; return 0; } |
252b5132 | 3926 | EOF |
2858ef35 | 3927 | if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
3928 | rm -rf conftest* |
3929 | eval "ac_cv_func_$ac_func=yes" | |
3930 | else | |
3931 | echo "configure: failed program was:" >&5 | |
3932 | cat conftest.$ac_ext >&5 | |
3933 | rm -rf conftest* | |
3934 | eval "ac_cv_func_$ac_func=no" | |
3935 | fi | |
3936 | rm -f conftest* | |
3937 | fi | |
252b5132 | 3938 | |
6be7c12c AO |
3939 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3940 | echo "$ac_t""yes" 1>&6 | |
3941 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3942 | cat >> confdefs.h <<EOF | |
3943 | #define $ac_tr_func 1 | |
3944 | EOF | |
3945 | ||
3946 | else | |
3947 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
3948 | fi |
3949 | done | |
3950 | ||
3951 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3952 | set dummy gmsgfmt; ac_word=$2 | |
6be7c12c | 3953 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2858ef35 | 3954 | echo "configure:3955: checking for $ac_word" >&5 |
6be7c12c AO |
3955 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
3956 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 3957 | else |
6be7c12c AO |
3958 | case "$GMSGFMT" in |
3959 | /*) | |
252b5132 RH |
3960 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
3961 | ;; | |
6be7c12c AO |
3962 | ?:/*) |
3963 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3964 | ;; | |
252b5132 | 3965 | *) |
6be7c12c AO |
3966 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3967 | ac_dummy="$PATH" | |
3968 | for ac_dir in $ac_dummy; do | |
3969 | test -z "$ac_dir" && ac_dir=. | |
3970 | if test -f $ac_dir/$ac_word; then | |
3971 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3972 | break | |
3973 | fi | |
3974 | done | |
3975 | IFS="$ac_save_ifs" | |
252b5132 RH |
3976 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
3977 | ;; | |
3978 | esac | |
3979 | fi | |
6be7c12c | 3980 | GMSGFMT="$ac_cv_path_GMSGFMT" |
252b5132 | 3981 | if test -n "$GMSGFMT"; then |
6be7c12c | 3982 | echo "$ac_t""$GMSGFMT" 1>&6 |
252b5132 | 3983 | else |
6be7c12c | 3984 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
3985 | fi |
3986 | ||
3987 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3988 | set dummy xgettext; ac_word=$2 | |
6be7c12c | 3989 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2858ef35 | 3990 | echo "configure:3991: checking for $ac_word" >&5 |
6be7c12c AO |
3991 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
3992 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
3993 | else |
3994 | case "$XGETTEXT" in | |
3995 | /*) | |
3996 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3997 | ;; | |
3998 | *) | |
3999 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4000 | for ac_dir in $PATH; do | |
4001 | test -z "$ac_dir" && ac_dir=. | |
4002 | if test -f $ac_dir/$ac_word; then | |
4003 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4004 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4005 | break | |
4006 | fi | |
4007 | fi | |
4008 | done | |
4009 | IFS="$ac_save_ifs" | |
4010 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4011 | ;; | |
4012 | esac | |
4013 | fi | |
4014 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
4015 | if test -n "$XGETTEXT"; then | |
6be7c12c | 4016 | echo "$ac_t""$XGETTEXT" 1>&6 |
252b5132 | 4017 | else |
6be7c12c | 4018 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
4019 | fi |
4020 | ||
6be7c12c | 4021 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 4022 | #line 4023 "configure" |
252b5132 RH |
4023 | #include "confdefs.h" |
4024 | ||
6be7c12c | 4025 | int main() { |
252b5132 RH |
4026 | extern int _nl_msg_cat_cntr; |
4027 | return _nl_msg_cat_cntr | |
6be7c12c AO |
4028 | ; return 0; } |
4029 | EOF | |
2858ef35 | 4030 | if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c | 4031 | rm -rf conftest* |
252b5132 RH |
4032 | CATOBJEXT=.gmo |
4033 | DATADIRNAME=share | |
4034 | else | |
6be7c12c AO |
4035 | echo "configure: failed program was:" >&5 |
4036 | cat conftest.$ac_ext >&5 | |
4037 | rm -rf conftest* | |
4038 | CATOBJEXT=.mo | |
252b5132 RH |
4039 | DATADIRNAME=lib |
4040 | fi | |
6be7c12c | 4041 | rm -f conftest* |
252b5132 RH |
4042 | INSTOBJEXT=.mo |
4043 | fi | |
4044 | fi | |
6be7c12c AO |
4045 | |
4046 | else | |
4047 | echo "$ac_t""no" 1>&6 | |
b3baf5d0 | 4048 | fi |
252b5132 | 4049 | |
6be7c12c AO |
4050 | |
4051 | ||
252b5132 RH |
4052 | if test "$CATOBJEXT" = "NONE"; then |
4053 | nls_cv_use_gnu_gettext=yes | |
4054 | fi | |
4055 | fi | |
4056 | ||
4057 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
4058 | INTLOBJS="\$(GETTOBJS)" | |
4059 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
4060 | set dummy msgfmt; ac_word=$2 | |
6be7c12c | 4061 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2858ef35 | 4062 | echo "configure:4063: checking for $ac_word" >&5 |
6be7c12c AO |
4063 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
4064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
4065 | else |
4066 | case "$MSGFMT" in | |
4067 | /*) | |
4068 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
4069 | ;; | |
4070 | *) | |
4071 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4072 | for ac_dir in $PATH; do | |
4073 | test -z "$ac_dir" && ac_dir=. | |
4074 | if test -f $ac_dir/$ac_word; then | |
4075 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
4076 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
4077 | break | |
4078 | fi | |
4079 | fi | |
4080 | done | |
4081 | IFS="$ac_save_ifs" | |
4082 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
4083 | ;; | |
4084 | esac | |
4085 | fi | |
4086 | MSGFMT="$ac_cv_path_MSGFMT" | |
4087 | if test -n "$MSGFMT"; then | |
6be7c12c | 4088 | echo "$ac_t""$MSGFMT" 1>&6 |
252b5132 | 4089 | else |
6be7c12c | 4090 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
4091 | fi |
4092 | ||
4093 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
4094 | set dummy gmsgfmt; ac_word=$2 | |
6be7c12c | 4095 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2858ef35 | 4096 | echo "configure:4097: checking for $ac_word" >&5 |
6be7c12c AO |
4097 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
4098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4099 | else |
6be7c12c AO |
4100 | case "$GMSGFMT" in |
4101 | /*) | |
252b5132 RH |
4102 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
4103 | ;; | |
6be7c12c AO |
4104 | ?:/*) |
4105 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
4106 | ;; | |
252b5132 | 4107 | *) |
6be7c12c AO |
4108 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4109 | ac_dummy="$PATH" | |
4110 | for ac_dir in $ac_dummy; do | |
4111 | test -z "$ac_dir" && ac_dir=. | |
4112 | if test -f $ac_dir/$ac_word; then | |
4113 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
4114 | break | |
4115 | fi | |
4116 | done | |
4117 | IFS="$ac_save_ifs" | |
252b5132 RH |
4118 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
4119 | ;; | |
4120 | esac | |
4121 | fi | |
6be7c12c | 4122 | GMSGFMT="$ac_cv_path_GMSGFMT" |
252b5132 | 4123 | if test -n "$GMSGFMT"; then |
6be7c12c | 4124 | echo "$ac_t""$GMSGFMT" 1>&6 |
252b5132 | 4125 | else |
6be7c12c | 4126 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
4127 | fi |
4128 | ||
4129 | # Extract the first word of "xgettext", so it can be a program name with args. | |
4130 | set dummy xgettext; ac_word=$2 | |
6be7c12c | 4131 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2858ef35 | 4132 | echo "configure:4133: checking for $ac_word" >&5 |
6be7c12c AO |
4133 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
4134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
4135 | else |
4136 | case "$XGETTEXT" in | |
4137 | /*) | |
4138 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
4139 | ;; | |
4140 | *) | |
4141 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4142 | for ac_dir in $PATH; do | |
4143 | test -z "$ac_dir" && ac_dir=. | |
4144 | if test -f $ac_dir/$ac_word; then | |
4145 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4146 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4147 | break | |
4148 | fi | |
4149 | fi | |
4150 | done | |
4151 | IFS="$ac_save_ifs" | |
4152 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4153 | ;; | |
4154 | esac | |
4155 | fi | |
4156 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
4157 | if test -n "$XGETTEXT"; then | |
6be7c12c | 4158 | echo "$ac_t""$XGETTEXT" 1>&6 |
252b5132 | 4159 | else |
6be7c12c | 4160 | echo "$ac_t""no" 1>&6 |
252b5132 RH |
4161 | fi |
4162 | ||
6be7c12c | 4163 | |
252b5132 RH |
4164 | USE_INCLUDED_LIBINTL=yes |
4165 | CATOBJEXT=.gmo | |
4166 | INSTOBJEXT=.mo | |
4167 | DATADIRNAME=share | |
4168 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
4169 | INTLLIBS=$INTLDEPS | |
4170 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
4171 | nls_cv_header_intl=libintl.h | |
4172 | nls_cv_header_libgt=libgettext.h | |
4173 | fi | |
4174 | ||
4175 | if test "$XGETTEXT" != ":"; then | |
4176 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
4177 | : ; | |
4178 | else | |
6be7c12c | 4179 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 |
252b5132 RH |
4180 | XGETTEXT=":" |
4181 | fi | |
4182 | fi | |
4183 | ||
4184 | # We need to process the po/ directory. | |
4185 | POSUB=po | |
4186 | else | |
4187 | DATADIRNAME=share | |
4188 | nls_cv_header_intl=libintl.h | |
4189 | nls_cv_header_libgt=libgettext.h | |
4190 | fi | |
4191 | ||
4192 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
4193 | # because some of the sources are only built for this goal. | |
4194 | if test "$PACKAGE" = gettext; then | |
4195 | USE_NLS=yes | |
4196 | USE_INCLUDED_LIBINTL=yes | |
4197 | fi | |
4198 | ||
4199 | for lang in $ALL_LINGUAS; do | |
4200 | GMOFILES="$GMOFILES $lang.gmo" | |
4201 | POFILES="$POFILES $lang.po" | |
4202 | done | |
4203 | ||
6be7c12c AO |
4204 | |
4205 | ||
4206 | ||
4207 | ||
4208 | ||
4209 | ||
4210 | ||
4211 | ||
4212 | ||
4213 | ||
4214 | ||
4215 | ||
4216 | ||
252b5132 RH |
4217 | if test "x$CATOBJEXT" != "x"; then |
4218 | if test "x$ALL_LINGUAS" = "x"; then | |
4219 | LINGUAS= | |
4220 | else | |
6be7c12c | 4221 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 |
2858ef35 | 4222 | echo "configure:4223: checking for catalogs to be installed" >&5 |
252b5132 RH |
4223 | NEW_LINGUAS= |
4224 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
4225 | case "$ALL_LINGUAS" in | |
4226 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
4227 | esac | |
4228 | done | |
4229 | LINGUAS=$NEW_LINGUAS | |
6be7c12c | 4230 | echo "$ac_t""$LINGUAS" 1>&6 |
252b5132 RH |
4231 | fi |
4232 | ||
4233 | if test -n "$LINGUAS"; then | |
4234 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
4235 | fi | |
4236 | fi | |
4237 | ||
4238 | if test $ac_cv_header_locale_h = yes; then | |
4239 | INCLUDE_LOCALE_H="#include <locale.h>" | |
4240 | else | |
4241 | INCLUDE_LOCALE_H="\ | |
4242 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
4243 | fi | |
6be7c12c | 4244 | |
252b5132 RH |
4245 | |
4246 | if test -f $srcdir/po2tbl.sed.in; then | |
4247 | if test "$CATOBJEXT" = ".cat"; then | |
6be7c12c AO |
4248 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` |
4249 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
2858ef35 | 4250 | echo "configure:4251: checking for linux/version.h" >&5 |
6be7c12c AO |
4251 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4253 | else | |
4254 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 4255 | #line 4256 "configure" |
252b5132 RH |
4256 | #include "confdefs.h" |
4257 | #include <linux/version.h> | |
6be7c12c AO |
4258 | EOF |
4259 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2858ef35 | 4260 | { (eval echo configure:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
4261 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4262 | if test -z "$ac_err"; then | |
4263 | rm -rf conftest* | |
4264 | eval "ac_cv_header_$ac_safe=yes" | |
252b5132 | 4265 | else |
6be7c12c AO |
4266 | echo "$ac_err" >&5 |
4267 | echo "configure: failed program was:" >&5 | |
252b5132 | 4268 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
4269 | rm -rf conftest* |
4270 | eval "ac_cv_header_$ac_safe=no" | |
252b5132 | 4271 | fi |
6be7c12c | 4272 | rm -f conftest* |
252b5132 | 4273 | fi |
6be7c12c AO |
4274 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4275 | echo "$ac_t""yes" 1>&6 | |
252b5132 RH |
4276 | msgformat=linux |
4277 | else | |
6be7c12c AO |
4278 | echo "$ac_t""no" 1>&6 |
4279 | msgformat=xopen | |
252b5132 RH |
4280 | fi |
4281 | ||
6be7c12c | 4282 | |
252b5132 RH |
4283 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
4284 | fi | |
4285 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
4286 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
4287 | fi | |
4288 | ||
4289 | if test "$PACKAGE" = "gettext"; then | |
4290 | GT_NO="#NO#" | |
4291 | GT_YES= | |
4292 | else | |
4293 | GT_NO= | |
4294 | GT_YES="#YES#" | |
4295 | fi | |
6be7c12c AO |
4296 | |
4297 | ||
252b5132 RH |
4298 | |
4299 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
6be7c12c | 4300 | |
252b5132 RH |
4301 | |
4302 | l= | |
6be7c12c | 4303 | |
252b5132 | 4304 | |
3c3bdf30 | 4305 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
4306 | test -d po || mkdir po |
4307 | if test "x$srcdir" != "x."; then | |
4308 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
4309 | posrcprefix="$srcdir/" | |
4310 | else | |
4311 | posrcprefix="../$srcdir/" | |
4312 | fi | |
4313 | else | |
4314 | posrcprefix="../" | |
4315 | fi | |
4316 | rm -f po/POTFILES | |
4317 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
4318 | < $srcdir/po/POTFILES.in > po/POTFILES | |
4319 | fi | |
6be7c12c | 4320 | |
252b5132 RH |
4321 | |
4322 | # Permit host specific settings. | |
4323 | . ${srcdir}/configure.host | |
4324 | ||
6be7c12c | 4325 | |
252b5132 RH |
4326 | # Find a good install program. We prefer a C program (faster), |
4327 | # so one script is as good as another. But avoid the broken or | |
4328 | # incompatible versions: | |
4329 | # SysV /etc/install, /usr/sbin/install | |
4330 | # SunOS /usr/etc/install | |
4331 | # IRIX /sbin/install | |
4332 | # AIX /bin/install | |
4333 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4334 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4335 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4336 | # ./install, which can be erroneously created by make from ./install.sh. | |
6be7c12c | 4337 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2858ef35 | 4338 | echo "configure:4339: checking for a BSD compatible install" >&5 |
252b5132 | 4339 | if test -z "$INSTALL"; then |
6be7c12c AO |
4340 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
4341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4342 | else |
6be7c12c | 4343 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
252b5132 RH |
4344 | for ac_dir in $PATH; do |
4345 | # Account for people who put trailing slashes in PATH elements. | |
6be7c12c AO |
4346 | case "$ac_dir/" in |
4347 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
252b5132 RH |
4348 | *) |
4349 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4350 | # Don't use installbsd from OSF since it installs stuff as root | |
4351 | # by default. | |
4352 | for ac_prog in ginstall scoinst install; do | |
6be7c12c | 4353 | if test -f $ac_dir/$ac_prog; then |
252b5132 | 4354 | if test $ac_prog = install && |
6be7c12c | 4355 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
252b5132 RH |
4356 | # AIX install. It has an incompatible calling convention. |
4357 | : | |
4358 | else | |
4359 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
4360 | break 2 | |
4361 | fi | |
4362 | fi | |
4363 | done | |
4364 | ;; | |
4365 | esac | |
4366 | done | |
6be7c12c | 4367 | IFS="$ac_save_IFS" |
252b5132 RH |
4368 | |
4369 | fi | |
4370 | if test "${ac_cv_path_install+set}" = set; then | |
6be7c12c | 4371 | INSTALL="$ac_cv_path_install" |
252b5132 RH |
4372 | else |
4373 | # As a last resort, use the slow shell script. We don't cache a | |
4374 | # path for INSTALL within a source directory, because that will | |
4375 | # break other packages using the cache if that directory is | |
4376 | # removed, or if the path is relative. | |
6be7c12c | 4377 | INSTALL="$ac_install_sh" |
252b5132 RH |
4378 | fi |
4379 | fi | |
6be7c12c | 4380 | echo "$ac_t""$INSTALL" 1>&6 |
252b5132 RH |
4381 | |
4382 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4383 | # It thinks the first close brace ends the variable substitution. | |
4384 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4385 | ||
6be7c12c | 4386 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
252b5132 RH |
4387 | |
4388 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4389 | ||
6be7c12c | 4390 | |
252b5132 RH |
4391 | BFD_HOST_64BIT_LONG=0 |
4392 | BFD_HOST_64_BIT_DEFINED=0 | |
4393 | BFD_HOST_64_BIT= | |
4394 | BFD_HOST_U_64_BIT= | |
4395 | if test "x${HOST_64BIT_TYPE}" = "xlong"; then | |
4396 | BFD_HOST_64BIT_LONG=1 | |
4397 | elif test "x${HOST_64BIT_TYPE}" != "x"; then | |
4398 | BFD_HOST_64_BIT_DEFINED=1 | |
4399 | BFD_HOST_64_BIT=${HOST_64BIT_TYPE} | |
4400 | BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE} | |
4401 | fi | |
4402 | ||
6be7c12c AO |
4403 | |
4404 | ||
4405 | ||
4406 | ||
252b5132 RH |
4407 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
4408 | if test -z "$CC_FOR_BUILD"; then | |
4409 | if test "x$cross_compiling" = "xno"; then | |
4410 | CC_FOR_BUILD='$(CC)' | |
4411 | else | |
4412 | CC_FOR_BUILD=gcc | |
4413 | fi | |
4414 | fi | |
4415 | ||
4416 | # Also set EXEEXT_FOR_BUILD. | |
4417 | if test "x$cross_compiling" = "xno"; then | |
4418 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
4419 | else | |
6be7c12c | 4420 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 |
2858ef35 | 4421 | echo "configure:4422: checking for build system executable suffix" >&5 |
6be7c12c AO |
4422 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then |
4423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4424 | else |
aab08431 ILT |
4425 | rm -f conftest* |
4426 | echo 'int main () { return 0; }' > conftest.c | |
4427 | bfd_cv_build_exeext= | |
4428 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
4429 | for file in conftest.*; do | |
4430 | case $file in | |
4431 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
4432 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
4433 | esac | |
4434 | done | |
4435 | rm -f conftest* | |
4436 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 4437 | fi |
6be7c12c AO |
4438 | |
4439 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6 | |
252b5132 RH |
4440 | EXEEXT_FOR_BUILD="" |
4441 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
4442 | fi | |
4443 | ||
6be7c12c AO |
4444 | |
4445 | for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h | |
252b5132 | 4446 | do |
6be7c12c AO |
4447 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4448 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2858ef35 | 4449 | echo "configure:4450: checking for $ac_hdr" >&5 |
6be7c12c AO |
4450 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4452 | else | |
4453 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 4454 | #line 4455 "configure" |
252b5132 | 4455 | #include "confdefs.h" |
6be7c12c AO |
4456 | #include <$ac_hdr> |
4457 | EOF | |
4458 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2858ef35 | 4459 | { (eval echo configure:4460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
4460 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4461 | if test -z "$ac_err"; then | |
4462 | rm -rf conftest* | |
4463 | eval "ac_cv_header_$ac_safe=yes" | |
252b5132 | 4464 | else |
6be7c12c AO |
4465 | echo "$ac_err" >&5 |
4466 | echo "configure: failed program was:" >&5 | |
252b5132 | 4467 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
4468 | rm -rf conftest* |
4469 | eval "ac_cv_header_$ac_safe=no" | |
252b5132 | 4470 | fi |
6be7c12c | 4471 | rm -f conftest* |
252b5132 | 4472 | fi |
6be7c12c AO |
4473 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4474 | echo "$ac_t""yes" 1>&6 | |
4475 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4476 | cat >> confdefs.h <<EOF | |
4477 | #define $ac_tr_hdr 1 | |
252b5132 | 4478 | EOF |
6be7c12c AO |
4479 | |
4480 | else | |
4481 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
4482 | fi |
4483 | done | |
4484 | ||
6be7c12c | 4485 | for ac_hdr in fcntl.h sys/file.h sys/time.h |
252b5132 | 4486 | do |
6be7c12c AO |
4487 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4488 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2858ef35 | 4489 | echo "configure:4490: checking for $ac_hdr" >&5 |
6be7c12c AO |
4490 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4492 | else | |
4493 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 4494 | #line 4495 "configure" |
252b5132 | 4495 | #include "confdefs.h" |
6be7c12c AO |
4496 | #include <$ac_hdr> |
4497 | EOF | |
4498 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2858ef35 | 4499 | { (eval echo configure:4500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
4500 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4501 | if test -z "$ac_err"; then | |
4502 | rm -rf conftest* | |
4503 | eval "ac_cv_header_$ac_safe=yes" | |
252b5132 | 4504 | else |
6be7c12c AO |
4505 | echo "$ac_err" >&5 |
4506 | echo "configure: failed program was:" >&5 | |
252b5132 | 4507 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
4508 | rm -rf conftest* |
4509 | eval "ac_cv_header_$ac_safe=no" | |
252b5132 | 4510 | fi |
6be7c12c | 4511 | rm -f conftest* |
252b5132 | 4512 | fi |
6be7c12c AO |
4513 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4514 | echo "$ac_t""yes" 1>&6 | |
4515 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4516 | cat >> confdefs.h <<EOF | |
4517 | #define $ac_tr_hdr 1 | |
252b5132 | 4518 | EOF |
6be7c12c AO |
4519 | |
4520 | else | |
4521 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
4522 | fi |
4523 | done | |
4524 | ||
6be7c12c | 4525 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
2858ef35 | 4526 | echo "configure:4527: checking whether time.h and sys/time.h may both be included" >&5 |
6be7c12c AO |
4527 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
4528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4529 | else |
6be7c12c | 4530 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 4531 | #line 4532 "configure" |
252b5132 RH |
4532 | #include "confdefs.h" |
4533 | #include <sys/types.h> | |
4534 | #include <sys/time.h> | |
4535 | #include <time.h> | |
6be7c12c | 4536 | int main() { |
252b5132 | 4537 | struct tm *tp; |
6be7c12c AO |
4538 | ; return 0; } |
4539 | EOF | |
2858ef35 | 4540 | if { (eval echo configure:4541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 4541 | rm -rf conftest* |
252b5132 RH |
4542 | ac_cv_header_time=yes |
4543 | else | |
6be7c12c AO |
4544 | echo "configure: failed program was:" >&5 |
4545 | cat conftest.$ac_ext >&5 | |
4546 | rm -rf conftest* | |
4547 | ac_cv_header_time=no | |
252b5132 | 4548 | fi |
6be7c12c | 4549 | rm -f conftest* |
252b5132 | 4550 | fi |
b3baf5d0 | 4551 | |
6be7c12c AO |
4552 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
4553 | if test $ac_cv_header_time = yes; then | |
4554 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
4555 | #define TIME_WITH_SYS_TIME 1 |
4556 | EOF | |
4557 | ||
4558 | fi | |
4559 | ||
4560 | ac_header_dirent=no | |
6be7c12c AO |
4561 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
4562 | do | |
4563 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
4564 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | |
2858ef35 | 4565 | echo "configure:4566: checking for $ac_hdr that defines DIR" >&5 |
6be7c12c AO |
4566 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
4567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4568 | else | |
4569 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 4570 | #line 4571 "configure" |
252b5132 RH |
4571 | #include "confdefs.h" |
4572 | #include <sys/types.h> | |
4573 | #include <$ac_hdr> | |
6be7c12c | 4574 | int main() { |
252b5132 | 4575 | DIR *dirp = 0; |
6be7c12c AO |
4576 | ; return 0; } |
4577 | EOF | |
2858ef35 | 4578 | if { (eval echo configure:4579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c AO |
4579 | rm -rf conftest* |
4580 | eval "ac_cv_header_dirent_$ac_safe=yes" | |
252b5132 | 4581 | else |
6be7c12c AO |
4582 | echo "configure: failed program was:" >&5 |
4583 | cat conftest.$ac_ext >&5 | |
4584 | rm -rf conftest* | |
4585 | eval "ac_cv_header_dirent_$ac_safe=no" | |
252b5132 | 4586 | fi |
6be7c12c | 4587 | rm -f conftest* |
252b5132 | 4588 | fi |
6be7c12c AO |
4589 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
4590 | echo "$ac_t""yes" 1>&6 | |
4591 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4592 | cat >> confdefs.h <<EOF | |
4593 | #define $ac_tr_hdr 1 | |
252b5132 | 4594 | EOF |
6be7c12c AO |
4595 | ac_header_dirent=$ac_hdr; break |
4596 | else | |
4597 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
4598 | fi |
4599 | done | |
4600 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4601 | if test $ac_header_dirent = dirent.h; then | |
6be7c12c | 4602 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
2858ef35 | 4603 | echo "configure:4604: checking for opendir in -ldir" >&5 |
6be7c12c AO |
4604 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
4605 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4607 | else |
6be7c12c | 4608 | ac_save_LIBS="$LIBS" |
252b5132 | 4609 | LIBS="-ldir $LIBS" |
6be7c12c | 4610 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 4611 | #line 4612 "configure" |
252b5132 RH |
4612 | #include "confdefs.h" |
4613 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4614 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
4615 | builtin and then its argument prototype would still apply. */ |
4616 | char opendir(); | |
4617 | ||
4618 | int main() { | |
4619 | opendir() | |
4620 | ; return 0; } | |
4621 | EOF | |
2858ef35 | 4622 | if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
4623 | rm -rf conftest* |
4624 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4625 | else | |
4626 | echo "configure: failed program was:" >&5 | |
4627 | cat conftest.$ac_ext >&5 | |
4628 | rm -rf conftest* | |
4629 | eval "ac_cv_lib_$ac_lib_var=no" | |
4630 | fi | |
4631 | rm -f conftest* | |
4632 | LIBS="$ac_save_LIBS" | |
4633 | ||
4634 | fi | |
4635 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4636 | echo "$ac_t""yes" 1>&6 | |
252b5132 | 4637 | LIBS="$LIBS -ldir" |
6be7c12c AO |
4638 | else |
4639 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
4640 | fi |
4641 | ||
4642 | else | |
6be7c12c | 4643 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
2858ef35 | 4644 | echo "configure:4645: checking for opendir in -lx" >&5 |
6be7c12c AO |
4645 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
4646 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3baf5d0 | 4648 | else |
6be7c12c | 4649 | ac_save_LIBS="$LIBS" |
b3baf5d0 | 4650 | LIBS="-lx $LIBS" |
6be7c12c | 4651 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 4652 | #line 4653 "configure" |
b3baf5d0 | 4653 | #include "confdefs.h" |
6be7c12c AO |
4654 | /* Override any gcc2 internal prototype to avoid an error. */ |
4655 | /* We use char because int might match the return type of a gcc2 | |
4656 | builtin and then its argument prototype would still apply. */ | |
4657 | char opendir(); | |
4658 | ||
4659 | int main() { | |
4660 | opendir() | |
4661 | ; return 0; } | |
4662 | EOF | |
2858ef35 | 4663 | if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
4664 | rm -rf conftest* |
4665 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4666 | else | |
4667 | echo "configure: failed program was:" >&5 | |
4668 | cat conftest.$ac_ext >&5 | |
4669 | rm -rf conftest* | |
4670 | eval "ac_cv_lib_$ac_lib_var=no" | |
4671 | fi | |
4672 | rm -f conftest* | |
4673 | LIBS="$ac_save_LIBS" | |
252b5132 | 4674 | |
6be7c12c AO |
4675 | fi |
4676 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4677 | echo "$ac_t""yes" 1>&6 | |
252b5132 | 4678 | LIBS="$LIBS -lx" |
6be7c12c AO |
4679 | else |
4680 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
4681 | fi |
4682 | ||
4683 | fi | |
4684 | ||
633fd09f | 4685 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 | 4686 | do |
6be7c12c | 4687 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2858ef35 | 4688 | echo "configure:4689: checking for $ac_func" >&5 |
6be7c12c AO |
4689 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4691 | else | |
4692 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 4693 | #line 4694 "configure" |
252b5132 RH |
4694 | #include "confdefs.h" |
4695 | /* System header to define __stub macros and hopefully few prototypes, | |
6be7c12c | 4696 | which can conflict with char $ac_func(); below. */ |
252b5132 RH |
4697 | #include <assert.h> |
4698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4699 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
4700 | builtin and then its argument prototype would still apply. */ |
4701 | char $ac_func(); | |
4702 | ||
4703 | int main() { | |
252b5132 RH |
4704 | |
4705 | /* The GNU C library defines this for functions which it implements | |
4706 | to always fail with ENOSYS. Some functions are actually named | |
4707 | something starting with __ and the normal name is an alias. */ | |
4708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4709 | choke me | |
4710 | #else | |
6be7c12c | 4711 | $ac_func(); |
252b5132 RH |
4712 | #endif |
4713 | ||
6be7c12c | 4714 | ; return 0; } |
252b5132 | 4715 | EOF |
2858ef35 | 4716 | if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
4717 | rm -rf conftest* |
4718 | eval "ac_cv_func_$ac_func=yes" | |
4719 | else | |
4720 | echo "configure: failed program was:" >&5 | |
4721 | cat conftest.$ac_ext >&5 | |
4722 | rm -rf conftest* | |
4723 | eval "ac_cv_func_$ac_func=no" | |
4724 | fi | |
4725 | rm -f conftest* | |
4726 | fi | |
252b5132 | 4727 | |
6be7c12c AO |
4728 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
4729 | echo "$ac_t""yes" 1>&6 | |
4730 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4731 | cat >> confdefs.h <<EOF | |
4732 | #define $ac_tr_func 1 | |
4733 | EOF | |
4734 | ||
4735 | else | |
4736 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
4737 | fi |
4738 | done | |
4739 | ||
6be7c12c AO |
4740 | |
4741 | ||
252b5132 | 4742 | case "${host}" in |
855b0be7 | 4743 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
6be7c12c | 4744 | cat >> confdefs.h <<\EOF |
252b5132 RH |
4745 | #define USE_BINARY_FOPEN 1 |
4746 | EOF | |
4747 | ;; | |
4748 | esac | |
4749 | ||
6be7c12c | 4750 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 |
2858ef35 | 4751 | echo "configure:4752: checking whether strstr must be declared" >&5 |
6be7c12c AO |
4752 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then |
4753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4754 | else |
6be7c12c | 4755 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 4756 | #line 4757 "configure" |
252b5132 RH |
4757 | #include "confdefs.h" |
4758 | ||
4759 | #include <stdio.h> | |
4760 | #ifdef HAVE_STRING_H | |
4761 | #include <string.h> | |
4762 | #else | |
4763 | #ifdef HAVE_STRINGS_H | |
4764 | #include <strings.h> | |
4765 | #endif | |
4766 | #endif | |
4767 | #ifdef HAVE_STDLIB_H | |
4768 | #include <stdlib.h> | |
4769 | #endif | |
4770 | #ifdef HAVE_UNISTD_H | |
4771 | #include <unistd.h> | |
4772 | #endif | |
6be7c12c | 4773 | int main() { |
252b5132 | 4774 | char *(*pfn) = (char *(*)) strstr |
6be7c12c AO |
4775 | ; return 0; } |
4776 | EOF | |
2858ef35 | 4777 | if { (eval echo configure:4778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 4778 | rm -rf conftest* |
252b5132 RH |
4779 | bfd_cv_decl_needed_strstr=no |
4780 | else | |
6be7c12c AO |
4781 | echo "configure: failed program was:" >&5 |
4782 | cat conftest.$ac_ext >&5 | |
4783 | rm -rf conftest* | |
4784 | bfd_cv_decl_needed_strstr=yes | |
252b5132 | 4785 | fi |
6be7c12c | 4786 | rm -f conftest* |
252b5132 RH |
4787 | fi |
4788 | ||
6be7c12c | 4789 | echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 |
252b5132 | 4790 | if test $bfd_cv_decl_needed_strstr = yes; then |
6be7c12c | 4791 | cat >> confdefs.h <<\EOF |
252b5132 RH |
4792 | #define NEED_DECLARATION_STRSTR 1 |
4793 | EOF | |
4794 | ||
4795 | fi | |
4796 | ||
6be7c12c | 4797 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 |
2858ef35 | 4798 | echo "configure:4799: checking whether malloc must be declared" >&5 |
6be7c12c AO |
4799 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then |
4800 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4801 | else |
6be7c12c | 4802 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 4803 | #line 4804 "configure" |
252b5132 RH |
4804 | #include "confdefs.h" |
4805 | ||
4806 | #include <stdio.h> | |
4807 | #ifdef HAVE_STRING_H | |
4808 | #include <string.h> | |
4809 | #else | |
4810 | #ifdef HAVE_STRINGS_H | |
4811 | #include <strings.h> | |
4812 | #endif | |
4813 | #endif | |
4814 | #ifdef HAVE_STDLIB_H | |
4815 | #include <stdlib.h> | |
4816 | #endif | |
4817 | #ifdef HAVE_UNISTD_H | |
4818 | #include <unistd.h> | |
4819 | #endif | |
6be7c12c | 4820 | int main() { |
252b5132 | 4821 | char *(*pfn) = (char *(*)) malloc |
6be7c12c AO |
4822 | ; return 0; } |
4823 | EOF | |
2858ef35 | 4824 | if { (eval echo configure:4825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 4825 | rm -rf conftest* |
252b5132 RH |
4826 | bfd_cv_decl_needed_malloc=no |
4827 | else | |
6be7c12c AO |
4828 | echo "configure: failed program was:" >&5 |
4829 | cat conftest.$ac_ext >&5 | |
4830 | rm -rf conftest* | |
4831 | bfd_cv_decl_needed_malloc=yes | |
252b5132 | 4832 | fi |
6be7c12c | 4833 | rm -f conftest* |
252b5132 RH |
4834 | fi |
4835 | ||
6be7c12c | 4836 | echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 |
252b5132 | 4837 | if test $bfd_cv_decl_needed_malloc = yes; then |
6be7c12c | 4838 | cat >> confdefs.h <<\EOF |
252b5132 RH |
4839 | #define NEED_DECLARATION_MALLOC 1 |
4840 | EOF | |
4841 | ||
4842 | fi | |
4843 | ||
6be7c12c | 4844 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 |
2858ef35 | 4845 | echo "configure:4846: checking whether realloc must be declared" >&5 |
6be7c12c AO |
4846 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then |
4847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4848 | else |
6be7c12c | 4849 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 4850 | #line 4851 "configure" |
252b5132 RH |
4851 | #include "confdefs.h" |
4852 | ||
4853 | #include <stdio.h> | |
4854 | #ifdef HAVE_STRING_H | |
4855 | #include <string.h> | |
4856 | #else | |
4857 | #ifdef HAVE_STRINGS_H | |
4858 | #include <strings.h> | |
4859 | #endif | |
4860 | #endif | |
4861 | #ifdef HAVE_STDLIB_H | |
4862 | #include <stdlib.h> | |
4863 | #endif | |
4864 | #ifdef HAVE_UNISTD_H | |
4865 | #include <unistd.h> | |
4866 | #endif | |
6be7c12c | 4867 | int main() { |
252b5132 | 4868 | char *(*pfn) = (char *(*)) realloc |
6be7c12c AO |
4869 | ; return 0; } |
4870 | EOF | |
2858ef35 | 4871 | if { (eval echo configure:4872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 4872 | rm -rf conftest* |
252b5132 RH |
4873 | bfd_cv_decl_needed_realloc=no |
4874 | else | |
6be7c12c AO |
4875 | echo "configure: failed program was:" >&5 |
4876 | cat conftest.$ac_ext >&5 | |
4877 | rm -rf conftest* | |
4878 | bfd_cv_decl_needed_realloc=yes | |
252b5132 | 4879 | fi |
6be7c12c | 4880 | rm -f conftest* |
252b5132 RH |
4881 | fi |
4882 | ||
6be7c12c | 4883 | echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 |
252b5132 | 4884 | if test $bfd_cv_decl_needed_realloc = yes; then |
6be7c12c | 4885 | cat >> confdefs.h <<\EOF |
252b5132 RH |
4886 | #define NEED_DECLARATION_REALLOC 1 |
4887 | EOF | |
4888 | ||
4889 | fi | |
4890 | ||
6be7c12c | 4891 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 |
2858ef35 | 4892 | echo "configure:4893: checking whether free must be declared" >&5 |
6be7c12c AO |
4893 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then |
4894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4895 | else |
6be7c12c | 4896 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 4897 | #line 4898 "configure" |
252b5132 RH |
4898 | #include "confdefs.h" |
4899 | ||
4900 | #include <stdio.h> | |
4901 | #ifdef HAVE_STRING_H | |
4902 | #include <string.h> | |
4903 | #else | |
4904 | #ifdef HAVE_STRINGS_H | |
4905 | #include <strings.h> | |
4906 | #endif | |
4907 | #endif | |
4908 | #ifdef HAVE_STDLIB_H | |
4909 | #include <stdlib.h> | |
4910 | #endif | |
4911 | #ifdef HAVE_UNISTD_H | |
4912 | #include <unistd.h> | |
4913 | #endif | |
6be7c12c | 4914 | int main() { |
252b5132 | 4915 | char *(*pfn) = (char *(*)) free |
6be7c12c AO |
4916 | ; return 0; } |
4917 | EOF | |
2858ef35 | 4918 | if { (eval echo configure:4919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 4919 | rm -rf conftest* |
252b5132 RH |
4920 | bfd_cv_decl_needed_free=no |
4921 | else | |
6be7c12c AO |
4922 | echo "configure: failed program was:" >&5 |
4923 | cat conftest.$ac_ext >&5 | |
4924 | rm -rf conftest* | |
4925 | bfd_cv_decl_needed_free=yes | |
252b5132 | 4926 | fi |
6be7c12c | 4927 | rm -f conftest* |
252b5132 RH |
4928 | fi |
4929 | ||
6be7c12c | 4930 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6 |
252b5132 | 4931 | if test $bfd_cv_decl_needed_free = yes; then |
6be7c12c | 4932 | cat >> confdefs.h <<\EOF |
252b5132 RH |
4933 | #define NEED_DECLARATION_FREE 1 |
4934 | EOF | |
4935 | ||
4936 | fi | |
4937 | ||
6be7c12c | 4938 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 |
2858ef35 | 4939 | echo "configure:4940: checking whether getenv must be declared" >&5 |
6be7c12c AO |
4940 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then |
4941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 4942 | else |
6be7c12c | 4943 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 4944 | #line 4945 "configure" |
252b5132 RH |
4945 | #include "confdefs.h" |
4946 | ||
4947 | #include <stdio.h> | |
4948 | #ifdef HAVE_STRING_H | |
4949 | #include <string.h> | |
4950 | #else | |
4951 | #ifdef HAVE_STRINGS_H | |
4952 | #include <strings.h> | |
4953 | #endif | |
4954 | #endif | |
4955 | #ifdef HAVE_STDLIB_H | |
4956 | #include <stdlib.h> | |
4957 | #endif | |
4958 | #ifdef HAVE_UNISTD_H | |
4959 | #include <unistd.h> | |
4960 | #endif | |
6be7c12c | 4961 | int main() { |
252b5132 | 4962 | char *(*pfn) = (char *(*)) getenv |
6be7c12c AO |
4963 | ; return 0; } |
4964 | EOF | |
2858ef35 | 4965 | if { (eval echo configure:4966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 4966 | rm -rf conftest* |
252b5132 RH |
4967 | bfd_cv_decl_needed_getenv=no |
4968 | else | |
6be7c12c AO |
4969 | echo "configure: failed program was:" >&5 |
4970 | cat conftest.$ac_ext >&5 | |
4971 | rm -rf conftest* | |
4972 | bfd_cv_decl_needed_getenv=yes | |
252b5132 | 4973 | fi |
6be7c12c | 4974 | rm -f conftest* |
252b5132 RH |
4975 | fi |
4976 | ||
6be7c12c | 4977 | echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6 |
252b5132 | 4978 | if test $bfd_cv_decl_needed_getenv = yes; then |
6be7c12c | 4979 | cat >> confdefs.h <<\EOF |
252b5132 RH |
4980 | #define NEED_DECLARATION_GETENV 1 |
4981 | EOF | |
4982 | ||
4983 | fi | |
4984 | ||
6be7c12c | 4985 | |
252b5132 RH |
4986 | # If we are configured native, pick a core file support file. |
4987 | COREFILE= | |
4988 | COREFLAG= | |
4989 | TRAD_HEADER= | |
4990 | if test "${target}" = "${host}"; then | |
4991 | case "${host}" in | |
46d59bfa DB |
4992 | alpha*-*-freebsd*) |
4993 | COREFILE='' | |
4994 | ;; | |
252b5132 RH |
4995 | alpha*-*-linux-gnu*) |
4996 | COREFILE=trad-core.lo | |
4997 | TRAD_HEADER='"hosts/alphalinux.h"' | |
4998 | ;; | |
4999 | alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;; | |
5000 | alpha*-*-*) COREFILE=osf-core.lo ;; | |
d4af9775 | 5001 | arm-*-freebsd*) COREFILE='' ;; |
252b5132 RH |
5002 | arm-*-riscix) COREFILE=trad-core.lo ;; |
5003 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
5004 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
5005 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
5006 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
5007 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
dc810e39 | 5008 | i370-*-*) |
5b93d8bb AM |
5009 | COREFILE=trad-core.lo |
5010 | TRAD_HEADER='"hosts/i370linux.h"' | |
5011 | ;; | |
5012 | ||
252b5132 | 5013 | i[3456]86-sequent-bsd*) |
5b93d8bb | 5014 | COREFILE=trad-core.lo |
252b5132 RH |
5015 | TRAD_HEADER='"hosts/symmetry.h"' |
5016 | ;; | |
5017 | i[3456]86-sequent-sysv4*) ;; | |
5018 | i[3456]86-sequent-sysv*) | |
5019 | COREFILE=trad-core.lo | |
5020 | TRAD_HEADER='"hosts/symmetry.h"' | |
5021 | ;; | |
7e3b3466 NC |
5022 | i[3456]86-*-bsdi) |
5023 | COREFILE= | |
5024 | ;; | |
d4af9775 | 5025 | i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*) |
252b5132 RH |
5026 | COREFILE=trad-core.lo |
5027 | TRAD_HEADER='"hosts/i386bsd.h"' | |
5028 | ;; | |
d4af9775 DB |
5029 | i[3456]86-*-freebsd*) |
5030 | COREFILE='' | |
5031 | TRAD_HEADER='"hosts/i386bsd.h"' | |
5032 | ;; | |
252b5132 RH |
5033 | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) |
5034 | COREFILE=netbsd-core.lo | |
5035 | ;; | |
5036 | i[3456]86-esix-sysv3*) | |
5037 | COREFILE=trad-core.lo | |
5038 | TRAD_HEADER='"hosts/esix.h"' | |
5039 | ;; | |
5040 | i[3456]86-*-sco3.2v5*) | |
5041 | COREFILE=sco5-core.lo | |
5042 | ;; | |
5043 | i[3456]86-*-sco* | i[3456]86-*-isc*) | |
5044 | COREFILE=trad-core.lo | |
5045 | TRAD_HEADER='"hosts/i386sco.h"' | |
5046 | ;; | |
5047 | i[3456]86-*-mach3*) | |
5048 | COREFILE=trad-core.lo | |
5049 | TRAD_HEADER='"hosts/i386mach3.h"' | |
5050 | ;; | |
5051 | i[3456]86-*-linux-gnu*) | |
5052 | COREFILE=trad-core.lo | |
5053 | TRAD_HEADER='"hosts/i386linux.h"' | |
5054 | ;; | |
5055 | i[3456]86-*-isc*) COREFILE=trad-core.lo ;; | |
5056 | i[3456]86-*-aix*) COREFILE=aix386-core.lo ;; | |
5057 | i860-*-mach3* | i860-*-osf1*) | |
5058 | COREFILE=trad-core.lo | |
5059 | TRAD_HEADER='"hosts/i860mach3.h"' | |
5060 | ;; | |
5061 | mips-dec-bsd*) | |
5062 | COREFILE=trad-core.lo | |
5063 | TRAD_HEADER='"hosts/mipsbsd.h"' | |
5064 | ;; | |
5065 | mips-dec-mach3*) | |
5066 | COREFILE=trad-core.lo | |
5067 | TRAD_HEADER='"hosts/mipsmach3.h"' | |
5068 | ;; | |
5069 | mips-*-netbsd* | mips*-*-openbsd*) | |
5070 | COREFILE=netbsd-core.lo | |
5071 | ;; | |
5072 | mips-dec-*) | |
5073 | COREFILE=trad-core.lo | |
5074 | TRAD_HEADER='"hosts/decstation.h"' | |
5075 | ;; | |
5076 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
5077 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
5078 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
5079 | mips-*-mach3*) | |
5080 | COREFILE=trad-core.lo | |
5081 | TRAD_HEADER='"hosts/mipsmach3.h"' | |
5082 | ;; | |
5083 | mips-*-sysv4*) ;; | |
5084 | mips-*-sysv* | mips-*-riscos*) | |
5085 | COREFILE=trad-core.lo | |
5086 | TRAD_HEADER='"hosts/riscos.h"' | |
5087 | ;; | |
5088 | mips-sony-bsd*) | |
5089 | COREFILE=trad-core.lo | |
5090 | TRAD_HEADER='"hosts/news-mips.h"' | |
5091 | ;; | |
5092 | m68*-bull*-sysv*) | |
5093 | COREFILE=trad-core.lo | |
5094 | TRAD_HEADER='"hosts/dpx2.h"' | |
5095 | ;; | |
5096 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
5097 | m68*-hp-bsd*) | |
5098 | COREFILE=trad-core.lo | |
5099 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
5100 | ;; | |
5101 | m68*-*-linux-gnu*) | |
5102 | COREFILE=trad-core.lo | |
5103 | TRAD_HEADER='"hosts/m68klinux.h"' | |
5104 | ;; | |
5105 | m68*-motorola-sysv*) | |
5106 | COREFILE=trad-core.lo | |
5107 | TRAD_HEADER='"hosts/delta68.h"' | |
5108 | ;; | |
5109 | m68*-sony-*) | |
5110 | COREFILE=trad-core.lo | |
5111 | TRAD_HEADER='"hosts/news.h"' | |
5112 | ;; | |
5113 | m68*-*-netbsd* | m68*-*-openbsd*) | |
5114 | COREFILE=netbsd-core.lo | |
5115 | ;; | |
5116 | m68*-apple-aux*) | |
5117 | COREFILE=trad-core.lo | |
5118 | TRAD_HEADER='"hosts/m68kaux.h"' | |
5119 | ;; | |
5120 | m88*-*-sysv4*) ;; | |
5121 | m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;; | |
5122 | m88*-*-mach3*) | |
5123 | COREFILE=trad-core.lo | |
5124 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
5125 | ;; | |
5126 | ns32k-pc532-mach) | |
5127 | COREFILE=trad-core.lo | |
5128 | TRAD_HEADER='"hosts/pc532mach.h"' | |
5129 | ;; | |
5130 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
5131 | COREFILE=netbsd-core.lo | |
5132 | ;; | |
5133 | rs6000-*-lynx*) COREFILE=lynx-core.lo ;; | |
653f71ca KB |
5134 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
5135 | COREFILE=rs6000-core.lo | |
5136 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
5137 | ;; | |
252b5132 RH |
5138 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
5139 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
5140 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
5141 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
5142 | powerpc-*-beos*) ;; | |
d4af9775 | 5143 | powerpc-*-freebsd*) COREFILE='' ;; |
252b5132 | 5144 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 5145 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 5146 | s390*-*-*) COREFILE=trad-core.lo ;; |
252b5132 RH |
5147 | sparc-*-netbsd* | sparc-*-openbsd*) |
5148 | COREFILE=netbsd-core.lo | |
5149 | ;; | |
5150 | tahoe-*-*) | |
5151 | COREFILE=trad-core.lo | |
5152 | TRAD_HEADER='"hosts/tahoe.h"' | |
5153 | ;; | |
5154 | vax-*-ultrix2*) | |
5155 | COREFILE=trad-core.lo | |
5156 | TRAD_HEADER='"hosts/vaxult2.h"' | |
5157 | ;; | |
5158 | vax-*-ultrix*) | |
5159 | COREFILE=trad-core.lo | |
5160 | TRAD_HEADER='"hosts/vaxult2.h"' | |
5161 | ;; | |
5162 | vax-*-*) | |
5163 | COREFILE=trad-core.lo | |
5164 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
5165 | ;; | |
5166 | esac | |
5167 | ||
5168 | case "$COREFILE" in | |
5169 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
5170 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
5171 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
5172 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
5173 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
5174 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
5175 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
5176 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
5177 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
5178 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
5179 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
5180 | esac | |
5181 | ||
5182 | # ELF corefile support has several flavors, but all of | |
5183 | # them use something called <sys/procfs.h> | |
6be7c12c | 5184 | for ac_hdr in sys/procfs.h |
252b5132 | 5185 | do |
6be7c12c AO |
5186 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5187 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2858ef35 | 5188 | echo "configure:5189: checking for $ac_hdr" >&5 |
6be7c12c AO |
5189 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5191 | else | |
5192 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 5193 | #line 5194 "configure" |
252b5132 | 5194 | #include "confdefs.h" |
6be7c12c AO |
5195 | #include <$ac_hdr> |
5196 | EOF | |
5197 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2858ef35 | 5198 | { (eval echo configure:5199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
5199 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5200 | if test -z "$ac_err"; then | |
5201 | rm -rf conftest* | |
5202 | eval "ac_cv_header_$ac_safe=yes" | |
252b5132 | 5203 | else |
6be7c12c AO |
5204 | echo "$ac_err" >&5 |
5205 | echo "configure: failed program was:" >&5 | |
252b5132 | 5206 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
5207 | rm -rf conftest* |
5208 | eval "ac_cv_header_$ac_safe=no" | |
252b5132 | 5209 | fi |
6be7c12c | 5210 | rm -f conftest* |
252b5132 | 5211 | fi |
6be7c12c AO |
5212 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5213 | echo "$ac_t""yes" 1>&6 | |
5214 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5215 | cat >> confdefs.h <<EOF | |
5216 | #define $ac_tr_hdr 1 | |
252b5132 | 5217 | EOF |
6be7c12c AO |
5218 | |
5219 | else | |
5220 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
5221 | fi |
5222 | done | |
5223 | ||
5224 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
6be7c12c | 5225 | echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5226 | echo "configure:5227: checking for prstatus_t in sys/procfs.h" >&5 |
6be7c12c AO |
5227 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then |
5228 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 5229 | else |
6be7c12c | 5230 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5231 | #line 5232 "configure" |
252b5132 | 5232 | #include "confdefs.h" |
7ee38065 MS |
5233 | |
5234 | #define _SYSCALL32 | |
252b5132 | 5235 | #include <sys/procfs.h> |
6be7c12c | 5236 | int main() { |
252b5132 | 5237 | prstatus_t avar |
6be7c12c AO |
5238 | ; return 0; } |
5239 | EOF | |
2858ef35 | 5240 | if { (eval echo configure:5241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5241 | rm -rf conftest* |
252b5132 RH |
5242 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
5243 | else | |
6be7c12c AO |
5244 | echo "configure: failed program was:" >&5 |
5245 | cat conftest.$ac_ext >&5 | |
5246 | rm -rf conftest* | |
5247 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
5248 | ||
252b5132 | 5249 | fi |
6be7c12c | 5250 | rm -f conftest* |
252b5132 RH |
5251 | fi |
5252 | ||
5253 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
6be7c12c | 5254 | cat >> confdefs.h <<\EOF |
252b5132 RH |
5255 | #define HAVE_PRSTATUS_T 1 |
5256 | EOF | |
5257 | ||
5258 | fi | |
6be7c12c | 5259 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6 |
252b5132 | 5260 | |
6be7c12c | 5261 | echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5262 | echo "configure:5263: checking for prstatus32_t in sys/procfs.h" >&5 |
6be7c12c AO |
5263 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then |
5264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ee38065 | 5265 | else |
6be7c12c | 5266 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5267 | #line 5268 "configure" |
7ee38065 MS |
5268 | #include "confdefs.h" |
5269 | ||
5270 | #define _SYSCALL32 | |
5271 | #include <sys/procfs.h> | |
6be7c12c | 5272 | int main() { |
7ee38065 | 5273 | prstatus32_t avar |
6be7c12c AO |
5274 | ; return 0; } |
5275 | EOF | |
2858ef35 | 5276 | if { (eval echo configure:5277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5277 | rm -rf conftest* |
7ee38065 MS |
5278 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
5279 | else | |
6be7c12c AO |
5280 | echo "configure: failed program was:" >&5 |
5281 | cat conftest.$ac_ext >&5 | |
5282 | rm -rf conftest* | |
5283 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
5284 | ||
7ee38065 | 5285 | fi |
6be7c12c | 5286 | rm -f conftest* |
7ee38065 MS |
5287 | fi |
5288 | ||
5289 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
6be7c12c | 5290 | cat >> confdefs.h <<\EOF |
7ee38065 MS |
5291 | #define HAVE_PRSTATUS32_T 1 |
5292 | EOF | |
5293 | ||
5294 | fi | |
6be7c12c | 5295 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6 |
7ee38065 | 5296 | |
6be7c12c | 5297 | echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5298 | echo "configure:5299: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
6be7c12c AO |
5299 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then |
5300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 5301 | else |
6be7c12c | 5302 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5303 | #line 5304 "configure" |
252b5132 | 5304 | #include "confdefs.h" |
7ee38065 MS |
5305 | |
5306 | #define _SYSCALL32 | |
252b5132 | 5307 | #include <sys/procfs.h> |
6be7c12c | 5308 | int main() { |
252b5132 | 5309 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
6be7c12c AO |
5310 | ; return 0; } |
5311 | EOF | |
2858ef35 | 5312 | if { (eval echo configure:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5313 | rm -rf conftest* |
252b5132 RH |
5314 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
5315 | else | |
6be7c12c AO |
5316 | echo "configure: failed program was:" >&5 |
5317 | cat conftest.$ac_ext >&5 | |
5318 | rm -rf conftest* | |
5319 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
5320 | ||
252b5132 | 5321 | fi |
6be7c12c | 5322 | rm -f conftest* |
252b5132 RH |
5323 | fi |
5324 | ||
5325 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
6be7c12c | 5326 | cat >> confdefs.h <<\EOF |
252b5132 RH |
5327 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
5328 | EOF | |
5329 | ||
5330 | fi | |
6be7c12c | 5331 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6 |
252b5132 | 5332 | |
6be7c12c | 5333 | echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5334 | echo "configure:5335: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
6be7c12c AO |
5335 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then |
5336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ee38065 | 5337 | else |
6be7c12c | 5338 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5339 | #line 5340 "configure" |
7ee38065 MS |
5340 | #include "confdefs.h" |
5341 | ||
5342 | #define _SYSCALL32 | |
5343 | #include <sys/procfs.h> | |
6be7c12c | 5344 | int main() { |
7ee38065 | 5345 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
6be7c12c AO |
5346 | ; return 0; } |
5347 | EOF | |
2858ef35 | 5348 | if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5349 | rm -rf conftest* |
7ee38065 MS |
5350 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
5351 | else | |
6be7c12c AO |
5352 | echo "configure: failed program was:" >&5 |
5353 | cat conftest.$ac_ext >&5 | |
5354 | rm -rf conftest* | |
5355 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
5356 | ||
7ee38065 | 5357 | fi |
6be7c12c | 5358 | rm -f conftest* |
7ee38065 MS |
5359 | fi |
5360 | ||
5361 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
6be7c12c | 5362 | cat >> confdefs.h <<\EOF |
7ee38065 MS |
5363 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
5364 | EOF | |
5365 | ||
5366 | fi | |
6be7c12c | 5367 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6 |
7ee38065 | 5368 | |
6be7c12c | 5369 | echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5370 | echo "configure:5371: checking for pstatus_t in sys/procfs.h" >&5 |
6be7c12c AO |
5371 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then |
5372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 5373 | else |
6be7c12c | 5374 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5375 | #line 5376 "configure" |
252b5132 | 5376 | #include "confdefs.h" |
7ee38065 MS |
5377 | |
5378 | #define _SYSCALL32 | |
252b5132 | 5379 | #include <sys/procfs.h> |
6be7c12c | 5380 | int main() { |
252b5132 | 5381 | pstatus_t avar |
6be7c12c AO |
5382 | ; return 0; } |
5383 | EOF | |
2858ef35 | 5384 | if { (eval echo configure:5385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5385 | rm -rf conftest* |
252b5132 RH |
5386 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
5387 | else | |
6be7c12c AO |
5388 | echo "configure: failed program was:" >&5 |
5389 | cat conftest.$ac_ext >&5 | |
5390 | rm -rf conftest* | |
5391 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
5392 | ||
252b5132 | 5393 | fi |
6be7c12c | 5394 | rm -f conftest* |
252b5132 RH |
5395 | fi |
5396 | ||
5397 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
6be7c12c | 5398 | cat >> confdefs.h <<\EOF |
252b5132 RH |
5399 | #define HAVE_PSTATUS_T 1 |
5400 | EOF | |
5401 | ||
5402 | fi | |
6be7c12c | 5403 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6 |
252b5132 | 5404 | |
6be7c12c | 5405 | echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5406 | echo "configure:5407: checking for pxstatus_t in sys/procfs.h" >&5 |
6be7c12c AO |
5407 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then |
5408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f572a39d | 5409 | else |
6be7c12c | 5410 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5411 | #line 5412 "configure" |
f572a39d AM |
5412 | #include "confdefs.h" |
5413 | ||
5414 | #define _SYSCALL32 | |
5415 | #include <sys/procfs.h> | |
6be7c12c | 5416 | int main() { |
f572a39d | 5417 | pxstatus_t avar |
6be7c12c AO |
5418 | ; return 0; } |
5419 | EOF | |
2858ef35 | 5420 | if { (eval echo configure:5421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5421 | rm -rf conftest* |
f572a39d AM |
5422 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
5423 | else | |
6be7c12c AO |
5424 | echo "configure: failed program was:" >&5 |
5425 | cat conftest.$ac_ext >&5 | |
5426 | rm -rf conftest* | |
5427 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
5428 | ||
f572a39d | 5429 | fi |
6be7c12c | 5430 | rm -f conftest* |
f572a39d AM |
5431 | fi |
5432 | ||
5433 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
6be7c12c | 5434 | cat >> confdefs.h <<\EOF |
f572a39d AM |
5435 | #define HAVE_PXSTATUS_T 1 |
5436 | EOF | |
5437 | ||
5438 | fi | |
6be7c12c | 5439 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6 |
f572a39d | 5440 | |
6be7c12c | 5441 | echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5442 | echo "configure:5443: checking for pstatus32_t in sys/procfs.h" >&5 |
6be7c12c AO |
5443 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then |
5444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ee38065 | 5445 | else |
6be7c12c | 5446 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5447 | #line 5448 "configure" |
7ee38065 MS |
5448 | #include "confdefs.h" |
5449 | ||
5450 | #define _SYSCALL32 | |
5451 | #include <sys/procfs.h> | |
6be7c12c | 5452 | int main() { |
7ee38065 | 5453 | pstatus32_t avar |
6be7c12c AO |
5454 | ; return 0; } |
5455 | EOF | |
2858ef35 | 5456 | if { (eval echo configure:5457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5457 | rm -rf conftest* |
7ee38065 MS |
5458 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
5459 | else | |
6be7c12c AO |
5460 | echo "configure: failed program was:" >&5 |
5461 | cat conftest.$ac_ext >&5 | |
5462 | rm -rf conftest* | |
5463 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
5464 | ||
7ee38065 | 5465 | fi |
6be7c12c | 5466 | rm -f conftest* |
7ee38065 MS |
5467 | fi |
5468 | ||
5469 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
6be7c12c | 5470 | cat >> confdefs.h <<\EOF |
7ee38065 MS |
5471 | #define HAVE_PSTATUS32_T 1 |
5472 | EOF | |
5473 | ||
5474 | fi | |
6be7c12c | 5475 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6 |
7ee38065 | 5476 | |
6be7c12c | 5477 | echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5478 | echo "configure:5479: checking for prpsinfo_t in sys/procfs.h" >&5 |
6be7c12c AO |
5479 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then |
5480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 5481 | else |
6be7c12c | 5482 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5483 | #line 5484 "configure" |
252b5132 | 5484 | #include "confdefs.h" |
7ee38065 MS |
5485 | |
5486 | #define _SYSCALL32 | |
252b5132 | 5487 | #include <sys/procfs.h> |
6be7c12c | 5488 | int main() { |
252b5132 | 5489 | prpsinfo_t avar |
6be7c12c AO |
5490 | ; return 0; } |
5491 | EOF | |
2858ef35 | 5492 | if { (eval echo configure:5493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5493 | rm -rf conftest* |
252b5132 RH |
5494 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
5495 | else | |
6be7c12c AO |
5496 | echo "configure: failed program was:" >&5 |
5497 | cat conftest.$ac_ext >&5 | |
5498 | rm -rf conftest* | |
5499 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
5500 | ||
252b5132 | 5501 | fi |
6be7c12c | 5502 | rm -f conftest* |
252b5132 RH |
5503 | fi |
5504 | ||
5505 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
6be7c12c | 5506 | cat >> confdefs.h <<\EOF |
252b5132 RH |
5507 | #define HAVE_PRPSINFO_T 1 |
5508 | EOF | |
5509 | ||
5510 | fi | |
6be7c12c | 5511 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6 |
252b5132 | 5512 | |
6be7c12c | 5513 | echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5514 | echo "configure:5515: checking for prpsinfo32_t in sys/procfs.h" >&5 |
6be7c12c AO |
5515 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then |
5516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ee38065 | 5517 | else |
6be7c12c | 5518 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5519 | #line 5520 "configure" |
7ee38065 MS |
5520 | #include "confdefs.h" |
5521 | ||
5522 | #define _SYSCALL32 | |
5523 | #include <sys/procfs.h> | |
6be7c12c | 5524 | int main() { |
7ee38065 | 5525 | prpsinfo32_t avar |
6be7c12c AO |
5526 | ; return 0; } |
5527 | EOF | |
2858ef35 | 5528 | if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5529 | rm -rf conftest* |
7ee38065 MS |
5530 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
5531 | else | |
6be7c12c AO |
5532 | echo "configure: failed program was:" >&5 |
5533 | cat conftest.$ac_ext >&5 | |
5534 | rm -rf conftest* | |
5535 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
5536 | ||
7ee38065 | 5537 | fi |
6be7c12c | 5538 | rm -f conftest* |
7ee38065 MS |
5539 | fi |
5540 | ||
5541 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
6be7c12c | 5542 | cat >> confdefs.h <<\EOF |
7ee38065 MS |
5543 | #define HAVE_PRPSINFO32_T 1 |
5544 | EOF | |
5545 | ||
5546 | fi | |
6be7c12c | 5547 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6 |
7ee38065 | 5548 | |
6be7c12c | 5549 | echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5550 | echo "configure:5551: checking for psinfo_t in sys/procfs.h" >&5 |
6be7c12c AO |
5551 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then |
5552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 5553 | else |
6be7c12c | 5554 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5555 | #line 5556 "configure" |
252b5132 | 5556 | #include "confdefs.h" |
7ee38065 MS |
5557 | |
5558 | #define _SYSCALL32 | |
252b5132 | 5559 | #include <sys/procfs.h> |
6be7c12c | 5560 | int main() { |
252b5132 | 5561 | psinfo_t avar |
6be7c12c AO |
5562 | ; return 0; } |
5563 | EOF | |
2858ef35 | 5564 | if { (eval echo configure:5565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5565 | rm -rf conftest* |
252b5132 RH |
5566 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
5567 | else | |
6be7c12c AO |
5568 | echo "configure: failed program was:" >&5 |
5569 | cat conftest.$ac_ext >&5 | |
5570 | rm -rf conftest* | |
5571 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
5572 | ||
252b5132 | 5573 | fi |
6be7c12c | 5574 | rm -f conftest* |
252b5132 RH |
5575 | fi |
5576 | ||
5577 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
6be7c12c | 5578 | cat >> confdefs.h <<\EOF |
252b5132 RH |
5579 | #define HAVE_PSINFO_T 1 |
5580 | EOF | |
5581 | ||
5582 | fi | |
6be7c12c | 5583 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6 |
252b5132 | 5584 | |
6be7c12c | 5585 | echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5586 | echo "configure:5587: checking for psinfo32_t in sys/procfs.h" >&5 |
6be7c12c AO |
5587 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then |
5588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ee38065 | 5589 | else |
6be7c12c | 5590 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5591 | #line 5592 "configure" |
7ee38065 MS |
5592 | #include "confdefs.h" |
5593 | ||
5594 | #define _SYSCALL32 | |
5595 | #include <sys/procfs.h> | |
6be7c12c | 5596 | int main() { |
7ee38065 | 5597 | psinfo32_t avar |
6be7c12c AO |
5598 | ; return 0; } |
5599 | EOF | |
2858ef35 | 5600 | if { (eval echo configure:5601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5601 | rm -rf conftest* |
7ee38065 MS |
5602 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
5603 | else | |
6be7c12c AO |
5604 | echo "configure: failed program was:" >&5 |
5605 | cat conftest.$ac_ext >&5 | |
5606 | rm -rf conftest* | |
5607 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
5608 | ||
7ee38065 | 5609 | fi |
6be7c12c | 5610 | rm -f conftest* |
7ee38065 MS |
5611 | fi |
5612 | ||
5613 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
6be7c12c | 5614 | cat >> confdefs.h <<\EOF |
7ee38065 MS |
5615 | #define HAVE_PSINFO32_T 1 |
5616 | EOF | |
5617 | ||
5618 | fi | |
6be7c12c | 5619 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6 |
7ee38065 | 5620 | |
6be7c12c | 5621 | echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5622 | echo "configure:5623: checking for lwpstatus_t in sys/procfs.h" >&5 |
6be7c12c AO |
5623 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then |
5624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 5625 | else |
6be7c12c | 5626 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5627 | #line 5628 "configure" |
252b5132 | 5628 | #include "confdefs.h" |
7ee38065 MS |
5629 | |
5630 | #define _SYSCALL32 | |
252b5132 | 5631 | #include <sys/procfs.h> |
6be7c12c | 5632 | int main() { |
252b5132 | 5633 | lwpstatus_t avar |
6be7c12c AO |
5634 | ; return 0; } |
5635 | EOF | |
2858ef35 | 5636 | if { (eval echo configure:5637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5637 | rm -rf conftest* |
252b5132 RH |
5638 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
5639 | else | |
6be7c12c AO |
5640 | echo "configure: failed program was:" >&5 |
5641 | cat conftest.$ac_ext >&5 | |
5642 | rm -rf conftest* | |
5643 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
5644 | ||
252b5132 | 5645 | fi |
6be7c12c | 5646 | rm -f conftest* |
252b5132 RH |
5647 | fi |
5648 | ||
5649 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
6be7c12c | 5650 | cat >> confdefs.h <<\EOF |
252b5132 RH |
5651 | #define HAVE_LWPSTATUS_T 1 |
5652 | EOF | |
5653 | ||
5654 | fi | |
6be7c12c | 5655 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6 |
252b5132 | 5656 | |
6be7c12c | 5657 | echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5658 | echo "configure:5659: checking for lwpxstatus_t in sys/procfs.h" >&5 |
6be7c12c AO |
5659 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then |
5660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f572a39d | 5661 | else |
6be7c12c | 5662 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5663 | #line 5664 "configure" |
f572a39d AM |
5664 | #include "confdefs.h" |
5665 | ||
5666 | #define _SYSCALL32 | |
5667 | #include <sys/procfs.h> | |
6be7c12c | 5668 | int main() { |
f572a39d | 5669 | lwpxstatus_t avar |
6be7c12c AO |
5670 | ; return 0; } |
5671 | EOF | |
2858ef35 | 5672 | if { (eval echo configure:5673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5673 | rm -rf conftest* |
f572a39d AM |
5674 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
5675 | else | |
6be7c12c AO |
5676 | echo "configure: failed program was:" >&5 |
5677 | cat conftest.$ac_ext >&5 | |
5678 | rm -rf conftest* | |
5679 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
5680 | ||
f572a39d | 5681 | fi |
6be7c12c | 5682 | rm -f conftest* |
f572a39d AM |
5683 | fi |
5684 | ||
5685 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
6be7c12c | 5686 | cat >> confdefs.h <<\EOF |
f572a39d AM |
5687 | #define HAVE_LWPXSTATUS_T 1 |
5688 | EOF | |
5689 | ||
5690 | fi | |
6be7c12c | 5691 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6 |
f572a39d | 5692 | |
6be7c12c | 5693 | echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5694 | echo "configure:5695: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
6be7c12c AO |
5695 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then |
5696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 5697 | else |
6be7c12c | 5698 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5699 | #line 5700 "configure" |
252b5132 | 5700 | #include "confdefs.h" |
7ee38065 MS |
5701 | |
5702 | #define _SYSCALL32 | |
252b5132 | 5703 | #include <sys/procfs.h> |
6be7c12c | 5704 | int main() { |
252b5132 | 5705 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
6be7c12c AO |
5706 | ; return 0; } |
5707 | EOF | |
2858ef35 | 5708 | if { (eval echo configure:5709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5709 | rm -rf conftest* |
252b5132 RH |
5710 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
5711 | else | |
6be7c12c AO |
5712 | echo "configure: failed program was:" >&5 |
5713 | cat conftest.$ac_ext >&5 | |
5714 | rm -rf conftest* | |
5715 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
5716 | ||
252b5132 | 5717 | fi |
6be7c12c | 5718 | rm -f conftest* |
252b5132 RH |
5719 | fi |
5720 | ||
5721 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
6be7c12c | 5722 | cat >> confdefs.h <<\EOF |
252b5132 RH |
5723 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
5724 | EOF | |
5725 | ||
5726 | fi | |
6be7c12c | 5727 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6 |
252b5132 | 5728 | |
6be7c12c | 5729 | echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5730 | echo "configure:5731: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
6be7c12c AO |
5731 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then |
5732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 | 5733 | else |
6be7c12c | 5734 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5735 | #line 5736 "configure" |
252b5132 | 5736 | #include "confdefs.h" |
7ee38065 MS |
5737 | |
5738 | #define _SYSCALL32 | |
252b5132 | 5739 | #include <sys/procfs.h> |
6be7c12c | 5740 | int main() { |
252b5132 | 5741 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
6be7c12c AO |
5742 | ; return 0; } |
5743 | EOF | |
2858ef35 | 5744 | if { (eval echo configure:5745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5745 | rm -rf conftest* |
252b5132 RH |
5746 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
5747 | else | |
6be7c12c AO |
5748 | echo "configure: failed program was:" >&5 |
5749 | cat conftest.$ac_ext >&5 | |
5750 | rm -rf conftest* | |
5751 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
5752 | ||
252b5132 | 5753 | fi |
6be7c12c | 5754 | rm -f conftest* |
252b5132 RH |
5755 | fi |
5756 | ||
5757 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
6be7c12c | 5758 | cat >> confdefs.h <<\EOF |
252b5132 RH |
5759 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
5760 | EOF | |
5761 | ||
5762 | fi | |
6be7c12c | 5763 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6 |
252b5132 | 5764 | |
6be7c12c | 5765 | echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
2858ef35 | 5766 | echo "configure:5767: checking for win32_pstatus_t in sys/procfs.h" >&5 |
6be7c12c AO |
5767 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then |
5768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
e3c976c4 | 5769 | else |
6be7c12c | 5770 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 5771 | #line 5772 "configure" |
e3c976c4 | 5772 | #include "confdefs.h" |
7ee38065 MS |
5773 | |
5774 | #define _SYSCALL32 | |
e3c976c4 | 5775 | #include <sys/procfs.h> |
6be7c12c | 5776 | int main() { |
e3c976c4 | 5777 | win32_pstatus_t avar |
6be7c12c AO |
5778 | ; return 0; } |
5779 | EOF | |
2858ef35 | 5780 | if { (eval echo configure:5781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6be7c12c | 5781 | rm -rf conftest* |
e3c976c4 ILT |
5782 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
5783 | else | |
6be7c12c AO |
5784 | echo "configure: failed program was:" >&5 |
5785 | cat conftest.$ac_ext >&5 | |
5786 | rm -rf conftest* | |
5787 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
5788 | ||
e3c976c4 | 5789 | fi |
6be7c12c | 5790 | rm -f conftest* |
252b5132 RH |
5791 | fi |
5792 | ||
e3c976c4 | 5793 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
6be7c12c | 5794 | cat >> confdefs.h <<\EOF |
e3c976c4 | 5795 | #define HAVE_WIN32_PSTATUS_T 1 |
16e9c715 NC |
5796 | EOF |
5797 | ||
5798 | fi | |
6be7c12c | 5799 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6 |
e3c976c4 ILT |
5800 | |
5801 | fi | |
5802 | fi | |
16e9c715 | 5803 | |
b3baf5d0 | 5804 | |
6be7c12c AO |
5805 | if test -n "$TRAD_HEADER"; then |
5806 | cat >> confdefs.h <<EOF | |
252b5132 RH |
5807 | #define TRAD_HEADER $TRAD_HEADER |
5808 | EOF | |
5809 | ||
3f9b03b5 | 5810 | fi |
252b5132 RH |
5811 | |
5812 | # Horrible hacks to build DLLs on Windows. | |
5813 | WIN32LDFLAGS= | |
5814 | WIN32LIBADD= | |
5815 | case "${host}" in | |
5816 | *-*-cygwin*) | |
5817 | if test "$enable_shared" = "yes"; then | |
5818 | WIN32LDFLAGS="-no-undefined" | |
5819 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
5820 | fi | |
5821 | ;; | |
78be1d6e | 5822 | *-*-linux*) |
39691762 L |
5823 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on |
5824 | # libiberty.a. | |
ca51bfff L |
5825 | case "${host}" in |
5826 | mips*-*-linux*) | |
5827 | # Linux/MIPS uses PIC by default. | |
5828 | if test "$enable_shared" = "yes"; then | |
5829 | WIN32LIBADD="-L../libiberty -liberty" | |
5830 | fi | |
5831 | ;; | |
5832 | *) | |
5833 | PICFLAG= | |
5834 | eval `grep "^[ ]*PICFLAG[ ]*=" ../libiberty/Makefile | sed -e "s/[ ]*//g"` | |
5835 | if test -n "$PICFLAG"; then | |
5836 | WIN32LIBADD="-L../libiberty/pic -liberty" | |
5837 | fi | |
5838 | ;; | |
5839 | esac | |
39691762 | 5840 | ;; |
252b5132 RH |
5841 | esac |
5842 | ||
6be7c12c AO |
5843 | |
5844 | ||
252b5132 RH |
5845 | # target stuff: |
5846 | ||
5847 | # Canonicalize the secondary target names. | |
5848 | if test -n "$enable_targets" ; then | |
5849 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
5850 | do | |
6d83c84b | 5851 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
5852 | if test -n "$result" ; then |
5853 | canon_targets="$canon_targets $result" | |
5854 | else | |
5855 | # Allow targets that config.sub doesn't recognize, like "all". | |
5856 | canon_targets="$canon_targets $targ" | |
5857 | fi | |
5858 | done | |
5859 | fi | |
5860 | ||
5861 | all_targets=false | |
5862 | defvec= | |
5863 | selvecs= | |
5864 | selarchs= | |
5865 | TDEFINES= | |
5866 | for targ in $target $canon_targets | |
5867 | do | |
5868 | if test "x$targ" = "xall"; then | |
5869 | all_targets=true | |
5870 | else | |
5871 | . $srcdir/config.bfd | |
5872 | if test "x$targ" = "x$target"; then | |
5873 | defvec=$targ_defvec | |
5874 | fi | |
5875 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
5876 | selarchs="$selarchs $targ_archs" | |
5877 | TDEFINES="$TDEFINES $targ_cflags" | |
5878 | fi | |
5879 | done | |
5880 | ||
6be7c12c | 5881 | |
252b5132 RH |
5882 | # This processing still needs to be done if we're to decide properly whether |
5883 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
5884 | # the default or any other explicitly requested target requires it; it | |
5885 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 5886 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
5887 | # used. |
5888 | ||
5889 | # uniq the default and selected vectors in all the configured targets. | |
5890 | f="" | |
5891 | for i in $selvecs ; do | |
5892 | case " $f " in | |
5893 | *" $i "*) ;; | |
5894 | *) f="$f $i" ;; | |
5895 | esac | |
5896 | done | |
5897 | selvecs="$f" | |
5898 | ||
6be7c12c | 5899 | |
252b5132 RH |
5900 | # uniq the architectures in all the configured targets. |
5901 | f="" | |
5902 | for i in $selarchs ; do | |
5903 | case " $f " in | |
5904 | *" $i "*) ;; | |
5905 | *) f="$f $i" ;; | |
5906 | esac | |
5907 | done | |
5908 | selarchs="$f" | |
5909 | ||
5910 | # Target backend .o files. | |
5911 | tb= | |
5912 | ||
2b0f7ef9 | 5913 | elf="elf.lo elflink.lo elf-strtab.lo dwarf1.lo" |
252b5132 RH |
5914 | |
5915 | for vec in $selvecs | |
5916 | do | |
69263e90 | 5917 | target_size=32 |
252b5132 RH |
5918 | case "$vec" in |
5919 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
5920 | # with the two vector lists in targets.c. For the same reason, |
5921 | # use one entry per line, even though this leads to long lines. | |
252b5132 RH |
5922 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; |
5923 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; | |
252b5132 RH |
5924 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
5925 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
5926 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
5927 | aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;; | |
5928 | aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;; | |
5929 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; | |
dc810e39 AM |
5930 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
5931 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
5932 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
5933 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
5934 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
5935 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
5936 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
5937 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
5938 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
5939 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
5940 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
5941 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
5942 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 5943 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
dc810e39 | 5944 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
adde6300 | 5945 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
dc810e39 | 5946 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 5947 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
252b5132 | 5948 | bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; |
dc810e39 | 5949 | bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; |
252b5132 | 5950 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; |
06c15ad7 | 5951 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 RH |
5952 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
5953 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
5954 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; | |
e01b0e69 | 5955 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 AM |
5956 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5957 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; | |
5b93d8bb | 5958 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
252b5132 | 5959 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; |
9d751335 | 5960 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 5961 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 5962 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
dc810e39 | 5963 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
252b5132 | 5964 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 AM |
5965 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
5966 | bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; | |
5967 | bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; | |
252b5132 | 5968 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; |
252b5132 | 5969 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
60bcf0fa NC |
5970 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;; |
5971 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;; | |
252b5132 RH |
5972 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
5973 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
5974 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
5975 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
5976 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; | |
5977 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
b3baf5d0 | 5978 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
0bcb993b ILT |
5979 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
5980 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
252b5132 RH |
5981 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; |
5982 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; | |
a85d7ed0 | 5983 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
252b5132 | 5984 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; |
dc810e39 | 5985 | bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
252b5132 | 5986 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; |
b129bfef | 5987 | bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
252b5132 | 5988 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; |
dd745cfa UC |
5989 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; |
5990 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 5991 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 5992 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
dc810e39 AM |
5993 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
5994 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
5995 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
5996 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
5997 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
5998 | bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
5999 | bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
6000 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
6001 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
6002 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
6003 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
3c3bdf30 | 6004 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
6005 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
6006 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
6007 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | |
6008 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;; | |
6009 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size=64 ;; | |
6010 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size=64 ;; | |
6011 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; | |
3c3bdf30 | 6012 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
6013 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
6014 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
6015 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
6016 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
f4bda984 RH |
6017 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; |
6018 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
06c15ad7 | 6019 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 6020 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 6021 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 6022 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
6023 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
6024 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
6025 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
6026 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
6027 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
6028 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
6029 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
6030 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
6031 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
6032 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
6033 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
6034 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
6035 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; | |
6036 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
6037 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
6038 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
6039 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
6040 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 6041 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
6042 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
6043 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
6044 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
6045 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
6046 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
6047 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
6048 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
6049 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
6050 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
6051 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
6052 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
6053 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
6054 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
6055 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; | |
6056 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; | |
6057 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; | |
252b5132 RH |
6058 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
6059 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
277d1b5e ILT |
6060 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
6061 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
6062 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
6063 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
6064 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
6065 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 6066 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 6067 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 6068 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 6069 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 6070 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
252b5132 | 6071 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 6072 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
e135f41b | 6073 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
6768c14a | 6074 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 6075 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 AM |
6076 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
6077 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"; target_size=64 ;; | |
6078 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; | |
252b5132 | 6079 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 6080 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 6081 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 6082 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
6083 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
6084 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 6085 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 6086 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
6087 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
6088 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
6089 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
6090 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
6091 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 RH |
6092 | srec_vec) tb="$tb srec.lo" ;; |
6093 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; | |
6094 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
6095 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
6096 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; | |
6097 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
81635ce4 | 6098 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 6099 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 6100 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 6101 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 6102 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 6103 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 RH |
6104 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
6105 | versados_vec) tb="$tb versados.lo" ;; | |
dc810e39 | 6106 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; |
252b5132 RH |
6107 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; |
6108 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
6109 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
6110 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; | |
6111 | ||
6112 | "") ;; | |
6be7c12c | 6113 | *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;; |
252b5132 | 6114 | esac |
69263e90 AM |
6115 | |
6116 | if test ${target_size} = 64; then | |
6117 | target64=true | |
6118 | fi | |
6119 | if test x"${vec}" = x"${defvec}"; then | |
6120 | bfd_default_target_size=${target_size} | |
6121 | fi | |
252b5132 RH |
6122 | done |
6123 | ||
6124 | # Target architecture .o files. | |
6125 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
6126 | # filesystems. | |
6127 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` | |
6128 | ||
6129 | # Weed out duplicate .o files. | |
6130 | f="" | |
6131 | for i in $tb ; do | |
6132 | case " $f " in | |
6133 | *" $i "*) ;; | |
6134 | *) f="$f $i" ;; | |
6135 | esac | |
6136 | done | |
6137 | tb="$f" | |
6138 | ||
6139 | f="" | |
6140 | for i in $ta ; do | |
6141 | case " $f " in | |
6142 | *" $i "*) ;; | |
6143 | *) f="$f $i" ;; | |
6144 | esac | |
6145 | done | |
6146 | ta="$f" | |
6147 | ||
6148 | bfd_backends="$tb" | |
6149 | bfd_machines="$ta" | |
6150 | ||
6151 | if test x${all_targets} = xtrue ; then | |
6152 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
6153 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
6154 | selvecs= | |
6155 | havevecs= | |
6156 | selarchs= | |
6157 | else # all_targets is true | |
6158 | # Only set these if they will be nonempty, for the clever echo. | |
6159 | havevecs= | |
6160 | test -n "$selvecs" && | |
6161 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
6162 | test -n "$selvecs" && | |
6163 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
6164 | test -n "$selarchs" && | |
6165 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
6166 | fi # all_targets is true | |
6167 | ||
6168 | case ${host64}-${target64}-${want64} in | |
6169 | *true*) | |
6170 | wordsize=64 | |
2858ef35 | 6171 | bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)' |
252b5132 RH |
6172 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
6173 | if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then | |
6be7c12c AO |
6174 | echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2 |
6175 | echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2 | |
252b5132 RH |
6176 | fi |
6177 | ;; | |
6178 | false-false-false) | |
6179 | wordsize=32 | |
2858ef35 | 6180 | bfd_libs='$(BFD32_LIBS)' |
252b5132 RH |
6181 | all_backends='$(BFD32_BACKENDS)' |
6182 | ;; | |
6183 | esac | |
6184 | ||
6be7c12c AO |
6185 | |
6186 | ||
6187 | ||
6188 | ||
6189 | ||
69263e90 | 6190 | |
2858ef35 | 6191 | |
252b5132 RH |
6192 | tdefaults="" |
6193 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
6194 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
6195 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" | |
6196 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
6197 | ||
6be7c12c | 6198 | |
2858ef35 | 6199 | for ac_hdr in unistd.h |
252b5132 | 6200 | do |
6be7c12c AO |
6201 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6202 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2858ef35 | 6203 | echo "configure:6204: checking for $ac_hdr" >&5 |
6be7c12c AO |
6204 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6206 | else | |
6207 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 6208 | #line 6209 "configure" |
252b5132 | 6209 | #include "confdefs.h" |
6be7c12c AO |
6210 | #include <$ac_hdr> |
6211 | EOF | |
6212 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2858ef35 | 6213 | { (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6be7c12c AO |
6214 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6215 | if test -z "$ac_err"; then | |
6216 | rm -rf conftest* | |
6217 | eval "ac_cv_header_$ac_safe=yes" | |
252b5132 | 6218 | else |
6be7c12c AO |
6219 | echo "$ac_err" >&5 |
6220 | echo "configure: failed program was:" >&5 | |
252b5132 | 6221 | cat conftest.$ac_ext >&5 |
6be7c12c AO |
6222 | rm -rf conftest* |
6223 | eval "ac_cv_header_$ac_safe=no" | |
252b5132 | 6224 | fi |
6be7c12c | 6225 | rm -f conftest* |
252b5132 | 6226 | fi |
6be7c12c AO |
6227 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6228 | echo "$ac_t""yes" 1>&6 | |
6229 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6230 | cat >> confdefs.h <<EOF | |
6231 | #define $ac_tr_hdr 1 | |
252b5132 | 6232 | EOF |
6be7c12c AO |
6233 | |
6234 | else | |
6235 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
6236 | fi |
6237 | done | |
6238 | ||
6239 | for ac_func in getpagesize | |
6240 | do | |
6be7c12c | 6241 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2858ef35 | 6242 | echo "configure:6243: checking for $ac_func" >&5 |
6be7c12c AO |
6243 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6245 | else | |
6246 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 6247 | #line 6248 "configure" |
252b5132 RH |
6248 | #include "confdefs.h" |
6249 | /* System header to define __stub macros and hopefully few prototypes, | |
6be7c12c | 6250 | which can conflict with char $ac_func(); below. */ |
252b5132 RH |
6251 | #include <assert.h> |
6252 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6253 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
6254 | builtin and then its argument prototype would still apply. */ |
6255 | char $ac_func(); | |
6256 | ||
6257 | int main() { | |
252b5132 RH |
6258 | |
6259 | /* The GNU C library defines this for functions which it implements | |
6260 | to always fail with ENOSYS. Some functions are actually named | |
6261 | something starting with __ and the normal name is an alias. */ | |
6262 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6263 | choke me | |
6264 | #else | |
6be7c12c | 6265 | $ac_func(); |
252b5132 RH |
6266 | #endif |
6267 | ||
6be7c12c | 6268 | ; return 0; } |
252b5132 | 6269 | EOF |
2858ef35 | 6270 | if { (eval echo configure:6271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
6271 | rm -rf conftest* |
6272 | eval "ac_cv_func_$ac_func=yes" | |
6273 | else | |
6274 | echo "configure: failed program was:" >&5 | |
6275 | cat conftest.$ac_ext >&5 | |
6276 | rm -rf conftest* | |
6277 | eval "ac_cv_func_$ac_func=no" | |
6278 | fi | |
6279 | rm -f conftest* | |
6280 | fi | |
252b5132 | 6281 | |
6be7c12c AO |
6282 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
6283 | echo "$ac_t""yes" 1>&6 | |
6284 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6285 | cat >> confdefs.h <<EOF | |
6286 | #define $ac_tr_func 1 | |
6287 | EOF | |
6288 | ||
6289 | else | |
6290 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
6291 | fi |
6292 | done | |
6293 | ||
6be7c12c | 6294 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
2858ef35 | 6295 | echo "configure:6296: checking for working mmap" >&5 |
6be7c12c AO |
6296 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
6297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
252b5132 RH |
6298 | else |
6299 | if test "$cross_compiling" = yes; then | |
6300 | ac_cv_func_mmap_fixed_mapped=no | |
6301 | else | |
6be7c12c | 6302 | cat > conftest.$ac_ext <<EOF |
2858ef35 | 6303 | #line 6304 "configure" |
252b5132 | 6304 | #include "confdefs.h" |
6be7c12c | 6305 | |
252b5132 RH |
6306 | /* Thanks to Mike Haertel and Jim Avera for this test. |
6307 | Here is a matrix of mmap possibilities: | |
6308 | mmap private not fixed | |
6309 | mmap private fixed at somewhere currently unmapped | |
6310 | mmap private fixed at somewhere already mapped | |
6311 | mmap shared not fixed | |
6312 | mmap shared fixed at somewhere currently unmapped | |
6313 | mmap shared fixed at somewhere already mapped | |
6314 | For private mappings, we should verify that changes cannot be read() | |
6315 | back from the file, nor mmap's back from the file at a different | |
6316 | address. (There have been systems where private was not correctly | |
6317 | implemented like the infamous i386 svr4.0, and systems where the | |
6be7c12c | 6318 | VM page cache was not coherent with the filesystem buffer cache |
252b5132 RH |
6319 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6320 | For shared mappings, we should conversely verify that changes get | |
6321 | propogated back to all the places they're supposed to be. | |
6322 | ||
6323 | Grep wants private fixed already mapped. | |
6324 | The main things grep needs to know about mmap are: | |
6325 | * does it exist and is it safe to write into the mmap'd area | |
6326 | * how to use it (BSD variants) */ | |
6327 | #include <sys/types.h> | |
6328 | #include <fcntl.h> | |
6329 | #include <sys/mman.h> | |
6330 | ||
b3baf5d0 | 6331 | /* This mess was copied from the GNU getpagesize.h. */ |
6be7c12c | 6332 | #ifndef HAVE_GETPAGESIZE |
2858ef35 HPN |
6333 | # ifdef HAVE_UNISTD_H |
6334 | # include <unistd.h> | |
6335 | # endif | |
6be7c12c | 6336 | |
252b5132 | 6337 | /* Assume that all systems that can run configure have sys/param.h. */ |
6be7c12c | 6338 | # ifndef HAVE_SYS_PARAM_H |
252b5132 RH |
6339 | # define HAVE_SYS_PARAM_H 1 |
6340 | # endif | |
6341 | ||
6342 | # ifdef _SC_PAGESIZE | |
6343 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6344 | # else /* no _SC_PAGESIZE */ | |
6be7c12c | 6345 | # ifdef HAVE_SYS_PARAM_H |
252b5132 RH |
6346 | # include <sys/param.h> |
6347 | # ifdef EXEC_PAGESIZE | |
6348 | # define getpagesize() EXEC_PAGESIZE | |
6349 | # else /* no EXEC_PAGESIZE */ | |
6350 | # ifdef NBPG | |
6351 | # define getpagesize() NBPG * CLSIZE | |
6352 | # ifndef CLSIZE | |
6353 | # define CLSIZE 1 | |
6354 | # endif /* no CLSIZE */ | |
6355 | # else /* no NBPG */ | |
6356 | # ifdef NBPC | |
6357 | # define getpagesize() NBPC | |
6358 | # else /* no NBPC */ | |
6359 | # ifdef PAGESIZE | |
6360 | # define getpagesize() PAGESIZE | |
6361 | # endif /* PAGESIZE */ | |
6362 | # endif /* no NBPC */ | |
6363 | # endif /* no NBPG */ | |
6364 | # endif /* no EXEC_PAGESIZE */ | |
6365 | # else /* no HAVE_SYS_PARAM_H */ | |
6366 | # define getpagesize() 8192 /* punt totally */ | |
6367 | # endif /* no HAVE_SYS_PARAM_H */ | |
6368 | # endif /* no _SC_PAGESIZE */ | |
6369 | ||
6370 | #endif /* no HAVE_GETPAGESIZE */ | |
6371 | ||
6be7c12c AO |
6372 | #ifdef __cplusplus |
6373 | extern "C" { void *malloc(unsigned); } | |
6374 | #else | |
6375 | char *malloc(); | |
6376 | #endif | |
6377 | ||
252b5132 | 6378 | int |
6be7c12c | 6379 | main() |
252b5132 | 6380 | { |
6be7c12c AO |
6381 | char *data, *data2, *data3; |
6382 | int i, pagesize; | |
6383 | int fd; | |
6384 | ||
6385 | pagesize = getpagesize(); | |
6386 | ||
6387 | /* | |
6388 | * First, make a file with some known garbage in it. | |
6389 | */ | |
6390 | data = malloc(pagesize); | |
6391 | if (!data) | |
6392 | exit(1); | |
6393 | for (i = 0; i < pagesize; ++i) | |
6394 | *(data + i) = rand(); | |
6395 | umask(0); | |
6396 | fd = creat("conftestmmap", 0600); | |
6397 | if (fd < 0) | |
6398 | exit(1); | |
6399 | if (write(fd, data, pagesize) != pagesize) | |
6400 | exit(1); | |
6401 | close(fd); | |
6402 | ||
6403 | /* | |
6404 | * Next, try to mmap the file at a fixed address which | |
6405 | * already has something else allocated at it. If we can, | |
6406 | * also make sure that we see the same garbage. | |
6407 | */ | |
6408 | fd = open("conftestmmap", O_RDWR); | |
6409 | if (fd < 0) | |
6410 | exit(1); | |
6411 | data2 = malloc(2 * pagesize); | |
6412 | if (!data2) | |
6413 | exit(1); | |
6414 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
6415 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
6416 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6417 | exit(1); | |
6418 | for (i = 0; i < pagesize; ++i) | |
6419 | if (*(data + i) != *(data2 + i)) | |
6420 | exit(1); | |
6421 | ||
6422 | /* | |
6423 | * Finally, make sure that changes to the mapped area | |
6424 | * do not percolate back to the file as seen by read(). | |
6425 | * (This is a bug on some variants of i386 svr4.0.) | |
6426 | */ | |
6427 | for (i = 0; i < pagesize; ++i) | |
6428 | *(data2 + i) = *(data2 + i) + 1; | |
6429 | data3 = malloc(pagesize); | |
6430 | if (!data3) | |
6431 | exit(1); | |
6432 | if (read(fd, data3, pagesize) != pagesize) | |
6433 | exit(1); | |
6434 | for (i = 0; i < pagesize; ++i) | |
6435 | if (*(data + i) != *(data3 + i)) | |
6436 | exit(1); | |
6437 | close(fd); | |
6438 | unlink("conftestmmap"); | |
6439 | exit(0); | |
252b5132 | 6440 | } |
6be7c12c AO |
6441 | |
6442 | EOF | |
2858ef35 | 6443 | if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6be7c12c | 6444 | then |
252b5132 RH |
6445 | ac_cv_func_mmap_fixed_mapped=yes |
6446 | else | |
6be7c12c AO |
6447 | echo "configure: failed program was:" >&5 |
6448 | cat conftest.$ac_ext >&5 | |
6449 | rm -fr conftest* | |
6450 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 6451 | fi |
6be7c12c | 6452 | rm -fr conftest* |
252b5132 | 6453 | fi |
6be7c12c | 6454 | |
252b5132 | 6455 | fi |
b3baf5d0 | 6456 | |
6be7c12c AO |
6457 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
6458 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6459 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
6460 | #define HAVE_MMAP 1 |
6461 | EOF | |
6462 | ||
6463 | fi | |
6464 | ||
6465 | for ac_func in madvise mprotect | |
6466 | do | |
6be7c12c | 6467 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2858ef35 | 6468 | echo "configure:6469: checking for $ac_func" >&5 |
6be7c12c AO |
6469 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6471 | else | |
6472 | cat > conftest.$ac_ext <<EOF | |
2858ef35 | 6473 | #line 6474 "configure" |
252b5132 RH |
6474 | #include "confdefs.h" |
6475 | /* System header to define __stub macros and hopefully few prototypes, | |
6be7c12c | 6476 | which can conflict with char $ac_func(); below. */ |
252b5132 RH |
6477 | #include <assert.h> |
6478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6479 | /* We use char because int might match the return type of a gcc2 | |
6be7c12c AO |
6480 | builtin and then its argument prototype would still apply. */ |
6481 | char $ac_func(); | |
6482 | ||
6483 | int main() { | |
252b5132 RH |
6484 | |
6485 | /* The GNU C library defines this for functions which it implements | |
6486 | to always fail with ENOSYS. Some functions are actually named | |
6487 | something starting with __ and the normal name is an alias. */ | |
6488 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6489 | choke me | |
6490 | #else | |
6be7c12c | 6491 | $ac_func(); |
252b5132 RH |
6492 | #endif |
6493 | ||
6be7c12c | 6494 | ; return 0; } |
252b5132 | 6495 | EOF |
2858ef35 | 6496 | if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6be7c12c AO |
6497 | rm -rf conftest* |
6498 | eval "ac_cv_func_$ac_func=yes" | |
6499 | else | |
6500 | echo "configure: failed program was:" >&5 | |
6501 | cat conftest.$ac_ext >&5 | |
6502 | rm -rf conftest* | |
6503 | eval "ac_cv_func_$ac_func=no" | |
6504 | fi | |
6505 | rm -f conftest* | |
6506 | fi | |
252b5132 | 6507 | |
6be7c12c AO |
6508 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
6509 | echo "$ac_t""yes" 1>&6 | |
6510 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6511 | cat >> confdefs.h <<EOF | |
6512 | #define $ac_tr_func 1 | |
6513 | EOF | |
6514 | ||
6515 | else | |
6516 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
6517 | fi |
6518 | done | |
6519 | ||
6520 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
6be7c12c | 6521 | true+yes ) cat >> confdefs.h <<\EOF |
252b5132 RH |
6522 | #define USE_MMAP 1 |
6523 | EOF | |
6524 | ;; | |
6525 | esac | |
6526 | ||
6527 | rm -f doc/config.status | |
6be7c12c AO |
6528 | trap '' 1 2 15 |
6529 | cat > confcache <<\EOF | |
252b5132 RH |
6530 | # This file is a shell script that caches the results of configure |
6531 | # tests run on this system so they can be shared between configure | |
6be7c12c AO |
6532 | # scripts and configure runs. It is not useful on other systems. |
6533 | # If it contains results you don't want to keep, you may remove or edit it. | |
252b5132 | 6534 | # |
6be7c12c AO |
6535 | # By default, configure uses ./config.cache as the cache file, |
6536 | # creating it if it does not exist already. You can give configure | |
6537 | # the --cache-file=FILE option to use a different cache file; that is | |
6538 | # what configure does when it calls configure scripts in | |
6539 | # subdirectories, so they share the cache. | |
6540 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6541 | # config.status only pays attention to the cache file if you give it the | |
6542 | # --recheck option to rerun configure. | |
252b5132 | 6543 | # |
6be7c12c | 6544 | EOF |
252b5132 RH |
6545 | # The following way of writing the cache mishandles newlines in values, |
6546 | # but we know of no workaround that is simple, portable, and efficient. | |
6547 | # So, don't put newlines in cache variables' values. | |
6548 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6549 | # and sets the high bit in the cache file unless we assign to the vars. | |
6be7c12c AO |
6550 | (set) 2>&1 | |
6551 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6552 | *ac_space=\ *) | |
6553 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6554 | # turns \\\\ into \\, and sed turns \\ into \). | |
6555 | sed -n \ | |
6556 | -e "s/'/'\\\\''/g" \ | |
6557 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6558 | ;; | |
6559 | *) | |
6560 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6561 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6562 | ;; | |
6563 | esac >> confcache | |
6564 | if cmp -s $cache_file confcache; then | |
6565 | : | |
6566 | else | |
252b5132 | 6567 | if test -w $cache_file; then |
6be7c12c AO |
6568 | echo "updating cache $cache_file" |
6569 | cat confcache > $cache_file | |
252b5132 RH |
6570 | else |
6571 | echo "not updating unwritable cache $cache_file" | |
6572 | fi | |
6573 | fi | |
6574 | rm -f confcache | |
6575 | ||
6be7c12c AO |
6576 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
6577 | ||
252b5132 RH |
6578 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6579 | # Let make expand exec_prefix. | |
6580 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6581 | ||
6be7c12c AO |
6582 | # Any assignment to VPATH causes Sun make to only execute |
6583 | # the first set of double-colon rules, so remove it if not needed. | |
6584 | # If there is a colon in the path, we need to keep it. | |
252b5132 | 6585 | if test "x$srcdir" = x.; then |
6be7c12c | 6586 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
252b5132 RH |
6587 | fi |
6588 | ||
6be7c12c AO |
6589 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
6590 | ||
252b5132 RH |
6591 | DEFS=-DHAVE_CONFIG_H |
6592 | ||
6be7c12c | 6593 | # Without the "./", some shells look in PATH for config.status. |
252b5132 | 6594 | : ${CONFIG_STATUS=./config.status} |
6be7c12c AO |
6595 | |
6596 | echo creating $CONFIG_STATUS | |
6597 | rm -f $CONFIG_STATUS | |
6598 | cat > $CONFIG_STATUS <<EOF | |
6599 | #! /bin/sh | |
252b5132 RH |
6600 | # Generated automatically by configure. |
6601 | # Run this file to recreate the current configuration. | |
6be7c12c AO |
6602 | # This directory was configured as follows, |
6603 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6604 | # | |
6605 | # $0 $ac_configure_args | |
6606 | # | |
252b5132 | 6607 | # Compiler output produced by configure, useful for debugging |
6be7c12c | 6608 | # configure, is in ./config.log if it exists. |
b3baf5d0 | 6609 | |
6be7c12c AO |
6610 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
6611 | for ac_option | |
252b5132 | 6612 | do |
6be7c12c | 6613 | case "\$ac_option" in |
252b5132 | 6614 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6be7c12c AO |
6615 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
6616 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6617 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
6618 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
6619 | exit 0 ;; | |
6620 | -help | --help | --hel | --he | --h) | |
6621 | echo "\$ac_cs_usage"; exit 0 ;; | |
6622 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
252b5132 RH |
6623 | esac |
6624 | done | |
6625 | ||
6be7c12c AO |
6626 | ac_given_srcdir=$srcdir |
6627 | ac_given_INSTALL="$INSTALL" | |
b3baf5d0 | 6628 | |
87b632fc | 6629 | trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
b3baf5d0 | 6630 | EOF |
6be7c12c | 6631 | cat >> $CONFIG_STATUS <<EOF |
b3baf5d0 | 6632 | |
6be7c12c AO |
6633 | # Protect against being on the right side of a sed subst in config.status. |
6634 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6635 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
6636 | $ac_vpsub | |
6637 | $extrasub | |
6638 | s%@SHELL@%$SHELL%g | |
6639 | s%@CFLAGS@%$CFLAGS%g | |
6640 | s%@CPPFLAGS@%$CPPFLAGS%g | |
6641 | s%@CXXFLAGS@%$CXXFLAGS%g | |
6642 | s%@FFLAGS@%$FFLAGS%g | |
6643 | s%@DEFS@%$DEFS%g | |
6644 | s%@LDFLAGS@%$LDFLAGS%g | |
6645 | s%@LIBS@%$LIBS%g | |
6646 | s%@exec_prefix@%$exec_prefix%g | |
6647 | s%@prefix@%$prefix%g | |
6648 | s%@program_transform_name@%$program_transform_name%g | |
6649 | s%@bindir@%$bindir%g | |
6650 | s%@sbindir@%$sbindir%g | |
6651 | s%@libexecdir@%$libexecdir%g | |
6652 | s%@datadir@%$datadir%g | |
6653 | s%@sysconfdir@%$sysconfdir%g | |
6654 | s%@sharedstatedir@%$sharedstatedir%g | |
6655 | s%@localstatedir@%$localstatedir%g | |
6656 | s%@libdir@%$libdir%g | |
6657 | s%@includedir@%$includedir%g | |
6658 | s%@oldincludedir@%$oldincludedir%g | |
6659 | s%@infodir@%$infodir%g | |
6660 | s%@mandir@%$mandir%g | |
6661 | s%@host@%$host%g | |
6662 | s%@host_alias@%$host_alias%g | |
6663 | s%@host_cpu@%$host_cpu%g | |
6664 | s%@host_vendor@%$host_vendor%g | |
6665 | s%@host_os@%$host_os%g | |
6666 | s%@target@%$target%g | |
6667 | s%@target_alias@%$target_alias%g | |
6668 | s%@target_cpu@%$target_cpu%g | |
6669 | s%@target_vendor@%$target_vendor%g | |
6670 | s%@target_os@%$target_os%g | |
6671 | s%@build@%$build%g | |
6672 | s%@build_alias@%$build_alias%g | |
6673 | s%@build_cpu@%$build_cpu%g | |
6674 | s%@build_vendor@%$build_vendor%g | |
6675 | s%@build_os@%$build_os%g | |
6676 | s%@CC@%$CC%g | |
6677 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
6678 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
6679 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
6680 | s%@PACKAGE@%$PACKAGE%g | |
6681 | s%@VERSION@%$VERSION%g | |
6682 | s%@ACLOCAL@%$ACLOCAL%g | |
6683 | s%@AUTOCONF@%$AUTOCONF%g | |
6684 | s%@AUTOMAKE@%$AUTOMAKE%g | |
6685 | s%@AUTOHEADER@%$AUTOHEADER%g | |
6686 | s%@MAKEINFO@%$MAKEINFO%g | |
6687 | s%@SET_MAKE@%$SET_MAKE%g | |
e43d48cc AM |
6688 | s%@bfd_version@%$bfd_version%g |
6689 | s%@bfd_version_date@%$bfd_version_date%g | |
6690 | s%@bfd_version_string@%$bfd_version_string%g | |
6be7c12c AO |
6691 | s%@AR@%$AR%g |
6692 | s%@RANLIB@%$RANLIB%g | |
6693 | s%@LN_S@%$LN_S%g | |
6694 | s%@OBJEXT@%$OBJEXT%g | |
6695 | s%@EXEEXT@%$EXEEXT%g | |
6696 | s%@STRIP@%$STRIP%g | |
6697 | s%@LIBTOOL@%$LIBTOOL%g | |
6698 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g | |
6699 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
6700 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
6701 | s%@MAINT@%$MAINT%g | |
6702 | s%@CPP@%$CPP%g | |
6703 | s%@ALLOCA@%$ALLOCA%g | |
6704 | s%@USE_NLS@%$USE_NLS%g | |
6705 | s%@MSGFMT@%$MSGFMT%g | |
6706 | s%@GMSGFMT@%$GMSGFMT%g | |
6707 | s%@XGETTEXT@%$XGETTEXT%g | |
6708 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
6709 | s%@CATALOGS@%$CATALOGS%g | |
6710 | s%@CATOBJEXT@%$CATOBJEXT%g | |
6711 | s%@DATADIRNAME@%$DATADIRNAME%g | |
6712 | s%@GMOFILES@%$GMOFILES%g | |
6713 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
6714 | s%@INTLDEPS@%$INTLDEPS%g | |
6715 | s%@INTLLIBS@%$INTLLIBS%g | |
6716 | s%@INTLOBJS@%$INTLOBJS%g | |
6717 | s%@POFILES@%$POFILES%g | |
6718 | s%@POSUB@%$POSUB%g | |
6719 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
6720 | s%@GT_NO@%$GT_NO%g | |
6721 | s%@GT_YES@%$GT_YES%g | |
6722 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
6723 | s%@l@%$l%g | |
6724 | s%@HDEFINES@%$HDEFINES%g | |
6725 | s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g | |
6726 | s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g | |
6727 | s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g | |
6728 | s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g | |
6729 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g | |
6730 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g | |
6731 | s%@COREFILE@%$COREFILE%g | |
6732 | s%@COREFLAG@%$COREFLAG%g | |
6733 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g | |
6734 | s%@WIN32LIBADD@%$WIN32LIBADD%g | |
6735 | s%@TDEFINES@%$TDEFINES%g | |
6736 | s%@wordsize@%$wordsize%g | |
2858ef35 | 6737 | s%@bfd_libs@%$bfd_libs%g |
6be7c12c AO |
6738 | s%@all_backends@%$all_backends%g |
6739 | s%@bfd_backends@%$bfd_backends%g | |
6740 | s%@bfd_machines@%$bfd_machines%g | |
69263e90 | 6741 | s%@bfd_default_target_size@%$bfd_default_target_size%g |
6be7c12c | 6742 | s%@tdefaults@%$tdefaults%g |
b3baf5d0 | 6743 | |
252b5132 RH |
6744 | CEOF |
6745 | EOF | |
6746 | ||
6be7c12c AO |
6747 | cat >> $CONFIG_STATUS <<\EOF |
6748 | ||
6749 | # Split the substitutions into bite-sized pieces for seds with | |
6750 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
dc810e39 | 6751 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
6be7c12c AO |
6752 | ac_file=1 # Number of current file. |
6753 | ac_beg=1 # First line for current file. | |
6754 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6755 | ac_more_lines=: | |
6756 | ac_sed_cmds="" | |
6757 | while $ac_more_lines; do | |
6758 | if test $ac_beg -gt 1; then | |
6759 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6760 | else | |
6761 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6762 | fi | |
6763 | if test ! -s conftest.s$ac_file; then | |
6764 | ac_more_lines=false | |
6765 | rm -f conftest.s$ac_file | |
6766 | else | |
6767 | if test -z "$ac_sed_cmds"; then | |
6768 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
252b5132 | 6769 | else |
6be7c12c | 6770 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
252b5132 | 6771 | fi |
6be7c12c AO |
6772 | ac_file=`expr $ac_file + 1` |
6773 | ac_beg=$ac_end | |
6774 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
252b5132 | 6775 | fi |
6be7c12c AO |
6776 | done |
6777 | if test -z "$ac_sed_cmds"; then | |
6778 | ac_sed_cmds=cat | |
6779 | fi | |
6780 | EOF | |
6781 | ||
6782 | cat >> $CONFIG_STATUS <<EOF | |
252b5132 | 6783 | |
87b632fc | 6784 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"} |
252b5132 | 6785 | EOF |
6be7c12c AO |
6786 | cat >> $CONFIG_STATUS <<\EOF |
6787 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
252b5132 | 6788 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6be7c12c AO |
6789 | case "$ac_file" in |
6790 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6791 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6792 | *) ac_file_in="${ac_file}.in" ;; | |
252b5132 RH |
6793 | esac |
6794 | ||
6be7c12c | 6795 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
b3baf5d0 | 6796 | |
6be7c12c AO |
6797 | # Remove last slash and all that follows it. Not all systems have dirname. |
6798 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6799 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6800 | # The file is in a subdirectory. | |
6801 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6802 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
252b5132 | 6803 | # A "../" for each directory in $ac_dir_suffix. |
6be7c12c | 6804 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
252b5132 RH |
6805 | else |
6806 | ac_dir_suffix= ac_dots= | |
6807 | fi | |
6808 | ||
6be7c12c AO |
6809 | case "$ac_given_srcdir" in |
6810 | .) srcdir=. | |
6811 | if test -z "$ac_dots"; then top_srcdir=. | |
6812 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6813 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
252b5132 | 6814 | *) # Relative path. |
6be7c12c AO |
6815 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
6816 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
252b5132 RH |
6817 | esac |
6818 | ||
6be7c12c AO |
6819 | case "$ac_given_INSTALL" in |
6820 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6821 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
252b5132 RH |
6822 | esac |
6823 | ||
6be7c12c AO |
6824 | echo creating "$ac_file" |
6825 | rm -f "$ac_file" | |
6826 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6827 | case "$ac_file" in | |
6828 | *Makefile*) ac_comsub="1i\\ | |
6829 | # $configure_input" ;; | |
6830 | *) ac_comsub= ;; | |
6831 | esac | |
252b5132 | 6832 | |
6be7c12c AO |
6833 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
6834 | sed -e "$ac_comsub | |
6835 | s%@configure_input@%$configure_input%g | |
6836 | s%@srcdir@%$srcdir%g | |
6837 | s%@top_srcdir@%$top_srcdir%g | |
6838 | s%@INSTALL@%$INSTALL%g | |
6839 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
6840 | fi; done | |
6841 | rm -f conftest.s* | |
252b5132 RH |
6842 | |
6843 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
6844 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6845 | # | |
6846 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6be7c12c AO |
6847 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
6848 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
6849 | ac_dC='\3' | |
6850 | ac_dD='%g' | |
6851 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
6852 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6853 | ac_uB='\([ ]\)%\1#\2define\3' | |
252b5132 | 6854 | ac_uC=' ' |
6be7c12c AO |
6855 | ac_uD='\4%g' |
6856 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6857 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6858 | ac_eB='$%\1#\2define\3' | |
6859 | ac_eC=' ' | |
6860 | ac_eD='%g' | |
6861 | ||
6862 | if test "${CONFIG_HEADERS+set}" != set; then | |
6863 | EOF | |
6864 | cat >> $CONFIG_STATUS <<EOF | |
6865 | CONFIG_HEADERS="config.h:config.in" | |
6866 | EOF | |
6867 | cat >> $CONFIG_STATUS <<\EOF | |
6868 | fi | |
6869 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
252b5132 | 6870 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6be7c12c AO |
6871 | case "$ac_file" in |
6872 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6873 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6874 | *) ac_file_in="${ac_file}.in" ;; | |
252b5132 RH |
6875 | esac |
6876 | ||
6be7c12c AO |
6877 | echo creating $ac_file |
6878 | ||
6879 | rm -f conftest.frag conftest.in conftest.out | |
6880 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6881 | cat $ac_file_inputs > conftest.in | |
6882 | ||
6883 | EOF | |
6884 | ||
6885 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6886 | # the proper values into config.h.in to produce config.h. And first: | |
6887 | # Protect against being on the right side of a sed subst in config.status. | |
6888 | # Protect against being in an unquoted here document in config.status. | |
6889 | rm -f conftest.vals | |
6890 | cat > conftest.hdr <<\EOF | |
6891 | s/[\\&%]/\\&/g | |
6892 | s%[\\$`]%\\&%g | |
6893 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
6894 | s%ac_d%ac_u%gp | |
6895 | s%ac_u%ac_e%gp | |
6896 | EOF | |
6897 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6898 | rm -f conftest.hdr | |
252b5132 RH |
6899 | |
6900 | # This sed command replaces #undef with comments. This is necessary, for | |
6901 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6902 | # on some systems where configure will not decide to define it. | |
6be7c12c AO |
6903 | cat >> conftest.vals <<\EOF |
6904 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
252b5132 RH |
6905 | EOF |
6906 | ||
6be7c12c AO |
6907 | # Break up conftest.vals because some shells have a limit on |
6908 | # the size of here documents, and old seds have small limits too. | |
252b5132 RH |
6909 | |
6910 | rm -f conftest.tail | |
6be7c12c | 6911 | while : |
252b5132 | 6912 | do |
6be7c12c AO |
6913 | ac_lines=`grep -c . conftest.vals` |
6914 | # grep -c gives empty output for an empty file on some AIX systems. | |
6915 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6916 | # Write a limited-size here document to conftest.frag. | |
6917 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6918 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
252b5132 | 6919 | echo 'CEOF |
6be7c12c AO |
6920 | sed -f conftest.frag conftest.in > conftest.out |
6921 | rm -f conftest.in | |
6922 | mv conftest.out conftest.in | |
6923 | ' >> $CONFIG_STATUS | |
6924 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6925 | rm -f conftest.vals | |
6926 | mv conftest.tail conftest.vals | |
252b5132 | 6927 | done |
6be7c12c AO |
6928 | rm -f conftest.vals |
6929 | ||
6930 | cat >> $CONFIG_STATUS <<\EOF | |
6931 | rm -f conftest.frag conftest.h | |
6932 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6933 | cat conftest.in >> conftest.h | |
6934 | rm -f conftest.in | |
6935 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6936 | echo "$ac_file is unchanged" | |
6937 | rm -f conftest.h | |
252b5132 | 6938 | else |
6be7c12c AO |
6939 | # Remove last slash and all that follows it. Not all systems have dirname. |
6940 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
252b5132 | 6941 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
6be7c12c AO |
6942 | # The file is in a subdirectory. |
6943 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
252b5132 | 6944 | fi |
6be7c12c AO |
6945 | rm -f $ac_file |
6946 | mv conftest.h $ac_file | |
252b5132 | 6947 | fi |
6be7c12c | 6948 | fi; done |
252b5132 RH |
6949 | |
6950 | EOF | |
6be7c12c | 6951 | cat >> $CONFIG_STATUS <<EOF |
b3baf5d0 | 6952 | |
b3baf5d0 | 6953 | |
6be7c12c AO |
6954 | EOF |
6955 | cat >> $CONFIG_STATUS <<\EOF | |
6956 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
6957 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile | |
6958 | exit 0 | |
252b5132 RH |
6959 | EOF |
6960 | chmod +x $CONFIG_STATUS | |
6be7c12c AO |
6961 | rm -fr confdefs* $ac_clean_files |
6962 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
252b5132 | 6963 | |
55c80943 | 6964 |