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