* real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
[official-gcc.git] / libf2c / configure
blobaf8502045c8c2ac89cbc120f774b7346ed68ae8f
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-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=yes]"
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]"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 sitefile=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
76 ac_max_here_lines=12
78 ac_prev=
79 for ac_option
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
85 ac_prev=
86 continue
89 case "$ac_option" in
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 *) ac_optarg= ;;
92 esac
94 # Accept the important Cygnus configure options, so we can diagnose typos.
96 case "$ac_option" in
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 ac_prev=bindir ;;
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
104 ac_prev=build ;;
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 ac_prev=datadir ;;
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 | --da=*)
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 case "$ac_option" in
138 *=*) ;;
139 *) ac_optarg=yes ;;
140 esac
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
154 with_gas=yes ;;
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
159 cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --site-file=FILE use FILE as the site file
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
171 [$ac_default_prefix]
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 [same as prefix]
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
178 [PREFIX/share]
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 [PREFIX/com]
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
194 cat << EOF
195 Host type:
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
210 exit 0 ;;
212 -host | --host | --hos | --ho)
213 ac_prev=host ;;
214 -host=* | --host=* | --hos=* | --ho=*)
215 host="$ac_optarg" ;;
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 ac_prev=infodir ;;
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
230 ac_prev=libdir ;;
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 ac_prev=mandir ;;
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
255 -nfp | --nfp | --nf)
256 # Obsolete; use --without-fp.
257 with_fp=no ;;
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 | --no-cr | --no-c)
261 no_create=yes ;;
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 no_recursion=yes ;;
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 ac_prev=prefix ;;
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
314 silent=yes ;;
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317 ac_prev=sbindir ;;
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 | --sbi=* | --sb=*)
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
325 | --sha | --sh)
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330 | --sha=* | --sh=*)
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
334 ac_prev=site ;;
335 -site=* | --site=* | --sit=*)
336 site="$ac_optarg" ;;
338 -site-file | --site-file | --site-fil | --site-fi | --site-f)
339 ac_prev=sitefile ;;
340 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341 sitefile="$ac_optarg" ;;
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 ac_prev=srcdir ;;
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
356 ac_prev=target ;;
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 verbose=yes ;;
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
365 exit 0 ;;
367 -with-* | --with-*)
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 case "$ac_option" in
375 *=*) ;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
389 --x)
390 # Obsolete; use --with-x.
391 with_x=yes ;;
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 nonopt="$ac_option"
420 esac
421 done
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
430 # 0 standard input
431 # 1 file creation
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
438 exec 6>/dev/null
439 else
440 exec 6>&1
442 exec 5>./config.log
444 echo "\
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
447 " 1>&5
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
451 ac_configure_args=
452 for ac_arg
454 case "$ac_arg" in
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 esac
463 done
465 # NLS nuisances.
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 echo > confdefs.h
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=libF77/Version.c
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
488 ac_prog=$0
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 srcdir=$ac_confdir
492 if test ! -r $srcdir/$ac_unique_file; then
493 srcdir=..
495 else
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 else
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 else
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 else
517 CONFIG_SITE="$sitefile"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
522 . "$ac_site_file"
524 done
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
528 . $cache_file
529 else
530 echo "creating cache $cache_file"
531 > $cache_file
534 ac_ext=c
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
541 ac_exeext=
542 ac_objext=o
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
546 ac_n= ac_c='
547 ' ac_t=' '
548 else
549 ac_n=-n ac_c= ac_t=
551 else
552 ac_n= ac_c='\c' ac_t=
557 # This works around the fact that libtool configuration may change LD
558 # for this particular configuration, but some shells, instead of
559 # keeping the changes in LD private, export them just because LD is
560 # exported.
561 ORIGINAL_LD_FOR_MULTILIBS=$LD
564 # Check whether --enable-multilib or --disable-multilib was given.
565 if test "${enable_multilib+set}" = set; then
566 enableval="$enable_multilib"
567 case "${enableval}" in
568 yes) multilib=yes ;;
569 no) multilib=no ;;
570 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
571 esac
572 else
573 multilib=yes
576 # When building with srcdir == objdir, links to the source files will
577 # be created in directories within the target_subdir. We have to
578 # adjust toplevel_srcdir accordingly, so that configure finds
579 # install-sh and other auxiliary files that live in the top-level
580 # source directory.
581 if test "${srcdir}" = "."; then
582 if test -z "${with_target_subdir}"; then
583 toprel=".."
584 else
585 if test "${with_target_subdir}" != "."; then
586 toprel="${with_multisrctop}../.."
587 else
588 toprel="${with_multisrctop}.."
591 else
592 toprel=".."
594 ac_aux_dir=
595 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
596 if test -f $ac_dir/install-sh; then
597 ac_aux_dir=$ac_dir
598 ac_install_sh="$ac_aux_dir/install-sh -c"
599 break
600 elif test -f $ac_dir/install.sh; then
601 ac_aux_dir=$ac_dir
602 ac_install_sh="$ac_aux_dir/install.sh -c"
603 break
605 done
606 if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
609 ac_config_guess=$ac_aux_dir/config.guess
610 ac_config_sub=$ac_aux_dir/config.sub
611 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
613 toplevel_srcdir=\${top_srcdir}/$toprel
618 # Do some error checking and defaulting for the host and target type.
619 # The inputs are:
620 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
622 # The rules are:
623 # 1. You are not allowed to specify --host, --target, and nonopt at the
624 # same time.
625 # 2. Host defaults to nonopt.
626 # 3. If nonopt is not specified, then host defaults to the current host,
627 # as determined by config.guess.
628 # 4. Target and build default to nonopt.
629 # 5. If nonopt is not specified, then target and build default to host.
631 # The aliases save the names the user supplied, while $host etc.
632 # will get canonicalized.
633 case $host---$target---$nonopt in
634 NONE---*---* | *---NONE---* | *---*---NONE) ;;
635 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
636 esac
639 # Make sure we can run config.sub.
640 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
641 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
644 echo $ac_n "checking host system type""... $ac_c" 1>&6
645 echo "configure:646: checking host system type" >&5
647 host_alias=$host
648 case "$host_alias" in
649 NONE)
650 case $nonopt in
651 NONE)
652 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
653 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
654 fi ;;
655 *) host_alias=$nonopt ;;
656 esac ;;
657 esac
659 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
660 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
663 echo "$ac_t""$host" 1>&6
665 echo $ac_n "checking target system type""... $ac_c" 1>&6
666 echo "configure:667: checking target system type" >&5
668 target_alias=$target
669 case "$target_alias" in
670 NONE)
671 case $nonopt in
672 NONE) target_alias=$host_alias ;;
673 *) target_alias=$nonopt ;;
674 esac ;;
675 esac
677 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
678 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
679 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
680 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
681 echo "$ac_t""$target" 1>&6
683 echo $ac_n "checking build system type""... $ac_c" 1>&6
684 echo "configure:685: checking build system type" >&5
686 build_alias=$build
687 case "$build_alias" in
688 NONE)
689 case $nonopt in
690 NONE) build_alias=$host_alias ;;
691 *) build_alias=$nonopt ;;
692 esac ;;
693 esac
695 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
696 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo "$ac_t""$build" 1>&6
701 test "$host_alias" != "$target_alias" &&
702 test "$program_prefix$program_suffix$program_transform_name" = \
703 NONENONEs,x,x, &&
704 program_prefix=${target_alias}-
706 target_alias=${target_alias-$target}
709 if test $host != $build; then
710 ac_tool_prefix=${host_alias}-
711 else
712 ac_tool_prefix=
715 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
716 echo "configure:717: checking for Cygwin environment" >&5
717 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
719 else
720 cat > conftest.$ac_ext <<EOF
721 #line 722 "configure"
722 #include "confdefs.h"
724 int main() {
726 #ifndef __CYGWIN__
727 #define __CYGWIN__ __CYGWIN32__
728 #endif
729 return __CYGWIN__;
730 ; return 0; }
732 if { (eval echo configure:733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
733 rm -rf conftest*
734 ac_cv_cygwin=yes
735 else
736 echo "configure: failed program was:" >&5
737 cat conftest.$ac_ext >&5
738 rm -rf conftest*
739 ac_cv_cygwin=no
741 rm -f conftest*
742 rm -f conftest*
745 echo "$ac_t""$ac_cv_cygwin" 1>&6
746 CYGWIN=
747 test "$ac_cv_cygwin" = yes && CYGWIN=yes
748 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
749 echo "configure:750: checking for mingw32 environment" >&5
750 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
752 else
753 cat > conftest.$ac_ext <<EOF
754 #line 755 "configure"
755 #include "confdefs.h"
757 int main() {
758 return __MINGW32__;
759 ; return 0; }
761 if { (eval echo configure:762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
762 rm -rf conftest*
763 ac_cv_mingw32=yes
764 else
765 echo "configure: failed program was:" >&5
766 cat conftest.$ac_ext >&5
767 rm -rf conftest*
768 ac_cv_mingw32=no
770 rm -f conftest*
771 rm -f conftest*
774 echo "$ac_t""$ac_cv_mingw32" 1>&6
775 MINGW32=
776 test "$ac_cv_mingw32" = yes && MINGW32=yes
778 # Export build and source directories.
779 # These need to be absolute paths, yet at the same time need to
780 # canonicalize only relative paths, because then amd will not unmount
781 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
782 glibcpp_builddir=`${PWDCMD-pwd}`
783 case $srcdir in
784 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
785 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
786 esac
792 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
793 # be 'cp -p' if linking isn't available.
794 #ac_cv_prog_LN_S='cp -p'
795 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
796 echo "configure:797: checking whether ln -s works" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
799 else
800 rm -f conftestdata
801 if ln -s X conftestdata 2>/dev/null
802 then
803 rm -f conftestdata
804 ac_cv_prog_LN_S="ln -s"
805 else
806 ac_cv_prog_LN_S=ln
809 LN_S="$ac_cv_prog_LN_S"
810 if test "$ac_cv_prog_LN_S" = "ln -s"; then
811 echo "$ac_t""yes" 1>&6
812 else
813 echo "$ac_t""no" 1>&6
817 # We use these options to decide which functions to include.
818 # Check whether --with-target-subdir or --without-target-subdir was given.
819 if test "${with_target_subdir+set}" = set; then
820 withval="$with_target_subdir"
824 # Check whether --with-cross-host or --without-cross-host was given.
825 if test "${with_cross_host+set}" = set; then
826 withval="$with_cross_host"
831 # Never versions of autoconf add an underscore to these functions.
832 # Prevent future problems ...
838 # AC_PROG_CC
840 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
841 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
842 # are probably using a cross compiler, which will not be able to fully
843 # link an executable. This should really be fixed in autoconf
844 # itself.
849 # Extract the first word of "gcc", so it can be a program name with args.
850 set dummy gcc; ac_word=$2
851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
852 echo "configure:853: checking for $ac_word" >&5
853 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
855 else
856 if test -n "$CC"; then
857 ac_cv_prog_CC="$CC" # Let the user override the test.
858 else
859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
860 ac_dummy="$PATH"
861 for ac_dir in $ac_dummy; do
862 test -z "$ac_dir" && ac_dir=.
863 if test -f $ac_dir/$ac_word; then
864 ac_cv_prog_CC="gcc"
865 break
867 done
868 IFS="$ac_save_ifs"
871 CC="$ac_cv_prog_CC"
872 if test -n "$CC"; then
873 echo "$ac_t""$CC" 1>&6
874 else
875 echo "$ac_t""no" 1>&6
878 if test -z "$CC"; then
879 # Extract the first word of "cc", so it can be a program name with args.
880 set dummy cc; ac_word=$2
881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
882 echo "configure:883: checking for $ac_word" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 if test -n "$CC"; then
887 ac_cv_prog_CC="$CC" # Let the user override the test.
888 else
889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
890 ac_prog_rejected=no
891 ac_dummy="$PATH"
892 for ac_dir in $ac_dummy; do
893 test -z "$ac_dir" && ac_dir=.
894 if test -f $ac_dir/$ac_word; then
895 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
896 ac_prog_rejected=yes
897 continue
899 ac_cv_prog_CC="cc"
900 break
902 done
903 IFS="$ac_save_ifs"
904 if test $ac_prog_rejected = yes; then
905 # We found a bogon in the path, so make sure we never use it.
906 set dummy $ac_cv_prog_CC
907 shift
908 if test $# -gt 0; then
909 # We chose a different compiler from the bogus one.
910 # However, it has the same basename, so the bogon will be chosen
911 # first if we set CC to just the basename; use the full file name.
912 shift
913 set dummy "$ac_dir/$ac_word" "$@"
914 shift
915 ac_cv_prog_CC="$@"
920 CC="$ac_cv_prog_CC"
921 if test -n "$CC"; then
922 echo "$ac_t""$CC" 1>&6
923 else
924 echo "$ac_t""no" 1>&6
927 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
931 echo "configure:932: checking whether we are using GNU C" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
934 else
935 cat > conftest.c <<EOF
936 #ifdef __GNUC__
937 yes;
938 #endif
940 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
941 ac_cv_prog_gcc=yes
942 else
943 ac_cv_prog_gcc=no
947 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
949 if test $ac_cv_prog_gcc = yes; then
950 GCC=yes
951 ac_test_CFLAGS="${CFLAGS+set}"
952 ac_save_CFLAGS="$CFLAGS"
953 CFLAGS=
954 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
955 echo "configure:956: checking whether ${CC-cc} accepts -g" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958 else
959 echo 'void f(){}' > conftest.c
960 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
961 ac_cv_prog_cc_g=yes
962 else
963 ac_cv_prog_cc_g=no
965 rm -f conftest*
969 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
970 if test "$ac_test_CFLAGS" = set; then
971 CFLAGS="$ac_save_CFLAGS"
972 elif test $ac_cv_prog_cc_g = yes; then
973 CFLAGS="-g -O2"
974 else
975 CFLAGS="-O2"
977 else
978 GCC=
979 test "${CFLAGS+set}" = set || CFLAGS="-g"
983 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
984 set dummy ${ac_tool_prefix}as; ac_word=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 if test -n "$AS"; then
991 ac_cv_prog_AS="$AS" # Let the user override the test.
992 else
993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
994 ac_dummy="$PATH"
995 for ac_dir in $ac_dummy; do
996 test -z "$ac_dir" && ac_dir=.
997 if test -f $ac_dir/$ac_word; then
998 ac_cv_prog_AS="${ac_tool_prefix}as"
999 break
1001 done
1002 IFS="$ac_save_ifs"
1003 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1006 AS="$ac_cv_prog_AS"
1007 if test -n "$AS"; then
1008 echo "$ac_t""$AS" 1>&6
1009 else
1010 echo "$ac_t""no" 1>&6
1015 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1016 set dummy ${ac_tool_prefix}ar; ac_word=$2
1017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1018 echo "configure:1019: checking for $ac_word" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 if test -n "$AR"; then
1023 ac_cv_prog_AR="$AR" # Let the user override the test.
1024 else
1025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1026 ac_dummy="$PATH"
1027 for ac_dir in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir=.
1029 if test -f $ac_dir/$ac_word; then
1030 ac_cv_prog_AR="${ac_tool_prefix}ar"
1031 break
1033 done
1034 IFS="$ac_save_ifs"
1035 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1038 AR="$ac_cv_prog_AR"
1039 if test -n "$AR"; then
1040 echo "$ac_t""$AR" 1>&6
1041 else
1042 echo "$ac_t""no" 1>&6
1047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054 if test -n "$RANLIB"; then
1055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1056 else
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1058 ac_dummy="$PATH"
1059 for ac_dir in $ac_dummy; do
1060 test -z "$ac_dir" && ac_dir=.
1061 if test -f $ac_dir/$ac_word; then
1062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1063 break
1065 done
1066 IFS="$ac_save_ifs"
1069 RANLIB="$ac_cv_prog_RANLIB"
1070 if test -n "$RANLIB"; then
1071 echo "$ac_t""$RANLIB" 1>&6
1072 else
1073 echo "$ac_t""no" 1>&6
1077 if test -z "$ac_cv_prog_RANLIB"; then
1078 if test -n "$ac_tool_prefix"; then
1079 # Extract the first word of "ranlib", so it can be a program name with args.
1080 set dummy ranlib; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086 if test -n "$RANLIB"; then
1087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1088 else
1089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1090 ac_dummy="$PATH"
1091 for ac_dir in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_prog_RANLIB="ranlib"
1095 break
1097 done
1098 IFS="$ac_save_ifs"
1099 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1102 RANLIB="$ac_cv_prog_RANLIB"
1103 if test -n "$RANLIB"; then
1104 echo "$ac_t""$RANLIB" 1>&6
1105 else
1106 echo "$ac_t""no" 1>&6
1109 else
1110 RANLIB="ranlib-not-found-in-path-error"
1114 # Find a good install program. We prefer a C program (faster),
1115 # so one script is as good as another. But avoid the broken or
1116 # incompatible versions:
1117 # SysV /etc/install, /usr/sbin/install
1118 # SunOS /usr/etc/install
1119 # IRIX /sbin/install
1120 # AIX /bin/install
1121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1124 # ./install, which can be erroneously created by make from ./install.sh.
1125 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1126 echo "configure:1127: checking for a BSD compatible install" >&5
1127 if test -z "$INSTALL"; then
1128 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1130 else
1131 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1132 for ac_dir in $PATH; do
1133 # Account for people who put trailing slashes in PATH elements.
1134 case "$ac_dir/" in
1135 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1137 # OSF1 and SCO ODT 3.0 have their own names for install.
1138 # Don't use installbsd from OSF since it installs stuff as root
1139 # by default.
1140 for ac_prog in ginstall scoinst install; do
1141 if test -f $ac_dir/$ac_prog; then
1142 if test $ac_prog = install &&
1143 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1144 # AIX install. It has an incompatible calling convention.
1146 else
1147 ac_cv_path_install="$ac_dir/$ac_prog -c"
1148 break 2
1151 done
1153 esac
1154 done
1155 IFS="$ac_save_IFS"
1158 if test "${ac_cv_path_install+set}" = set; then
1159 INSTALL="$ac_cv_path_install"
1160 else
1161 # As a last resort, use the slow shell script. We don't cache a
1162 # path for INSTALL within a source directory, because that will
1163 # break other packages using the cache if that directory is
1164 # removed, or if the path is relative.
1165 INSTALL="$ac_install_sh"
1168 echo "$ac_t""$INSTALL" 1>&6
1170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1171 # It thinks the first close brace ends the variable substitution.
1172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1179 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1180 # at least currently, we never actually build a program, so we never
1181 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1182 # fails, because we are probably configuring with a cross compiler
1183 # which can't create executables. So we include AC_EXEEXT to keep
1184 # automake happy, but we don't execute it, since we don't care about
1185 # the result.
1186 if false; then
1187 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1188 # to nothing, so nothing would remain between `then' and `fi' if it
1189 # were not for the `:' below.
1193 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1194 echo "configure:1195: checking for executable suffix" >&5
1195 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1199 ac_cv_exeext=.exe
1200 else
1201 rm -f conftest*
1202 echo 'int main () { return 0; }' > conftest.$ac_ext
1203 ac_cv_exeext=
1204 if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1205 for file in conftest.*; do
1206 case $file in
1207 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1208 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1209 esac
1210 done
1211 else
1212 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1214 rm -f conftest*
1215 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1219 EXEEXT=""
1220 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1221 echo "$ac_t""${ac_cv_exeext}" 1>&6
1222 ac_exeext=$EXEEXT
1227 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
1228 # exported correctly in GLIBCPP_CONFIGURE.
1229 glibcpp_toolexecdir=no
1230 glibcpp_toolexeclibdir=no
1231 glibcpp_prefixdir=${prefix}
1233 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
1234 echo "configure:1235: checking for interface version number" >&5
1235 libstdcxx_interface=$INTERFACE
1236 echo "$ac_t""$libstdcxx_interface" 1>&6
1238 # Process the option "--enable-version-specific-runtime-libs"
1239 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
1240 echo "configure:1241: checking for --enable-version-specific-runtime-libs" >&5
1241 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1242 if test "${enable_version_specific_runtime_libs+set}" = set; then
1243 enableval="$enable_version_specific_runtime_libs"
1244 case "$enableval" in
1245 yes) version_specific_libs=yes ;;
1246 no) version_specific_libs=no ;;
1247 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
1248 esac
1249 else
1250 version_specific_libs=no
1252 # Option set, now we can test it.
1253 echo "$ac_t""$version_specific_libs" 1>&6
1255 gcc_version_trigger=${toplevel_srcdir}/gcc/version.c
1256 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1257 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1261 if test $version_specific_libs = yes; then
1262 # Need the gcc compiler version to know where to install libraries
1263 # and header files if --enable-version-specific-runtime-libs option
1264 # is selected.
1265 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1266 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1269 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
1270 # Install a library built with a cross compiler in tooldir, not libdir.
1271 if test x"$glibcpp_toolexecdir" = x"no"; then
1272 if test -n "$with_cross_host" &&
1273 test x"$with_cross_host" != x"no"; then
1274 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
1275 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
1276 else
1277 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1278 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
1287 # If the language specific compiler does not exist, but the "gcc" directory
1288 # does, we do not build anything. Note, $r is set by the top-level Makefile.
1289 # Note that when we look for the compiler, we search both with and without
1290 # extension to handle cross and canadian cross builds.
1291 compiler_name=f771
1292 rm -f skip-this-dir
1293 echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
1294 echo "configure:1295: checking if compiler $compiler_name has been built" >&5
1295 if eval "test \"`echo '$''{'g77_cv_compiler_exists'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1297 else
1298 g77_cv_compiler_exists=yes
1299 if test -n "$r"; then
1300 if test -d "$r"/gcc; then
1301 if test -f "$r"/gcc/$compiler_name \
1302 || test -f "$r"/gcc/$compiler_name.exe; then
1303 true
1304 else
1305 g77_cv_compiler_exists=no
1306 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
1313 echo "$ac_t""$g77_cv_compiler_exists" 1>&6
1314 if test x$g77_cv_compiler_exists = xno
1315 then
1316 rm -f Makefile conftest* confdefs* core
1317 exit 0
1321 # Check whether --enable-shared or --disable-shared was given.
1322 if test "${enable_shared+set}" = set; then
1323 enableval="$enable_shared"
1324 p=${PACKAGE-default}
1325 case $enableval in
1326 yes) enable_shared=yes ;;
1327 no) enable_shared=no ;;
1329 enable_shared=no
1330 # Look at the argument we got. We use all the common list separators.
1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1332 for pkg in $enableval; do
1333 if test "X$pkg" = "X$p"; then
1334 enable_shared=yes
1336 done
1337 IFS="$ac_save_ifs"
1339 esac
1340 else
1341 enable_shared=yes
1344 # Check whether --enable-static or --disable-static was given.
1345 if test "${enable_static+set}" = set; then
1346 enableval="$enable_static"
1347 p=${PACKAGE-default}
1348 case $enableval in
1349 yes) enable_static=yes ;;
1350 no) enable_static=no ;;
1352 enable_static=no
1353 # Look at the argument we got. We use all the common list separators.
1354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1355 for pkg in $enableval; do
1356 if test "X$pkg" = "X$p"; then
1357 enable_static=yes
1359 done
1360 IFS="$ac_save_ifs"
1362 esac
1363 else
1364 enable_static=yes
1367 # Check whether --enable-fast-install or --disable-fast-install was given.
1368 if test "${enable_fast_install+set}" = set; then
1369 enableval="$enable_fast_install"
1370 p=${PACKAGE-default}
1371 case $enableval in
1372 yes) enable_fast_install=yes ;;
1373 no) enable_fast_install=no ;;
1375 enable_fast_install=no
1376 # Look at the argument we got. We use all the common list separators.
1377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1378 for pkg in $enableval; do
1379 if test "X$pkg" = "X$p"; then
1380 enable_fast_install=yes
1382 done
1383 IFS="$ac_save_ifs"
1385 esac
1386 else
1387 enable_fast_install=yes
1390 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1391 if test "${with_gnu_ld+set}" = set; then
1392 withval="$with_gnu_ld"
1393 test "$withval" = no || with_gnu_ld=yes
1394 else
1395 with_gnu_ld=no
1398 ac_prog=ld
1399 if test "$GCC" = yes; then
1400 # Check if gcc -print-prog-name=ld gives a path.
1401 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1402 echo "configure:1403: checking for ld used by GCC" >&5
1403 case $host in
1404 *-*-mingw*)
1405 # gcc leaves a trailing carriage return which upsets mingw
1406 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1408 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1409 esac
1410 case $ac_prog in
1411 # Accept absolute paths.
1412 [\\/]* | [A-Za-z]:[\\/]*)
1413 re_direlt='/[^/][^/]*/\.\./'
1414 # Canonicalize the path of ld
1415 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1416 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1417 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1418 done
1419 test -z "$LD" && LD="$ac_prog"
1422 # If it fails, then pretend we aren't using GCC.
1423 ac_prog=ld
1426 # If it is relative, then search for the first ld in PATH.
1427 with_gnu_ld=unknown
1429 esac
1430 elif test "$with_gnu_ld" = yes; then
1431 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1432 echo "configure:1433: checking for GNU ld" >&5
1433 else
1434 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1435 echo "configure:1436: checking for non-GNU ld" >&5
1437 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1439 else
1440 if test -z "$LD"; then
1441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1442 for ac_dir in $PATH; do
1443 test -z "$ac_dir" && ac_dir=.
1444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1445 lt_cv_path_LD="$ac_dir/$ac_prog"
1446 # Check to see if the program is GNU ld. I'd rather use --version,
1447 # but apparently some GNU ld's only accept -v.
1448 # Break only if it was the GNU/non-GNU ld that we prefer.
1449 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1450 test "$with_gnu_ld" != no && break
1451 else
1452 test "$with_gnu_ld" != yes && break
1455 done
1456 IFS="$ac_save_ifs"
1457 else
1458 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1462 LD="$lt_cv_path_LD"
1463 if test -n "$LD"; then
1464 echo "$ac_t""$LD" 1>&6
1465 else
1466 echo "$ac_t""no" 1>&6
1468 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1469 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1470 echo "configure:1471: checking if the linker ($LD) is GNU ld" >&5
1471 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1473 else
1474 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1475 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1476 lt_cv_prog_gnu_ld=yes
1477 else
1478 lt_cv_prog_gnu_ld=no
1482 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1483 with_gnu_ld=$lt_cv_prog_gnu_ld
1486 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1487 echo "configure:1488: checking for $LD option to reload object files" >&5
1488 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1490 else
1491 lt_cv_ld_reload_flag='-r'
1494 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1495 reload_flag=$lt_cv_ld_reload_flag
1496 test -n "$reload_flag" && reload_flag=" $reload_flag"
1498 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1499 echo "configure:1500: checking for BSD-compatible nm" >&5
1500 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502 else
1503 if test -n "$NM"; then
1504 # Let the user override the test.
1505 lt_cv_path_NM="$NM"
1506 else
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1508 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1509 test -z "$ac_dir" && ac_dir=.
1510 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1511 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1512 # Check to see if the nm accepts a BSD-compat flag.
1513 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1514 # nm: unknown option "B" ignored
1515 # Tru64's nm complains that /dev/null is an invalid object file
1516 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1517 lt_cv_path_NM="$tmp_nm -B"
1518 break
1519 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1520 lt_cv_path_NM="$tmp_nm -p"
1521 break
1522 else
1523 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1524 continue # so that we can try to find one that supports BSD flags
1527 done
1528 IFS="$ac_save_ifs"
1529 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1533 NM="$lt_cv_path_NM"
1534 echo "$ac_t""$NM" 1>&6
1536 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1537 echo "configure:1538: checking how to recognise dependant libraries" >&5
1538 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540 else
1541 lt_cv_file_magic_cmd='$MAGIC_CMD'
1542 lt_cv_file_magic_test_file=
1543 lt_cv_deplibs_check_method='unknown'
1544 # Need to set the preceding variable on all platforms that support
1545 # interlibrary dependencies.
1546 # 'none' -- dependencies not supported.
1547 # `unknown' -- same as none, but documents that we really don't know.
1548 # 'pass_all' -- all dependencies passed with no checks.
1549 # 'test_compile' -- check by making test program.
1550 # 'file_magic [regex]' -- check by looking for files in library path
1551 # which responds to the $file_magic_cmd with a given egrep regex.
1552 # If you have `file' or equivalent on your system and you're not sure
1553 # whether `pass_all' will *always* work, you probably want this one.
1555 case $host_os in
1556 aix*)
1557 lt_cv_deplibs_check_method=pass_all
1560 beos*)
1561 lt_cv_deplibs_check_method=pass_all
1564 bsdi4*)
1565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1566 lt_cv_file_magic_cmd='/usr/bin/file -L'
1567 lt_cv_file_magic_test_file=/shlib/libc.so
1570 cygwin* | mingw* |pw32*)
1571 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1572 lt_cv_file_magic_cmd='$OBJDUMP -f'
1575 darwin* | rhapsody*)
1576 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1577 lt_cv_file_magic_cmd='/usr/bin/file -L'
1578 case "$host_os" in
1579 rhapsody* | darwin1.012)
1580 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1582 *) # Darwin 1.3 on
1583 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1585 esac
1588 freebsd* )
1589 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1590 case $host_cpu in
1591 i*86 )
1592 # Not sure whether the presence of OpenBSD here was a mistake.
1593 # Let's accept both of them until this is cleared up.
1594 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1595 lt_cv_file_magic_cmd=/usr/bin/file
1596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1598 esac
1599 else
1600 lt_cv_deplibs_check_method=pass_all
1604 gnu*)
1605 lt_cv_deplibs_check_method=pass_all
1608 hpux10.20*|hpux11*)
1609 case $host_cpu in
1610 hppa*)
1611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1612 lt_cv_file_magic_cmd=/usr/bin/file
1613 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1615 ia64*)
1616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1617 lt_cv_file_magic_cmd=/usr/bin/file
1618 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1620 esac
1623 irix5* | irix6*)
1624 case $host_os in
1625 irix5*)
1626 # this will be overridden with pass_all, but let us keep it just in case
1627 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1630 case $LD in
1631 *-32|*"-32 ") libmagic=32-bit;;
1632 *-n32|*"-n32 ") libmagic=N32;;
1633 *-64|*"-64 ") libmagic=64-bit;;
1634 *) libmagic=never-match;;
1635 esac
1636 # this will be overridden with pass_all, but let us keep it just in case
1637 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1639 esac
1640 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1641 lt_cv_deplibs_check_method=pass_all
1644 # This must be Linux ELF.
1645 linux-gnu*)
1646 case $host_cpu in
1647 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1648 lt_cv_deplibs_check_method=pass_all ;;
1650 # glibc up to 2.1.1 does not perform some relocations on ARM
1651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1652 esac
1653 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1656 netbsd*)
1657 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1658 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1659 else
1660 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1664 newsos6)
1665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1666 lt_cv_file_magic_cmd=/usr/bin/file
1667 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1670 osf3* | osf4* | osf5*)
1671 # this will be overridden with pass_all, but let us keep it just in case
1672 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1673 lt_cv_file_magic_test_file=/shlib/libc.so
1674 lt_cv_deplibs_check_method=pass_all
1677 sco3.2v5*)
1678 lt_cv_deplibs_check_method=pass_all
1681 solaris*)
1682 lt_cv_deplibs_check_method=pass_all
1683 lt_cv_file_magic_test_file=/lib/libc.so
1686 sysv5uw[78]* | sysv4*uw2*)
1687 lt_cv_deplibs_check_method=pass_all
1690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1691 case $host_vendor in
1692 ncr)
1693 lt_cv_deplibs_check_method=pass_all
1695 motorola)
1696 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]'
1697 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1699 esac
1701 esac
1705 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1706 file_magic_cmd=$lt_cv_file_magic_cmd
1707 deplibs_check_method=$lt_cv_deplibs_check_method
1709 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1710 echo "configure:1711: checking for object suffix" >&5
1711 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1713 else
1714 rm -f conftest*
1715 echo 'int i = 1;' > conftest.$ac_ext
1716 if { (eval echo configure:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1717 for ac_file in conftest.*; do
1718 case $ac_file in
1719 *.c) ;;
1720 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1721 esac
1722 done
1723 else
1724 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1726 rm -f conftest*
1729 echo "$ac_t""$ac_cv_objext" 1>&6
1730 OBJEXT=$ac_cv_objext
1731 ac_objext=$ac_cv_objext
1733 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1735 # Only perform the check for file, if the check method requires it
1736 case $deplibs_check_method in
1737 file_magic*)
1738 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1739 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1740 echo "configure:1741: checking for ${ac_tool_prefix}file" >&5
1741 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743 else
1744 case $MAGIC_CMD in
1746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1748 ?:/*)
1749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1752 ac_save_MAGIC_CMD="$MAGIC_CMD"
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1754 ac_dummy="/usr/bin:$PATH"
1755 for ac_dir in $ac_dummy; do
1756 test -z "$ac_dir" && ac_dir=.
1757 if test -f $ac_dir/${ac_tool_prefix}file; then
1758 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1759 if test -n "$file_magic_test_file"; then
1760 case $deplibs_check_method in
1761 "file_magic "*)
1762 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1765 egrep "$file_magic_regex" > /dev/null; then
1767 else
1768 cat <<EOF 1>&2
1770 *** Warning: the command libtool uses to detect shared libraries,
1771 *** $file_magic_cmd, produces output that libtool cannot recognize.
1772 *** The result is that libtool may fail to recognize shared libraries
1773 *** as such. This will affect the creation of libtool libraries that
1774 *** depend on shared libraries, but programs linked with such libtool
1775 *** libraries will work regardless of this problem. Nevertheless, you
1776 *** may want to report the problem to your system manager and/or to
1777 *** bug-libtool@gnu.org
1780 fi ;;
1781 esac
1783 break
1785 done
1786 IFS="$ac_save_ifs"
1787 MAGIC_CMD="$ac_save_MAGIC_CMD"
1789 esac
1792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1793 if test -n "$MAGIC_CMD"; then
1794 echo "$ac_t""$MAGIC_CMD" 1>&6
1795 else
1796 echo "$ac_t""no" 1>&6
1799 if test -z "$lt_cv_path_MAGIC_CMD"; then
1800 if test -n "$ac_tool_prefix"; then
1801 echo $ac_n "checking for file""... $ac_c" 1>&6
1802 echo "configure:1803: checking for file" >&5
1803 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1805 else
1806 case $MAGIC_CMD in
1808 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1810 ?:/*)
1811 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1814 ac_save_MAGIC_CMD="$MAGIC_CMD"
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1816 ac_dummy="/usr/bin:$PATH"
1817 for ac_dir in $ac_dummy; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/file; then
1820 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1821 if test -n "$file_magic_test_file"; then
1822 case $deplibs_check_method in
1823 "file_magic "*)
1824 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1826 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1827 egrep "$file_magic_regex" > /dev/null; then
1829 else
1830 cat <<EOF 1>&2
1832 *** Warning: the command libtool uses to detect shared libraries,
1833 *** $file_magic_cmd, produces output that libtool cannot recognize.
1834 *** The result is that libtool may fail to recognize shared libraries
1835 *** as such. This will affect the creation of libtool libraries that
1836 *** depend on shared libraries, but programs linked with such libtool
1837 *** libraries will work regardless of this problem. Nevertheless, you
1838 *** may want to report the problem to your system manager and/or to
1839 *** bug-libtool@gnu.org
1842 fi ;;
1843 esac
1845 break
1847 done
1848 IFS="$ac_save_ifs"
1849 MAGIC_CMD="$ac_save_MAGIC_CMD"
1851 esac
1854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1855 if test -n "$MAGIC_CMD"; then
1856 echo "$ac_t""$MAGIC_CMD" 1>&6
1857 else
1858 echo "$ac_t""no" 1>&6
1861 else
1862 MAGIC_CMD=:
1868 esac
1870 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1871 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1873 echo "configure:1874: checking for $ac_word" >&5
1874 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1876 else
1877 if test -n "$RANLIB"; then
1878 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1879 else
1880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1881 ac_dummy="$PATH"
1882 for ac_dir in $ac_dummy; do
1883 test -z "$ac_dir" && ac_dir=.
1884 if test -f $ac_dir/$ac_word; then
1885 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1886 break
1888 done
1889 IFS="$ac_save_ifs"
1892 RANLIB="$ac_cv_prog_RANLIB"
1893 if test -n "$RANLIB"; then
1894 echo "$ac_t""$RANLIB" 1>&6
1895 else
1896 echo "$ac_t""no" 1>&6
1900 if test -z "$ac_cv_prog_RANLIB"; then
1901 if test -n "$ac_tool_prefix"; then
1902 # Extract the first word of "ranlib", so it can be a program name with args.
1903 set dummy ranlib; 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_RANLIB'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909 if test -n "$RANLIB"; then
1910 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib"
1918 break
1920 done
1921 IFS="$ac_save_ifs"
1922 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1925 RANLIB="$ac_cv_prog_RANLIB"
1926 if test -n "$RANLIB"; then
1927 echo "$ac_t""$RANLIB" 1>&6
1928 else
1929 echo "$ac_t""no" 1>&6
1932 else
1933 RANLIB=":"
1937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1938 set dummy ${ac_tool_prefix}strip; ac_word=$2
1939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1940 echo "configure:1941: checking for $ac_word" >&5
1941 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1943 else
1944 if test -n "$STRIP"; then
1945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1946 else
1947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1948 ac_dummy="$PATH"
1949 for ac_dir in $ac_dummy; do
1950 test -z "$ac_dir" && ac_dir=.
1951 if test -f $ac_dir/$ac_word; then
1952 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1953 break
1955 done
1956 IFS="$ac_save_ifs"
1959 STRIP="$ac_cv_prog_STRIP"
1960 if test -n "$STRIP"; then
1961 echo "$ac_t""$STRIP" 1>&6
1962 else
1963 echo "$ac_t""no" 1>&6
1967 if test -z "$ac_cv_prog_STRIP"; then
1968 if test -n "$ac_tool_prefix"; then
1969 # Extract the first word of "strip", so it can be a program name with args.
1970 set dummy strip; ac_word=$2
1971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1972 echo "configure:1973: checking for $ac_word" >&5
1973 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1975 else
1976 if test -n "$STRIP"; then
1977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1978 else
1979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1980 ac_dummy="$PATH"
1981 for ac_dir in $ac_dummy; do
1982 test -z "$ac_dir" && ac_dir=.
1983 if test -f $ac_dir/$ac_word; then
1984 ac_cv_prog_STRIP="strip"
1985 break
1987 done
1988 IFS="$ac_save_ifs"
1989 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1992 STRIP="$ac_cv_prog_STRIP"
1993 if test -n "$STRIP"; then
1994 echo "$ac_t""$STRIP" 1>&6
1995 else
1996 echo "$ac_t""no" 1>&6
1999 else
2000 STRIP=":"
2005 # Check for any special flags to pass to ltconfig.
2006 libtool_flags="--cache-file=$cache_file"
2007 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2008 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2009 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2010 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2011 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2014 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2015 if test "${enable_libtool_lock+set}" = set; then
2016 enableval="$enable_libtool_lock"
2020 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2021 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2023 # Check whether --with-pic or --without-pic was given.
2024 if test "${with_pic+set}" = set; then
2025 withval="$with_pic"
2026 pic_mode="$withval"
2027 else
2028 pic_mode=default
2031 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2032 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2034 # Some flags need to be propagated to the compiler or linker for good
2035 # libtool support.
2036 case $host in
2037 *-*-irix6*)
2038 # Find out which ABI we are using.
2039 echo '#line 2040 "configure"' > conftest.$ac_ext
2040 if { (eval echo configure:2041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2041 case `/usr/bin/file conftest.$ac_objext` in
2042 *32-bit*)
2043 LD="${LD-ld} -32"
2045 *N32*)
2046 LD="${LD-ld} -n32"
2048 *64-bit*)
2049 LD="${LD-ld} -64"
2051 esac
2053 rm -rf conftest*
2056 ia64-*-hpux*)
2057 # Find out which ABI we are using.
2058 echo 'int i;' > conftest.$ac_ext
2059 if { (eval echo configure:2060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2060 case "`/usr/bin/file conftest.o`" in
2061 *ELF-32*)
2062 HPUX_IA64_MODE="32"
2064 *ELF-64*)
2065 HPUX_IA64_MODE="64"
2067 esac
2069 rm -rf conftest*
2072 *-*-sco3.2v5*)
2073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2074 SAVE_CFLAGS="$CFLAGS"
2075 CFLAGS="$CFLAGS -belf"
2076 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2077 echo "configure:2078: checking whether the C compiler needs -belf" >&5
2078 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2082 ac_ext=c
2083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2087 cross_compiling=$ac_cv_prog_cc_cross
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2093 int main() {
2095 ; return 0; }
2097 if { (eval echo configure:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2098 rm -rf conftest*
2099 lt_cv_cc_needs_belf=yes
2100 else
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2103 rm -rf conftest*
2104 lt_cv_cc_needs_belf=no
2106 rm -f conftest*
2107 ac_ext=c
2108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2112 cross_compiling=$ac_cv_prog_cc_cross
2116 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2117 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2118 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2119 CFLAGS="$SAVE_CFLAGS"
2124 esac
2127 # Save cache, so that ltconfig can load it
2128 cat > confcache <<\EOF
2129 # This file is a shell script that caches the results of configure
2130 # tests run on this system so they can be shared between configure
2131 # scripts and configure runs. It is not useful on other systems.
2132 # If it contains results you don't want to keep, you may remove or edit it.
2134 # By default, configure uses ./config.cache as the cache file,
2135 # creating it if it does not exist already. You can give configure
2136 # the --cache-file=FILE option to use a different cache file; that is
2137 # what configure does when it calls configure scripts in
2138 # subdirectories, so they share the cache.
2139 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2140 # config.status only pays attention to the cache file if you give it the
2141 # --recheck option to rerun configure.
2144 # The following way of writing the cache mishandles newlines in values,
2145 # but we know of no workaround that is simple, portable, and efficient.
2146 # So, don't put newlines in cache variables' values.
2147 # Ultrix sh set writes to stderr and can't be redirected directly,
2148 # and sets the high bit in the cache file unless we assign to the vars.
2149 (set) 2>&1 |
2150 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2151 *ac_space=\ *)
2152 # `set' does not quote correctly, so add quotes (double-quote substitution
2153 # turns \\\\ into \\, and sed turns \\ into \).
2154 sed -n \
2155 -e "s/'/'\\\\''/g" \
2156 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2159 # `set' quotes correctly as required by POSIX, so do not add quotes.
2160 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2162 esac >> confcache
2163 if cmp -s $cache_file confcache; then
2165 else
2166 if test -w $cache_file; then
2167 echo "updating cache $cache_file"
2168 cat confcache > $cache_file
2169 else
2170 echo "not updating unwritable cache $cache_file"
2173 rm -f confcache
2176 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2177 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2178 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2179 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2180 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2181 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2182 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2183 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2184 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2185 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2187 # Reload cache, that may have been modified by ltconfig
2188 if test -r "$cache_file"; then
2189 echo "loading cache $cache_file"
2190 . $cache_file
2191 else
2192 echo "creating cache $cache_file"
2193 > $cache_file
2197 # This can be used to rebuild libtool when needed
2198 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2200 # Always use our own libtool.
2201 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2203 # Redirect the config.log output again, so that the ltconfig log is not
2204 # clobbered by the next message.
2205 exec 5>>./config.log
2213 test "$AR" || AR=ar
2215 if test "$RANLIB"; then :
2217 else
2218 # Extract the first word of "ranlib", so it can be a program name with args.
2219 set dummy ranlib; ac_word=$2
2220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2221 echo "configure:2222: checking for $ac_word" >&5
2222 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2224 else
2225 if test -n "$RANLIB"; then
2226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2227 else
2228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2229 ac_dummy="$PATH"
2230 for ac_dir in $ac_dummy; do
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f $ac_dir/$ac_word; then
2233 ac_cv_prog_RANLIB="ranlib"
2234 break
2236 done
2237 IFS="$ac_save_ifs"
2238 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2241 RANLIB="$ac_cv_prog_RANLIB"
2242 if test -n "$RANLIB"; then
2243 echo "$ac_t""$RANLIB" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2249 # Find a good install program. We prefer a C program (faster),
2250 # so one script is as good as another. But avoid the broken or
2251 # incompatible versions:
2252 # SysV /etc/install, /usr/sbin/install
2253 # SunOS /usr/etc/install
2254 # IRIX /sbin/install
2255 # AIX /bin/install
2256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2259 # ./install, which can be erroneously created by make from ./install.sh.
2260 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2261 echo "configure:2262: checking for a BSD compatible install" >&5
2262 if test -z "$INSTALL"; then
2263 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2265 else
2266 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2267 for ac_dir in $PATH; do
2268 # Account for people who put trailing slashes in PATH elements.
2269 case "$ac_dir/" in
2270 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2272 # OSF1 and SCO ODT 3.0 have their own names for install.
2273 # Don't use installbsd from OSF since it installs stuff as root
2274 # by default.
2275 for ac_prog in ginstall scoinst install; do
2276 if test -f $ac_dir/$ac_prog; then
2277 if test $ac_prog = install &&
2278 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2279 # AIX install. It has an incompatible calling convention.
2281 else
2282 ac_cv_path_install="$ac_dir/$ac_prog -c"
2283 break 2
2286 done
2288 esac
2289 done
2290 IFS="$ac_save_IFS"
2293 if test "${ac_cv_path_install+set}" = set; then
2294 INSTALL="$ac_cv_path_install"
2295 else
2296 # As a last resort, use the slow shell script. We don't cache a
2297 # path for INSTALL within a source directory, because that will
2298 # break other packages using the cache if that directory is
2299 # removed, or if the path is relative.
2300 INSTALL="$ac_install_sh"
2303 echo "$ac_t""$INSTALL" 1>&6
2305 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2306 # It thinks the first close brace ends the variable substitution.
2307 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2309 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2311 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2313 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2314 echo "configure:2315: checking whether ${MAKE-make} sets \${MAKE}" >&5
2315 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2316 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319 cat > conftestmake <<\EOF
2320 all:
2321 @echo 'ac_maketemp="${MAKE}"'
2323 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2324 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2325 if test -n "$ac_maketemp"; then
2326 eval ac_cv_prog_make_${ac_make}_set=yes
2327 else
2328 eval ac_cv_prog_make_${ac_make}_set=no
2330 rm -f conftestmake
2332 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2333 echo "$ac_t""yes" 1>&6
2334 SET_MAKE=
2335 else
2336 echo "$ac_t""no" 1>&6
2337 SET_MAKE="MAKE=${MAKE-make}"
2341 # Sanity check for the cross-compilation case:
2342 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2343 echo "configure:2344: checking how to run the C preprocessor" >&5
2344 # On Suns, sometimes $CPP names a directory.
2345 if test -n "$CPP" && test -d "$CPP"; then
2346 CPP=
2348 if test -z "$CPP"; then
2349 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352 # This must be in double quotes, not single quotes, because CPP may get
2353 # substituted into the Makefile and "${CC-cc}" will confuse make.
2354 CPP="${CC-cc} -E"
2355 # On the NeXT, cc -E runs the code through the compiler's parser,
2356 # not just through cpp.
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 #include <assert.h>
2361 Syntax Error
2363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2364 { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2366 if test -z "$ac_err"; then
2368 else
2369 echo "$ac_err" >&5
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 CPP="${CC-cc} -E -traditional-cpp"
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 #include <assert.h>
2378 Syntax Error
2380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2381 { (eval echo configure:2382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2383 if test -z "$ac_err"; then
2385 else
2386 echo "$ac_err" >&5
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2389 rm -rf conftest*
2390 CPP="${CC-cc} -nologo -E"
2391 cat > conftest.$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2394 #include <assert.h>
2395 Syntax Error
2397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2398 { (eval echo configure:2399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2400 if test -z "$ac_err"; then
2402 else
2403 echo "$ac_err" >&5
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2406 rm -rf conftest*
2407 CPP=/lib/cpp
2409 rm -f conftest*
2411 rm -f conftest*
2413 rm -f conftest*
2414 ac_cv_prog_CPP="$CPP"
2416 CPP="$ac_cv_prog_CPP"
2417 else
2418 ac_cv_prog_CPP="$CPP"
2420 echo "$ac_t""$CPP" 1>&6
2422 ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
2424 echo "configure:2425: checking for stdio.h" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2427 else
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 #include <stdio.h>
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2437 rm -rf conftest*
2438 eval "ac_cv_header_$ac_safe=yes"
2439 else
2440 echo "$ac_err" >&5
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 rm -rf conftest*
2444 eval "ac_cv_header_$ac_safe=no"
2446 rm -f conftest*
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2451 else
2452 echo "$ac_t""no" 1>&6
2453 { echo "configure: error: Can't find stdio.h.
2454 You must have a usable C system for the target already installed, at least
2455 including headers and, preferably, the library, before you can configure
2456 the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c',
2457 then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }
2461 echo $ac_n "checking for built-in g77 integer types""... $ac_c" 1>&6
2462 echo "configure:2463: checking for built-in g77 integer types" >&5
2463 if eval "test \"`echo '$''{'libf2c_cv_has_g77_builtin_types'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2470 int main() {
2471 __g77_integer g77i;
2472 __g77_uinteger g77ui;
2473 __g77_longint g77l;
2474 __g77_ulongint g77ul;
2475 ; return 0; }
2477 if { (eval echo configure:2478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2478 rm -rf conftest*
2479 libf2c_cv_has_g77_builtin_types=yes
2480 else
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2483 rm -rf conftest*
2484 libf2c_cv_has_g77_builtin_types=no
2486 rm -f conftest*
2489 echo "$ac_t""$libf2c_cv_has_g77_builtin_types" 1>&6
2490 if test $libf2c_cv_has_g77_builtin_types = no; then
2491 { echo "configure: error: gcc doesn't define all of the built in types __g77_integer,
2492 __g77_uinteger, __g77_longint, and __g77_ulongint. You may not be using
2493 a new enough version of gcc, or your target may not have type sizes which
2494 accommodate those types." 1>&2; exit 1; }
2497 # avoid confusion in case the `makefile's from the f2c distribution have
2498 # got put here
2499 test -f libF77/makefile && mv libF77/makefile libF77/makefile.ori
2500 test -f libI77/makefile && mv libI77/makefile libI77/makefile.ori
2501 test -f libU77/makefile && mv libU77/makefile libU77/makefile.ori
2503 subdirs="libU77 libI77 libF77"
2505 # Do Makefile first since g2c.h depends on it and shouldn't get an
2506 # earlier timestamp. Of course, it does when the multilib gunk below
2507 # edits Makefile, sigh; see additional touch below.
2508 trap '' 1 2 15
2509 cat > confcache <<\EOF
2510 # This file is a shell script that caches the results of configure
2511 # tests run on this system so they can be shared between configure
2512 # scripts and configure runs. It is not useful on other systems.
2513 # If it contains results you don't want to keep, you may remove or edit it.
2515 # By default, configure uses ./config.cache as the cache file,
2516 # creating it if it does not exist already. You can give configure
2517 # the --cache-file=FILE option to use a different cache file; that is
2518 # what configure does when it calls configure scripts in
2519 # subdirectories, so they share the cache.
2520 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2521 # config.status only pays attention to the cache file if you give it the
2522 # --recheck option to rerun configure.
2525 # The following way of writing the cache mishandles newlines in values,
2526 # but we know of no workaround that is simple, portable, and efficient.
2527 # So, don't put newlines in cache variables' values.
2528 # Ultrix sh set writes to stderr and can't be redirected directly,
2529 # and sets the high bit in the cache file unless we assign to the vars.
2530 (set) 2>&1 |
2531 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2532 *ac_space=\ *)
2533 # `set' does not quote correctly, so add quotes (double-quote substitution
2534 # turns \\\\ into \\, and sed turns \\ into \).
2535 sed -n \
2536 -e "s/'/'\\\\''/g" \
2537 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2540 # `set' quotes correctly as required by POSIX, so do not add quotes.
2541 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2543 esac >> confcache
2544 if cmp -s $cache_file confcache; then
2546 else
2547 if test -w $cache_file; then
2548 echo "updating cache $cache_file"
2549 cat confcache > $cache_file
2550 else
2551 echo "not updating unwritable cache $cache_file"
2554 rm -f confcache
2556 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2558 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2559 # Let make expand exec_prefix.
2560 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2562 # Any assignment to VPATH causes Sun make to only execute
2563 # the first set of double-colon rules, so remove it if not needed.
2564 # If there is a colon in the path, we need to keep it.
2565 if test "x$srcdir" = x.; then
2566 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2569 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2571 # Transform confdefs.h into DEFS.
2572 # Protect against shell expansion while executing Makefile rules.
2573 # Protect against Makefile macro expansion.
2574 cat > conftest.defs <<\EOF
2575 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2576 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2577 s%\[%\\&%g
2578 s%\]%\\&%g
2579 s%\$%$$%g
2581 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2582 rm -f conftest.defs
2585 # Without the "./", some shells look in PATH for config.status.
2586 : ${CONFIG_STATUS=./config.status}
2588 echo creating $CONFIG_STATUS
2589 rm -f $CONFIG_STATUS
2590 cat > $CONFIG_STATUS <<EOF
2591 #! /bin/sh
2592 # Generated automatically by configure.
2593 # Run this file to recreate the current configuration.
2594 # This directory was configured as follows,
2595 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2597 # $0 $ac_configure_args
2599 # Compiler output produced by configure, useful for debugging
2600 # configure, is in ./config.log if it exists.
2602 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2603 for ac_option
2605 case "\$ac_option" in
2606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2607 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2608 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2609 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2610 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2611 exit 0 ;;
2612 -help | --help | --hel | --he | --h)
2613 echo "\$ac_cs_usage"; exit 0 ;;
2614 *) echo "\$ac_cs_usage"; exit 1 ;;
2615 esac
2616 done
2618 ac_given_srcdir=$srcdir
2619 ac_given_INSTALL="$INSTALL"
2621 trap 'rm -fr `echo "Makefile g2c.h:g2c.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2623 cat >> $CONFIG_STATUS <<EOF
2625 # Protect against being on the right side of a sed subst in config.status.
2626 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2627 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2628 $ac_vpsub
2629 $extrasub
2630 s%@SHELL@%$SHELL%g
2631 s%@CFLAGS@%$CFLAGS%g
2632 s%@CPPFLAGS@%$CPPFLAGS%g
2633 s%@CXXFLAGS@%$CXXFLAGS%g
2634 s%@FFLAGS@%$FFLAGS%g
2635 s%@DEFS@%$DEFS%g
2636 s%@LDFLAGS@%$LDFLAGS%g
2637 s%@LIBS@%$LIBS%g
2638 s%@exec_prefix@%$exec_prefix%g
2639 s%@prefix@%$prefix%g
2640 s%@program_transform_name@%$program_transform_name%g
2641 s%@bindir@%$bindir%g
2642 s%@sbindir@%$sbindir%g
2643 s%@libexecdir@%$libexecdir%g
2644 s%@datadir@%$datadir%g
2645 s%@sysconfdir@%$sysconfdir%g
2646 s%@sharedstatedir@%$sharedstatedir%g
2647 s%@localstatedir@%$localstatedir%g
2648 s%@libdir@%$libdir%g
2649 s%@includedir@%$includedir%g
2650 s%@oldincludedir@%$oldincludedir%g
2651 s%@infodir@%$infodir%g
2652 s%@mandir@%$mandir%g
2653 s%@toplevel_srcdir@%$toplevel_srcdir%g
2654 s%@host@%$host%g
2655 s%@host_alias@%$host_alias%g
2656 s%@host_cpu@%$host_cpu%g
2657 s%@host_vendor@%$host_vendor%g
2658 s%@host_os@%$host_os%g
2659 s%@target@%$target%g
2660 s%@target_alias@%$target_alias%g
2661 s%@target_cpu@%$target_cpu%g
2662 s%@target_vendor@%$target_vendor%g
2663 s%@target_os@%$target_os%g
2664 s%@build@%$build%g
2665 s%@build_alias@%$build_alias%g
2666 s%@build_cpu@%$build_cpu%g
2667 s%@build_vendor@%$build_vendor%g
2668 s%@build_os@%$build_os%g
2669 s%@glibcpp_builddir@%$glibcpp_builddir%g
2670 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
2671 s%@LN_S@%$LN_S%g
2672 s%@CC@%$CC%g
2673 s%@AS@%$AS%g
2674 s%@AR@%$AR%g
2675 s%@RANLIB@%$RANLIB%g
2676 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2677 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2678 s%@INSTALL_DATA@%$INSTALL_DATA%g
2679 s%@EXEEXT@%$EXEEXT%g
2680 s%@gcc_version@%$gcc_version%g
2681 s%@gcc_version_trigger@%$gcc_version_trigger%g
2682 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
2683 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
2684 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
2685 s%@OBJEXT@%$OBJEXT%g
2686 s%@STRIP@%$STRIP%g
2687 s%@LIBTOOL@%$LIBTOOL%g
2688 s%@SET_MAKE@%$SET_MAKE%g
2689 s%@CPP@%$CPP%g
2690 s%@subdirs@%$subdirs%g
2692 CEOF
2695 cat >> $CONFIG_STATUS <<\EOF
2697 # Split the substitutions into bite-sized pieces for seds with
2698 # small command number limits, like on Digital OSF/1 and HP-UX.
2699 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2700 ac_file=1 # Number of current file.
2701 ac_beg=1 # First line for current file.
2702 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2703 ac_more_lines=:
2704 ac_sed_cmds=""
2705 while $ac_more_lines; do
2706 if test $ac_beg -gt 1; then
2707 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2708 else
2709 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2711 if test ! -s conftest.s$ac_file; then
2712 ac_more_lines=false
2713 rm -f conftest.s$ac_file
2714 else
2715 if test -z "$ac_sed_cmds"; then
2716 ac_sed_cmds="sed -f conftest.s$ac_file"
2717 else
2718 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2720 ac_file=`expr $ac_file + 1`
2721 ac_beg=$ac_end
2722 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2724 done
2725 if test -z "$ac_sed_cmds"; then
2726 ac_sed_cmds=cat
2730 cat >> $CONFIG_STATUS <<EOF
2732 CONFIG_FILES=\${CONFIG_FILES-"Makefile g2c.h:g2c.hin"}
2734 cat >> $CONFIG_STATUS <<\EOF
2735 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2736 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2737 case "$ac_file" in
2738 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2739 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2740 *) ac_file_in="${ac_file}.in" ;;
2741 esac
2743 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2745 # Remove last slash and all that follows it. Not all systems have dirname.
2746 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2747 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2748 # The file is in a subdirectory.
2749 test ! -d "$ac_dir" && mkdir "$ac_dir"
2750 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2751 # A "../" for each directory in $ac_dir_suffix.
2752 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2753 else
2754 ac_dir_suffix= ac_dots=
2757 case "$ac_given_srcdir" in
2758 .) srcdir=.
2759 if test -z "$ac_dots"; then top_srcdir=.
2760 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2761 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2762 *) # Relative path.
2763 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2764 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2765 esac
2767 case "$ac_given_INSTALL" in
2768 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2769 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2770 esac
2772 echo creating "$ac_file"
2773 rm -f "$ac_file"
2774 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2775 case "$ac_file" in
2776 *Makefile*) ac_comsub="1i\\
2777 # $configure_input" ;;
2778 *) ac_comsub= ;;
2779 esac
2781 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2782 sed -e "$ac_comsub
2783 s%@configure_input@%$configure_input%g
2784 s%@srcdir@%$srcdir%g
2785 s%@top_srcdir@%$top_srcdir%g
2786 s%@INSTALL@%$INSTALL%g
2787 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2788 fi; done
2789 rm -f conftest.s*
2792 cat >> $CONFIG_STATUS <<EOF
2793 srcdir=${srcdir}
2794 host=${host}
2795 target=${target}
2796 with_target_subdir=${with_target_subdir}
2797 with_multisubdir=${with_multisubdir}
2798 ac_configure_args="--enable-multilib ${ac_configure_args}"
2799 toplevel_srcdir=${toplevel_srcdir}
2800 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2803 cat >> $CONFIG_STATUS <<\EOF
2804 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2805 if test -n "$CONFIG_FILES"; then
2806 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
2807 if test -n "${with_target_subdir}"; then
2808 # FIXME: We shouldn't need to set ac_file
2809 ac_file=Makefile
2810 . ${toplevel_srcdir}/config-ml.in
2811 touch g2c.h # to keep it more recent than Makefile
2814 exit 0
2816 chmod +x $CONFIG_STATUS
2817 rm -fr confdefs* $ac_clean_files
2818 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2820 if test "$no_recursion" != yes; then
2822 # Remove --cache-file and --srcdir arguments so they do not pile up.
2823 ac_sub_configure_args=
2824 ac_prev=
2825 for ac_arg in $ac_configure_args; do
2826 if test -n "$ac_prev"; then
2827 ac_prev=
2828 continue
2830 case "$ac_arg" in
2831 -cache-file | --cache-file | --cache-fil | --cache-fi \
2832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2833 ac_prev=cache_file ;;
2834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2837 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2838 ac_prev=srcdir ;;
2839 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2841 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2842 esac
2843 done
2845 for ac_config_dir in libU77 libI77 libF77; do
2847 # Do not complain, so a configure script can configure whichever
2848 # parts of a large source tree are present.
2849 if test ! -d $srcdir/$ac_config_dir; then
2850 continue
2853 echo configuring in $ac_config_dir
2855 case "$srcdir" in
2856 .) ;;
2858 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2859 else
2860 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2863 esac
2865 ac_popdir=`pwd`
2866 cd $ac_config_dir
2868 # A "../" for each directory in /$ac_config_dir.
2869 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2871 case "$srcdir" in
2872 .) # No --srcdir option. We are building in place.
2873 ac_sub_srcdir=$srcdir ;;
2874 /*) # Absolute path.
2875 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2876 *) # Relative path.
2877 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2878 esac
2880 # Check for guested configure; otherwise get Cygnus style configure.
2881 if test -f $ac_sub_srcdir/configure; then
2882 ac_sub_configure=$ac_sub_srcdir/configure
2883 elif test -f $ac_sub_srcdir/configure.in; then
2884 ac_sub_configure=$ac_configure
2885 else
2886 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2887 ac_sub_configure=
2890 # The recursion is here.
2891 if test -n "$ac_sub_configure"; then
2893 # Make the cache file name correct relative to the subdirectory.
2894 case "$cache_file" in
2895 /*) ac_sub_cache_file=$cache_file ;;
2896 *) # Relative path.
2897 ac_sub_cache_file="$ac_dots$cache_file" ;;
2898 esac
2899 case "$ac_given_INSTALL" in
2900 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2901 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2902 esac
2904 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2905 # The eval makes quoting arguments work.
2906 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2907 then :
2908 else
2909 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2913 cd $ac_popdir
2914 done