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