source: branches/libc-0.6/src/gcc/libf2c/configure

Last change on this file was 1479, checked in by bird, 21 years ago

Joined gcc 3.3.4 with head.

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