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 | --with-target-subdir=SUBDIR
|
---|
16 | configuring in a subdirectory"
|
---|
17 | ac_help="$ac_help
|
---|
18 | --with-cross-host=HOST configuring with a cross compiler"
|
---|
19 | ac_help="$ac_help
|
---|
20 | --with-newlib Configuring with newlib"
|
---|
21 | ac_help="$ac_help
|
---|
22 | --enable-multilib build many library versions (default)"
|
---|
23 | ac_help="$ac_help
|
---|
24 | --enable-maintainer-mode enable make rules and dependencies not useful
|
---|
25 | (and sometimes confusing) to the casual installer"
|
---|
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 | ac_help="$ac_help
|
---|
39 | --disable-getenv-properties
|
---|
40 | don't set system properties from GCJ_PROPERTIES"
|
---|
41 | ac_help="$ac_help
|
---|
42 | --enable-hash-synchronization
|
---|
43 | Use global hash table for monitor locks"
|
---|
44 | ac_help="$ac_help
|
---|
45 | --enable-libgcj-debug enable runtime debugging code"
|
---|
46 | ac_help="$ac_help
|
---|
47 | --enable-interpreter enable interpreter"
|
---|
48 | ac_help="$ac_help
|
---|
49 | --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
|
---|
50 | ac_help="$ac_help
|
---|
51 | --disable-java-net disable java.net"
|
---|
52 | ac_help="$ac_help
|
---|
53 | --without-libffi don't use libffi"
|
---|
54 | ac_help="$ac_help
|
---|
55 | --disable-jvmpi disable JVMPI support"
|
---|
56 | ac_help="$ac_help
|
---|
57 | --with-ecos enable runtime eCos target support"
|
---|
58 | ac_help="$ac_help
|
---|
59 | --with-system-zlib use installed libz"
|
---|
60 | ac_help="$ac_help
|
---|
61 | --enable-java-gc=TYPE choose garbage collector [boehm]"
|
---|
62 | ac_help="$ac_help
|
---|
63 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
|
---|
64 | ac_help="$ac_help
|
---|
65 | --with-x use the X Window System"
|
---|
66 | ac_help="$ac_help
|
---|
67 | --enable-java-awt list of AWT peer implementations to be built"
|
---|
68 |
|
---|
69 | # Initialize some variables set by options.
|
---|
70 | # The variables have the same names as the options, with
|
---|
71 | # dashes changed to underlines.
|
---|
72 | build=NONE
|
---|
73 | cache_file=./config.cache
|
---|
74 | exec_prefix=NONE
|
---|
75 | host=NONE
|
---|
76 | no_create=
|
---|
77 | nonopt=NONE
|
---|
78 | no_recursion=
|
---|
79 | prefix=NONE
|
---|
80 | program_prefix=NONE
|
---|
81 | program_suffix=NONE
|
---|
82 | program_transform_name=s,x,x,
|
---|
83 | silent=
|
---|
84 | site=
|
---|
85 | srcdir=
|
---|
86 | target=NONE
|
---|
87 | verbose=
|
---|
88 | x_includes=NONE
|
---|
89 | x_libraries=NONE
|
---|
90 | bindir='${exec_prefix}/bin'
|
---|
91 | sbindir='${exec_prefix}/sbin'
|
---|
92 | libexecdir='${exec_prefix}/libexec'
|
---|
93 | datadir='${prefix}/share'
|
---|
94 | sysconfdir='${prefix}/etc'
|
---|
95 | sharedstatedir='${prefix}/com'
|
---|
96 | localstatedir='${prefix}/var'
|
---|
97 | libdir='${exec_prefix}/lib'
|
---|
98 | includedir='${prefix}/include'
|
---|
99 | oldincludedir='/usr/include'
|
---|
100 | infodir='${prefix}/info'
|
---|
101 | mandir='${prefix}/man'
|
---|
102 |
|
---|
103 | # Initialize some other variables.
|
---|
104 | subdirs=
|
---|
105 | MFLAGS= MAKEFLAGS=
|
---|
106 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
107 | # Maximum number of lines to put in a shell here document.
|
---|
108 | ac_max_here_lines=12
|
---|
109 |
|
---|
110 | ac_prev=
|
---|
111 | for ac_option
|
---|
112 | do
|
---|
113 |
|
---|
114 | # If the previous option needs an argument, assign it.
|
---|
115 | if test -n "$ac_prev"; then
|
---|
116 | eval "$ac_prev=\$ac_option"
|
---|
117 | ac_prev=
|
---|
118 | continue
|
---|
119 | fi
|
---|
120 |
|
---|
121 | case "$ac_option" in
|
---|
122 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
123 | *) ac_optarg= ;;
|
---|
124 | esac
|
---|
125 |
|
---|
126 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
127 |
|
---|
128 | case "$ac_option" in
|
---|
129 |
|
---|
130 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
131 | ac_prev=bindir ;;
|
---|
132 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
133 | bindir="$ac_optarg" ;;
|
---|
134 |
|
---|
135 | -build | --build | --buil | --bui | --bu)
|
---|
136 | ac_prev=build ;;
|
---|
137 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
138 | build="$ac_optarg" ;;
|
---|
139 |
|
---|
140 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
141 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
142 | ac_prev=cache_file ;;
|
---|
143 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
144 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
145 | cache_file="$ac_optarg" ;;
|
---|
146 |
|
---|
147 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
148 | ac_prev=datadir ;;
|
---|
149 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
150 | | --da=*)
|
---|
151 | datadir="$ac_optarg" ;;
|
---|
152 |
|
---|
153 | -disable-* | --disable-*)
|
---|
154 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
155 | # Reject names that are not valid shell variable names.
|
---|
156 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
157 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
158 | fi
|
---|
159 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
160 | eval "enable_${ac_feature}=no" ;;
|
---|
161 |
|
---|
162 | -enable-* | --enable-*)
|
---|
163 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
164 | # Reject names that are not valid shell variable names.
|
---|
165 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
166 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
167 | fi
|
---|
168 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
169 | case "$ac_option" in
|
---|
170 | *=*) ;;
|
---|
171 | *) ac_optarg=yes ;;
|
---|
172 | esac
|
---|
173 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
174 |
|
---|
175 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
176 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
177 | | --exec | --exe | --ex)
|
---|
178 | ac_prev=exec_prefix ;;
|
---|
179 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
180 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
181 | | --exec=* | --exe=* | --ex=*)
|
---|
182 | exec_prefix="$ac_optarg" ;;
|
---|
183 |
|
---|
184 | -gas | --gas | --ga | --g)
|
---|
185 | # Obsolete; use --with-gas.
|
---|
186 | with_gas=yes ;;
|
---|
187 |
|
---|
188 | -help | --help | --hel | --he)
|
---|
189 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
190 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
191 | cat << EOF
|
---|
192 | Usage: configure [options] [host]
|
---|
193 | Options: [defaults in brackets after descriptions]
|
---|
194 | Configuration:
|
---|
195 | --cache-file=FILE cache test results in FILE
|
---|
196 | --help print this message
|
---|
197 | --no-create do not create output files
|
---|
198 | --quiet, --silent do not print \`checking...' messages
|
---|
199 | --version print the version of autoconf that created configure
|
---|
200 | Directory and file names:
|
---|
201 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
202 | [$ac_default_prefix]
|
---|
203 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
204 | [same as prefix]
|
---|
205 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
206 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
207 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
208 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
209 | [PREFIX/share]
|
---|
210 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
211 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
212 | [PREFIX/com]
|
---|
213 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
214 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
215 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
216 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
217 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
218 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
219 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
220 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
221 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
222 | --program-transform-name=PROGRAM
|
---|
223 | run sed PROGRAM on installed program names
|
---|
224 | EOF
|
---|
225 | cat << EOF
|
---|
226 | Host type:
|
---|
227 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
228 | --host=HOST configure for HOST [guessed]
|
---|
229 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
230 | Features and packages:
|
---|
231 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
232 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
233 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
234 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
235 | --x-includes=DIR X include files are in DIR
|
---|
236 | --x-libraries=DIR X library files are in DIR
|
---|
237 | EOF
|
---|
238 | if test -n "$ac_help"; then
|
---|
239 | echo "--enable and --with options recognized:$ac_help"
|
---|
240 | fi
|
---|
241 | exit 0 ;;
|
---|
242 |
|
---|
243 | -host | --host | --hos | --ho)
|
---|
244 | ac_prev=host ;;
|
---|
245 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
246 | host="$ac_optarg" ;;
|
---|
247 |
|
---|
248 | -includedir | --includedir | --includedi | --included | --include \
|
---|
249 | | --includ | --inclu | --incl | --inc)
|
---|
250 | ac_prev=includedir ;;
|
---|
251 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
252 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
253 | includedir="$ac_optarg" ;;
|
---|
254 |
|
---|
255 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
256 | ac_prev=infodir ;;
|
---|
257 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
258 | infodir="$ac_optarg" ;;
|
---|
259 |
|
---|
260 | -libdir | --libdir | --libdi | --libd)
|
---|
261 | ac_prev=libdir ;;
|
---|
262 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
263 | libdir="$ac_optarg" ;;
|
---|
264 |
|
---|
265 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
266 | | --libexe | --libex | --libe)
|
---|
267 | ac_prev=libexecdir ;;
|
---|
268 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
269 | | --libexe=* | --libex=* | --libe=*)
|
---|
270 | libexecdir="$ac_optarg" ;;
|
---|
271 |
|
---|
272 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
273 | | --localstate | --localstat | --localsta | --localst \
|
---|
274 | | --locals | --local | --loca | --loc | --lo)
|
---|
275 | ac_prev=localstatedir ;;
|
---|
276 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
277 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
278 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
279 | localstatedir="$ac_optarg" ;;
|
---|
280 |
|
---|
281 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
282 | ac_prev=mandir ;;
|
---|
283 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
284 | mandir="$ac_optarg" ;;
|
---|
285 |
|
---|
286 | -nfp | --nfp | --nf)
|
---|
287 | # Obsolete; use --without-fp.
|
---|
288 | with_fp=no ;;
|
---|
289 |
|
---|
290 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
291 | | --no-cr | --no-c)
|
---|
292 | no_create=yes ;;
|
---|
293 |
|
---|
294 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
295 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
296 | no_recursion=yes ;;
|
---|
297 |
|
---|
298 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
299 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
300 | | --oldin | --oldi | --old | --ol | --o)
|
---|
301 | ac_prev=oldincludedir ;;
|
---|
302 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
303 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
304 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
305 | oldincludedir="$ac_optarg" ;;
|
---|
306 |
|
---|
307 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
308 | ac_prev=prefix ;;
|
---|
309 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
310 | prefix="$ac_optarg" ;;
|
---|
311 |
|
---|
312 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
313 | | --program-pre | --program-pr | --program-p)
|
---|
314 | ac_prev=program_prefix ;;
|
---|
315 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
316 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
317 | program_prefix="$ac_optarg" ;;
|
---|
318 |
|
---|
319 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
320 | | --program-suf | --program-su | --program-s)
|
---|
321 | ac_prev=program_suffix ;;
|
---|
322 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
323 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
324 | program_suffix="$ac_optarg" ;;
|
---|
325 |
|
---|
326 | -program-transform-name | --program-transform-name \
|
---|
327 | | --program-transform-nam | --program-transform-na \
|
---|
328 | | --program-transform-n | --program-transform- \
|
---|
329 | | --program-transform | --program-transfor \
|
---|
330 | | --program-transfo | --program-transf \
|
---|
331 | | --program-trans | --program-tran \
|
---|
332 | | --progr-tra | --program-tr | --program-t)
|
---|
333 | ac_prev=program_transform_name ;;
|
---|
334 | -program-transform-name=* | --program-transform-name=* \
|
---|
335 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
336 | | --program-transform-n=* | --program-transform-=* \
|
---|
337 | | --program-transform=* | --program-transfor=* \
|
---|
338 | | --program-transfo=* | --program-transf=* \
|
---|
339 | | --program-trans=* | --program-tran=* \
|
---|
340 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
341 | program_transform_name="$ac_optarg" ;;
|
---|
342 |
|
---|
343 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
344 | | -silent | --silent | --silen | --sile | --sil)
|
---|
345 | silent=yes ;;
|
---|
346 |
|
---|
347 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
348 | ac_prev=sbindir ;;
|
---|
349 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
350 | | --sbi=* | --sb=*)
|
---|
351 | sbindir="$ac_optarg" ;;
|
---|
352 |
|
---|
353 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
354 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
355 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
356 | | --sha | --sh)
|
---|
357 | ac_prev=sharedstatedir ;;
|
---|
358 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
359 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
360 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
361 | | --sha=* | --sh=*)
|
---|
362 | sharedstatedir="$ac_optarg" ;;
|
---|
363 |
|
---|
364 | -site | --site | --sit)
|
---|
365 | ac_prev=site ;;
|
---|
366 | -site=* | --site=* | --sit=*)
|
---|
367 | site="$ac_optarg" ;;
|
---|
368 |
|
---|
369 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
370 | ac_prev=srcdir ;;
|
---|
371 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
372 | srcdir="$ac_optarg" ;;
|
---|
373 |
|
---|
374 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
375 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
376 | ac_prev=sysconfdir ;;
|
---|
377 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
378 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
379 | sysconfdir="$ac_optarg" ;;
|
---|
380 |
|
---|
381 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
382 | ac_prev=target ;;
|
---|
383 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
384 | target="$ac_optarg" ;;
|
---|
385 |
|
---|
386 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
387 | verbose=yes ;;
|
---|
388 |
|
---|
389 | -version | --version | --versio | --versi | --vers)
|
---|
390 | echo "configure generated by autoconf version 2.13"
|
---|
391 | exit 0 ;;
|
---|
392 |
|
---|
393 | -with-* | --with-*)
|
---|
394 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
395 | # Reject names that are not valid shell variable names.
|
---|
396 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
397 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
398 | fi
|
---|
399 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
400 | case "$ac_option" in
|
---|
401 | *=*) ;;
|
---|
402 | *) ac_optarg=yes ;;
|
---|
403 | esac
|
---|
404 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
405 |
|
---|
406 | -without-* | --without-*)
|
---|
407 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
408 | # Reject names that are not valid shell variable names.
|
---|
409 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
410 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
411 | fi
|
---|
412 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
413 | eval "with_${ac_package}=no" ;;
|
---|
414 |
|
---|
415 | --x)
|
---|
416 | # Obsolete; use --with-x.
|
---|
417 | with_x=yes ;;
|
---|
418 |
|
---|
419 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
420 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
421 | ac_prev=x_includes ;;
|
---|
422 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
423 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
424 | x_includes="$ac_optarg" ;;
|
---|
425 |
|
---|
426 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
427 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
428 | ac_prev=x_libraries ;;
|
---|
429 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
430 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
431 | x_libraries="$ac_optarg" ;;
|
---|
432 |
|
---|
433 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
434 | ;;
|
---|
435 |
|
---|
436 | *)
|
---|
437 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
438 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
439 | fi
|
---|
440 | if test "x$nonopt" != xNONE; then
|
---|
441 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
442 | fi
|
---|
443 | nonopt="$ac_option"
|
---|
444 | ;;
|
---|
445 |
|
---|
446 | esac
|
---|
447 | done
|
---|
448 |
|
---|
449 | if test -n "$ac_prev"; then
|
---|
450 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
451 | fi
|
---|
452 |
|
---|
453 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
454 |
|
---|
455 | # File descriptor usage:
|
---|
456 | # 0 standard input
|
---|
457 | # 1 file creation
|
---|
458 | # 2 errors and warnings
|
---|
459 | # 3 some systems may open it to /dev/tty
|
---|
460 | # 4 used on the Kubota Titan
|
---|
461 | # 6 checking for... messages and results
|
---|
462 | # 5 compiler messages saved in config.log
|
---|
463 | if test "$silent" = yes; then
|
---|
464 | exec 6>/dev/null
|
---|
465 | else
|
---|
466 | exec 6>&1
|
---|
467 | fi
|
---|
468 | exec 5>./config.log
|
---|
469 |
|
---|
470 | echo "\
|
---|
471 | This file contains any messages produced by compilers while
|
---|
472 | running configure, to aid debugging if configure makes a mistake.
|
---|
473 | " 1>&5
|
---|
474 |
|
---|
475 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
476 | # Also quote any args containing shell metacharacters.
|
---|
477 | ac_configure_args=
|
---|
478 | for ac_arg
|
---|
479 | do
|
---|
480 | case "$ac_arg" in
|
---|
481 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
482 | | --no-cr | --no-c) ;;
|
---|
483 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
484 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
485 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
486 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
487 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
488 | esac
|
---|
489 | done
|
---|
490 |
|
---|
491 | # NLS nuisances.
|
---|
492 | # Only set these to C if already set. These must not be set unconditionally
|
---|
493 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
494 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
495 | # Non-C LC_CTYPE values break the ctype check.
|
---|
496 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
497 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
498 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
499 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
500 |
|
---|
501 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
502 | rm -rf conftest* confdefs.h
|
---|
503 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
504 | echo > confdefs.h
|
---|
505 |
|
---|
506 | # A filename unique to this package, relative to the directory that
|
---|
507 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
508 | ac_unique_file=java/lang/System.java
|
---|
509 |
|
---|
510 | # Find the source files, if location was not specified.
|
---|
511 | if test -z "$srcdir"; then
|
---|
512 | ac_srcdir_defaulted=yes
|
---|
513 | # Try the directory containing this script, then its parent.
|
---|
514 | ac_prog=$0
|
---|
515 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
516 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
517 | srcdir=$ac_confdir
|
---|
518 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
519 | srcdir=..
|
---|
520 | fi
|
---|
521 | else
|
---|
522 | ac_srcdir_defaulted=no
|
---|
523 | fi
|
---|
524 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
525 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
526 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
527 | else
|
---|
528 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
529 | fi
|
---|
530 | fi
|
---|
531 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
532 |
|
---|
533 | # Prefer explicitly selected file to automatically selected ones.
|
---|
534 | if test -z "$CONFIG_SITE"; then
|
---|
535 | if test "x$prefix" != xNONE; then
|
---|
536 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
537 | else
|
---|
538 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
539 | fi
|
---|
540 | fi
|
---|
541 | for ac_site_file in $CONFIG_SITE; do
|
---|
542 | if test -r "$ac_site_file"; then
|
---|
543 | echo "loading site script $ac_site_file"
|
---|
544 | . "$ac_site_file"
|
---|
545 | fi
|
---|
546 | done
|
---|
547 |
|
---|
548 | if test -r "$cache_file"; then
|
---|
549 | echo "loading cache $cache_file"
|
---|
550 | . $cache_file
|
---|
551 | else
|
---|
552 | echo "creating cache $cache_file"
|
---|
553 | > $cache_file
|
---|
554 | fi
|
---|
555 |
|
---|
556 | ac_ext=c
|
---|
557 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
558 | ac_cpp='$CPP $CPPFLAGS'
|
---|
559 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
560 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
561 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
562 |
|
---|
563 | ac_exeext=
|
---|
564 | ac_objext=o
|
---|
565 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
566 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
567 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
568 | ac_n= ac_c='
|
---|
569 | ' ac_t=' '
|
---|
570 | else
|
---|
571 | ac_n=-n ac_c= ac_t=
|
---|
572 | fi
|
---|
573 | else
|
---|
574 | ac_n= ac_c='\c' ac_t=
|
---|
575 | fi
|
---|
576 |
|
---|
577 |
|
---|
578 |
|
---|
579 | # This works around the fact that libtool configuration may change LD
|
---|
580 | # for this particular configuration, but some shells, instead of
|
---|
581 | # keeping the changes in LD private, export them just because LD is
|
---|
582 | # exported.
|
---|
583 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
---|
584 |
|
---|
585 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
586 | echo "configure:587: checking whether ln -s works" >&5
|
---|
587 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
588 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
589 | else
|
---|
590 | rm -f conftestdata
|
---|
591 | if ln -s X conftestdata 2>/dev/null
|
---|
592 | then
|
---|
593 | rm -f conftestdata
|
---|
594 | ac_cv_prog_LN_S="ln -s"
|
---|
595 | else
|
---|
596 | ac_cv_prog_LN_S=ln
|
---|
597 | fi
|
---|
598 | fi
|
---|
599 | LN_S="$ac_cv_prog_LN_S"
|
---|
600 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
601 | echo "$ac_t""yes" 1>&6
|
---|
602 | else
|
---|
603 | echo "$ac_t""no" 1>&6
|
---|
604 | fi
|
---|
605 |
|
---|
606 |
|
---|
607 | # Check whether --with-target-subdir or --without-target-subdir was given.
|
---|
608 | if test "${with_target_subdir+set}" = set; then
|
---|
609 | withval="$with_target_subdir"
|
---|
610 | :
|
---|
611 | fi
|
---|
612 |
|
---|
613 | # Check whether --with-cross-host or --without-cross-host was given.
|
---|
614 | if test "${with_cross_host+set}" = set; then
|
---|
615 | withval="$with_cross_host"
|
---|
616 | :
|
---|
617 | fi
|
---|
618 |
|
---|
619 |
|
---|
620 | # Check whether --with-newlib or --without-newlib was given.
|
---|
621 | if test "${with_newlib+set}" = set; then
|
---|
622 | withval="$with_newlib"
|
---|
623 | :
|
---|
624 | fi
|
---|
625 |
|
---|
626 |
|
---|
627 | # Find a good install program. We prefer a C program (faster),
|
---|
628 | # so one script is as good as another. But avoid the broken or
|
---|
629 | # incompatible versions:
|
---|
630 | # SysV /etc/install, /usr/sbin/install
|
---|
631 | # SunOS /usr/etc/install
|
---|
632 | # IRIX /sbin/install
|
---|
633 | # AIX /bin/install
|
---|
634 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
635 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
636 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
637 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
638 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
639 | echo "configure:640: checking for a BSD compatible install" >&5
|
---|
640 | if test -z "$INSTALL"; then
|
---|
641 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
642 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
643 | else
|
---|
644 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
645 | for ac_dir in $PATH; do
|
---|
646 | # Account for people who put trailing slashes in PATH elements.
|
---|
647 | case "$ac_dir/" in
|
---|
648 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
649 | *)
|
---|
650 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
651 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
652 | # by default.
|
---|
653 | for ac_prog in ginstall scoinst install; do
|
---|
654 | if test -f $ac_dir/$ac_prog; then
|
---|
655 | if test $ac_prog = install &&
|
---|
656 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
657 | # AIX install. It has an incompatible calling convention.
|
---|
658 | :
|
---|
659 | else
|
---|
660 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
661 | break 2
|
---|
662 | fi
|
---|
663 | fi
|
---|
664 | done
|
---|
665 | ;;
|
---|
666 | esac
|
---|
667 | done
|
---|
668 | IFS="$ac_save_IFS"
|
---|
669 |
|
---|
670 | fi
|
---|
671 | if test "${ac_cv_path_install+set}" = set; then
|
---|
672 | INSTALL="$ac_cv_path_install"
|
---|
673 | else
|
---|
674 | # As a last resort, use the slow shell script. We don't cache a
|
---|
675 | # path for INSTALL within a source directory, because that will
|
---|
676 | # break other packages using the cache if that directory is
|
---|
677 | # removed, or if the path is relative.
|
---|
678 | INSTALL="$ac_install_sh"
|
---|
679 | fi
|
---|
680 | fi
|
---|
681 | echo "$ac_t""$INSTALL" 1>&6
|
---|
682 |
|
---|
683 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
684 | # It thinks the first close brace ends the variable substitution.
|
---|
685 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
686 |
|
---|
687 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
688 |
|
---|
689 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
690 |
|
---|
691 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
692 | echo "configure:693: checking whether build environment is sane" >&5
|
---|
693 | # Just in case
|
---|
694 | sleep 1
|
---|
695 | echo timestamp > conftestfile
|
---|
696 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
697 | # arguments. Must try -L first in case configure is actually a
|
---|
698 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
699 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
700 | # directory).
|
---|
701 | if (
|
---|
702 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
703 | if test "$*" = "X"; then
|
---|
704 | # -L didn't work.
|
---|
705 | set X `ls -t $srcdir/configure conftestfile`
|
---|
706 | fi
|
---|
707 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
708 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
709 |
|
---|
710 | # If neither matched, then we have a broken ls. This can happen
|
---|
711 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
712 | # broken ls alias from the environment. This has actually
|
---|
713 | # happened. Such a system could not be considered "sane".
|
---|
714 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
715 | alias in your environment" 1>&2; exit 1; }
|
---|
716 | fi
|
---|
717 |
|
---|
718 | test "$2" = conftestfile
|
---|
719 | )
|
---|
720 | then
|
---|
721 | # Ok.
|
---|
722 | :
|
---|
723 | else
|
---|
724 | { echo "configure: error: newly created file is older than distributed files!
|
---|
725 | Check your system clock" 1>&2; exit 1; }
|
---|
726 | fi
|
---|
727 | rm -f conftest*
|
---|
728 | echo "$ac_t""yes" 1>&6
|
---|
729 | if test "$program_transform_name" = s,x,x,; then
|
---|
730 | program_transform_name=
|
---|
731 | else
|
---|
732 | # Double any \ or $. echo might interpret backslashes.
|
---|
733 | cat <<\EOF_SED > conftestsed
|
---|
734 | s,\\,\\\\,g; s,\$,$$,g
|
---|
735 | EOF_SED
|
---|
736 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
737 | rm -f conftestsed
|
---|
738 | fi
|
---|
739 | test "$program_prefix" != NONE &&
|
---|
740 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
741 | # Use a double $ so make ignores it.
|
---|
742 | test "$program_suffix" != NONE &&
|
---|
743 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
744 |
|
---|
745 | # sed with no file args requires a program.
|
---|
746 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
747 |
|
---|
748 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
749 | echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
750 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
751 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
752 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
753 | else
|
---|
754 | cat > conftestmake <<\EOF
|
---|
755 | all:
|
---|
756 | @echo 'ac_maketemp="${MAKE}"'
|
---|
757 | EOF
|
---|
758 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
759 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
760 | if test -n "$ac_maketemp"; then
|
---|
761 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
762 | else
|
---|
763 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
764 | fi
|
---|
765 | rm -f conftestmake
|
---|
766 | fi
|
---|
767 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
768 | echo "$ac_t""yes" 1>&6
|
---|
769 | SET_MAKE=
|
---|
770 | else
|
---|
771 | echo "$ac_t""no" 1>&6
|
---|
772 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
773 | fi
|
---|
774 |
|
---|
775 | if test $host != $build; then
|
---|
776 | ac_tool_prefix=${host_alias}-
|
---|
777 | else
|
---|
778 | ac_tool_prefix=
|
---|
779 | fi
|
---|
780 |
|
---|
781 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
782 | echo "configure:783: checking for Cygwin environment" >&5
|
---|
783 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
784 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
785 | else
|
---|
786 | cat > conftest.$ac_ext <<EOF
|
---|
787 | #line 788 "configure"
|
---|
788 | #include "confdefs.h"
|
---|
789 |
|
---|
790 | int main() {
|
---|
791 |
|
---|
792 | #ifndef __CYGWIN__
|
---|
793 | #define __CYGWIN__ __CYGWIN32__
|
---|
794 | #endif
|
---|
795 | return __CYGWIN__;
|
---|
796 | ; return 0; }
|
---|
797 | EOF
|
---|
798 | if { (eval echo configure:799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
799 | rm -rf conftest*
|
---|
800 | ac_cv_cygwin=yes
|
---|
801 | else
|
---|
802 | echo "configure: failed program was:" >&5
|
---|
803 | cat conftest.$ac_ext >&5
|
---|
804 | rm -rf conftest*
|
---|
805 | ac_cv_cygwin=no
|
---|
806 | fi
|
---|
807 | rm -f conftest*
|
---|
808 | rm -f conftest*
|
---|
809 | fi
|
---|
810 |
|
---|
811 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
812 | CYGWIN=
|
---|
813 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
814 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
815 | echo "configure:816: checking for mingw32 environment" >&5
|
---|
816 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
817 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
818 | else
|
---|
819 | cat > conftest.$ac_ext <<EOF
|
---|
820 | #line 821 "configure"
|
---|
821 | #include "confdefs.h"
|
---|
822 |
|
---|
823 | int main() {
|
---|
824 | return __MINGW32__;
|
---|
825 | ; return 0; }
|
---|
826 | EOF
|
---|
827 | if { (eval echo configure:828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
828 | rm -rf conftest*
|
---|
829 | ac_cv_mingw32=yes
|
---|
830 | else
|
---|
831 | echo "configure: failed program was:" >&5
|
---|
832 | cat conftest.$ac_ext >&5
|
---|
833 | rm -rf conftest*
|
---|
834 | ac_cv_mingw32=no
|
---|
835 | fi
|
---|
836 | rm -f conftest*
|
---|
837 | rm -f conftest*
|
---|
838 | fi
|
---|
839 |
|
---|
840 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
841 | MINGW32=
|
---|
842 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
843 |
|
---|
844 | # Check whether --enable-multilib or --disable-multilib was given.
|
---|
845 | if test "${enable_multilib+set}" = set; then
|
---|
846 | enableval="$enable_multilib"
|
---|
847 | case "${enableval}" in
|
---|
848 | yes) multilib=yes ;;
|
---|
849 | no) multilib=no ;;
|
---|
850 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
|
---|
851 | esac
|
---|
852 | else
|
---|
853 | multilib=yes
|
---|
854 | fi
|
---|
855 |
|
---|
856 |
|
---|
857 | # When building with srcdir == objdir, links to the source files will
|
---|
858 | # be created in directories within the target_subdir. We have to
|
---|
859 | # adjust toplevel_srcdir accordingly, so that configure finds
|
---|
860 | # install-sh and other auxiliary files that live in the top-level
|
---|
861 | # source directory.
|
---|
862 | if test "${srcdir}" = "."; then
|
---|
863 | if test -z "${with_target_subdir}"; then
|
---|
864 | toprel=".."
|
---|
865 | else
|
---|
866 | if test "${with_target_subdir}" != "."; then
|
---|
867 | toprel="${with_multisrctop}../.."
|
---|
868 | else
|
---|
869 | toprel="${with_multisrctop}.."
|
---|
870 | fi
|
---|
871 | fi
|
---|
872 | else
|
---|
873 | toprel=".."
|
---|
874 | fi
|
---|
875 |
|
---|
876 | libgcj_basedir=$srcdir/$toprel/./libjava
|
---|
877 |
|
---|
878 |
|
---|
879 | ac_aux_dir=
|
---|
880 | for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
|
---|
881 | if test -f $ac_dir/install-sh; then
|
---|
882 | ac_aux_dir=$ac_dir
|
---|
883 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
884 | break
|
---|
885 | elif test -f $ac_dir/install.sh; then
|
---|
886 | ac_aux_dir=$ac_dir
|
---|
887 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
888 | break
|
---|
889 | fi
|
---|
890 | done
|
---|
891 | if test -z "$ac_aux_dir"; then
|
---|
892 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
|
---|
893 | fi
|
---|
894 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
895 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
896 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
897 |
|
---|
898 | if :; then :; else
|
---|
899 | # This overrides the previous occurrence for automake, but not for
|
---|
900 | # autoconf, which is exactly what we want.
|
---|
901 | ac_aux_dir=
|
---|
902 | for ac_dir in .. $srcdir/..; do
|
---|
903 | if test -f $ac_dir/install-sh; then
|
---|
904 | ac_aux_dir=$ac_dir
|
---|
905 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
906 | break
|
---|
907 | elif test -f $ac_dir/install.sh; then
|
---|
908 | ac_aux_dir=$ac_dir
|
---|
909 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
910 | break
|
---|
911 | fi
|
---|
912 | done
|
---|
913 | if test -z "$ac_aux_dir"; then
|
---|
914 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
|
---|
915 | fi
|
---|
916 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
917 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
918 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
919 |
|
---|
920 | fi
|
---|
921 |
|
---|
922 | # This works around an automake problem.
|
---|
923 | mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
|
---|
924 |
|
---|
925 |
|
---|
926 |
|
---|
927 | # Do some error checking and defaulting for the host and target type.
|
---|
928 | # The inputs are:
|
---|
929 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
---|
930 | #
|
---|
931 | # The rules are:
|
---|
932 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
---|
933 | # same time.
|
---|
934 | # 2. Host defaults to nonopt.
|
---|
935 | # 3. If nonopt is not specified, then host defaults to the current host,
|
---|
936 | # as determined by config.guess.
|
---|
937 | # 4. Target and build default to nonopt.
|
---|
938 | # 5. If nonopt is not specified, then target and build default to host.
|
---|
939 |
|
---|
940 | # The aliases save the names the user supplied, while $host etc.
|
---|
941 | # will get canonicalized.
|
---|
942 | case $host---$target---$nonopt in
|
---|
943 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
---|
944 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
---|
945 | esac
|
---|
946 |
|
---|
947 |
|
---|
948 | # Make sure we can run config.sub.
|
---|
949 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
950 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
951 | fi
|
---|
952 |
|
---|
953 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
954 | echo "configure:955: checking host system type" >&5
|
---|
955 |
|
---|
956 | host_alias=$host
|
---|
957 | case "$host_alias" in
|
---|
958 | NONE)
|
---|
959 | case $nonopt in
|
---|
960 | NONE)
|
---|
961 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
962 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
963 | fi ;;
|
---|
964 | *) host_alias=$nonopt ;;
|
---|
965 | esac ;;
|
---|
966 | esac
|
---|
967 |
|
---|
968 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
969 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
970 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
971 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
972 | echo "$ac_t""$host" 1>&6
|
---|
973 |
|
---|
974 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
---|
975 | echo "configure:976: checking target system type" >&5
|
---|
976 |
|
---|
977 | target_alias=$target
|
---|
978 | case "$target_alias" in
|
---|
979 | NONE)
|
---|
980 | case $nonopt in
|
---|
981 | NONE) target_alias=$host_alias ;;
|
---|
982 | *) target_alias=$nonopt ;;
|
---|
983 | esac ;;
|
---|
984 | esac
|
---|
985 |
|
---|
986 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
---|
987 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
988 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
989 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
990 | echo "$ac_t""$target" 1>&6
|
---|
991 |
|
---|
992 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
993 | echo "configure:994: checking build system type" >&5
|
---|
994 |
|
---|
995 | build_alias=$build
|
---|
996 | case "$build_alias" in
|
---|
997 | NONE)
|
---|
998 | case $nonopt in
|
---|
999 | NONE) build_alias=$host_alias ;;
|
---|
1000 | *) build_alias=$nonopt ;;
|
---|
1001 | esac ;;
|
---|
1002 | esac
|
---|
1003 |
|
---|
1004 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
1005 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1006 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1007 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1008 | echo "$ac_t""$build" 1>&6
|
---|
1009 |
|
---|
1010 | test "$host_alias" != "$target_alias" &&
|
---|
1011 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
1012 | NONENONEs,x,x, &&
|
---|
1013 | program_prefix=${target_alias}-
|
---|
1014 |
|
---|
1015 |
|
---|
1016 |
|
---|
1017 |
|
---|
1018 |
|
---|
1019 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1020 | set dummy gcc; ac_word=$2
|
---|
1021 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1022 | echo "configure:1023: checking for $ac_word" >&5
|
---|
1023 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1024 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1025 | else
|
---|
1026 | if test -n "$CC"; then
|
---|
1027 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1028 | else
|
---|
1029 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1030 | ac_dummy="$PATH"
|
---|
1031 | for ac_dir in $ac_dummy; do
|
---|
1032 | test -z "$ac_dir" && ac_dir=.
|
---|
1033 | if test -f $ac_dir/$ac_word; then
|
---|
1034 | ac_cv_prog_CC="gcc"
|
---|
1035 | break
|
---|
1036 | fi
|
---|
1037 | done
|
---|
1038 | IFS="$ac_save_ifs"
|
---|
1039 | fi
|
---|
1040 | fi
|
---|
1041 | CC="$ac_cv_prog_CC"
|
---|
1042 | if test -n "$CC"; then
|
---|
1043 | echo "$ac_t""$CC" 1>&6
|
---|
1044 | else
|
---|
1045 | echo "$ac_t""no" 1>&6
|
---|
1046 | fi
|
---|
1047 |
|
---|
1048 | if test -z "$CC"; then
|
---|
1049 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1050 | set dummy cc; ac_word=$2
|
---|
1051 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1052 | echo "configure:1053: checking for $ac_word" >&5
|
---|
1053 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1054 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1055 | else
|
---|
1056 | if test -n "$CC"; then
|
---|
1057 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1058 | else
|
---|
1059 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1060 | ac_prog_rejected=no
|
---|
1061 | ac_dummy="$PATH"
|
---|
1062 | for ac_dir in $ac_dummy; do
|
---|
1063 | test -z "$ac_dir" && ac_dir=.
|
---|
1064 | if test -f $ac_dir/$ac_word; then
|
---|
1065 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
1066 | ac_prog_rejected=yes
|
---|
1067 | continue
|
---|
1068 | fi
|
---|
1069 | ac_cv_prog_CC="cc"
|
---|
1070 | break
|
---|
1071 | fi
|
---|
1072 | done
|
---|
1073 | IFS="$ac_save_ifs"
|
---|
1074 | if test $ac_prog_rejected = yes; then
|
---|
1075 | # We found a bogon in the path, so make sure we never use it.
|
---|
1076 | set dummy $ac_cv_prog_CC
|
---|
1077 | shift
|
---|
1078 | if test $# -gt 0; then
|
---|
1079 | # We chose a different compiler from the bogus one.
|
---|
1080 | # However, it has the same basename, so the bogon will be chosen
|
---|
1081 | # first if we set CC to just the basename; use the full file name.
|
---|
1082 | shift
|
---|
1083 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
1084 | shift
|
---|
1085 | ac_cv_prog_CC="$@"
|
---|
1086 | fi
|
---|
1087 | fi
|
---|
1088 | fi
|
---|
1089 | fi
|
---|
1090 | CC="$ac_cv_prog_CC"
|
---|
1091 | if test -n "$CC"; then
|
---|
1092 | echo "$ac_t""$CC" 1>&6
|
---|
1093 | else
|
---|
1094 | echo "$ac_t""no" 1>&6
|
---|
1095 | fi
|
---|
1096 |
|
---|
1097 | if test -z "$CC"; then
|
---|
1098 | case "`uname -s`" in
|
---|
1099 | *win32* | *WIN32*)
|
---|
1100 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
1101 | set dummy cl; ac_word=$2
|
---|
1102 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1103 | echo "configure:1104: checking for $ac_word" >&5
|
---|
1104 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1105 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1106 | else
|
---|
1107 | if test -n "$CC"; then
|
---|
1108 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1109 | else
|
---|
1110 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1111 | ac_dummy="$PATH"
|
---|
1112 | for ac_dir in $ac_dummy; do
|
---|
1113 | test -z "$ac_dir" && ac_dir=.
|
---|
1114 | if test -f $ac_dir/$ac_word; then
|
---|
1115 | ac_cv_prog_CC="cl"
|
---|
1116 | break
|
---|
1117 | fi
|
---|
1118 | done
|
---|
1119 | IFS="$ac_save_ifs"
|
---|
1120 | fi
|
---|
1121 | fi
|
---|
1122 | CC="$ac_cv_prog_CC"
|
---|
1123 | if test -n "$CC"; then
|
---|
1124 | echo "$ac_t""$CC" 1>&6
|
---|
1125 | else
|
---|
1126 | echo "$ac_t""no" 1>&6
|
---|
1127 | fi
|
---|
1128 | ;;
|
---|
1129 | esac
|
---|
1130 | fi
|
---|
1131 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
1132 | fi
|
---|
1133 |
|
---|
1134 |
|
---|
1135 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
1136 | echo "configure:1137: checking whether we are using GNU C" >&5
|
---|
1137 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
1138 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1139 | else
|
---|
1140 | cat > conftest.c <<EOF
|
---|
1141 | #ifdef __GNUC__
|
---|
1142 | yes;
|
---|
1143 | #endif
|
---|
1144 | EOF
|
---|
1145 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
1146 | ac_cv_prog_gcc=yes
|
---|
1147 | else
|
---|
1148 | ac_cv_prog_gcc=no
|
---|
1149 | fi
|
---|
1150 | fi
|
---|
1151 |
|
---|
1152 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
1153 |
|
---|
1154 | if test $ac_cv_prog_gcc = yes; then
|
---|
1155 | GCC=yes
|
---|
1156 | else
|
---|
1157 | GCC=
|
---|
1158 | fi
|
---|
1159 |
|
---|
1160 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
1161 | ac_save_CFLAGS="$CFLAGS"
|
---|
1162 | CFLAGS=
|
---|
1163 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
1164 | echo "configure:1165: checking whether ${CC-cc} accepts -g" >&5
|
---|
1165 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
1166 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1167 | else
|
---|
1168 | echo 'void f(){}' > conftest.c
|
---|
1169 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
1170 | ac_cv_prog_cc_g=yes
|
---|
1171 | else
|
---|
1172 | ac_cv_prog_cc_g=no
|
---|
1173 | fi
|
---|
1174 | rm -f conftest*
|
---|
1175 |
|
---|
1176 | fi
|
---|
1177 |
|
---|
1178 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
1179 | if test "$ac_test_CFLAGS" = set; then
|
---|
1180 | CFLAGS="$ac_save_CFLAGS"
|
---|
1181 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1182 | if test "$GCC" = yes; then
|
---|
1183 | CFLAGS="-g -O2"
|
---|
1184 | else
|
---|
1185 | CFLAGS="-g"
|
---|
1186 | fi
|
---|
1187 | else
|
---|
1188 | if test "$GCC" = yes; then
|
---|
1189 | CFLAGS="-O2"
|
---|
1190 | else
|
---|
1191 | CFLAGS=
|
---|
1192 | fi
|
---|
1193 | fi
|
---|
1194 |
|
---|
1195 |
|
---|
1196 | # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
|
---|
1197 | # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
|
---|
1198 | # different definition of CXX than other directories, since we don't
|
---|
1199 | # depend on libstdc++-v3 having already been built.
|
---|
1200 |
|
---|
1201 |
|
---|
1202 |
|
---|
1203 | # Use glibjava_CXX so that we do not cause CXX to be cached with the
|
---|
1204 | # flags that come in CXX while configuring libjava. They're different
|
---|
1205 | # from those used for all other target libraries. If CXX is set in
|
---|
1206 | # the environment, respect that here.
|
---|
1207 | glibjava_CXX=$CXX
|
---|
1208 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++
|
---|
1209 | do
|
---|
1210 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1211 | set dummy $ac_prog; ac_word=$2
|
---|
1212 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1213 | echo "configure:1214: checking for $ac_word" >&5
|
---|
1214 | if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
|
---|
1215 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1216 | else
|
---|
1217 | if test -n "$glibjava_CXX"; then
|
---|
1218 | ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
|
---|
1219 | else
|
---|
1220 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1221 | ac_dummy="$PATH"
|
---|
1222 | for ac_dir in $ac_dummy; do
|
---|
1223 | test -z "$ac_dir" && ac_dir=.
|
---|
1224 | if test -f $ac_dir/$ac_word; then
|
---|
1225 | ac_cv_prog_glibjava_CXX="$ac_prog"
|
---|
1226 | break
|
---|
1227 | fi
|
---|
1228 | done
|
---|
1229 | IFS="$ac_save_ifs"
|
---|
1230 | fi
|
---|
1231 | fi
|
---|
1232 | glibjava_CXX="$ac_cv_prog_glibjava_CXX"
|
---|
1233 | if test -n "$glibjava_CXX"; then
|
---|
1234 | echo "$ac_t""$glibjava_CXX" 1>&6
|
---|
1235 | else
|
---|
1236 | echo "$ac_t""no" 1>&6
|
---|
1237 | fi
|
---|
1238 |
|
---|
1239 | test -n "$glibjava_CXX" && break
|
---|
1240 | done
|
---|
1241 | test -n "$glibjava_CXX" || glibjava_CXX="gcc"
|
---|
1242 |
|
---|
1243 |
|
---|
1244 | CXX=$glibjava_CXX
|
---|
1245 | test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
|
---|
1246 |
|
---|
1247 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
1248 | echo "configure:1249: checking whether we are using GNU C++" >&5
|
---|
1249 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
1250 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1251 | else
|
---|
1252 | cat > conftest.C <<EOF
|
---|
1253 | #ifdef __GNUC__
|
---|
1254 | yes;
|
---|
1255 | #endif
|
---|
1256 | EOF
|
---|
1257 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
1258 | ac_cv_prog_gxx=yes
|
---|
1259 | else
|
---|
1260 | ac_cv_prog_gxx=no
|
---|
1261 | fi
|
---|
1262 | fi
|
---|
1263 |
|
---|
1264 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
1265 |
|
---|
1266 | if test $ac_cv_prog_gxx = yes; then
|
---|
1267 | GXX=yes
|
---|
1268 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
1269 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
1270 | CXXFLAGS=
|
---|
1271 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
1272 | echo "configure:1273: checking whether ${CXX-g++} accepts -g" >&5
|
---|
1273 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
1274 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1275 | else
|
---|
1276 | echo 'void f(){}' > conftest.cc
|
---|
1277 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
1278 | ac_cv_prog_cxx_g=yes
|
---|
1279 | else
|
---|
1280 | ac_cv_prog_cxx_g=no
|
---|
1281 | fi
|
---|
1282 | rm -f conftest*
|
---|
1283 |
|
---|
1284 | fi
|
---|
1285 |
|
---|
1286 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
1287 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
1288 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
1289 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
1290 | CXXFLAGS="-g -O2"
|
---|
1291 | else
|
---|
1292 | CXXFLAGS="-O2"
|
---|
1293 | fi
|
---|
1294 | else
|
---|
1295 | GXX=
|
---|
1296 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
---|
1297 | fi
|
---|
1298 |
|
---|
1299 |
|
---|
1300 | version=0.0.7
|
---|
1301 |
|
---|
1302 | PACKAGE=libjava
|
---|
1303 |
|
---|
1304 | VERSION=$version
|
---|
1305 |
|
---|
1306 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
1307 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
1308 | fi
|
---|
1309 | cat >> confdefs.h <<EOF
|
---|
1310 | #define PACKAGE "$PACKAGE"
|
---|
1311 | EOF
|
---|
1312 |
|
---|
1313 | cat >> confdefs.h <<EOF
|
---|
1314 | #define VERSION "$VERSION"
|
---|
1315 | EOF
|
---|
1316 |
|
---|
1317 |
|
---|
1318 |
|
---|
1319 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
1320 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
---|
1321 | echo "configure:1322: checking for working aclocal" >&5
|
---|
1322 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1323 | # an executable is not found, even if stderr is redirected.
|
---|
1324 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1325 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
---|
1326 | ACLOCAL=aclocal
|
---|
1327 | echo "$ac_t""found" 1>&6
|
---|
1328 | else
|
---|
1329 | ACLOCAL="$missing_dir/missing aclocal"
|
---|
1330 | echo "$ac_t""missing" 1>&6
|
---|
1331 | fi
|
---|
1332 |
|
---|
1333 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
1334 | echo "configure:1335: checking for working autoconf" >&5
|
---|
1335 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1336 | # an executable is not found, even if stderr is redirected.
|
---|
1337 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1338 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
1339 | AUTOCONF=autoconf
|
---|
1340 | echo "$ac_t""found" 1>&6
|
---|
1341 | else
|
---|
1342 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
1343 | echo "$ac_t""missing" 1>&6
|
---|
1344 | fi
|
---|
1345 |
|
---|
1346 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
---|
1347 | echo "configure:1348: checking for working automake" >&5
|
---|
1348 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1349 | # an executable is not found, even if stderr is redirected.
|
---|
1350 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1351 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
---|
1352 | AUTOMAKE=automake
|
---|
1353 | echo "$ac_t""found" 1>&6
|
---|
1354 | else
|
---|
1355 | AUTOMAKE="$missing_dir/missing automake"
|
---|
1356 | echo "$ac_t""missing" 1>&6
|
---|
1357 | fi
|
---|
1358 |
|
---|
1359 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
1360 | echo "configure:1361: checking for working autoheader" >&5
|
---|
1361 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1362 | # an executable is not found, even if stderr is redirected.
|
---|
1363 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1364 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
1365 | AUTOHEADER=autoheader
|
---|
1366 | echo "$ac_t""found" 1>&6
|
---|
1367 | else
|
---|
1368 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
1369 | echo "$ac_t""missing" 1>&6
|
---|
1370 | fi
|
---|
1371 |
|
---|
1372 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
1373 | echo "configure:1374: checking for working makeinfo" >&5
|
---|
1374 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1375 | # an executable is not found, even if stderr is redirected.
|
---|
1376 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1377 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
1378 | MAKEINFO=makeinfo
|
---|
1379 | echo "$ac_t""found" 1>&6
|
---|
1380 | else
|
---|
1381 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
1382 | echo "$ac_t""missing" 1>&6
|
---|
1383 | fi
|
---|
1384 |
|
---|
1385 |
|
---|
1386 |
|
---|
1387 | # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
|
---|
1388 | # run it explicitly here, it will be run implicitly before
|
---|
1389 | # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
|
---|
1390 | # be run before AC_CANONICAL_HOST.
|
---|
1391 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
1392 | echo "configure:1393: checking build system type" >&5
|
---|
1393 |
|
---|
1394 | build_alias=$build
|
---|
1395 | case "$build_alias" in
|
---|
1396 | NONE)
|
---|
1397 | case $nonopt in
|
---|
1398 | NONE) build_alias=$host_alias ;;
|
---|
1399 | *) build_alias=$nonopt ;;
|
---|
1400 | esac ;;
|
---|
1401 | esac
|
---|
1402 |
|
---|
1403 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
1404 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1405 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1406 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1407 | echo "$ac_t""$build" 1>&6
|
---|
1408 |
|
---|
1409 |
|
---|
1410 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
---|
1411 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
---|
1412 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1413 | echo "configure:1414: checking for $ac_word" >&5
|
---|
1414 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
---|
1415 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1416 | else
|
---|
1417 | if test -n "$AS"; then
|
---|
1418 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
---|
1419 | else
|
---|
1420 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1421 | ac_dummy="$PATH"
|
---|
1422 | for ac_dir in $ac_dummy; do
|
---|
1423 | test -z "$ac_dir" && ac_dir=.
|
---|
1424 | if test -f $ac_dir/$ac_word; then
|
---|
1425 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
---|
1426 | break
|
---|
1427 | fi
|
---|
1428 | done
|
---|
1429 | IFS="$ac_save_ifs"
|
---|
1430 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
|
---|
1431 | fi
|
---|
1432 | fi
|
---|
1433 | AS="$ac_cv_prog_AS"
|
---|
1434 | if test -n "$AS"; then
|
---|
1435 | echo "$ac_t""$AS" 1>&6
|
---|
1436 | else
|
---|
1437 | echo "$ac_t""no" 1>&6
|
---|
1438 | fi
|
---|
1439 |
|
---|
1440 |
|
---|
1441 |
|
---|
1442 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
---|
1443 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
---|
1444 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1445 | echo "configure:1446: checking for $ac_word" >&5
|
---|
1446 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
---|
1447 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1448 | else
|
---|
1449 | if test -n "$AR"; then
|
---|
1450 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
1451 | else
|
---|
1452 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1453 | ac_dummy="$PATH"
|
---|
1454 | for ac_dir in $ac_dummy; do
|
---|
1455 | test -z "$ac_dir" && ac_dir=.
|
---|
1456 | if test -f $ac_dir/$ac_word; then
|
---|
1457 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
---|
1458 | break
|
---|
1459 | fi
|
---|
1460 | done
|
---|
1461 | IFS="$ac_save_ifs"
|
---|
1462 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
---|
1463 | fi
|
---|
1464 | fi
|
---|
1465 | AR="$ac_cv_prog_AR"
|
---|
1466 | if test -n "$AR"; then
|
---|
1467 | echo "$ac_t""$AR" 1>&6
|
---|
1468 | else
|
---|
1469 | echo "$ac_t""no" 1>&6
|
---|
1470 | fi
|
---|
1471 |
|
---|
1472 |
|
---|
1473 |
|
---|
1474 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1475 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1476 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1477 | echo "configure:1478: checking for $ac_word" >&5
|
---|
1478 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1479 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1480 | else
|
---|
1481 | if test -n "$RANLIB"; then
|
---|
1482 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1483 | else
|
---|
1484 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1485 | ac_dummy="$PATH"
|
---|
1486 | for ac_dir in $ac_dummy; do
|
---|
1487 | test -z "$ac_dir" && ac_dir=.
|
---|
1488 | if test -f $ac_dir/$ac_word; then
|
---|
1489 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1490 | break
|
---|
1491 | fi
|
---|
1492 | done
|
---|
1493 | IFS="$ac_save_ifs"
|
---|
1494 | fi
|
---|
1495 | fi
|
---|
1496 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1497 | if test -n "$RANLIB"; then
|
---|
1498 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1499 | else
|
---|
1500 | echo "$ac_t""no" 1>&6
|
---|
1501 | fi
|
---|
1502 |
|
---|
1503 |
|
---|
1504 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1505 | if test -n "$ac_tool_prefix"; then
|
---|
1506 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1507 | set dummy ranlib; ac_word=$2
|
---|
1508 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1509 | echo "configure:1510: checking for $ac_word" >&5
|
---|
1510 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1511 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1512 | else
|
---|
1513 | if test -n "$RANLIB"; then
|
---|
1514 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1515 | else
|
---|
1516 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1517 | ac_dummy="$PATH"
|
---|
1518 | for ac_dir in $ac_dummy; do
|
---|
1519 | test -z "$ac_dir" && ac_dir=.
|
---|
1520 | if test -f $ac_dir/$ac_word; then
|
---|
1521 | ac_cv_prog_RANLIB="ranlib"
|
---|
1522 | break
|
---|
1523 | fi
|
---|
1524 | done
|
---|
1525 | IFS="$ac_save_ifs"
|
---|
1526 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1527 | fi
|
---|
1528 | fi
|
---|
1529 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1530 | if test -n "$RANLIB"; then
|
---|
1531 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1532 | else
|
---|
1533 | echo "$ac_t""no" 1>&6
|
---|
1534 | fi
|
---|
1535 |
|
---|
1536 | else
|
---|
1537 | RANLIB=":"
|
---|
1538 | fi
|
---|
1539 | fi
|
---|
1540 |
|
---|
1541 |
|
---|
1542 | # Find a good install program. We prefer a C program (faster),
|
---|
1543 | # so one script is as good as another. But avoid the broken or
|
---|
1544 | # incompatible versions:
|
---|
1545 | # SysV /etc/install, /usr/sbin/install
|
---|
1546 | # SunOS /usr/etc/install
|
---|
1547 | # IRIX /sbin/install
|
---|
1548 | # AIX /bin/install
|
---|
1549 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1550 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1551 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1552 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1553 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
1554 | echo "configure:1555: checking for a BSD compatible install" >&5
|
---|
1555 | if test -z "$INSTALL"; then
|
---|
1556 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
1557 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1558 | else
|
---|
1559 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
1560 | for ac_dir in $PATH; do
|
---|
1561 | # Account for people who put trailing slashes in PATH elements.
|
---|
1562 | case "$ac_dir/" in
|
---|
1563 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
1564 | *)
|
---|
1565 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1566 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1567 | # by default.
|
---|
1568 | for ac_prog in ginstall scoinst install; do
|
---|
1569 | if test -f $ac_dir/$ac_prog; then
|
---|
1570 | if test $ac_prog = install &&
|
---|
1571 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
1572 | # AIX install. It has an incompatible calling convention.
|
---|
1573 | :
|
---|
1574 | else
|
---|
1575 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
1576 | break 2
|
---|
1577 | fi
|
---|
1578 | fi
|
---|
1579 | done
|
---|
1580 | ;;
|
---|
1581 | esac
|
---|
1582 | done
|
---|
1583 | IFS="$ac_save_IFS"
|
---|
1584 |
|
---|
1585 | fi
|
---|
1586 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1587 | INSTALL="$ac_cv_path_install"
|
---|
1588 | else
|
---|
1589 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1590 | # path for INSTALL within a source directory, because that will
|
---|
1591 | # break other packages using the cache if that directory is
|
---|
1592 | # removed, or if the path is relative.
|
---|
1593 | INSTALL="$ac_install_sh"
|
---|
1594 | fi
|
---|
1595 | fi
|
---|
1596 | echo "$ac_t""$INSTALL" 1>&6
|
---|
1597 |
|
---|
1598 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1599 | # It thinks the first close brace ends the variable substitution.
|
---|
1600 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1601 |
|
---|
1602 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
1603 |
|
---|
1604 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1605 |
|
---|
1606 |
|
---|
1607 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
1608 | echo "configure:1609: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
1609 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
1610 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
1611 | enableval="$enable_maintainer_mode"
|
---|
1612 | USE_MAINTAINER_MODE=$enableval
|
---|
1613 | else
|
---|
1614 | USE_MAINTAINER_MODE=no
|
---|
1615 | fi
|
---|
1616 |
|
---|
1617 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
1618 |
|
---|
1619 |
|
---|
1620 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
1621 | MAINTAINER_MODE_TRUE=
|
---|
1622 | MAINTAINER_MODE_FALSE='#'
|
---|
1623 | else
|
---|
1624 | MAINTAINER_MODE_TRUE='#'
|
---|
1625 | MAINTAINER_MODE_FALSE=
|
---|
1626 | fi
|
---|
1627 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
1628 |
|
---|
1629 |
|
---|
1630 |
|
---|
1631 |
|
---|
1632 |
|
---|
1633 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
1634 | echo "configure:1635: checking for executable suffix" >&5
|
---|
1635 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
1636 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1637 | else
|
---|
1638 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
---|
1639 | ac_cv_exeext=.exe
|
---|
1640 | else
|
---|
1641 | rm -f conftest*
|
---|
1642 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
1643 | ac_cv_exeext=
|
---|
1644 | if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
1645 | for file in conftest.*; do
|
---|
1646 | case $file in
|
---|
1647 | *.c | *.o | *.obj) ;;
|
---|
1648 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
1649 | esac
|
---|
1650 | done
|
---|
1651 | else
|
---|
1652 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
1653 | fi
|
---|
1654 | rm -f conftest*
|
---|
1655 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
1656 | fi
|
---|
1657 | fi
|
---|
1658 |
|
---|
1659 | EXEEXT=""
|
---|
1660 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
1661 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
1662 | ac_exeext=$EXEEXT
|
---|
1663 |
|
---|
1664 |
|
---|
1665 | # configure.host sets the following important variables
|
---|
1666 | # libgcj_cflags - host specific C compiler flags
|
---|
1667 | # libgcj_cxxflags - host specific C++ compiler flags
|
---|
1668 | # libgcj_javaflags - host specific Java compiler flags
|
---|
1669 |
|
---|
1670 | libgcj_cflags=
|
---|
1671 | libgcj_cxxflags=
|
---|
1672 | libgcj_javaflags=
|
---|
1673 |
|
---|
1674 | . ${srcdir}/configure.host
|
---|
1675 |
|
---|
1676 | LIBGCJ_CFLAGS="${libgcj_cflags}"
|
---|
1677 | LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
|
---|
1678 | LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
|
---|
1679 |
|
---|
1680 |
|
---|
1681 |
|
---|
1682 |
|
---|
1683 |
|
---|
1684 |
|
---|
1685 |
|
---|
1686 |
|
---|
1687 |
|
---|
1688 | # Only use libltdl for native builds.
|
---|
1689 | if test -z "${with_cross_host}"; then
|
---|
1690 | case $enable_ltdl_convenience in
|
---|
1691 | no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
|
---|
1692 | "") enable_ltdl_convenience=yes
|
---|
1693 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
---|
1694 | esac
|
---|
1695 | LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
|
---|
1696 | INCLTDL='-I${top_srcdir}/''libltdl'
|
---|
1697 |
|
---|
1698 |
|
---|
1699 | DIRLTDL=libltdl
|
---|
1700 | cat >> confdefs.h <<\EOF
|
---|
1701 | #define USE_LTDL 1
|
---|
1702 | EOF
|
---|
1703 |
|
---|
1704 | # Sigh. Libtool's macro doesn't do the right thing.
|
---|
1705 | INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
|
---|
1706 | # FIXME: this is a hack.
|
---|
1707 | sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
|
---|
1708 | ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
|
---|
1709 | fi
|
---|
1710 |
|
---|
1711 |
|
---|
1712 |
|
---|
1713 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1714 | if test "${enable_shared+set}" = set; then
|
---|
1715 | enableval="$enable_shared"
|
---|
1716 | p=${PACKAGE-default}
|
---|
1717 | case $enableval in
|
---|
1718 | yes) enable_shared=yes ;;
|
---|
1719 | no) enable_shared=no ;;
|
---|
1720 | *)
|
---|
1721 | enable_shared=no
|
---|
1722 | # Look at the argument we got. We use all the common list separators.
|
---|
1723 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1724 | for pkg in $enableval; do
|
---|
1725 | if test "X$pkg" = "X$p"; then
|
---|
1726 | enable_shared=yes
|
---|
1727 | fi
|
---|
1728 | done
|
---|
1729 | IFS="$ac_save_ifs"
|
---|
1730 | ;;
|
---|
1731 | esac
|
---|
1732 | else
|
---|
1733 | enable_shared=yes
|
---|
1734 | fi
|
---|
1735 |
|
---|
1736 | # Check whether --enable-static or --disable-static was given.
|
---|
1737 | if test "${enable_static+set}" = set; then
|
---|
1738 | enableval="$enable_static"
|
---|
1739 | p=${PACKAGE-default}
|
---|
1740 | case $enableval in
|
---|
1741 | yes) enable_static=yes ;;
|
---|
1742 | no) enable_static=no ;;
|
---|
1743 | *)
|
---|
1744 | enable_static=no
|
---|
1745 | # Look at the argument we got. We use all the common list separators.
|
---|
1746 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1747 | for pkg in $enableval; do
|
---|
1748 | if test "X$pkg" = "X$p"; then
|
---|
1749 | enable_static=yes
|
---|
1750 | fi
|
---|
1751 | done
|
---|
1752 | IFS="$ac_save_ifs"
|
---|
1753 | ;;
|
---|
1754 | esac
|
---|
1755 | else
|
---|
1756 | enable_static=yes
|
---|
1757 | fi
|
---|
1758 |
|
---|
1759 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1760 | if test "${enable_fast_install+set}" = set; then
|
---|
1761 | enableval="$enable_fast_install"
|
---|
1762 | p=${PACKAGE-default}
|
---|
1763 | case $enableval in
|
---|
1764 | yes) enable_fast_install=yes ;;
|
---|
1765 | no) enable_fast_install=no ;;
|
---|
1766 | *)
|
---|
1767 | enable_fast_install=no
|
---|
1768 | # Look at the argument we got. We use all the common list separators.
|
---|
1769 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1770 | for pkg in $enableval; do
|
---|
1771 | if test "X$pkg" = "X$p"; then
|
---|
1772 | enable_fast_install=yes
|
---|
1773 | fi
|
---|
1774 | done
|
---|
1775 | IFS="$ac_save_ifs"
|
---|
1776 | ;;
|
---|
1777 | esac
|
---|
1778 | else
|
---|
1779 | enable_fast_install=yes
|
---|
1780 | fi
|
---|
1781 |
|
---|
1782 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
1783 | if test "${with_gnu_ld+set}" = set; then
|
---|
1784 | withval="$with_gnu_ld"
|
---|
1785 | test "$withval" = no || with_gnu_ld=yes
|
---|
1786 | else
|
---|
1787 | with_gnu_ld=no
|
---|
1788 | fi
|
---|
1789 |
|
---|
1790 | ac_prog=ld
|
---|
1791 | if test "$GCC" = yes; then
|
---|
1792 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
1793 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
1794 | echo "configure:1795: checking for ld used by GCC" >&5
|
---|
1795 | case $host in
|
---|
1796 | *-*-mingw*)
|
---|
1797 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
1798 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
1799 | *)
|
---|
1800 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
1801 | esac
|
---|
1802 | case $ac_prog in
|
---|
1803 | # Accept absolute paths.
|
---|
1804 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
1805 | re_direlt='/[^/][^/]*/\.\./'
|
---|
1806 | # Canonicalize the path of ld
|
---|
1807 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
1808 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
1809 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
1810 | done
|
---|
1811 | test -z "$LD" && LD="$ac_prog"
|
---|
1812 | ;;
|
---|
1813 | "")
|
---|
1814 | # If it fails, then pretend we aren't using GCC.
|
---|
1815 | ac_prog=ld
|
---|
1816 | ;;
|
---|
1817 | *)
|
---|
1818 | # If it is relative, then search for the first ld in PATH.
|
---|
1819 | with_gnu_ld=unknown
|
---|
1820 | ;;
|
---|
1821 | esac
|
---|
1822 | elif test "$with_gnu_ld" = yes; then
|
---|
1823 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
1824 | echo "configure:1825: checking for GNU ld" >&5
|
---|
1825 | else
|
---|
1826 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
1827 | echo "configure:1828: checking for non-GNU ld" >&5
|
---|
1828 | fi
|
---|
1829 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
---|
1830 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1831 | else
|
---|
1832 | if test -z "$LD"; then
|
---|
1833 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1834 | for ac_dir in $PATH; do
|
---|
1835 | test -z "$ac_dir" && ac_dir=.
|
---|
1836 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
1837 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
---|
1838 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
1839 | # but apparently some GNU ld's only accept -v.
|
---|
1840 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
1841 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
1842 | test "$with_gnu_ld" != no && break
|
---|
1843 | else
|
---|
1844 | test "$with_gnu_ld" != yes && break
|
---|
1845 | fi
|
---|
1846 | fi
|
---|
1847 | done
|
---|
1848 | IFS="$ac_save_ifs"
|
---|
1849 | else
|
---|
1850 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1851 | fi
|
---|
1852 | fi
|
---|
1853 |
|
---|
1854 | LD="$lt_cv_path_LD"
|
---|
1855 | if test -n "$LD"; then
|
---|
1856 | echo "$ac_t""$LD" 1>&6
|
---|
1857 | else
|
---|
1858 | echo "$ac_t""no" 1>&6
|
---|
1859 | fi
|
---|
1860 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
1861 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
1862 | echo "configure:1863: checking if the linker ($LD) is GNU ld" >&5
|
---|
1863 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
1864 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1865 | else
|
---|
1866 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
1867 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
1868 | lt_cv_prog_gnu_ld=yes
|
---|
1869 | else
|
---|
1870 | lt_cv_prog_gnu_ld=no
|
---|
1871 | fi
|
---|
1872 | fi
|
---|
1873 |
|
---|
1874 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
---|
1875 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
1876 |
|
---|
1877 |
|
---|
1878 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
1879 | echo "configure:1880: checking for $LD option to reload object files" >&5
|
---|
1880 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
1881 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1882 | else
|
---|
1883 | lt_cv_ld_reload_flag='-r'
|
---|
1884 | fi
|
---|
1885 |
|
---|
1886 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
1887 | reload_flag=$lt_cv_ld_reload_flag
|
---|
1888 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
1889 |
|
---|
1890 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
1891 | echo "configure:1892: checking for BSD-compatible nm" >&5
|
---|
1892 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
---|
1893 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1894 | else
|
---|
1895 | if test -n "$NM"; then
|
---|
1896 | # Let the user override the test.
|
---|
1897 | lt_cv_path_NM="$NM"
|
---|
1898 | else
|
---|
1899 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1900 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
1901 | test -z "$ac_dir" && ac_dir=.
|
---|
1902 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
1903 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
1904 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
1905 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
1906 | # nm: unknown option "B" ignored
|
---|
1907 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
1908 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
1909 | lt_cv_path_NM="$tmp_nm -B"
|
---|
1910 | break
|
---|
1911 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
1912 | lt_cv_path_NM="$tmp_nm -p"
|
---|
1913 | break
|
---|
1914 | else
|
---|
1915 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
1916 | continue # so that we can try to find one that supports BSD flags
|
---|
1917 | fi
|
---|
1918 | fi
|
---|
1919 | done
|
---|
1920 | IFS="$ac_save_ifs"
|
---|
1921 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
---|
1922 | fi
|
---|
1923 | fi
|
---|
1924 |
|
---|
1925 | NM="$lt_cv_path_NM"
|
---|
1926 | echo "$ac_t""$NM" 1>&6
|
---|
1927 |
|
---|
1928 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1929 | echo "configure:1930: checking how to recognise dependant libraries" >&5
|
---|
1930 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1931 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1932 | else
|
---|
1933 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
1934 | lt_cv_file_magic_test_file=
|
---|
1935 | lt_cv_deplibs_check_method='unknown'
|
---|
1936 | # Need to set the preceding variable on all platforms that support
|
---|
1937 | # interlibrary dependencies.
|
---|
1938 | # 'none' -- dependencies not supported.
|
---|
1939 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1940 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1941 | # 'test_compile' -- check by making test program.
|
---|
1942 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1943 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1944 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1945 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1946 |
|
---|
1947 | case $host_os in
|
---|
1948 | aix*)
|
---|
1949 | lt_cv_deplibs_check_method=pass_all
|
---|
1950 | ;;
|
---|
1951 |
|
---|
1952 | beos*)
|
---|
1953 | lt_cv_deplibs_check_method=pass_all
|
---|
1954 | ;;
|
---|
1955 |
|
---|
1956 | bsdi4*)
|
---|
1957 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1958 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1959 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1960 | ;;
|
---|
1961 |
|
---|
1962 | cygwin* | mingw* |pw32*)
|
---|
1963 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1964 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
1965 | ;;
|
---|
1966 |
|
---|
1967 | darwin* | rhapsody*)
|
---|
1968 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
---|
1969 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1970 | case "$host_os" in
|
---|
1971 | rhapsody* | darwin1.012)
|
---|
1972 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
---|
1973 | ;;
|
---|
1974 | *) # Darwin 1.3 on
|
---|
1975 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
---|
1976 | ;;
|
---|
1977 | esac
|
---|
1978 | ;;
|
---|
1979 |
|
---|
1980 | freebsd* )
|
---|
1981 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1982 | case $host_cpu in
|
---|
1983 | i*86 )
|
---|
1984 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1985 | # Let's accept both of them until this is cleared up.
|
---|
1986 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1987 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1988 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1989 | ;;
|
---|
1990 | esac
|
---|
1991 | else
|
---|
1992 | lt_cv_deplibs_check_method=pass_all
|
---|
1993 | fi
|
---|
1994 | ;;
|
---|
1995 |
|
---|
1996 | gnu*)
|
---|
1997 | lt_cv_deplibs_check_method=pass_all
|
---|
1998 | ;;
|
---|
1999 |
|
---|
2000 | hpux10.20*|hpux11*)
|
---|
2001 | case $host_cpu in
|
---|
2002 | hppa*)
|
---|
2003 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
---|
2004 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2005 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
2006 | ;;
|
---|
2007 | ia64*)
|
---|
2008 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
2009 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2010 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
2011 | ;;
|
---|
2012 | esac
|
---|
2013 | ;;
|
---|
2014 |
|
---|
2015 | irix5* | irix6*)
|
---|
2016 | case $host_os in
|
---|
2017 | irix5*)
|
---|
2018 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
2019 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
2020 | ;;
|
---|
2021 | *)
|
---|
2022 | case $LD in
|
---|
2023 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
2024 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
2025 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
2026 | *) libmagic=never-match;;
|
---|
2027 | esac
|
---|
2028 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
2029 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
2030 | ;;
|
---|
2031 | esac
|
---|
2032 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
2033 | lt_cv_deplibs_check_method=pass_all
|
---|
2034 | ;;
|
---|
2035 |
|
---|
2036 | # This must be Linux ELF.
|
---|
2037 | linux-gnu*)
|
---|
2038 | case $host_cpu in
|
---|
2039 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
|
---|
2040 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
2041 | *)
|
---|
2042 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
2043 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
2044 | esac
|
---|
2045 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
2046 | ;;
|
---|
2047 |
|
---|
2048 | netbsd*)
|
---|
2049 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
2050 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
---|
2051 | else
|
---|
2052 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
---|
2053 | fi
|
---|
2054 | ;;
|
---|
2055 |
|
---|
2056 | newsos6)
|
---|
2057 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
2058 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2059 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
2060 | ;;
|
---|
2061 |
|
---|
2062 | osf3* | osf4* | osf5*)
|
---|
2063 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
2064 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
2065 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
2066 | lt_cv_deplibs_check_method=pass_all
|
---|
2067 | ;;
|
---|
2068 |
|
---|
2069 | sco3.2v5*)
|
---|
2070 | lt_cv_deplibs_check_method=pass_all
|
---|
2071 | ;;
|
---|
2072 |
|
---|
2073 | solaris*)
|
---|
2074 | lt_cv_deplibs_check_method=pass_all
|
---|
2075 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
2076 | ;;
|
---|
2077 |
|
---|
2078 | sysv5uw[78]* | sysv4*uw2*)
|
---|
2079 | lt_cv_deplibs_check_method=pass_all
|
---|
2080 | ;;
|
---|
2081 |
|
---|
2082 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
2083 | case $host_vendor in
|
---|
2084 | ncr)
|
---|
2085 | lt_cv_deplibs_check_method=pass_all
|
---|
2086 | ;;
|
---|
2087 | motorola)
|
---|
2088 | 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]'
|
---|
2089 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
2090 | ;;
|
---|
2091 | esac
|
---|
2092 | ;;
|
---|
2093 | esac
|
---|
2094 |
|
---|
2095 | fi
|
---|
2096 |
|
---|
2097 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
2098 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
2099 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
2100 |
|
---|
2101 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
2102 | echo "configure:2103: checking for object suffix" >&5
|
---|
2103 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
2104 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2105 | else
|
---|
2106 | rm -f conftest*
|
---|
2107 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
2108 | if { (eval echo configure:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2109 | for ac_file in conftest.*; do
|
---|
2110 | case $ac_file in
|
---|
2111 | *.c) ;;
|
---|
2112 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
2113 | esac
|
---|
2114 | done
|
---|
2115 | else
|
---|
2116 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
2117 | fi
|
---|
2118 | rm -f conftest*
|
---|
2119 | fi
|
---|
2120 |
|
---|
2121 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
2122 | OBJEXT=$ac_cv_objext
|
---|
2123 | ac_objext=$ac_cv_objext
|
---|
2124 |
|
---|
2125 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
2126 |
|
---|
2127 | # Only perform the check for file, if the check method requires it
|
---|
2128 | case $deplibs_check_method in
|
---|
2129 | file_magic*)
|
---|
2130 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
2131 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
2132 | echo "configure:2133: checking for ${ac_tool_prefix}file" >&5
|
---|
2133 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
2134 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2135 | else
|
---|
2136 | case $MAGIC_CMD in
|
---|
2137 | /*)
|
---|
2138 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
2139 | ;;
|
---|
2140 | ?:/*)
|
---|
2141 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
2142 | ;;
|
---|
2143 | *)
|
---|
2144 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
2145 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2146 | ac_dummy="/usr/bin:$PATH"
|
---|
2147 | for ac_dir in $ac_dummy; do
|
---|
2148 | test -z "$ac_dir" && ac_dir=.
|
---|
2149 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
2150 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
2151 | if test -n "$file_magic_test_file"; then
|
---|
2152 | case $deplibs_check_method in
|
---|
2153 | "file_magic "*)
|
---|
2154 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
2155 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2156 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
2157 | egrep "$file_magic_regex" > /dev/null; then
|
---|
2158 | :
|
---|
2159 | else
|
---|
2160 | cat <<EOF 1>&2
|
---|
2161 |
|
---|
2162 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
2163 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
2164 | *** The result is that libtool may fail to recognize shared libraries
|
---|
2165 | *** as such. This will affect the creation of libtool libraries that
|
---|
2166 | *** depend on shared libraries, but programs linked with such libtool
|
---|
2167 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
2168 | *** may want to report the problem to your system manager and/or to
|
---|
2169 | *** bug-libtool@gnu.org
|
---|
2170 |
|
---|
2171 | EOF
|
---|
2172 | fi ;;
|
---|
2173 | esac
|
---|
2174 | fi
|
---|
2175 | break
|
---|
2176 | fi
|
---|
2177 | done
|
---|
2178 | IFS="$ac_save_ifs"
|
---|
2179 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
2180 | ;;
|
---|
2181 | esac
|
---|
2182 | fi
|
---|
2183 |
|
---|
2184 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2185 | if test -n "$MAGIC_CMD"; then
|
---|
2186 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
2187 | else
|
---|
2188 | echo "$ac_t""no" 1>&6
|
---|
2189 | fi
|
---|
2190 |
|
---|
2191 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
2192 | if test -n "$ac_tool_prefix"; then
|
---|
2193 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
2194 | echo "configure:2195: checking for file" >&5
|
---|
2195 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
2196 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2197 | else
|
---|
2198 | case $MAGIC_CMD in
|
---|
2199 | /*)
|
---|
2200 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
2201 | ;;
|
---|
2202 | ?:/*)
|
---|
2203 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
2204 | ;;
|
---|
2205 | *)
|
---|
2206 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
2207 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2208 | ac_dummy="/usr/bin:$PATH"
|
---|
2209 | for ac_dir in $ac_dummy; do
|
---|
2210 | test -z "$ac_dir" && ac_dir=.
|
---|
2211 | if test -f $ac_dir/file; then
|
---|
2212 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
2213 | if test -n "$file_magic_test_file"; then
|
---|
2214 | case $deplibs_check_method in
|
---|
2215 | "file_magic "*)
|
---|
2216 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
2217 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2218 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
2219 | egrep "$file_magic_regex" > /dev/null; then
|
---|
2220 | :
|
---|
2221 | else
|
---|
2222 | cat <<EOF 1>&2
|
---|
2223 |
|
---|
2224 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
2225 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
2226 | *** The result is that libtool may fail to recognize shared libraries
|
---|
2227 | *** as such. This will affect the creation of libtool libraries that
|
---|
2228 | *** depend on shared libraries, but programs linked with such libtool
|
---|
2229 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
2230 | *** may want to report the problem to your system manager and/or to
|
---|
2231 | *** bug-libtool@gnu.org
|
---|
2232 |
|
---|
2233 | EOF
|
---|
2234 | fi ;;
|
---|
2235 | esac
|
---|
2236 | fi
|
---|
2237 | break
|
---|
2238 | fi
|
---|
2239 | done
|
---|
2240 | IFS="$ac_save_ifs"
|
---|
2241 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
2242 | ;;
|
---|
2243 | esac
|
---|
2244 | fi
|
---|
2245 |
|
---|
2246 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2247 | if test -n "$MAGIC_CMD"; then
|
---|
2248 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
2249 | else
|
---|
2250 | echo "$ac_t""no" 1>&6
|
---|
2251 | fi
|
---|
2252 |
|
---|
2253 | else
|
---|
2254 | MAGIC_CMD=:
|
---|
2255 | fi
|
---|
2256 | fi
|
---|
2257 |
|
---|
2258 | fi
|
---|
2259 | ;;
|
---|
2260 | esac
|
---|
2261 |
|
---|
2262 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
2263 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
2264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2265 | echo "configure:2266: checking for $ac_word" >&5
|
---|
2266 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2267 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2268 | else
|
---|
2269 | if test -n "$RANLIB"; then
|
---|
2270 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2271 | else
|
---|
2272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2273 | ac_dummy="$PATH"
|
---|
2274 | for ac_dir in $ac_dummy; do
|
---|
2275 | test -z "$ac_dir" && ac_dir=.
|
---|
2276 | if test -f $ac_dir/$ac_word; then
|
---|
2277 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
2278 | break
|
---|
2279 | fi
|
---|
2280 | done
|
---|
2281 | IFS="$ac_save_ifs"
|
---|
2282 | fi
|
---|
2283 | fi
|
---|
2284 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2285 | if test -n "$RANLIB"; then
|
---|
2286 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2287 | else
|
---|
2288 | echo "$ac_t""no" 1>&6
|
---|
2289 | fi
|
---|
2290 |
|
---|
2291 |
|
---|
2292 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
2293 | if test -n "$ac_tool_prefix"; then
|
---|
2294 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2295 | set dummy ranlib; ac_word=$2
|
---|
2296 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2297 | echo "configure:2298: checking for $ac_word" >&5
|
---|
2298 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2299 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2300 | else
|
---|
2301 | if test -n "$RANLIB"; then
|
---|
2302 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2303 | else
|
---|
2304 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2305 | ac_dummy="$PATH"
|
---|
2306 | for ac_dir in $ac_dummy; do
|
---|
2307 | test -z "$ac_dir" && ac_dir=.
|
---|
2308 | if test -f $ac_dir/$ac_word; then
|
---|
2309 | ac_cv_prog_RANLIB="ranlib"
|
---|
2310 | break
|
---|
2311 | fi
|
---|
2312 | done
|
---|
2313 | IFS="$ac_save_ifs"
|
---|
2314 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2315 | fi
|
---|
2316 | fi
|
---|
2317 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2318 | if test -n "$RANLIB"; then
|
---|
2319 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2320 | else
|
---|
2321 | echo "$ac_t""no" 1>&6
|
---|
2322 | fi
|
---|
2323 |
|
---|
2324 | else
|
---|
2325 | RANLIB=":"
|
---|
2326 | fi
|
---|
2327 | fi
|
---|
2328 |
|
---|
2329 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2330 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2331 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2332 | echo "configure:2333: checking for $ac_word" >&5
|
---|
2333 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2334 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2335 | else
|
---|
2336 | if test -n "$STRIP"; then
|
---|
2337 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2338 | else
|
---|
2339 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2340 | ac_dummy="$PATH"
|
---|
2341 | for ac_dir in $ac_dummy; do
|
---|
2342 | test -z "$ac_dir" && ac_dir=.
|
---|
2343 | if test -f $ac_dir/$ac_word; then
|
---|
2344 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2345 | break
|
---|
2346 | fi
|
---|
2347 | done
|
---|
2348 | IFS="$ac_save_ifs"
|
---|
2349 | fi
|
---|
2350 | fi
|
---|
2351 | STRIP="$ac_cv_prog_STRIP"
|
---|
2352 | if test -n "$STRIP"; then
|
---|
2353 | echo "$ac_t""$STRIP" 1>&6
|
---|
2354 | else
|
---|
2355 | echo "$ac_t""no" 1>&6
|
---|
2356 | fi
|
---|
2357 |
|
---|
2358 |
|
---|
2359 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2360 | if test -n "$ac_tool_prefix"; then
|
---|
2361 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2362 | set dummy strip; ac_word=$2
|
---|
2363 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2364 | echo "configure:2365: checking for $ac_word" >&5
|
---|
2365 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2366 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2367 | else
|
---|
2368 | if test -n "$STRIP"; then
|
---|
2369 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2370 | else
|
---|
2371 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2372 | ac_dummy="$PATH"
|
---|
2373 | for ac_dir in $ac_dummy; do
|
---|
2374 | test -z "$ac_dir" && ac_dir=.
|
---|
2375 | if test -f $ac_dir/$ac_word; then
|
---|
2376 | ac_cv_prog_STRIP="strip"
|
---|
2377 | break
|
---|
2378 | fi
|
---|
2379 | done
|
---|
2380 | IFS="$ac_save_ifs"
|
---|
2381 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2382 | fi
|
---|
2383 | fi
|
---|
2384 | STRIP="$ac_cv_prog_STRIP"
|
---|
2385 | if test -n "$STRIP"; then
|
---|
2386 | echo "$ac_t""$STRIP" 1>&6
|
---|
2387 | else
|
---|
2388 | echo "$ac_t""no" 1>&6
|
---|
2389 | fi
|
---|
2390 |
|
---|
2391 | else
|
---|
2392 | STRIP=":"
|
---|
2393 | fi
|
---|
2394 | fi
|
---|
2395 |
|
---|
2396 |
|
---|
2397 | # Check for any special flags to pass to ltconfig.
|
---|
2398 | libtool_flags="--cache-file=$cache_file"
|
---|
2399 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2400 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2401 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2402 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2403 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2404 | libtool_flags="$libtool_flags --enable-dlopen"
|
---|
2405 |
|
---|
2406 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2407 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2408 | enableval="$enable_libtool_lock"
|
---|
2409 | :
|
---|
2410 | fi
|
---|
2411 |
|
---|
2412 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2413 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2414 |
|
---|
2415 | # Check whether --with-pic or --without-pic was given.
|
---|
2416 | if test "${with_pic+set}" = set; then
|
---|
2417 | withval="$with_pic"
|
---|
2418 | pic_mode="$withval"
|
---|
2419 | else
|
---|
2420 | pic_mode=default
|
---|
2421 | fi
|
---|
2422 |
|
---|
2423 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2424 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2425 |
|
---|
2426 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2427 | # libtool support.
|
---|
2428 | case $host in
|
---|
2429 | *-*-irix6*)
|
---|
2430 | # Find out which ABI we are using.
|
---|
2431 | echo '#line 2432 "configure"' > conftest.$ac_ext
|
---|
2432 | if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2433 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
2434 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2435 | *32-bit*)
|
---|
2436 | LD="${LD-ld} -melf32bsmip"
|
---|
2437 | ;;
|
---|
2438 | *N32*)
|
---|
2439 | LD="${LD-ld} -melf32bmipn32"
|
---|
2440 | ;;
|
---|
2441 | *64-bit*)
|
---|
2442 | LD="${LD-ld} -melf64bmip"
|
---|
2443 | ;;
|
---|
2444 | esac
|
---|
2445 | else
|
---|
2446 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2447 | *32-bit*)
|
---|
2448 | LD="${LD-ld} -32"
|
---|
2449 | ;;
|
---|
2450 | *N32*)
|
---|
2451 | LD="${LD-ld} -n32"
|
---|
2452 | ;;
|
---|
2453 | *64-bit*)
|
---|
2454 | LD="${LD-ld} -64"
|
---|
2455 | ;;
|
---|
2456 | esac
|
---|
2457 | fi
|
---|
2458 | fi
|
---|
2459 | rm -rf conftest*
|
---|
2460 | ;;
|
---|
2461 |
|
---|
2462 | ia64-*-hpux*)
|
---|
2463 | # Find out which ABI we are using.
|
---|
2464 | echo 'int i;' > conftest.$ac_ext
|
---|
2465 | if { (eval echo configure:2466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2466 | case "`/usr/bin/file conftest.o`" in
|
---|
2467 | *ELF-32*)
|
---|
2468 | HPUX_IA64_MODE="32"
|
---|
2469 | ;;
|
---|
2470 | *ELF-64*)
|
---|
2471 | HPUX_IA64_MODE="64"
|
---|
2472 | ;;
|
---|
2473 | esac
|
---|
2474 | fi
|
---|
2475 | rm -rf conftest*
|
---|
2476 | ;;
|
---|
2477 |
|
---|
2478 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
---|
2479 | # Find out which ABI we are using.
|
---|
2480 | echo 'int i;' > conftest.$ac_ext
|
---|
2481 | if { (eval echo configure:2482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2482 | case "`/usr/bin/file conftest.o`" in
|
---|
2483 | *32-bit*)
|
---|
2484 | case $host in
|
---|
2485 | x86_64-*linux*)
|
---|
2486 | LD="${LD-ld} -m elf_i386"
|
---|
2487 | ;;
|
---|
2488 | ppc64-*linux*|powerpc64-*linux*)
|
---|
2489 | LD="${LD-ld} -m elf32ppclinux"
|
---|
2490 | ;;
|
---|
2491 | s390x-*linux*)
|
---|
2492 | LD="${LD-ld} -m elf_s390"
|
---|
2493 | ;;
|
---|
2494 | sparc64-*linux*)
|
---|
2495 | LD="${LD-ld} -m elf32_sparc"
|
---|
2496 | ;;
|
---|
2497 | esac
|
---|
2498 | ;;
|
---|
2499 | *64-bit*)
|
---|
2500 | case $host in
|
---|
2501 | x86_64-*linux*)
|
---|
2502 | LD="${LD-ld} -m elf_x86_64"
|
---|
2503 | ;;
|
---|
2504 | ppc*-*linux*|powerpc*-*linux*)
|
---|
2505 | LD="${LD-ld} -m elf64ppc"
|
---|
2506 | ;;
|
---|
2507 | s390*-*linux*)
|
---|
2508 | LD="${LD-ld} -m elf64_s390"
|
---|
2509 | ;;
|
---|
2510 | sparc*-*linux*)
|
---|
2511 | LD="${LD-ld} -m elf64_sparc"
|
---|
2512 | ;;
|
---|
2513 | esac
|
---|
2514 | ;;
|
---|
2515 | esac
|
---|
2516 | fi
|
---|
2517 | rm -rf conftest*
|
---|
2518 | ;;
|
---|
2519 |
|
---|
2520 | *-*-sco3.2v5*)
|
---|
2521 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2522 | SAVE_CFLAGS="$CFLAGS"
|
---|
2523 | CFLAGS="$CFLAGS -belf"
|
---|
2524 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2525 | echo "configure:2526: checking whether the C compiler needs -belf" >&5
|
---|
2526 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2527 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2528 | else
|
---|
2529 |
|
---|
2530 | ac_ext=c
|
---|
2531 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2532 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2533 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2534 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2535 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2536 |
|
---|
2537 | cat > conftest.$ac_ext <<EOF
|
---|
2538 | #line 2539 "configure"
|
---|
2539 | #include "confdefs.h"
|
---|
2540 |
|
---|
2541 | int main() {
|
---|
2542 |
|
---|
2543 | ; return 0; }
|
---|
2544 | EOF
|
---|
2545 | if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2546 | rm -rf conftest*
|
---|
2547 | lt_cv_cc_needs_belf=yes
|
---|
2548 | else
|
---|
2549 | echo "configure: failed program was:" >&5
|
---|
2550 | cat conftest.$ac_ext >&5
|
---|
2551 | rm -rf conftest*
|
---|
2552 | lt_cv_cc_needs_belf=no
|
---|
2553 | fi
|
---|
2554 | rm -f conftest*
|
---|
2555 | ac_ext=c
|
---|
2556 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2557 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2558 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2559 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2560 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2561 |
|
---|
2562 | fi
|
---|
2563 |
|
---|
2564 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2565 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2566 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2567 | CFLAGS="$SAVE_CFLAGS"
|
---|
2568 | fi
|
---|
2569 | ;;
|
---|
2570 |
|
---|
2571 |
|
---|
2572 | esac
|
---|
2573 |
|
---|
2574 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
|
---|
2575 | echo "configure:2576: checking how to run the C++ preprocessor" >&5
|
---|
2576 | if test -z "$CXXCPP"; then
|
---|
2577 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
|
---|
2578 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2579 | else
|
---|
2580 | ac_ext=C
|
---|
2581 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2582 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2583 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2584 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2585 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
2586 | CXXCPP="${CXX-g++} -E"
|
---|
2587 | cat > conftest.$ac_ext <<EOF
|
---|
2588 | #line 2589 "configure"
|
---|
2589 | #include "confdefs.h"
|
---|
2590 | #include <stdlib.h>
|
---|
2591 | EOF
|
---|
2592 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2593 | { (eval echo configure:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2594 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2595 | if test -z "$ac_err"; then
|
---|
2596 | :
|
---|
2597 | else
|
---|
2598 | echo "$ac_err" >&5
|
---|
2599 | echo "configure: failed program was:" >&5
|
---|
2600 | cat conftest.$ac_ext >&5
|
---|
2601 | rm -rf conftest*
|
---|
2602 | CXXCPP=/lib/cpp
|
---|
2603 | fi
|
---|
2604 | rm -f conftest*
|
---|
2605 | ac_cv_prog_CXXCPP="$CXXCPP"
|
---|
2606 | ac_ext=c
|
---|
2607 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2608 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2609 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2610 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2611 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2612 | fi
|
---|
2613 | fi
|
---|
2614 | CXXCPP="$ac_cv_prog_CXXCPP"
|
---|
2615 | echo "$ac_t""$CXXCPP" 1>&6
|
---|
2616 |
|
---|
2617 |
|
---|
2618 | # Save cache, so that ltconfig can load it
|
---|
2619 | cat > confcache <<\EOF
|
---|
2620 | # This file is a shell script that caches the results of configure
|
---|
2621 | # tests run on this system so they can be shared between configure
|
---|
2622 | # scripts and configure runs. It is not useful on other systems.
|
---|
2623 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2624 | #
|
---|
2625 | # By default, configure uses ./config.cache as the cache file,
|
---|
2626 | # creating it if it does not exist already. You can give configure
|
---|
2627 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2628 | # what configure does when it calls configure scripts in
|
---|
2629 | # subdirectories, so they share the cache.
|
---|
2630 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2631 | # config.status only pays attention to the cache file if you give it the
|
---|
2632 | # --recheck option to rerun configure.
|
---|
2633 | #
|
---|
2634 | EOF
|
---|
2635 | # The following way of writing the cache mishandles newlines in values,
|
---|
2636 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2637 | # So, don't put newlines in cache variables' values.
|
---|
2638 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2639 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2640 | (set) 2>&1 |
|
---|
2641 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2642 | *ac_space=\ *)
|
---|
2643 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2644 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2645 | sed -n \
|
---|
2646 | -e "s/'/'\\\\''/g" \
|
---|
2647 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2648 | ;;
|
---|
2649 | *)
|
---|
2650 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2651 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2652 | ;;
|
---|
2653 | esac >> confcache
|
---|
2654 | if cmp -s $cache_file confcache; then
|
---|
2655 | :
|
---|
2656 | else
|
---|
2657 | if test -w $cache_file; then
|
---|
2658 | echo "updating cache $cache_file"
|
---|
2659 | cat confcache > $cache_file
|
---|
2660 | else
|
---|
2661 | echo "not updating unwritable cache $cache_file"
|
---|
2662 | fi
|
---|
2663 | fi
|
---|
2664 | rm -f confcache
|
---|
2665 |
|
---|
2666 |
|
---|
2667 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2668 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2669 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2670 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2671 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2672 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2673 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2674 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2675 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2676 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2677 |
|
---|
2678 | # Reload cache, that may have been modified by ltconfig
|
---|
2679 | if test -r "$cache_file"; then
|
---|
2680 | echo "loading cache $cache_file"
|
---|
2681 | . $cache_file
|
---|
2682 | else
|
---|
2683 | echo "creating cache $cache_file"
|
---|
2684 | > $cache_file
|
---|
2685 | fi
|
---|
2686 |
|
---|
2687 |
|
---|
2688 | # This can be used to rebuild libtool when needed
|
---|
2689 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2690 |
|
---|
2691 | # Always use our own libtool.
|
---|
2692 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2693 |
|
---|
2694 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2695 | # clobbered by the next message.
|
---|
2696 | exec 5>>./config.log
|
---|
2697 |
|
---|
2698 |
|
---|
2699 |
|
---|
2700 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
|
---|
2701 | lt_save_CC="$CC"
|
---|
2702 | lt_save_CFLAGS="$CFLAGS"
|
---|
2703 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2704 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2705 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2706 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2707 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2708 | deplibs_check_method="$deplibs_check_method" \
|
---|
2709 | file_magic_cmd="$file_magic_cmd" \
|
---|
2710 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
|
---|
2711 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
|
---|
2712 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
|
---|
2713 | CC="$lt_save_CC"
|
---|
2714 | CFLAGS="$lt_save_CFLAGS"
|
---|
2715 |
|
---|
2716 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2717 | # clobbered by the next message.
|
---|
2718 | exec 5>>./config.log
|
---|
2719 |
|
---|
2720 |
|
---|
2721 |
|
---|
2722 |
|
---|
2723 |
|
---|
2724 |
|
---|
2725 | subdirs="$DIRLTDL"
|
---|
2726 |
|
---|
2727 |
|
---|
2728 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
|
---|
2729 | COMPPATH=.
|
---|
2730 | else
|
---|
2731 | COMPPATH=..
|
---|
2732 | fi
|
---|
2733 |
|
---|
2734 |
|
---|
2735 |
|
---|
2736 |
|
---|
2737 | if test -d $srcdir/testsuite; then
|
---|
2738 | TESTSUBDIR_TRUE=
|
---|
2739 | TESTSUBDIR_FALSE='#'
|
---|
2740 | else
|
---|
2741 | TESTSUBDIR_TRUE='#'
|
---|
2742 | TESTSUBDIR_FALSE=
|
---|
2743 | fi
|
---|
2744 |
|
---|
2745 | # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
|
---|
2746 | if test "${enable_getenv_properties+set}" = set; then
|
---|
2747 | enableval="$enable_getenv_properties"
|
---|
2748 | :
|
---|
2749 | fi
|
---|
2750 |
|
---|
2751 |
|
---|
2752 | if test -z "$enable_getenv_properties"; then
|
---|
2753 | enable_getenv_properties=${enable_getenv_properties_default-yes}
|
---|
2754 | fi
|
---|
2755 | if test "$enable_getenv_properties" = no; then
|
---|
2756 | cat >> confdefs.h <<\EOF
|
---|
2757 | #define DISABLE_GETENV_PROPERTIES 1
|
---|
2758 | EOF
|
---|
2759 |
|
---|
2760 | fi
|
---|
2761 |
|
---|
2762 | if test -z "$enable_main_args"; then
|
---|
2763 | enable_main_args=${enable_main_args_default-yes}
|
---|
2764 | fi
|
---|
2765 | if test "$enable_main_args" = no; then
|
---|
2766 | cat >> confdefs.h <<\EOF
|
---|
2767 | #define DISABLE_MAIN_ARGS 1
|
---|
2768 | EOF
|
---|
2769 |
|
---|
2770 | fi
|
---|
2771 |
|
---|
2772 |
|
---|
2773 | # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
|
---|
2774 | if test "${enable_hash_synchronization+set}" = set; then
|
---|
2775 | enableval="$enable_hash_synchronization"
|
---|
2776 | :
|
---|
2777 | fi
|
---|
2778 |
|
---|
2779 |
|
---|
2780 | if test -z "$enable_hash_synchronization"; then
|
---|
2781 | enable_hash_synchronization=$enable_hash_synchronization_default
|
---|
2782 | fi
|
---|
2783 |
|
---|
2784 | if test "${slow_pthread_self}" = "yes"; then
|
---|
2785 | cat >> confdefs.h <<\EOF
|
---|
2786 | #define SLOW_PTHREAD_SELF 1
|
---|
2787 | EOF
|
---|
2788 |
|
---|
2789 | fi
|
---|
2790 |
|
---|
2791 |
|
---|
2792 | LIBGCJDEBUG="false"
|
---|
2793 |
|
---|
2794 | # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
|
---|
2795 | if test "${enable_libgcj_debug+set}" = set; then
|
---|
2796 | enableval="$enable_libgcj_debug"
|
---|
2797 | if test "$enable_libgcj_debug" = yes; then
|
---|
2798 | cat >> confdefs.h <<\EOF
|
---|
2799 | #define DEBUG 1
|
---|
2800 | EOF
|
---|
2801 |
|
---|
2802 | LIBGCJDEBUG="true"
|
---|
2803 | fi
|
---|
2804 | fi
|
---|
2805 |
|
---|
2806 |
|
---|
2807 | # Check whether --enable-interpreter or --disable-interpreter was given.
|
---|
2808 | if test "${enable_interpreter+set}" = set; then
|
---|
2809 | enableval="$enable_interpreter"
|
---|
2810 | if test "$enable_interpreter" = yes; then
|
---|
2811 | # This can also be set in configure.host.
|
---|
2812 | libgcj_interpreter=yes
|
---|
2813 | elif test "$enable_interpreter" = no; then
|
---|
2814 | libgcj_interpreter=no
|
---|
2815 | fi
|
---|
2816 | fi
|
---|
2817 |
|
---|
2818 |
|
---|
2819 | if test "$libgcj_interpreter" = yes; then
|
---|
2820 | cat >> confdefs.h <<\EOF
|
---|
2821 | #define INTERPRETER 1
|
---|
2822 | EOF
|
---|
2823 |
|
---|
2824 | fi
|
---|
2825 | INTERPRETER="$libgcj_interpreter"
|
---|
2826 |
|
---|
2827 |
|
---|
2828 | echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
|
---|
2829 | echo "configure:2830: checking for exception model to use" >&5
|
---|
2830 |
|
---|
2831 | ac_ext=C
|
---|
2832 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2833 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2834 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2835 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2836 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
2837 |
|
---|
2838 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
|
---|
2839 | if test "${enable_sjlj_exceptions+set}" = set; then
|
---|
2840 | enableval="$enable_sjlj_exceptions"
|
---|
2841 | :
|
---|
2842 | else
|
---|
2843 | cat > conftest.$ac_ext << EOF
|
---|
2844 | #line 2845 "configure"
|
---|
2845 | struct S { ~S(); };
|
---|
2846 | void bar();
|
---|
2847 | void foo()
|
---|
2848 | {
|
---|
2849 | S s;
|
---|
2850 | bar();
|
---|
2851 | }
|
---|
2852 | EOF
|
---|
2853 | old_CXXFLAGS="$CXXFLAGS"
|
---|
2854 | CXXFLAGS=-S
|
---|
2855 | if { (eval echo configure:2856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2856 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
|
---|
2857 | enable_sjlj_exceptions=yes
|
---|
2858 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
|
---|
2859 | enable_sjlj_exceptions=no
|
---|
2860 | fi
|
---|
2861 | fi
|
---|
2862 | CXXFLAGS="$old_CXXFLAGS"
|
---|
2863 | rm -f conftest*
|
---|
2864 | fi
|
---|
2865 |
|
---|
2866 | if test x$enable_sjlj_exceptions = xyes; then
|
---|
2867 | cat >> confdefs.h <<\EOF
|
---|
2868 | #define SJLJ_EXCEPTIONS 1
|
---|
2869 | EOF
|
---|
2870 |
|
---|
2871 | ac_exception_model_name=sjlj
|
---|
2872 | elif test x$enable_sjlj_exceptions = xno; then
|
---|
2873 | ac_exception_model_name="call frame"
|
---|
2874 | else
|
---|
2875 | { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
|
---|
2876 | fi
|
---|
2877 | ac_ext=c
|
---|
2878 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2879 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2880 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2881 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2882 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2883 |
|
---|
2884 | echo "$ac_t""$ac_exception_model_name" 1>&6
|
---|
2885 |
|
---|
2886 | # If we are non using SJLJ exceptions, and this host does not have support
|
---|
2887 | # for unwinding from a signal handler, enable checked dereferences and divides.
|
---|
2888 | if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
|
---|
2889 | CHECKREFSPEC=-fcheck-references
|
---|
2890 | DIVIDESPEC=-fuse-divide-subroutine
|
---|
2891 | EXCEPTIONSPEC=
|
---|
2892 | fi
|
---|
2893 |
|
---|
2894 | # Check whether --enable-java-net or --disable-java-net was given.
|
---|
2895 | if test "${enable_java_net+set}" = set; then
|
---|
2896 | enableval="$enable_java_net"
|
---|
2897 | :
|
---|
2898 | fi
|
---|
2899 |
|
---|
2900 |
|
---|
2901 | if test -z "$enable_java_net"; then
|
---|
2902 | enable_java_net=${enable_java_net_default-yes}
|
---|
2903 | fi
|
---|
2904 | if test "$enable_java_net" = no; then
|
---|
2905 | cat >> confdefs.h <<\EOF
|
---|
2906 | #define DISABLE_JAVA_NET 1
|
---|
2907 | EOF
|
---|
2908 |
|
---|
2909 | fi
|
---|
2910 |
|
---|
2911 | # Check whether --with-libffi or --without-libffi was given.
|
---|
2912 | if test "${with_libffi+set}" = set; then
|
---|
2913 | withval="$with_libffi"
|
---|
2914 | :
|
---|
2915 | else
|
---|
2916 | with_libffi=${with_libffi_default-yes}
|
---|
2917 | fi
|
---|
2918 |
|
---|
2919 |
|
---|
2920 | LIBFFI=
|
---|
2921 | LIBFFIINCS=
|
---|
2922 | if test "$with_libffi" != no; then
|
---|
2923 | cat >> confdefs.h <<\EOF
|
---|
2924 | #define USE_LIBFFI 1
|
---|
2925 | EOF
|
---|
2926 |
|
---|
2927 | LIBFFI=../libffi/libffi_convenience.la
|
---|
2928 | LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
|
---|
2929 | fi
|
---|
2930 |
|
---|
2931 |
|
---|
2932 |
|
---|
2933 | # Check whether --enable-jvmpi or --disable-jvmpi was given.
|
---|
2934 | if test "${enable_jvmpi+set}" = set; then
|
---|
2935 | enableval="$enable_jvmpi"
|
---|
2936 | :
|
---|
2937 | fi
|
---|
2938 |
|
---|
2939 |
|
---|
2940 | if test "$enable_jvmpi" != no; then
|
---|
2941 | cat >> confdefs.h <<\EOF
|
---|
2942 | #define ENABLE_JVMPI 1
|
---|
2943 | EOF
|
---|
2944 |
|
---|
2945 | fi
|
---|
2946 |
|
---|
2947 | TARGET_ECOS=${PROCESS-"no"}
|
---|
2948 | # Check whether --with-ecos or --without-ecos was given.
|
---|
2949 | if test "${with_ecos+set}" = set; then
|
---|
2950 | withval="$with_ecos"
|
---|
2951 | TARGET_ECOS="$with_ecos"
|
---|
2952 |
|
---|
2953 | fi
|
---|
2954 |
|
---|
2955 |
|
---|
2956 | PLATFORMOBJS=
|
---|
2957 | case "$TARGET_ECOS" in
|
---|
2958 | no) case "$host" in
|
---|
2959 | *mingw*)
|
---|
2960 | PLATFORM=Win32
|
---|
2961 | PLATFORMOBJS=win32.lo
|
---|
2962 | PLATFORMH=win32.h
|
---|
2963 |
|
---|
2964 | echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
|
---|
2965 | echo "configure:2966: checking whether 'ld' is at least 2.13" >&5
|
---|
2966 | LD_PROG=`$CC --print-prog-name=ld`
|
---|
2967 | LD_VERSION=`$LD_PROG --version`
|
---|
2968 | LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
---|
2969 | LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
|
---|
2970 | if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
|
---|
2971 | LD_OK="ok"
|
---|
2972 | else
|
---|
2973 | if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
|
---|
2974 | LD_OK="ok"
|
---|
2975 | fi
|
---|
2976 | fi
|
---|
2977 | if test "x$LD_OK" != x; then
|
---|
2978 | echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
|
---|
2979 | else
|
---|
2980 | echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
|
---|
2981 | echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
|
---|
2982 | cat >> confdefs.h <<\EOF
|
---|
2983 | #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
|
---|
2984 | EOF
|
---|
2985 |
|
---|
2986 | fi
|
---|
2987 | ;;
|
---|
2988 | *)
|
---|
2989 | PLATFORM=Posix
|
---|
2990 | PLATFORMOBJS=posix.lo
|
---|
2991 | PLATFORMH=posix.h
|
---|
2992 | ;;
|
---|
2993 | esac
|
---|
2994 | ;;
|
---|
2995 | *)
|
---|
2996 | PLATFORM=Ecos
|
---|
2997 | cat >> confdefs.h <<\EOF
|
---|
2998 | #define ECOS 1
|
---|
2999 | EOF
|
---|
3000 |
|
---|
3001 | PLATFORMOBJS=posix.lo
|
---|
3002 | PLATFORMH=posix.h
|
---|
3003 | ;;
|
---|
3004 | esac
|
---|
3005 |
|
---|
3006 |
|
---|
3007 |
|
---|
3008 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
3009 | echo "configure:3010: checking how to run the C preprocessor" >&5
|
---|
3010 | # On Suns, sometimes $CPP names a directory.
|
---|
3011 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3012 | CPP=
|
---|
3013 | fi
|
---|
3014 | if test -z "$CPP"; then
|
---|
3015 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
3016 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3017 | else
|
---|
3018 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
3019 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
3020 | CPP="${CC-cc} -E"
|
---|
3021 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3022 | # not just through cpp.
|
---|
3023 | cat > conftest.$ac_ext <<EOF
|
---|
3024 | #line 3025 "configure"
|
---|
3025 | #include "confdefs.h"
|
---|
3026 | #include <assert.h>
|
---|
3027 | Syntax Error
|
---|
3028 | EOF
|
---|
3029 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3030 | { (eval echo configure:3031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3031 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3032 | if test -z "$ac_err"; then
|
---|
3033 | :
|
---|
3034 | else
|
---|
3035 | echo "$ac_err" >&5
|
---|
3036 | echo "configure: failed program was:" >&5
|
---|
3037 | cat conftest.$ac_ext >&5
|
---|
3038 | rm -rf conftest*
|
---|
3039 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
3040 | cat > conftest.$ac_ext <<EOF
|
---|
3041 | #line 3042 "configure"
|
---|
3042 | #include "confdefs.h"
|
---|
3043 | #include <assert.h>
|
---|
3044 | Syntax Error
|
---|
3045 | EOF
|
---|
3046 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3047 | { (eval echo configure:3048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3048 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3049 | if test -z "$ac_err"; then
|
---|
3050 | :
|
---|
3051 | else
|
---|
3052 | echo "$ac_err" >&5
|
---|
3053 | echo "configure: failed program was:" >&5
|
---|
3054 | cat conftest.$ac_ext >&5
|
---|
3055 | rm -rf conftest*
|
---|
3056 | CPP="${CC-cc} -nologo -E"
|
---|
3057 | cat > conftest.$ac_ext <<EOF
|
---|
3058 | #line 3059 "configure"
|
---|
3059 | #include "confdefs.h"
|
---|
3060 | #include <assert.h>
|
---|
3061 | Syntax Error
|
---|
3062 | EOF
|
---|
3063 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3064 | { (eval echo configure:3065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3065 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3066 | if test -z "$ac_err"; then
|
---|
3067 | :
|
---|
3068 | else
|
---|
3069 | echo "$ac_err" >&5
|
---|
3070 | echo "configure: failed program was:" >&5
|
---|
3071 | cat conftest.$ac_ext >&5
|
---|
3072 | rm -rf conftest*
|
---|
3073 | CPP=/lib/cpp
|
---|
3074 | fi
|
---|
3075 | rm -f conftest*
|
---|
3076 | fi
|
---|
3077 | rm -f conftest*
|
---|
3078 | fi
|
---|
3079 | rm -f conftest*
|
---|
3080 | ac_cv_prog_CPP="$CPP"
|
---|
3081 | fi
|
---|
3082 | CPP="$ac_cv_prog_CPP"
|
---|
3083 | else
|
---|
3084 | ac_cv_prog_CPP="$CPP"
|
---|
3085 | fi
|
---|
3086 | echo "$ac_t""$CPP" 1>&6
|
---|
3087 |
|
---|
3088 | cat > conftest.$ac_ext <<EOF
|
---|
3089 | #line 3090 "configure"
|
---|
3090 | #include "confdefs.h"
|
---|
3091 | #include <stdint.h>
|
---|
3092 | EOF
|
---|
3093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3094 | egrep "uint32_t" >/dev/null 2>&1; then
|
---|
3095 | rm -rf conftest*
|
---|
3096 | cat >> confdefs.h <<\EOF
|
---|
3097 | #define HAVE_INT32_DEFINED 1
|
---|
3098 | EOF
|
---|
3099 |
|
---|
3100 | fi
|
---|
3101 | rm -f conftest*
|
---|
3102 |
|
---|
3103 | cat > conftest.$ac_ext <<EOF
|
---|
3104 | #line 3105 "configure"
|
---|
3105 | #include "confdefs.h"
|
---|
3106 | #include <inttypes.h>
|
---|
3107 | EOF
|
---|
3108 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3109 | egrep "uint32_t" >/dev/null 2>&1; then
|
---|
3110 | rm -rf conftest*
|
---|
3111 | cat >> confdefs.h <<\EOF
|
---|
3112 | #define HAVE_INT32_DEFINED 1
|
---|
3113 | EOF
|
---|
3114 |
|
---|
3115 | fi
|
---|
3116 | rm -f conftest*
|
---|
3117 |
|
---|
3118 | cat > conftest.$ac_ext <<EOF
|
---|
3119 | #line 3120 "configure"
|
---|
3120 | #include "confdefs.h"
|
---|
3121 | #include <sys/types.h>
|
---|
3122 | EOF
|
---|
3123 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3124 | egrep "u_int32_t" >/dev/null 2>&1; then
|
---|
3125 | rm -rf conftest*
|
---|
3126 | cat >> confdefs.h <<\EOF
|
---|
3127 | #define HAVE_BSD_INT32_DEFINED 1
|
---|
3128 | EOF
|
---|
3129 |
|
---|
3130 | fi
|
---|
3131 | rm -f conftest*
|
---|
3132 |
|
---|
3133 | cat > conftest.$ac_ext <<EOF
|
---|
3134 | #line 3135 "configure"
|
---|
3135 | #include "confdefs.h"
|
---|
3136 | #include <sys/config.h>
|
---|
3137 | EOF
|
---|
3138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3139 | egrep "u_int32_t" >/dev/null 2>&1; then
|
---|
3140 | rm -rf conftest*
|
---|
3141 | cat >> confdefs.h <<\EOF
|
---|
3142 | #define HAVE_BSD_INT32_DEFINED 1
|
---|
3143 | EOF
|
---|
3144 |
|
---|
3145 | fi
|
---|
3146 | rm -f conftest*
|
---|
3147 |
|
---|
3148 |
|
---|
3149 |
|
---|
3150 | cat > conftest.$ac_ext <<EOF
|
---|
3151 | #line 3152 "configure"
|
---|
3152 | #include "confdefs.h"
|
---|
3153 | #include <time.h>
|
---|
3154 | EOF
|
---|
3155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3156 | egrep "mktime" >/dev/null 2>&1; then
|
---|
3157 | rm -rf conftest*
|
---|
3158 | cat >> confdefs.h <<\EOF
|
---|
3159 | #define HAVE_MKTIME 1
|
---|
3160 | EOF
|
---|
3161 |
|
---|
3162 | fi
|
---|
3163 | rm -f conftest*
|
---|
3164 |
|
---|
3165 | cat > conftest.$ac_ext <<EOF
|
---|
3166 | #line 3167 "configure"
|
---|
3167 | #include "confdefs.h"
|
---|
3168 | #include <time.h>
|
---|
3169 | EOF
|
---|
3170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3171 | egrep "localtime" >/dev/null 2>&1; then
|
---|
3172 | rm -rf conftest*
|
---|
3173 | cat >> confdefs.h <<\EOF
|
---|
3174 | #define HAVE_LOCALTIME 1
|
---|
3175 | EOF
|
---|
3176 |
|
---|
3177 | fi
|
---|
3178 | rm -f conftest*
|
---|
3179 |
|
---|
3180 |
|
---|
3181 | test -d java || mkdir java
|
---|
3182 | test -d java/io || mkdir java/io
|
---|
3183 | test -d gnu || mkdir gnu
|
---|
3184 |
|
---|
3185 |
|
---|
3186 |
|
---|
3187 | test -d java/lang || mkdir java/lang
|
---|
3188 |
|
---|
3189 |
|
---|
3190 |
|
---|
3191 | case "${host}" in
|
---|
3192 | *mingw*)
|
---|
3193 | SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
|
---|
3194 | ;;
|
---|
3195 | *)
|
---|
3196 | SYSTEMSPEC=
|
---|
3197 | ;;
|
---|
3198 | esac
|
---|
3199 |
|
---|
3200 |
|
---|
3201 | LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
|
---|
3202 |
|
---|
3203 |
|
---|
3204 | # Check whether --with-system-zlib or --without-system-zlib was given.
|
---|
3205 | if test "${with_system_zlib+set}" = set; then
|
---|
3206 | withval="$with_system_zlib"
|
---|
3207 | :
|
---|
3208 | fi
|
---|
3209 |
|
---|
3210 | ZLIBSPEC=
|
---|
3211 |
|
---|
3212 | ZLIBTESTSPEC=
|
---|
3213 |
|
---|
3214 |
|
---|
3215 | libsubdir=.libs
|
---|
3216 |
|
---|
3217 | echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
|
---|
3218 | echo "configure:3219: checking for garbage collector to use" >&5
|
---|
3219 | # Check whether --enable-java-gc or --disable-java-gc was given.
|
---|
3220 | if test "${enable_java_gc+set}" = set; then
|
---|
3221 | enableval="$enable_java_gc"
|
---|
3222 |
|
---|
3223 | GC=$enableval
|
---|
3224 | else
|
---|
3225 | GC=boehm
|
---|
3226 | fi
|
---|
3227 |
|
---|
3228 | GCLIBS=
|
---|
3229 | GCINCS=
|
---|
3230 | GCDEPS=
|
---|
3231 | GCOBJS=
|
---|
3232 | GCSPEC=
|
---|
3233 | JC1GCSPEC=
|
---|
3234 | GCTESTSPEC=
|
---|
3235 | case "$GC" in
|
---|
3236 | boehm)
|
---|
3237 | echo "$ac_t""boehm" 1>&6
|
---|
3238 | GCLIBS=../boehm-gc/libgcjgc_convenience.la
|
---|
3239 | GCINCS='-I$(top_srcdir)/../boehm-gc/include'
|
---|
3240 | JC1GCSPEC='-fuse-boehm-gc'
|
---|
3241 | GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
|
---|
3242 |
|
---|
3243 | GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
|
---|
3244 | GCOBJS=boehm.lo
|
---|
3245 | GCHDR=boehm-gc.h
|
---|
3246 | cat >> confdefs.h <<\EOF
|
---|
3247 | #define HAVE_BOEHM_GC 1
|
---|
3248 | EOF
|
---|
3249 |
|
---|
3250 | ;;
|
---|
3251 | no)
|
---|
3252 | echo "$ac_t""none" 1>&6
|
---|
3253 | GCOBJS=nogc.lo
|
---|
3254 | GCHDR=no-gc.h
|
---|
3255 | ;;
|
---|
3256 | *)
|
---|
3257 | { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
|
---|
3258 | ;;
|
---|
3259 | esac
|
---|
3260 |
|
---|
3261 |
|
---|
3262 |
|
---|
3263 |
|
---|
3264 |
|
---|
3265 |
|
---|
3266 |
|
---|
3267 |
|
---|
3268 |
|
---|
3269 |
|
---|
3270 | echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
|
---|
3271 | echo "configure:3272: checking for thread model used by GCC" >&5
|
---|
3272 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
|
---|
3273 | echo "$ac_t""$THREADS" 1>&6
|
---|
3274 |
|
---|
3275 | case "$THREADS" in
|
---|
3276 | no | none | single)
|
---|
3277 | THREADS=none
|
---|
3278 | ;;
|
---|
3279 | posix | pthreads)
|
---|
3280 | THREADS=posix
|
---|
3281 | case "$host" in
|
---|
3282 | *-*-linux*)
|
---|
3283 | cat >> confdefs.h <<\EOF
|
---|
3284 | #define LINUX_THREADS 1
|
---|
3285 | EOF
|
---|
3286 |
|
---|
3287 | ;;
|
---|
3288 | esac
|
---|
3289 | ;;
|
---|
3290 | win32)
|
---|
3291 | ;;
|
---|
3292 | decosf1 | irix | mach | os2 | solaris | dce | vxworks)
|
---|
3293 | { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
|
---|
3294 | ;;
|
---|
3295 | *)
|
---|
3296 | { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
|
---|
3297 | ;;
|
---|
3298 | esac
|
---|
3299 |
|
---|
3300 | THREADLDFLAGS=
|
---|
3301 | THREADLIBS=
|
---|
3302 | THREADINCS=
|
---|
3303 | THREADDEPS=
|
---|
3304 | THREADOBJS=
|
---|
3305 | THREADH=
|
---|
3306 | THREADSPEC=
|
---|
3307 | case "$THREADS" in
|
---|
3308 | posix)
|
---|
3309 | case "$host" in
|
---|
3310 | *-*-cygwin*)
|
---|
3311 | # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
|
---|
3312 | ;;
|
---|
3313 |
|
---|
3314 | *-*-freebsd[1234]*)
|
---|
3315 |
|
---|
3316 | # Before FreeBSD 5, it didn't have -lpthread (or any library which
|
---|
3317 | # merely adds pthread_* functions) but it does have a -pthread switch
|
---|
3318 | # which is required at link-time to select -lc_r *instead* of -lc.
|
---|
3319 | THREADLDFLAGS=-pthread
|
---|
3320 | # Don't set THREADSPEC here as might be expected since -pthread is
|
---|
3321 | # not processed when found within a spec file, it must come from
|
---|
3322 | # the command line. For now, the user must provide the -pthread
|
---|
3323 | # switch to link code compiled with gcj. In future, consider adding
|
---|
3324 | # support for weak references to pthread_* functions ala gthr.h API.
|
---|
3325 | THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
|
---|
3326 | ;;
|
---|
3327 | *-*-freebsd*)
|
---|
3328 | # FreeBSD 5 implements a model much closer to other modern UNIX
|
---|
3329 | # which support threads. However, it still does not support
|
---|
3330 | # -lpthread.
|
---|
3331 | THREADLDFLAGS=-pthread
|
---|
3332 | THREADSPEC=-lc_r
|
---|
3333 | ;;
|
---|
3334 | *)
|
---|
3335 | THREADLIBS=-lpthread
|
---|
3336 | THREADSPEC=-lpthread
|
---|
3337 | ;;
|
---|
3338 | esac
|
---|
3339 | THREADOBJS=posix-threads.lo
|
---|
3340 | THREADH=posix-threads.h
|
---|
3341 | # MIT pthreads doesn't seem to have the mutexattr functions.
|
---|
3342 | # But for now we don't check for it. We just assume you aren't
|
---|
3343 | # using MIT pthreads.
|
---|
3344 | cat >> confdefs.h <<\EOF
|
---|
3345 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1
|
---|
3346 | EOF
|
---|
3347 |
|
---|
3348 |
|
---|
3349 | # If we're using the Boehm GC, then we happen to know that it
|
---|
3350 | # defines _REENTRANT, so we don't bother. Eww.
|
---|
3351 | if test "$GC" != boehm; then
|
---|
3352 | cat >> confdefs.h <<\EOF
|
---|
3353 | #define _REENTRANT 1
|
---|
3354 | EOF
|
---|
3355 |
|
---|
3356 | fi
|
---|
3357 | cat >> confdefs.h <<\EOF
|
---|
3358 | #define _POSIX_PTHREAD_SEMANTICS 1
|
---|
3359 | EOF
|
---|
3360 |
|
---|
3361 | ;;
|
---|
3362 |
|
---|
3363 | win32)
|
---|
3364 | THREADOBJS=win32-threads.lo
|
---|
3365 | THREADH=win32-threads.h
|
---|
3366 | ;;
|
---|
3367 |
|
---|
3368 | none)
|
---|
3369 | THREADOBJS=no-threads.lo
|
---|
3370 | THREADH=no-threads.h
|
---|
3371 | ;;
|
---|
3372 | esac
|
---|
3373 |
|
---|
3374 |
|
---|
3375 |
|
---|
3376 |
|
---|
3377 |
|
---|
3378 |
|
---|
3379 |
|
---|
3380 |
|
---|
3381 | if test -d sysdep; then true; else mkdir sysdep; fi
|
---|
3382 |
|
---|
3383 |
|
---|
3384 | HASH_SYNC_SPEC=
|
---|
3385 | # Hash synchronization is only useful with posix threads right now.
|
---|
3386 | if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
|
---|
3387 | HASH_SYNC_SPEC=-fhash-synchronization
|
---|
3388 | cat >> confdefs.h <<\EOF
|
---|
3389 | #define JV_HASH_SYNCHRONIZATION 1
|
---|
3390 | EOF
|
---|
3391 |
|
---|
3392 | fi
|
---|
3393 |
|
---|
3394 |
|
---|
3395 |
|
---|
3396 |
|
---|
3397 |
|
---|
3398 | if test "$GCC" = yes; then
|
---|
3399 | USING_GCC_TRUE=
|
---|
3400 | USING_GCC_FALSE='#'
|
---|
3401 | else
|
---|
3402 | USING_GCC_TRUE='#'
|
---|
3403 | USING_GCC_FALSE=
|
---|
3404 | fi
|
---|
3405 |
|
---|
3406 | CANADIAN=no
|
---|
3407 | NULL_TARGET=no
|
---|
3408 | NATIVE=yes
|
---|
3409 |
|
---|
3410 | # We're in the tree with gcc, and need to include some of its headers.
|
---|
3411 | GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
|
---|
3412 |
|
---|
3413 | # Figure out where generated headers like libgcj-config.h get installed.
|
---|
3414 | gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
|
---|
3415 | gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
|
---|
3416 | gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
|
---|
3417 | tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
|
---|
3418 |
|
---|
3419 |
|
---|
3420 |
|
---|
3421 | if test "x${with_newlib}" = "xyes"; then
|
---|
3422 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS
|
---|
3423 | # may not work correctly, because the compiler may not be able to
|
---|
3424 | # link executables.
|
---|
3425 |
|
---|
3426 | # We assume newlib. This lets us hard-code the functions we know
|
---|
3427 | # we'll have.
|
---|
3428 | cat >> confdefs.h <<\EOF
|
---|
3429 | #define HAVE_MEMMOVE 1
|
---|
3430 | EOF
|
---|
3431 |
|
---|
3432 | cat >> confdefs.h <<\EOF
|
---|
3433 | #define HAVE_MEMCPY 1
|
---|
3434 | EOF
|
---|
3435 |
|
---|
3436 | cat >> confdefs.h <<\EOF
|
---|
3437 | #define HAVE_STRERROR 1
|
---|
3438 | EOF
|
---|
3439 |
|
---|
3440 | cat >> confdefs.h <<\EOF
|
---|
3441 | #define HAVE_TIME 1
|
---|
3442 | EOF
|
---|
3443 |
|
---|
3444 | cat >> confdefs.h <<\EOF
|
---|
3445 | #define HAVE_GMTIME_R 1
|
---|
3446 | EOF
|
---|
3447 |
|
---|
3448 | cat >> confdefs.h <<\EOF
|
---|
3449 | #define HAVE_LOCALTIME_R 1
|
---|
3450 | EOF
|
---|
3451 |
|
---|
3452 | cat >> confdefs.h <<\EOF
|
---|
3453 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1
|
---|
3454 | EOF
|
---|
3455 |
|
---|
3456 | cat >> confdefs.h <<\EOF
|
---|
3457 | #define HAVE_ALLOCA 1
|
---|
3458 | EOF
|
---|
3459 |
|
---|
3460 |
|
---|
3461 | cat >> confdefs.h <<\EOF
|
---|
3462 | #define NO_GETUID 1
|
---|
3463 | EOF
|
---|
3464 |
|
---|
3465 |
|
---|
3466 | # If Canadian cross, then don't pick up tools from the build
|
---|
3467 | # directory.
|
---|
3468 | if test x"$build" != x"$with_cross_host" \
|
---|
3469 | && test x"$build" != x"$target"; then
|
---|
3470 | CANADIAN=yes
|
---|
3471 | GCC_UNWIND_INCLUDE=
|
---|
3472 | GCJ="${target_alias}-gcj"
|
---|
3473 | fi
|
---|
3474 | NATIVE=no
|
---|
3475 | else
|
---|
3476 | for ac_func in strerror ioctl select fstat open fsync sleep opendir
|
---|
3477 | do
|
---|
3478 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3479 | echo "configure:3480: checking for $ac_func" >&5
|
---|
3480 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3481 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3482 | else
|
---|
3483 | cat > conftest.$ac_ext <<EOF
|
---|
3484 | #line 3485 "configure"
|
---|
3485 | #include "confdefs.h"
|
---|
3486 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3487 | which can conflict with char $ac_func(); below. */
|
---|
3488 | #include <assert.h>
|
---|
3489 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3490 | /* We use char because int might match the return type of a gcc2
|
---|
3491 | builtin and then its argument prototype would still apply. */
|
---|
3492 | char $ac_func();
|
---|
3493 |
|
---|
3494 | int main() {
|
---|
3495 |
|
---|
3496 | /* The GNU C library defines this for functions which it implements
|
---|
3497 | to always fail with ENOSYS. Some functions are actually named
|
---|
3498 | something starting with __ and the normal name is an alias. */
|
---|
3499 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3500 | choke me
|
---|
3501 | #else
|
---|
3502 | $ac_func();
|
---|
3503 | #endif
|
---|
3504 |
|
---|
3505 | ; return 0; }
|
---|
3506 | EOF
|
---|
3507 | if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3508 | rm -rf conftest*
|
---|
3509 | eval "ac_cv_func_$ac_func=yes"
|
---|
3510 | else
|
---|
3511 | echo "configure: failed program was:" >&5
|
---|
3512 | cat conftest.$ac_ext >&5
|
---|
3513 | rm -rf conftest*
|
---|
3514 | eval "ac_cv_func_$ac_func=no"
|
---|
3515 | fi
|
---|
3516 | rm -f conftest*
|
---|
3517 | fi
|
---|
3518 |
|
---|
3519 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3520 | echo "$ac_t""yes" 1>&6
|
---|
3521 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3522 | cat >> confdefs.h <<EOF
|
---|
3523 | #define $ac_tr_func 1
|
---|
3524 | EOF
|
---|
3525 |
|
---|
3526 | else
|
---|
3527 | echo "$ac_t""no" 1>&6
|
---|
3528 | fi
|
---|
3529 | done
|
---|
3530 |
|
---|
3531 | for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
|
---|
3532 | do
|
---|
3533 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3534 | echo "configure:3535: checking for $ac_func" >&5
|
---|
3535 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3536 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3537 | else
|
---|
3538 | cat > conftest.$ac_ext <<EOF
|
---|
3539 | #line 3540 "configure"
|
---|
3540 | #include "confdefs.h"
|
---|
3541 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3542 | which can conflict with char $ac_func(); below. */
|
---|
3543 | #include <assert.h>
|
---|
3544 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3545 | /* We use char because int might match the return type of a gcc2
|
---|
3546 | builtin and then its argument prototype would still apply. */
|
---|
3547 | char $ac_func();
|
---|
3548 |
|
---|
3549 | int main() {
|
---|
3550 |
|
---|
3551 | /* The GNU C library defines this for functions which it implements
|
---|
3552 | to always fail with ENOSYS. Some functions are actually named
|
---|
3553 | something starting with __ and the normal name is an alias. */
|
---|
3554 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3555 | choke me
|
---|
3556 | #else
|
---|
3557 | $ac_func();
|
---|
3558 | #endif
|
---|
3559 |
|
---|
3560 | ; return 0; }
|
---|
3561 | EOF
|
---|
3562 | if { (eval echo configure:3563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3563 | rm -rf conftest*
|
---|
3564 | eval "ac_cv_func_$ac_func=yes"
|
---|
3565 | else
|
---|
3566 | echo "configure: failed program was:" >&5
|
---|
3567 | cat conftest.$ac_ext >&5
|
---|
3568 | rm -rf conftest*
|
---|
3569 | eval "ac_cv_func_$ac_func=no"
|
---|
3570 | fi
|
---|
3571 | rm -f conftest*
|
---|
3572 | fi
|
---|
3573 |
|
---|
3574 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3575 | echo "$ac_t""yes" 1>&6
|
---|
3576 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3577 | cat >> confdefs.h <<EOF
|
---|
3578 | #define $ac_tr_func 1
|
---|
3579 | EOF
|
---|
3580 |
|
---|
3581 | else
|
---|
3582 | echo "$ac_t""no" 1>&6
|
---|
3583 | fi
|
---|
3584 | done
|
---|
3585 |
|
---|
3586 | for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
|
---|
3587 | do
|
---|
3588 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3589 | echo "configure:3590: checking for $ac_func" >&5
|
---|
3590 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3591 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3592 | else
|
---|
3593 | cat > conftest.$ac_ext <<EOF
|
---|
3594 | #line 3595 "configure"
|
---|
3595 | #include "confdefs.h"
|
---|
3596 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3597 | which can conflict with char $ac_func(); below. */
|
---|
3598 | #include <assert.h>
|
---|
3599 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3600 | /* We use char because int might match the return type of a gcc2
|
---|
3601 | builtin and then its argument prototype would still apply. */
|
---|
3602 | char $ac_func();
|
---|
3603 |
|
---|
3604 | int main() {
|
---|
3605 |
|
---|
3606 | /* The GNU C library defines this for functions which it implements
|
---|
3607 | to always fail with ENOSYS. Some functions are actually named
|
---|
3608 | something starting with __ and the normal name is an alias. */
|
---|
3609 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3610 | choke me
|
---|
3611 | #else
|
---|
3612 | $ac_func();
|
---|
3613 | #endif
|
---|
3614 |
|
---|
3615 | ; return 0; }
|
---|
3616 | EOF
|
---|
3617 | if { (eval echo configure:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3618 | rm -rf conftest*
|
---|
3619 | eval "ac_cv_func_$ac_func=yes"
|
---|
3620 | else
|
---|
3621 | echo "configure: failed program was:" >&5
|
---|
3622 | cat conftest.$ac_ext >&5
|
---|
3623 | rm -rf conftest*
|
---|
3624 | eval "ac_cv_func_$ac_func=no"
|
---|
3625 | fi
|
---|
3626 | rm -f conftest*
|
---|
3627 | fi
|
---|
3628 |
|
---|
3629 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3630 | echo "$ac_t""yes" 1>&6
|
---|
3631 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3632 | cat >> confdefs.h <<EOF
|
---|
3633 | #define $ac_tr_func 1
|
---|
3634 | EOF
|
---|
3635 |
|
---|
3636 | else
|
---|
3637 | echo "$ac_t""no" 1>&6
|
---|
3638 | fi
|
---|
3639 | done
|
---|
3640 |
|
---|
3641 | for ac_func in nl_langinfo setlocale
|
---|
3642 | do
|
---|
3643 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3644 | echo "configure:3645: checking for $ac_func" >&5
|
---|
3645 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3646 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3647 | else
|
---|
3648 | cat > conftest.$ac_ext <<EOF
|
---|
3649 | #line 3650 "configure"
|
---|
3650 | #include "confdefs.h"
|
---|
3651 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3652 | which can conflict with char $ac_func(); below. */
|
---|
3653 | #include <assert.h>
|
---|
3654 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3655 | /* We use char because int might match the return type of a gcc2
|
---|
3656 | builtin and then its argument prototype would still apply. */
|
---|
3657 | char $ac_func();
|
---|
3658 |
|
---|
3659 | int main() {
|
---|
3660 |
|
---|
3661 | /* The GNU C library defines this for functions which it implements
|
---|
3662 | to always fail with ENOSYS. Some functions are actually named
|
---|
3663 | something starting with __ and the normal name is an alias. */
|
---|
3664 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3665 | choke me
|
---|
3666 | #else
|
---|
3667 | $ac_func();
|
---|
3668 | #endif
|
---|
3669 |
|
---|
3670 | ; return 0; }
|
---|
3671 | EOF
|
---|
3672 | if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3673 | rm -rf conftest*
|
---|
3674 | eval "ac_cv_func_$ac_func=yes"
|
---|
3675 | else
|
---|
3676 | echo "configure: failed program was:" >&5
|
---|
3677 | cat conftest.$ac_ext >&5
|
---|
3678 | rm -rf conftest*
|
---|
3679 | eval "ac_cv_func_$ac_func=no"
|
---|
3680 | fi
|
---|
3681 | rm -f conftest*
|
---|
3682 | fi
|
---|
3683 |
|
---|
3684 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3685 | echo "$ac_t""yes" 1>&6
|
---|
3686 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3687 | cat >> confdefs.h <<EOF
|
---|
3688 | #define $ac_tr_func 1
|
---|
3689 | EOF
|
---|
3690 |
|
---|
3691 | else
|
---|
3692 | echo "$ac_t""no" 1>&6
|
---|
3693 | fi
|
---|
3694 | done
|
---|
3695 |
|
---|
3696 | for ac_func in inet_aton inet_addr
|
---|
3697 | do
|
---|
3698 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3699 | echo "configure:3700: checking for $ac_func" >&5
|
---|
3700 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3701 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3702 | else
|
---|
3703 | cat > conftest.$ac_ext <<EOF
|
---|
3704 | #line 3705 "configure"
|
---|
3705 | #include "confdefs.h"
|
---|
3706 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3707 | which can conflict with char $ac_func(); below. */
|
---|
3708 | #include <assert.h>
|
---|
3709 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3710 | /* We use char because int might match the return type of a gcc2
|
---|
3711 | builtin and then its argument prototype would still apply. */
|
---|
3712 | char $ac_func();
|
---|
3713 |
|
---|
3714 | int main() {
|
---|
3715 |
|
---|
3716 | /* The GNU C library defines this for functions which it implements
|
---|
3717 | to always fail with ENOSYS. Some functions are actually named
|
---|
3718 | something starting with __ and the normal name is an alias. */
|
---|
3719 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3720 | choke me
|
---|
3721 | #else
|
---|
3722 | $ac_func();
|
---|
3723 | #endif
|
---|
3724 |
|
---|
3725 | ; return 0; }
|
---|
3726 | EOF
|
---|
3727 | if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3728 | rm -rf conftest*
|
---|
3729 | eval "ac_cv_func_$ac_func=yes"
|
---|
3730 | else
|
---|
3731 | echo "configure: failed program was:" >&5
|
---|
3732 | cat conftest.$ac_ext >&5
|
---|
3733 | rm -rf conftest*
|
---|
3734 | eval "ac_cv_func_$ac_func=no"
|
---|
3735 | fi
|
---|
3736 | rm -f conftest*
|
---|
3737 | fi
|
---|
3738 |
|
---|
3739 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3740 | echo "$ac_t""yes" 1>&6
|
---|
3741 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3742 | cat >> confdefs.h <<EOF
|
---|
3743 | #define $ac_tr_func 1
|
---|
3744 | EOF
|
---|
3745 | break
|
---|
3746 | else
|
---|
3747 | echo "$ac_t""no" 1>&6
|
---|
3748 | fi
|
---|
3749 | done
|
---|
3750 |
|
---|
3751 | for ac_func in inet_pton uname inet_ntoa
|
---|
3752 | do
|
---|
3753 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3754 | echo "configure:3755: checking for $ac_func" >&5
|
---|
3755 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3756 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3757 | else
|
---|
3758 | cat > conftest.$ac_ext <<EOF
|
---|
3759 | #line 3760 "configure"
|
---|
3760 | #include "confdefs.h"
|
---|
3761 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3762 | which can conflict with char $ac_func(); below. */
|
---|
3763 | #include <assert.h>
|
---|
3764 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3765 | /* We use char because int might match the return type of a gcc2
|
---|
3766 | builtin and then its argument prototype would still apply. */
|
---|
3767 | char $ac_func();
|
---|
3768 |
|
---|
3769 | int main() {
|
---|
3770 |
|
---|
3771 | /* The GNU C library defines this for functions which it implements
|
---|
3772 | to always fail with ENOSYS. Some functions are actually named
|
---|
3773 | something starting with __ and the normal name is an alias. */
|
---|
3774 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3775 | choke me
|
---|
3776 | #else
|
---|
3777 | $ac_func();
|
---|
3778 | #endif
|
---|
3779 |
|
---|
3780 | ; return 0; }
|
---|
3781 | EOF
|
---|
3782 | if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3783 | rm -rf conftest*
|
---|
3784 | eval "ac_cv_func_$ac_func=yes"
|
---|
3785 | else
|
---|
3786 | echo "configure: failed program was:" >&5
|
---|
3787 | cat conftest.$ac_ext >&5
|
---|
3788 | rm -rf conftest*
|
---|
3789 | eval "ac_cv_func_$ac_func=no"
|
---|
3790 | fi
|
---|
3791 | rm -f conftest*
|
---|
3792 | fi
|
---|
3793 |
|
---|
3794 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3795 | echo "$ac_t""yes" 1>&6
|
---|
3796 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3797 | cat >> confdefs.h <<EOF
|
---|
3798 | #define $ac_tr_func 1
|
---|
3799 | EOF
|
---|
3800 |
|
---|
3801 | else
|
---|
3802 | echo "$ac_t""no" 1>&6
|
---|
3803 | fi
|
---|
3804 | done
|
---|
3805 |
|
---|
3806 | for ac_func in fork execvp pipe sigaction ftruncate
|
---|
3807 | do
|
---|
3808 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3809 | echo "configure:3810: checking for $ac_func" >&5
|
---|
3810 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3811 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3812 | else
|
---|
3813 | cat > conftest.$ac_ext <<EOF
|
---|
3814 | #line 3815 "configure"
|
---|
3815 | #include "confdefs.h"
|
---|
3816 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3817 | which can conflict with char $ac_func(); below. */
|
---|
3818 | #include <assert.h>
|
---|
3819 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3820 | /* We use char because int might match the return type of a gcc2
|
---|
3821 | builtin and then its argument prototype would still apply. */
|
---|
3822 | char $ac_func();
|
---|
3823 |
|
---|
3824 | int main() {
|
---|
3825 |
|
---|
3826 | /* The GNU C library defines this for functions which it implements
|
---|
3827 | to always fail with ENOSYS. Some functions are actually named
|
---|
3828 | something starting with __ and the normal name is an alias. */
|
---|
3829 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3830 | choke me
|
---|
3831 | #else
|
---|
3832 | $ac_func();
|
---|
3833 | #endif
|
---|
3834 |
|
---|
3835 | ; return 0; }
|
---|
3836 | EOF
|
---|
3837 | if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3838 | rm -rf conftest*
|
---|
3839 | eval "ac_cv_func_$ac_func=yes"
|
---|
3840 | else
|
---|
3841 | echo "configure: failed program was:" >&5
|
---|
3842 | cat conftest.$ac_ext >&5
|
---|
3843 | rm -rf conftest*
|
---|
3844 | eval "ac_cv_func_$ac_func=no"
|
---|
3845 | fi
|
---|
3846 | rm -f conftest*
|
---|
3847 | fi
|
---|
3848 |
|
---|
3849 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3850 | echo "$ac_t""yes" 1>&6
|
---|
3851 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3852 | cat >> confdefs.h <<EOF
|
---|
3853 | #define $ac_tr_func 1
|
---|
3854 | EOF
|
---|
3855 |
|
---|
3856 | else
|
---|
3857 | echo "$ac_t""no" 1>&6
|
---|
3858 | fi
|
---|
3859 | done
|
---|
3860 |
|
---|
3861 | for ac_hdr in execinfo.h unistd.h dlfcn.h
|
---|
3862 | do
|
---|
3863 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3864 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3865 | echo "configure:3866: checking for $ac_hdr" >&5
|
---|
3866 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3867 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3868 | else
|
---|
3869 | cat > conftest.$ac_ext <<EOF
|
---|
3870 | #line 3871 "configure"
|
---|
3871 | #include "confdefs.h"
|
---|
3872 | #include <$ac_hdr>
|
---|
3873 | EOF
|
---|
3874 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3875 | { (eval echo configure:3876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3876 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3877 | if test -z "$ac_err"; then
|
---|
3878 | rm -rf conftest*
|
---|
3879 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3880 | else
|
---|
3881 | echo "$ac_err" >&5
|
---|
3882 | echo "configure: failed program was:" >&5
|
---|
3883 | cat conftest.$ac_ext >&5
|
---|
3884 | rm -rf conftest*
|
---|
3885 | eval "ac_cv_header_$ac_safe=no"
|
---|
3886 | fi
|
---|
3887 | rm -f conftest*
|
---|
3888 | fi
|
---|
3889 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3890 | echo "$ac_t""yes" 1>&6
|
---|
3891 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3892 | cat >> confdefs.h <<EOF
|
---|
3893 | #define $ac_tr_hdr 1
|
---|
3894 | EOF
|
---|
3895 |
|
---|
3896 | else
|
---|
3897 | echo "$ac_t""no" 1>&6
|
---|
3898 | fi
|
---|
3899 | done
|
---|
3900 |
|
---|
3901 | echo $ac_n "checking for backtrace""... $ac_c" 1>&6
|
---|
3902 | echo "configure:3903: checking for backtrace" >&5
|
---|
3903 | if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
|
---|
3904 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3905 | else
|
---|
3906 | cat > conftest.$ac_ext <<EOF
|
---|
3907 | #line 3908 "configure"
|
---|
3908 | #include "confdefs.h"
|
---|
3909 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3910 | which can conflict with char backtrace(); below. */
|
---|
3911 | #include <assert.h>
|
---|
3912 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3913 | /* We use char because int might match the return type of a gcc2
|
---|
3914 | builtin and then its argument prototype would still apply. */
|
---|
3915 | char backtrace();
|
---|
3916 |
|
---|
3917 | int main() {
|
---|
3918 |
|
---|
3919 | /* The GNU C library defines this for functions which it implements
|
---|
3920 | to always fail with ENOSYS. Some functions are actually named
|
---|
3921 | something starting with __ and the normal name is an alias. */
|
---|
3922 | #if defined (__stub_backtrace) || defined (__stub___backtrace)
|
---|
3923 | choke me
|
---|
3924 | #else
|
---|
3925 | backtrace();
|
---|
3926 | #endif
|
---|
3927 |
|
---|
3928 | ; return 0; }
|
---|
3929 | EOF
|
---|
3930 | if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3931 | rm -rf conftest*
|
---|
3932 | eval "ac_cv_func_backtrace=yes"
|
---|
3933 | else
|
---|
3934 | echo "configure: failed program was:" >&5
|
---|
3935 | cat conftest.$ac_ext >&5
|
---|
3936 | rm -rf conftest*
|
---|
3937 | eval "ac_cv_func_backtrace=no"
|
---|
3938 | fi
|
---|
3939 | rm -f conftest*
|
---|
3940 | fi
|
---|
3941 |
|
---|
3942 | if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
|
---|
3943 | echo "$ac_t""yes" 1>&6
|
---|
3944 |
|
---|
3945 | case "$host" in
|
---|
3946 | ia64-*-linux*)
|
---|
3947 | # Has broken backtrace()
|
---|
3948 | ;;
|
---|
3949 | *)
|
---|
3950 | cat >> confdefs.h <<\EOF
|
---|
3951 | #define HAVE_BACKTRACE 1
|
---|
3952 | EOF
|
---|
3953 |
|
---|
3954 | ;;
|
---|
3955 | esac
|
---|
3956 |
|
---|
3957 | else
|
---|
3958 | echo "$ac_t""no" 1>&6
|
---|
3959 |
|
---|
3960 | case "$host" in
|
---|
3961 | *mingw*)
|
---|
3962 | # Has backtrace() defined in libgcj itself
|
---|
3963 | cat >> confdefs.h <<\EOF
|
---|
3964 | #define HAVE_BACKTRACE 1
|
---|
3965 | EOF
|
---|
3966 |
|
---|
3967 | ;;
|
---|
3968 | esac
|
---|
3969 |
|
---|
3970 | fi
|
---|
3971 |
|
---|
3972 |
|
---|
3973 | echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
|
---|
3974 | echo "configure:3975: checking for dladdr in -ldl" >&5
|
---|
3975 | ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
|
---|
3976 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3977 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3978 | else
|
---|
3979 | ac_save_LIBS="$LIBS"
|
---|
3980 | LIBS="-ldl $LIBS"
|
---|
3981 | cat > conftest.$ac_ext <<EOF
|
---|
3982 | #line 3983 "configure"
|
---|
3983 | #include "confdefs.h"
|
---|
3984 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3985 | /* We use char because int might match the return type of a gcc2
|
---|
3986 | builtin and then its argument prototype would still apply. */
|
---|
3987 | char dladdr();
|
---|
3988 |
|
---|
3989 | int main() {
|
---|
3990 | dladdr()
|
---|
3991 | ; return 0; }
|
---|
3992 | EOF
|
---|
3993 | if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3994 | rm -rf conftest*
|
---|
3995 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3996 | else
|
---|
3997 | echo "configure: failed program was:" >&5
|
---|
3998 | cat conftest.$ac_ext >&5
|
---|
3999 | rm -rf conftest*
|
---|
4000 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4001 | fi
|
---|
4002 | rm -f conftest*
|
---|
4003 | LIBS="$ac_save_LIBS"
|
---|
4004 |
|
---|
4005 | fi
|
---|
4006 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4007 | echo "$ac_t""yes" 1>&6
|
---|
4008 |
|
---|
4009 | cat >> confdefs.h <<\EOF
|
---|
4010 | #define HAVE_DLADDR 1
|
---|
4011 | EOF
|
---|
4012 |
|
---|
4013 | else
|
---|
4014 | echo "$ac_t""no" 1>&6
|
---|
4015 | fi
|
---|
4016 |
|
---|
4017 | if test x"$build" = x"$host"; then
|
---|
4018 | for ac_file in /proc/self/exe
|
---|
4019 | do
|
---|
4020 |
|
---|
4021 | ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
|
---|
4022 | echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
|
---|
4023 | echo "configure:4024: checking for $ac_file" >&5
|
---|
4024 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
|
---|
4025 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4026 | else
|
---|
4027 | if test "$cross_compiling" = yes; then
|
---|
4028 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
|
---|
4029 | else
|
---|
4030 | if test -r $ac_file; then
|
---|
4031 | eval "ac_cv_file_$ac_safe=yes"
|
---|
4032 | else
|
---|
4033 | eval "ac_cv_file_$ac_safe=no"
|
---|
4034 | fi
|
---|
4035 | fi
|
---|
4036 | fi
|
---|
4037 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
|
---|
4038 | echo "$ac_t""yes" 1>&6
|
---|
4039 | ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4040 | cat >> confdefs.h <<EOF
|
---|
4041 | #define $ac_tr_file 1
|
---|
4042 | EOF
|
---|
4043 |
|
---|
4044 | cat >> confdefs.h <<\EOF
|
---|
4045 | #define HAVE_PROC_SELF_EXE 1
|
---|
4046 | EOF
|
---|
4047 |
|
---|
4048 | else
|
---|
4049 | echo "$ac_t""no" 1>&6
|
---|
4050 |
|
---|
4051 | fi
|
---|
4052 | done
|
---|
4053 |
|
---|
4054 | else
|
---|
4055 | case $host in
|
---|
4056 | *-linux*)
|
---|
4057 | cat >> confdefs.h <<\EOF
|
---|
4058 | #define HAVE_PROC_SELF_EXE 1
|
---|
4059 | EOF
|
---|
4060 |
|
---|
4061 | ;;
|
---|
4062 | esac
|
---|
4063 | fi
|
---|
4064 |
|
---|
4065 |
|
---|
4066 |
|
---|
4067 | am_cv_lib_iconv_ldpath=
|
---|
4068 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
|
---|
4069 | if test "${with_libiconv_prefix+set}" = set; then
|
---|
4070 | withval="$with_libiconv_prefix"
|
---|
4071 |
|
---|
4072 | for dir in `echo "$withval" | tr : ' '`; do
|
---|
4073 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
---|
4074 | if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
|
---|
4075 | done
|
---|
4076 |
|
---|
4077 | fi
|
---|
4078 |
|
---|
4079 |
|
---|
4080 | echo $ac_n "checking for iconv""... $ac_c" 1>&6
|
---|
4081 | echo "configure:4082: checking for iconv" >&5
|
---|
4082 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
|
---|
4083 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4084 | else
|
---|
4085 |
|
---|
4086 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
---|
4087 | am_cv_lib_iconv=no
|
---|
4088 | cat > conftest.$ac_ext <<EOF
|
---|
4089 | #line 4090 "configure"
|
---|
4090 | #include "confdefs.h"
|
---|
4091 | #include <stdlib.h>
|
---|
4092 | #include <iconv.h>
|
---|
4093 | int main() {
|
---|
4094 | iconv_t cd = iconv_open("","");
|
---|
4095 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
4096 | iconv_close(cd);
|
---|
4097 | ; return 0; }
|
---|
4098 | EOF
|
---|
4099 | if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4100 | rm -rf conftest*
|
---|
4101 | am_cv_func_iconv=yes
|
---|
4102 | else
|
---|
4103 | echo "configure: failed program was:" >&5
|
---|
4104 | cat conftest.$ac_ext >&5
|
---|
4105 | fi
|
---|
4106 | rm -f conftest*
|
---|
4107 | if test "$am_cv_func_iconv" != yes; then
|
---|
4108 | am_save_LIBS="$LIBS"
|
---|
4109 | LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
|
---|
4110 | cat > conftest.$ac_ext <<EOF
|
---|
4111 | #line 4112 "configure"
|
---|
4112 | #include "confdefs.h"
|
---|
4113 | #include <stdlib.h>
|
---|
4114 | #include <iconv.h>
|
---|
4115 | int main() {
|
---|
4116 | iconv_t cd = iconv_open("","");
|
---|
4117 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
4118 | iconv_close(cd);
|
---|
4119 | ; return 0; }
|
---|
4120 | EOF
|
---|
4121 | if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4122 | rm -rf conftest*
|
---|
4123 | am_cv_lib_iconv=yes
|
---|
4124 | am_cv_func_iconv=yes
|
---|
4125 | else
|
---|
4126 | echo "configure: failed program was:" >&5
|
---|
4127 | cat conftest.$ac_ext >&5
|
---|
4128 | fi
|
---|
4129 | rm -f conftest*
|
---|
4130 | LIBS="$am_save_LIBS"
|
---|
4131 | fi
|
---|
4132 |
|
---|
4133 | fi
|
---|
4134 |
|
---|
4135 | echo "$ac_t""$am_cv_func_iconv" 1>&6
|
---|
4136 | if test "$am_cv_func_iconv" = yes; then
|
---|
4137 | cat >> confdefs.h <<\EOF
|
---|
4138 | #define HAVE_ICONV 1
|
---|
4139 | EOF
|
---|
4140 |
|
---|
4141 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
|
---|
4142 | echo "configure:4143: checking for iconv declaration" >&5
|
---|
4143 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
|
---|
4144 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4145 | else
|
---|
4146 |
|
---|
4147 | cat > conftest.$ac_ext <<EOF
|
---|
4148 | #line 4149 "configure"
|
---|
4149 | #include "confdefs.h"
|
---|
4150 |
|
---|
4151 | #include <stdlib.h>
|
---|
4152 | #include <iconv.h>
|
---|
4153 | extern
|
---|
4154 | #ifdef __cplusplus
|
---|
4155 | "C"
|
---|
4156 | #endif
|
---|
4157 | #if defined(__STDC__) || defined(__cplusplus)
|
---|
4158 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
---|
4159 | #else
|
---|
4160 | size_t iconv();
|
---|
4161 | #endif
|
---|
4162 |
|
---|
4163 | int main() {
|
---|
4164 |
|
---|
4165 | ; return 0; }
|
---|
4166 | EOF
|
---|
4167 | if { (eval echo configure:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4168 | rm -rf conftest*
|
---|
4169 | am_cv_proto_iconv_arg1=""
|
---|
4170 | else
|
---|
4171 | echo "configure: failed program was:" >&5
|
---|
4172 | cat conftest.$ac_ext >&5
|
---|
4173 | rm -rf conftest*
|
---|
4174 | am_cv_proto_iconv_arg1="const"
|
---|
4175 | fi
|
---|
4176 | rm -f conftest*
|
---|
4177 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
|
---|
4178 | fi
|
---|
4179 |
|
---|
4180 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
---|
4181 | echo "$ac_t""${ac_t:-
|
---|
4182 | }$am_cv_proto_iconv" 1>&6
|
---|
4183 | cat >> confdefs.h <<EOF
|
---|
4184 | #define ICONV_CONST $am_cv_proto_iconv_arg1
|
---|
4185 | EOF
|
---|
4186 |
|
---|
4187 | fi
|
---|
4188 | LIBICONV=
|
---|
4189 | if test "$am_cv_lib_iconv" = yes; then
|
---|
4190 | LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
|
---|
4191 | fi
|
---|
4192 |
|
---|
4193 |
|
---|
4194 | if test $ac_cv_header_locale_h = yes; then
|
---|
4195 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
4196 | echo "configure:4197: checking for LC_MESSAGES" >&5
|
---|
4197 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
4198 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4199 | else
|
---|
4200 | cat > conftest.$ac_ext <<EOF
|
---|
4201 | #line 4202 "configure"
|
---|
4202 | #include "confdefs.h"
|
---|
4203 | #include <locale.h>
|
---|
4204 | int main() {
|
---|
4205 | return LC_MESSAGES
|
---|
4206 | ; return 0; }
|
---|
4207 | EOF
|
---|
4208 | if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4209 | rm -rf conftest*
|
---|
4210 | am_cv_val_LC_MESSAGES=yes
|
---|
4211 | else
|
---|
4212 | echo "configure: failed program was:" >&5
|
---|
4213 | cat conftest.$ac_ext >&5
|
---|
4214 | rm -rf conftest*
|
---|
4215 | am_cv_val_LC_MESSAGES=no
|
---|
4216 | fi
|
---|
4217 | rm -f conftest*
|
---|
4218 | fi
|
---|
4219 |
|
---|
4220 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
4221 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
4222 | cat >> confdefs.h <<\EOF
|
---|
4223 | #define HAVE_LC_MESSAGES 1
|
---|
4224 | EOF
|
---|
4225 |
|
---|
4226 | fi
|
---|
4227 | fi
|
---|
4228 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
---|
4229 | echo "configure:4230: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
4230 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
---|
4231 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4232 | else
|
---|
4233 | cat > conftest.$ac_ext <<EOF
|
---|
4234 | #line 4235 "configure"
|
---|
4235 | #include "confdefs.h"
|
---|
4236 | #include <sys/types.h>
|
---|
4237 | #include <time.h>
|
---|
4238 | int main() {
|
---|
4239 | struct tm *tp; tp->tm_sec;
|
---|
4240 | ; return 0; }
|
---|
4241 | EOF
|
---|
4242 | if { (eval echo configure:4243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4243 | rm -rf conftest*
|
---|
4244 | ac_cv_struct_tm=time.h
|
---|
4245 | else
|
---|
4246 | echo "configure: failed program was:" >&5
|
---|
4247 | cat conftest.$ac_ext >&5
|
---|
4248 | rm -rf conftest*
|
---|
4249 | ac_cv_struct_tm=sys/time.h
|
---|
4250 | fi
|
---|
4251 | rm -f conftest*
|
---|
4252 | fi
|
---|
4253 |
|
---|
4254 | echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
---|
4255 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
4256 | cat >> confdefs.h <<\EOF
|
---|
4257 | #define TM_IN_SYS_TIME 1
|
---|
4258 | EOF
|
---|
4259 |
|
---|
4260 | fi
|
---|
4261 |
|
---|
4262 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
---|
4263 | echo "configure:4264: checking for tm_zone in struct tm" >&5
|
---|
4264 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
|
---|
4265 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4266 | else
|
---|
4267 | cat > conftest.$ac_ext <<EOF
|
---|
4268 | #line 4269 "configure"
|
---|
4269 | #include "confdefs.h"
|
---|
4270 | #include <sys/types.h>
|
---|
4271 | #include <$ac_cv_struct_tm>
|
---|
4272 | int main() {
|
---|
4273 | struct tm tm; tm.tm_zone;
|
---|
4274 | ; return 0; }
|
---|
4275 | EOF
|
---|
4276 | if { (eval echo configure:4277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4277 | rm -rf conftest*
|
---|
4278 | ac_cv_struct_tm_zone=yes
|
---|
4279 | else
|
---|
4280 | echo "configure: failed program was:" >&5
|
---|
4281 | cat conftest.$ac_ext >&5
|
---|
4282 | rm -rf conftest*
|
---|
4283 | ac_cv_struct_tm_zone=no
|
---|
4284 | fi
|
---|
4285 | rm -f conftest*
|
---|
4286 | fi
|
---|
4287 |
|
---|
4288 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
---|
4289 | if test "$ac_cv_struct_tm_zone" = yes; then
|
---|
4290 | cat >> confdefs.h <<\EOF
|
---|
4291 | #define HAVE_TM_ZONE 1
|
---|
4292 | EOF
|
---|
4293 |
|
---|
4294 | else
|
---|
4295 | echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
---|
4296 | echo "configure:4297: checking for tzname" >&5
|
---|
4297 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
|
---|
4298 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4299 | else
|
---|
4300 | cat > conftest.$ac_ext <<EOF
|
---|
4301 | #line 4302 "configure"
|
---|
4302 | #include "confdefs.h"
|
---|
4303 | #include <time.h>
|
---|
4304 | #ifndef tzname /* For SGI. */
|
---|
4305 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
---|
4306 | #endif
|
---|
4307 | int main() {
|
---|
4308 | atoi(*tzname);
|
---|
4309 | ; return 0; }
|
---|
4310 | EOF
|
---|
4311 | if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4312 | rm -rf conftest*
|
---|
4313 | ac_cv_var_tzname=yes
|
---|
4314 | else
|
---|
4315 | echo "configure: failed program was:" >&5
|
---|
4316 | cat conftest.$ac_ext >&5
|
---|
4317 | rm -rf conftest*
|
---|
4318 | ac_cv_var_tzname=no
|
---|
4319 | fi
|
---|
4320 | rm -f conftest*
|
---|
4321 | fi
|
---|
4322 |
|
---|
4323 | echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
---|
4324 | if test $ac_cv_var_tzname = yes; then
|
---|
4325 | cat >> confdefs.h <<\EOF
|
---|
4326 | #define HAVE_TZNAME 1
|
---|
4327 | EOF
|
---|
4328 |
|
---|
4329 | fi
|
---|
4330 | fi
|
---|
4331 |
|
---|
4332 |
|
---|
4333 | for ac_func in gethostbyname_r
|
---|
4334 | do
|
---|
4335 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4336 | echo "configure:4337: checking for $ac_func" >&5
|
---|
4337 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4338 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4339 | else
|
---|
4340 | cat > conftest.$ac_ext <<EOF
|
---|
4341 | #line 4342 "configure"
|
---|
4342 | #include "confdefs.h"
|
---|
4343 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4344 | which can conflict with char $ac_func(); below. */
|
---|
4345 | #include <assert.h>
|
---|
4346 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4347 | /* We use char because int might match the return type of a gcc2
|
---|
4348 | builtin and then its argument prototype would still apply. */
|
---|
4349 | char $ac_func();
|
---|
4350 |
|
---|
4351 | int main() {
|
---|
4352 |
|
---|
4353 | /* The GNU C library defines this for functions which it implements
|
---|
4354 | to always fail with ENOSYS. Some functions are actually named
|
---|
4355 | something starting with __ and the normal name is an alias. */
|
---|
4356 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4357 | choke me
|
---|
4358 | #else
|
---|
4359 | $ac_func();
|
---|
4360 | #endif
|
---|
4361 |
|
---|
4362 | ; return 0; }
|
---|
4363 | EOF
|
---|
4364 | if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4365 | rm -rf conftest*
|
---|
4366 | eval "ac_cv_func_$ac_func=yes"
|
---|
4367 | else
|
---|
4368 | echo "configure: failed program was:" >&5
|
---|
4369 | cat conftest.$ac_ext >&5
|
---|
4370 | rm -rf conftest*
|
---|
4371 | eval "ac_cv_func_$ac_func=no"
|
---|
4372 | fi
|
---|
4373 | rm -f conftest*
|
---|
4374 | fi
|
---|
4375 |
|
---|
4376 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4377 | echo "$ac_t""yes" 1>&6
|
---|
4378 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4379 | cat >> confdefs.h <<EOF
|
---|
4380 | #define $ac_tr_func 1
|
---|
4381 | EOF
|
---|
4382 |
|
---|
4383 | cat >> confdefs.h <<\EOF
|
---|
4384 | #define HAVE_GETHOSTBYNAME_R 1
|
---|
4385 | EOF
|
---|
4386 |
|
---|
4387 | # There are two different kinds of gethostbyname_r.
|
---|
4388 | # We look for the one that returns `int'.
|
---|
4389 | # Hopefully this check is robust enough.
|
---|
4390 | cat > conftest.$ac_ext <<EOF
|
---|
4391 | #line 4392 "configure"
|
---|
4392 | #include "confdefs.h"
|
---|
4393 | #include <netdb.h>
|
---|
4394 | EOF
|
---|
4395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4396 | egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
|
---|
4397 | rm -rf conftest*
|
---|
4398 |
|
---|
4399 | cat >> confdefs.h <<\EOF
|
---|
4400 | #define GETHOSTBYNAME_R_RETURNS_INT 1
|
---|
4401 | EOF
|
---|
4402 |
|
---|
4403 | fi
|
---|
4404 | rm -f conftest*
|
---|
4405 |
|
---|
4406 |
|
---|
4407 | case " $GCINCS " in
|
---|
4408 | *" -D_REENTRANT "*) ;;
|
---|
4409 | *)
|
---|
4410 | echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
|
---|
4411 | echo "configure:4412: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
|
---|
4412 | if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
|
---|
4413 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4414 | else
|
---|
4415 |
|
---|
4416 | ac_ext=C
|
---|
4417 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
4418 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
4419 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
4420 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
4421 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
4422 |
|
---|
4423 | cat > conftest.$ac_ext <<EOF
|
---|
4424 | #line 4425 "configure"
|
---|
4425 | #include "confdefs.h"
|
---|
4426 | #include <netdb.h>
|
---|
4427 | int main() {
|
---|
4428 | gethostbyname_r("", 0, 0);
|
---|
4429 | ; return 0; }
|
---|
4430 | EOF
|
---|
4431 | if { (eval echo configure:4432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4432 | rm -rf conftest*
|
---|
4433 | libjava_cv_gethostbyname_r_needs_reentrant=no
|
---|
4434 | else
|
---|
4435 | echo "configure: failed program was:" >&5
|
---|
4436 | cat conftest.$ac_ext >&5
|
---|
4437 | rm -rf conftest*
|
---|
4438 | CPPFLAGS_SAVE="$CPPFLAGS"
|
---|
4439 | CPPFLAGS="$CPPFLAGS -D_REENTRANT"
|
---|
4440 | cat > conftest.$ac_ext <<EOF
|
---|
4441 | #line 4442 "configure"
|
---|
4442 | #include "confdefs.h"
|
---|
4443 | #include <netdb.h>
|
---|
4444 | int main() {
|
---|
4445 | gethostbyname_r("", 0, 0);
|
---|
4446 | ; return 0; }
|
---|
4447 | EOF
|
---|
4448 | if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4449 | rm -rf conftest*
|
---|
4450 | libjava_cv_gethostbyname_r_needs_reentrant=yes
|
---|
4451 | else
|
---|
4452 | echo "configure: failed program was:" >&5
|
---|
4453 | cat conftest.$ac_ext >&5
|
---|
4454 | rm -rf conftest*
|
---|
4455 | libjava_cv_gethostbyname_r_needs_reentrant=fail
|
---|
4456 | fi
|
---|
4457 | rm -f conftest*
|
---|
4458 | CPPFLAGS="$CPPFLAGS_SAVE"
|
---|
4459 |
|
---|
4460 | fi
|
---|
4461 | rm -f conftest*
|
---|
4462 | ac_ext=c
|
---|
4463 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
4464 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4465 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
4466 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
4467 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
4468 |
|
---|
4469 |
|
---|
4470 | fi
|
---|
4471 |
|
---|
4472 | echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
|
---|
4473 | if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
|
---|
4474 | cat >> confdefs.h <<\EOF
|
---|
4475 | #define _REENTRANT 1
|
---|
4476 | EOF
|
---|
4477 |
|
---|
4478 | fi
|
---|
4479 | ;;
|
---|
4480 | esac
|
---|
4481 |
|
---|
4482 | echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
|
---|
4483 | echo "configure:4484: checking for struct hostent_data" >&5
|
---|
4484 | if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
|
---|
4485 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4486 | else
|
---|
4487 | cat > conftest.$ac_ext <<EOF
|
---|
4488 | #line 4489 "configure"
|
---|
4489 | #include "confdefs.h"
|
---|
4490 |
|
---|
4491 | #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
|
---|
4492 | # define _REENTRANT 1
|
---|
4493 | #endif
|
---|
4494 | #include <netdb.h>
|
---|
4495 | int main() {
|
---|
4496 | struct hostent_data data;
|
---|
4497 | ; return 0; }
|
---|
4498 | EOF
|
---|
4499 | if { (eval echo configure:4500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4500 | rm -rf conftest*
|
---|
4501 | libjava_cv_struct_hostent_data=yes
|
---|
4502 | else
|
---|
4503 | echo "configure: failed program was:" >&5
|
---|
4504 | cat conftest.$ac_ext >&5
|
---|
4505 | rm -rf conftest*
|
---|
4506 | libjava_cv_struct_hostent_data=no
|
---|
4507 | fi
|
---|
4508 | rm -f conftest*
|
---|
4509 | fi
|
---|
4510 |
|
---|
4511 | echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
|
---|
4512 | if test "x$libjava_cv_struct_hostent_data" = xyes; then
|
---|
4513 | cat >> confdefs.h <<\EOF
|
---|
4514 | #define HAVE_STRUCT_HOSTENT_DATA 1
|
---|
4515 | EOF
|
---|
4516 |
|
---|
4517 | fi
|
---|
4518 |
|
---|
4519 | else
|
---|
4520 | echo "$ac_t""no" 1>&6
|
---|
4521 | fi
|
---|
4522 | done
|
---|
4523 |
|
---|
4524 |
|
---|
4525 | # FIXME: libjava source code expects to find a prototype for
|
---|
4526 | # gethostbyaddr_r in netdb.h. The outer check ensures that
|
---|
4527 | # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
|
---|
4528 | # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
|
---|
4529 | # linkage check is enough, yet C++ code requires proper prototypes.)
|
---|
4530 | cat > conftest.$ac_ext <<EOF
|
---|
4531 | #line 4532 "configure"
|
---|
4532 | #include "confdefs.h"
|
---|
4533 | #include <netdb.h>
|
---|
4534 | EOF
|
---|
4535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4536 | egrep "gethostbyaddr_r" >/dev/null 2>&1; then
|
---|
4537 | rm -rf conftest*
|
---|
4538 |
|
---|
4539 | for ac_func in gethostbyaddr_r
|
---|
4540 | do
|
---|
4541 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4542 | echo "configure:4543: checking for $ac_func" >&5
|
---|
4543 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4544 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4545 | else
|
---|
4546 | cat > conftest.$ac_ext <<EOF
|
---|
4547 | #line 4548 "configure"
|
---|
4548 | #include "confdefs.h"
|
---|
4549 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4550 | which can conflict with char $ac_func(); below. */
|
---|
4551 | #include <assert.h>
|
---|
4552 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4553 | /* We use char because int might match the return type of a gcc2
|
---|
4554 | builtin and then its argument prototype would still apply. */
|
---|
4555 | char $ac_func();
|
---|
4556 |
|
---|
4557 | int main() {
|
---|
4558 |
|
---|
4559 | /* The GNU C library defines this for functions which it implements
|
---|
4560 | to always fail with ENOSYS. Some functions are actually named
|
---|
4561 | something starting with __ and the normal name is an alias. */
|
---|
4562 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4563 | choke me
|
---|
4564 | #else
|
---|
4565 | $ac_func();
|
---|
4566 | #endif
|
---|
4567 |
|
---|
4568 | ; return 0; }
|
---|
4569 | EOF
|
---|
4570 | if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4571 | rm -rf conftest*
|
---|
4572 | eval "ac_cv_func_$ac_func=yes"
|
---|
4573 | else
|
---|
4574 | echo "configure: failed program was:" >&5
|
---|
4575 | cat conftest.$ac_ext >&5
|
---|
4576 | rm -rf conftest*
|
---|
4577 | eval "ac_cv_func_$ac_func=no"
|
---|
4578 | fi
|
---|
4579 | rm -f conftest*
|
---|
4580 | fi
|
---|
4581 |
|
---|
4582 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4583 | echo "$ac_t""yes" 1>&6
|
---|
4584 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4585 | cat >> confdefs.h <<EOF
|
---|
4586 | #define $ac_tr_func 1
|
---|
4587 | EOF
|
---|
4588 |
|
---|
4589 | cat >> confdefs.h <<\EOF
|
---|
4590 | #define HAVE_GETHOSTBYADDR_R 1
|
---|
4591 | EOF
|
---|
4592 |
|
---|
4593 | # There are two different kinds of gethostbyaddr_r.
|
---|
4594 | # We look for the one that returns `int'.
|
---|
4595 | # Hopefully this check is robust enough.
|
---|
4596 | cat > conftest.$ac_ext <<EOF
|
---|
4597 | #line 4598 "configure"
|
---|
4598 | #include "confdefs.h"
|
---|
4599 | #include <netdb.h>
|
---|
4600 | EOF
|
---|
4601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4602 | egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
|
---|
4603 | rm -rf conftest*
|
---|
4604 |
|
---|
4605 | cat >> confdefs.h <<\EOF
|
---|
4606 | #define GETHOSTBYADDR_R_RETURNS_INT 1
|
---|
4607 | EOF
|
---|
4608 |
|
---|
4609 | fi
|
---|
4610 | rm -f conftest*
|
---|
4611 |
|
---|
4612 | else
|
---|
4613 | echo "$ac_t""no" 1>&6
|
---|
4614 | fi
|
---|
4615 | done
|
---|
4616 |
|
---|
4617 | fi
|
---|
4618 | rm -f conftest*
|
---|
4619 |
|
---|
4620 |
|
---|
4621 | for ac_func in gethostname
|
---|
4622 | do
|
---|
4623 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4624 | echo "configure:4625: checking for $ac_func" >&5
|
---|
4625 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4626 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4627 | else
|
---|
4628 | cat > conftest.$ac_ext <<EOF
|
---|
4629 | #line 4630 "configure"
|
---|
4630 | #include "confdefs.h"
|
---|
4631 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4632 | which can conflict with char $ac_func(); below. */
|
---|
4633 | #include <assert.h>
|
---|
4634 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4635 | /* We use char because int might match the return type of a gcc2
|
---|
4636 | builtin and then its argument prototype would still apply. */
|
---|
4637 | char $ac_func();
|
---|
4638 |
|
---|
4639 | int main() {
|
---|
4640 |
|
---|
4641 | /* The GNU C library defines this for functions which it implements
|
---|
4642 | to always fail with ENOSYS. Some functions are actually named
|
---|
4643 | something starting with __ and the normal name is an alias. */
|
---|
4644 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4645 | choke me
|
---|
4646 | #else
|
---|
4647 | $ac_func();
|
---|
4648 | #endif
|
---|
4649 |
|
---|
4650 | ; return 0; }
|
---|
4651 | EOF
|
---|
4652 | if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4653 | rm -rf conftest*
|
---|
4654 | eval "ac_cv_func_$ac_func=yes"
|
---|
4655 | else
|
---|
4656 | echo "configure: failed program was:" >&5
|
---|
4657 | cat conftest.$ac_ext >&5
|
---|
4658 | rm -rf conftest*
|
---|
4659 | eval "ac_cv_func_$ac_func=no"
|
---|
4660 | fi
|
---|
4661 | rm -f conftest*
|
---|
4662 | fi
|
---|
4663 |
|
---|
4664 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4665 | echo "$ac_t""yes" 1>&6
|
---|
4666 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4667 | cat >> confdefs.h <<EOF
|
---|
4668 | #define $ac_tr_func 1
|
---|
4669 | EOF
|
---|
4670 |
|
---|
4671 | cat >> confdefs.h <<\EOF
|
---|
4672 | #define HAVE_GETHOSTNAME 1
|
---|
4673 | EOF
|
---|
4674 |
|
---|
4675 | cat > conftest.$ac_ext <<EOF
|
---|
4676 | #line 4677 "configure"
|
---|
4677 | #include "confdefs.h"
|
---|
4678 | #include <unistd.h>
|
---|
4679 | EOF
|
---|
4680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4681 | egrep "gethostname" >/dev/null 2>&1; then
|
---|
4682 | rm -rf conftest*
|
---|
4683 |
|
---|
4684 | cat >> confdefs.h <<\EOF
|
---|
4685 | #define HAVE_GETHOSTNAME_DECL 1
|
---|
4686 | EOF
|
---|
4687 |
|
---|
4688 | fi
|
---|
4689 | rm -f conftest*
|
---|
4690 |
|
---|
4691 | else
|
---|
4692 | echo "$ac_t""no" 1>&6
|
---|
4693 | fi
|
---|
4694 | done
|
---|
4695 |
|
---|
4696 |
|
---|
4697 | # Look for these functions in the thread library, but only bother
|
---|
4698 | # if using POSIX threads.
|
---|
4699 | if test "$THREADS" = posix; then
|
---|
4700 | save_LIBS="$LIBS"
|
---|
4701 | LIBS="$LIBS $THREADLIBS"
|
---|
4702 | # Some POSIX thread systems don't have pthread_mutexattr_settype.
|
---|
4703 | # E.g., Solaris.
|
---|
4704 | for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
|
---|
4705 | do
|
---|
4706 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4707 | echo "configure:4708: checking for $ac_func" >&5
|
---|
4708 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4709 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4710 | else
|
---|
4711 | cat > conftest.$ac_ext <<EOF
|
---|
4712 | #line 4713 "configure"
|
---|
4713 | #include "confdefs.h"
|
---|
4714 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4715 | which can conflict with char $ac_func(); below. */
|
---|
4716 | #include <assert.h>
|
---|
4717 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4718 | /* We use char because int might match the return type of a gcc2
|
---|
4719 | builtin and then its argument prototype would still apply. */
|
---|
4720 | char $ac_func();
|
---|
4721 |
|
---|
4722 | int main() {
|
---|
4723 |
|
---|
4724 | /* The GNU C library defines this for functions which it implements
|
---|
4725 | to always fail with ENOSYS. Some functions are actually named
|
---|
4726 | something starting with __ and the normal name is an alias. */
|
---|
4727 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4728 | choke me
|
---|
4729 | #else
|
---|
4730 | $ac_func();
|
---|
4731 | #endif
|
---|
4732 |
|
---|
4733 | ; return 0; }
|
---|
4734 | EOF
|
---|
4735 | if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4736 | rm -rf conftest*
|
---|
4737 | eval "ac_cv_func_$ac_func=yes"
|
---|
4738 | else
|
---|
4739 | echo "configure: failed program was:" >&5
|
---|
4740 | cat conftest.$ac_ext >&5
|
---|
4741 | rm -rf conftest*
|
---|
4742 | eval "ac_cv_func_$ac_func=no"
|
---|
4743 | fi
|
---|
4744 | rm -f conftest*
|
---|
4745 | fi
|
---|
4746 |
|
---|
4747 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4748 | echo "$ac_t""yes" 1>&6
|
---|
4749 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4750 | cat >> confdefs.h <<EOF
|
---|
4751 | #define $ac_tr_func 1
|
---|
4752 | EOF
|
---|
4753 |
|
---|
4754 | else
|
---|
4755 | echo "$ac_t""no" 1>&6
|
---|
4756 | fi
|
---|
4757 | done
|
---|
4758 |
|
---|
4759 |
|
---|
4760 | # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
|
---|
4761 | # Solaris 7 the name librt is preferred.
|
---|
4762 | for ac_func in sched_yield
|
---|
4763 | do
|
---|
4764 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4765 | echo "configure:4766: checking for $ac_func" >&5
|
---|
4766 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4767 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4768 | else
|
---|
4769 | cat > conftest.$ac_ext <<EOF
|
---|
4770 | #line 4771 "configure"
|
---|
4771 | #include "confdefs.h"
|
---|
4772 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4773 | which can conflict with char $ac_func(); below. */
|
---|
4774 | #include <assert.h>
|
---|
4775 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4776 | /* We use char because int might match the return type of a gcc2
|
---|
4777 | builtin and then its argument prototype would still apply. */
|
---|
4778 | char $ac_func();
|
---|
4779 |
|
---|
4780 | int main() {
|
---|
4781 |
|
---|
4782 | /* The GNU C library defines this for functions which it implements
|
---|
4783 | to always fail with ENOSYS. Some functions are actually named
|
---|
4784 | something starting with __ and the normal name is an alias. */
|
---|
4785 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4786 | choke me
|
---|
4787 | #else
|
---|
4788 | $ac_func();
|
---|
4789 | #endif
|
---|
4790 |
|
---|
4791 | ; return 0; }
|
---|
4792 | EOF
|
---|
4793 | if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4794 | rm -rf conftest*
|
---|
4795 | eval "ac_cv_func_$ac_func=yes"
|
---|
4796 | else
|
---|
4797 | echo "configure: failed program was:" >&5
|
---|
4798 | cat conftest.$ac_ext >&5
|
---|
4799 | rm -rf conftest*
|
---|
4800 | eval "ac_cv_func_$ac_func=no"
|
---|
4801 | fi
|
---|
4802 | rm -f conftest*
|
---|
4803 | fi
|
---|
4804 |
|
---|
4805 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4806 | echo "$ac_t""yes" 1>&6
|
---|
4807 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4808 | cat >> confdefs.h <<EOF
|
---|
4809 | #define $ac_tr_func 1
|
---|
4810 | EOF
|
---|
4811 |
|
---|
4812 | else
|
---|
4813 | echo "$ac_t""no" 1>&6
|
---|
4814 | echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
|
---|
4815 | echo "configure:4816: checking for sched_yield in -lrt" >&5
|
---|
4816 | ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
|
---|
4817 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4818 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4819 | else
|
---|
4820 | ac_save_LIBS="$LIBS"
|
---|
4821 | LIBS="-lrt $LIBS"
|
---|
4822 | cat > conftest.$ac_ext <<EOF
|
---|
4823 | #line 4824 "configure"
|
---|
4824 | #include "confdefs.h"
|
---|
4825 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4826 | /* We use char because int might match the return type of a gcc2
|
---|
4827 | builtin and then its argument prototype would still apply. */
|
---|
4828 | char sched_yield();
|
---|
4829 |
|
---|
4830 | int main() {
|
---|
4831 | sched_yield()
|
---|
4832 | ; return 0; }
|
---|
4833 | EOF
|
---|
4834 | if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4835 | rm -rf conftest*
|
---|
4836 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4837 | else
|
---|
4838 | echo "configure: failed program was:" >&5
|
---|
4839 | cat conftest.$ac_ext >&5
|
---|
4840 | rm -rf conftest*
|
---|
4841 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4842 | fi
|
---|
4843 | rm -f conftest*
|
---|
4844 | LIBS="$ac_save_LIBS"
|
---|
4845 |
|
---|
4846 | fi
|
---|
4847 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4848 | echo "$ac_t""yes" 1>&6
|
---|
4849 |
|
---|
4850 | cat >> confdefs.h <<\EOF
|
---|
4851 | #define HAVE_SCHED_YIELD 1
|
---|
4852 | EOF
|
---|
4853 |
|
---|
4854 | THREADLIBS="$THREADLIBS -lrt"
|
---|
4855 | THREADSPEC="$THREADSPEC -lrt"
|
---|
4856 | else
|
---|
4857 | echo "$ac_t""no" 1>&6
|
---|
4858 |
|
---|
4859 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
|
---|
4860 | echo "configure:4861: checking for sched_yield in -lposix4" >&5
|
---|
4861 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
|
---|
4862 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4863 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4864 | else
|
---|
4865 | ac_save_LIBS="$LIBS"
|
---|
4866 | LIBS="-lposix4 $LIBS"
|
---|
4867 | cat > conftest.$ac_ext <<EOF
|
---|
4868 | #line 4869 "configure"
|
---|
4869 | #include "confdefs.h"
|
---|
4870 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4871 | /* We use char because int might match the return type of a gcc2
|
---|
4872 | builtin and then its argument prototype would still apply. */
|
---|
4873 | char sched_yield();
|
---|
4874 |
|
---|
4875 | int main() {
|
---|
4876 | sched_yield()
|
---|
4877 | ; return 0; }
|
---|
4878 | EOF
|
---|
4879 | if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4880 | rm -rf conftest*
|
---|
4881 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4882 | else
|
---|
4883 | echo "configure: failed program was:" >&5
|
---|
4884 | cat conftest.$ac_ext >&5
|
---|
4885 | rm -rf conftest*
|
---|
4886 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4887 | fi
|
---|
4888 | rm -f conftest*
|
---|
4889 | LIBS="$ac_save_LIBS"
|
---|
4890 |
|
---|
4891 | fi
|
---|
4892 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4893 | echo "$ac_t""yes" 1>&6
|
---|
4894 |
|
---|
4895 | cat >> confdefs.h <<\EOF
|
---|
4896 | #define HAVE_SCHED_YIELD 1
|
---|
4897 | EOF
|
---|
4898 |
|
---|
4899 | THREADLIBS="$THREADLIBS -lposix4"
|
---|
4900 | THREADSPEC="$THREADSPEC -lposix4"
|
---|
4901 | else
|
---|
4902 | echo "$ac_t""no" 1>&6
|
---|
4903 | fi
|
---|
4904 |
|
---|
4905 | fi
|
---|
4906 |
|
---|
4907 | fi
|
---|
4908 | done
|
---|
4909 |
|
---|
4910 | LIBS="$save_LIBS"
|
---|
4911 |
|
---|
4912 | # We can save a little space at runtime if the mutex has m_count
|
---|
4913 | # or __m_count. This is a nice hack for Linux.
|
---|
4914 | cat > conftest.$ac_ext <<EOF
|
---|
4915 | #line 4916 "configure"
|
---|
4916 | #include "confdefs.h"
|
---|
4917 | #include <pthread.h>
|
---|
4918 | int main() {
|
---|
4919 |
|
---|
4920 | extern pthread_mutex_t *mutex; int q = mutex->m_count;
|
---|
4921 |
|
---|
4922 | ; return 0; }
|
---|
4923 | EOF
|
---|
4924 | if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4925 | rm -rf conftest*
|
---|
4926 | cat >> confdefs.h <<\EOF
|
---|
4927 | #define PTHREAD_MUTEX_HAVE_M_COUNT 1
|
---|
4928 | EOF
|
---|
4929 |
|
---|
4930 | else
|
---|
4931 | echo "configure: failed program was:" >&5
|
---|
4932 | cat conftest.$ac_ext >&5
|
---|
4933 | rm -rf conftest*
|
---|
4934 |
|
---|
4935 | cat > conftest.$ac_ext <<EOF
|
---|
4936 | #line 4937 "configure"
|
---|
4937 | #include "confdefs.h"
|
---|
4938 | #include <pthread.h>
|
---|
4939 | int main() {
|
---|
4940 |
|
---|
4941 | extern pthread_mutex_t *mutex; int q = mutex->__m_count;
|
---|
4942 |
|
---|
4943 | ; return 0; }
|
---|
4944 | EOF
|
---|
4945 | if { (eval echo configure:4946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4946 | rm -rf conftest*
|
---|
4947 | cat >> confdefs.h <<\EOF
|
---|
4948 | #define PTHREAD_MUTEX_HAVE___M_COUNT 1
|
---|
4949 | EOF
|
---|
4950 |
|
---|
4951 | else
|
---|
4952 | echo "configure: failed program was:" >&5
|
---|
4953 | cat conftest.$ac_ext >&5
|
---|
4954 | fi
|
---|
4955 | rm -f conftest*
|
---|
4956 | fi
|
---|
4957 | rm -f conftest*
|
---|
4958 | fi
|
---|
4959 |
|
---|
4960 | # We require a way to get the time.
|
---|
4961 | time_found=no
|
---|
4962 | for ac_func in gettimeofday time ftime
|
---|
4963 | do
|
---|
4964 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4965 | echo "configure:4966: checking for $ac_func" >&5
|
---|
4966 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4967 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4968 | else
|
---|
4969 | cat > conftest.$ac_ext <<EOF
|
---|
4970 | #line 4971 "configure"
|
---|
4971 | #include "confdefs.h"
|
---|
4972 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4973 | which can conflict with char $ac_func(); below. */
|
---|
4974 | #include <assert.h>
|
---|
4975 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4976 | /* We use char because int might match the return type of a gcc2
|
---|
4977 | builtin and then its argument prototype would still apply. */
|
---|
4978 | char $ac_func();
|
---|
4979 |
|
---|
4980 | int main() {
|
---|
4981 |
|
---|
4982 | /* The GNU C library defines this for functions which it implements
|
---|
4983 | to always fail with ENOSYS. Some functions are actually named
|
---|
4984 | something starting with __ and the normal name is an alias. */
|
---|
4985 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4986 | choke me
|
---|
4987 | #else
|
---|
4988 | $ac_func();
|
---|
4989 | #endif
|
---|
4990 |
|
---|
4991 | ; return 0; }
|
---|
4992 | EOF
|
---|
4993 | if { (eval echo configure:4994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4994 | rm -rf conftest*
|
---|
4995 | eval "ac_cv_func_$ac_func=yes"
|
---|
4996 | else
|
---|
4997 | echo "configure: failed program was:" >&5
|
---|
4998 | cat conftest.$ac_ext >&5
|
---|
4999 | rm -rf conftest*
|
---|
5000 | eval "ac_cv_func_$ac_func=no"
|
---|
5001 | fi
|
---|
5002 | rm -f conftest*
|
---|
5003 | fi
|
---|
5004 |
|
---|
5005 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
5006 | echo "$ac_t""yes" 1>&6
|
---|
5007 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
5008 | cat >> confdefs.h <<EOF
|
---|
5009 | #define $ac_tr_func 1
|
---|
5010 | EOF
|
---|
5011 | time_found=yes
|
---|
5012 | else
|
---|
5013 | echo "$ac_t""no" 1>&6
|
---|
5014 | fi
|
---|
5015 | done
|
---|
5016 |
|
---|
5017 | if test "$time_found" = no; then
|
---|
5018 | { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
|
---|
5019 | fi
|
---|
5020 |
|
---|
5021 | for ac_func in memmove
|
---|
5022 | do
|
---|
5023 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
5024 | echo "configure:5025: checking for $ac_func" >&5
|
---|
5025 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
5026 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5027 | else
|
---|
5028 | cat > conftest.$ac_ext <<EOF
|
---|
5029 | #line 5030 "configure"
|
---|
5030 | #include "confdefs.h"
|
---|
5031 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5032 | which can conflict with char $ac_func(); below. */
|
---|
5033 | #include <assert.h>
|
---|
5034 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5035 | /* We use char because int might match the return type of a gcc2
|
---|
5036 | builtin and then its argument prototype would still apply. */
|
---|
5037 | char $ac_func();
|
---|
5038 |
|
---|
5039 | int main() {
|
---|
5040 |
|
---|
5041 | /* The GNU C library defines this for functions which it implements
|
---|
5042 | to always fail with ENOSYS. Some functions are actually named
|
---|
5043 | something starting with __ and the normal name is an alias. */
|
---|
5044 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5045 | choke me
|
---|
5046 | #else
|
---|
5047 | $ac_func();
|
---|
5048 | #endif
|
---|
5049 |
|
---|
5050 | ; return 0; }
|
---|
5051 | EOF
|
---|
5052 | if { (eval echo configure:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5053 | rm -rf conftest*
|
---|
5054 | eval "ac_cv_func_$ac_func=yes"
|
---|
5055 | else
|
---|
5056 | echo "configure: failed program was:" >&5
|
---|
5057 | cat conftest.$ac_ext >&5
|
---|
5058 | rm -rf conftest*
|
---|
5059 | eval "ac_cv_func_$ac_func=no"
|
---|
5060 | fi
|
---|
5061 | rm -f conftest*
|
---|
5062 | fi
|
---|
5063 |
|
---|
5064 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
5065 | echo "$ac_t""yes" 1>&6
|
---|
5066 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
5067 | cat >> confdefs.h <<EOF
|
---|
5068 | #define $ac_tr_func 1
|
---|
5069 | EOF
|
---|
5070 |
|
---|
5071 | else
|
---|
5072 | echo "$ac_t""no" 1>&6
|
---|
5073 | fi
|
---|
5074 | done
|
---|
5075 |
|
---|
5076 |
|
---|
5077 | # We require memcpy.
|
---|
5078 | memcpy_found=no
|
---|
5079 | for ac_func in memcpy
|
---|
5080 | do
|
---|
5081 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
5082 | echo "configure:5083: checking for $ac_func" >&5
|
---|
5083 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
5084 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5085 | else
|
---|
5086 | cat > conftest.$ac_ext <<EOF
|
---|
5087 | #line 5088 "configure"
|
---|
5088 | #include "confdefs.h"
|
---|
5089 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5090 | which can conflict with char $ac_func(); below. */
|
---|
5091 | #include <assert.h>
|
---|
5092 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5093 | /* We use char because int might match the return type of a gcc2
|
---|
5094 | builtin and then its argument prototype would still apply. */
|
---|
5095 | char $ac_func();
|
---|
5096 |
|
---|
5097 | int main() {
|
---|
5098 |
|
---|
5099 | /* The GNU C library defines this for functions which it implements
|
---|
5100 | to always fail with ENOSYS. Some functions are actually named
|
---|
5101 | something starting with __ and the normal name is an alias. */
|
---|
5102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5103 | choke me
|
---|
5104 | #else
|
---|
5105 | $ac_func();
|
---|
5106 | #endif
|
---|
5107 |
|
---|
5108 | ; return 0; }
|
---|
5109 | EOF
|
---|
5110 | if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5111 | rm -rf conftest*
|
---|
5112 | eval "ac_cv_func_$ac_func=yes"
|
---|
5113 | else
|
---|
5114 | echo "configure: failed program was:" >&5
|
---|
5115 | cat conftest.$ac_ext >&5
|
---|
5116 | rm -rf conftest*
|
---|
5117 | eval "ac_cv_func_$ac_func=no"
|
---|
5118 | fi
|
---|
5119 | rm -f conftest*
|
---|
5120 | fi
|
---|
5121 |
|
---|
5122 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
5123 | echo "$ac_t""yes" 1>&6
|
---|
5124 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
5125 | cat >> confdefs.h <<EOF
|
---|
5126 | #define $ac_tr_func 1
|
---|
5127 | EOF
|
---|
5128 | memcpy_found=yes
|
---|
5129 | else
|
---|
5130 | echo "$ac_t""no" 1>&6
|
---|
5131 | fi
|
---|
5132 | done
|
---|
5133 |
|
---|
5134 | if test "$memcpy_found" = no; then
|
---|
5135 | { echo "configure: error: memcpy is required" 1>&2; exit 1; }
|
---|
5136 | fi
|
---|
5137 |
|
---|
5138 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
---|
5139 | echo "configure:5140: checking for dlopen in -ldl" >&5
|
---|
5140 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
---|
5141 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5142 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5143 | else
|
---|
5144 | ac_save_LIBS="$LIBS"
|
---|
5145 | LIBS="-ldl $LIBS"
|
---|
5146 | cat > conftest.$ac_ext <<EOF
|
---|
5147 | #line 5148 "configure"
|
---|
5148 | #include "confdefs.h"
|
---|
5149 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5150 | /* We use char because int might match the return type of a gcc2
|
---|
5151 | builtin and then its argument prototype would still apply. */
|
---|
5152 | char dlopen();
|
---|
5153 |
|
---|
5154 | int main() {
|
---|
5155 | dlopen()
|
---|
5156 | ; return 0; }
|
---|
5157 | EOF
|
---|
5158 | if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5159 | rm -rf conftest*
|
---|
5160 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
5161 | else
|
---|
5162 | echo "configure: failed program was:" >&5
|
---|
5163 | cat conftest.$ac_ext >&5
|
---|
5164 | rm -rf conftest*
|
---|
5165 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5166 | fi
|
---|
5167 | rm -f conftest*
|
---|
5168 | LIBS="$ac_save_LIBS"
|
---|
5169 |
|
---|
5170 | fi
|
---|
5171 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5172 | echo "$ac_t""yes" 1>&6
|
---|
5173 |
|
---|
5174 | cat >> confdefs.h <<\EOF
|
---|
5175 | #define HAVE_DLOPEN 1
|
---|
5176 | EOF
|
---|
5177 |
|
---|
5178 | else
|
---|
5179 | echo "$ac_t""no" 1>&6
|
---|
5180 | fi
|
---|
5181 |
|
---|
5182 |
|
---|
5183 | # Some library-finding code we stole from Tcl.
|
---|
5184 | #--------------------------------------------------------------------
|
---|
5185 | # Check for the existence of the -lsocket and -lnsl libraries.
|
---|
5186 | # The order here is important, so that they end up in the right
|
---|
5187 | # order in the command line generated by make. Here are some
|
---|
5188 | # special considerations:
|
---|
5189 | # 1. Use "connect" and "accept" to check for -lsocket, and
|
---|
5190 | # "gethostbyname" to check for -lnsl.
|
---|
5191 | # 2. Use each function name only once: can't redo a check because
|
---|
5192 | # autoconf caches the results of the last check and won't redo it.
|
---|
5193 | # 3. Use -lnsl and -lsocket only if they supply procedures that
|
---|
5194 | # aren't already present in the normal libraries. This is because
|
---|
5195 | # IRIX 5.2 has libraries, but they aren't needed and they're
|
---|
5196 | # bogus: they goof up name resolution if used.
|
---|
5197 | # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
|
---|
5198 | # To get around this problem, check for both libraries together
|
---|
5199 | # if -lsocket doesn't work by itself.
|
---|
5200 | #--------------------------------------------------------------------
|
---|
5201 |
|
---|
5202 | echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
|
---|
5203 | echo "configure:5204: checking for socket libraries" >&5
|
---|
5204 | if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
|
---|
5205 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5206 | else
|
---|
5207 | gcj_cv_lib_sockets=
|
---|
5208 | gcj_checkBoth=0
|
---|
5209 | unset ac_cv_func_connect
|
---|
5210 | echo $ac_n "checking for connect""... $ac_c" 1>&6
|
---|
5211 | echo "configure:5212: checking for connect" >&5
|
---|
5212 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
---|
5213 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5214 | else
|
---|
5215 | cat > conftest.$ac_ext <<EOF
|
---|
5216 | #line 5217 "configure"
|
---|
5217 | #include "confdefs.h"
|
---|
5218 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5219 | which can conflict with char connect(); below. */
|
---|
5220 | #include <assert.h>
|
---|
5221 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5222 | /* We use char because int might match the return type of a gcc2
|
---|
5223 | builtin and then its argument prototype would still apply. */
|
---|
5224 | char connect();
|
---|
5225 |
|
---|
5226 | int main() {
|
---|
5227 |
|
---|
5228 | /* The GNU C library defines this for functions which it implements
|
---|
5229 | to always fail with ENOSYS. Some functions are actually named
|
---|
5230 | something starting with __ and the normal name is an alias. */
|
---|
5231 | #if defined (__stub_connect) || defined (__stub___connect)
|
---|
5232 | choke me
|
---|
5233 | #else
|
---|
5234 | connect();
|
---|
5235 | #endif
|
---|
5236 |
|
---|
5237 | ; return 0; }
|
---|
5238 | EOF
|
---|
5239 | if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5240 | rm -rf conftest*
|
---|
5241 | eval "ac_cv_func_connect=yes"
|
---|
5242 | else
|
---|
5243 | echo "configure: failed program was:" >&5
|
---|
5244 | cat conftest.$ac_ext >&5
|
---|
5245 | rm -rf conftest*
|
---|
5246 | eval "ac_cv_func_connect=no"
|
---|
5247 | fi
|
---|
5248 | rm -f conftest*
|
---|
5249 | fi
|
---|
5250 |
|
---|
5251 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
---|
5252 | echo "$ac_t""yes" 1>&6
|
---|
5253 | gcj_checkSocket=0
|
---|
5254 | else
|
---|
5255 | echo "$ac_t""no" 1>&6
|
---|
5256 | gcj_checkSocket=1
|
---|
5257 | fi
|
---|
5258 |
|
---|
5259 | if test "$gcj_checkSocket" = 1; then
|
---|
5260 | unset ac_cv_func_connect
|
---|
5261 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
|
---|
5262 | echo "configure:5263: checking for main in -lsocket" >&5
|
---|
5263 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
|
---|
5264 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5265 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5266 | else
|
---|
5267 | ac_save_LIBS="$LIBS"
|
---|
5268 | LIBS="-lsocket $LIBS"
|
---|
5269 | cat > conftest.$ac_ext <<EOF
|
---|
5270 | #line 5271 "configure"
|
---|
5271 | #include "confdefs.h"
|
---|
5272 |
|
---|
5273 | int main() {
|
---|
5274 | main()
|
---|
5275 | ; return 0; }
|
---|
5276 | EOF
|
---|
5277 | if { (eval echo configure:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5278 | rm -rf conftest*
|
---|
5279 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
5280 | else
|
---|
5281 | echo "configure: failed program was:" >&5
|
---|
5282 | cat conftest.$ac_ext >&5
|
---|
5283 | rm -rf conftest*
|
---|
5284 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5285 | fi
|
---|
5286 | rm -f conftest*
|
---|
5287 | LIBS="$ac_save_LIBS"
|
---|
5288 |
|
---|
5289 | fi
|
---|
5290 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5291 | echo "$ac_t""yes" 1>&6
|
---|
5292 | gcj_cv_lib_sockets="-lsocket"
|
---|
5293 | else
|
---|
5294 | echo "$ac_t""no" 1>&6
|
---|
5295 | gcj_checkBoth=1
|
---|
5296 | fi
|
---|
5297 |
|
---|
5298 | fi
|
---|
5299 | if test "$gcj_checkBoth" = 1; then
|
---|
5300 | gcj_oldLibs=$LIBS
|
---|
5301 | LIBS="$LIBS -lsocket -lnsl"
|
---|
5302 | unset ac_cv_func_accept
|
---|
5303 | echo $ac_n "checking for accept""... $ac_c" 1>&6
|
---|
5304 | echo "configure:5305: checking for accept" >&5
|
---|
5305 | if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
|
---|
5306 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5307 | else
|
---|
5308 | cat > conftest.$ac_ext <<EOF
|
---|
5309 | #line 5310 "configure"
|
---|
5310 | #include "confdefs.h"
|
---|
5311 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5312 | which can conflict with char accept(); below. */
|
---|
5313 | #include <assert.h>
|
---|
5314 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5315 | /* We use char because int might match the return type of a gcc2
|
---|
5316 | builtin and then its argument prototype would still apply. */
|
---|
5317 | char accept();
|
---|
5318 |
|
---|
5319 | int main() {
|
---|
5320 |
|
---|
5321 | /* The GNU C library defines this for functions which it implements
|
---|
5322 | to always fail with ENOSYS. Some functions are actually named
|
---|
5323 | something starting with __ and the normal name is an alias. */
|
---|
5324 | #if defined (__stub_accept) || defined (__stub___accept)
|
---|
5325 | choke me
|
---|
5326 | #else
|
---|
5327 | accept();
|
---|
5328 | #endif
|
---|
5329 |
|
---|
5330 | ; return 0; }
|
---|
5331 | EOF
|
---|
5332 | if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5333 | rm -rf conftest*
|
---|
5334 | eval "ac_cv_func_accept=yes"
|
---|
5335 | else
|
---|
5336 | echo "configure: failed program was:" >&5
|
---|
5337 | cat conftest.$ac_ext >&5
|
---|
5338 | rm -rf conftest*
|
---|
5339 | eval "ac_cv_func_accept=no"
|
---|
5340 | fi
|
---|
5341 | rm -f conftest*
|
---|
5342 | fi
|
---|
5343 |
|
---|
5344 | if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
|
---|
5345 | echo "$ac_t""yes" 1>&6
|
---|
5346 | gcj_checkNsl=0
|
---|
5347 | gcj_cv_lib_sockets="-lsocket -lnsl"
|
---|
5348 | else
|
---|
5349 | echo "$ac_t""no" 1>&6
|
---|
5350 | fi
|
---|
5351 |
|
---|
5352 | unset ac_cv_func_accept
|
---|
5353 | LIBS=$gcj_oldLibs
|
---|
5354 | fi
|
---|
5355 | unset ac_cv_func_gethostbyname
|
---|
5356 | gcj_oldLibs=$LIBS
|
---|
5357 | LIBS="$LIBS $gcj_cv_lib_sockets"
|
---|
5358 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
---|
5359 | echo "configure:5360: checking for gethostbyname" >&5
|
---|
5360 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
---|
5361 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5362 | else
|
---|
5363 | cat > conftest.$ac_ext <<EOF
|
---|
5364 | #line 5365 "configure"
|
---|
5365 | #include "confdefs.h"
|
---|
5366 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5367 | which can conflict with char gethostbyname(); below. */
|
---|
5368 | #include <assert.h>
|
---|
5369 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5370 | /* We use char because int might match the return type of a gcc2
|
---|
5371 | builtin and then its argument prototype would still apply. */
|
---|
5372 | char gethostbyname();
|
---|
5373 |
|
---|
5374 | int main() {
|
---|
5375 |
|
---|
5376 | /* The GNU C library defines this for functions which it implements
|
---|
5377 | to always fail with ENOSYS. Some functions are actually named
|
---|
5378 | something starting with __ and the normal name is an alias. */
|
---|
5379 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
---|
5380 | choke me
|
---|
5381 | #else
|
---|
5382 | gethostbyname();
|
---|
5383 | #endif
|
---|
5384 |
|
---|
5385 | ; return 0; }
|
---|
5386 | EOF
|
---|
5387 | if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5388 | rm -rf conftest*
|
---|
5389 | eval "ac_cv_func_gethostbyname=yes"
|
---|
5390 | else
|
---|
5391 | echo "configure: failed program was:" >&5
|
---|
5392 | cat conftest.$ac_ext >&5
|
---|
5393 | rm -rf conftest*
|
---|
5394 | eval "ac_cv_func_gethostbyname=no"
|
---|
5395 | fi
|
---|
5396 | rm -f conftest*
|
---|
5397 | fi
|
---|
5398 |
|
---|
5399 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
---|
5400 | echo "$ac_t""yes" 1>&6
|
---|
5401 | :
|
---|
5402 | else
|
---|
5403 | echo "$ac_t""no" 1>&6
|
---|
5404 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
---|
5405 | echo "configure:5406: checking for main in -lnsl" >&5
|
---|
5406 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
|
---|
5407 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5408 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5409 | else
|
---|
5410 | ac_save_LIBS="$LIBS"
|
---|
5411 | LIBS="-lnsl $LIBS"
|
---|
5412 | cat > conftest.$ac_ext <<EOF
|
---|
5413 | #line 5414 "configure"
|
---|
5414 | #include "confdefs.h"
|
---|
5415 |
|
---|
5416 | int main() {
|
---|
5417 | main()
|
---|
5418 | ; return 0; }
|
---|
5419 | EOF
|
---|
5420 | if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5421 | rm -rf conftest*
|
---|
5422 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
5423 | else
|
---|
5424 | echo "configure: failed program was:" >&5
|
---|
5425 | cat conftest.$ac_ext >&5
|
---|
5426 | rm -rf conftest*
|
---|
5427 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5428 | fi
|
---|
5429 | rm -f conftest*
|
---|
5430 | LIBS="$ac_save_LIBS"
|
---|
5431 |
|
---|
5432 | fi
|
---|
5433 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5434 | echo "$ac_t""yes" 1>&6
|
---|
5435 | gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
|
---|
5436 | else
|
---|
5437 | echo "$ac_t""no" 1>&6
|
---|
5438 | fi
|
---|
5439 |
|
---|
5440 | fi
|
---|
5441 |
|
---|
5442 | unset ac_cv_func_gethostbyname
|
---|
5443 | LIBS=$gcj_oldLIBS
|
---|
5444 |
|
---|
5445 | fi
|
---|
5446 |
|
---|
5447 | echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
|
---|
5448 | SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
|
---|
5449 |
|
---|
5450 | if test "$with_system_zlib" = yes; then
|
---|
5451 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
|
---|
5452 | echo "configure:5453: checking for deflate in -lz" >&5
|
---|
5453 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
|
---|
5454 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5455 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5456 | else
|
---|
5457 | ac_save_LIBS="$LIBS"
|
---|
5458 | LIBS="-lz $LIBS"
|
---|
5459 | cat > conftest.$ac_ext <<EOF
|
---|
5460 | #line 5461 "configure"
|
---|
5461 | #include "confdefs.h"
|
---|
5462 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5463 | /* We use char because int might match the return type of a gcc2
|
---|
5464 | builtin and then its argument prototype would still apply. */
|
---|
5465 | char deflate();
|
---|
5466 |
|
---|
5467 | int main() {
|
---|
5468 | deflate()
|
---|
5469 | ; return 0; }
|
---|
5470 | EOF
|
---|
5471 | if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5472 | rm -rf conftest*
|
---|
5473 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
5474 | else
|
---|
5475 | echo "configure: failed program was:" >&5
|
---|
5476 | cat conftest.$ac_ext >&5
|
---|
5477 | rm -rf conftest*
|
---|
5478 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5479 | fi
|
---|
5480 | rm -f conftest*
|
---|
5481 | LIBS="$ac_save_LIBS"
|
---|
5482 |
|
---|
5483 | fi
|
---|
5484 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5485 | echo "$ac_t""yes" 1>&6
|
---|
5486 | ZLIBSPEC=-lz
|
---|
5487 | else
|
---|
5488 | echo "$ac_t""no" 1>&6
|
---|
5489 | ZLIBSPEC=
|
---|
5490 | fi
|
---|
5491 |
|
---|
5492 | fi
|
---|
5493 |
|
---|
5494 | # On Solaris, and maybe other architectures, the Boehm collector
|
---|
5495 | # requires -ldl.
|
---|
5496 | if test "$GC" = boehm; then
|
---|
5497 | echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
|
---|
5498 | echo "configure:5499: checking for main in -ldl" >&5
|
---|
5499 | ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
|
---|
5500 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5501 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5502 | else
|
---|
5503 | ac_save_LIBS="$LIBS"
|
---|
5504 | LIBS="-ldl $LIBS"
|
---|
5505 | cat > conftest.$ac_ext <<EOF
|
---|
5506 | #line 5507 "configure"
|
---|
5507 | #include "confdefs.h"
|
---|
5508 |
|
---|
5509 | int main() {
|
---|
5510 | main()
|
---|
5511 | ; return 0; }
|
---|
5512 | EOF
|
---|
5513 | if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5514 | rm -rf conftest*
|
---|
5515 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
5516 | else
|
---|
5517 | echo "configure: failed program was:" >&5
|
---|
5518 | cat conftest.$ac_ext >&5
|
---|
5519 | rm -rf conftest*
|
---|
5520 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5521 | fi
|
---|
5522 | rm -f conftest*
|
---|
5523 | LIBS="$ac_save_LIBS"
|
---|
5524 |
|
---|
5525 | fi
|
---|
5526 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5527 | echo "$ac_t""yes" 1>&6
|
---|
5528 | SYSTEMSPEC="$SYSTEMSPEC -ldl"
|
---|
5529 | else
|
---|
5530 | echo "$ac_t""no" 1>&6
|
---|
5531 | fi
|
---|
5532 |
|
---|
5533 | fi
|
---|
5534 |
|
---|
5535 | if test -z "${with_multisubdir}"; then
|
---|
5536 | builddotdot=.
|
---|
5537 | else
|
---|
5538 |
|
---|
5539 | builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
|
---|
5540 |
|
---|
5541 | fi
|
---|
5542 | if test -x "${builddotdot}/../../gcc/gcj"; then
|
---|
5543 | dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
|
---|
5544 | GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
|
---|
5545 | else
|
---|
5546 | CANADIAN=yes
|
---|
5547 | NULL_TARGET=yes
|
---|
5548 | GCJ="gcj -B`${PWDCMD-pwd}`/"
|
---|
5549 | fi
|
---|
5550 | fi
|
---|
5551 |
|
---|
5552 | # Create it, so that compile/link tests don't fail
|
---|
5553 | test -f libgcj.spec || touch libgcj.spec
|
---|
5554 |
|
---|
5555 | # We must search the source tree for java.lang, since we still don't
|
---|
5556 | # have libgcj.jar nor java/lang/*.class
|
---|
5557 | GCJ_SAVE_CPPFLAGS=$CPPFLAGS
|
---|
5558 | CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
|
---|
5559 |
|
---|
5560 | # Since some classes depend on this one, we need its source available
|
---|
5561 | # before we can do any GCJ compilation test :-(
|
---|
5562 | if test ! -f gnu/classpath/Configuration.java; then
|
---|
5563 | test -d gnu || mkdir gnu
|
---|
5564 | test -d gnu/classpath || mkdir gnu/classpath
|
---|
5565 | sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
|
---|
5566 | < $srcdir/gnu/classpath/Configuration.java.in \
|
---|
5567 | > gnu/classpath/Configuration.java
|
---|
5568 | # We do not want to redirect the output of the grep below to /dev/null,
|
---|
5569 | # but we add /dev/null to the input list so that grep will print the
|
---|
5570 | # filename of Configuration.java in case it finds any matches.
|
---|
5571 | if grep @ gnu/classpath/Configuration.java /dev/null; then
|
---|
5572 | { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
|
---|
5573 | fi
|
---|
5574 | fi
|
---|
5575 |
|
---|
5576 | # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
|
---|
5577 | set dummy ${ac_tool_prefix}gcj; ac_word=$2
|
---|
5578 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
5579 | echo "configure:5580: checking for $ac_word" >&5
|
---|
5580 | if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
|
---|
5581 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5582 | else
|
---|
5583 | if test -n "$GCJ"; then
|
---|
5584 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
|
---|
5585 | else
|
---|
5586 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
5587 | ac_dummy="$PATH"
|
---|
5588 | for ac_dir in $ac_dummy; do
|
---|
5589 | test -z "$ac_dir" && ac_dir=.
|
---|
5590 | if test -f $ac_dir/$ac_word; then
|
---|
5591 | ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
|
---|
5592 | break
|
---|
5593 | fi
|
---|
5594 | done
|
---|
5595 | IFS="$ac_save_ifs"
|
---|
5596 | fi
|
---|
5597 | fi
|
---|
5598 | GCJ="$ac_cv_prog_GCJ"
|
---|
5599 | if test -n "$GCJ"; then
|
---|
5600 | echo "$ac_t""$GCJ" 1>&6
|
---|
5601 | else
|
---|
5602 | echo "$ac_t""no" 1>&6
|
---|
5603 | fi
|
---|
5604 |
|
---|
5605 |
|
---|
5606 | if test -z "$ac_cv_prog_GCJ"; then
|
---|
5607 | if test -n "$ac_tool_prefix"; then
|
---|
5608 | # Extract the first word of "gcj", so it can be a program name with args.
|
---|
5609 | set dummy gcj; ac_word=$2
|
---|
5610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
5611 | echo "configure:5612: checking for $ac_word" >&5
|
---|
5612 | if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
|
---|
5613 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5614 | else
|
---|
5615 | if test -n "$GCJ"; then
|
---|
5616 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
|
---|
5617 | else
|
---|
5618 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
5619 | ac_dummy="$PATH"
|
---|
5620 | for ac_dir in $ac_dummy; do
|
---|
5621 | test -z "$ac_dir" && ac_dir=.
|
---|
5622 | if test -f $ac_dir/$ac_word; then
|
---|
5623 | ac_cv_prog_GCJ="gcj"
|
---|
5624 | break
|
---|
5625 | fi
|
---|
5626 | done
|
---|
5627 | IFS="$ac_save_ifs"
|
---|
5628 | test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
|
---|
5629 | fi
|
---|
5630 | fi
|
---|
5631 | GCJ="$ac_cv_prog_GCJ"
|
---|
5632 | if test -n "$GCJ"; then
|
---|
5633 | echo "$ac_t""$GCJ" 1>&6
|
---|
5634 | else
|
---|
5635 | echo "$ac_t""no" 1>&6
|
---|
5636 | fi
|
---|
5637 |
|
---|
5638 | else
|
---|
5639 | GCJ="no"
|
---|
5640 | fi
|
---|
5641 | fi
|
---|
5642 |
|
---|
5643 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
---|
5644 |
|
---|
5645 |
|
---|
5646 |
|
---|
5647 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
|
---|
5648 | lt_save_CC="$CC"
|
---|
5649 | lt_save_CFLAGS="$CFLAGS"
|
---|
5650 | AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
5651 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
5652 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
5653 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
5654 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
5655 | deplibs_check_method="$deplibs_check_method" \
|
---|
5656 | file_magic_cmd="$file_magic_cmd" \
|
---|
5657 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
|
---|
5658 | --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
|
---|
5659 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
|
---|
5660 | CC="$lt_save_CC"
|
---|
5661 | CFLAGS="$lt_save_CFLAGS"
|
---|
5662 |
|
---|
5663 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
5664 | # clobbered by the next message.
|
---|
5665 | exec 5>>./config.log
|
---|
5666 |
|
---|
5667 |
|
---|
5668 |
|
---|
5669 |
|
---|
5670 | CPPFLAGS=$GCJ_SAVE_CPPFLAGS
|
---|
5671 |
|
---|
5672 | echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
---|
5673 | echo "configure:5674: checking size of void *" >&5
|
---|
5674 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
|
---|
5675 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5676 | else
|
---|
5677 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
---|
5678 | cat > conftest.$ac_ext <<EOF
|
---|
5679 | #line 5680 "configure"
|
---|
5680 | #include "confdefs.h"
|
---|
5681 | #include "confdefs.h"
|
---|
5682 | #include <sys/types.h>
|
---|
5683 |
|
---|
5684 |
|
---|
5685 | int main() {
|
---|
5686 | switch (0) case 0: case (sizeof (void *) == $ac_size):;
|
---|
5687 | ; return 0; }
|
---|
5688 | EOF
|
---|
5689 | if { (eval echo configure:5690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5690 | rm -rf conftest*
|
---|
5691 | ac_cv_sizeof_void_p=$ac_size
|
---|
5692 | else
|
---|
5693 | echo "configure: failed program was:" >&5
|
---|
5694 | cat conftest.$ac_ext >&5
|
---|
5695 | fi
|
---|
5696 | rm -f conftest*
|
---|
5697 | if test x$ac_cv_sizeof_void_p != x ; then break; fi
|
---|
5698 | done
|
---|
5699 |
|
---|
5700 | fi
|
---|
5701 |
|
---|
5702 | if test x$ac_cv_sizeof_void_p = x ; then
|
---|
5703 | { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
|
---|
5704 | fi
|
---|
5705 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
---|
5706 | cat >> confdefs.h <<EOF
|
---|
5707 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
---|
5708 | EOF
|
---|
5709 |
|
---|
5710 |
|
---|
5711 |
|
---|
5712 | ZLIBS=
|
---|
5713 | SYS_ZLIBS=
|
---|
5714 | ZINCS=
|
---|
5715 |
|
---|
5716 | if test -z "$ZLIBSPEC"; then
|
---|
5717 | # Use zlib from the GCC tree.
|
---|
5718 | ZINCS='-I$(top_srcdir)/../zlib'
|
---|
5719 | ZLIBS=../zlib/libzgcj_convenience.la
|
---|
5720 | else
|
---|
5721 | # System's zlib.
|
---|
5722 | SYS_ZLIBS="$ZLIBSPEC"
|
---|
5723 | fi
|
---|
5724 |
|
---|
5725 |
|
---|
5726 |
|
---|
5727 |
|
---|
5728 |
|
---|
5729 |
|
---|
5730 |
|
---|
5731 |
|
---|
5732 |
|
---|
5733 |
|
---|
5734 | if test "$CANADIAN" = yes; then
|
---|
5735 | CANADIAN_TRUE=
|
---|
5736 | CANADIAN_FALSE='#'
|
---|
5737 | else
|
---|
5738 | CANADIAN_TRUE='#'
|
---|
5739 | CANADIAN_FALSE=
|
---|
5740 | fi
|
---|
5741 |
|
---|
5742 |
|
---|
5743 | if test "$NULL_TARGET" = yes; then
|
---|
5744 | NULL_TARGET_TRUE=
|
---|
5745 | NULL_TARGET_FALSE='#'
|
---|
5746 | else
|
---|
5747 | NULL_TARGET_TRUE='#'
|
---|
5748 | NULL_TARGET_FALSE=
|
---|
5749 | fi
|
---|
5750 |
|
---|
5751 |
|
---|
5752 | if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
|
---|
5753 | NATIVE_TRUE=
|
---|
5754 | NATIVE_FALSE='#'
|
---|
5755 | else
|
---|
5756 | NATIVE_TRUE='#'
|
---|
5757 | NATIVE_FALSE=
|
---|
5758 | fi
|
---|
5759 |
|
---|
5760 |
|
---|
5761 | if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
|
---|
5762 | NEEDS_DATA_START_TRUE=
|
---|
5763 | NEEDS_DATA_START_FALSE='#'
|
---|
5764 | else
|
---|
5765 | NEEDS_DATA_START_TRUE='#'
|
---|
5766 | NEEDS_DATA_START_FALSE=
|
---|
5767 | fi
|
---|
5768 |
|
---|
5769 |
|
---|
5770 | if test -n "$with_cross_host" &&
|
---|
5771 | test x"$with_cross_host" != x"no"; then
|
---|
5772 | toolexecdir='$(exec_prefix)/$(target_alias)'
|
---|
5773 | toolexecmainlibdir='$(toolexecdir)/lib'
|
---|
5774 | else
|
---|
5775 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
|
---|
5776 | toolexecmainlibdir='$(libdir)'
|
---|
5777 | fi
|
---|
5778 | toolexeclibdir=$toolexecmainlibdir/`$CC -print-multi-os-directory`
|
---|
5779 |
|
---|
5780 |
|
---|
5781 |
|
---|
5782 |
|
---|
5783 | # Determine gcj version number.
|
---|
5784 |
|
---|
5785 | gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
|
---|
5786 |
|
---|
5787 | GCJVERSION=$gcjversion
|
---|
5788 |
|
---|
5789 | cat >> confdefs.h <<EOF
|
---|
5790 | #define GCJVERSION "$GCJVERSION"
|
---|
5791 | EOF
|
---|
5792 |
|
---|
5793 |
|
---|
5794 | echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
|
---|
5795 | echo "configure:5796: checking for g++ -ffloat-store bug" >&5
|
---|
5796 | save_CFLAGS="$CFLAGS"
|
---|
5797 | CFLAGS="-x c++ -O2 -ffloat-store"
|
---|
5798 | cat > conftest.$ac_ext <<EOF
|
---|
5799 | #line 5800 "configure"
|
---|
5800 | #include "confdefs.h"
|
---|
5801 | #include <math.h>
|
---|
5802 | int main() {
|
---|
5803 |
|
---|
5804 | ; return 0; }
|
---|
5805 | EOF
|
---|
5806 | if { (eval echo configure:5807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5807 | rm -rf conftest*
|
---|
5808 | echo "$ac_t""no" 1>&6
|
---|
5809 | else
|
---|
5810 | echo "configure: failed program was:" >&5
|
---|
5811 | cat conftest.$ac_ext >&5
|
---|
5812 | rm -rf conftest*
|
---|
5813 | cat >> confdefs.h <<\EOF
|
---|
5814 | #define __NO_MATH_INLINES 1
|
---|
5815 | EOF
|
---|
5816 |
|
---|
5817 | echo "$ac_t""yes" 1>&6
|
---|
5818 | fi
|
---|
5819 | rm -f conftest*
|
---|
5820 | CFLAGS="$save_CFLAGS"
|
---|
5821 |
|
---|
5822 | for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
|
---|
5823 | do
|
---|
5824 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
5825 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
5826 | echo "configure:5827: checking for $ac_hdr" >&5
|
---|
5827 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
5828 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5829 | else
|
---|
5830 | cat > conftest.$ac_ext <<EOF
|
---|
5831 | #line 5832 "configure"
|
---|
5832 | #include "confdefs.h"
|
---|
5833 | #include <$ac_hdr>
|
---|
5834 | EOF
|
---|
5835 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5836 | { (eval echo configure:5837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5837 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5838 | if test -z "$ac_err"; then
|
---|
5839 | rm -rf conftest*
|
---|
5840 | eval "ac_cv_header_$ac_safe=yes"
|
---|
5841 | else
|
---|
5842 | echo "$ac_err" >&5
|
---|
5843 | echo "configure: failed program was:" >&5
|
---|
5844 | cat conftest.$ac_ext >&5
|
---|
5845 | rm -rf conftest*
|
---|
5846 | eval "ac_cv_header_$ac_safe=no"
|
---|
5847 | fi
|
---|
5848 | rm -f conftest*
|
---|
5849 | fi
|
---|
5850 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
5851 | echo "$ac_t""yes" 1>&6
|
---|
5852 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
5853 | cat >> confdefs.h <<EOF
|
---|
5854 | #define $ac_tr_hdr 1
|
---|
5855 | EOF
|
---|
5856 |
|
---|
5857 | else
|
---|
5858 | echo "$ac_t""no" 1>&6
|
---|
5859 | fi
|
---|
5860 | done
|
---|
5861 |
|
---|
5862 | for ac_hdr in dirent.h
|
---|
5863 | do
|
---|
5864 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
5865 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
5866 | echo "configure:5867: checking for $ac_hdr" >&5
|
---|
5867 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
5868 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5869 | else
|
---|
5870 | cat > conftest.$ac_ext <<EOF
|
---|
5871 | #line 5872 "configure"
|
---|
5872 | #include "confdefs.h"
|
---|
5873 | #include <$ac_hdr>
|
---|
5874 | EOF
|
---|
5875 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5876 | { (eval echo configure:5877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5877 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5878 | if test -z "$ac_err"; then
|
---|
5879 | rm -rf conftest*
|
---|
5880 | eval "ac_cv_header_$ac_safe=yes"
|
---|
5881 | else
|
---|
5882 | echo "$ac_err" >&5
|
---|
5883 | echo "configure: failed program was:" >&5
|
---|
5884 | cat conftest.$ac_ext >&5
|
---|
5885 | rm -rf conftest*
|
---|
5886 | eval "ac_cv_header_$ac_safe=no"
|
---|
5887 | fi
|
---|
5888 | rm -f conftest*
|
---|
5889 | fi
|
---|
5890 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
5891 | echo "$ac_t""yes" 1>&6
|
---|
5892 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
5893 | cat >> confdefs.h <<EOF
|
---|
5894 | #define $ac_tr_hdr 1
|
---|
5895 | EOF
|
---|
5896 |
|
---|
5897 | else
|
---|
5898 | echo "$ac_t""no" 1>&6
|
---|
5899 | fi
|
---|
5900 | done
|
---|
5901 |
|
---|
5902 | for ac_hdr in inttypes.h
|
---|
5903 | do
|
---|
5904 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
5905 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
5906 | echo "configure:5907: checking for $ac_hdr" >&5
|
---|
5907 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
5908 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5909 | else
|
---|
5910 | cat > conftest.$ac_ext <<EOF
|
---|
5911 | #line 5912 "configure"
|
---|
5912 | #include "confdefs.h"
|
---|
5913 | #include <$ac_hdr>
|
---|
5914 | EOF
|
---|
5915 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5916 | { (eval echo configure:5917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5917 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5918 | if test -z "$ac_err"; then
|
---|
5919 | rm -rf conftest*
|
---|
5920 | eval "ac_cv_header_$ac_safe=yes"
|
---|
5921 | else
|
---|
5922 | echo "$ac_err" >&5
|
---|
5923 | echo "configure: failed program was:" >&5
|
---|
5924 | cat conftest.$ac_ext >&5
|
---|
5925 | rm -rf conftest*
|
---|
5926 | eval "ac_cv_header_$ac_safe=no"
|
---|
5927 | fi
|
---|
5928 | rm -f conftest*
|
---|
5929 | fi
|
---|
5930 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
5931 | echo "$ac_t""yes" 1>&6
|
---|
5932 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
5933 | cat >> confdefs.h <<EOF
|
---|
5934 | #define $ac_tr_hdr 1
|
---|
5935 | EOF
|
---|
5936 |
|
---|
5937 | cat >> confdefs.h <<\EOF
|
---|
5938 | #define HAVE_INTTYPES_H 1
|
---|
5939 | EOF
|
---|
5940 |
|
---|
5941 | cat >> confdefs.h <<\EOF
|
---|
5942 | #define JV_HAVE_INTTYPES_H 1
|
---|
5943 | EOF
|
---|
5944 |
|
---|
5945 |
|
---|
5946 | else
|
---|
5947 | echo "$ac_t""no" 1>&6
|
---|
5948 | fi
|
---|
5949 | done
|
---|
5950 |
|
---|
5951 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
---|
5952 | echo "configure:5953: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
---|
5953 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
|
---|
5954 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5955 | else
|
---|
5956 | cat > conftest.$ac_ext <<EOF
|
---|
5957 | #line 5958 "configure"
|
---|
5958 | #include "confdefs.h"
|
---|
5959 | #include <sys/types.h>
|
---|
5960 | #include <sys/wait.h>
|
---|
5961 | #ifndef WEXITSTATUS
|
---|
5962 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
---|
5963 | #endif
|
---|
5964 | #ifndef WIFEXITED
|
---|
5965 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
---|
5966 | #endif
|
---|
5967 | int main() {
|
---|
5968 | int s;
|
---|
5969 | wait (&s);
|
---|
5970 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
---|
5971 | ; return 0; }
|
---|
5972 | EOF
|
---|
5973 | if { (eval echo configure:5974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5974 | rm -rf conftest*
|
---|
5975 | ac_cv_header_sys_wait_h=yes
|
---|
5976 | else
|
---|
5977 | echo "configure: failed program was:" >&5
|
---|
5978 | cat conftest.$ac_ext >&5
|
---|
5979 | rm -rf conftest*
|
---|
5980 | ac_cv_header_sys_wait_h=no
|
---|
5981 | fi
|
---|
5982 | rm -f conftest*
|
---|
5983 | fi
|
---|
5984 |
|
---|
5985 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
---|
5986 | if test $ac_cv_header_sys_wait_h = yes; then
|
---|
5987 | cat >> confdefs.h <<\EOF
|
---|
5988 | #define HAVE_SYS_WAIT_H 1
|
---|
5989 | EOF
|
---|
5990 |
|
---|
5991 | fi
|
---|
5992 |
|
---|
5993 |
|
---|
5994 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
5995 | echo "configure:5996: checking for ANSI C header files" >&5
|
---|
5996 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
5997 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5998 | else
|
---|
5999 | cat > conftest.$ac_ext <<EOF
|
---|
6000 | #line 6001 "configure"
|
---|
6001 | #include "confdefs.h"
|
---|
6002 | #include <stdlib.h>
|
---|
6003 | #include <stdarg.h>
|
---|
6004 | #include <string.h>
|
---|
6005 | #include <float.h>
|
---|
6006 | EOF
|
---|
6007 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
6008 | { (eval echo configure:6009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
6009 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
6010 | if test -z "$ac_err"; then
|
---|
6011 | rm -rf conftest*
|
---|
6012 | ac_cv_header_stdc=yes
|
---|
6013 | else
|
---|
6014 | echo "$ac_err" >&5
|
---|
6015 | echo "configure: failed program was:" >&5
|
---|
6016 | cat conftest.$ac_ext >&5
|
---|
6017 | rm -rf conftest*
|
---|
6018 | ac_cv_header_stdc=no
|
---|
6019 | fi
|
---|
6020 | rm -f conftest*
|
---|
6021 |
|
---|
6022 | if test $ac_cv_header_stdc = yes; then
|
---|
6023 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
6024 | cat > conftest.$ac_ext <<EOF
|
---|
6025 | #line 6026 "configure"
|
---|
6026 | #include "confdefs.h"
|
---|
6027 | #include <string.h>
|
---|
6028 | EOF
|
---|
6029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6030 | egrep "memchr" >/dev/null 2>&1; then
|
---|
6031 | :
|
---|
6032 | else
|
---|
6033 | rm -rf conftest*
|
---|
6034 | ac_cv_header_stdc=no
|
---|
6035 | fi
|
---|
6036 | rm -f conftest*
|
---|
6037 |
|
---|
6038 | fi
|
---|
6039 |
|
---|
6040 | if test $ac_cv_header_stdc = yes; then
|
---|
6041 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
6042 | cat > conftest.$ac_ext <<EOF
|
---|
6043 | #line 6044 "configure"
|
---|
6044 | #include "confdefs.h"
|
---|
6045 | #include <stdlib.h>
|
---|
6046 | EOF
|
---|
6047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6048 | egrep "free" >/dev/null 2>&1; then
|
---|
6049 | :
|
---|
6050 | else
|
---|
6051 | rm -rf conftest*
|
---|
6052 | ac_cv_header_stdc=no
|
---|
6053 | fi
|
---|
6054 | rm -f conftest*
|
---|
6055 |
|
---|
6056 | fi
|
---|
6057 |
|
---|
6058 | if test $ac_cv_header_stdc = yes; then
|
---|
6059 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
6060 | if test "$cross_compiling" = yes; then
|
---|
6061 | :
|
---|
6062 | else
|
---|
6063 | cat > conftest.$ac_ext <<EOF
|
---|
6064 | #line 6065 "configure"
|
---|
6065 | #include "confdefs.h"
|
---|
6066 | #include <ctype.h>
|
---|
6067 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
6068 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
6069 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
6070 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
6071 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
6072 | exit (0); }
|
---|
6073 |
|
---|
6074 | EOF
|
---|
6075 | if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
6076 | then
|
---|
6077 | :
|
---|
6078 | else
|
---|
6079 | echo "configure: failed program was:" >&5
|
---|
6080 | cat conftest.$ac_ext >&5
|
---|
6081 | rm -fr conftest*
|
---|
6082 | ac_cv_header_stdc=no
|
---|
6083 | fi
|
---|
6084 | rm -fr conftest*
|
---|
6085 | fi
|
---|
6086 |
|
---|
6087 | fi
|
---|
6088 | fi
|
---|
6089 |
|
---|
6090 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
6091 | if test $ac_cv_header_stdc = yes; then
|
---|
6092 | cat >> confdefs.h <<\EOF
|
---|
6093 | #define STDC_HEADERS 1
|
---|
6094 | EOF
|
---|
6095 |
|
---|
6096 | fi
|
---|
6097 |
|
---|
6098 | echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
---|
6099 | echo "configure:6100: checking for ssize_t" >&5
|
---|
6100 | if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
|
---|
6101 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6102 | else
|
---|
6103 | cat > conftest.$ac_ext <<EOF
|
---|
6104 | #line 6105 "configure"
|
---|
6105 | #include "confdefs.h"
|
---|
6106 | #include <sys/types.h>
|
---|
6107 | #if STDC_HEADERS
|
---|
6108 | #include <stdlib.h>
|
---|
6109 | #include <stddef.h>
|
---|
6110 | #endif
|
---|
6111 | EOF
|
---|
6112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6113 | egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
6114 | rm -rf conftest*
|
---|
6115 | ac_cv_type_ssize_t=yes
|
---|
6116 | else
|
---|
6117 | rm -rf conftest*
|
---|
6118 | ac_cv_type_ssize_t=no
|
---|
6119 | fi
|
---|
6120 | rm -f conftest*
|
---|
6121 |
|
---|
6122 | fi
|
---|
6123 | echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
|
---|
6124 | if test $ac_cv_type_ssize_t = no; then
|
---|
6125 | cat >> confdefs.h <<\EOF
|
---|
6126 | #define ssize_t int
|
---|
6127 | EOF
|
---|
6128 |
|
---|
6129 | fi
|
---|
6130 |
|
---|
6131 |
|
---|
6132 | echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
|
---|
6133 | echo "configure:6134: checking for in_addr_t" >&5
|
---|
6134 | cat > conftest.$ac_ext <<EOF
|
---|
6135 | #line 6136 "configure"
|
---|
6136 | #include "confdefs.h"
|
---|
6137 | #include <sys/types.h>
|
---|
6138 | #if STDC_HEADERS
|
---|
6139 | #include <stdlib.h>
|
---|
6140 | #include <stddef.h>
|
---|
6141 | #endif
|
---|
6142 | #if HAVE_NETINET_IN_H
|
---|
6143 | #include <netinet/in.h>
|
---|
6144 | #endif
|
---|
6145 | int main() {
|
---|
6146 | in_addr_t foo;
|
---|
6147 | ; return 0; }
|
---|
6148 | EOF
|
---|
6149 | if { (eval echo configure:6150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6150 | rm -rf conftest*
|
---|
6151 | cat >> confdefs.h <<\EOF
|
---|
6152 | #define HAVE_IN_ADDR_T 1
|
---|
6153 | EOF
|
---|
6154 |
|
---|
6155 | echo "$ac_t""yes" 1>&6
|
---|
6156 | else
|
---|
6157 | echo "configure: failed program was:" >&5
|
---|
6158 | cat conftest.$ac_ext >&5
|
---|
6159 | rm -rf conftest*
|
---|
6160 | echo "$ac_t""no" 1>&6
|
---|
6161 | fi
|
---|
6162 | rm -f conftest*
|
---|
6163 |
|
---|
6164 | echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
|
---|
6165 | echo "configure:6166: checking whether struct ip_mreq is in netinet/in.h" >&5
|
---|
6166 | cat > conftest.$ac_ext <<EOF
|
---|
6167 | #line 6168 "configure"
|
---|
6168 | #include "confdefs.h"
|
---|
6169 | #include <netinet/in.h>
|
---|
6170 | int main() {
|
---|
6171 | struct ip_mreq mreq;
|
---|
6172 | ; return 0; }
|
---|
6173 | EOF
|
---|
6174 | if { (eval echo configure:6175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6175 | rm -rf conftest*
|
---|
6176 | cat >> confdefs.h <<\EOF
|
---|
6177 | #define HAVE_STRUCT_IP_MREQ 1
|
---|
6178 | EOF
|
---|
6179 |
|
---|
6180 | echo "$ac_t""yes" 1>&6
|
---|
6181 | else
|
---|
6182 | echo "configure: failed program was:" >&5
|
---|
6183 | cat conftest.$ac_ext >&5
|
---|
6184 | rm -rf conftest*
|
---|
6185 | echo "$ac_t""no" 1>&6
|
---|
6186 | fi
|
---|
6187 | rm -f conftest*
|
---|
6188 |
|
---|
6189 | echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
|
---|
6190 | echo "configure:6191: checking whether struct ipv6_mreq is in netinet/in.h" >&5
|
---|
6191 | cat > conftest.$ac_ext <<EOF
|
---|
6192 | #line 6193 "configure"
|
---|
6193 | #include "confdefs.h"
|
---|
6194 | #include <netinet/in.h>
|
---|
6195 | int main() {
|
---|
6196 | struct ipv6_mreq mreq6;
|
---|
6197 | ; return 0; }
|
---|
6198 | EOF
|
---|
6199 | if { (eval echo configure:6200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6200 | rm -rf conftest*
|
---|
6201 | cat >> confdefs.h <<\EOF
|
---|
6202 | #define HAVE_STRUCT_IPV6_MREQ 1
|
---|
6203 | EOF
|
---|
6204 |
|
---|
6205 | echo "$ac_t""yes" 1>&6
|
---|
6206 | else
|
---|
6207 | echo "configure: failed program was:" >&5
|
---|
6208 | cat conftest.$ac_ext >&5
|
---|
6209 | rm -rf conftest*
|
---|
6210 | echo "$ac_t""no" 1>&6
|
---|
6211 | fi
|
---|
6212 | rm -f conftest*
|
---|
6213 |
|
---|
6214 | echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
|
---|
6215 | echo "configure:6216: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
|
---|
6216 | cat > conftest.$ac_ext <<EOF
|
---|
6217 | #line 6218 "configure"
|
---|
6218 | #include "confdefs.h"
|
---|
6219 | #include <netinet/in.h>
|
---|
6220 | int main() {
|
---|
6221 | struct sockaddr_in6 addr6;
|
---|
6222 | ; return 0; }
|
---|
6223 | EOF
|
---|
6224 | if { (eval echo configure:6225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6225 | rm -rf conftest*
|
---|
6226 | cat >> confdefs.h <<\EOF
|
---|
6227 | #define HAVE_INET6 1
|
---|
6228 | EOF
|
---|
6229 |
|
---|
6230 | echo "$ac_t""yes" 1>&6
|
---|
6231 | else
|
---|
6232 | echo "configure: failed program was:" >&5
|
---|
6233 | cat conftest.$ac_ext >&5
|
---|
6234 | rm -rf conftest*
|
---|
6235 | echo "$ac_t""no" 1>&6
|
---|
6236 | fi
|
---|
6237 | rm -f conftest*
|
---|
6238 |
|
---|
6239 | echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
|
---|
6240 | echo "configure:6241: checking for socklen_t in sys/socket.h" >&5
|
---|
6241 | cat > conftest.$ac_ext <<EOF
|
---|
6242 | #line 6243 "configure"
|
---|
6243 | #include "confdefs.h"
|
---|
6244 | #define _POSIX_PII_SOCKET
|
---|
6245 | #include <sys/types.h>
|
---|
6246 | #include <sys/socket.h>
|
---|
6247 | int main() {
|
---|
6248 | socklen_t x = 5;
|
---|
6249 | ; return 0; }
|
---|
6250 | EOF
|
---|
6251 | if { (eval echo configure:6252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6252 | rm -rf conftest*
|
---|
6253 | cat >> confdefs.h <<\EOF
|
---|
6254 | #define HAVE_SOCKLEN_T 1
|
---|
6255 | EOF
|
---|
6256 |
|
---|
6257 | echo "$ac_t""yes" 1>&6
|
---|
6258 | else
|
---|
6259 | echo "configure: failed program was:" >&5
|
---|
6260 | cat conftest.$ac_ext >&5
|
---|
6261 | rm -rf conftest*
|
---|
6262 | echo "$ac_t""no" 1>&6
|
---|
6263 | fi
|
---|
6264 | rm -f conftest*
|
---|
6265 |
|
---|
6266 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
|
---|
6267 | echo "configure:6268: checking for tm_gmtoff in struct tm" >&5
|
---|
6268 | cat > conftest.$ac_ext <<EOF
|
---|
6269 | #line 6270 "configure"
|
---|
6270 | #include "confdefs.h"
|
---|
6271 | #include <time.h>
|
---|
6272 | int main() {
|
---|
6273 | struct tm tim; tim.tm_gmtoff = 0;
|
---|
6274 | ; return 0; }
|
---|
6275 | EOF
|
---|
6276 | if { (eval echo configure:6277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6277 | rm -rf conftest*
|
---|
6278 | cat >> confdefs.h <<\EOF
|
---|
6279 | #define STRUCT_TM_HAS_GMTOFF 1
|
---|
6280 | EOF
|
---|
6281 |
|
---|
6282 | echo "$ac_t""yes" 1>&6
|
---|
6283 | else
|
---|
6284 | echo "configure: failed program was:" >&5
|
---|
6285 | cat conftest.$ac_ext >&5
|
---|
6286 | rm -rf conftest*
|
---|
6287 | echo "$ac_t""no" 1>&6
|
---|
6288 | echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
|
---|
6289 | echo "configure:6290: checking for global timezone variable" >&5
|
---|
6290 | cat > conftest.$ac_ext <<EOF
|
---|
6291 | #line 6292 "configure"
|
---|
6292 | #include "confdefs.h"
|
---|
6293 | #include <time.h>
|
---|
6294 | int main() {
|
---|
6295 | void i(){long z2 = 2*timezone;}
|
---|
6296 | ; return 0; }
|
---|
6297 | EOF
|
---|
6298 | if { (eval echo configure:6299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6299 | rm -rf conftest*
|
---|
6300 | cat >> confdefs.h <<\EOF
|
---|
6301 | #define HAVE_TIMEZONE 1
|
---|
6302 | EOF
|
---|
6303 |
|
---|
6304 | echo "$ac_t""yes" 1>&6
|
---|
6305 | else
|
---|
6306 | echo "configure: failed program was:" >&5
|
---|
6307 | cat conftest.$ac_ext >&5
|
---|
6308 | rm -rf conftest*
|
---|
6309 | echo "$ac_t""no" 1>&6
|
---|
6310 | echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
|
---|
6311 | echo "configure:6312: checking for global _timezone variable" >&5
|
---|
6312 | cat > conftest.$ac_ext <<EOF
|
---|
6313 | #line 6314 "configure"
|
---|
6314 | #include "confdefs.h"
|
---|
6315 | #include <time.h>
|
---|
6316 | int main() {
|
---|
6317 | long z2 = _timezone;
|
---|
6318 | ; return 0; }
|
---|
6319 | EOF
|
---|
6320 | if { (eval echo configure:6321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6321 | rm -rf conftest*
|
---|
6322 | cat >> confdefs.h <<\EOF
|
---|
6323 | #define HAVE_UNDERSCORE_TIMEZONE 1
|
---|
6324 | EOF
|
---|
6325 |
|
---|
6326 | echo "$ac_t""yes" 1>&6
|
---|
6327 | else
|
---|
6328 | echo "configure: failed program was:" >&5
|
---|
6329 | cat conftest.$ac_ext >&5
|
---|
6330 | rm -rf conftest*
|
---|
6331 | echo "$ac_t""no" 1>&6
|
---|
6332 | fi
|
---|
6333 | rm -f conftest*
|
---|
6334 | fi
|
---|
6335 | rm -f conftest*
|
---|
6336 | fi
|
---|
6337 | rm -f conftest*
|
---|
6338 |
|
---|
6339 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
6340 | # for constant arguments. Useless!
|
---|
6341 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
6342 | echo "configure:6343: checking for working alloca.h" >&5
|
---|
6343 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
6344 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6345 | else
|
---|
6346 | cat > conftest.$ac_ext <<EOF
|
---|
6347 | #line 6348 "configure"
|
---|
6348 | #include "confdefs.h"
|
---|
6349 | #include <alloca.h>
|
---|
6350 | int main() {
|
---|
6351 | char *p = alloca(2 * sizeof(int));
|
---|
6352 | ; return 0; }
|
---|
6353 | EOF
|
---|
6354 | if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6355 | rm -rf conftest*
|
---|
6356 | ac_cv_header_alloca_h=yes
|
---|
6357 | else
|
---|
6358 | echo "configure: failed program was:" >&5
|
---|
6359 | cat conftest.$ac_ext >&5
|
---|
6360 | rm -rf conftest*
|
---|
6361 | ac_cv_header_alloca_h=no
|
---|
6362 | fi
|
---|
6363 | rm -f conftest*
|
---|
6364 | fi
|
---|
6365 |
|
---|
6366 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
6367 | if test $ac_cv_header_alloca_h = yes; then
|
---|
6368 | cat >> confdefs.h <<\EOF
|
---|
6369 | #define HAVE_ALLOCA_H 1
|
---|
6370 | EOF
|
---|
6371 |
|
---|
6372 | fi
|
---|
6373 |
|
---|
6374 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
6375 | echo "configure:6376: checking for alloca" >&5
|
---|
6376 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
6377 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6378 | else
|
---|
6379 | cat > conftest.$ac_ext <<EOF
|
---|
6380 | #line 6381 "configure"
|
---|
6381 | #include "confdefs.h"
|
---|
6382 |
|
---|
6383 | #ifdef __GNUC__
|
---|
6384 | # define alloca __builtin_alloca
|
---|
6385 | #else
|
---|
6386 | # ifdef _MSC_VER
|
---|
6387 | # include <malloc.h>
|
---|
6388 | # define alloca _alloca
|
---|
6389 | # else
|
---|
6390 | # if HAVE_ALLOCA_H
|
---|
6391 | # include <alloca.h>
|
---|
6392 | # else
|
---|
6393 | # ifdef _AIX
|
---|
6394 | #pragma alloca
|
---|
6395 | # else
|
---|
6396 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
6397 | char *alloca ();
|
---|
6398 | # endif
|
---|
6399 | # endif
|
---|
6400 | # endif
|
---|
6401 | # endif
|
---|
6402 | #endif
|
---|
6403 |
|
---|
6404 | int main() {
|
---|
6405 | char *p = (char *) alloca(1);
|
---|
6406 | ; return 0; }
|
---|
6407 | EOF
|
---|
6408 | if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6409 | rm -rf conftest*
|
---|
6410 | ac_cv_func_alloca_works=yes
|
---|
6411 | else
|
---|
6412 | echo "configure: failed program was:" >&5
|
---|
6413 | cat conftest.$ac_ext >&5
|
---|
6414 | rm -rf conftest*
|
---|
6415 | ac_cv_func_alloca_works=no
|
---|
6416 | fi
|
---|
6417 | rm -f conftest*
|
---|
6418 | fi
|
---|
6419 |
|
---|
6420 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
6421 | if test $ac_cv_func_alloca_works = yes; then
|
---|
6422 | cat >> confdefs.h <<\EOF
|
---|
6423 | #define HAVE_ALLOCA 1
|
---|
6424 | EOF
|
---|
6425 |
|
---|
6426 | fi
|
---|
6427 |
|
---|
6428 | if test $ac_cv_func_alloca_works = no; then
|
---|
6429 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
6430 | # that cause trouble. Some versions do not even contain alloca or
|
---|
6431 | # contain a buggy version. If you still want to use their alloca,
|
---|
6432 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
6433 | ALLOCA=alloca.${ac_objext}
|
---|
6434 | cat >> confdefs.h <<\EOF
|
---|
6435 | #define C_ALLOCA 1
|
---|
6436 | EOF
|
---|
6437 |
|
---|
6438 |
|
---|
6439 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
6440 | echo "configure:6441: checking whether alloca needs Cray hooks" >&5
|
---|
6441 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
6442 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6443 | else
|
---|
6444 | cat > conftest.$ac_ext <<EOF
|
---|
6445 | #line 6446 "configure"
|
---|
6446 | #include "confdefs.h"
|
---|
6447 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
6448 | webecray
|
---|
6449 | #else
|
---|
6450 | wenotbecray
|
---|
6451 | #endif
|
---|
6452 |
|
---|
6453 | EOF
|
---|
6454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6455 | egrep "webecray" >/dev/null 2>&1; then
|
---|
6456 | rm -rf conftest*
|
---|
6457 | ac_cv_os_cray=yes
|
---|
6458 | else
|
---|
6459 | rm -rf conftest*
|
---|
6460 | ac_cv_os_cray=no
|
---|
6461 | fi
|
---|
6462 | rm -f conftest*
|
---|
6463 |
|
---|
6464 | fi
|
---|
6465 |
|
---|
6466 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
6467 | if test $ac_cv_os_cray = yes; then
|
---|
6468 | for ac_func in _getb67 GETB67 getb67; do
|
---|
6469 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
6470 | echo "configure:6471: checking for $ac_func" >&5
|
---|
6471 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
6472 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6473 | else
|
---|
6474 | cat > conftest.$ac_ext <<EOF
|
---|
6475 | #line 6476 "configure"
|
---|
6476 | #include "confdefs.h"
|
---|
6477 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6478 | which can conflict with char $ac_func(); below. */
|
---|
6479 | #include <assert.h>
|
---|
6480 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6481 | /* We use char because int might match the return type of a gcc2
|
---|
6482 | builtin and then its argument prototype would still apply. */
|
---|
6483 | char $ac_func();
|
---|
6484 |
|
---|
6485 | int main() {
|
---|
6486 |
|
---|
6487 | /* The GNU C library defines this for functions which it implements
|
---|
6488 | to always fail with ENOSYS. Some functions are actually named
|
---|
6489 | something starting with __ and the normal name is an alias. */
|
---|
6490 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6491 | choke me
|
---|
6492 | #else
|
---|
6493 | $ac_func();
|
---|
6494 | #endif
|
---|
6495 |
|
---|
6496 | ; return 0; }
|
---|
6497 | EOF
|
---|
6498 | if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6499 | rm -rf conftest*
|
---|
6500 | eval "ac_cv_func_$ac_func=yes"
|
---|
6501 | else
|
---|
6502 | echo "configure: failed program was:" >&5
|
---|
6503 | cat conftest.$ac_ext >&5
|
---|
6504 | rm -rf conftest*
|
---|
6505 | eval "ac_cv_func_$ac_func=no"
|
---|
6506 | fi
|
---|
6507 | rm -f conftest*
|
---|
6508 | fi
|
---|
6509 |
|
---|
6510 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
6511 | echo "$ac_t""yes" 1>&6
|
---|
6512 | cat >> confdefs.h <<EOF
|
---|
6513 | #define CRAY_STACKSEG_END $ac_func
|
---|
6514 | EOF
|
---|
6515 |
|
---|
6516 | break
|
---|
6517 | else
|
---|
6518 | echo "$ac_t""no" 1>&6
|
---|
6519 | fi
|
---|
6520 |
|
---|
6521 | done
|
---|
6522 | fi
|
---|
6523 |
|
---|
6524 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
6525 | echo "configure:6526: checking stack direction for C alloca" >&5
|
---|
6526 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
6527 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6528 | else
|
---|
6529 | if test "$cross_compiling" = yes; then
|
---|
6530 | ac_cv_c_stack_direction=0
|
---|
6531 | else
|
---|
6532 | cat > conftest.$ac_ext <<EOF
|
---|
6533 | #line 6534 "configure"
|
---|
6534 | #include "confdefs.h"
|
---|
6535 | find_stack_direction ()
|
---|
6536 | {
|
---|
6537 | static char *addr = 0;
|
---|
6538 | auto char dummy;
|
---|
6539 | if (addr == 0)
|
---|
6540 | {
|
---|
6541 | addr = &dummy;
|
---|
6542 | return find_stack_direction ();
|
---|
6543 | }
|
---|
6544 | else
|
---|
6545 | return (&dummy > addr) ? 1 : -1;
|
---|
6546 | }
|
---|
6547 | main ()
|
---|
6548 | {
|
---|
6549 | exit (find_stack_direction() < 0);
|
---|
6550 | }
|
---|
6551 | EOF
|
---|
6552 | if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
6553 | then
|
---|
6554 | ac_cv_c_stack_direction=1
|
---|
6555 | else
|
---|
6556 | echo "configure: failed program was:" >&5
|
---|
6557 | cat conftest.$ac_ext >&5
|
---|
6558 | rm -fr conftest*
|
---|
6559 | ac_cv_c_stack_direction=-1
|
---|
6560 | fi
|
---|
6561 | rm -fr conftest*
|
---|
6562 | fi
|
---|
6563 |
|
---|
6564 | fi
|
---|
6565 |
|
---|
6566 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
6567 | cat >> confdefs.h <<EOF
|
---|
6568 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
6569 | EOF
|
---|
6570 |
|
---|
6571 | fi
|
---|
6572 |
|
---|
6573 |
|
---|
6574 | for ac_prog in perl
|
---|
6575 | do
|
---|
6576 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
6577 | set dummy $ac_prog; ac_word=$2
|
---|
6578 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
6579 | echo "configure:6580: checking for $ac_word" >&5
|
---|
6580 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
|
---|
6581 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6582 | else
|
---|
6583 | if test -n "$PERL"; then
|
---|
6584 | ac_cv_prog_PERL="$PERL" # Let the user override the test.
|
---|
6585 | else
|
---|
6586 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
6587 | ac_dummy="$PATH"
|
---|
6588 | for ac_dir in $ac_dummy; do
|
---|
6589 | test -z "$ac_dir" && ac_dir=.
|
---|
6590 | if test -f $ac_dir/$ac_word; then
|
---|
6591 | ac_cv_prog_PERL="$ac_prog"
|
---|
6592 | break
|
---|
6593 | fi
|
---|
6594 | done
|
---|
6595 | IFS="$ac_save_ifs"
|
---|
6596 | fi
|
---|
6597 | fi
|
---|
6598 | PERL="$ac_cv_prog_PERL"
|
---|
6599 | if test -n "$PERL"; then
|
---|
6600 | echo "$ac_t""$PERL" 1>&6
|
---|
6601 | else
|
---|
6602 | echo "$ac_t""no" 1>&6
|
---|
6603 | fi
|
---|
6604 |
|
---|
6605 | test -n "$PERL" && break
|
---|
6606 | done
|
---|
6607 | test -n "$PERL" || PERL="false"
|
---|
6608 |
|
---|
6609 |
|
---|
6610 | SYSDEP_SOURCES=
|
---|
6611 |
|
---|
6612 | case "${host}" in
|
---|
6613 | i?86-*-linux*)
|
---|
6614 | SIGNAL_HANDLER=include/i386-signal.h
|
---|
6615 | ;;
|
---|
6616 | sparc*-sun-solaris*)
|
---|
6617 | SIGNAL_HANDLER=include/sparc-signal.h
|
---|
6618 | ;;
|
---|
6619 | # ia64-*)
|
---|
6620 | # SYSDEP_SOURCES=sysdep/ia64.c
|
---|
6621 | # test -d sysdep || mkdir sysdep
|
---|
6622 | # ;;
|
---|
6623 | ia64-*-linux*)
|
---|
6624 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
---|
6625 | ;;
|
---|
6626 | powerpc-*-linux*)
|
---|
6627 | SIGNAL_HANDLER=include/powerpc-signal.h
|
---|
6628 | ;;
|
---|
6629 | alpha*-*-linux*)
|
---|
6630 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
---|
6631 | ;;
|
---|
6632 | s390*-*-linux*)
|
---|
6633 | SIGNAL_HANDLER=include/s390-signal.h
|
---|
6634 | ;;
|
---|
6635 | x86_64*-*-linux*)
|
---|
6636 | SIGNAL_HANDLER=include/x86_64-signal.h
|
---|
6637 | ;;
|
---|
6638 | sparc*-*-linux*)
|
---|
6639 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
---|
6640 | ;;
|
---|
6641 | *mingw*)
|
---|
6642 | SIGNAL_HANDLER=include/win32-signal.h
|
---|
6643 | ;;
|
---|
6644 | *)
|
---|
6645 | SIGNAL_HANDLER=include/default-signal.h
|
---|
6646 | ;;
|
---|
6647 | esac
|
---|
6648 |
|
---|
6649 | # If we're using sjlj exceptions, forget what we just learned.
|
---|
6650 | if test "$enable_sjlj_exceptions" = yes; then
|
---|
6651 | SIGNAL_HANDLER=include/default-signal.h
|
---|
6652 | fi
|
---|
6653 |
|
---|
6654 | # Define here any compiler flags that you need in order to make backtrace() work.
|
---|
6655 | BACKTRACESPEC=
|
---|
6656 | case "${host}" in
|
---|
6657 | x86_64*-*-linux*)
|
---|
6658 | BACKTRACESPEC=-fno-omit-frame-pointer
|
---|
6659 | ;;
|
---|
6660 | esac
|
---|
6661 |
|
---|
6662 |
|
---|
6663 |
|
---|
6664 |
|
---|
6665 |
|
---|
6666 |
|
---|
6667 | if test "${multilib}" = "yes"; then
|
---|
6668 | multilib_arg="--enable-multilib"
|
---|
6669 | else
|
---|
6670 | multilib_arg=
|
---|
6671 | fi
|
---|
6672 |
|
---|
6673 | # If we find X, set shell vars x_includes and x_libraries to the
|
---|
6674 | # paths, otherwise set no_x=yes.
|
---|
6675 | # Uses ac_ vars as temps to allow command line to override cache and checks.
|
---|
6676 | # --without-x overrides everything else, but does not touch the cache.
|
---|
6677 | echo $ac_n "checking for X""... $ac_c" 1>&6
|
---|
6678 | echo "configure:6679: checking for X" >&5
|
---|
6679 |
|
---|
6680 | # Check whether --with-x or --without-x was given.
|
---|
6681 | if test "${with_x+set}" = set; then
|
---|
6682 | withval="$with_x"
|
---|
6683 | :
|
---|
6684 | fi
|
---|
6685 |
|
---|
6686 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
---|
6687 | if test "x$with_x" = xno; then
|
---|
6688 | # The user explicitly disabled X.
|
---|
6689 | have_x=disabled
|
---|
6690 | else
|
---|
6691 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
---|
6692 | # Both variables are already set.
|
---|
6693 | have_x=yes
|
---|
6694 | else
|
---|
6695 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
|
---|
6696 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6697 | else
|
---|
6698 | # One or both of the vars are not set, and there is no cached value.
|
---|
6699 | ac_x_includes=NO ac_x_libraries=NO
|
---|
6700 | rm -fr conftestdir
|
---|
6701 | if mkdir conftestdir; then
|
---|
6702 | cd conftestdir
|
---|
6703 | # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
---|
6704 | cat > Imakefile <<'EOF'
|
---|
6705 | acfindx:
|
---|
6706 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
---|
6707 | EOF
|
---|
6708 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
---|
6709 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
6710 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
---|
6711 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
---|
6712 | for ac_extension in a so sl; do
|
---|
6713 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
---|
6714 | test -f $ac_im_libdir/libX11.$ac_extension; then
|
---|
6715 | ac_im_usrlibdir=$ac_im_libdir; break
|
---|
6716 | fi
|
---|
6717 | done
|
---|
6718 | # Screen out bogus values from the imake configuration. They are
|
---|
6719 | # bogus both because they are the default anyway, and because
|
---|
6720 | # using them would break gcc on systems where it needs fixed includes.
|
---|
6721 | case "$ac_im_incroot" in
|
---|
6722 | /usr/include) ;;
|
---|
6723 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
---|
6724 | esac
|
---|
6725 | case "$ac_im_usrlibdir" in
|
---|
6726 | /usr/lib | /lib) ;;
|
---|
6727 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
---|
6728 | esac
|
---|
6729 | fi
|
---|
6730 | cd ..
|
---|
6731 | rm -fr conftestdir
|
---|
6732 | fi
|
---|
6733 |
|
---|
6734 | if test "$ac_x_includes" = NO; then
|
---|
6735 | # Guess where to find include files, by looking for this one X11 .h file.
|
---|
6736 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
---|
6737 |
|
---|
6738 | # First, try using that file with no special directory specified.
|
---|
6739 | cat > conftest.$ac_ext <<EOF
|
---|
6740 | #line 6741 "configure"
|
---|
6741 | #include "confdefs.h"
|
---|
6742 | #include <$x_direct_test_include>
|
---|
6743 | EOF
|
---|
6744 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
6745 | { (eval echo configure:6746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
6746 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
6747 | if test -z "$ac_err"; then
|
---|
6748 | rm -rf conftest*
|
---|
6749 | # We can compile using X headers with no special include directory.
|
---|
6750 | ac_x_includes=
|
---|
6751 | else
|
---|
6752 | echo "$ac_err" >&5
|
---|
6753 | echo "configure: failed program was:" >&5
|
---|
6754 | cat conftest.$ac_ext >&5
|
---|
6755 | rm -rf conftest*
|
---|
6756 | # Look for the header file in a standard set of common directories.
|
---|
6757 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
6758 | for ac_dir in \
|
---|
6759 | /usr/X11/include \
|
---|
6760 | /usr/X11R6/include \
|
---|
6761 | /usr/X11R5/include \
|
---|
6762 | /usr/X11R4/include \
|
---|
6763 | \
|
---|
6764 | /usr/include/X11 \
|
---|
6765 | /usr/include/X11R6 \
|
---|
6766 | /usr/include/X11R5 \
|
---|
6767 | /usr/include/X11R4 \
|
---|
6768 | \
|
---|
6769 | /usr/local/X11/include \
|
---|
6770 | /usr/local/X11R6/include \
|
---|
6771 | /usr/local/X11R5/include \
|
---|
6772 | /usr/local/X11R4/include \
|
---|
6773 | \
|
---|
6774 | /usr/local/include/X11 \
|
---|
6775 | /usr/local/include/X11R6 \
|
---|
6776 | /usr/local/include/X11R5 \
|
---|
6777 | /usr/local/include/X11R4 \
|
---|
6778 | \
|
---|
6779 | /usr/X386/include \
|
---|
6780 | /usr/x386/include \
|
---|
6781 | /usr/XFree86/include/X11 \
|
---|
6782 | \
|
---|
6783 | /usr/include \
|
---|
6784 | /usr/local/include \
|
---|
6785 | /usr/unsupported/include \
|
---|
6786 | /usr/athena/include \
|
---|
6787 | /usr/local/x11r5/include \
|
---|
6788 | /usr/lpp/Xamples/include \
|
---|
6789 | \
|
---|
6790 | /usr/openwin/include \
|
---|
6791 | /usr/openwin/share/include \
|
---|
6792 | ; \
|
---|
6793 | do
|
---|
6794 | if test -r "$ac_dir/$x_direct_test_include"; then
|
---|
6795 | ac_x_includes=$ac_dir
|
---|
6796 | break
|
---|
6797 | fi
|
---|
6798 | done
|
---|
6799 | fi
|
---|
6800 | rm -f conftest*
|
---|
6801 | fi # $ac_x_includes = NO
|
---|
6802 |
|
---|
6803 | if test "$ac_x_libraries" = NO; then
|
---|
6804 | # Check for the libraries.
|
---|
6805 |
|
---|
6806 | test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
---|
6807 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
---|
6808 |
|
---|
6809 | # See if we find them without any special options.
|
---|
6810 | # Don't add to $LIBS permanently.
|
---|
6811 | ac_save_LIBS="$LIBS"
|
---|
6812 | LIBS="-l$x_direct_test_library $LIBS"
|
---|
6813 | cat > conftest.$ac_ext <<EOF
|
---|
6814 | #line 6815 "configure"
|
---|
6815 | #include "confdefs.h"
|
---|
6816 |
|
---|
6817 | int main() {
|
---|
6818 | ${x_direct_test_function}()
|
---|
6819 | ; return 0; }
|
---|
6820 | EOF
|
---|
6821 | if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6822 | rm -rf conftest*
|
---|
6823 | LIBS="$ac_save_LIBS"
|
---|
6824 | # We can link X programs with no special library path.
|
---|
6825 | ac_x_libraries=
|
---|
6826 | else
|
---|
6827 | echo "configure: failed program was:" >&5
|
---|
6828 | cat conftest.$ac_ext >&5
|
---|
6829 | rm -rf conftest*
|
---|
6830 | LIBS="$ac_save_LIBS"
|
---|
6831 | # First see if replacing the include by lib works.
|
---|
6832 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
6833 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
---|
6834 | /usr/X11/lib \
|
---|
6835 | /usr/X11R6/lib \
|
---|
6836 | /usr/X11R5/lib \
|
---|
6837 | /usr/X11R4/lib \
|
---|
6838 | \
|
---|
6839 | /usr/lib/X11 \
|
---|
6840 | /usr/lib/X11R6 \
|
---|
6841 | /usr/lib/X11R5 \
|
---|
6842 | /usr/lib/X11R4 \
|
---|
6843 | \
|
---|
6844 | /usr/local/X11/lib \
|
---|
6845 | /usr/local/X11R6/lib \
|
---|
6846 | /usr/local/X11R5/lib \
|
---|
6847 | /usr/local/X11R4/lib \
|
---|
6848 | \
|
---|
6849 | /usr/local/lib/X11 \
|
---|
6850 | /usr/local/lib/X11R6 \
|
---|
6851 | /usr/local/lib/X11R5 \
|
---|
6852 | /usr/local/lib/X11R4 \
|
---|
6853 | \
|
---|
6854 | /usr/X386/lib \
|
---|
6855 | /usr/x386/lib \
|
---|
6856 | /usr/XFree86/lib/X11 \
|
---|
6857 | \
|
---|
6858 | /usr/lib \
|
---|
6859 | /usr/local/lib \
|
---|
6860 | /usr/unsupported/lib \
|
---|
6861 | /usr/athena/lib \
|
---|
6862 | /usr/local/x11r5/lib \
|
---|
6863 | /usr/lpp/Xamples/lib \
|
---|
6864 | /lib/usr/lib/X11 \
|
---|
6865 | \
|
---|
6866 | /usr/openwin/lib \
|
---|
6867 | /usr/openwin/share/lib \
|
---|
6868 | ; \
|
---|
6869 | do
|
---|
6870 | for ac_extension in a so sl; do
|
---|
6871 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
---|
6872 | ac_x_libraries=$ac_dir
|
---|
6873 | break 2
|
---|
6874 | fi
|
---|
6875 | done
|
---|
6876 | done
|
---|
6877 | fi
|
---|
6878 | rm -f conftest*
|
---|
6879 | fi # $ac_x_libraries = NO
|
---|
6880 |
|
---|
6881 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
---|
6882 | # Didn't find X anywhere. Cache the known absence of X.
|
---|
6883 | ac_cv_have_x="have_x=no"
|
---|
6884 | else
|
---|
6885 | # Record where we found X for the cache.
|
---|
6886 | ac_cv_have_x="have_x=yes \
|
---|
6887 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
---|
6888 | fi
|
---|
6889 | fi
|
---|
6890 | fi
|
---|
6891 | eval "$ac_cv_have_x"
|
---|
6892 | fi # $with_x != no
|
---|
6893 |
|
---|
6894 | if test "$have_x" != yes; then
|
---|
6895 | echo "$ac_t""$have_x" 1>&6
|
---|
6896 | no_x=yes
|
---|
6897 | else
|
---|
6898 | # If each of the values was on the command line, it overrides each guess.
|
---|
6899 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
---|
6900 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
---|
6901 | # Update the cache value to reflect the command line values.
|
---|
6902 | ac_cv_have_x="have_x=yes \
|
---|
6903 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
---|
6904 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
---|
6905 | fi
|
---|
6906 |
|
---|
6907 | if test "$no_x" = yes; then
|
---|
6908 | # Not all programs may use this symbol, but it does not hurt to define it.
|
---|
6909 | cat >> confdefs.h <<\EOF
|
---|
6910 | #define X_DISPLAY_MISSING 1
|
---|
6911 | EOF
|
---|
6912 |
|
---|
6913 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
---|
6914 | else
|
---|
6915 | if test -n "$x_includes"; then
|
---|
6916 | X_CFLAGS="$X_CFLAGS -I$x_includes"
|
---|
6917 | fi
|
---|
6918 |
|
---|
6919 | # It would also be nice to do this for all -L options, not just this one.
|
---|
6920 | if test -n "$x_libraries"; then
|
---|
6921 | X_LIBS="$X_LIBS -L$x_libraries"
|
---|
6922 | # For Solaris; some versions of Sun CC require a space after -R and
|
---|
6923 | # others require no space. Words are not sufficient . . . .
|
---|
6924 | case "`(uname -sr) 2>/dev/null`" in
|
---|
6925 | "SunOS 5"*)
|
---|
6926 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
---|
6927 | echo "configure:6928: checking whether -R must be followed by a space" >&5
|
---|
6928 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
---|
6929 | cat > conftest.$ac_ext <<EOF
|
---|
6930 | #line 6931 "configure"
|
---|
6931 | #include "confdefs.h"
|
---|
6932 |
|
---|
6933 | int main() {
|
---|
6934 |
|
---|
6935 | ; return 0; }
|
---|
6936 | EOF
|
---|
6937 | if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6938 | rm -rf conftest*
|
---|
6939 | ac_R_nospace=yes
|
---|
6940 | else
|
---|
6941 | echo "configure: failed program was:" >&5
|
---|
6942 | cat conftest.$ac_ext >&5
|
---|
6943 | rm -rf conftest*
|
---|
6944 | ac_R_nospace=no
|
---|
6945 | fi
|
---|
6946 | rm -f conftest*
|
---|
6947 | if test $ac_R_nospace = yes; then
|
---|
6948 | echo "$ac_t""no" 1>&6
|
---|
6949 | X_LIBS="$X_LIBS -R$x_libraries"
|
---|
6950 | else
|
---|
6951 | LIBS="$ac_xsave_LIBS -R $x_libraries"
|
---|
6952 | cat > conftest.$ac_ext <<EOF
|
---|
6953 | #line 6954 "configure"
|
---|
6954 | #include "confdefs.h"
|
---|
6955 |
|
---|
6956 | int main() {
|
---|
6957 |
|
---|
6958 | ; return 0; }
|
---|
6959 | EOF
|
---|
6960 | if { (eval echo configure:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6961 | rm -rf conftest*
|
---|
6962 | ac_R_space=yes
|
---|
6963 | else
|
---|
6964 | echo "configure: failed program was:" >&5
|
---|
6965 | cat conftest.$ac_ext >&5
|
---|
6966 | rm -rf conftest*
|
---|
6967 | ac_R_space=no
|
---|
6968 | fi
|
---|
6969 | rm -f conftest*
|
---|
6970 | if test $ac_R_space = yes; then
|
---|
6971 | echo "$ac_t""yes" 1>&6
|
---|
6972 | X_LIBS="$X_LIBS -R $x_libraries"
|
---|
6973 | else
|
---|
6974 | echo "$ac_t""neither works" 1>&6
|
---|
6975 | fi
|
---|
6976 | fi
|
---|
6977 | LIBS="$ac_xsave_LIBS"
|
---|
6978 | esac
|
---|
6979 | fi
|
---|
6980 |
|
---|
6981 | # Check for system-dependent libraries X programs must link with.
|
---|
6982 | # Do this before checking for the system-independent R6 libraries
|
---|
6983 | # (-lICE), since we may need -lsocket or whatever for X linking.
|
---|
6984 |
|
---|
6985 | if test "$ISC" = yes; then
|
---|
6986 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
---|
6987 | else
|
---|
6988 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
---|
6989 | # libraries were built with DECnet support. And karl@cs.umb.edu says
|
---|
6990 | # the Alpha needs dnet_stub (dnet does not exist).
|
---|
6991 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
---|
6992 | echo "configure:6993: checking for dnet_ntoa in -ldnet" >&5
|
---|
6993 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
---|
6994 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
6995 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6996 | else
|
---|
6997 | ac_save_LIBS="$LIBS"
|
---|
6998 | LIBS="-ldnet $LIBS"
|
---|
6999 | cat > conftest.$ac_ext <<EOF
|
---|
7000 | #line 7001 "configure"
|
---|
7001 | #include "confdefs.h"
|
---|
7002 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7003 | /* We use char because int might match the return type of a gcc2
|
---|
7004 | builtin and then its argument prototype would still apply. */
|
---|
7005 | char dnet_ntoa();
|
---|
7006 |
|
---|
7007 | int main() {
|
---|
7008 | dnet_ntoa()
|
---|
7009 | ; return 0; }
|
---|
7010 | EOF
|
---|
7011 | if { (eval echo configure:7012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7012 | rm -rf conftest*
|
---|
7013 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7014 | else
|
---|
7015 | echo "configure: failed program was:" >&5
|
---|
7016 | cat conftest.$ac_ext >&5
|
---|
7017 | rm -rf conftest*
|
---|
7018 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7019 | fi
|
---|
7020 | rm -f conftest*
|
---|
7021 | LIBS="$ac_save_LIBS"
|
---|
7022 |
|
---|
7023 | fi
|
---|
7024 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7025 | echo "$ac_t""yes" 1>&6
|
---|
7026 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
---|
7027 | else
|
---|
7028 | echo "$ac_t""no" 1>&6
|
---|
7029 | fi
|
---|
7030 |
|
---|
7031 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
---|
7032 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
---|
7033 | echo "configure:7034: checking for dnet_ntoa in -ldnet_stub" >&5
|
---|
7034 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
---|
7035 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7036 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7037 | else
|
---|
7038 | ac_save_LIBS="$LIBS"
|
---|
7039 | LIBS="-ldnet_stub $LIBS"
|
---|
7040 | cat > conftest.$ac_ext <<EOF
|
---|
7041 | #line 7042 "configure"
|
---|
7042 | #include "confdefs.h"
|
---|
7043 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7044 | /* We use char because int might match the return type of a gcc2
|
---|
7045 | builtin and then its argument prototype would still apply. */
|
---|
7046 | char dnet_ntoa();
|
---|
7047 |
|
---|
7048 | int main() {
|
---|
7049 | dnet_ntoa()
|
---|
7050 | ; return 0; }
|
---|
7051 | EOF
|
---|
7052 | if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7053 | rm -rf conftest*
|
---|
7054 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7055 | else
|
---|
7056 | echo "configure: failed program was:" >&5
|
---|
7057 | cat conftest.$ac_ext >&5
|
---|
7058 | rm -rf conftest*
|
---|
7059 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7060 | fi
|
---|
7061 | rm -f conftest*
|
---|
7062 | LIBS="$ac_save_LIBS"
|
---|
7063 |
|
---|
7064 | fi
|
---|
7065 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7066 | echo "$ac_t""yes" 1>&6
|
---|
7067 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
---|
7068 | else
|
---|
7069 | echo "$ac_t""no" 1>&6
|
---|
7070 | fi
|
---|
7071 |
|
---|
7072 | fi
|
---|
7073 |
|
---|
7074 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
---|
7075 | # to get the SysV transport functions.
|
---|
7076 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
---|
7077 | # needs -lnsl.
|
---|
7078 | # The nsl library prevents programs from opening the X display
|
---|
7079 | # on Irix 5.2, according to dickey@clark.net.
|
---|
7080 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
---|
7081 | echo "configure:7082: checking for gethostbyname" >&5
|
---|
7082 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
---|
7083 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7084 | else
|
---|
7085 | cat > conftest.$ac_ext <<EOF
|
---|
7086 | #line 7087 "configure"
|
---|
7087 | #include "confdefs.h"
|
---|
7088 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7089 | which can conflict with char gethostbyname(); below. */
|
---|
7090 | #include <assert.h>
|
---|
7091 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7092 | /* We use char because int might match the return type of a gcc2
|
---|
7093 | builtin and then its argument prototype would still apply. */
|
---|
7094 | char gethostbyname();
|
---|
7095 |
|
---|
7096 | int main() {
|
---|
7097 |
|
---|
7098 | /* The GNU C library defines this for functions which it implements
|
---|
7099 | to always fail with ENOSYS. Some functions are actually named
|
---|
7100 | something starting with __ and the normal name is an alias. */
|
---|
7101 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
---|
7102 | choke me
|
---|
7103 | #else
|
---|
7104 | gethostbyname();
|
---|
7105 | #endif
|
---|
7106 |
|
---|
7107 | ; return 0; }
|
---|
7108 | EOF
|
---|
7109 | if { (eval echo configure:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7110 | rm -rf conftest*
|
---|
7111 | eval "ac_cv_func_gethostbyname=yes"
|
---|
7112 | else
|
---|
7113 | echo "configure: failed program was:" >&5
|
---|
7114 | cat conftest.$ac_ext >&5
|
---|
7115 | rm -rf conftest*
|
---|
7116 | eval "ac_cv_func_gethostbyname=no"
|
---|
7117 | fi
|
---|
7118 | rm -f conftest*
|
---|
7119 | fi
|
---|
7120 |
|
---|
7121 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
---|
7122 | echo "$ac_t""yes" 1>&6
|
---|
7123 | :
|
---|
7124 | else
|
---|
7125 | echo "$ac_t""no" 1>&6
|
---|
7126 | fi
|
---|
7127 |
|
---|
7128 | if test $ac_cv_func_gethostbyname = no; then
|
---|
7129 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
---|
7130 | echo "configure:7131: checking for gethostbyname in -lnsl" >&5
|
---|
7131 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
---|
7132 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7133 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7134 | else
|
---|
7135 | ac_save_LIBS="$LIBS"
|
---|
7136 | LIBS="-lnsl $LIBS"
|
---|
7137 | cat > conftest.$ac_ext <<EOF
|
---|
7138 | #line 7139 "configure"
|
---|
7139 | #include "confdefs.h"
|
---|
7140 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7141 | /* We use char because int might match the return type of a gcc2
|
---|
7142 | builtin and then its argument prototype would still apply. */
|
---|
7143 | char gethostbyname();
|
---|
7144 |
|
---|
7145 | int main() {
|
---|
7146 | gethostbyname()
|
---|
7147 | ; return 0; }
|
---|
7148 | EOF
|
---|
7149 | if { (eval echo configure:7150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7150 | rm -rf conftest*
|
---|
7151 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7152 | else
|
---|
7153 | echo "configure: failed program was:" >&5
|
---|
7154 | cat conftest.$ac_ext >&5
|
---|
7155 | rm -rf conftest*
|
---|
7156 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7157 | fi
|
---|
7158 | rm -f conftest*
|
---|
7159 | LIBS="$ac_save_LIBS"
|
---|
7160 |
|
---|
7161 | fi
|
---|
7162 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7163 | echo "$ac_t""yes" 1>&6
|
---|
7164 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
---|
7165 | else
|
---|
7166 | echo "$ac_t""no" 1>&6
|
---|
7167 | fi
|
---|
7168 |
|
---|
7169 | fi
|
---|
7170 |
|
---|
7171 | # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
---|
7172 | # socket/setsockopt and other routines are undefined under SCO ODT
|
---|
7173 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
---|
7174 | # on later versions), says simon@lia.di.epfl.ch: it contains
|
---|
7175 | # gethostby* variants that don't use the nameserver (or something).
|
---|
7176 | # -lsocket must be given before -lnsl if both are needed.
|
---|
7177 | # We assume that if connect needs -lnsl, so does gethostbyname.
|
---|
7178 | echo $ac_n "checking for connect""... $ac_c" 1>&6
|
---|
7179 | echo "configure:7180: checking for connect" >&5
|
---|
7180 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
---|
7181 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7182 | else
|
---|
7183 | cat > conftest.$ac_ext <<EOF
|
---|
7184 | #line 7185 "configure"
|
---|
7185 | #include "confdefs.h"
|
---|
7186 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7187 | which can conflict with char connect(); below. */
|
---|
7188 | #include <assert.h>
|
---|
7189 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7190 | /* We use char because int might match the return type of a gcc2
|
---|
7191 | builtin and then its argument prototype would still apply. */
|
---|
7192 | char connect();
|
---|
7193 |
|
---|
7194 | int main() {
|
---|
7195 |
|
---|
7196 | /* The GNU C library defines this for functions which it implements
|
---|
7197 | to always fail with ENOSYS. Some functions are actually named
|
---|
7198 | something starting with __ and the normal name is an alias. */
|
---|
7199 | #if defined (__stub_connect) || defined (__stub___connect)
|
---|
7200 | choke me
|
---|
7201 | #else
|
---|
7202 | connect();
|
---|
7203 | #endif
|
---|
7204 |
|
---|
7205 | ; return 0; }
|
---|
7206 | EOF
|
---|
7207 | if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7208 | rm -rf conftest*
|
---|
7209 | eval "ac_cv_func_connect=yes"
|
---|
7210 | else
|
---|
7211 | echo "configure: failed program was:" >&5
|
---|
7212 | cat conftest.$ac_ext >&5
|
---|
7213 | rm -rf conftest*
|
---|
7214 | eval "ac_cv_func_connect=no"
|
---|
7215 | fi
|
---|
7216 | rm -f conftest*
|
---|
7217 | fi
|
---|
7218 |
|
---|
7219 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
---|
7220 | echo "$ac_t""yes" 1>&6
|
---|
7221 | :
|
---|
7222 | else
|
---|
7223 | echo "$ac_t""no" 1>&6
|
---|
7224 | fi
|
---|
7225 |
|
---|
7226 | if test $ac_cv_func_connect = no; then
|
---|
7227 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
|
---|
7228 | echo "configure:7229: checking for connect in -lsocket" >&5
|
---|
7229 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
---|
7230 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7231 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7232 | else
|
---|
7233 | ac_save_LIBS="$LIBS"
|
---|
7234 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
---|
7235 | cat > conftest.$ac_ext <<EOF
|
---|
7236 | #line 7237 "configure"
|
---|
7237 | #include "confdefs.h"
|
---|
7238 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7239 | /* We use char because int might match the return type of a gcc2
|
---|
7240 | builtin and then its argument prototype would still apply. */
|
---|
7241 | char connect();
|
---|
7242 |
|
---|
7243 | int main() {
|
---|
7244 | connect()
|
---|
7245 | ; return 0; }
|
---|
7246 | EOF
|
---|
7247 | if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7248 | rm -rf conftest*
|
---|
7249 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7250 | else
|
---|
7251 | echo "configure: failed program was:" >&5
|
---|
7252 | cat conftest.$ac_ext >&5
|
---|
7253 | rm -rf conftest*
|
---|
7254 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7255 | fi
|
---|
7256 | rm -f conftest*
|
---|
7257 | LIBS="$ac_save_LIBS"
|
---|
7258 |
|
---|
7259 | fi
|
---|
7260 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7261 | echo "$ac_t""yes" 1>&6
|
---|
7262 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
---|
7263 | else
|
---|
7264 | echo "$ac_t""no" 1>&6
|
---|
7265 | fi
|
---|
7266 |
|
---|
7267 | fi
|
---|
7268 |
|
---|
7269 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
---|
7270 | echo $ac_n "checking for remove""... $ac_c" 1>&6
|
---|
7271 | echo "configure:7272: checking for remove" >&5
|
---|
7272 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
|
---|
7273 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7274 | else
|
---|
7275 | cat > conftest.$ac_ext <<EOF
|
---|
7276 | #line 7277 "configure"
|
---|
7277 | #include "confdefs.h"
|
---|
7278 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7279 | which can conflict with char remove(); below. */
|
---|
7280 | #include <assert.h>
|
---|
7281 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7282 | /* We use char because int might match the return type of a gcc2
|
---|
7283 | builtin and then its argument prototype would still apply. */
|
---|
7284 | char remove();
|
---|
7285 |
|
---|
7286 | int main() {
|
---|
7287 |
|
---|
7288 | /* The GNU C library defines this for functions which it implements
|
---|
7289 | to always fail with ENOSYS. Some functions are actually named
|
---|
7290 | something starting with __ and the normal name is an alias. */
|
---|
7291 | #if defined (__stub_remove) || defined (__stub___remove)
|
---|
7292 | choke me
|
---|
7293 | #else
|
---|
7294 | remove();
|
---|
7295 | #endif
|
---|
7296 |
|
---|
7297 | ; return 0; }
|
---|
7298 | EOF
|
---|
7299 | if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7300 | rm -rf conftest*
|
---|
7301 | eval "ac_cv_func_remove=yes"
|
---|
7302 | else
|
---|
7303 | echo "configure: failed program was:" >&5
|
---|
7304 | cat conftest.$ac_ext >&5
|
---|
7305 | rm -rf conftest*
|
---|
7306 | eval "ac_cv_func_remove=no"
|
---|
7307 | fi
|
---|
7308 | rm -f conftest*
|
---|
7309 | fi
|
---|
7310 |
|
---|
7311 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
---|
7312 | echo "$ac_t""yes" 1>&6
|
---|
7313 | :
|
---|
7314 | else
|
---|
7315 | echo "$ac_t""no" 1>&6
|
---|
7316 | fi
|
---|
7317 |
|
---|
7318 | if test $ac_cv_func_remove = no; then
|
---|
7319 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
---|
7320 | echo "configure:7321: checking for remove in -lposix" >&5
|
---|
7321 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
---|
7322 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7323 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7324 | else
|
---|
7325 | ac_save_LIBS="$LIBS"
|
---|
7326 | LIBS="-lposix $LIBS"
|
---|
7327 | cat > conftest.$ac_ext <<EOF
|
---|
7328 | #line 7329 "configure"
|
---|
7329 | #include "confdefs.h"
|
---|
7330 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7331 | /* We use char because int might match the return type of a gcc2
|
---|
7332 | builtin and then its argument prototype would still apply. */
|
---|
7333 | char remove();
|
---|
7334 |
|
---|
7335 | int main() {
|
---|
7336 | remove()
|
---|
7337 | ; return 0; }
|
---|
7338 | EOF
|
---|
7339 | if { (eval echo configure:7340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7340 | rm -rf conftest*
|
---|
7341 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7342 | else
|
---|
7343 | echo "configure: failed program was:" >&5
|
---|
7344 | cat conftest.$ac_ext >&5
|
---|
7345 | rm -rf conftest*
|
---|
7346 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7347 | fi
|
---|
7348 | rm -f conftest*
|
---|
7349 | LIBS="$ac_save_LIBS"
|
---|
7350 |
|
---|
7351 | fi
|
---|
7352 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7353 | echo "$ac_t""yes" 1>&6
|
---|
7354 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
---|
7355 | else
|
---|
7356 | echo "$ac_t""no" 1>&6
|
---|
7357 | fi
|
---|
7358 |
|
---|
7359 | fi
|
---|
7360 |
|
---|
7361 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
---|
7362 | echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
---|
7363 | echo "configure:7364: checking for shmat" >&5
|
---|
7364 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
|
---|
7365 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7366 | else
|
---|
7367 | cat > conftest.$ac_ext <<EOF
|
---|
7368 | #line 7369 "configure"
|
---|
7369 | #include "confdefs.h"
|
---|
7370 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7371 | which can conflict with char shmat(); below. */
|
---|
7372 | #include <assert.h>
|
---|
7373 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7374 | /* We use char because int might match the return type of a gcc2
|
---|
7375 | builtin and then its argument prototype would still apply. */
|
---|
7376 | char shmat();
|
---|
7377 |
|
---|
7378 | int main() {
|
---|
7379 |
|
---|
7380 | /* The GNU C library defines this for functions which it implements
|
---|
7381 | to always fail with ENOSYS. Some functions are actually named
|
---|
7382 | something starting with __ and the normal name is an alias. */
|
---|
7383 | #if defined (__stub_shmat) || defined (__stub___shmat)
|
---|
7384 | choke me
|
---|
7385 | #else
|
---|
7386 | shmat();
|
---|
7387 | #endif
|
---|
7388 |
|
---|
7389 | ; return 0; }
|
---|
7390 | EOF
|
---|
7391 | if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7392 | rm -rf conftest*
|
---|
7393 | eval "ac_cv_func_shmat=yes"
|
---|
7394 | else
|
---|
7395 | echo "configure: failed program was:" >&5
|
---|
7396 | cat conftest.$ac_ext >&5
|
---|
7397 | rm -rf conftest*
|
---|
7398 | eval "ac_cv_func_shmat=no"
|
---|
7399 | fi
|
---|
7400 | rm -f conftest*
|
---|
7401 | fi
|
---|
7402 |
|
---|
7403 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
---|
7404 | echo "$ac_t""yes" 1>&6
|
---|
7405 | :
|
---|
7406 | else
|
---|
7407 | echo "$ac_t""no" 1>&6
|
---|
7408 | fi
|
---|
7409 |
|
---|
7410 | if test $ac_cv_func_shmat = no; then
|
---|
7411 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
---|
7412 | echo "configure:7413: checking for shmat in -lipc" >&5
|
---|
7413 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
---|
7414 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7415 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7416 | else
|
---|
7417 | ac_save_LIBS="$LIBS"
|
---|
7418 | LIBS="-lipc $LIBS"
|
---|
7419 | cat > conftest.$ac_ext <<EOF
|
---|
7420 | #line 7421 "configure"
|
---|
7421 | #include "confdefs.h"
|
---|
7422 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7423 | /* We use char because int might match the return type of a gcc2
|
---|
7424 | builtin and then its argument prototype would still apply. */
|
---|
7425 | char shmat();
|
---|
7426 |
|
---|
7427 | int main() {
|
---|
7428 | shmat()
|
---|
7429 | ; return 0; }
|
---|
7430 | EOF
|
---|
7431 | if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7432 | rm -rf conftest*
|
---|
7433 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7434 | else
|
---|
7435 | echo "configure: failed program was:" >&5
|
---|
7436 | cat conftest.$ac_ext >&5
|
---|
7437 | rm -rf conftest*
|
---|
7438 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7439 | fi
|
---|
7440 | rm -f conftest*
|
---|
7441 | LIBS="$ac_save_LIBS"
|
---|
7442 |
|
---|
7443 | fi
|
---|
7444 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7445 | echo "$ac_t""yes" 1>&6
|
---|
7446 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
---|
7447 | else
|
---|
7448 | echo "$ac_t""no" 1>&6
|
---|
7449 | fi
|
---|
7450 |
|
---|
7451 | fi
|
---|
7452 | fi
|
---|
7453 |
|
---|
7454 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
---|
7455 | ac_save_LDFLAGS="$LDFLAGS"
|
---|
7456 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
---|
7457 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
---|
7458 | # check for ICE first), but we must link in the order -lSM -lICE or
|
---|
7459 | # we get undefined symbols. So assume we have SM if we have ICE.
|
---|
7460 | # These have to be linked with before -lX11, unlike the other
|
---|
7461 | # libraries we check for below, so use a different variable.
|
---|
7462 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
---|
7463 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
|
---|
7464 | echo "configure:7465: checking for IceConnectionNumber in -lICE" >&5
|
---|
7465 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
---|
7466 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7467 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7468 | else
|
---|
7469 | ac_save_LIBS="$LIBS"
|
---|
7470 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
---|
7471 | cat > conftest.$ac_ext <<EOF
|
---|
7472 | #line 7473 "configure"
|
---|
7473 | #include "confdefs.h"
|
---|
7474 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7475 | /* We use char because int might match the return type of a gcc2
|
---|
7476 | builtin and then its argument prototype would still apply. */
|
---|
7477 | char IceConnectionNumber();
|
---|
7478 |
|
---|
7479 | int main() {
|
---|
7480 | IceConnectionNumber()
|
---|
7481 | ; return 0; }
|
---|
7482 | EOF
|
---|
7483 | if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7484 | rm -rf conftest*
|
---|
7485 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7486 | else
|
---|
7487 | echo "configure: failed program was:" >&5
|
---|
7488 | cat conftest.$ac_ext >&5
|
---|
7489 | rm -rf conftest*
|
---|
7490 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7491 | fi
|
---|
7492 | rm -f conftest*
|
---|
7493 | LIBS="$ac_save_LIBS"
|
---|
7494 |
|
---|
7495 | fi
|
---|
7496 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7497 | echo "$ac_t""yes" 1>&6
|
---|
7498 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
---|
7499 | else
|
---|
7500 | echo "$ac_t""no" 1>&6
|
---|
7501 | fi
|
---|
7502 |
|
---|
7503 | LDFLAGS="$ac_save_LDFLAGS"
|
---|
7504 |
|
---|
7505 | fi
|
---|
7506 |
|
---|
7507 |
|
---|
7508 | # Check whether --enable-java-awt or --disable-java-awt was given.
|
---|
7509 | if test "${enable_java_awt+set}" = set; then
|
---|
7510 | enableval="$enable_java_awt"
|
---|
7511 | :
|
---|
7512 | fi
|
---|
7513 |
|
---|
7514 |
|
---|
7515 | peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
|
---|
7516 | use_xlib_awt=""
|
---|
7517 | use_gtk_awt=""
|
---|
7518 |
|
---|
7519 | for peer in $peerlibs ; do
|
---|
7520 | case $peer in
|
---|
7521 | xlib)
|
---|
7522 | if test "$no_x" = yes; then
|
---|
7523 | echo "*** xlib peers requested but no X library available" 1>&2
|
---|
7524 | exit 1
|
---|
7525 | else
|
---|
7526 | use_xlib_awt="yes"
|
---|
7527 | fi
|
---|
7528 | ;;
|
---|
7529 | gtk)
|
---|
7530 | # Nothing, yet...
|
---|
7531 | ;;
|
---|
7532 | no)
|
---|
7533 | use_xlib_awt=
|
---|
7534 | use_gtk_awt=
|
---|
7535 | break
|
---|
7536 | ;;
|
---|
7537 | *)
|
---|
7538 | echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
|
---|
7539 | exit 1
|
---|
7540 | esac
|
---|
7541 | done
|
---|
7542 |
|
---|
7543 |
|
---|
7544 |
|
---|
7545 | if test "$use_xlib_awt" = yes; then
|
---|
7546 | XLIB_AWT_TRUE=
|
---|
7547 | XLIB_AWT_FALSE='#'
|
---|
7548 | else
|
---|
7549 | XLIB_AWT_TRUE='#'
|
---|
7550 | XLIB_AWT_FALSE=
|
---|
7551 | fi
|
---|
7552 |
|
---|
7553 |
|
---|
7554 | if test "$use_gtk_awt" = yes; then
|
---|
7555 | GTK_AWT_TRUE=
|
---|
7556 | GTK_AWT_FALSE='#'
|
---|
7557 | else
|
---|
7558 | GTK_AWT_TRUE='#'
|
---|
7559 | GTK_AWT_FALSE=
|
---|
7560 | fi
|
---|
7561 |
|
---|
7562 |
|
---|
7563 | here=`${PWDCMD-pwd}`
|
---|
7564 |
|
---|
7565 |
|
---|
7566 | # We get this from the environment.
|
---|
7567 |
|
---|
7568 |
|
---|
7569 | trap '' 1 2 15
|
---|
7570 | cat > confcache <<\EOF
|
---|
7571 | # This file is a shell script that caches the results of configure
|
---|
7572 | # tests run on this system so they can be shared between configure
|
---|
7573 | # scripts and configure runs. It is not useful on other systems.
|
---|
7574 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
7575 | #
|
---|
7576 | # By default, configure uses ./config.cache as the cache file,
|
---|
7577 | # creating it if it does not exist already. You can give configure
|
---|
7578 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
7579 | # what configure does when it calls configure scripts in
|
---|
7580 | # subdirectories, so they share the cache.
|
---|
7581 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
7582 | # config.status only pays attention to the cache file if you give it the
|
---|
7583 | # --recheck option to rerun configure.
|
---|
7584 | #
|
---|
7585 | EOF
|
---|
7586 | # The following way of writing the cache mishandles newlines in values,
|
---|
7587 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7588 | # So, don't put newlines in cache variables' values.
|
---|
7589 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7590 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7591 | (set) 2>&1 |
|
---|
7592 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
7593 | *ac_space=\ *)
|
---|
7594 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
7595 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
7596 | sed -n \
|
---|
7597 | -e "s/'/'\\\\''/g" \
|
---|
7598 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
7599 | ;;
|
---|
7600 | *)
|
---|
7601 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7602 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
7603 | ;;
|
---|
7604 | esac >> confcache
|
---|
7605 | if cmp -s $cache_file confcache; then
|
---|
7606 | :
|
---|
7607 | else
|
---|
7608 | if test -w $cache_file; then
|
---|
7609 | echo "updating cache $cache_file"
|
---|
7610 | cat confcache > $cache_file
|
---|
7611 | else
|
---|
7612 | echo "not updating unwritable cache $cache_file"
|
---|
7613 | fi
|
---|
7614 | fi
|
---|
7615 | rm -f confcache
|
---|
7616 |
|
---|
7617 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
7618 |
|
---|
7619 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7620 | # Let make expand exec_prefix.
|
---|
7621 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7622 |
|
---|
7623 | # Any assignment to VPATH causes Sun make to only execute
|
---|
7624 | # the first set of double-colon rules, so remove it if not needed.
|
---|
7625 | # If there is a colon in the path, we need to keep it.
|
---|
7626 | if test "x$srcdir" = x.; then
|
---|
7627 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
7628 | fi
|
---|
7629 |
|
---|
7630 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
7631 |
|
---|
7632 | DEFS=-DHAVE_CONFIG_H
|
---|
7633 |
|
---|
7634 | # Without the "./", some shells look in PATH for config.status.
|
---|
7635 | : ${CONFIG_STATUS=./config.status}
|
---|
7636 |
|
---|
7637 | echo creating $CONFIG_STATUS
|
---|
7638 | rm -f $CONFIG_STATUS
|
---|
7639 | cat > $CONFIG_STATUS <<EOF
|
---|
7640 | #! /bin/sh
|
---|
7641 | # Generated automatically by configure.
|
---|
7642 | # Run this file to recreate the current configuration.
|
---|
7643 | # This directory was configured as follows,
|
---|
7644 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
7645 | #
|
---|
7646 | # $0 $ac_configure_args
|
---|
7647 | #
|
---|
7648 | # Compiler output produced by configure, useful for debugging
|
---|
7649 | # configure, is in ./config.log if it exists.
|
---|
7650 |
|
---|
7651 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
7652 | for ac_option
|
---|
7653 | do
|
---|
7654 | case "\$ac_option" in
|
---|
7655 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7656 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
7657 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
7658 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
7659 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
7660 | exit 0 ;;
|
---|
7661 | -help | --help | --hel | --he | --h)
|
---|
7662 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
7663 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
7664 | esac
|
---|
7665 | done
|
---|
7666 |
|
---|
7667 | ac_given_srcdir=$srcdir
|
---|
7668 | ac_given_INSTALL="$INSTALL"
|
---|
7669 |
|
---|
7670 | trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
7671 | EOF
|
---|
7672 | cat >> $CONFIG_STATUS <<EOF
|
---|
7673 |
|
---|
7674 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7675 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
7676 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
7677 | $ac_vpsub
|
---|
7678 | $extrasub
|
---|
7679 | s%@SHELL@%$SHELL%g
|
---|
7680 | s%@CFLAGS@%$CFLAGS%g
|
---|
7681 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
7682 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
7683 | s%@FFLAGS@%$FFLAGS%g
|
---|
7684 | s%@DEFS@%$DEFS%g
|
---|
7685 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
7686 | s%@LIBS@%$LIBS%g
|
---|
7687 | s%@exec_prefix@%$exec_prefix%g
|
---|
7688 | s%@prefix@%$prefix%g
|
---|
7689 | s%@program_transform_name@%$program_transform_name%g
|
---|
7690 | s%@bindir@%$bindir%g
|
---|
7691 | s%@sbindir@%$sbindir%g
|
---|
7692 | s%@libexecdir@%$libexecdir%g
|
---|
7693 | s%@datadir@%$datadir%g
|
---|
7694 | s%@sysconfdir@%$sysconfdir%g
|
---|
7695 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
7696 | s%@localstatedir@%$localstatedir%g
|
---|
7697 | s%@libdir@%$libdir%g
|
---|
7698 | s%@includedir@%$includedir%g
|
---|
7699 | s%@oldincludedir@%$oldincludedir%g
|
---|
7700 | s%@infodir@%$infodir%g
|
---|
7701 | s%@mandir@%$mandir%g
|
---|
7702 | s%@LN_S@%$LN_S%g
|
---|
7703 | s%@libgcj_basedir@%$libgcj_basedir%g
|
---|
7704 | s%@mkinstalldirs@%$mkinstalldirs%g
|
---|
7705 | s%@host@%$host%g
|
---|
7706 | s%@host_alias@%$host_alias%g
|
---|
7707 | s%@host_cpu@%$host_cpu%g
|
---|
7708 | s%@host_vendor@%$host_vendor%g
|
---|
7709 | s%@host_os@%$host_os%g
|
---|
7710 | s%@target@%$target%g
|
---|
7711 | s%@target_alias@%$target_alias%g
|
---|
7712 | s%@target_cpu@%$target_cpu%g
|
---|
7713 | s%@target_vendor@%$target_vendor%g
|
---|
7714 | s%@target_os@%$target_os%g
|
---|
7715 | s%@build@%$build%g
|
---|
7716 | s%@build_alias@%$build_alias%g
|
---|
7717 | s%@build_cpu@%$build_cpu%g
|
---|
7718 | s%@build_vendor@%$build_vendor%g
|
---|
7719 | s%@build_os@%$build_os%g
|
---|
7720 | s%@CC@%$CC%g
|
---|
7721 | s%@glibjava_CXX@%$glibjava_CXX%g
|
---|
7722 | s%@CXX@%$CXX%g
|
---|
7723 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
7724 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
7725 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
7726 | s%@PACKAGE@%$PACKAGE%g
|
---|
7727 | s%@VERSION@%$VERSION%g
|
---|
7728 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
7729 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
7730 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
7731 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
7732 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
7733 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
7734 | s%@AS@%$AS%g
|
---|
7735 | s%@AR@%$AR%g
|
---|
7736 | s%@RANLIB@%$RANLIB%g
|
---|
7737 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
7738 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
7739 | s%@MAINT@%$MAINT%g
|
---|
7740 | s%@EXEEXT@%$EXEEXT%g
|
---|
7741 | s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
|
---|
7742 | s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
|
---|
7743 | s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
|
---|
7744 | s%@INCLTDL@%$INCLTDL%g
|
---|
7745 | s%@LIBLTDL@%$LIBLTDL%g
|
---|
7746 | s%@DIRLTDL@%$DIRLTDL%g
|
---|
7747 | s%@OBJEXT@%$OBJEXT%g
|
---|
7748 | s%@STRIP@%$STRIP%g
|
---|
7749 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
7750 | s%@CXXCPP@%$CXXCPP%g
|
---|
7751 | s%@subdirs@%$subdirs%g
|
---|
7752 | s%@COMPPATH@%$COMPPATH%g
|
---|
7753 | s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
|
---|
7754 | s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
|
---|
7755 | s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
|
---|
7756 | s%@INTERPRETER@%$INTERPRETER%g
|
---|
7757 | s%@LIBFFI@%$LIBFFI%g
|
---|
7758 | s%@LIBFFIINCS@%$LIBFFIINCS%g
|
---|
7759 | s%@PLATFORMOBJS@%$PLATFORMOBJS%g
|
---|
7760 | s%@CPP@%$CPP%g
|
---|
7761 | s%@SYSTEMSPEC@%$SYSTEMSPEC%g
|
---|
7762 | s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
|
---|
7763 | s%@ZLIBSPEC@%$ZLIBSPEC%g
|
---|
7764 | s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
|
---|
7765 | s%@GCLIBS@%$GCLIBS%g
|
---|
7766 | s%@GCINCS@%$GCINCS%g
|
---|
7767 | s%@GCDEPS@%$GCDEPS%g
|
---|
7768 | s%@GCOBJS@%$GCOBJS%g
|
---|
7769 | s%@GCSPEC@%$GCSPEC%g
|
---|
7770 | s%@JC1GCSPEC@%$JC1GCSPEC%g
|
---|
7771 | s%@GCTESTSPEC@%$GCTESTSPEC%g
|
---|
7772 | s%@THREADLIBS@%$THREADLIBS%g
|
---|
7773 | s%@THREADINCS@%$THREADINCS%g
|
---|
7774 | s%@THREADDEPS@%$THREADDEPS%g
|
---|
7775 | s%@THREADOBJS@%$THREADOBJS%g
|
---|
7776 | s%@THREADSPEC@%$THREADSPEC%g
|
---|
7777 | s%@THREADLDFLAGS@%$THREADLDFLAGS%g
|
---|
7778 | s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
|
---|
7779 | s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
|
---|
7780 | s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
|
---|
7781 | s%@tool_include_dir@%$tool_include_dir%g
|
---|
7782 | s%@gcc_version@%$gcc_version%g
|
---|
7783 | s%@LIBICONV@%$LIBICONV%g
|
---|
7784 | s%@GCJ@%$GCJ%g
|
---|
7785 | s%@GCJFLAGS@%$GCJFLAGS%g
|
---|
7786 | s%@ZLIBS@%$ZLIBS%g
|
---|
7787 | s%@SYS_ZLIBS@%$SYS_ZLIBS%g
|
---|
7788 | s%@ZINCS@%$ZINCS%g
|
---|
7789 | s%@DIVIDESPEC@%$DIVIDESPEC%g
|
---|
7790 | s%@CHECKREFSPEC@%$CHECKREFSPEC%g
|
---|
7791 | s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
|
---|
7792 | s%@IEEESPEC@%$IEEESPEC%g
|
---|
7793 | s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
|
---|
7794 | s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
|
---|
7795 | s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
|
---|
7796 | s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
|
---|
7797 | s%@NATIVE_TRUE@%$NATIVE_TRUE%g
|
---|
7798 | s%@NATIVE_FALSE@%$NATIVE_FALSE%g
|
---|
7799 | s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
|
---|
7800 | s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
|
---|
7801 | s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
|
---|
7802 | s%@toolexecdir@%$toolexecdir%g
|
---|
7803 | s%@toolexecmainlibdir@%$toolexecmainlibdir%g
|
---|
7804 | s%@toolexeclibdir@%$toolexeclibdir%g
|
---|
7805 | s%@GCJVERSION@%$GCJVERSION%g
|
---|
7806 | s%@ALLOCA@%$ALLOCA%g
|
---|
7807 | s%@PERL@%$PERL%g
|
---|
7808 | s%@BACKTRACESPEC@%$BACKTRACESPEC%g
|
---|
7809 | s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
|
---|
7810 | s%@X_CFLAGS@%$X_CFLAGS%g
|
---|
7811 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
---|
7812 | s%@X_LIBS@%$X_LIBS%g
|
---|
7813 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
---|
7814 | s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
|
---|
7815 | s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
|
---|
7816 | s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
|
---|
7817 | s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
|
---|
7818 | s%@here@%$here%g
|
---|
7819 |
|
---|
7820 | CEOF
|
---|
7821 | EOF
|
---|
7822 |
|
---|
7823 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7824 |
|
---|
7825 | # Split the substitutions into bite-sized pieces for seds with
|
---|
7826 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
7827 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
7828 | ac_file=1 # Number of current file.
|
---|
7829 | ac_beg=1 # First line for current file.
|
---|
7830 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
7831 | ac_more_lines=:
|
---|
7832 | ac_sed_cmds=""
|
---|
7833 | while $ac_more_lines; do
|
---|
7834 | if test $ac_beg -gt 1; then
|
---|
7835 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
7836 | else
|
---|
7837 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
7838 | fi
|
---|
7839 | if test ! -s conftest.s$ac_file; then
|
---|
7840 | ac_more_lines=false
|
---|
7841 | rm -f conftest.s$ac_file
|
---|
7842 | else
|
---|
7843 | if test -z "$ac_sed_cmds"; then
|
---|
7844 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
7845 | else
|
---|
7846 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
7847 | fi
|
---|
7848 | ac_file=`expr $ac_file + 1`
|
---|
7849 | ac_beg=$ac_end
|
---|
7850 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
7851 | fi
|
---|
7852 | done
|
---|
7853 | if test -z "$ac_sed_cmds"; then
|
---|
7854 | ac_sed_cmds=cat
|
---|
7855 | fi
|
---|
7856 | EOF
|
---|
7857 |
|
---|
7858 | cat >> $CONFIG_STATUS <<EOF
|
---|
7859 |
|
---|
7860 | CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
|
---|
7861 | EOF
|
---|
7862 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7863 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
7864 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7865 | case "$ac_file" in
|
---|
7866 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
7867 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
7868 | *) ac_file_in="${ac_file}.in" ;;
|
---|
7869 | esac
|
---|
7870 |
|
---|
7871 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
7872 |
|
---|
7873 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
7874 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
7875 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
7876 | # The file is in a subdirectory.
|
---|
7877 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
7878 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
7879 | # A "../" for each directory in $ac_dir_suffix.
|
---|
7880 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
7881 | else
|
---|
7882 | ac_dir_suffix= ac_dots=
|
---|
7883 | fi
|
---|
7884 |
|
---|
7885 | case "$ac_given_srcdir" in
|
---|
7886 | .) srcdir=.
|
---|
7887 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
7888 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
7889 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
7890 | *) # Relative path.
|
---|
7891 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
7892 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
7893 | esac
|
---|
7894 |
|
---|
7895 | case "$ac_given_INSTALL" in
|
---|
7896 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
7897 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
7898 | esac
|
---|
7899 |
|
---|
7900 | echo creating "$ac_file"
|
---|
7901 | rm -f "$ac_file"
|
---|
7902 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
7903 | case "$ac_file" in
|
---|
7904 | *Makefile*) ac_comsub="1i\\
|
---|
7905 | # $configure_input" ;;
|
---|
7906 | *) ac_comsub= ;;
|
---|
7907 | esac
|
---|
7908 |
|
---|
7909 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
7910 | sed -e "$ac_comsub
|
---|
7911 | s%@configure_input@%$configure_input%g
|
---|
7912 | s%@srcdir@%$srcdir%g
|
---|
7913 | s%@top_srcdir@%$top_srcdir%g
|
---|
7914 | s%@INSTALL@%$INSTALL%g
|
---|
7915 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
7916 | fi; done
|
---|
7917 | rm -f conftest.s*
|
---|
7918 |
|
---|
7919 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
7920 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
7921 | #
|
---|
7922 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
7923 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
7924 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
7925 | ac_dC='\3'
|
---|
7926 | ac_dD='%g'
|
---|
7927 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
7928 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
7929 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
7930 | ac_uC=' '
|
---|
7931 | ac_uD='\4%g'
|
---|
7932 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
7933 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
7934 | ac_eB='$%\1#\2define\3'
|
---|
7935 | ac_eC=' '
|
---|
7936 | ac_eD='%g'
|
---|
7937 |
|
---|
7938 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
7939 | EOF
|
---|
7940 | cat >> $CONFIG_STATUS <<EOF
|
---|
7941 | CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
|
---|
7942 | EOF
|
---|
7943 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7944 | fi
|
---|
7945 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
7946 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7947 | case "$ac_file" in
|
---|
7948 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
7949 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
7950 | *) ac_file_in="${ac_file}.in" ;;
|
---|
7951 | esac
|
---|
7952 |
|
---|
7953 | echo creating $ac_file
|
---|
7954 |
|
---|
7955 | rm -f conftest.frag conftest.in conftest.out
|
---|
7956 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
7957 | cat $ac_file_inputs > conftest.in
|
---|
7958 |
|
---|
7959 | EOF
|
---|
7960 |
|
---|
7961 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
7962 | # the proper values into config.h.in to produce config.h. And first:
|
---|
7963 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7964 | # Protect against being in an unquoted here document in config.status.
|
---|
7965 | rm -f conftest.vals
|
---|
7966 | cat > conftest.hdr <<\EOF
|
---|
7967 | s/[\\&%]/\\&/g
|
---|
7968 | s%[\\$`]%\\&%g
|
---|
7969 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
7970 | s%ac_d%ac_u%gp
|
---|
7971 | s%ac_u%ac_e%gp
|
---|
7972 | EOF
|
---|
7973 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
7974 | rm -f conftest.hdr
|
---|
7975 |
|
---|
7976 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
7977 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7978 | # on some systems where configure will not decide to define it.
|
---|
7979 | cat >> conftest.vals <<\EOF
|
---|
7980 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
7981 | EOF
|
---|
7982 |
|
---|
7983 | # Break up conftest.vals because some shells have a limit on
|
---|
7984 | # the size of here documents, and old seds have small limits too.
|
---|
7985 |
|
---|
7986 | rm -f conftest.tail
|
---|
7987 | while :
|
---|
7988 | do
|
---|
7989 | ac_lines=`grep -c . conftest.vals`
|
---|
7990 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
7991 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
7992 | # Write a limited-size here document to conftest.frag.
|
---|
7993 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
7994 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
7995 | echo 'CEOF
|
---|
7996 | sed -f conftest.frag conftest.in > conftest.out
|
---|
7997 | rm -f conftest.in
|
---|
7998 | mv conftest.out conftest.in
|
---|
7999 | ' >> $CONFIG_STATUS
|
---|
8000 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
8001 | rm -f conftest.vals
|
---|
8002 | mv conftest.tail conftest.vals
|
---|
8003 | done
|
---|
8004 | rm -f conftest.vals
|
---|
8005 |
|
---|
8006 | cat >> $CONFIG_STATUS <<\EOF
|
---|
8007 | rm -f conftest.frag conftest.h
|
---|
8008 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
8009 | cat conftest.in >> conftest.h
|
---|
8010 | rm -f conftest.in
|
---|
8011 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
8012 | echo "$ac_file is unchanged"
|
---|
8013 | rm -f conftest.h
|
---|
8014 | else
|
---|
8015 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
8016 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
8017 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
8018 | # The file is in a subdirectory.
|
---|
8019 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
8020 | fi
|
---|
8021 | rm -f $ac_file
|
---|
8022 | mv conftest.h $ac_file
|
---|
8023 | fi
|
---|
8024 | fi; done
|
---|
8025 |
|
---|
8026 | EOF
|
---|
8027 |
|
---|
8028 | cat >> $CONFIG_STATUS <<EOF
|
---|
8029 | ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
|
---|
8030 | ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
|
---|
8031 | EOF
|
---|
8032 |
|
---|
8033 | cat >> $CONFIG_STATUS <<\EOF
|
---|
8034 | srcdir=$ac_given_srcdir
|
---|
8035 | while test -n "$ac_sources"; do
|
---|
8036 | set $ac_dests; ac_dest=$1; shift; ac_dests=$*
|
---|
8037 | set $ac_sources; ac_source=$1; shift; ac_sources=$*
|
---|
8038 |
|
---|
8039 | echo "linking $srcdir/$ac_source to $ac_dest"
|
---|
8040 |
|
---|
8041 | if test ! -r $srcdir/$ac_source; then
|
---|
8042 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
|
---|
8043 | fi
|
---|
8044 | rm -f $ac_dest
|
---|
8045 |
|
---|
8046 | # Make relative symlinks.
|
---|
8047 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
8048 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
|
---|
8049 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
|
---|
8050 | # The dest file is in a subdirectory.
|
---|
8051 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
|
---|
8052 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
|
---|
8053 | # A "../" for each directory in $ac_dest_dir_suffix.
|
---|
8054 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
8055 | else
|
---|
8056 | ac_dest_dir_suffix= ac_dots=
|
---|
8057 | fi
|
---|
8058 |
|
---|
8059 | case "$srcdir" in
|
---|
8060 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
|
---|
8061 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
|
---|
8062 | esac
|
---|
8063 |
|
---|
8064 | # Make a symlink if possible; otherwise try a hard link.
|
---|
8065 | if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
|
---|
8066 | ln $srcdir/$ac_source $ac_dest; then :
|
---|
8067 | else
|
---|
8068 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
|
---|
8069 | fi
|
---|
8070 | done
|
---|
8071 | EOF
|
---|
8072 | cat >> $CONFIG_STATUS <<EOF
|
---|
8073 |
|
---|
8074 | srcdir=${srcdir}
|
---|
8075 | host=${host}
|
---|
8076 | target=${target}
|
---|
8077 | with_multisubdir=${with_multisubdir}
|
---|
8078 | ac_configure_args="${multilib_arg} ${ac_configure_args}"
|
---|
8079 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
8080 | libgcj_basedir=${libgcj_basedir}
|
---|
8081 | CC="${CC}"
|
---|
8082 | CXX="${CXX}"
|
---|
8083 | ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
|
---|
8084 |
|
---|
8085 | EOF
|
---|
8086 | cat >> $CONFIG_STATUS <<\EOF
|
---|
8087 | am_indx=1
|
---|
8088 | for am_file in include/config.h gcj/libgcj-config.h; do
|
---|
8089 | case " $CONFIG_HEADERS " in
|
---|
8090 | *" $am_file "*)
|
---|
8091 | echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
|
---|
8092 | ;;
|
---|
8093 | esac
|
---|
8094 | am_indx=`expr "$am_indx" + 1`
|
---|
8095 | done
|
---|
8096 | # Only add multilib support code if we just rebuilt top-level Makefile.
|
---|
8097 | case " $CONFIG_FILES " in
|
---|
8098 | *" Makefile "*)
|
---|
8099 | LD="${ORIGINAL_LD_FOR_MULTILIBS}"
|
---|
8100 | ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
|
---|
8101 | ;;
|
---|
8102 | esac
|
---|
8103 |
|
---|
8104 | # Make subdirectories and `.d' files. Look in both srcdir and
|
---|
8105 | # builddir for the .java files.
|
---|
8106 | h=`${PWDCMD-pwd}`
|
---|
8107 | : > deps.mk
|
---|
8108 | ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
|
---|
8109 | find . \( -name '*.java' -o -name '*.cc' \) -print) | \
|
---|
8110 | fgrep -v testsuite | \
|
---|
8111 | sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
|
---|
8112 | while read f; do
|
---|
8113 | echo "include $f" >> deps.mk
|
---|
8114 | test -f $f || {
|
---|
8115 |
|
---|
8116 | d=`echo $f | sed -e 's,/[^/]*$,,'`
|
---|
8117 |
|
---|
8118 | if test ! -d $d; then
|
---|
8119 | $libgcj_basedir/../mkinstalldirs $d
|
---|
8120 | fi;
|
---|
8121 | echo > $f
|
---|
8122 | }
|
---|
8123 | done
|
---|
8124 |
|
---|
8125 | exit 0
|
---|
8126 | EOF
|
---|
8127 | chmod +x $CONFIG_STATUS
|
---|
8128 | rm -fr confdefs* $ac_clean_files
|
---|
8129 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
8130 |
|
---|
8131 | if test "$no_recursion" != yes; then
|
---|
8132 |
|
---|
8133 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
8134 | ac_sub_configure_args=
|
---|
8135 | ac_prev=
|
---|
8136 | for ac_arg in $ac_configure_args; do
|
---|
8137 | if test -n "$ac_prev"; then
|
---|
8138 | ac_prev=
|
---|
8139 | continue
|
---|
8140 | fi
|
---|
8141 | case "$ac_arg" in
|
---|
8142 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
8143 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
8144 | ac_prev=cache_file ;;
|
---|
8145 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
8146 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
8147 | ;;
|
---|
8148 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
8149 | ac_prev=srcdir ;;
|
---|
8150 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
8151 | ;;
|
---|
8152 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
8153 | esac
|
---|
8154 | done
|
---|
8155 |
|
---|
8156 | for ac_config_dir in $DIRLTDL; do
|
---|
8157 |
|
---|
8158 | # Do not complain, so a configure script can configure whichever
|
---|
8159 | # parts of a large source tree are present.
|
---|
8160 | if test ! -d $srcdir/$ac_config_dir; then
|
---|
8161 | continue
|
---|
8162 | fi
|
---|
8163 |
|
---|
8164 | echo configuring in $ac_config_dir
|
---|
8165 |
|
---|
8166 | case "$srcdir" in
|
---|
8167 | .) ;;
|
---|
8168 | *)
|
---|
8169 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
|
---|
8170 | else
|
---|
8171 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
|
---|
8172 | fi
|
---|
8173 | ;;
|
---|
8174 | esac
|
---|
8175 |
|
---|
8176 | ac_popdir=`pwd`
|
---|
8177 | cd $ac_config_dir
|
---|
8178 |
|
---|
8179 | # A "../" for each directory in /$ac_config_dir.
|
---|
8180 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
|
---|
8181 |
|
---|
8182 | case "$srcdir" in
|
---|
8183 | .) # No --srcdir option. We are building in place.
|
---|
8184 | ac_sub_srcdir=$srcdir ;;
|
---|
8185 | /*) # Absolute path.
|
---|
8186 | ac_sub_srcdir=$srcdir/$ac_config_dir ;;
|
---|
8187 | *) # Relative path.
|
---|
8188 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
|
---|
8189 | esac
|
---|
8190 |
|
---|
8191 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
8192 | if test -f $ac_sub_srcdir/configure; then
|
---|
8193 | ac_sub_configure=$ac_sub_srcdir/configure
|
---|
8194 | elif test -f $ac_sub_srcdir/configure.in; then
|
---|
8195 | ac_sub_configure=$ac_configure
|
---|
8196 | else
|
---|
8197 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
|
---|
8198 | ac_sub_configure=
|
---|
8199 | fi
|
---|
8200 |
|
---|
8201 | # The recursion is here.
|
---|
8202 | if test -n "$ac_sub_configure"; then
|
---|
8203 |
|
---|
8204 | # Make the cache file name correct relative to the subdirectory.
|
---|
8205 | case "$cache_file" in
|
---|
8206 | /*) ac_sub_cache_file=$cache_file ;;
|
---|
8207 | *) # Relative path.
|
---|
8208 | ac_sub_cache_file="$ac_dots$cache_file" ;;
|
---|
8209 | esac
|
---|
8210 | case "$ac_given_INSTALL" in
|
---|
8211 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
8212 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
8213 | esac
|
---|
8214 |
|
---|
8215 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
|
---|
8216 | # The eval makes quoting arguments work.
|
---|
8217 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
|
---|
8218 | then :
|
---|
8219 | else
|
---|
8220 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
|
---|
8221 | fi
|
---|
8222 | fi
|
---|
8223 |
|
---|
8224 | cd $ac_popdir
|
---|
8225 | done
|
---|
8226 | fi
|
---|
8227 |
|
---|