OSDN Git Service

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