]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/configure
stdio-opt-1.c: Add more checks.
[thirdparty/gcc.git] / libobjc / configure
CommitLineData
bce1b489 1#! /bin/sh
bce1b489 2# Guess values for system-dependent variables and create Makefiles.
162f5967 3# Generated by Autoconf 2.14a.
bce1b489 4#
162f5967
RL
5# Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
6# Free Software Foundation, Inc.
bce1b489
BE
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
162f5967
RL
10#
11# Initializations.
12#
bce1b489 13ac_default_prefix=/usr/local
162f5967
RL
14subdirs=
15MFLAGS= MAKEFLAGS=
16SHELL=${CONFIG_SHELL-/bin/sh}
17# Maximum number of lines to put in a shell here document.
18: ${ac_max_here_lines=48}
19# Sed expression to map a string onto a valid sh and CPP variable names.
20ac_tr_sh='sed -e y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
21ac_tr_cpp='sed -e y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
22
23# By default always use an empty string as the executable extension.
24# Only change it if the script calls AC_EXEEXT.
25ac_exeext=
26# By default assume that objects files use an extension of .o. Only
27# change it if the script calls AC_OBJEXT.
28ac_objext=o
29# Factoring default headers for most tests.
30ac_includes_default="\
31#include <stdio.h>
32#include <sys/types.h>
33#if STDC_HEADERS
34# include <stdlib.h>
35# include <stddef.h>
36#else
37# if HAVE_STDLIB_H
38# include <stdlib.h>
39# endif
40#endif
41#if HAVE_STRING_H
42# if !STDC_HEADERS && HAVE_MEMORY_H
43# include <memory.h>
44# endif
45# include <string.h>
46#else
47# if HAVE_STRINGS_H
48# include <strings.h>
49# endif
50#endif
51#if HAVE_INTTYPES_H
52# include <inttypes.h>
53#endif
54#if HAVE_UNISTD_H
55# include <unistd.h>
56#endif"
57ac_unique_file="objc/objc.h"
bce1b489
BE
58
59# Initialize some variables set by options.
162f5967
RL
60ac_init_help=
61ac_init_version=false
bce1b489
BE
62# The variables have the same names as the options, with
63# dashes changed to underlines.
162f5967 64cache_file=/dev/null
bce1b489 65exec_prefix=NONE
bce1b489 66no_create=
bce1b489
BE
67no_recursion=
68prefix=NONE
69program_prefix=NONE
70program_suffix=NONE
71program_transform_name=s,x,x,
72silent=
73site=
74srcdir=
bce1b489
BE
75verbose=
76x_includes=NONE
77x_libraries=NONE
78bindir='${exec_prefix}/bin'
79sbindir='${exec_prefix}/sbin'
80libexecdir='${exec_prefix}/libexec'
81datadir='${prefix}/share'
82sysconfdir='${prefix}/etc'
83sharedstatedir='${prefix}/com'
84localstatedir='${prefix}/var'
85libdir='${exec_prefix}/lib'
86includedir='${prefix}/include'
87oldincludedir='/usr/include'
88infodir='${prefix}/info'
89mandir='${prefix}/man'
90
bce1b489
BE
91ac_prev=
92for ac_option
93do
bce1b489
BE
94 # If the previous option needs an argument, assign it.
95 if test -n "$ac_prev"; then
96 eval "$ac_prev=\$ac_option"
97 ac_prev=
98 continue
99 fi
100
162f5967 101 ac_optarg=`echo "$ac_option" | sed -n 's/^[^=]*=//p'`
bce1b489
BE
102
103 # Accept the important Cygnus configure options, so we can diagnose typos.
104
105 case "$ac_option" in
106
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
162f5967 110 bindir=$ac_optarg ;;
bce1b489
BE
111
112 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
162f5967 115 build=$ac_optarg ;;
bce1b489
BE
116
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
162f5967 122 cache_file=$ac_optarg ;;
bce1b489
BE
123
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
162f5967 128 datadir=$ac_optarg ;;
bce1b489
BE
129
130 -disable-* | --disable-*)
162f5967 131 ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
bce1b489 132 # Reject names that are not valid shell variable names.
162f5967
RL
133 if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
134 { echo "configure: error: invalid feature: $ac_feature" >&2; exit 1; }
bce1b489
BE
135 fi
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
138
139 -enable-* | --enable-*)
162f5967 140 ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
bce1b489 141 # Reject names that are not valid shell variable names.
162f5967
RL
142 if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
143 { echo "configure: error: invalid feature: $ac_feature" >&2; exit 1; }
bce1b489
BE
144 fi
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
162f5967 147 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
bce1b489
BE
148 *) ac_optarg=yes ;;
149 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
151
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
162f5967 159 exec_prefix=$ac_optarg ;;
bce1b489
BE
160
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
164
162f5967
RL
165 -help | --help | --hel | --he | -h)
166 ac_init_help=long ;;
167 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
168 ac_init_help=recursive ;;
169 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
170 ac_init_help=short ;;
bce1b489
BE
171
172 -host | --host | --hos | --ho)
173 ac_prev=host ;;
174 -host=* | --host=* | --hos=* | --ho=*)
162f5967 175 host=$ac_optarg ;;
bce1b489
BE
176
177 -includedir | --includedir | --includedi | --included | --include \
178 | --includ | --inclu | --incl | --inc)
179 ac_prev=includedir ;;
180 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
181 | --includ=* | --inclu=* | --incl=* | --inc=*)
162f5967 182 includedir=$ac_optarg ;;
bce1b489
BE
183
184 -infodir | --infodir | --infodi | --infod | --info | --inf)
185 ac_prev=infodir ;;
186 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
162f5967 187 infodir=$ac_optarg ;;
bce1b489
BE
188
189 -libdir | --libdir | --libdi | --libd)
190 ac_prev=libdir ;;
191 -libdir=* | --libdir=* | --libdi=* | --libd=*)
162f5967 192 libdir=$ac_optarg ;;
bce1b489
BE
193
194 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
195 | --libexe | --libex | --libe)
196 ac_prev=libexecdir ;;
197 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
198 | --libexe=* | --libex=* | --libe=*)
162f5967 199 libexecdir=$ac_optarg ;;
bce1b489
BE
200
201 -localstatedir | --localstatedir | --localstatedi | --localstated \
202 | --localstate | --localstat | --localsta | --localst \
203 | --locals | --local | --loca | --loc | --lo)
204 ac_prev=localstatedir ;;
205 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
206 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
207 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
162f5967 208 localstatedir=$ac_optarg ;;
bce1b489
BE
209
210 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
211 ac_prev=mandir ;;
212 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
162f5967 213 mandir=$ac_optarg ;;
bce1b489
BE
214
215 -nfp | --nfp | --nf)
216 # Obsolete; use --without-fp.
217 with_fp=no ;;
218
219 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
220 | --no-cr | --no-c)
221 no_create=yes ;;
222
223 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
224 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
225 no_recursion=yes ;;
226
227 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
228 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
229 | --oldin | --oldi | --old | --ol | --o)
230 ac_prev=oldincludedir ;;
231 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
232 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
233 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
162f5967 234 oldincludedir=$ac_optarg ;;
bce1b489
BE
235
236 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
237 ac_prev=prefix ;;
238 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
162f5967 239 prefix=$ac_optarg ;;
bce1b489
BE
240
241 -program-prefix | --program-prefix | --program-prefi | --program-pref \
242 | --program-pre | --program-pr | --program-p)
243 ac_prev=program_prefix ;;
244 -program-prefix=* | --program-prefix=* | --program-prefi=* \
245 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
162f5967 246 program_prefix=$ac_optarg ;;
bce1b489
BE
247
248 -program-suffix | --program-suffix | --program-suffi | --program-suff \
249 | --program-suf | --program-su | --program-s)
250 ac_prev=program_suffix ;;
251 -program-suffix=* | --program-suffix=* | --program-suffi=* \
252 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
162f5967 253 program_suffix=$ac_optarg ;;
bce1b489
BE
254
255 -program-transform-name | --program-transform-name \
256 | --program-transform-nam | --program-transform-na \
257 | --program-transform-n | --program-transform- \
258 | --program-transform | --program-transfor \
259 | --program-transfo | --program-transf \
260 | --program-trans | --program-tran \
261 | --progr-tra | --program-tr | --program-t)
262 ac_prev=program_transform_name ;;
263 -program-transform-name=* | --program-transform-name=* \
264 | --program-transform-nam=* | --program-transform-na=* \
265 | --program-transform-n=* | --program-transform-=* \
266 | --program-transform=* | --program-transfor=* \
267 | --program-transfo=* | --program-transf=* \
268 | --program-trans=* | --program-tran=* \
269 | --progr-tra=* | --program-tr=* | --program-t=*)
162f5967 270 program_transform_name=$ac_optarg ;;
bce1b489
BE
271
272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
273 | -silent | --silent | --silen | --sile | --sil)
274 silent=yes ;;
275
276 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
277 ac_prev=sbindir ;;
278 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
279 | --sbi=* | --sb=*)
162f5967 280 sbindir=$ac_optarg ;;
bce1b489
BE
281
282 -sharedstatedir | --sharedstatedir | --sharedstatedi \
283 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
284 | --sharedst | --shareds | --shared | --share | --shar \
285 | --sha | --sh)
286 ac_prev=sharedstatedir ;;
287 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
288 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
289 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
290 | --sha=* | --sh=*)
162f5967 291 sharedstatedir=$ac_optarg ;;
bce1b489
BE
292
293 -site | --site | --sit)
294 ac_prev=site ;;
295 -site=* | --site=* | --sit=*)
162f5967 296 site=$ac_optarg ;;
bce1b489
BE
297
298 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
299 ac_prev=srcdir ;;
300 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
162f5967 301 srcdir=$ac_optarg ;;
bce1b489
BE
302
303 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
304 | --syscon | --sysco | --sysc | --sys | --sy)
305 ac_prev=sysconfdir ;;
306 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
307 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
162f5967 308 sysconfdir=$ac_optarg ;;
bce1b489
BE
309
310 -target | --target | --targe | --targ | --tar | --ta | --t)
311 ac_prev=target ;;
312 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
162f5967 313 target=$ac_optarg ;;
bce1b489
BE
314
315 -v | -verbose | --verbose | --verbos | --verbo | --verb)
316 verbose=yes ;;
317
162f5967
RL
318 -version | --version | --versio | --versi | --vers | -V)
319 ac_init_version=: ;;
bce1b489
BE
320
321 -with-* | --with-*)
162f5967 322 ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
bce1b489 323 # Reject names that are not valid shell variable names.
162f5967
RL
324 if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
325 { echo "configure: error: invalid package: $ac_package" >&2; exit 1; }
bce1b489
BE
326 fi
327 ac_package=`echo $ac_package| sed 's/-/_/g'`
328 case "$ac_option" in
162f5967 329 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
bce1b489
BE
330 *) ac_optarg=yes ;;
331 esac
332 eval "with_${ac_package}='$ac_optarg'" ;;
333
334 -without-* | --without-*)
162f5967 335 ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
bce1b489 336 # Reject names that are not valid shell variable names.
162f5967
RL
337 if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
338 { echo "configure: error: invalid package: $ac_package" >&2; exit 1; }
bce1b489
BE
339 fi
340 ac_package=`echo $ac_package| sed 's/-/_/g'`
341 eval "with_${ac_package}=no" ;;
342
343 --x)
344 # Obsolete; use --with-x.
345 with_x=yes ;;
346
347 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
348 | --x-incl | --x-inc | --x-in | --x-i)
349 ac_prev=x_includes ;;
350 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
351 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
162f5967 352 x_includes=$ac_optarg ;;
bce1b489
BE
353
354 -x-libraries | --x-libraries | --x-librarie | --x-librari \
355 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
356 ac_prev=x_libraries ;;
357 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
358 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
162f5967 359 x_libraries=$ac_optarg ;;
bce1b489 360
162f5967
RL
361 -*) { echo "configure: error: unrecognized option: $ac_option
362Try \`configure --help' for more information." >&2; exit 1; }
bce1b489
BE
363 ;;
364
162f5967
RL
365 *=*)
366 ac_envvar=`echo "$ac_option" | sed -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if echo "$ac_envvar" | grep '[^a-zA-Z0-9_]' >/dev/null 2>&1; then
369 { echo "configure: error: invalid variable name: $ac_envvar" >&2; exit 1; }
bce1b489 370 fi
162f5967
RL
371 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
372 eval "$ac_envvar='$ac_optarg'"
373 export $ac_envvar ;;
374
375 *)
376 if echo "$ac_option" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
377 echo "configure: warning: invalid host type: $ac_option" >&2
bce1b489 378 fi
162f5967
RL
379 echo "configure: warning: you should use --build, --host, --target" >&2
380 : ${build=$ac_option} ${host=$ac_option} ${target=$ac_option}
bce1b489
BE
381 ;;
382
383 esac
384done
385
386if test -n "$ac_prev"; then
162f5967
RL
387 { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" >&2; exit 1; }
388fi
389
390# Be sure to have absolute paths.
391for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
392 localstatedir libdir includedir oldincludedir infodir mandir \
393 exec_prefix prefix
394do
395 eval ac_val=$`echo $ac_var`
396 case $ac_val in
397 [\\/$]* | ?:[\\/]* ) ;;
398 NONE ) ;;
399 *) { echo "configure: error: expected an absolute path for --$ac_var: $ac_val" >&2; exit 1; };;
400 esac
401done
402
403# Find the source files, if location was not specified.
404if test -z "$srcdir"; then
405 ac_srcdir_defaulted=yes
406 # Try the directory containing this script, then its parent.
407 ac_prog=$0
408 ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
409 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
410 srcdir=$ac_confdir
411 if test ! -r $srcdir/$ac_unique_file; then
412 srcdir=..
413 fi
414else
415 ac_srcdir_defaulted=no
416fi
417if test ! -r $srcdir/$ac_unique_file; then
418 if test "$ac_srcdir_defaulted" = yes; then
419 { echo "configure: error: cannot find sources in $ac_confdir or .." >&2; exit 1; }
420 else
421 { echo "configure: error: cannot find sources in $srcdir" >&2; exit 1; }
422 fi
423fi
424srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
425
426#
427# Report the --help message.
428#
429if test "$ac_init_help" = "long"; then
430 # Omit some internal or obsolete options to make the list less imposing.
431 # This message is too long to be a string in the A/UX 3.1 sh.
432 cat <<EOF
433\`configure' configures this package to adapt to many kinds of systems.
434
435Usage: $0 [OPTION]... [VAR=VALUE]...
436
437To assign environment variables (e.g., CC, CFLAGS...), specify them as
438VAR=VALUE.
439
440Defaults for the options are specified in brackets.
441
442Configuration:
443 -h, --help display this help and exit
444 --help=short display options specific to this package
445 --help=recursive display the short help of all the included packages
446 -V, --version display version information and exit
447 -q, --quiet, --silent do not print \`checking...' messages
448 --cache-file=FILE cache test results in FILE [disabled]
449 -n, --no-create do not create output files
450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
451
452EOF
453
454 cat <<EOF
455Installation directories:
456 --prefix=PREFIX install architecture-independent files in PREFIX
457 [$ac_default_prefix]
458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
459 [PREFIX]
460
461By default, \`make install' will install all the files in
462\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
463an installation prefix other than \`$ac_default_prefix' using \`--prefix',
464for instance \`--prefix=\$HOME'.
465
466For better control, use the options below.
467
468Fine tuning of the installation directories:
469 --bindir=DIR user executables [EPREFIX/bin]
470 --sbindir=DIR system admin executables [EPREFIX/sbin]
471 --libexecdir=DIR program executables [EPREFIX/libexec]
472 --datadir=DIR read-only architecture-independent data [PREFIX/share]
473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
476 --libdir=DIR object code libraries [EPREFIX/lib]
477 --includedir=DIR C header files [PREFIX/include]
478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
479 --infodir=DIR info documentation [PREFIX/info]
480 --mandir=DIR man documentation [PREFIX/man]
481EOF
482
483 cat <<\EOF
484EOF
485fi
486
487if test -n "$ac_init_help"; then
488
489 cat <<\EOF
490
491Optional Features:
492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
494 --enable-objc-gc enable the use of Boehm's garbage collector with
495 the GNU Objective-C runtime.
496
497Some influent environment variables:
498 CFLAGS Extra flags for the C compiler
499EOF
500fi
501
502if test "$ac_init_help" = "recursive"; then
503 # If there are subdirs, report their specific --help.
504 ac_popdir=`pwd`
505 for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
506 cd $ac_subdir
507 # A "../" for each directory in /$ac_subdir.
508 ac_dots=`echo $ac_subdir |
509 sed -e 's%^\./%%;s%[^/]$%&/%;s%[^/]*/%../%g'`
510
511 case "$srcdir" in
512 .) # No --srcdir option. We are building in place.
513 ac_sub_srcdir=$srcdir ;;
514 [\\/]* | ?:[\\/]* ) # Absolute path.
515 ac_sub_srcdir=$srcdir/$ac_subdir ;;
516 *) # Relative path.
517 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
518 esac
519
520 # Check for guested configure; otherwise get Cygnus style configure.
521 if test -f $ac_sub_srcdir/configure; then
522 echo
523 $SHELL $ac_sub_srcdir/configure --help=recursive
524 elif test -f $ac_sub_srcdir/configure.in; then
525 echo
526 $ac_configure --help
527 else
528 echo "configure: warning: no configuration information is in $ac_subdir" >&2
529 fi
530 cd $ac_popdir
531 done
532fi
533
534test -n "$ac_init_help" && exit 0
535if $ac_init_version; then
536 cat <<\EOF
537
538Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
539Free Software Foundation, Inc.
540This configure script is free software; the Free Software Foundation
541gives unlimited permission to copy, distribute and modify it.
542EOF
543 exit 0
bce1b489 544fi
162f5967
RL
545# NLS nuisances.
546# Only set these to C if already set. These must not be set unconditionally
547# because not all systems understand e.g. LANG=C (notably SCO).
548# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
549# Non-C LC_CTYPE values break the ctype check.
550if test "${LANG+set}" = set; then LANG=C; export LANG; fi
551if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
552if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
553if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
554
555# IFS
556# We need space, tab and new line, in precisely that order.
557ac_nl='
558'
559IFS=" $ac_nl"
bce1b489
BE
560
561trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
562
162f5967
RL
563# Keep a trace of the command line.
564# Strip out --no-create and --no-recursion so they do not pile up.
565# Also quote any args containing shell meta-characters.
566ac_configure_args=
567ac_sep=
568for ac_arg
569do
570 case "$ac_arg" in
571 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
572 | --no-cr | --no-c) ;;
573 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
574 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
575 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
576 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
577 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
578 ac_sep=" " ;;
579 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
580 ac_sep=" " ;;
581 esac
582 # Get rid of the leading space.
583done
584
bce1b489
BE
585# File descriptor usage:
586# 0 standard input
587# 1 file creation
588# 2 errors and warnings
589# 3 some systems may open it to /dev/tty
590# 4 used on the Kubota Titan
591# 6 checking for... messages and results
592# 5 compiler messages saved in config.log
593if test "$silent" = yes; then
594 exec 6>/dev/null
595else
596 exec 6>&1
597fi
598exec 5>./config.log
599
600echo "\
601This file contains any messages produced by compilers while
602running configure, to aid debugging if configure makes a mistake.
bce1b489 603
162f5967
RL
604It was created by configure 2.14a, executed with
605 > $0 $ac_configure_args
606" >&5
bce1b489
BE
607
608# confdefs.h avoids OS command line length limits that DEFS can exceed.
609rm -rf conftest* confdefs.h
610# AIX cpp loses on an empty file, so make sure it contains at least a newline.
162f5967 611echo >confdefs.h
bce1b489
BE
612
613# Prefer explicitly selected file to automatically selected ones.
614if test -z "$CONFIG_SITE"; then
615 if test "x$prefix" != xNONE; then
616 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
617 else
618 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
619 fi
620fi
621for ac_site_file in $CONFIG_SITE; do
622 if test -r "$ac_site_file"; then
623 echo "loading site script $ac_site_file"
624 . "$ac_site_file"
625 fi
626done
627
628if test -r "$cache_file"; then
162f5967
RL
629 test "x$cache_file" != "x/dev/null" && echo "loading cache $cache_file"
630 test -f "$cache_file" && . $cache_file
bce1b489
BE
631else
632 echo "creating cache $cache_file"
162f5967 633 >$cache_file
bce1b489
BE
634fi
635
636ac_ext=c
637# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
638ac_cpp='$CPP $CPPFLAGS'
162f5967
RL
639ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
640ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
bce1b489
BE
641cross_compiling=$ac_cv_prog_cc_cross
642
643if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
162f5967 644 # Stardent Vistra SVR4 grep lacks -e, says Kaveh R. Ghazi.
bce1b489 645 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
162f5967
RL
646 ECHO_N= ECHO_C='
647' ECHO_T=' '
bce1b489 648 else
162f5967 649 ECHO_N=-n ECHO_C= ECHO_T=
bce1b489
BE
650 fi
651else
162f5967 652 ECHO_N= ECHO_C='\c' ECHO_T=
c161c99b
NP
653fi
654
bce1b489
BE
655if test "${srcdir}" = "." ; then
656 if test "${with_target_subdir}" != "." ; then
657 topsrcdir=${with_multisrctop}../..
658 else
659 topsrcdir=${with_multisrctop}..
660 fi
661else
662 topsrcdir=${srcdir}/..
663fi
8a829fd9
KG
664ac_aux_dir=
665for ac_dir in $topsrcdir $srcdir/$topsrcdir; do
666 if test -f $ac_dir/install-sh; then
667 ac_aux_dir=$ac_dir
668 ac_install_sh="$ac_aux_dir/install-sh -c"
669 break
670 elif test -f $ac_dir/install.sh; then
671 ac_aux_dir=$ac_dir
672 ac_install_sh="$ac_aux_dir/install.sh -c"
673 break
162f5967
RL
674 elif test -f $ac_dir/shtool; then
675 ac_aux_dir=$ac_dir
676 ac_install_sh="$ac_aux_dir/shtool install -c"
677 break
8a829fd9
KG
678 fi
679done
680if test -z "$ac_aux_dir"; then
162f5967 681 { echo "configure: error: cannot find install-sh or install.sh in $topsrcdir $srcdir/$topsrcdir" >&2; exit 1; }
8a829fd9 682fi
162f5967
RL
683ac_config_guess="$SHELL $ac_aux_dir/config.guess"
684ac_config_sub="$SHELL $ac_aux_dir/config.sub"
685ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8a829fd9 686
162f5967 687# If the language specific compiler does not exist, but the "gcc" directory
da4b1927
MK
688# does, we do not build anything. Note, $r is set by the top-level Makefile.
689# Note that when we look for the compiler, we search both with and without
162f5967 690# extension to handle cross and canadian cross builds.
71205e0b
MH
691compiler_name=cc1obj
692rm -f skip-this-dir
162f5967
RL
693echo "configure:608: checking if compiler $compiler_name has been built" >&5
694echo $ECHO_N "checking if compiler $compiler_name has been built... $ECHO_C" >&6
695if test "${objc_cv_compiler_exists+set}" = set; then
696 echo $ECHO_N "(cached) $ECHO_C" >&6
71205e0b
MH
697else
698 objc_cv_compiler_exists=yes
da4b1927
MK
699if test -n "$r"; then
700 if test -d "$r"/gcc; then
701 if test -f "$r"/gcc/$compiler_name \
6de94858 702 || test -f "$r"/gcc/$compiler_name.exe; then
da4b1927
MK
703 true
704 else
705 objc_cv_compiler_exists=no
706 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
707 fi
708 fi
709fi
710
71205e0b
MH
711fi
712
162f5967
RL
713echo "configure:626: result: $objc_cv_compiler_exists" >&5
714echo "${ECHO_T}$objc_cv_compiler_exists" >&6
71205e0b
MH
715if test x$objc_cv_compiler_exists = xno
716then
da4b1927
MK
717 rm -f Makefile conftest* confdefs* core
718 exit 0
71205e0b
MH
719fi
720
bce1b489
BE
721# For ObjC we'll set CC to point at the built gcc, but this will get it into
722# the makefiles
162f5967
RL
723case "${CFLAGS+set} $ac_configure_args" in
724 *" CFLAGS="* );;
725 "set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";;
726esac
727
728 # Extract the first word of "gcc", so it can be a program name with args.
bce1b489 729set dummy gcc; ac_word=$2
162f5967
RL
730echo "configure:641: checking for $ac_word" >&5
731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
732if test "${ac_cv_prog_CC+set}" = set; then
733 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489
BE
734else
735 if test -n "$CC"; then
736 ac_cv_prog_CC="$CC" # Let the user override the test.
737else
162f5967
RL
738 for ac_path in `ac_save_ifs=$IFS; IFS=':'
739ac_dummy="$PATH"
740for ac_dir in $ac_dummy; do
741 test -z "$ac_dir" && ac_dir=.
742 if test -f $ac_dir/$ac_word; then
743 echo "$ac_dir/$ac_word"
744 fi
745done
746IFS=$ac_save_ifs
747`; do
748 ac_cv_prog_CC="gcc"
749 break
bce1b489 750 done
bce1b489
BE
751fi
752fi
162f5967 753CC=$ac_cv_prog_CC
bce1b489 754if test -n "$CC"; then
162f5967
RL
755 echo "configure:666: result: $CC" >&5
756echo "${ECHO_T}$CC" >&6
bce1b489 757else
162f5967
RL
758 echo "configure:669: result: no" >&5
759echo "${ECHO_T}no" >&6
bce1b489
BE
760fi
761
162f5967
RL
762 if test -z "$CC"; then
763 # Extract the first word of "cc", so it can be a program name with args.
bce1b489 764set dummy cc; ac_word=$2
162f5967
RL
765echo "configure:675: checking for $ac_word" >&5
766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
767if test "${ac_cv_prog_CC+set}" = set; then
768 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489
BE
769else
770 if test -n "$CC"; then
771 ac_cv_prog_CC="$CC" # Let the user override the test.
772else
bce1b489 773 ac_prog_rejected=no
162f5967
RL
774 for ac_path in `ac_save_ifs=$IFS; IFS=':'
775ac_dummy="$PATH"
776for ac_dir in $ac_dummy; do
777 test -z "$ac_dir" && ac_dir=.
778 if test -f $ac_dir/$ac_word; then
779 echo "$ac_dir/$ac_word"
780 fi
781done
782IFS=$ac_save_ifs
783`; do
784 if test "$ac_path" = "/usr/ucb/cc"; then
785 ac_prog_rejected=yes
786 continue
bce1b489 787 fi
162f5967
RL
788 ac_cv_prog_CC="cc"
789 break
bce1b489 790 done
bce1b489
BE
791if test $ac_prog_rejected = yes; then
792 # We found a bogon in the path, so make sure we never use it.
793 set dummy $ac_cv_prog_CC
794 shift
795 if test $# -gt 0; then
796 # We chose a different compiler from the bogus one.
797 # However, it has the same basename, so the bogon will be chosen
798 # first if we set CC to just the basename; use the full file name.
799 shift
162f5967 800 set dummy "$ac_path" ${1+"$@"}
bce1b489
BE
801 shift
802 ac_cv_prog_CC="$@"
803 fi
804fi
805fi
806fi
162f5967 807CC=$ac_cv_prog_CC
bce1b489 808if test -n "$CC"; then
162f5967
RL
809 echo "configure:719: result: $CC" >&5
810echo "${ECHO_T}$CC" >&6
bce1b489 811else
162f5967
RL
812 echo "configure:722: result: no" >&5
813echo "${ECHO_T}no" >&6
bce1b489
BE
814fi
815
162f5967
RL
816 if test -z "$CC"; then
817 for ac_prog in cl
818do
819# Extract the first word of "$ac_prog", so it can be a program name with args.
820set dummy $ac_prog; ac_word=$2
821echo "configure:730: checking for $ac_word" >&5
822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
823if test "${ac_cv_prog_CC+set}" = set; then
824 echo $ECHO_N "(cached) $ECHO_C" >&6
da4b1927
MK
825else
826 if test -n "$CC"; then
827 ac_cv_prog_CC="$CC" # Let the user override the test.
828else
162f5967
RL
829 for ac_path in `ac_save_ifs=$IFS; IFS=':'
830ac_dummy="$PATH"
831for ac_dir in $ac_dummy; do
832 test -z "$ac_dir" && ac_dir=.
833 if test -f $ac_dir/$ac_word; then
834 echo "$ac_dir/$ac_word"
835 fi
836done
837IFS=$ac_save_ifs
838`; do
839 ac_cv_prog_CC="$ac_prog"
840 break
da4b1927 841 done
da4b1927
MK
842fi
843fi
162f5967 844CC=$ac_cv_prog_CC
da4b1927 845if test -n "$CC"; then
162f5967
RL
846 echo "configure:755: result: $CC" >&5
847echo "${ECHO_T}$CC" >&6
da4b1927 848else
162f5967
RL
849 echo "configure:758: result: no" >&5
850echo "${ECHO_T}no" >&6
da4b1927 851fi
162f5967
RL
852
853test -n "$CC" && break
854done
855
856 fi
da4b1927 857 fi
bce1b489 858
162f5967 859test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" >&2; exit 1; }
bce1b489 860
162f5967
RL
861echo "configure:766: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
862echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ECHO_C" >&6
bce1b489
BE
863ac_ext=c
864# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
865ac_cpp='$CPP $CPPFLAGS'
162f5967
RL
866ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
867ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
bce1b489
BE
868cross_compiling=$ac_cv_prog_cc_cross
869
162f5967
RL
870cat >conftest.$ac_ext <<EOF
871#line 775 "configure"
bce1b489 872#include "confdefs.h"
162f5967 873int main(){return(0);}
bce1b489 874EOF
162f5967 875if { (eval echo configure:779: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bce1b489
BE
876 ac_cv_prog_cc_works=yes
877 # If we can't run a trivial program, we are probably using a cross compiler.
878 if (./conftest; exit) 2>/dev/null; then
879 ac_cv_prog_cc_cross=no
880 else
881 ac_cv_prog_cc_cross=yes
882 fi
883else
884 echo "configure: failed program was:" >&5
885 cat conftest.$ac_ext >&5
886 ac_cv_prog_cc_works=no
887fi
162f5967 888rm -f conftest*
da4b1927
MK
889ac_ext=c
890# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
891ac_cpp='$CPP $CPPFLAGS'
162f5967
RL
892ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
893ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
da4b1927 894cross_compiling=$ac_cv_prog_cc_cross
162f5967
RL
895echo "configure:799: result: $ac_cv_prog_cc_works" >&5
896echo "${ECHO_T}$ac_cv_prog_cc_works" >&6
bce1b489 897if test $ac_cv_prog_cc_works = no; then
162f5967 898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." >&2; exit 77; }
bce1b489 899fi
162f5967
RL
900echo "configure:804: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
901echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ECHO_C" >&6
902echo "configure:806: result: $ac_cv_prog_cc_cross" >&5
903echo "${ECHO_T}$ac_cv_prog_cc_cross" >&6
bce1b489
BE
904cross_compiling=$ac_cv_prog_cc_cross
905
162f5967
RL
906echo "configure:809: checking whether we are using GNU C" >&5
907echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
908if test "${ac_cv_prog_gcc+set}" = set; then
909 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 910else
162f5967 911 cat >conftest.c <<EOF
bce1b489
BE
912#ifdef __GNUC__
913 yes;
914#endif
915EOF
162f5967 916if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
bce1b489
BE
917 ac_cv_prog_gcc=yes
918else
919 ac_cv_prog_gcc=no
920fi
921fi
162f5967
RL
922echo "configure:825: result: $ac_cv_prog_gcc" >&5
923echo "${ECHO_T}$ac_cv_prog_gcc" >&6
bce1b489
BE
924
925if test $ac_cv_prog_gcc = yes; then
926 GCC=yes
da4b1927
MK
927else
928 GCC=
929fi
930
162f5967
RL
931ac_test_CFLAGS=${CFLAGS+set}
932ac_save_CFLAGS=$CFLAGS
da4b1927 933CFLAGS=
162f5967
RL
934echo "configure:835: checking whether ${CC-cc} accepts -g" >&5
935echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" >&6
936if test "${ac_cv_prog_cc_g+set}" = set; then
937 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 938else
162f5967 939 echo 'void f(){}' >conftest.c
bce1b489
BE
940if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
941 ac_cv_prog_cc_g=yes
942else
943 ac_cv_prog_cc_g=no
944fi
945rm -f conftest*
946
947fi
162f5967
RL
948echo "configure:848: result: $ac_cv_prog_cc_g" >&5
949echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
da4b1927 950if test "$ac_test_CFLAGS" = set; then
162f5967 951 CFLAGS=$ac_save_CFLAGS
da4b1927
MK
952elif test $ac_cv_prog_cc_g = yes; then
953 if test "$GCC" = yes; then
bce1b489
BE
954 CFLAGS="-g -O2"
955 else
da4b1927 956 CFLAGS="-g"
bce1b489
BE
957 fi
958else
da4b1927
MK
959 if test "$GCC" = yes; then
960 CFLAGS="-O2"
961 else
962 CFLAGS=
963 fi
bce1b489
BE
964fi
965
bce1b489
BE
966test "$AR" || AR=ar
967
968if test "$RANLIB"; then :
162f5967 969
bce1b489
BE
970else
971 # Extract the first word of "ranlib", so it can be a program name with args.
972set dummy ranlib; ac_word=$2
162f5967
RL
973echo "configure:870: checking for $ac_word" >&5
974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
975if test "${ac_cv_prog_RANLIB+set}" = set; then
976 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489
BE
977else
978 if test -n "$RANLIB"; then
979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
980else
162f5967
RL
981 for ac_path in `ac_save_ifs=$IFS; IFS=':'
982ac_dummy="$PATH"
983for ac_dir in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir=.
985 if test -f $ac_dir/$ac_word; then
986 echo "$ac_dir/$ac_word"
987 fi
988done
989IFS=$ac_save_ifs
990`; do
991 ac_cv_prog_RANLIB="ranlib"
992 break
bce1b489 993 done
bce1b489
BE
994 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
995fi
996fi
162f5967 997RANLIB=$ac_cv_prog_RANLIB
bce1b489 998if test -n "$RANLIB"; then
162f5967
RL
999 echo "configure:896: result: $RANLIB" >&5
1000echo "${ECHO_T}$RANLIB" >&6
bce1b489 1001else
162f5967
RL
1002 echo "configure:899: result: no" >&5
1003echo "${ECHO_T}no" >&6
bce1b489
BE
1004fi
1005
1006fi
bce1b489
BE
1007# Find a good install program. We prefer a C program (faster),
1008# so one script is as good as another. But avoid the broken or
1009# incompatible versions:
1010# SysV /etc/install, /usr/sbin/install
1011# SunOS /usr/etc/install
1012# IRIX /sbin/install
1013# AIX /bin/install
1014# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1015# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1016# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1017# ./install, which can be erroneously created by make from ./install.sh.
162f5967
RL
1018echo "configure:914: checking for a BSD compatible install" >&5
1019echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
bce1b489 1020if test -z "$INSTALL"; then
162f5967
RL
1021if test "${ac_cv_path_install+set}" = set; then
1022 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 1023else
162f5967 1024 ac_save_IFS=$IFS; IFS=':'
bce1b489
BE
1025 for ac_dir in $PATH; do
1026 # Account for people who put trailing slashes in PATH elements.
1027 case "$ac_dir/" in
1028 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1029 *)
1030 # OSF1 and SCO ODT 3.0 have their own names for install.
1031 # Don't use installbsd from OSF since it installs stuff as root
1032 # by default.
1033 for ac_prog in ginstall scoinst install; do
1034 if test -f $ac_dir/$ac_prog; then
1035 if test $ac_prog = install &&
1036 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1037 # AIX install. It has an incompatible calling convention.
1038 :
162f5967
RL
1039 elif test $ac_prog = install &&
1040 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1041 # program-specific install script used by HP pwplus--don't use.
1042 :
bce1b489
BE
1043 else
1044 ac_cv_path_install="$ac_dir/$ac_prog -c"
1045 break 2
1046 fi
1047 fi
1048 done
1049 ;;
1050 esac
1051 done
162f5967 1052 IFS=$ac_save_IFS
bce1b489
BE
1053
1054fi
1055 if test "${ac_cv_path_install+set}" = set; then
162f5967 1056 INSTALL=$ac_cv_path_install
bce1b489
BE
1057 else
1058 # As a last resort, use the slow shell script. We don't cache a
1059 # path for INSTALL within a source directory, because that will
1060 # break other packages using the cache if that directory is
1061 # removed, or if the path is relative.
162f5967 1062 INSTALL=$ac_install_sh
bce1b489
BE
1063 fi
1064fi
162f5967
RL
1065echo "configure:960: result: $INSTALL" >&5
1066echo "${ECHO_T}$INSTALL" >&6
bce1b489
BE
1067
1068# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1069# It thinks the first close brace ends the variable substitution.
1070test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1071
162f5967 1072test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
da4b1927 1073
bce1b489
BE
1074test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1075
bce1b489 1076# Sanity check for the cross-compilation case:
162f5967
RL
1077echo "configure:968: checking how to run the C preprocessor" >&5
1078echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bce1b489
BE
1079# On Suns, sometimes $CPP names a directory.
1080if test -n "$CPP" && test -d "$CPP"; then
1081 CPP=
1082fi
1083if test -z "$CPP"; then
162f5967
RL
1084if test "${ac_cv_prog_CPP+set}" = set; then
1085 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489
BE
1086else
1087 # This must be in double quotes, not single quotes, because CPP may get
1088 # substituted into the Makefile and "${CC-cc}" will confuse make.
1089 CPP="${CC-cc} -E"
1090 # On the NeXT, cc -E runs the code through the compiler's parser,
1091 # not just through cpp.
162f5967
RL
1092 cat >conftest.$ac_ext <<EOF
1093#line 984 "configure"
bce1b489
BE
1094#include "confdefs.h"
1095#include <assert.h>
1096Syntax Error
1097EOF
1098ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
162f5967 1099{ (eval echo configure:990: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
da4b1927 1100ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1101if test -z "$ac_err"; then
1102 :
1103else
1104 echo "$ac_err" >&5
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
bce1b489 1107 CPP="${CC-cc} -E -traditional-cpp"
162f5967
RL
1108 cat >conftest.$ac_ext <<EOF
1109#line 1000 "configure"
bce1b489
BE
1110#include "confdefs.h"
1111#include <assert.h>
1112Syntax Error
1113EOF
1114ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
162f5967 1115{ (eval echo configure:1006: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
da4b1927
MK
1116ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1117if test -z "$ac_err"; then
1118 :
1119else
1120 echo "$ac_err" >&5
1121 echo "configure: failed program was:" >&5
1122 cat conftest.$ac_ext >&5
da4b1927 1123 CPP="${CC-cc} -nologo -E"
162f5967
RL
1124 cat >conftest.$ac_ext <<EOF
1125#line 1016 "configure"
da4b1927
MK
1126#include "confdefs.h"
1127#include <assert.h>
1128Syntax Error
1129EOF
1130ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
162f5967 1131{ (eval echo configure:1022: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
da4b1927 1132ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1133if test -z "$ac_err"; then
1134 :
1135else
1136 echo "$ac_err" >&5
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
bce1b489
BE
1139 CPP=/lib/cpp
1140fi
1141rm -f conftest*
1142fi
da4b1927
MK
1143rm -f conftest*
1144fi
bce1b489 1145rm -f conftest*
162f5967 1146 ac_cv_prog_CPP=$CPP
bce1b489 1147fi
162f5967 1148 CPP=$ac_cv_prog_CPP
bce1b489 1149else
162f5967 1150 ac_cv_prog_CPP=$CPP
bce1b489 1151fi
162f5967
RL
1152echo "configure:1043: result: $CPP" >&5
1153echo "${ECHO_T}$CPP" >&6
bce1b489 1154
162f5967
RL
1155echo "configure:1045: checking for stdio.h" >&5
1156echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
1157if test "${ac_cv_header_stdio_h+set}" = set; then
1158 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 1159else
162f5967
RL
1160 cat >conftest.$ac_ext <<EOF
1161#line 1051 "configure"
bce1b489
BE
1162#include "confdefs.h"
1163#include <stdio.h>
162f5967 1164
bce1b489
BE
1165EOF
1166ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
162f5967 1167{ (eval echo configure:1056: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
da4b1927 1168ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489 1169if test -z "$ac_err"; then
162f5967 1170 ac_cv_header_stdio_h=yes
bce1b489
BE
1171else
1172 echo "$ac_err" >&5
1173 echo "configure: failed program was:" >&5
1174 cat conftest.$ac_ext >&5
162f5967 1175 ac_cv_header_stdio_h=no
bce1b489
BE
1176fi
1177rm -f conftest*
1178fi
162f5967
RL
1179echo "configure:1068: result: $ac_cv_header_stdio_h" >&5
1180echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
1181if test $ac_cv_header_stdio_h = yes; then
bce1b489
BE
1182 :
1183else
162f5967 1184 { echo "configure: error: Can't find stdio.h.
bce1b489
BE
1185You must have a usable C system for the target already installed, at least
1186including headers and, preferably, the library, before you can configure
162f5967
RL
1187the Objective C runtime system. If necessary, install gcc now with
1188\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2; exit 1; }
bce1b489
BE
1189fi
1190
162f5967
RL
1191echo "configure:1079: checking for ANSI C header files" >&5
1192echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1193if test "${ac_cv_header_stdc+set}" = set; then
1194 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 1195else
162f5967
RL
1196 cat >conftest.$ac_ext <<EOF
1197#line 1085 "configure"
bce1b489
BE
1198#include "confdefs.h"
1199#include <stdlib.h>
1200#include <stdarg.h>
1201#include <string.h>
1202#include <float.h>
162f5967 1203
bce1b489
BE
1204EOF
1205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
162f5967 1206{ (eval echo configure:1093: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
da4b1927 1207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489 1208if test -z "$ac_err"; then
bce1b489
BE
1209 ac_cv_header_stdc=yes
1210else
1211 echo "$ac_err" >&5
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
bce1b489
BE
1214 ac_cv_header_stdc=no
1215fi
1216rm -f conftest*
1217
1218if test $ac_cv_header_stdc = yes; then
1219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
162f5967
RL
1220cat >conftest.$ac_ext <<EOF
1221#line 1107 "configure"
bce1b489
BE
1222#include "confdefs.h"
1223#include <string.h>
162f5967 1224
bce1b489
BE
1225EOF
1226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1227 egrep "memchr" >/dev/null 2>&1; then
1228 :
1229else
bce1b489
BE
1230 ac_cv_header_stdc=no
1231fi
1232rm -f conftest*
1233
1234fi
1235
1236if test $ac_cv_header_stdc = yes; then
1237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
162f5967
RL
1238cat >conftest.$ac_ext <<EOF
1239#line 1122 "configure"
bce1b489
BE
1240#include "confdefs.h"
1241#include <stdlib.h>
162f5967 1242
bce1b489
BE
1243EOF
1244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1245 egrep "free" >/dev/null 2>&1; then
1246 :
1247else
bce1b489
BE
1248 ac_cv_header_stdc=no
1249fi
1250rm -f conftest*
1251
1252fi
1253
1254if test $ac_cv_header_stdc = yes; then
1255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1256if test "$cross_compiling" = yes; then
1257 :
1258else
162f5967
RL
1259 cat >conftest.$ac_ext <<EOF
1260#line 1140 "configure"
bce1b489
BE
1261#include "confdefs.h"
1262#include <ctype.h>
162f5967
RL
1263#if ((' ' & 0x0FF) == 0x020)
1264# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1265# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1266#else
1267# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1268 || ('j' <= (c) && (c) <= 'r') \
1269 || ('s' <= (c) && (c) <= 'z'))
1270# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1271#endif
bce1b489 1272
162f5967
RL
1273#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1274int
1275main ()
1276{
1277 int i;
1278 for (i = 0; i < 256; i++)
1279 if (XOR (islower (i), ISLOWER (i))
1280 || toupper (i) != TOUPPER (i))
1281 exit(2);
1282 exit (0);
1283}
bce1b489 1284EOF
162f5967
RL
1285if { (eval echo configure:1164: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
1286 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
bce1b489
BE
1287 :
1288else
1289 echo "configure: failed program was:" >&5
1290 cat conftest.$ac_ext >&5
bce1b489
BE
1291 ac_cv_header_stdc=no
1292fi
162f5967 1293rm -f conftest*
bce1b489
BE
1294fi
1295
1296fi
1297fi
162f5967
RL
1298echo "configure:1176: result: $ac_cv_header_stdc" >&5
1299echo "${ECHO_T}$ac_cv_header_stdc" >&6
bce1b489 1300if test $ac_cv_header_stdc = yes; then
162f5967
RL
1301
1302cat >>confdefs.h <<\EOF
bce1b489
BE
1303#define STDC_HEADERS 1
1304EOF
1305
1306fi
1307
162f5967 1308for ac_header in sched.h
d972a4c2 1309do
162f5967
RL
1310ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
1311echo "configure:1186: checking for $ac_header" >&5
1312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1313if eval "test \"\${$ac_ac_Header+set}\" = set"; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1315else
1316 cat >conftest.$ac_ext <<EOF
1317#line 1192 "configure"
d972a4c2 1318#include "confdefs.h"
162f5967
RL
1319#include <$ac_header>
1320
d972a4c2
OP
1321EOF
1322ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
162f5967 1323{ (eval echo configure:1197: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
d972a4c2
OP
1324ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1325if test -z "$ac_err"; then
162f5967 1326 eval "$ac_ac_Header=yes"
d972a4c2
OP
1327else
1328 echo "$ac_err" >&5
1329 echo "configure: failed program was:" >&5
1330 cat conftest.$ac_ext >&5
162f5967 1331 eval "$ac_ac_Header=no"
d972a4c2
OP
1332fi
1333rm -f conftest*
1334fi
162f5967
RL
1335echo "configure:1209: result: `eval echo '${'$ac_ac_Header'}'`" >&5
1336echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
1337if test `eval echo '${'$ac_ac_Header'}'` = yes; then
1338 cat >>confdefs.h <<EOF
1339#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
d972a4c2 1340EOF
162f5967 1341
d972a4c2
OP
1342fi
1343done
1344
c161c99b 1345# Determine CFLAGS for gthread.
162f5967
RL
1346echo "configure:1218: checking for gthread cflags" >&5
1347echo $ECHO_N "checking for gthread cflags... $ECHO_C" >&6
1348if test "${objc_cv_gthread_flags+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 1350else
79014e6f 1351 if test -f "$r"/gcc/Makefile
bce1b489 1352then
15794a95 1353 objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
bce1b489 1354else
162f5967 1355 { echo "configure: error: not found" >&2; exit 1; }
bce1b489
BE
1356fi
1357fi
162f5967
RL
1358echo "configure:1230: result: $objc_cv_gthread_flags" >&5
1359echo "${ECHO_T}$objc_cv_gthread_flags" >&6
15794a95 1360GTHREAD_FLAGS=$objc_cv_gthread_flags
bce1b489 1361
c161c99b 1362# Disable shared libs by default
162f5967
RL
1363AC_DISABLE_SHARED
1364# Enable Win32 DLL on MS Windows - FIXME
1365AC_LIBTOOL_WIN32_DLL
1366# Use libtool
1367AC_PROG_LIBTOOL
c161c99b 1368
bce1b489
BE
1369# Check whether --enable-objc-gc or --disable-objc-gc was given.
1370if test "${enable_objc_gc+set}" = set; then
1371 enableval="$enable_objc_gc"
1372 if [ x$enable_objc_gc = xno ]; then
1373 OBJC_BOEHM_GC=''
1374else
c161c99b 1375 OBJC_BOEHM_GC=libobjc_gc.la
bce1b489
BE
1376fi
1377else
1378 OBJC_BOEHM_GC=''
1379fi
1380
bce1b489
BE
1381# We need multilib support, but only if configuring for the target.
1382trap '' 1 2 15
162f5967 1383cat >confcache <<\EOF
bce1b489
BE
1384# This file is a shell script that caches the results of configure
1385# tests run on this system so they can be shared between configure
1386# scripts and configure runs. It is not useful on other systems.
1387# If it contains results you don't want to keep, you may remove or edit it.
1388#
1389# By default, configure uses ./config.cache as the cache file,
1390# creating it if it does not exist already. You can give configure
1391# the --cache-file=FILE option to use a different cache file; that is
1392# what configure does when it calls configure scripts in
1393# subdirectories, so they share the cache.
1394# Giving --cache-file=/dev/null disables caching, for debugging configure.
1395# config.status only pays attention to the cache file if you give it the
1396# --recheck option to rerun configure.
1397#
1398EOF
1399# The following way of writing the cache mishandles newlines in values,
1400# but we know of no workaround that is simple, portable, and efficient.
1401# So, don't put newlines in cache variables' values.
1402# Ultrix sh set writes to stderr and can't be redirected directly,
1403# and sets the high bit in the cache file unless we assign to the vars.
162f5967
RL
1404{
1405 (set) 2>&1 |
1406 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1407 *ac_space=\ *)
1408 # `set' does not quote correctly, so add quotes (double-quote substitution
1409 # turns \\\\ into \\, and sed turns \\ into \).
1410 sed -n \
1411 -e "s/'/'\\\\''/g" \
1412 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1='\\2'/p"
1413 ;;
1414 *)
1415 # `set' quotes correctly as required by POSIX, so do not add quotes.
1416 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\2/p'
1417 ;;
1418 esac;
1419} |
1420 sed -e 's/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/' >>confcache
1421if cmp -s $cache_file confcache; then :; else
bce1b489 1422 if test -w $cache_file; then
162f5967
RL
1423 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1424 cat confcache >$cache_file
bce1b489
BE
1425 else
1426 echo "not updating unwritable cache $cache_file"
1427 fi
1428fi
1429rm -f confcache
bce1b489
BE
1430trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1431
1432test "x$prefix" = xNONE && prefix=$ac_default_prefix
1433# Let make expand exec_prefix.
1434test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1435
1436# Any assignment to VPATH causes Sun make to only execute
1437# the first set of double-colon rules, so remove it if not needed.
1438# If there is a colon in the path, we need to keep it.
1439if test "x$srcdir" = x.; then
1440 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1441fi
1442
d972a4c2 1443DEFS=-DHAVE_CONFIG_H
bce1b489 1444
162f5967
RL
1445# Save into config.log some information that might help in debugging.
1446echo >&5
1447echo "Cache variables:" >&5
1448# The following way of writing the cache mishandles newlines in values,
1449# but we know of no workaround that is simple, portable, and efficient.
1450# So, don't put newlines in cache variables' values.
1451# Ultrix sh set writes to stderr and can't be redirected directly,
1452# and sets the high bit in the cache file unless we assign to the vars.
1453{
1454 (set) 2>&1 |
1455 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1456 *ac_space=\ *)
1457 # `set' does not quote correctly, so add quotes (double-quote substitution
1458 # turns \\\\ into \\, and sed turns \\ into \).
1459 sed -n \
1460 -e "s/'/'\\\\''/g" \
1461 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1='\\2'/p"
1462 ;;
1463 *)
1464 # `set' quotes correctly as required by POSIX, so do not add quotes.
1465 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\2/p'
1466 ;;
1467 esac;
1468} | sed -e 's/^/| /' >&5
1469echo >&5
1470echo "confdefs.h:" >&5
1471cat confdefs.h | sed -e 's/^/| /' >&5
bce1b489 1472
162f5967
RL
1473: ${CONFIG_STATUS=./config.status}
1474trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
bce1b489 1475echo creating $CONFIG_STATUS
162f5967 1476cat >$CONFIG_STATUS <<EOF
bce1b489
BE
1477#! /bin/sh
1478# Generated automatically by configure.
1479# Run this file to recreate the current configuration.
bce1b489
BE
1480# Compiler output produced by configure, useful for debugging
1481# configure, is in ./config.log if it exists.
1482
162f5967
RL
1483configure=$0
1484configure_args=$ac_configure_args
1485debug=false
1486EOF
1487
1488cat >>$CONFIG_STATUS <<\EOF
1489me=`echo "$0" | sed -e 's,.*/,,'`
1490SHELL=${CONFIG_SHELL-/bin/sh}
1491
1492# Files that config.status was made for.
1493config_files="\
1494 Makefile"
1495config_headers="\
1496 config.h"
1497config_commands="\
1498 default"
1499
1500ac_cs_usage="\
1501\`$me' instantiates files from templates according to the
1502current configuration.
1503
1504Usage: $0 [OPTIONS] FILE...
1505
1506 -h, --help print this help, then exit
1507 -V, --version print version number, then exit
1508 -d, --debug don't remove temporary files
1509 --recheck update $me by reconfiguring in the same conditions
1510 --file=FILE[:TEMPLATE]
1511 instantiate the configuration file FILE
1512 --header=FILE[:TEMPLATE]
1513 instantiate the configuration header FILE
1514
1515Configuration files:
1516$config_files
1517
1518Configuration headers:
1519$config_headers
1520
1521Configuration commands:
1522$config_commands
1523
1524Report bugs to <bug-autoconf@gnu.org>."
1525EOF
1526
1527cat >>$CONFIG_STATUS <<EOF
1528ac_cs_version="\\
1529$CONFIG_STATUS generated by autoconf version 2.14a.
1530Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by
1531 $configure $configure_arg"
1532
1533ac_given_srcdir=$srcdir
1534ac_given_INSTALL="$INSTALL"
1535EOF
1536
1537cat >>$CONFIG_STATUS <<\EOF
1538# If no file are specified by the user, then we need to provide default
1539# value. By we need to know if files were specified by the user.
1540ac_need_defaults=:
1541while test $# != 0
bce1b489 1542do
162f5967
RL
1543 case "$1" in
1544 --*=*)
1545 ac_option=`echo "$1" | sed -e 's/=.*//'`
1546 ac_optarg=`echo "$1" | sed -e 's/[^=]*=//'`
1547 shift
1548 set dummy "\$ac_option" "$ac_optarg" ${1+"$@"}
1549 shift
1550 ;;
1551 -*);;
1552 *) # This is not an option, so the user has probably given explicit
1553 # arguments.
1554 ac_need_defaults=false;;
1555 esac
1556
1557 case "$1" in
1558
1559 # Handling of the options.
bce1b489 1560 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
162f5967
RL
1561 echo "running $SHELL $configure $configure_args --no-create --no-recursion"
1562 exec $SHELL $configure $configure_args --no-create --no-recursion ;;
1563 --version | --vers* | -V )
1564 echo "$ac_cs_version"; exit 0 ;;
1565 --he | --h)
1566 # Conflict between --help and --header
1567 echo "$me: ambiguous option: $ac_option
1568Try \`$me --help' for more information."; exit 1 ;;
1569 --help | --hel | -h )
1570 echo "$ac_cs_usage"; exit 0 ;;
1571 --debug | --d* | -d )
1572 debug=:; shift ;;
1573 --file | --fil | --fi | --f )
1574 shift
1575 CONFIG_FILES="$CONFIG_FILES $1"
1576 ac_need_defaults=false;;
1577 --header | --heade | --head | --hea )
1578 shift
1579 CONFIG_HEADERS="$CONFIG_HEADERS $1"
1580 ac_need_defaults=false;;
1581
1582 # Handling of arguments.
1583 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1584 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
1585 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1586
1587 # This is an error.
1588 -*) echo "$me: unrecognized option: $1
1589Try \`$me --help' for more information."; exit 1 ;;
1590 *) echo "$me: invalid argument: $1"; exit 1 ;;
bce1b489 1591 esac
162f5967 1592 shift
bce1b489
BE
1593done
1594
162f5967
RL
1595EOF
1596
1597cat >>$CONFIG_STATUS <<\EOF
1598# If the user did not use the arguments to specify the items to instantiate,
1599# then the envvar interface is used. Set only those that are not.
1600if $ac_need_defaults; then
1601 : ${CONFIG_FILES=$config_files}
1602 : ${CONFIG_HEADERS=$config_headers}
1603 : ${CONFIG_COMMANDS=$config_commands}
1604fi
1605
1606# Create a temporary directory, and hook for its removal unless debugging.
1607$debug ||
1608{
1609 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1610 trap 'exit $?' 1 2 13 15
1611}
1612
1613# Create a (secure) tmp directory for tmp files.
1614: ${TMPDIR=/tmp}
1615{
1616 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
1617 test -n "$tmp"
1618} ||
1619{
1620 tmp=$TMPDIR/cs$$-$RANDOM && (umask 077 && mkdir $tmp)
1621} ||
1622{
1623 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1624 exit 1;
1625}
bce1b489 1626
bce1b489 1627EOF
bce1b489 1628
162f5967
RL
1629cat >>$CONFIG_STATUS <<EOF
1630#
1631# INIT-COMMANDS section.
1632#
1633
1634srcdir=${srcdir}
1635host=${host}
1636target=${target}
1637with_target_subdir=${with_target_subdir}
1638with_multisubdir=${with_multisubdir}
1639ac_configure_args="--enable-multilib ${ac_configure_args}"
1640CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1641topsrcdir=${topsrcdir}
1642
1643EOF
1644
1645cat >>$CONFIG_STATUS <<EOF
1646
1647#
1648# CONFIG_FILES section.
1649#
bce1b489 1650
162f5967
RL
1651# No need to generate the scripts if there are no CONFIG_FILES.
1652# This happens for instance when ./config.status config.h
1653if test -n "\$CONFIG_FILES"; then
1654 # Protect against being on the right side of a sed subst in config.status.
1655 sed 's/%@/@@/; s/@%/@@/; s/%;t t\$/@;t t/; /@;t t\$/s/[\\\\&%]/\\\\&/g;
1656 s/@@/%@/; s/@@/@%/; s/@;t t\$/%;t t/' >\$tmp/subs.sed <<\\CEOF
1657s%@SHELL@%$SHELL%;t t
1658s%@exec_prefix@%$exec_prefix%;t t
1659s%@prefix@%$prefix%;t t
1660s%@program_transform_name@%$program_transform_name%;t t
1661s%@bindir@%$bindir%;t t
1662s%@sbindir@%$sbindir%;t t
1663s%@libexecdir@%$libexecdir%;t t
1664s%@datadir@%$datadir%;t t
1665s%@sysconfdir@%$sysconfdir%;t t
1666s%@sharedstatedir@%$sharedstatedir%;t t
1667s%@localstatedir@%$localstatedir%;t t
1668s%@libdir@%$libdir%;t t
1669s%@includedir@%$includedir%;t t
1670s%@oldincludedir@%$oldincludedir%;t t
1671s%@infodir@%$infodir%;t t
1672s%@mandir@%$mandir%;t t
1673s%@ECHO_C@%$ECHO_C%;t t
1674s%@ECHO_N@%$ECHO_N%;t t
1675s%@ECHO_T@%$ECHO_T%;t t
1676s%@CFLAGS@%$CFLAGS%;t t
1677s%@CPPFLAGS@%$CPPFLAGS%;t t
1678s%@CXXFLAGS@%$CXXFLAGS%;t t
1679s%@FFLAGS@%$FFLAGS%;t t
1680s%@DEFS@%$DEFS%;t t
1681s%@LDFLAGS@%$LDFLAGS%;t t
1682s%@LIBS@%$LIBS%;t t
1683s%@CC@%$CC%;t t
1684s%@AR@%$AR%;t t
1685s%@RANLIB@%$RANLIB%;t t
1686s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t
1687s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t
1688s%@INSTALL_DATA@%$INSTALL_DATA%;t t
1689s%@CPP@%$CPP%;t t
1690s%@GTHREAD_FLAGS@%$GTHREAD_FLAGS%;t t
1691s%@OBJC_BOEHM_GC@%$OBJC_BOEHM_GC%;t t
bce1b489 1692CEOF
162f5967 1693
bce1b489
BE
1694EOF
1695
162f5967
RL
1696 cat >>$CONFIG_STATUS <<\EOF
1697 # Split the substitutions into bite-sized pieces for seds with
1698 # small command number limits, like on Digital OSF/1 and HP-UX.
1699 ac_max_sed_lines=48
1700 ac_sed_frag=1 # Number of current file.
1701 ac_beg=1 # First line for current file.
1702 ac_end=$ac_max_sed_lines # Line after last line for current file.
1703 ac_more_lines=:
1704 ac_sed_cmds=
1705 while $ac_more_lines; do
1706 if test $ac_beg -gt 1; then
1707 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1708 else
1709 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1710 fi
1711 if test ! -s $tmp/subs.frag; then
1712 ac_more_lines=false
bce1b489 1713 else
162f5967
RL
1714 # The purpose of the label and of the branching condition is to
1715 # speed up the sed processing (if there are no `@' at all, there
1716 # is no need to browse any of the substitutions).
1717 # These are the two extra sed commands mentioned above.
1718 (echo ':t
1719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1720 if test -z "$ac_sed_cmds"; then
1721 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1722 else
1723 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1724 fi
1725 ac_sed_frag=`expr $ac_sed_frag + 1`
1726 ac_beg=$ac_end
1727 ac_end=`expr $ac_end + $ac_max_sed_lines`
bce1b489 1728 fi
162f5967
RL
1729 done
1730 if test -z "$ac_sed_cmds"; then
1731 ac_sed_cmds=cat
bce1b489 1732 fi
162f5967 1733fi # test -n "$CONFIG_FILES"
bce1b489 1734
bce1b489 1735EOF
162f5967
RL
1736cat >>$CONFIG_STATUS <<\EOF
1737for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
bce1b489
BE
1738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1739 case "$ac_file" in
162f5967
RL
1740 *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'`
1741 ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;;
1742 *) ac_file_in=$ac_file.in ;;
bce1b489
BE
1743 esac
1744
1745 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1746
1747 # Remove last slash and all that follows it. Not all systems have dirname.
162f5967 1748 ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
bce1b489
BE
1749 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1750 # The file is in a subdirectory.
1751 test ! -d "$ac_dir" && mkdir "$ac_dir"
1752 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1753 # A "../" for each directory in $ac_dir_suffix.
162f5967 1754 ac_dots=`echo "$ac_dir_suffix" | sed 's%/[^/]*%../%g'`
bce1b489
BE
1755 else
1756 ac_dir_suffix= ac_dots=
1757 fi
1758
1759 case "$ac_given_srcdir" in
1760 .) srcdir=.
1761 if test -z "$ac_dots"; then top_srcdir=.
162f5967
RL
1762 else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
1763 [\\/]* | ?:[\\/]* )
1764 srcdir=$ac_given_srcdir$ac_dir_suffix;
1765 top_srcdir=$ac_given_srcdir ;;
bce1b489 1766 *) # Relative path.
162f5967
RL
1767 srcdir=$ac_dots$ac_given_srcdir$ac_dir_suffix
1768 top_srcdir=$ac_dots$ac_given_srcdir ;;
bce1b489
BE
1769 esac
1770
1771 case "$ac_given_INSTALL" in
162f5967
RL
1772 [\\/$]* | ?:[\\/]* ) INSTALL=$ac_given_INSTALL ;;
1773 *) INSTALL=$ac_dots$ac_given_INSTALL ;;
bce1b489
BE
1774 esac
1775
1776 echo creating "$ac_file"
1777 rm -f "$ac_file"
162f5967
RL
1778 configure_input="Generated automatically from `echo $ac_file_in |
1779 sed 's%.*/%%'` by configure."
1780
1781 # Don't redirect the output to AC_FILE directly: use `mv' so that
1782 # updating is atomic, and doesn't need trapping.
1783 ac_file_inputs=`echo "$ac_file_in" |
1784 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
1785 for ac_file_input in $ac_file_inputs;
1786 do
1787 test -f "$ac_file_input" ||
1788 { echo "configure: error: cannot find input file \`$ac_file_input'" >&2; exit 1; }
1789 done
1790EOF
1791cat >>$CONFIG_STATUS <<EOF
1792 sed -e "$ac_vpsub
1793$extrasub
1794EOF
1795cat >>$CONFIG_STATUS <<\EOF
1796:t
1797/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1798s%@configure_input@%$configure_input%;t t
1799s%@srcdir@%$srcdir%;t t
1800s%@top_srcdir@%$top_srcdir%;t t
1801s%@INSTALL@%$INSTALL%;t t
1802" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
1803 mv $tmp/out $ac_file
1804
1805done
1806EOF
1807cat >>$CONFIG_STATUS <<\EOF
bce1b489 1808
162f5967
RL
1809#
1810# CONFIG_HEADER section.
1811#
bce1b489 1812
d972a4c2
OP
1813# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1814# NAME is the cpp macro being defined and VALUE is the value it is being given.
1815#
1816# ac_d sets the value in "#define NAME VALUE" lines.
1817ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
162f5967
RL
1818ac_dB='[ ].*$%\1#\2'
1819ac_dC=' '
1820ac_dD='%;t'
1821# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
d972a4c2 1822ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
162f5967 1823ac_uB='$%\1#\2define\3'
d972a4c2 1824ac_uC=' '
162f5967
RL
1825ac_uD='%;t'
1826
1827for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
d972a4c2
OP
1828 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1829 case "$ac_file" in
162f5967
RL
1830 *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'`
1831 ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;;
1832 *) ac_file_in=$ac_file.in ;;
d972a4c2
OP
1833 esac
1834
1835 echo creating $ac_file
1836
162f5967
RL
1837 ac_file_inputs=`echo "$ac_file_in" |
1838 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
1839 for ac_file_input in $ac_file_inputs;
1840 do
1841 test -f "$ac_file_input" ||
1842 { echo "configure: error: cannot find input file \`$ac_file_input'" >&2; exit 1; }
1843 done
1844 # Remove the trailing spaces.
1845 sed -e 's/[ ]*$//' $ac_file_inputs >$tmp/in
d972a4c2
OP
1846
1847EOF
1848
162f5967
RL
1849# Transform confdefs.h into two sed scripts, `conftest.defines' and
1850# `conftest.undefs', that substitutes the proper values into
1851# config.h.in to produce config.h. The first handles `#define'
1852# templates, and the second `#undef' templates.
1853# And first: Protect against being on the right side of a sed subst in
1854# config.status. Protect against being in an unquoted here document
1855# in config.status.
1856rm -f conftest.defines conftest.undefs
1857cat >confdef2sed.sed <<\EOF
d972a4c2
OP
1858s/[\\&%]/\\&/g
1859s%[\\$`]%\\&%g
162f5967
RL
1860t clear
1861: clear
1862s%^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp
1863t cleanup
1864s%^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1865: cleanup
d972a4c2 1866EOF
162f5967
RL
1867# If some macros were called several times there might be several times
1868# the same #defines, which is useless. Nevertheless, we may not want to
1869# sort them, since we want the *last* AC_DEFINE to be honored.
1870uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
1871sed -e 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
1872rm -f confdef2sed.sed
d972a4c2
OP
1873
1874# This sed command replaces #undef with comments. This is necessary, for
1875# example, in the case of _POSIX_SOURCE, which is predefined and required
1876# on some systems where configure will not decide to define it.
162f5967 1877cat >>conftest.undefs <<\EOF
d972a4c2
OP
1878s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1879EOF
1880
162f5967
RL
1881# Break up conftest.defines because some shells have a limit on the size
1882# of here documents, and old seds have small limits too (100 cmds).
1883echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1884echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1885echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
1886echo ' :' >>$CONFIG_STATUS
1887rm -f conftest.tail
1888while grep . conftest.defines >/dev/null
1889do
1890 # Write a limited-size here document to $tmp/frag.
1891 echo ' cat >$tmp/frag <<CEOF' >>$CONFIG_STATUS
1892 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1893 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
1894 echo 'CEOF
1895 sed -f $tmp/frag $tmp/in >$tmp/out
1896 rm -f $tmp/in
1897 mv $tmp/out $tmp/in
1898' >>$CONFIG_STATUS
1899 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
1900 rm -f conftest.defines
1901 mv conftest.tail conftest.defines
1902done
1903rm -f conftest.defines
1904echo ' fi # egrep' >>$CONFIG_STATUS
1905echo >>$CONFIG_STATUS
d972a4c2 1906
162f5967
RL
1907# Break up conftest.undefs because some shells have a limit on the size
1908# of here documents, and old seds have small limits too (100 cmds).
1909echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
d972a4c2 1910rm -f conftest.tail
162f5967 1911while grep . conftest.undefs >/dev/null
d972a4c2 1912do
162f5967
RL
1913 # Write a limited-size here document to $tmp/frag.
1914 echo ' cat >$tmp/frag <<CEOF' >>$CONFIG_STATUS
1915 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1916 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
d972a4c2 1917 echo 'CEOF
162f5967
RL
1918 sed -f $tmp/frag $tmp/in >$tmp/out
1919 rm -f $tmp/in
1920 mv $tmp/out $tmp/in
1921' >>$CONFIG_STATUS
1922 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
1923 rm -f conftest.undefs
1924 mv conftest.tail conftest.undefs
d972a4c2 1925done
162f5967
RL
1926rm -f conftest.undefs
1927
1928cat >>$CONFIG_STATUS <<\EOF
1929 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
1930 cat $tmp/in >>$tmp/config.h
1931 rm -f $tmp/in
1932 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
d972a4c2 1933 echo "$ac_file is unchanged"
d972a4c2
OP
1934 else
1935 # Remove last slash and all that follows it. Not all systems have dirname.
162f5967
RL
1936 ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
1937 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
d972a4c2
OP
1938 # The file is in a subdirectory.
1939 test ! -d "$ac_dir" && mkdir "$ac_dir"
1940 fi
1941 rm -f $ac_file
162f5967 1942 mv $tmp/config.h $ac_file
d972a4c2 1943 fi
162f5967 1944done
bce1b489 1945EOF
162f5967 1946cat >>$CONFIG_STATUS <<\EOF
bce1b489 1947
162f5967
RL
1948#
1949# CONFIG_COMMANDS section.
1950#
1951for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
1952 ac_dest=`echo "$ac_file" | sed 's%:.*%%'`
1953 ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'`
1954
1955 case "$ac_dest" in
1956 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
bce1b489
BE
1957if test -n "$CONFIG_FILES"; then
1958 if test -n "${with_target_subdir}"; then
1959 # FIXME: We shouldn't need to set ac_file
1960 ac_file=Makefile
1961 . ${topsrcdir}/config-ml.in
1962 fi
162f5967
RL
1963fi ;;
1964 esac
1965done
1966EOF
1967
1968cat >>$CONFIG_STATUS <<\EOF
1969
bce1b489
BE
1970exit 0
1971EOF
1972chmod +x $CONFIG_STATUS
1973rm -fr confdefs* $ac_clean_files
162f5967 1974trap 'exit 1' 1 2 15
bce1b489 1975
162f5967 1976test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
bce1b489 1977