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 | --enable-multilib build many library versions (default)"
|
---|
21 | ac_help="$ac_help
|
---|
22 | --enable-maintainer-mode enable make rules and dependencies not useful
|
---|
23 | (and sometimes confusing) to the casual installer"
|
---|
24 | ac_help="$ac_help
|
---|
25 | --enable-shared[=PKGS] build shared libraries [default=yes]"
|
---|
26 | ac_help="$ac_help
|
---|
27 | --enable-static[=PKGS] build static libraries [default=yes]"
|
---|
28 | ac_help="$ac_help
|
---|
29 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
---|
30 | ac_help="$ac_help
|
---|
31 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
---|
32 | ac_help="$ac_help
|
---|
33 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
---|
34 | ac_help="$ac_help
|
---|
35 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
---|
36 | ac_help="$ac_help
|
---|
37 | --disable-getenv-properties
|
---|
38 | don't set system properties from GCJ_PROPERTIES"
|
---|
39 | ac_help="$ac_help
|
---|
40 | --enable-hash-synchronization
|
---|
41 | Use global hash table for monitor locks"
|
---|
42 | ac_help="$ac_help
|
---|
43 | --enable-libgcj-debug enable runtime debugging code"
|
---|
44 | ac_help="$ac_help
|
---|
45 | --enable-interpreter enable interpreter"
|
---|
46 | ac_help="$ac_help
|
---|
47 | --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
|
---|
48 | ac_help="$ac_help
|
---|
49 | --disable-java-net disable java.net"
|
---|
50 | ac_help="$ac_help
|
---|
51 | --without-libffi don't use libffi"
|
---|
52 | ac_help="$ac_help
|
---|
53 | --disable-jvmpi disable JVMPI support"
|
---|
54 | ac_help="$ac_help
|
---|
55 | --with-ecos enable runtime eCos target support"
|
---|
56 | ac_help="$ac_help
|
---|
57 | --with-system-zlib use installed libz"
|
---|
58 | ac_help="$ac_help
|
---|
59 | --enable-java-gc=TYPE choose garbage collector [boehm]"
|
---|
60 | ac_help="$ac_help
|
---|
61 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
|
---|
62 | ac_help="$ac_help
|
---|
63 | --with-x use the X Window System"
|
---|
64 | ac_help="$ac_help
|
---|
65 | --enable-java-awt list of AWT peer implementations to be built"
|
---|
66 |
|
---|
67 | # Initialize some variables set by options.
|
---|
68 | # The variables have the same names as the options, with
|
---|
69 | # dashes changed to underlines.
|
---|
70 | build=NONE
|
---|
71 | cache_file=./config.cache
|
---|
72 | exec_prefix=NONE
|
---|
73 | host=NONE
|
---|
74 | no_create=
|
---|
75 | nonopt=NONE
|
---|
76 | no_recursion=
|
---|
77 | prefix=NONE
|
---|
78 | program_prefix=NONE
|
---|
79 | program_suffix=NONE
|
---|
80 | program_transform_name=s,x,x,
|
---|
81 | silent=
|
---|
82 | site=
|
---|
83 | srcdir=
|
---|
84 | target=NONE
|
---|
85 | verbose=
|
---|
86 | x_includes=NONE
|
---|
87 | x_libraries=NONE
|
---|
88 | bindir='${exec_prefix}/bin'
|
---|
89 | sbindir='${exec_prefix}/sbin'
|
---|
90 | libexecdir='${exec_prefix}/libexec'
|
---|
91 | datadir='${prefix}/share'
|
---|
92 | sysconfdir='${prefix}/etc'
|
---|
93 | sharedstatedir='${prefix}/com'
|
---|
94 | localstatedir='${prefix}/var'
|
---|
95 | libdir='${exec_prefix}/lib'
|
---|
96 | includedir='${prefix}/include'
|
---|
97 | oldincludedir='/usr/include'
|
---|
98 | infodir='${prefix}/info'
|
---|
99 | mandir='${prefix}/man'
|
---|
100 |
|
---|
101 | # Initialize some other variables.
|
---|
102 | subdirs=
|
---|
103 | MFLAGS= MAKEFLAGS=
|
---|
104 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
105 | # Maximum number of lines to put in a shell here document.
|
---|
106 | ac_max_here_lines=12
|
---|
107 |
|
---|
108 | ac_prev=
|
---|
109 | for ac_option
|
---|
110 | do
|
---|
111 |
|
---|
112 | # If the previous option needs an argument, assign it.
|
---|
113 | if test -n "$ac_prev"; then
|
---|
114 | eval "$ac_prev=\$ac_option"
|
---|
115 | ac_prev=
|
---|
116 | continue
|
---|
117 | fi
|
---|
118 |
|
---|
119 | case "$ac_option" in
|
---|
120 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
121 | *) ac_optarg= ;;
|
---|
122 | esac
|
---|
123 |
|
---|
124 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
125 |
|
---|
126 | case "$ac_option" in
|
---|
127 |
|
---|
128 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
129 | ac_prev=bindir ;;
|
---|
130 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
131 | bindir="$ac_optarg" ;;
|
---|
132 |
|
---|
133 | -build | --build | --buil | --bui | --bu)
|
---|
134 | ac_prev=build ;;
|
---|
135 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
136 | build="$ac_optarg" ;;
|
---|
137 |
|
---|
138 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
139 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
140 | ac_prev=cache_file ;;
|
---|
141 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
142 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
143 | cache_file="$ac_optarg" ;;
|
---|
144 |
|
---|
145 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
146 | ac_prev=datadir ;;
|
---|
147 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
148 | | --da=*)
|
---|
149 | datadir="$ac_optarg" ;;
|
---|
150 |
|
---|
151 | -disable-* | --disable-*)
|
---|
152 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
153 | # Reject names that are not valid shell variable names.
|
---|
154 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
155 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
156 | fi
|
---|
157 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
158 | eval "enable_${ac_feature}=no" ;;
|
---|
159 |
|
---|
160 | -enable-* | --enable-*)
|
---|
161 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
162 | # Reject names that are not valid shell variable names.
|
---|
163 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
164 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
165 | fi
|
---|
166 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
167 | case "$ac_option" in
|
---|
168 | *=*) ;;
|
---|
169 | *) ac_optarg=yes ;;
|
---|
170 | esac
|
---|
171 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
172 |
|
---|
173 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
174 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
175 | | --exec | --exe | --ex)
|
---|
176 | ac_prev=exec_prefix ;;
|
---|
177 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
178 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
179 | | --exec=* | --exe=* | --ex=*)
|
---|
180 | exec_prefix="$ac_optarg" ;;
|
---|
181 |
|
---|
182 | -gas | --gas | --ga | --g)
|
---|
183 | # Obsolete; use --with-gas.
|
---|
184 | with_gas=yes ;;
|
---|
185 |
|
---|
186 | -help | --help | --hel | --he)
|
---|
187 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
188 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
189 | cat << EOF
|
---|
190 | Usage: configure [options] [host]
|
---|
191 | Options: [defaults in brackets after descriptions]
|
---|
192 | Configuration:
|
---|
193 | --cache-file=FILE cache test results in FILE
|
---|
194 | --help print this message
|
---|
195 | --no-create do not create output files
|
---|
196 | --quiet, --silent do not print \`checking...' messages
|
---|
197 | --version print the version of autoconf that created configure
|
---|
198 | Directory and file names:
|
---|
199 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
200 | [$ac_default_prefix]
|
---|
201 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
202 | [same as prefix]
|
---|
203 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
204 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
205 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
206 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
207 | [PREFIX/share]
|
---|
208 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
209 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
210 | [PREFIX/com]
|
---|
211 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
212 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
213 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
214 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
215 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
216 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
217 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
218 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
219 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
220 | --program-transform-name=PROGRAM
|
---|
221 | run sed PROGRAM on installed program names
|
---|
222 | EOF
|
---|
223 | cat << EOF
|
---|
224 | Host type:
|
---|
225 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
226 | --host=HOST configure for HOST [guessed]
|
---|
227 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
228 | Features and packages:
|
---|
229 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
230 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
231 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
232 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
233 | --x-includes=DIR X include files are in DIR
|
---|
234 | --x-libraries=DIR X library files are in DIR
|
---|
235 | EOF
|
---|
236 | if test -n "$ac_help"; then
|
---|
237 | echo "--enable and --with options recognized:$ac_help"
|
---|
238 | fi
|
---|
239 | exit 0 ;;
|
---|
240 |
|
---|
241 | -host | --host | --hos | --ho)
|
---|
242 | ac_prev=host ;;
|
---|
243 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
244 | host="$ac_optarg" ;;
|
---|
245 |
|
---|
246 | -includedir | --includedir | --includedi | --included | --include \
|
---|
247 | | --includ | --inclu | --incl | --inc)
|
---|
248 | ac_prev=includedir ;;
|
---|
249 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
250 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
251 | includedir="$ac_optarg" ;;
|
---|
252 |
|
---|
253 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
254 | ac_prev=infodir ;;
|
---|
255 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
256 | infodir="$ac_optarg" ;;
|
---|
257 |
|
---|
258 | -libdir | --libdir | --libdi | --libd)
|
---|
259 | ac_prev=libdir ;;
|
---|
260 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
261 | libdir="$ac_optarg" ;;
|
---|
262 |
|
---|
263 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
264 | | --libexe | --libex | --libe)
|
---|
265 | ac_prev=libexecdir ;;
|
---|
266 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
267 | | --libexe=* | --libex=* | --libe=*)
|
---|
268 | libexecdir="$ac_optarg" ;;
|
---|
269 |
|
---|
270 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
271 | | --localstate | --localstat | --localsta | --localst \
|
---|
272 | | --locals | --local | --loca | --loc | --lo)
|
---|
273 | ac_prev=localstatedir ;;
|
---|
274 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
275 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
276 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
277 | localstatedir="$ac_optarg" ;;
|
---|
278 |
|
---|
279 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
280 | ac_prev=mandir ;;
|
---|
281 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
282 | mandir="$ac_optarg" ;;
|
---|
283 |
|
---|
284 | -nfp | --nfp | --nf)
|
---|
285 | # Obsolete; use --without-fp.
|
---|
286 | with_fp=no ;;
|
---|
287 |
|
---|
288 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
289 | | --no-cr | --no-c)
|
---|
290 | no_create=yes ;;
|
---|
291 |
|
---|
292 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
293 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
294 | no_recursion=yes ;;
|
---|
295 |
|
---|
296 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
297 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
298 | | --oldin | --oldi | --old | --ol | --o)
|
---|
299 | ac_prev=oldincludedir ;;
|
---|
300 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
301 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
302 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
303 | oldincludedir="$ac_optarg" ;;
|
---|
304 |
|
---|
305 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
306 | ac_prev=prefix ;;
|
---|
307 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
308 | prefix="$ac_optarg" ;;
|
---|
309 |
|
---|
310 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
311 | | --program-pre | --program-pr | --program-p)
|
---|
312 | ac_prev=program_prefix ;;
|
---|
313 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
314 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
315 | program_prefix="$ac_optarg" ;;
|
---|
316 |
|
---|
317 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
318 | | --program-suf | --program-su | --program-s)
|
---|
319 | ac_prev=program_suffix ;;
|
---|
320 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
321 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
322 | program_suffix="$ac_optarg" ;;
|
---|
323 |
|
---|
324 | -program-transform-name | --program-transform-name \
|
---|
325 | | --program-transform-nam | --program-transform-na \
|
---|
326 | | --program-transform-n | --program-transform- \
|
---|
327 | | --program-transform | --program-transfor \
|
---|
328 | | --program-transfo | --program-transf \
|
---|
329 | | --program-trans | --program-tran \
|
---|
330 | | --progr-tra | --program-tr | --program-t)
|
---|
331 | ac_prev=program_transform_name ;;
|
---|
332 | -program-transform-name=* | --program-transform-name=* \
|
---|
333 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
334 | | --program-transform-n=* | --program-transform-=* \
|
---|
335 | | --program-transform=* | --program-transfor=* \
|
---|
336 | | --program-transfo=* | --program-transf=* \
|
---|
337 | | --program-trans=* | --program-tran=* \
|
---|
338 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
339 | program_transform_name="$ac_optarg" ;;
|
---|
340 |
|
---|
341 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
342 | | -silent | --silent | --silen | --sile | --sil)
|
---|
343 | silent=yes ;;
|
---|
344 |
|
---|
345 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
346 | ac_prev=sbindir ;;
|
---|
347 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
348 | | --sbi=* | --sb=*)
|
---|
349 | sbindir="$ac_optarg" ;;
|
---|
350 |
|
---|
351 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
352 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
353 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
354 | | --sha | --sh)
|
---|
355 | ac_prev=sharedstatedir ;;
|
---|
356 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
357 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
358 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
359 | | --sha=* | --sh=*)
|
---|
360 | sharedstatedir="$ac_optarg" ;;
|
---|
361 |
|
---|
362 | -site | --site | --sit)
|
---|
363 | ac_prev=site ;;
|
---|
364 | -site=* | --site=* | --sit=*)
|
---|
365 | site="$ac_optarg" ;;
|
---|
366 |
|
---|
367 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
368 | ac_prev=srcdir ;;
|
---|
369 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
370 | srcdir="$ac_optarg" ;;
|
---|
371 |
|
---|
372 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
373 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
374 | ac_prev=sysconfdir ;;
|
---|
375 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
376 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
377 | sysconfdir="$ac_optarg" ;;
|
---|
378 |
|
---|
379 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
380 | ac_prev=target ;;
|
---|
381 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
382 | target="$ac_optarg" ;;
|
---|
383 |
|
---|
384 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
385 | verbose=yes ;;
|
---|
386 |
|
---|
387 | -version | --version | --versio | --versi | --vers)
|
---|
388 | echo "configure generated by autoconf version 2.13"
|
---|
389 | exit 0 ;;
|
---|
390 |
|
---|
391 | -with-* | --with-*)
|
---|
392 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
393 | # Reject names that are not valid shell variable names.
|
---|
394 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
395 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
396 | fi
|
---|
397 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
398 | case "$ac_option" in
|
---|
399 | *=*) ;;
|
---|
400 | *) ac_optarg=yes ;;
|
---|
401 | esac
|
---|
402 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
403 |
|
---|
404 | -without-* | --without-*)
|
---|
405 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
406 | # Reject names that are not valid shell variable names.
|
---|
407 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
408 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
409 | fi
|
---|
410 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
411 | eval "with_${ac_package}=no" ;;
|
---|
412 |
|
---|
413 | --x)
|
---|
414 | # Obsolete; use --with-x.
|
---|
415 | with_x=yes ;;
|
---|
416 |
|
---|
417 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
418 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
419 | ac_prev=x_includes ;;
|
---|
420 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
421 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
422 | x_includes="$ac_optarg" ;;
|
---|
423 |
|
---|
424 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
425 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
426 | ac_prev=x_libraries ;;
|
---|
427 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
428 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
429 | x_libraries="$ac_optarg" ;;
|
---|
430 |
|
---|
431 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
432 | ;;
|
---|
433 |
|
---|
434 | *)
|
---|
435 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
436 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
437 | fi
|
---|
438 | if test "x$nonopt" != xNONE; then
|
---|
439 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
440 | fi
|
---|
441 | nonopt="$ac_option"
|
---|
442 | ;;
|
---|
443 |
|
---|
444 | esac
|
---|
445 | done
|
---|
446 |
|
---|
447 | if test -n "$ac_prev"; then
|
---|
448 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
449 | fi
|
---|
450 |
|
---|
451 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
452 |
|
---|
453 | # File descriptor usage:
|
---|
454 | # 0 standard input
|
---|
455 | # 1 file creation
|
---|
456 | # 2 errors and warnings
|
---|
457 | # 3 some systems may open it to /dev/tty
|
---|
458 | # 4 used on the Kubota Titan
|
---|
459 | # 6 checking for... messages and results
|
---|
460 | # 5 compiler messages saved in config.log
|
---|
461 | if test "$silent" = yes; then
|
---|
462 | exec 6>/dev/null
|
---|
463 | else
|
---|
464 | exec 6>&1
|
---|
465 | fi
|
---|
466 | exec 5>./config.log
|
---|
467 |
|
---|
468 | echo "\
|
---|
469 | This file contains any messages produced by compilers while
|
---|
470 | running configure, to aid debugging if configure makes a mistake.
|
---|
471 | " 1>&5
|
---|
472 |
|
---|
473 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
474 | # Also quote any args containing shell metacharacters.
|
---|
475 | ac_configure_args=
|
---|
476 | for ac_arg
|
---|
477 | do
|
---|
478 | case "$ac_arg" in
|
---|
479 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
480 | | --no-cr | --no-c) ;;
|
---|
481 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
482 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
483 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
484 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
485 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
486 | esac
|
---|
487 | done
|
---|
488 |
|
---|
489 | # NLS nuisances.
|
---|
490 | # Only set these to C if already set. These must not be set unconditionally
|
---|
491 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
492 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
493 | # Non-C LC_CTYPE values break the ctype check.
|
---|
494 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
495 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
496 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
497 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
498 |
|
---|
499 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
500 | rm -rf conftest* confdefs.h
|
---|
501 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
502 | echo > confdefs.h
|
---|
503 |
|
---|
504 | # A filename unique to this package, relative to the directory that
|
---|
505 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
506 | ac_unique_file=java/lang/System.java
|
---|
507 |
|
---|
508 | # Find the source files, if location was not specified.
|
---|
509 | if test -z "$srcdir"; then
|
---|
510 | ac_srcdir_defaulted=yes
|
---|
511 | # Try the directory containing this script, then its parent.
|
---|
512 | ac_prog=$0
|
---|
513 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
514 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
515 | srcdir=$ac_confdir
|
---|
516 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
517 | srcdir=..
|
---|
518 | fi
|
---|
519 | else
|
---|
520 | ac_srcdir_defaulted=no
|
---|
521 | fi
|
---|
522 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
523 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
524 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
525 | else
|
---|
526 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
527 | fi
|
---|
528 | fi
|
---|
529 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
530 |
|
---|
531 | # Prefer explicitly selected file to automatically selected ones.
|
---|
532 | if test -z "$CONFIG_SITE"; then
|
---|
533 | if test "x$prefix" != xNONE; then
|
---|
534 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
535 | else
|
---|
536 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
537 | fi
|
---|
538 | fi
|
---|
539 | for ac_site_file in $CONFIG_SITE; do
|
---|
540 | if test -r "$ac_site_file"; then
|
---|
541 | echo "loading site script $ac_site_file"
|
---|
542 | . "$ac_site_file"
|
---|
543 | fi
|
---|
544 | done
|
---|
545 |
|
---|
546 | if test -r "$cache_file"; then
|
---|
547 | echo "loading cache $cache_file"
|
---|
548 | . $cache_file
|
---|
549 | else
|
---|
550 | echo "creating cache $cache_file"
|
---|
551 | > $cache_file
|
---|
552 | fi
|
---|
553 |
|
---|
554 | ac_ext=c
|
---|
555 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
556 | ac_cpp='$CPP $CPPFLAGS'
|
---|
557 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
558 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
559 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
560 |
|
---|
561 | ac_exeext=
|
---|
562 | ac_objext=o
|
---|
563 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
564 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
565 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
566 | ac_n= ac_c='
|
---|
567 | ' ac_t=' '
|
---|
568 | else
|
---|
569 | ac_n=-n ac_c= ac_t=
|
---|
570 | fi
|
---|
571 | else
|
---|
572 | ac_n= ac_c='\c' ac_t=
|
---|
573 | fi
|
---|
574 |
|
---|
575 |
|
---|
576 |
|
---|
577 | # This works around the fact that libtool configuration may change LD
|
---|
578 | # for this particular configuration, but some shells, instead of
|
---|
579 | # keeping the changes in LD private, export them just because LD is
|
---|
580 | # exported.
|
---|
581 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
---|
582 |
|
---|
583 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
584 | echo "configure:585: checking whether ln -s works" >&5
|
---|
585 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
586 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
587 | else
|
---|
588 | rm -f conftestdata
|
---|
589 | if ln -s X conftestdata 2>/dev/null
|
---|
590 | then
|
---|
591 | rm -f conftestdata
|
---|
592 | ac_cv_prog_LN_S="ln -s"
|
---|
593 | else
|
---|
594 | ac_cv_prog_LN_S=ln
|
---|
595 | fi
|
---|
596 | fi
|
---|
597 | LN_S="$ac_cv_prog_LN_S"
|
---|
598 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
599 | echo "$ac_t""yes" 1>&6
|
---|
600 | else
|
---|
601 | echo "$ac_t""no" 1>&6
|
---|
602 | fi
|
---|
603 |
|
---|
604 |
|
---|
605 | # Check whether --with-target-subdir or --without-target-subdir was given.
|
---|
606 | if test "${with_target_subdir+set}" = set; then
|
---|
607 | withval="$with_target_subdir"
|
---|
608 | :
|
---|
609 | fi
|
---|
610 |
|
---|
611 | # Check whether --with-cross-host or --without-cross-host was given.
|
---|
612 | if test "${with_cross_host+set}" = set; then
|
---|
613 | withval="$with_cross_host"
|
---|
614 | :
|
---|
615 | fi
|
---|
616 |
|
---|
617 |
|
---|
618 | # Find a good install program. We prefer a C program (faster),
|
---|
619 | # so one script is as good as another. But avoid the broken or
|
---|
620 | # incompatible versions:
|
---|
621 | # SysV /etc/install, /usr/sbin/install
|
---|
622 | # SunOS /usr/etc/install
|
---|
623 | # IRIX /sbin/install
|
---|
624 | # AIX /bin/install
|
---|
625 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
626 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
627 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
628 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
629 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
630 | echo "configure:631: checking for a BSD compatible install" >&5
|
---|
631 | if test -z "$INSTALL"; then
|
---|
632 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
633 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
634 | else
|
---|
635 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
636 | for ac_dir in $PATH; do
|
---|
637 | # Account for people who put trailing slashes in PATH elements.
|
---|
638 | case "$ac_dir/" in
|
---|
639 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
640 | *)
|
---|
641 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
642 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
643 | # by default.
|
---|
644 | for ac_prog in ginstall scoinst install; do
|
---|
645 | if test -f $ac_dir/$ac_prog; then
|
---|
646 | if test $ac_prog = install &&
|
---|
647 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
648 | # AIX install. It has an incompatible calling convention.
|
---|
649 | :
|
---|
650 | else
|
---|
651 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
652 | break 2
|
---|
653 | fi
|
---|
654 | fi
|
---|
655 | done
|
---|
656 | ;;
|
---|
657 | esac
|
---|
658 | done
|
---|
659 | IFS="$ac_save_IFS"
|
---|
660 |
|
---|
661 | fi
|
---|
662 | if test "${ac_cv_path_install+set}" = set; then
|
---|
663 | INSTALL="$ac_cv_path_install"
|
---|
664 | else
|
---|
665 | # As a last resort, use the slow shell script. We don't cache a
|
---|
666 | # path for INSTALL within a source directory, because that will
|
---|
667 | # break other packages using the cache if that directory is
|
---|
668 | # removed, or if the path is relative.
|
---|
669 | INSTALL="$ac_install_sh"
|
---|
670 | fi
|
---|
671 | fi
|
---|
672 | echo "$ac_t""$INSTALL" 1>&6
|
---|
673 |
|
---|
674 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
675 | # It thinks the first close brace ends the variable substitution.
|
---|
676 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
677 |
|
---|
678 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
679 |
|
---|
680 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
681 |
|
---|
682 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
683 | echo "configure:684: checking whether build environment is sane" >&5
|
---|
684 | # Just in case
|
---|
685 | sleep 1
|
---|
686 | echo timestamp > conftestfile
|
---|
687 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
688 | # arguments. Must try -L first in case configure is actually a
|
---|
689 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
690 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
691 | # directory).
|
---|
692 | if (
|
---|
693 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
694 | if test "$*" = "X"; then
|
---|
695 | # -L didn't work.
|
---|
696 | set X `ls -t $srcdir/configure conftestfile`
|
---|
697 | fi
|
---|
698 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
699 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
700 |
|
---|
701 | # If neither matched, then we have a broken ls. This can happen
|
---|
702 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
703 | # broken ls alias from the environment. This has actually
|
---|
704 | # happened. Such a system could not be considered "sane".
|
---|
705 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
706 | alias in your environment" 1>&2; exit 1; }
|
---|
707 | fi
|
---|
708 |
|
---|
709 | test "$2" = conftestfile
|
---|
710 | )
|
---|
711 | then
|
---|
712 | # Ok.
|
---|
713 | :
|
---|
714 | else
|
---|
715 | { echo "configure: error: newly created file is older than distributed files!
|
---|
716 | Check your system clock" 1>&2; exit 1; }
|
---|
717 | fi
|
---|
718 | rm -f conftest*
|
---|
719 | echo "$ac_t""yes" 1>&6
|
---|
720 | if test "$program_transform_name" = s,x,x,; then
|
---|
721 | program_transform_name=
|
---|
722 | else
|
---|
723 | # Double any \ or $. echo might interpret backslashes.
|
---|
724 | cat <<\EOF_SED > conftestsed
|
---|
725 | s,\\,\\\\,g; s,\$,$$,g
|
---|
726 | EOF_SED
|
---|
727 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
728 | rm -f conftestsed
|
---|
729 | fi
|
---|
730 | test "$program_prefix" != NONE &&
|
---|
731 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
732 | # Use a double $ so make ignores it.
|
---|
733 | test "$program_suffix" != NONE &&
|
---|
734 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
735 |
|
---|
736 | # sed with no file args requires a program.
|
---|
737 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
738 |
|
---|
739 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
740 | echo "configure:741: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
741 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
742 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
743 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
744 | else
|
---|
745 | cat > conftestmake <<\EOF
|
---|
746 | all:
|
---|
747 | @echo 'ac_maketemp="${MAKE}"'
|
---|
748 | EOF
|
---|
749 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
750 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
751 | if test -n "$ac_maketemp"; then
|
---|
752 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
753 | else
|
---|
754 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
755 | fi
|
---|
756 | rm -f conftestmake
|
---|
757 | fi
|
---|
758 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
759 | echo "$ac_t""yes" 1>&6
|
---|
760 | SET_MAKE=
|
---|
761 | else
|
---|
762 | echo "$ac_t""no" 1>&6
|
---|
763 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
764 | fi
|
---|
765 |
|
---|
766 | if test $host != $build; then
|
---|
767 | ac_tool_prefix=${host_alias}-
|
---|
768 | else
|
---|
769 | ac_tool_prefix=
|
---|
770 | fi
|
---|
771 |
|
---|
772 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
773 | echo "configure:774: checking for Cygwin environment" >&5
|
---|
774 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
775 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
776 | else
|
---|
777 | cat > conftest.$ac_ext <<EOF
|
---|
778 | #line 779 "configure"
|
---|
779 | #include "confdefs.h"
|
---|
780 |
|
---|
781 | int main() {
|
---|
782 |
|
---|
783 | #ifndef __CYGWIN__
|
---|
784 | #define __CYGWIN__ __CYGWIN32__
|
---|
785 | #endif
|
---|
786 | return __CYGWIN__;
|
---|
787 | ; return 0; }
|
---|
788 | EOF
|
---|
789 | if { (eval echo configure:790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
790 | rm -rf conftest*
|
---|
791 | ac_cv_cygwin=yes
|
---|
792 | else
|
---|
793 | echo "configure: failed program was:" >&5
|
---|
794 | cat conftest.$ac_ext >&5
|
---|
795 | rm -rf conftest*
|
---|
796 | ac_cv_cygwin=no
|
---|
797 | fi
|
---|
798 | rm -f conftest*
|
---|
799 | rm -f conftest*
|
---|
800 | fi
|
---|
801 |
|
---|
802 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
803 | CYGWIN=
|
---|
804 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
805 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
806 | echo "configure:807: checking for mingw32 environment" >&5
|
---|
807 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
808 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
809 | else
|
---|
810 | cat > conftest.$ac_ext <<EOF
|
---|
811 | #line 812 "configure"
|
---|
812 | #include "confdefs.h"
|
---|
813 |
|
---|
814 | int main() {
|
---|
815 | return __MINGW32__;
|
---|
816 | ; return 0; }
|
---|
817 | EOF
|
---|
818 | if { (eval echo configure:819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
819 | rm -rf conftest*
|
---|
820 | ac_cv_mingw32=yes
|
---|
821 | else
|
---|
822 | echo "configure: failed program was:" >&5
|
---|
823 | cat conftest.$ac_ext >&5
|
---|
824 | rm -rf conftest*
|
---|
825 | ac_cv_mingw32=no
|
---|
826 | fi
|
---|
827 | rm -f conftest*
|
---|
828 | rm -f conftest*
|
---|
829 | fi
|
---|
830 |
|
---|
831 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
832 | MINGW32=
|
---|
833 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
834 |
|
---|
835 | # Check whether --enable-multilib or --disable-multilib was given.
|
---|
836 | if test "${enable_multilib+set}" = set; then
|
---|
837 | enableval="$enable_multilib"
|
---|
838 | case "${enableval}" in
|
---|
839 | yes) multilib=yes ;;
|
---|
840 | no) multilib=no ;;
|
---|
841 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
|
---|
842 | esac
|
---|
843 | else
|
---|
844 | multilib=yes
|
---|
845 | fi
|
---|
846 |
|
---|
847 |
|
---|
848 | # When building with srcdir == objdir, links to the source files will
|
---|
849 | # be created in directories within the target_subdir. We have to
|
---|
850 | # adjust toplevel_srcdir accordingly, so that configure finds
|
---|
851 | # install-sh and other auxiliary files that live in the top-level
|
---|
852 | # source directory.
|
---|
853 | if test "${srcdir}" = "."; then
|
---|
854 | if test -z "${with_target_subdir}"; then
|
---|
855 | toprel=".."
|
---|
856 | else
|
---|
857 | if test "${with_target_subdir}" != "."; then
|
---|
858 | toprel="${with_multisrctop}../.."
|
---|
859 | else
|
---|
860 | toprel="${with_multisrctop}.."
|
---|
861 | fi
|
---|
862 | fi
|
---|
863 | else
|
---|
864 | toprel=".."
|
---|
865 | fi
|
---|
866 |
|
---|
867 | libgcj_basedir=$srcdir/$toprel/./libjava
|
---|
868 |
|
---|
869 |
|
---|
870 | ac_aux_dir=
|
---|
871 | for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
|
---|
872 | if test -f $ac_dir/install-sh; then
|
---|
873 | ac_aux_dir=$ac_dir
|
---|
874 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
875 | break
|
---|
876 | elif test -f $ac_dir/install.sh; then
|
---|
877 | ac_aux_dir=$ac_dir
|
---|
878 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
879 | break
|
---|
880 | fi
|
---|
881 | done
|
---|
882 | if test -z "$ac_aux_dir"; then
|
---|
883 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
|
---|
884 | fi
|
---|
885 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
886 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
887 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
888 |
|
---|
889 | if :; then :; else
|
---|
890 | # This overrides the previous occurrence for automake, but not for
|
---|
891 | # autoconf, which is exactly what we want.
|
---|
892 | ac_aux_dir=
|
---|
893 | for ac_dir in .. $srcdir/..; do
|
---|
894 | if test -f $ac_dir/install-sh; then
|
---|
895 | ac_aux_dir=$ac_dir
|
---|
896 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
897 | break
|
---|
898 | elif test -f $ac_dir/install.sh; then
|
---|
899 | ac_aux_dir=$ac_dir
|
---|
900 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
901 | break
|
---|
902 | fi
|
---|
903 | done
|
---|
904 | if test -z "$ac_aux_dir"; then
|
---|
905 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
|
---|
906 | fi
|
---|
907 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
908 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
909 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
910 |
|
---|
911 | fi
|
---|
912 |
|
---|
913 | # This works around an automake problem.
|
---|
914 | mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
|
---|
915 |
|
---|
916 |
|
---|
917 |
|
---|
918 | # Do some error checking and defaulting for the host and target type.
|
---|
919 | # The inputs are:
|
---|
920 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
---|
921 | #
|
---|
922 | # The rules are:
|
---|
923 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
---|
924 | # same time.
|
---|
925 | # 2. Host defaults to nonopt.
|
---|
926 | # 3. If nonopt is not specified, then host defaults to the current host,
|
---|
927 | # as determined by config.guess.
|
---|
928 | # 4. Target and build default to nonopt.
|
---|
929 | # 5. If nonopt is not specified, then target and build default to host.
|
---|
930 |
|
---|
931 | # The aliases save the names the user supplied, while $host etc.
|
---|
932 | # will get canonicalized.
|
---|
933 | case $host---$target---$nonopt in
|
---|
934 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
---|
935 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
---|
936 | esac
|
---|
937 |
|
---|
938 |
|
---|
939 | # Make sure we can run config.sub.
|
---|
940 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
941 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
942 | fi
|
---|
943 |
|
---|
944 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
945 | echo "configure:946: checking host system type" >&5
|
---|
946 |
|
---|
947 | host_alias=$host
|
---|
948 | case "$host_alias" in
|
---|
949 | NONE)
|
---|
950 | case $nonopt in
|
---|
951 | NONE)
|
---|
952 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
953 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
954 | fi ;;
|
---|
955 | *) host_alias=$nonopt ;;
|
---|
956 | esac ;;
|
---|
957 | esac
|
---|
958 |
|
---|
959 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
960 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
961 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
962 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
963 | echo "$ac_t""$host" 1>&6
|
---|
964 |
|
---|
965 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
---|
966 | echo "configure:967: checking target system type" >&5
|
---|
967 |
|
---|
968 | target_alias=$target
|
---|
969 | case "$target_alias" in
|
---|
970 | NONE)
|
---|
971 | case $nonopt in
|
---|
972 | NONE) target_alias=$host_alias ;;
|
---|
973 | *) target_alias=$nonopt ;;
|
---|
974 | esac ;;
|
---|
975 | esac
|
---|
976 |
|
---|
977 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
---|
978 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
979 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
980 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
981 | echo "$ac_t""$target" 1>&6
|
---|
982 |
|
---|
983 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
984 | echo "configure:985: checking build system type" >&5
|
---|
985 |
|
---|
986 | build_alias=$build
|
---|
987 | case "$build_alias" in
|
---|
988 | NONE)
|
---|
989 | case $nonopt in
|
---|
990 | NONE) build_alias=$host_alias ;;
|
---|
991 | *) build_alias=$nonopt ;;
|
---|
992 | esac ;;
|
---|
993 | esac
|
---|
994 |
|
---|
995 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
996 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
997 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
998 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
999 | echo "$ac_t""$build" 1>&6
|
---|
1000 |
|
---|
1001 | test "$host_alias" != "$target_alias" &&
|
---|
1002 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
1003 | NONENONEs,x,x, &&
|
---|
1004 | program_prefix=${target_alias}-
|
---|
1005 |
|
---|
1006 |
|
---|
1007 |
|
---|
1008 |
|
---|
1009 |
|
---|
1010 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1011 | set dummy gcc; ac_word=$2
|
---|
1012 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1013 | echo "configure:1014: checking for $ac_word" >&5
|
---|
1014 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1015 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1016 | else
|
---|
1017 | if test -n "$CC"; then
|
---|
1018 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1019 | else
|
---|
1020 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1021 | ac_dummy="$PATH"
|
---|
1022 | for ac_dir in $ac_dummy; do
|
---|
1023 | test -z "$ac_dir" && ac_dir=.
|
---|
1024 | if test -f $ac_dir/$ac_word; then
|
---|
1025 | ac_cv_prog_CC="gcc"
|
---|
1026 | break
|
---|
1027 | fi
|
---|
1028 | done
|
---|
1029 | IFS="$ac_save_ifs"
|
---|
1030 | fi
|
---|
1031 | fi
|
---|
1032 | CC="$ac_cv_prog_CC"
|
---|
1033 | if test -n "$CC"; then
|
---|
1034 | echo "$ac_t""$CC" 1>&6
|
---|
1035 | else
|
---|
1036 | echo "$ac_t""no" 1>&6
|
---|
1037 | fi
|
---|
1038 |
|
---|
1039 | if test -z "$CC"; then
|
---|
1040 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1041 | set dummy cc; ac_word=$2
|
---|
1042 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1043 | echo "configure:1044: checking for $ac_word" >&5
|
---|
1044 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1045 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1046 | else
|
---|
1047 | if test -n "$CC"; then
|
---|
1048 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1049 | else
|
---|
1050 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1051 | ac_prog_rejected=no
|
---|
1052 | ac_dummy="$PATH"
|
---|
1053 | for ac_dir in $ac_dummy; do
|
---|
1054 | test -z "$ac_dir" && ac_dir=.
|
---|
1055 | if test -f $ac_dir/$ac_word; then
|
---|
1056 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
1057 | ac_prog_rejected=yes
|
---|
1058 | continue
|
---|
1059 | fi
|
---|
1060 | ac_cv_prog_CC="cc"
|
---|
1061 | break
|
---|
1062 | fi
|
---|
1063 | done
|
---|
1064 | IFS="$ac_save_ifs"
|
---|
1065 | if test $ac_prog_rejected = yes; then
|
---|
1066 | # We found a bogon in the path, so make sure we never use it.
|
---|
1067 | set dummy $ac_cv_prog_CC
|
---|
1068 | shift
|
---|
1069 | if test $# -gt 0; then
|
---|
1070 | # We chose a different compiler from the bogus one.
|
---|
1071 | # However, it has the same basename, so the bogon will be chosen
|
---|
1072 | # first if we set CC to just the basename; use the full file name.
|
---|
1073 | shift
|
---|
1074 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
1075 | shift
|
---|
1076 | ac_cv_prog_CC="$@"
|
---|
1077 | fi
|
---|
1078 | fi
|
---|
1079 | fi
|
---|
1080 | fi
|
---|
1081 | CC="$ac_cv_prog_CC"
|
---|
1082 | if test -n "$CC"; then
|
---|
1083 | echo "$ac_t""$CC" 1>&6
|
---|
1084 | else
|
---|
1085 | echo "$ac_t""no" 1>&6
|
---|
1086 | fi
|
---|
1087 |
|
---|
1088 | if test -z "$CC"; then
|
---|
1089 | case "`uname -s`" in
|
---|
1090 | *win32* | *WIN32*)
|
---|
1091 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
1092 | set dummy cl; ac_word=$2
|
---|
1093 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1094 | echo "configure:1095: checking for $ac_word" >&5
|
---|
1095 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1096 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1097 | else
|
---|
1098 | if test -n "$CC"; then
|
---|
1099 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1100 | else
|
---|
1101 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1102 | ac_dummy="$PATH"
|
---|
1103 | for ac_dir in $ac_dummy; do
|
---|
1104 | test -z "$ac_dir" && ac_dir=.
|
---|
1105 | if test -f $ac_dir/$ac_word; then
|
---|
1106 | ac_cv_prog_CC="cl"
|
---|
1107 | break
|
---|
1108 | fi
|
---|
1109 | done
|
---|
1110 | IFS="$ac_save_ifs"
|
---|
1111 | fi
|
---|
1112 | fi
|
---|
1113 | CC="$ac_cv_prog_CC"
|
---|
1114 | if test -n "$CC"; then
|
---|
1115 | echo "$ac_t""$CC" 1>&6
|
---|
1116 | else
|
---|
1117 | echo "$ac_t""no" 1>&6
|
---|
1118 | fi
|
---|
1119 | ;;
|
---|
1120 | esac
|
---|
1121 | fi
|
---|
1122 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
1123 | fi
|
---|
1124 |
|
---|
1125 |
|
---|
1126 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
1127 | echo "configure:1128: checking whether we are using GNU C" >&5
|
---|
1128 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
1129 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1130 | else
|
---|
1131 | cat > conftest.c <<EOF
|
---|
1132 | #ifdef __GNUC__
|
---|
1133 | yes;
|
---|
1134 | #endif
|
---|
1135 | EOF
|
---|
1136 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
1137 | ac_cv_prog_gcc=yes
|
---|
1138 | else
|
---|
1139 | ac_cv_prog_gcc=no
|
---|
1140 | fi
|
---|
1141 | fi
|
---|
1142 |
|
---|
1143 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
1144 |
|
---|
1145 | if test $ac_cv_prog_gcc = yes; then
|
---|
1146 | GCC=yes
|
---|
1147 | else
|
---|
1148 | GCC=
|
---|
1149 | fi
|
---|
1150 |
|
---|
1151 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
1152 | ac_save_CFLAGS="$CFLAGS"
|
---|
1153 | CFLAGS=
|
---|
1154 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
1155 | echo "configure:1156: checking whether ${CC-cc} accepts -g" >&5
|
---|
1156 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
1157 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1158 | else
|
---|
1159 | echo 'void f(){}' > conftest.c
|
---|
1160 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
1161 | ac_cv_prog_cc_g=yes
|
---|
1162 | else
|
---|
1163 | ac_cv_prog_cc_g=no
|
---|
1164 | fi
|
---|
1165 | rm -f conftest*
|
---|
1166 |
|
---|
1167 | fi
|
---|
1168 |
|
---|
1169 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
1170 | if test "$ac_test_CFLAGS" = set; then
|
---|
1171 | CFLAGS="$ac_save_CFLAGS"
|
---|
1172 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1173 | if test "$GCC" = yes; then
|
---|
1174 | CFLAGS="-g -O2"
|
---|
1175 | else
|
---|
1176 | CFLAGS="-g"
|
---|
1177 | fi
|
---|
1178 | else
|
---|
1179 | if test "$GCC" = yes; then
|
---|
1180 | CFLAGS="-O2"
|
---|
1181 | else
|
---|
1182 | CFLAGS=
|
---|
1183 | fi
|
---|
1184 | fi
|
---|
1185 |
|
---|
1186 |
|
---|
1187 | # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
|
---|
1188 | # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
|
---|
1189 | # different definition of CXX than other directories, since we don't
|
---|
1190 | # depend on libstdc++-v3 having already been built.
|
---|
1191 |
|
---|
1192 |
|
---|
1193 |
|
---|
1194 | # Use glibjava_CXX so that we do not cause CXX to be cached with the
|
---|
1195 | # flags that come in CXX while configuring libjava. They're different
|
---|
1196 | # from those used for all other target libraries. If CXX is set in
|
---|
1197 | # the environment, respect that here.
|
---|
1198 | glibjava_CXX=$CXX
|
---|
1199 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++
|
---|
1200 | do
|
---|
1201 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1202 | set dummy $ac_prog; ac_word=$2
|
---|
1203 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1204 | echo "configure:1205: checking for $ac_word" >&5
|
---|
1205 | if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
|
---|
1206 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1207 | else
|
---|
1208 | if test -n "$glibjava_CXX"; then
|
---|
1209 | ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
|
---|
1210 | else
|
---|
1211 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1212 | ac_dummy="$PATH"
|
---|
1213 | for ac_dir in $ac_dummy; do
|
---|
1214 | test -z "$ac_dir" && ac_dir=.
|
---|
1215 | if test -f $ac_dir/$ac_word; then
|
---|
1216 | ac_cv_prog_glibjava_CXX="$ac_prog"
|
---|
1217 | break
|
---|
1218 | fi
|
---|
1219 | done
|
---|
1220 | IFS="$ac_save_ifs"
|
---|
1221 | fi
|
---|
1222 | fi
|
---|
1223 | glibjava_CXX="$ac_cv_prog_glibjava_CXX"
|
---|
1224 | if test -n "$glibjava_CXX"; then
|
---|
1225 | echo "$ac_t""$glibjava_CXX" 1>&6
|
---|
1226 | else
|
---|
1227 | echo "$ac_t""no" 1>&6
|
---|
1228 | fi
|
---|
1229 |
|
---|
1230 | test -n "$glibjava_CXX" && break
|
---|
1231 | done
|
---|
1232 | test -n "$glibjava_CXX" || glibjava_CXX="gcc"
|
---|
1233 |
|
---|
1234 |
|
---|
1235 | CXX=$glibjava_CXX
|
---|
1236 | test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
|
---|
1237 |
|
---|
1238 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
1239 | echo "configure:1240: checking whether we are using GNU C++" >&5
|
---|
1240 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
1241 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1242 | else
|
---|
1243 | cat > conftest.C <<EOF
|
---|
1244 | #ifdef __GNUC__
|
---|
1245 | yes;
|
---|
1246 | #endif
|
---|
1247 | EOF
|
---|
1248 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
1249 | ac_cv_prog_gxx=yes
|
---|
1250 | else
|
---|
1251 | ac_cv_prog_gxx=no
|
---|
1252 | fi
|
---|
1253 | fi
|
---|
1254 |
|
---|
1255 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
1256 |
|
---|
1257 | if test $ac_cv_prog_gxx = yes; then
|
---|
1258 | GXX=yes
|
---|
1259 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
1260 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
1261 | CXXFLAGS=
|
---|
1262 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
1263 | echo "configure:1264: checking whether ${CXX-g++} accepts -g" >&5
|
---|
1264 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
1265 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1266 | else
|
---|
1267 | echo 'void f(){}' > conftest.cc
|
---|
1268 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
1269 | ac_cv_prog_cxx_g=yes
|
---|
1270 | else
|
---|
1271 | ac_cv_prog_cxx_g=no
|
---|
1272 | fi
|
---|
1273 | rm -f conftest*
|
---|
1274 |
|
---|
1275 | fi
|
---|
1276 |
|
---|
1277 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
1278 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
1279 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
1280 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
1281 | CXXFLAGS="-g -O2"
|
---|
1282 | else
|
---|
1283 | CXXFLAGS="-O2"
|
---|
1284 | fi
|
---|
1285 | else
|
---|
1286 | GXX=
|
---|
1287 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
---|
1288 | fi
|
---|
1289 |
|
---|
1290 |
|
---|
1291 | version=0.0.7
|
---|
1292 |
|
---|
1293 | PACKAGE=libjava
|
---|
1294 |
|
---|
1295 | VERSION=$version
|
---|
1296 |
|
---|
1297 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
1298 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
1299 | fi
|
---|
1300 | cat >> confdefs.h <<EOF
|
---|
1301 | #define PACKAGE "$PACKAGE"
|
---|
1302 | EOF
|
---|
1303 |
|
---|
1304 | cat >> confdefs.h <<EOF
|
---|
1305 | #define VERSION "$VERSION"
|
---|
1306 | EOF
|
---|
1307 |
|
---|
1308 |
|
---|
1309 |
|
---|
1310 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
1311 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
---|
1312 | echo "configure:1313: checking for working aclocal" >&5
|
---|
1313 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1314 | # an executable is not found, even if stderr is redirected.
|
---|
1315 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1316 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
---|
1317 | ACLOCAL=aclocal
|
---|
1318 | echo "$ac_t""found" 1>&6
|
---|
1319 | else
|
---|
1320 | ACLOCAL="$missing_dir/missing aclocal"
|
---|
1321 | echo "$ac_t""missing" 1>&6
|
---|
1322 | fi
|
---|
1323 |
|
---|
1324 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
1325 | echo "configure:1326: checking for working autoconf" >&5
|
---|
1326 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1327 | # an executable is not found, even if stderr is redirected.
|
---|
1328 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1329 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
1330 | AUTOCONF=autoconf
|
---|
1331 | echo "$ac_t""found" 1>&6
|
---|
1332 | else
|
---|
1333 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
1334 | echo "$ac_t""missing" 1>&6
|
---|
1335 | fi
|
---|
1336 |
|
---|
1337 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
---|
1338 | echo "configure:1339: checking for working automake" >&5
|
---|
1339 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1340 | # an executable is not found, even if stderr is redirected.
|
---|
1341 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1342 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
---|
1343 | AUTOMAKE=automake
|
---|
1344 | echo "$ac_t""found" 1>&6
|
---|
1345 | else
|
---|
1346 | AUTOMAKE="$missing_dir/missing automake"
|
---|
1347 | echo "$ac_t""missing" 1>&6
|
---|
1348 | fi
|
---|
1349 |
|
---|
1350 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
1351 | echo "configure:1352: checking for working autoheader" >&5
|
---|
1352 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1353 | # an executable is not found, even if stderr is redirected.
|
---|
1354 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1355 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
1356 | AUTOHEADER=autoheader
|
---|
1357 | echo "$ac_t""found" 1>&6
|
---|
1358 | else
|
---|
1359 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
1360 | echo "$ac_t""missing" 1>&6
|
---|
1361 | fi
|
---|
1362 |
|
---|
1363 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
1364 | echo "configure:1365: checking for working makeinfo" >&5
|
---|
1365 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1366 | # an executable is not found, even if stderr is redirected.
|
---|
1367 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1368 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
1369 | MAKEINFO=makeinfo
|
---|
1370 | echo "$ac_t""found" 1>&6
|
---|
1371 | else
|
---|
1372 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
1373 | echo "$ac_t""missing" 1>&6
|
---|
1374 | fi
|
---|
1375 |
|
---|
1376 |
|
---|
1377 |
|
---|
1378 | # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
|
---|
1379 | # run it explicitly here, it will be run implicitly before
|
---|
1380 | # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
|
---|
1381 | # be run before AC_CANONICAL_HOST.
|
---|
1382 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
1383 | echo "configure:1384: checking build system type" >&5
|
---|
1384 |
|
---|
1385 | build_alias=$build
|
---|
1386 | case "$build_alias" in
|
---|
1387 | NONE)
|
---|
1388 | case $nonopt in
|
---|
1389 | NONE) build_alias=$host_alias ;;
|
---|
1390 | *) build_alias=$nonopt ;;
|
---|
1391 | esac ;;
|
---|
1392 | esac
|
---|
1393 |
|
---|
1394 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
1395 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1396 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1397 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1398 | echo "$ac_t""$build" 1>&6
|
---|
1399 |
|
---|
1400 |
|
---|
1401 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
---|
1402 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
---|
1403 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1404 | echo "configure:1405: checking for $ac_word" >&5
|
---|
1405 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
---|
1406 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1407 | else
|
---|
1408 | if test -n "$AS"; then
|
---|
1409 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
---|
1410 | else
|
---|
1411 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1412 | ac_dummy="$PATH"
|
---|
1413 | for ac_dir in $ac_dummy; do
|
---|
1414 | test -z "$ac_dir" && ac_dir=.
|
---|
1415 | if test -f $ac_dir/$ac_word; then
|
---|
1416 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
---|
1417 | break
|
---|
1418 | fi
|
---|
1419 | done
|
---|
1420 | IFS="$ac_save_ifs"
|
---|
1421 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
|
---|
1422 | fi
|
---|
1423 | fi
|
---|
1424 | AS="$ac_cv_prog_AS"
|
---|
1425 | if test -n "$AS"; then
|
---|
1426 | echo "$ac_t""$AS" 1>&6
|
---|
1427 | else
|
---|
1428 | echo "$ac_t""no" 1>&6
|
---|
1429 | fi
|
---|
1430 |
|
---|
1431 |
|
---|
1432 |
|
---|
1433 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
---|
1434 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
---|
1435 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1436 | echo "configure:1437: checking for $ac_word" >&5
|
---|
1437 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
---|
1438 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1439 | else
|
---|
1440 | if test -n "$AR"; then
|
---|
1441 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
1442 | else
|
---|
1443 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1444 | ac_dummy="$PATH"
|
---|
1445 | for ac_dir in $ac_dummy; do
|
---|
1446 | test -z "$ac_dir" && ac_dir=.
|
---|
1447 | if test -f $ac_dir/$ac_word; then
|
---|
1448 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
---|
1449 | break
|
---|
1450 | fi
|
---|
1451 | done
|
---|
1452 | IFS="$ac_save_ifs"
|
---|
1453 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
---|
1454 | fi
|
---|
1455 | fi
|
---|
1456 | AR="$ac_cv_prog_AR"
|
---|
1457 | if test -n "$AR"; then
|
---|
1458 | echo "$ac_t""$AR" 1>&6
|
---|
1459 | else
|
---|
1460 | echo "$ac_t""no" 1>&6
|
---|
1461 | fi
|
---|
1462 |
|
---|
1463 |
|
---|
1464 |
|
---|
1465 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1466 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1467 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1468 | echo "configure:1469: checking for $ac_word" >&5
|
---|
1469 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1470 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1471 | else
|
---|
1472 | if test -n "$RANLIB"; then
|
---|
1473 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1474 | else
|
---|
1475 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1476 | ac_dummy="$PATH"
|
---|
1477 | for ac_dir in $ac_dummy; do
|
---|
1478 | test -z "$ac_dir" && ac_dir=.
|
---|
1479 | if test -f $ac_dir/$ac_word; then
|
---|
1480 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1481 | break
|
---|
1482 | fi
|
---|
1483 | done
|
---|
1484 | IFS="$ac_save_ifs"
|
---|
1485 | fi
|
---|
1486 | fi
|
---|
1487 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1488 | if test -n "$RANLIB"; then
|
---|
1489 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1490 | else
|
---|
1491 | echo "$ac_t""no" 1>&6
|
---|
1492 | fi
|
---|
1493 |
|
---|
1494 |
|
---|
1495 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1496 | if test -n "$ac_tool_prefix"; then
|
---|
1497 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1498 | set dummy ranlib; ac_word=$2
|
---|
1499 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1500 | echo "configure:1501: checking for $ac_word" >&5
|
---|
1501 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1502 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1503 | else
|
---|
1504 | if test -n "$RANLIB"; then
|
---|
1505 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1506 | else
|
---|
1507 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1508 | ac_dummy="$PATH"
|
---|
1509 | for ac_dir in $ac_dummy; do
|
---|
1510 | test -z "$ac_dir" && ac_dir=.
|
---|
1511 | if test -f $ac_dir/$ac_word; then
|
---|
1512 | ac_cv_prog_RANLIB="ranlib"
|
---|
1513 | break
|
---|
1514 | fi
|
---|
1515 | done
|
---|
1516 | IFS="$ac_save_ifs"
|
---|
1517 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1518 | fi
|
---|
1519 | fi
|
---|
1520 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1521 | if test -n "$RANLIB"; then
|
---|
1522 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1523 | else
|
---|
1524 | echo "$ac_t""no" 1>&6
|
---|
1525 | fi
|
---|
1526 |
|
---|
1527 | else
|
---|
1528 | RANLIB=":"
|
---|
1529 | fi
|
---|
1530 | fi
|
---|
1531 |
|
---|
1532 |
|
---|
1533 | # Find a good install program. We prefer a C program (faster),
|
---|
1534 | # so one script is as good as another. But avoid the broken or
|
---|
1535 | # incompatible versions:
|
---|
1536 | # SysV /etc/install, /usr/sbin/install
|
---|
1537 | # SunOS /usr/etc/install
|
---|
1538 | # IRIX /sbin/install
|
---|
1539 | # AIX /bin/install
|
---|
1540 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1541 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1542 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1543 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1544 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
1545 | echo "configure:1546: checking for a BSD compatible install" >&5
|
---|
1546 | if test -z "$INSTALL"; then
|
---|
1547 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
1548 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1549 | else
|
---|
1550 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
1551 | for ac_dir in $PATH; do
|
---|
1552 | # Account for people who put trailing slashes in PATH elements.
|
---|
1553 | case "$ac_dir/" in
|
---|
1554 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
1555 | *)
|
---|
1556 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1557 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1558 | # by default.
|
---|
1559 | for ac_prog in ginstall scoinst install; do
|
---|
1560 | if test -f $ac_dir/$ac_prog; then
|
---|
1561 | if test $ac_prog = install &&
|
---|
1562 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
1563 | # AIX install. It has an incompatible calling convention.
|
---|
1564 | :
|
---|
1565 | else
|
---|
1566 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
1567 | break 2
|
---|
1568 | fi
|
---|
1569 | fi
|
---|
1570 | done
|
---|
1571 | ;;
|
---|
1572 | esac
|
---|
1573 | done
|
---|
1574 | IFS="$ac_save_IFS"
|
---|
1575 |
|
---|
1576 | fi
|
---|
1577 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1578 | INSTALL="$ac_cv_path_install"
|
---|
1579 | else
|
---|
1580 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1581 | # path for INSTALL within a source directory, because that will
|
---|
1582 | # break other packages using the cache if that directory is
|
---|
1583 | # removed, or if the path is relative.
|
---|
1584 | INSTALL="$ac_install_sh"
|
---|
1585 | fi
|
---|
1586 | fi
|
---|
1587 | echo "$ac_t""$INSTALL" 1>&6
|
---|
1588 |
|
---|
1589 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1590 | # It thinks the first close brace ends the variable substitution.
|
---|
1591 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1592 |
|
---|
1593 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
1594 |
|
---|
1595 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1596 |
|
---|
1597 |
|
---|
1598 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
1599 | echo "configure:1600: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
1600 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
1601 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
1602 | enableval="$enable_maintainer_mode"
|
---|
1603 | USE_MAINTAINER_MODE=$enableval
|
---|
1604 | else
|
---|
1605 | USE_MAINTAINER_MODE=no
|
---|
1606 | fi
|
---|
1607 |
|
---|
1608 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
1609 |
|
---|
1610 |
|
---|
1611 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
1612 | MAINTAINER_MODE_TRUE=
|
---|
1613 | MAINTAINER_MODE_FALSE='#'
|
---|
1614 | else
|
---|
1615 | MAINTAINER_MODE_TRUE='#'
|
---|
1616 | MAINTAINER_MODE_FALSE=
|
---|
1617 | fi
|
---|
1618 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
1619 |
|
---|
1620 |
|
---|
1621 |
|
---|
1622 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
|
---|
1623 | # at least currently, we never actually build a program, so we never
|
---|
1624 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
|
---|
1625 | # fails, because we are probably configuring with a cross compiler
|
---|
1626 | # which cant create executables. So we include AC_EXEEXT to keep
|
---|
1627 | # automake happy, but we don't execute it, since we don't care about
|
---|
1628 | # the result.
|
---|
1629 | if false; then
|
---|
1630 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
|
---|
1631 | # to nothing, so nothing would remain between `then' and `fi' if it
|
---|
1632 | # were not for the `:' below.
|
---|
1633 | :
|
---|
1634 |
|
---|
1635 |
|
---|
1636 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
1637 | echo "configure:1638: checking for executable suffix" >&5
|
---|
1638 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
1639 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1640 | else
|
---|
1641 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
---|
1642 | ac_cv_exeext=.exe
|
---|
1643 | else
|
---|
1644 | rm -f conftest*
|
---|
1645 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
1646 | ac_cv_exeext=
|
---|
1647 | if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
1648 | for file in conftest.*; do
|
---|
1649 | case $file in
|
---|
1650 | *.c | *.o | *.obj) ;;
|
---|
1651 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
1652 | esac
|
---|
1653 | done
|
---|
1654 | else
|
---|
1655 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
1656 | fi
|
---|
1657 | rm -f conftest*
|
---|
1658 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
1659 | fi
|
---|
1660 | fi
|
---|
1661 |
|
---|
1662 | EXEEXT=""
|
---|
1663 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
1664 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
1665 | ac_exeext=$EXEEXT
|
---|
1666 |
|
---|
1667 | fi
|
---|
1668 |
|
---|
1669 | # configure.host sets the following important variables
|
---|
1670 | # libgcj_cflags - host specific C compiler flags
|
---|
1671 | # libgcj_cxxflags - host specific C++ compiler flags
|
---|
1672 | # libgcj_javaflags - host specific Java compiler flags
|
---|
1673 |
|
---|
1674 | libgcj_cflags=
|
---|
1675 | libgcj_cxxflags=
|
---|
1676 | libgcj_javaflags=
|
---|
1677 |
|
---|
1678 | . ${srcdir}/configure.host
|
---|
1679 |
|
---|
1680 | LIBGCJ_CFLAGS="${libgcj_cflags}"
|
---|
1681 | LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
|
---|
1682 | LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
|
---|
1683 |
|
---|
1684 |
|
---|
1685 |
|
---|
1686 |
|
---|
1687 |
|
---|
1688 |
|
---|
1689 |
|
---|
1690 |
|
---|
1691 |
|
---|
1692 | # Only use libltdl for native builds.
|
---|
1693 | if test -z "${with_cross_host}"; then
|
---|
1694 | case $enable_ltdl_convenience in
|
---|
1695 | no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
|
---|
1696 | "") enable_ltdl_convenience=yes
|
---|
1697 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
---|
1698 | esac
|
---|
1699 | LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
|
---|
1700 | INCLTDL='-I${top_srcdir}/''libltdl'
|
---|
1701 |
|
---|
1702 |
|
---|
1703 | DIRLTDL=libltdl
|
---|
1704 | cat >> confdefs.h <<\EOF
|
---|
1705 | #define USE_LTDL 1
|
---|
1706 | EOF
|
---|
1707 |
|
---|
1708 | # Sigh. Libtool's macro doesn't do the right thing.
|
---|
1709 | INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
|
---|
1710 | # FIXME: this is a hack.
|
---|
1711 | sub_auxdir="`cd $ac_aux_dir && pwd`"
|
---|
1712 | ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
|
---|
1713 | fi
|
---|
1714 |
|
---|
1715 |
|
---|
1716 |
|
---|
1717 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1718 | if test "${enable_shared+set}" = set; then
|
---|
1719 | enableval="$enable_shared"
|
---|
1720 | p=${PACKAGE-default}
|
---|
1721 | case $enableval in
|
---|
1722 | yes) enable_shared=yes ;;
|
---|
1723 | no) enable_shared=no ;;
|
---|
1724 | *)
|
---|
1725 | enable_shared=no
|
---|
1726 | # Look at the argument we got. We use all the common list separators.
|
---|
1727 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1728 | for pkg in $enableval; do
|
---|
1729 | if test "X$pkg" = "X$p"; then
|
---|
1730 | enable_shared=yes
|
---|
1731 | fi
|
---|
1732 | done
|
---|
1733 | IFS="$ac_save_ifs"
|
---|
1734 | ;;
|
---|
1735 | esac
|
---|
1736 | else
|
---|
1737 | enable_shared=yes
|
---|
1738 | fi
|
---|
1739 |
|
---|
1740 | # Check whether --enable-static or --disable-static was given.
|
---|
1741 | if test "${enable_static+set}" = set; then
|
---|
1742 | enableval="$enable_static"
|
---|
1743 | p=${PACKAGE-default}
|
---|
1744 | case $enableval in
|
---|
1745 | yes) enable_static=yes ;;
|
---|
1746 | no) enable_static=no ;;
|
---|
1747 | *)
|
---|
1748 | enable_static=no
|
---|
1749 | # Look at the argument we got. We use all the common list separators.
|
---|
1750 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1751 | for pkg in $enableval; do
|
---|
1752 | if test "X$pkg" = "X$p"; then
|
---|
1753 | enable_static=yes
|
---|
1754 | fi
|
---|
1755 | done
|
---|
1756 | IFS="$ac_save_ifs"
|
---|
1757 | ;;
|
---|
1758 | esac
|
---|
1759 | else
|
---|
1760 | enable_static=yes
|
---|
1761 | fi
|
---|
1762 |
|
---|
1763 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1764 | if test "${enable_fast_install+set}" = set; then
|
---|
1765 | enableval="$enable_fast_install"
|
---|
1766 | p=${PACKAGE-default}
|
---|
1767 | case $enableval in
|
---|
1768 | yes) enable_fast_install=yes ;;
|
---|
1769 | no) enable_fast_install=no ;;
|
---|
1770 | *)
|
---|
1771 | enable_fast_install=no
|
---|
1772 | # Look at the argument we got. We use all the common list separators.
|
---|
1773 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1774 | for pkg in $enableval; do
|
---|
1775 | if test "X$pkg" = "X$p"; then
|
---|
1776 | enable_fast_install=yes
|
---|
1777 | fi
|
---|
1778 | done
|
---|
1779 | IFS="$ac_save_ifs"
|
---|
1780 | ;;
|
---|
1781 | esac
|
---|
1782 | else
|
---|
1783 | enable_fast_install=yes
|
---|
1784 | fi
|
---|
1785 |
|
---|
1786 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
1787 | if test "${with_gnu_ld+set}" = set; then
|
---|
1788 | withval="$with_gnu_ld"
|
---|
1789 | test "$withval" = no || with_gnu_ld=yes
|
---|
1790 | else
|
---|
1791 | with_gnu_ld=no
|
---|
1792 | fi
|
---|
1793 |
|
---|
1794 | ac_prog=ld
|
---|
1795 | if test "$GCC" = yes; then
|
---|
1796 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
1797 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
1798 | echo "configure:1799: checking for ld used by GCC" >&5
|
---|
1799 | case $host in
|
---|
1800 | *-*-mingw*)
|
---|
1801 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
1802 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
1803 | *)
|
---|
1804 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
1805 | esac
|
---|
1806 | case $ac_prog in
|
---|
1807 | # Accept absolute paths.
|
---|
1808 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
1809 | re_direlt='/[^/][^/]*/\.\./'
|
---|
1810 | # Canonicalize the path of ld
|
---|
1811 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
1812 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
1813 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
1814 | done
|
---|
1815 | test -z "$LD" && LD="$ac_prog"
|
---|
1816 | ;;
|
---|
1817 | "")
|
---|
1818 | # If it fails, then pretend we aren't using GCC.
|
---|
1819 | ac_prog=ld
|
---|
1820 | ;;
|
---|
1821 | *)
|
---|
1822 | # If it is relative, then search for the first ld in PATH.
|
---|
1823 | with_gnu_ld=unknown
|
---|
1824 | ;;
|
---|
1825 | esac
|
---|
1826 | elif test "$with_gnu_ld" = yes; then
|
---|
1827 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
1828 | echo "configure:1829: checking for GNU ld" >&5
|
---|
1829 | else
|
---|
1830 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
1831 | echo "configure:1832: checking for non-GNU ld" >&5
|
---|
1832 | fi
|
---|
1833 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
---|
1834 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1835 | else
|
---|
1836 | if test -z "$LD"; then
|
---|
1837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1838 | for ac_dir in $PATH; do
|
---|
1839 | test -z "$ac_dir" && ac_dir=.
|
---|
1840 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
1841 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
---|
1842 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
1843 | # but apparently some GNU ld's only accept -v.
|
---|
1844 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
1845 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
1846 | test "$with_gnu_ld" != no && break
|
---|
1847 | else
|
---|
1848 | test "$with_gnu_ld" != yes && break
|
---|
1849 | fi
|
---|
1850 | fi
|
---|
1851 | done
|
---|
1852 | IFS="$ac_save_ifs"
|
---|
1853 | else
|
---|
1854 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1855 | fi
|
---|
1856 | fi
|
---|
1857 |
|
---|
1858 | LD="$lt_cv_path_LD"
|
---|
1859 | if test -n "$LD"; then
|
---|
1860 | echo "$ac_t""$LD" 1>&6
|
---|
1861 | else
|
---|
1862 | echo "$ac_t""no" 1>&6
|
---|
1863 | fi
|
---|
1864 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
1865 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
1866 | echo "configure:1867: checking if the linker ($LD) is GNU ld" >&5
|
---|
1867 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
1868 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1869 | else
|
---|
1870 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
1871 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
1872 | lt_cv_prog_gnu_ld=yes
|
---|
1873 | else
|
---|
1874 | lt_cv_prog_gnu_ld=no
|
---|
1875 | fi
|
---|
1876 | fi
|
---|
1877 |
|
---|
1878 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
---|
1879 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
1880 |
|
---|
1881 |
|
---|
1882 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
1883 | echo "configure:1884: checking for $LD option to reload object files" >&5
|
---|
1884 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
1885 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1886 | else
|
---|
1887 | lt_cv_ld_reload_flag='-r'
|
---|
1888 | fi
|
---|
1889 |
|
---|
1890 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
1891 | reload_flag=$lt_cv_ld_reload_flag
|
---|
1892 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
1893 |
|
---|
1894 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
1895 | echo "configure:1896: checking for BSD-compatible nm" >&5
|
---|
1896 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
---|
1897 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1898 | else
|
---|
1899 | if test -n "$NM"; then
|
---|
1900 | # Let the user override the test.
|
---|
1901 | lt_cv_path_NM="$NM"
|
---|
1902 | else
|
---|
1903 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1904 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
1905 | test -z "$ac_dir" && ac_dir=.
|
---|
1906 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
1907 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
1908 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
1909 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
1910 | # nm: unknown option "B" ignored
|
---|
1911 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
1912 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
1913 | lt_cv_path_NM="$tmp_nm -B"
|
---|
1914 | break
|
---|
1915 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
1916 | lt_cv_path_NM="$tmp_nm -p"
|
---|
1917 | break
|
---|
1918 | else
|
---|
1919 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
1920 | continue # so that we can try to find one that supports BSD flags
|
---|
1921 | fi
|
---|
1922 | fi
|
---|
1923 | done
|
---|
1924 | IFS="$ac_save_ifs"
|
---|
1925 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
---|
1926 | fi
|
---|
1927 | fi
|
---|
1928 |
|
---|
1929 | NM="$lt_cv_path_NM"
|
---|
1930 | echo "$ac_t""$NM" 1>&6
|
---|
1931 |
|
---|
1932 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1933 | echo "configure:1934: checking how to recognise dependant libraries" >&5
|
---|
1934 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1935 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1936 | else
|
---|
1937 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
1938 | lt_cv_file_magic_test_file=
|
---|
1939 | lt_cv_deplibs_check_method='unknown'
|
---|
1940 | # Need to set the preceding variable on all platforms that support
|
---|
1941 | # interlibrary dependencies.
|
---|
1942 | # 'none' -- dependencies not supported.
|
---|
1943 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1944 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1945 | # 'test_compile' -- check by making test program.
|
---|
1946 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1947 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1948 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1949 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1950 |
|
---|
1951 | case $host_os in
|
---|
1952 | aix*)
|
---|
1953 | lt_cv_deplibs_check_method=pass_all
|
---|
1954 | ;;
|
---|
1955 |
|
---|
1956 | beos*)
|
---|
1957 | lt_cv_deplibs_check_method=pass_all
|
---|
1958 | ;;
|
---|
1959 |
|
---|
1960 | bsdi4*)
|
---|
1961 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1962 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1963 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1964 | ;;
|
---|
1965 |
|
---|
1966 | cygwin* | mingw* |pw32*)
|
---|
1967 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1968 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
1969 | ;;
|
---|
1970 |
|
---|
1971 | darwin* | rhapsody*)
|
---|
1972 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
---|
1973 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1974 | case "$host_os" in
|
---|
1975 | rhapsody* | darwin1.012)
|
---|
1976 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
---|
1977 | ;;
|
---|
1978 | *) # Darwin 1.3 on
|
---|
1979 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
---|
1980 | ;;
|
---|
1981 | esac
|
---|
1982 | ;;
|
---|
1983 |
|
---|
1984 | freebsd* )
|
---|
1985 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1986 | case $host_cpu in
|
---|
1987 | i*86 )
|
---|
1988 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1989 | # Let's accept both of them until this is cleared up.
|
---|
1990 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1991 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1992 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1993 | ;;
|
---|
1994 | esac
|
---|
1995 | else
|
---|
1996 | lt_cv_deplibs_check_method=pass_all
|
---|
1997 | fi
|
---|
1998 | ;;
|
---|
1999 |
|
---|
2000 | gnu*)
|
---|
2001 | lt_cv_deplibs_check_method=pass_all
|
---|
2002 | ;;
|
---|
2003 |
|
---|
2004 | hpux10.20*|hpux11*)
|
---|
2005 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
---|
2006 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2007 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
2008 | ;;
|
---|
2009 |
|
---|
2010 | irix5* | irix6*)
|
---|
2011 | case $host_os in
|
---|
2012 | irix5*)
|
---|
2013 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
2014 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
2015 | ;;
|
---|
2016 | *)
|
---|
2017 | case $LD in
|
---|
2018 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
2019 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
2020 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
2021 | *) libmagic=never-match;;
|
---|
2022 | esac
|
---|
2023 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
2024 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
2025 | ;;
|
---|
2026 | esac
|
---|
2027 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
2028 | lt_cv_deplibs_check_method=pass_all
|
---|
2029 | ;;
|
---|
2030 |
|
---|
2031 | # This must be Linux ELF.
|
---|
2032 | linux-gnu*)
|
---|
2033 | case $host_cpu in
|
---|
2034 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
---|
2035 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
2036 | *)
|
---|
2037 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
2038 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
2039 | esac
|
---|
2040 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
2041 | ;;
|
---|
2042 |
|
---|
2043 | netbsd*)
|
---|
2044 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
2045 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
---|
2046 | else
|
---|
2047 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
---|
2048 | fi
|
---|
2049 | ;;
|
---|
2050 |
|
---|
2051 | newsos6)
|
---|
2052 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
2053 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2054 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
2055 | ;;
|
---|
2056 |
|
---|
2057 | osf3* | osf4* | osf5*)
|
---|
2058 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
2059 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
2060 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
2061 | lt_cv_deplibs_check_method=pass_all
|
---|
2062 | ;;
|
---|
2063 |
|
---|
2064 | sco3.2v5*)
|
---|
2065 | lt_cv_deplibs_check_method=pass_all
|
---|
2066 | ;;
|
---|
2067 |
|
---|
2068 | solaris*)
|
---|
2069 | lt_cv_deplibs_check_method=pass_all
|
---|
2070 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
2071 | ;;
|
---|
2072 |
|
---|
2073 | sysv5uw[78]* | sysv4*uw2*)
|
---|
2074 | lt_cv_deplibs_check_method=pass_all
|
---|
2075 | ;;
|
---|
2076 |
|
---|
2077 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
2078 | case $host_vendor in
|
---|
2079 | ncr)
|
---|
2080 | lt_cv_deplibs_check_method=pass_all
|
---|
2081 | ;;
|
---|
2082 | motorola)
|
---|
2083 | 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]'
|
---|
2084 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
2085 | ;;
|
---|
2086 | esac
|
---|
2087 | ;;
|
---|
2088 | esac
|
---|
2089 |
|
---|
2090 | fi
|
---|
2091 |
|
---|
2092 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
2093 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
2094 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
2095 |
|
---|
2096 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
2097 | echo "configure:2098: checking for object suffix" >&5
|
---|
2098 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
2099 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2100 | else
|
---|
2101 | rm -f conftest*
|
---|
2102 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
2103 | if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2104 | for ac_file in conftest.*; do
|
---|
2105 | case $ac_file in
|
---|
2106 | *.c) ;;
|
---|
2107 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
2108 | esac
|
---|
2109 | done
|
---|
2110 | else
|
---|
2111 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
2112 | fi
|
---|
2113 | rm -f conftest*
|
---|
2114 | fi
|
---|
2115 |
|
---|
2116 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
2117 | OBJEXT=$ac_cv_objext
|
---|
2118 | ac_objext=$ac_cv_objext
|
---|
2119 |
|
---|
2120 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
2121 |
|
---|
2122 | # Only perform the check for file, if the check method requires it
|
---|
2123 | case $deplibs_check_method in
|
---|
2124 | file_magic*)
|
---|
2125 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
2126 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
2127 | echo "configure:2128: checking for ${ac_tool_prefix}file" >&5
|
---|
2128 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
2129 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2130 | else
|
---|
2131 | case $MAGIC_CMD in
|
---|
2132 | /*)
|
---|
2133 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
2134 | ;;
|
---|
2135 | ?:/*)
|
---|
2136 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
2137 | ;;
|
---|
2138 | *)
|
---|
2139 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
2140 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2141 | ac_dummy="/usr/bin:$PATH"
|
---|
2142 | for ac_dir in $ac_dummy; do
|
---|
2143 | test -z "$ac_dir" && ac_dir=.
|
---|
2144 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
2145 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
2146 | if test -n "$file_magic_test_file"; then
|
---|
2147 | case $deplibs_check_method in
|
---|
2148 | "file_magic "*)
|
---|
2149 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
2150 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2151 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
2152 | egrep "$file_magic_regex" > /dev/null; then
|
---|
2153 | :
|
---|
2154 | else
|
---|
2155 | cat <<EOF 1>&2
|
---|
2156 |
|
---|
2157 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
2158 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
2159 | *** The result is that libtool may fail to recognize shared libraries
|
---|
2160 | *** as such. This will affect the creation of libtool libraries that
|
---|
2161 | *** depend on shared libraries, but programs linked with such libtool
|
---|
2162 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
2163 | *** may want to report the problem to your system manager and/or to
|
---|
2164 | *** bug-libtool@gnu.org
|
---|
2165 |
|
---|
2166 | EOF
|
---|
2167 | fi ;;
|
---|
2168 | esac
|
---|
2169 | fi
|
---|
2170 | break
|
---|
2171 | fi
|
---|
2172 | done
|
---|
2173 | IFS="$ac_save_ifs"
|
---|
2174 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
2175 | ;;
|
---|
2176 | esac
|
---|
2177 | fi
|
---|
2178 |
|
---|
2179 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2180 | if test -n "$MAGIC_CMD"; then
|
---|
2181 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
2182 | else
|
---|
2183 | echo "$ac_t""no" 1>&6
|
---|
2184 | fi
|
---|
2185 |
|
---|
2186 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
2187 | if test -n "$ac_tool_prefix"; then
|
---|
2188 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
2189 | echo "configure:2190: checking for file" >&5
|
---|
2190 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
2191 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2192 | else
|
---|
2193 | case $MAGIC_CMD in
|
---|
2194 | /*)
|
---|
2195 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
2196 | ;;
|
---|
2197 | ?:/*)
|
---|
2198 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
2199 | ;;
|
---|
2200 | *)
|
---|
2201 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
2202 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2203 | ac_dummy="/usr/bin:$PATH"
|
---|
2204 | for ac_dir in $ac_dummy; do
|
---|
2205 | test -z "$ac_dir" && ac_dir=.
|
---|
2206 | if test -f $ac_dir/file; then
|
---|
2207 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
2208 | if test -n "$file_magic_test_file"; then
|
---|
2209 | case $deplibs_check_method in
|
---|
2210 | "file_magic "*)
|
---|
2211 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
2212 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2213 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
2214 | egrep "$file_magic_regex" > /dev/null; then
|
---|
2215 | :
|
---|
2216 | else
|
---|
2217 | cat <<EOF 1>&2
|
---|
2218 |
|
---|
2219 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
2220 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
2221 | *** The result is that libtool may fail to recognize shared libraries
|
---|
2222 | *** as such. This will affect the creation of libtool libraries that
|
---|
2223 | *** depend on shared libraries, but programs linked with such libtool
|
---|
2224 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
2225 | *** may want to report the problem to your system manager and/or to
|
---|
2226 | *** bug-libtool@gnu.org
|
---|
2227 |
|
---|
2228 | EOF
|
---|
2229 | fi ;;
|
---|
2230 | esac
|
---|
2231 | fi
|
---|
2232 | break
|
---|
2233 | fi
|
---|
2234 | done
|
---|
2235 | IFS="$ac_save_ifs"
|
---|
2236 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
2237 | ;;
|
---|
2238 | esac
|
---|
2239 | fi
|
---|
2240 |
|
---|
2241 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2242 | if test -n "$MAGIC_CMD"; then
|
---|
2243 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
2244 | else
|
---|
2245 | echo "$ac_t""no" 1>&6
|
---|
2246 | fi
|
---|
2247 |
|
---|
2248 | else
|
---|
2249 | MAGIC_CMD=:
|
---|
2250 | fi
|
---|
2251 | fi
|
---|
2252 |
|
---|
2253 | fi
|
---|
2254 | ;;
|
---|
2255 | esac
|
---|
2256 |
|
---|
2257 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
2258 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
2259 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2260 | echo "configure:2261: checking for $ac_word" >&5
|
---|
2261 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2262 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2263 | else
|
---|
2264 | if test -n "$RANLIB"; then
|
---|
2265 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2266 | else
|
---|
2267 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2268 | ac_dummy="$PATH"
|
---|
2269 | for ac_dir in $ac_dummy; do
|
---|
2270 | test -z "$ac_dir" && ac_dir=.
|
---|
2271 | if test -f $ac_dir/$ac_word; then
|
---|
2272 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
2273 | break
|
---|
2274 | fi
|
---|
2275 | done
|
---|
2276 | IFS="$ac_save_ifs"
|
---|
2277 | fi
|
---|
2278 | fi
|
---|
2279 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2280 | if test -n "$RANLIB"; then
|
---|
2281 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2282 | else
|
---|
2283 | echo "$ac_t""no" 1>&6
|
---|
2284 | fi
|
---|
2285 |
|
---|
2286 |
|
---|
2287 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
2288 | if test -n "$ac_tool_prefix"; then
|
---|
2289 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2290 | set dummy ranlib; ac_word=$2
|
---|
2291 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2292 | echo "configure:2293: checking for $ac_word" >&5
|
---|
2293 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2294 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2295 | else
|
---|
2296 | if test -n "$RANLIB"; then
|
---|
2297 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2298 | else
|
---|
2299 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2300 | ac_dummy="$PATH"
|
---|
2301 | for ac_dir in $ac_dummy; do
|
---|
2302 | test -z "$ac_dir" && ac_dir=.
|
---|
2303 | if test -f $ac_dir/$ac_word; then
|
---|
2304 | ac_cv_prog_RANLIB="ranlib"
|
---|
2305 | break
|
---|
2306 | fi
|
---|
2307 | done
|
---|
2308 | IFS="$ac_save_ifs"
|
---|
2309 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2310 | fi
|
---|
2311 | fi
|
---|
2312 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2313 | if test -n "$RANLIB"; then
|
---|
2314 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2315 | else
|
---|
2316 | echo "$ac_t""no" 1>&6
|
---|
2317 | fi
|
---|
2318 |
|
---|
2319 | else
|
---|
2320 | RANLIB=":"
|
---|
2321 | fi
|
---|
2322 | fi
|
---|
2323 |
|
---|
2324 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2325 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2326 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2327 | echo "configure:2328: checking for $ac_word" >&5
|
---|
2328 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2329 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2330 | else
|
---|
2331 | if test -n "$STRIP"; then
|
---|
2332 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2333 | else
|
---|
2334 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2335 | ac_dummy="$PATH"
|
---|
2336 | for ac_dir in $ac_dummy; do
|
---|
2337 | test -z "$ac_dir" && ac_dir=.
|
---|
2338 | if test -f $ac_dir/$ac_word; then
|
---|
2339 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2340 | break
|
---|
2341 | fi
|
---|
2342 | done
|
---|
2343 | IFS="$ac_save_ifs"
|
---|
2344 | fi
|
---|
2345 | fi
|
---|
2346 | STRIP="$ac_cv_prog_STRIP"
|
---|
2347 | if test -n "$STRIP"; then
|
---|
2348 | echo "$ac_t""$STRIP" 1>&6
|
---|
2349 | else
|
---|
2350 | echo "$ac_t""no" 1>&6
|
---|
2351 | fi
|
---|
2352 |
|
---|
2353 |
|
---|
2354 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2355 | if test -n "$ac_tool_prefix"; then
|
---|
2356 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2357 | set dummy strip; ac_word=$2
|
---|
2358 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2359 | echo "configure:2360: checking for $ac_word" >&5
|
---|
2360 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2361 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2362 | else
|
---|
2363 | if test -n "$STRIP"; then
|
---|
2364 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2365 | else
|
---|
2366 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2367 | ac_dummy="$PATH"
|
---|
2368 | for ac_dir in $ac_dummy; do
|
---|
2369 | test -z "$ac_dir" && ac_dir=.
|
---|
2370 | if test -f $ac_dir/$ac_word; then
|
---|
2371 | ac_cv_prog_STRIP="strip"
|
---|
2372 | break
|
---|
2373 | fi
|
---|
2374 | done
|
---|
2375 | IFS="$ac_save_ifs"
|
---|
2376 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2377 | fi
|
---|
2378 | fi
|
---|
2379 | STRIP="$ac_cv_prog_STRIP"
|
---|
2380 | if test -n "$STRIP"; then
|
---|
2381 | echo "$ac_t""$STRIP" 1>&6
|
---|
2382 | else
|
---|
2383 | echo "$ac_t""no" 1>&6
|
---|
2384 | fi
|
---|
2385 |
|
---|
2386 | else
|
---|
2387 | STRIP=":"
|
---|
2388 | fi
|
---|
2389 | fi
|
---|
2390 |
|
---|
2391 |
|
---|
2392 | # Check for any special flags to pass to ltconfig.
|
---|
2393 | libtool_flags="--cache-file=$cache_file"
|
---|
2394 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2395 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2396 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2397 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2398 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2399 | libtool_flags="$libtool_flags --enable-dlopen"
|
---|
2400 |
|
---|
2401 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2402 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2403 | enableval="$enable_libtool_lock"
|
---|
2404 | :
|
---|
2405 | fi
|
---|
2406 |
|
---|
2407 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2408 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2409 |
|
---|
2410 | # Check whether --with-pic or --without-pic was given.
|
---|
2411 | if test "${with_pic+set}" = set; then
|
---|
2412 | withval="$with_pic"
|
---|
2413 | pic_mode="$withval"
|
---|
2414 | else
|
---|
2415 | pic_mode=default
|
---|
2416 | fi
|
---|
2417 |
|
---|
2418 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2419 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2420 |
|
---|
2421 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2422 | # libtool support.
|
---|
2423 | case $host in
|
---|
2424 | *-*-irix6*)
|
---|
2425 | # Find out which ABI we are using.
|
---|
2426 | echo '#line 2427 "configure"' > conftest.$ac_ext
|
---|
2427 | if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2428 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2429 | *32-bit*)
|
---|
2430 | LD="${LD-ld} -32"
|
---|
2431 | ;;
|
---|
2432 | *N32*)
|
---|
2433 | LD="${LD-ld} -n32"
|
---|
2434 | ;;
|
---|
2435 | *64-bit*)
|
---|
2436 | LD="${LD-ld} -64"
|
---|
2437 | ;;
|
---|
2438 | esac
|
---|
2439 | fi
|
---|
2440 | rm -rf conftest*
|
---|
2441 | ;;
|
---|
2442 |
|
---|
2443 | *-*-sco3.2v5*)
|
---|
2444 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2445 | SAVE_CFLAGS="$CFLAGS"
|
---|
2446 | CFLAGS="$CFLAGS -belf"
|
---|
2447 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2448 | echo "configure:2449: checking whether the C compiler needs -belf" >&5
|
---|
2449 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2450 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2451 | else
|
---|
2452 |
|
---|
2453 | ac_ext=c
|
---|
2454 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2455 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2456 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2457 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2458 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2459 |
|
---|
2460 | cat > conftest.$ac_ext <<EOF
|
---|
2461 | #line 2462 "configure"
|
---|
2462 | #include "confdefs.h"
|
---|
2463 |
|
---|
2464 | int main() {
|
---|
2465 |
|
---|
2466 | ; return 0; }
|
---|
2467 | EOF
|
---|
2468 | if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2469 | rm -rf conftest*
|
---|
2470 | lt_cv_cc_needs_belf=yes
|
---|
2471 | else
|
---|
2472 | echo "configure: failed program was:" >&5
|
---|
2473 | cat conftest.$ac_ext >&5
|
---|
2474 | rm -rf conftest*
|
---|
2475 | lt_cv_cc_needs_belf=no
|
---|
2476 | fi
|
---|
2477 | rm -f conftest*
|
---|
2478 | ac_ext=c
|
---|
2479 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2480 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2481 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2482 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2483 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2484 |
|
---|
2485 | fi
|
---|
2486 |
|
---|
2487 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2488 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2489 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2490 | CFLAGS="$SAVE_CFLAGS"
|
---|
2491 | fi
|
---|
2492 | ;;
|
---|
2493 |
|
---|
2494 |
|
---|
2495 | esac
|
---|
2496 |
|
---|
2497 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
|
---|
2498 | echo "configure:2499: checking how to run the C++ preprocessor" >&5
|
---|
2499 | if test -z "$CXXCPP"; then
|
---|
2500 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
|
---|
2501 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2502 | else
|
---|
2503 | ac_ext=C
|
---|
2504 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2505 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2506 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2507 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2508 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
2509 | CXXCPP="${CXX-g++} -E"
|
---|
2510 | cat > conftest.$ac_ext <<EOF
|
---|
2511 | #line 2512 "configure"
|
---|
2512 | #include "confdefs.h"
|
---|
2513 | #include <stdlib.h>
|
---|
2514 | EOF
|
---|
2515 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2516 | { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2517 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2518 | if test -z "$ac_err"; then
|
---|
2519 | :
|
---|
2520 | else
|
---|
2521 | echo "$ac_err" >&5
|
---|
2522 | echo "configure: failed program was:" >&5
|
---|
2523 | cat conftest.$ac_ext >&5
|
---|
2524 | rm -rf conftest*
|
---|
2525 | CXXCPP=/lib/cpp
|
---|
2526 | fi
|
---|
2527 | rm -f conftest*
|
---|
2528 | ac_cv_prog_CXXCPP="$CXXCPP"
|
---|
2529 | ac_ext=c
|
---|
2530 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2531 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2532 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2533 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2534 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2535 | fi
|
---|
2536 | fi
|
---|
2537 | CXXCPP="$ac_cv_prog_CXXCPP"
|
---|
2538 | echo "$ac_t""$CXXCPP" 1>&6
|
---|
2539 |
|
---|
2540 |
|
---|
2541 | # Save cache, so that ltconfig can load it
|
---|
2542 | cat > confcache <<\EOF
|
---|
2543 | # This file is a shell script that caches the results of configure
|
---|
2544 | # tests run on this system so they can be shared between configure
|
---|
2545 | # scripts and configure runs. It is not useful on other systems.
|
---|
2546 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2547 | #
|
---|
2548 | # By default, configure uses ./config.cache as the cache file,
|
---|
2549 | # creating it if it does not exist already. You can give configure
|
---|
2550 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2551 | # what configure does when it calls configure scripts in
|
---|
2552 | # subdirectories, so they share the cache.
|
---|
2553 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2554 | # config.status only pays attention to the cache file if you give it the
|
---|
2555 | # --recheck option to rerun configure.
|
---|
2556 | #
|
---|
2557 | EOF
|
---|
2558 | # The following way of writing the cache mishandles newlines in values,
|
---|
2559 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2560 | # So, don't put newlines in cache variables' values.
|
---|
2561 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2562 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2563 | (set) 2>&1 |
|
---|
2564 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2565 | *ac_space=\ *)
|
---|
2566 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2567 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2568 | sed -n \
|
---|
2569 | -e "s/'/'\\\\''/g" \
|
---|
2570 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2571 | ;;
|
---|
2572 | *)
|
---|
2573 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2574 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2575 | ;;
|
---|
2576 | esac >> confcache
|
---|
2577 | if cmp -s $cache_file confcache; then
|
---|
2578 | :
|
---|
2579 | else
|
---|
2580 | if test -w $cache_file; then
|
---|
2581 | echo "updating cache $cache_file"
|
---|
2582 | cat confcache > $cache_file
|
---|
2583 | else
|
---|
2584 | echo "not updating unwritable cache $cache_file"
|
---|
2585 | fi
|
---|
2586 | fi
|
---|
2587 | rm -f confcache
|
---|
2588 |
|
---|
2589 |
|
---|
2590 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2591 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2592 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2593 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2594 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2595 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2596 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2597 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2598 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2599 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2600 |
|
---|
2601 | # Reload cache, that may have been modified by ltconfig
|
---|
2602 | if test -r "$cache_file"; then
|
---|
2603 | echo "loading cache $cache_file"
|
---|
2604 | . $cache_file
|
---|
2605 | else
|
---|
2606 | echo "creating cache $cache_file"
|
---|
2607 | > $cache_file
|
---|
2608 | fi
|
---|
2609 |
|
---|
2610 |
|
---|
2611 | # This can be used to rebuild libtool when needed
|
---|
2612 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2613 |
|
---|
2614 | # Always use our own libtool.
|
---|
2615 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2616 |
|
---|
2617 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2618 | # clobbered by the next message.
|
---|
2619 | exec 5>>./config.log
|
---|
2620 |
|
---|
2621 |
|
---|
2622 |
|
---|
2623 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
|
---|
2624 | lt_save_CC="$CC"
|
---|
2625 | lt_save_CFLAGS="$CFLAGS"
|
---|
2626 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2627 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2628 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2629 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2630 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2631 | deplibs_check_method="$deplibs_check_method" \
|
---|
2632 | file_magic_cmd="$file_magic_cmd" \
|
---|
2633 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
|
---|
2634 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
|
---|
2635 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
|
---|
2636 | CC="$lt_save_CC"
|
---|
2637 | CFLAGS="$lt_save_CFLAGS"
|
---|
2638 |
|
---|
2639 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2640 | # clobbered by the next message.
|
---|
2641 | exec 5>>./config.log
|
---|
2642 |
|
---|
2643 |
|
---|
2644 |
|
---|
2645 |
|
---|
2646 |
|
---|
2647 |
|
---|
2648 | subdirs="$DIRLTDL"
|
---|
2649 |
|
---|
2650 |
|
---|
2651 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
|
---|
2652 | COMPPATH=.
|
---|
2653 | else
|
---|
2654 | COMPPATH=..
|
---|
2655 | fi
|
---|
2656 |
|
---|
2657 |
|
---|
2658 |
|
---|
2659 |
|
---|
2660 | if test -d $srcdir/testsuite; then
|
---|
2661 | TESTSUBDIR_TRUE=
|
---|
2662 | TESTSUBDIR_FALSE='#'
|
---|
2663 | else
|
---|
2664 | TESTSUBDIR_TRUE='#'
|
---|
2665 | TESTSUBDIR_FALSE=
|
---|
2666 | fi
|
---|
2667 |
|
---|
2668 | # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
|
---|
2669 | if test "${enable_getenv_properties+set}" = set; then
|
---|
2670 | enableval="$enable_getenv_properties"
|
---|
2671 | :
|
---|
2672 | fi
|
---|
2673 |
|
---|
2674 |
|
---|
2675 | if test -z "$enable_getenv_properties"; then
|
---|
2676 | enable_getenv_properties=${enable_getenv_properties_default-yes}
|
---|
2677 | fi
|
---|
2678 | if test "$enable_getenv_properties" = no; then
|
---|
2679 | cat >> confdefs.h <<\EOF
|
---|
2680 | #define DISABLE_GETENV_PROPERTIES 1
|
---|
2681 | EOF
|
---|
2682 |
|
---|
2683 | fi
|
---|
2684 |
|
---|
2685 | if test -z "$enable_main_args"; then
|
---|
2686 | enable_main_args=${enable_main_args_default-yes}
|
---|
2687 | fi
|
---|
2688 | if test "$enable_main_args" = no; then
|
---|
2689 | cat >> confdefs.h <<\EOF
|
---|
2690 | #define DISABLE_MAIN_ARGS 1
|
---|
2691 | EOF
|
---|
2692 |
|
---|
2693 | fi
|
---|
2694 |
|
---|
2695 |
|
---|
2696 | # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
|
---|
2697 | if test "${enable_hash_synchronization+set}" = set; then
|
---|
2698 | enableval="$enable_hash_synchronization"
|
---|
2699 | :
|
---|
2700 | fi
|
---|
2701 |
|
---|
2702 |
|
---|
2703 | if test -z "$enable_hash_synchronization"; then
|
---|
2704 | enable_hash_synchronization=$enable_hash_synchronization_default
|
---|
2705 | fi
|
---|
2706 |
|
---|
2707 | if test "${slow_pthread_self}" = "yes"; then
|
---|
2708 | cat >> confdefs.h <<\EOF
|
---|
2709 | #define SLOW_PTHREAD_SELF 1
|
---|
2710 | EOF
|
---|
2711 |
|
---|
2712 | fi
|
---|
2713 |
|
---|
2714 |
|
---|
2715 | LIBGCJDEBUG="false"
|
---|
2716 |
|
---|
2717 | # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
|
---|
2718 | if test "${enable_libgcj_debug+set}" = set; then
|
---|
2719 | enableval="$enable_libgcj_debug"
|
---|
2720 | if test "$enable_libgcj_debug" = yes; then
|
---|
2721 | cat >> confdefs.h <<\EOF
|
---|
2722 | #define DEBUG 1
|
---|
2723 | EOF
|
---|
2724 |
|
---|
2725 | LIBGCJDEBUG="true"
|
---|
2726 | fi
|
---|
2727 | fi
|
---|
2728 |
|
---|
2729 |
|
---|
2730 | # Check whether --enable-interpreter or --disable-interpreter was given.
|
---|
2731 | if test "${enable_interpreter+set}" = set; then
|
---|
2732 | enableval="$enable_interpreter"
|
---|
2733 | if test "$enable_interpreter" = yes; then
|
---|
2734 | # This can also be set in configure.host.
|
---|
2735 | libgcj_interpreter=yes
|
---|
2736 | elif test "$enable_interpreter" = no; then
|
---|
2737 | libgcj_interpreter=no
|
---|
2738 | fi
|
---|
2739 | fi
|
---|
2740 |
|
---|
2741 |
|
---|
2742 | if test "$libgcj_interpreter" = yes; then
|
---|
2743 | cat >> confdefs.h <<\EOF
|
---|
2744 | #define INTERPRETER 1
|
---|
2745 | EOF
|
---|
2746 |
|
---|
2747 | fi
|
---|
2748 |
|
---|
2749 | echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
|
---|
2750 | echo "configure:2751: checking for exception model to use" >&5
|
---|
2751 |
|
---|
2752 | ac_ext=C
|
---|
2753 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2754 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2755 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2756 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2757 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
2758 |
|
---|
2759 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
|
---|
2760 | if test "${enable_sjlj_exceptions+set}" = set; then
|
---|
2761 | enableval="$enable_sjlj_exceptions"
|
---|
2762 | :
|
---|
2763 | else
|
---|
2764 | cat > conftest.$ac_ext << EOF
|
---|
2765 | #line 2766 "configure"
|
---|
2766 | struct S { ~S(); };
|
---|
2767 | void bar();
|
---|
2768 | void foo()
|
---|
2769 | {
|
---|
2770 | S s;
|
---|
2771 | bar();
|
---|
2772 | }
|
---|
2773 | EOF
|
---|
2774 | old_CXXFLAGS="$CXXFLAGS"
|
---|
2775 | CXXFLAGS=-S
|
---|
2776 | if { (eval echo configure:2777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2777 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
|
---|
2778 | enable_sjlj_exceptions=yes
|
---|
2779 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
|
---|
2780 | enable_sjlj_exceptions=no
|
---|
2781 | fi
|
---|
2782 | fi
|
---|
2783 | CXXFLAGS="$old_CXXFLAGS"
|
---|
2784 | rm -f conftest*
|
---|
2785 | fi
|
---|
2786 |
|
---|
2787 | if test x$enable_sjlj_exceptions = xyes; then
|
---|
2788 | cat >> confdefs.h <<\EOF
|
---|
2789 | #define SJLJ_EXCEPTIONS 1
|
---|
2790 | EOF
|
---|
2791 |
|
---|
2792 | ac_exception_model_name=sjlj
|
---|
2793 | elif test x$enable_sjlj_exceptions = xno; then
|
---|
2794 | ac_exception_model_name="call frame"
|
---|
2795 | else
|
---|
2796 | { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
|
---|
2797 | fi
|
---|
2798 | ac_ext=c
|
---|
2799 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2800 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2801 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2802 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2803 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2804 |
|
---|
2805 | echo "$ac_t""$ac_exception_model_name" 1>&6
|
---|
2806 |
|
---|
2807 | # If we are non using SJLJ exceptions, and this host does not have support
|
---|
2808 | # for unwinding from a signal handler, enable checked dereferences and divides.
|
---|
2809 | if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
|
---|
2810 | CHECKREFSPEC=-fcheck-references
|
---|
2811 | DIVIDESPEC=-fuse-divide-subroutine
|
---|
2812 | EXCEPTIONSPEC=
|
---|
2813 | fi
|
---|
2814 |
|
---|
2815 | # Check whether --enable-java-net or --disable-java-net was given.
|
---|
2816 | if test "${enable_java_net+set}" = set; then
|
---|
2817 | enableval="$enable_java_net"
|
---|
2818 | :
|
---|
2819 | fi
|
---|
2820 |
|
---|
2821 |
|
---|
2822 | if test -z "$enable_java_net"; then
|
---|
2823 | enable_java_net=${enable_java_net_default-yes}
|
---|
2824 | fi
|
---|
2825 | if test "$enable_java_net" = no; then
|
---|
2826 | cat >> confdefs.h <<\EOF
|
---|
2827 | #define DISABLE_JAVA_NET 1
|
---|
2828 | EOF
|
---|
2829 |
|
---|
2830 | fi
|
---|
2831 |
|
---|
2832 | # Check whether --with-libffi or --without-libffi was given.
|
---|
2833 | if test "${with_libffi+set}" = set; then
|
---|
2834 | withval="$with_libffi"
|
---|
2835 | :
|
---|
2836 | else
|
---|
2837 | with_libffi=${with_libffi_default-yes}
|
---|
2838 | fi
|
---|
2839 |
|
---|
2840 |
|
---|
2841 | LIBFFI=
|
---|
2842 | LIBFFIINCS=
|
---|
2843 | if test "$with_libffi" != no; then
|
---|
2844 | cat >> confdefs.h <<\EOF
|
---|
2845 | #define USE_LIBFFI 1
|
---|
2846 | EOF
|
---|
2847 |
|
---|
2848 | LIBFFI=../libffi/libffi_convenience.la
|
---|
2849 | LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
|
---|
2850 | fi
|
---|
2851 |
|
---|
2852 |
|
---|
2853 |
|
---|
2854 | # Check whether --enable-jvmpi or --disable-jvmpi was given.
|
---|
2855 | if test "${enable_jvmpi+set}" = set; then
|
---|
2856 | enableval="$enable_jvmpi"
|
---|
2857 | :
|
---|
2858 | fi
|
---|
2859 |
|
---|
2860 |
|
---|
2861 | if test "$enable_jvmpi" != no; then
|
---|
2862 | cat >> confdefs.h <<\EOF
|
---|
2863 | #define ENABLE_JVMPI 1
|
---|
2864 | EOF
|
---|
2865 |
|
---|
2866 | fi
|
---|
2867 |
|
---|
2868 | TARGET_ECOS=${PROCESS-"no"}
|
---|
2869 | # Check whether --with-ecos or --without-ecos was given.
|
---|
2870 | if test "${with_ecos+set}" = set; then
|
---|
2871 | withval="$with_ecos"
|
---|
2872 | TARGET_ECOS="$with_ecos"
|
---|
2873 |
|
---|
2874 | fi
|
---|
2875 |
|
---|
2876 |
|
---|
2877 | PLATFORMOBJS=
|
---|
2878 | case "$TARGET_ECOS" in
|
---|
2879 | no) case "$host" in
|
---|
2880 | *mingw*)
|
---|
2881 | PLATFORM=Win32
|
---|
2882 | PLATFORMOBJS=win32.lo
|
---|
2883 | PLATFORMH=win32.h
|
---|
2884 | ;;
|
---|
2885 | *)
|
---|
2886 | PLATFORM=Posix
|
---|
2887 | PLATFORMOBJS=posix.lo
|
---|
2888 | PLATFORMH=posix.h
|
---|
2889 | ;;
|
---|
2890 | esac
|
---|
2891 | ;;
|
---|
2892 | *)
|
---|
2893 | PLATFORM=Ecos
|
---|
2894 | cat >> confdefs.h <<\EOF
|
---|
2895 | #define ECOS 1
|
---|
2896 | EOF
|
---|
2897 |
|
---|
2898 | PLATFORMOBJS=posix.lo
|
---|
2899 | PLATFORMH=posix.h
|
---|
2900 | ;;
|
---|
2901 | esac
|
---|
2902 |
|
---|
2903 |
|
---|
2904 |
|
---|
2905 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
2906 | echo "configure:2907: checking how to run the C preprocessor" >&5
|
---|
2907 | # On Suns, sometimes $CPP names a directory.
|
---|
2908 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2909 | CPP=
|
---|
2910 | fi
|
---|
2911 | if test -z "$CPP"; then
|
---|
2912 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
2913 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2914 | else
|
---|
2915 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
2916 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
2917 | CPP="${CC-cc} -E"
|
---|
2918 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2919 | # not just through cpp.
|
---|
2920 | cat > conftest.$ac_ext <<EOF
|
---|
2921 | #line 2922 "configure"
|
---|
2922 | #include "confdefs.h"
|
---|
2923 | #include <assert.h>
|
---|
2924 | Syntax Error
|
---|
2925 | EOF
|
---|
2926 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2927 | { (eval echo configure:2928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2928 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2929 | if test -z "$ac_err"; then
|
---|
2930 | :
|
---|
2931 | else
|
---|
2932 | echo "$ac_err" >&5
|
---|
2933 | echo "configure: failed program was:" >&5
|
---|
2934 | cat conftest.$ac_ext >&5
|
---|
2935 | rm -rf conftest*
|
---|
2936 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
2937 | cat > conftest.$ac_ext <<EOF
|
---|
2938 | #line 2939 "configure"
|
---|
2939 | #include "confdefs.h"
|
---|
2940 | #include <assert.h>
|
---|
2941 | Syntax Error
|
---|
2942 | EOF
|
---|
2943 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2944 | { (eval echo configure:2945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2945 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2946 | if test -z "$ac_err"; then
|
---|
2947 | :
|
---|
2948 | else
|
---|
2949 | echo "$ac_err" >&5
|
---|
2950 | echo "configure: failed program was:" >&5
|
---|
2951 | cat conftest.$ac_ext >&5
|
---|
2952 | rm -rf conftest*
|
---|
2953 | CPP="${CC-cc} -nologo -E"
|
---|
2954 | cat > conftest.$ac_ext <<EOF
|
---|
2955 | #line 2956 "configure"
|
---|
2956 | #include "confdefs.h"
|
---|
2957 | #include <assert.h>
|
---|
2958 | Syntax Error
|
---|
2959 | EOF
|
---|
2960 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2961 | { (eval echo configure:2962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2962 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2963 | if test -z "$ac_err"; then
|
---|
2964 | :
|
---|
2965 | else
|
---|
2966 | echo "$ac_err" >&5
|
---|
2967 | echo "configure: failed program was:" >&5
|
---|
2968 | cat conftest.$ac_ext >&5
|
---|
2969 | rm -rf conftest*
|
---|
2970 | CPP=/lib/cpp
|
---|
2971 | fi
|
---|
2972 | rm -f conftest*
|
---|
2973 | fi
|
---|
2974 | rm -f conftest*
|
---|
2975 | fi
|
---|
2976 | rm -f conftest*
|
---|
2977 | ac_cv_prog_CPP="$CPP"
|
---|
2978 | fi
|
---|
2979 | CPP="$ac_cv_prog_CPP"
|
---|
2980 | else
|
---|
2981 | ac_cv_prog_CPP="$CPP"
|
---|
2982 | fi
|
---|
2983 | echo "$ac_t""$CPP" 1>&6
|
---|
2984 |
|
---|
2985 | cat > conftest.$ac_ext <<EOF
|
---|
2986 | #line 2987 "configure"
|
---|
2987 | #include "confdefs.h"
|
---|
2988 | #include <stdint.h>
|
---|
2989 | EOF
|
---|
2990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2991 | egrep "uint32_t" >/dev/null 2>&1; then
|
---|
2992 | rm -rf conftest*
|
---|
2993 | cat >> confdefs.h <<\EOF
|
---|
2994 | #define HAVE_INT32_DEFINED 1
|
---|
2995 | EOF
|
---|
2996 |
|
---|
2997 | fi
|
---|
2998 | rm -f conftest*
|
---|
2999 |
|
---|
3000 | cat > conftest.$ac_ext <<EOF
|
---|
3001 | #line 3002 "configure"
|
---|
3002 | #include "confdefs.h"
|
---|
3003 | #include <inttypes.h>
|
---|
3004 | EOF
|
---|
3005 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3006 | egrep "uint32_t" >/dev/null 2>&1; then
|
---|
3007 | rm -rf conftest*
|
---|
3008 | cat >> confdefs.h <<\EOF
|
---|
3009 | #define HAVE_INT32_DEFINED 1
|
---|
3010 | EOF
|
---|
3011 |
|
---|
3012 | fi
|
---|
3013 | rm -f conftest*
|
---|
3014 |
|
---|
3015 | cat > conftest.$ac_ext <<EOF
|
---|
3016 | #line 3017 "configure"
|
---|
3017 | #include "confdefs.h"
|
---|
3018 | #include <sys/types.h>
|
---|
3019 | EOF
|
---|
3020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3021 | egrep "u_int32_t" >/dev/null 2>&1; then
|
---|
3022 | rm -rf conftest*
|
---|
3023 | cat >> confdefs.h <<\EOF
|
---|
3024 | #define HAVE_BSD_INT32_DEFINED 1
|
---|
3025 | EOF
|
---|
3026 |
|
---|
3027 | fi
|
---|
3028 | rm -f conftest*
|
---|
3029 |
|
---|
3030 | cat > conftest.$ac_ext <<EOF
|
---|
3031 | #line 3032 "configure"
|
---|
3032 | #include "confdefs.h"
|
---|
3033 | #include <sys/config.h>
|
---|
3034 | EOF
|
---|
3035 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3036 | egrep "u_int32_t" >/dev/null 2>&1; then
|
---|
3037 | rm -rf conftest*
|
---|
3038 | cat >> confdefs.h <<\EOF
|
---|
3039 | #define HAVE_BSD_INT32_DEFINED 1
|
---|
3040 | EOF
|
---|
3041 |
|
---|
3042 | fi
|
---|
3043 | rm -f conftest*
|
---|
3044 |
|
---|
3045 |
|
---|
3046 |
|
---|
3047 | cat > conftest.$ac_ext <<EOF
|
---|
3048 | #line 3049 "configure"
|
---|
3049 | #include "confdefs.h"
|
---|
3050 | #include <time.h>
|
---|
3051 | EOF
|
---|
3052 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3053 | egrep "mktime" >/dev/null 2>&1; then
|
---|
3054 | rm -rf conftest*
|
---|
3055 | cat >> confdefs.h <<\EOF
|
---|
3056 | #define HAVE_MKTIME 1
|
---|
3057 | EOF
|
---|
3058 |
|
---|
3059 | fi
|
---|
3060 | rm -f conftest*
|
---|
3061 |
|
---|
3062 | cat > conftest.$ac_ext <<EOF
|
---|
3063 | #line 3064 "configure"
|
---|
3064 | #include "confdefs.h"
|
---|
3065 | #include <time.h>
|
---|
3066 | EOF
|
---|
3067 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3068 | egrep "localtime" >/dev/null 2>&1; then
|
---|
3069 | rm -rf conftest*
|
---|
3070 | cat >> confdefs.h <<\EOF
|
---|
3071 | #define HAVE_LOCALTIME 1
|
---|
3072 | EOF
|
---|
3073 |
|
---|
3074 | fi
|
---|
3075 | rm -f conftest*
|
---|
3076 |
|
---|
3077 |
|
---|
3078 | test -d java || mkdir java
|
---|
3079 | test -d java/io || mkdir java/io
|
---|
3080 | test -d gnu || mkdir gnu
|
---|
3081 |
|
---|
3082 |
|
---|
3083 |
|
---|
3084 | test -d java/lang || mkdir java/lang
|
---|
3085 |
|
---|
3086 |
|
---|
3087 |
|
---|
3088 | case "${host}" in
|
---|
3089 | *mingw*)
|
---|
3090 | SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
|
---|
3091 | ;;
|
---|
3092 | *)
|
---|
3093 | SYSTEMSPEC=
|
---|
3094 | ;;
|
---|
3095 | esac
|
---|
3096 |
|
---|
3097 |
|
---|
3098 | LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
|
---|
3099 |
|
---|
3100 |
|
---|
3101 | # Check whether --with-system-zlib or --without-system-zlib was given.
|
---|
3102 | if test "${with_system_zlib+set}" = set; then
|
---|
3103 | withval="$with_system_zlib"
|
---|
3104 | :
|
---|
3105 | fi
|
---|
3106 |
|
---|
3107 | ZLIBSPEC=
|
---|
3108 |
|
---|
3109 | ZLIBTESTSPEC=
|
---|
3110 |
|
---|
3111 |
|
---|
3112 | libsubdir=.libs
|
---|
3113 |
|
---|
3114 | echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
|
---|
3115 | echo "configure:3116: checking for garbage collector to use" >&5
|
---|
3116 | # Check whether --enable-java-gc or --disable-java-gc was given.
|
---|
3117 | if test "${enable_java_gc+set}" = set; then
|
---|
3118 | enableval="$enable_java_gc"
|
---|
3119 |
|
---|
3120 | GC=$enableval
|
---|
3121 | else
|
---|
3122 | GC=boehm
|
---|
3123 | fi
|
---|
3124 |
|
---|
3125 | GCLIBS=
|
---|
3126 | GCINCS=
|
---|
3127 | GCDEPS=
|
---|
3128 | GCOBJS=
|
---|
3129 | GCSPEC=
|
---|
3130 | JC1GCSPEC=
|
---|
3131 | GCTESTSPEC=
|
---|
3132 | case "$GC" in
|
---|
3133 | boehm)
|
---|
3134 | echo "$ac_t""boehm" 1>&6
|
---|
3135 | GCLIBS=../boehm-gc/libgcjgc_convenience.la
|
---|
3136 | GCINCS='-I$(top_srcdir)/../boehm-gc/include'
|
---|
3137 | JC1GCSPEC='-fuse-boehm-gc'
|
---|
3138 | GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
|
---|
3139 |
|
---|
3140 | GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
|
---|
3141 | GCOBJS=boehm.lo
|
---|
3142 | GCHDR=boehm-gc.h
|
---|
3143 | cat >> confdefs.h <<\EOF
|
---|
3144 | #define HAVE_BOEHM_GC 1
|
---|
3145 | EOF
|
---|
3146 |
|
---|
3147 | ;;
|
---|
3148 | no)
|
---|
3149 | echo "$ac_t""none" 1>&6
|
---|
3150 | GCOBJS=nogc.lo
|
---|
3151 | GCHDR=no-gc.h
|
---|
3152 | ;;
|
---|
3153 | *)
|
---|
3154 | { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
|
---|
3155 | ;;
|
---|
3156 | esac
|
---|
3157 |
|
---|
3158 |
|
---|
3159 |
|
---|
3160 |
|
---|
3161 |
|
---|
3162 |
|
---|
3163 |
|
---|
3164 |
|
---|
3165 |
|
---|
3166 |
|
---|
3167 | echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
|
---|
3168 | echo "configure:3169: checking for thread model used by GCC" >&5
|
---|
3169 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
|
---|
3170 | echo "$ac_t""$THREADS" 1>&6
|
---|
3171 |
|
---|
3172 | case "$THREADS" in
|
---|
3173 | no | none | single)
|
---|
3174 | THREADS=none
|
---|
3175 | ;;
|
---|
3176 | posix | pthreads)
|
---|
3177 | THREADS=posix
|
---|
3178 | case "$host" in
|
---|
3179 | *-*-linux*)
|
---|
3180 | cat >> confdefs.h <<\EOF
|
---|
3181 | #define LINUX_THREADS 1
|
---|
3182 | EOF
|
---|
3183 |
|
---|
3184 | ;;
|
---|
3185 | esac
|
---|
3186 | ;;
|
---|
3187 | win32)
|
---|
3188 | ;;
|
---|
3189 | decosf1 | irix | mach | os2 | solaris | dce | vxworks)
|
---|
3190 | { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
|
---|
3191 | ;;
|
---|
3192 | *)
|
---|
3193 | { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
|
---|
3194 | ;;
|
---|
3195 | esac
|
---|
3196 |
|
---|
3197 | THREADLDFLAGS=
|
---|
3198 | THREADLIBS=
|
---|
3199 | THREADINCS=
|
---|
3200 | THREADDEPS=
|
---|
3201 | THREADOBJS=
|
---|
3202 | THREADH=
|
---|
3203 | THREADSPEC=
|
---|
3204 | case "$THREADS" in
|
---|
3205 | posix)
|
---|
3206 | case "$host" in
|
---|
3207 | *-*-cygwin*)
|
---|
3208 | # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
|
---|
3209 | ;;
|
---|
3210 |
|
---|
3211 | *-*-freebsd[1234]*)
|
---|
3212 |
|
---|
3213 | # Before FreeBSD 5, it didn't have -lpthread (or any library which
|
---|
3214 | # merely adds pthread_* functions) but it does have a -pthread switch
|
---|
3215 | # which is required at link-time to select -lc_r *instead* of -lc.
|
---|
3216 | THREADLDFLAGS=-pthread
|
---|
3217 | # Don't set THREADSPEC here as might be expected since -pthread is
|
---|
3218 | # not processed when found within a spec file, it must come from
|
---|
3219 | # the command line. For now, the user must provide the -pthread
|
---|
3220 | # switch to link code compiled with gcj. In future, consider adding
|
---|
3221 | # support for weak references to pthread_* functions ala gthr.h API.
|
---|
3222 | THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
|
---|
3223 | ;;
|
---|
3224 | *-*-freebsd*)
|
---|
3225 | # FreeBSD 5 implements a model much closer to other modern UNIX
|
---|
3226 | # which support threads. However, it still does not support
|
---|
3227 | # -lpthread.
|
---|
3228 | THREADLDFLAGS=-pthread
|
---|
3229 | THREADSPEC=-lc_r
|
---|
3230 | ;;
|
---|
3231 | *)
|
---|
3232 | THREADLIBS=-lpthread
|
---|
3233 | THREADSPEC=-lpthread
|
---|
3234 | ;;
|
---|
3235 | esac
|
---|
3236 | THREADOBJS=posix-threads.lo
|
---|
3237 | THREADH=posix-threads.h
|
---|
3238 | # MIT pthreads doesn't seem to have the mutexattr functions.
|
---|
3239 | # But for now we don't check for it. We just assume you aren't
|
---|
3240 | # using MIT pthreads.
|
---|
3241 | cat >> confdefs.h <<\EOF
|
---|
3242 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1
|
---|
3243 | EOF
|
---|
3244 |
|
---|
3245 |
|
---|
3246 | # If we're using the Boehm GC, then we happen to know that it
|
---|
3247 | # defines _REENTRANT, so we don't bother. Eww.
|
---|
3248 | if test "$GC" != boehm; then
|
---|
3249 | cat >> confdefs.h <<\EOF
|
---|
3250 | #define _REENTRANT 1
|
---|
3251 | EOF
|
---|
3252 |
|
---|
3253 | fi
|
---|
3254 | cat >> confdefs.h <<\EOF
|
---|
3255 | #define _POSIX_PTHREAD_SEMANTICS 1
|
---|
3256 | EOF
|
---|
3257 |
|
---|
3258 | ;;
|
---|
3259 |
|
---|
3260 | win32)
|
---|
3261 | THREADOBJS=win32-threads.lo
|
---|
3262 | THREADH=win32-threads.h
|
---|
3263 | ;;
|
---|
3264 |
|
---|
3265 | none)
|
---|
3266 | THREADOBJS=no-threads.lo
|
---|
3267 | THREADH=no-threads.h
|
---|
3268 | ;;
|
---|
3269 | esac
|
---|
3270 |
|
---|
3271 |
|
---|
3272 |
|
---|
3273 |
|
---|
3274 |
|
---|
3275 |
|
---|
3276 |
|
---|
3277 |
|
---|
3278 | if test -d sysdep; then true; else mkdir sysdep; fi
|
---|
3279 |
|
---|
3280 |
|
---|
3281 | HASH_SYNC_SPEC=
|
---|
3282 | # Hash synchronization is only useful with posix threads right now.
|
---|
3283 | if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
|
---|
3284 | HASH_SYNC_SPEC=-fhash-synchronization
|
---|
3285 | cat >> confdefs.h <<\EOF
|
---|
3286 | #define JV_HASH_SYNCHRONIZATION 1
|
---|
3287 | EOF
|
---|
3288 |
|
---|
3289 | fi
|
---|
3290 |
|
---|
3291 |
|
---|
3292 |
|
---|
3293 |
|
---|
3294 |
|
---|
3295 | if test "$GCC" = yes; then
|
---|
3296 | USING_GCC_TRUE=
|
---|
3297 | USING_GCC_FALSE='#'
|
---|
3298 | else
|
---|
3299 | USING_GCC_TRUE='#'
|
---|
3300 | USING_GCC_FALSE=
|
---|
3301 | fi
|
---|
3302 |
|
---|
3303 | CANADIAN=no
|
---|
3304 | NULL_TARGET=no
|
---|
3305 | NATIVE=yes
|
---|
3306 |
|
---|
3307 | # We're in the tree with gcc, and need to include some of its headers.
|
---|
3308 | GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
|
---|
3309 |
|
---|
3310 | # Figure out where generated headers like libgcj-config.h get installed.
|
---|
3311 | gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
|
---|
3312 | gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
|
---|
3313 | gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
|
---|
3314 | tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
|
---|
3315 |
|
---|
3316 |
|
---|
3317 |
|
---|
3318 | if test -n "${with_cross_host}"; then
|
---|
3319 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS
|
---|
3320 | # may not work correctly, because the compiler may not be able to
|
---|
3321 | # link executables.
|
---|
3322 |
|
---|
3323 | # We assume newlib. This lets us hard-code the functions we know
|
---|
3324 | # we'll have.
|
---|
3325 | cat >> confdefs.h <<\EOF
|
---|
3326 | #define HAVE_MEMMOVE 1
|
---|
3327 | EOF
|
---|
3328 |
|
---|
3329 | cat >> confdefs.h <<\EOF
|
---|
3330 | #define HAVE_MEMCPY 1
|
---|
3331 | EOF
|
---|
3332 |
|
---|
3333 | cat >> confdefs.h <<\EOF
|
---|
3334 | #define HAVE_STRERROR 1
|
---|
3335 | EOF
|
---|
3336 |
|
---|
3337 | cat >> confdefs.h <<\EOF
|
---|
3338 | #define HAVE_TIME 1
|
---|
3339 | EOF
|
---|
3340 |
|
---|
3341 | cat >> confdefs.h <<\EOF
|
---|
3342 | #define HAVE_GMTIME_R 1
|
---|
3343 | EOF
|
---|
3344 |
|
---|
3345 | cat >> confdefs.h <<\EOF
|
---|
3346 | #define HAVE_LOCALTIME_R 1
|
---|
3347 | EOF
|
---|
3348 |
|
---|
3349 | cat >> confdefs.h <<\EOF
|
---|
3350 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1
|
---|
3351 | EOF
|
---|
3352 |
|
---|
3353 | cat >> confdefs.h <<\EOF
|
---|
3354 | #define HAVE_ALLOCA 1
|
---|
3355 | EOF
|
---|
3356 |
|
---|
3357 |
|
---|
3358 | cat >> confdefs.h <<\EOF
|
---|
3359 | #define NO_GETUID 1
|
---|
3360 | EOF
|
---|
3361 |
|
---|
3362 |
|
---|
3363 | # If Canadian cross, then don't pick up tools from the build
|
---|
3364 | # directory.
|
---|
3365 | if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
|
---|
3366 | CANADIAN=yes
|
---|
3367 | GCC_UNWIND_INCLUDE=
|
---|
3368 | GCJ="${target_alias}-gcj"
|
---|
3369 | fi
|
---|
3370 | NATIVE=no
|
---|
3371 | else
|
---|
3372 | for ac_func in strerror ioctl select fstat open fsync sleep opendir
|
---|
3373 | do
|
---|
3374 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3375 | echo "configure:3376: checking for $ac_func" >&5
|
---|
3376 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3377 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3378 | else
|
---|
3379 | cat > conftest.$ac_ext <<EOF
|
---|
3380 | #line 3381 "configure"
|
---|
3381 | #include "confdefs.h"
|
---|
3382 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3383 | which can conflict with char $ac_func(); below. */
|
---|
3384 | #include <assert.h>
|
---|
3385 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3386 | /* We use char because int might match the return type of a gcc2
|
---|
3387 | builtin and then its argument prototype would still apply. */
|
---|
3388 | char $ac_func();
|
---|
3389 |
|
---|
3390 | int main() {
|
---|
3391 |
|
---|
3392 | /* The GNU C library defines this for functions which it implements
|
---|
3393 | to always fail with ENOSYS. Some functions are actually named
|
---|
3394 | something starting with __ and the normal name is an alias. */
|
---|
3395 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3396 | choke me
|
---|
3397 | #else
|
---|
3398 | $ac_func();
|
---|
3399 | #endif
|
---|
3400 |
|
---|
3401 | ; return 0; }
|
---|
3402 | EOF
|
---|
3403 | if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3404 | rm -rf conftest*
|
---|
3405 | eval "ac_cv_func_$ac_func=yes"
|
---|
3406 | else
|
---|
3407 | echo "configure: failed program was:" >&5
|
---|
3408 | cat conftest.$ac_ext >&5
|
---|
3409 | rm -rf conftest*
|
---|
3410 | eval "ac_cv_func_$ac_func=no"
|
---|
3411 | fi
|
---|
3412 | rm -f conftest*
|
---|
3413 | fi
|
---|
3414 |
|
---|
3415 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3416 | echo "$ac_t""yes" 1>&6
|
---|
3417 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3418 | cat >> confdefs.h <<EOF
|
---|
3419 | #define $ac_tr_func 1
|
---|
3420 | EOF
|
---|
3421 |
|
---|
3422 | else
|
---|
3423 | echo "$ac_t""no" 1>&6
|
---|
3424 | fi
|
---|
3425 | done
|
---|
3426 |
|
---|
3427 | for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
|
---|
3428 | do
|
---|
3429 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3430 | echo "configure:3431: checking for $ac_func" >&5
|
---|
3431 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3432 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3433 | else
|
---|
3434 | cat > conftest.$ac_ext <<EOF
|
---|
3435 | #line 3436 "configure"
|
---|
3436 | #include "confdefs.h"
|
---|
3437 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3438 | which can conflict with char $ac_func(); below. */
|
---|
3439 | #include <assert.h>
|
---|
3440 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3441 | /* We use char because int might match the return type of a gcc2
|
---|
3442 | builtin and then its argument prototype would still apply. */
|
---|
3443 | char $ac_func();
|
---|
3444 |
|
---|
3445 | int main() {
|
---|
3446 |
|
---|
3447 | /* The GNU C library defines this for functions which it implements
|
---|
3448 | to always fail with ENOSYS. Some functions are actually named
|
---|
3449 | something starting with __ and the normal name is an alias. */
|
---|
3450 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3451 | choke me
|
---|
3452 | #else
|
---|
3453 | $ac_func();
|
---|
3454 | #endif
|
---|
3455 |
|
---|
3456 | ; return 0; }
|
---|
3457 | EOF
|
---|
3458 | if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3459 | rm -rf conftest*
|
---|
3460 | eval "ac_cv_func_$ac_func=yes"
|
---|
3461 | else
|
---|
3462 | echo "configure: failed program was:" >&5
|
---|
3463 | cat conftest.$ac_ext >&5
|
---|
3464 | rm -rf conftest*
|
---|
3465 | eval "ac_cv_func_$ac_func=no"
|
---|
3466 | fi
|
---|
3467 | rm -f conftest*
|
---|
3468 | fi
|
---|
3469 |
|
---|
3470 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3471 | echo "$ac_t""yes" 1>&6
|
---|
3472 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3473 | cat >> confdefs.h <<EOF
|
---|
3474 | #define $ac_tr_func 1
|
---|
3475 | EOF
|
---|
3476 |
|
---|
3477 | else
|
---|
3478 | echo "$ac_t""no" 1>&6
|
---|
3479 | fi
|
---|
3480 | done
|
---|
3481 |
|
---|
3482 | for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
|
---|
3483 | do
|
---|
3484 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3485 | echo "configure:3486: checking for $ac_func" >&5
|
---|
3486 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3487 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3488 | else
|
---|
3489 | cat > conftest.$ac_ext <<EOF
|
---|
3490 | #line 3491 "configure"
|
---|
3491 | #include "confdefs.h"
|
---|
3492 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3493 | which can conflict with char $ac_func(); below. */
|
---|
3494 | #include <assert.h>
|
---|
3495 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3496 | /* We use char because int might match the return type of a gcc2
|
---|
3497 | builtin and then its argument prototype would still apply. */
|
---|
3498 | char $ac_func();
|
---|
3499 |
|
---|
3500 | int main() {
|
---|
3501 |
|
---|
3502 | /* The GNU C library defines this for functions which it implements
|
---|
3503 | to always fail with ENOSYS. Some functions are actually named
|
---|
3504 | something starting with __ and the normal name is an alias. */
|
---|
3505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3506 | choke me
|
---|
3507 | #else
|
---|
3508 | $ac_func();
|
---|
3509 | #endif
|
---|
3510 |
|
---|
3511 | ; return 0; }
|
---|
3512 | EOF
|
---|
3513 | if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3514 | rm -rf conftest*
|
---|
3515 | eval "ac_cv_func_$ac_func=yes"
|
---|
3516 | else
|
---|
3517 | echo "configure: failed program was:" >&5
|
---|
3518 | cat conftest.$ac_ext >&5
|
---|
3519 | rm -rf conftest*
|
---|
3520 | eval "ac_cv_func_$ac_func=no"
|
---|
3521 | fi
|
---|
3522 | rm -f conftest*
|
---|
3523 | fi
|
---|
3524 |
|
---|
3525 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3526 | echo "$ac_t""yes" 1>&6
|
---|
3527 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3528 | cat >> confdefs.h <<EOF
|
---|
3529 | #define $ac_tr_func 1
|
---|
3530 | EOF
|
---|
3531 |
|
---|
3532 | else
|
---|
3533 | echo "$ac_t""no" 1>&6
|
---|
3534 | fi
|
---|
3535 | done
|
---|
3536 |
|
---|
3537 | for ac_func in nl_langinfo setlocale
|
---|
3538 | do
|
---|
3539 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3540 | echo "configure:3541: checking for $ac_func" >&5
|
---|
3541 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3542 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3543 | else
|
---|
3544 | cat > conftest.$ac_ext <<EOF
|
---|
3545 | #line 3546 "configure"
|
---|
3546 | #include "confdefs.h"
|
---|
3547 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3548 | which can conflict with char $ac_func(); below. */
|
---|
3549 | #include <assert.h>
|
---|
3550 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3551 | /* We use char because int might match the return type of a gcc2
|
---|
3552 | builtin and then its argument prototype would still apply. */
|
---|
3553 | char $ac_func();
|
---|
3554 |
|
---|
3555 | int main() {
|
---|
3556 |
|
---|
3557 | /* The GNU C library defines this for functions which it implements
|
---|
3558 | to always fail with ENOSYS. Some functions are actually named
|
---|
3559 | something starting with __ and the normal name is an alias. */
|
---|
3560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3561 | choke me
|
---|
3562 | #else
|
---|
3563 | $ac_func();
|
---|
3564 | #endif
|
---|
3565 |
|
---|
3566 | ; return 0; }
|
---|
3567 | EOF
|
---|
3568 | if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3569 | rm -rf conftest*
|
---|
3570 | eval "ac_cv_func_$ac_func=yes"
|
---|
3571 | else
|
---|
3572 | echo "configure: failed program was:" >&5
|
---|
3573 | cat conftest.$ac_ext >&5
|
---|
3574 | rm -rf conftest*
|
---|
3575 | eval "ac_cv_func_$ac_func=no"
|
---|
3576 | fi
|
---|
3577 | rm -f conftest*
|
---|
3578 | fi
|
---|
3579 |
|
---|
3580 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3581 | echo "$ac_t""yes" 1>&6
|
---|
3582 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3583 | cat >> confdefs.h <<EOF
|
---|
3584 | #define $ac_tr_func 1
|
---|
3585 | EOF
|
---|
3586 |
|
---|
3587 | else
|
---|
3588 | echo "$ac_t""no" 1>&6
|
---|
3589 | fi
|
---|
3590 | done
|
---|
3591 |
|
---|
3592 | for ac_func in inet_aton inet_addr
|
---|
3593 | do
|
---|
3594 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3595 | echo "configure:3596: checking for $ac_func" >&5
|
---|
3596 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3597 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3598 | else
|
---|
3599 | cat > conftest.$ac_ext <<EOF
|
---|
3600 | #line 3601 "configure"
|
---|
3601 | #include "confdefs.h"
|
---|
3602 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3603 | which can conflict with char $ac_func(); below. */
|
---|
3604 | #include <assert.h>
|
---|
3605 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3606 | /* We use char because int might match the return type of a gcc2
|
---|
3607 | builtin and then its argument prototype would still apply. */
|
---|
3608 | char $ac_func();
|
---|
3609 |
|
---|
3610 | int main() {
|
---|
3611 |
|
---|
3612 | /* The GNU C library defines this for functions which it implements
|
---|
3613 | to always fail with ENOSYS. Some functions are actually named
|
---|
3614 | something starting with __ and the normal name is an alias. */
|
---|
3615 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3616 | choke me
|
---|
3617 | #else
|
---|
3618 | $ac_func();
|
---|
3619 | #endif
|
---|
3620 |
|
---|
3621 | ; return 0; }
|
---|
3622 | EOF
|
---|
3623 | if { (eval echo configure:3624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3624 | rm -rf conftest*
|
---|
3625 | eval "ac_cv_func_$ac_func=yes"
|
---|
3626 | else
|
---|
3627 | echo "configure: failed program was:" >&5
|
---|
3628 | cat conftest.$ac_ext >&5
|
---|
3629 | rm -rf conftest*
|
---|
3630 | eval "ac_cv_func_$ac_func=no"
|
---|
3631 | fi
|
---|
3632 | rm -f conftest*
|
---|
3633 | fi
|
---|
3634 |
|
---|
3635 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3636 | echo "$ac_t""yes" 1>&6
|
---|
3637 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3638 | cat >> confdefs.h <<EOF
|
---|
3639 | #define $ac_tr_func 1
|
---|
3640 | EOF
|
---|
3641 | break
|
---|
3642 | else
|
---|
3643 | echo "$ac_t""no" 1>&6
|
---|
3644 | fi
|
---|
3645 | done
|
---|
3646 |
|
---|
3647 | for ac_func in inet_pton uname inet_ntoa
|
---|
3648 | do
|
---|
3649 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3650 | echo "configure:3651: checking for $ac_func" >&5
|
---|
3651 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3652 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3653 | else
|
---|
3654 | cat > conftest.$ac_ext <<EOF
|
---|
3655 | #line 3656 "configure"
|
---|
3656 | #include "confdefs.h"
|
---|
3657 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3658 | which can conflict with char $ac_func(); below. */
|
---|
3659 | #include <assert.h>
|
---|
3660 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3661 | /* We use char because int might match the return type of a gcc2
|
---|
3662 | builtin and then its argument prototype would still apply. */
|
---|
3663 | char $ac_func();
|
---|
3664 |
|
---|
3665 | int main() {
|
---|
3666 |
|
---|
3667 | /* The GNU C library defines this for functions which it implements
|
---|
3668 | to always fail with ENOSYS. Some functions are actually named
|
---|
3669 | something starting with __ and the normal name is an alias. */
|
---|
3670 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3671 | choke me
|
---|
3672 | #else
|
---|
3673 | $ac_func();
|
---|
3674 | #endif
|
---|
3675 |
|
---|
3676 | ; return 0; }
|
---|
3677 | EOF
|
---|
3678 | if { (eval echo configure:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3679 | rm -rf conftest*
|
---|
3680 | eval "ac_cv_func_$ac_func=yes"
|
---|
3681 | else
|
---|
3682 | echo "configure: failed program was:" >&5
|
---|
3683 | cat conftest.$ac_ext >&5
|
---|
3684 | rm -rf conftest*
|
---|
3685 | eval "ac_cv_func_$ac_func=no"
|
---|
3686 | fi
|
---|
3687 | rm -f conftest*
|
---|
3688 | fi
|
---|
3689 |
|
---|
3690 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3691 | echo "$ac_t""yes" 1>&6
|
---|
3692 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3693 | cat >> confdefs.h <<EOF
|
---|
3694 | #define $ac_tr_func 1
|
---|
3695 | EOF
|
---|
3696 |
|
---|
3697 | else
|
---|
3698 | echo "$ac_t""no" 1>&6
|
---|
3699 | fi
|
---|
3700 | done
|
---|
3701 |
|
---|
3702 | for ac_func in fork execvp pipe sigaction
|
---|
3703 | do
|
---|
3704 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3705 | echo "configure:3706: checking for $ac_func" >&5
|
---|
3706 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3707 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3708 | else
|
---|
3709 | cat > conftest.$ac_ext <<EOF
|
---|
3710 | #line 3711 "configure"
|
---|
3711 | #include "confdefs.h"
|
---|
3712 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3713 | which can conflict with char $ac_func(); below. */
|
---|
3714 | #include <assert.h>
|
---|
3715 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3716 | /* We use char because int might match the return type of a gcc2
|
---|
3717 | builtin and then its argument prototype would still apply. */
|
---|
3718 | char $ac_func();
|
---|
3719 |
|
---|
3720 | int main() {
|
---|
3721 |
|
---|
3722 | /* The GNU C library defines this for functions which it implements
|
---|
3723 | to always fail with ENOSYS. Some functions are actually named
|
---|
3724 | something starting with __ and the normal name is an alias. */
|
---|
3725 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3726 | choke me
|
---|
3727 | #else
|
---|
3728 | $ac_func();
|
---|
3729 | #endif
|
---|
3730 |
|
---|
3731 | ; return 0; }
|
---|
3732 | EOF
|
---|
3733 | if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3734 | rm -rf conftest*
|
---|
3735 | eval "ac_cv_func_$ac_func=yes"
|
---|
3736 | else
|
---|
3737 | echo "configure: failed program was:" >&5
|
---|
3738 | cat conftest.$ac_ext >&5
|
---|
3739 | rm -rf conftest*
|
---|
3740 | eval "ac_cv_func_$ac_func=no"
|
---|
3741 | fi
|
---|
3742 | rm -f conftest*
|
---|
3743 | fi
|
---|
3744 |
|
---|
3745 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3746 | echo "$ac_t""yes" 1>&6
|
---|
3747 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3748 | cat >> confdefs.h <<EOF
|
---|
3749 | #define $ac_tr_func 1
|
---|
3750 | EOF
|
---|
3751 |
|
---|
3752 | else
|
---|
3753 | echo "$ac_t""no" 1>&6
|
---|
3754 | fi
|
---|
3755 | done
|
---|
3756 |
|
---|
3757 | for ac_hdr in execinfo.h unistd.h dlfcn.h
|
---|
3758 | do
|
---|
3759 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3760 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3761 | echo "configure:3762: checking for $ac_hdr" >&5
|
---|
3762 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3763 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3764 | else
|
---|
3765 | cat > conftest.$ac_ext <<EOF
|
---|
3766 | #line 3767 "configure"
|
---|
3767 | #include "confdefs.h"
|
---|
3768 | #include <$ac_hdr>
|
---|
3769 | EOF
|
---|
3770 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3771 | { (eval echo configure:3772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3772 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3773 | if test -z "$ac_err"; then
|
---|
3774 | rm -rf conftest*
|
---|
3775 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3776 | else
|
---|
3777 | echo "$ac_err" >&5
|
---|
3778 | echo "configure: failed program was:" >&5
|
---|
3779 | cat conftest.$ac_ext >&5
|
---|
3780 | rm -rf conftest*
|
---|
3781 | eval "ac_cv_header_$ac_safe=no"
|
---|
3782 | fi
|
---|
3783 | rm -f conftest*
|
---|
3784 | fi
|
---|
3785 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3786 | echo "$ac_t""yes" 1>&6
|
---|
3787 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3788 | cat >> confdefs.h <<EOF
|
---|
3789 | #define $ac_tr_hdr 1
|
---|
3790 | EOF
|
---|
3791 |
|
---|
3792 | else
|
---|
3793 | echo "$ac_t""no" 1>&6
|
---|
3794 | fi
|
---|
3795 | done
|
---|
3796 |
|
---|
3797 | echo $ac_n "checking for backtrace""... $ac_c" 1>&6
|
---|
3798 | echo "configure:3799: checking for backtrace" >&5
|
---|
3799 | if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
|
---|
3800 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3801 | else
|
---|
3802 | cat > conftest.$ac_ext <<EOF
|
---|
3803 | #line 3804 "configure"
|
---|
3804 | #include "confdefs.h"
|
---|
3805 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3806 | which can conflict with char backtrace(); below. */
|
---|
3807 | #include <assert.h>
|
---|
3808 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3809 | /* We use char because int might match the return type of a gcc2
|
---|
3810 | builtin and then its argument prototype would still apply. */
|
---|
3811 | char backtrace();
|
---|
3812 |
|
---|
3813 | int main() {
|
---|
3814 |
|
---|
3815 | /* The GNU C library defines this for functions which it implements
|
---|
3816 | to always fail with ENOSYS. Some functions are actually named
|
---|
3817 | something starting with __ and the normal name is an alias. */
|
---|
3818 | #if defined (__stub_backtrace) || defined (__stub___backtrace)
|
---|
3819 | choke me
|
---|
3820 | #else
|
---|
3821 | backtrace();
|
---|
3822 | #endif
|
---|
3823 |
|
---|
3824 | ; return 0; }
|
---|
3825 | EOF
|
---|
3826 | if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3827 | rm -rf conftest*
|
---|
3828 | eval "ac_cv_func_backtrace=yes"
|
---|
3829 | else
|
---|
3830 | echo "configure: failed program was:" >&5
|
---|
3831 | cat conftest.$ac_ext >&5
|
---|
3832 | rm -rf conftest*
|
---|
3833 | eval "ac_cv_func_backtrace=no"
|
---|
3834 | fi
|
---|
3835 | rm -f conftest*
|
---|
3836 | fi
|
---|
3837 |
|
---|
3838 | if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
|
---|
3839 | echo "$ac_t""yes" 1>&6
|
---|
3840 |
|
---|
3841 | case "$host" in
|
---|
3842 | ia64-*-linux*)
|
---|
3843 | # Has broken backtrace()
|
---|
3844 | ;;
|
---|
3845 | *)
|
---|
3846 | cat >> confdefs.h <<\EOF
|
---|
3847 | #define HAVE_BACKTRACE 1
|
---|
3848 | EOF
|
---|
3849 |
|
---|
3850 | ;;
|
---|
3851 | esac
|
---|
3852 |
|
---|
3853 | else
|
---|
3854 | echo "$ac_t""no" 1>&6
|
---|
3855 | fi
|
---|
3856 |
|
---|
3857 |
|
---|
3858 | echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
|
---|
3859 | echo "configure:3860: checking for dladdr in -ldl" >&5
|
---|
3860 | ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
|
---|
3861 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3862 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3863 | else
|
---|
3864 | ac_save_LIBS="$LIBS"
|
---|
3865 | LIBS="-ldl $LIBS"
|
---|
3866 | cat > conftest.$ac_ext <<EOF
|
---|
3867 | #line 3868 "configure"
|
---|
3868 | #include "confdefs.h"
|
---|
3869 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3870 | /* We use char because int might match the return type of a gcc2
|
---|
3871 | builtin and then its argument prototype would still apply. */
|
---|
3872 | char dladdr();
|
---|
3873 |
|
---|
3874 | int main() {
|
---|
3875 | dladdr()
|
---|
3876 | ; return 0; }
|
---|
3877 | EOF
|
---|
3878 | if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3879 | rm -rf conftest*
|
---|
3880 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3881 | else
|
---|
3882 | echo "configure: failed program was:" >&5
|
---|
3883 | cat conftest.$ac_ext >&5
|
---|
3884 | rm -rf conftest*
|
---|
3885 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3886 | fi
|
---|
3887 | rm -f conftest*
|
---|
3888 | LIBS="$ac_save_LIBS"
|
---|
3889 |
|
---|
3890 | fi
|
---|
3891 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3892 | echo "$ac_t""yes" 1>&6
|
---|
3893 |
|
---|
3894 | cat >> confdefs.h <<\EOF
|
---|
3895 | #define HAVE_DLADDR 1
|
---|
3896 | EOF
|
---|
3897 |
|
---|
3898 | else
|
---|
3899 | echo "$ac_t""no" 1>&6
|
---|
3900 | fi
|
---|
3901 |
|
---|
3902 | for ac_file in /proc/self/exe
|
---|
3903 | do
|
---|
3904 |
|
---|
3905 | ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
|
---|
3906 | echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
|
---|
3907 | echo "configure:3908: checking for $ac_file" >&5
|
---|
3908 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
|
---|
3909 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3910 | else
|
---|
3911 | if test "$cross_compiling" = yes; then
|
---|
3912 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
|
---|
3913 | else
|
---|
3914 | if test -r $ac_file; then
|
---|
3915 | eval "ac_cv_file_$ac_safe=yes"
|
---|
3916 | else
|
---|
3917 | eval "ac_cv_file_$ac_safe=no"
|
---|
3918 | fi
|
---|
3919 | fi
|
---|
3920 | fi
|
---|
3921 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
|
---|
3922 | echo "$ac_t""yes" 1>&6
|
---|
3923 | ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3924 | cat >> confdefs.h <<EOF
|
---|
3925 | #define $ac_tr_file 1
|
---|
3926 | EOF
|
---|
3927 |
|
---|
3928 | cat >> confdefs.h <<\EOF
|
---|
3929 | #define HAVE_PROC_SELF_EXE 1
|
---|
3930 | EOF
|
---|
3931 |
|
---|
3932 | else
|
---|
3933 | echo "$ac_t""no" 1>&6
|
---|
3934 |
|
---|
3935 | fi
|
---|
3936 | done
|
---|
3937 |
|
---|
3938 |
|
---|
3939 |
|
---|
3940 |
|
---|
3941 | am_cv_lib_iconv_ldpath=
|
---|
3942 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
|
---|
3943 | if test "${with_libiconv_prefix+set}" = set; then
|
---|
3944 | withval="$with_libiconv_prefix"
|
---|
3945 |
|
---|
3946 | for dir in `echo "$withval" | tr : ' '`; do
|
---|
3947 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
---|
3948 | if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
|
---|
3949 | done
|
---|
3950 |
|
---|
3951 | fi
|
---|
3952 |
|
---|
3953 |
|
---|
3954 | echo $ac_n "checking for iconv""... $ac_c" 1>&6
|
---|
3955 | echo "configure:3956: checking for iconv" >&5
|
---|
3956 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
|
---|
3957 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3958 | else
|
---|
3959 |
|
---|
3960 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
---|
3961 | am_cv_lib_iconv=no
|
---|
3962 | cat > conftest.$ac_ext <<EOF
|
---|
3963 | #line 3964 "configure"
|
---|
3964 | #include "confdefs.h"
|
---|
3965 | #include <stdlib.h>
|
---|
3966 | #include <iconv.h>
|
---|
3967 | int main() {
|
---|
3968 | iconv_t cd = iconv_open("","");
|
---|
3969 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
3970 | iconv_close(cd);
|
---|
3971 | ; return 0; }
|
---|
3972 | EOF
|
---|
3973 | if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3974 | rm -rf conftest*
|
---|
3975 | am_cv_func_iconv=yes
|
---|
3976 | else
|
---|
3977 | echo "configure: failed program was:" >&5
|
---|
3978 | cat conftest.$ac_ext >&5
|
---|
3979 | fi
|
---|
3980 | rm -f conftest*
|
---|
3981 | if test "$am_cv_func_iconv" != yes; then
|
---|
3982 | am_save_LIBS="$LIBS"
|
---|
3983 | LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
|
---|
3984 | cat > conftest.$ac_ext <<EOF
|
---|
3985 | #line 3986 "configure"
|
---|
3986 | #include "confdefs.h"
|
---|
3987 | #include <stdlib.h>
|
---|
3988 | #include <iconv.h>
|
---|
3989 | int main() {
|
---|
3990 | iconv_t cd = iconv_open("","");
|
---|
3991 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
3992 | iconv_close(cd);
|
---|
3993 | ; return 0; }
|
---|
3994 | EOF
|
---|
3995 | if { (eval echo configure:3996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3996 | rm -rf conftest*
|
---|
3997 | am_cv_lib_iconv=yes
|
---|
3998 | am_cv_func_iconv=yes
|
---|
3999 | else
|
---|
4000 | echo "configure: failed program was:" >&5
|
---|
4001 | cat conftest.$ac_ext >&5
|
---|
4002 | fi
|
---|
4003 | rm -f conftest*
|
---|
4004 | LIBS="$am_save_LIBS"
|
---|
4005 | fi
|
---|
4006 |
|
---|
4007 | fi
|
---|
4008 |
|
---|
4009 | echo "$ac_t""$am_cv_func_iconv" 1>&6
|
---|
4010 | if test "$am_cv_func_iconv" = yes; then
|
---|
4011 | cat >> confdefs.h <<\EOF
|
---|
4012 | #define HAVE_ICONV 1
|
---|
4013 | EOF
|
---|
4014 |
|
---|
4015 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
|
---|
4016 | echo "configure:4017: checking for iconv declaration" >&5
|
---|
4017 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
|
---|
4018 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4019 | else
|
---|
4020 |
|
---|
4021 | cat > conftest.$ac_ext <<EOF
|
---|
4022 | #line 4023 "configure"
|
---|
4023 | #include "confdefs.h"
|
---|
4024 |
|
---|
4025 | #include <stdlib.h>
|
---|
4026 | #include <iconv.h>
|
---|
4027 | extern
|
---|
4028 | #ifdef __cplusplus
|
---|
4029 | "C"
|
---|
4030 | #endif
|
---|
4031 | #if defined(__STDC__) || defined(__cplusplus)
|
---|
4032 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
---|
4033 | #else
|
---|
4034 | size_t iconv();
|
---|
4035 | #endif
|
---|
4036 |
|
---|
4037 | int main() {
|
---|
4038 |
|
---|
4039 | ; return 0; }
|
---|
4040 | EOF
|
---|
4041 | if { (eval echo configure:4042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4042 | rm -rf conftest*
|
---|
4043 | am_cv_proto_iconv_arg1=""
|
---|
4044 | else
|
---|
4045 | echo "configure: failed program was:" >&5
|
---|
4046 | cat conftest.$ac_ext >&5
|
---|
4047 | rm -rf conftest*
|
---|
4048 | am_cv_proto_iconv_arg1="const"
|
---|
4049 | fi
|
---|
4050 | rm -f conftest*
|
---|
4051 | 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);"
|
---|
4052 | fi
|
---|
4053 |
|
---|
4054 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
---|
4055 | echo "$ac_t""${ac_t:-
|
---|
4056 | }$am_cv_proto_iconv" 1>&6
|
---|
4057 | cat >> confdefs.h <<EOF
|
---|
4058 | #define ICONV_CONST $am_cv_proto_iconv_arg1
|
---|
4059 | EOF
|
---|
4060 |
|
---|
4061 | fi
|
---|
4062 | LIBICONV=
|
---|
4063 | if test "$am_cv_lib_iconv" = yes; then
|
---|
4064 | LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
|
---|
4065 | fi
|
---|
4066 |
|
---|
4067 |
|
---|
4068 | if test $ac_cv_header_locale_h = yes; then
|
---|
4069 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
4070 | echo "configure:4071: checking for LC_MESSAGES" >&5
|
---|
4071 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
4072 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4073 | else
|
---|
4074 | cat > conftest.$ac_ext <<EOF
|
---|
4075 | #line 4076 "configure"
|
---|
4076 | #include "confdefs.h"
|
---|
4077 | #include <locale.h>
|
---|
4078 | int main() {
|
---|
4079 | return LC_MESSAGES
|
---|
4080 | ; return 0; }
|
---|
4081 | EOF
|
---|
4082 | if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4083 | rm -rf conftest*
|
---|
4084 | am_cv_val_LC_MESSAGES=yes
|
---|
4085 | else
|
---|
4086 | echo "configure: failed program was:" >&5
|
---|
4087 | cat conftest.$ac_ext >&5
|
---|
4088 | rm -rf conftest*
|
---|
4089 | am_cv_val_LC_MESSAGES=no
|
---|
4090 | fi
|
---|
4091 | rm -f conftest*
|
---|
4092 | fi
|
---|
4093 |
|
---|
4094 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
4095 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
4096 | cat >> confdefs.h <<\EOF
|
---|
4097 | #define HAVE_LC_MESSAGES 1
|
---|
4098 | EOF
|
---|
4099 |
|
---|
4100 | fi
|
---|
4101 | fi
|
---|
4102 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
---|
4103 | echo "configure:4104: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
4104 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
---|
4105 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4106 | else
|
---|
4107 | cat > conftest.$ac_ext <<EOF
|
---|
4108 | #line 4109 "configure"
|
---|
4109 | #include "confdefs.h"
|
---|
4110 | #include <sys/types.h>
|
---|
4111 | #include <time.h>
|
---|
4112 | int main() {
|
---|
4113 | struct tm *tp; tp->tm_sec;
|
---|
4114 | ; return 0; }
|
---|
4115 | EOF
|
---|
4116 | if { (eval echo configure:4117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4117 | rm -rf conftest*
|
---|
4118 | ac_cv_struct_tm=time.h
|
---|
4119 | else
|
---|
4120 | echo "configure: failed program was:" >&5
|
---|
4121 | cat conftest.$ac_ext >&5
|
---|
4122 | rm -rf conftest*
|
---|
4123 | ac_cv_struct_tm=sys/time.h
|
---|
4124 | fi
|
---|
4125 | rm -f conftest*
|
---|
4126 | fi
|
---|
4127 |
|
---|
4128 | echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
---|
4129 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
4130 | cat >> confdefs.h <<\EOF
|
---|
4131 | #define TM_IN_SYS_TIME 1
|
---|
4132 | EOF
|
---|
4133 |
|
---|
4134 | fi
|
---|
4135 |
|
---|
4136 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
---|
4137 | echo "configure:4138: checking for tm_zone in struct tm" >&5
|
---|
4138 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
|
---|
4139 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4140 | else
|
---|
4141 | cat > conftest.$ac_ext <<EOF
|
---|
4142 | #line 4143 "configure"
|
---|
4143 | #include "confdefs.h"
|
---|
4144 | #include <sys/types.h>
|
---|
4145 | #include <$ac_cv_struct_tm>
|
---|
4146 | int main() {
|
---|
4147 | struct tm tm; tm.tm_zone;
|
---|
4148 | ; return 0; }
|
---|
4149 | EOF
|
---|
4150 | if { (eval echo configure:4151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4151 | rm -rf conftest*
|
---|
4152 | ac_cv_struct_tm_zone=yes
|
---|
4153 | else
|
---|
4154 | echo "configure: failed program was:" >&5
|
---|
4155 | cat conftest.$ac_ext >&5
|
---|
4156 | rm -rf conftest*
|
---|
4157 | ac_cv_struct_tm_zone=no
|
---|
4158 | fi
|
---|
4159 | rm -f conftest*
|
---|
4160 | fi
|
---|
4161 |
|
---|
4162 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
---|
4163 | if test "$ac_cv_struct_tm_zone" = yes; then
|
---|
4164 | cat >> confdefs.h <<\EOF
|
---|
4165 | #define HAVE_TM_ZONE 1
|
---|
4166 | EOF
|
---|
4167 |
|
---|
4168 | else
|
---|
4169 | echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
---|
4170 | echo "configure:4171: checking for tzname" >&5
|
---|
4171 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
|
---|
4172 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4173 | else
|
---|
4174 | cat > conftest.$ac_ext <<EOF
|
---|
4175 | #line 4176 "configure"
|
---|
4176 | #include "confdefs.h"
|
---|
4177 | #include <time.h>
|
---|
4178 | #ifndef tzname /* For SGI. */
|
---|
4179 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
---|
4180 | #endif
|
---|
4181 | int main() {
|
---|
4182 | atoi(*tzname);
|
---|
4183 | ; return 0; }
|
---|
4184 | EOF
|
---|
4185 | if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4186 | rm -rf conftest*
|
---|
4187 | ac_cv_var_tzname=yes
|
---|
4188 | else
|
---|
4189 | echo "configure: failed program was:" >&5
|
---|
4190 | cat conftest.$ac_ext >&5
|
---|
4191 | rm -rf conftest*
|
---|
4192 | ac_cv_var_tzname=no
|
---|
4193 | fi
|
---|
4194 | rm -f conftest*
|
---|
4195 | fi
|
---|
4196 |
|
---|
4197 | echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
---|
4198 | if test $ac_cv_var_tzname = yes; then
|
---|
4199 | cat >> confdefs.h <<\EOF
|
---|
4200 | #define HAVE_TZNAME 1
|
---|
4201 | EOF
|
---|
4202 |
|
---|
4203 | fi
|
---|
4204 | fi
|
---|
4205 |
|
---|
4206 |
|
---|
4207 | for ac_func in gethostbyname_r
|
---|
4208 | do
|
---|
4209 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4210 | echo "configure:4211: checking for $ac_func" >&5
|
---|
4211 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4212 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4213 | else
|
---|
4214 | cat > conftest.$ac_ext <<EOF
|
---|
4215 | #line 4216 "configure"
|
---|
4216 | #include "confdefs.h"
|
---|
4217 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4218 | which can conflict with char $ac_func(); below. */
|
---|
4219 | #include <assert.h>
|
---|
4220 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4221 | /* We use char because int might match the return type of a gcc2
|
---|
4222 | builtin and then its argument prototype would still apply. */
|
---|
4223 | char $ac_func();
|
---|
4224 |
|
---|
4225 | int main() {
|
---|
4226 |
|
---|
4227 | /* The GNU C library defines this for functions which it implements
|
---|
4228 | to always fail with ENOSYS. Some functions are actually named
|
---|
4229 | something starting with __ and the normal name is an alias. */
|
---|
4230 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4231 | choke me
|
---|
4232 | #else
|
---|
4233 | $ac_func();
|
---|
4234 | #endif
|
---|
4235 |
|
---|
4236 | ; return 0; }
|
---|
4237 | EOF
|
---|
4238 | if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4239 | rm -rf conftest*
|
---|
4240 | eval "ac_cv_func_$ac_func=yes"
|
---|
4241 | else
|
---|
4242 | echo "configure: failed program was:" >&5
|
---|
4243 | cat conftest.$ac_ext >&5
|
---|
4244 | rm -rf conftest*
|
---|
4245 | eval "ac_cv_func_$ac_func=no"
|
---|
4246 | fi
|
---|
4247 | rm -f conftest*
|
---|
4248 | fi
|
---|
4249 |
|
---|
4250 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4251 | echo "$ac_t""yes" 1>&6
|
---|
4252 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4253 | cat >> confdefs.h <<EOF
|
---|
4254 | #define $ac_tr_func 1
|
---|
4255 | EOF
|
---|
4256 |
|
---|
4257 | cat >> confdefs.h <<\EOF
|
---|
4258 | #define HAVE_GETHOSTBYNAME_R 1
|
---|
4259 | EOF
|
---|
4260 |
|
---|
4261 | # There are two different kinds of gethostbyname_r.
|
---|
4262 | # We look for the one that returns `int'.
|
---|
4263 | # Hopefully this check is robust enough.
|
---|
4264 | cat > conftest.$ac_ext <<EOF
|
---|
4265 | #line 4266 "configure"
|
---|
4266 | #include "confdefs.h"
|
---|
4267 | #include <netdb.h>
|
---|
4268 | EOF
|
---|
4269 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4270 | egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
|
---|
4271 | rm -rf conftest*
|
---|
4272 |
|
---|
4273 | cat >> confdefs.h <<\EOF
|
---|
4274 | #define GETHOSTBYNAME_R_RETURNS_INT 1
|
---|
4275 | EOF
|
---|
4276 |
|
---|
4277 | fi
|
---|
4278 | rm -f conftest*
|
---|
4279 |
|
---|
4280 |
|
---|
4281 | case " $GCINCS " in
|
---|
4282 | *" -D_REENTRANT "*) ;;
|
---|
4283 | *)
|
---|
4284 | echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
|
---|
4285 | echo "configure:4286: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
|
---|
4286 | if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
|
---|
4287 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4288 | else
|
---|
4289 |
|
---|
4290 | ac_ext=C
|
---|
4291 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
4292 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
4293 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
4294 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
4295 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
4296 |
|
---|
4297 | cat > conftest.$ac_ext <<EOF
|
---|
4298 | #line 4299 "configure"
|
---|
4299 | #include "confdefs.h"
|
---|
4300 | #include <netdb.h>
|
---|
4301 | int main() {
|
---|
4302 | gethostbyname_r("", 0, 0);
|
---|
4303 | ; return 0; }
|
---|
4304 | EOF
|
---|
4305 | if { (eval echo configure:4306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4306 | rm -rf conftest*
|
---|
4307 | libjava_cv_gethostbyname_r_needs_reentrant=no
|
---|
4308 | else
|
---|
4309 | echo "configure: failed program was:" >&5
|
---|
4310 | cat conftest.$ac_ext >&5
|
---|
4311 | rm -rf conftest*
|
---|
4312 | CPPFLAGS_SAVE="$CPPFLAGS"
|
---|
4313 | CPPFLAGS="$CPPFLAGS -D_REENTRANT"
|
---|
4314 | cat > conftest.$ac_ext <<EOF
|
---|
4315 | #line 4316 "configure"
|
---|
4316 | #include "confdefs.h"
|
---|
4317 | #include <netdb.h>
|
---|
4318 | int main() {
|
---|
4319 | gethostbyname_r("", 0, 0);
|
---|
4320 | ; return 0; }
|
---|
4321 | EOF
|
---|
4322 | if { (eval echo configure:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4323 | rm -rf conftest*
|
---|
4324 | libjava_cv_gethostbyname_r_needs_reentrant=yes
|
---|
4325 | else
|
---|
4326 | echo "configure: failed program was:" >&5
|
---|
4327 | cat conftest.$ac_ext >&5
|
---|
4328 | rm -rf conftest*
|
---|
4329 | libjava_cv_gethostbyname_r_needs_reentrant=fail
|
---|
4330 | fi
|
---|
4331 | rm -f conftest*
|
---|
4332 | CPPFLAGS="$CPPFLAGS_SAVE"
|
---|
4333 |
|
---|
4334 | fi
|
---|
4335 | rm -f conftest*
|
---|
4336 | ac_ext=c
|
---|
4337 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
4338 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4339 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
4340 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
4341 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
4342 |
|
---|
4343 |
|
---|
4344 | fi
|
---|
4345 |
|
---|
4346 | echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
|
---|
4347 | if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
|
---|
4348 | cat >> confdefs.h <<\EOF
|
---|
4349 | #define _REENTRANT 1
|
---|
4350 | EOF
|
---|
4351 |
|
---|
4352 | fi
|
---|
4353 | ;;
|
---|
4354 | esac
|
---|
4355 |
|
---|
4356 | echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
|
---|
4357 | echo "configure:4358: checking for struct hostent_data" >&5
|
---|
4358 | if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
|
---|
4359 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4360 | else
|
---|
4361 | cat > conftest.$ac_ext <<EOF
|
---|
4362 | #line 4363 "configure"
|
---|
4363 | #include "confdefs.h"
|
---|
4364 |
|
---|
4365 | #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
|
---|
4366 | # define _REENTRANT 1
|
---|
4367 | #endif
|
---|
4368 | #include <netdb.h>
|
---|
4369 | int main() {
|
---|
4370 | struct hostent_data data;
|
---|
4371 | ; return 0; }
|
---|
4372 | EOF
|
---|
4373 | if { (eval echo configure:4374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4374 | rm -rf conftest*
|
---|
4375 | libjava_cv_struct_hostent_data=yes
|
---|
4376 | else
|
---|
4377 | echo "configure: failed program was:" >&5
|
---|
4378 | cat conftest.$ac_ext >&5
|
---|
4379 | rm -rf conftest*
|
---|
4380 | libjava_cv_struct_hostent_data=no
|
---|
4381 | fi
|
---|
4382 | rm -f conftest*
|
---|
4383 | fi
|
---|
4384 |
|
---|
4385 | echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
|
---|
4386 | if test "x$libjava_cv_struct_hostent_data" = xyes; then
|
---|
4387 | cat >> confdefs.h <<\EOF
|
---|
4388 | #define HAVE_STRUCT_HOSTENT_DATA 1
|
---|
4389 | EOF
|
---|
4390 |
|
---|
4391 | fi
|
---|
4392 |
|
---|
4393 | else
|
---|
4394 | echo "$ac_t""no" 1>&6
|
---|
4395 | fi
|
---|
4396 | done
|
---|
4397 |
|
---|
4398 |
|
---|
4399 | # FIXME: libjava source code expects to find a prototype for
|
---|
4400 | # gethostbyaddr_r in netdb.h. The outer check ensures that
|
---|
4401 | # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
|
---|
4402 | # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
|
---|
4403 | # linkage check is enough, yet C++ code requires proper prototypes.)
|
---|
4404 | cat > conftest.$ac_ext <<EOF
|
---|
4405 | #line 4406 "configure"
|
---|
4406 | #include "confdefs.h"
|
---|
4407 | #include <netdb.h>
|
---|
4408 | EOF
|
---|
4409 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4410 | egrep "gethostbyaddr_r" >/dev/null 2>&1; then
|
---|
4411 | rm -rf conftest*
|
---|
4412 |
|
---|
4413 | for ac_func in gethostbyaddr_r
|
---|
4414 | do
|
---|
4415 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4416 | echo "configure:4417: checking for $ac_func" >&5
|
---|
4417 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4418 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4419 | else
|
---|
4420 | cat > conftest.$ac_ext <<EOF
|
---|
4421 | #line 4422 "configure"
|
---|
4422 | #include "confdefs.h"
|
---|
4423 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4424 | which can conflict with char $ac_func(); below. */
|
---|
4425 | #include <assert.h>
|
---|
4426 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4427 | /* We use char because int might match the return type of a gcc2
|
---|
4428 | builtin and then its argument prototype would still apply. */
|
---|
4429 | char $ac_func();
|
---|
4430 |
|
---|
4431 | int main() {
|
---|
4432 |
|
---|
4433 | /* The GNU C library defines this for functions which it implements
|
---|
4434 | to always fail with ENOSYS. Some functions are actually named
|
---|
4435 | something starting with __ and the normal name is an alias. */
|
---|
4436 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4437 | choke me
|
---|
4438 | #else
|
---|
4439 | $ac_func();
|
---|
4440 | #endif
|
---|
4441 |
|
---|
4442 | ; return 0; }
|
---|
4443 | EOF
|
---|
4444 | if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4445 | rm -rf conftest*
|
---|
4446 | eval "ac_cv_func_$ac_func=yes"
|
---|
4447 | else
|
---|
4448 | echo "configure: failed program was:" >&5
|
---|
4449 | cat conftest.$ac_ext >&5
|
---|
4450 | rm -rf conftest*
|
---|
4451 | eval "ac_cv_func_$ac_func=no"
|
---|
4452 | fi
|
---|
4453 | rm -f conftest*
|
---|
4454 | fi
|
---|
4455 |
|
---|
4456 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4457 | echo "$ac_t""yes" 1>&6
|
---|
4458 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4459 | cat >> confdefs.h <<EOF
|
---|
4460 | #define $ac_tr_func 1
|
---|
4461 | EOF
|
---|
4462 |
|
---|
4463 | cat >> confdefs.h <<\EOF
|
---|
4464 | #define HAVE_GETHOSTBYADDR_R 1
|
---|
4465 | EOF
|
---|
4466 |
|
---|
4467 | # There are two different kinds of gethostbyaddr_r.
|
---|
4468 | # We look for the one that returns `int'.
|
---|
4469 | # Hopefully this check is robust enough.
|
---|
4470 | cat > conftest.$ac_ext <<EOF
|
---|
4471 | #line 4472 "configure"
|
---|
4472 | #include "confdefs.h"
|
---|
4473 | #include <netdb.h>
|
---|
4474 | EOF
|
---|
4475 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4476 | egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
|
---|
4477 | rm -rf conftest*
|
---|
4478 |
|
---|
4479 | cat >> confdefs.h <<\EOF
|
---|
4480 | #define GETHOSTBYADDR_R_RETURNS_INT 1
|
---|
4481 | EOF
|
---|
4482 |
|
---|
4483 | fi
|
---|
4484 | rm -f conftest*
|
---|
4485 |
|
---|
4486 | else
|
---|
4487 | echo "$ac_t""no" 1>&6
|
---|
4488 | fi
|
---|
4489 | done
|
---|
4490 |
|
---|
4491 | fi
|
---|
4492 | rm -f conftest*
|
---|
4493 |
|
---|
4494 |
|
---|
4495 | for ac_func in gethostname
|
---|
4496 | do
|
---|
4497 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4498 | echo "configure:4499: checking for $ac_func" >&5
|
---|
4499 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4500 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4501 | else
|
---|
4502 | cat > conftest.$ac_ext <<EOF
|
---|
4503 | #line 4504 "configure"
|
---|
4504 | #include "confdefs.h"
|
---|
4505 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4506 | which can conflict with char $ac_func(); below. */
|
---|
4507 | #include <assert.h>
|
---|
4508 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4509 | /* We use char because int might match the return type of a gcc2
|
---|
4510 | builtin and then its argument prototype would still apply. */
|
---|
4511 | char $ac_func();
|
---|
4512 |
|
---|
4513 | int main() {
|
---|
4514 |
|
---|
4515 | /* The GNU C library defines this for functions which it implements
|
---|
4516 | to always fail with ENOSYS. Some functions are actually named
|
---|
4517 | something starting with __ and the normal name is an alias. */
|
---|
4518 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4519 | choke me
|
---|
4520 | #else
|
---|
4521 | $ac_func();
|
---|
4522 | #endif
|
---|
4523 |
|
---|
4524 | ; return 0; }
|
---|
4525 | EOF
|
---|
4526 | if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4527 | rm -rf conftest*
|
---|
4528 | eval "ac_cv_func_$ac_func=yes"
|
---|
4529 | else
|
---|
4530 | echo "configure: failed program was:" >&5
|
---|
4531 | cat conftest.$ac_ext >&5
|
---|
4532 | rm -rf conftest*
|
---|
4533 | eval "ac_cv_func_$ac_func=no"
|
---|
4534 | fi
|
---|
4535 | rm -f conftest*
|
---|
4536 | fi
|
---|
4537 |
|
---|
4538 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4539 | echo "$ac_t""yes" 1>&6
|
---|
4540 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4541 | cat >> confdefs.h <<EOF
|
---|
4542 | #define $ac_tr_func 1
|
---|
4543 | EOF
|
---|
4544 |
|
---|
4545 | cat >> confdefs.h <<\EOF
|
---|
4546 | #define HAVE_GETHOSTNAME 1
|
---|
4547 | EOF
|
---|
4548 |
|
---|
4549 | cat > conftest.$ac_ext <<EOF
|
---|
4550 | #line 4551 "configure"
|
---|
4551 | #include "confdefs.h"
|
---|
4552 | #include <unistd.h>
|
---|
4553 | EOF
|
---|
4554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4555 | egrep "gethostname" >/dev/null 2>&1; then
|
---|
4556 | rm -rf conftest*
|
---|
4557 |
|
---|
4558 | cat >> confdefs.h <<\EOF
|
---|
4559 | #define HAVE_GETHOSTNAME_DECL 1
|
---|
4560 | EOF
|
---|
4561 |
|
---|
4562 | fi
|
---|
4563 | rm -f conftest*
|
---|
4564 |
|
---|
4565 | else
|
---|
4566 | echo "$ac_t""no" 1>&6
|
---|
4567 | fi
|
---|
4568 | done
|
---|
4569 |
|
---|
4570 |
|
---|
4571 | # Look for these functions in the thread library, but only bother
|
---|
4572 | # if using POSIX threads.
|
---|
4573 | if test "$THREADS" = posix; then
|
---|
4574 | save_LIBS="$LIBS"
|
---|
4575 | LIBS="$LIBS $THREADLIBS"
|
---|
4576 | # Some POSIX thread systems don't have pthread_mutexattr_settype.
|
---|
4577 | # E.g., Solaris.
|
---|
4578 | for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
|
---|
4579 | do
|
---|
4580 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4581 | echo "configure:4582: checking for $ac_func" >&5
|
---|
4582 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4583 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4584 | else
|
---|
4585 | cat > conftest.$ac_ext <<EOF
|
---|
4586 | #line 4587 "configure"
|
---|
4587 | #include "confdefs.h"
|
---|
4588 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4589 | which can conflict with char $ac_func(); below. */
|
---|
4590 | #include <assert.h>
|
---|
4591 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4592 | /* We use char because int might match the return type of a gcc2
|
---|
4593 | builtin and then its argument prototype would still apply. */
|
---|
4594 | char $ac_func();
|
---|
4595 |
|
---|
4596 | int main() {
|
---|
4597 |
|
---|
4598 | /* The GNU C library defines this for functions which it implements
|
---|
4599 | to always fail with ENOSYS. Some functions are actually named
|
---|
4600 | something starting with __ and the normal name is an alias. */
|
---|
4601 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4602 | choke me
|
---|
4603 | #else
|
---|
4604 | $ac_func();
|
---|
4605 | #endif
|
---|
4606 |
|
---|
4607 | ; return 0; }
|
---|
4608 | EOF
|
---|
4609 | if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4610 | rm -rf conftest*
|
---|
4611 | eval "ac_cv_func_$ac_func=yes"
|
---|
4612 | else
|
---|
4613 | echo "configure: failed program was:" >&5
|
---|
4614 | cat conftest.$ac_ext >&5
|
---|
4615 | rm -rf conftest*
|
---|
4616 | eval "ac_cv_func_$ac_func=no"
|
---|
4617 | fi
|
---|
4618 | rm -f conftest*
|
---|
4619 | fi
|
---|
4620 |
|
---|
4621 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4622 | echo "$ac_t""yes" 1>&6
|
---|
4623 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4624 | cat >> confdefs.h <<EOF
|
---|
4625 | #define $ac_tr_func 1
|
---|
4626 | EOF
|
---|
4627 |
|
---|
4628 | else
|
---|
4629 | echo "$ac_t""no" 1>&6
|
---|
4630 | fi
|
---|
4631 | done
|
---|
4632 |
|
---|
4633 |
|
---|
4634 | # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
|
---|
4635 | # Solaris 7 the name librt is preferred.
|
---|
4636 | for ac_func in sched_yield
|
---|
4637 | do
|
---|
4638 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4639 | echo "configure:4640: checking for $ac_func" >&5
|
---|
4640 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4641 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4642 | else
|
---|
4643 | cat > conftest.$ac_ext <<EOF
|
---|
4644 | #line 4645 "configure"
|
---|
4645 | #include "confdefs.h"
|
---|
4646 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4647 | which can conflict with char $ac_func(); below. */
|
---|
4648 | #include <assert.h>
|
---|
4649 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4650 | /* We use char because int might match the return type of a gcc2
|
---|
4651 | builtin and then its argument prototype would still apply. */
|
---|
4652 | char $ac_func();
|
---|
4653 |
|
---|
4654 | int main() {
|
---|
4655 |
|
---|
4656 | /* The GNU C library defines this for functions which it implements
|
---|
4657 | to always fail with ENOSYS. Some functions are actually named
|
---|
4658 | something starting with __ and the normal name is an alias. */
|
---|
4659 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4660 | choke me
|
---|
4661 | #else
|
---|
4662 | $ac_func();
|
---|
4663 | #endif
|
---|
4664 |
|
---|
4665 | ; return 0; }
|
---|
4666 | EOF
|
---|
4667 | if { (eval echo configure:4668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4668 | rm -rf conftest*
|
---|
4669 | eval "ac_cv_func_$ac_func=yes"
|
---|
4670 | else
|
---|
4671 | echo "configure: failed program was:" >&5
|
---|
4672 | cat conftest.$ac_ext >&5
|
---|
4673 | rm -rf conftest*
|
---|
4674 | eval "ac_cv_func_$ac_func=no"
|
---|
4675 | fi
|
---|
4676 | rm -f conftest*
|
---|
4677 | fi
|
---|
4678 |
|
---|
4679 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4680 | echo "$ac_t""yes" 1>&6
|
---|
4681 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4682 | cat >> confdefs.h <<EOF
|
---|
4683 | #define $ac_tr_func 1
|
---|
4684 | EOF
|
---|
4685 |
|
---|
4686 | else
|
---|
4687 | echo "$ac_t""no" 1>&6
|
---|
4688 | echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
|
---|
4689 | echo "configure:4690: checking for sched_yield in -lrt" >&5
|
---|
4690 | ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
|
---|
4691 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4692 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4693 | else
|
---|
4694 | ac_save_LIBS="$LIBS"
|
---|
4695 | LIBS="-lrt $LIBS"
|
---|
4696 | cat > conftest.$ac_ext <<EOF
|
---|
4697 | #line 4698 "configure"
|
---|
4698 | #include "confdefs.h"
|
---|
4699 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4700 | /* We use char because int might match the return type of a gcc2
|
---|
4701 | builtin and then its argument prototype would still apply. */
|
---|
4702 | char sched_yield();
|
---|
4703 |
|
---|
4704 | int main() {
|
---|
4705 | sched_yield()
|
---|
4706 | ; return 0; }
|
---|
4707 | EOF
|
---|
4708 | if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4709 | rm -rf conftest*
|
---|
4710 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4711 | else
|
---|
4712 | echo "configure: failed program was:" >&5
|
---|
4713 | cat conftest.$ac_ext >&5
|
---|
4714 | rm -rf conftest*
|
---|
4715 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4716 | fi
|
---|
4717 | rm -f conftest*
|
---|
4718 | LIBS="$ac_save_LIBS"
|
---|
4719 |
|
---|
4720 | fi
|
---|
4721 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4722 | echo "$ac_t""yes" 1>&6
|
---|
4723 |
|
---|
4724 | cat >> confdefs.h <<\EOF
|
---|
4725 | #define HAVE_SCHED_YIELD 1
|
---|
4726 | EOF
|
---|
4727 |
|
---|
4728 | THREADLIBS="$THREADLIBS -lrt"
|
---|
4729 | THREADSPEC="$THREADSPEC -lrt"
|
---|
4730 | else
|
---|
4731 | echo "$ac_t""no" 1>&6
|
---|
4732 |
|
---|
4733 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
|
---|
4734 | echo "configure:4735: checking for sched_yield in -lposix4" >&5
|
---|
4735 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
|
---|
4736 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4737 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4738 | else
|
---|
4739 | ac_save_LIBS="$LIBS"
|
---|
4740 | LIBS="-lposix4 $LIBS"
|
---|
4741 | cat > conftest.$ac_ext <<EOF
|
---|
4742 | #line 4743 "configure"
|
---|
4743 | #include "confdefs.h"
|
---|
4744 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4745 | /* We use char because int might match the return type of a gcc2
|
---|
4746 | builtin and then its argument prototype would still apply. */
|
---|
4747 | char sched_yield();
|
---|
4748 |
|
---|
4749 | int main() {
|
---|
4750 | sched_yield()
|
---|
4751 | ; return 0; }
|
---|
4752 | EOF
|
---|
4753 | if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4754 | rm -rf conftest*
|
---|
4755 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4756 | else
|
---|
4757 | echo "configure: failed program was:" >&5
|
---|
4758 | cat conftest.$ac_ext >&5
|
---|
4759 | rm -rf conftest*
|
---|
4760 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4761 | fi
|
---|
4762 | rm -f conftest*
|
---|
4763 | LIBS="$ac_save_LIBS"
|
---|
4764 |
|
---|
4765 | fi
|
---|
4766 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4767 | echo "$ac_t""yes" 1>&6
|
---|
4768 |
|
---|
4769 | cat >> confdefs.h <<\EOF
|
---|
4770 | #define HAVE_SCHED_YIELD 1
|
---|
4771 | EOF
|
---|
4772 |
|
---|
4773 | THREADLIBS="$THREADLIBS -lposix4"
|
---|
4774 | THREADSPEC="$THREADSPEC -lposix4"
|
---|
4775 | else
|
---|
4776 | echo "$ac_t""no" 1>&6
|
---|
4777 | fi
|
---|
4778 |
|
---|
4779 | fi
|
---|
4780 |
|
---|
4781 | fi
|
---|
4782 | done
|
---|
4783 |
|
---|
4784 | LIBS="$save_LIBS"
|
---|
4785 |
|
---|
4786 | # We can save a little space at runtime if the mutex has m_count
|
---|
4787 | # or __m_count. This is a nice hack for Linux.
|
---|
4788 | cat > conftest.$ac_ext <<EOF
|
---|
4789 | #line 4790 "configure"
|
---|
4790 | #include "confdefs.h"
|
---|
4791 | #include <pthread.h>
|
---|
4792 | int main() {
|
---|
4793 |
|
---|
4794 | extern pthread_mutex_t *mutex; int q = mutex->m_count;
|
---|
4795 |
|
---|
4796 | ; return 0; }
|
---|
4797 | EOF
|
---|
4798 | if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4799 | rm -rf conftest*
|
---|
4800 | cat >> confdefs.h <<\EOF
|
---|
4801 | #define PTHREAD_MUTEX_HAVE_M_COUNT 1
|
---|
4802 | EOF
|
---|
4803 |
|
---|
4804 | else
|
---|
4805 | echo "configure: failed program was:" >&5
|
---|
4806 | cat conftest.$ac_ext >&5
|
---|
4807 | rm -rf conftest*
|
---|
4808 |
|
---|
4809 | cat > conftest.$ac_ext <<EOF
|
---|
4810 | #line 4811 "configure"
|
---|
4811 | #include "confdefs.h"
|
---|
4812 | #include <pthread.h>
|
---|
4813 | int main() {
|
---|
4814 |
|
---|
4815 | extern pthread_mutex_t *mutex; int q = mutex->__m_count;
|
---|
4816 |
|
---|
4817 | ; return 0; }
|
---|
4818 | EOF
|
---|
4819 | if { (eval echo configure:4820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4820 | rm -rf conftest*
|
---|
4821 | cat >> confdefs.h <<\EOF
|
---|
4822 | #define PTHREAD_MUTEX_HAVE___M_COUNT 1
|
---|
4823 | EOF
|
---|
4824 |
|
---|
4825 | else
|
---|
4826 | echo "configure: failed program was:" >&5
|
---|
4827 | cat conftest.$ac_ext >&5
|
---|
4828 | fi
|
---|
4829 | rm -f conftest*
|
---|
4830 | fi
|
---|
4831 | rm -f conftest*
|
---|
4832 | fi
|
---|
4833 |
|
---|
4834 | # We require a way to get the time.
|
---|
4835 | time_found=no
|
---|
4836 | for ac_func in gettimeofday time ftime
|
---|
4837 | do
|
---|
4838 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4839 | echo "configure:4840: checking for $ac_func" >&5
|
---|
4840 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4841 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4842 | else
|
---|
4843 | cat > conftest.$ac_ext <<EOF
|
---|
4844 | #line 4845 "configure"
|
---|
4845 | #include "confdefs.h"
|
---|
4846 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4847 | which can conflict with char $ac_func(); below. */
|
---|
4848 | #include <assert.h>
|
---|
4849 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4850 | /* We use char because int might match the return type of a gcc2
|
---|
4851 | builtin and then its argument prototype would still apply. */
|
---|
4852 | char $ac_func();
|
---|
4853 |
|
---|
4854 | int main() {
|
---|
4855 |
|
---|
4856 | /* The GNU C library defines this for functions which it implements
|
---|
4857 | to always fail with ENOSYS. Some functions are actually named
|
---|
4858 | something starting with __ and the normal name is an alias. */
|
---|
4859 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4860 | choke me
|
---|
4861 | #else
|
---|
4862 | $ac_func();
|
---|
4863 | #endif
|
---|
4864 |
|
---|
4865 | ; return 0; }
|
---|
4866 | EOF
|
---|
4867 | if { (eval echo configure:4868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4868 | rm -rf conftest*
|
---|
4869 | eval "ac_cv_func_$ac_func=yes"
|
---|
4870 | else
|
---|
4871 | echo "configure: failed program was:" >&5
|
---|
4872 | cat conftest.$ac_ext >&5
|
---|
4873 | rm -rf conftest*
|
---|
4874 | eval "ac_cv_func_$ac_func=no"
|
---|
4875 | fi
|
---|
4876 | rm -f conftest*
|
---|
4877 | fi
|
---|
4878 |
|
---|
4879 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4880 | echo "$ac_t""yes" 1>&6
|
---|
4881 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4882 | cat >> confdefs.h <<EOF
|
---|
4883 | #define $ac_tr_func 1
|
---|
4884 | EOF
|
---|
4885 | time_found=yes
|
---|
4886 | else
|
---|
4887 | echo "$ac_t""no" 1>&6
|
---|
4888 | fi
|
---|
4889 | done
|
---|
4890 |
|
---|
4891 | if test "$time_found" = no; then
|
---|
4892 | { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
|
---|
4893 | fi
|
---|
4894 |
|
---|
4895 | for ac_func in memmove
|
---|
4896 | do
|
---|
4897 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4898 | echo "configure:4899: checking for $ac_func" >&5
|
---|
4899 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4900 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4901 | else
|
---|
4902 | cat > conftest.$ac_ext <<EOF
|
---|
4903 | #line 4904 "configure"
|
---|
4904 | #include "confdefs.h"
|
---|
4905 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4906 | which can conflict with char $ac_func(); below. */
|
---|
4907 | #include <assert.h>
|
---|
4908 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4909 | /* We use char because int might match the return type of a gcc2
|
---|
4910 | builtin and then its argument prototype would still apply. */
|
---|
4911 | char $ac_func();
|
---|
4912 |
|
---|
4913 | int main() {
|
---|
4914 |
|
---|
4915 | /* The GNU C library defines this for functions which it implements
|
---|
4916 | to always fail with ENOSYS. Some functions are actually named
|
---|
4917 | something starting with __ and the normal name is an alias. */
|
---|
4918 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4919 | choke me
|
---|
4920 | #else
|
---|
4921 | $ac_func();
|
---|
4922 | #endif
|
---|
4923 |
|
---|
4924 | ; return 0; }
|
---|
4925 | EOF
|
---|
4926 | if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4927 | rm -rf conftest*
|
---|
4928 | eval "ac_cv_func_$ac_func=yes"
|
---|
4929 | else
|
---|
4930 | echo "configure: failed program was:" >&5
|
---|
4931 | cat conftest.$ac_ext >&5
|
---|
4932 | rm -rf conftest*
|
---|
4933 | eval "ac_cv_func_$ac_func=no"
|
---|
4934 | fi
|
---|
4935 | rm -f conftest*
|
---|
4936 | fi
|
---|
4937 |
|
---|
4938 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4939 | echo "$ac_t""yes" 1>&6
|
---|
4940 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4941 | cat >> confdefs.h <<EOF
|
---|
4942 | #define $ac_tr_func 1
|
---|
4943 | EOF
|
---|
4944 |
|
---|
4945 | else
|
---|
4946 | echo "$ac_t""no" 1>&6
|
---|
4947 | fi
|
---|
4948 | done
|
---|
4949 |
|
---|
4950 |
|
---|
4951 | # We require memcpy.
|
---|
4952 | memcpy_found=no
|
---|
4953 | for ac_func in memcpy
|
---|
4954 | do
|
---|
4955 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4956 | echo "configure:4957: checking for $ac_func" >&5
|
---|
4957 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4958 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4959 | else
|
---|
4960 | cat > conftest.$ac_ext <<EOF
|
---|
4961 | #line 4962 "configure"
|
---|
4962 | #include "confdefs.h"
|
---|
4963 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4964 | which can conflict with char $ac_func(); below. */
|
---|
4965 | #include <assert.h>
|
---|
4966 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4967 | /* We use char because int might match the return type of a gcc2
|
---|
4968 | builtin and then its argument prototype would still apply. */
|
---|
4969 | char $ac_func();
|
---|
4970 |
|
---|
4971 | int main() {
|
---|
4972 |
|
---|
4973 | /* The GNU C library defines this for functions which it implements
|
---|
4974 | to always fail with ENOSYS. Some functions are actually named
|
---|
4975 | something starting with __ and the normal name is an alias. */
|
---|
4976 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4977 | choke me
|
---|
4978 | #else
|
---|
4979 | $ac_func();
|
---|
4980 | #endif
|
---|
4981 |
|
---|
4982 | ; return 0; }
|
---|
4983 | EOF
|
---|
4984 | if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4985 | rm -rf conftest*
|
---|
4986 | eval "ac_cv_func_$ac_func=yes"
|
---|
4987 | else
|
---|
4988 | echo "configure: failed program was:" >&5
|
---|
4989 | cat conftest.$ac_ext >&5
|
---|
4990 | rm -rf conftest*
|
---|
4991 | eval "ac_cv_func_$ac_func=no"
|
---|
4992 | fi
|
---|
4993 | rm -f conftest*
|
---|
4994 | fi
|
---|
4995 |
|
---|
4996 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4997 | echo "$ac_t""yes" 1>&6
|
---|
4998 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4999 | cat >> confdefs.h <<EOF
|
---|
5000 | #define $ac_tr_func 1
|
---|
5001 | EOF
|
---|
5002 | memcpy_found=yes
|
---|
5003 | else
|
---|
5004 | echo "$ac_t""no" 1>&6
|
---|
5005 | fi
|
---|
5006 | done
|
---|
5007 |
|
---|
5008 | if test "$memcpy_found" = no; then
|
---|
5009 | { echo "configure: error: memcpy is required" 1>&2; exit 1; }
|
---|
5010 | fi
|
---|
5011 |
|
---|
5012 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
---|
5013 | echo "configure:5014: checking for dlopen in -ldl" >&5
|
---|
5014 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
---|
5015 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5016 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5017 | else
|
---|
5018 | ac_save_LIBS="$LIBS"
|
---|
5019 | LIBS="-ldl $LIBS"
|
---|
5020 | cat > conftest.$ac_ext <<EOF
|
---|
5021 | #line 5022 "configure"
|
---|
5022 | #include "confdefs.h"
|
---|
5023 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5024 | /* We use char because int might match the return type of a gcc2
|
---|
5025 | builtin and then its argument prototype would still apply. */
|
---|
5026 | char dlopen();
|
---|
5027 |
|
---|
5028 | int main() {
|
---|
5029 | dlopen()
|
---|
5030 | ; return 0; }
|
---|
5031 | EOF
|
---|
5032 | if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5033 | rm -rf conftest*
|
---|
5034 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
5035 | else
|
---|
5036 | echo "configure: failed program was:" >&5
|
---|
5037 | cat conftest.$ac_ext >&5
|
---|
5038 | rm -rf conftest*
|
---|
5039 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5040 | fi
|
---|
5041 | rm -f conftest*
|
---|
5042 | LIBS="$ac_save_LIBS"
|
---|
5043 |
|
---|
5044 | fi
|
---|
5045 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5046 | echo "$ac_t""yes" 1>&6
|
---|
5047 |
|
---|
5048 | cat >> confdefs.h <<\EOF
|
---|
5049 | #define HAVE_DLOPEN 1
|
---|
5050 | EOF
|
---|
5051 |
|
---|
5052 | else
|
---|
5053 | echo "$ac_t""no" 1>&6
|
---|
5054 | fi
|
---|
5055 |
|
---|
5056 |
|
---|
5057 | # Some library-finding code we stole from Tcl.
|
---|
5058 | #--------------------------------------------------------------------
|
---|
5059 | # Check for the existence of the -lsocket and -lnsl libraries.
|
---|
5060 | # The order here is important, so that they end up in the right
|
---|
5061 | # order in the command line generated by make. Here are some
|
---|
5062 | # special considerations:
|
---|
5063 | # 1. Use "connect" and "accept" to check for -lsocket, and
|
---|
5064 | # "gethostbyname" to check for -lnsl.
|
---|
5065 | # 2. Use each function name only once: can't redo a check because
|
---|
5066 | # autoconf caches the results of the last check and won't redo it.
|
---|
5067 | # 3. Use -lnsl and -lsocket only if they supply procedures that
|
---|
5068 | # aren't already present in the normal libraries. This is because
|
---|
5069 | # IRIX 5.2 has libraries, but they aren't needed and they're
|
---|
5070 | # bogus: they goof up name resolution if used.
|
---|
5071 | # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
|
---|
5072 | # To get around this problem, check for both libraries together
|
---|
5073 | # if -lsocket doesn't work by itself.
|
---|
5074 | #--------------------------------------------------------------------
|
---|
5075 |
|
---|
5076 | echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
|
---|
5077 | echo "configure:5078: checking for socket libraries" >&5
|
---|
5078 | if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
|
---|
5079 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5080 | else
|
---|
5081 | gcj_cv_lib_sockets=
|
---|
5082 | gcj_checkBoth=0
|
---|
5083 | unset ac_cv_func_connect
|
---|
5084 | echo $ac_n "checking for connect""... $ac_c" 1>&6
|
---|
5085 | echo "configure:5086: checking for connect" >&5
|
---|
5086 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
---|
5087 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5088 | else
|
---|
5089 | cat > conftest.$ac_ext <<EOF
|
---|
5090 | #line 5091 "configure"
|
---|
5091 | #include "confdefs.h"
|
---|
5092 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5093 | which can conflict with char connect(); below. */
|
---|
5094 | #include <assert.h>
|
---|
5095 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5096 | /* We use char because int might match the return type of a gcc2
|
---|
5097 | builtin and then its argument prototype would still apply. */
|
---|
5098 | char connect();
|
---|
5099 |
|
---|
5100 | int main() {
|
---|
5101 |
|
---|
5102 | /* The GNU C library defines this for functions which it implements
|
---|
5103 | to always fail with ENOSYS. Some functions are actually named
|
---|
5104 | something starting with __ and the normal name is an alias. */
|
---|
5105 | #if defined (__stub_connect) || defined (__stub___connect)
|
---|
5106 | choke me
|
---|
5107 | #else
|
---|
5108 | connect();
|
---|
5109 | #endif
|
---|
5110 |
|
---|
5111 | ; return 0; }
|
---|
5112 | EOF
|
---|
5113 | if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5114 | rm -rf conftest*
|
---|
5115 | eval "ac_cv_func_connect=yes"
|
---|
5116 | else
|
---|
5117 | echo "configure: failed program was:" >&5
|
---|
5118 | cat conftest.$ac_ext >&5
|
---|
5119 | rm -rf conftest*
|
---|
5120 | eval "ac_cv_func_connect=no"
|
---|
5121 | fi
|
---|
5122 | rm -f conftest*
|
---|
5123 | fi
|
---|
5124 |
|
---|
5125 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
---|
5126 | echo "$ac_t""yes" 1>&6
|
---|
5127 | gcj_checkSocket=0
|
---|
5128 | else
|
---|
5129 | echo "$ac_t""no" 1>&6
|
---|
5130 | gcj_checkSocket=1
|
---|
5131 | fi
|
---|
5132 |
|
---|
5133 | if test "$gcj_checkSocket" = 1; then
|
---|
5134 | unset ac_cv_func_connect
|
---|
5135 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
|
---|
5136 | echo "configure:5137: checking for main in -lsocket" >&5
|
---|
5137 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
|
---|
5138 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5139 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5140 | else
|
---|
5141 | ac_save_LIBS="$LIBS"
|
---|
5142 | LIBS="-lsocket $LIBS"
|
---|
5143 | cat > conftest.$ac_ext <<EOF
|
---|
5144 | #line 5145 "configure"
|
---|
5145 | #include "confdefs.h"
|
---|
5146 |
|
---|
5147 | int main() {
|
---|
5148 | main()
|
---|
5149 | ; return 0; }
|
---|
5150 | EOF
|
---|
5151 | if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5152 | rm -rf conftest*
|
---|
5153 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
5154 | else
|
---|
5155 | echo "configure: failed program was:" >&5
|
---|
5156 | cat conftest.$ac_ext >&5
|
---|
5157 | rm -rf conftest*
|
---|
5158 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5159 | fi
|
---|
5160 | rm -f conftest*
|
---|
5161 | LIBS="$ac_save_LIBS"
|
---|
5162 |
|
---|
5163 | fi
|
---|
5164 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5165 | echo "$ac_t""yes" 1>&6
|
---|
5166 | gcj_cv_lib_sockets="-lsocket"
|
---|
5167 | else
|
---|
5168 | echo "$ac_t""no" 1>&6
|
---|
5169 | gcj_checkBoth=1
|
---|
5170 | fi
|
---|
5171 |
|
---|
5172 | fi
|
---|
5173 | if test "$gcj_checkBoth" = 1; then
|
---|
5174 | gcj_oldLibs=$LIBS
|
---|
5175 | LIBS="$LIBS -lsocket -lnsl"
|
---|
5176 | unset ac_cv_func_accept
|
---|
5177 | echo $ac_n "checking for accept""... $ac_c" 1>&6
|
---|
5178 | echo "configure:5179: checking for accept" >&5
|
---|
5179 | if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
|
---|
5180 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5181 | else
|
---|
5182 | cat > conftest.$ac_ext <<EOF
|
---|
5183 | #line 5184 "configure"
|
---|
5184 | #include "confdefs.h"
|
---|
5185 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5186 | which can conflict with char accept(); below. */
|
---|
5187 | #include <assert.h>
|
---|
5188 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5189 | /* We use char because int might match the return type of a gcc2
|
---|
5190 | builtin and then its argument prototype would still apply. */
|
---|
5191 | char accept();
|
---|
5192 |
|
---|
5193 | int main() {
|
---|
5194 |
|
---|
5195 | /* The GNU C library defines this for functions which it implements
|
---|
5196 | to always fail with ENOSYS. Some functions are actually named
|
---|
5197 | something starting with __ and the normal name is an alias. */
|
---|
5198 | #if defined (__stub_accept) || defined (__stub___accept)
|
---|
5199 | choke me
|
---|
5200 | #else
|
---|
5201 | accept();
|
---|
5202 | #endif
|
---|
5203 |
|
---|
5204 | ; return 0; }
|
---|
5205 | EOF
|
---|
5206 | if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5207 | rm -rf conftest*
|
---|
5208 | eval "ac_cv_func_accept=yes"
|
---|
5209 | else
|
---|
5210 | echo "configure: failed program was:" >&5
|
---|
5211 | cat conftest.$ac_ext >&5
|
---|
5212 | rm -rf conftest*
|
---|
5213 | eval "ac_cv_func_accept=no"
|
---|
5214 | fi
|
---|
5215 | rm -f conftest*
|
---|
5216 | fi
|
---|
5217 |
|
---|
5218 | if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
|
---|
5219 | echo "$ac_t""yes" 1>&6
|
---|
5220 | gcj_checkNsl=0
|
---|
5221 | gcj_cv_lib_sockets="-lsocket -lnsl"
|
---|
5222 | else
|
---|
5223 | echo "$ac_t""no" 1>&6
|
---|
5224 | fi
|
---|
5225 |
|
---|
5226 | unset ac_cv_func_accept
|
---|
5227 | LIBS=$gcj_oldLibs
|
---|
5228 | fi
|
---|
5229 | unset ac_cv_func_gethostbyname
|
---|
5230 | gcj_oldLibs=$LIBS
|
---|
5231 | LIBS="$LIBS $gcj_cv_lib_sockets"
|
---|
5232 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
---|
5233 | echo "configure:5234: checking for gethostbyname" >&5
|
---|
5234 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
---|
5235 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5236 | else
|
---|
5237 | cat > conftest.$ac_ext <<EOF
|
---|
5238 | #line 5239 "configure"
|
---|
5239 | #include "confdefs.h"
|
---|
5240 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5241 | which can conflict with char gethostbyname(); below. */
|
---|
5242 | #include <assert.h>
|
---|
5243 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5244 | /* We use char because int might match the return type of a gcc2
|
---|
5245 | builtin and then its argument prototype would still apply. */
|
---|
5246 | char gethostbyname();
|
---|
5247 |
|
---|
5248 | int main() {
|
---|
5249 |
|
---|
5250 | /* The GNU C library defines this for functions which it implements
|
---|
5251 | to always fail with ENOSYS. Some functions are actually named
|
---|
5252 | something starting with __ and the normal name is an alias. */
|
---|
5253 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
---|
5254 | choke me
|
---|
5255 | #else
|
---|
5256 | gethostbyname();
|
---|
5257 | #endif
|
---|
5258 |
|
---|
5259 | ; return 0; }
|
---|
5260 | EOF
|
---|
5261 | if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5262 | rm -rf conftest*
|
---|
5263 | eval "ac_cv_func_gethostbyname=yes"
|
---|
5264 | else
|
---|
5265 | echo "configure: failed program was:" >&5
|
---|
5266 | cat conftest.$ac_ext >&5
|
---|
5267 | rm -rf conftest*
|
---|
5268 | eval "ac_cv_func_gethostbyname=no"
|
---|
5269 | fi
|
---|
5270 | rm -f conftest*
|
---|
5271 | fi
|
---|
5272 |
|
---|
5273 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
---|
5274 | echo "$ac_t""yes" 1>&6
|
---|
5275 | :
|
---|
5276 | else
|
---|
5277 | echo "$ac_t""no" 1>&6
|
---|
5278 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
---|
5279 | echo "configure:5280: checking for main in -lnsl" >&5
|
---|
5280 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
|
---|
5281 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5282 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5283 | else
|
---|
5284 | ac_save_LIBS="$LIBS"
|
---|
5285 | LIBS="-lnsl $LIBS"
|
---|
5286 | cat > conftest.$ac_ext <<EOF
|
---|
5287 | #line 5288 "configure"
|
---|
5288 | #include "confdefs.h"
|
---|
5289 |
|
---|
5290 | int main() {
|
---|
5291 | main()
|
---|
5292 | ; return 0; }
|
---|
5293 | EOF
|
---|
5294 | if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5295 | rm -rf conftest*
|
---|
5296 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
5297 | else
|
---|
5298 | echo "configure: failed program was:" >&5
|
---|
5299 | cat conftest.$ac_ext >&5
|
---|
5300 | rm -rf conftest*
|
---|
5301 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5302 | fi
|
---|
5303 | rm -f conftest*
|
---|
5304 | LIBS="$ac_save_LIBS"
|
---|
5305 |
|
---|
5306 | fi
|
---|
5307 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5308 | echo "$ac_t""yes" 1>&6
|
---|
5309 | gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
|
---|
5310 | else
|
---|
5311 | echo "$ac_t""no" 1>&6
|
---|
5312 | fi
|
---|
5313 |
|
---|
5314 | fi
|
---|
5315 |
|
---|
5316 | unset ac_cv_func_gethostbyname
|
---|
5317 | LIBS=$gcj_oldLIBS
|
---|
5318 |
|
---|
5319 | fi
|
---|
5320 |
|
---|
5321 | echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
|
---|
5322 | SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
|
---|
5323 |
|
---|
5324 | if test "$with_system_zlib" = yes; then
|
---|
5325 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
|
---|
5326 | echo "configure:5327: checking for deflate in -lz" >&5
|
---|
5327 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
|
---|
5328 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5329 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5330 | else
|
---|
5331 | ac_save_LIBS="$LIBS"
|
---|
5332 | LIBS="-lz $LIBS"
|
---|
5333 | cat > conftest.$ac_ext <<EOF
|
---|
5334 | #line 5335 "configure"
|
---|
5335 | #include "confdefs.h"
|
---|
5336 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5337 | /* We use char because int might match the return type of a gcc2
|
---|
5338 | builtin and then its argument prototype would still apply. */
|
---|
5339 | char deflate();
|
---|
5340 |
|
---|
5341 | int main() {
|
---|
5342 | deflate()
|
---|
5343 | ; return 0; }
|
---|
5344 | EOF
|
---|
5345 | if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5346 | rm -rf conftest*
|
---|
5347 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
5348 | else
|
---|
5349 | echo "configure: failed program was:" >&5
|
---|
5350 | cat conftest.$ac_ext >&5
|
---|
5351 | rm -rf conftest*
|
---|
5352 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5353 | fi
|
---|
5354 | rm -f conftest*
|
---|
5355 | LIBS="$ac_save_LIBS"
|
---|
5356 |
|
---|
5357 | fi
|
---|
5358 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5359 | echo "$ac_t""yes" 1>&6
|
---|
5360 | ZLIBSPEC=-lz
|
---|
5361 | else
|
---|
5362 | echo "$ac_t""no" 1>&6
|
---|
5363 | ZLIBSPEC=
|
---|
5364 | fi
|
---|
5365 |
|
---|
5366 | fi
|
---|
5367 |
|
---|
5368 | # On Solaris, and maybe other architectures, the Boehm collector
|
---|
5369 | # requires -ldl.
|
---|
5370 | if test "$GC" = boehm; then
|
---|
5371 | echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
|
---|
5372 | echo "configure:5373: checking for main in -ldl" >&5
|
---|
5373 | ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
|
---|
5374 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
5375 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5376 | else
|
---|
5377 | ac_save_LIBS="$LIBS"
|
---|
5378 | LIBS="-ldl $LIBS"
|
---|
5379 | cat > conftest.$ac_ext <<EOF
|
---|
5380 | #line 5381 "configure"
|
---|
5381 | #include "confdefs.h"
|
---|
5382 |
|
---|
5383 | int main() {
|
---|
5384 | main()
|
---|
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_lib_$ac_lib_var=yes"
|
---|
5390 | else
|
---|
5391 | echo "configure: failed program was:" >&5
|
---|
5392 | cat conftest.$ac_ext >&5
|
---|
5393 | rm -rf conftest*
|
---|
5394 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
5395 | fi
|
---|
5396 | rm -f conftest*
|
---|
5397 | LIBS="$ac_save_LIBS"
|
---|
5398 |
|
---|
5399 | fi
|
---|
5400 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
5401 | echo "$ac_t""yes" 1>&6
|
---|
5402 | SYSTEMSPEC="$SYSTEMSPEC -ldl"
|
---|
5403 | else
|
---|
5404 | echo "$ac_t""no" 1>&6
|
---|
5405 | fi
|
---|
5406 |
|
---|
5407 | fi
|
---|
5408 |
|
---|
5409 | if test -z "${with_multisubdir}"; then
|
---|
5410 | builddotdot=.
|
---|
5411 | else
|
---|
5412 |
|
---|
5413 | builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
|
---|
5414 |
|
---|
5415 | fi
|
---|
5416 | if test -x "${builddotdot}/../../gcc/gcj"; then
|
---|
5417 | dir="`cd ${builddotdot}/../../gcc && pwd`"
|
---|
5418 | GCJ="$dir/gcj -B`pwd`/ -B$dir/"
|
---|
5419 | else
|
---|
5420 | CANADIAN=yes
|
---|
5421 | NULL_TARGET=yes
|
---|
5422 | GCJ="gcj -B`pwd`/"
|
---|
5423 | fi
|
---|
5424 | fi
|
---|
5425 |
|
---|
5426 | # Create it, so that compile/link tests don't fail
|
---|
5427 | test -f libgcj.spec || touch libgcj.spec
|
---|
5428 |
|
---|
5429 | # We must search the source tree for java.lang, since we still don't
|
---|
5430 | # have libgcj.jar nor java/lang/*.class
|
---|
5431 | GCJ_SAVE_CPPFLAGS=$CPPFLAGS
|
---|
5432 | CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
|
---|
5433 |
|
---|
5434 | # Since some classes depend on this one, we need its source available
|
---|
5435 | # before we can do any GCJ compilation test :-(
|
---|
5436 | if test ! -f gnu/classpath/Configuration.java; then
|
---|
5437 | test -d gnu || mkdir gnu
|
---|
5438 | test -d gnu/classpath || mkdir gnu/classpath
|
---|
5439 | sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
|
---|
5440 | < $srcdir/gnu/classpath/Configuration.java.in \
|
---|
5441 | > gnu/classpath/Configuration.java
|
---|
5442 | # We do not want to redirect the output of the grep below to /dev/null,
|
---|
5443 | # but we add /dev/null to the input list so that grep will print the
|
---|
5444 | # filename of Configuration.java in case it finds any matches.
|
---|
5445 | if grep @ gnu/classpath/Configuration.java /dev/null; then
|
---|
5446 | { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
|
---|
5447 | fi
|
---|
5448 | fi
|
---|
5449 |
|
---|
5450 | # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
|
---|
5451 | set dummy ${ac_tool_prefix}gcj; ac_word=$2
|
---|
5452 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
5453 | echo "configure:5454: checking for $ac_word" >&5
|
---|
5454 | if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
|
---|
5455 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5456 | else
|
---|
5457 | if test -n "$GCJ"; then
|
---|
5458 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
|
---|
5459 | else
|
---|
5460 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
5461 | ac_dummy="$PATH"
|
---|
5462 | for ac_dir in $ac_dummy; do
|
---|
5463 | test -z "$ac_dir" && ac_dir=.
|
---|
5464 | if test -f $ac_dir/$ac_word; then
|
---|
5465 | ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
|
---|
5466 | break
|
---|
5467 | fi
|
---|
5468 | done
|
---|
5469 | IFS="$ac_save_ifs"
|
---|
5470 | fi
|
---|
5471 | fi
|
---|
5472 | GCJ="$ac_cv_prog_GCJ"
|
---|
5473 | if test -n "$GCJ"; then
|
---|
5474 | echo "$ac_t""$GCJ" 1>&6
|
---|
5475 | else
|
---|
5476 | echo "$ac_t""no" 1>&6
|
---|
5477 | fi
|
---|
5478 |
|
---|
5479 |
|
---|
5480 | if test -z "$ac_cv_prog_GCJ"; then
|
---|
5481 | if test -n "$ac_tool_prefix"; then
|
---|
5482 | # Extract the first word of "gcj", so it can be a program name with args.
|
---|
5483 | set dummy gcj; ac_word=$2
|
---|
5484 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
5485 | echo "configure:5486: checking for $ac_word" >&5
|
---|
5486 | if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
|
---|
5487 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5488 | else
|
---|
5489 | if test -n "$GCJ"; then
|
---|
5490 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
|
---|
5491 | else
|
---|
5492 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
5493 | ac_dummy="$PATH"
|
---|
5494 | for ac_dir in $ac_dummy; do
|
---|
5495 | test -z "$ac_dir" && ac_dir=.
|
---|
5496 | if test -f $ac_dir/$ac_word; then
|
---|
5497 | ac_cv_prog_GCJ="gcj"
|
---|
5498 | break
|
---|
5499 | fi
|
---|
5500 | done
|
---|
5501 | IFS="$ac_save_ifs"
|
---|
5502 | test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
|
---|
5503 | fi
|
---|
5504 | fi
|
---|
5505 | GCJ="$ac_cv_prog_GCJ"
|
---|
5506 | if test -n "$GCJ"; then
|
---|
5507 | echo "$ac_t""$GCJ" 1>&6
|
---|
5508 | else
|
---|
5509 | echo "$ac_t""no" 1>&6
|
---|
5510 | fi
|
---|
5511 |
|
---|
5512 | else
|
---|
5513 | GCJ="no"
|
---|
5514 | fi
|
---|
5515 | fi
|
---|
5516 |
|
---|
5517 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
---|
5518 |
|
---|
5519 |
|
---|
5520 |
|
---|
5521 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
|
---|
5522 | lt_save_CC="$CC"
|
---|
5523 | lt_save_CFLAGS="$CFLAGS"
|
---|
5524 | AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
5525 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
5526 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
5527 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
5528 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
5529 | deplibs_check_method="$deplibs_check_method" \
|
---|
5530 | file_magic_cmd="$file_magic_cmd" \
|
---|
5531 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
|
---|
5532 | --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
|
---|
5533 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
|
---|
5534 | CC="$lt_save_CC"
|
---|
5535 | CFLAGS="$lt_save_CFLAGS"
|
---|
5536 |
|
---|
5537 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
5538 | # clobbered by the next message.
|
---|
5539 | exec 5>>./config.log
|
---|
5540 |
|
---|
5541 |
|
---|
5542 |
|
---|
5543 |
|
---|
5544 | CPPFLAGS=$GCJ_SAVE_CPPFLAGS
|
---|
5545 |
|
---|
5546 | echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
---|
5547 | echo "configure:5548: checking size of void *" >&5
|
---|
5548 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
|
---|
5549 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5550 | else
|
---|
5551 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
---|
5552 | cat > conftest.$ac_ext <<EOF
|
---|
5553 | #line 5554 "configure"
|
---|
5554 | #include "confdefs.h"
|
---|
5555 | #include "confdefs.h"
|
---|
5556 | #include <sys/types.h>
|
---|
5557 |
|
---|
5558 |
|
---|
5559 | int main() {
|
---|
5560 | switch (0) case 0: case (sizeof (void *) == $ac_size):;
|
---|
5561 | ; return 0; }
|
---|
5562 | EOF
|
---|
5563 | if { (eval echo configure:5564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5564 | rm -rf conftest*
|
---|
5565 | ac_cv_sizeof_void_p=$ac_size
|
---|
5566 | else
|
---|
5567 | echo "configure: failed program was:" >&5
|
---|
5568 | cat conftest.$ac_ext >&5
|
---|
5569 | fi
|
---|
5570 | rm -f conftest*
|
---|
5571 | if test x$ac_cv_sizeof_void_p != x ; then break; fi
|
---|
5572 | done
|
---|
5573 |
|
---|
5574 | fi
|
---|
5575 |
|
---|
5576 | if test x$ac_cv_sizeof_void_p = x ; then
|
---|
5577 | { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
|
---|
5578 | fi
|
---|
5579 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
---|
5580 | cat >> confdefs.h <<EOF
|
---|
5581 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
---|
5582 | EOF
|
---|
5583 |
|
---|
5584 |
|
---|
5585 |
|
---|
5586 | ZLIBS=
|
---|
5587 | SYS_ZLIBS=
|
---|
5588 | ZINCS=
|
---|
5589 |
|
---|
5590 | if test -z "$ZLIBSPEC"; then
|
---|
5591 | # Use zlib from the GCC tree.
|
---|
5592 | ZINCS='-I$(top_srcdir)/../zlib'
|
---|
5593 | ZLIBS=../zlib/libzgcj_convenience.la
|
---|
5594 | else
|
---|
5595 | # System's zlib.
|
---|
5596 | SYS_ZLIBS="$ZLIBSPEC"
|
---|
5597 | fi
|
---|
5598 |
|
---|
5599 |
|
---|
5600 |
|
---|
5601 |
|
---|
5602 |
|
---|
5603 |
|
---|
5604 |
|
---|
5605 |
|
---|
5606 |
|
---|
5607 | if test "$CANADIAN" = yes; then
|
---|
5608 | CANADIAN_TRUE=
|
---|
5609 | CANADIAN_FALSE='#'
|
---|
5610 | else
|
---|
5611 | CANADIAN_TRUE='#'
|
---|
5612 | CANADIAN_FALSE=
|
---|
5613 | fi
|
---|
5614 |
|
---|
5615 |
|
---|
5616 | if test "$NULL_TARGET" = yes; then
|
---|
5617 | NULL_TARGET_TRUE=
|
---|
5618 | NULL_TARGET_FALSE='#'
|
---|
5619 | else
|
---|
5620 | NULL_TARGET_TRUE='#'
|
---|
5621 | NULL_TARGET_FALSE=
|
---|
5622 | fi
|
---|
5623 |
|
---|
5624 |
|
---|
5625 | if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
|
---|
5626 | NATIVE_TRUE=
|
---|
5627 | NATIVE_FALSE='#'
|
---|
5628 | else
|
---|
5629 | NATIVE_TRUE='#'
|
---|
5630 | NATIVE_FALSE=
|
---|
5631 | fi
|
---|
5632 |
|
---|
5633 |
|
---|
5634 | if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
|
---|
5635 | NEEDS_DATA_START_TRUE=
|
---|
5636 | NEEDS_DATA_START_FALSE='#'
|
---|
5637 | else
|
---|
5638 | NEEDS_DATA_START_TRUE='#'
|
---|
5639 | NEEDS_DATA_START_FALSE=
|
---|
5640 | fi
|
---|
5641 |
|
---|
5642 |
|
---|
5643 | if test -n "$with_cross_host" &&
|
---|
5644 | test x"$with_cross_host" != x"no"; then
|
---|
5645 | toolexecdir='$(exec_prefix)/$(target_alias)'
|
---|
5646 | toolexecmainlibdir='$(toolexecdir)/lib'
|
---|
5647 | else
|
---|
5648 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
|
---|
5649 | toolexecmainlibdir='$(libdir)'
|
---|
5650 | fi
|
---|
5651 | toolexeclibdir=$toolexecmainlibdir/`$CC -print-multi-os-directory`
|
---|
5652 |
|
---|
5653 |
|
---|
5654 |
|
---|
5655 |
|
---|
5656 |
|
---|
5657 |
|
---|
5658 | # Determine gcj version number.
|
---|
5659 |
|
---|
5660 | gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
|
---|
5661 |
|
---|
5662 | GCJVERSION=$gcjversion
|
---|
5663 |
|
---|
5664 | cat >> confdefs.h <<EOF
|
---|
5665 | #define GCJVERSION "$GCJVERSION"
|
---|
5666 | EOF
|
---|
5667 |
|
---|
5668 |
|
---|
5669 | echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
|
---|
5670 | echo "configure:5671: checking for g++ -ffloat-store bug" >&5
|
---|
5671 | save_CFLAGS="$CFLAGS"
|
---|
5672 | CFLAGS="-x c++ -O2 -ffloat-store"
|
---|
5673 | cat > conftest.$ac_ext <<EOF
|
---|
5674 | #line 5675 "configure"
|
---|
5675 | #include "confdefs.h"
|
---|
5676 | #include <math.h>
|
---|
5677 | int main() {
|
---|
5678 |
|
---|
5679 | ; return 0; }
|
---|
5680 | EOF
|
---|
5681 | if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5682 | rm -rf conftest*
|
---|
5683 | echo "$ac_t""no" 1>&6
|
---|
5684 | else
|
---|
5685 | echo "configure: failed program was:" >&5
|
---|
5686 | cat conftest.$ac_ext >&5
|
---|
5687 | rm -rf conftest*
|
---|
5688 | cat >> confdefs.h <<\EOF
|
---|
5689 | #define __NO_MATH_INLINES 1
|
---|
5690 | EOF
|
---|
5691 |
|
---|
5692 | echo "$ac_t""yes" 1>&6
|
---|
5693 | fi
|
---|
5694 | rm -f conftest*
|
---|
5695 | CFLAGS="$save_CFLAGS"
|
---|
5696 |
|
---|
5697 | 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 pwd.h sys/config.h stdint.h langinfo.h locale.h
|
---|
5698 | do
|
---|
5699 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
5700 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
5701 | echo "configure:5702: checking for $ac_hdr" >&5
|
---|
5702 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
5703 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5704 | else
|
---|
5705 | cat > conftest.$ac_ext <<EOF
|
---|
5706 | #line 5707 "configure"
|
---|
5707 | #include "confdefs.h"
|
---|
5708 | #include <$ac_hdr>
|
---|
5709 | EOF
|
---|
5710 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5711 | { (eval echo configure:5712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5712 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5713 | if test -z "$ac_err"; then
|
---|
5714 | rm -rf conftest*
|
---|
5715 | eval "ac_cv_header_$ac_safe=yes"
|
---|
5716 | else
|
---|
5717 | echo "$ac_err" >&5
|
---|
5718 | echo "configure: failed program was:" >&5
|
---|
5719 | cat conftest.$ac_ext >&5
|
---|
5720 | rm -rf conftest*
|
---|
5721 | eval "ac_cv_header_$ac_safe=no"
|
---|
5722 | fi
|
---|
5723 | rm -f conftest*
|
---|
5724 | fi
|
---|
5725 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
5726 | echo "$ac_t""yes" 1>&6
|
---|
5727 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
5728 | cat >> confdefs.h <<EOF
|
---|
5729 | #define $ac_tr_hdr 1
|
---|
5730 | EOF
|
---|
5731 |
|
---|
5732 | else
|
---|
5733 | echo "$ac_t""no" 1>&6
|
---|
5734 | fi
|
---|
5735 | done
|
---|
5736 |
|
---|
5737 | for ac_hdr in dirent.h
|
---|
5738 | do
|
---|
5739 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
5740 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
5741 | echo "configure:5742: checking for $ac_hdr" >&5
|
---|
5742 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
5743 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5744 | else
|
---|
5745 | cat > conftest.$ac_ext <<EOF
|
---|
5746 | #line 5747 "configure"
|
---|
5747 | #include "confdefs.h"
|
---|
5748 | #include <$ac_hdr>
|
---|
5749 | EOF
|
---|
5750 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5751 | { (eval echo configure:5752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5752 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5753 | if test -z "$ac_err"; then
|
---|
5754 | rm -rf conftest*
|
---|
5755 | eval "ac_cv_header_$ac_safe=yes"
|
---|
5756 | else
|
---|
5757 | echo "$ac_err" >&5
|
---|
5758 | echo "configure: failed program was:" >&5
|
---|
5759 | cat conftest.$ac_ext >&5
|
---|
5760 | rm -rf conftest*
|
---|
5761 | eval "ac_cv_header_$ac_safe=no"
|
---|
5762 | fi
|
---|
5763 | rm -f conftest*
|
---|
5764 | fi
|
---|
5765 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
5766 | echo "$ac_t""yes" 1>&6
|
---|
5767 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
5768 | cat >> confdefs.h <<EOF
|
---|
5769 | #define $ac_tr_hdr 1
|
---|
5770 | EOF
|
---|
5771 |
|
---|
5772 | else
|
---|
5773 | echo "$ac_t""no" 1>&6
|
---|
5774 | fi
|
---|
5775 | done
|
---|
5776 |
|
---|
5777 | for ac_hdr in inttypes.h
|
---|
5778 | do
|
---|
5779 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
5780 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
5781 | echo "configure:5782: checking for $ac_hdr" >&5
|
---|
5782 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
5783 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5784 | else
|
---|
5785 | cat > conftest.$ac_ext <<EOF
|
---|
5786 | #line 5787 "configure"
|
---|
5787 | #include "confdefs.h"
|
---|
5788 | #include <$ac_hdr>
|
---|
5789 | EOF
|
---|
5790 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5791 | { (eval echo configure:5792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5792 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5793 | if test -z "$ac_err"; then
|
---|
5794 | rm -rf conftest*
|
---|
5795 | eval "ac_cv_header_$ac_safe=yes"
|
---|
5796 | else
|
---|
5797 | echo "$ac_err" >&5
|
---|
5798 | echo "configure: failed program was:" >&5
|
---|
5799 | cat conftest.$ac_ext >&5
|
---|
5800 | rm -rf conftest*
|
---|
5801 | eval "ac_cv_header_$ac_safe=no"
|
---|
5802 | fi
|
---|
5803 | rm -f conftest*
|
---|
5804 | fi
|
---|
5805 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
5806 | echo "$ac_t""yes" 1>&6
|
---|
5807 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
5808 | cat >> confdefs.h <<EOF
|
---|
5809 | #define $ac_tr_hdr 1
|
---|
5810 | EOF
|
---|
5811 |
|
---|
5812 | cat >> confdefs.h <<\EOF
|
---|
5813 | #define HAVE_INTTYPES_H 1
|
---|
5814 | EOF
|
---|
5815 |
|
---|
5816 | cat >> confdefs.h <<\EOF
|
---|
5817 | #define JV_HAVE_INTTYPES_H 1
|
---|
5818 | EOF
|
---|
5819 |
|
---|
5820 |
|
---|
5821 | else
|
---|
5822 | echo "$ac_t""no" 1>&6
|
---|
5823 | fi
|
---|
5824 | done
|
---|
5825 |
|
---|
5826 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
---|
5827 | echo "configure:5828: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
---|
5828 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
|
---|
5829 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5830 | else
|
---|
5831 | cat > conftest.$ac_ext <<EOF
|
---|
5832 | #line 5833 "configure"
|
---|
5833 | #include "confdefs.h"
|
---|
5834 | #include <sys/types.h>
|
---|
5835 | #include <sys/wait.h>
|
---|
5836 | #ifndef WEXITSTATUS
|
---|
5837 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
---|
5838 | #endif
|
---|
5839 | #ifndef WIFEXITED
|
---|
5840 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
---|
5841 | #endif
|
---|
5842 | int main() {
|
---|
5843 | int s;
|
---|
5844 | wait (&s);
|
---|
5845 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
---|
5846 | ; return 0; }
|
---|
5847 | EOF
|
---|
5848 | if { (eval echo configure:5849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5849 | rm -rf conftest*
|
---|
5850 | ac_cv_header_sys_wait_h=yes
|
---|
5851 | else
|
---|
5852 | echo "configure: failed program was:" >&5
|
---|
5853 | cat conftest.$ac_ext >&5
|
---|
5854 | rm -rf conftest*
|
---|
5855 | ac_cv_header_sys_wait_h=no
|
---|
5856 | fi
|
---|
5857 | rm -f conftest*
|
---|
5858 | fi
|
---|
5859 |
|
---|
5860 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
---|
5861 | if test $ac_cv_header_sys_wait_h = yes; then
|
---|
5862 | cat >> confdefs.h <<\EOF
|
---|
5863 | #define HAVE_SYS_WAIT_H 1
|
---|
5864 | EOF
|
---|
5865 |
|
---|
5866 | fi
|
---|
5867 |
|
---|
5868 |
|
---|
5869 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
5870 | echo "configure:5871: checking for ANSI C header files" >&5
|
---|
5871 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
5872 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5873 | else
|
---|
5874 | cat > conftest.$ac_ext <<EOF
|
---|
5875 | #line 5876 "configure"
|
---|
5876 | #include "confdefs.h"
|
---|
5877 | #include <stdlib.h>
|
---|
5878 | #include <stdarg.h>
|
---|
5879 | #include <string.h>
|
---|
5880 | #include <float.h>
|
---|
5881 | EOF
|
---|
5882 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5883 | { (eval echo configure:5884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5884 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5885 | if test -z "$ac_err"; then
|
---|
5886 | rm -rf conftest*
|
---|
5887 | ac_cv_header_stdc=yes
|
---|
5888 | else
|
---|
5889 | echo "$ac_err" >&5
|
---|
5890 | echo "configure: failed program was:" >&5
|
---|
5891 | cat conftest.$ac_ext >&5
|
---|
5892 | rm -rf conftest*
|
---|
5893 | ac_cv_header_stdc=no
|
---|
5894 | fi
|
---|
5895 | rm -f conftest*
|
---|
5896 |
|
---|
5897 | if test $ac_cv_header_stdc = yes; then
|
---|
5898 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5899 | cat > conftest.$ac_ext <<EOF
|
---|
5900 | #line 5901 "configure"
|
---|
5901 | #include "confdefs.h"
|
---|
5902 | #include <string.h>
|
---|
5903 | EOF
|
---|
5904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5905 | egrep "memchr" >/dev/null 2>&1; then
|
---|
5906 | :
|
---|
5907 | else
|
---|
5908 | rm -rf conftest*
|
---|
5909 | ac_cv_header_stdc=no
|
---|
5910 | fi
|
---|
5911 | rm -f conftest*
|
---|
5912 |
|
---|
5913 | fi
|
---|
5914 |
|
---|
5915 | if test $ac_cv_header_stdc = yes; then
|
---|
5916 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5917 | cat > conftest.$ac_ext <<EOF
|
---|
5918 | #line 5919 "configure"
|
---|
5919 | #include "confdefs.h"
|
---|
5920 | #include <stdlib.h>
|
---|
5921 | EOF
|
---|
5922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5923 | egrep "free" >/dev/null 2>&1; then
|
---|
5924 | :
|
---|
5925 | else
|
---|
5926 | rm -rf conftest*
|
---|
5927 | ac_cv_header_stdc=no
|
---|
5928 | fi
|
---|
5929 | rm -f conftest*
|
---|
5930 |
|
---|
5931 | fi
|
---|
5932 |
|
---|
5933 | if test $ac_cv_header_stdc = yes; then
|
---|
5934 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5935 | if test "$cross_compiling" = yes; then
|
---|
5936 | :
|
---|
5937 | else
|
---|
5938 | cat > conftest.$ac_ext <<EOF
|
---|
5939 | #line 5940 "configure"
|
---|
5940 | #include "confdefs.h"
|
---|
5941 | #include <ctype.h>
|
---|
5942 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5943 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5944 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5945 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
5946 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
5947 | exit (0); }
|
---|
5948 |
|
---|
5949 | EOF
|
---|
5950 | if { (eval echo configure:5951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
5951 | then
|
---|
5952 | :
|
---|
5953 | else
|
---|
5954 | echo "configure: failed program was:" >&5
|
---|
5955 | cat conftest.$ac_ext >&5
|
---|
5956 | rm -fr conftest*
|
---|
5957 | ac_cv_header_stdc=no
|
---|
5958 | fi
|
---|
5959 | rm -fr conftest*
|
---|
5960 | fi
|
---|
5961 |
|
---|
5962 | fi
|
---|
5963 | fi
|
---|
5964 |
|
---|
5965 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
5966 | if test $ac_cv_header_stdc = yes; then
|
---|
5967 | cat >> confdefs.h <<\EOF
|
---|
5968 | #define STDC_HEADERS 1
|
---|
5969 | EOF
|
---|
5970 |
|
---|
5971 | fi
|
---|
5972 |
|
---|
5973 | echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
---|
5974 | echo "configure:5975: checking for ssize_t" >&5
|
---|
5975 | if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
|
---|
5976 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5977 | else
|
---|
5978 | cat > conftest.$ac_ext <<EOF
|
---|
5979 | #line 5980 "configure"
|
---|
5980 | #include "confdefs.h"
|
---|
5981 | #include <sys/types.h>
|
---|
5982 | #if STDC_HEADERS
|
---|
5983 | #include <stdlib.h>
|
---|
5984 | #include <stddef.h>
|
---|
5985 | #endif
|
---|
5986 | EOF
|
---|
5987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5988 | egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
5989 | rm -rf conftest*
|
---|
5990 | ac_cv_type_ssize_t=yes
|
---|
5991 | else
|
---|
5992 | rm -rf conftest*
|
---|
5993 | ac_cv_type_ssize_t=no
|
---|
5994 | fi
|
---|
5995 | rm -f conftest*
|
---|
5996 |
|
---|
5997 | fi
|
---|
5998 | echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
|
---|
5999 | if test $ac_cv_type_ssize_t = no; then
|
---|
6000 | cat >> confdefs.h <<\EOF
|
---|
6001 | #define ssize_t int
|
---|
6002 | EOF
|
---|
6003 |
|
---|
6004 | fi
|
---|
6005 |
|
---|
6006 |
|
---|
6007 | echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
|
---|
6008 | echo "configure:6009: checking for in_addr_t" >&5
|
---|
6009 | cat > conftest.$ac_ext <<EOF
|
---|
6010 | #line 6011 "configure"
|
---|
6011 | #include "confdefs.h"
|
---|
6012 | #include <sys/types.h>
|
---|
6013 | #if STDC_HEADERS
|
---|
6014 | #include <stdlib.h>
|
---|
6015 | #include <stddef.h>
|
---|
6016 | #endif
|
---|
6017 | #if HAVE_NETINET_IN_H
|
---|
6018 | #include <netinet/in.h>
|
---|
6019 | #endif
|
---|
6020 | int main() {
|
---|
6021 | in_addr_t foo;
|
---|
6022 | ; return 0; }
|
---|
6023 | EOF
|
---|
6024 | if { (eval echo configure:6025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6025 | rm -rf conftest*
|
---|
6026 | cat >> confdefs.h <<\EOF
|
---|
6027 | #define HAVE_IN_ADDR_T 1
|
---|
6028 | EOF
|
---|
6029 |
|
---|
6030 | echo "$ac_t""yes" 1>&6
|
---|
6031 | else
|
---|
6032 | echo "configure: failed program was:" >&5
|
---|
6033 | cat conftest.$ac_ext >&5
|
---|
6034 | rm -rf conftest*
|
---|
6035 | echo "$ac_t""no" 1>&6
|
---|
6036 | fi
|
---|
6037 | rm -f conftest*
|
---|
6038 |
|
---|
6039 | echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
|
---|
6040 | echo "configure:6041: checking whether struct ip_mreq is in netinet/in.h" >&5
|
---|
6041 | cat > conftest.$ac_ext <<EOF
|
---|
6042 | #line 6043 "configure"
|
---|
6043 | #include "confdefs.h"
|
---|
6044 | #include <netinet/in.h>
|
---|
6045 | int main() {
|
---|
6046 | struct ip_mreq mreq;
|
---|
6047 | ; return 0; }
|
---|
6048 | EOF
|
---|
6049 | if { (eval echo configure:6050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6050 | rm -rf conftest*
|
---|
6051 | cat >> confdefs.h <<\EOF
|
---|
6052 | #define HAVE_STRUCT_IP_MREQ 1
|
---|
6053 | EOF
|
---|
6054 |
|
---|
6055 | echo "$ac_t""yes" 1>&6
|
---|
6056 | else
|
---|
6057 | echo "configure: failed program was:" >&5
|
---|
6058 | cat conftest.$ac_ext >&5
|
---|
6059 | rm -rf conftest*
|
---|
6060 | echo "$ac_t""no" 1>&6
|
---|
6061 | fi
|
---|
6062 | rm -f conftest*
|
---|
6063 |
|
---|
6064 | echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
|
---|
6065 | echo "configure:6066: checking whether struct ipv6_mreq is in netinet/in.h" >&5
|
---|
6066 | cat > conftest.$ac_ext <<EOF
|
---|
6067 | #line 6068 "configure"
|
---|
6068 | #include "confdefs.h"
|
---|
6069 | #include <netinet/in.h>
|
---|
6070 | int main() {
|
---|
6071 | struct ipv6_mreq mreq6;
|
---|
6072 | ; return 0; }
|
---|
6073 | EOF
|
---|
6074 | if { (eval echo configure:6075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6075 | rm -rf conftest*
|
---|
6076 | cat >> confdefs.h <<\EOF
|
---|
6077 | #define HAVE_STRUCT_IPV6_MREQ 1
|
---|
6078 | EOF
|
---|
6079 |
|
---|
6080 | echo "$ac_t""yes" 1>&6
|
---|
6081 | else
|
---|
6082 | echo "configure: failed program was:" >&5
|
---|
6083 | cat conftest.$ac_ext >&5
|
---|
6084 | rm -rf conftest*
|
---|
6085 | echo "$ac_t""no" 1>&6
|
---|
6086 | fi
|
---|
6087 | rm -f conftest*
|
---|
6088 |
|
---|
6089 | echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
|
---|
6090 | echo "configure:6091: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
|
---|
6091 | cat > conftest.$ac_ext <<EOF
|
---|
6092 | #line 6093 "configure"
|
---|
6093 | #include "confdefs.h"
|
---|
6094 | #include <netinet/in.h>
|
---|
6095 | int main() {
|
---|
6096 | struct sockaddr_in6 addr6;
|
---|
6097 | ; return 0; }
|
---|
6098 | EOF
|
---|
6099 | if { (eval echo configure:6100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6100 | rm -rf conftest*
|
---|
6101 | cat >> confdefs.h <<\EOF
|
---|
6102 | #define HAVE_INET6 1
|
---|
6103 | EOF
|
---|
6104 |
|
---|
6105 | echo "$ac_t""yes" 1>&6
|
---|
6106 | else
|
---|
6107 | echo "configure: failed program was:" >&5
|
---|
6108 | cat conftest.$ac_ext >&5
|
---|
6109 | rm -rf conftest*
|
---|
6110 | echo "$ac_t""no" 1>&6
|
---|
6111 | fi
|
---|
6112 | rm -f conftest*
|
---|
6113 |
|
---|
6114 | echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
|
---|
6115 | echo "configure:6116: checking for socklen_t in sys/socket.h" >&5
|
---|
6116 | cat > conftest.$ac_ext <<EOF
|
---|
6117 | #line 6118 "configure"
|
---|
6118 | #include "confdefs.h"
|
---|
6119 | #define _POSIX_PII_SOCKET
|
---|
6120 | #include <sys/types.h>
|
---|
6121 | #include <sys/socket.h>
|
---|
6122 | int main() {
|
---|
6123 | socklen_t x = 5;
|
---|
6124 | ; return 0; }
|
---|
6125 | EOF
|
---|
6126 | if { (eval echo configure:6127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6127 | rm -rf conftest*
|
---|
6128 | cat >> confdefs.h <<\EOF
|
---|
6129 | #define HAVE_SOCKLEN_T 1
|
---|
6130 | EOF
|
---|
6131 |
|
---|
6132 | echo "$ac_t""yes" 1>&6
|
---|
6133 | else
|
---|
6134 | echo "configure: failed program was:" >&5
|
---|
6135 | cat conftest.$ac_ext >&5
|
---|
6136 | rm -rf conftest*
|
---|
6137 | echo "$ac_t""no" 1>&6
|
---|
6138 | fi
|
---|
6139 | rm -f conftest*
|
---|
6140 |
|
---|
6141 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
|
---|
6142 | echo "configure:6143: checking for tm_gmtoff in struct tm" >&5
|
---|
6143 | cat > conftest.$ac_ext <<EOF
|
---|
6144 | #line 6145 "configure"
|
---|
6145 | #include "confdefs.h"
|
---|
6146 | #include <time.h>
|
---|
6147 | int main() {
|
---|
6148 | struct tm tim; tim.tm_gmtoff = 0;
|
---|
6149 | ; return 0; }
|
---|
6150 | EOF
|
---|
6151 | if { (eval echo configure:6152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6152 | rm -rf conftest*
|
---|
6153 | cat >> confdefs.h <<\EOF
|
---|
6154 | #define STRUCT_TM_HAS_GMTOFF 1
|
---|
6155 | EOF
|
---|
6156 |
|
---|
6157 | echo "$ac_t""yes" 1>&6
|
---|
6158 | else
|
---|
6159 | echo "configure: failed program was:" >&5
|
---|
6160 | cat conftest.$ac_ext >&5
|
---|
6161 | rm -rf conftest*
|
---|
6162 | echo "$ac_t""no" 1>&6
|
---|
6163 | echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
|
---|
6164 | echo "configure:6165: checking for global timezone variable" >&5
|
---|
6165 | cat > conftest.$ac_ext <<EOF
|
---|
6166 | #line 6167 "configure"
|
---|
6167 | #include "confdefs.h"
|
---|
6168 | #include <time.h>
|
---|
6169 | int main() {
|
---|
6170 | long z2 = timezone;
|
---|
6171 | ; return 0; }
|
---|
6172 | EOF
|
---|
6173 | if { (eval echo configure:6174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6174 | rm -rf conftest*
|
---|
6175 | cat >> confdefs.h <<\EOF
|
---|
6176 | #define HAVE_TIMEZONE 1
|
---|
6177 | EOF
|
---|
6178 |
|
---|
6179 | echo "$ac_t""yes" 1>&6
|
---|
6180 | else
|
---|
6181 | echo "configure: failed program was:" >&5
|
---|
6182 | cat conftest.$ac_ext >&5
|
---|
6183 | rm -rf conftest*
|
---|
6184 | echo "$ac_t""no" 1>&6
|
---|
6185 | fi
|
---|
6186 | rm -f conftest*
|
---|
6187 | fi
|
---|
6188 | rm -f conftest*
|
---|
6189 |
|
---|
6190 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
6191 | # for constant arguments. Useless!
|
---|
6192 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
6193 | echo "configure:6194: checking for working alloca.h" >&5
|
---|
6194 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
6195 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6196 | else
|
---|
6197 | cat > conftest.$ac_ext <<EOF
|
---|
6198 | #line 6199 "configure"
|
---|
6199 | #include "confdefs.h"
|
---|
6200 | #include <alloca.h>
|
---|
6201 | int main() {
|
---|
6202 | char *p = alloca(2 * sizeof(int));
|
---|
6203 | ; return 0; }
|
---|
6204 | EOF
|
---|
6205 | if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6206 | rm -rf conftest*
|
---|
6207 | ac_cv_header_alloca_h=yes
|
---|
6208 | else
|
---|
6209 | echo "configure: failed program was:" >&5
|
---|
6210 | cat conftest.$ac_ext >&5
|
---|
6211 | rm -rf conftest*
|
---|
6212 | ac_cv_header_alloca_h=no
|
---|
6213 | fi
|
---|
6214 | rm -f conftest*
|
---|
6215 | fi
|
---|
6216 |
|
---|
6217 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
6218 | if test $ac_cv_header_alloca_h = yes; then
|
---|
6219 | cat >> confdefs.h <<\EOF
|
---|
6220 | #define HAVE_ALLOCA_H 1
|
---|
6221 | EOF
|
---|
6222 |
|
---|
6223 | fi
|
---|
6224 |
|
---|
6225 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
6226 | echo "configure:6227: checking for alloca" >&5
|
---|
6227 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
6228 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6229 | else
|
---|
6230 | cat > conftest.$ac_ext <<EOF
|
---|
6231 | #line 6232 "configure"
|
---|
6232 | #include "confdefs.h"
|
---|
6233 |
|
---|
6234 | #ifdef __GNUC__
|
---|
6235 | # define alloca __builtin_alloca
|
---|
6236 | #else
|
---|
6237 | # ifdef _MSC_VER
|
---|
6238 | # include <malloc.h>
|
---|
6239 | # define alloca _alloca
|
---|
6240 | # else
|
---|
6241 | # if HAVE_ALLOCA_H
|
---|
6242 | # include <alloca.h>
|
---|
6243 | # else
|
---|
6244 | # ifdef _AIX
|
---|
6245 | #pragma alloca
|
---|
6246 | # else
|
---|
6247 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
6248 | char *alloca ();
|
---|
6249 | # endif
|
---|
6250 | # endif
|
---|
6251 | # endif
|
---|
6252 | # endif
|
---|
6253 | #endif
|
---|
6254 |
|
---|
6255 | int main() {
|
---|
6256 | char *p = (char *) alloca(1);
|
---|
6257 | ; return 0; }
|
---|
6258 | EOF
|
---|
6259 | if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6260 | rm -rf conftest*
|
---|
6261 | ac_cv_func_alloca_works=yes
|
---|
6262 | else
|
---|
6263 | echo "configure: failed program was:" >&5
|
---|
6264 | cat conftest.$ac_ext >&5
|
---|
6265 | rm -rf conftest*
|
---|
6266 | ac_cv_func_alloca_works=no
|
---|
6267 | fi
|
---|
6268 | rm -f conftest*
|
---|
6269 | fi
|
---|
6270 |
|
---|
6271 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
6272 | if test $ac_cv_func_alloca_works = yes; then
|
---|
6273 | cat >> confdefs.h <<\EOF
|
---|
6274 | #define HAVE_ALLOCA 1
|
---|
6275 | EOF
|
---|
6276 |
|
---|
6277 | fi
|
---|
6278 |
|
---|
6279 | if test $ac_cv_func_alloca_works = no; then
|
---|
6280 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
6281 | # that cause trouble. Some versions do not even contain alloca or
|
---|
6282 | # contain a buggy version. If you still want to use their alloca,
|
---|
6283 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
6284 | ALLOCA=alloca.${ac_objext}
|
---|
6285 | cat >> confdefs.h <<\EOF
|
---|
6286 | #define C_ALLOCA 1
|
---|
6287 | EOF
|
---|
6288 |
|
---|
6289 |
|
---|
6290 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
6291 | echo "configure:6292: checking whether alloca needs Cray hooks" >&5
|
---|
6292 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
6293 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6294 | else
|
---|
6295 | cat > conftest.$ac_ext <<EOF
|
---|
6296 | #line 6297 "configure"
|
---|
6297 | #include "confdefs.h"
|
---|
6298 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
6299 | webecray
|
---|
6300 | #else
|
---|
6301 | wenotbecray
|
---|
6302 | #endif
|
---|
6303 |
|
---|
6304 | EOF
|
---|
6305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6306 | egrep "webecray" >/dev/null 2>&1; then
|
---|
6307 | rm -rf conftest*
|
---|
6308 | ac_cv_os_cray=yes
|
---|
6309 | else
|
---|
6310 | rm -rf conftest*
|
---|
6311 | ac_cv_os_cray=no
|
---|
6312 | fi
|
---|
6313 | rm -f conftest*
|
---|
6314 |
|
---|
6315 | fi
|
---|
6316 |
|
---|
6317 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
6318 | if test $ac_cv_os_cray = yes; then
|
---|
6319 | for ac_func in _getb67 GETB67 getb67; do
|
---|
6320 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
6321 | echo "configure:6322: checking for $ac_func" >&5
|
---|
6322 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
6323 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6324 | else
|
---|
6325 | cat > conftest.$ac_ext <<EOF
|
---|
6326 | #line 6327 "configure"
|
---|
6327 | #include "confdefs.h"
|
---|
6328 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6329 | which can conflict with char $ac_func(); below. */
|
---|
6330 | #include <assert.h>
|
---|
6331 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6332 | /* We use char because int might match the return type of a gcc2
|
---|
6333 | builtin and then its argument prototype would still apply. */
|
---|
6334 | char $ac_func();
|
---|
6335 |
|
---|
6336 | int main() {
|
---|
6337 |
|
---|
6338 | /* The GNU C library defines this for functions which it implements
|
---|
6339 | to always fail with ENOSYS. Some functions are actually named
|
---|
6340 | something starting with __ and the normal name is an alias. */
|
---|
6341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6342 | choke me
|
---|
6343 | #else
|
---|
6344 | $ac_func();
|
---|
6345 | #endif
|
---|
6346 |
|
---|
6347 | ; return 0; }
|
---|
6348 | EOF
|
---|
6349 | if { (eval echo configure:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6350 | rm -rf conftest*
|
---|
6351 | eval "ac_cv_func_$ac_func=yes"
|
---|
6352 | else
|
---|
6353 | echo "configure: failed program was:" >&5
|
---|
6354 | cat conftest.$ac_ext >&5
|
---|
6355 | rm -rf conftest*
|
---|
6356 | eval "ac_cv_func_$ac_func=no"
|
---|
6357 | fi
|
---|
6358 | rm -f conftest*
|
---|
6359 | fi
|
---|
6360 |
|
---|
6361 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
6362 | echo "$ac_t""yes" 1>&6
|
---|
6363 | cat >> confdefs.h <<EOF
|
---|
6364 | #define CRAY_STACKSEG_END $ac_func
|
---|
6365 | EOF
|
---|
6366 |
|
---|
6367 | break
|
---|
6368 | else
|
---|
6369 | echo "$ac_t""no" 1>&6
|
---|
6370 | fi
|
---|
6371 |
|
---|
6372 | done
|
---|
6373 | fi
|
---|
6374 |
|
---|
6375 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
6376 | echo "configure:6377: checking stack direction for C alloca" >&5
|
---|
6377 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
6378 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6379 | else
|
---|
6380 | if test "$cross_compiling" = yes; then
|
---|
6381 | ac_cv_c_stack_direction=0
|
---|
6382 | else
|
---|
6383 | cat > conftest.$ac_ext <<EOF
|
---|
6384 | #line 6385 "configure"
|
---|
6385 | #include "confdefs.h"
|
---|
6386 | find_stack_direction ()
|
---|
6387 | {
|
---|
6388 | static char *addr = 0;
|
---|
6389 | auto char dummy;
|
---|
6390 | if (addr == 0)
|
---|
6391 | {
|
---|
6392 | addr = &dummy;
|
---|
6393 | return find_stack_direction ();
|
---|
6394 | }
|
---|
6395 | else
|
---|
6396 | return (&dummy > addr) ? 1 : -1;
|
---|
6397 | }
|
---|
6398 | main ()
|
---|
6399 | {
|
---|
6400 | exit (find_stack_direction() < 0);
|
---|
6401 | }
|
---|
6402 | EOF
|
---|
6403 | if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
6404 | then
|
---|
6405 | ac_cv_c_stack_direction=1
|
---|
6406 | else
|
---|
6407 | echo "configure: failed program was:" >&5
|
---|
6408 | cat conftest.$ac_ext >&5
|
---|
6409 | rm -fr conftest*
|
---|
6410 | ac_cv_c_stack_direction=-1
|
---|
6411 | fi
|
---|
6412 | rm -fr conftest*
|
---|
6413 | fi
|
---|
6414 |
|
---|
6415 | fi
|
---|
6416 |
|
---|
6417 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
6418 | cat >> confdefs.h <<EOF
|
---|
6419 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
6420 | EOF
|
---|
6421 |
|
---|
6422 | fi
|
---|
6423 |
|
---|
6424 |
|
---|
6425 | for ac_prog in perl
|
---|
6426 | do
|
---|
6427 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
6428 | set dummy $ac_prog; ac_word=$2
|
---|
6429 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
6430 | echo "configure:6431: checking for $ac_word" >&5
|
---|
6431 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
|
---|
6432 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6433 | else
|
---|
6434 | if test -n "$PERL"; then
|
---|
6435 | ac_cv_prog_PERL="$PERL" # Let the user override the test.
|
---|
6436 | else
|
---|
6437 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
6438 | ac_dummy="$PATH"
|
---|
6439 | for ac_dir in $ac_dummy; do
|
---|
6440 | test -z "$ac_dir" && ac_dir=.
|
---|
6441 | if test -f $ac_dir/$ac_word; then
|
---|
6442 | ac_cv_prog_PERL="$ac_prog"
|
---|
6443 | break
|
---|
6444 | fi
|
---|
6445 | done
|
---|
6446 | IFS="$ac_save_ifs"
|
---|
6447 | fi
|
---|
6448 | fi
|
---|
6449 | PERL="$ac_cv_prog_PERL"
|
---|
6450 | if test -n "$PERL"; then
|
---|
6451 | echo "$ac_t""$PERL" 1>&6
|
---|
6452 | else
|
---|
6453 | echo "$ac_t""no" 1>&6
|
---|
6454 | fi
|
---|
6455 |
|
---|
6456 | test -n "$PERL" && break
|
---|
6457 | done
|
---|
6458 | test -n "$PERL" || PERL="false"
|
---|
6459 |
|
---|
6460 |
|
---|
6461 | SYSDEP_SOURCES=
|
---|
6462 |
|
---|
6463 | case "${host}" in
|
---|
6464 | i?86-*-linux*)
|
---|
6465 | SIGNAL_HANDLER=include/i386-signal.h
|
---|
6466 | ;;
|
---|
6467 | sparc*-sun-solaris*)
|
---|
6468 | SIGNAL_HANDLER=include/sparc-signal.h
|
---|
6469 | ;;
|
---|
6470 | # ia64-*)
|
---|
6471 | # SYSDEP_SOURCES=sysdep/ia64.c
|
---|
6472 | # test -d sysdep || mkdir sysdep
|
---|
6473 | # ;;
|
---|
6474 | ia64-*-linux*)
|
---|
6475 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
---|
6476 | ;;
|
---|
6477 | powerpc-*-linux*)
|
---|
6478 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
---|
6479 | ;;
|
---|
6480 | alpha*-*-linux*)
|
---|
6481 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
---|
6482 | ;;
|
---|
6483 | sparc*-*-linux*)
|
---|
6484 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
---|
6485 | ;;
|
---|
6486 | *mingw*)
|
---|
6487 | SIGNAL_HANDLER=include/win32-signal.h
|
---|
6488 | ;;
|
---|
6489 | *)
|
---|
6490 | SIGNAL_HANDLER=include/default-signal.h
|
---|
6491 | ;;
|
---|
6492 | esac
|
---|
6493 |
|
---|
6494 | # If we're using sjlj exceptions, forget what we just learned.
|
---|
6495 | if test "$enable_sjlj_exceptions" = yes; then
|
---|
6496 | SIGNAL_HANDLER=include/default-signal.h
|
---|
6497 | fi
|
---|
6498 |
|
---|
6499 |
|
---|
6500 |
|
---|
6501 |
|
---|
6502 |
|
---|
6503 | if test "${multilib}" = "yes"; then
|
---|
6504 | multilib_arg="--enable-multilib"
|
---|
6505 | else
|
---|
6506 | multilib_arg=
|
---|
6507 | fi
|
---|
6508 |
|
---|
6509 | # If we find X, set shell vars x_includes and x_libraries to the
|
---|
6510 | # paths, otherwise set no_x=yes.
|
---|
6511 | # Uses ac_ vars as temps to allow command line to override cache and checks.
|
---|
6512 | # --without-x overrides everything else, but does not touch the cache.
|
---|
6513 | echo $ac_n "checking for X""... $ac_c" 1>&6
|
---|
6514 | echo "configure:6515: checking for X" >&5
|
---|
6515 |
|
---|
6516 | # Check whether --with-x or --without-x was given.
|
---|
6517 | if test "${with_x+set}" = set; then
|
---|
6518 | withval="$with_x"
|
---|
6519 | :
|
---|
6520 | fi
|
---|
6521 |
|
---|
6522 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
---|
6523 | if test "x$with_x" = xno; then
|
---|
6524 | # The user explicitly disabled X.
|
---|
6525 | have_x=disabled
|
---|
6526 | else
|
---|
6527 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
---|
6528 | # Both variables are already set.
|
---|
6529 | have_x=yes
|
---|
6530 | else
|
---|
6531 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
|
---|
6532 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6533 | else
|
---|
6534 | # One or both of the vars are not set, and there is no cached value.
|
---|
6535 | ac_x_includes=NO ac_x_libraries=NO
|
---|
6536 | rm -fr conftestdir
|
---|
6537 | if mkdir conftestdir; then
|
---|
6538 | cd conftestdir
|
---|
6539 | # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
---|
6540 | cat > Imakefile <<'EOF'
|
---|
6541 | acfindx:
|
---|
6542 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
---|
6543 | EOF
|
---|
6544 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
---|
6545 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
6546 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
---|
6547 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
---|
6548 | for ac_extension in a so sl; do
|
---|
6549 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
---|
6550 | test -f $ac_im_libdir/libX11.$ac_extension; then
|
---|
6551 | ac_im_usrlibdir=$ac_im_libdir; break
|
---|
6552 | fi
|
---|
6553 | done
|
---|
6554 | # Screen out bogus values from the imake configuration. They are
|
---|
6555 | # bogus both because they are the default anyway, and because
|
---|
6556 | # using them would break gcc on systems where it needs fixed includes.
|
---|
6557 | case "$ac_im_incroot" in
|
---|
6558 | /usr/include) ;;
|
---|
6559 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
---|
6560 | esac
|
---|
6561 | case "$ac_im_usrlibdir" in
|
---|
6562 | /usr/lib | /lib) ;;
|
---|
6563 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
---|
6564 | esac
|
---|
6565 | fi
|
---|
6566 | cd ..
|
---|
6567 | rm -fr conftestdir
|
---|
6568 | fi
|
---|
6569 |
|
---|
6570 | if test "$ac_x_includes" = NO; then
|
---|
6571 | # Guess where to find include files, by looking for this one X11 .h file.
|
---|
6572 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
---|
6573 |
|
---|
6574 | # First, try using that file with no special directory specified.
|
---|
6575 | cat > conftest.$ac_ext <<EOF
|
---|
6576 | #line 6577 "configure"
|
---|
6577 | #include "confdefs.h"
|
---|
6578 | #include <$x_direct_test_include>
|
---|
6579 | EOF
|
---|
6580 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
6581 | { (eval echo configure:6582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
6582 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
6583 | if test -z "$ac_err"; then
|
---|
6584 | rm -rf conftest*
|
---|
6585 | # We can compile using X headers with no special include directory.
|
---|
6586 | ac_x_includes=
|
---|
6587 | else
|
---|
6588 | echo "$ac_err" >&5
|
---|
6589 | echo "configure: failed program was:" >&5
|
---|
6590 | cat conftest.$ac_ext >&5
|
---|
6591 | rm -rf conftest*
|
---|
6592 | # Look for the header file in a standard set of common directories.
|
---|
6593 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
6594 | for ac_dir in \
|
---|
6595 | /usr/X11/include \
|
---|
6596 | /usr/X11R6/include \
|
---|
6597 | /usr/X11R5/include \
|
---|
6598 | /usr/X11R4/include \
|
---|
6599 | \
|
---|
6600 | /usr/include/X11 \
|
---|
6601 | /usr/include/X11R6 \
|
---|
6602 | /usr/include/X11R5 \
|
---|
6603 | /usr/include/X11R4 \
|
---|
6604 | \
|
---|
6605 | /usr/local/X11/include \
|
---|
6606 | /usr/local/X11R6/include \
|
---|
6607 | /usr/local/X11R5/include \
|
---|
6608 | /usr/local/X11R4/include \
|
---|
6609 | \
|
---|
6610 | /usr/local/include/X11 \
|
---|
6611 | /usr/local/include/X11R6 \
|
---|
6612 | /usr/local/include/X11R5 \
|
---|
6613 | /usr/local/include/X11R4 \
|
---|
6614 | \
|
---|
6615 | /usr/X386/include \
|
---|
6616 | /usr/x386/include \
|
---|
6617 | /usr/XFree86/include/X11 \
|
---|
6618 | \
|
---|
6619 | /usr/include \
|
---|
6620 | /usr/local/include \
|
---|
6621 | /usr/unsupported/include \
|
---|
6622 | /usr/athena/include \
|
---|
6623 | /usr/local/x11r5/include \
|
---|
6624 | /usr/lpp/Xamples/include \
|
---|
6625 | \
|
---|
6626 | /usr/openwin/include \
|
---|
6627 | /usr/openwin/share/include \
|
---|
6628 | ; \
|
---|
6629 | do
|
---|
6630 | if test -r "$ac_dir/$x_direct_test_include"; then
|
---|
6631 | ac_x_includes=$ac_dir
|
---|
6632 | break
|
---|
6633 | fi
|
---|
6634 | done
|
---|
6635 | fi
|
---|
6636 | rm -f conftest*
|
---|
6637 | fi # $ac_x_includes = NO
|
---|
6638 |
|
---|
6639 | if test "$ac_x_libraries" = NO; then
|
---|
6640 | # Check for the libraries.
|
---|
6641 |
|
---|
6642 | test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
---|
6643 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
---|
6644 |
|
---|
6645 | # See if we find them without any special options.
|
---|
6646 | # Don't add to $LIBS permanently.
|
---|
6647 | ac_save_LIBS="$LIBS"
|
---|
6648 | LIBS="-l$x_direct_test_library $LIBS"
|
---|
6649 | cat > conftest.$ac_ext <<EOF
|
---|
6650 | #line 6651 "configure"
|
---|
6651 | #include "confdefs.h"
|
---|
6652 |
|
---|
6653 | int main() {
|
---|
6654 | ${x_direct_test_function}()
|
---|
6655 | ; return 0; }
|
---|
6656 | EOF
|
---|
6657 | if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6658 | rm -rf conftest*
|
---|
6659 | LIBS="$ac_save_LIBS"
|
---|
6660 | # We can link X programs with no special library path.
|
---|
6661 | ac_x_libraries=
|
---|
6662 | else
|
---|
6663 | echo "configure: failed program was:" >&5
|
---|
6664 | cat conftest.$ac_ext >&5
|
---|
6665 | rm -rf conftest*
|
---|
6666 | LIBS="$ac_save_LIBS"
|
---|
6667 | # First see if replacing the include by lib works.
|
---|
6668 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
6669 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
---|
6670 | /usr/X11/lib \
|
---|
6671 | /usr/X11R6/lib \
|
---|
6672 | /usr/X11R5/lib \
|
---|
6673 | /usr/X11R4/lib \
|
---|
6674 | \
|
---|
6675 | /usr/lib/X11 \
|
---|
6676 | /usr/lib/X11R6 \
|
---|
6677 | /usr/lib/X11R5 \
|
---|
6678 | /usr/lib/X11R4 \
|
---|
6679 | \
|
---|
6680 | /usr/local/X11/lib \
|
---|
6681 | /usr/local/X11R6/lib \
|
---|
6682 | /usr/local/X11R5/lib \
|
---|
6683 | /usr/local/X11R4/lib \
|
---|
6684 | \
|
---|
6685 | /usr/local/lib/X11 \
|
---|
6686 | /usr/local/lib/X11R6 \
|
---|
6687 | /usr/local/lib/X11R5 \
|
---|
6688 | /usr/local/lib/X11R4 \
|
---|
6689 | \
|
---|
6690 | /usr/X386/lib \
|
---|
6691 | /usr/x386/lib \
|
---|
6692 | /usr/XFree86/lib/X11 \
|
---|
6693 | \
|
---|
6694 | /usr/lib \
|
---|
6695 | /usr/local/lib \
|
---|
6696 | /usr/unsupported/lib \
|
---|
6697 | /usr/athena/lib \
|
---|
6698 | /usr/local/x11r5/lib \
|
---|
6699 | /usr/lpp/Xamples/lib \
|
---|
6700 | /lib/usr/lib/X11 \
|
---|
6701 | \
|
---|
6702 | /usr/openwin/lib \
|
---|
6703 | /usr/openwin/share/lib \
|
---|
6704 | ; \
|
---|
6705 | do
|
---|
6706 | for ac_extension in a so sl; do
|
---|
6707 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
---|
6708 | ac_x_libraries=$ac_dir
|
---|
6709 | break 2
|
---|
6710 | fi
|
---|
6711 | done
|
---|
6712 | done
|
---|
6713 | fi
|
---|
6714 | rm -f conftest*
|
---|
6715 | fi # $ac_x_libraries = NO
|
---|
6716 |
|
---|
6717 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
---|
6718 | # Didn't find X anywhere. Cache the known absence of X.
|
---|
6719 | ac_cv_have_x="have_x=no"
|
---|
6720 | else
|
---|
6721 | # Record where we found X for the cache.
|
---|
6722 | ac_cv_have_x="have_x=yes \
|
---|
6723 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
---|
6724 | fi
|
---|
6725 | fi
|
---|
6726 | fi
|
---|
6727 | eval "$ac_cv_have_x"
|
---|
6728 | fi # $with_x != no
|
---|
6729 |
|
---|
6730 | if test "$have_x" != yes; then
|
---|
6731 | echo "$ac_t""$have_x" 1>&6
|
---|
6732 | no_x=yes
|
---|
6733 | else
|
---|
6734 | # If each of the values was on the command line, it overrides each guess.
|
---|
6735 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
---|
6736 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
---|
6737 | # Update the cache value to reflect the command line values.
|
---|
6738 | ac_cv_have_x="have_x=yes \
|
---|
6739 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
---|
6740 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
---|
6741 | fi
|
---|
6742 |
|
---|
6743 | if test "$no_x" = yes; then
|
---|
6744 | # Not all programs may use this symbol, but it does not hurt to define it.
|
---|
6745 | cat >> confdefs.h <<\EOF
|
---|
6746 | #define X_DISPLAY_MISSING 1
|
---|
6747 | EOF
|
---|
6748 |
|
---|
6749 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
---|
6750 | else
|
---|
6751 | if test -n "$x_includes"; then
|
---|
6752 | X_CFLAGS="$X_CFLAGS -I$x_includes"
|
---|
6753 | fi
|
---|
6754 |
|
---|
6755 | # It would also be nice to do this for all -L options, not just this one.
|
---|
6756 | if test -n "$x_libraries"; then
|
---|
6757 | X_LIBS="$X_LIBS -L$x_libraries"
|
---|
6758 | # For Solaris; some versions of Sun CC require a space after -R and
|
---|
6759 | # others require no space. Words are not sufficient . . . .
|
---|
6760 | case "`(uname -sr) 2>/dev/null`" in
|
---|
6761 | "SunOS 5"*)
|
---|
6762 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
---|
6763 | echo "configure:6764: checking whether -R must be followed by a space" >&5
|
---|
6764 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
---|
6765 | cat > conftest.$ac_ext <<EOF
|
---|
6766 | #line 6767 "configure"
|
---|
6767 | #include "confdefs.h"
|
---|
6768 |
|
---|
6769 | int main() {
|
---|
6770 |
|
---|
6771 | ; return 0; }
|
---|
6772 | EOF
|
---|
6773 | if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6774 | rm -rf conftest*
|
---|
6775 | ac_R_nospace=yes
|
---|
6776 | else
|
---|
6777 | echo "configure: failed program was:" >&5
|
---|
6778 | cat conftest.$ac_ext >&5
|
---|
6779 | rm -rf conftest*
|
---|
6780 | ac_R_nospace=no
|
---|
6781 | fi
|
---|
6782 | rm -f conftest*
|
---|
6783 | if test $ac_R_nospace = yes; then
|
---|
6784 | echo "$ac_t""no" 1>&6
|
---|
6785 | X_LIBS="$X_LIBS -R$x_libraries"
|
---|
6786 | else
|
---|
6787 | LIBS="$ac_xsave_LIBS -R $x_libraries"
|
---|
6788 | cat > conftest.$ac_ext <<EOF
|
---|
6789 | #line 6790 "configure"
|
---|
6790 | #include "confdefs.h"
|
---|
6791 |
|
---|
6792 | int main() {
|
---|
6793 |
|
---|
6794 | ; return 0; }
|
---|
6795 | EOF
|
---|
6796 | if { (eval echo configure:6797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6797 | rm -rf conftest*
|
---|
6798 | ac_R_space=yes
|
---|
6799 | else
|
---|
6800 | echo "configure: failed program was:" >&5
|
---|
6801 | cat conftest.$ac_ext >&5
|
---|
6802 | rm -rf conftest*
|
---|
6803 | ac_R_space=no
|
---|
6804 | fi
|
---|
6805 | rm -f conftest*
|
---|
6806 | if test $ac_R_space = yes; then
|
---|
6807 | echo "$ac_t""yes" 1>&6
|
---|
6808 | X_LIBS="$X_LIBS -R $x_libraries"
|
---|
6809 | else
|
---|
6810 | echo "$ac_t""neither works" 1>&6
|
---|
6811 | fi
|
---|
6812 | fi
|
---|
6813 | LIBS="$ac_xsave_LIBS"
|
---|
6814 | esac
|
---|
6815 | fi
|
---|
6816 |
|
---|
6817 | # Check for system-dependent libraries X programs must link with.
|
---|
6818 | # Do this before checking for the system-independent R6 libraries
|
---|
6819 | # (-lICE), since we may need -lsocket or whatever for X linking.
|
---|
6820 |
|
---|
6821 | if test "$ISC" = yes; then
|
---|
6822 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
---|
6823 | else
|
---|
6824 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
---|
6825 | # libraries were built with DECnet support. And karl@cs.umb.edu says
|
---|
6826 | # the Alpha needs dnet_stub (dnet does not exist).
|
---|
6827 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
---|
6828 | echo "configure:6829: checking for dnet_ntoa in -ldnet" >&5
|
---|
6829 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
---|
6830 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
6831 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6832 | else
|
---|
6833 | ac_save_LIBS="$LIBS"
|
---|
6834 | LIBS="-ldnet $LIBS"
|
---|
6835 | cat > conftest.$ac_ext <<EOF
|
---|
6836 | #line 6837 "configure"
|
---|
6837 | #include "confdefs.h"
|
---|
6838 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6839 | /* We use char because int might match the return type of a gcc2
|
---|
6840 | builtin and then its argument prototype would still apply. */
|
---|
6841 | char dnet_ntoa();
|
---|
6842 |
|
---|
6843 | int main() {
|
---|
6844 | dnet_ntoa()
|
---|
6845 | ; return 0; }
|
---|
6846 | EOF
|
---|
6847 | if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6848 | rm -rf conftest*
|
---|
6849 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
6850 | else
|
---|
6851 | echo "configure: failed program was:" >&5
|
---|
6852 | cat conftest.$ac_ext >&5
|
---|
6853 | rm -rf conftest*
|
---|
6854 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
6855 | fi
|
---|
6856 | rm -f conftest*
|
---|
6857 | LIBS="$ac_save_LIBS"
|
---|
6858 |
|
---|
6859 | fi
|
---|
6860 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
6861 | echo "$ac_t""yes" 1>&6
|
---|
6862 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
---|
6863 | else
|
---|
6864 | echo "$ac_t""no" 1>&6
|
---|
6865 | fi
|
---|
6866 |
|
---|
6867 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
---|
6868 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
---|
6869 | echo "configure:6870: checking for dnet_ntoa in -ldnet_stub" >&5
|
---|
6870 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
---|
6871 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
6872 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6873 | else
|
---|
6874 | ac_save_LIBS="$LIBS"
|
---|
6875 | LIBS="-ldnet_stub $LIBS"
|
---|
6876 | cat > conftest.$ac_ext <<EOF
|
---|
6877 | #line 6878 "configure"
|
---|
6878 | #include "confdefs.h"
|
---|
6879 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6880 | /* We use char because int might match the return type of a gcc2
|
---|
6881 | builtin and then its argument prototype would still apply. */
|
---|
6882 | char dnet_ntoa();
|
---|
6883 |
|
---|
6884 | int main() {
|
---|
6885 | dnet_ntoa()
|
---|
6886 | ; return 0; }
|
---|
6887 | EOF
|
---|
6888 | if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6889 | rm -rf conftest*
|
---|
6890 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
6891 | else
|
---|
6892 | echo "configure: failed program was:" >&5
|
---|
6893 | cat conftest.$ac_ext >&5
|
---|
6894 | rm -rf conftest*
|
---|
6895 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
6896 | fi
|
---|
6897 | rm -f conftest*
|
---|
6898 | LIBS="$ac_save_LIBS"
|
---|
6899 |
|
---|
6900 | fi
|
---|
6901 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
6902 | echo "$ac_t""yes" 1>&6
|
---|
6903 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
---|
6904 | else
|
---|
6905 | echo "$ac_t""no" 1>&6
|
---|
6906 | fi
|
---|
6907 |
|
---|
6908 | fi
|
---|
6909 |
|
---|
6910 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
---|
6911 | # to get the SysV transport functions.
|
---|
6912 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
---|
6913 | # needs -lnsl.
|
---|
6914 | # The nsl library prevents programs from opening the X display
|
---|
6915 | # on Irix 5.2, according to dickey@clark.net.
|
---|
6916 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
---|
6917 | echo "configure:6918: checking for gethostbyname" >&5
|
---|
6918 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
---|
6919 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6920 | else
|
---|
6921 | cat > conftest.$ac_ext <<EOF
|
---|
6922 | #line 6923 "configure"
|
---|
6923 | #include "confdefs.h"
|
---|
6924 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6925 | which can conflict with char gethostbyname(); below. */
|
---|
6926 | #include <assert.h>
|
---|
6927 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6928 | /* We use char because int might match the return type of a gcc2
|
---|
6929 | builtin and then its argument prototype would still apply. */
|
---|
6930 | char gethostbyname();
|
---|
6931 |
|
---|
6932 | int main() {
|
---|
6933 |
|
---|
6934 | /* The GNU C library defines this for functions which it implements
|
---|
6935 | to always fail with ENOSYS. Some functions are actually named
|
---|
6936 | something starting with __ and the normal name is an alias. */
|
---|
6937 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
---|
6938 | choke me
|
---|
6939 | #else
|
---|
6940 | gethostbyname();
|
---|
6941 | #endif
|
---|
6942 |
|
---|
6943 | ; return 0; }
|
---|
6944 | EOF
|
---|
6945 | if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6946 | rm -rf conftest*
|
---|
6947 | eval "ac_cv_func_gethostbyname=yes"
|
---|
6948 | else
|
---|
6949 | echo "configure: failed program was:" >&5
|
---|
6950 | cat conftest.$ac_ext >&5
|
---|
6951 | rm -rf conftest*
|
---|
6952 | eval "ac_cv_func_gethostbyname=no"
|
---|
6953 | fi
|
---|
6954 | rm -f conftest*
|
---|
6955 | fi
|
---|
6956 |
|
---|
6957 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
---|
6958 | echo "$ac_t""yes" 1>&6
|
---|
6959 | :
|
---|
6960 | else
|
---|
6961 | echo "$ac_t""no" 1>&6
|
---|
6962 | fi
|
---|
6963 |
|
---|
6964 | if test $ac_cv_func_gethostbyname = no; then
|
---|
6965 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
---|
6966 | echo "configure:6967: checking for gethostbyname in -lnsl" >&5
|
---|
6967 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
---|
6968 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
6969 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6970 | else
|
---|
6971 | ac_save_LIBS="$LIBS"
|
---|
6972 | LIBS="-lnsl $LIBS"
|
---|
6973 | cat > conftest.$ac_ext <<EOF
|
---|
6974 | #line 6975 "configure"
|
---|
6975 | #include "confdefs.h"
|
---|
6976 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6977 | /* We use char because int might match the return type of a gcc2
|
---|
6978 | builtin and then its argument prototype would still apply. */
|
---|
6979 | char gethostbyname();
|
---|
6980 |
|
---|
6981 | int main() {
|
---|
6982 | gethostbyname()
|
---|
6983 | ; return 0; }
|
---|
6984 | EOF
|
---|
6985 | if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6986 | rm -rf conftest*
|
---|
6987 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
6988 | else
|
---|
6989 | echo "configure: failed program was:" >&5
|
---|
6990 | cat conftest.$ac_ext >&5
|
---|
6991 | rm -rf conftest*
|
---|
6992 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
6993 | fi
|
---|
6994 | rm -f conftest*
|
---|
6995 | LIBS="$ac_save_LIBS"
|
---|
6996 |
|
---|
6997 | fi
|
---|
6998 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
6999 | echo "$ac_t""yes" 1>&6
|
---|
7000 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
---|
7001 | else
|
---|
7002 | echo "$ac_t""no" 1>&6
|
---|
7003 | fi
|
---|
7004 |
|
---|
7005 | fi
|
---|
7006 |
|
---|
7007 | # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
---|
7008 | # socket/setsockopt and other routines are undefined under SCO ODT
|
---|
7009 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
---|
7010 | # on later versions), says simon@lia.di.epfl.ch: it contains
|
---|
7011 | # gethostby* variants that don't use the nameserver (or something).
|
---|
7012 | # -lsocket must be given before -lnsl if both are needed.
|
---|
7013 | # We assume that if connect needs -lnsl, so does gethostbyname.
|
---|
7014 | echo $ac_n "checking for connect""... $ac_c" 1>&6
|
---|
7015 | echo "configure:7016: checking for connect" >&5
|
---|
7016 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
---|
7017 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7018 | else
|
---|
7019 | cat > conftest.$ac_ext <<EOF
|
---|
7020 | #line 7021 "configure"
|
---|
7021 | #include "confdefs.h"
|
---|
7022 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7023 | which can conflict with char connect(); below. */
|
---|
7024 | #include <assert.h>
|
---|
7025 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7026 | /* We use char because int might match the return type of a gcc2
|
---|
7027 | builtin and then its argument prototype would still apply. */
|
---|
7028 | char connect();
|
---|
7029 |
|
---|
7030 | int main() {
|
---|
7031 |
|
---|
7032 | /* The GNU C library defines this for functions which it implements
|
---|
7033 | to always fail with ENOSYS. Some functions are actually named
|
---|
7034 | something starting with __ and the normal name is an alias. */
|
---|
7035 | #if defined (__stub_connect) || defined (__stub___connect)
|
---|
7036 | choke me
|
---|
7037 | #else
|
---|
7038 | connect();
|
---|
7039 | #endif
|
---|
7040 |
|
---|
7041 | ; return 0; }
|
---|
7042 | EOF
|
---|
7043 | if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7044 | rm -rf conftest*
|
---|
7045 | eval "ac_cv_func_connect=yes"
|
---|
7046 | else
|
---|
7047 | echo "configure: failed program was:" >&5
|
---|
7048 | cat conftest.$ac_ext >&5
|
---|
7049 | rm -rf conftest*
|
---|
7050 | eval "ac_cv_func_connect=no"
|
---|
7051 | fi
|
---|
7052 | rm -f conftest*
|
---|
7053 | fi
|
---|
7054 |
|
---|
7055 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
---|
7056 | echo "$ac_t""yes" 1>&6
|
---|
7057 | :
|
---|
7058 | else
|
---|
7059 | echo "$ac_t""no" 1>&6
|
---|
7060 | fi
|
---|
7061 |
|
---|
7062 | if test $ac_cv_func_connect = no; then
|
---|
7063 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
|
---|
7064 | echo "configure:7065: checking for connect in -lsocket" >&5
|
---|
7065 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
---|
7066 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7067 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7068 | else
|
---|
7069 | ac_save_LIBS="$LIBS"
|
---|
7070 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
---|
7071 | cat > conftest.$ac_ext <<EOF
|
---|
7072 | #line 7073 "configure"
|
---|
7073 | #include "confdefs.h"
|
---|
7074 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7075 | /* We use char because int might match the return type of a gcc2
|
---|
7076 | builtin and then its argument prototype would still apply. */
|
---|
7077 | char connect();
|
---|
7078 |
|
---|
7079 | int main() {
|
---|
7080 | connect()
|
---|
7081 | ; return 0; }
|
---|
7082 | EOF
|
---|
7083 | if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7084 | rm -rf conftest*
|
---|
7085 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7086 | else
|
---|
7087 | echo "configure: failed program was:" >&5
|
---|
7088 | cat conftest.$ac_ext >&5
|
---|
7089 | rm -rf conftest*
|
---|
7090 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7091 | fi
|
---|
7092 | rm -f conftest*
|
---|
7093 | LIBS="$ac_save_LIBS"
|
---|
7094 |
|
---|
7095 | fi
|
---|
7096 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7097 | echo "$ac_t""yes" 1>&6
|
---|
7098 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
---|
7099 | else
|
---|
7100 | echo "$ac_t""no" 1>&6
|
---|
7101 | fi
|
---|
7102 |
|
---|
7103 | fi
|
---|
7104 |
|
---|
7105 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
---|
7106 | echo $ac_n "checking for remove""... $ac_c" 1>&6
|
---|
7107 | echo "configure:7108: checking for remove" >&5
|
---|
7108 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
|
---|
7109 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7110 | else
|
---|
7111 | cat > conftest.$ac_ext <<EOF
|
---|
7112 | #line 7113 "configure"
|
---|
7113 | #include "confdefs.h"
|
---|
7114 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7115 | which can conflict with char remove(); below. */
|
---|
7116 | #include <assert.h>
|
---|
7117 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7118 | /* We use char because int might match the return type of a gcc2
|
---|
7119 | builtin and then its argument prototype would still apply. */
|
---|
7120 | char remove();
|
---|
7121 |
|
---|
7122 | int main() {
|
---|
7123 |
|
---|
7124 | /* The GNU C library defines this for functions which it implements
|
---|
7125 | to always fail with ENOSYS. Some functions are actually named
|
---|
7126 | something starting with __ and the normal name is an alias. */
|
---|
7127 | #if defined (__stub_remove) || defined (__stub___remove)
|
---|
7128 | choke me
|
---|
7129 | #else
|
---|
7130 | remove();
|
---|
7131 | #endif
|
---|
7132 |
|
---|
7133 | ; return 0; }
|
---|
7134 | EOF
|
---|
7135 | if { (eval echo configure:7136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7136 | rm -rf conftest*
|
---|
7137 | eval "ac_cv_func_remove=yes"
|
---|
7138 | else
|
---|
7139 | echo "configure: failed program was:" >&5
|
---|
7140 | cat conftest.$ac_ext >&5
|
---|
7141 | rm -rf conftest*
|
---|
7142 | eval "ac_cv_func_remove=no"
|
---|
7143 | fi
|
---|
7144 | rm -f conftest*
|
---|
7145 | fi
|
---|
7146 |
|
---|
7147 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
---|
7148 | echo "$ac_t""yes" 1>&6
|
---|
7149 | :
|
---|
7150 | else
|
---|
7151 | echo "$ac_t""no" 1>&6
|
---|
7152 | fi
|
---|
7153 |
|
---|
7154 | if test $ac_cv_func_remove = no; then
|
---|
7155 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
---|
7156 | echo "configure:7157: checking for remove in -lposix" >&5
|
---|
7157 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
---|
7158 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7159 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7160 | else
|
---|
7161 | ac_save_LIBS="$LIBS"
|
---|
7162 | LIBS="-lposix $LIBS"
|
---|
7163 | cat > conftest.$ac_ext <<EOF
|
---|
7164 | #line 7165 "configure"
|
---|
7165 | #include "confdefs.h"
|
---|
7166 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7167 | /* We use char because int might match the return type of a gcc2
|
---|
7168 | builtin and then its argument prototype would still apply. */
|
---|
7169 | char remove();
|
---|
7170 |
|
---|
7171 | int main() {
|
---|
7172 | remove()
|
---|
7173 | ; return 0; }
|
---|
7174 | EOF
|
---|
7175 | if { (eval echo configure:7176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7176 | rm -rf conftest*
|
---|
7177 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7178 | else
|
---|
7179 | echo "configure: failed program was:" >&5
|
---|
7180 | cat conftest.$ac_ext >&5
|
---|
7181 | rm -rf conftest*
|
---|
7182 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7183 | fi
|
---|
7184 | rm -f conftest*
|
---|
7185 | LIBS="$ac_save_LIBS"
|
---|
7186 |
|
---|
7187 | fi
|
---|
7188 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7189 | echo "$ac_t""yes" 1>&6
|
---|
7190 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
---|
7191 | else
|
---|
7192 | echo "$ac_t""no" 1>&6
|
---|
7193 | fi
|
---|
7194 |
|
---|
7195 | fi
|
---|
7196 |
|
---|
7197 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
---|
7198 | echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
---|
7199 | echo "configure:7200: checking for shmat" >&5
|
---|
7200 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
|
---|
7201 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7202 | else
|
---|
7203 | cat > conftest.$ac_ext <<EOF
|
---|
7204 | #line 7205 "configure"
|
---|
7205 | #include "confdefs.h"
|
---|
7206 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7207 | which can conflict with char shmat(); below. */
|
---|
7208 | #include <assert.h>
|
---|
7209 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7210 | /* We use char because int might match the return type of a gcc2
|
---|
7211 | builtin and then its argument prototype would still apply. */
|
---|
7212 | char shmat();
|
---|
7213 |
|
---|
7214 | int main() {
|
---|
7215 |
|
---|
7216 | /* The GNU C library defines this for functions which it implements
|
---|
7217 | to always fail with ENOSYS. Some functions are actually named
|
---|
7218 | something starting with __ and the normal name is an alias. */
|
---|
7219 | #if defined (__stub_shmat) || defined (__stub___shmat)
|
---|
7220 | choke me
|
---|
7221 | #else
|
---|
7222 | shmat();
|
---|
7223 | #endif
|
---|
7224 |
|
---|
7225 | ; return 0; }
|
---|
7226 | EOF
|
---|
7227 | if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7228 | rm -rf conftest*
|
---|
7229 | eval "ac_cv_func_shmat=yes"
|
---|
7230 | else
|
---|
7231 | echo "configure: failed program was:" >&5
|
---|
7232 | cat conftest.$ac_ext >&5
|
---|
7233 | rm -rf conftest*
|
---|
7234 | eval "ac_cv_func_shmat=no"
|
---|
7235 | fi
|
---|
7236 | rm -f conftest*
|
---|
7237 | fi
|
---|
7238 |
|
---|
7239 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
---|
7240 | echo "$ac_t""yes" 1>&6
|
---|
7241 | :
|
---|
7242 | else
|
---|
7243 | echo "$ac_t""no" 1>&6
|
---|
7244 | fi
|
---|
7245 |
|
---|
7246 | if test $ac_cv_func_shmat = no; then
|
---|
7247 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
---|
7248 | echo "configure:7249: checking for shmat in -lipc" >&5
|
---|
7249 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
---|
7250 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7251 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7252 | else
|
---|
7253 | ac_save_LIBS="$LIBS"
|
---|
7254 | LIBS="-lipc $LIBS"
|
---|
7255 | cat > conftest.$ac_ext <<EOF
|
---|
7256 | #line 7257 "configure"
|
---|
7257 | #include "confdefs.h"
|
---|
7258 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7259 | /* We use char because int might match the return type of a gcc2
|
---|
7260 | builtin and then its argument prototype would still apply. */
|
---|
7261 | char shmat();
|
---|
7262 |
|
---|
7263 | int main() {
|
---|
7264 | shmat()
|
---|
7265 | ; return 0; }
|
---|
7266 | EOF
|
---|
7267 | if { (eval echo configure:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7268 | rm -rf conftest*
|
---|
7269 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7270 | else
|
---|
7271 | echo "configure: failed program was:" >&5
|
---|
7272 | cat conftest.$ac_ext >&5
|
---|
7273 | rm -rf conftest*
|
---|
7274 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7275 | fi
|
---|
7276 | rm -f conftest*
|
---|
7277 | LIBS="$ac_save_LIBS"
|
---|
7278 |
|
---|
7279 | fi
|
---|
7280 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7281 | echo "$ac_t""yes" 1>&6
|
---|
7282 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
---|
7283 | else
|
---|
7284 | echo "$ac_t""no" 1>&6
|
---|
7285 | fi
|
---|
7286 |
|
---|
7287 | fi
|
---|
7288 | fi
|
---|
7289 |
|
---|
7290 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
---|
7291 | ac_save_LDFLAGS="$LDFLAGS"
|
---|
7292 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
---|
7293 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
---|
7294 | # check for ICE first), but we must link in the order -lSM -lICE or
|
---|
7295 | # we get undefined symbols. So assume we have SM if we have ICE.
|
---|
7296 | # These have to be linked with before -lX11, unlike the other
|
---|
7297 | # libraries we check for below, so use a different variable.
|
---|
7298 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
---|
7299 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
|
---|
7300 | echo "configure:7301: checking for IceConnectionNumber in -lICE" >&5
|
---|
7301 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
---|
7302 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
7303 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
7304 | else
|
---|
7305 | ac_save_LIBS="$LIBS"
|
---|
7306 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
---|
7307 | cat > conftest.$ac_ext <<EOF
|
---|
7308 | #line 7309 "configure"
|
---|
7309 | #include "confdefs.h"
|
---|
7310 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7311 | /* We use char because int might match the return type of a gcc2
|
---|
7312 | builtin and then its argument prototype would still apply. */
|
---|
7313 | char IceConnectionNumber();
|
---|
7314 |
|
---|
7315 | int main() {
|
---|
7316 | IceConnectionNumber()
|
---|
7317 | ; return 0; }
|
---|
7318 | EOF
|
---|
7319 | if { (eval echo configure:7320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
7320 | rm -rf conftest*
|
---|
7321 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
7322 | else
|
---|
7323 | echo "configure: failed program was:" >&5
|
---|
7324 | cat conftest.$ac_ext >&5
|
---|
7325 | rm -rf conftest*
|
---|
7326 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
7327 | fi
|
---|
7328 | rm -f conftest*
|
---|
7329 | LIBS="$ac_save_LIBS"
|
---|
7330 |
|
---|
7331 | fi
|
---|
7332 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
7333 | echo "$ac_t""yes" 1>&6
|
---|
7334 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
---|
7335 | else
|
---|
7336 | echo "$ac_t""no" 1>&6
|
---|
7337 | fi
|
---|
7338 |
|
---|
7339 | LDFLAGS="$ac_save_LDFLAGS"
|
---|
7340 |
|
---|
7341 | fi
|
---|
7342 |
|
---|
7343 |
|
---|
7344 | # Check whether --enable-java-awt or --disable-java-awt was given.
|
---|
7345 | if test "${enable_java_awt+set}" = set; then
|
---|
7346 | enableval="$enable_java_awt"
|
---|
7347 | :
|
---|
7348 | fi
|
---|
7349 |
|
---|
7350 |
|
---|
7351 | peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
|
---|
7352 | use_xlib_awt=""
|
---|
7353 | use_gtk_awt=""
|
---|
7354 |
|
---|
7355 | for peer in $peerlibs ; do
|
---|
7356 | case $peer in
|
---|
7357 | xlib)
|
---|
7358 | if test "$no_x" = yes; then
|
---|
7359 | echo "*** xlib peers requested but no X library available" 1>&2
|
---|
7360 | exit 1
|
---|
7361 | else
|
---|
7362 | use_xlib_awt="yes"
|
---|
7363 | fi
|
---|
7364 | ;;
|
---|
7365 | gtk)
|
---|
7366 | # Nothing, yet...
|
---|
7367 | ;;
|
---|
7368 | no)
|
---|
7369 | use_xlib_awt=
|
---|
7370 | use_gtk_awt=
|
---|
7371 | break
|
---|
7372 | ;;
|
---|
7373 | *)
|
---|
7374 | echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
|
---|
7375 | exit 1
|
---|
7376 | esac
|
---|
7377 | done
|
---|
7378 |
|
---|
7379 |
|
---|
7380 |
|
---|
7381 | if test "$use_xlib_awt" = yes; then
|
---|
7382 | XLIB_AWT_TRUE=
|
---|
7383 | XLIB_AWT_FALSE='#'
|
---|
7384 | else
|
---|
7385 | XLIB_AWT_TRUE='#'
|
---|
7386 | XLIB_AWT_FALSE=
|
---|
7387 | fi
|
---|
7388 |
|
---|
7389 |
|
---|
7390 | if test "$use_gtk_awt" = yes; then
|
---|
7391 | GTK_AWT_TRUE=
|
---|
7392 | GTK_AWT_FALSE='#'
|
---|
7393 | else
|
---|
7394 | GTK_AWT_TRUE='#'
|
---|
7395 | GTK_AWT_FALSE=
|
---|
7396 | fi
|
---|
7397 |
|
---|
7398 |
|
---|
7399 | here=`pwd`
|
---|
7400 |
|
---|
7401 |
|
---|
7402 | # We get this from the environment.
|
---|
7403 |
|
---|
7404 |
|
---|
7405 | trap '' 1 2 15
|
---|
7406 | cat > confcache <<\EOF
|
---|
7407 | # This file is a shell script that caches the results of configure
|
---|
7408 | # tests run on this system so they can be shared between configure
|
---|
7409 | # scripts and configure runs. It is not useful on other systems.
|
---|
7410 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
7411 | #
|
---|
7412 | # By default, configure uses ./config.cache as the cache file,
|
---|
7413 | # creating it if it does not exist already. You can give configure
|
---|
7414 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
7415 | # what configure does when it calls configure scripts in
|
---|
7416 | # subdirectories, so they share the cache.
|
---|
7417 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
7418 | # config.status only pays attention to the cache file if you give it the
|
---|
7419 | # --recheck option to rerun configure.
|
---|
7420 | #
|
---|
7421 | EOF
|
---|
7422 | # The following way of writing the cache mishandles newlines in values,
|
---|
7423 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7424 | # So, don't put newlines in cache variables' values.
|
---|
7425 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7426 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7427 | (set) 2>&1 |
|
---|
7428 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
7429 | *ac_space=\ *)
|
---|
7430 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
7431 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
7432 | sed -n \
|
---|
7433 | -e "s/'/'\\\\''/g" \
|
---|
7434 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
7435 | ;;
|
---|
7436 | *)
|
---|
7437 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7438 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
7439 | ;;
|
---|
7440 | esac >> confcache
|
---|
7441 | if cmp -s $cache_file confcache; then
|
---|
7442 | :
|
---|
7443 | else
|
---|
7444 | if test -w $cache_file; then
|
---|
7445 | echo "updating cache $cache_file"
|
---|
7446 | cat confcache > $cache_file
|
---|
7447 | else
|
---|
7448 | echo "not updating unwritable cache $cache_file"
|
---|
7449 | fi
|
---|
7450 | fi
|
---|
7451 | rm -f confcache
|
---|
7452 |
|
---|
7453 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
7454 |
|
---|
7455 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7456 | # Let make expand exec_prefix.
|
---|
7457 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7458 |
|
---|
7459 | # Any assignment to VPATH causes Sun make to only execute
|
---|
7460 | # the first set of double-colon rules, so remove it if not needed.
|
---|
7461 | # If there is a colon in the path, we need to keep it.
|
---|
7462 | if test "x$srcdir" = x.; then
|
---|
7463 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
7464 | fi
|
---|
7465 |
|
---|
7466 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
7467 |
|
---|
7468 | DEFS=-DHAVE_CONFIG_H
|
---|
7469 |
|
---|
7470 | # Without the "./", some shells look in PATH for config.status.
|
---|
7471 | : ${CONFIG_STATUS=./config.status}
|
---|
7472 |
|
---|
7473 | echo creating $CONFIG_STATUS
|
---|
7474 | rm -f $CONFIG_STATUS
|
---|
7475 | cat > $CONFIG_STATUS <<EOF
|
---|
7476 | #! /bin/sh
|
---|
7477 | # Generated automatically by configure.
|
---|
7478 | # Run this file to recreate the current configuration.
|
---|
7479 | # This directory was configured as follows,
|
---|
7480 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
7481 | #
|
---|
7482 | # $0 $ac_configure_args
|
---|
7483 | #
|
---|
7484 | # Compiler output produced by configure, useful for debugging
|
---|
7485 | # configure, is in ./config.log if it exists.
|
---|
7486 |
|
---|
7487 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
7488 | for ac_option
|
---|
7489 | do
|
---|
7490 | case "\$ac_option" in
|
---|
7491 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7492 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
7493 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
7494 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
7495 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
7496 | exit 0 ;;
|
---|
7497 | -help | --help | --hel | --he | --h)
|
---|
7498 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
7499 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
7500 | esac
|
---|
7501 | done
|
---|
7502 |
|
---|
7503 | ac_given_srcdir=$srcdir
|
---|
7504 | ac_given_INSTALL="$INSTALL"
|
---|
7505 |
|
---|
7506 | 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
|
---|
7507 | EOF
|
---|
7508 | cat >> $CONFIG_STATUS <<EOF
|
---|
7509 |
|
---|
7510 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7511 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
7512 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
7513 | $ac_vpsub
|
---|
7514 | $extrasub
|
---|
7515 | s%@SHELL@%$SHELL%g
|
---|
7516 | s%@CFLAGS@%$CFLAGS%g
|
---|
7517 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
7518 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
7519 | s%@FFLAGS@%$FFLAGS%g
|
---|
7520 | s%@DEFS@%$DEFS%g
|
---|
7521 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
7522 | s%@LIBS@%$LIBS%g
|
---|
7523 | s%@exec_prefix@%$exec_prefix%g
|
---|
7524 | s%@prefix@%$prefix%g
|
---|
7525 | s%@program_transform_name@%$program_transform_name%g
|
---|
7526 | s%@bindir@%$bindir%g
|
---|
7527 | s%@sbindir@%$sbindir%g
|
---|
7528 | s%@libexecdir@%$libexecdir%g
|
---|
7529 | s%@datadir@%$datadir%g
|
---|
7530 | s%@sysconfdir@%$sysconfdir%g
|
---|
7531 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
7532 | s%@localstatedir@%$localstatedir%g
|
---|
7533 | s%@libdir@%$libdir%g
|
---|
7534 | s%@includedir@%$includedir%g
|
---|
7535 | s%@oldincludedir@%$oldincludedir%g
|
---|
7536 | s%@infodir@%$infodir%g
|
---|
7537 | s%@mandir@%$mandir%g
|
---|
7538 | s%@LN_S@%$LN_S%g
|
---|
7539 | s%@libgcj_basedir@%$libgcj_basedir%g
|
---|
7540 | s%@mkinstalldirs@%$mkinstalldirs%g
|
---|
7541 | s%@host@%$host%g
|
---|
7542 | s%@host_alias@%$host_alias%g
|
---|
7543 | s%@host_cpu@%$host_cpu%g
|
---|
7544 | s%@host_vendor@%$host_vendor%g
|
---|
7545 | s%@host_os@%$host_os%g
|
---|
7546 | s%@target@%$target%g
|
---|
7547 | s%@target_alias@%$target_alias%g
|
---|
7548 | s%@target_cpu@%$target_cpu%g
|
---|
7549 | s%@target_vendor@%$target_vendor%g
|
---|
7550 | s%@target_os@%$target_os%g
|
---|
7551 | s%@build@%$build%g
|
---|
7552 | s%@build_alias@%$build_alias%g
|
---|
7553 | s%@build_cpu@%$build_cpu%g
|
---|
7554 | s%@build_vendor@%$build_vendor%g
|
---|
7555 | s%@build_os@%$build_os%g
|
---|
7556 | s%@CC@%$CC%g
|
---|
7557 | s%@glibjava_CXX@%$glibjava_CXX%g
|
---|
7558 | s%@CXX@%$CXX%g
|
---|
7559 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
7560 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
7561 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
7562 | s%@PACKAGE@%$PACKAGE%g
|
---|
7563 | s%@VERSION@%$VERSION%g
|
---|
7564 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
7565 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
7566 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
7567 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
7568 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
7569 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
7570 | s%@AS@%$AS%g
|
---|
7571 | s%@AR@%$AR%g
|
---|
7572 | s%@RANLIB@%$RANLIB%g
|
---|
7573 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
7574 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
7575 | s%@MAINT@%$MAINT%g
|
---|
7576 | s%@EXEEXT@%$EXEEXT%g
|
---|
7577 | s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
|
---|
7578 | s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
|
---|
7579 | s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
|
---|
7580 | s%@INCLTDL@%$INCLTDL%g
|
---|
7581 | s%@LIBLTDL@%$LIBLTDL%g
|
---|
7582 | s%@DIRLTDL@%$DIRLTDL%g
|
---|
7583 | s%@OBJEXT@%$OBJEXT%g
|
---|
7584 | s%@STRIP@%$STRIP%g
|
---|
7585 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
7586 | s%@CXXCPP@%$CXXCPP%g
|
---|
7587 | s%@subdirs@%$subdirs%g
|
---|
7588 | s%@COMPPATH@%$COMPPATH%g
|
---|
7589 | s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
|
---|
7590 | s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
|
---|
7591 | s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
|
---|
7592 | s%@LIBFFI@%$LIBFFI%g
|
---|
7593 | s%@LIBFFIINCS@%$LIBFFIINCS%g
|
---|
7594 | s%@PLATFORMOBJS@%$PLATFORMOBJS%g
|
---|
7595 | s%@CPP@%$CPP%g
|
---|
7596 | s%@SYSTEMSPEC@%$SYSTEMSPEC%g
|
---|
7597 | s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
|
---|
7598 | s%@ZLIBSPEC@%$ZLIBSPEC%g
|
---|
7599 | s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
|
---|
7600 | s%@GCLIBS@%$GCLIBS%g
|
---|
7601 | s%@GCINCS@%$GCINCS%g
|
---|
7602 | s%@GCDEPS@%$GCDEPS%g
|
---|
7603 | s%@GCOBJS@%$GCOBJS%g
|
---|
7604 | s%@GCSPEC@%$GCSPEC%g
|
---|
7605 | s%@JC1GCSPEC@%$JC1GCSPEC%g
|
---|
7606 | s%@GCTESTSPEC@%$GCTESTSPEC%g
|
---|
7607 | s%@THREADLIBS@%$THREADLIBS%g
|
---|
7608 | s%@THREADINCS@%$THREADINCS%g
|
---|
7609 | s%@THREADDEPS@%$THREADDEPS%g
|
---|
7610 | s%@THREADOBJS@%$THREADOBJS%g
|
---|
7611 | s%@THREADSPEC@%$THREADSPEC%g
|
---|
7612 | s%@THREADLDFLAGS@%$THREADLDFLAGS%g
|
---|
7613 | s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
|
---|
7614 | s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
|
---|
7615 | s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
|
---|
7616 | s%@tool_include_dir@%$tool_include_dir%g
|
---|
7617 | s%@gcc_version@%$gcc_version%g
|
---|
7618 | s%@LIBICONV@%$LIBICONV%g
|
---|
7619 | s%@GCJ@%$GCJ%g
|
---|
7620 | s%@GCJFLAGS@%$GCJFLAGS%g
|
---|
7621 | s%@ZLIBS@%$ZLIBS%g
|
---|
7622 | s%@SYS_ZLIBS@%$SYS_ZLIBS%g
|
---|
7623 | s%@ZINCS@%$ZINCS%g
|
---|
7624 | s%@DIVIDESPEC@%$DIVIDESPEC%g
|
---|
7625 | s%@CHECKREFSPEC@%$CHECKREFSPEC%g
|
---|
7626 | s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
|
---|
7627 | s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
|
---|
7628 | s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
|
---|
7629 | s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
|
---|
7630 | s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
|
---|
7631 | s%@NATIVE_TRUE@%$NATIVE_TRUE%g
|
---|
7632 | s%@NATIVE_FALSE@%$NATIVE_FALSE%g
|
---|
7633 | s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
|
---|
7634 | s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
|
---|
7635 | s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
|
---|
7636 | s%@toolexecdir@%$toolexecdir%g
|
---|
7637 | s%@toolexecmainlibdir@%$toolexecmainlibdir%g
|
---|
7638 | s%@toolexeclibdir@%$toolexeclibdir%g
|
---|
7639 | s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
|
---|
7640 | s%@GCJVERSION@%$GCJVERSION%g
|
---|
7641 | s%@ALLOCA@%$ALLOCA%g
|
---|
7642 | s%@PERL@%$PERL%g
|
---|
7643 | s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
|
---|
7644 | s%@X_CFLAGS@%$X_CFLAGS%g
|
---|
7645 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
---|
7646 | s%@X_LIBS@%$X_LIBS%g
|
---|
7647 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
---|
7648 | s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
|
---|
7649 | s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
|
---|
7650 | s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
|
---|
7651 | s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
|
---|
7652 | s%@here@%$here%g
|
---|
7653 |
|
---|
7654 | CEOF
|
---|
7655 | EOF
|
---|
7656 |
|
---|
7657 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7658 |
|
---|
7659 | # Split the substitutions into bite-sized pieces for seds with
|
---|
7660 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
7661 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
7662 | ac_file=1 # Number of current file.
|
---|
7663 | ac_beg=1 # First line for current file.
|
---|
7664 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
7665 | ac_more_lines=:
|
---|
7666 | ac_sed_cmds=""
|
---|
7667 | while $ac_more_lines; do
|
---|
7668 | if test $ac_beg -gt 1; then
|
---|
7669 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
7670 | else
|
---|
7671 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
7672 | fi
|
---|
7673 | if test ! -s conftest.s$ac_file; then
|
---|
7674 | ac_more_lines=false
|
---|
7675 | rm -f conftest.s$ac_file
|
---|
7676 | else
|
---|
7677 | if test -z "$ac_sed_cmds"; then
|
---|
7678 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
7679 | else
|
---|
7680 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
7681 | fi
|
---|
7682 | ac_file=`expr $ac_file + 1`
|
---|
7683 | ac_beg=$ac_end
|
---|
7684 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
7685 | fi
|
---|
7686 | done
|
---|
7687 | if test -z "$ac_sed_cmds"; then
|
---|
7688 | ac_sed_cmds=cat
|
---|
7689 | fi
|
---|
7690 | EOF
|
---|
7691 |
|
---|
7692 | cat >> $CONFIG_STATUS <<EOF
|
---|
7693 |
|
---|
7694 | CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
|
---|
7695 | EOF
|
---|
7696 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7697 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
7698 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7699 | case "$ac_file" in
|
---|
7700 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
7701 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
7702 | *) ac_file_in="${ac_file}.in" ;;
|
---|
7703 | esac
|
---|
7704 |
|
---|
7705 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
7706 |
|
---|
7707 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
7708 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
7709 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
7710 | # The file is in a subdirectory.
|
---|
7711 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
7712 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
7713 | # A "../" for each directory in $ac_dir_suffix.
|
---|
7714 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
7715 | else
|
---|
7716 | ac_dir_suffix= ac_dots=
|
---|
7717 | fi
|
---|
7718 |
|
---|
7719 | case "$ac_given_srcdir" in
|
---|
7720 | .) srcdir=.
|
---|
7721 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
7722 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
7723 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
7724 | *) # Relative path.
|
---|
7725 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
7726 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
7727 | esac
|
---|
7728 |
|
---|
7729 | case "$ac_given_INSTALL" in
|
---|
7730 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
7731 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
7732 | esac
|
---|
7733 |
|
---|
7734 | echo creating "$ac_file"
|
---|
7735 | rm -f "$ac_file"
|
---|
7736 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
7737 | case "$ac_file" in
|
---|
7738 | *Makefile*) ac_comsub="1i\\
|
---|
7739 | # $configure_input" ;;
|
---|
7740 | *) ac_comsub= ;;
|
---|
7741 | esac
|
---|
7742 |
|
---|
7743 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
7744 | sed -e "$ac_comsub
|
---|
7745 | s%@configure_input@%$configure_input%g
|
---|
7746 | s%@srcdir@%$srcdir%g
|
---|
7747 | s%@top_srcdir@%$top_srcdir%g
|
---|
7748 | s%@INSTALL@%$INSTALL%g
|
---|
7749 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
7750 | fi; done
|
---|
7751 | rm -f conftest.s*
|
---|
7752 |
|
---|
7753 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
7754 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
7755 | #
|
---|
7756 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
7757 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
7758 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
7759 | ac_dC='\3'
|
---|
7760 | ac_dD='%g'
|
---|
7761 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
7762 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
7763 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
7764 | ac_uC=' '
|
---|
7765 | ac_uD='\4%g'
|
---|
7766 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
7767 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
7768 | ac_eB='$%\1#\2define\3'
|
---|
7769 | ac_eC=' '
|
---|
7770 | ac_eD='%g'
|
---|
7771 |
|
---|
7772 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
7773 | EOF
|
---|
7774 | cat >> $CONFIG_STATUS <<EOF
|
---|
7775 | CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
|
---|
7776 | EOF
|
---|
7777 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7778 | fi
|
---|
7779 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
7780 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7781 | case "$ac_file" in
|
---|
7782 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
7783 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
7784 | *) ac_file_in="${ac_file}.in" ;;
|
---|
7785 | esac
|
---|
7786 |
|
---|
7787 | echo creating $ac_file
|
---|
7788 |
|
---|
7789 | rm -f conftest.frag conftest.in conftest.out
|
---|
7790 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
7791 | cat $ac_file_inputs > conftest.in
|
---|
7792 |
|
---|
7793 | EOF
|
---|
7794 |
|
---|
7795 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
7796 | # the proper values into config.h.in to produce config.h. And first:
|
---|
7797 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7798 | # Protect against being in an unquoted here document in config.status.
|
---|
7799 | rm -f conftest.vals
|
---|
7800 | cat > conftest.hdr <<\EOF
|
---|
7801 | s/[\\&%]/\\&/g
|
---|
7802 | s%[\\$`]%\\&%g
|
---|
7803 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
7804 | s%ac_d%ac_u%gp
|
---|
7805 | s%ac_u%ac_e%gp
|
---|
7806 | EOF
|
---|
7807 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
7808 | rm -f conftest.hdr
|
---|
7809 |
|
---|
7810 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
7811 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7812 | # on some systems where configure will not decide to define it.
|
---|
7813 | cat >> conftest.vals <<\EOF
|
---|
7814 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
7815 | EOF
|
---|
7816 |
|
---|
7817 | # Break up conftest.vals because some shells have a limit on
|
---|
7818 | # the size of here documents, and old seds have small limits too.
|
---|
7819 |
|
---|
7820 | rm -f conftest.tail
|
---|
7821 | while :
|
---|
7822 | do
|
---|
7823 | ac_lines=`grep -c . conftest.vals`
|
---|
7824 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
7825 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
7826 | # Write a limited-size here document to conftest.frag.
|
---|
7827 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
7828 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
7829 | echo 'CEOF
|
---|
7830 | sed -f conftest.frag conftest.in > conftest.out
|
---|
7831 | rm -f conftest.in
|
---|
7832 | mv conftest.out conftest.in
|
---|
7833 | ' >> $CONFIG_STATUS
|
---|
7834 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
7835 | rm -f conftest.vals
|
---|
7836 | mv conftest.tail conftest.vals
|
---|
7837 | done
|
---|
7838 | rm -f conftest.vals
|
---|
7839 |
|
---|
7840 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7841 | rm -f conftest.frag conftest.h
|
---|
7842 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
7843 | cat conftest.in >> conftest.h
|
---|
7844 | rm -f conftest.in
|
---|
7845 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
7846 | echo "$ac_file is unchanged"
|
---|
7847 | rm -f conftest.h
|
---|
7848 | else
|
---|
7849 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
7850 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
7851 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
7852 | # The file is in a subdirectory.
|
---|
7853 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
7854 | fi
|
---|
7855 | rm -f $ac_file
|
---|
7856 | mv conftest.h $ac_file
|
---|
7857 | fi
|
---|
7858 | fi; done
|
---|
7859 |
|
---|
7860 | EOF
|
---|
7861 |
|
---|
7862 | cat >> $CONFIG_STATUS <<EOF
|
---|
7863 | 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"
|
---|
7864 | 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"
|
---|
7865 | EOF
|
---|
7866 |
|
---|
7867 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7868 | srcdir=$ac_given_srcdir
|
---|
7869 | while test -n "$ac_sources"; do
|
---|
7870 | set $ac_dests; ac_dest=$1; shift; ac_dests=$*
|
---|
7871 | set $ac_sources; ac_source=$1; shift; ac_sources=$*
|
---|
7872 |
|
---|
7873 | echo "linking $srcdir/$ac_source to $ac_dest"
|
---|
7874 |
|
---|
7875 | if test ! -r $srcdir/$ac_source; then
|
---|
7876 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
|
---|
7877 | fi
|
---|
7878 | rm -f $ac_dest
|
---|
7879 |
|
---|
7880 | # Make relative symlinks.
|
---|
7881 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
7882 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
|
---|
7883 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
|
---|
7884 | # The dest file is in a subdirectory.
|
---|
7885 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
|
---|
7886 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
|
---|
7887 | # A "../" for each directory in $ac_dest_dir_suffix.
|
---|
7888 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
7889 | else
|
---|
7890 | ac_dest_dir_suffix= ac_dots=
|
---|
7891 | fi
|
---|
7892 |
|
---|
7893 | case "$srcdir" in
|
---|
7894 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
|
---|
7895 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
|
---|
7896 | esac
|
---|
7897 |
|
---|
7898 | # Make a symlink if possible; otherwise try a hard link.
|
---|
7899 | if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
|
---|
7900 | ln $srcdir/$ac_source $ac_dest; then :
|
---|
7901 | else
|
---|
7902 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
|
---|
7903 | fi
|
---|
7904 | done
|
---|
7905 | EOF
|
---|
7906 | cat >> $CONFIG_STATUS <<EOF
|
---|
7907 |
|
---|
7908 | srcdir=${srcdir}
|
---|
7909 | host=${host}
|
---|
7910 | target=${target}
|
---|
7911 | with_multisubdir=${with_multisubdir}
|
---|
7912 | ac_configure_args="${multilib_arg} ${ac_configure_args}"
|
---|
7913 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
7914 | libgcj_basedir=${libgcj_basedir}
|
---|
7915 | CC="${CC}"
|
---|
7916 | CXX="${CXX}"
|
---|
7917 |
|
---|
7918 | EOF
|
---|
7919 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7920 | am_indx=1
|
---|
7921 | for am_file in include/config.h gcj/libgcj-config.h; do
|
---|
7922 | case " $CONFIG_HEADERS " in
|
---|
7923 | *" $am_file "*)
|
---|
7924 | echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
|
---|
7925 | ;;
|
---|
7926 | esac
|
---|
7927 | am_indx=`expr "$am_indx" + 1`
|
---|
7928 | done
|
---|
7929 | # Only add multilib support code if we just rebuilt top-level Makefile.
|
---|
7930 | case " $CONFIG_FILES " in
|
---|
7931 | *" Makefile "*)
|
---|
7932 | LD="${ORIGINAL_LD_FOR_MULTILIBS}"
|
---|
7933 | ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
|
---|
7934 | ;;
|
---|
7935 | esac
|
---|
7936 |
|
---|
7937 | # Make subdirectories and `.d' files. Look in both srcdir and
|
---|
7938 | # builddir for the .java files.
|
---|
7939 | h=`pwd`
|
---|
7940 | : > deps.mk
|
---|
7941 | ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
|
---|
7942 | find . \( -name '*.java' -o -name '*.cc' \) -print) | \
|
---|
7943 | fgrep -v testsuite | \
|
---|
7944 | sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
|
---|
7945 | while read f; do
|
---|
7946 | echo "include $f" >> deps.mk
|
---|
7947 | test -f $f || {
|
---|
7948 |
|
---|
7949 | d=`echo $f | sed -e 's,/[^/]*$,,'`
|
---|
7950 |
|
---|
7951 | if test ! -d $d; then
|
---|
7952 | $libgcj_basedir/../mkinstalldirs $d
|
---|
7953 | fi;
|
---|
7954 | echo > $f
|
---|
7955 | }
|
---|
7956 | done
|
---|
7957 |
|
---|
7958 | exit 0
|
---|
7959 | EOF
|
---|
7960 | chmod +x $CONFIG_STATUS
|
---|
7961 | rm -fr confdefs* $ac_clean_files
|
---|
7962 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
7963 |
|
---|
7964 | if test "$no_recursion" != yes; then
|
---|
7965 |
|
---|
7966 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
7967 | ac_sub_configure_args=
|
---|
7968 | ac_prev=
|
---|
7969 | for ac_arg in $ac_configure_args; do
|
---|
7970 | if test -n "$ac_prev"; then
|
---|
7971 | ac_prev=
|
---|
7972 | continue
|
---|
7973 | fi
|
---|
7974 | case "$ac_arg" in
|
---|
7975 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
7976 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
7977 | ac_prev=cache_file ;;
|
---|
7978 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
7979 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
7980 | ;;
|
---|
7981 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
7982 | ac_prev=srcdir ;;
|
---|
7983 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
7984 | ;;
|
---|
7985 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
7986 | esac
|
---|
7987 | done
|
---|
7988 |
|
---|
7989 | for ac_config_dir in $DIRLTDL; do
|
---|
7990 |
|
---|
7991 | # Do not complain, so a configure script can configure whichever
|
---|
7992 | # parts of a large source tree are present.
|
---|
7993 | if test ! -d $srcdir/$ac_config_dir; then
|
---|
7994 | continue
|
---|
7995 | fi
|
---|
7996 |
|
---|
7997 | echo configuring in $ac_config_dir
|
---|
7998 |
|
---|
7999 | case "$srcdir" in
|
---|
8000 | .) ;;
|
---|
8001 | *)
|
---|
8002 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
|
---|
8003 | else
|
---|
8004 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
|
---|
8005 | fi
|
---|
8006 | ;;
|
---|
8007 | esac
|
---|
8008 |
|
---|
8009 | ac_popdir=`pwd`
|
---|
8010 | cd $ac_config_dir
|
---|
8011 |
|
---|
8012 | # A "../" for each directory in /$ac_config_dir.
|
---|
8013 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
|
---|
8014 |
|
---|
8015 | case "$srcdir" in
|
---|
8016 | .) # No --srcdir option. We are building in place.
|
---|
8017 | ac_sub_srcdir=$srcdir ;;
|
---|
8018 | /*) # Absolute path.
|
---|
8019 | ac_sub_srcdir=$srcdir/$ac_config_dir ;;
|
---|
8020 | *) # Relative path.
|
---|
8021 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
|
---|
8022 | esac
|
---|
8023 |
|
---|
8024 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
8025 | if test -f $ac_sub_srcdir/configure; then
|
---|
8026 | ac_sub_configure=$ac_sub_srcdir/configure
|
---|
8027 | elif test -f $ac_sub_srcdir/configure.in; then
|
---|
8028 | ac_sub_configure=$ac_configure
|
---|
8029 | else
|
---|
8030 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
|
---|
8031 | ac_sub_configure=
|
---|
8032 | fi
|
---|
8033 |
|
---|
8034 | # The recursion is here.
|
---|
8035 | if test -n "$ac_sub_configure"; then
|
---|
8036 |
|
---|
8037 | # Make the cache file name correct relative to the subdirectory.
|
---|
8038 | case "$cache_file" in
|
---|
8039 | /*) ac_sub_cache_file=$cache_file ;;
|
---|
8040 | *) # Relative path.
|
---|
8041 | ac_sub_cache_file="$ac_dots$cache_file" ;;
|
---|
8042 | esac
|
---|
8043 | case "$ac_given_INSTALL" in
|
---|
8044 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
8045 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
8046 | esac
|
---|
8047 |
|
---|
8048 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
|
---|
8049 | # The eval makes quoting arguments work.
|
---|
8050 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
|
---|
8051 | then :
|
---|
8052 | else
|
---|
8053 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
|
---|
8054 | fi
|
---|
8055 | fi
|
---|
8056 |
|
---|
8057 | cd $ac_popdir
|
---|
8058 | done
|
---|
8059 | fi
|
---|
8060 |
|
---|