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