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