source: vendor/gcc/current/libobjc/configure

Last change on this file was 1476, checked in by bird, 21 years ago

GCC v3.3.4 - official sources.

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