OSDN Git Service

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