Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
a2d91340 | 4 | # Generated automatically using autoconf version 2.13 |
252b5132 RH |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
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 | |
a74801ba | 23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
ac48eca1 AO |
24 | ac_help="$ac_help |
25 | --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
252b5132 RH |
26 | ac_help="$ac_help |
27 | --enable-targets alternative target configurations" | |
28 | ac_help="$ac_help | |
29 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library" | |
a2d91340 AC |
30 | ac_help="$ac_help |
31 | --enable-build-warnings Enable build-time compiler warnings if gcc is used" | |
252b5132 RH |
32 | ac_help="$ac_help |
33 | --enable-maintainer-mode enable make rules and dependencies not useful | |
34 | (and sometimes confusing) to the casual installer" | |
35 | ac_help="$ac_help | |
36 | --disable-nls do not use Native Language Support" | |
37 | ac_help="$ac_help | |
38 | --with-included-gettext use the GNU gettext library included here" | |
6e31aea3 BE |
39 | ac_help="$ac_help |
40 | --enable-cgen-maint[=dir] build cgen generated files" | |
252b5132 RH |
41 | |
42 | # Initialize some variables set by options. | |
43 | # The variables have the same names as the options, with | |
44 | # dashes changed to underlines. | |
45 | build=NONE | |
46 | cache_file=./config.cache | |
47 | exec_prefix=NONE | |
48 | host=NONE | |
49 | no_create= | |
50 | nonopt=NONE | |
51 | no_recursion= | |
52 | prefix=NONE | |
53 | program_prefix=NONE | |
54 | program_suffix=NONE | |
55 | program_transform_name=s,x,x, | |
56 | silent= | |
57 | site= | |
09919455 | 58 | sitefile= |
252b5132 RH |
59 | srcdir= |
60 | target=NONE | |
61 | verbose= | |
62 | x_includes=NONE | |
63 | x_libraries=NONE | |
64 | bindir='${exec_prefix}/bin' | |
65 | sbindir='${exec_prefix}/sbin' | |
66 | libexecdir='${exec_prefix}/libexec' | |
67 | datadir='${prefix}/share' | |
68 | sysconfdir='${prefix}/etc' | |
69 | sharedstatedir='${prefix}/com' | |
70 | localstatedir='${prefix}/var' | |
71 | libdir='${exec_prefix}/lib' | |
72 | includedir='${prefix}/include' | |
73 | oldincludedir='/usr/include' | |
74 | infodir='${prefix}/info' | |
75 | mandir='${prefix}/man' | |
76 | ||
77 | # Initialize some other variables. | |
78 | subdirs= | |
79 | MFLAGS= MAKEFLAGS= | |
80 | SHELL=${CONFIG_SHELL-/bin/sh} | |
81 | # Maximum number of lines to put in a shell here document. | |
82 | ac_max_here_lines=12 | |
83 | ||
84 | ac_prev= | |
85 | for ac_option | |
86 | do | |
87 | ||
88 | # If the previous option needs an argument, assign it. | |
89 | if test -n "$ac_prev"; then | |
90 | eval "$ac_prev=\$ac_option" | |
91 | ac_prev= | |
92 | continue | |
93 | fi | |
94 | ||
95 | case "$ac_option" in | |
96 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
97 | *) ac_optarg= ;; | |
98 | esac | |
99 | ||
100 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
101 | ||
102 | case "$ac_option" in | |
103 | ||
104 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
105 | ac_prev=bindir ;; | |
106 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
107 | bindir="$ac_optarg" ;; | |
108 | ||
109 | -build | --build | --buil | --bui | --bu) | |
110 | ac_prev=build ;; | |
111 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
112 | build="$ac_optarg" ;; | |
113 | ||
114 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
115 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
116 | ac_prev=cache_file ;; | |
117 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
118 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
119 | cache_file="$ac_optarg" ;; | |
120 | ||
121 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
122 | ac_prev=datadir ;; | |
123 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
124 | | --da=*) | |
125 | datadir="$ac_optarg" ;; | |
126 | ||
127 | -disable-* | --disable-*) | |
128 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
129 | # Reject names that are not valid shell variable names. | |
130 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
131 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
132 | fi | |
133 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
134 | eval "enable_${ac_feature}=no" ;; | |
135 | ||
136 | -enable-* | --enable-*) | |
137 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
138 | # Reject names that are not valid shell variable names. | |
139 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
140 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
141 | fi | |
142 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
143 | case "$ac_option" in | |
144 | *=*) ;; | |
145 | *) ac_optarg=yes ;; | |
146 | esac | |
147 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
148 | ||
149 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
150 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
151 | | --exec | --exe | --ex) | |
152 | ac_prev=exec_prefix ;; | |
153 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
154 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
155 | | --exec=* | --exe=* | --ex=*) | |
156 | exec_prefix="$ac_optarg" ;; | |
157 | ||
158 | -gas | --gas | --ga | --g) | |
159 | # Obsolete; use --with-gas. | |
160 | with_gas=yes ;; | |
161 | ||
162 | -help | --help | --hel | --he) | |
163 | # Omit some internal or obsolete options to make the list less imposing. | |
164 | # This message is too long to be a string in the A/UX 3.1 sh. | |
165 | cat << EOF | |
166 | Usage: configure [options] [host] | |
167 | Options: [defaults in brackets after descriptions] | |
168 | Configuration: | |
169 | --cache-file=FILE cache test results in FILE | |
170 | --help print this message | |
171 | --no-create do not create output files | |
172 | --quiet, --silent do not print \`checking...' messages | |
09919455 | 173 | --site-file=FILE use FILE as the site file |
252b5132 RH |
174 | --version print the version of autoconf that created configure |
175 | Directory and file names: | |
176 | --prefix=PREFIX install architecture-independent files in PREFIX | |
177 | [$ac_default_prefix] | |
178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
179 | [same as prefix] | |
180 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
181 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
182 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
183 | --datadir=DIR read-only architecture-independent data in DIR | |
184 | [PREFIX/share] | |
185 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
186 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
187 | [PREFIX/com] | |
188 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
189 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
190 | --includedir=DIR C header files in DIR [PREFIX/include] | |
191 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
192 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
193 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
194 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
195 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
196 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
197 | --program-transform-name=PROGRAM | |
198 | run sed PROGRAM on installed program names | |
199 | EOF | |
200 | cat << EOF | |
201 | Host type: | |
202 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
203 | --host=HOST configure for HOST [guessed] | |
204 | --target=TARGET configure for TARGET [TARGET=HOST] | |
205 | Features and packages: | |
206 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
207 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
208 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
209 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
210 | --x-includes=DIR X include files are in DIR | |
211 | --x-libraries=DIR X library files are in DIR | |
212 | EOF | |
213 | if test -n "$ac_help"; then | |
214 | echo "--enable and --with options recognized:$ac_help" | |
215 | fi | |
216 | exit 0 ;; | |
217 | ||
218 | -host | --host | --hos | --ho) | |
219 | ac_prev=host ;; | |
220 | -host=* | --host=* | --hos=* | --ho=*) | |
221 | host="$ac_optarg" ;; | |
222 | ||
223 | -includedir | --includedir | --includedi | --included | --include \ | |
224 | | --includ | --inclu | --incl | --inc) | |
225 | ac_prev=includedir ;; | |
226 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
227 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
228 | includedir="$ac_optarg" ;; | |
229 | ||
230 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
231 | ac_prev=infodir ;; | |
232 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
233 | infodir="$ac_optarg" ;; | |
234 | ||
235 | -libdir | --libdir | --libdi | --libd) | |
236 | ac_prev=libdir ;; | |
237 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
238 | libdir="$ac_optarg" ;; | |
239 | ||
240 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
241 | | --libexe | --libex | --libe) | |
242 | ac_prev=libexecdir ;; | |
243 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
244 | | --libexe=* | --libex=* | --libe=*) | |
245 | libexecdir="$ac_optarg" ;; | |
246 | ||
247 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
248 | | --localstate | --localstat | --localsta | --localst \ | |
249 | | --locals | --local | --loca | --loc | --lo) | |
250 | ac_prev=localstatedir ;; | |
251 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
252 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
253 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
254 | localstatedir="$ac_optarg" ;; | |
255 | ||
256 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
257 | ac_prev=mandir ;; | |
258 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
259 | mandir="$ac_optarg" ;; | |
260 | ||
261 | -nfp | --nfp | --nf) | |
262 | # Obsolete; use --without-fp. | |
263 | with_fp=no ;; | |
264 | ||
265 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
266 | | --no-cr | --no-c) | |
267 | no_create=yes ;; | |
268 | ||
269 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
270 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
271 | no_recursion=yes ;; | |
272 | ||
273 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
274 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
275 | | --oldin | --oldi | --old | --ol | --o) | |
276 | ac_prev=oldincludedir ;; | |
277 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
278 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
279 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
280 | oldincludedir="$ac_optarg" ;; | |
281 | ||
282 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
283 | ac_prev=prefix ;; | |
284 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
285 | prefix="$ac_optarg" ;; | |
286 | ||
287 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
288 | | --program-pre | --program-pr | --program-p) | |
289 | ac_prev=program_prefix ;; | |
290 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
291 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
292 | program_prefix="$ac_optarg" ;; | |
293 | ||
294 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
295 | | --program-suf | --program-su | --program-s) | |
296 | ac_prev=program_suffix ;; | |
297 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
298 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
299 | program_suffix="$ac_optarg" ;; | |
300 | ||
301 | -program-transform-name | --program-transform-name \ | |
302 | | --program-transform-nam | --program-transform-na \ | |
303 | | --program-transform-n | --program-transform- \ | |
304 | | --program-transform | --program-transfor \ | |
305 | | --program-transfo | --program-transf \ | |
306 | | --program-trans | --program-tran \ | |
307 | | --progr-tra | --program-tr | --program-t) | |
308 | ac_prev=program_transform_name ;; | |
309 | -program-transform-name=* | --program-transform-name=* \ | |
310 | | --program-transform-nam=* | --program-transform-na=* \ | |
311 | | --program-transform-n=* | --program-transform-=* \ | |
312 | | --program-transform=* | --program-transfor=* \ | |
313 | | --program-transfo=* | --program-transf=* \ | |
314 | | --program-trans=* | --program-tran=* \ | |
315 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
316 | program_transform_name="$ac_optarg" ;; | |
317 | ||
318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
319 | | -silent | --silent | --silen | --sile | --sil) | |
320 | silent=yes ;; | |
321 | ||
322 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
323 | ac_prev=sbindir ;; | |
324 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
325 | | --sbi=* | --sb=*) | |
326 | sbindir="$ac_optarg" ;; | |
327 | ||
328 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
329 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
330 | | --sharedst | --shareds | --shared | --share | --shar \ | |
331 | | --sha | --sh) | |
332 | ac_prev=sharedstatedir ;; | |
333 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
334 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
335 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
336 | | --sha=* | --sh=*) | |
337 | sharedstatedir="$ac_optarg" ;; | |
338 | ||
339 | -site | --site | --sit) | |
340 | ac_prev=site ;; | |
341 | -site=* | --site=* | --sit=*) | |
342 | site="$ac_optarg" ;; | |
343 | ||
09919455 NC |
344 | -site-file | --site-file | --site-fil | --site-fi | --site-f) |
345 | ac_prev=sitefile ;; | |
346 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) | |
347 | sitefile="$ac_optarg" ;; | |
348 | ||
252b5132 RH |
349 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
350 | ac_prev=srcdir ;; | |
351 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
352 | srcdir="$ac_optarg" ;; | |
353 | ||
354 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
355 | | --syscon | --sysco | --sysc | --sys | --sy) | |
356 | ac_prev=sysconfdir ;; | |
357 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
358 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
359 | sysconfdir="$ac_optarg" ;; | |
360 | ||
361 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
362 | ac_prev=target ;; | |
363 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
364 | target="$ac_optarg" ;; | |
365 | ||
366 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
367 | verbose=yes ;; | |
368 | ||
369 | -version | --version | --versio | --versi | --vers) | |
a2d91340 | 370 | echo "configure generated by autoconf version 2.13" |
252b5132 RH |
371 | exit 0 ;; |
372 | ||
373 | -with-* | --with-*) | |
374 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
375 | # Reject names that are not valid shell variable names. | |
376 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
377 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
378 | fi | |
379 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
380 | case "$ac_option" in | |
381 | *=*) ;; | |
382 | *) ac_optarg=yes ;; | |
383 | esac | |
384 | eval "with_${ac_package}='$ac_optarg'" ;; | |
385 | ||
386 | -without-* | --without-*) | |
387 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
388 | # Reject names that are not valid shell variable names. | |
389 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
390 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
391 | fi | |
392 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
393 | eval "with_${ac_package}=no" ;; | |
394 | ||
395 | --x) | |
396 | # Obsolete; use --with-x. | |
397 | with_x=yes ;; | |
398 | ||
399 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
400 | | --x-incl | --x-inc | --x-in | --x-i) | |
401 | ac_prev=x_includes ;; | |
402 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
403 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
404 | x_includes="$ac_optarg" ;; | |
405 | ||
406 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
407 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
408 | ac_prev=x_libraries ;; | |
409 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
410 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
411 | x_libraries="$ac_optarg" ;; | |
412 | ||
413 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
414 | ;; | |
415 | ||
416 | *) | |
417 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
418 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
419 | fi | |
420 | if test "x$nonopt" != xNONE; then | |
421 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
422 | fi | |
423 | nonopt="$ac_option" | |
424 | ;; | |
425 | ||
426 | esac | |
427 | done | |
428 | ||
429 | if test -n "$ac_prev"; then | |
430 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
431 | fi | |
432 | ||
433 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
434 | ||
435 | # File descriptor usage: | |
436 | # 0 standard input | |
437 | # 1 file creation | |
438 | # 2 errors and warnings | |
439 | # 3 some systems may open it to /dev/tty | |
440 | # 4 used on the Kubota Titan | |
441 | # 6 checking for... messages and results | |
442 | # 5 compiler messages saved in config.log | |
443 | if test "$silent" = yes; then | |
444 | exec 6>/dev/null | |
445 | else | |
446 | exec 6>&1 | |
447 | fi | |
448 | exec 5>./config.log | |
449 | ||
450 | echo "\ | |
451 | This file contains any messages produced by compilers while | |
452 | running configure, to aid debugging if configure makes a mistake. | |
453 | " 1>&5 | |
454 | ||
455 | # Strip out --no-create and --no-recursion so they do not pile up. | |
456 | # Also quote any args containing shell metacharacters. | |
457 | ac_configure_args= | |
458 | for ac_arg | |
459 | do | |
460 | case "$ac_arg" in | |
461 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
462 | | --no-cr | --no-c) ;; | |
463 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
464 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
465 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
466 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
467 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
468 | esac | |
469 | done | |
470 | ||
471 | # NLS nuisances. | |
472 | # Only set these to C if already set. These must not be set unconditionally | |
473 | # because not all systems understand e.g. LANG=C (notably SCO). | |
474 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
475 | # Non-C LC_CTYPE values break the ctype check. | |
476 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
477 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
478 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
479 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
480 | ||
481 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
482 | rm -rf conftest* confdefs.h | |
483 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
484 | echo > confdefs.h | |
485 | ||
486 | # A filename unique to this package, relative to the directory that | |
487 | # configure is in, which we can look for to find out if srcdir is correct. | |
488 | ac_unique_file=z8k-dis.c | |
489 | ||
490 | # Find the source files, if location was not specified. | |
491 | if test -z "$srcdir"; then | |
492 | ac_srcdir_defaulted=yes | |
493 | # Try the directory containing this script, then its parent. | |
494 | ac_prog=$0 | |
495 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
496 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
497 | srcdir=$ac_confdir | |
498 | if test ! -r $srcdir/$ac_unique_file; then | |
499 | srcdir=.. | |
500 | fi | |
501 | else | |
502 | ac_srcdir_defaulted=no | |
503 | fi | |
504 | if test ! -r $srcdir/$ac_unique_file; then | |
505 | if test "$ac_srcdir_defaulted" = yes; then | |
506 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
507 | else | |
508 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
509 | fi | |
510 | fi | |
511 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
512 | ||
513 | # Prefer explicitly selected file to automatically selected ones. | |
09919455 NC |
514 | if test -z "$sitefile"; then |
515 | if test -z "$CONFIG_SITE"; then | |
516 | if test "x$prefix" != xNONE; then | |
517 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
518 | else | |
519 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
520 | fi | |
252b5132 | 521 | fi |
09919455 NC |
522 | else |
523 | CONFIG_SITE="$sitefile" | |
252b5132 RH |
524 | fi |
525 | for ac_site_file in $CONFIG_SITE; do | |
526 | if test -r "$ac_site_file"; then | |
527 | echo "loading site script $ac_site_file" | |
528 | . "$ac_site_file" | |
529 | fi | |
530 | done | |
531 | ||
532 | if test -r "$cache_file"; then | |
533 | echo "loading cache $cache_file" | |
a2d91340 | 534 | . $cache_file |
252b5132 RH |
535 | else |
536 | echo "creating cache $cache_file" | |
537 | > $cache_file | |
538 | fi | |
539 | ||
540 | ac_ext=c | |
541 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
542 | ac_cpp='$CPP $CPPFLAGS' | |
543 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
544 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
545 | cross_compiling=$ac_cv_prog_cc_cross | |
546 | ||
547 | ac_exeext= | |
548 | ac_objext=o | |
549 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
550 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
551 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
552 | ac_n= ac_c=' | |
553 | ' ac_t=' ' | |
554 | else | |
555 | ac_n=-n ac_c= ac_t= | |
556 | fi | |
557 | else | |
558 | ac_n= ac_c='\c' ac_t= | |
559 | fi | |
560 | ||
ac48eca1 | 561 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
09919455 | 562 | echo "configure:563: checking for Cygwin environment" >&5 |
ac48eca1 AO |
563 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
565 | else | |
566 | cat > conftest.$ac_ext <<EOF | |
09919455 | 567 | #line 568 "configure" |
ac48eca1 AO |
568 | #include "confdefs.h" |
569 | ||
570 | int main() { | |
571 | ||
572 | #ifndef __CYGWIN__ | |
573 | #define __CYGWIN__ __CYGWIN32__ | |
574 | #endif | |
575 | return __CYGWIN__; | |
576 | ; return 0; } | |
577 | EOF | |
09919455 | 578 | if { (eval echo configure:579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac48eca1 AO |
579 | rm -rf conftest* |
580 | ac_cv_cygwin=yes | |
581 | else | |
582 | echo "configure: failed program was:" >&5 | |
583 | cat conftest.$ac_ext >&5 | |
584 | rm -rf conftest* | |
585 | ac_cv_cygwin=no | |
586 | fi | |
587 | rm -f conftest* | |
588 | rm -f conftest* | |
589 | fi | |
590 | ||
591 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
592 | CYGWIN= | |
593 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
594 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
09919455 | 595 | echo "configure:596: checking for mingw32 environment" >&5 |
ac48eca1 AO |
596 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
598 | else | |
599 | cat > conftest.$ac_ext <<EOF | |
09919455 | 600 | #line 601 "configure" |
ac48eca1 AO |
601 | #include "confdefs.h" |
602 | ||
603 | int main() { | |
604 | return __MINGW32__; | |
605 | ; return 0; } | |
606 | EOF | |
09919455 | 607 | if { (eval echo configure:608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac48eca1 AO |
608 | rm -rf conftest* |
609 | ac_cv_mingw32=yes | |
610 | else | |
611 | echo "configure: failed program was:" >&5 | |
612 | cat conftest.$ac_ext >&5 | |
613 | rm -rf conftest* | |
614 | ac_cv_mingw32=no | |
615 | fi | |
616 | rm -f conftest* | |
617 | rm -f conftest* | |
618 | fi | |
619 | ||
620 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
621 | MINGW32= | |
622 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
252b5132 RH |
623 | |
624 | ||
625 | ac_aux_dir= | |
626 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
627 | if test -f $ac_dir/install-sh; then | |
628 | ac_aux_dir=$ac_dir | |
629 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
630 | break | |
631 | elif test -f $ac_dir/install.sh; then | |
632 | ac_aux_dir=$ac_dir | |
633 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
634 | break | |
635 | fi | |
636 | done | |
637 | if test -z "$ac_aux_dir"; then | |
638 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
639 | fi | |
a2d91340 AC |
640 | ac_config_guess=$ac_aux_dir/config.guess |
641 | ac_config_sub=$ac_aux_dir/config.sub | |
642 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
252b5132 RH |
643 | |
644 | ||
645 | # Do some error checking and defaulting for the host and target type. | |
646 | # The inputs are: | |
647 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
648 | # | |
649 | # The rules are: | |
650 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
651 | # same time. | |
652 | # 2. Host defaults to nonopt. | |
653 | # 3. If nonopt is not specified, then host defaults to the current host, | |
654 | # as determined by config.guess. | |
655 | # 4. Target and build default to nonopt. | |
656 | # 5. If nonopt is not specified, then target and build default to host. | |
657 | ||
658 | # The aliases save the names the user supplied, while $host etc. | |
659 | # will get canonicalized. | |
660 | case $host---$target---$nonopt in | |
661 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
662 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
663 | esac | |
664 | ||
a2d91340 AC |
665 | |
666 | # Make sure we can run config.sub. | |
667 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
668 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
669 | fi | |
670 | ||
671 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
09919455 | 672 | echo "configure:673: checking host system type" >&5 |
a2d91340 AC |
673 | |
674 | host_alias=$host | |
675 | case "$host_alias" in | |
676 | NONE) | |
677 | case $nonopt in | |
678 | NONE) | |
679 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
680 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
681 | fi ;; | |
682 | *) host_alias=$nonopt ;; | |
683 | esac ;; | |
684 | esac | |
685 | ||
686 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
687 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
688 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
689 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
690 | echo "$ac_t""$host" 1>&6 | |
691 | ||
692 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
09919455 | 693 | echo "configure:694: checking target system type" >&5 |
a2d91340 AC |
694 | |
695 | target_alias=$target | |
696 | case "$target_alias" in | |
697 | NONE) | |
698 | case $nonopt in | |
699 | NONE) target_alias=$host_alias ;; | |
700 | *) target_alias=$nonopt ;; | |
701 | esac ;; | |
702 | esac | |
703 | ||
704 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
705 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
706 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
707 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
708 | echo "$ac_t""$target" 1>&6 | |
709 | ||
710 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
09919455 | 711 | echo "configure:712: checking build system type" >&5 |
a2d91340 AC |
712 | |
713 | build_alias=$build | |
714 | case "$build_alias" in | |
715 | NONE) | |
716 | case $nonopt in | |
717 | NONE) build_alias=$host_alias ;; | |
718 | *) build_alias=$nonopt ;; | |
719 | esac ;; | |
720 | esac | |
721 | ||
722 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
723 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
724 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
725 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
726 | echo "$ac_t""$build" 1>&6 | |
727 | ||
252b5132 RH |
728 | test "$host_alias" != "$target_alias" && |
729 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
730 | NONENONEs,x,x, && | |
731 | program_prefix=${target_alias}- | |
732 | ||
252b5132 | 733 | |
09919455 NC |
734 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
735 | echo "configure:736: checking for strerror in -lcposix" >&5 | |
736 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` | |
737 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
252b5132 RH |
738 | echo $ac_n "(cached) $ac_c" 1>&6 |
739 | else | |
09919455 NC |
740 | ac_save_LIBS="$LIBS" |
741 | LIBS="-lcposix $LIBS" | |
742 | cat > conftest.$ac_ext <<EOF | |
743 | #line 744 "configure" | |
252b5132 | 744 | #include "confdefs.h" |
09919455 NC |
745 | /* Override any gcc2 internal prototype to avoid an error. */ |
746 | /* We use char because int might match the return type of a gcc2 | |
747 | builtin and then its argument prototype would still apply. */ | |
748 | char strerror(); | |
252b5132 | 749 | |
09919455 NC |
750 | int main() { |
751 | strerror() | |
752 | ; return 0; } | |
252b5132 | 753 | EOF |
09919455 NC |
754 | if { (eval echo configure:755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
755 | rm -rf conftest* | |
756 | eval "ac_cv_lib_$ac_lib_var=yes" | |
252b5132 RH |
757 | else |
758 | echo "configure: failed program was:" >&5 | |
759 | cat conftest.$ac_ext >&5 | |
09919455 NC |
760 | rm -rf conftest* |
761 | eval "ac_cv_lib_$ac_lib_var=no" | |
252b5132 RH |
762 | fi |
763 | rm -f conftest* | |
09919455 | 764 | LIBS="$ac_save_LIBS" |
252b5132 RH |
765 | |
766 | fi | |
09919455 | 767 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
252b5132 | 768 | echo "$ac_t""yes" 1>&6 |
09919455 | 769 | LIBS="$LIBS -lcposix" |
252b5132 RH |
770 | else |
771 | echo "$ac_t""no" 1>&6 | |
252b5132 RH |
772 | fi |
773 | ||
09919455 NC |
774 | |
775 | ||
252b5132 RH |
776 | |
777 | # We currently only use the version number for the name of any shared | |
778 | # library. For user convenience, we always use the same version | |
779 | # number that BFD is using. | |
780 | BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'` | |
781 | ||
782 | # Find a good install program. We prefer a C program (faster), | |
783 | # so one script is as good as another. But avoid the broken or | |
784 | # incompatible versions: | |
785 | # SysV /etc/install, /usr/sbin/install | |
786 | # SunOS /usr/etc/install | |
787 | # IRIX /sbin/install | |
788 | # AIX /bin/install | |
789 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
790 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
791 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
792 | # ./install, which can be erroneously created by make from ./install.sh. | |
793 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
09919455 | 794 | echo "configure:795: checking for a BSD compatible install" >&5 |
252b5132 | 795 | if test -z "$INSTALL"; then |
a2d91340 | 796 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
252b5132 RH |
797 | echo $ac_n "(cached) $ac_c" 1>&6 |
798 | else | |
799 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
800 | for ac_dir in $PATH; do | |
801 | # Account for people who put trailing slashes in PATH elements. | |
802 | case "$ac_dir/" in | |
803 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
804 | *) | |
805 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
806 | # Don't use installbsd from OSF since it installs stuff as root | |
807 | # by default. | |
808 | for ac_prog in ginstall scoinst install; do | |
809 | if test -f $ac_dir/$ac_prog; then | |
810 | if test $ac_prog = install && | |
811 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
812 | # AIX install. It has an incompatible calling convention. | |
813 | : | |
814 | else | |
815 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
816 | break 2 | |
817 | fi | |
818 | fi | |
819 | done | |
820 | ;; | |
821 | esac | |
822 | done | |
823 | IFS="$ac_save_IFS" | |
824 | ||
825 | fi | |
826 | if test "${ac_cv_path_install+set}" = set; then | |
827 | INSTALL="$ac_cv_path_install" | |
828 | else | |
829 | # As a last resort, use the slow shell script. We don't cache a | |
830 | # path for INSTALL within a source directory, because that will | |
831 | # break other packages using the cache if that directory is | |
832 | # removed, or if the path is relative. | |
833 | INSTALL="$ac_install_sh" | |
834 | fi | |
835 | fi | |
836 | echo "$ac_t""$INSTALL" 1>&6 | |
837 | ||
838 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
839 | # It thinks the first close brace ends the variable substitution. | |
840 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
841 | ||
a2d91340 | 842 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
252b5132 RH |
843 | |
844 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
845 | ||
846 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
09919455 | 847 | echo "configure:848: checking whether build environment is sane" >&5 |
252b5132 RH |
848 | # Just in case |
849 | sleep 1 | |
850 | echo timestamp > conftestfile | |
851 | # Do `set' in a subshell so we don't clobber the current shell's | |
852 | # arguments. Must try -L first in case configure is actually a | |
853 | # symlink; some systems play weird games with the mod time of symlinks | |
854 | # (eg FreeBSD returns the mod time of the symlink's containing | |
855 | # directory). | |
856 | if ( | |
857 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
858 | if test "$*" = "X"; then | |
859 | # -L didn't work. | |
860 | set X `ls -t $srcdir/configure conftestfile` | |
861 | fi | |
862 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
863 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
864 | ||
865 | # If neither matched, then we have a broken ls. This can happen | |
866 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
867 | # broken ls alias from the environment. This has actually | |
868 | # happened. Such a system could not be considered "sane". | |
869 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
870 | alias in your environment" 1>&2; exit 1; } | |
871 | fi | |
872 | ||
873 | test "$2" = conftestfile | |
874 | ) | |
875 | then | |
876 | # Ok. | |
877 | : | |
878 | else | |
879 | { echo "configure: error: newly created file is older than distributed files! | |
880 | Check your system clock" 1>&2; exit 1; } | |
881 | fi | |
882 | rm -f conftest* | |
883 | echo "$ac_t""yes" 1>&6 | |
884 | if test "$program_transform_name" = s,x,x,; then | |
885 | program_transform_name= | |
886 | else | |
887 | # Double any \ or $. echo might interpret backslashes. | |
888 | cat <<\EOF_SED > conftestsed | |
889 | s,\\,\\\\,g; s,\$,$$,g | |
890 | EOF_SED | |
891 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
892 | rm -f conftestsed | |
893 | fi | |
894 | test "$program_prefix" != NONE && | |
a2d91340 | 895 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
252b5132 RH |
896 | # Use a double $ so make ignores it. |
897 | test "$program_suffix" != NONE && | |
a2d91340 | 898 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
252b5132 RH |
899 | |
900 | # sed with no file args requires a program. | |
901 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
902 | ||
903 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
09919455 | 904 | echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
252b5132 | 905 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
a2d91340 | 906 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
252b5132 RH |
907 | echo $ac_n "(cached) $ac_c" 1>&6 |
908 | else | |
909 | cat > conftestmake <<\EOF | |
910 | all: | |
911 | @echo 'ac_maketemp="${MAKE}"' | |
912 | EOF | |
913 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
914 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
915 | if test -n "$ac_maketemp"; then | |
916 | eval ac_cv_prog_make_${ac_make}_set=yes | |
917 | else | |
918 | eval ac_cv_prog_make_${ac_make}_set=no | |
919 | fi | |
920 | rm -f conftestmake | |
921 | fi | |
922 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
923 | echo "$ac_t""yes" 1>&6 | |
924 | SET_MAKE= | |
925 | else | |
926 | echo "$ac_t""no" 1>&6 | |
927 | SET_MAKE="MAKE=${MAKE-make}" | |
928 | fi | |
929 | ||
930 | ||
931 | PACKAGE=opcodes | |
932 | ||
933 | VERSION=${BFD_VERSION} | |
934 | ||
935 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
936 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
937 | fi | |
938 | cat >> confdefs.h <<EOF | |
939 | #define PACKAGE "$PACKAGE" | |
940 | EOF | |
941 | ||
942 | cat >> confdefs.h <<EOF | |
943 | #define VERSION "$VERSION" | |
944 | EOF | |
945 | ||
946 | ||
947 | ||
948 | missing_dir=`cd $ac_aux_dir && pwd` | |
949 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
09919455 | 950 | echo "configure:951: checking for working aclocal" >&5 |
252b5132 RH |
951 | # Run test in a subshell; some versions of sh will print an error if |
952 | # an executable is not found, even if stderr is redirected. | |
953 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
954 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
955 | ACLOCAL=aclocal | |
956 | echo "$ac_t""found" 1>&6 | |
957 | else | |
958 | ACLOCAL="$missing_dir/missing aclocal" | |
959 | echo "$ac_t""missing" 1>&6 | |
960 | fi | |
961 | ||
962 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
09919455 | 963 | echo "configure:964: checking for working autoconf" >&5 |
252b5132 RH |
964 | # Run test in a subshell; some versions of sh will print an error if |
965 | # an executable is not found, even if stderr is redirected. | |
966 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
967 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
968 | AUTOCONF=autoconf | |
969 | echo "$ac_t""found" 1>&6 | |
970 | else | |
971 | AUTOCONF="$missing_dir/missing autoconf" | |
972 | echo "$ac_t""missing" 1>&6 | |
973 | fi | |
974 | ||
975 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
09919455 | 976 | echo "configure:977: checking for working automake" >&5 |
252b5132 RH |
977 | # Run test in a subshell; some versions of sh will print an error if |
978 | # an executable is not found, even if stderr is redirected. | |
979 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
980 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
981 | AUTOMAKE=automake | |
982 | echo "$ac_t""found" 1>&6 | |
983 | else | |
984 | AUTOMAKE="$missing_dir/missing automake" | |
985 | echo "$ac_t""missing" 1>&6 | |
986 | fi | |
987 | ||
988 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
09919455 | 989 | echo "configure:990: checking for working autoheader" >&5 |
252b5132 RH |
990 | # Run test in a subshell; some versions of sh will print an error if |
991 | # an executable is not found, even if stderr is redirected. | |
992 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
993 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
994 | AUTOHEADER=autoheader | |
995 | echo "$ac_t""found" 1>&6 | |
996 | else | |
997 | AUTOHEADER="$missing_dir/missing autoheader" | |
998 | echo "$ac_t""missing" 1>&6 | |
999 | fi | |
1000 | ||
1001 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
09919455 | 1002 | echo "configure:1003: checking for working makeinfo" >&5 |
252b5132 RH |
1003 | # Run test in a subshell; some versions of sh will print an error if |
1004 | # an executable is not found, even if stderr is redirected. | |
1005 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1006 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1007 | MAKEINFO=makeinfo | |
1008 | echo "$ac_t""found" 1>&6 | |
1009 | else | |
1010 | MAKEINFO="$missing_dir/missing makeinfo" | |
1011 | echo "$ac_t""missing" 1>&6 | |
1012 | fi | |
1013 | ||
1014 | ||
1015 | ||
1016 | if test $host != $build; then | |
1017 | ac_tool_prefix=${host_alias}- | |
1018 | else | |
1019 | ac_tool_prefix= | |
1020 | fi | |
1021 | ||
1022 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1023 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
1024 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 1025 | echo "configure:1026: checking for $ac_word" >&5 |
a2d91340 | 1026 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
252b5132 RH |
1027 | echo $ac_n "(cached) $ac_c" 1>&6 |
1028 | else | |
1029 | if test -n "$AR"; then | |
1030 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1031 | else | |
1032 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1033 | ac_dummy="$PATH" | |
1034 | for ac_dir in $ac_dummy; do | |
1035 | test -z "$ac_dir" && ac_dir=. | |
1036 | if test -f $ac_dir/$ac_word; then | |
1037 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1038 | break | |
1039 | fi | |
1040 | done | |
1041 | IFS="$ac_save_ifs" | |
1042 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1043 | fi | |
1044 | fi | |
1045 | AR="$ac_cv_prog_AR" | |
1046 | if test -n "$AR"; then | |
1047 | echo "$ac_t""$AR" 1>&6 | |
1048 | else | |
1049 | echo "$ac_t""no" 1>&6 | |
1050 | fi | |
1051 | ||
1052 | ||
1053 | ||
1054 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1055 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1056 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 1057 | echo "configure:1058: checking for $ac_word" >&5 |
a2d91340 | 1058 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
252b5132 RH |
1059 | echo $ac_n "(cached) $ac_c" 1>&6 |
1060 | else | |
1061 | if test -n "$RANLIB"; then | |
1062 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1063 | else | |
1064 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1065 | ac_dummy="$PATH" | |
1066 | for ac_dir in $ac_dummy; do | |
1067 | test -z "$ac_dir" && ac_dir=. | |
1068 | if test -f $ac_dir/$ac_word; then | |
1069 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1070 | break | |
1071 | fi | |
1072 | done | |
1073 | IFS="$ac_save_ifs" | |
1074 | fi | |
1075 | fi | |
1076 | RANLIB="$ac_cv_prog_RANLIB" | |
1077 | if test -n "$RANLIB"; then | |
1078 | echo "$ac_t""$RANLIB" 1>&6 | |
1079 | else | |
1080 | echo "$ac_t""no" 1>&6 | |
1081 | fi | |
1082 | ||
1083 | ||
1084 | if test -z "$ac_cv_prog_RANLIB"; then | |
1085 | if test -n "$ac_tool_prefix"; then | |
1086 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1087 | set dummy ranlib; ac_word=$2 | |
1088 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 1089 | echo "configure:1090: checking for $ac_word" >&5 |
a2d91340 | 1090 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
252b5132 RH |
1091 | echo $ac_n "(cached) $ac_c" 1>&6 |
1092 | else | |
1093 | if test -n "$RANLIB"; then | |
1094 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1095 | else | |
1096 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1097 | ac_dummy="$PATH" | |
1098 | for ac_dir in $ac_dummy; do | |
1099 | test -z "$ac_dir" && ac_dir=. | |
1100 | if test -f $ac_dir/$ac_word; then | |
1101 | ac_cv_prog_RANLIB="ranlib" | |
1102 | break | |
1103 | fi | |
1104 | done | |
1105 | IFS="$ac_save_ifs" | |
1106 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1107 | fi | |
1108 | fi | |
1109 | RANLIB="$ac_cv_prog_RANLIB" | |
1110 | if test -n "$RANLIB"; then | |
1111 | echo "$ac_t""$RANLIB" 1>&6 | |
1112 | else | |
1113 | echo "$ac_t""no" 1>&6 | |
1114 | fi | |
1115 | ||
1116 | else | |
1117 | RANLIB=":" | |
1118 | fi | |
1119 | fi | |
1120 | ||
1121 | ||
1122 | # Check whether --enable-shared or --disable-shared was given. | |
1123 | if test "${enable_shared+set}" = set; then | |
1124 | enableval="$enable_shared" | |
1125 | p=${PACKAGE-default} | |
1126 | case "$enableval" in | |
1127 | yes) enable_shared=yes ;; | |
1128 | no) enable_shared=no ;; | |
1129 | *) | |
1130 | enable_shared=no | |
1131 | # Look at the argument we got. We use all the common list separators. | |
1132 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1133 | for pkg in $enableval; do | |
1134 | if test "X$pkg" = "X$p"; then | |
1135 | enable_shared=yes | |
1136 | fi | |
1137 | done | |
1138 | IFS="$ac_save_ifs" | |
1139 | ;; | |
1140 | esac | |
1141 | else | |
1142 | enable_shared=no | |
1143 | fi | |
1144 | ||
1145 | ||
1146 | # Check whether --enable-static or --disable-static was given. | |
1147 | if test "${enable_static+set}" = set; then | |
1148 | enableval="$enable_static" | |
1149 | p=${PACKAGE-default} | |
1150 | case "$enableval" in | |
1151 | yes) enable_static=yes ;; | |
1152 | no) enable_static=no ;; | |
1153 | *) | |
1154 | enable_static=no | |
1155 | # Look at the argument we got. We use all the common list separators. | |
1156 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1157 | for pkg in $enableval; do | |
1158 | if test "X$pkg" = "X$p"; then | |
1159 | enable_static=yes | |
1160 | fi | |
1161 | done | |
1162 | IFS="$ac_save_ifs" | |
1163 | ;; | |
1164 | esac | |
1165 | else | |
1166 | enable_static=yes | |
1167 | fi | |
1168 | ||
1169 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
1170 | if test "${enable_fast_install+set}" = set; then | |
1171 | enableval="$enable_fast_install" | |
1172 | p=${PACKAGE-default} | |
1173 | case "$enableval" in | |
1174 | yes) enable_fast_install=yes ;; | |
1175 | no) enable_fast_install=no ;; | |
1176 | *) | |
1177 | enable_fast_install=no | |
1178 | # Look at the argument we got. We use all the common list separators. | |
1179 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1180 | for pkg in $enableval; do | |
1181 | if test "X$pkg" = "X$p"; then | |
1182 | enable_fast_install=yes | |
1183 | fi | |
1184 | done | |
1185 | IFS="$ac_save_ifs" | |
1186 | ;; | |
1187 | esac | |
1188 | else | |
1189 | enable_fast_install=yes | |
1190 | fi | |
1191 | ||
09919455 NC |
1192 | # Extract the first word of "gcc", so it can be a program name with args. |
1193 | set dummy gcc; ac_word=$2 | |
1194 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1195 | echo "configure:1196: checking for $ac_word" >&5 | |
1196 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1198 | else | |
1199 | if test -n "$CC"; then | |
1200 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1201 | else | |
1202 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1203 | ac_dummy="$PATH" | |
1204 | for ac_dir in $ac_dummy; do | |
1205 | test -z "$ac_dir" && ac_dir=. | |
1206 | if test -f $ac_dir/$ac_word; then | |
1207 | ac_cv_prog_CC="gcc" | |
1208 | break | |
1209 | fi | |
1210 | done | |
1211 | IFS="$ac_save_ifs" | |
1212 | fi | |
1213 | fi | |
1214 | CC="$ac_cv_prog_CC" | |
1215 | if test -n "$CC"; then | |
1216 | echo "$ac_t""$CC" 1>&6 | |
1217 | else | |
1218 | echo "$ac_t""no" 1>&6 | |
1219 | fi | |
1220 | ||
1221 | if test -z "$CC"; then | |
1222 | # Extract the first word of "cc", so it can be a program name with args. | |
1223 | set dummy cc; ac_word=$2 | |
1224 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1225 | echo "configure:1226: checking for $ac_word" >&5 | |
1226 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1228 | else | |
1229 | if test -n "$CC"; then | |
1230 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1231 | else | |
1232 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1233 | ac_prog_rejected=no | |
1234 | ac_dummy="$PATH" | |
1235 | for ac_dir in $ac_dummy; do | |
1236 | test -z "$ac_dir" && ac_dir=. | |
1237 | if test -f $ac_dir/$ac_word; then | |
1238 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1239 | ac_prog_rejected=yes | |
1240 | continue | |
1241 | fi | |
1242 | ac_cv_prog_CC="cc" | |
1243 | break | |
1244 | fi | |
1245 | done | |
1246 | IFS="$ac_save_ifs" | |
1247 | if test $ac_prog_rejected = yes; then | |
1248 | # We found a bogon in the path, so make sure we never use it. | |
1249 | set dummy $ac_cv_prog_CC | |
1250 | shift | |
1251 | if test $# -gt 0; then | |
1252 | # We chose a different compiler from the bogus one. | |
1253 | # However, it has the same basename, so the bogon will be chosen | |
1254 | # first if we set CC to just the basename; use the full file name. | |
1255 | shift | |
1256 | set dummy "$ac_dir/$ac_word" "$@" | |
1257 | shift | |
1258 | ac_cv_prog_CC="$@" | |
1259 | fi | |
1260 | fi | |
1261 | fi | |
1262 | fi | |
1263 | CC="$ac_cv_prog_CC" | |
1264 | if test -n "$CC"; then | |
1265 | echo "$ac_t""$CC" 1>&6 | |
1266 | else | |
1267 | echo "$ac_t""no" 1>&6 | |
1268 | fi | |
1269 | ||
1270 | if test -z "$CC"; then | |
1271 | case "`uname -s`" in | |
1272 | *win32* | *WIN32*) | |
1273 | # Extract the first word of "cl", so it can be a program name with args. | |
1274 | set dummy cl; ac_word=$2 | |
1275 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1276 | echo "configure:1277: checking for $ac_word" >&5 | |
1277 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1278 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1279 | else | |
1280 | if test -n "$CC"; then | |
1281 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1282 | else | |
1283 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1284 | ac_dummy="$PATH" | |
1285 | for ac_dir in $ac_dummy; do | |
1286 | test -z "$ac_dir" && ac_dir=. | |
1287 | if test -f $ac_dir/$ac_word; then | |
1288 | ac_cv_prog_CC="cl" | |
1289 | break | |
1290 | fi | |
1291 | done | |
1292 | IFS="$ac_save_ifs" | |
1293 | fi | |
1294 | fi | |
1295 | CC="$ac_cv_prog_CC" | |
1296 | if test -n "$CC"; then | |
1297 | echo "$ac_t""$CC" 1>&6 | |
1298 | else | |
1299 | echo "$ac_t""no" 1>&6 | |
1300 | fi | |
1301 | ;; | |
1302 | esac | |
1303 | fi | |
1304 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1305 | fi | |
1306 | ||
1307 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
1308 | echo "configure:1309: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
1309 | ||
1310 | ac_ext=c | |
1311 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1312 | ac_cpp='$CPP $CPPFLAGS' | |
1313 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1314 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1315 | cross_compiling=$ac_cv_prog_cc_cross | |
1316 | ||
1317 | cat > conftest.$ac_ext << EOF | |
1318 | ||
1319 | #line 1320 "configure" | |
1320 | #include "confdefs.h" | |
1321 | ||
1322 | main(){return(0);} | |
1323 | EOF | |
1324 | if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1325 | ac_cv_prog_cc_works=yes | |
1326 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1327 | if (./conftest; exit) 2>/dev/null; then | |
1328 | ac_cv_prog_cc_cross=no | |
1329 | else | |
1330 | ac_cv_prog_cc_cross=yes | |
1331 | fi | |
1332 | else | |
1333 | echo "configure: failed program was:" >&5 | |
1334 | cat conftest.$ac_ext >&5 | |
1335 | ac_cv_prog_cc_works=no | |
1336 | fi | |
1337 | rm -fr conftest* | |
1338 | ac_ext=c | |
1339 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1340 | ac_cpp='$CPP $CPPFLAGS' | |
1341 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1342 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1343 | cross_compiling=$ac_cv_prog_cc_cross | |
1344 | ||
1345 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1346 | if test $ac_cv_prog_cc_works = no; then | |
1347 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1348 | fi | |
1349 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
1350 | echo "configure:1351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
1351 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
1352 | cross_compiling=$ac_cv_prog_cc_cross | |
1353 | ||
1354 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
1355 | echo "configure:1356: checking whether we are using GNU C" >&5 | |
1356 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
1357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1358 | else | |
1359 | cat > conftest.c <<EOF | |
1360 | #ifdef __GNUC__ | |
1361 | yes; | |
1362 | #endif | |
1363 | EOF | |
1364 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
1365 | ac_cv_prog_gcc=yes | |
1366 | else | |
1367 | ac_cv_prog_gcc=no | |
1368 | fi | |
1369 | fi | |
1370 | ||
1371 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1372 | ||
1373 | if test $ac_cv_prog_gcc = yes; then | |
1374 | GCC=yes | |
1375 | else | |
1376 | GCC= | |
1377 | fi | |
1378 | ||
1379 | ac_test_CFLAGS="${CFLAGS+set}" | |
1380 | ac_save_CFLAGS="$CFLAGS" | |
1381 | CFLAGS= | |
1382 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1383 | echo "configure:1384: checking whether ${CC-cc} accepts -g" >&5 | |
1384 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
1385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1386 | else | |
1387 | echo 'void f(){}' > conftest.c | |
1388 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1389 | ac_cv_prog_cc_g=yes | |
1390 | else | |
1391 | ac_cv_prog_cc_g=no | |
1392 | fi | |
1393 | rm -f conftest* | |
1394 | ||
1395 | fi | |
1396 | ||
1397 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1398 | if test "$ac_test_CFLAGS" = set; then | |
1399 | CFLAGS="$ac_save_CFLAGS" | |
1400 | elif test $ac_cv_prog_cc_g = yes; then | |
1401 | if test "$GCC" = yes; then | |
1402 | CFLAGS="-g -O2" | |
1403 | else | |
1404 | CFLAGS="-g" | |
1405 | fi | |
1406 | else | |
1407 | if test "$GCC" = yes; then | |
1408 | CFLAGS="-O2" | |
1409 | else | |
1410 | CFLAGS= | |
1411 | fi | |
1412 | fi | |
1413 | ||
252b5132 RH |
1414 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1415 | if test "${with_gnu_ld+set}" = set; then | |
1416 | withval="$with_gnu_ld" | |
1417 | test "$withval" = no || with_gnu_ld=yes | |
1418 | else | |
1419 | with_gnu_ld=no | |
1420 | fi | |
1421 | ||
1422 | ac_prog=ld | |
1423 | if test "$ac_cv_prog_gcc" = yes; then | |
1424 | # Check if gcc -print-prog-name=ld gives a path. | |
1425 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
09919455 | 1426 | echo "configure:1427: checking for ld used by GCC" >&5 |
ac48eca1 AO |
1427 | case $host in |
1428 | *-*-mingw*) | |
1429 | # gcc leaves a trailing carriage return which upsets mingw | |
1430 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1431 | *) | |
1432 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1433 | esac | |
252b5132 RH |
1434 | case "$ac_prog" in |
1435 | # Accept absolute paths. | |
a74801ba | 1436 | [\\/]* | [A-Za-z]:[\\/]*) |
252b5132 RH |
1437 | re_direlt='/[^/][^/]*/\.\./' |
1438 | # Canonicalize the path of ld | |
1439 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1440 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1441 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1442 | done | |
1443 | test -z "$LD" && LD="$ac_prog" | |
1444 | ;; | |
1445 | "") | |
1446 | # If it fails, then pretend we aren't using GCC. | |
1447 | ac_prog=ld | |
1448 | ;; | |
1449 | *) | |
1450 | # If it is relative, then search for the first ld in PATH. | |
1451 | with_gnu_ld=unknown | |
1452 | ;; | |
1453 | esac | |
1454 | elif test "$with_gnu_ld" = yes; then | |
1455 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
09919455 | 1456 | echo "configure:1457: checking for GNU ld" >&5 |
252b5132 RH |
1457 | else |
1458 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
09919455 | 1459 | echo "configure:1460: checking for non-GNU ld" >&5 |
252b5132 | 1460 | fi |
a2d91340 | 1461 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
252b5132 RH |
1462 | echo $ac_n "(cached) $ac_c" 1>&6 |
1463 | else | |
1464 | if test -z "$LD"; then | |
a74801ba | 1465 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
1466 | for ac_dir in $PATH; do |
1467 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 1468 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
252b5132 RH |
1469 | ac_cv_path_LD="$ac_dir/$ac_prog" |
1470 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1471 | # but apparently some GNU ld's only accept -v. | |
1472 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
1473 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
1474 | test "$with_gnu_ld" != no && break | |
1475 | else | |
1476 | test "$with_gnu_ld" != yes && break | |
1477 | fi | |
1478 | fi | |
1479 | done | |
1480 | IFS="$ac_save_ifs" | |
1481 | else | |
1482 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
1483 | fi | |
1484 | fi | |
1485 | ||
1486 | LD="$ac_cv_path_LD" | |
1487 | if test -n "$LD"; then | |
1488 | echo "$ac_t""$LD" 1>&6 | |
1489 | else | |
1490 | echo "$ac_t""no" 1>&6 | |
1491 | fi | |
1492 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
252b5132 | 1493 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
09919455 | 1494 | echo "configure:1495: checking if the linker ($LD) is GNU ld" >&5 |
a2d91340 | 1495 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
252b5132 RH |
1496 | echo $ac_n "(cached) $ac_c" 1>&6 |
1497 | else | |
1498 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1499 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
1500 | ac_cv_prog_gnu_ld=yes | |
1501 | else | |
1502 | ac_cv_prog_gnu_ld=no | |
1503 | fi | |
1504 | fi | |
1505 | ||
1506 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | |
ac48eca1 AO |
1507 | with_gnu_ld=$ac_cv_prog_gnu_ld |
1508 | ||
1509 | ||
1510 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | |
09919455 | 1511 | echo "configure:1512: checking for $LD option to reload object files" >&5 |
ac48eca1 AO |
1512 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1514 | else | |
1515 | lt_cv_ld_reload_flag='-r' | |
1516 | fi | |
252b5132 | 1517 | |
ac48eca1 AO |
1518 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 |
1519 | reload_flag=$lt_cv_ld_reload_flag | |
1520 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
252b5132 RH |
1521 | |
1522 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
09919455 | 1523 | echo "configure:1524: checking for BSD-compatible nm" >&5 |
a2d91340 | 1524 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
252b5132 RH |
1525 | echo $ac_n "(cached) $ac_c" 1>&6 |
1526 | else | |
1527 | if test -n "$NM"; then | |
1528 | # Let the user override the test. | |
1529 | ac_cv_path_NM="$NM" | |
1530 | else | |
a74801ba | 1531 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
1532 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
1533 | test -z "$ac_dir" && ac_dir=. | |
ac48eca1 AO |
1534 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
1535 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
1536 | # Check to see if the nm accepts a BSD-compat flag. |
1537 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1538 | # nm: unknown option "B" ignored | |
90f2472a AO |
1539 | # Tru64's nm complains that /dev/null is an invalid object file |
1540 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
ac48eca1 | 1541 | ac_cv_path_NM="$tmp_nm -B" |
252b5132 | 1542 | break |
ac48eca1 AO |
1543 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
1544 | ac_cv_path_NM="$tmp_nm -p" | |
252b5132 RH |
1545 | break |
1546 | else | |
ac48eca1 | 1547 | ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but |
252b5132 RH |
1548 | continue # so that we can try to find one that supports BSD flags |
1549 | fi | |
1550 | fi | |
1551 | done | |
1552 | IFS="$ac_save_ifs" | |
1553 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | |
1554 | fi | |
1555 | fi | |
1556 | ||
1557 | NM="$ac_cv_path_NM" | |
1558 | echo "$ac_t""$NM" 1>&6 | |
1559 | ||
252b5132 | 1560 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
09919455 | 1561 | echo "configure:1562: checking whether ln -s works" >&5 |
a2d91340 | 1562 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
252b5132 RH |
1563 | echo $ac_n "(cached) $ac_c" 1>&6 |
1564 | else | |
1565 | rm -f conftestdata | |
1566 | if ln -s X conftestdata 2>/dev/null | |
1567 | then | |
1568 | rm -f conftestdata | |
1569 | ac_cv_prog_LN_S="ln -s" | |
1570 | else | |
1571 | ac_cv_prog_LN_S=ln | |
1572 | fi | |
1573 | fi | |
1574 | LN_S="$ac_cv_prog_LN_S" | |
1575 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1576 | echo "$ac_t""yes" 1>&6 | |
1577 | else | |
1578 | echo "$ac_t""no" 1>&6 | |
1579 | fi | |
1580 | ||
ac48eca1 | 1581 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
09919455 | 1582 | echo "configure:1583: checking how to recognise dependant libraries" >&5 |
ac48eca1 AO |
1583 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1585 | else | |
d64552c5 | 1586 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
1587 | lt_cv_file_magic_test_file= |
1588 | lt_cv_deplibs_check_method='unknown' | |
1589 | # Need to set the preceding variable on all platforms that support | |
1590 | # interlibrary dependencies. | |
1591 | # 'none' -- dependencies not supported. | |
1592 | # `unknown' -- same as none, but documents that we really don't know. | |
1593 | # 'pass_all' -- all dependencies passed with no checks. | |
1594 | # 'test_compile' -- check by making test program. | |
1595 | # 'file_magic [regex]' -- check by looking for files in library path | |
1596 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1597 | # If you have `file' or equivalent on your system and you're not sure | |
1598 | # whether `pass_all' will *always* work, you probably want this one. | |
1599 | ||
1600 | case "$host_os" in | |
1601 | aix4*) | |
1602 | lt_cv_deplibs_check_method=pass_all | |
1603 | ;; | |
1604 | ||
1605 | beos*) | |
1606 | lt_cv_deplibs_check_method=pass_all | |
1607 | ;; | |
1608 | ||
1609 | bsdi4*) | |
1610 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
1611 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1612 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1613 | ;; | |
1614 | ||
d64552c5 | 1615 | cygwin* | mingw* |pw32*) |
ac48eca1 | 1616 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 1617 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
1618 | ;; |
1619 | ||
1620 | freebsd* ) | |
1621 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
1622 | case "$host_cpu" in | |
1623 | i*86 ) | |
90f2472a AO |
1624 | # Not sure whether the presence of OpenBSD here was a mistake. |
1625 | # Let's accept both of them until this is cleared up. | |
1626 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
ac48eca1 AO |
1627 | lt_cv_file_magic_cmd=/usr/bin/file |
1628 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
1629 | ;; | |
1630 | esac | |
1631 | else | |
1632 | lt_cv_deplibs_check_method=pass_all | |
1633 | fi | |
1634 | ;; | |
1635 | ||
1636 | gnu*) | |
1637 | lt_cv_deplibs_check_method=pass_all | |
1638 | ;; | |
1639 | ||
1640 | hpux10.20*) | |
1641 | # TODO: Does this work for hpux-11 too? | |
1642 | lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library' | |
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*) | |
1648 | case "$host_os" in | |
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 | *) | |
1654 | case "$LD" in | |
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 | |
1661 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
1662 | ;; | |
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*) |
ac48eca1 AO |
1670 | case "$host_cpu" in |
1671 | alpha* | i*86 | powerpc* | sparc* | ia64* ) | |
1672 | lt_cv_deplibs_check_method=pass_all ;; | |
1673 | *) | |
1674 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
1675 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
1676 | esac | |
1677 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
1678 | ;; | |
1679 | ||
1680 | netbsd*) | |
1681 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then : | |
1682 | else | |
1683 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | |
1684 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1685 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
1686 | fi | |
1687 | ;; | |
1688 | ||
1689 | osf3* | osf4* | osf5*) | |
1690 | # this will be overridden with pass_all, but let us keep it just in case | |
1691 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
1692 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1693 | lt_cv_deplibs_check_method=pass_all | |
1694 | ;; | |
1695 | ||
1696 | sco3.2v5*) | |
1697 | lt_cv_deplibs_check_method=pass_all | |
1698 | ;; | |
1699 | ||
1700 | solaris*) | |
1701 | lt_cv_deplibs_check_method=pass_all | |
1702 | lt_cv_file_magic_test_file=/lib/libc.so | |
1703 | ;; | |
1704 | ||
1705 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
1706 | case "$host_vendor" in | |
1707 | ncr) | |
1708 | lt_cv_deplibs_check_method=pass_all | |
1709 | ;; | |
1710 | motorola) | |
1711 | 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]' | |
1712 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
1713 | ;; | |
1714 | esac | |
1715 | ;; | |
1716 | esac | |
1717 | ||
1718 | fi | |
1719 | ||
1720 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
1721 | file_magic_cmd=$lt_cv_file_magic_cmd | |
1722 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1723 | ||
1724 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
09919455 | 1725 | echo "configure:1726: checking for object suffix" >&5 |
ac48eca1 AO |
1726 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
1727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1728 | else | |
1729 | rm -f conftest* | |
1730 | echo 'int i = 1;' > conftest.$ac_ext | |
09919455 | 1731 | if { (eval echo configure:1732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac48eca1 AO |
1732 | for ac_file in conftest.*; do |
1733 | case $ac_file in | |
1734 | *.c) ;; | |
1735 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
1736 | esac | |
1737 | done | |
1738 | else | |
1739 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
1740 | fi | |
1741 | rm -f conftest* | |
1742 | fi | |
1743 | ||
1744 | echo "$ac_t""$ac_cv_objext" 1>&6 | |
1745 | OBJEXT=$ac_cv_objext | |
1746 | ac_objext=$ac_cv_objext | |
1747 | ||
1748 | ||
1749 | ||
1750 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
09919455 | 1751 | echo "configure:1752: checking for executable suffix" >&5 |
ac48eca1 AO |
1752 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1754 | else | |
1755 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1756 | ac_cv_exeext=.exe | |
1757 | else | |
1758 | rm -f conftest* | |
1759 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1760 | ac_cv_exeext= | |
09919455 | 1761 | if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
ac48eca1 AO |
1762 | for file in conftest.*; do |
1763 | case $file in | |
09919455 | 1764 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
ac48eca1 AO |
1765 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1766 | esac | |
1767 | done | |
1768 | else | |
1769 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1770 | fi | |
1771 | rm -f conftest* | |
1772 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1773 | fi | |
1774 | fi | |
1775 | ||
1776 | EXEEXT="" | |
1777 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1778 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1779 | ac_exeext=$EXEEXT | |
1780 | ||
1781 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
1782 | ||
1783 | # Only perform the check for file, if the check method requires it | |
1784 | case "$deplibs_check_method" in | |
1785 | file_magic*) | |
d64552c5 | 1786 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
ac48eca1 | 1787 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
09919455 | 1788 | echo "configure:1789: checking for ${ac_tool_prefix}file" >&5 |
d64552c5 | 1789 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
ac48eca1 AO |
1790 | echo $ac_n "(cached) $ac_c" 1>&6 |
1791 | else | |
d64552c5 | 1792 | case "$MAGIC_CMD" in |
ac48eca1 | 1793 | /*) |
d64552c5 | 1794 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
1795 | ;; |
1796 | ?:/*) | |
d64552c5 | 1797 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
1798 | ;; |
1799 | *) | |
d64552c5 | 1800 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
1801 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1802 | ac_dummy="/usr/bin:$PATH" | |
1803 | for ac_dir in $ac_dummy; do | |
1804 | test -z "$ac_dir" && ac_dir=. | |
1805 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 1806 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 AO |
1807 | if test -n "$file_magic_test_file"; then |
1808 | case "$deplibs_check_method" in | |
1809 | "file_magic "*) | |
1810 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 1811 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
1812 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1813 | egrep "$file_magic_regex" > /dev/null; then | |
1814 | : | |
1815 | else | |
1816 | cat <<EOF 1>&2 | |
1817 | ||
1818 | *** Warning: the command libtool uses to detect shared libraries, | |
1819 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1820 | *** The result is that libtool may fail to recognize shared libraries | |
1821 | *** as such. This will affect the creation of libtool libraries that | |
1822 | *** depend on shared libraries, but programs linked with such libtool | |
1823 | *** libraries will work regardless of this problem. Nevertheless, you | |
1824 | *** may want to report the problem to your system manager and/or to | |
1825 | *** bug-libtool@gnu.org | |
1826 | ||
1827 | EOF | |
1828 | fi ;; | |
1829 | esac | |
1830 | fi | |
1831 | break | |
1832 | fi | |
1833 | done | |
1834 | IFS="$ac_save_ifs" | |
d64552c5 | 1835 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
1836 | ;; |
1837 | esac | |
1838 | fi | |
1839 | ||
d64552c5 AO |
1840 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1841 | if test -n "$MAGIC_CMD"; then | |
1842 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
ac48eca1 AO |
1843 | else |
1844 | echo "$ac_t""no" 1>&6 | |
1845 | fi | |
1846 | ||
d64552c5 | 1847 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 AO |
1848 | if test -n "$ac_tool_prefix"; then |
1849 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
09919455 | 1850 | echo "configure:1851: checking for file" >&5 |
d64552c5 | 1851 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
ac48eca1 AO |
1852 | echo $ac_n "(cached) $ac_c" 1>&6 |
1853 | else | |
d64552c5 | 1854 | case "$MAGIC_CMD" in |
ac48eca1 | 1855 | /*) |
d64552c5 | 1856 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
1857 | ;; |
1858 | ?:/*) | |
d64552c5 | 1859 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
1860 | ;; |
1861 | *) | |
d64552c5 | 1862 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
1863 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1864 | ac_dummy="/usr/bin:$PATH" | |
1865 | for ac_dir in $ac_dummy; do | |
1866 | test -z "$ac_dir" && ac_dir=. | |
1867 | if test -f $ac_dir/file; then | |
d64552c5 | 1868 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 AO |
1869 | if test -n "$file_magic_test_file"; then |
1870 | case "$deplibs_check_method" in | |
1871 | "file_magic "*) | |
1872 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 1873 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
1874 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1875 | egrep "$file_magic_regex" > /dev/null; then | |
1876 | : | |
1877 | else | |
1878 | cat <<EOF 1>&2 | |
1879 | ||
1880 | *** Warning: the command libtool uses to detect shared libraries, | |
1881 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1882 | *** The result is that libtool may fail to recognize shared libraries | |
1883 | *** as such. This will affect the creation of libtool libraries that | |
1884 | *** depend on shared libraries, but programs linked with such libtool | |
1885 | *** libraries will work regardless of this problem. Nevertheless, you | |
1886 | *** may want to report the problem to your system manager and/or to | |
1887 | *** bug-libtool@gnu.org | |
1888 | ||
1889 | EOF | |
1890 | fi ;; | |
1891 | esac | |
1892 | fi | |
1893 | break | |
1894 | fi | |
1895 | done | |
1896 | IFS="$ac_save_ifs" | |
d64552c5 | 1897 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
1898 | ;; |
1899 | esac | |
1900 | fi | |
1901 | ||
d64552c5 AO |
1902 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1903 | if test -n "$MAGIC_CMD"; then | |
1904 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
ac48eca1 AO |
1905 | else |
1906 | echo "$ac_t""no" 1>&6 | |
1907 | fi | |
1908 | ||
1909 | else | |
d64552c5 | 1910 | MAGIC_CMD=: |
ac48eca1 AO |
1911 | fi |
1912 | fi | |
1913 | ||
1914 | fi | |
1915 | ;; | |
1916 | esac | |
1917 | ||
1918 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1919 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1920 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 1921 | echo "configure:1922: checking for $ac_word" >&5 |
ac48eca1 AO |
1922 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1924 | else | |
1925 | if test -n "$RANLIB"; then | |
1926 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1927 | else | |
1928 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1929 | ac_dummy="$PATH" | |
1930 | for ac_dir in $ac_dummy; do | |
1931 | test -z "$ac_dir" && ac_dir=. | |
1932 | if test -f $ac_dir/$ac_word; then | |
1933 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1934 | break | |
1935 | fi | |
1936 | done | |
1937 | IFS="$ac_save_ifs" | |
1938 | fi | |
1939 | fi | |
1940 | RANLIB="$ac_cv_prog_RANLIB" | |
1941 | if test -n "$RANLIB"; then | |
1942 | echo "$ac_t""$RANLIB" 1>&6 | |
1943 | else | |
1944 | echo "$ac_t""no" 1>&6 | |
1945 | fi | |
1946 | ||
1947 | ||
1948 | if test -z "$ac_cv_prog_RANLIB"; then | |
1949 | if test -n "$ac_tool_prefix"; then | |
1950 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1951 | set dummy ranlib; ac_word=$2 | |
1952 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 1953 | echo "configure:1954: checking for $ac_word" >&5 |
ac48eca1 AO |
1954 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1956 | else | |
1957 | if test -n "$RANLIB"; then | |
1958 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1959 | else | |
1960 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1961 | ac_dummy="$PATH" | |
1962 | for ac_dir in $ac_dummy; do | |
1963 | test -z "$ac_dir" && ac_dir=. | |
1964 | if test -f $ac_dir/$ac_word; then | |
1965 | ac_cv_prog_RANLIB="ranlib" | |
1966 | break | |
1967 | fi | |
1968 | done | |
1969 | IFS="$ac_save_ifs" | |
1970 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1971 | fi | |
1972 | fi | |
1973 | RANLIB="$ac_cv_prog_RANLIB" | |
1974 | if test -n "$RANLIB"; then | |
1975 | echo "$ac_t""$RANLIB" 1>&6 | |
1976 | else | |
1977 | echo "$ac_t""no" 1>&6 | |
1978 | fi | |
1979 | ||
1980 | else | |
1981 | RANLIB=":" | |
1982 | fi | |
1983 | fi | |
1984 | ||
1985 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1986 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1987 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 1988 | echo "configure:1989: checking for $ac_word" >&5 |
ac48eca1 AO |
1989 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
1990 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1991 | else | |
1992 | if test -n "$STRIP"; then | |
1993 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1994 | else | |
1995 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1996 | ac_dummy="$PATH" | |
1997 | for ac_dir in $ac_dummy; do | |
1998 | test -z "$ac_dir" && ac_dir=. | |
1999 | if test -f $ac_dir/$ac_word; then | |
2000 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2001 | break | |
2002 | fi | |
2003 | done | |
2004 | IFS="$ac_save_ifs" | |
2005 | fi | |
2006 | fi | |
2007 | STRIP="$ac_cv_prog_STRIP" | |
2008 | if test -n "$STRIP"; then | |
2009 | echo "$ac_t""$STRIP" 1>&6 | |
2010 | else | |
2011 | echo "$ac_t""no" 1>&6 | |
2012 | fi | |
2013 | ||
2014 | ||
2015 | if test -z "$ac_cv_prog_STRIP"; then | |
2016 | if test -n "$ac_tool_prefix"; then | |
2017 | # Extract the first word of "strip", so it can be a program name with args. | |
2018 | set dummy strip; ac_word=$2 | |
2019 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 2020 | echo "configure:2021: checking for $ac_word" >&5 |
ac48eca1 AO |
2021 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2023 | else | |
2024 | if test -n "$STRIP"; then | |
2025 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2026 | else | |
2027 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2028 | ac_dummy="$PATH" | |
2029 | for ac_dir in $ac_dummy; do | |
2030 | test -z "$ac_dir" && ac_dir=. | |
2031 | if test -f $ac_dir/$ac_word; then | |
2032 | ac_cv_prog_STRIP="strip" | |
2033 | break | |
2034 | fi | |
2035 | done | |
2036 | IFS="$ac_save_ifs" | |
2037 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
2038 | fi | |
2039 | fi | |
2040 | STRIP="$ac_cv_prog_STRIP" | |
2041 | if test -n "$STRIP"; then | |
2042 | echo "$ac_t""$STRIP" 1>&6 | |
2043 | else | |
2044 | echo "$ac_t""no" 1>&6 | |
2045 | fi | |
2046 | ||
2047 | else | |
2048 | STRIP=":" | |
2049 | fi | |
2050 | fi | |
2051 | ||
252b5132 RH |
2052 | |
2053 | # Check for any special flags to pass to ltconfig. | |
2054 | libtool_flags="--cache-file=$cache_file" | |
2055 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
2056 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
2057 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
252b5132 RH |
2058 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
2059 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
2060 | ||
a74801ba ILT |
2061 | |
2062 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2063 | if test "${enable_libtool_lock+set}" = set; then | |
2064 | enableval="$enable_libtool_lock" | |
2065 | : | |
2066 | fi | |
2067 | ||
2068 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2069 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2070 | ||
ac48eca1 AO |
2071 | # Check whether --with-pic or --without-pic was given. |
2072 | if test "${with_pic+set}" = set; then | |
2073 | withval="$with_pic" | |
2074 | pic_mode="$withval" | |
2075 | else | |
2076 | pic_mode=default | |
2077 | fi | |
2078 | ||
2079 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
2080 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2081 | ||
252b5132 RH |
2082 | # Some flags need to be propagated to the compiler or linker for good |
2083 | # libtool support. | |
dc62a253 | 2084 | case "$host" in |
252b5132 RH |
2085 | *-*-irix6*) |
2086 | # Find out which ABI we are using. | |
09919455 NC |
2087 | echo '#line 2088 "configure"' > conftest.$ac_ext |
2088 | if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
252b5132 RH |
2089 | case "`/usr/bin/file conftest.o`" in |
2090 | *32-bit*) | |
2091 | LD="${LD-ld} -32" | |
2092 | ;; | |
2093 | *N32*) | |
2094 | LD="${LD-ld} -n32" | |
2095 | ;; | |
2096 | *64-bit*) | |
2097 | LD="${LD-ld} -64" | |
2098 | ;; | |
2099 | esac | |
2100 | fi | |
2101 | rm -rf conftest* | |
2102 | ;; | |
2103 | ||
2104 | *-*-sco3.2v5*) | |
2105 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
2106 | SAVE_CFLAGS="$CFLAGS" | |
2107 | CFLAGS="$CFLAGS -belf" | |
2108 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
09919455 | 2109 | echo "configure:2110: checking whether the C compiler needs -belf" >&5 |
a2d91340 | 2110 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
252b5132 RH |
2111 | echo $ac_n "(cached) $ac_c" 1>&6 |
2112 | else | |
ac48eca1 AO |
2113 | |
2114 | ac_ext=c | |
2115 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2116 | ac_cpp='$CPP $CPPFLAGS' | |
2117 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2118 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2119 | cross_compiling=$ac_cv_prog_cc_cross | |
2120 | ||
2121 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2122 | #line 2123 "configure" |
252b5132 RH |
2123 | #include "confdefs.h" |
2124 | ||
2125 | int main() { | |
2126 | ||
2127 | ; return 0; } | |
2128 | EOF | |
09919455 | 2129 | if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2130 | rm -rf conftest* |
2131 | lt_cv_cc_needs_belf=yes | |
2132 | else | |
2133 | echo "configure: failed program was:" >&5 | |
2134 | cat conftest.$ac_ext >&5 | |
2135 | rm -rf conftest* | |
2136 | lt_cv_cc_needs_belf=no | |
2137 | fi | |
2138 | rm -f conftest* | |
ac48eca1 AO |
2139 | ac_ext=c |
2140 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2141 | ac_cpp='$CPP $CPPFLAGS' | |
2142 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2143 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2144 | cross_compiling=$ac_cv_prog_cc_cross | |
2145 | ||
252b5132 RH |
2146 | fi |
2147 | ||
2148 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2149 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2150 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2151 | CFLAGS="$SAVE_CFLAGS" | |
2152 | fi | |
2153 | ;; | |
2154 | ||
252b5132 RH |
2155 | |
2156 | esac | |
2157 | ||
252b5132 RH |
2158 | |
2159 | # Save cache, so that ltconfig can load it | |
2160 | cat > confcache <<\EOF | |
2161 | # This file is a shell script that caches the results of configure | |
2162 | # tests run on this system so they can be shared between configure | |
2163 | # scripts and configure runs. It is not useful on other systems. | |
2164 | # If it contains results you don't want to keep, you may remove or edit it. | |
2165 | # | |
2166 | # By default, configure uses ./config.cache as the cache file, | |
2167 | # creating it if it does not exist already. You can give configure | |
2168 | # the --cache-file=FILE option to use a different cache file; that is | |
2169 | # what configure does when it calls configure scripts in | |
2170 | # subdirectories, so they share the cache. | |
2171 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2172 | # config.status only pays attention to the cache file if you give it the | |
2173 | # --recheck option to rerun configure. | |
2174 | # | |
2175 | EOF | |
2176 | # The following way of writing the cache mishandles newlines in values, | |
2177 | # but we know of no workaround that is simple, portable, and efficient. | |
2178 | # So, don't put newlines in cache variables' values. | |
2179 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2180 | # and sets the high bit in the cache file unless we assign to the vars. | |
2181 | (set) 2>&1 | | |
2182 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2183 | *ac_space=\ *) | |
2184 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2185 | # turns \\\\ into \\, and sed turns \\ into \). | |
2186 | sed -n \ | |
2187 | -e "s/'/'\\\\''/g" \ | |
2188 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2189 | ;; | |
2190 | *) | |
2191 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2192 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2193 | ;; | |
2194 | esac >> confcache | |
2195 | if cmp -s $cache_file confcache; then | |
2196 | : | |
2197 | else | |
2198 | if test -w $cache_file; then | |
2199 | echo "updating cache $cache_file" | |
2200 | cat confcache > $cache_file | |
2201 | else | |
2202 | echo "not updating unwritable cache $cache_file" | |
2203 | fi | |
2204 | fi | |
2205 | rm -f confcache | |
2206 | ||
2207 | ||
2208 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
ac48eca1 | 2209 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 2210 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
2211 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2212 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2213 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2214 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 2215 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 2216 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
252b5132 RH |
2217 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
2218 | ||
2219 | # Reload cache, that may have been modified by ltconfig | |
2220 | if test -r "$cache_file"; then | |
2221 | echo "loading cache $cache_file" | |
a2d91340 | 2222 | . $cache_file |
252b5132 RH |
2223 | else |
2224 | echo "creating cache $cache_file" | |
2225 | > $cache_file | |
2226 | fi | |
2227 | ||
2228 | ||
2229 | # This can be used to rebuild libtool when needed | |
ac48eca1 | 2230 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
252b5132 RH |
2231 | |
2232 | # Always use our own libtool. | |
2233 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2234 | ||
2235 | # Redirect the config.log output again, so that the ltconfig log is not | |
2236 | # clobbered by the next message. | |
2237 | exec 5>>./config.log | |
2238 | ||
2239 | ||
ac48eca1 AO |
2240 | |
2241 | ||
2242 | ||
2243 | ||
d64552c5 | 2244 | |
ac48eca1 | 2245 | |
252b5132 RH |
2246 | # Check whether --enable-targets or --disable-targets was given. |
2247 | if test "${enable_targets+set}" = set; then | |
2248 | enableval="$enable_targets" | |
2249 | case "${enableval}" in | |
2250 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } | |
2251 | ;; | |
2252 | no) enable_targets= ;; | |
2253 | *) enable_targets=$enableval ;; | |
2254 | esac | |
2255 | fi | |
2256 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | |
2257 | if test "${enable_commonbfdlib+set}" = set; then | |
2258 | enableval="$enable_commonbfdlib" | |
2259 | case "${enableval}" in | |
2260 | yes) commonbfdlib=true ;; | |
2261 | no) commonbfdlib=false ;; | |
2262 | *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;; | |
2263 | esac | |
2264 | fi | |
2265 | ||
a2d91340 AC |
2266 | build_warnings="-W -Wall" |
2267 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
2268 | if test "${enable_build_warnings+set}" = set; then | |
2269 | enableval="$enable_build_warnings" | |
2270 | case "${enableval}" in | |
2271 | yes) ;; | |
2272 | no) build_warnings="-w";; | |
2273 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2274 | build_warnings="${build_warnings} ${t}";; | |
2275 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2276 | build_warnings="${t} ${build_warnings}";; | |
2277 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
2278 | esac | |
2279 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
2280 | echo "Setting warning flags = $build_warnings" 6>&1 | |
2281 | fi | |
2282 | fi | |
2283 | WARN_CFLAGS="" | |
2284 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then | |
2285 | WARN_CFLAGS="${build_warnings}" | |
2286 | fi | |
2287 | ||
2288 | ||
252b5132 RH |
2289 | |
2290 | ||
2291 | ||
2292 | ||
2293 | if test -z "$target" ; then | |
2294 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } | |
2295 | fi | |
2296 | if test "$program_transform_name" = s,x,x,; then | |
2297 | program_transform_name= | |
2298 | else | |
2299 | # Double any \ or $. echo might interpret backslashes. | |
2300 | cat <<\EOF_SED > conftestsed | |
2301 | s,\\,\\\\,g; s,\$,$$,g | |
2302 | EOF_SED | |
2303 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
2304 | rm -f conftestsed | |
2305 | fi | |
2306 | test "$program_prefix" != NONE && | |
a2d91340 | 2307 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
252b5132 RH |
2308 | # Use a double $ so make ignores it. |
2309 | test "$program_suffix" != NONE && | |
a2d91340 | 2310 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
252b5132 RH |
2311 | |
2312 | # sed with no file args requires a program. | |
2313 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
2314 | ||
2315 | ||
2316 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
09919455 | 2317 | echo "configure:2318: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
252b5132 RH |
2318 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
2319 | if test "${enable_maintainer_mode+set}" = set; then | |
2320 | enableval="$enable_maintainer_mode" | |
2321 | USE_MAINTAINER_MODE=$enableval | |
2322 | else | |
2323 | USE_MAINTAINER_MODE=no | |
2324 | fi | |
2325 | ||
2326 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
2327 | ||
2328 | ||
2329 | if test $USE_MAINTAINER_MODE = yes; then | |
2330 | MAINTAINER_MODE_TRUE= | |
2331 | MAINTAINER_MODE_FALSE='#' | |
2332 | else | |
2333 | MAINTAINER_MODE_TRUE='#' | |
2334 | MAINTAINER_MODE_FALSE= | |
2335 | fi | |
2336 | MAINT=$MAINTAINER_MODE_TRUE | |
2337 | ||
2338 | ||
252b5132 RH |
2339 | |
2340 | ||
2341 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
09919455 | 2342 | echo "configure:2343: checking for executable suffix" >&5 |
a2d91340 | 2343 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
252b5132 RH |
2344 | echo $ac_n "(cached) $ac_c" 1>&6 |
2345 | else | |
a2d91340 | 2346 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
252b5132 RH |
2347 | ac_cv_exeext=.exe |
2348 | else | |
2349 | rm -f conftest* | |
2350 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
2351 | ac_cv_exeext= | |
09919455 | 2352 | if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
252b5132 RH |
2353 | for file in conftest.*; do |
2354 | case $file in | |
09919455 | 2355 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
252b5132 RH |
2356 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
2357 | esac | |
2358 | done | |
2359 | else | |
2360 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
2361 | fi | |
2362 | rm -f conftest* | |
2363 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
2364 | fi | |
2365 | fi | |
2366 | ||
2367 | EXEEXT="" | |
2368 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
2369 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
2370 | ac_exeext=$EXEEXT | |
2371 | ||
2372 | ||
2373 | # host-specific stuff: | |
2374 | ||
2375 | # Extract the first word of "gcc", so it can be a program name with args. | |
2376 | set dummy gcc; ac_word=$2 | |
2377 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 2378 | echo "configure:2379: checking for $ac_word" >&5 |
a2d91340 | 2379 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
252b5132 RH |
2380 | echo $ac_n "(cached) $ac_c" 1>&6 |
2381 | else | |
2382 | if test -n "$CC"; then | |
2383 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2384 | else | |
2385 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2386 | ac_dummy="$PATH" | |
2387 | for ac_dir in $ac_dummy; do | |
2388 | test -z "$ac_dir" && ac_dir=. | |
2389 | if test -f $ac_dir/$ac_word; then | |
2390 | ac_cv_prog_CC="gcc" | |
2391 | break | |
2392 | fi | |
2393 | done | |
2394 | IFS="$ac_save_ifs" | |
2395 | fi | |
2396 | fi | |
2397 | CC="$ac_cv_prog_CC" | |
2398 | if test -n "$CC"; then | |
2399 | echo "$ac_t""$CC" 1>&6 | |
2400 | else | |
2401 | echo "$ac_t""no" 1>&6 | |
2402 | fi | |
2403 | ||
2404 | if test -z "$CC"; then | |
2405 | # Extract the first word of "cc", so it can be a program name with args. | |
2406 | set dummy cc; ac_word=$2 | |
2407 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 2408 | echo "configure:2409: checking for $ac_word" >&5 |
a2d91340 | 2409 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
252b5132 RH |
2410 | echo $ac_n "(cached) $ac_c" 1>&6 |
2411 | else | |
2412 | if test -n "$CC"; then | |
2413 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2414 | else | |
2415 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2416 | ac_prog_rejected=no | |
2417 | ac_dummy="$PATH" | |
2418 | for ac_dir in $ac_dummy; do | |
2419 | test -z "$ac_dir" && ac_dir=. | |
2420 | if test -f $ac_dir/$ac_word; then | |
2421 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2422 | ac_prog_rejected=yes | |
2423 | continue | |
2424 | fi | |
2425 | ac_cv_prog_CC="cc" | |
2426 | break | |
2427 | fi | |
2428 | done | |
2429 | IFS="$ac_save_ifs" | |
2430 | if test $ac_prog_rejected = yes; then | |
2431 | # We found a bogon in the path, so make sure we never use it. | |
2432 | set dummy $ac_cv_prog_CC | |
2433 | shift | |
2434 | if test $# -gt 0; then | |
2435 | # We chose a different compiler from the bogus one. | |
2436 | # However, it has the same basename, so the bogon will be chosen | |
2437 | # first if we set CC to just the basename; use the full file name. | |
2438 | shift | |
2439 | set dummy "$ac_dir/$ac_word" "$@" | |
2440 | shift | |
2441 | ac_cv_prog_CC="$@" | |
2442 | fi | |
2443 | fi | |
2444 | fi | |
2445 | fi | |
2446 | CC="$ac_cv_prog_CC" | |
2447 | if test -n "$CC"; then | |
2448 | echo "$ac_t""$CC" 1>&6 | |
2449 | else | |
2450 | echo "$ac_t""no" 1>&6 | |
2451 | fi | |
2452 | ||
2453 | if test -z "$CC"; then | |
2454 | case "`uname -s`" in | |
a2d91340 | 2455 | *win32* | *WIN32*) |
252b5132 RH |
2456 | # Extract the first word of "cl", so it can be a program name with args. |
2457 | set dummy cl; ac_word=$2 | |
2458 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 2459 | echo "configure:2460: checking for $ac_word" >&5 |
a2d91340 | 2460 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
252b5132 RH |
2461 | echo $ac_n "(cached) $ac_c" 1>&6 |
2462 | else | |
2463 | if test -n "$CC"; then | |
2464 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2465 | else | |
2466 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2467 | ac_dummy="$PATH" | |
2468 | for ac_dir in $ac_dummy; do | |
2469 | test -z "$ac_dir" && ac_dir=. | |
2470 | if test -f $ac_dir/$ac_word; then | |
2471 | ac_cv_prog_CC="cl" | |
2472 | break | |
2473 | fi | |
2474 | done | |
2475 | IFS="$ac_save_ifs" | |
2476 | fi | |
2477 | fi | |
2478 | CC="$ac_cv_prog_CC" | |
2479 | if test -n "$CC"; then | |
2480 | echo "$ac_t""$CC" 1>&6 | |
2481 | else | |
2482 | echo "$ac_t""no" 1>&6 | |
2483 | fi | |
2484 | ;; | |
2485 | esac | |
2486 | fi | |
2487 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
2488 | fi | |
2489 | ||
a2d91340 | 2490 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
09919455 | 2491 | echo "configure:2492: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
252b5132 RH |
2492 | |
2493 | ac_ext=c | |
2494 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2495 | ac_cpp='$CPP $CPPFLAGS' | |
2496 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2497 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2498 | cross_compiling=$ac_cv_prog_cc_cross | |
2499 | ||
2500 | cat > conftest.$ac_ext << EOF | |
2501 | ||
09919455 | 2502 | #line 2503 "configure" |
252b5132 RH |
2503 | #include "confdefs.h" |
2504 | ||
2505 | main(){return(0);} | |
2506 | EOF | |
09919455 | 2507 | if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2508 | ac_cv_prog_cc_works=yes |
2509 | # If we can't run a trivial program, we are probably using a cross compiler. | |
2510 | if (./conftest; exit) 2>/dev/null; then | |
2511 | ac_cv_prog_cc_cross=no | |
2512 | else | |
2513 | ac_cv_prog_cc_cross=yes | |
2514 | fi | |
2515 | else | |
2516 | echo "configure: failed program was:" >&5 | |
2517 | cat conftest.$ac_ext >&5 | |
2518 | ac_cv_prog_cc_works=no | |
2519 | fi | |
2520 | rm -fr conftest* | |
2521 | ac_ext=c | |
2522 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2523 | ac_cpp='$CPP $CPPFLAGS' | |
2524 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2525 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2526 | cross_compiling=$ac_cv_prog_cc_cross | |
2527 | ||
2528 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
2529 | if test $ac_cv_prog_cc_works = no; then | |
2530 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2531 | fi | |
a2d91340 | 2532 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
09919455 | 2533 | echo "configure:2534: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
252b5132 RH |
2534 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
2535 | cross_compiling=$ac_cv_prog_cc_cross | |
2536 | ||
2537 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
09919455 | 2538 | echo "configure:2539: checking whether we are using GNU C" >&5 |
a2d91340 | 2539 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
252b5132 RH |
2540 | echo $ac_n "(cached) $ac_c" 1>&6 |
2541 | else | |
2542 | cat > conftest.c <<EOF | |
2543 | #ifdef __GNUC__ | |
2544 | yes; | |
2545 | #endif | |
2546 | EOF | |
09919455 | 2547 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
252b5132 RH |
2548 | ac_cv_prog_gcc=yes |
2549 | else | |
2550 | ac_cv_prog_gcc=no | |
2551 | fi | |
2552 | fi | |
2553 | ||
2554 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
2555 | ||
2556 | if test $ac_cv_prog_gcc = yes; then | |
2557 | GCC=yes | |
2558 | else | |
2559 | GCC= | |
2560 | fi | |
2561 | ||
2562 | ac_test_CFLAGS="${CFLAGS+set}" | |
2563 | ac_save_CFLAGS="$CFLAGS" | |
2564 | CFLAGS= | |
2565 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
09919455 | 2566 | echo "configure:2567: checking whether ${CC-cc} accepts -g" >&5 |
a2d91340 | 2567 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
252b5132 RH |
2568 | echo $ac_n "(cached) $ac_c" 1>&6 |
2569 | else | |
2570 | echo 'void f(){}' > conftest.c | |
2571 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
2572 | ac_cv_prog_cc_g=yes | |
2573 | else | |
2574 | ac_cv_prog_cc_g=no | |
2575 | fi | |
2576 | rm -f conftest* | |
2577 | ||
2578 | fi | |
2579 | ||
2580 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
2581 | if test "$ac_test_CFLAGS" = set; then | |
2582 | CFLAGS="$ac_save_CFLAGS" | |
2583 | elif test $ac_cv_prog_cc_g = yes; then | |
2584 | if test "$GCC" = yes; then | |
2585 | CFLAGS="-g -O2" | |
2586 | else | |
2587 | CFLAGS="-g" | |
2588 | fi | |
2589 | else | |
2590 | if test "$GCC" = yes; then | |
2591 | CFLAGS="-O2" | |
2592 | else | |
2593 | CFLAGS= | |
2594 | fi | |
2595 | fi | |
2596 | ||
2597 | ||
2598 | ALL_LINGUAS= | |
2599 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
09919455 | 2600 | echo "configure:2601: checking how to run the C preprocessor" >&5 |
252b5132 RH |
2601 | # On Suns, sometimes $CPP names a directory. |
2602 | if test -n "$CPP" && test -d "$CPP"; then | |
2603 | CPP= | |
2604 | fi | |
2605 | if test -z "$CPP"; then | |
a2d91340 | 2606 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
252b5132 RH |
2607 | echo $ac_n "(cached) $ac_c" 1>&6 |
2608 | else | |
2609 | # This must be in double quotes, not single quotes, because CPP may get | |
2610 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2611 | CPP="${CC-cc} -E" | |
2612 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2613 | # not just through cpp. | |
2614 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2615 | #line 2616 "configure" |
252b5132 RH |
2616 | #include "confdefs.h" |
2617 | #include <assert.h> | |
2618 | Syntax Error | |
2619 | EOF | |
2620 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
09919455 | 2621 | { (eval echo configure:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2622 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2623 | if test -z "$ac_err"; then | |
2624 | : | |
2625 | else | |
2626 | echo "$ac_err" >&5 | |
2627 | echo "configure: failed program was:" >&5 | |
2628 | cat conftest.$ac_ext >&5 | |
2629 | rm -rf conftest* | |
2630 | CPP="${CC-cc} -E -traditional-cpp" | |
2631 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2632 | #line 2633 "configure" |
252b5132 RH |
2633 | #include "confdefs.h" |
2634 | #include <assert.h> | |
2635 | Syntax Error | |
2636 | EOF | |
2637 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
09919455 | 2638 | { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2639 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2640 | if test -z "$ac_err"; then | |
2641 | : | |
2642 | else | |
2643 | echo "$ac_err" >&5 | |
2644 | echo "configure: failed program was:" >&5 | |
2645 | cat conftest.$ac_ext >&5 | |
2646 | rm -rf conftest* | |
2647 | CPP="${CC-cc} -nologo -E" | |
2648 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2649 | #line 2650 "configure" |
252b5132 RH |
2650 | #include "confdefs.h" |
2651 | #include <assert.h> | |
2652 | Syntax Error | |
2653 | EOF | |
2654 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
09919455 | 2655 | { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2656 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2657 | if test -z "$ac_err"; then | |
2658 | : | |
2659 | else | |
2660 | echo "$ac_err" >&5 | |
2661 | echo "configure: failed program was:" >&5 | |
2662 | cat conftest.$ac_ext >&5 | |
2663 | rm -rf conftest* | |
2664 | CPP=/lib/cpp | |
2665 | fi | |
2666 | rm -f conftest* | |
2667 | fi | |
2668 | rm -f conftest* | |
2669 | fi | |
2670 | rm -f conftest* | |
2671 | ac_cv_prog_CPP="$CPP" | |
2672 | fi | |
2673 | CPP="$ac_cv_prog_CPP" | |
2674 | else | |
2675 | ac_cv_prog_CPP="$CPP" | |
2676 | fi | |
2677 | echo "$ac_t""$CPP" 1>&6 | |
2678 | ||
ac48eca1 AO |
2679 | # Extract the first word of "ranlib", so it can be a program name with args. |
2680 | set dummy ranlib; ac_word=$2 | |
2681 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 2682 | echo "configure:2683: checking for $ac_word" >&5 |
ac48eca1 AO |
2683 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2685 | else | |
2686 | if test -n "$RANLIB"; then | |
2687 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2688 | else | |
2689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2690 | ac_dummy="$PATH" | |
2691 | for ac_dir in $ac_dummy; do | |
2692 | test -z "$ac_dir" && ac_dir=. | |
2693 | if test -f $ac_dir/$ac_word; then | |
2694 | ac_cv_prog_RANLIB="ranlib" | |
2695 | break | |
2696 | fi | |
2697 | done | |
2698 | IFS="$ac_save_ifs" | |
2699 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2700 | fi | |
2701 | fi | |
2702 | RANLIB="$ac_cv_prog_RANLIB" | |
2703 | if test -n "$RANLIB"; then | |
2704 | echo "$ac_t""$RANLIB" 1>&6 | |
2705 | else | |
2706 | echo "$ac_t""no" 1>&6 | |
2707 | fi | |
2708 | ||
252b5132 | 2709 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
09919455 | 2710 | echo "configure:2711: checking for ANSI C header files" >&5 |
a2d91340 | 2711 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
252b5132 RH |
2712 | echo $ac_n "(cached) $ac_c" 1>&6 |
2713 | else | |
2714 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2715 | #line 2716 "configure" |
252b5132 RH |
2716 | #include "confdefs.h" |
2717 | #include <stdlib.h> | |
2718 | #include <stdarg.h> | |
2719 | #include <string.h> | |
2720 | #include <float.h> | |
2721 | EOF | |
2722 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
09919455 | 2723 | { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2724 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2725 | if test -z "$ac_err"; then | |
2726 | rm -rf conftest* | |
2727 | ac_cv_header_stdc=yes | |
2728 | else | |
2729 | echo "$ac_err" >&5 | |
2730 | echo "configure: failed program was:" >&5 | |
2731 | cat conftest.$ac_ext >&5 | |
2732 | rm -rf conftest* | |
2733 | ac_cv_header_stdc=no | |
2734 | fi | |
2735 | rm -f conftest* | |
2736 | ||
2737 | if test $ac_cv_header_stdc = yes; then | |
2738 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2739 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2740 | #line 2741 "configure" |
252b5132 RH |
2741 | #include "confdefs.h" |
2742 | #include <string.h> | |
2743 | EOF | |
2744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2745 | egrep "memchr" >/dev/null 2>&1; then | |
2746 | : | |
2747 | else | |
2748 | rm -rf conftest* | |
2749 | ac_cv_header_stdc=no | |
2750 | fi | |
2751 | rm -f conftest* | |
2752 | ||
2753 | fi | |
2754 | ||
2755 | if test $ac_cv_header_stdc = yes; then | |
2756 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2757 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2758 | #line 2759 "configure" |
252b5132 RH |
2759 | #include "confdefs.h" |
2760 | #include <stdlib.h> | |
2761 | EOF | |
2762 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2763 | egrep "free" >/dev/null 2>&1; then | |
2764 | : | |
2765 | else | |
2766 | rm -rf conftest* | |
2767 | ac_cv_header_stdc=no | |
2768 | fi | |
2769 | rm -f conftest* | |
2770 | ||
2771 | fi | |
2772 | ||
2773 | if test $ac_cv_header_stdc = yes; then | |
2774 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2775 | if test "$cross_compiling" = yes; then | |
2776 | : | |
2777 | else | |
2778 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2779 | #line 2780 "configure" |
252b5132 RH |
2780 | #include "confdefs.h" |
2781 | #include <ctype.h> | |
2782 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2783 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2784 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2785 | int main () { int i; for (i = 0; i < 256; i++) | |
2786 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2787 | exit (0); } | |
2788 | ||
2789 | EOF | |
09919455 | 2790 | if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
2791 | then |
2792 | : | |
2793 | else | |
2794 | echo "configure: failed program was:" >&5 | |
2795 | cat conftest.$ac_ext >&5 | |
2796 | rm -fr conftest* | |
2797 | ac_cv_header_stdc=no | |
2798 | fi | |
2799 | rm -fr conftest* | |
2800 | fi | |
2801 | ||
2802 | fi | |
2803 | fi | |
2804 | ||
2805 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2806 | if test $ac_cv_header_stdc = yes; then | |
2807 | cat >> confdefs.h <<\EOF | |
2808 | #define STDC_HEADERS 1 | |
2809 | EOF | |
2810 | ||
2811 | fi | |
2812 | ||
2813 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
09919455 | 2814 | echo "configure:2815: checking for working const" >&5 |
a2d91340 | 2815 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
252b5132 RH |
2816 | echo $ac_n "(cached) $ac_c" 1>&6 |
2817 | else | |
2818 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2819 | #line 2820 "configure" |
252b5132 RH |
2820 | #include "confdefs.h" |
2821 | ||
2822 | int main() { | |
2823 | ||
2824 | /* Ultrix mips cc rejects this. */ | |
2825 | typedef int charset[2]; const charset x; | |
2826 | /* SunOS 4.1.1 cc rejects this. */ | |
2827 | char const *const *ccp; | |
2828 | char **p; | |
2829 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
2830 | struct point {int x, y;}; | |
2831 | static struct point const zero = {0,0}; | |
2832 | /* AIX XL C 1.02.0.0 rejects this. | |
2833 | It does not let you subtract one const X* pointer from another in an arm | |
2834 | of an if-expression whose if-part is not a constant expression */ | |
2835 | const char *g = "string"; | |
2836 | ccp = &g + (g ? g-g : 0); | |
2837 | /* HPUX 7.0 cc rejects these. */ | |
2838 | ++ccp; | |
2839 | p = (char**) ccp; | |
2840 | ccp = (char const *const *) p; | |
2841 | { /* SCO 3.2v4 cc rejects this. */ | |
2842 | char *t; | |
2843 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2844 | ||
2845 | *t++ = 0; | |
2846 | } | |
2847 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2848 | int x[] = {25, 17}; | |
2849 | const int *foo = &x[0]; | |
2850 | ++foo; | |
2851 | } | |
2852 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2853 | typedef const int *iptr; | |
2854 | iptr p = 0; | |
2855 | ++p; | |
2856 | } | |
2857 | { /* AIX XL C 1.02.0.0 rejects this saying | |
2858 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2859 | struct s { int j; const int *ap[3]; }; | |
2860 | struct s *b; b->j = 5; | |
2861 | } | |
2862 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2863 | const int foo = 10; | |
2864 | } | |
2865 | ||
2866 | ; return 0; } | |
2867 | EOF | |
09919455 | 2868 | if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
2869 | rm -rf conftest* |
2870 | ac_cv_c_const=yes | |
2871 | else | |
2872 | echo "configure: failed program was:" >&5 | |
2873 | cat conftest.$ac_ext >&5 | |
2874 | rm -rf conftest* | |
2875 | ac_cv_c_const=no | |
2876 | fi | |
2877 | rm -f conftest* | |
2878 | fi | |
2879 | ||
2880 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
2881 | if test $ac_cv_c_const = no; then | |
2882 | cat >> confdefs.h <<\EOF | |
2883 | #define const | |
2884 | EOF | |
2885 | ||
2886 | fi | |
2887 | ||
2888 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
09919455 | 2889 | echo "configure:2890: checking for inline" >&5 |
a2d91340 | 2890 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
252b5132 RH |
2891 | echo $ac_n "(cached) $ac_c" 1>&6 |
2892 | else | |
2893 | ac_cv_c_inline=no | |
2894 | for ac_kw in inline __inline__ __inline; do | |
2895 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2896 | #line 2897 "configure" |
252b5132 RH |
2897 | #include "confdefs.h" |
2898 | ||
2899 | int main() { | |
a2d91340 | 2900 | } $ac_kw foo() { |
252b5132 RH |
2901 | ; return 0; } |
2902 | EOF | |
09919455 | 2903 | if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
2904 | rm -rf conftest* |
2905 | ac_cv_c_inline=$ac_kw; break | |
2906 | else | |
2907 | echo "configure: failed program was:" >&5 | |
2908 | cat conftest.$ac_ext >&5 | |
2909 | fi | |
2910 | rm -f conftest* | |
2911 | done | |
2912 | ||
2913 | fi | |
2914 | ||
2915 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
2916 | case "$ac_cv_c_inline" in | |
2917 | inline | yes) ;; | |
2918 | no) cat >> confdefs.h <<\EOF | |
2919 | #define inline | |
2920 | EOF | |
2921 | ;; | |
2922 | *) cat >> confdefs.h <<EOF | |
2923 | #define inline $ac_cv_c_inline | |
2924 | EOF | |
2925 | ;; | |
2926 | esac | |
2927 | ||
2928 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
09919455 | 2929 | echo "configure:2930: checking for off_t" >&5 |
a2d91340 | 2930 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
252b5132 RH |
2931 | echo $ac_n "(cached) $ac_c" 1>&6 |
2932 | else | |
2933 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2934 | #line 2935 "configure" |
252b5132 RH |
2935 | #include "confdefs.h" |
2936 | #include <sys/types.h> | |
2937 | #if STDC_HEADERS | |
2938 | #include <stdlib.h> | |
2939 | #include <stddef.h> | |
2940 | #endif | |
2941 | EOF | |
2942 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2943 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2944 | rm -rf conftest* | |
a2d91340 | 2945 | ac_cv_type_off_t=yes |
252b5132 RH |
2946 | else |
2947 | rm -rf conftest* | |
a2d91340 | 2948 | ac_cv_type_off_t=no |
252b5132 RH |
2949 | fi |
2950 | rm -f conftest* | |
2951 | ||
2952 | fi | |
a2d91340 AC |
2953 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
2954 | if test $ac_cv_type_off_t = no; then | |
2955 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
2956 | #define off_t long |
2957 | EOF | |
2958 | ||
2959 | fi | |
2960 | ||
2961 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
09919455 | 2962 | echo "configure:2963: checking for size_t" >&5 |
a2d91340 | 2963 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
252b5132 RH |
2964 | echo $ac_n "(cached) $ac_c" 1>&6 |
2965 | else | |
2966 | cat > conftest.$ac_ext <<EOF | |
09919455 | 2967 | #line 2968 "configure" |
252b5132 RH |
2968 | #include "confdefs.h" |
2969 | #include <sys/types.h> | |
2970 | #if STDC_HEADERS | |
2971 | #include <stdlib.h> | |
2972 | #include <stddef.h> | |
2973 | #endif | |
2974 | EOF | |
2975 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2976 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2977 | rm -rf conftest* | |
a2d91340 | 2978 | ac_cv_type_size_t=yes |
252b5132 RH |
2979 | else |
2980 | rm -rf conftest* | |
a2d91340 | 2981 | ac_cv_type_size_t=no |
252b5132 RH |
2982 | fi |
2983 | rm -f conftest* | |
2984 | ||
2985 | fi | |
a2d91340 AC |
2986 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
2987 | if test $ac_cv_type_size_t = no; then | |
2988 | cat >> confdefs.h <<\EOF | |
252b5132 RH |
2989 | #define size_t unsigned |
2990 | EOF | |
2991 | ||
2992 | fi | |
2993 | ||
2994 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2995 | # for constant arguments. Useless! | |
2996 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
09919455 | 2997 | echo "configure:2998: checking for working alloca.h" >&5 |
a2d91340 | 2998 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
252b5132 RH |
2999 | echo $ac_n "(cached) $ac_c" 1>&6 |
3000 | else | |
3001 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3002 | #line 3003 "configure" |
252b5132 RH |
3003 | #include "confdefs.h" |
3004 | #include <alloca.h> | |
3005 | int main() { | |
3006 | char *p = alloca(2 * sizeof(int)); | |
3007 | ; return 0; } | |
3008 | EOF | |
09919455 | 3009 | if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3010 | rm -rf conftest* |
3011 | ac_cv_header_alloca_h=yes | |
3012 | else | |
3013 | echo "configure: failed program was:" >&5 | |
3014 | cat conftest.$ac_ext >&5 | |
3015 | rm -rf conftest* | |
3016 | ac_cv_header_alloca_h=no | |
3017 | fi | |
3018 | rm -f conftest* | |
3019 | fi | |
3020 | ||
3021 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
3022 | if test $ac_cv_header_alloca_h = yes; then | |
3023 | cat >> confdefs.h <<\EOF | |
3024 | #define HAVE_ALLOCA_H 1 | |
3025 | EOF | |
3026 | ||
3027 | fi | |
3028 | ||
3029 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
09919455 | 3030 | echo "configure:3031: checking for alloca" >&5 |
a2d91340 | 3031 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
252b5132 RH |
3032 | echo $ac_n "(cached) $ac_c" 1>&6 |
3033 | else | |
3034 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3035 | #line 3036 "configure" |
252b5132 RH |
3036 | #include "confdefs.h" |
3037 | ||
3038 | #ifdef __GNUC__ | |
3039 | # define alloca __builtin_alloca | |
3040 | #else | |
3041 | # ifdef _MSC_VER | |
3042 | # include <malloc.h> | |
3043 | # define alloca _alloca | |
3044 | # else | |
3045 | # if HAVE_ALLOCA_H | |
3046 | # include <alloca.h> | |
3047 | # else | |
3048 | # ifdef _AIX | |
3049 | #pragma alloca | |
3050 | # else | |
3051 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3052 | char *alloca (); | |
3053 | # endif | |
3054 | # endif | |
3055 | # endif | |
3056 | # endif | |
3057 | #endif | |
3058 | ||
3059 | int main() { | |
3060 | char *p = (char *) alloca(1); | |
3061 | ; return 0; } | |
3062 | EOF | |
09919455 | 3063 | if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3064 | rm -rf conftest* |
3065 | ac_cv_func_alloca_works=yes | |
3066 | else | |
3067 | echo "configure: failed program was:" >&5 | |
3068 | cat conftest.$ac_ext >&5 | |
3069 | rm -rf conftest* | |
3070 | ac_cv_func_alloca_works=no | |
3071 | fi | |
3072 | rm -f conftest* | |
3073 | fi | |
3074 | ||
3075 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
3076 | if test $ac_cv_func_alloca_works = yes; then | |
3077 | cat >> confdefs.h <<\EOF | |
3078 | #define HAVE_ALLOCA 1 | |
3079 | EOF | |
3080 | ||
3081 | fi | |
3082 | ||
3083 | if test $ac_cv_func_alloca_works = no; then | |
3084 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3085 | # that cause trouble. Some versions do not even contain alloca or | |
3086 | # contain a buggy version. If you still want to use their alloca, | |
3087 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3088 | ALLOCA=alloca.${ac_objext} | |
3089 | cat >> confdefs.h <<\EOF | |
3090 | #define C_ALLOCA 1 | |
3091 | EOF | |
3092 | ||
3093 | ||
3094 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
09919455 | 3095 | echo "configure:3096: checking whether alloca needs Cray hooks" >&5 |
a2d91340 | 3096 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
252b5132 RH |
3097 | echo $ac_n "(cached) $ac_c" 1>&6 |
3098 | else | |
3099 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3100 | #line 3101 "configure" |
252b5132 RH |
3101 | #include "confdefs.h" |
3102 | #if defined(CRAY) && ! defined(CRAY2) | |
3103 | webecray | |
3104 | #else | |
3105 | wenotbecray | |
3106 | #endif | |
3107 | ||
3108 | EOF | |
3109 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3110 | egrep "webecray" >/dev/null 2>&1; then | |
3111 | rm -rf conftest* | |
3112 | ac_cv_os_cray=yes | |
3113 | else | |
3114 | rm -rf conftest* | |
3115 | ac_cv_os_cray=no | |
3116 | fi | |
3117 | rm -f conftest* | |
3118 | ||
3119 | fi | |
3120 | ||
3121 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
3122 | if test $ac_cv_os_cray = yes; then | |
3123 | for ac_func in _getb67 GETB67 getb67; do | |
3124 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
09919455 | 3125 | echo "configure:3126: checking for $ac_func" >&5 |
a2d91340 | 3126 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3127 | echo $ac_n "(cached) $ac_c" 1>&6 |
3128 | else | |
3129 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3130 | #line 3131 "configure" |
252b5132 RH |
3131 | #include "confdefs.h" |
3132 | /* System header to define __stub macros and hopefully few prototypes, | |
3133 | which can conflict with char $ac_func(); below. */ | |
3134 | #include <assert.h> | |
3135 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3136 | /* We use char because int might match the return type of a gcc2 | |
3137 | builtin and then its argument prototype would still apply. */ | |
3138 | char $ac_func(); | |
3139 | ||
3140 | int main() { | |
3141 | ||
3142 | /* The GNU C library defines this for functions which it implements | |
3143 | to always fail with ENOSYS. Some functions are actually named | |
3144 | something starting with __ and the normal name is an alias. */ | |
3145 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3146 | choke me | |
3147 | #else | |
a2d91340 | 3148 | $ac_func(); |
252b5132 RH |
3149 | #endif |
3150 | ||
3151 | ; return 0; } | |
3152 | EOF | |
09919455 | 3153 | if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3154 | rm -rf conftest* |
3155 | eval "ac_cv_func_$ac_func=yes" | |
3156 | else | |
3157 | echo "configure: failed program was:" >&5 | |
3158 | cat conftest.$ac_ext >&5 | |
3159 | rm -rf conftest* | |
3160 | eval "ac_cv_func_$ac_func=no" | |
3161 | fi | |
3162 | rm -f conftest* | |
3163 | fi | |
3164 | ||
3165 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3166 | echo "$ac_t""yes" 1>&6 | |
3167 | cat >> confdefs.h <<EOF | |
3168 | #define CRAY_STACKSEG_END $ac_func | |
3169 | EOF | |
3170 | ||
3171 | break | |
3172 | else | |
3173 | echo "$ac_t""no" 1>&6 | |
3174 | fi | |
3175 | ||
3176 | done | |
3177 | fi | |
3178 | ||
3179 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
09919455 | 3180 | echo "configure:3181: checking stack direction for C alloca" >&5 |
a2d91340 | 3181 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
252b5132 RH |
3182 | echo $ac_n "(cached) $ac_c" 1>&6 |
3183 | else | |
3184 | if test "$cross_compiling" = yes; then | |
3185 | ac_cv_c_stack_direction=0 | |
3186 | else | |
3187 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3188 | #line 3189 "configure" |
252b5132 RH |
3189 | #include "confdefs.h" |
3190 | find_stack_direction () | |
3191 | { | |
3192 | static char *addr = 0; | |
3193 | auto char dummy; | |
3194 | if (addr == 0) | |
3195 | { | |
3196 | addr = &dummy; | |
3197 | return find_stack_direction (); | |
3198 | } | |
3199 | else | |
3200 | return (&dummy > addr) ? 1 : -1; | |
3201 | } | |
3202 | main () | |
3203 | { | |
3204 | exit (find_stack_direction() < 0); | |
3205 | } | |
3206 | EOF | |
09919455 | 3207 | if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
3208 | then |
3209 | ac_cv_c_stack_direction=1 | |
3210 | else | |
3211 | echo "configure: failed program was:" >&5 | |
3212 | cat conftest.$ac_ext >&5 | |
3213 | rm -fr conftest* | |
3214 | ac_cv_c_stack_direction=-1 | |
3215 | fi | |
3216 | rm -fr conftest* | |
3217 | fi | |
3218 | ||
3219 | fi | |
3220 | ||
3221 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
3222 | cat >> confdefs.h <<EOF | |
3223 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3224 | EOF | |
3225 | ||
3226 | fi | |
3227 | ||
3228 | for ac_hdr in unistd.h | |
3229 | do | |
3230 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3231 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
09919455 | 3232 | echo "configure:3233: checking for $ac_hdr" >&5 |
a2d91340 | 3233 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
3234 | echo $ac_n "(cached) $ac_c" 1>&6 |
3235 | else | |
3236 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3237 | #line 3238 "configure" |
252b5132 RH |
3238 | #include "confdefs.h" |
3239 | #include <$ac_hdr> | |
3240 | EOF | |
3241 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
09919455 | 3242 | { (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3243 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3244 | if test -z "$ac_err"; then | |
3245 | rm -rf conftest* | |
3246 | eval "ac_cv_header_$ac_safe=yes" | |
3247 | else | |
3248 | echo "$ac_err" >&5 | |
3249 | echo "configure: failed program was:" >&5 | |
3250 | cat conftest.$ac_ext >&5 | |
3251 | rm -rf conftest* | |
3252 | eval "ac_cv_header_$ac_safe=no" | |
3253 | fi | |
3254 | rm -f conftest* | |
3255 | fi | |
3256 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3257 | echo "$ac_t""yes" 1>&6 | |
3258 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3259 | cat >> confdefs.h <<EOF | |
3260 | #define $ac_tr_hdr 1 | |
3261 | EOF | |
3262 | ||
3263 | else | |
3264 | echo "$ac_t""no" 1>&6 | |
3265 | fi | |
3266 | done | |
3267 | ||
3268 | for ac_func in getpagesize | |
3269 | do | |
3270 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
09919455 | 3271 | echo "configure:3272: checking for $ac_func" >&5 |
a2d91340 | 3272 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3273 | echo $ac_n "(cached) $ac_c" 1>&6 |
3274 | else | |
3275 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3276 | #line 3277 "configure" |
252b5132 RH |
3277 | #include "confdefs.h" |
3278 | /* System header to define __stub macros and hopefully few prototypes, | |
3279 | which can conflict with char $ac_func(); below. */ | |
3280 | #include <assert.h> | |
3281 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3282 | /* We use char because int might match the return type of a gcc2 | |
3283 | builtin and then its argument prototype would still apply. */ | |
3284 | char $ac_func(); | |
3285 | ||
3286 | int main() { | |
3287 | ||
3288 | /* The GNU C library defines this for functions which it implements | |
3289 | to always fail with ENOSYS. Some functions are actually named | |
3290 | something starting with __ and the normal name is an alias. */ | |
3291 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3292 | choke me | |
3293 | #else | |
a2d91340 | 3294 | $ac_func(); |
252b5132 RH |
3295 | #endif |
3296 | ||
3297 | ; return 0; } | |
3298 | EOF | |
09919455 | 3299 | if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3300 | rm -rf conftest* |
3301 | eval "ac_cv_func_$ac_func=yes" | |
3302 | else | |
3303 | echo "configure: failed program was:" >&5 | |
3304 | cat conftest.$ac_ext >&5 | |
3305 | rm -rf conftest* | |
3306 | eval "ac_cv_func_$ac_func=no" | |
3307 | fi | |
3308 | rm -f conftest* | |
3309 | fi | |
3310 | ||
3311 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3312 | echo "$ac_t""yes" 1>&6 | |
3313 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3314 | cat >> confdefs.h <<EOF | |
3315 | #define $ac_tr_func 1 | |
3316 | EOF | |
3317 | ||
3318 | else | |
3319 | echo "$ac_t""no" 1>&6 | |
3320 | fi | |
3321 | done | |
3322 | ||
3323 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
09919455 | 3324 | echo "configure:3325: checking for working mmap" >&5 |
a2d91340 | 3325 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
252b5132 RH |
3326 | echo $ac_n "(cached) $ac_c" 1>&6 |
3327 | else | |
3328 | if test "$cross_compiling" = yes; then | |
3329 | ac_cv_func_mmap_fixed_mapped=no | |
3330 | else | |
3331 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3332 | #line 3333 "configure" |
252b5132 RH |
3333 | #include "confdefs.h" |
3334 | ||
3335 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
3336 | Here is a matrix of mmap possibilities: | |
3337 | mmap private not fixed | |
3338 | mmap private fixed at somewhere currently unmapped | |
3339 | mmap private fixed at somewhere already mapped | |
3340 | mmap shared not fixed | |
3341 | mmap shared fixed at somewhere currently unmapped | |
3342 | mmap shared fixed at somewhere already mapped | |
3343 | For private mappings, we should verify that changes cannot be read() | |
3344 | back from the file, nor mmap's back from the file at a different | |
3345 | address. (There have been systems where private was not correctly | |
3346 | implemented like the infamous i386 svr4.0, and systems where the | |
3347 | VM page cache was not coherent with the filesystem buffer cache | |
3348 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
3349 | For shared mappings, we should conversely verify that changes get | |
3350 | propogated back to all the places they're supposed to be. | |
3351 | ||
3352 | Grep wants private fixed already mapped. | |
3353 | The main things grep needs to know about mmap are: | |
3354 | * does it exist and is it safe to write into the mmap'd area | |
3355 | * how to use it (BSD variants) */ | |
3356 | #include <sys/types.h> | |
3357 | #include <fcntl.h> | |
3358 | #include <sys/mman.h> | |
3359 | ||
3360 | /* This mess was copied from the GNU getpagesize.h. */ | |
3361 | #ifndef HAVE_GETPAGESIZE | |
3362 | # ifdef HAVE_UNISTD_H | |
3363 | # include <unistd.h> | |
3364 | # endif | |
3365 | ||
3366 | /* Assume that all systems that can run configure have sys/param.h. */ | |
3367 | # ifndef HAVE_SYS_PARAM_H | |
3368 | # define HAVE_SYS_PARAM_H 1 | |
3369 | # endif | |
3370 | ||
3371 | # ifdef _SC_PAGESIZE | |
3372 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
3373 | # else /* no _SC_PAGESIZE */ | |
3374 | # ifdef HAVE_SYS_PARAM_H | |
3375 | # include <sys/param.h> | |
3376 | # ifdef EXEC_PAGESIZE | |
3377 | # define getpagesize() EXEC_PAGESIZE | |
3378 | # else /* no EXEC_PAGESIZE */ | |
3379 | # ifdef NBPG | |
3380 | # define getpagesize() NBPG * CLSIZE | |
3381 | # ifndef CLSIZE | |
3382 | # define CLSIZE 1 | |
3383 | # endif /* no CLSIZE */ | |
3384 | # else /* no NBPG */ | |
3385 | # ifdef NBPC | |
3386 | # define getpagesize() NBPC | |
3387 | # else /* no NBPC */ | |
3388 | # ifdef PAGESIZE | |
3389 | # define getpagesize() PAGESIZE | |
3390 | # endif /* PAGESIZE */ | |
3391 | # endif /* no NBPC */ | |
3392 | # endif /* no NBPG */ | |
3393 | # endif /* no EXEC_PAGESIZE */ | |
3394 | # else /* no HAVE_SYS_PARAM_H */ | |
3395 | # define getpagesize() 8192 /* punt totally */ | |
3396 | # endif /* no HAVE_SYS_PARAM_H */ | |
3397 | # endif /* no _SC_PAGESIZE */ | |
3398 | ||
3399 | #endif /* no HAVE_GETPAGESIZE */ | |
3400 | ||
3401 | #ifdef __cplusplus | |
3402 | extern "C" { void *malloc(unsigned); } | |
3403 | #else | |
3404 | char *malloc(); | |
3405 | #endif | |
3406 | ||
3407 | int | |
3408 | main() | |
3409 | { | |
3410 | char *data, *data2, *data3; | |
3411 | int i, pagesize; | |
3412 | int fd; | |
3413 | ||
3414 | pagesize = getpagesize(); | |
3415 | ||
3416 | /* | |
3417 | * First, make a file with some known garbage in it. | |
3418 | */ | |
3419 | data = malloc(pagesize); | |
3420 | if (!data) | |
3421 | exit(1); | |
3422 | for (i = 0; i < pagesize; ++i) | |
3423 | *(data + i) = rand(); | |
3424 | umask(0); | |
3425 | fd = creat("conftestmmap", 0600); | |
3426 | if (fd < 0) | |
3427 | exit(1); | |
3428 | if (write(fd, data, pagesize) != pagesize) | |
3429 | exit(1); | |
3430 | close(fd); | |
3431 | ||
3432 | /* | |
3433 | * Next, try to mmap the file at a fixed address which | |
3434 | * already has something else allocated at it. If we can, | |
3435 | * also make sure that we see the same garbage. | |
3436 | */ | |
3437 | fd = open("conftestmmap", O_RDWR); | |
3438 | if (fd < 0) | |
3439 | exit(1); | |
3440 | data2 = malloc(2 * pagesize); | |
3441 | if (!data2) | |
3442 | exit(1); | |
3443 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
3444 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
3445 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3446 | exit(1); | |
3447 | for (i = 0; i < pagesize; ++i) | |
3448 | if (*(data + i) != *(data2 + i)) | |
3449 | exit(1); | |
3450 | ||
3451 | /* | |
3452 | * Finally, make sure that changes to the mapped area | |
3453 | * do not percolate back to the file as seen by read(). | |
3454 | * (This is a bug on some variants of i386 svr4.0.) | |
3455 | */ | |
3456 | for (i = 0; i < pagesize; ++i) | |
3457 | *(data2 + i) = *(data2 + i) + 1; | |
3458 | data3 = malloc(pagesize); | |
3459 | if (!data3) | |
3460 | exit(1); | |
3461 | if (read(fd, data3, pagesize) != pagesize) | |
3462 | exit(1); | |
3463 | for (i = 0; i < pagesize; ++i) | |
3464 | if (*(data + i) != *(data3 + i)) | |
3465 | exit(1); | |
3466 | close(fd); | |
3467 | unlink("conftestmmap"); | |
3468 | exit(0); | |
3469 | } | |
3470 | ||
3471 | EOF | |
09919455 | 3472 | if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
3473 | then |
3474 | ac_cv_func_mmap_fixed_mapped=yes | |
3475 | else | |
3476 | echo "configure: failed program was:" >&5 | |
3477 | cat conftest.$ac_ext >&5 | |
3478 | rm -fr conftest* | |
3479 | ac_cv_func_mmap_fixed_mapped=no | |
3480 | fi | |
3481 | rm -fr conftest* | |
3482 | fi | |
3483 | ||
3484 | fi | |
3485 | ||
3486 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
3487 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
3488 | cat >> confdefs.h <<\EOF | |
3489 | #define HAVE_MMAP 1 | |
3490 | EOF | |
3491 | ||
3492 | fi | |
3493 | ||
3494 | ||
3495 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
3496 | unistd.h values.h sys/param.h | |
3497 | do | |
3498 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3499 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
09919455 | 3500 | echo "configure:3501: checking for $ac_hdr" >&5 |
a2d91340 | 3501 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
3502 | echo $ac_n "(cached) $ac_c" 1>&6 |
3503 | else | |
3504 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3505 | #line 3506 "configure" |
252b5132 RH |
3506 | #include "confdefs.h" |
3507 | #include <$ac_hdr> | |
3508 | EOF | |
3509 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
09919455 | 3510 | { (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3511 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3512 | if test -z "$ac_err"; then | |
3513 | rm -rf conftest* | |
3514 | eval "ac_cv_header_$ac_safe=yes" | |
3515 | else | |
3516 | echo "$ac_err" >&5 | |
3517 | echo "configure: failed program was:" >&5 | |
3518 | cat conftest.$ac_ext >&5 | |
3519 | rm -rf conftest* | |
3520 | eval "ac_cv_header_$ac_safe=no" | |
3521 | fi | |
3522 | rm -f conftest* | |
3523 | fi | |
3524 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3525 | echo "$ac_t""yes" 1>&6 | |
3526 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3527 | cat >> confdefs.h <<EOF | |
3528 | #define $ac_tr_hdr 1 | |
3529 | EOF | |
3530 | ||
3531 | else | |
3532 | echo "$ac_t""no" 1>&6 | |
3533 | fi | |
3534 | done | |
3535 | ||
3536 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
3537 | __argz_count __argz_stringify __argz_next | |
3538 | do | |
3539 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
09919455 | 3540 | echo "configure:3541: checking for $ac_func" >&5 |
a2d91340 | 3541 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3542 | echo $ac_n "(cached) $ac_c" 1>&6 |
3543 | else | |
3544 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3545 | #line 3546 "configure" |
252b5132 RH |
3546 | #include "confdefs.h" |
3547 | /* System header to define __stub macros and hopefully few prototypes, | |
3548 | which can conflict with char $ac_func(); below. */ | |
3549 | #include <assert.h> | |
3550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3551 | /* We use char because int might match the return type of a gcc2 | |
3552 | builtin and then its argument prototype would still apply. */ | |
3553 | char $ac_func(); | |
3554 | ||
3555 | int main() { | |
3556 | ||
3557 | /* The GNU C library defines this for functions which it implements | |
3558 | to always fail with ENOSYS. Some functions are actually named | |
3559 | something starting with __ and the normal name is an alias. */ | |
3560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3561 | choke me | |
3562 | #else | |
a2d91340 | 3563 | $ac_func(); |
252b5132 RH |
3564 | #endif |
3565 | ||
3566 | ; return 0; } | |
3567 | EOF | |
09919455 | 3568 | if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3569 | rm -rf conftest* |
3570 | eval "ac_cv_func_$ac_func=yes" | |
3571 | else | |
3572 | echo "configure: failed program was:" >&5 | |
3573 | cat conftest.$ac_ext >&5 | |
3574 | rm -rf conftest* | |
3575 | eval "ac_cv_func_$ac_func=no" | |
3576 | fi | |
3577 | rm -f conftest* | |
3578 | fi | |
3579 | ||
3580 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3581 | echo "$ac_t""yes" 1>&6 | |
3582 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3583 | cat >> confdefs.h <<EOF | |
3584 | #define $ac_tr_func 1 | |
3585 | EOF | |
3586 | ||
3587 | else | |
3588 | echo "$ac_t""no" 1>&6 | |
3589 | fi | |
3590 | done | |
3591 | ||
3592 | ||
3593 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
3594 | for ac_func in stpcpy | |
3595 | do | |
3596 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
09919455 | 3597 | echo "configure:3598: checking for $ac_func" >&5 |
a2d91340 | 3598 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3599 | echo $ac_n "(cached) $ac_c" 1>&6 |
3600 | else | |
3601 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3602 | #line 3603 "configure" |
252b5132 RH |
3603 | #include "confdefs.h" |
3604 | /* System header to define __stub macros and hopefully few prototypes, | |
3605 | which can conflict with char $ac_func(); below. */ | |
3606 | #include <assert.h> | |
3607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3608 | /* We use char because int might match the return type of a gcc2 | |
3609 | builtin and then its argument prototype would still apply. */ | |
3610 | char $ac_func(); | |
3611 | ||
3612 | int main() { | |
3613 | ||
3614 | /* The GNU C library defines this for functions which it implements | |
3615 | to always fail with ENOSYS. Some functions are actually named | |
3616 | something starting with __ and the normal name is an alias. */ | |
3617 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3618 | choke me | |
3619 | #else | |
a2d91340 | 3620 | $ac_func(); |
252b5132 RH |
3621 | #endif |
3622 | ||
3623 | ; return 0; } | |
3624 | EOF | |
09919455 | 3625 | if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3626 | rm -rf conftest* |
3627 | eval "ac_cv_func_$ac_func=yes" | |
3628 | else | |
3629 | echo "configure: failed program was:" >&5 | |
3630 | cat conftest.$ac_ext >&5 | |
3631 | rm -rf conftest* | |
3632 | eval "ac_cv_func_$ac_func=no" | |
3633 | fi | |
3634 | rm -f conftest* | |
3635 | fi | |
3636 | ||
3637 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3638 | echo "$ac_t""yes" 1>&6 | |
3639 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3640 | cat >> confdefs.h <<EOF | |
3641 | #define $ac_tr_func 1 | |
3642 | EOF | |
3643 | ||
3644 | else | |
3645 | echo "$ac_t""no" 1>&6 | |
3646 | fi | |
3647 | done | |
3648 | ||
3649 | fi | |
3650 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
3651 | cat >> confdefs.h <<\EOF | |
3652 | #define HAVE_STPCPY 1 | |
3653 | EOF | |
3654 | ||
3655 | fi | |
3656 | ||
3657 | if test $ac_cv_header_locale_h = yes; then | |
3658 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
09919455 | 3659 | echo "configure:3660: checking for LC_MESSAGES" >&5 |
a2d91340 | 3660 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
252b5132 RH |
3661 | echo $ac_n "(cached) $ac_c" 1>&6 |
3662 | else | |
3663 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3664 | #line 3665 "configure" |
252b5132 RH |
3665 | #include "confdefs.h" |
3666 | #include <locale.h> | |
3667 | int main() { | |
3668 | return LC_MESSAGES | |
3669 | ; return 0; } | |
3670 | EOF | |
09919455 | 3671 | if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3672 | rm -rf conftest* |
3673 | am_cv_val_LC_MESSAGES=yes | |
3674 | else | |
3675 | echo "configure: failed program was:" >&5 | |
3676 | cat conftest.$ac_ext >&5 | |
3677 | rm -rf conftest* | |
3678 | am_cv_val_LC_MESSAGES=no | |
3679 | fi | |
3680 | rm -f conftest* | |
3681 | fi | |
3682 | ||
3683 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
3684 | if test $am_cv_val_LC_MESSAGES = yes; then | |
3685 | cat >> confdefs.h <<\EOF | |
3686 | #define HAVE_LC_MESSAGES 1 | |
3687 | EOF | |
3688 | ||
3689 | fi | |
3690 | fi | |
3691 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
09919455 | 3692 | echo "configure:3693: checking whether NLS is requested" >&5 |
252b5132 RH |
3693 | # Check whether --enable-nls or --disable-nls was given. |
3694 | if test "${enable_nls+set}" = set; then | |
3695 | enableval="$enable_nls" | |
3696 | USE_NLS=$enableval | |
3697 | else | |
3698 | USE_NLS=yes | |
3699 | fi | |
3700 | ||
3701 | echo "$ac_t""$USE_NLS" 1>&6 | |
3702 | ||
3703 | ||
3704 | USE_INCLUDED_LIBINTL=no | |
3705 | ||
3706 | if test "$USE_NLS" = "yes"; then | |
3707 | cat >> confdefs.h <<\EOF | |
3708 | #define ENABLE_NLS 1 | |
3709 | EOF | |
3710 | ||
3711 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
09919455 | 3712 | echo "configure:3713: checking whether included gettext is requested" >&5 |
252b5132 RH |
3713 | # Check whether --with-included-gettext or --without-included-gettext was given. |
3714 | if test "${with_included_gettext+set}" = set; then | |
3715 | withval="$with_included_gettext" | |
3716 | nls_cv_force_use_gnu_gettext=$withval | |
3717 | else | |
3718 | nls_cv_force_use_gnu_gettext=no | |
3719 | fi | |
3720 | ||
3721 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
3722 | ||
3723 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
3724 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
3725 | nls_cv_header_intl= | |
3726 | nls_cv_header_libgt= | |
3727 | CATOBJEXT=NONE | |
3728 | ||
3729 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
3730 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
09919455 | 3731 | echo "configure:3732: checking for libintl.h" >&5 |
a2d91340 | 3732 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
3733 | echo $ac_n "(cached) $ac_c" 1>&6 |
3734 | else | |
3735 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3736 | #line 3737 "configure" |
252b5132 RH |
3737 | #include "confdefs.h" |
3738 | #include <libintl.h> | |
3739 | EOF | |
3740 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
09919455 | 3741 | { (eval echo configure:3742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3742 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3743 | if test -z "$ac_err"; then | |
3744 | rm -rf conftest* | |
3745 | eval "ac_cv_header_$ac_safe=yes" | |
3746 | else | |
3747 | echo "$ac_err" >&5 | |
3748 | echo "configure: failed program was:" >&5 | |
3749 | cat conftest.$ac_ext >&5 | |
3750 | rm -rf conftest* | |
3751 | eval "ac_cv_header_$ac_safe=no" | |
3752 | fi | |
3753 | rm -f conftest* | |
3754 | fi | |
3755 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3756 | echo "$ac_t""yes" 1>&6 | |
3757 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
09919455 | 3758 | echo "configure:3759: checking for gettext in libc" >&5 |
a2d91340 | 3759 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
252b5132 RH |
3760 | echo $ac_n "(cached) $ac_c" 1>&6 |
3761 | else | |
3762 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3763 | #line 3764 "configure" |
252b5132 RH |
3764 | #include "confdefs.h" |
3765 | #include <libintl.h> | |
3766 | int main() { | |
3767 | return (int) gettext ("") | |
3768 | ; return 0; } | |
3769 | EOF | |
09919455 | 3770 | if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3771 | rm -rf conftest* |
3772 | gt_cv_func_gettext_libc=yes | |
3773 | else | |
3774 | echo "configure: failed program was:" >&5 | |
3775 | cat conftest.$ac_ext >&5 | |
3776 | rm -rf conftest* | |
3777 | gt_cv_func_gettext_libc=no | |
3778 | fi | |
3779 | rm -f conftest* | |
3780 | fi | |
3781 | ||
3782 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
3783 | ||
3784 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
3785 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
09919455 | 3786 | echo "configure:3787: checking for bindtextdomain in -lintl" >&5 |
a2d91340 AC |
3787 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
3788 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
252b5132 RH |
3789 | echo $ac_n "(cached) $ac_c" 1>&6 |
3790 | else | |
3791 | ac_save_LIBS="$LIBS" | |
3792 | LIBS="-lintl $LIBS" | |
3793 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3794 | #line 3795 "configure" |
252b5132 RH |
3795 | #include "confdefs.h" |
3796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3797 | /* We use char because int might match the return type of a gcc2 | |
3798 | builtin and then its argument prototype would still apply. */ | |
3799 | char bindtextdomain(); | |
3800 | ||
3801 | int main() { | |
3802 | bindtextdomain() | |
3803 | ; return 0; } | |
3804 | EOF | |
09919455 | 3805 | if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3806 | rm -rf conftest* |
3807 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3808 | else | |
3809 | echo "configure: failed program was:" >&5 | |
3810 | cat conftest.$ac_ext >&5 | |
3811 | rm -rf conftest* | |
3812 | eval "ac_cv_lib_$ac_lib_var=no" | |
3813 | fi | |
3814 | rm -f conftest* | |
3815 | LIBS="$ac_save_LIBS" | |
3816 | ||
3817 | fi | |
3818 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3819 | echo "$ac_t""yes" 1>&6 | |
3820 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
09919455 | 3821 | echo "configure:3822: checking for gettext in libintl" >&5 |
a2d91340 | 3822 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
252b5132 RH |
3823 | echo $ac_n "(cached) $ac_c" 1>&6 |
3824 | else | |
3825 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3826 | #line 3827 "configure" |
252b5132 RH |
3827 | #include "confdefs.h" |
3828 | ||
3829 | int main() { | |
3830 | return (int) gettext ("") | |
3831 | ; return 0; } | |
3832 | EOF | |
09919455 | 3833 | if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3834 | rm -rf conftest* |
3835 | gt_cv_func_gettext_libintl=yes | |
3836 | else | |
3837 | echo "configure: failed program was:" >&5 | |
3838 | cat conftest.$ac_ext >&5 | |
3839 | rm -rf conftest* | |
3840 | gt_cv_func_gettext_libintl=no | |
3841 | fi | |
3842 | rm -f conftest* | |
3843 | fi | |
3844 | ||
3845 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
3846 | else | |
3847 | echo "$ac_t""no" 1>&6 | |
3848 | fi | |
3849 | ||
3850 | fi | |
3851 | ||
3852 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
3853 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
3854 | cat >> confdefs.h <<\EOF | |
3855 | #define HAVE_GETTEXT 1 | |
3856 | EOF | |
3857 | ||
3858 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3859 | set dummy msgfmt; ac_word=$2 | |
3860 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 3861 | echo "configure:3862: checking for $ac_word" >&5 |
a2d91340 | 3862 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
252b5132 RH |
3863 | echo $ac_n "(cached) $ac_c" 1>&6 |
3864 | else | |
3865 | case "$MSGFMT" in | |
3866 | /*) | |
3867 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3868 | ;; | |
3869 | *) | |
3870 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3871 | for ac_dir in $PATH; do | |
3872 | test -z "$ac_dir" && ac_dir=. | |
3873 | if test -f $ac_dir/$ac_word; then | |
3874 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3875 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3876 | break | |
3877 | fi | |
3878 | fi | |
3879 | done | |
3880 | IFS="$ac_save_ifs" | |
3881 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
3882 | ;; | |
3883 | esac | |
3884 | fi | |
3885 | MSGFMT="$ac_cv_path_MSGFMT" | |
3886 | if test -n "$MSGFMT"; then | |
3887 | echo "$ac_t""$MSGFMT" 1>&6 | |
3888 | else | |
3889 | echo "$ac_t""no" 1>&6 | |
3890 | fi | |
3891 | if test "$MSGFMT" != "no"; then | |
3892 | for ac_func in dcgettext | |
3893 | do | |
3894 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
09919455 | 3895 | echo "configure:3896: checking for $ac_func" >&5 |
a2d91340 | 3896 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
252b5132 RH |
3897 | echo $ac_n "(cached) $ac_c" 1>&6 |
3898 | else | |
3899 | cat > conftest.$ac_ext <<EOF | |
09919455 | 3900 | #line 3901 "configure" |
252b5132 RH |
3901 | #include "confdefs.h" |
3902 | /* System header to define __stub macros and hopefully few prototypes, | |
3903 | which can conflict with char $ac_func(); below. */ | |
3904 | #include <assert.h> | |
3905 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3906 | /* We use char because int might match the return type of a gcc2 | |
3907 | builtin and then its argument prototype would still apply. */ | |
3908 | char $ac_func(); | |
3909 | ||
3910 | int main() { | |
3911 | ||
3912 | /* The GNU C library defines this for functions which it implements | |
3913 | to always fail with ENOSYS. Some functions are actually named | |
3914 | something starting with __ and the normal name is an alias. */ | |
3915 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3916 | choke me | |
3917 | #else | |
a2d91340 | 3918 | $ac_func(); |
252b5132 RH |
3919 | #endif |
3920 | ||
3921 | ; return 0; } | |
3922 | EOF | |
09919455 | 3923 | if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3924 | rm -rf conftest* |
3925 | eval "ac_cv_func_$ac_func=yes" | |
3926 | else | |
3927 | echo "configure: failed program was:" >&5 | |
3928 | cat conftest.$ac_ext >&5 | |
3929 | rm -rf conftest* | |
3930 | eval "ac_cv_func_$ac_func=no" | |
3931 | fi | |
3932 | rm -f conftest* | |
3933 | fi | |
3934 | ||
3935 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3936 | echo "$ac_t""yes" 1>&6 | |
3937 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3938 | cat >> confdefs.h <<EOF | |
3939 | #define $ac_tr_func 1 | |
3940 | EOF | |
3941 | ||
3942 | else | |
3943 | echo "$ac_t""no" 1>&6 | |
3944 | fi | |
3945 | done | |
3946 | ||
3947 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3948 | set dummy gmsgfmt; ac_word=$2 | |
3949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 3950 | echo "configure:3951: checking for $ac_word" >&5 |
a2d91340 | 3951 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
252b5132 RH |
3952 | echo $ac_n "(cached) $ac_c" 1>&6 |
3953 | else | |
3954 | case "$GMSGFMT" in | |
3955 | /*) | |
3956 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3957 | ;; | |
3958 | ?:/*) | |
3959 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3960 | ;; | |
3961 | *) | |
3962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3963 | ac_dummy="$PATH" | |
3964 | for ac_dir in $ac_dummy; do | |
3965 | test -z "$ac_dir" && ac_dir=. | |
3966 | if test -f $ac_dir/$ac_word; then | |
3967 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3968 | break | |
3969 | fi | |
3970 | done | |
3971 | IFS="$ac_save_ifs" | |
3972 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3973 | ;; | |
3974 | esac | |
3975 | fi | |
3976 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
3977 | if test -n "$GMSGFMT"; then | |
3978 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3979 | else | |
3980 | echo "$ac_t""no" 1>&6 | |
3981 | fi | |
3982 | ||
3983 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3984 | set dummy xgettext; ac_word=$2 | |
3985 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 3986 | echo "configure:3987: checking for $ac_word" >&5 |
a2d91340 | 3987 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
252b5132 RH |
3988 | echo $ac_n "(cached) $ac_c" 1>&6 |
3989 | else | |
3990 | case "$XGETTEXT" in | |
3991 | /*) | |
3992 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3993 | ;; | |
3994 | *) | |
3995 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3996 | for ac_dir in $PATH; do | |
3997 | test -z "$ac_dir" && ac_dir=. | |
3998 | if test -f $ac_dir/$ac_word; then | |
3999 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4000 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4001 | break | |
4002 | fi | |
4003 | fi | |
4004 | done | |
4005 | IFS="$ac_save_ifs" | |
4006 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4007 | ;; | |
4008 | esac | |
4009 | fi | |
4010 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
4011 | if test -n "$XGETTEXT"; then | |
4012 | echo "$ac_t""$XGETTEXT" 1>&6 | |
4013 | else | |
4014 | echo "$ac_t""no" 1>&6 | |
4015 | fi | |
4016 | ||
4017 | cat > conftest.$ac_ext <<EOF | |
09919455 | 4018 | #line 4019 "configure" |
252b5132 RH |
4019 | #include "confdefs.h" |
4020 | ||
4021 | int main() { | |
4022 | extern int _nl_msg_cat_cntr; | |
4023 | return _nl_msg_cat_cntr | |
4024 | ; return 0; } | |
4025 | EOF | |
09919455 | 4026 | if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
4027 | rm -rf conftest* |
4028 | CATOBJEXT=.gmo | |
4029 | DATADIRNAME=share | |
4030 | else | |
4031 | echo "configure: failed program was:" >&5 | |
4032 | cat conftest.$ac_ext >&5 | |
4033 | rm -rf conftest* | |
4034 | CATOBJEXT=.mo | |
4035 | DATADIRNAME=lib | |
4036 | fi | |
4037 | rm -f conftest* | |
4038 | INSTOBJEXT=.mo | |
4039 | fi | |
4040 | fi | |
4041 | ||
4042 | else | |
4043 | echo "$ac_t""no" 1>&6 | |
4044 | fi | |
4045 | ||
4046 | ||
4047 | ||
4048 | if test "$CATOBJEXT" = "NONE"; then | |
4049 | nls_cv_use_gnu_gettext=yes | |
4050 | fi | |
4051 | fi | |
4052 | ||
4053 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
4054 | INTLOBJS="\$(GETTOBJS)" | |
4055 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
4056 | set dummy msgfmt; ac_word=$2 | |
4057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 4058 | echo "configure:4059: checking for $ac_word" >&5 |
a2d91340 | 4059 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
252b5132 RH |
4060 | echo $ac_n "(cached) $ac_c" 1>&6 |
4061 | else | |
4062 | case "$MSGFMT" in | |
4063 | /*) | |
4064 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
4065 | ;; | |
4066 | *) | |
4067 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4068 | for ac_dir in $PATH; do | |
4069 | test -z "$ac_dir" && ac_dir=. | |
4070 | if test -f $ac_dir/$ac_word; then | |
4071 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
4072 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
4073 | break | |
4074 | fi | |
4075 | fi | |
4076 | done | |
4077 | IFS="$ac_save_ifs" | |
4078 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
4079 | ;; | |
4080 | esac | |
4081 | fi | |
4082 | MSGFMT="$ac_cv_path_MSGFMT" | |
4083 | if test -n "$MSGFMT"; then | |
4084 | echo "$ac_t""$MSGFMT" 1>&6 | |
4085 | else | |
4086 | echo "$ac_t""no" 1>&6 | |
4087 | fi | |
4088 | ||
4089 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
4090 | set dummy gmsgfmt; ac_word=$2 | |
4091 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 4092 | echo "configure:4093: checking for $ac_word" >&5 |
a2d91340 | 4093 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
252b5132 RH |
4094 | echo $ac_n "(cached) $ac_c" 1>&6 |
4095 | else | |
4096 | case "$GMSGFMT" in | |
4097 | /*) | |
4098 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
4099 | ;; | |
4100 | ?:/*) | |
4101 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
4102 | ;; | |
4103 | *) | |
4104 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4105 | ac_dummy="$PATH" | |
4106 | for ac_dir in $ac_dummy; do | |
4107 | test -z "$ac_dir" && ac_dir=. | |
4108 | if test -f $ac_dir/$ac_word; then | |
4109 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
4110 | break | |
4111 | fi | |
4112 | done | |
4113 | IFS="$ac_save_ifs" | |
4114 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
4115 | ;; | |
4116 | esac | |
4117 | fi | |
4118 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
4119 | if test -n "$GMSGFMT"; then | |
4120 | echo "$ac_t""$GMSGFMT" 1>&6 | |
4121 | else | |
4122 | echo "$ac_t""no" 1>&6 | |
4123 | fi | |
4124 | ||
4125 | # Extract the first word of "xgettext", so it can be a program name with args. | |
4126 | set dummy xgettext; ac_word=$2 | |
4127 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
09919455 | 4128 | echo "configure:4129: checking for $ac_word" >&5 |
a2d91340 | 4129 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
252b5132 RH |
4130 | echo $ac_n "(cached) $ac_c" 1>&6 |
4131 | else | |
4132 | case "$XGETTEXT" in | |
4133 | /*) | |
4134 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
4135 | ;; | |
4136 | *) | |
4137 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4138 | for ac_dir in $PATH; do | |
4139 | test -z "$ac_dir" && ac_dir=. | |
4140 | if test -f $ac_dir/$ac_word; then | |
4141 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4142 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4143 | break | |
4144 | fi | |
4145 | fi | |
4146 | done | |
4147 | IFS="$ac_save_ifs" | |
4148 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4149 | ;; | |
4150 | esac | |
4151 | fi | |
4152 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
4153 | if test -n "$XGETTEXT"; then | |
4154 | echo "$ac_t""$XGETTEXT" 1>&6 | |
4155 | else | |
4156 | echo "$ac_t""no" 1>&6 | |
4157 | fi | |
4158 | ||
4159 | ||
4160 | USE_INCLUDED_LIBINTL=yes | |
4161 | CATOBJEXT=.gmo | |
4162 | INSTOBJEXT=.mo | |
4163 | DATADIRNAME=share | |
4164 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
4165 | INTLLIBS=$INTLDEPS | |
4166 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
4167 | nls_cv_header_intl=libintl.h | |
4168 | nls_cv_header_libgt=libgettext.h | |
4169 | fi | |
4170 | ||
4171 | if test "$XGETTEXT" != ":"; then | |
4172 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
4173 | : ; | |
4174 | else | |
4175 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | |
4176 | XGETTEXT=":" | |
4177 | fi | |
4178 | fi | |
4179 | ||
4180 | # We need to process the po/ directory. | |
4181 | POSUB=po | |
4182 | else | |
4183 | DATADIRNAME=share | |
4184 | nls_cv_header_intl=libintl.h | |
4185 | nls_cv_header_libgt=libgettext.h | |
4186 | fi | |
4187 | ||
4188 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
4189 | # because some of the sources are only built for this goal. | |
4190 | if test "$PACKAGE" = gettext; then | |
4191 | USE_NLS=yes | |
4192 | USE_INCLUDED_LIBINTL=yes | |
4193 | fi | |
4194 | ||
4195 | for lang in $ALL_LINGUAS; do | |
4196 | GMOFILES="$GMOFILES $lang.gmo" | |
4197 | POFILES="$POFILES $lang.po" | |
4198 | done | |
4199 | ||
4200 | ||
4201 | ||
4202 | ||
4203 | ||
4204 | ||
4205 | ||
4206 | ||
4207 | ||
4208 | ||
4209 | ||
4210 | ||
4211 | ||
4212 | ||
4213 | if test "x$CATOBJEXT" != "x"; then | |
4214 | if test "x$ALL_LINGUAS" = "x"; then | |
4215 | LINGUAS= | |
4216 | else | |
4217 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
09919455 | 4218 | echo "configure:4219: checking for catalogs to be installed" >&5 |
252b5132 RH |
4219 | NEW_LINGUAS= |
4220 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
4221 | case "$ALL_LINGUAS" in | |
4222 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
4223 | esac | |
4224 | done | |
4225 | LINGUAS=$NEW_LINGUAS | |
4226 | echo "$ac_t""$LINGUAS" 1>&6 | |
4227 | fi | |
4228 | ||
4229 | if test -n "$LINGUAS"; then | |
4230 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
4231 | fi | |
4232 | fi | |
4233 | ||
4234 | if test $ac_cv_header_locale_h = yes; then | |
4235 | INCLUDE_LOCALE_H="#include <locale.h>" | |
4236 | else | |
4237 | INCLUDE_LOCALE_H="\ | |
4238 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
4239 | fi | |
4240 | ||
4241 | ||
4242 | if test -f $srcdir/po2tbl.sed.in; then | |
4243 | if test "$CATOBJEXT" = ".cat"; then | |
4244 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
4245 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
09919455 | 4246 | echo "configure:4247: checking for linux/version.h" >&5 |
a2d91340 | 4247 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
4248 | echo $ac_n "(cached) $ac_c" 1>&6 |
4249 | else | |
4250 | cat > conftest.$ac_ext <<EOF | |
09919455 | 4251 | #line 4252 "configure" |
252b5132 RH |
4252 | #include "confdefs.h" |
4253 | #include <linux/version.h> | |
4254 | EOF | |
4255 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
09919455 | 4256 | { (eval echo configure:4257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
4257 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4258 | if test -z "$ac_err"; then | |
4259 | rm -rf conftest* | |
4260 | eval "ac_cv_header_$ac_safe=yes" | |
4261 | else | |
4262 | echo "$ac_err" >&5 | |
4263 | echo "configure: failed program was:" >&5 | |
4264 | cat conftest.$ac_ext >&5 | |
4265 | rm -rf conftest* | |
4266 | eval "ac_cv_header_$ac_safe=no" | |
4267 | fi | |
4268 | rm -f conftest* | |
4269 | fi | |
4270 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4271 | echo "$ac_t""yes" 1>&6 | |
4272 | msgformat=linux | |
4273 | else | |
4274 | echo "$ac_t""no" 1>&6 | |
4275 | msgformat=xopen | |
4276 | fi | |
4277 | ||
4278 | ||
4279 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
4280 | fi | |
4281 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
4282 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
4283 | fi | |
4284 | ||
4285 | if test "$PACKAGE" = "gettext"; then | |
4286 | GT_NO="#NO#" | |
4287 | GT_YES= | |
4288 | else | |
4289 | GT_NO= | |
4290 | GT_YES="#YES#" | |
4291 | fi | |
4292 | ||
4293 | ||
4294 | ||
4295 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
4296 | ||
4297 | ||
4298 | l= | |
4299 | ||
4300 | ||
4301 | if test -d $srcdir/po; then | |
4302 | test -d po || mkdir po | |
4303 | if test "x$srcdir" != "x."; then | |
4304 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
4305 | posrcprefix="$srcdir/" | |
4306 | else | |
4307 | posrcprefix="../$srcdir/" | |
4308 | fi | |
4309 | else | |
4310 | posrcprefix="../" | |
4311 | fi | |
4312 | rm -f po/POTFILES | |
4313 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
4314 | < $srcdir/po/POTFILES.in > po/POTFILES | |
4315 | fi | |
4316 | ||
4317 | ||
4318 | . ${srcdir}/../bfd/configure.host | |
4319 | ||
4320 | ||
4321 | # Find a good install program. We prefer a C program (faster), | |
4322 | # so one script is as good as another. But avoid the broken or | |
4323 | # incompatible versions: | |
4324 | # SysV /etc/install, /usr/sbin/install | |
4325 | # SunOS /usr/etc/install | |
4326 | # IRIX /sbin/install | |
4327 | # AIX /bin/install | |
4328 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4329 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4330 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4331 | # ./install, which can be erroneously created by make from ./install.sh. | |
4332 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
09919455 | 4333 | echo "configure:4334: checking for a BSD compatible install" >&5 |
252b5132 | 4334 | if test -z "$INSTALL"; then |
a2d91340 | 4335 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
252b5132 RH |
4336 | echo $ac_n "(cached) $ac_c" 1>&6 |
4337 | else | |
4338 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
4339 | for ac_dir in $PATH; do | |
4340 | # Account for people who put trailing slashes in PATH elements. | |
4341 | case "$ac_dir/" in | |
4342 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
4343 | *) | |
4344 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4345 | # Don't use installbsd from OSF since it installs stuff as root | |
4346 | # by default. | |
4347 | for ac_prog in ginstall scoinst install; do | |
4348 | if test -f $ac_dir/$ac_prog; then | |
4349 | if test $ac_prog = install && | |
4350 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
4351 | # AIX install. It has an incompatible calling convention. | |
4352 | : | |
4353 | else | |
4354 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
4355 | break 2 | |
4356 | fi | |
4357 | fi | |
4358 | done | |
4359 | ;; | |
4360 | esac | |
4361 | done | |
4362 | IFS="$ac_save_IFS" | |
4363 | ||
4364 | fi | |
4365 | if test "${ac_cv_path_install+set}" = set; then | |
4366 | INSTALL="$ac_cv_path_install" | |
4367 | else | |
4368 | # As a last resort, use the slow shell script. We don't cache a | |
4369 | # path for INSTALL within a source directory, because that will | |
4370 | # break other packages using the cache if that directory is | |
4371 | # removed, or if the path is relative. | |
4372 | INSTALL="$ac_install_sh" | |
4373 | fi | |
4374 | fi | |
4375 | echo "$ac_t""$INSTALL" 1>&6 | |
4376 | ||
4377 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4378 | # It thinks the first close brace ends the variable substitution. | |
4379 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4380 | ||
a2d91340 | 4381 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
252b5132 RH |
4382 | |
4383 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4384 | ||
4385 | ||
4386 | for ac_hdr in string.h strings.h stdlib.h | |
4387 | do | |
4388 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
4389 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
09919455 | 4390 | echo "configure:4391: checking for $ac_hdr" >&5 |
a2d91340 | 4391 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
252b5132 RH |
4392 | echo $ac_n "(cached) $ac_c" 1>&6 |
4393 | else | |
4394 | cat > conftest.$ac_ext <<EOF | |
09919455 | 4395 | #line 4396 "configure" |
252b5132 RH |
4396 | #include "confdefs.h" |
4397 | #include <$ac_hdr> | |
4398 | EOF | |
4399 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
09919455 | 4400 | { (eval echo configure:4401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
4401 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4402 | if test -z "$ac_err"; then | |
4403 | rm -rf conftest* | |
4404 | eval "ac_cv_header_$ac_safe=yes" | |
4405 | else | |
4406 | echo "$ac_err" >&5 | |
4407 | echo "configure: failed program was:" >&5 | |
4408 | cat conftest.$ac_ext >&5 | |
4409 | rm -rf conftest* | |
4410 | eval "ac_cv_header_$ac_safe=no" | |
4411 | fi | |
4412 | rm -f conftest* | |
4413 | fi | |
4414 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4415 | echo "$ac_t""yes" 1>&6 | |
4416 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4417 | cat >> confdefs.h <<EOF | |
4418 | #define $ac_tr_hdr 1 | |
4419 | EOF | |
4420 | ||
4421 | else | |
4422 | echo "$ac_t""no" 1>&6 | |
4423 | fi | |
4424 | done | |
4425 | ||
4426 | ||
6e31aea3 BE |
4427 | cgen_maint=no |
4428 | cgendir='$(srcdir)/../cgen' | |
4429 | ||
4430 | # Check whether --enable-cgen-maint or --disable-cgen-maint was given. | |
4431 | if test "${enable_cgen_maint+set}" = set; then | |
4432 | enableval="$enable_cgen_maint" | |
4433 | case "${enableval}" in | |
4434 | yes) cgen_maint=yes ;; | |
4435 | no) cgen_maint=no ;; | |
4436 | *) | |
4437 | # argument is cgen install directory (not implemented yet). | |
4438 | # Having a `share' directory might be more appropriate for the .scm, | |
4439 | # .cpu, etc. files. | |
4440 | cgen_maint=yes | |
4441 | cgendir=${cgen_maint}/lib/cgen | |
4442 | ;; | |
4443 | esac | |
4444 | fi | |
4445 | ||
4446 | ||
4447 | if test x${cgen_maint} = xyes; then | |
4448 | CGEN_MAINT_TRUE= | |
4449 | CGEN_MAINT_FALSE='#' | |
4450 | else | |
4451 | CGEN_MAINT_TRUE='#' | |
4452 | CGEN_MAINT_FALSE= | |
4453 | fi | |
4454 | ||
252b5132 RH |
4455 | |
4456 | using_cgen=no | |
4457 | ||
4458 | # Horrible hacks to build DLLs on Windows. | |
4459 | WIN32LDFLAGS= | |
4460 | WIN32LIBADD= | |
4461 | case "${host}" in | |
4462 | *-*-cygwin*) | |
4463 | if test "$enable_shared" = "yes"; then | |
4464 | WIN32LDFLAGS="-no-undefined" | |
4465 | WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" | |
4466 | fi | |
4467 | ;; | |
4468 | esac | |
4469 | ||
4470 | ||
4471 | ||
4472 | # target-specific stuff: | |
4473 | ||
4474 | # Canonicalize the secondary target names. | |
4475 | if test -n "$enable_targets" ; then | |
4476 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
4477 | do | |
6d83c84b | 4478 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
4479 | if test -n "$result" ; then |
4480 | canon_targets="$canon_targets $result" | |
4481 | else | |
4482 | # Allow targets that config.sub doesn't recognize, like "all". | |
4483 | canon_targets="$canon_targets $targ" | |
4484 | fi | |
4485 | done | |
4486 | fi | |
4487 | ||
4488 | all_targets=false | |
4489 | selarchs= | |
4490 | for targ in $target $canon_targets | |
4491 | do | |
4492 | if test "x$targ" = "xall" ; then | |
4493 | all_targets=true | |
4494 | else | |
4495 | . $srcdir/../bfd/config.bfd | |
4496 | selarchs="$selarchs $targ_archs" | |
4497 | fi | |
4498 | done | |
4499 | ||
4500 | # Utility var, documents generic cgen support files. | |
4501 | ||
4502 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo" | |
4503 | ||
4504 | # We don't do any links based on the target system, just makefile config. | |
4505 | ||
4506 | if test x${all_targets} = xfalse ; then | |
4507 | ||
4508 | # Target architecture .o files. | |
4509 | ta= | |
4510 | ||
4511 | for arch in $selarchs | |
4512 | do | |
4513 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` | |
4514 | archdefs="$archdefs -DARCH_$ad" | |
4515 | case "$arch" in | |
4516 | bfd_a29k_arch) ta="$ta a29k-dis.lo" ;; | |
4517 | bfd_alliant_arch) ;; | |
4518 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; | |
0d2bcfaf | 4519 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; |
252b5132 | 4520 | bfd_arm_arch) ta="$ta arm-dis.lo" ;; |
adde6300 | 4521 | bfd_avr_arch) ta="$ta avr-dis.lo" ;; |
252b5132 | 4522 | bfd_convex_arch) ;; |
6c95a37f | 4523 | bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;; |
252b5132 RH |
4524 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; |
4525 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; | |
4526 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; | |
4527 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; | |
4528 | bfd_h8500_arch) ta="$ta h8500-dis.lo" ;; | |
4529 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; | |
5b93d8bb | 4530 | bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;; |
252b5132 | 4531 | bfd_i386_arch) ta="$ta i386-dis.lo" ;; |
9d751335 | 4532 | bfd_i860_arch) ta="$ta i860-dis.lo" ;; |
252b5132 | 4533 | bfd_i960_arch) ta="$ta i960-dis.lo" ;; |
800eeca4 | 4534 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; |
252b5132 | 4535 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; |
60bcf0fa NC |
4536 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
4537 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; | |
252b5132 RH |
4538 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; |
4539 | bfd_m88k_arch) ta="$ta m88k-dis.lo" ;; | |
4540 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; | |
4541 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;; | |
4542 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; | |
4543 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; | |
4544 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; | |
1e608f98 | 4545 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; |
252b5132 RH |
4546 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
4547 | bfd_pyramid_arch) ;; | |
a85d7ed0 | 4548 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
252b5132 RH |
4549 | bfd_romp_arch) ;; |
4550 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; | |
a85d7ed0 | 4551 | bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; |
09919455 NC |
4552 | bfd_sh_arch) |
4553 | ta="$ta sh-dis.lo" ;; | |
252b5132 RH |
4554 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; |
4555 | bfd_tahoe_arch) ;; | |
4556 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; | |
5c84d377 | 4557 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; |
252b5132 RH |
4558 | bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;; |
4559 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
4560 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
4561 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
4562 | bfd_vax_arch) ta="$ta vax-dis.lo" ;; | |
4563 | bfd_w65_arch) ta="$ta w65-dis.lo" ;; | |
4564 | bfd_we32k_arch) ;; | |
4565 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; | |
4566 | ||
4567 | "") ;; | |
4568 | *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;; | |
4569 | esac | |
4570 | done | |
4571 | ||
4572 | if test $using_cgen = yes ; then | |
4573 | ta="$ta $cgen_files" | |
4574 | fi | |
4575 | ||
4576 | # Weed out duplicate .o files. | |
4577 | f="" | |
4578 | for i in $ta ; do | |
4579 | case " $f " in | |
4580 | *" $i "*) ;; | |
4581 | *) f="$f $i" ;; | |
4582 | esac | |
4583 | done | |
4584 | ta="$f" | |
4585 | ||
4586 | # And duplicate -D flags. | |
4587 | f="" | |
4588 | for i in $archdefs ; do | |
4589 | case " $f " in | |
4590 | *" $i "*) ;; | |
4591 | *) f="$f $i" ;; | |
4592 | esac | |
4593 | done | |
4594 | archdefs="$f" | |
4595 | ||
4596 | BFD_MACHINES="$ta" | |
4597 | ||
4598 | else # all_targets is true | |
4599 | archdefs=-DARCH_all | |
4600 | BFD_MACHINES='$(ALL_MACHINES)' | |
4601 | fi | |
4602 | ||
4603 | ||
4604 | ||
4605 | ||
4606 | trap '' 1 2 15 | |
4607 | cat > confcache <<\EOF | |
4608 | # This file is a shell script that caches the results of configure | |
4609 | # tests run on this system so they can be shared between configure | |
4610 | # scripts and configure runs. It is not useful on other systems. | |
4611 | # If it contains results you don't want to keep, you may remove or edit it. | |
4612 | # | |
4613 | # By default, configure uses ./config.cache as the cache file, | |
4614 | # creating it if it does not exist already. You can give configure | |
4615 | # the --cache-file=FILE option to use a different cache file; that is | |
4616 | # what configure does when it calls configure scripts in | |
4617 | # subdirectories, so they share the cache. | |
4618 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4619 | # config.status only pays attention to the cache file if you give it the | |
4620 | # --recheck option to rerun configure. | |
4621 | # | |
4622 | EOF | |
4623 | # The following way of writing the cache mishandles newlines in values, | |
4624 | # but we know of no workaround that is simple, portable, and efficient. | |
4625 | # So, don't put newlines in cache variables' values. | |
4626 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4627 | # and sets the high bit in the cache file unless we assign to the vars. | |
4628 | (set) 2>&1 | | |
4629 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4630 | *ac_space=\ *) | |
4631 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4632 | # turns \\\\ into \\, and sed turns \\ into \). | |
4633 | sed -n \ | |
4634 | -e "s/'/'\\\\''/g" \ | |
4635 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
4636 | ;; | |
4637 | *) | |
4638 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4639 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4640 | ;; | |
4641 | esac >> confcache | |
4642 | if cmp -s $cache_file confcache; then | |
4643 | : | |
4644 | else | |
4645 | if test -w $cache_file; then | |
4646 | echo "updating cache $cache_file" | |
4647 | cat confcache > $cache_file | |
4648 | else | |
4649 | echo "not updating unwritable cache $cache_file" | |
4650 | fi | |
4651 | fi | |
4652 | rm -f confcache | |
4653 | ||
4654 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
4655 | ||
4656 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4657 | # Let make expand exec_prefix. | |
4658 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4659 | ||
4660 | # Any assignment to VPATH causes Sun make to only execute | |
4661 | # the first set of double-colon rules, so remove it if not needed. | |
4662 | # If there is a colon in the path, we need to keep it. | |
4663 | if test "x$srcdir" = x.; then | |
4664 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
4665 | fi | |
4666 | ||
4667 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
4668 | ||
4669 | DEFS=-DHAVE_CONFIG_H | |
4670 | ||
4671 | # Without the "./", some shells look in PATH for config.status. | |
4672 | : ${CONFIG_STATUS=./config.status} | |
4673 | ||
4674 | echo creating $CONFIG_STATUS | |
4675 | rm -f $CONFIG_STATUS | |
4676 | cat > $CONFIG_STATUS <<EOF | |
4677 | #! /bin/sh | |
4678 | # Generated automatically by configure. | |
4679 | # Run this file to recreate the current configuration. | |
4680 | # This directory was configured as follows, | |
4681 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4682 | # | |
4683 | # $0 $ac_configure_args | |
4684 | # | |
4685 | # Compiler output produced by configure, useful for debugging | |
4686 | # configure, is in ./config.log if it exists. | |
4687 | ||
4688 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
4689 | for ac_option | |
4690 | do | |
4691 | case "\$ac_option" in | |
4692 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4693 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
4694 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
4695 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
a2d91340 | 4696 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
252b5132 RH |
4697 | exit 0 ;; |
4698 | -help | --help | --hel | --he | --h) | |
4699 | echo "\$ac_cs_usage"; exit 0 ;; | |
4700 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
4701 | esac | |
4702 | done | |
4703 | ||
4704 | ac_given_srcdir=$srcdir | |
4705 | ac_given_INSTALL="$INSTALL" | |
4706 | ||
4707 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
4708 | EOF | |
4709 | cat >> $CONFIG_STATUS <<EOF | |
4710 | ||
4711 | # Protect against being on the right side of a sed subst in config.status. | |
4712 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
4713 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
4714 | $ac_vpsub | |
4715 | $extrasub | |
4716 | s%@SHELL@%$SHELL%g | |
4717 | s%@CFLAGS@%$CFLAGS%g | |
4718 | s%@CPPFLAGS@%$CPPFLAGS%g | |
4719 | s%@CXXFLAGS@%$CXXFLAGS%g | |
4720 | s%@FFLAGS@%$FFLAGS%g | |
4721 | s%@DEFS@%$DEFS%g | |
4722 | s%@LDFLAGS@%$LDFLAGS%g | |
4723 | s%@LIBS@%$LIBS%g | |
4724 | s%@exec_prefix@%$exec_prefix%g | |
4725 | s%@prefix@%$prefix%g | |
4726 | s%@program_transform_name@%$program_transform_name%g | |
4727 | s%@bindir@%$bindir%g | |
4728 | s%@sbindir@%$sbindir%g | |
4729 | s%@libexecdir@%$libexecdir%g | |
4730 | s%@datadir@%$datadir%g | |
4731 | s%@sysconfdir@%$sysconfdir%g | |
4732 | s%@sharedstatedir@%$sharedstatedir%g | |
4733 | s%@localstatedir@%$localstatedir%g | |
4734 | s%@libdir@%$libdir%g | |
4735 | s%@includedir@%$includedir%g | |
4736 | s%@oldincludedir@%$oldincludedir%g | |
4737 | s%@infodir@%$infodir%g | |
4738 | s%@mandir@%$mandir%g | |
4739 | s%@host@%$host%g | |
4740 | s%@host_alias@%$host_alias%g | |
4741 | s%@host_cpu@%$host_cpu%g | |
4742 | s%@host_vendor@%$host_vendor%g | |
4743 | s%@host_os@%$host_os%g | |
4744 | s%@target@%$target%g | |
4745 | s%@target_alias@%$target_alias%g | |
4746 | s%@target_cpu@%$target_cpu%g | |
4747 | s%@target_vendor@%$target_vendor%g | |
4748 | s%@target_os@%$target_os%g | |
4749 | s%@build@%$build%g | |
4750 | s%@build_alias@%$build_alias%g | |
4751 | s%@build_cpu@%$build_cpu%g | |
4752 | s%@build_vendor@%$build_vendor%g | |
4753 | s%@build_os@%$build_os%g | |
252b5132 RH |
4754 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
4755 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
4756 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
4757 | s%@PACKAGE@%$PACKAGE%g | |
4758 | s%@VERSION@%$VERSION%g | |
4759 | s%@ACLOCAL@%$ACLOCAL%g | |
4760 | s%@AUTOCONF@%$AUTOCONF%g | |
4761 | s%@AUTOMAKE@%$AUTOMAKE%g | |
4762 | s%@AUTOHEADER@%$AUTOHEADER%g | |
4763 | s%@MAKEINFO@%$MAKEINFO%g | |
4764 | s%@SET_MAKE@%$SET_MAKE%g | |
4765 | s%@AR@%$AR%g | |
4766 | s%@RANLIB@%$RANLIB%g | |
09919455 | 4767 | s%@CC@%$CC%g |
252b5132 | 4768 | s%@LN_S@%$LN_S%g |
ac48eca1 AO |
4769 | s%@OBJEXT@%$OBJEXT%g |
4770 | s%@EXEEXT@%$EXEEXT%g | |
4771 | s%@STRIP@%$STRIP%g | |
252b5132 | 4772 | s%@LIBTOOL@%$LIBTOOL%g |
a2d91340 | 4773 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g |
252b5132 RH |
4774 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
4775 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
4776 | s%@MAINT@%$MAINT%g | |
252b5132 RH |
4777 | s%@CPP@%$CPP%g |
4778 | s%@ALLOCA@%$ALLOCA%g | |
4779 | s%@USE_NLS@%$USE_NLS%g | |
4780 | s%@MSGFMT@%$MSGFMT%g | |
4781 | s%@GMSGFMT@%$GMSGFMT%g | |
4782 | s%@XGETTEXT@%$XGETTEXT%g | |
4783 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
4784 | s%@CATALOGS@%$CATALOGS%g | |
4785 | s%@CATOBJEXT@%$CATOBJEXT%g | |
4786 | s%@DATADIRNAME@%$DATADIRNAME%g | |
4787 | s%@GMOFILES@%$GMOFILES%g | |
4788 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
4789 | s%@INTLDEPS@%$INTLDEPS%g | |
4790 | s%@INTLLIBS@%$INTLLIBS%g | |
4791 | s%@INTLOBJS@%$INTLOBJS%g | |
4792 | s%@POFILES@%$POFILES%g | |
4793 | s%@POSUB@%$POSUB%g | |
4794 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
4795 | s%@GT_NO@%$GT_NO%g | |
4796 | s%@GT_YES@%$GT_YES%g | |
4797 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
4798 | s%@l@%$l%g | |
4799 | s%@HDEFINES@%$HDEFINES%g | |
6e31aea3 BE |
4800 | s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g |
4801 | s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g | |
4802 | s%@cgendir@%$cgendir%g | |
252b5132 RH |
4803 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g |
4804 | s%@WIN32LIBADD@%$WIN32LIBADD%g | |
4805 | s%@archdefs@%$archdefs%g | |
4806 | s%@BFD_MACHINES@%$BFD_MACHINES%g | |
4807 | ||
4808 | CEOF | |
4809 | EOF | |
4810 | ||
4811 | cat >> $CONFIG_STATUS <<\EOF | |
4812 | ||
4813 | # Split the substitutions into bite-sized pieces for seds with | |
4814 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
4815 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
4816 | ac_file=1 # Number of current file. | |
4817 | ac_beg=1 # First line for current file. | |
4818 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
4819 | ac_more_lines=: | |
4820 | ac_sed_cmds="" | |
4821 | while $ac_more_lines; do | |
4822 | if test $ac_beg -gt 1; then | |
4823 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
4824 | else | |
4825 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
4826 | fi | |
4827 | if test ! -s conftest.s$ac_file; then | |
4828 | ac_more_lines=false | |
4829 | rm -f conftest.s$ac_file | |
4830 | else | |
4831 | if test -z "$ac_sed_cmds"; then | |
4832 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
4833 | else | |
4834 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
4835 | fi | |
4836 | ac_file=`expr $ac_file + 1` | |
4837 | ac_beg=$ac_end | |
4838 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
4839 | fi | |
4840 | done | |
4841 | if test -z "$ac_sed_cmds"; then | |
4842 | ac_sed_cmds=cat | |
4843 | fi | |
4844 | EOF | |
4845 | ||
4846 | cat >> $CONFIG_STATUS <<EOF | |
4847 | ||
4848 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"} | |
4849 | EOF | |
4850 | cat >> $CONFIG_STATUS <<\EOF | |
4851 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
4852 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4853 | case "$ac_file" in | |
4854 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
4855 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
4856 | *) ac_file_in="${ac_file}.in" ;; | |
4857 | esac | |
4858 | ||
4859 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
4860 | ||
4861 | # Remove last slash and all that follows it. Not all systems have dirname. | |
4862 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
4863 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4864 | # The file is in a subdirectory. | |
4865 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
4866 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
4867 | # A "../" for each directory in $ac_dir_suffix. | |
4868 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
4869 | else | |
4870 | ac_dir_suffix= ac_dots= | |
4871 | fi | |
4872 | ||
4873 | case "$ac_given_srcdir" in | |
4874 | .) srcdir=. | |
4875 | if test -z "$ac_dots"; then top_srcdir=. | |
4876 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
4877 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
4878 | *) # Relative path. | |
4879 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
4880 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
4881 | esac | |
4882 | ||
4883 | case "$ac_given_INSTALL" in | |
4884 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
4885 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
4886 | esac | |
4887 | ||
4888 | echo creating "$ac_file" | |
4889 | rm -f "$ac_file" | |
4890 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
4891 | case "$ac_file" in | |
4892 | *Makefile*) ac_comsub="1i\\ | |
4893 | # $configure_input" ;; | |
4894 | *) ac_comsub= ;; | |
4895 | esac | |
4896 | ||
4897 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
4898 | sed -e "$ac_comsub | |
4899 | s%@configure_input@%$configure_input%g | |
4900 | s%@srcdir@%$srcdir%g | |
4901 | s%@top_srcdir@%$top_srcdir%g | |
4902 | s%@INSTALL@%$INSTALL%g | |
4903 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
4904 | fi; done | |
4905 | rm -f conftest.s* | |
4906 | ||
4907 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
4908 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
4909 | # | |
4910 | # ac_d sets the value in "#define NAME VALUE" lines. | |
4911 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
4912 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
4913 | ac_dC='\3' | |
4914 | ac_dD='%g' | |
4915 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
4916 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4917 | ac_uB='\([ ]\)%\1#\2define\3' | |
4918 | ac_uC=' ' | |
4919 | ac_uD='\4%g' | |
4920 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
4921 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4922 | ac_eB='$%\1#\2define\3' | |
4923 | ac_eC=' ' | |
4924 | ac_eD='%g' | |
4925 | ||
4926 | if test "${CONFIG_HEADERS+set}" != set; then | |
4927 | EOF | |
4928 | cat >> $CONFIG_STATUS <<EOF | |
4929 | CONFIG_HEADERS="config.h:config.in" | |
4930 | EOF | |
4931 | cat >> $CONFIG_STATUS <<\EOF | |
4932 | fi | |
4933 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
4934 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4935 | case "$ac_file" in | |
4936 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
4937 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
4938 | *) ac_file_in="${ac_file}.in" ;; | |
4939 | esac | |
4940 | ||
4941 | echo creating $ac_file | |
4942 | ||
4943 | rm -f conftest.frag conftest.in conftest.out | |
4944 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
4945 | cat $ac_file_inputs > conftest.in | |
4946 | ||
4947 | EOF | |
4948 | ||
4949 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
4950 | # the proper values into config.h.in to produce config.h. And first: | |
4951 | # Protect against being on the right side of a sed subst in config.status. | |
4952 | # Protect against being in an unquoted here document in config.status. | |
4953 | rm -f conftest.vals | |
4954 | cat > conftest.hdr <<\EOF | |
4955 | s/[\\&%]/\\&/g | |
4956 | s%[\\$`]%\\&%g | |
4957 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
4958 | s%ac_d%ac_u%gp | |
4959 | s%ac_u%ac_e%gp | |
4960 | EOF | |
4961 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
4962 | rm -f conftest.hdr | |
4963 | ||
4964 | # This sed command replaces #undef with comments. This is necessary, for | |
4965 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
4966 | # on some systems where configure will not decide to define it. | |
4967 | cat >> conftest.vals <<\EOF | |
4968 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
4969 | EOF | |
4970 | ||
4971 | # Break up conftest.vals because some shells have a limit on | |
4972 | # the size of here documents, and old seds have small limits too. | |
4973 | ||
4974 | rm -f conftest.tail | |
4975 | while : | |
4976 | do | |
4977 | ac_lines=`grep -c . conftest.vals` | |
4978 | # grep -c gives empty output for an empty file on some AIX systems. | |
4979 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
4980 | # Write a limited-size here document to conftest.frag. | |
4981 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
4982 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
4983 | echo 'CEOF | |
4984 | sed -f conftest.frag conftest.in > conftest.out | |
4985 | rm -f conftest.in | |
4986 | mv conftest.out conftest.in | |
4987 | ' >> $CONFIG_STATUS | |
4988 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
4989 | rm -f conftest.vals | |
4990 | mv conftest.tail conftest.vals | |
4991 | done | |
4992 | rm -f conftest.vals | |
4993 | ||
4994 | cat >> $CONFIG_STATUS <<\EOF | |
4995 | rm -f conftest.frag conftest.h | |
4996 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
4997 | cat conftest.in >> conftest.h | |
4998 | rm -f conftest.in | |
4999 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
5000 | echo "$ac_file is unchanged" | |
5001 | rm -f conftest.h | |
5002 | else | |
5003 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5004 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5005 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5006 | # The file is in a subdirectory. | |
5007 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5008 | fi | |
5009 | rm -f $ac_file | |
5010 | mv conftest.h $ac_file | |
5011 | fi | |
5012 | fi; done | |
5013 | ||
5014 | EOF | |
5015 | cat >> $CONFIG_STATUS <<EOF | |
5016 | ||
5017 | ||
5018 | EOF | |
5019 | cat >> $CONFIG_STATUS <<\EOF | |
5020 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
5021 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile | |
5022 | exit 0 | |
5023 | EOF | |
5024 | chmod +x $CONFIG_STATUS | |
5025 | rm -fr confdefs* $ac_clean_files | |
a2d91340 | 5026 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
252b5132 | 5027 |