OSDN Git Service

./ChangeLog:
[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.12.1 
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-objc-gc       enable the use of Boehm's garbage collector with
16                           the GNU Objective-C runtime."
17
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
21 build=NONE
22 cache_file=./config.cache
23 exec_prefix=NONE
24 host=NONE
25 no_create=
26 nonopt=NONE
27 no_recursion=
28 prefix=NONE
29 program_prefix=NONE
30 program_suffix=NONE
31 program_transform_name=s,x,x,
32 silent=
33 site=
34 srcdir=
35 target=NONE
36 verbose=
37 x_includes=NONE
38 x_libraries=NONE
39 bindir='${exec_prefix}/bin'
40 sbindir='${exec_prefix}/sbin'
41 libexecdir='${exec_prefix}/libexec'
42 datadir='${prefix}/share'
43 sysconfdir='${prefix}/etc'
44 sharedstatedir='${prefix}/com'
45 localstatedir='${prefix}/var'
46 libdir='${exec_prefix}/lib'
47 includedir='${prefix}/include'
48 oldincludedir='/usr/include'
49 infodir='${prefix}/info'
50 mandir='${prefix}/man'
51
52 # Initialize some other variables.
53 subdirs=
54 MFLAGS= MAKEFLAGS=
55 SHELL=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
57 ac_max_here_lines=12
58
59 ac_prev=
60 for ac_option
61 do
62
63   # If the previous option needs an argument, assign it.
64   if test -n "$ac_prev"; then
65     eval "$ac_prev=\$ac_option"
66     ac_prev=
67     continue
68   fi
69
70   case "$ac_option" in
71   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72   *) ac_optarg= ;;
73   esac
74
75   # Accept the important Cygnus configure options, so we can diagnose typos.
76
77   case "$ac_option" in
78
79   -bindir | --bindir | --bindi | --bind | --bin | --bi)
80     ac_prev=bindir ;;
81   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82     bindir="$ac_optarg" ;;
83
84   -build | --build | --buil | --bui | --bu)
85     ac_prev=build ;;
86   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87     build="$ac_optarg" ;;
88
89   -cache-file | --cache-file | --cache-fil | --cache-fi \
90   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91     ac_prev=cache_file ;;
92   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94     cache_file="$ac_optarg" ;;
95
96   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97     ac_prev=datadir ;;
98   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99   | --da=*)
100     datadir="$ac_optarg" ;;
101
102   -disable-* | --disable-*)
103     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104     # Reject names that are not valid shell variable names.
105     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107     fi
108     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109     eval "enable_${ac_feature}=no" ;;
110
111   -enable-* | --enable-*)
112     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113     # Reject names that are not valid shell variable names.
114     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116     fi
117     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118     case "$ac_option" in
119       *=*) ;;
120       *) ac_optarg=yes ;;
121     esac
122     eval "enable_${ac_feature}='$ac_optarg'" ;;
123
124   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126   | --exec | --exe | --ex)
127     ac_prev=exec_prefix ;;
128   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130   | --exec=* | --exe=* | --ex=*)
131     exec_prefix="$ac_optarg" ;;
132
133   -gas | --gas | --ga | --g)
134     # Obsolete; use --with-gas.
135     with_gas=yes ;;
136
137   -help | --help | --hel | --he)
138     # Omit some internal or obsolete options to make the list less imposing.
139     # This message is too long to be a string in the A/UX 3.1 sh.
140     cat << EOF
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
143 Configuration:
144   --cache-file=FILE       cache test results in FILE
145   --help                  print this message
146   --no-create             do not create output files
147   --quiet, --silent       do not print \`checking...' messages
148   --version               print the version of autoconf that created configure
149 Directory and file names:
150   --prefix=PREFIX         install architecture-independent files in PREFIX
151                           [$ac_default_prefix]
152   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
153                           [same as prefix]
154   --bindir=DIR            user executables in DIR [EPREFIX/bin]
155   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
156   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
157   --datadir=DIR           read-only architecture-independent data in DIR
158                           [PREFIX/share]
159   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
160   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
161                           [PREFIX/com]
162   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
163   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
164   --includedir=DIR        C header files in DIR [PREFIX/include]
165   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
166   --infodir=DIR           info documentation in DIR [PREFIX/info]
167   --mandir=DIR            man documentation in DIR [PREFIX/man]
168   --srcdir=DIR            find the sources in DIR [configure dir or ..]
169   --program-prefix=PREFIX prepend PREFIX to installed program names
170   --program-suffix=SUFFIX append SUFFIX to installed program names
171   --program-transform-name=PROGRAM
172                           run sed PROGRAM on installed program names
173 EOF
174     cat << EOF
175 Host type:
176   --build=BUILD           configure for building on BUILD [BUILD=HOST]
177   --host=HOST             configure for HOST [guessed]
178   --target=TARGET         configure for TARGET [TARGET=HOST]
179 Features and packages:
180   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
181   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
182   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
183   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
184   --x-includes=DIR        X include files are in DIR
185   --x-libraries=DIR       X library files are in DIR
186 EOF
187     if test -n "$ac_help"; then
188       echo "--enable and --with options recognized:$ac_help"
189     fi
190     exit 0 ;;
191
192   -host | --host | --hos | --ho)
193     ac_prev=host ;;
194   -host=* | --host=* | --hos=* | --ho=*)
195     host="$ac_optarg" ;;
196
197   -includedir | --includedir | --includedi | --included | --include \
198   | --includ | --inclu | --incl | --inc)
199     ac_prev=includedir ;;
200   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201   | --includ=* | --inclu=* | --incl=* | --inc=*)
202     includedir="$ac_optarg" ;;
203
204   -infodir | --infodir | --infodi | --infod | --info | --inf)
205     ac_prev=infodir ;;
206   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207     infodir="$ac_optarg" ;;
208
209   -libdir | --libdir | --libdi | --libd)
210     ac_prev=libdir ;;
211   -libdir=* | --libdir=* | --libdi=* | --libd=*)
212     libdir="$ac_optarg" ;;
213
214   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215   | --libexe | --libex | --libe)
216     ac_prev=libexecdir ;;
217   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218   | --libexe=* | --libex=* | --libe=*)
219     libexecdir="$ac_optarg" ;;
220
221   -localstatedir | --localstatedir | --localstatedi | --localstated \
222   | --localstate | --localstat | --localsta | --localst \
223   | --locals | --local | --loca | --loc | --lo)
224     ac_prev=localstatedir ;;
225   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228     localstatedir="$ac_optarg" ;;
229
230   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231     ac_prev=mandir ;;
232   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233     mandir="$ac_optarg" ;;
234
235   -nfp | --nfp | --nf)
236     # Obsolete; use --without-fp.
237     with_fp=no ;;
238
239   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240   | --no-cr | --no-c)
241     no_create=yes ;;
242
243   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
245     no_recursion=yes ;;
246
247   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249   | --oldin | --oldi | --old | --ol | --o)
250     ac_prev=oldincludedir ;;
251   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254     oldincludedir="$ac_optarg" ;;
255
256   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257     ac_prev=prefix ;;
258   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259     prefix="$ac_optarg" ;;
260
261   -program-prefix | --program-prefix | --program-prefi | --program-pref \
262   | --program-pre | --program-pr | --program-p)
263     ac_prev=program_prefix ;;
264   -program-prefix=* | --program-prefix=* | --program-prefi=* \
265   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266     program_prefix="$ac_optarg" ;;
267
268   -program-suffix | --program-suffix | --program-suffi | --program-suff \
269   | --program-suf | --program-su | --program-s)
270     ac_prev=program_suffix ;;
271   -program-suffix=* | --program-suffix=* | --program-suffi=* \
272   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273     program_suffix="$ac_optarg" ;;
274
275   -program-transform-name | --program-transform-name \
276   | --program-transform-nam | --program-transform-na \
277   | --program-transform-n | --program-transform- \
278   | --program-transform | --program-transfor \
279   | --program-transfo | --program-transf \
280   | --program-trans | --program-tran \
281   | --progr-tra | --program-tr | --program-t)
282     ac_prev=program_transform_name ;;
283   -program-transform-name=* | --program-transform-name=* \
284   | --program-transform-nam=* | --program-transform-na=* \
285   | --program-transform-n=* | --program-transform-=* \
286   | --program-transform=* | --program-transfor=* \
287   | --program-transfo=* | --program-transf=* \
288   | --program-trans=* | --program-tran=* \
289   | --progr-tra=* | --program-tr=* | --program-t=*)
290     program_transform_name="$ac_optarg" ;;
291
292   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293   | -silent | --silent | --silen | --sile | --sil)
294     silent=yes ;;
295
296   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297     ac_prev=sbindir ;;
298   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299   | --sbi=* | --sb=*)
300     sbindir="$ac_optarg" ;;
301
302   -sharedstatedir | --sharedstatedir | --sharedstatedi \
303   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304   | --sharedst | --shareds | --shared | --share | --shar \
305   | --sha | --sh)
306     ac_prev=sharedstatedir ;;
307   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310   | --sha=* | --sh=*)
311     sharedstatedir="$ac_optarg" ;;
312
313   -site | --site | --sit)
314     ac_prev=site ;;
315   -site=* | --site=* | --sit=*)
316     site="$ac_optarg" ;;
317
318   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319     ac_prev=srcdir ;;
320   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321     srcdir="$ac_optarg" ;;
322
323   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324   | --syscon | --sysco | --sysc | --sys | --sy)
325     ac_prev=sysconfdir ;;
326   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328     sysconfdir="$ac_optarg" ;;
329
330   -target | --target | --targe | --targ | --tar | --ta | --t)
331     ac_prev=target ;;
332   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333     target="$ac_optarg" ;;
334
335   -v | -verbose | --verbose | --verbos | --verbo | --verb)
336     verbose=yes ;;
337
338   -version | --version | --versio | --versi | --vers)
339     echo "configure generated by autoconf version 2.12.1"
340     exit 0 ;;
341
342   -with-* | --with-*)
343     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344     # Reject names that are not valid shell variable names.
345     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347     fi
348     ac_package=`echo $ac_package| sed 's/-/_/g'`
349     case "$ac_option" in
350       *=*) ;;
351       *) ac_optarg=yes ;;
352     esac
353     eval "with_${ac_package}='$ac_optarg'" ;;
354
355   -without-* | --without-*)
356     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
357     # Reject names that are not valid shell variable names.
358     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360     fi
361     ac_package=`echo $ac_package| sed 's/-/_/g'`
362     eval "with_${ac_package}=no" ;;
363
364   --x)
365     # Obsolete; use --with-x.
366     with_x=yes ;;
367
368   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369   | --x-incl | --x-inc | --x-in | --x-i)
370     ac_prev=x_includes ;;
371   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373     x_includes="$ac_optarg" ;;
374
375   -x-libraries | --x-libraries | --x-librarie | --x-librari \
376   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377     ac_prev=x_libraries ;;
378   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380     x_libraries="$ac_optarg" ;;
381
382   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383     ;;
384
385   *)
386     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387       echo "configure: warning: $ac_option: invalid host type" 1>&2
388     fi
389     if test "x$nonopt" != xNONE; then
390       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391     fi
392     nonopt="$ac_option"
393     ;;
394
395   esac
396 done
397
398 if test -n "$ac_prev"; then
399   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 fi
401
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403
404 # File descriptor usage:
405 # 0 standard input
406 # 1 file creation
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
413   exec 6>/dev/null
414 else
415   exec 6>&1
416 fi
417 exec 5>./config.log
418
419 echo "\
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
422 " 1>&5
423
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
426 ac_configure_args=
427 for ac_arg
428 do
429   case "$ac_arg" in
430   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431   | --no-cr | --no-c) ;;
432   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
437   esac
438 done
439
440 # NLS nuisances.
441 # Only set these to C if already set.  These must not be set unconditionally
442 # because not all systems understand e.g. LANG=C (notably SCO).
443 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444 # Non-C LC_CTYPE values break the ctype check.
445 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
446 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
447 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
448 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
449
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
453 echo > confdefs.h
454
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file=objc/objc.h
458
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461   ac_srcdir_defaulted=yes
462   # Try the directory containing this script, then its parent.
463   ac_prog=$0
464   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466   srcdir=$ac_confdir
467   if test ! -r $srcdir/$ac_unique_file; then
468     srcdir=..
469   fi
470 else
471   ac_srcdir_defaulted=no
472 fi
473 if test ! -r $srcdir/$ac_unique_file; then
474   if test "$ac_srcdir_defaulted" = yes; then
475     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476   else
477     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478   fi
479 fi
480 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484   if test "x$prefix" != xNONE; then
485     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486   else
487     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488   fi
489 fi
490 for ac_site_file in $CONFIG_SITE; do
491   if test -r "$ac_site_file"; then
492     echo "loading site script $ac_site_file"
493     . "$ac_site_file"
494   fi
495 done
496
497 if test -r "$cache_file"; then
498   echo "loading cache $cache_file"
499   . $cache_file
500 else
501   echo "creating cache $cache_file"
502   > $cache_file
503 fi
504
505 ac_ext=c
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp='$CPP $CPPFLAGS'
508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling=$ac_cv_prog_cc_cross
511
512 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
513   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
514   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
515     ac_n= ac_c='
516 ' ac_t='        '
517   else
518     ac_n=-n ac_c= ac_t=
519   fi
520 else
521   ac_n= ac_c='\c' ac_t=
522 fi
523
524
525 #AC_CONFIG_HEADER(config.h)
526
527 if test "${srcdir}" = "." ; then
528   if test "${with_target_subdir}" != "." ; then
529     topsrcdir=${with_multisrctop}../..
530   else
531     topsrcdir=${with_multisrctop}..
532   fi
533 else
534   topsrcdir=${srcdir}/..
535 fi
536 ac_aux_dir=
537 for ac_dir in $topsrcdir $srcdir/$topsrcdir; do
538   if test -f $ac_dir/install-sh; then
539     ac_aux_dir=$ac_dir
540     ac_install_sh="$ac_aux_dir/install-sh -c"
541     break
542   elif test -f $ac_dir/install.sh; then
543     ac_aux_dir=$ac_dir
544     ac_install_sh="$ac_aux_dir/install.sh -c"
545     break
546   fi
547 done
548 if test -z "$ac_aux_dir"; then
549   { echo "configure: error: can not find install-sh or install.sh in $topsrcdir $srcdir/$topsrcdir" 1>&2; exit 1; }
550 fi
551 ac_config_guess=$ac_aux_dir/config.guess
552 ac_config_sub=$ac_aux_dir/config.sub
553 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554
555
556 # If the language specific compiler does not exist, but the "gcc" directory does,
557 # we do not build anything. Note, $r is set by the top-level Makefile.
558 compiler_name=cc1obj
559 rm -f skip-this-dir
560 echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
561 echo "configure:562: checking if compiler $compiler_name has been built" >&5
562 if eval "test \"`echo '$''{'objc_cv_compiler_exists'+set}'`\" = set"; then
563   echo $ac_n "(cached) $ac_c" 1>&6
564 else
565   objc_cv_compiler_exists=yes
566         if test -n "$r"; then
567                 if test -d "$r"/gcc; then
568                         if test -f "$r"/gcc/$compiler_name; then
569                                 true
570                         else
571                                 objc_cv_compiler_exists=no
572                                 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
573                         fi
574                 fi
575         fi
576         
577 fi
578
579 echo "$ac_t""$objc_cv_compiler_exists" 1>&6
580 if test x$objc_cv_compiler_exists = xno
581 then
582         rm -f Makefile conftest* confdefs* core
583         exit 0
584 fi
585
586 # For ObjC we'll set CC to point at the built gcc, but this will get it into
587 # the makefiles
588 # Extract the first word of "gcc", so it can be a program name with args.
589 set dummy gcc; ac_word=$2
590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
591 echo "configure:592: checking for $ac_word" >&5
592 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
593   echo $ac_n "(cached) $ac_c" 1>&6
594 else
595   if test -n "$CC"; then
596   ac_cv_prog_CC="$CC" # Let the user override the test.
597 else
598   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
599   for ac_dir in $PATH; do
600     test -z "$ac_dir" && ac_dir=.
601     if test -f $ac_dir/$ac_word; then
602       ac_cv_prog_CC="gcc"
603       break
604     fi
605   done
606   IFS="$ac_save_ifs"
607 fi
608 fi
609 CC="$ac_cv_prog_CC"
610 if test -n "$CC"; then
611   echo "$ac_t""$CC" 1>&6
612 else
613   echo "$ac_t""no" 1>&6
614 fi
615
616 if test -z "$CC"; then
617   # Extract the first word of "cc", so it can be a program name with args.
618 set dummy cc; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
622   echo $ac_n "(cached) $ac_c" 1>&6
623 else
624   if test -n "$CC"; then
625   ac_cv_prog_CC="$CC" # Let the user override the test.
626 else
627   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
628   ac_prog_rejected=no
629   for ac_dir in $PATH; do
630     test -z "$ac_dir" && ac_dir=.
631     if test -f $ac_dir/$ac_word; then
632       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
633         ac_prog_rejected=yes
634         continue
635       fi
636       ac_cv_prog_CC="cc"
637       break
638     fi
639   done
640   IFS="$ac_save_ifs"
641 if test $ac_prog_rejected = yes; then
642   # We found a bogon in the path, so make sure we never use it.
643   set dummy $ac_cv_prog_CC
644   shift
645   if test $# -gt 0; then
646     # We chose a different compiler from the bogus one.
647     # However, it has the same basename, so the bogon will be chosen
648     # first if we set CC to just the basename; use the full file name.
649     shift
650     set dummy "$ac_dir/$ac_word" "$@"
651     shift
652     ac_cv_prog_CC="$@"
653   fi
654 fi
655 fi
656 fi
657 CC="$ac_cv_prog_CC"
658 if test -n "$CC"; then
659   echo "$ac_t""$CC" 1>&6
660 else
661   echo "$ac_t""no" 1>&6
662 fi
663
664   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
665 fi
666
667 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
668 echo "configure:669: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
669
670 ac_ext=c
671 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
672 ac_cpp='$CPP $CPPFLAGS'
673 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
674 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
675 cross_compiling=$ac_cv_prog_cc_cross
676
677 cat > conftest.$ac_ext <<EOF
678 #line 679 "configure"
679 #include "confdefs.h"
680 main(){return(0);}
681 EOF
682 if { (eval echo configure:683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
683   ac_cv_prog_cc_works=yes
684   # If we can't run a trivial program, we are probably using a cross compiler.
685   if (./conftest; exit) 2>/dev/null; then
686     ac_cv_prog_cc_cross=no
687   else
688     ac_cv_prog_cc_cross=yes
689   fi
690 else
691   echo "configure: failed program was:" >&5
692   cat conftest.$ac_ext >&5
693   ac_cv_prog_cc_works=no
694 fi
695 rm -fr conftest*
696
697 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
698 if test $ac_cv_prog_cc_works = no; then
699   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
700 fi
701 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
702 echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
703 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
704 cross_compiling=$ac_cv_prog_cc_cross
705
706 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
707 echo "configure:708: checking whether we are using GNU C" >&5
708 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
709   echo $ac_n "(cached) $ac_c" 1>&6
710 else
711   cat > conftest.c <<EOF
712 #ifdef __GNUC__
713   yes;
714 #endif
715 EOF
716 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717   ac_cv_prog_gcc=yes
718 else
719   ac_cv_prog_gcc=no
720 fi
721 fi
722
723 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
724
725 if test $ac_cv_prog_gcc = yes; then
726   GCC=yes
727   ac_test_CFLAGS="${CFLAGS+set}"
728   ac_save_CFLAGS="$CFLAGS"
729   CFLAGS=
730   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
731 echo "configure:732: checking whether ${CC-cc} accepts -g" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
733   echo $ac_n "(cached) $ac_c" 1>&6
734 else
735   echo 'void f(){}' > conftest.c
736 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
737   ac_cv_prog_cc_g=yes
738 else
739   ac_cv_prog_cc_g=no
740 fi
741 rm -f conftest*
742
743 fi
744
745 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
746   if test "$ac_test_CFLAGS" = set; then
747     CFLAGS="$ac_save_CFLAGS"
748   elif test $ac_cv_prog_cc_g = yes; then
749     CFLAGS="-g -O2"
750   else
751     CFLAGS="-O2"
752   fi
753 else
754   GCC=
755   test "${CFLAGS+set}" = set || CFLAGS="-g"
756 fi
757
758
759 test "$AR" || AR=ar
760
761 if test "$RANLIB"; then :
762   
763 else
764   # Extract the first word of "ranlib", so it can be a program name with args.
765 set dummy ranlib; ac_word=$2
766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
767 echo "configure:768: checking for $ac_word" >&5
768 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
769   echo $ac_n "(cached) $ac_c" 1>&6
770 else
771   if test -n "$RANLIB"; then
772   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
773 else
774   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
775   for ac_dir in $PATH; do
776     test -z "$ac_dir" && ac_dir=.
777     if test -f $ac_dir/$ac_word; then
778       ac_cv_prog_RANLIB="ranlib"
779       break
780     fi
781   done
782   IFS="$ac_save_ifs"
783   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
784 fi
785 fi
786 RANLIB="$ac_cv_prog_RANLIB"
787 if test -n "$RANLIB"; then
788   echo "$ac_t""$RANLIB" 1>&6
789 else
790   echo "$ac_t""no" 1>&6
791 fi
792
793 fi
794 # Find a good install program.  We prefer a C program (faster),
795 # so one script is as good as another.  But avoid the broken or
796 # incompatible versions:
797 # SysV /etc/install, /usr/sbin/install
798 # SunOS /usr/etc/install
799 # IRIX /sbin/install
800 # AIX /bin/install
801 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
802 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
803 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
804 # ./install, which can be erroneously created by make from ./install.sh.
805 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
806 echo "configure:807: checking for a BSD compatible install" >&5
807 if test -z "$INSTALL"; then
808 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
809   echo $ac_n "(cached) $ac_c" 1>&6
810 else
811     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
812   for ac_dir in $PATH; do
813     # Account for people who put trailing slashes in PATH elements.
814     case "$ac_dir/" in
815     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
816     *)
817       # OSF1 and SCO ODT 3.0 have their own names for install.
818       # Don't use installbsd from OSF since it installs stuff as root
819       # by default.
820       for ac_prog in ginstall scoinst install; do
821         if test -f $ac_dir/$ac_prog; then
822           if test $ac_prog = install &&
823             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
824             # AIX install.  It has an incompatible calling convention.
825             :
826           else
827             ac_cv_path_install="$ac_dir/$ac_prog -c"
828             break 2
829           fi
830         fi
831       done
832       ;;
833     esac
834   done
835   IFS="$ac_save_IFS"
836
837 fi
838   if test "${ac_cv_path_install+set}" = set; then
839     INSTALL="$ac_cv_path_install"
840   else
841     # As a last resort, use the slow shell script.  We don't cache a
842     # path for INSTALL within a source directory, because that will
843     # break other packages using the cache if that directory is
844     # removed, or if the path is relative.
845     INSTALL="$ac_install_sh"
846   fi
847 fi
848 echo "$ac_t""$INSTALL" 1>&6
849
850 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
851 # It thinks the first close brace ends the variable substitution.
852 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
853
854 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
855
856
857
858 # Sanity check for the cross-compilation case:
859 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
860 echo "configure:861: checking how to run the C preprocessor" >&5
861 # On Suns, sometimes $CPP names a directory.
862 if test -n "$CPP" && test -d "$CPP"; then
863   CPP=
864 fi
865 if test -z "$CPP"; then
866 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
867   echo $ac_n "(cached) $ac_c" 1>&6
868 else
869     # This must be in double quotes, not single quotes, because CPP may get
870   # substituted into the Makefile and "${CC-cc}" will confuse make.
871   CPP="${CC-cc} -E"
872   # On the NeXT, cc -E runs the code through the compiler's parser,
873   # not just through cpp.
874   cat > conftest.$ac_ext <<EOF
875 #line 876 "configure"
876 #include "confdefs.h"
877 #include <assert.h>
878 Syntax Error
879 EOF
880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
881 { (eval echo configure:882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
882 ac_err=`grep -v '^ *+' conftest.out`
883 if test -z "$ac_err"; then
884   :
885 else
886   echo "$ac_err" >&5
887   echo "configure: failed program was:" >&5
888   cat conftest.$ac_ext >&5
889   rm -rf conftest*
890   CPP="${CC-cc} -E -traditional-cpp"
891   cat > conftest.$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
894 #include <assert.h>
895 Syntax Error
896 EOF
897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
898 { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
899 ac_err=`grep -v '^ *+' conftest.out`
900 if test -z "$ac_err"; then
901   :
902 else
903   echo "$ac_err" >&5
904   echo "configure: failed program was:" >&5
905   cat conftest.$ac_ext >&5
906   rm -rf conftest*
907   CPP=/lib/cpp
908 fi
909 rm -f conftest*
910 fi
911 rm -f conftest*
912   ac_cv_prog_CPP="$CPP"
913 fi
914   CPP="$ac_cv_prog_CPP"
915 else
916   ac_cv_prog_CPP="$CPP"
917 fi
918 echo "$ac_t""$CPP" 1>&6
919
920 ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
921 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
922 echo "configure:923: checking for stdio.h" >&5
923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
924   echo $ac_n "(cached) $ac_c" 1>&6
925 else
926   cat > conftest.$ac_ext <<EOF
927 #line 928 "configure"
928 #include "confdefs.h"
929 #include <stdio.h>
930 EOF
931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err=`grep -v '^ *+' conftest.out`
934 if test -z "$ac_err"; then
935   rm -rf conftest*
936   eval "ac_cv_header_$ac_safe=yes"
937 else
938   echo "$ac_err" >&5
939   echo "configure: failed program was:" >&5
940   cat conftest.$ac_ext >&5
941   rm -rf conftest*
942   eval "ac_cv_header_$ac_safe=no"
943 fi
944 rm -f conftest*
945 fi
946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
947   echo "$ac_t""yes" 1>&6
948   :
949 else
950   echo "$ac_t""no" 1>&6
951 { echo "configure: error: Can't find stdio.h.
952 You must have a usable C system for the target already installed, at least
953 including headers and, preferably, the library, before you can configure
954 the Objective C runtime system.  If necessary, install gcc now with 
955 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." 1>&2; exit 1; }
956 fi
957
958
959 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
960 echo "configure:961: checking for ANSI C header files" >&5
961 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
962   echo $ac_n "(cached) $ac_c" 1>&6
963 else
964   cat > conftest.$ac_ext <<EOF
965 #line 966 "configure"
966 #include "confdefs.h"
967 #include <stdlib.h>
968 #include <stdarg.h>
969 #include <string.h>
970 #include <float.h>
971 EOF
972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
973 { (eval echo configure:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
974 ac_err=`grep -v '^ *+' conftest.out`
975 if test -z "$ac_err"; then
976   rm -rf conftest*
977   ac_cv_header_stdc=yes
978 else
979   echo "$ac_err" >&5
980   echo "configure: failed program was:" >&5
981   cat conftest.$ac_ext >&5
982   rm -rf conftest*
983   ac_cv_header_stdc=no
984 fi
985 rm -f conftest*
986
987 if test $ac_cv_header_stdc = yes; then
988   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
989 cat > conftest.$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
992 #include <string.h>
993 EOF
994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
995   egrep "memchr" >/dev/null 2>&1; then
996   :
997 else
998   rm -rf conftest*
999   ac_cv_header_stdc=no
1000 fi
1001 rm -f conftest*
1002
1003 fi
1004
1005 if test $ac_cv_header_stdc = yes; then
1006   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1007 cat > conftest.$ac_ext <<EOF
1008 #line 1009 "configure"
1009 #include "confdefs.h"
1010 #include <stdlib.h>
1011 EOF
1012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1013   egrep "free" >/dev/null 2>&1; then
1014   :
1015 else
1016   rm -rf conftest*
1017   ac_cv_header_stdc=no
1018 fi
1019 rm -f conftest*
1020
1021 fi
1022
1023 if test $ac_cv_header_stdc = yes; then
1024   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1025 if test "$cross_compiling" = yes; then
1026   :
1027 else
1028   cat > conftest.$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1031 #include <ctype.h>
1032 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1033 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1034 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1035 int main () { int i; for (i = 0; i < 256; i++)
1036 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1037 exit (0); }
1038
1039 EOF
1040 if { (eval echo configure:1041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1041 then
1042   :
1043 else
1044   echo "configure: failed program was:" >&5
1045   cat conftest.$ac_ext >&5
1046   rm -fr conftest*
1047   ac_cv_header_stdc=no
1048 fi
1049 rm -fr conftest*
1050 fi
1051
1052 fi
1053 fi
1054
1055 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1056 if test $ac_cv_header_stdc = yes; then
1057   cat >> confdefs.h <<\EOF
1058 #define STDC_HEADERS 1
1059 EOF
1060
1061 fi
1062
1063
1064 # Determine the name of the GCC thread file.
1065
1066 dir=`pwd`
1067 if test x"${with_multisubdir}" = "x" ; then
1068   gccobjdir=`echo $dir/../../gcc`
1069 else
1070   gccobjdir=`echo $dir | sed -e s:${with_multisubdir}::`/../../gcc
1071 fi
1072
1073 echo $ac_n "checking for thread file""... $ac_c" 1>&6
1074 echo "configure:1075: checking for thread file" >&5
1075 if eval "test \"`echo '$''{'objc_cv_thread_file'+set}'`\" = set"; then
1076   echo $ac_n "(cached) $ac_c" 1>&6
1077 else
1078   if test -f $gccobjdir/Makefile
1079 then
1080   objc_cv_thread_file=`grep \^GCC_THREAD_FILE $gccobjdir/Makefile | awk -F= '{ print $2 }'`
1081 else
1082   { echo "configure: error: not found" 1>&2; exit 1; }
1083 fi
1084 fi
1085
1086 echo "$ac_t""$objc_cv_thread_file" 1>&6
1087 OBJC_THREAD_FILE=$objc_cv_thread_file
1088
1089
1090 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1091 if test "${enable_objc_gc+set}" = set; then
1092   enableval="$enable_objc_gc"
1093   if [ x$enable_objc_gc = xno ]; then
1094         OBJC_BOEHM_GC=''
1095 else
1096         OBJC_BOEHM_GC=libobjc_gc.a
1097 fi
1098 else
1099   OBJC_BOEHM_GC=''
1100 fi
1101
1102
1103
1104
1105 # We need multilib support, but only if configuring for the target.
1106 trap '' 1 2 15
1107 cat > confcache <<\EOF
1108 # This file is a shell script that caches the results of configure
1109 # tests run on this system so they can be shared between configure
1110 # scripts and configure runs.  It is not useful on other systems.
1111 # If it contains results you don't want to keep, you may remove or edit it.
1112 #
1113 # By default, configure uses ./config.cache as the cache file,
1114 # creating it if it does not exist already.  You can give configure
1115 # the --cache-file=FILE option to use a different cache file; that is
1116 # what configure does when it calls configure scripts in
1117 # subdirectories, so they share the cache.
1118 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1119 # config.status only pays attention to the cache file if you give it the
1120 # --recheck option to rerun configure.
1121 #
1122 EOF
1123 # The following way of writing the cache mishandles newlines in values,
1124 # but we know of no workaround that is simple, portable, and efficient.
1125 # So, don't put newlines in cache variables' values.
1126 # Ultrix sh set writes to stderr and can't be redirected directly,
1127 # and sets the high bit in the cache file unless we assign to the vars.
1128 (set) 2>&1 |
1129   case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1130   *ac_space=\ *)
1131     # `set' does not quote correctly, so add quotes (double-quote substitution
1132     # turns \\\\ into \\, and sed turns \\ into \).
1133     sed -n \
1134       -e "s/'/'\\\\''/g" \
1135       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1136     ;;
1137   *)
1138     # `set' quotes correctly as required by POSIX, so do not add quotes.
1139     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1140     ;;
1141   esac >> confcache
1142 if cmp -s $cache_file confcache; then
1143   :
1144 else
1145   if test -w $cache_file; then
1146     echo "updating cache $cache_file"
1147     cat confcache > $cache_file
1148   else
1149     echo "not updating unwritable cache $cache_file"
1150   fi
1151 fi
1152 rm -f confcache
1153
1154 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1155
1156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1157 # Let make expand exec_prefix.
1158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1159
1160 # Any assignment to VPATH causes Sun make to only execute
1161 # the first set of double-colon rules, so remove it if not needed.
1162 # If there is a colon in the path, we need to keep it.
1163 if test "x$srcdir" = x.; then
1164   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1165 fi
1166
1167 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1168
1169 # Transform confdefs.h into DEFS.
1170 # Protect against shell expansion while executing Makefile rules.
1171 # Protect against Makefile macro expansion.
1172 cat > conftest.defs <<\EOF
1173 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1174 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1175 s%\[%\\&%g
1176 s%\]%\\&%g
1177 s%\$%$$%g
1178 EOF
1179 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1180 rm -f conftest.defs
1181
1182
1183 # Without the "./", some shells look in PATH for config.status.
1184 : ${CONFIG_STATUS=./config.status}
1185
1186 echo creating $CONFIG_STATUS
1187 rm -f $CONFIG_STATUS
1188 cat > $CONFIG_STATUS <<EOF
1189 #! /bin/sh
1190 # Generated automatically by configure.
1191 # Run this file to recreate the current configuration.
1192 # This directory was configured as follows,
1193 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1194 #
1195 # $0 $ac_configure_args
1196 #
1197 # Compiler output produced by configure, useful for debugging
1198 # configure, is in ./config.log if it exists.
1199
1200 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1201 for ac_option
1202 do
1203   case "\$ac_option" in
1204   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1205     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1206     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1207   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1208     echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1209     exit 0 ;;
1210   -help | --help | --hel | --he | --h)
1211     echo "\$ac_cs_usage"; exit 0 ;;
1212   *) echo "\$ac_cs_usage"; exit 1 ;;
1213   esac
1214 done
1215
1216 ac_given_srcdir=$srcdir
1217 ac_given_INSTALL="$INSTALL"
1218
1219 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1220 EOF
1221 cat >> $CONFIG_STATUS <<EOF
1222
1223 # Protect against being on the right side of a sed subst in config.status.
1224 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1225  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1226 $ac_vpsub
1227 $extrasub
1228 s%@SHELL@%$SHELL%g
1229 s%@CFLAGS@%$CFLAGS%g
1230 s%@CPPFLAGS@%$CPPFLAGS%g
1231 s%@CXXFLAGS@%$CXXFLAGS%g
1232 s%@DEFS@%$DEFS%g
1233 s%@LDFLAGS@%$LDFLAGS%g
1234 s%@LIBS@%$LIBS%g
1235 s%@exec_prefix@%$exec_prefix%g
1236 s%@prefix@%$prefix%g
1237 s%@program_transform_name@%$program_transform_name%g
1238 s%@bindir@%$bindir%g
1239 s%@sbindir@%$sbindir%g
1240 s%@libexecdir@%$libexecdir%g
1241 s%@datadir@%$datadir%g
1242 s%@sysconfdir@%$sysconfdir%g
1243 s%@sharedstatedir@%$sharedstatedir%g
1244 s%@localstatedir@%$localstatedir%g
1245 s%@libdir@%$libdir%g
1246 s%@includedir@%$includedir%g
1247 s%@oldincludedir@%$oldincludedir%g
1248 s%@infodir@%$infodir%g
1249 s%@mandir@%$mandir%g
1250 s%@CC@%$CC%g
1251 s%@AR@%$AR%g
1252 s%@RANLIB@%$RANLIB%g
1253 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1254 s%@INSTALL_DATA@%$INSTALL_DATA%g
1255 s%@CPP@%$CPP%g
1256 s%@OBJC_THREAD_FILE@%$OBJC_THREAD_FILE%g
1257 s%@OBJC_BOEHM_GC@%$OBJC_BOEHM_GC%g
1258
1259 CEOF
1260 EOF
1261
1262 cat >> $CONFIG_STATUS <<\EOF
1263
1264 # Split the substitutions into bite-sized pieces for seds with
1265 # small command number limits, like on Digital OSF/1 and HP-UX.
1266 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1267 ac_file=1 # Number of current file.
1268 ac_beg=1 # First line for current file.
1269 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1270 ac_more_lines=:
1271 ac_sed_cmds=""
1272 while $ac_more_lines; do
1273   if test $ac_beg -gt 1; then
1274     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1275   else
1276     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1277   fi
1278   if test ! -s conftest.s$ac_file; then
1279     ac_more_lines=false
1280     rm -f conftest.s$ac_file
1281   else
1282     if test -z "$ac_sed_cmds"; then
1283       ac_sed_cmds="sed -f conftest.s$ac_file"
1284     else
1285       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1286     fi
1287     ac_file=`expr $ac_file + 1`
1288     ac_beg=$ac_end
1289     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1290   fi
1291 done
1292 if test -z "$ac_sed_cmds"; then
1293   ac_sed_cmds=cat
1294 fi
1295 EOF
1296
1297 cat >> $CONFIG_STATUS <<EOF
1298
1299 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1300 EOF
1301 cat >> $CONFIG_STATUS <<\EOF
1302 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1303   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1304   case "$ac_file" in
1305   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1306        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1307   *) ac_file_in="${ac_file}.in" ;;
1308   esac
1309
1310   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1311
1312   # Remove last slash and all that follows it.  Not all systems have dirname.
1313   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1314   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1315     # The file is in a subdirectory.
1316     test ! -d "$ac_dir" && mkdir "$ac_dir"
1317     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1318     # A "../" for each directory in $ac_dir_suffix.
1319     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1320   else
1321     ac_dir_suffix= ac_dots=
1322   fi
1323
1324   case "$ac_given_srcdir" in
1325   .)  srcdir=.
1326       if test -z "$ac_dots"; then top_srcdir=.
1327       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1328   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1329   *) # Relative path.
1330     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1331     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1332   esac
1333
1334   case "$ac_given_INSTALL" in
1335   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1336   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1337   esac
1338
1339   echo creating "$ac_file"
1340   rm -f "$ac_file"
1341   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1342   case "$ac_file" in
1343   *Makefile*) ac_comsub="1i\\
1344 # $configure_input" ;;
1345   *) ac_comsub= ;;
1346   esac
1347
1348   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1349   sed -e "$ac_comsub
1350 s%@configure_input@%$configure_input%g
1351 s%@srcdir@%$srcdir%g
1352 s%@top_srcdir@%$top_srcdir%g
1353 s%@INSTALL@%$INSTALL%g
1354 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1355 fi; done
1356 rm -f conftest.s*
1357
1358 EOF
1359 cat >> $CONFIG_STATUS <<EOF
1360 srcdir=${srcdir}
1361 host=${host}
1362 target=${target}
1363 with_target_subdir=${with_target_subdir}
1364 with_multisubdir=${with_multisubdir}
1365 ac_configure_args="--enable-multilib ${ac_configure_args}"
1366 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1367 topsrcdir=${topsrcdir}
1368
1369 EOF
1370 cat >> $CONFIG_STATUS <<\EOF
1371 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
1372 if test -n "$CONFIG_FILES"; then
1373   if test -n "${with_target_subdir}"; then
1374     # FIXME: We shouldn't need to set ac_file
1375     ac_file=Makefile
1376     . ${topsrcdir}/config-ml.in
1377   fi
1378 fi
1379 exit 0
1380 EOF
1381 chmod +x $CONFIG_STATUS
1382 rm -fr confdefs* $ac_clean_files
1383 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1384
1385