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