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