OSDN Git Service

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