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