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