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