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