source: trunk/src/gcc/libobjc/configure@ 112

Last change on this file since 112 was 80, checked in by bird, 22 years ago

Regenerated configure on OS/2.

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