s390.c (s390_chunkify_pool): Do not confuse insn UIDs with insn addresses.
[official-gcc.git] / libobjc / configure
blob014c27d3f9420c92ab31525dd22f33843e31f747
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 srcdir=
56 target=NONE
57 verbose=
58 x_includes=NONE
59 x_libraries=NONE
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
74 subdirs=
75 MFLAGS= MAKEFLAGS=
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
78 ac_max_here_lines=12
80 ac_prev=
81 for ac_option
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
87 ac_prev=
88 continue
91 case "$ac_option" in
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 *) ac_optarg= ;;
94 esac
96 # Accept the important Cygnus configure options, so we can diagnose typos.
98 case "$ac_option" in
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 ac_prev=bindir ;;
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
106 ac_prev=build ;;
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 ac_prev=datadir ;;
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 | --da=*)
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 case "$ac_option" in
140 *=*) ;;
141 *) ac_optarg=yes ;;
142 esac
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
156 with_gas=yes ;;
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
161 cat << EOF
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
164 Configuration:
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
172 [$ac_default_prefix]
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 [same as prefix]
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
179 [PREFIX/share]
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 [PREFIX/com]
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
195 cat << EOF
196 Host type:
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
211 exit 0 ;;
213 -host | --host | --hos | --ho)
214 ac_prev=host ;;
215 -host=* | --host=* | --hos=* | --ho=*)
216 host="$ac_optarg" ;;
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 ac_prev=infodir ;;
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
231 ac_prev=libdir ;;
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 ac_prev=mandir ;;
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
256 -nfp | --nfp | --nf)
257 # Obsolete; use --without-fp.
258 with_fp=no ;;
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 | --no-cr | --no-c)
262 no_create=yes ;;
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 no_recursion=yes ;;
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 ac_prev=prefix ;;
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
315 silent=yes ;;
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 ac_prev=sbindir ;;
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 | --sbi=* | --sb=*)
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
326 | --sha | --sh)
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 | --sha=* | --sh=*)
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
335 ac_prev=site ;;
336 -site=* | --site=* | --sit=*)
337 site="$ac_optarg" ;;
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 ac_prev=srcdir ;;
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
352 ac_prev=target ;;
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 verbose=yes ;;
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
361 exit 0 ;;
363 -with-* | --with-*)
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 case "$ac_option" in
371 *=*) ;;
372 *) ac_optarg=yes ;;
373 esac
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
385 --x)
386 # Obsolete; use --with-x.
387 with_x=yes ;;
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 nonopt="$ac_option"
416 esac
417 done
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
426 # 0 standard input
427 # 1 file creation
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
434 exec 6>/dev/null
435 else
436 exec 6>&1
438 exec 5>./config.log
440 echo "\
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
443 " 1>&5
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
447 ac_configure_args=
448 for ac_arg
450 case "$ac_arg" in
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 esac
459 done
461 # NLS nuisances.
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 echo > confdefs.h
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=objc/objc.h
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
484 ac_prog=$0
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 srcdir=$ac_confdir
488 if test ! -r $srcdir/$ac_unique_file; then
489 srcdir=..
491 else
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 else
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 else
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
514 . "$ac_site_file"
516 done
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
520 . $cache_file
521 else
522 echo "creating cache $cache_file"
523 > $cache_file
526 ac_ext=c
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
533 ac_exeext=
534 ac_objext=o
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='
539 ' ac_t=' '
540 else
541 ac_n=-n ac_c= ac_t=
543 else
544 ac_n= ac_c='\c' ac_t=
550 ac_aux_dir=
551 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
552 if test -f $ac_dir/install-sh; then
553 ac_aux_dir=$ac_dir
554 ac_install_sh="$ac_aux_dir/install-sh -c"
555 break
556 elif test -f $ac_dir/install.sh; then
557 ac_aux_dir=$ac_dir
558 ac_install_sh="$ac_aux_dir/install.sh -c"
559 break
561 done
562 if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
565 ac_config_guess=$ac_aux_dir/config.guess
566 ac_config_sub=$ac_aux_dir/config.sub
567 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
570 # Do some error checking and defaulting for the host and target type.
571 # The inputs are:
572 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
574 # The rules are:
575 # 1. You are not allowed to specify --host, --target, and nonopt at the
576 # same time.
577 # 2. Host defaults to nonopt.
578 # 3. If nonopt is not specified, then host defaults to the current host,
579 # as determined by config.guess.
580 # 4. Target and build default to nonopt.
581 # 5. If nonopt is not specified, then target and build default to host.
583 # The aliases save the names the user supplied, while $host etc.
584 # will get canonicalized.
585 case $host---$target---$nonopt in
586 NONE---*---* | *---NONE---* | *---*---NONE) ;;
587 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
588 esac
591 # Make sure we can run config.sub.
592 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
593 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
596 echo $ac_n "checking host system type""... $ac_c" 1>&6
597 echo "configure:598: checking host system type" >&5
599 host_alias=$host
600 case "$host_alias" in
601 NONE)
602 case $nonopt in
603 NONE)
604 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
605 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
606 fi ;;
607 *) host_alias=$nonopt ;;
608 esac ;;
609 esac
611 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
612 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
613 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
614 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
615 echo "$ac_t""$host" 1>&6
617 echo $ac_n "checking target system type""... $ac_c" 1>&6
618 echo "configure:619: checking target system type" >&5
620 target_alias=$target
621 case "$target_alias" in
622 NONE)
623 case $nonopt in
624 NONE) target_alias=$host_alias ;;
625 *) target_alias=$nonopt ;;
626 esac ;;
627 esac
629 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
630 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
631 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
632 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
633 echo "$ac_t""$target" 1>&6
635 echo $ac_n "checking build system type""... $ac_c" 1>&6
636 echo "configure:637: checking build system type" >&5
638 build_alias=$build
639 case "$build_alias" in
640 NONE)
641 case $nonopt in
642 NONE) build_alias=$host_alias ;;
643 *) build_alias=$nonopt ;;
644 esac ;;
645 esac
647 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
648 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
649 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
650 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
651 echo "$ac_t""$build" 1>&6
653 test "$host_alias" != "$target_alias" &&
654 test "$program_prefix$program_suffix$program_transform_name" = \
655 NONENONEs,x,x, &&
656 program_prefix=${target_alias}-
658 target_alias=${target_alias-$target}
661 if test $host != $build; then
662 ac_tool_prefix=${host_alias}-
663 else
664 ac_tool_prefix=
667 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
668 echo "configure:669: checking for Cygwin environment" >&5
669 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
671 else
672 cat > conftest.$ac_ext <<EOF
673 #line 674 "configure"
674 #include "confdefs.h"
676 int main() {
678 #ifndef __CYGWIN__
679 #define __CYGWIN__ __CYGWIN32__
680 #endif
681 return __CYGWIN__;
682 ; return 0; }
684 if { (eval echo configure:685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
685 rm -rf conftest*
686 ac_cv_cygwin=yes
687 else
688 echo "configure: failed program was:" >&5
689 cat conftest.$ac_ext >&5
690 rm -rf conftest*
691 ac_cv_cygwin=no
693 rm -f conftest*
694 rm -f conftest*
697 echo "$ac_t""$ac_cv_cygwin" 1>&6
698 CYGWIN=
699 test "$ac_cv_cygwin" = yes && CYGWIN=yes
700 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
701 echo "configure:702: checking for mingw32 environment" >&5
702 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
704 else
705 cat > conftest.$ac_ext <<EOF
706 #line 707 "configure"
707 #include "confdefs.h"
709 int main() {
710 return __MINGW32__;
711 ; return 0; }
713 if { (eval echo configure:714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
714 rm -rf conftest*
715 ac_cv_mingw32=yes
716 else
717 echo "configure: failed program was:" >&5
718 cat conftest.$ac_ext >&5
719 rm -rf conftest*
720 ac_cv_mingw32=no
722 rm -f conftest*
723 rm -f conftest*
726 echo "$ac_t""$ac_cv_mingw32" 1>&6
727 MINGW32=
728 test "$ac_cv_mingw32" = yes && MINGW32=yes
730 # Check whether --enable-multilib or --disable-multilib was given.
731 if test "${enable_multilib+set}" = set; then
732 enableval="$enable_multilib"
733 case "${enableval}" in
734 yes) multilib=yes ;;
735 no) multilib=no ;;
736 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
737 esac
738 else
739 multilib=yes
742 # When building with srcdir == objdir, links to the source files will
743 # be created in directories within the target_subdir. We have to
744 # adjust toplevel_srcdir accordingly, so that configure finds
745 # install-sh and other auxiliary files that live in the top-level
746 # source directory.
747 if test "${srcdir}" = "."; then
748 if test -z "${with_target_subdir}"; then
749 toprel=".."
750 else
751 if test "${with_target_subdir}" != "."; then
752 toprel="${with_multisrctop}../.."
753 else
754 toprel="${with_multisrctop}.."
757 else
758 toprel=".."
760 ac_aux_dir=
761 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
762 if test -f $ac_dir/install-sh; then
763 ac_aux_dir=$ac_dir
764 ac_install_sh="$ac_aux_dir/install-sh -c"
765 break
766 elif test -f $ac_dir/install.sh; then
767 ac_aux_dir=$ac_dir
768 ac_install_sh="$ac_aux_dir/install.sh -c"
769 break
771 done
772 if test -z "$ac_aux_dir"; then
773 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
775 ac_config_guess=$ac_aux_dir/config.guess
776 ac_config_sub=$ac_aux_dir/config.sub
777 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
779 toplevel_srcdir=\${top_srcdir}/$toprel
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=`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) ;;
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 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1618 lt_cv_file_magic_cmd=/usr/bin/file
1619 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1622 irix5* | irix6*)
1623 case $host_os in
1624 irix5*)
1625 # this will be overridden with pass_all, but let us keep it just in case
1626 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1629 case $LD in
1630 *-32|*"-32 ") libmagic=32-bit;;
1631 *-n32|*"-n32 ") libmagic=N32;;
1632 *-64|*"-64 ") libmagic=64-bit;;
1633 *) libmagic=never-match;;
1634 esac
1635 # this will be overridden with pass_all, but let us keep it just in case
1636 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1638 esac
1639 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1640 lt_cv_deplibs_check_method=pass_all
1643 # This must be Linux ELF.
1644 linux-gnu*)
1645 case $host_cpu in
1646 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1647 lt_cv_deplibs_check_method=pass_all ;;
1649 # glibc up to 2.1.1 does not perform some relocations on ARM
1650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1651 esac
1652 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1655 netbsd*)
1656 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1657 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1658 else
1659 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1663 newsos6)
1664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1665 lt_cv_file_magic_cmd=/usr/bin/file
1666 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1669 osf3* | osf4* | osf5*)
1670 # this will be overridden with pass_all, but let us keep it just in case
1671 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1672 lt_cv_file_magic_test_file=/shlib/libc.so
1673 lt_cv_deplibs_check_method=pass_all
1676 sco3.2v5*)
1677 lt_cv_deplibs_check_method=pass_all
1680 solaris*)
1681 lt_cv_deplibs_check_method=pass_all
1682 lt_cv_file_magic_test_file=/lib/libc.so
1685 sysv5uw[78]* | sysv4*uw2*)
1686 lt_cv_deplibs_check_method=pass_all
1689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1690 case $host_vendor in
1691 ncr)
1692 lt_cv_deplibs_check_method=pass_all
1694 motorola)
1695 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]'
1696 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1698 esac
1700 esac
1704 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1705 file_magic_cmd=$lt_cv_file_magic_cmd
1706 deplibs_check_method=$lt_cv_deplibs_check_method
1708 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1709 echo "configure:1710: checking for object suffix" >&5
1710 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1712 else
1713 rm -f conftest*
1714 echo 'int i = 1;' > conftest.$ac_ext
1715 if { (eval echo configure:1716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1716 for ac_file in conftest.*; do
1717 case $ac_file in
1718 *.c) ;;
1719 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1720 esac
1721 done
1722 else
1723 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1725 rm -f conftest*
1728 echo "$ac_t""$ac_cv_objext" 1>&6
1729 OBJEXT=$ac_cv_objext
1730 ac_objext=$ac_cv_objext
1732 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1734 # Only perform the check for file, if the check method requires it
1735 case $deplibs_check_method in
1736 file_magic*)
1737 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1738 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1739 echo "configure:1740: checking for ${ac_tool_prefix}file" >&5
1740 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1742 else
1743 case $MAGIC_CMD in
1745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1747 ?:/*)
1748 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1751 ac_save_MAGIC_CMD="$MAGIC_CMD"
1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1753 ac_dummy="/usr/bin:$PATH"
1754 for ac_dir in $ac_dummy; do
1755 test -z "$ac_dir" && ac_dir=.
1756 if test -f $ac_dir/${ac_tool_prefix}file; then
1757 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1758 if test -n "$file_magic_test_file"; then
1759 case $deplibs_check_method in
1760 "file_magic "*)
1761 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1763 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1764 egrep "$file_magic_regex" > /dev/null; then
1766 else
1767 cat <<EOF 1>&2
1769 *** Warning: the command libtool uses to detect shared libraries,
1770 *** $file_magic_cmd, produces output that libtool cannot recognize.
1771 *** The result is that libtool may fail to recognize shared libraries
1772 *** as such. This will affect the creation of libtool libraries that
1773 *** depend on shared libraries, but programs linked with such libtool
1774 *** libraries will work regardless of this problem. Nevertheless, you
1775 *** may want to report the problem to your system manager and/or to
1776 *** bug-libtool@gnu.org
1779 fi ;;
1780 esac
1782 break
1784 done
1785 IFS="$ac_save_ifs"
1786 MAGIC_CMD="$ac_save_MAGIC_CMD"
1788 esac
1791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1792 if test -n "$MAGIC_CMD"; then
1793 echo "$ac_t""$MAGIC_CMD" 1>&6
1794 else
1795 echo "$ac_t""no" 1>&6
1798 if test -z "$lt_cv_path_MAGIC_CMD"; then
1799 if test -n "$ac_tool_prefix"; then
1800 echo $ac_n "checking for file""... $ac_c" 1>&6
1801 echo "configure:1802: checking for file" >&5
1802 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805 case $MAGIC_CMD in
1807 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1809 ?:/*)
1810 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1813 ac_save_MAGIC_CMD="$MAGIC_CMD"
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1815 ac_dummy="/usr/bin:$PATH"
1816 for ac_dir in $ac_dummy; do
1817 test -z "$ac_dir" && ac_dir=.
1818 if test -f $ac_dir/file; then
1819 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1820 if test -n "$file_magic_test_file"; then
1821 case $deplibs_check_method in
1822 "file_magic "*)
1823 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1825 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1826 egrep "$file_magic_regex" > /dev/null; then
1828 else
1829 cat <<EOF 1>&2
1831 *** Warning: the command libtool uses to detect shared libraries,
1832 *** $file_magic_cmd, produces output that libtool cannot recognize.
1833 *** The result is that libtool may fail to recognize shared libraries
1834 *** as such. This will affect the creation of libtool libraries that
1835 *** depend on shared libraries, but programs linked with such libtool
1836 *** libraries will work regardless of this problem. Nevertheless, you
1837 *** may want to report the problem to your system manager and/or to
1838 *** bug-libtool@gnu.org
1841 fi ;;
1842 esac
1844 break
1846 done
1847 IFS="$ac_save_ifs"
1848 MAGIC_CMD="$ac_save_MAGIC_CMD"
1850 esac
1853 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1854 if test -n "$MAGIC_CMD"; then
1855 echo "$ac_t""$MAGIC_CMD" 1>&6
1856 else
1857 echo "$ac_t""no" 1>&6
1860 else
1861 MAGIC_CMD=:
1867 esac
1869 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1870 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_word" >&5
1873 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1875 else
1876 if test -n "$RANLIB"; then
1877 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1878 else
1879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1880 ac_dummy="$PATH"
1881 for ac_dir in $ac_dummy; do
1882 test -z "$ac_dir" && ac_dir=.
1883 if test -f $ac_dir/$ac_word; then
1884 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1885 break
1887 done
1888 IFS="$ac_save_ifs"
1891 RANLIB="$ac_cv_prog_RANLIB"
1892 if test -n "$RANLIB"; then
1893 echo "$ac_t""$RANLIB" 1>&6
1894 else
1895 echo "$ac_t""no" 1>&6
1899 if test -z "$ac_cv_prog_RANLIB"; then
1900 if test -n "$ac_tool_prefix"; then
1901 # Extract the first word of "ranlib", so it can be a program name with args.
1902 set dummy ranlib; ac_word=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1907 else
1908 if test -n "$RANLIB"; then
1909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1910 else
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1912 ac_dummy="$PATH"
1913 for ac_dir in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir=.
1915 if test -f $ac_dir/$ac_word; then
1916 ac_cv_prog_RANLIB="ranlib"
1917 break
1919 done
1920 IFS="$ac_save_ifs"
1921 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1924 RANLIB="$ac_cv_prog_RANLIB"
1925 if test -n "$RANLIB"; then
1926 echo "$ac_t""$RANLIB" 1>&6
1927 else
1928 echo "$ac_t""no" 1>&6
1931 else
1932 RANLIB=":"
1936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}strip; ac_word=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943 if test -n "$STRIP"; then
1944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1945 else
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1947 ac_dummy="$PATH"
1948 for ac_dir in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1952 break
1954 done
1955 IFS="$ac_save_ifs"
1958 STRIP="$ac_cv_prog_STRIP"
1959 if test -n "$STRIP"; then
1960 echo "$ac_t""$STRIP" 1>&6
1961 else
1962 echo "$ac_t""no" 1>&6
1966 if test -z "$ac_cv_prog_STRIP"; then
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "strip", so it can be a program name with args.
1969 set dummy strip; ac_word=$2
1970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1971 echo "configure:1972: checking for $ac_word" >&5
1972 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1974 else
1975 if test -n "$STRIP"; then
1976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1977 else
1978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1979 ac_dummy="$PATH"
1980 for ac_dir in $ac_dummy; do
1981 test -z "$ac_dir" && ac_dir=.
1982 if test -f $ac_dir/$ac_word; then
1983 ac_cv_prog_STRIP="strip"
1984 break
1986 done
1987 IFS="$ac_save_ifs"
1988 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1991 STRIP="$ac_cv_prog_STRIP"
1992 if test -n "$STRIP"; then
1993 echo "$ac_t""$STRIP" 1>&6
1994 else
1995 echo "$ac_t""no" 1>&6
1998 else
1999 STRIP=":"
2004 # Check for any special flags to pass to ltconfig.
2005 libtool_flags="--cache-file=$cache_file"
2006 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2007 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2008 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2009 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2010 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2012 libtool_flags="$libtool_flags --enable-win32-dll"
2013 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2014 if test "${enable_libtool_lock+set}" = set; then
2015 enableval="$enable_libtool_lock"
2019 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2020 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2022 # Check whether --with-pic or --without-pic was given.
2023 if test "${with_pic+set}" = set; then
2024 withval="$with_pic"
2025 pic_mode="$withval"
2026 else
2027 pic_mode=default
2030 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2031 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2033 # Some flags need to be propagated to the compiler or linker for good
2034 # libtool support.
2035 case $host in
2036 *-*-irix6*)
2037 # Find out which ABI we are using.
2038 echo '#line 2039 "configure"' > conftest.$ac_ext
2039 if { (eval echo configure:2040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2040 case `/usr/bin/file conftest.$ac_objext` in
2041 *32-bit*)
2042 LD="${LD-ld} -32"
2044 *N32*)
2045 LD="${LD-ld} -n32"
2047 *64-bit*)
2048 LD="${LD-ld} -64"
2050 esac
2052 rm -rf conftest*
2055 *-*-sco3.2v5*)
2056 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2057 SAVE_CFLAGS="$CFLAGS"
2058 CFLAGS="$CFLAGS -belf"
2059 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2060 echo "configure:2061: checking whether the C compiler needs -belf" >&5
2061 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2063 else
2065 ac_ext=c
2066 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2067 ac_cpp='$CPP $CPPFLAGS'
2068 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2069 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2070 cross_compiling=$ac_cv_prog_cc_cross
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2076 int main() {
2078 ; return 0; }
2080 if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2081 rm -rf conftest*
2082 lt_cv_cc_needs_belf=yes
2083 else
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2086 rm -rf conftest*
2087 lt_cv_cc_needs_belf=no
2089 rm -f conftest*
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
2099 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2100 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2101 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2102 CFLAGS="$SAVE_CFLAGS"
2106 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2107 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2108 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 if test -n "$DLLTOOL"; then
2115 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2116 else
2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2118 ac_dummy="$PATH"
2119 for ac_dir in $ac_dummy; do
2120 test -z "$ac_dir" && ac_dir=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2123 break
2125 done
2126 IFS="$ac_save_ifs"
2129 DLLTOOL="$ac_cv_prog_DLLTOOL"
2130 if test -n "$DLLTOOL"; then
2131 echo "$ac_t""$DLLTOOL" 1>&6
2132 else
2133 echo "$ac_t""no" 1>&6
2137 if test -z "$ac_cv_prog_DLLTOOL"; then
2138 if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "dlltool", so it can be a program name with args.
2140 set dummy dlltool; ac_word=$2
2141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_word" >&5
2143 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 if test -n "$DLLTOOL"; then
2147 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2148 else
2149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2150 ac_dummy="$PATH"
2151 for ac_dir in $ac_dummy; do
2152 test -z "$ac_dir" && ac_dir=.
2153 if test -f $ac_dir/$ac_word; then
2154 ac_cv_prog_DLLTOOL="dlltool"
2155 break
2157 done
2158 IFS="$ac_save_ifs"
2159 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2162 DLLTOOL="$ac_cv_prog_DLLTOOL"
2163 if test -n "$DLLTOOL"; then
2164 echo "$ac_t""$DLLTOOL" 1>&6
2165 else
2166 echo "$ac_t""no" 1>&6
2169 else
2170 DLLTOOL="false"
2174 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2175 set dummy ${ac_tool_prefix}as; ac_word=$2
2176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_word" >&5
2178 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181 if test -n "$AS"; then
2182 ac_cv_prog_AS="$AS" # Let the user override the test.
2183 else
2184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2185 ac_dummy="$PATH"
2186 for ac_dir in $ac_dummy; do
2187 test -z "$ac_dir" && ac_dir=.
2188 if test -f $ac_dir/$ac_word; then
2189 ac_cv_prog_AS="${ac_tool_prefix}as"
2190 break
2192 done
2193 IFS="$ac_save_ifs"
2196 AS="$ac_cv_prog_AS"
2197 if test -n "$AS"; then
2198 echo "$ac_t""$AS" 1>&6
2199 else
2200 echo "$ac_t""no" 1>&6
2204 if test -z "$ac_cv_prog_AS"; then
2205 if test -n "$ac_tool_prefix"; then
2206 # Extract the first word of "as", so it can be a program name with args.
2207 set dummy as; ac_word=$2
2208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2209 echo "configure:2210: checking for $ac_word" >&5
2210 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213 if test -n "$AS"; then
2214 ac_cv_prog_AS="$AS" # Let the user override the test.
2215 else
2216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2217 ac_dummy="$PATH"
2218 for ac_dir in $ac_dummy; do
2219 test -z "$ac_dir" && ac_dir=.
2220 if test -f $ac_dir/$ac_word; then
2221 ac_cv_prog_AS="as"
2222 break
2224 done
2225 IFS="$ac_save_ifs"
2226 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2229 AS="$ac_cv_prog_AS"
2230 if test -n "$AS"; then
2231 echo "$ac_t""$AS" 1>&6
2232 else
2233 echo "$ac_t""no" 1>&6
2236 else
2237 AS="false"
2241 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2242 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_word" >&5
2245 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2247 else
2248 if test -n "$OBJDUMP"; then
2249 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2250 else
2251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2252 ac_dummy="$PATH"
2253 for ac_dir in $ac_dummy; do
2254 test -z "$ac_dir" && ac_dir=.
2255 if test -f $ac_dir/$ac_word; then
2256 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2257 break
2259 done
2260 IFS="$ac_save_ifs"
2263 OBJDUMP="$ac_cv_prog_OBJDUMP"
2264 if test -n "$OBJDUMP"; then
2265 echo "$ac_t""$OBJDUMP" 1>&6
2266 else
2267 echo "$ac_t""no" 1>&6
2271 if test -z "$ac_cv_prog_OBJDUMP"; then
2272 if test -n "$ac_tool_prefix"; then
2273 # Extract the first word of "objdump", so it can be a program name with args.
2274 set dummy objdump; ac_word=$2
2275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_word" >&5
2277 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280 if test -n "$OBJDUMP"; then
2281 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2282 else
2283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2284 ac_dummy="$PATH"
2285 for ac_dir in $ac_dummy; do
2286 test -z "$ac_dir" && ac_dir=.
2287 if test -f $ac_dir/$ac_word; then
2288 ac_cv_prog_OBJDUMP="objdump"
2289 break
2291 done
2292 IFS="$ac_save_ifs"
2293 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2296 OBJDUMP="$ac_cv_prog_OBJDUMP"
2297 if test -n "$OBJDUMP"; then
2298 echo "$ac_t""$OBJDUMP" 1>&6
2299 else
2300 echo "$ac_t""no" 1>&6
2303 else
2304 OBJDUMP="false"
2309 # recent cygwin and mingw systems supply a stub DllMain which the user
2310 # can override, but on older systems we have to supply one
2311 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2312 echo "configure:2313: checking if libtool should supply DllMain function" >&5
2313 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2315 else
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2320 int main() {
2321 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2322 DllMain (0, 0, 0);
2323 ; return 0; }
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2326 rm -rf conftest*
2327 lt_cv_need_dllmain=no
2328 else
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2331 rm -rf conftest*
2332 lt_cv_need_dllmain=yes
2334 rm -f conftest*
2337 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2339 case $host/$CC in
2340 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2341 # old mingw systems require "-dll" to link a DLL, while more recent ones
2342 # require "-mdll"
2343 SAVE_CFLAGS="$CFLAGS"
2344 CFLAGS="$CFLAGS -mdll"
2345 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2346 echo "configure:2347: checking how to link DLLs" >&5
2347 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349 else
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2354 int main() {
2356 ; return 0; }
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2359 rm -rf conftest*
2360 lt_cv_cc_dll_switch=-mdll
2361 else
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 rm -rf conftest*
2365 lt_cv_cc_dll_switch=-dll
2367 rm -f conftest*
2370 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2371 CFLAGS="$SAVE_CFLAGS" ;;
2372 *-*-cygwin* | *-*-pw32*)
2373 # cygwin systems need to pass --dll to the linker, and not link
2374 # crt.o which will require a WinMain@16 definition.
2375 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2376 esac
2379 esac
2382 # Save cache, so that ltconfig can load it
2383 cat > confcache <<\EOF
2384 # This file is a shell script that caches the results of configure
2385 # tests run on this system so they can be shared between configure
2386 # scripts and configure runs. It is not useful on other systems.
2387 # If it contains results you don't want to keep, you may remove or edit it.
2389 # By default, configure uses ./config.cache as the cache file,
2390 # creating it if it does not exist already. You can give configure
2391 # the --cache-file=FILE option to use a different cache file; that is
2392 # what configure does when it calls configure scripts in
2393 # subdirectories, so they share the cache.
2394 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2395 # config.status only pays attention to the cache file if you give it the
2396 # --recheck option to rerun configure.
2399 # The following way of writing the cache mishandles newlines in values,
2400 # but we know of no workaround that is simple, portable, and efficient.
2401 # So, don't put newlines in cache variables' values.
2402 # Ultrix sh set writes to stderr and can't be redirected directly,
2403 # and sets the high bit in the cache file unless we assign to the vars.
2404 (set) 2>&1 |
2405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2406 *ac_space=\ *)
2407 # `set' does not quote correctly, so add quotes (double-quote substitution
2408 # turns \\\\ into \\, and sed turns \\ into \).
2409 sed -n \
2410 -e "s/'/'\\\\''/g" \
2411 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2414 # `set' quotes correctly as required by POSIX, so do not add quotes.
2415 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2417 esac >> confcache
2418 if cmp -s $cache_file confcache; then
2420 else
2421 if test -w $cache_file; then
2422 echo "updating cache $cache_file"
2423 cat confcache > $cache_file
2424 else
2425 echo "not updating unwritable cache $cache_file"
2428 rm -f confcache
2431 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2432 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2433 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2434 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2435 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2436 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2437 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2438 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2439 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2440 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2442 # Reload cache, that may have been modified by ltconfig
2443 if test -r "$cache_file"; then
2444 echo "loading cache $cache_file"
2445 . $cache_file
2446 else
2447 echo "creating cache $cache_file"
2448 > $cache_file
2452 # This can be used to rebuild libtool when needed
2453 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2455 # Always use our own libtool.
2456 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2458 # Redirect the config.log output again, so that the ltconfig log is not
2459 # clobbered by the next message.
2460 exec 5>>./config.log
2468 test "$AR" || AR=ar
2470 if test "$RANLIB"; then :
2472 else
2473 # Extract the first word of "ranlib", so it can be a program name with args.
2474 set dummy ranlib; ac_word=$2
2475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_word" >&5
2477 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480 if test -n "$RANLIB"; then
2481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2482 else
2483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2484 ac_dummy="$PATH"
2485 for ac_dir in $ac_dummy; do
2486 test -z "$ac_dir" && ac_dir=.
2487 if test -f $ac_dir/$ac_word; then
2488 ac_cv_prog_RANLIB="ranlib"
2489 break
2491 done
2492 IFS="$ac_save_ifs"
2493 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2496 RANLIB="$ac_cv_prog_RANLIB"
2497 if test -n "$RANLIB"; then
2498 echo "$ac_t""$RANLIB" 1>&6
2499 else
2500 echo "$ac_t""no" 1>&6
2504 # Find a good install program. We prefer a C program (faster),
2505 # so one script is as good as another. But avoid the broken or
2506 # incompatible versions:
2507 # SysV /etc/install, /usr/sbin/install
2508 # SunOS /usr/etc/install
2509 # IRIX /sbin/install
2510 # AIX /bin/install
2511 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2514 # ./install, which can be erroneously created by make from ./install.sh.
2515 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2516 echo "configure:2517: checking for a BSD compatible install" >&5
2517 if test -z "$INSTALL"; then
2518 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2520 else
2521 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2522 for ac_dir in $PATH; do
2523 # Account for people who put trailing slashes in PATH elements.
2524 case "$ac_dir/" in
2525 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2527 # OSF1 and SCO ODT 3.0 have their own names for install.
2528 # Don't use installbsd from OSF since it installs stuff as root
2529 # by default.
2530 for ac_prog in ginstall scoinst install; do
2531 if test -f $ac_dir/$ac_prog; then
2532 if test $ac_prog = install &&
2533 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2534 # AIX install. It has an incompatible calling convention.
2536 else
2537 ac_cv_path_install="$ac_dir/$ac_prog -c"
2538 break 2
2541 done
2543 esac
2544 done
2545 IFS="$ac_save_IFS"
2548 if test "${ac_cv_path_install+set}" = set; then
2549 INSTALL="$ac_cv_path_install"
2550 else
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
2555 INSTALL="$ac_install_sh"
2558 echo "$ac_t""$INSTALL" 1>&6
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2569 echo "configure:2570: checking whether ${MAKE-make} sets \${MAKE}" >&5
2570 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2571 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2573 else
2574 cat > conftestmake <<\EOF
2575 all:
2576 @echo 'ac_maketemp="${MAKE}"'
2578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2579 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2580 if test -n "$ac_maketemp"; then
2581 eval ac_cv_prog_make_${ac_make}_set=yes
2582 else
2583 eval ac_cv_prog_make_${ac_make}_set=no
2585 rm -f conftestmake
2587 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2589 SET_MAKE=
2590 else
2591 echo "$ac_t""no" 1>&6
2592 SET_MAKE="MAKE=${MAKE-make}"
2596 # Sanity check for the cross-compilation case:
2597 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2598 echo "configure:2599: checking how to run the C preprocessor" >&5
2599 # On Suns, sometimes $CPP names a directory.
2600 if test -n "$CPP" && test -d "$CPP"; then
2601 CPP=
2603 if test -z "$CPP"; then
2604 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2606 else
2607 # This must be in double quotes, not single quotes, because CPP may get
2608 # substituted into the Makefile and "${CC-cc}" will confuse make.
2609 CPP="${CC-cc} -E"
2610 # On the NeXT, cc -E runs the code through the compiler's parser,
2611 # not just through cpp.
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 #include <assert.h>
2616 Syntax Error
2618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2619 { (eval echo configure:2620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2621 if test -z "$ac_err"; then
2623 else
2624 echo "$ac_err" >&5
2625 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2627 rm -rf conftest*
2628 CPP="${CC-cc} -E -traditional-cpp"
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 #include <assert.h>
2633 Syntax Error
2635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2636 { (eval echo configure:2637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2638 if test -z "$ac_err"; then
2640 else
2641 echo "$ac_err" >&5
2642 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 rm -rf conftest*
2645 CPP="${CC-cc} -nologo -E"
2646 cat > conftest.$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2649 #include <assert.h>
2650 Syntax Error
2652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2653 { (eval echo configure:2654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2655 if test -z "$ac_err"; then
2657 else
2658 echo "$ac_err" >&5
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2661 rm -rf conftest*
2662 CPP=/lib/cpp
2664 rm -f conftest*
2666 rm -f conftest*
2668 rm -f conftest*
2669 ac_cv_prog_CPP="$CPP"
2671 CPP="$ac_cv_prog_CPP"
2672 else
2673 ac_cv_prog_CPP="$CPP"
2675 echo "$ac_t""$CPP" 1>&6
2677 ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
2678 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
2679 echo "configure:2680: checking for stdio.h" >&5
2680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2682 else
2683 cat > conftest.$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2686 #include <stdio.h>
2688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2689 { (eval echo configure:2690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2691 if test -z "$ac_err"; then
2692 rm -rf conftest*
2693 eval "ac_cv_header_$ac_safe=yes"
2694 else
2695 echo "$ac_err" >&5
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2698 rm -rf conftest*
2699 eval "ac_cv_header_$ac_safe=no"
2701 rm -f conftest*
2703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2704 echo "$ac_t""yes" 1>&6
2706 else
2707 echo "$ac_t""no" 1>&6
2708 { echo "configure: error: Can't find stdio.h.
2709 You must have a usable C system for the target already installed, at least
2710 including headers and, preferably, the library, before you can configure
2711 the Objective C runtime system. If necessary, install gcc now with
2712 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." 1>&2; exit 1; }
2716 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2717 echo "configure:2718: checking for ANSI C header files" >&5
2718 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2720 else
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2724 #include <stdlib.h>
2725 #include <stdarg.h>
2726 #include <string.h>
2727 #include <float.h>
2729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2730 { (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2732 if test -z "$ac_err"; then
2733 rm -rf conftest*
2734 ac_cv_header_stdc=yes
2735 else
2736 echo "$ac_err" >&5
2737 echo "configure: failed program was:" >&5
2738 cat conftest.$ac_ext >&5
2739 rm -rf conftest*
2740 ac_cv_header_stdc=no
2742 rm -f conftest*
2744 if test $ac_cv_header_stdc = yes; then
2745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 #include <string.h>
2751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2752 egrep "memchr" >/dev/null 2>&1; then
2754 else
2755 rm -rf conftest*
2756 ac_cv_header_stdc=no
2758 rm -f conftest*
2762 if test $ac_cv_header_stdc = yes; then
2763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2764 cat > conftest.$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2767 #include <stdlib.h>
2769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2770 egrep "free" >/dev/null 2>&1; then
2772 else
2773 rm -rf conftest*
2774 ac_cv_header_stdc=no
2776 rm -f conftest*
2780 if test $ac_cv_header_stdc = yes; then
2781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2782 if test "$cross_compiling" = yes; then
2784 else
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2788 #include <ctype.h>
2789 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2790 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2791 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2792 int main () { int i; for (i = 0; i < 256; i++)
2793 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2794 exit (0); }
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2798 then
2800 else
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2803 rm -fr conftest*
2804 ac_cv_header_stdc=no
2806 rm -fr conftest*
2812 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2813 if test $ac_cv_header_stdc = yes; then
2814 cat >> confdefs.h <<\EOF
2815 #define STDC_HEADERS 1
2821 for ac_hdr in sched.h
2823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2825 echo "configure:2826: checking for $ac_hdr" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2828 else
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 #include <$ac_hdr>
2834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2835 { (eval echo configure:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2837 if test -z "$ac_err"; then
2838 rm -rf conftest*
2839 eval "ac_cv_header_$ac_safe=yes"
2840 else
2841 echo "$ac_err" >&5
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 rm -rf conftest*
2845 eval "ac_cv_header_$ac_safe=no"
2847 rm -f conftest*
2849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2852 cat >> confdefs.h <<EOF
2853 #define $ac_tr_hdr 1
2856 else
2857 echo "$ac_t""no" 1>&6
2859 done
2862 # Determine CFLAGS for gthread.
2864 echo $ac_n "checking for gthread cflags""... $ac_c" 1>&6
2865 echo "configure:2866: checking for gthread cflags" >&5
2866 if eval "test \"`echo '$''{'objc_cv_gthread_flags'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2868 else
2869 if test -f "$r"/gcc/Makefile
2870 then
2871 objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
2872 else
2873 { echo "configure: error: not found" 1>&2; exit 1; }
2877 echo "$ac_t""$objc_cv_gthread_flags" 1>&6
2878 GTHREAD_FLAGS=$objc_cv_gthread_flags
2881 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2882 if test "${enable_objc_gc+set}" = set; then
2883 enableval="$enable_objc_gc"
2884 if [ x$enable_objc_gc = xno ]; then
2885 OBJC_BOEHM_GC=''
2886 else
2887 OBJC_BOEHM_GC=libobjc_gc.la
2889 else
2890 OBJC_BOEHM_GC=''
2896 # We need multilib support, but only if configuring for the target.
2897 trap '' 1 2 15
2898 cat > confcache <<\EOF
2899 # This file is a shell script that caches the results of configure
2900 # tests run on this system so they can be shared between configure
2901 # scripts and configure runs. It is not useful on other systems.
2902 # If it contains results you don't want to keep, you may remove or edit it.
2904 # By default, configure uses ./config.cache as the cache file,
2905 # creating it if it does not exist already. You can give configure
2906 # the --cache-file=FILE option to use a different cache file; that is
2907 # what configure does when it calls configure scripts in
2908 # subdirectories, so they share the cache.
2909 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2910 # config.status only pays attention to the cache file if you give it the
2911 # --recheck option to rerun configure.
2914 # The following way of writing the cache mishandles newlines in values,
2915 # but we know of no workaround that is simple, portable, and efficient.
2916 # So, don't put newlines in cache variables' values.
2917 # Ultrix sh set writes to stderr and can't be redirected directly,
2918 # and sets the high bit in the cache file unless we assign to the vars.
2919 (set) 2>&1 |
2920 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2921 *ac_space=\ *)
2922 # `set' does not quote correctly, so add quotes (double-quote substitution
2923 # turns \\\\ into \\, and sed turns \\ into \).
2924 sed -n \
2925 -e "s/'/'\\\\''/g" \
2926 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2929 # `set' quotes correctly as required by POSIX, so do not add quotes.
2930 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2932 esac >> confcache
2933 if cmp -s $cache_file confcache; then
2935 else
2936 if test -w $cache_file; then
2937 echo "updating cache $cache_file"
2938 cat confcache > $cache_file
2939 else
2940 echo "not updating unwritable cache $cache_file"
2943 rm -f confcache
2945 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2948 # Let make expand exec_prefix.
2949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2951 # Any assignment to VPATH causes Sun make to only execute
2952 # the first set of double-colon rules, so remove it if not needed.
2953 # If there is a colon in the path, we need to keep it.
2954 if test "x$srcdir" = x.; then
2955 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2958 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2960 DEFS=-DHAVE_CONFIG_H
2962 # Without the "./", some shells look in PATH for config.status.
2963 : ${CONFIG_STATUS=./config.status}
2965 echo creating $CONFIG_STATUS
2966 rm -f $CONFIG_STATUS
2967 cat > $CONFIG_STATUS <<EOF
2968 #! /bin/sh
2969 # Generated automatically by configure.
2970 # Run this file to recreate the current configuration.
2971 # This directory was configured as follows,
2972 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2974 # $0 $ac_configure_args
2976 # Compiler output produced by configure, useful for debugging
2977 # configure, is in ./config.log if it exists.
2979 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2980 for ac_option
2982 case "\$ac_option" in
2983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2984 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2985 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2986 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2987 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2988 exit 0 ;;
2989 -help | --help | --hel | --he | --h)
2990 echo "\$ac_cs_usage"; exit 0 ;;
2991 *) echo "\$ac_cs_usage"; exit 1 ;;
2992 esac
2993 done
2995 ac_given_srcdir=$srcdir
2996 ac_given_INSTALL="$INSTALL"
2998 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3000 cat >> $CONFIG_STATUS <<EOF
3002 # Protect against being on the right side of a sed subst in config.status.
3003 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3004 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3005 $ac_vpsub
3006 $extrasub
3007 s%@SHELL@%$SHELL%g
3008 s%@CFLAGS@%$CFLAGS%g
3009 s%@CPPFLAGS@%$CPPFLAGS%g
3010 s%@CXXFLAGS@%$CXXFLAGS%g
3011 s%@FFLAGS@%$FFLAGS%g
3012 s%@DEFS@%$DEFS%g
3013 s%@LDFLAGS@%$LDFLAGS%g
3014 s%@LIBS@%$LIBS%g
3015 s%@exec_prefix@%$exec_prefix%g
3016 s%@prefix@%$prefix%g
3017 s%@program_transform_name@%$program_transform_name%g
3018 s%@bindir@%$bindir%g
3019 s%@sbindir@%$sbindir%g
3020 s%@libexecdir@%$libexecdir%g
3021 s%@datadir@%$datadir%g
3022 s%@sysconfdir@%$sysconfdir%g
3023 s%@sharedstatedir@%$sharedstatedir%g
3024 s%@localstatedir@%$localstatedir%g
3025 s%@libdir@%$libdir%g
3026 s%@includedir@%$includedir%g
3027 s%@oldincludedir@%$oldincludedir%g
3028 s%@infodir@%$infodir%g
3029 s%@mandir@%$mandir%g
3030 s%@host@%$host%g
3031 s%@host_alias@%$host_alias%g
3032 s%@host_cpu@%$host_cpu%g
3033 s%@host_vendor@%$host_vendor%g
3034 s%@host_os@%$host_os%g
3035 s%@target@%$target%g
3036 s%@target_alias@%$target_alias%g
3037 s%@target_cpu@%$target_cpu%g
3038 s%@target_vendor@%$target_vendor%g
3039 s%@target_os@%$target_os%g
3040 s%@build@%$build%g
3041 s%@build_alias@%$build_alias%g
3042 s%@build_cpu@%$build_cpu%g
3043 s%@build_vendor@%$build_vendor%g
3044 s%@build_os@%$build_os%g
3045 s%@toplevel_srcdir@%$toplevel_srcdir%g
3046 s%@glibcpp_builddir@%$glibcpp_builddir%g
3047 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
3048 s%@LN_S@%$LN_S%g
3049 s%@CC@%$CC%g
3050 s%@AS@%$AS%g
3051 s%@AR@%$AR%g
3052 s%@RANLIB@%$RANLIB%g
3053 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3054 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3055 s%@INSTALL_DATA@%$INSTALL_DATA%g
3056 s%@EXEEXT@%$EXEEXT%g
3057 s%@gcc_version@%$gcc_version%g
3058 s%@gcc_version_trigger@%$gcc_version_trigger%g
3059 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
3060 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
3061 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
3062 s%@OBJEXT@%$OBJEXT%g
3063 s%@STRIP@%$STRIP%g
3064 s%@DLLTOOL@%$DLLTOOL%g
3065 s%@OBJDUMP@%$OBJDUMP%g
3066 s%@LIBTOOL@%$LIBTOOL%g
3067 s%@SET_MAKE@%$SET_MAKE%g
3068 s%@CPP@%$CPP%g
3069 s%@GTHREAD_FLAGS@%$GTHREAD_FLAGS%g
3070 s%@OBJC_BOEHM_GC@%$OBJC_BOEHM_GC%g
3072 CEOF
3075 cat >> $CONFIG_STATUS <<\EOF
3077 # Split the substitutions into bite-sized pieces for seds with
3078 # small command number limits, like on Digital OSF/1 and HP-UX.
3079 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3080 ac_file=1 # Number of current file.
3081 ac_beg=1 # First line for current file.
3082 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3083 ac_more_lines=:
3084 ac_sed_cmds=""
3085 while $ac_more_lines; do
3086 if test $ac_beg -gt 1; then
3087 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3088 else
3089 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3091 if test ! -s conftest.s$ac_file; then
3092 ac_more_lines=false
3093 rm -f conftest.s$ac_file
3094 else
3095 if test -z "$ac_sed_cmds"; then
3096 ac_sed_cmds="sed -f conftest.s$ac_file"
3097 else
3098 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3100 ac_file=`expr $ac_file + 1`
3101 ac_beg=$ac_end
3102 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3104 done
3105 if test -z "$ac_sed_cmds"; then
3106 ac_sed_cmds=cat
3110 cat >> $CONFIG_STATUS <<EOF
3112 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3114 cat >> $CONFIG_STATUS <<\EOF
3115 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3116 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3117 case "$ac_file" in
3118 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3119 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3120 *) ac_file_in="${ac_file}.in" ;;
3121 esac
3123 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3125 # Remove last slash and all that follows it. Not all systems have dirname.
3126 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3127 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3128 # The file is in a subdirectory.
3129 test ! -d "$ac_dir" && mkdir "$ac_dir"
3130 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3131 # A "../" for each directory in $ac_dir_suffix.
3132 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3133 else
3134 ac_dir_suffix= ac_dots=
3137 case "$ac_given_srcdir" in
3138 .) srcdir=.
3139 if test -z "$ac_dots"; then top_srcdir=.
3140 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3141 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3142 *) # Relative path.
3143 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3144 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3145 esac
3147 case "$ac_given_INSTALL" in
3148 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3149 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3150 esac
3152 echo creating "$ac_file"
3153 rm -f "$ac_file"
3154 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3155 case "$ac_file" in
3156 *Makefile*) ac_comsub="1i\\
3157 # $configure_input" ;;
3158 *) ac_comsub= ;;
3159 esac
3161 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3162 sed -e "$ac_comsub
3163 s%@configure_input@%$configure_input%g
3164 s%@srcdir@%$srcdir%g
3165 s%@top_srcdir@%$top_srcdir%g
3166 s%@INSTALL@%$INSTALL%g
3167 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3168 fi; done
3169 rm -f conftest.s*
3171 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3172 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3174 # ac_d sets the value in "#define NAME VALUE" lines.
3175 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3176 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3177 ac_dC='\3'
3178 ac_dD='%g'
3179 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3180 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3181 ac_uB='\([ ]\)%\1#\2define\3'
3182 ac_uC=' '
3183 ac_uD='\4%g'
3184 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3185 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3186 ac_eB='$%\1#\2define\3'
3187 ac_eC=' '
3188 ac_eD='%g'
3190 if test "${CONFIG_HEADERS+set}" != set; then
3192 cat >> $CONFIG_STATUS <<EOF
3193 CONFIG_HEADERS="config.h"
3195 cat >> $CONFIG_STATUS <<\EOF
3197 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3198 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3199 case "$ac_file" in
3200 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3201 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3202 *) ac_file_in="${ac_file}.in" ;;
3203 esac
3205 echo creating $ac_file
3207 rm -f conftest.frag conftest.in conftest.out
3208 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3209 cat $ac_file_inputs > conftest.in
3213 # Transform confdefs.h into a sed script conftest.vals that substitutes
3214 # the proper values into config.h.in to produce config.h. And first:
3215 # Protect against being on the right side of a sed subst in config.status.
3216 # Protect against being in an unquoted here document in config.status.
3217 rm -f conftest.vals
3218 cat > conftest.hdr <<\EOF
3219 s/[\\&%]/\\&/g
3220 s%[\\$`]%\\&%g
3221 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3222 s%ac_d%ac_u%gp
3223 s%ac_u%ac_e%gp
3225 sed -n -f conftest.hdr confdefs.h > conftest.vals
3226 rm -f conftest.hdr
3228 # This sed command replaces #undef with comments. This is necessary, for
3229 # example, in the case of _POSIX_SOURCE, which is predefined and required
3230 # on some systems where configure will not decide to define it.
3231 cat >> conftest.vals <<\EOF
3232 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3235 # Break up conftest.vals because some shells have a limit on
3236 # the size of here documents, and old seds have small limits too.
3238 rm -f conftest.tail
3239 while :
3241 ac_lines=`grep -c . conftest.vals`
3242 # grep -c gives empty output for an empty file on some AIX systems.
3243 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3244 # Write a limited-size here document to conftest.frag.
3245 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3246 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3247 echo 'CEOF
3248 sed -f conftest.frag conftest.in > conftest.out
3249 rm -f conftest.in
3250 mv conftest.out conftest.in
3251 ' >> $CONFIG_STATUS
3252 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3253 rm -f conftest.vals
3254 mv conftest.tail conftest.vals
3255 done
3256 rm -f conftest.vals
3258 cat >> $CONFIG_STATUS <<\EOF
3259 rm -f conftest.frag conftest.h
3260 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3261 cat conftest.in >> conftest.h
3262 rm -f conftest.in
3263 if cmp -s $ac_file conftest.h 2>/dev/null; then
3264 echo "$ac_file is unchanged"
3265 rm -f conftest.h
3266 else
3267 # Remove last slash and all that follows it. Not all systems have dirname.
3268 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3269 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3270 # The file is in a subdirectory.
3271 test ! -d "$ac_dir" && mkdir "$ac_dir"
3273 rm -f $ac_file
3274 mv conftest.h $ac_file
3276 fi; done
3279 cat >> $CONFIG_STATUS <<EOF
3280 srcdir=${srcdir}
3281 host=${host}
3282 target=${target}
3283 with_target_subdir=${with_target_subdir}
3284 with_multisubdir=${with_multisubdir}
3285 ac_configure_args="--enable-multilib ${ac_configure_args}"
3286 toplevel_srcdir=${toplevel_srcdir}
3287 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3290 cat >> $CONFIG_STATUS <<\EOF
3291 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3292 if test -n "$CONFIG_FILES"; then
3293 if test -n "${with_target_subdir}"; then
3294 # FIXME: We shouldn't need to set ac_file
3295 ac_file=Makefile
3296 . ${toplevel_srcdir}/config-ml.in
3299 exit 0
3301 chmod +x $CONFIG_STATUS
3302 rm -fr confdefs* $ac_clean_files
3303 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1