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