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