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