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