]>
Commit | Line | Data |
---|---|---|
dfac8a13 TT |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
c45f211e | 6 | # |
dfac8a13 TT |
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: | |
e093c992 AG |
14 | ac_help="$ac_help |
15 | --enable-maintainer-mode enable make rules and dependencies not useful | |
16 | (and sometimes confusing) to the casual installer" | |
dfac8a13 | 17 | ac_help="$ac_help |
3ef1cea8 RO |
18 | --with-target-subdir=SUBDIR |
19 | configuring in a subdirectory" | |
dfac8a13 | 20 | ac_help="$ac_help |
3ef1cea8 | 21 | --with-cross-host=HOST configuring with a cross compiler" |
dfac8a13 | 22 | ac_help="$ac_help |
3ef1cea8 | 23 | --enable-multilib build many library versions (default)" |
79a9a529 | 24 | ac_help="$ac_help |
3ef1cea8 | 25 | --with-system-zlib use installed libz" |
dfac8a13 TT |
26 | ac_help="$ac_help |
27 | --enable-shared[=PKGS] build shared libraries [default=yes]" | |
28 | ac_help="$ac_help | |
29 | --enable-static[=PKGS] build static libraries [default=yes]" | |
30 | ac_help="$ac_help | |
31 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
32 | ac_help="$ac_help | |
33 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
34 | ac_help="$ac_help | |
0fd91e0a AO |
35 | --disable-libtool-lock avoid locking (might break parallel builds)" |
36 | ac_help="$ac_help | |
37 | --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
dfac8a13 TT |
38 | |
39 | # Initialize some variables set by options. | |
40 | # The variables have the same names as the options, with | |
41 | # dashes changed to underlines. | |
42 | build=NONE | |
43 | cache_file=./config.cache | |
44 | exec_prefix=NONE | |
45 | host=NONE | |
46 | no_create= | |
47 | nonopt=NONE | |
48 | no_recursion= | |
49 | prefix=NONE | |
50 | program_prefix=NONE | |
51 | program_suffix=NONE | |
52 | program_transform_name=s,x,x, | |
53 | silent= | |
54 | site= | |
35241f18 | 55 | sitefile= |
dfac8a13 TT |
56 | srcdir= |
57 | target=NONE | |
58 | verbose= | |
59 | x_includes=NONE | |
60 | x_libraries=NONE | |
61 | bindir='${exec_prefix}/bin' | |
62 | sbindir='${exec_prefix}/sbin' | |
63 | libexecdir='${exec_prefix}/libexec' | |
64 | datadir='${prefix}/share' | |
65 | sysconfdir='${prefix}/etc' | |
66 | sharedstatedir='${prefix}/com' | |
67 | localstatedir='${prefix}/var' | |
68 | libdir='${exec_prefix}/lib' | |
69 | includedir='${prefix}/include' | |
70 | oldincludedir='/usr/include' | |
71 | infodir='${prefix}/info' | |
72 | mandir='${prefix}/man' | |
73 | ||
74 | # Initialize some other variables. | |
75 | subdirs= | |
76 | MFLAGS= MAKEFLAGS= | |
77 | SHELL=${CONFIG_SHELL-/bin/sh} | |
78 | # Maximum number of lines to put in a shell here document. | |
79 | ac_max_here_lines=12 | |
80 | ||
81 | ac_prev= | |
82 | for ac_option | |
83 | do | |
84 | ||
85 | # If the previous option needs an argument, assign it. | |
86 | if test -n "$ac_prev"; then | |
87 | eval "$ac_prev=\$ac_option" | |
88 | ac_prev= | |
89 | continue | |
90 | fi | |
91 | ||
92 | case "$ac_option" in | |
93 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
94 | *) ac_optarg= ;; | |
95 | esac | |
96 | ||
97 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
98 | ||
99 | case "$ac_option" in | |
100 | ||
101 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
102 | ac_prev=bindir ;; | |
103 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
104 | bindir="$ac_optarg" ;; | |
105 | ||
106 | -build | --build | --buil | --bui | --bu) | |
107 | ac_prev=build ;; | |
108 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
109 | build="$ac_optarg" ;; | |
110 | ||
111 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
112 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
113 | ac_prev=cache_file ;; | |
114 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
115 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
116 | cache_file="$ac_optarg" ;; | |
117 | ||
118 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
119 | ac_prev=datadir ;; | |
120 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
121 | | --da=*) | |
122 | datadir="$ac_optarg" ;; | |
123 | ||
124 | -disable-* | --disable-*) | |
125 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
126 | # Reject names that are not valid shell variable names. | |
127 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
128 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
129 | fi | |
130 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
131 | eval "enable_${ac_feature}=no" ;; | |
132 | ||
133 | -enable-* | --enable-*) | |
134 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
135 | # Reject names that are not valid shell variable names. | |
136 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
137 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
138 | fi | |
139 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
140 | case "$ac_option" in | |
141 | *=*) ;; | |
142 | *) ac_optarg=yes ;; | |
143 | esac | |
144 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
145 | ||
146 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
147 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
148 | | --exec | --exe | --ex) | |
149 | ac_prev=exec_prefix ;; | |
150 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
151 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
152 | | --exec=* | --exe=* | --ex=*) | |
153 | exec_prefix="$ac_optarg" ;; | |
154 | ||
155 | -gas | --gas | --ga | --g) | |
156 | # Obsolete; use --with-gas. | |
157 | with_gas=yes ;; | |
158 | ||
159 | -help | --help | --hel | --he) | |
160 | # Omit some internal or obsolete options to make the list less imposing. | |
161 | # This message is too long to be a string in the A/UX 3.1 sh. | |
162 | cat << EOF | |
163 | Usage: configure [options] [host] | |
164 | Options: [defaults in brackets after descriptions] | |
165 | Configuration: | |
166 | --cache-file=FILE cache test results in FILE | |
167 | --help print this message | |
168 | --no-create do not create output files | |
169 | --quiet, --silent do not print \`checking...' messages | |
35241f18 | 170 | --site-file=FILE use FILE as the site file |
dfac8a13 TT |
171 | --version print the version of autoconf that created configure |
172 | Directory and file names: | |
173 | --prefix=PREFIX install architecture-independent files in PREFIX | |
174 | [$ac_default_prefix] | |
175 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
176 | [same as prefix] | |
177 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
178 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
179 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
180 | --datadir=DIR read-only architecture-independent data in DIR | |
181 | [PREFIX/share] | |
182 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
183 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
184 | [PREFIX/com] | |
185 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
186 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
187 | --includedir=DIR C header files in DIR [PREFIX/include] | |
188 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
189 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
190 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
191 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
192 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
193 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
194 | --program-transform-name=PROGRAM | |
195 | run sed PROGRAM on installed program names | |
196 | EOF | |
197 | cat << EOF | |
198 | Host type: | |
199 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
200 | --host=HOST configure for HOST [guessed] | |
201 | --target=TARGET configure for TARGET [TARGET=HOST] | |
202 | Features and packages: | |
203 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
204 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
205 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
206 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
207 | --x-includes=DIR X include files are in DIR | |
208 | --x-libraries=DIR X library files are in DIR | |
209 | EOF | |
210 | if test -n "$ac_help"; then | |
211 | echo "--enable and --with options recognized:$ac_help" | |
212 | fi | |
213 | exit 0 ;; | |
214 | ||
215 | -host | --host | --hos | --ho) | |
216 | ac_prev=host ;; | |
217 | -host=* | --host=* | --hos=* | --ho=*) | |
218 | host="$ac_optarg" ;; | |
219 | ||
220 | -includedir | --includedir | --includedi | --included | --include \ | |
221 | | --includ | --inclu | --incl | --inc) | |
222 | ac_prev=includedir ;; | |
223 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
224 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
225 | includedir="$ac_optarg" ;; | |
226 | ||
227 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
228 | ac_prev=infodir ;; | |
229 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
230 | infodir="$ac_optarg" ;; | |
231 | ||
232 | -libdir | --libdir | --libdi | --libd) | |
233 | ac_prev=libdir ;; | |
234 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
235 | libdir="$ac_optarg" ;; | |
236 | ||
237 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
238 | | --libexe | --libex | --libe) | |
239 | ac_prev=libexecdir ;; | |
240 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
241 | | --libexe=* | --libex=* | --libe=*) | |
242 | libexecdir="$ac_optarg" ;; | |
243 | ||
244 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
245 | | --localstate | --localstat | --localsta | --localst \ | |
246 | | --locals | --local | --loca | --loc | --lo) | |
247 | ac_prev=localstatedir ;; | |
248 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
249 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
250 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
251 | localstatedir="$ac_optarg" ;; | |
252 | ||
253 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
254 | ac_prev=mandir ;; | |
255 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
256 | mandir="$ac_optarg" ;; | |
257 | ||
258 | -nfp | --nfp | --nf) | |
259 | # Obsolete; use --without-fp. | |
260 | with_fp=no ;; | |
261 | ||
262 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
263 | | --no-cr | --no-c) | |
264 | no_create=yes ;; | |
265 | ||
266 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
267 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
268 | no_recursion=yes ;; | |
269 | ||
270 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
271 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
272 | | --oldin | --oldi | --old | --ol | --o) | |
273 | ac_prev=oldincludedir ;; | |
274 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
275 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
276 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
277 | oldincludedir="$ac_optarg" ;; | |
278 | ||
279 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
280 | ac_prev=prefix ;; | |
281 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
282 | prefix="$ac_optarg" ;; | |
283 | ||
284 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
285 | | --program-pre | --program-pr | --program-p) | |
286 | ac_prev=program_prefix ;; | |
287 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
288 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
289 | program_prefix="$ac_optarg" ;; | |
290 | ||
291 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
292 | | --program-suf | --program-su | --program-s) | |
293 | ac_prev=program_suffix ;; | |
294 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
295 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
296 | program_suffix="$ac_optarg" ;; | |
297 | ||
298 | -program-transform-name | --program-transform-name \ | |
299 | | --program-transform-nam | --program-transform-na \ | |
300 | | --program-transform-n | --program-transform- \ | |
301 | | --program-transform | --program-transfor \ | |
302 | | --program-transfo | --program-transf \ | |
303 | | --program-trans | --program-tran \ | |
304 | | --progr-tra | --program-tr | --program-t) | |
305 | ac_prev=program_transform_name ;; | |
306 | -program-transform-name=* | --program-transform-name=* \ | |
307 | | --program-transform-nam=* | --program-transform-na=* \ | |
308 | | --program-transform-n=* | --program-transform-=* \ | |
309 | | --program-transform=* | --program-transfor=* \ | |
310 | | --program-transfo=* | --program-transf=* \ | |
311 | | --program-trans=* | --program-tran=* \ | |
312 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
313 | program_transform_name="$ac_optarg" ;; | |
314 | ||
315 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
316 | | -silent | --silent | --silen | --sile | --sil) | |
317 | silent=yes ;; | |
318 | ||
319 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
320 | ac_prev=sbindir ;; | |
321 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
322 | | --sbi=* | --sb=*) | |
323 | sbindir="$ac_optarg" ;; | |
324 | ||
325 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
326 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
327 | | --sharedst | --shareds | --shared | --share | --shar \ | |
328 | | --sha | --sh) | |
329 | ac_prev=sharedstatedir ;; | |
330 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
331 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
332 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
333 | | --sha=* | --sh=*) | |
334 | sharedstatedir="$ac_optarg" ;; | |
335 | ||
336 | -site | --site | --sit) | |
337 | ac_prev=site ;; | |
338 | -site=* | --site=* | --sit=*) | |
339 | site="$ac_optarg" ;; | |
340 | ||
35241f18 CD |
341 | -site-file | --site-file | --site-fil | --site-fi | --site-f) |
342 | ac_prev=sitefile ;; | |
343 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) | |
344 | sitefile="$ac_optarg" ;; | |
345 | ||
dfac8a13 TT |
346 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
347 | ac_prev=srcdir ;; | |
348 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
349 | srcdir="$ac_optarg" ;; | |
350 | ||
351 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
352 | | --syscon | --sysco | --sysc | --sys | --sy) | |
353 | ac_prev=sysconfdir ;; | |
354 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
355 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
356 | sysconfdir="$ac_optarg" ;; | |
357 | ||
358 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
359 | ac_prev=target ;; | |
360 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
361 | target="$ac_optarg" ;; | |
362 | ||
363 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
364 | verbose=yes ;; | |
365 | ||
366 | -version | --version | --versio | --versi | --vers) | |
367 | echo "configure generated by autoconf version 2.13" | |
368 | exit 0 ;; | |
369 | ||
370 | -with-* | --with-*) | |
371 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
372 | # Reject names that are not valid shell variable names. | |
373 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
374 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
375 | fi | |
376 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
377 | case "$ac_option" in | |
378 | *=*) ;; | |
379 | *) ac_optarg=yes ;; | |
380 | esac | |
381 | eval "with_${ac_package}='$ac_optarg'" ;; | |
382 | ||
383 | -without-* | --without-*) | |
384 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
385 | # Reject names that are not valid shell variable names. | |
386 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
387 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
388 | fi | |
389 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
390 | eval "with_${ac_package}=no" ;; | |
391 | ||
392 | --x) | |
393 | # Obsolete; use --with-x. | |
394 | with_x=yes ;; | |
395 | ||
396 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
397 | | --x-incl | --x-inc | --x-in | --x-i) | |
398 | ac_prev=x_includes ;; | |
399 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
400 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
401 | x_includes="$ac_optarg" ;; | |
402 | ||
403 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
404 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
405 | ac_prev=x_libraries ;; | |
406 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
407 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
408 | x_libraries="$ac_optarg" ;; | |
409 | ||
410 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
411 | ;; | |
412 | ||
413 | *) | |
414 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
415 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
416 | fi | |
417 | if test "x$nonopt" != xNONE; then | |
418 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
419 | fi | |
420 | nonopt="$ac_option" | |
421 | ;; | |
422 | ||
423 | esac | |
424 | done | |
425 | ||
426 | if test -n "$ac_prev"; then | |
427 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
428 | fi | |
429 | ||
430 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
431 | ||
432 | # File descriptor usage: | |
433 | # 0 standard input | |
434 | # 1 file creation | |
435 | # 2 errors and warnings | |
436 | # 3 some systems may open it to /dev/tty | |
437 | # 4 used on the Kubota Titan | |
438 | # 6 checking for... messages and results | |
439 | # 5 compiler messages saved in config.log | |
440 | if test "$silent" = yes; then | |
441 | exec 6>/dev/null | |
442 | else | |
443 | exec 6>&1 | |
444 | fi | |
445 | exec 5>./config.log | |
446 | ||
447 | echo "\ | |
448 | This file contains any messages produced by compilers while | |
449 | running configure, to aid debugging if configure makes a mistake. | |
450 | " 1>&5 | |
451 | ||
452 | # Strip out --no-create and --no-recursion so they do not pile up. | |
453 | # Also quote any args containing shell metacharacters. | |
454 | ac_configure_args= | |
455 | for ac_arg | |
c45f211e | 456 | do |
dfac8a13 TT |
457 | case "$ac_arg" in |
458 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
459 | | --no-cr | --no-c) ;; | |
460 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
461 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
462 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
463 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
464 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
465 | esac | |
466 | done | |
467 | ||
468 | # NLS nuisances. | |
469 | # Only set these to C if already set. These must not be set unconditionally | |
470 | # because not all systems understand e.g. LANG=C (notably SCO). | |
471 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
472 | # Non-C LC_CTYPE values break the ctype check. | |
473 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
474 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
475 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
476 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
477 | ||
478 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
479 | rm -rf conftest* confdefs.h | |
480 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
481 | echo > confdefs.h | |
482 | ||
483 | # A filename unique to this package, relative to the directory that | |
484 | # configure is in, which we can look for to find out if srcdir is correct. | |
485 | ac_unique_file=zlib.h | |
486 | ||
487 | # Find the source files, if location was not specified. | |
488 | if test -z "$srcdir"; then | |
489 | ac_srcdir_defaulted=yes | |
490 | # Try the directory containing this script, then its parent. | |
491 | ac_prog=$0 | |
492 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
493 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
494 | srcdir=$ac_confdir | |
495 | if test ! -r $srcdir/$ac_unique_file; then | |
496 | srcdir=.. | |
497 | fi | |
498 | else | |
499 | ac_srcdir_defaulted=no | |
500 | fi | |
501 | if test ! -r $srcdir/$ac_unique_file; then | |
502 | if test "$ac_srcdir_defaulted" = yes; then | |
503 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
504 | else | |
505 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
506 | fi | |
507 | fi | |
508 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
509 | ||
510 | # Prefer explicitly selected file to automatically selected ones. | |
35241f18 CD |
511 | if test -z "$sitefile"; then |
512 | if test -z "$CONFIG_SITE"; then | |
513 | if test "x$prefix" != xNONE; then | |
514 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
515 | else | |
516 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
517 | fi | |
dfac8a13 | 518 | fi |
35241f18 CD |
519 | else |
520 | CONFIG_SITE="$sitefile" | |
dfac8a13 TT |
521 | fi |
522 | for ac_site_file in $CONFIG_SITE; do | |
523 | if test -r "$ac_site_file"; then | |
524 | echo "loading site script $ac_site_file" | |
525 | . "$ac_site_file" | |
526 | fi | |
527 | done | |
528 | ||
529 | if test -r "$cache_file"; then | |
530 | echo "loading cache $cache_file" | |
531 | . $cache_file | |
532 | else | |
533 | echo "creating cache $cache_file" | |
534 | > $cache_file | |
535 | fi | |
536 | ||
537 | ac_ext=c | |
538 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
539 | ac_cpp='$CPP $CPPFLAGS' | |
540 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
541 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
542 | cross_compiling=$ac_cv_prog_cc_cross | |
543 | ||
544 | ac_exeext= | |
545 | ac_objext=o | |
546 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
547 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
548 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
549 | ac_n= ac_c=' | |
550 | ' ac_t=' ' | |
551 | else | |
552 | ac_n=-n ac_c= ac_t= | |
553 | fi | |
554 | else | |
555 | ac_n= ac_c='\c' ac_t= | |
556 | fi | |
557 | ||
558 | ||
0fd91e0a AO |
559 | |
560 | ||
561 | if test "x${with_target_subdir}" != x && \ | |
562 | test "${srcdir}" = "."; then | |
563 | if test "${with_target_subdir}" != "."; then | |
564 | zlib_basedir="${srcdir}/${with_multisrctop}../" | |
565 | else | |
566 | zlib_basedir="${srcdir}/${with_multisrctop}" | |
567 | fi | |
568 | else | |
569 | zlib_basedir="${srcdir}/" | |
570 | fi | |
571 | ||
dfac8a13 | 572 | ac_aux_dir= |
0fd91e0a | 573 | for ac_dir in $zlib_basedir.. $srcdir/$zlib_basedir..; do |
dfac8a13 TT |
574 | if test -f $ac_dir/install-sh; then |
575 | ac_aux_dir=$ac_dir | |
576 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
577 | break | |
578 | elif test -f $ac_dir/install.sh; then | |
579 | ac_aux_dir=$ac_dir | |
580 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
581 | break | |
582 | fi | |
583 | done | |
584 | if test -z "$ac_aux_dir"; then | |
0fd91e0a | 585 | { echo "configure: error: can not find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." 1>&2; exit 1; } |
dfac8a13 TT |
586 | fi |
587 | ac_config_guess=$ac_aux_dir/config.guess | |
588 | ac_config_sub=$ac_aux_dir/config.sub | |
589 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
590 | ||
0fd91e0a AO |
591 | if :; then :; else |
592 | # This overrides the previous occurrence for automake, but not for | |
593 | # autoconf, which is exactly what we want. | |
594 | ac_aux_dir= | |
595 | for ac_dir in .. $srcdir/..; do | |
596 | if test -f $ac_dir/install-sh; then | |
597 | ac_aux_dir=$ac_dir | |
598 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
599 | break | |
600 | elif test -f $ac_dir/install.sh; then | |
601 | ac_aux_dir=$ac_dir | |
602 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
603 | break | |
604 | fi | |
605 | done | |
606 | if test -z "$ac_aux_dir"; then | |
607 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; } | |
608 | fi | |
609 | ac_config_guess=$ac_aux_dir/config.guess | |
610 | ac_config_sub=$ac_aux_dir/config.sub | |
611 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
612 | ||
613 | fi | |
614 | ||
dfac8a13 TT |
615 | |
616 | # Do some error checking and defaulting for the host and target type. | |
617 | # The inputs are: | |
618 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
619 | # | |
620 | # The rules are: | |
621 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
622 | # same time. | |
623 | # 2. Host defaults to nonopt. | |
624 | # 3. If nonopt is not specified, then host defaults to the current host, | |
625 | # as determined by config.guess. | |
626 | # 4. Target and build default to nonopt. | |
627 | # 5. If nonopt is not specified, then target and build default to host. | |
628 | ||
629 | # The aliases save the names the user supplied, while $host etc. | |
630 | # will get canonicalized. | |
631 | case $host---$target---$nonopt in | |
632 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
633 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
634 | esac | |
635 | ||
636 | ||
637 | # Make sure we can run config.sub. | |
638 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
639 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
640 | fi | |
641 | ||
642 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
0fd91e0a | 643 | echo "configure:644: checking host system type" >&5 |
dfac8a13 TT |
644 | |
645 | host_alias=$host | |
646 | case "$host_alias" in | |
647 | NONE) | |
648 | case $nonopt in | |
649 | NONE) | |
650 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
651 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
652 | fi ;; | |
653 | *) host_alias=$nonopt ;; | |
654 | esac ;; | |
655 | esac | |
656 | ||
657 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
658 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
659 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
660 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
661 | echo "$ac_t""$host" 1>&6 | |
662 | ||
663 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
0fd91e0a | 664 | echo "configure:665: checking target system type" >&5 |
dfac8a13 TT |
665 | |
666 | target_alias=$target | |
667 | case "$target_alias" in | |
668 | NONE) | |
669 | case $nonopt in | |
670 | NONE) target_alias=$host_alias ;; | |
671 | *) target_alias=$nonopt ;; | |
672 | esac ;; | |
673 | esac | |
674 | ||
675 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
676 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
677 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
678 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
679 | echo "$ac_t""$target" 1>&6 | |
680 | ||
681 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
0fd91e0a | 682 | echo "configure:683: checking build system type" >&5 |
dfac8a13 TT |
683 | |
684 | build_alias=$build | |
685 | case "$build_alias" in | |
686 | NONE) | |
687 | case $nonopt in | |
688 | NONE) build_alias=$host_alias ;; | |
689 | *) build_alias=$nonopt ;; | |
690 | esac ;; | |
691 | esac | |
692 | ||
693 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
694 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
695 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
696 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
697 | echo "$ac_t""$build" 1>&6 | |
698 | ||
699 | test "$host_alias" != "$target_alias" && | |
700 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
701 | NONENONEs,x,x, && | |
702 | program_prefix=${target_alias}- | |
703 | ||
704 | # Find a good install program. We prefer a C program (faster), | |
705 | # so one script is as good as another. But avoid the broken or | |
706 | # incompatible versions: | |
707 | # SysV /etc/install, /usr/sbin/install | |
708 | # SunOS /usr/etc/install | |
709 | # IRIX /sbin/install | |
710 | # AIX /bin/install | |
711 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
712 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
713 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
714 | # ./install, which can be erroneously created by make from ./install.sh. | |
715 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
0fd91e0a | 716 | echo "configure:717: checking for a BSD compatible install" >&5 |
dfac8a13 TT |
717 | if test -z "$INSTALL"; then |
718 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
720 | else | |
721 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
722 | for ac_dir in $PATH; do | |
723 | # Account for people who put trailing slashes in PATH elements. | |
724 | case "$ac_dir/" in | |
725 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
726 | *) | |
727 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
728 | # Don't use installbsd from OSF since it installs stuff as root | |
729 | # by default. | |
730 | for ac_prog in ginstall scoinst install; do | |
731 | if test -f $ac_dir/$ac_prog; then | |
732 | if test $ac_prog = install && | |
733 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
734 | # AIX install. It has an incompatible calling convention. | |
735 | : | |
736 | else | |
737 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
738 | break 2 | |
739 | fi | |
740 | fi | |
741 | done | |
742 | ;; | |
743 | esac | |
744 | done | |
745 | IFS="$ac_save_IFS" | |
746 | ||
747 | fi | |
748 | if test "${ac_cv_path_install+set}" = set; then | |
749 | INSTALL="$ac_cv_path_install" | |
750 | else | |
751 | # As a last resort, use the slow shell script. We don't cache a | |
752 | # path for INSTALL within a source directory, because that will | |
753 | # break other packages using the cache if that directory is | |
754 | # removed, or if the path is relative. | |
755 | INSTALL="$ac_install_sh" | |
756 | fi | |
757 | fi | |
758 | echo "$ac_t""$INSTALL" 1>&6 | |
759 | ||
760 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
761 | # It thinks the first close brace ends the variable substitution. | |
762 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
763 | ||
764 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
765 | ||
766 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
767 | ||
768 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
0fd91e0a | 769 | echo "configure:770: checking whether build environment is sane" >&5 |
dfac8a13 TT |
770 | # Just in case |
771 | sleep 1 | |
772 | echo timestamp > conftestfile | |
773 | # Do `set' in a subshell so we don't clobber the current shell's | |
774 | # arguments. Must try -L first in case configure is actually a | |
775 | # symlink; some systems play weird games with the mod time of symlinks | |
776 | # (eg FreeBSD returns the mod time of the symlink's containing | |
777 | # directory). | |
778 | if ( | |
779 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
780 | if test "$*" = "X"; then | |
781 | # -L didn't work. | |
782 | set X `ls -t $srcdir/configure conftestfile` | |
783 | fi | |
784 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
785 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
786 | ||
787 | # If neither matched, then we have a broken ls. This can happen | |
788 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
789 | # broken ls alias from the environment. This has actually | |
790 | # happened. Such a system could not be considered "sane". | |
791 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
792 | alias in your environment" 1>&2; exit 1; } | |
793 | fi | |
794 | ||
795 | test "$2" = conftestfile | |
796 | ) | |
797 | then | |
798 | # Ok. | |
799 | : | |
800 | else | |
801 | { echo "configure: error: newly created file is older than distributed files! | |
802 | Check your system clock" 1>&2; exit 1; } | |
803 | fi | |
804 | rm -f conftest* | |
805 | echo "$ac_t""yes" 1>&6 | |
806 | if test "$program_transform_name" = s,x,x,; then | |
807 | program_transform_name= | |
808 | else | |
809 | # Double any \ or $. echo might interpret backslashes. | |
810 | cat <<\EOF_SED > conftestsed | |
811 | s,\\,\\\\,g; s,\$,$$,g | |
812 | EOF_SED | |
813 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
814 | rm -f conftestsed | |
815 | fi | |
816 | test "$program_prefix" != NONE && | |
817 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
818 | # Use a double $ so make ignores it. | |
819 | test "$program_suffix" != NONE && | |
820 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
821 | ||
822 | # sed with no file args requires a program. | |
823 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
824 | ||
825 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
0fd91e0a | 826 | echo "configure:827: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
dfac8a13 TT |
827 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
828 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
830 | else | |
831 | cat > conftestmake <<\EOF | |
832 | all: | |
833 | @echo 'ac_maketemp="${MAKE}"' | |
834 | EOF | |
835 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
836 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
837 | if test -n "$ac_maketemp"; then | |
838 | eval ac_cv_prog_make_${ac_make}_set=yes | |
839 | else | |
840 | eval ac_cv_prog_make_${ac_make}_set=no | |
841 | fi | |
842 | rm -f conftestmake | |
843 | fi | |
844 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
845 | echo "$ac_t""yes" 1>&6 | |
846 | SET_MAKE= | |
847 | else | |
848 | echo "$ac_t""no" 1>&6 | |
849 | SET_MAKE="MAKE=${MAKE-make}" | |
850 | fi | |
851 | ||
852 | ||
853 | PACKAGE=zlib | |
854 | ||
855 | VERSION=1.1.3 | |
856 | ||
857 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
858 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
859 | fi | |
860 | cat >> confdefs.h <<EOF | |
861 | #define PACKAGE "$PACKAGE" | |
862 | EOF | |
863 | ||
864 | cat >> confdefs.h <<EOF | |
865 | #define VERSION "$VERSION" | |
866 | EOF | |
867 | ||
868 | ||
869 | ||
870 | missing_dir=`cd $ac_aux_dir && pwd` | |
871 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
0fd91e0a | 872 | echo "configure:873: checking for working aclocal" >&5 |
dfac8a13 TT |
873 | # Run test in a subshell; some versions of sh will print an error if |
874 | # an executable is not found, even if stderr is redirected. | |
875 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
876 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
877 | ACLOCAL=aclocal | |
878 | echo "$ac_t""found" 1>&6 | |
879 | else | |
880 | ACLOCAL="$missing_dir/missing aclocal" | |
881 | echo "$ac_t""missing" 1>&6 | |
882 | fi | |
883 | ||
884 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
0fd91e0a | 885 | echo "configure:886: checking for working autoconf" >&5 |
dfac8a13 TT |
886 | # Run test in a subshell; some versions of sh will print an error if |
887 | # an executable is not found, even if stderr is redirected. | |
888 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
889 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
890 | AUTOCONF=autoconf | |
891 | echo "$ac_t""found" 1>&6 | |
892 | else | |
893 | AUTOCONF="$missing_dir/missing autoconf" | |
894 | echo "$ac_t""missing" 1>&6 | |
895 | fi | |
896 | ||
897 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
0fd91e0a | 898 | echo "configure:899: checking for working automake" >&5 |
dfac8a13 TT |
899 | # Run test in a subshell; some versions of sh will print an error if |
900 | # an executable is not found, even if stderr is redirected. | |
901 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
902 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
903 | AUTOMAKE=automake | |
904 | echo "$ac_t""found" 1>&6 | |
905 | else | |
906 | AUTOMAKE="$missing_dir/missing automake" | |
907 | echo "$ac_t""missing" 1>&6 | |
908 | fi | |
909 | ||
910 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
0fd91e0a | 911 | echo "configure:912: checking for working autoheader" >&5 |
dfac8a13 TT |
912 | # Run test in a subshell; some versions of sh will print an error if |
913 | # an executable is not found, even if stderr is redirected. | |
914 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
915 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
916 | AUTOHEADER=autoheader | |
917 | echo "$ac_t""found" 1>&6 | |
918 | else | |
919 | AUTOHEADER="$missing_dir/missing autoheader" | |
920 | echo "$ac_t""missing" 1>&6 | |
921 | fi | |
922 | ||
923 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
0fd91e0a | 924 | echo "configure:925: checking for working makeinfo" >&5 |
dfac8a13 TT |
925 | # Run test in a subshell; some versions of sh will print an error if |
926 | # an executable is not found, even if stderr is redirected. | |
927 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
928 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
929 | MAKEINFO=makeinfo | |
930 | echo "$ac_t""found" 1>&6 | |
931 | else | |
932 | MAKEINFO="$missing_dir/missing makeinfo" | |
933 | echo "$ac_t""missing" 1>&6 | |
934 | fi | |
935 | ||
936 | ||
937 | ||
e093c992 | 938 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
0fd91e0a | 939 | echo "configure:940: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
e093c992 AG |
940 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
941 | if test "${enable_maintainer_mode+set}" = set; then | |
942 | enableval="$enable_maintainer_mode" | |
943 | USE_MAINTAINER_MODE=$enableval | |
944 | else | |
945 | USE_MAINTAINER_MODE=no | |
946 | fi | |
947 | ||
948 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
949 | ||
950 | ||
951 | if test $USE_MAINTAINER_MODE = yes; then | |
952 | MAINTAINER_MODE_TRUE= | |
953 | MAINTAINER_MODE_FALSE='#' | |
954 | else | |
955 | MAINTAINER_MODE_TRUE='#' | |
956 | MAINTAINER_MODE_FALSE= | |
957 | fi | |
958 | MAINT=$MAINTAINER_MODE_TRUE | |
959 | ||
960 | ||
961 | ||
dfac8a13 TT |
962 | # Check whether --with-target-subdir or --without-target-subdir was given. |
963 | if test "${with_target_subdir+set}" = set; then | |
964 | withval="$with_target_subdir" | |
965 | : | |
966 | fi | |
967 | ||
968 | # Check whether --with-cross-host or --without-cross-host was given. | |
969 | if test "${with_cross_host+set}" = set; then | |
970 | withval="$with_cross_host" | |
971 | : | |
972 | fi | |
973 | ||
974 | ||
975 | # Check whether --enable-multilib or --disable-multilib was given. | |
976 | if test "${enable_multilib+set}" = set; then | |
977 | enableval="$enable_multilib" | |
978 | case "${enableval}" in | |
979 | yes) multilib=yes ;; | |
980 | no) multilib=no ;; | |
981 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | |
982 | esac | |
983 | else | |
67d08194 | 984 | test -z "$with_target_subdir" && multilib=no || multilib=yes |
dfac8a13 TT |
985 | fi |
986 | ||
79a9a529 TT |
987 | # Check whether --with-system-zlib or --without-system-zlib was given. |
988 | if test "${with_system_zlib+set}" = set; then | |
989 | withval="$with_system_zlib" | |
990 | : | |
991 | fi | |
992 | ||
993 | ||
025fd00e | 994 | |
dfac8a13 TT |
995 | # Extract the first word of "gcc", so it can be a program name with args. |
996 | set dummy gcc; ac_word=$2 | |
997 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0fd91e0a | 998 | echo "configure:999: checking for $ac_word" >&5 |
dfac8a13 TT |
999 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1001 | else | |
1002 | if test -n "$CC"; then | |
1003 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1004 | else | |
1005 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1006 | ac_dummy="$PATH" | |
1007 | for ac_dir in $ac_dummy; do | |
1008 | test -z "$ac_dir" && ac_dir=. | |
1009 | if test -f $ac_dir/$ac_word; then | |
1010 | ac_cv_prog_CC="gcc" | |
1011 | break | |
1012 | fi | |
1013 | done | |
1014 | IFS="$ac_save_ifs" | |
1015 | fi | |
1016 | fi | |
1017 | CC="$ac_cv_prog_CC" | |
1018 | if test -n "$CC"; then | |
1019 | echo "$ac_t""$CC" 1>&6 | |
1020 | else | |
1021 | echo "$ac_t""no" 1>&6 | |
1022 | fi | |
1023 | ||
1024 | if test -z "$CC"; then | |
1025 | # Extract the first word of "cc", so it can be a program name with args. | |
1026 | set dummy cc; ac_word=$2 | |
1027 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0fd91e0a | 1028 | echo "configure:1029: checking for $ac_word" >&5 |
dfac8a13 TT |
1029 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1031 | else | |
1032 | if test -n "$CC"; then | |
1033 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1034 | else | |
1035 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1036 | ac_prog_rejected=no | |
1037 | ac_dummy="$PATH" | |
1038 | for ac_dir in $ac_dummy; do | |
1039 | test -z "$ac_dir" && ac_dir=. | |
1040 | if test -f $ac_dir/$ac_word; then | |
1041 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1042 | ac_prog_rejected=yes | |
1043 | continue | |
1044 | fi | |
1045 | ac_cv_prog_CC="cc" | |
1046 | break | |
1047 | fi | |
1048 | done | |
1049 | IFS="$ac_save_ifs" | |
1050 | if test $ac_prog_rejected = yes; then | |
1051 | # We found a bogon in the path, so make sure we never use it. | |
1052 | set dummy $ac_cv_prog_CC | |
1053 | shift | |
1054 | if test $# -gt 0; then | |
1055 | # We chose a different compiler from the bogus one. | |
1056 | # However, it has the same basename, so the bogon will be chosen | |
1057 | # first if we set CC to just the basename; use the full file name. | |
1058 | shift | |
1059 | set dummy "$ac_dir/$ac_word" "$@" | |
1060 | shift | |
1061 | ac_cv_prog_CC="$@" | |
1062 | fi | |
1063 | fi | |
1064 | fi | |
1065 | fi | |
1066 | CC="$ac_cv_prog_CC" | |
1067 | if test -n "$CC"; then | |
1068 | echo "$ac_t""$CC" 1>&6 | |
1069 | else | |
1070 | echo "$ac_t""no" 1>&6 | |
1071 | fi | |
1072 | ||
1073 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1074 | fi | |
1075 | ||
1076 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
0fd91e0a | 1077 | echo "configure:1078: checking whether we are using GNU C" >&5 |
dfac8a13 TT |
1078 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1080 | else | |
1081 | cat > conftest.c <<EOF | |
1082 | #ifdef __GNUC__ | |
1083 | yes; | |
1084 | #endif | |
1085 | EOF | |
0fd91e0a | 1086 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
dfac8a13 TT |
1087 | ac_cv_prog_gcc=yes |
1088 | else | |
1089 | ac_cv_prog_gcc=no | |
1090 | fi | |
1091 | fi | |
1092 | ||
1093 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1094 | ||
1095 | if test $ac_cv_prog_gcc = yes; then | |
1096 | GCC=yes | |
1097 | ac_test_CFLAGS="${CFLAGS+set}" | |
1098 | ac_save_CFLAGS="$CFLAGS" | |
1099 | CFLAGS= | |
1100 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
0fd91e0a | 1101 | echo "configure:1102: checking whether ${CC-cc} accepts -g" >&5 |
dfac8a13 TT |
1102 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1104 | else | |
1105 | echo 'void f(){}' > conftest.c | |
1106 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1107 | ac_cv_prog_cc_g=yes | |
1108 | else | |
1109 | ac_cv_prog_cc_g=no | |
1110 | fi | |
1111 | rm -f conftest* | |
1112 | ||
1113 | fi | |
1114 | ||
1115 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1116 | if test "$ac_test_CFLAGS" = set; then | |
1117 | CFLAGS="$ac_save_CFLAGS" | |
1118 | elif test $ac_cv_prog_cc_g = yes; then | |
1119 | CFLAGS="-g -O2" | |
1120 | else | |
1121 | CFLAGS="-O2" | |
1122 | fi | |
1123 | else | |
1124 | GCC= | |
1125 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1126 | fi | |
1127 | ||
e093c992 AG |
1128 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However, |
1129 | # at least currently, we never actually build a program, so we never | |
1130 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally | |
1131 | # fails, because we are probably configuring with a cross compiler | |
1132 | # which cant create executables. So we include AC_EXEEXT to keep | |
1133 | # automake happy, but we dont execute it, since we dont care about | |
1134 | # the result. | |
1135 | if false; then | |
01ef8751 AO |
1136 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands |
1137 | # to nothing, so nothing would remain between `then' and `fi' if it | |
1138 | # were not for the `:' below. | |
1139 | : | |
e093c992 | 1140 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
01ef8751 | 1141 | echo "configure:1142: checking for Cygwin environment" >&5 |
5d836b57 TT |
1142 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
1143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1144 | else | |
1145 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 1146 | #line 1147 "configure" |
5d836b57 TT |
1147 | #include "confdefs.h" |
1148 | ||
1149 | int main() { | |
1150 | ||
1151 | #ifndef __CYGWIN__ | |
1152 | #define __CYGWIN__ __CYGWIN32__ | |
1153 | #endif | |
1154 | return __CYGWIN__; | |
1155 | ; return 0; } | |
1156 | EOF | |
01ef8751 | 1157 | if { (eval echo configure:1158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5d836b57 TT |
1158 | rm -rf conftest* |
1159 | ac_cv_cygwin=yes | |
1160 | else | |
1161 | echo "configure: failed program was:" >&5 | |
1162 | cat conftest.$ac_ext >&5 | |
1163 | rm -rf conftest* | |
1164 | ac_cv_cygwin=no | |
1165 | fi | |
1166 | rm -f conftest* | |
1167 | rm -f conftest* | |
1168 | fi | |
1169 | ||
1170 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
1171 | CYGWIN= | |
1172 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
1173 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
01ef8751 | 1174 | echo "configure:1175: checking for mingw32 environment" >&5 |
5d836b57 TT |
1175 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
1176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1177 | else | |
1178 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 1179 | #line 1180 "configure" |
5d836b57 TT |
1180 | #include "confdefs.h" |
1181 | ||
1182 | int main() { | |
1183 | return __MINGW32__; | |
1184 | ; return 0; } | |
1185 | EOF | |
01ef8751 | 1186 | if { (eval echo configure:1187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5d836b57 TT |
1187 | rm -rf conftest* |
1188 | ac_cv_mingw32=yes | |
1189 | else | |
1190 | echo "configure: failed program was:" >&5 | |
1191 | cat conftest.$ac_ext >&5 | |
1192 | rm -rf conftest* | |
1193 | ac_cv_mingw32=no | |
1194 | fi | |
1195 | rm -f conftest* | |
1196 | rm -f conftest* | |
1197 | fi | |
1198 | ||
1199 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
1200 | MINGW32= | |
1201 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
1202 | ||
1203 | ||
1204 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
01ef8751 | 1205 | echo "configure:1206: checking for executable suffix" >&5 |
5d836b57 TT |
1206 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1208 | else | |
1209 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1210 | ac_cv_exeext=.exe | |
1211 | else | |
1212 | rm -f conftest* | |
1213 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1214 | ac_cv_exeext= | |
01ef8751 | 1215 | if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
5d836b57 TT |
1216 | for file in conftest.*; do |
1217 | case $file in | |
35241f18 | 1218 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
5d836b57 TT |
1219 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1220 | esac | |
1221 | done | |
1222 | else | |
1223 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1224 | fi | |
1225 | rm -f conftest* | |
1226 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1227 | fi | |
1228 | fi | |
1229 | ||
1230 | EXEEXT="" | |
1231 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1232 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1233 | ac_exeext=$EXEEXT | |
1234 | ||
5d836b57 | 1235 | fi |
dfac8a13 TT |
1236 | # Check whether --enable-shared or --disable-shared was given. |
1237 | if test "${enable_shared+set}" = set; then | |
1238 | enableval="$enable_shared" | |
1239 | p=${PACKAGE-default} | |
0fd91e0a | 1240 | case $enableval in |
dfac8a13 TT |
1241 | yes) enable_shared=yes ;; |
1242 | no) enable_shared=no ;; | |
1243 | *) | |
1244 | enable_shared=no | |
1245 | # Look at the argument we got. We use all the common list separators. | |
1246 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1247 | for pkg in $enableval; do | |
1248 | if test "X$pkg" = "X$p"; then | |
1249 | enable_shared=yes | |
1250 | fi | |
1251 | done | |
1252 | IFS="$ac_save_ifs" | |
1253 | ;; | |
1254 | esac | |
1255 | else | |
1256 | enable_shared=yes | |
1257 | fi | |
1258 | ||
1259 | # Check whether --enable-static or --disable-static was given. | |
1260 | if test "${enable_static+set}" = set; then | |
1261 | enableval="$enable_static" | |
1262 | p=${PACKAGE-default} | |
0fd91e0a | 1263 | case $enableval in |
dfac8a13 TT |
1264 | yes) enable_static=yes ;; |
1265 | no) enable_static=no ;; | |
1266 | *) | |
1267 | enable_static=no | |
1268 | # Look at the argument we got. We use all the common list separators. | |
1269 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1270 | for pkg in $enableval; do | |
1271 | if test "X$pkg" = "X$p"; then | |
1272 | enable_static=yes | |
1273 | fi | |
1274 | done | |
1275 | IFS="$ac_save_ifs" | |
1276 | ;; | |
1277 | esac | |
1278 | else | |
1279 | enable_static=yes | |
1280 | fi | |
1281 | ||
1282 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
1283 | if test "${enable_fast_install+set}" = set; then | |
1284 | enableval="$enable_fast_install" | |
1285 | p=${PACKAGE-default} | |
0fd91e0a | 1286 | case $enableval in |
dfac8a13 TT |
1287 | yes) enable_fast_install=yes ;; |
1288 | no) enable_fast_install=no ;; | |
1289 | *) | |
1290 | enable_fast_install=no | |
1291 | # Look at the argument we got. We use all the common list separators. | |
1292 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1293 | for pkg in $enableval; do | |
1294 | if test "X$pkg" = "X$p"; then | |
1295 | enable_fast_install=yes | |
1296 | fi | |
1297 | done | |
1298 | IFS="$ac_save_ifs" | |
1299 | ;; | |
1300 | esac | |
1301 | else | |
1302 | enable_fast_install=yes | |
1303 | fi | |
1304 | ||
dfac8a13 TT |
1305 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1306 | if test "${with_gnu_ld+set}" = set; then | |
1307 | withval="$with_gnu_ld" | |
1308 | test "$withval" = no || with_gnu_ld=yes | |
1309 | else | |
1310 | with_gnu_ld=no | |
1311 | fi | |
1312 | ||
1313 | ac_prog=ld | |
0fd91e0a | 1314 | if test "$GCC" = yes; then |
dfac8a13 TT |
1315 | # Check if gcc -print-prog-name=ld gives a path. |
1316 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
01ef8751 | 1317 | echo "configure:1318: checking for ld used by GCC" >&5 |
0fd91e0a AO |
1318 | case $host in |
1319 | *-*-mingw*) | |
1320 | # gcc leaves a trailing carriage return which upsets mingw | |
1321 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1322 | *) | |
1323 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1324 | esac | |
1325 | case $ac_prog in | |
dfac8a13 | 1326 | # Accept absolute paths. |
0fd91e0a | 1327 | [\\/]* | [A-Za-z]:[\\/]*) |
dfac8a13 TT |
1328 | re_direlt='/[^/][^/]*/\.\./' |
1329 | # Canonicalize the path of ld | |
1330 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1331 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1332 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1333 | done | |
1334 | test -z "$LD" && LD="$ac_prog" | |
1335 | ;; | |
1336 | "") | |
1337 | # If it fails, then pretend we aren't using GCC. | |
1338 | ac_prog=ld | |
1339 | ;; | |
1340 | *) | |
1341 | # If it is relative, then search for the first ld in PATH. | |
1342 | with_gnu_ld=unknown | |
1343 | ;; | |
1344 | esac | |
1345 | elif test "$with_gnu_ld" = yes; then | |
1346 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
01ef8751 | 1347 | echo "configure:1348: checking for GNU ld" >&5 |
dfac8a13 TT |
1348 | else |
1349 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
01ef8751 | 1350 | echo "configure:1351: checking for non-GNU ld" >&5 |
dfac8a13 | 1351 | fi |
0fd91e0a | 1352 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
dfac8a13 TT |
1353 | echo $ac_n "(cached) $ac_c" 1>&6 |
1354 | else | |
1355 | if test -z "$LD"; then | |
0fd91e0a | 1356 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
dfac8a13 TT |
1357 | for ac_dir in $PATH; do |
1358 | test -z "$ac_dir" && ac_dir=. | |
0fd91e0a AO |
1359 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
1360 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
dfac8a13 TT |
1361 | # Check to see if the program is GNU ld. I'd rather use --version, |
1362 | # but apparently some GNU ld's only accept -v. | |
1363 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
0fd91e0a | 1364 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
dfac8a13 TT |
1365 | test "$with_gnu_ld" != no && break |
1366 | else | |
1367 | test "$with_gnu_ld" != yes && break | |
1368 | fi | |
1369 | fi | |
1370 | done | |
1371 | IFS="$ac_save_ifs" | |
1372 | else | |
0fd91e0a | 1373 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
dfac8a13 TT |
1374 | fi |
1375 | fi | |
1376 | ||
0fd91e0a | 1377 | LD="$lt_cv_path_LD" |
dfac8a13 TT |
1378 | if test -n "$LD"; then |
1379 | echo "$ac_t""$LD" 1>&6 | |
1380 | else | |
1381 | echo "$ac_t""no" 1>&6 | |
1382 | fi | |
1383 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
dfac8a13 | 1384 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
01ef8751 | 1385 | echo "configure:1386: checking if the linker ($LD) is GNU ld" >&5 |
0fd91e0a | 1386 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
dfac8a13 TT |
1387 | echo $ac_n "(cached) $ac_c" 1>&6 |
1388 | else | |
1389 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1390 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
0fd91e0a | 1391 | lt_cv_prog_gnu_ld=yes |
dfac8a13 | 1392 | else |
0fd91e0a | 1393 | lt_cv_prog_gnu_ld=no |
dfac8a13 TT |
1394 | fi |
1395 | fi | |
1396 | ||
0fd91e0a AO |
1397 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
1398 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
dfac8a13 TT |
1399 | |
1400 | ||
0fd91e0a | 1401 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 |
01ef8751 | 1402 | echo "configure:1403: checking for $LD option to reload object files" >&5 |
0fd91e0a AO |
1403 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1405 | else | |
1406 | lt_cv_ld_reload_flag='-r' | |
1407 | fi | |
1408 | ||
1409 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | |
1410 | reload_flag=$lt_cv_ld_reload_flag | |
1411 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
1412 | ||
dfac8a13 | 1413 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
01ef8751 | 1414 | echo "configure:1415: checking for BSD-compatible nm" >&5 |
0fd91e0a | 1415 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
dfac8a13 TT |
1416 | echo $ac_n "(cached) $ac_c" 1>&6 |
1417 | else | |
1418 | if test -n "$NM"; then | |
1419 | # Let the user override the test. | |
0fd91e0a | 1420 | lt_cv_path_NM="$NM" |
dfac8a13 | 1421 | else |
0fd91e0a | 1422 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
dfac8a13 TT |
1423 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
1424 | test -z "$ac_dir" && ac_dir=. | |
0fd91e0a AO |
1425 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
1426 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
dfac8a13 TT |
1427 | # Check to see if the nm accepts a BSD-compat flag. |
1428 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1429 | # nm: unknown option "B" ignored | |
0fd91e0a AO |
1430 | # Tru64's nm complains that /dev/null is an invalid object file |
1431 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
1432 | lt_cv_path_NM="$tmp_nm -B" | |
dfac8a13 | 1433 | break |
0fd91e0a AO |
1434 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
1435 | lt_cv_path_NM="$tmp_nm -p" | |
dfac8a13 TT |
1436 | break |
1437 | else | |
0fd91e0a | 1438 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
dfac8a13 TT |
1439 | continue # so that we can try to find one that supports BSD flags |
1440 | fi | |
1441 | fi | |
1442 | done | |
1443 | IFS="$ac_save_ifs" | |
0fd91e0a | 1444 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
dfac8a13 TT |
1445 | fi |
1446 | fi | |
1447 | ||
0fd91e0a | 1448 | NM="$lt_cv_path_NM" |
dfac8a13 TT |
1449 | echo "$ac_t""$NM" 1>&6 |
1450 | ||
0fd91e0a | 1451 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
01ef8751 | 1452 | echo "configure:1453: checking whether ln -s works" >&5 |
0fd91e0a | 1453 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
025fd00e TT |
1454 | echo $ac_n "(cached) $ac_c" 1>&6 |
1455 | else | |
0fd91e0a AO |
1456 | rm -f conftestdata |
1457 | if ln -s X conftestdata 2>/dev/null | |
1458 | then | |
1459 | rm -f conftestdata | |
1460 | ac_cv_prog_LN_S="ln -s" | |
1461 | else | |
1462 | ac_cv_prog_LN_S=ln | |
1463 | fi | |
1464 | fi | |
1465 | LN_S="$ac_cv_prog_LN_S" | |
1466 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1467 | echo "$ac_t""yes" 1>&6 | |
1468 | else | |
1469 | echo "$ac_t""no" 1>&6 | |
1470 | fi | |
025fd00e | 1471 | |
0fd91e0a | 1472 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
01ef8751 | 1473 | echo "configure:1474: checking how to recognise dependant libraries" >&5 |
0fd91e0a AO |
1474 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1476 | else | |
1477 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
1478 | lt_cv_file_magic_test_file= | |
1479 | lt_cv_deplibs_check_method='unknown' | |
1480 | # Need to set the preceding variable on all platforms that support | |
1481 | # interlibrary dependencies. | |
1482 | # 'none' -- dependencies not supported. | |
1483 | # `unknown' -- same as none, but documents that we really don't know. | |
1484 | # 'pass_all' -- all dependencies passed with no checks. | |
1485 | # 'test_compile' -- check by making test program. | |
1486 | # 'file_magic [regex]' -- check by looking for files in library path | |
1487 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1488 | # If you have `file' or equivalent on your system and you're not sure | |
1489 | # whether `pass_all' will *always* work, you probably want this one. | |
1490 | ||
1491 | case $host_os in | |
025fd00e | 1492 | aix*) |
0fd91e0a | 1493 | lt_cv_deplibs_check_method=pass_all |
025fd00e | 1494 | ;; |
025fd00e | 1495 | |
0fd91e0a AO |
1496 | beos*) |
1497 | lt_cv_deplibs_check_method=pass_all | |
1498 | ;; | |
025fd00e | 1499 | |
0fd91e0a AO |
1500 | bsdi4*) |
1501 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
1502 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1503 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1504 | ;; | |
025fd00e | 1505 | |
0fd91e0a AO |
1506 | cygwin* | mingw* |pw32*) |
1507 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
1508 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
1509 | ;; | |
025fd00e | 1510 | |
0fd91e0a AO |
1511 | darwin* | rhapsody*) |
1512 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
1513 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1514 | case "$host_os" in | |
1515 | rhapsody* | darwin1.012) | |
1516 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
1517 | ;; | |
1518 | *) # Darwin 1.3 on | |
1519 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
1520 | ;; | |
1521 | esac | |
1522 | ;; | |
025fd00e | 1523 | |
0fd91e0a AO |
1524 | freebsd* ) |
1525 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
1526 | case $host_cpu in | |
1527 | i*86 ) | |
1528 | # Not sure whether the presence of OpenBSD here was a mistake. | |
1529 | # Let's accept both of them until this is cleared up. | |
1530 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
1531 | lt_cv_file_magic_cmd=/usr/bin/file | |
1532 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
1533 | ;; | |
1534 | esac | |
1535 | else | |
1536 | lt_cv_deplibs_check_method=pass_all | |
1537 | fi | |
1538 | ;; | |
025fd00e | 1539 | |
0fd91e0a AO |
1540 | gnu*) |
1541 | lt_cv_deplibs_check_method=pass_all | |
1542 | ;; | |
025fd00e | 1543 | |
0fd91e0a AO |
1544 | hpux10.20*|hpux11*) |
1545 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
1546 | lt_cv_file_magic_cmd=/usr/bin/file | |
1547 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
1548 | ;; | |
025fd00e | 1549 | |
0fd91e0a AO |
1550 | irix5* | irix6*) |
1551 | case $host_os in | |
1552 | irix5*) | |
1553 | # this will be overridden with pass_all, but let us keep it just in case | |
1554 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
1555 | ;; | |
1556 | *) | |
1557 | case $LD in | |
1558 | *-32|*"-32 ") libmagic=32-bit;; | |
1559 | *-n32|*"-n32 ") libmagic=N32;; | |
1560 | *-64|*"-64 ") libmagic=64-bit;; | |
1561 | *) libmagic=never-match;; | |
1562 | esac | |
1563 | # this will be overridden with pass_all, but let us keep it just in case | |
1564 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
1565 | ;; | |
1566 | esac | |
1567 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
1568 | lt_cv_deplibs_check_method=pass_all | |
1569 | ;; | |
025fd00e | 1570 | |
0fd91e0a AO |
1571 | # This must be Linux ELF. |
1572 | linux-gnu*) | |
1573 | case $host_cpu in | |
33456445 | 1574 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
0fd91e0a AO |
1575 | lt_cv_deplibs_check_method=pass_all ;; |
1576 | *) | |
1577 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
1578 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
1579 | esac | |
1580 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
1581 | ;; | |
025fd00e | 1582 | |
0fd91e0a AO |
1583 | netbsd*) |
1584 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
1585 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
025fd00e | 1586 | else |
0fd91e0a | 1587 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
025fd00e | 1588 | fi |
0fd91e0a | 1589 | ;; |
025fd00e | 1590 | |
0fd91e0a AO |
1591 | newsos6) |
1592 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
1593 | lt_cv_file_magic_cmd=/usr/bin/file | |
1594 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
1595 | ;; | |
025fd00e | 1596 | |
0fd91e0a AO |
1597 | osf3* | osf4* | osf5*) |
1598 | # this will be overridden with pass_all, but let us keep it just in case | |
1599 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
1600 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1601 | lt_cv_deplibs_check_method=pass_all | |
1602 | ;; | |
025fd00e | 1603 | |
0fd91e0a AO |
1604 | sco3.2v5*) |
1605 | lt_cv_deplibs_check_method=pass_all | |
1606 | ;; | |
025fd00e | 1607 | |
0fd91e0a AO |
1608 | solaris*) |
1609 | lt_cv_deplibs_check_method=pass_all | |
1610 | lt_cv_file_magic_test_file=/lib/libc.so | |
1611 | ;; | |
025fd00e | 1612 | |
33456445 AO |
1613 | sysv5uw[78]* | sysv4*uw2*) |
1614 | lt_cv_deplibs_check_method=pass_all | |
1615 | ;; | |
1616 | ||
0fd91e0a AO |
1617 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
1618 | case $host_vendor in | |
1619 | ncr) | |
1620 | lt_cv_deplibs_check_method=pass_all | |
1621 | ;; | |
1622 | motorola) | |
1623 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
1624 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
1625 | ;; | |
1626 | esac | |
1627 | ;; | |
1628 | esac | |
025fd00e TT |
1629 | |
1630 | fi | |
1631 | ||
0fd91e0a AO |
1632 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 |
1633 | file_magic_cmd=$lt_cv_file_magic_cmd | |
1634 | deplibs_check_method=$lt_cv_deplibs_check_method | |
025fd00e | 1635 | |
0fd91e0a | 1636 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 |
01ef8751 | 1637 | echo "configure:1638: checking for object suffix" >&5 |
0fd91e0a | 1638 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
dfac8a13 TT |
1639 | echo $ac_n "(cached) $ac_c" 1>&6 |
1640 | else | |
0fd91e0a AO |
1641 | rm -f conftest* |
1642 | echo 'int i = 1;' > conftest.$ac_ext | |
01ef8751 | 1643 | if { (eval echo configure:1644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0fd91e0a AO |
1644 | for ac_file in conftest.*; do |
1645 | case $ac_file in | |
1646 | *.c) ;; | |
1647 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
1648 | esac | |
1649 | done | |
dfac8a13 | 1650 | else |
0fd91e0a | 1651 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } |
dfac8a13 | 1652 | fi |
0fd91e0a | 1653 | rm -f conftest* |
dfac8a13 TT |
1654 | fi |
1655 | ||
0fd91e0a AO |
1656 | echo "$ac_t""$ac_cv_objext" 1>&6 |
1657 | OBJEXT=$ac_cv_objext | |
1658 | ac_objext=$ac_cv_objext | |
1659 | ||
025fd00e TT |
1660 | if test $host != $build; then |
1661 | ac_tool_prefix=${host_alias}- | |
1662 | else | |
1663 | ac_tool_prefix= | |
1664 | fi | |
1665 | ||
0fd91e0a | 1666 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
dfac8a13 | 1667 | |
0fd91e0a AO |
1668 | # Only perform the check for file, if the check method requires it |
1669 | case $deplibs_check_method in | |
1670 | file_magic*) | |
1671 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
1672 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | |
01ef8751 | 1673 | echo "configure:1674: checking for ${ac_tool_prefix}file" >&5 |
0fd91e0a AO |
1674 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
1675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1676 | else | |
1677 | case $MAGIC_CMD in | |
1678 | /*) | |
1679 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
1680 | ;; | |
1681 | ?:/*) | |
1682 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
1683 | ;; | |
1684 | *) | |
1685 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
1686 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1687 | ac_dummy="/usr/bin:$PATH" | |
1688 | for ac_dir in $ac_dummy; do | |
1689 | test -z "$ac_dir" && ac_dir=. | |
1690 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
1691 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
1692 | if test -n "$file_magic_test_file"; then | |
1693 | case $deplibs_check_method in | |
1694 | "file_magic "*) | |
1695 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
1696 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1697 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
1698 | egrep "$file_magic_regex" > /dev/null; then | |
1699 | : | |
1700 | else | |
1701 | cat <<EOF 1>&2 | |
dfac8a13 | 1702 | |
0fd91e0a AO |
1703 | *** Warning: the command libtool uses to detect shared libraries, |
1704 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1705 | *** The result is that libtool may fail to recognize shared libraries | |
1706 | *** as such. This will affect the creation of libtool libraries that | |
1707 | *** depend on shared libraries, but programs linked with such libtool | |
1708 | *** libraries will work regardless of this problem. Nevertheless, you | |
1709 | *** may want to report the problem to your system manager and/or to | |
1710 | *** bug-libtool@gnu.org | |
1711 | ||
1712 | EOF | |
1713 | fi ;; | |
1714 | esac | |
1715 | fi | |
1716 | break | |
1717 | fi | |
1718 | done | |
1719 | IFS="$ac_save_ifs" | |
1720 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
dfac8a13 | 1721 | ;; |
0fd91e0a AO |
1722 | esac |
1723 | fi | |
dfac8a13 | 1724 | |
0fd91e0a AO |
1725 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1726 | if test -n "$MAGIC_CMD"; then | |
1727 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
1728 | else | |
1729 | echo "$ac_t""no" 1>&6 | |
1730 | fi | |
1731 | ||
1732 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
1733 | if test -n "$ac_tool_prefix"; then | |
1734 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
01ef8751 | 1735 | echo "configure:1736: checking for file" >&5 |
0fd91e0a | 1736 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
dfac8a13 TT |
1737 | echo $ac_n "(cached) $ac_c" 1>&6 |
1738 | else | |
0fd91e0a AO |
1739 | case $MAGIC_CMD in |
1740 | /*) | |
1741 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
1742 | ;; | |
1743 | ?:/*) | |
1744 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
1745 | ;; | |
1746 | *) | |
1747 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
1748 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1749 | ac_dummy="/usr/bin:$PATH" | |
1750 | for ac_dir in $ac_dummy; do | |
1751 | test -z "$ac_dir" && ac_dir=. | |
1752 | if test -f $ac_dir/file; then | |
1753 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
1754 | if test -n "$file_magic_test_file"; then | |
1755 | case $deplibs_check_method in | |
1756 | "file_magic "*) | |
1757 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
1758 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1759 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
1760 | egrep "$file_magic_regex" > /dev/null; then | |
1761 | : | |
1762 | else | |
1763 | cat <<EOF 1>&2 | |
c45f211e | 1764 | |
0fd91e0a AO |
1765 | *** Warning: the command libtool uses to detect shared libraries, |
1766 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1767 | *** The result is that libtool may fail to recognize shared libraries | |
1768 | *** as such. This will affect the creation of libtool libraries that | |
1769 | *** depend on shared libraries, but programs linked with such libtool | |
1770 | *** libraries will work regardless of this problem. Nevertheless, you | |
1771 | *** may want to report the problem to your system manager and/or to | |
1772 | *** bug-libtool@gnu.org | |
dfac8a13 | 1773 | |
c45f211e | 1774 | EOF |
0fd91e0a AO |
1775 | fi ;; |
1776 | esac | |
1777 | fi | |
1778 | break | |
1779 | fi | |
1780 | done | |
1781 | IFS="$ac_save_ifs" | |
1782 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
1783 | ;; | |
1784 | esac | |
1785 | fi | |
1786 | ||
1787 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1788 | if test -n "$MAGIC_CMD"; then | |
1789 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
dfac8a13 | 1790 | else |
0fd91e0a | 1791 | echo "$ac_t""no" 1>&6 |
dfac8a13 | 1792 | fi |
0fd91e0a AO |
1793 | |
1794 | else | |
1795 | MAGIC_CMD=: | |
1796 | fi | |
dfac8a13 TT |
1797 | fi |
1798 | ||
dfac8a13 TT |
1799 | fi |
1800 | ;; | |
0fd91e0a | 1801 | esac |
dfac8a13 | 1802 | |
0fd91e0a AO |
1803 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
1804 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
025fd00e | 1805 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
01ef8751 | 1806 | echo "configure:1807: checking for $ac_word" >&5 |
0fd91e0a | 1807 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
025fd00e TT |
1808 | echo $ac_n "(cached) $ac_c" 1>&6 |
1809 | else | |
0fd91e0a AO |
1810 | if test -n "$RANLIB"; then |
1811 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
025fd00e TT |
1812 | else |
1813 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1814 | ac_dummy="$PATH" | |
1815 | for ac_dir in $ac_dummy; do | |
1816 | test -z "$ac_dir" && ac_dir=. | |
1817 | if test -f $ac_dir/$ac_word; then | |
0fd91e0a | 1818 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
025fd00e TT |
1819 | break |
1820 | fi | |
1821 | done | |
1822 | IFS="$ac_save_ifs" | |
1823 | fi | |
1824 | fi | |
0fd91e0a AO |
1825 | RANLIB="$ac_cv_prog_RANLIB" |
1826 | if test -n "$RANLIB"; then | |
1827 | echo "$ac_t""$RANLIB" 1>&6 | |
025fd00e TT |
1828 | else |
1829 | echo "$ac_t""no" 1>&6 | |
1830 | fi | |
1831 | ||
1832 | ||
0fd91e0a | 1833 | if test -z "$ac_cv_prog_RANLIB"; then |
025fd00e | 1834 | if test -n "$ac_tool_prefix"; then |
0fd91e0a AO |
1835 | # Extract the first word of "ranlib", so it can be a program name with args. |
1836 | set dummy ranlib; ac_word=$2 | |
025fd00e | 1837 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
01ef8751 | 1838 | echo "configure:1839: checking for $ac_word" >&5 |
0fd91e0a | 1839 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
025fd00e TT |
1840 | echo $ac_n "(cached) $ac_c" 1>&6 |
1841 | else | |
0fd91e0a AO |
1842 | if test -n "$RANLIB"; then |
1843 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
025fd00e TT |
1844 | else |
1845 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1846 | ac_dummy="$PATH" | |
1847 | for ac_dir in $ac_dummy; do | |
1848 | test -z "$ac_dir" && ac_dir=. | |
1849 | if test -f $ac_dir/$ac_word; then | |
0fd91e0a | 1850 | ac_cv_prog_RANLIB="ranlib" |
025fd00e TT |
1851 | break |
1852 | fi | |
1853 | done | |
1854 | IFS="$ac_save_ifs" | |
0fd91e0a | 1855 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
025fd00e TT |
1856 | fi |
1857 | fi | |
0fd91e0a AO |
1858 | RANLIB="$ac_cv_prog_RANLIB" |
1859 | if test -n "$RANLIB"; then | |
1860 | echo "$ac_t""$RANLIB" 1>&6 | |
025fd00e TT |
1861 | else |
1862 | echo "$ac_t""no" 1>&6 | |
1863 | fi | |
1864 | ||
1865 | else | |
0fd91e0a | 1866 | RANLIB=":" |
025fd00e TT |
1867 | fi |
1868 | fi | |
1869 | ||
0fd91e0a AO |
1870 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1871 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
025fd00e | 1872 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
01ef8751 | 1873 | echo "configure:1874: checking for $ac_word" >&5 |
0fd91e0a | 1874 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
025fd00e TT |
1875 | echo $ac_n "(cached) $ac_c" 1>&6 |
1876 | else | |
0fd91e0a AO |
1877 | if test -n "$STRIP"; then |
1878 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
025fd00e TT |
1879 | else |
1880 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1881 | ac_dummy="$PATH" | |
1882 | for ac_dir in $ac_dummy; do | |
1883 | test -z "$ac_dir" && ac_dir=. | |
1884 | if test -f $ac_dir/$ac_word; then | |
0fd91e0a | 1885 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
025fd00e TT |
1886 | break |
1887 | fi | |
1888 | done | |
1889 | IFS="$ac_save_ifs" | |
1890 | fi | |
1891 | fi | |
0fd91e0a AO |
1892 | STRIP="$ac_cv_prog_STRIP" |
1893 | if test -n "$STRIP"; then | |
1894 | echo "$ac_t""$STRIP" 1>&6 | |
025fd00e TT |
1895 | else |
1896 | echo "$ac_t""no" 1>&6 | |
1897 | fi | |
1898 | ||
1899 | ||
0fd91e0a | 1900 | if test -z "$ac_cv_prog_STRIP"; then |
025fd00e | 1901 | if test -n "$ac_tool_prefix"; then |
0fd91e0a AO |
1902 | # Extract the first word of "strip", so it can be a program name with args. |
1903 | set dummy strip; ac_word=$2 | |
025fd00e | 1904 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
01ef8751 | 1905 | echo "configure:1906: checking for $ac_word" >&5 |
0fd91e0a | 1906 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
025fd00e TT |
1907 | echo $ac_n "(cached) $ac_c" 1>&6 |
1908 | else | |
0fd91e0a AO |
1909 | if test -n "$STRIP"; then |
1910 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
025fd00e TT |
1911 | else |
1912 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1913 | ac_dummy="$PATH" | |
1914 | for ac_dir in $ac_dummy; do | |
1915 | test -z "$ac_dir" && ac_dir=. | |
1916 | if test -f $ac_dir/$ac_word; then | |
0fd91e0a | 1917 | ac_cv_prog_STRIP="strip" |
025fd00e TT |
1918 | break |
1919 | fi | |
1920 | done | |
1921 | IFS="$ac_save_ifs" | |
0fd91e0a | 1922 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
025fd00e TT |
1923 | fi |
1924 | fi | |
0fd91e0a AO |
1925 | STRIP="$ac_cv_prog_STRIP" |
1926 | if test -n "$STRIP"; then | |
1927 | echo "$ac_t""$STRIP" 1>&6 | |
025fd00e TT |
1928 | else |
1929 | echo "$ac_t""no" 1>&6 | |
1930 | fi | |
1931 | ||
1932 | else | |
0fd91e0a | 1933 | STRIP=":" |
025fd00e TT |
1934 | fi |
1935 | fi | |
1936 | ||
1937 | ||
0fd91e0a AO |
1938 | # Check for any special flags to pass to ltconfig. |
1939 | libtool_flags="--cache-file=$cache_file" | |
1940 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
1941 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
1942 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
1943 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
1944 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
c45f211e | 1945 | |
025fd00e TT |
1946 | |
1947 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
1948 | if test "${enable_libtool_lock+set}" = set; then | |
1949 | enableval="$enable_libtool_lock" | |
0fd91e0a AO |
1950 | : |
1951 | fi | |
1952 | ||
1953 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
1954 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
1955 | ||
1956 | # Check whether --with-pic or --without-pic was given. | |
1957 | if test "${with_pic+set}" = set; then | |
1958 | withval="$with_pic" | |
1959 | pic_mode="$withval" | |
025fd00e | 1960 | else |
0fd91e0a | 1961 | pic_mode=default |
025fd00e TT |
1962 | fi |
1963 | ||
0fd91e0a AO |
1964 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
1965 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
1966 | ||
1967 | # Some flags need to be propagated to the compiler or linker for good | |
1968 | # libtool support. | |
1969 | case $host in | |
1970 | *-*-irix6*) | |
1971 | # Find out which ABI we are using. | |
01ef8751 AO |
1972 | echo '#line 1973 "configure"' > conftest.$ac_ext |
1973 | if { (eval echo configure:1974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
0fd91e0a AO |
1974 | case `/usr/bin/file conftest.$ac_objext` in |
1975 | *32-bit*) | |
1976 | LD="${LD-ld} -32" | |
1977 | ;; | |
1978 | *N32*) | |
1979 | LD="${LD-ld} -n32" | |
1980 | ;; | |
1981 | *64-bit*) | |
1982 | LD="${LD-ld} -64" | |
1983 | ;; | |
1984 | esac | |
1985 | fi | |
1986 | rm -rf conftest* | |
1987 | ;; | |
025fd00e | 1988 | |
0fd91e0a AO |
1989 | *-*-sco3.2v5*) |
1990 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
1991 | SAVE_CFLAGS="$CFLAGS" | |
1992 | CFLAGS="$CFLAGS -belf" | |
1993 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
01ef8751 | 1994 | echo "configure:1995: checking whether the C compiler needs -belf" >&5 |
0fd91e0a AO |
1995 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1997 | else | |
1998 | ||
1999 | ac_ext=c | |
2000 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2001 | ac_cpp='$CPP $CPPFLAGS' | |
2002 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2003 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2004 | cross_compiling=$ac_cv_prog_cc_cross | |
2005 | ||
2006 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2007 | #line 2008 "configure" |
0fd91e0a AO |
2008 | #include "confdefs.h" |
2009 | ||
2010 | int main() { | |
2011 | ||
2012 | ; return 0; } | |
2013 | EOF | |
01ef8751 | 2014 | if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0fd91e0a AO |
2015 | rm -rf conftest* |
2016 | lt_cv_cc_needs_belf=yes | |
2017 | else | |
2018 | echo "configure: failed program was:" >&5 | |
2019 | cat conftest.$ac_ext >&5 | |
2020 | rm -rf conftest* | |
2021 | lt_cv_cc_needs_belf=no | |
025fd00e | 2022 | fi |
0fd91e0a AO |
2023 | rm -f conftest* |
2024 | ac_ext=c | |
2025 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2026 | ac_cpp='$CPP $CPPFLAGS' | |
2027 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2028 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2029 | cross_compiling=$ac_cv_prog_cc_cross | |
2030 | ||
2031 | fi | |
2032 | ||
2033 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2034 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2035 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2036 | CFLAGS="$SAVE_CFLAGS" | |
2037 | fi | |
2038 | ;; | |
2039 | ||
2040 | ||
2041 | esac | |
025fd00e | 2042 | |
dfac8a13 TT |
2043 | |
2044 | # Save cache, so that ltconfig can load it | |
2045 | cat > confcache <<\EOF | |
2046 | # This file is a shell script that caches the results of configure | |
2047 | # tests run on this system so they can be shared between configure | |
2048 | # scripts and configure runs. It is not useful on other systems. | |
2049 | # If it contains results you don't want to keep, you may remove or edit it. | |
2050 | # | |
2051 | # By default, configure uses ./config.cache as the cache file, | |
2052 | # creating it if it does not exist already. You can give configure | |
2053 | # the --cache-file=FILE option to use a different cache file; that is | |
2054 | # what configure does when it calls configure scripts in | |
2055 | # subdirectories, so they share the cache. | |
2056 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2057 | # config.status only pays attention to the cache file if you give it the | |
2058 | # --recheck option to rerun configure. | |
2059 | # | |
2060 | EOF | |
2061 | # The following way of writing the cache mishandles newlines in values, | |
2062 | # but we know of no workaround that is simple, portable, and efficient. | |
2063 | # So, don't put newlines in cache variables' values. | |
2064 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2065 | # and sets the high bit in the cache file unless we assign to the vars. | |
2066 | (set) 2>&1 | | |
2067 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2068 | *ac_space=\ *) | |
2069 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2070 | # turns \\\\ into \\, and sed turns \\ into \). | |
2071 | sed -n \ | |
2072 | -e "s/'/'\\\\''/g" \ | |
2073 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2074 | ;; | |
2075 | *) | |
2076 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2077 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2078 | ;; | |
2079 | esac >> confcache | |
2080 | if cmp -s $cache_file confcache; then | |
2081 | : | |
2082 | else | |
2083 | if test -w $cache_file; then | |
2084 | echo "updating cache $cache_file" | |
2085 | cat confcache > $cache_file | |
c45f211e | 2086 | else |
dfac8a13 | 2087 | echo "not updating unwritable cache $cache_file" |
c45f211e TT |
2088 | fi |
2089 | fi | |
dfac8a13 TT |
2090 | rm -f confcache |
2091 | ||
2092 | ||
2093 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
0fd91e0a AO |
2094 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
2095 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
2096 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
2097 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2098 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2099 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
dfac8a13 | 2100 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
0fd91e0a | 2101 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
dfac8a13 TT |
2102 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
2103 | ||
2104 | # Reload cache, that may have been modified by ltconfig | |
2105 | if test -r "$cache_file"; then | |
2106 | echo "loading cache $cache_file" | |
2107 | . $cache_file | |
2108 | else | |
2109 | echo "creating cache $cache_file" | |
2110 | > $cache_file | |
2111 | fi | |
2112 | ||
2113 | ||
2114 | # This can be used to rebuild libtool when needed | |
0fd91e0a | 2115 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
dfac8a13 TT |
2116 | |
2117 | # Always use our own libtool. | |
2118 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2119 | ||
2120 | # Redirect the config.log output again, so that the ltconfig log is not | |
2121 | # clobbered by the next message. | |
2122 | exec 5>>./config.log | |
2123 | ||
0fd91e0a AO |
2124 | |
2125 | ||
2126 | ||
2127 | ||
2128 | ||
dfac8a13 TT |
2129 | |
2130 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then | |
2131 | COMPPATH=. | |
2132 | else | |
2133 | COMPPATH=.. | |
2134 | fi | |
2135 | ||
2136 | ||
35241f18 CD |
2137 | # Find CPP now so that any conditional tests below won't do it and |
2138 | # thereby make the resulting definitions conditional. | |
2139 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
01ef8751 | 2140 | echo "configure:2141: checking how to run the C preprocessor" >&5 |
dfac8a13 TT |
2141 | # On Suns, sometimes $CPP names a directory. |
2142 | if test -n "$CPP" && test -d "$CPP"; then | |
2143 | CPP= | |
2144 | fi | |
2145 | if test -z "$CPP"; then | |
2146 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2148 | else | |
2149 | # This must be in double quotes, not single quotes, because CPP may get | |
2150 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2151 | CPP="${CC-cc} -E" | |
2152 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2153 | # not just through cpp. | |
2154 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2155 | #line 2156 "configure" |
dfac8a13 TT |
2156 | #include "confdefs.h" |
2157 | #include <assert.h> | |
2158 | Syntax Error | |
2159 | EOF | |
2160 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01ef8751 | 2161 | { (eval echo configure:2162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2162 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2163 | if test -z "$ac_err"; then | |
2164 | : | |
2165 | else | |
2166 | echo "$ac_err" >&5 | |
2167 | echo "configure: failed program was:" >&5 | |
2168 | cat conftest.$ac_ext >&5 | |
2169 | rm -rf conftest* | |
2170 | CPP="${CC-cc} -E -traditional-cpp" | |
2171 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2172 | #line 2173 "configure" |
dfac8a13 TT |
2173 | #include "confdefs.h" |
2174 | #include <assert.h> | |
2175 | Syntax Error | |
2176 | EOF | |
2177 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01ef8751 | 2178 | { (eval echo configure:2179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2179 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2180 | if test -z "$ac_err"; then | |
2181 | : | |
2182 | else | |
2183 | echo "$ac_err" >&5 | |
2184 | echo "configure: failed program was:" >&5 | |
2185 | cat conftest.$ac_ext >&5 | |
2186 | rm -rf conftest* | |
2187 | CPP="${CC-cc} -nologo -E" | |
2188 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2189 | #line 2190 "configure" |
dfac8a13 TT |
2190 | #include "confdefs.h" |
2191 | #include <assert.h> | |
2192 | Syntax Error | |
2193 | EOF | |
2194 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01ef8751 | 2195 | { (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2196 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2197 | if test -z "$ac_err"; then | |
2198 | : | |
2199 | else | |
2200 | echo "$ac_err" >&5 | |
2201 | echo "configure: failed program was:" >&5 | |
2202 | cat conftest.$ac_ext >&5 | |
2203 | rm -rf conftest* | |
2204 | CPP=/lib/cpp | |
2205 | fi | |
2206 | rm -f conftest* | |
2207 | fi | |
2208 | rm -f conftest* | |
2209 | fi | |
2210 | rm -f conftest* | |
2211 | ac_cv_prog_CPP="$CPP" | |
2212 | fi | |
2213 | CPP="$ac_cv_prog_CPP" | |
2214 | else | |
2215 | ac_cv_prog_CPP="$CPP" | |
2216 | fi | |
2217 | echo "$ac_t""$CPP" 1>&6 | |
2218 | ||
35241f18 CD |
2219 | |
2220 | if test -n "$with_cross_host"; then | |
2221 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS | |
2222 | # may not work correctly, because the compiler may not be able to | |
2223 | # link executables. | |
2224 | ||
2225 | # We assume newlib. This lets us hard-code the functions we know | |
2226 | # we'll have. | |
2227 | cat >> confdefs.h <<\EOF | |
2228 | #define HAVE_MEMCPY 1 | |
2229 | EOF | |
2230 | ||
2231 | cat >> confdefs.h <<\EOF | |
2232 | #define HAVE_STRERROR 1 | |
2233 | EOF | |
2234 | ||
2235 | ||
2236 | # We ignore --with-system-zlib in this case. | |
2237 | target_all=libzgcj.la | |
2238 | else | |
2239 | for ac_hdr in unistd.h | |
dfac8a13 TT |
2240 | do |
2241 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2242 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
01ef8751 | 2243 | echo "configure:2244: checking for $ac_hdr" >&5 |
dfac8a13 TT |
2244 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2246 | else | |
2247 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2248 | #line 2249 "configure" |
dfac8a13 TT |
2249 | #include "confdefs.h" |
2250 | #include <$ac_hdr> | |
2251 | EOF | |
2252 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01ef8751 | 2253 | { (eval echo configure:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2254 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2255 | if test -z "$ac_err"; then | |
2256 | rm -rf conftest* | |
2257 | eval "ac_cv_header_$ac_safe=yes" | |
2258 | else | |
2259 | echo "$ac_err" >&5 | |
2260 | echo "configure: failed program was:" >&5 | |
2261 | cat conftest.$ac_ext >&5 | |
2262 | rm -rf conftest* | |
2263 | eval "ac_cv_header_$ac_safe=no" | |
2264 | fi | |
2265 | rm -f conftest* | |
2266 | fi | |
2267 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2268 | echo "$ac_t""yes" 1>&6 | |
2269 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2270 | cat >> confdefs.h <<EOF | |
2271 | #define $ac_tr_hdr 1 | |
2272 | EOF | |
2273 | ||
2274 | else | |
2275 | echo "$ac_t""no" 1>&6 | |
c45f211e | 2276 | fi |
dfac8a13 TT |
2277 | done |
2278 | ||
2279 | for ac_func in getpagesize | |
2280 | do | |
2281 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
01ef8751 | 2282 | echo "configure:2283: checking for $ac_func" >&5 |
dfac8a13 TT |
2283 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2284 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2285 | else | |
2286 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2287 | #line 2288 "configure" |
dfac8a13 TT |
2288 | #include "confdefs.h" |
2289 | /* System header to define __stub macros and hopefully few prototypes, | |
2290 | which can conflict with char $ac_func(); below. */ | |
2291 | #include <assert.h> | |
2292 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2293 | /* We use char because int might match the return type of a gcc2 | |
2294 | builtin and then its argument prototype would still apply. */ | |
2295 | char $ac_func(); | |
2296 | ||
2297 | int main() { | |
2298 | ||
2299 | /* The GNU C library defines this for functions which it implements | |
2300 | to always fail with ENOSYS. Some functions are actually named | |
2301 | something starting with __ and the normal name is an alias. */ | |
2302 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2303 | choke me | |
2304 | #else | |
2305 | $ac_func(); | |
2306 | #endif | |
c45f211e | 2307 | |
dfac8a13 | 2308 | ; return 0; } |
c45f211e | 2309 | EOF |
01ef8751 | 2310 | if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
dfac8a13 TT |
2311 | rm -rf conftest* |
2312 | eval "ac_cv_func_$ac_func=yes" | |
c45f211e | 2313 | else |
dfac8a13 TT |
2314 | echo "configure: failed program was:" >&5 |
2315 | cat conftest.$ac_ext >&5 | |
2316 | rm -rf conftest* | |
2317 | eval "ac_cv_func_$ac_func=no" | |
2318 | fi | |
2319 | rm -f conftest* | |
c45f211e TT |
2320 | fi |
2321 | ||
dfac8a13 TT |
2322 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2323 | echo "$ac_t""yes" 1>&6 | |
2324 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2325 | cat >> confdefs.h <<EOF | |
2326 | #define $ac_tr_func 1 | |
c45f211e | 2327 | EOF |
dfac8a13 | 2328 | |
c45f211e | 2329 | else |
dfac8a13 | 2330 | echo "$ac_t""no" 1>&6 |
c45f211e | 2331 | fi |
dfac8a13 TT |
2332 | done |
2333 | ||
2334 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
01ef8751 | 2335 | echo "configure:2336: checking for working mmap" >&5 |
dfac8a13 TT |
2336 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
2337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2338 | else | |
2339 | if test "$cross_compiling" = yes; then | |
2340 | ac_cv_func_mmap_fixed_mapped=no | |
2341 | else | |
2342 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2343 | #line 2344 "configure" |
dfac8a13 TT |
2344 | #include "confdefs.h" |
2345 | ||
2346 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2347 | Here is a matrix of mmap possibilities: | |
2348 | mmap private not fixed | |
2349 | mmap private fixed at somewhere currently unmapped | |
2350 | mmap private fixed at somewhere already mapped | |
2351 | mmap shared not fixed | |
2352 | mmap shared fixed at somewhere currently unmapped | |
2353 | mmap shared fixed at somewhere already mapped | |
2354 | For private mappings, we should verify that changes cannot be read() | |
2355 | back from the file, nor mmap's back from the file at a different | |
2356 | address. (There have been systems where private was not correctly | |
2357 | implemented like the infamous i386 svr4.0, and systems where the | |
2358 | VM page cache was not coherent with the filesystem buffer cache | |
2359 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
2360 | For shared mappings, we should conversely verify that changes get | |
2361 | propogated back to all the places they're supposed to be. | |
c45f211e | 2362 | |
dfac8a13 TT |
2363 | Grep wants private fixed already mapped. |
2364 | The main things grep needs to know about mmap are: | |
2365 | * does it exist and is it safe to write into the mmap'd area | |
2366 | * how to use it (BSD variants) */ | |
c45f211e | 2367 | #include <sys/types.h> |
dfac8a13 | 2368 | #include <fcntl.h> |
c45f211e | 2369 | #include <sys/mman.h> |
dfac8a13 TT |
2370 | |
2371 | /* This mess was copied from the GNU getpagesize.h. */ | |
2372 | #ifndef HAVE_GETPAGESIZE | |
2373 | # ifdef HAVE_UNISTD_H | |
2374 | # include <unistd.h> | |
2375 | # endif | |
2376 | ||
2377 | /* Assume that all systems that can run configure have sys/param.h. */ | |
2378 | # ifndef HAVE_SYS_PARAM_H | |
2379 | # define HAVE_SYS_PARAM_H 1 | |
2380 | # endif | |
2381 | ||
2382 | # ifdef _SC_PAGESIZE | |
2383 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2384 | # else /* no _SC_PAGESIZE */ | |
2385 | # ifdef HAVE_SYS_PARAM_H | |
2386 | # include <sys/param.h> | |
2387 | # ifdef EXEC_PAGESIZE | |
2388 | # define getpagesize() EXEC_PAGESIZE | |
2389 | # else /* no EXEC_PAGESIZE */ | |
2390 | # ifdef NBPG | |
2391 | # define getpagesize() NBPG * CLSIZE | |
2392 | # ifndef CLSIZE | |
2393 | # define CLSIZE 1 | |
2394 | # endif /* no CLSIZE */ | |
2395 | # else /* no NBPG */ | |
2396 | # ifdef NBPC | |
2397 | # define getpagesize() NBPC | |
2398 | # else /* no NBPC */ | |
2399 | # ifdef PAGESIZE | |
2400 | # define getpagesize() PAGESIZE | |
2401 | # endif /* PAGESIZE */ | |
2402 | # endif /* no NBPC */ | |
2403 | # endif /* no NBPG */ | |
2404 | # endif /* no EXEC_PAGESIZE */ | |
2405 | # else /* no HAVE_SYS_PARAM_H */ | |
2406 | # define getpagesize() 8192 /* punt totally */ | |
2407 | # endif /* no HAVE_SYS_PARAM_H */ | |
2408 | # endif /* no _SC_PAGESIZE */ | |
2409 | ||
2410 | #endif /* no HAVE_GETPAGESIZE */ | |
2411 | ||
2412 | #ifdef __cplusplus | |
2413 | extern "C" { void *malloc(unsigned); } | |
2414 | #else | |
2415 | char *malloc(); | |
2416 | #endif | |
2417 | ||
2418 | int | |
2419 | main() | |
2420 | { | |
2421 | char *data, *data2, *data3; | |
2422 | int i, pagesize; | |
2423 | int fd; | |
2424 | ||
2425 | pagesize = getpagesize(); | |
2426 | ||
2427 | /* | |
2428 | * First, make a file with some known garbage in it. | |
2429 | */ | |
2430 | data = malloc(pagesize); | |
2431 | if (!data) | |
2432 | exit(1); | |
2433 | for (i = 0; i < pagesize; ++i) | |
2434 | *(data + i) = rand(); | |
2435 | umask(0); | |
2436 | fd = creat("conftestmmap", 0600); | |
2437 | if (fd < 0) | |
2438 | exit(1); | |
2439 | if (write(fd, data, pagesize) != pagesize) | |
2440 | exit(1); | |
2441 | close(fd); | |
2442 | ||
2443 | /* | |
2444 | * Next, try to mmap the file at a fixed address which | |
2445 | * already has something else allocated at it. If we can, | |
2446 | * also make sure that we see the same garbage. | |
2447 | */ | |
2448 | fd = open("conftestmmap", O_RDWR); | |
2449 | if (fd < 0) | |
2450 | exit(1); | |
2451 | data2 = malloc(2 * pagesize); | |
2452 | if (!data2) | |
2453 | exit(1); | |
2454 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
2455 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
2456 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
2457 | exit(1); | |
2458 | for (i = 0; i < pagesize; ++i) | |
2459 | if (*(data + i) != *(data2 + i)) | |
2460 | exit(1); | |
2461 | ||
2462 | /* | |
2463 | * Finally, make sure that changes to the mapped area | |
2464 | * do not percolate back to the file as seen by read(). | |
2465 | * (This is a bug on some variants of i386 svr4.0.) | |
2466 | */ | |
2467 | for (i = 0; i < pagesize; ++i) | |
2468 | *(data2 + i) = *(data2 + i) + 1; | |
2469 | data3 = malloc(pagesize); | |
2470 | if (!data3) | |
2471 | exit(1); | |
2472 | if (read(fd, data3, pagesize) != pagesize) | |
2473 | exit(1); | |
2474 | for (i = 0; i < pagesize; ++i) | |
2475 | if (*(data + i) != *(data3 + i)) | |
2476 | exit(1); | |
2477 | close(fd); | |
2478 | unlink("conftestmmap"); | |
2479 | exit(0); | |
c45f211e | 2480 | } |
dfac8a13 TT |
2481 | |
2482 | EOF | |
01ef8751 | 2483 | if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
dfac8a13 TT |
2484 | then |
2485 | ac_cv_func_mmap_fixed_mapped=yes | |
2486 | else | |
2487 | echo "configure: failed program was:" >&5 | |
2488 | cat conftest.$ac_ext >&5 | |
2489 | rm -fr conftest* | |
2490 | ac_cv_func_mmap_fixed_mapped=no | |
2491 | fi | |
2492 | rm -fr conftest* | |
2493 | fi | |
2494 | ||
2495 | fi | |
2496 | ||
2497 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
2498 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
2499 | cat >> confdefs.h <<\EOF | |
2500 | #define HAVE_MMAP 1 | |
2501 | EOF | |
2502 | ||
2503 | fi | |
2504 | ||
2505 | for ac_func in memcpy strerror | |
2506 | do | |
2507 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
01ef8751 | 2508 | echo "configure:2509: checking for $ac_func" >&5 |
dfac8a13 TT |
2509 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2510 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2511 | else | |
2512 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2513 | #line 2514 "configure" |
dfac8a13 TT |
2514 | #include "confdefs.h" |
2515 | /* System header to define __stub macros and hopefully few prototypes, | |
2516 | which can conflict with char $ac_func(); below. */ | |
2517 | #include <assert.h> | |
2518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2519 | /* We use char because int might match the return type of a gcc2 | |
2520 | builtin and then its argument prototype would still apply. */ | |
2521 | char $ac_func(); | |
2522 | ||
2523 | int main() { | |
2524 | ||
2525 | /* The GNU C library defines this for functions which it implements | |
2526 | to always fail with ENOSYS. Some functions are actually named | |
2527 | something starting with __ and the normal name is an alias. */ | |
2528 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2529 | choke me | |
2530 | #else | |
2531 | $ac_func(); | |
2532 | #endif | |
2533 | ||
2534 | ; return 0; } | |
2535 | EOF | |
01ef8751 | 2536 | if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
dfac8a13 TT |
2537 | rm -rf conftest* |
2538 | eval "ac_cv_func_$ac_func=yes" | |
2539 | else | |
2540 | echo "configure: failed program was:" >&5 | |
2541 | cat conftest.$ac_ext >&5 | |
2542 | rm -rf conftest* | |
2543 | eval "ac_cv_func_$ac_func=no" | |
2544 | fi | |
2545 | rm -f conftest* | |
2546 | fi | |
2547 | ||
2548 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2549 | echo "$ac_t""yes" 1>&6 | |
2550 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2551 | cat >> confdefs.h <<EOF | |
2552 | #define $ac_tr_func 1 | |
2553 | EOF | |
2554 | ||
2555 | else | |
2556 | echo "$ac_t""no" 1>&6 | |
2557 | fi | |
2558 | done | |
2559 | ||
79a9a529 TT |
2560 | |
2561 | if test "$with_system_zlib" = yes; then | |
2562 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
01ef8751 | 2563 | echo "configure:2564: checking for deflate in -lz" >&5 |
79a9a529 TT |
2564 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
2565 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2567 | else | |
2568 | ac_save_LIBS="$LIBS" | |
2569 | LIBS="-lz $LIBS" | |
2570 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2571 | #line 2572 "configure" |
79a9a529 TT |
2572 | #include "confdefs.h" |
2573 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2574 | /* We use char because int might match the return type of a gcc2 | |
2575 | builtin and then its argument prototype would still apply. */ | |
2576 | char deflate(); | |
2577 | ||
2578 | int main() { | |
2579 | deflate() | |
2580 | ; return 0; } | |
2581 | EOF | |
01ef8751 | 2582 | if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
79a9a529 TT |
2583 | rm -rf conftest* |
2584 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2585 | else | |
2586 | echo "configure: failed program was:" >&5 | |
2587 | cat conftest.$ac_ext >&5 | |
2588 | rm -rf conftest* | |
2589 | eval "ac_cv_lib_$ac_lib_var=no" | |
dfac8a13 | 2590 | fi |
79a9a529 TT |
2591 | rm -f conftest* |
2592 | LIBS="$ac_save_LIBS" | |
2593 | ||
2594 | fi | |
2595 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2596 | echo "$ac_t""yes" 1>&6 | |
2597 | target_all= | |
2598 | else | |
2599 | echo "$ac_t""no" 1>&6 | |
2600 | target_all=libzgcj.la | |
2601 | fi | |
2602 | ||
2603 | else | |
2604 | target_all=libzgcj.la | |
2605 | fi | |
2606 | fi | |
2607 | ||
2608 | ||
dfac8a13 TT |
2609 | |
2610 | for ac_hdr in unistd.h | |
2611 | do | |
2612 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2613 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
01ef8751 | 2614 | echo "configure:2615: checking for $ac_hdr" >&5 |
dfac8a13 TT |
2615 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2617 | else | |
2618 | cat > conftest.$ac_ext <<EOF | |
01ef8751 | 2619 | #line 2620 "configure" |
dfac8a13 TT |
2620 | #include "confdefs.h" |
2621 | #include <$ac_hdr> | |
2622 | EOF | |
2623 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
01ef8751 | 2624 | { (eval echo configure:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2625 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2626 | if test -z "$ac_err"; then | |
2627 | rm -rf conftest* | |
2628 | eval "ac_cv_header_$ac_safe=yes" | |
2629 | else | |
2630 | echo "$ac_err" >&5 | |
2631 | echo "configure: failed program was:" >&5 | |
2632 | cat conftest.$ac_ext >&5 | |
2633 | rm -rf conftest* | |
2634 | eval "ac_cv_header_$ac_safe=no" | |
2635 | fi | |
2636 | rm -f conftest* | |
2637 | fi | |
2638 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2639 | echo "$ac_t""yes" 1>&6 | |
2640 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2641 | cat >> confdefs.h <<EOF | |
2642 | #define $ac_tr_hdr 1 | |
2643 | EOF | |
2644 | ||
2645 | else | |
2646 | echo "$ac_t""no" 1>&6 | |
2647 | fi | |
2648 | done | |
2649 | ||
2650 | ||
b48ed568 TT |
2651 | |
2652 | ||
2653 | if test -z "$with_cross_host"; then | |
2654 | USE_LIBDIR_TRUE= | |
2655 | USE_LIBDIR_FALSE='#' | |
2656 | else | |
2657 | USE_LIBDIR_TRUE='#' | |
2658 | USE_LIBDIR_FALSE= | |
2659 | fi | |
2660 | ||
e093c992 AG |
2661 | |
2662 | if test -n "$with_target_subdir"; then | |
2663 | TARGET_LIBRARY_TRUE= | |
2664 | TARGET_LIBRARY_FALSE='#' | |
2665 | else | |
2666 | TARGET_LIBRARY_TRUE='#' | |
2667 | TARGET_LIBRARY_FALSE= | |
2668 | fi | |
2669 | ||
dfac8a13 TT |
2670 | if test "${multilib}" = "yes"; then |
2671 | multilib_arg="--enable-multilib" | |
2672 | else | |
2673 | multilib_arg= | |
2674 | fi | |
2675 | ||
2676 | trap '' 1 2 15 | |
2677 | cat > confcache <<\EOF | |
2678 | # This file is a shell script that caches the results of configure | |
2679 | # tests run on this system so they can be shared between configure | |
2680 | # scripts and configure runs. It is not useful on other systems. | |
2681 | # If it contains results you don't want to keep, you may remove or edit it. | |
2682 | # | |
2683 | # By default, configure uses ./config.cache as the cache file, | |
2684 | # creating it if it does not exist already. You can give configure | |
2685 | # the --cache-file=FILE option to use a different cache file; that is | |
2686 | # what configure does when it calls configure scripts in | |
2687 | # subdirectories, so they share the cache. | |
2688 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2689 | # config.status only pays attention to the cache file if you give it the | |
2690 | # --recheck option to rerun configure. | |
2691 | # | |
c45f211e | 2692 | EOF |
dfac8a13 TT |
2693 | # The following way of writing the cache mishandles newlines in values, |
2694 | # but we know of no workaround that is simple, portable, and efficient. | |
2695 | # So, don't put newlines in cache variables' values. | |
2696 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2697 | # and sets the high bit in the cache file unless we assign to the vars. | |
2698 | (set) 2>&1 | | |
2699 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2700 | *ac_space=\ *) | |
2701 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2702 | # turns \\\\ into \\, and sed turns \\ into \). | |
2703 | sed -n \ | |
2704 | -e "s/'/'\\\\''/g" \ | |
2705 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2706 | ;; | |
2707 | *) | |
2708 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2709 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2710 | ;; | |
2711 | esac >> confcache | |
2712 | if cmp -s $cache_file confcache; then | |
2713 | : | |
c45f211e | 2714 | else |
dfac8a13 TT |
2715 | if test -w $cache_file; then |
2716 | echo "updating cache $cache_file" | |
2717 | cat confcache > $cache_file | |
2718 | else | |
2719 | echo "not updating unwritable cache $cache_file" | |
2720 | fi | |
2721 | fi | |
2722 | rm -f confcache | |
2723 | ||
2724 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2725 | ||
2726 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2727 | # Let make expand exec_prefix. | |
2728 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2729 | ||
2730 | # Any assignment to VPATH causes Sun make to only execute | |
2731 | # the first set of double-colon rules, so remove it if not needed. | |
2732 | # If there is a colon in the path, we need to keep it. | |
2733 | if test "x$srcdir" = x.; then | |
2734 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
c45f211e TT |
2735 | fi |
2736 | ||
dfac8a13 TT |
2737 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
2738 | ||
2739 | # Transform confdefs.h into DEFS. | |
2740 | # Protect against shell expansion while executing Makefile rules. | |
2741 | # Protect against Makefile macro expansion. | |
2742 | cat > conftest.defs <<\EOF | |
2743 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
2744 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
2745 | s%\[%\\&%g | |
2746 | s%\]%\\&%g | |
2747 | s%\$%$$%g | |
2748 | EOF | |
2749 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
2750 | rm -f conftest.defs | |
2751 | ||
2752 | ||
2753 | # Without the "./", some shells look in PATH for config.status. | |
2754 | : ${CONFIG_STATUS=./config.status} | |
2755 | ||
2756 | echo creating $CONFIG_STATUS | |
2757 | rm -f $CONFIG_STATUS | |
2758 | cat > $CONFIG_STATUS <<EOF | |
2759 | #! /bin/sh | |
2760 | # Generated automatically by configure. | |
2761 | # Run this file to recreate the current configuration. | |
2762 | # This directory was configured as follows, | |
2763 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2764 | # | |
2765 | # $0 $ac_configure_args | |
2766 | # | |
2767 | # Compiler output produced by configure, useful for debugging | |
2768 | # configure, is in ./config.log if it exists. | |
2769 | ||
2770 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2771 | for ac_option | |
2772 | do | |
2773 | case "\$ac_option" in | |
2774 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2775 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2776 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2777 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
2778 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
2779 | exit 0 ;; | |
2780 | -help | --help | --hel | --he | --h) | |
2781 | echo "\$ac_cs_usage"; exit 0 ;; | |
2782 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2783 | esac | |
2784 | done | |
2785 | ||
2786 | ac_given_srcdir=$srcdir | |
2787 | ac_given_INSTALL="$INSTALL" | |
2788 | ||
2789 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
2790 | EOF | |
2791 | cat >> $CONFIG_STATUS <<EOF | |
2792 | ||
2793 | # Protect against being on the right side of a sed subst in config.status. | |
2794 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2795 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2796 | $ac_vpsub | |
2797 | $extrasub | |
2798 | s%@SHELL@%$SHELL%g | |
2799 | s%@CFLAGS@%$CFLAGS%g | |
2800 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2801 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2802 | s%@FFLAGS@%$FFLAGS%g | |
2803 | s%@DEFS@%$DEFS%g | |
2804 | s%@LDFLAGS@%$LDFLAGS%g | |
2805 | s%@LIBS@%$LIBS%g | |
2806 | s%@exec_prefix@%$exec_prefix%g | |
2807 | s%@prefix@%$prefix%g | |
2808 | s%@program_transform_name@%$program_transform_name%g | |
2809 | s%@bindir@%$bindir%g | |
2810 | s%@sbindir@%$sbindir%g | |
2811 | s%@libexecdir@%$libexecdir%g | |
2812 | s%@datadir@%$datadir%g | |
2813 | s%@sysconfdir@%$sysconfdir%g | |
2814 | s%@sharedstatedir@%$sharedstatedir%g | |
2815 | s%@localstatedir@%$localstatedir%g | |
2816 | s%@libdir@%$libdir%g | |
2817 | s%@includedir@%$includedir%g | |
2818 | s%@oldincludedir@%$oldincludedir%g | |
2819 | s%@infodir@%$infodir%g | |
2820 | s%@mandir@%$mandir%g | |
0fd91e0a | 2821 | s%@zlib_basedir@%$zlib_basedir%g |
dfac8a13 TT |
2822 | s%@host@%$host%g |
2823 | s%@host_alias@%$host_alias%g | |
2824 | s%@host_cpu@%$host_cpu%g | |
2825 | s%@host_vendor@%$host_vendor%g | |
2826 | s%@host_os@%$host_os%g | |
2827 | s%@target@%$target%g | |
2828 | s%@target_alias@%$target_alias%g | |
2829 | s%@target_cpu@%$target_cpu%g | |
2830 | s%@target_vendor@%$target_vendor%g | |
2831 | s%@target_os@%$target_os%g | |
2832 | s%@build@%$build%g | |
2833 | s%@build_alias@%$build_alias%g | |
2834 | s%@build_cpu@%$build_cpu%g | |
2835 | s%@build_vendor@%$build_vendor%g | |
2836 | s%@build_os@%$build_os%g | |
2837 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2838 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
2839 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2840 | s%@PACKAGE@%$PACKAGE%g | |
2841 | s%@VERSION@%$VERSION%g | |
2842 | s%@ACLOCAL@%$ACLOCAL%g | |
2843 | s%@AUTOCONF@%$AUTOCONF%g | |
2844 | s%@AUTOMAKE@%$AUTOMAKE%g | |
2845 | s%@AUTOHEADER@%$AUTOHEADER%g | |
2846 | s%@MAKEINFO@%$MAKEINFO%g | |
2847 | s%@SET_MAKE@%$SET_MAKE%g | |
2848 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
2849 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
2850 | s%@MAINT@%$MAINT%g | |
e093c992 | 2851 | s%@CC@%$CC%g |
dfac8a13 | 2852 | s%@EXEEXT@%$EXEEXT%g |
dfac8a13 | 2853 | s%@LN_S@%$LN_S%g |
0fd91e0a AO |
2854 | s%@OBJEXT@%$OBJEXT%g |
2855 | s%@RANLIB@%$RANLIB%g | |
2856 | s%@STRIP@%$STRIP%g | |
dfac8a13 TT |
2857 | s%@LIBTOOL@%$LIBTOOL%g |
2858 | s%@COMPPATH@%$COMPPATH%g | |
2859 | s%@CPP@%$CPP%g | |
79a9a529 | 2860 | s%@target_all@%$target_all%g |
b48ed568 TT |
2861 | s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g |
2862 | s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g | |
e093c992 AG |
2863 | s%@TARGET_LIBRARY_TRUE@%$TARGET_LIBRARY_TRUE%g |
2864 | s%@TARGET_LIBRARY_FALSE@%$TARGET_LIBRARY_FALSE%g | |
dfac8a13 TT |
2865 | |
2866 | CEOF | |
2867 | EOF | |
2868 | ||
2869 | cat >> $CONFIG_STATUS <<\EOF | |
2870 | ||
2871 | # Split the substitutions into bite-sized pieces for seds with | |
2872 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
2873 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2874 | ac_file=1 # Number of current file. | |
2875 | ac_beg=1 # First line for current file. | |
2876 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2877 | ac_more_lines=: | |
2878 | ac_sed_cmds="" | |
2879 | while $ac_more_lines; do | |
2880 | if test $ac_beg -gt 1; then | |
2881 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2882 | else | |
2883 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2884 | fi | |
2885 | if test ! -s conftest.s$ac_file; then | |
2886 | ac_more_lines=false | |
2887 | rm -f conftest.s$ac_file | |
2888 | else | |
2889 | if test -z "$ac_sed_cmds"; then | |
2890 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
c45f211e | 2891 | else |
dfac8a13 TT |
2892 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
2893 | fi | |
2894 | ac_file=`expr $ac_file + 1` | |
2895 | ac_beg=$ac_end | |
2896 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
2897 | fi | |
2898 | done | |
2899 | if test -z "$ac_sed_cmds"; then | |
2900 | ac_sed_cmds=cat | |
2901 | fi | |
2902 | EOF | |
2903 | ||
2904 | cat >> $CONFIG_STATUS <<EOF | |
2905 | ||
2906 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
2907 | EOF | |
2908 | cat >> $CONFIG_STATUS <<\EOF | |
2909 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
2910 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
2911 | case "$ac_file" in | |
2912 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
2913 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2914 | *) ac_file_in="${ac_file}.in" ;; | |
2915 | esac | |
2916 | ||
2917 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
2918 | ||
2919 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2920 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2921 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2922 | # The file is in a subdirectory. | |
2923 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2924 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
2925 | # A "../" for each directory in $ac_dir_suffix. | |
2926 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2927 | else | |
2928 | ac_dir_suffix= ac_dots= | |
2929 | fi | |
2930 | ||
2931 | case "$ac_given_srcdir" in | |
2932 | .) srcdir=. | |
2933 | if test -z "$ac_dots"; then top_srcdir=. | |
2934 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2935 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2936 | *) # Relative path. | |
2937 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2938 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2939 | esac | |
2940 | ||
2941 | case "$ac_given_INSTALL" in | |
2942 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2943 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2944 | esac | |
2945 | ||
2946 | echo creating "$ac_file" | |
2947 | rm -f "$ac_file" | |
2948 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2949 | case "$ac_file" in | |
2950 | *Makefile*) ac_comsub="1i\\ | |
2951 | # $configure_input" ;; | |
2952 | *) ac_comsub= ;; | |
2953 | esac | |
2954 | ||
2955 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
2956 | sed -e "$ac_comsub | |
2957 | s%@configure_input@%$configure_input%g | |
2958 | s%@srcdir@%$srcdir%g | |
2959 | s%@top_srcdir@%$top_srcdir%g | |
2960 | s%@INSTALL@%$INSTALL%g | |
2961 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
2962 | fi; done | |
2963 | rm -f conftest.s* | |
2964 | ||
2965 | EOF | |
2966 | cat >> $CONFIG_STATUS <<EOF | |
2967 | srcdir=${srcdir} | |
2968 | host=${host} | |
2969 | target=${target} | |
2970 | with_multisubdir=${with_multisubdir} | |
2971 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
2972 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
2973 | zlib_basedir=${zlib_basedir} | |
2974 | CC="${CC}" | |
2975 | CXX="${CXX}" | |
2976 | ||
2977 | EOF | |
2978 | cat >> $CONFIG_STATUS <<\EOF | |
2979 | if test -n "$CONFIG_FILES"; then | |
2980 | ac_file=Makefile . ${zlib_basedir}/../config-ml.in | |
2981 | fi | |
2982 | exit 0 | |
2983 | EOF | |
2984 | chmod +x $CONFIG_STATUS | |
2985 | rm -fr confdefs* $ac_clean_files | |
2986 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
c45f211e | 2987 |