source: vendor/gcc/current/libf2c/configure

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

GCC v3.3.4 - official sources.

  • Property cvs2svn:cvs-rev set to 1.1.1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 91.3 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
544
545
546# This works around the fact that libtool configuration may change LD
547# for this particular configuration, but some shells, instead of
548# keeping the changes in LD private, export them just because LD is
549# exported.
550ORIGINAL_LD_FOR_MULTILIBS=$LD
551
552
553 # Check whether --enable-multilib or --disable-multilib was given.
554if test "${enable_multilib+set}" = set; then
555 enableval="$enable_multilib"
556 case "${enableval}" in
557 yes) multilib=yes ;;
558 no) multilib=no ;;
559 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
560 esac
561else
562 multilib=yes
563fi
564
565# When building with srcdir == objdir, links to the source files will
566# be created in directories within the target_subdir. We have to
567# adjust toplevel_srcdir accordingly, so that configure finds
568# install-sh and other auxiliary files that live in the top-level
569# source directory.
570if test "${srcdir}" = "."; then
571 if test -z "${with_target_subdir}"; then
572 toprel=".."
573 else
574 if test "${with_target_subdir}" != "."; then
575 toprel="${with_multisrctop}../.."
576 else
577 toprel="${with_multisrctop}.."
578 fi
579 fi
580else
581 toprel=".."
582fi
583ac_aux_dir=
584for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
585 if test -f $ac_dir/install-sh; then
586 ac_aux_dir=$ac_dir
587 ac_install_sh="$ac_aux_dir/install-sh -c"
588 break
589 elif test -f $ac_dir/install.sh; then
590 ac_aux_dir=$ac_dir
591 ac_install_sh="$ac_aux_dir/install.sh -c"
592 break
593 fi
594done
595if test -z "$ac_aux_dir"; then
596 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
597fi
598ac_config_guess=$ac_aux_dir/config.guess
599ac_config_sub=$ac_aux_dir/config.sub
600ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
601
602toplevel_srcdir=\${top_srcdir}/$toprel
603
604
605
606
607# Do some error checking and defaulting for the host and target type.
608# The inputs are:
609# configure --host=HOST --target=TARGET --build=BUILD NONOPT
610#
611# The rules are:
612# 1. You are not allowed to specify --host, --target, and nonopt at the
613# same time.
614# 2. Host defaults to nonopt.
615# 3. If nonopt is not specified, then host defaults to the current host,
616# as determined by config.guess.
617# 4. Target and build default to nonopt.
618# 5. If nonopt is not specified, then target and build default to host.
619
620# The aliases save the names the user supplied, while $host etc.
621# will get canonicalized.
622case $host---$target---$nonopt in
623NONE---*---* | *---NONE---* | *---*---NONE) ;;
624*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
625esac
626
627
628# Make sure we can run config.sub.
629if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
630else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
631fi
632
633echo $ac_n "checking host system type""... $ac_c" 1>&6
634echo "configure:635: checking host system type" >&5
635
636host_alias=$host
637case "$host_alias" in
638NONE)
639 case $nonopt in
640 NONE)
641 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
642 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
643 fi ;;
644 *) host_alias=$nonopt ;;
645 esac ;;
646esac
647
648host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
649host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652echo "$ac_t""$host" 1>&6
653
654echo $ac_n "checking target system type""... $ac_c" 1>&6
655echo "configure:656: checking target system type" >&5
656
657target_alias=$target
658case "$target_alias" in
659NONE)
660 case $nonopt in
661 NONE) target_alias=$host_alias ;;
662 *) target_alias=$nonopt ;;
663 esac ;;
664esac
665
666target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
667target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
668target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
669target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
670echo "$ac_t""$target" 1>&6
671
672echo $ac_n "checking build system type""... $ac_c" 1>&6
673echo "configure:674: checking build system type" >&5
674
675build_alias=$build
676case "$build_alias" in
677NONE)
678 case $nonopt in
679 NONE) build_alias=$host_alias ;;
680 *) build_alias=$nonopt ;;
681 esac ;;
682esac
683
684build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
685build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688echo "$ac_t""$build" 1>&6
689
690test "$host_alias" != "$target_alias" &&
691 test "$program_prefix$program_suffix$program_transform_name" = \
692 NONENONEs,x,x, &&
693 program_prefix=${target_alias}-
694
695target_alias=${target_alias-$target}
696
697
698if test $host != $build; then
699 ac_tool_prefix=${host_alias}-
700else
701 ac_tool_prefix=
702fi
703
704echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
705echo "configure:706: checking for Cygwin environment" >&5
706if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
708else
709 cat > conftest.$ac_ext <<EOF
710#line 711 "configure"
711#include "confdefs.h"
712
713int main() {
714
715#ifndef __CYGWIN__
716#define __CYGWIN__ __CYGWIN32__
717#endif
718return __CYGWIN__;
719; return 0; }
720EOF
721if { (eval echo configure:722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
722 rm -rf conftest*
723 ac_cv_cygwin=yes
724else
725 echo "configure: failed program was:" >&5
726 cat conftest.$ac_ext >&5
727 rm -rf conftest*
728 ac_cv_cygwin=no
729fi
730rm -f conftest*
731rm -f conftest*
732fi
733
734echo "$ac_t""$ac_cv_cygwin" 1>&6
735CYGWIN=
736test "$ac_cv_cygwin" = yes && CYGWIN=yes
737echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
738echo "configure:739: checking for mingw32 environment" >&5
739if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
741else
742 cat > conftest.$ac_ext <<EOF
743#line 744 "configure"
744#include "confdefs.h"
745
746int main() {
747return __MINGW32__;
748; return 0; }
749EOF
750if { (eval echo configure:751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
751 rm -rf conftest*
752 ac_cv_mingw32=yes
753else
754 echo "configure: failed program was:" >&5
755 cat conftest.$ac_ext >&5
756 rm -rf conftest*
757 ac_cv_mingw32=no
758fi
759rm -f conftest*
760rm -f conftest*
761fi
762
763echo "$ac_t""$ac_cv_mingw32" 1>&6
764MINGW32=
765test "$ac_cv_mingw32" = yes && MINGW32=yes
766
767# Export build and source directories.
768# These need to be absolute paths, yet at the same time need to
769# canonicalize only relative paths, because then amd will not unmount
770# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
771glibcpp_builddir=`${PWDCMD-pwd}`
772case $srcdir in
773\\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
774*) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
775esac
776
777
778
779
780
781# Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
782# be 'cp -p' if linking isn't available.
783#ac_cv_prog_LN_S='cp -p'
784echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
785echo "configure:786: checking whether ln -s works" >&5
786if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
788else
789 rm -f conftestdata
790if ln -s X conftestdata 2>/dev/null
791then
792 rm -f conftestdata
793 ac_cv_prog_LN_S="ln -s"
794else
795 ac_cv_prog_LN_S=ln
796fi
797fi
798LN_S="$ac_cv_prog_LN_S"
799if test "$ac_cv_prog_LN_S" = "ln -s"; then
800 echo "$ac_t""yes" 1>&6
801else
802 echo "$ac_t""no" 1>&6
803fi
804
805
806# We use these options to decide which functions to include.
807# Check whether --with-target-subdir or --without-target-subdir was given.
808if test "${with_target_subdir+set}" = set; then
809 withval="$with_target_subdir"
810 :
811fi
812
813# Check whether --with-cross-host or --without-cross-host was given.
814if test "${with_cross_host+set}" = set; then
815 withval="$with_cross_host"
816 :
817fi
818
819
820 # Never versions of autoconf add an underscore to these functions.
821 # Prevent future problems ...
822
823
824
825
826
827# AC_PROG_CC
828
829# FIXME: We temporarily define our own version of AC_PROG_CC. This is
830# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
831# are probably using a cross compiler, which will not be able to fully
832# link an executable. This should really be fixed in autoconf
833# itself.
834
835
836
837
838# Extract the first word of "gcc", so it can be a program name with args.
839set dummy gcc; ac_word=$2
840echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841echo "configure:842: checking for $ac_word" >&5
842if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
844else
845 if test -n "$CC"; then
846 ac_cv_prog_CC="$CC" # Let the user override the test.
847else
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
849 ac_dummy="$PATH"
850 for ac_dir in $ac_dummy; do
851 test -z "$ac_dir" && ac_dir=.
852 if test -f $ac_dir/$ac_word; then
853 ac_cv_prog_CC="gcc"
854 break
855 fi
856 done
857 IFS="$ac_save_ifs"
858fi
859fi
860CC="$ac_cv_prog_CC"
861if test -n "$CC"; then
862 echo "$ac_t""$CC" 1>&6
863else
864 echo "$ac_t""no" 1>&6
865fi
866
867if test -z "$CC"; then
868 # Extract the first word of "cc", so it can be a program name with args.
869set dummy cc; ac_word=$2
870echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871echo "configure:872: checking for $ac_word" >&5
872if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
874else
875 if test -n "$CC"; then
876 ac_cv_prog_CC="$CC" # Let the user override the test.
877else
878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
879 ac_prog_rejected=no
880 ac_dummy="$PATH"
881 for ac_dir in $ac_dummy; do
882 test -z "$ac_dir" && ac_dir=.
883 if test -f $ac_dir/$ac_word; then
884 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
885 ac_prog_rejected=yes
886 continue
887 fi
888 ac_cv_prog_CC="cc"
889 break
890 fi
891 done
892 IFS="$ac_save_ifs"
893if test $ac_prog_rejected = yes; then
894 # We found a bogon in the path, so make sure we never use it.
895 set dummy $ac_cv_prog_CC
896 shift
897 if test $# -gt 0; then
898 # We chose a different compiler from the bogus one.
899 # However, it has the same basename, so the bogon will be chosen
900 # first if we set CC to just the basename; use the full file name.
901 shift
902 set dummy "$ac_dir/$ac_word" "$@"
903 shift
904 ac_cv_prog_CC="$@"
905 fi
906fi
907fi
908fi
909CC="$ac_cv_prog_CC"
910if test -n "$CC"; then
911 echo "$ac_t""$CC" 1>&6
912else
913 echo "$ac_t""no" 1>&6
914fi
915
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917fi
918
919echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
920echo "configure:921: checking whether we are using GNU C" >&5
921if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
923else
924 cat > conftest.c <<EOF
925#ifdef __GNUC__
926 yes;
927#endif
928EOF
929if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
930 ac_cv_prog_gcc=yes
931else
932 ac_cv_prog_gcc=no
933fi
934fi
935
936echo "$ac_t""$ac_cv_prog_gcc" 1>&6
937
938if test $ac_cv_prog_gcc = yes; then
939 GCC=yes
940 ac_test_CFLAGS="${CFLAGS+set}"
941 ac_save_CFLAGS="$CFLAGS"
942 CFLAGS=
943 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
944echo "configure:945: checking whether ${CC-cc} accepts -g" >&5
945if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947else
948 echo 'void f(){}' > conftest.c
949if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
950 ac_cv_prog_cc_g=yes
951else
952 ac_cv_prog_cc_g=no
953fi
954rm -f conftest*
955
956fi
957
958echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
959 if test "$ac_test_CFLAGS" = set; then
960 CFLAGS="$ac_save_CFLAGS"
961 elif test $ac_cv_prog_cc_g = yes; then
962 CFLAGS="-g -O2"
963 else
964 CFLAGS="-O2"
965 fi
966else
967 GCC=
968 test "${CFLAGS+set}" = set || CFLAGS="-g"
969fi
970
971
972 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
973set dummy ${ac_tool_prefix}as; ac_word=$2
974echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
975echo "configure:976: checking for $ac_word" >&5
976if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
978else
979 if test -n "$AS"; then
980 ac_cv_prog_AS="$AS" # Let the user override the test.
981else
982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
983 ac_dummy="$PATH"
984 for ac_dir in $ac_dummy; do
985 test -z "$ac_dir" && ac_dir=.
986 if test -f $ac_dir/$ac_word; then
987 ac_cv_prog_AS="${ac_tool_prefix}as"
988 break
989 fi
990 done
991 IFS="$ac_save_ifs"
992 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
993fi
994fi
995AS="$ac_cv_prog_AS"
996if test -n "$AS"; then
997 echo "$ac_t""$AS" 1>&6
998else
999 echo "$ac_t""no" 1>&6
1000fi
1001
1002
1003
1004 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1005set dummy ${ac_tool_prefix}ar; ac_word=$2
1006echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007echo "configure:1008: checking for $ac_word" >&5
1008if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1010else
1011 if test -n "$AR"; then
1012 ac_cv_prog_AR="$AR" # Let the user override the test.
1013else
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1015 ac_dummy="$PATH"
1016 for ac_dir in $ac_dummy; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1019 ac_cv_prog_AR="${ac_tool_prefix}ar"
1020 break
1021 fi
1022 done
1023 IFS="$ac_save_ifs"
1024 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1025fi
1026fi
1027AR="$ac_cv_prog_AR"
1028if test -n "$AR"; then
1029 echo "$ac_t""$AR" 1>&6
1030else
1031 echo "$ac_t""no" 1>&6
1032fi
1033
1034
1035
1036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1037set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1038echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039echo "configure:1040: checking for $ac_word" >&5
1040if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1042else
1043 if test -n "$RANLIB"; then
1044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1045else
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 ac_dummy="$PATH"
1048 for ac_dir in $ac_dummy; do
1049 test -z "$ac_dir" && ac_dir=.
1050 if test -f $ac_dir/$ac_word; then
1051 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1052 break
1053 fi
1054 done
1055 IFS="$ac_save_ifs"
1056fi
1057fi
1058RANLIB="$ac_cv_prog_RANLIB"
1059if test -n "$RANLIB"; then
1060 echo "$ac_t""$RANLIB" 1>&6
1061else
1062 echo "$ac_t""no" 1>&6
1063fi
1064
1065
1066if test -z "$ac_cv_prog_RANLIB"; then
1067if test -n "$ac_tool_prefix"; then
1068 # Extract the first word of "ranlib", so it can be a program name with args.
1069set dummy ranlib; ac_word=$2
1070echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071echo "configure:1072: checking for $ac_word" >&5
1072if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074else
1075 if test -n "$RANLIB"; then
1076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1077else
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1079 ac_dummy="$PATH"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_prog_RANLIB="ranlib"
1084 break
1085 fi
1086 done
1087 IFS="$ac_save_ifs"
1088 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1089fi
1090fi
1091RANLIB="$ac_cv_prog_RANLIB"
1092if test -n "$RANLIB"; then
1093 echo "$ac_t""$RANLIB" 1>&6
1094else
1095 echo "$ac_t""no" 1>&6
1096fi
1097
1098else
1099 RANLIB="ranlib-not-found-in-path-error"
1100fi
1101fi
1102
1103 # Find a good install program. We prefer a C program (faster),
1104# so one script is as good as another. But avoid the broken or
1105# incompatible versions:
1106# SysV /etc/install, /usr/sbin/install
1107# SunOS /usr/etc/install
1108# IRIX /sbin/install
1109# AIX /bin/install
1110# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1111# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1112# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1113# ./install, which can be erroneously created by make from ./install.sh.
1114echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1115echo "configure:1116: checking for a BSD compatible install" >&5
1116if test -z "$INSTALL"; then
1117if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119else
1120 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1121 for ac_dir in $PATH; do
1122 # Account for people who put trailing slashes in PATH elements.
1123 case "$ac_dir/" in
1124 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1125 *)
1126 # OSF1 and SCO ODT 3.0 have their own names for install.
1127 # Don't use installbsd from OSF since it installs stuff as root
1128 # by default.
1129 for ac_prog in ginstall scoinst install; do
1130 if test -f $ac_dir/$ac_prog; then
1131 if test $ac_prog = install &&
1132 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1133 # AIX install. It has an incompatible calling convention.
1134 :
1135 else
1136 ac_cv_path_install="$ac_dir/$ac_prog -c"
1137 break 2
1138 fi
1139 fi
1140 done
1141 ;;
1142 esac
1143 done
1144 IFS="$ac_save_IFS"
1145
1146fi
1147 if test "${ac_cv_path_install+set}" = set; then
1148 INSTALL="$ac_cv_path_install"
1149 else
1150 # As a last resort, use the slow shell script. We don't cache a
1151 # path for INSTALL within a source directory, because that will
1152 # break other packages using the cache if that directory is
1153 # removed, or if the path is relative.
1154 INSTALL="$ac_install_sh"
1155 fi
1156fi
1157echo "$ac_t""$INSTALL" 1>&6
1158
1159# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1160# It thinks the first close brace ends the variable substitution.
1161test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1162
1163test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1164
1165test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1166
1167
1168 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1169 # at least currently, we never actually build a program, so we never
1170 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1171 # fails, because we are probably configuring with a cross compiler
1172 # which can't create executables. So we include AC_EXEEXT to keep
1173 # automake happy, but we don't execute it, since we don't care about
1174 # the result.
1175 if false; then
1176 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1177 # to nothing, so nothing would remain between `then' and `fi' if it
1178 # were not for the `:' below.
1179 :
1180
1181
1182echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1183echo "configure:1184: checking for executable suffix" >&5
1184if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1186else
1187 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1188 ac_cv_exeext=.exe
1189else
1190 rm -f conftest*
1191 echo 'int main () { return 0; }' > conftest.$ac_ext
1192 ac_cv_exeext=
1193 if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1194 for file in conftest.*; do
1195 case $file in
1196 *.c | *.o | *.obj) ;;
1197 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1198 esac
1199 done
1200 else
1201 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1202 fi
1203 rm -f conftest*
1204 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1205fi
1206fi
1207
1208EXEEXT=""
1209test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1210echo "$ac_t""${ac_cv_exeext}" 1>&6
1211ac_exeext=$EXEEXT
1212
1213 fi
1214
1215
1216# Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
1217# exported correctly in GLIBCPP_CONFIGURE.
1218glibcpp_toolexecdir=no
1219glibcpp_toolexeclibdir=no
1220glibcpp_prefixdir=${prefix}
1221
1222echo $ac_n "checking for interface version number""... $ac_c" 1>&6
1223echo "configure:1224: checking for interface version number" >&5
1224libstdcxx_interface=$INTERFACE
1225echo "$ac_t""$libstdcxx_interface" 1>&6
1226
1227# Process the option "--enable-version-specific-runtime-libs"
1228echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
1229echo "configure:1230: checking for --enable-version-specific-runtime-libs" >&5
1230# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1231if test "${enable_version_specific_runtime_libs+set}" = set; then
1232 enableval="$enable_version_specific_runtime_libs"
1233 case "$enableval" in
1234 yes) version_specific_libs=yes ;;
1235 no) version_specific_libs=no ;;
1236 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
1237 esac
1238else
1239 version_specific_libs=no
1240fi
1241# Option set, now we can test it.
1242echo "$ac_t""$version_specific_libs" 1>&6
1243
1244gcc_version_trigger=${toplevel_srcdir}/gcc/version.c
1245gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1246gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1247
1248
1249
1250if test $version_specific_libs = yes; then
1251 # Need the gcc compiler version to know where to install libraries
1252 # and header files if --enable-version-specific-runtime-libs option
1253 # is selected.
1254 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1255 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1256 fi
1257
1258# Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
1259# Install a library built with a cross compiler in tooldir, not libdir.
1260if test x"$glibcpp_toolexecdir" = x"no"; then
1261 if test -n "$with_cross_host" &&
1262 test x"$with_cross_host" != x"no"; then
1263 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
1264 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
1265 else
1266 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1267 glibcpp_toolexeclibdir='$(libdir)'
1268 fi
1269 glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory`
1270fi
1271
1272
1273
1274
1275
1276
1277# If the language specific compiler does not exist, but the "gcc" directory
1278# does, we do not build anything. Note, $r is set by the top-level Makefile.
1279# Note that when we look for the compiler, we search both with and without
1280# extension to handle cross and canadian cross builds.
1281compiler_name=f771
1282rm -f skip-this-dir
1283echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
1284echo "configure:1285: checking if compiler $compiler_name has been built" >&5
1285if eval "test \"`echo '$''{'g77_cv_compiler_exists'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287else
1288 g77_cv_compiler_exists=yes
1289if test -n "$r"; then
1290 if test -d "$r"/gcc; then
1291 if test -f "$r"/gcc/$compiler_name \
1292 || test -f "$r"/gcc/$compiler_name.exe; then
1293 true
1294 else
1295 g77_cv_compiler_exists=no
1296 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
1297 fi
1298 fi
1299fi
1300
1301fi
1302
1303echo "$ac_t""$g77_cv_compiler_exists" 1>&6
1304if test x$g77_cv_compiler_exists = xno
1305then
1306 rm -f Makefile conftest* confdefs* core
1307 exit 0
1308fi
1309
1310
1311# Check whether --enable-shared or --disable-shared was given.
1312if test "${enable_shared+set}" = set; then
1313 enableval="$enable_shared"
1314 p=${PACKAGE-default}
1315case $enableval in
1316yes) enable_shared=yes ;;
1317no) enable_shared=no ;;
1318*)
1319 enable_shared=no
1320 # Look at the argument we got. We use all the common list separators.
1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1322 for pkg in $enableval; do
1323 if test "X$pkg" = "X$p"; then
1324 enable_shared=yes
1325 fi
1326 done
1327 IFS="$ac_save_ifs"
1328 ;;
1329esac
1330else
1331 enable_shared=yes
1332fi
1333
1334# Check whether --enable-static or --disable-static was given.
1335if test "${enable_static+set}" = set; then
1336 enableval="$enable_static"
1337 p=${PACKAGE-default}
1338case $enableval in
1339yes) enable_static=yes ;;
1340no) enable_static=no ;;
1341*)
1342 enable_static=no
1343 # Look at the argument we got. We use all the common list separators.
1344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1345 for pkg in $enableval; do
1346 if test "X$pkg" = "X$p"; then
1347 enable_static=yes
1348 fi
1349 done
1350 IFS="$ac_save_ifs"
1351 ;;
1352esac
1353else
1354 enable_static=yes
1355fi
1356
1357# Check whether --enable-fast-install or --disable-fast-install was given.
1358if test "${enable_fast_install+set}" = set; then
1359 enableval="$enable_fast_install"
1360 p=${PACKAGE-default}
1361case $enableval in
1362yes) enable_fast_install=yes ;;
1363no) enable_fast_install=no ;;
1364*)
1365 enable_fast_install=no
1366 # Look at the argument we got. We use all the common list separators.
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1368 for pkg in $enableval; do
1369 if test "X$pkg" = "X$p"; then
1370 enable_fast_install=yes
1371 fi
1372 done
1373 IFS="$ac_save_ifs"
1374 ;;
1375esac
1376else
1377 enable_fast_install=yes
1378fi
1379
1380# Check whether --with-gnu-ld or --without-gnu-ld was given.
1381if test "${with_gnu_ld+set}" = set; then
1382 withval="$with_gnu_ld"
1383 test "$withval" = no || with_gnu_ld=yes
1384else
1385 with_gnu_ld=no
1386fi
1387
1388ac_prog=ld
1389if test "$GCC" = yes; then
1390 # Check if gcc -print-prog-name=ld gives a path.
1391 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1392echo "configure:1393: checking for ld used by GCC" >&5
1393 case $host in
1394 *-*-mingw*)
1395 # gcc leaves a trailing carriage return which upsets mingw
1396 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1397 *)
1398 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1399 esac
1400 case $ac_prog in
1401 # Accept absolute paths.
1402 [\\/]* | [A-Za-z]:[\\/]*)
1403 re_direlt='/[^/][^/]*/\.\./'
1404 # Canonicalize the path of ld
1405 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1406 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1407 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1408 done
1409 test -z "$LD" && LD="$ac_prog"
1410 ;;
1411 "")
1412 # If it fails, then pretend we aren't using GCC.
1413 ac_prog=ld
1414 ;;
1415 *)
1416 # If it is relative, then search for the first ld in PATH.
1417 with_gnu_ld=unknown
1418 ;;
1419 esac
1420elif test "$with_gnu_ld" = yes; then
1421 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1422echo "configure:1423: checking for GNU ld" >&5
1423else
1424 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1425echo "configure:1426: checking for non-GNU ld" >&5
1426fi
1427if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1429else
1430 if test -z "$LD"; then
1431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1432 for ac_dir in $PATH; do
1433 test -z "$ac_dir" && ac_dir=.
1434 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1435 lt_cv_path_LD="$ac_dir/$ac_prog"
1436 # Check to see if the program is GNU ld. I'd rather use --version,
1437 # but apparently some GNU ld's only accept -v.
1438 # Break only if it was the GNU/non-GNU ld that we prefer.
1439 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1440 test "$with_gnu_ld" != no && break
1441 else
1442 test "$with_gnu_ld" != yes && break
1443 fi
1444 fi
1445 done
1446 IFS="$ac_save_ifs"
1447else
1448 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1449fi
1450fi
1451
1452LD="$lt_cv_path_LD"
1453if test -n "$LD"; then
1454 echo "$ac_t""$LD" 1>&6
1455else
1456 echo "$ac_t""no" 1>&6
1457fi
1458test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1459echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1460echo "configure:1461: checking if the linker ($LD) is GNU ld" >&5
1461if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1463else
1464 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1465if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1466 lt_cv_prog_gnu_ld=yes
1467else
1468 lt_cv_prog_gnu_ld=no
1469fi
1470fi
1471
1472echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1473with_gnu_ld=$lt_cv_prog_gnu_ld
1474
1475
1476echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1477echo "configure:1478: checking for $LD option to reload object files" >&5
1478if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480else
1481 lt_cv_ld_reload_flag='-r'
1482fi
1483
1484echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1485reload_flag=$lt_cv_ld_reload_flag
1486test -n "$reload_flag" && reload_flag=" $reload_flag"
1487
1488echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1489echo "configure:1490: checking for BSD-compatible nm" >&5
1490if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1492else
1493 if test -n "$NM"; then
1494 # Let the user override the test.
1495 lt_cv_path_NM="$NM"
1496else
1497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1498 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1499 test -z "$ac_dir" && ac_dir=.
1500 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1501 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1502 # Check to see if the nm accepts a BSD-compat flag.
1503 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1504 # nm: unknown option "B" ignored
1505 # Tru64's nm complains that /dev/null is an invalid object file
1506 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1507 lt_cv_path_NM="$tmp_nm -B"
1508 break
1509 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1510 lt_cv_path_NM="$tmp_nm -p"
1511 break
1512 else
1513 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1514 continue # so that we can try to find one that supports BSD flags
1515 fi
1516 fi
1517 done
1518 IFS="$ac_save_ifs"
1519 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1520fi
1521fi
1522
1523NM="$lt_cv_path_NM"
1524echo "$ac_t""$NM" 1>&6
1525
1526echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1527echo "configure:1528: checking how to recognise dependant libraries" >&5
1528if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1530else
1531 lt_cv_file_magic_cmd='$MAGIC_CMD'
1532lt_cv_file_magic_test_file=
1533lt_cv_deplibs_check_method='unknown'
1534# Need to set the preceding variable on all platforms that support
1535# interlibrary dependencies.
1536# 'none' -- dependencies not supported.
1537# `unknown' -- same as none, but documents that we really don't know.
1538# 'pass_all' -- all dependencies passed with no checks.
1539# 'test_compile' -- check by making test program.
1540# 'file_magic [regex]' -- check by looking for files in library path
1541# which responds to the $file_magic_cmd with a given egrep regex.
1542# If you have `file' or equivalent on your system and you're not sure
1543# whether `pass_all' will *always* work, you probably want this one.
1544
1545case $host_os in
1546aix*)
1547 lt_cv_deplibs_check_method=pass_all
1548 ;;
1549
1550beos*)
1551 lt_cv_deplibs_check_method=pass_all
1552 ;;
1553
1554bsdi4*)
1555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1556 lt_cv_file_magic_cmd='/usr/bin/file -L'
1557 lt_cv_file_magic_test_file=/shlib/libc.so
1558 ;;
1559
1560cygwin* | mingw* |pw32*)
1561 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1562 lt_cv_file_magic_cmd='$OBJDUMP -f'
1563 ;;
1564
1565darwin* | rhapsody*)
1566 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1567 lt_cv_file_magic_cmd='/usr/bin/file -L'
1568 case "$host_os" in
1569 rhapsody* | darwin1.012)
1570 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1571 ;;
1572 *) # Darwin 1.3 on
1573 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1574 ;;
1575 esac
1576 ;;
1577
1578freebsd* )
1579 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1580 case $host_cpu in
1581 i*86 )
1582 # Not sure whether the presence of OpenBSD here was a mistake.
1583 # Let's accept both of them until this is cleared up.
1584 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1585 lt_cv_file_magic_cmd=/usr/bin/file
1586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1587 ;;
1588 esac
1589 else
1590 lt_cv_deplibs_check_method=pass_all
1591 fi
1592 ;;
1593
1594gnu*)
1595 lt_cv_deplibs_check_method=pass_all
1596 ;;
1597
1598hpux10.20*|hpux11*)
1599 case $host_cpu in
1600 hppa*)
1601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1602 lt_cv_file_magic_cmd=/usr/bin/file
1603 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1604 ;;
1605 ia64*)
1606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1607 lt_cv_file_magic_cmd=/usr/bin/file
1608 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1609 ;;
1610 esac
1611 ;;
1612
1613irix5* | irix6*)
1614 case $host_os in
1615 irix5*)
1616 # this will be overridden with pass_all, but let us keep it just in case
1617 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1618 ;;
1619 *)
1620 case $LD in
1621 *-32|*"-32 ") libmagic=32-bit;;
1622 *-n32|*"-n32 ") libmagic=N32;;
1623 *-64|*"-64 ") libmagic=64-bit;;
1624 *) libmagic=never-match;;
1625 esac
1626 # this will be overridden with pass_all, but let us keep it just in case
1627 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1628 ;;
1629 esac
1630 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1631 lt_cv_deplibs_check_method=pass_all
1632 ;;
1633
1634# This must be Linux ELF.
1635linux-gnu*)
1636 case $host_cpu in
1637 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
1638 lt_cv_deplibs_check_method=pass_all ;;
1639 *)
1640 # glibc up to 2.1.1 does not perform some relocations on ARM
1641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1642 esac
1643 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1644 ;;
1645
1646netbsd*)
1647 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1648 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1649 else
1650 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1651 fi
1652 ;;
1653
1654newsos6)
1655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1656 lt_cv_file_magic_cmd=/usr/bin/file
1657 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1658 ;;
1659
1660osf3* | osf4* | osf5*)
1661 # this will be overridden with pass_all, but let us keep it just in case
1662 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1663 lt_cv_file_magic_test_file=/shlib/libc.so
1664 lt_cv_deplibs_check_method=pass_all
1665 ;;
1666
1667sco3.2v5*)
1668 lt_cv_deplibs_check_method=pass_all
1669 ;;
1670
1671solaris*)
1672 lt_cv_deplibs_check_method=pass_all
1673 lt_cv_file_magic_test_file=/lib/libc.so
1674 ;;
1675
1676sysv5uw[78]* | sysv4*uw2*)
1677 lt_cv_deplibs_check_method=pass_all
1678 ;;
1679
1680sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1681 case $host_vendor in
1682 ncr)
1683 lt_cv_deplibs_check_method=pass_all
1684 ;;
1685 motorola)
1686 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]'
1687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1688 ;;
1689 esac
1690 ;;
1691esac
1692
1693fi
1694
1695echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1696file_magic_cmd=$lt_cv_file_magic_cmd
1697deplibs_check_method=$lt_cv_deplibs_check_method
1698
1699echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1700echo "configure:1701: checking for object suffix" >&5
1701if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1703else
1704 rm -f conftest*
1705echo 'int i = 1;' > conftest.$ac_ext
1706if { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1707 for ac_file in conftest.*; do
1708 case $ac_file in
1709 *.c) ;;
1710 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1711 esac
1712 done
1713else
1714 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1715fi
1716rm -f conftest*
1717fi
1718
1719echo "$ac_t""$ac_cv_objext" 1>&6
1720OBJEXT=$ac_cv_objext
1721ac_objext=$ac_cv_objext
1722
1723# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1724
1725# Only perform the check for file, if the check method requires it
1726case $deplibs_check_method in
1727file_magic*)
1728 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1729 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1730echo "configure:1731: checking for ${ac_tool_prefix}file" >&5
1731if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1733else
1734 case $MAGIC_CMD in
1735 /*)
1736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1737 ;;
1738 ?:/*)
1739 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1740 ;;
1741 *)
1742 ac_save_MAGIC_CMD="$MAGIC_CMD"
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1744 ac_dummy="/usr/bin:$PATH"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/${ac_tool_prefix}file; then
1748 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1749 if test -n "$file_magic_test_file"; then
1750 case $deplibs_check_method in
1751 "file_magic "*)
1752 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1755 egrep "$file_magic_regex" > /dev/null; then
1756 :
1757 else
1758 cat <<EOF 1>&2
1759
1760*** Warning: the command libtool uses to detect shared libraries,
1761*** $file_magic_cmd, produces output that libtool cannot recognize.
1762*** The result is that libtool may fail to recognize shared libraries
1763*** as such. This will affect the creation of libtool libraries that
1764*** depend on shared libraries, but programs linked with such libtool
1765*** libraries will work regardless of this problem. Nevertheless, you
1766*** may want to report the problem to your system manager and/or to
1767*** bug-libtool@gnu.org
1768
1769EOF
1770 fi ;;
1771 esac
1772 fi
1773 break
1774 fi
1775 done
1776 IFS="$ac_save_ifs"
1777 MAGIC_CMD="$ac_save_MAGIC_CMD"
1778 ;;
1779esac
1780fi
1781
1782MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1783if test -n "$MAGIC_CMD"; then
1784 echo "$ac_t""$MAGIC_CMD" 1>&6
1785else
1786 echo "$ac_t""no" 1>&6
1787fi
1788
1789if test -z "$lt_cv_path_MAGIC_CMD"; then
1790 if test -n "$ac_tool_prefix"; then
1791 echo $ac_n "checking for file""... $ac_c" 1>&6
1792echo "configure:1793: checking for file" >&5
1793if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795else
1796 case $MAGIC_CMD in
1797 /*)
1798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1799 ;;
1800 ?:/*)
1801 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1802 ;;
1803 *)
1804 ac_save_MAGIC_CMD="$MAGIC_CMD"
1805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1806 ac_dummy="/usr/bin:$PATH"
1807 for ac_dir in $ac_dummy; do
1808 test -z "$ac_dir" && ac_dir=.
1809 if test -f $ac_dir/file; then
1810 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1811 if test -n "$file_magic_test_file"; then
1812 case $deplibs_check_method in
1813 "file_magic "*)
1814 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1816 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1817 egrep "$file_magic_regex" > /dev/null; then
1818 :
1819 else
1820 cat <<EOF 1>&2
1821
1822*** Warning: the command libtool uses to detect shared libraries,
1823*** $file_magic_cmd, produces output that libtool cannot recognize.
1824*** The result is that libtool may fail to recognize shared libraries
1825*** as such. This will affect the creation of libtool libraries that
1826*** depend on shared libraries, but programs linked with such libtool
1827*** libraries will work regardless of this problem. Nevertheless, you
1828*** may want to report the problem to your system manager and/or to
1829*** bug-libtool@gnu.org
1830
1831EOF
1832 fi ;;
1833 esac
1834 fi
1835 break
1836 fi
1837 done
1838 IFS="$ac_save_ifs"
1839 MAGIC_CMD="$ac_save_MAGIC_CMD"
1840 ;;
1841esac
1842fi
1843
1844MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1845if test -n "$MAGIC_CMD"; then
1846 echo "$ac_t""$MAGIC_CMD" 1>&6
1847else
1848 echo "$ac_t""no" 1>&6
1849fi
1850
1851 else
1852 MAGIC_CMD=:
1853 fi
1854fi
1855
1856 fi
1857 ;;
1858esac
1859
1860# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1863echo "configure:1864: checking for $ac_word" >&5
1864if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866else
1867 if test -n "$RANLIB"; then
1868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1869else
1870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1871 ac_dummy="$PATH"
1872 for ac_dir in $ac_dummy; do
1873 test -z "$ac_dir" && ac_dir=.
1874 if test -f $ac_dir/$ac_word; then
1875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1876 break
1877 fi
1878 done
1879 IFS="$ac_save_ifs"
1880fi
1881fi
1882RANLIB="$ac_cv_prog_RANLIB"
1883if test -n "$RANLIB"; then
1884 echo "$ac_t""$RANLIB" 1>&6
1885else
1886 echo "$ac_t""no" 1>&6
1887fi
1888
1889
1890if test -z "$ac_cv_prog_RANLIB"; then
1891if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "ranlib", so it can be a program name with args.
1893set dummy ranlib; ac_word=$2
1894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1895echo "configure:1896: checking for $ac_word" >&5
1896if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898else
1899 if test -n "$RANLIB"; then
1900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1901else
1902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1903 ac_dummy="$PATH"
1904 for ac_dir in $ac_dummy; do
1905 test -z "$ac_dir" && ac_dir=.
1906 if test -f $ac_dir/$ac_word; then
1907 ac_cv_prog_RANLIB="ranlib"
1908 break
1909 fi
1910 done
1911 IFS="$ac_save_ifs"
1912 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1913fi
1914fi
1915RANLIB="$ac_cv_prog_RANLIB"
1916if test -n "$RANLIB"; then
1917 echo "$ac_t""$RANLIB" 1>&6
1918else
1919 echo "$ac_t""no" 1>&6
1920fi
1921
1922else
1923 RANLIB=":"
1924fi
1925fi
1926
1927# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1928set dummy ${ac_tool_prefix}strip; ac_word=$2
1929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930echo "configure:1931: checking for $ac_word" >&5
1931if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933else
1934 if test -n "$STRIP"; then
1935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1936else
1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1938 ac_dummy="$PATH"
1939 for ac_dir in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir=.
1941 if test -f $ac_dir/$ac_word; then
1942 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1943 break
1944 fi
1945 done
1946 IFS="$ac_save_ifs"
1947fi
1948fi
1949STRIP="$ac_cv_prog_STRIP"
1950if test -n "$STRIP"; then
1951 echo "$ac_t""$STRIP" 1>&6
1952else
1953 echo "$ac_t""no" 1>&6
1954fi
1955
1956
1957if test -z "$ac_cv_prog_STRIP"; then
1958if test -n "$ac_tool_prefix"; then
1959 # Extract the first word of "strip", so it can be a program name with args.
1960set dummy strip; ac_word=$2
1961echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962echo "configure:1963: checking for $ac_word" >&5
1963if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1965else
1966 if test -n "$STRIP"; then
1967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1968else
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1970 ac_dummy="$PATH"
1971 for ac_dir in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/$ac_word; then
1974 ac_cv_prog_STRIP="strip"
1975 break
1976 fi
1977 done
1978 IFS="$ac_save_ifs"
1979 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1980fi
1981fi
1982STRIP="$ac_cv_prog_STRIP"
1983if test -n "$STRIP"; then
1984 echo "$ac_t""$STRIP" 1>&6
1985else
1986 echo "$ac_t""no" 1>&6
1987fi
1988
1989else
1990 STRIP=":"
1991fi
1992fi
1993
1994
1995# Check for any special flags to pass to ltconfig.
1996libtool_flags="--cache-file=$cache_file"
1997test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1998test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1999test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2000test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2001test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2002
2003
2004# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2005if test "${enable_libtool_lock+set}" = set; then
2006 enableval="$enable_libtool_lock"
2007 :
2008fi
2009
2010test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2011test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2012
2013# Check whether --with-pic or --without-pic was given.
2014if test "${with_pic+set}" = set; then
2015 withval="$with_pic"
2016 pic_mode="$withval"
2017else
2018 pic_mode=default
2019fi
2020
2021test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2022test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2023
2024# Some flags need to be propagated to the compiler or linker for good
2025# libtool support.
2026case $host in
2027*-*-irix6*)
2028 # Find out which ABI we are using.
2029 echo '#line 2030 "configure"' > conftest.$ac_ext
2030 if { (eval echo configure:2031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2031 if test "$lt_cv_prog_gnu_ld" = yes; then
2032 case `/usr/bin/file conftest.$ac_objext` in
2033 *32-bit*)
2034 LD="${LD-ld} -melf32bsmip"
2035 ;;
2036 *N32*)
2037 LD="${LD-ld} -melf32bmipn32"
2038 ;;
2039 *64-bit*)
2040 LD="${LD-ld} -melf64bmip"
2041 ;;
2042 esac
2043 else
2044 case `/usr/bin/file conftest.$ac_objext` in
2045 *32-bit*)
2046 LD="${LD-ld} -32"
2047 ;;
2048 *N32*)
2049 LD="${LD-ld} -n32"
2050 ;;
2051 *64-bit*)
2052 LD="${LD-ld} -64"
2053 ;;
2054 esac
2055 fi
2056 fi
2057 rm -rf conftest*
2058 ;;
2059
2060ia64-*-hpux*)
2061 # Find out which ABI we are using.
2062 echo 'int i;' > conftest.$ac_ext
2063 if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064 case "`/usr/bin/file conftest.o`" in
2065 *ELF-32*)
2066 HPUX_IA64_MODE="32"
2067 ;;
2068 *ELF-64*)
2069 HPUX_IA64_MODE="64"
2070 ;;
2071 esac
2072 fi
2073 rm -rf conftest*
2074 ;;
2075
2076x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2077 # Find out which ABI we are using.
2078 echo 'int i;' > conftest.$ac_ext
2079 if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2080 case "`/usr/bin/file conftest.o`" in
2081 *32-bit*)
2082 case $host in
2083 x86_64-*linux*)
2084 LD="${LD-ld} -m elf_i386"
2085 ;;
2086 ppc64-*linux*|powerpc64-*linux*)
2087 LD="${LD-ld} -m elf32ppclinux"
2088 ;;
2089 s390x-*linux*)
2090 LD="${LD-ld} -m elf_s390"
2091 ;;
2092 sparc64-*linux*)
2093 LD="${LD-ld} -m elf32_sparc"
2094 ;;
2095 esac
2096 ;;
2097 *64-bit*)
2098 case $host in
2099 x86_64-*linux*)
2100 LD="${LD-ld} -m elf_x86_64"
2101 ;;
2102 ppc*-*linux*|powerpc*-*linux*)
2103 LD="${LD-ld} -m elf64ppc"
2104 ;;
2105 s390*-*linux*)
2106 LD="${LD-ld} -m elf64_s390"
2107 ;;
2108 sparc*-*linux*)
2109 LD="${LD-ld} -m elf64_sparc"
2110 ;;
2111 esac
2112 ;;
2113 esac
2114 fi
2115 rm -rf conftest*
2116 ;;
2117
2118*-*-sco3.2v5*)
2119 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2120 SAVE_CFLAGS="$CFLAGS"
2121 CFLAGS="$CFLAGS -belf"
2122 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2123echo "configure:2124: checking whether the C compiler needs -belf" >&5
2124if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126else
2127
2128 ac_ext=c
2129# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2130ac_cpp='$CPP $CPPFLAGS'
2131ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2132ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2133cross_compiling=$ac_cv_prog_cc_cross
2134
2135 cat > conftest.$ac_ext <<EOF
2136#line 2137 "configure"
2137#include "confdefs.h"
2138
2139int main() {
2140
2141; return 0; }
2142EOF
2143if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2144 rm -rf conftest*
2145 lt_cv_cc_needs_belf=yes
2146else
2147 echo "configure: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2149 rm -rf conftest*
2150 lt_cv_cc_needs_belf=no
2151fi
2152rm -f conftest*
2153 ac_ext=c
2154# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2155ac_cpp='$CPP $CPPFLAGS'
2156ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2157ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2158cross_compiling=$ac_cv_prog_cc_cross
2159
2160fi
2161
2162echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2163 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2165 CFLAGS="$SAVE_CFLAGS"
2166 fi
2167 ;;
2168
2169
2170esac
2171
2172
2173# Save cache, so that ltconfig can load it
2174cat > confcache <<\EOF
2175# This file is a shell script that caches the results of configure
2176# tests run on this system so they can be shared between configure
2177# scripts and configure runs. It is not useful on other systems.
2178# If it contains results you don't want to keep, you may remove or edit it.
2179#
2180# By default, configure uses ./config.cache as the cache file,
2181# creating it if it does not exist already. You can give configure
2182# the --cache-file=FILE option to use a different cache file; that is
2183# what configure does when it calls configure scripts in
2184# subdirectories, so they share the cache.
2185# Giving --cache-file=/dev/null disables caching, for debugging configure.
2186# config.status only pays attention to the cache file if you give it the
2187# --recheck option to rerun configure.
2188#
2189EOF
2190# The following way of writing the cache mishandles newlines in values,
2191# but we know of no workaround that is simple, portable, and efficient.
2192# So, don't put newlines in cache variables' values.
2193# Ultrix sh set writes to stderr and can't be redirected directly,
2194# and sets the high bit in the cache file unless we assign to the vars.
2195(set) 2>&1 |
2196 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2197 *ac_space=\ *)
2198 # `set' does not quote correctly, so add quotes (double-quote substitution
2199 # turns \\\\ into \\, and sed turns \\ into \).
2200 sed -n \
2201 -e "s/'/'\\\\''/g" \
2202 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2203 ;;
2204 *)
2205 # `set' quotes correctly as required by POSIX, so do not add quotes.
2206 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2207 ;;
2208 esac >> confcache
2209if cmp -s $cache_file confcache; then
2210 :
2211else
2212 if test -w $cache_file; then
2213 echo "updating cache $cache_file"
2214 cat confcache > $cache_file
2215 else
2216 echo "not updating unwritable cache $cache_file"
2217 fi
2218fi
2219rm -f confcache
2220
2221
2222# Actually configure libtool. ac_aux_dir is where install-sh is found.
2223AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2224MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2225LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2226AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2227objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2228deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2229${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2230$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2231|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2232
2233# Reload cache, that may have been modified by ltconfig
2234if test -r "$cache_file"; then
2235 echo "loading cache $cache_file"
2236 . $cache_file
2237else
2238 echo "creating cache $cache_file"
2239 > $cache_file
2240fi
2241
2242
2243# This can be used to rebuild libtool when needed
2244LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2245
2246# Always use our own libtool.
2247LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2248
2249# Redirect the config.log output again, so that the ltconfig log is not
2250# clobbered by the next message.
2251exec 5>>./config.log
2252
2253
2254
2255
2256
2257
2258
2259test "$AR" || AR=ar
2260
2261if test "$RANLIB"; then :
2262
2263else
2264 # Extract the first word of "ranlib", so it can be a program name with args.
2265set dummy ranlib; ac_word=$2
2266echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2267echo "configure:2268: checking for $ac_word" >&5
2268if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2270else
2271 if test -n "$RANLIB"; then
2272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2273else
2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2275 ac_dummy="$PATH"
2276 for ac_dir in $ac_dummy; do
2277 test -z "$ac_dir" && ac_dir=.
2278 if test -f $ac_dir/$ac_word; then
2279 ac_cv_prog_RANLIB="ranlib"
2280 break
2281 fi
2282 done
2283 IFS="$ac_save_ifs"
2284 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2285fi
2286fi
2287RANLIB="$ac_cv_prog_RANLIB"
2288if test -n "$RANLIB"; then
2289 echo "$ac_t""$RANLIB" 1>&6
2290else
2291 echo "$ac_t""no" 1>&6
2292fi
2293
2294fi
2295# Find a good install program. We prefer a C program (faster),
2296# so one script is as good as another. But avoid the broken or
2297# incompatible versions:
2298# SysV /etc/install, /usr/sbin/install
2299# SunOS /usr/etc/install
2300# IRIX /sbin/install
2301# AIX /bin/install
2302# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2303# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2304# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2305# ./install, which can be erroneously created by make from ./install.sh.
2306echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2307echo "configure:2308: checking for a BSD compatible install" >&5
2308if test -z "$INSTALL"; then
2309if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2311else
2312 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2313 for ac_dir in $PATH; do
2314 # Account for people who put trailing slashes in PATH elements.
2315 case "$ac_dir/" in
2316 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2317 *)
2318 # OSF1 and SCO ODT 3.0 have their own names for install.
2319 # Don't use installbsd from OSF since it installs stuff as root
2320 # by default.
2321 for ac_prog in ginstall scoinst install; do
2322 if test -f $ac_dir/$ac_prog; then
2323 if test $ac_prog = install &&
2324 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2325 # AIX install. It has an incompatible calling convention.
2326 :
2327 else
2328 ac_cv_path_install="$ac_dir/$ac_prog -c"
2329 break 2
2330 fi
2331 fi
2332 done
2333 ;;
2334 esac
2335 done
2336 IFS="$ac_save_IFS"
2337
2338fi
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL="$ac_cv_path_install"
2341 else
2342 # As a last resort, use the slow shell script. We don't cache a
2343 # path for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the path is relative.
2346 INSTALL="$ac_install_sh"
2347 fi
2348fi
2349echo "$ac_t""$INSTALL" 1>&6
2350
2351# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2352# It thinks the first close brace ends the variable substitution.
2353test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2354
2355test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2356
2357test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2358
2359echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2360echo "configure:2361: checking whether ${MAKE-make} sets \${MAKE}" >&5
2361set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2362if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364else
2365 cat > conftestmake <<\EOF
2366all:
2367 @echo 'ac_maketemp="${MAKE}"'
2368EOF
2369# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2370eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2371if test -n "$ac_maketemp"; then
2372 eval ac_cv_prog_make_${ac_make}_set=yes
2373else
2374 eval ac_cv_prog_make_${ac_make}_set=no
2375fi
2376rm -f conftestmake
2377fi
2378if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 SET_MAKE=
2381else
2382 echo "$ac_t""no" 1>&6
2383 SET_MAKE="MAKE=${MAKE-make}"
2384fi
2385
2386
2387# Sanity check for the cross-compilation case:
2388echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2389echo "configure:2390: checking how to run the C preprocessor" >&5
2390# On Suns, sometimes $CPP names a directory.
2391if test -n "$CPP" && test -d "$CPP"; then
2392 CPP=
2393fi
2394if test -z "$CPP"; then
2395if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2397else
2398 # This must be in double quotes, not single quotes, because CPP may get
2399 # substituted into the Makefile and "${CC-cc}" will confuse make.
2400 CPP="${CC-cc} -E"
2401 # On the NeXT, cc -E runs the code through the compiler's parser,
2402 # not just through cpp.
2403 cat > conftest.$ac_ext <<EOF
2404#line 2405 "configure"
2405#include "confdefs.h"
2406#include <assert.h>
2407Syntax Error
2408EOF
2409ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2410{ (eval echo configure:2411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2411ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2412if test -z "$ac_err"; then
2413 :
2414else
2415 echo "$ac_err" >&5
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 rm -rf conftest*
2419 CPP="${CC-cc} -E -traditional-cpp"
2420 cat > conftest.$ac_ext <<EOF
2421#line 2422 "configure"
2422#include "confdefs.h"
2423#include <assert.h>
2424Syntax Error
2425EOF
2426ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2427{ (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2428ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2429if test -z "$ac_err"; then
2430 :
2431else
2432 echo "$ac_err" >&5
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2435 rm -rf conftest*
2436 CPP="${CC-cc} -nologo -E"
2437 cat > conftest.$ac_ext <<EOF
2438#line 2439 "configure"
2439#include "confdefs.h"
2440#include <assert.h>
2441Syntax Error
2442EOF
2443ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2444{ (eval echo configure:2445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2445ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2446if test -z "$ac_err"; then
2447 :
2448else
2449 echo "$ac_err" >&5
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2452 rm -rf conftest*
2453 CPP=/lib/cpp
2454fi
2455rm -f conftest*
2456fi
2457rm -f conftest*
2458fi
2459rm -f conftest*
2460 ac_cv_prog_CPP="$CPP"
2461fi
2462 CPP="$ac_cv_prog_CPP"
2463else
2464 ac_cv_prog_CPP="$CPP"
2465fi
2466echo "$ac_t""$CPP" 1>&6
2467
2468ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
2469echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
2470echo "configure:2471: checking for stdio.h" >&5
2471if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2473else
2474 cat > conftest.$ac_ext <<EOF
2475#line 2476 "configure"
2476#include "confdefs.h"
2477#include <stdio.h>
2478EOF
2479ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2480{ (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2481ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2482if test -z "$ac_err"; then
2483 rm -rf conftest*
2484 eval "ac_cv_header_$ac_safe=yes"
2485else
2486 echo "$ac_err" >&5
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2489 rm -rf conftest*
2490 eval "ac_cv_header_$ac_safe=no"
2491fi
2492rm -f conftest*
2493fi
2494if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 :
2497else
2498 echo "$ac_t""no" 1>&6
2499{ echo "configure: error: Can't find stdio.h.
2500You must have a usable C system for the target already installed, at least
2501including headers and, preferably, the library, before you can configure
2502the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c',
2503then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }
2504fi
2505
2506
2507echo $ac_n "checking for built-in g77 integer types""... $ac_c" 1>&6
2508echo "configure:2509: checking for built-in g77 integer types" >&5
2509if eval "test \"`echo '$''{'libf2c_cv_has_g77_builtin_types'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2511else
2512 cat > conftest.$ac_ext <<EOF
2513#line 2514 "configure"
2514#include "confdefs.h"
2515
2516int main() {
2517__g77_integer g77i;
2518__g77_uinteger g77ui;
2519__g77_longint g77l;
2520__g77_ulongint g77ul;
2521; return 0; }
2522EOF
2523if { (eval echo configure:2524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2524 rm -rf conftest*
2525 libf2c_cv_has_g77_builtin_types=yes
2526else
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 rm -rf conftest*
2530 libf2c_cv_has_g77_builtin_types=no
2531fi
2532rm -f conftest*
2533fi
2534
2535echo "$ac_t""$libf2c_cv_has_g77_builtin_types" 1>&6
2536if test $libf2c_cv_has_g77_builtin_types = no; then
2537 { echo "configure: error: gcc doesn't define all of the built in types __g77_integer,
2538__g77_uinteger, __g77_longint, and __g77_ulongint. You may not be using
2539a new enough version of gcc, or your target may not have type sizes which
2540accommodate those types." 1>&2; exit 1; }
2541fi
2542
2543# avoid confusion in case the `makefile's from the f2c distribution have
2544# got put here
2545test -f libF77/makefile && mv libF77/makefile libF77/makefile.ori
2546test -f libI77/makefile && mv libI77/makefile libI77/makefile.ori
2547test -f libU77/makefile && mv libU77/makefile libU77/makefile.ori
2548
2549subdirs="libU77 libI77 libF77"
2550
2551# Do Makefile first since g2c.h depends on it and shouldn't get an
2552# earlier timestamp. Of course, it does when the multilib gunk below
2553# edits Makefile, sigh; see additional touch below.
2554trap '' 1 2 15
2555cat > confcache <<\EOF
2556# This file is a shell script that caches the results of configure
2557# tests run on this system so they can be shared between configure
2558# scripts and configure runs. It is not useful on other systems.
2559# If it contains results you don't want to keep, you may remove or edit it.
2560#
2561# By default, configure uses ./config.cache as the cache file,
2562# creating it if it does not exist already. You can give configure
2563# the --cache-file=FILE option to use a different cache file; that is
2564# what configure does when it calls configure scripts in
2565# subdirectories, so they share the cache.
2566# Giving --cache-file=/dev/null disables caching, for debugging configure.
2567# config.status only pays attention to the cache file if you give it the
2568# --recheck option to rerun configure.
2569#
2570EOF
2571# The following way of writing the cache mishandles newlines in values,
2572# but we know of no workaround that is simple, portable, and efficient.
2573# So, don't put newlines in cache variables' values.
2574# Ultrix sh set writes to stderr and can't be redirected directly,
2575# and sets the high bit in the cache file unless we assign to the vars.
2576(set) 2>&1 |
2577 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2578 *ac_space=\ *)
2579 # `set' does not quote correctly, so add quotes (double-quote substitution
2580 # turns \\\\ into \\, and sed turns \\ into \).
2581 sed -n \
2582 -e "s/'/'\\\\''/g" \
2583 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2584 ;;
2585 *)
2586 # `set' quotes correctly as required by POSIX, so do not add quotes.
2587 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2588 ;;
2589 esac >> confcache
2590if cmp -s $cache_file confcache; then
2591 :
2592else
2593 if test -w $cache_file; then
2594 echo "updating cache $cache_file"
2595 cat confcache > $cache_file
2596 else
2597 echo "not updating unwritable cache $cache_file"
2598 fi
2599fi
2600rm -f confcache
2601
2602trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2603
2604test "x$prefix" = xNONE && prefix=$ac_default_prefix
2605# Let make expand exec_prefix.
2606test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2607
2608# Any assignment to VPATH causes Sun make to only execute
2609# the first set of double-colon rules, so remove it if not needed.
2610# If there is a colon in the path, we need to keep it.
2611if test "x$srcdir" = x.; then
2612 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2613fi
2614
2615trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2616
2617# Transform confdefs.h into DEFS.
2618# Protect against shell expansion while executing Makefile rules.
2619# Protect against Makefile macro expansion.
2620#
2621# If the first sed substitution is executed (which looks for macros that
2622# take arguments), then we branch to the quote section. Otherwise,
2623# look for a macro that doesn't take arguments.
2624cat >confdef2opt.sed <<\_ACEOF
2625t clear
2626: clear
2627s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
2628t quote
2629s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
2630t quote
2631d
2632: quote
2633s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
2634s,\[,\\&,g
2635s,\],\\&,g
2636s,\$,$$,g
2637p
2638_ACEOF
2639# We use echo to avoid assuming a particular line-breaking character.
2640# The extra dot is to prevent the shell from consuming trailing
2641# line-breaks from the sub-command output. A line-break within
2642# single-quotes doesn't work because, if this script is created in a
2643# platform that uses two characters for line-breaks (e.g., DOS), tr
2644# would break.
2645ac_LF_and_DOT=`echo; echo .`
2646DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2647rm -f confdef2opt.sed
2648
2649
2650# Without the "./", some shells look in PATH for config.status.
2651: ${CONFIG_STATUS=./config.status}
2652
2653echo creating $CONFIG_STATUS
2654rm -f $CONFIG_STATUS
2655cat > $CONFIG_STATUS <<EOF
2656#! /bin/sh
2657# Generated automatically by configure.
2658# Run this file to recreate the current configuration.
2659# This directory was configured as follows,
2660# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2661#
2662# $0 $ac_configure_args
2663#
2664# Compiler output produced by configure, useful for debugging
2665# configure, is in ./config.log if it exists.
2666
2667ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2668for ac_option
2669do
2670 case "\$ac_option" in
2671 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2672 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2673 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2674 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2675 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2676 exit 0 ;;
2677 -help | --help | --hel | --he | --h)
2678 echo "\$ac_cs_usage"; exit 0 ;;
2679 *) echo "\$ac_cs_usage"; exit 1 ;;
2680 esac
2681done
2682
2683ac_given_srcdir=$srcdir
2684ac_given_INSTALL="$INSTALL"
2685
2686trap 'rm -fr `echo "Makefile g2c.h:g2c.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2687EOF
2688cat >> $CONFIG_STATUS <<EOF
2689
2690# Protect against being on the right side of a sed subst in config.status.
2691sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2692 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2693$ac_vpsub
2694$extrasub
2695s%@SHELL@%$SHELL%g
2696s%@CFLAGS@%$CFLAGS%g
2697s%@CPPFLAGS@%$CPPFLAGS%g
2698s%@CXXFLAGS@%$CXXFLAGS%g
2699s%@FFLAGS@%$FFLAGS%g
2700s%@DEFS@%$DEFS%g
2701s%@LDFLAGS@%$LDFLAGS%g
2702s%@LIBS@%$LIBS%g
2703s%@exec_prefix@%$exec_prefix%g
2704s%@prefix@%$prefix%g
2705s%@program_transform_name@%$program_transform_name%g
2706s%@bindir@%$bindir%g
2707s%@sbindir@%$sbindir%g
2708s%@libexecdir@%$libexecdir%g
2709s%@datadir@%$datadir%g
2710s%@sysconfdir@%$sysconfdir%g
2711s%@sharedstatedir@%$sharedstatedir%g
2712s%@localstatedir@%$localstatedir%g
2713s%@libdir@%$libdir%g
2714s%@includedir@%$includedir%g
2715s%@oldincludedir@%$oldincludedir%g
2716s%@infodir@%$infodir%g
2717s%@mandir@%$mandir%g
2718s%@toplevel_srcdir@%$toplevel_srcdir%g
2719s%@host@%$host%g
2720s%@host_alias@%$host_alias%g
2721s%@host_cpu@%$host_cpu%g
2722s%@host_vendor@%$host_vendor%g
2723s%@host_os@%$host_os%g
2724s%@target@%$target%g
2725s%@target_alias@%$target_alias%g
2726s%@target_cpu@%$target_cpu%g
2727s%@target_vendor@%$target_vendor%g
2728s%@target_os@%$target_os%g
2729s%@build@%$build%g
2730s%@build_alias@%$build_alias%g
2731s%@build_cpu@%$build_cpu%g
2732s%@build_vendor@%$build_vendor%g
2733s%@build_os@%$build_os%g
2734s%@glibcpp_builddir@%$glibcpp_builddir%g
2735s%@glibcpp_srcdir@%$glibcpp_srcdir%g
2736s%@LN_S@%$LN_S%g
2737s%@CC@%$CC%g
2738s%@AS@%$AS%g
2739s%@AR@%$AR%g
2740s%@RANLIB@%$RANLIB%g
2741s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2742s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2743s%@INSTALL_DATA@%$INSTALL_DATA%g
2744s%@EXEEXT@%$EXEEXT%g
2745s%@gcc_version@%$gcc_version%g
2746s%@gcc_version_trigger@%$gcc_version_trigger%g
2747s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
2748s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
2749s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
2750s%@OBJEXT@%$OBJEXT%g
2751s%@STRIP@%$STRIP%g
2752s%@LIBTOOL@%$LIBTOOL%g
2753s%@SET_MAKE@%$SET_MAKE%g
2754s%@CPP@%$CPP%g
2755s%@subdirs@%$subdirs%g
2756
2757CEOF
2758EOF
2759
2760cat >> $CONFIG_STATUS <<\EOF
2761
2762# Split the substitutions into bite-sized pieces for seds with
2763# small command number limits, like on Digital OSF/1 and HP-UX.
2764ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2765ac_file=1 # Number of current file.
2766ac_beg=1 # First line for current file.
2767ac_end=$ac_max_sed_cmds # Line after last line for current file.
2768ac_more_lines=:
2769ac_sed_cmds=""
2770while $ac_more_lines; do
2771 if test $ac_beg -gt 1; then
2772 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2773 else
2774 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2775 fi
2776 if test ! -s conftest.s$ac_file; then
2777 ac_more_lines=false
2778 rm -f conftest.s$ac_file
2779 else
2780 if test -z "$ac_sed_cmds"; then
2781 ac_sed_cmds="sed -f conftest.s$ac_file"
2782 else
2783 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2784 fi
2785 ac_file=`expr $ac_file + 1`
2786 ac_beg=$ac_end
2787 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2788 fi
2789done
2790if test -z "$ac_sed_cmds"; then
2791 ac_sed_cmds=cat
2792fi
2793EOF
2794
2795cat >> $CONFIG_STATUS <<EOF
2796
2797CONFIG_FILES=\${CONFIG_FILES-"Makefile g2c.h:g2c.hin"}
2798EOF
2799cat >> $CONFIG_STATUS <<\EOF
2800for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2801 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2802 case "$ac_file" in
2803 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2804 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2805 *) ac_file_in="${ac_file}.in" ;;
2806 esac
2807
2808 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2809
2810 # Remove last slash and all that follows it. Not all systems have dirname.
2811 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2812 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2813 # The file is in a subdirectory.
2814 test ! -d "$ac_dir" && mkdir "$ac_dir"
2815 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2816 # A "../" for each directory in $ac_dir_suffix.
2817 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2818 else
2819 ac_dir_suffix= ac_dots=
2820 fi
2821
2822 case "$ac_given_srcdir" in
2823 .) srcdir=.
2824 if test -z "$ac_dots"; then top_srcdir=.
2825 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2826 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2827 *) # Relative path.
2828 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2829 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2830 esac
2831
2832 case "$ac_given_INSTALL" in
2833 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2834 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2835 esac
2836
2837 echo creating "$ac_file"
2838 rm -f "$ac_file"
2839 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2840 case "$ac_file" in
2841 *Makefile*) ac_comsub="1i\\
2842# $configure_input" ;;
2843 *) ac_comsub= ;;
2844 esac
2845
2846 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2847 sed -e "$ac_comsub
2848s%@configure_input@%$configure_input%g
2849s%@srcdir@%$srcdir%g
2850s%@top_srcdir@%$top_srcdir%g
2851s%@INSTALL@%$INSTALL%g
2852" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2853fi; done
2854rm -f conftest.s*
2855
2856EOF
2857cat >> $CONFIG_STATUS <<EOF
2858srcdir=${srcdir}
2859host=${host}
2860target=${target}
2861with_target_subdir=${with_target_subdir}
2862with_multisubdir=${with_multisubdir}
2863ac_configure_args="--enable-multilib ${ac_configure_args}"
2864toplevel_srcdir=${toplevel_srcdir}
2865CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2866ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
2867
2868EOF
2869cat >> $CONFIG_STATUS <<\EOF
2870test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2871if test -n "$CONFIG_FILES"; then
2872 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
2873 if test -n "${with_target_subdir}"; then
2874 # FIXME: We shouldn't need to set ac_file
2875 ac_file=Makefile
2876 . ${toplevel_srcdir}/config-ml.in
2877 touch g2c.h # to keep it more recent than Makefile
2878 fi
2879fi
2880exit 0
2881EOF
2882chmod +x $CONFIG_STATUS
2883rm -fr confdefs* $ac_clean_files
2884test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2885
2886if test "$no_recursion" != yes; then
2887
2888 # Remove --cache-file and --srcdir arguments so they do not pile up.
2889 ac_sub_configure_args=
2890 ac_prev=
2891 for ac_arg in $ac_configure_args; do
2892 if test -n "$ac_prev"; then
2893 ac_prev=
2894 continue
2895 fi
2896 case "$ac_arg" in
2897 -cache-file | --cache-file | --cache-fil | --cache-fi \
2898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2899 ac_prev=cache_file ;;
2900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2902 ;;
2903 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2904 ac_prev=srcdir ;;
2905 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2906 ;;
2907 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2908 esac
2909 done
2910
2911 for ac_config_dir in libU77 libI77 libF77; do
2912
2913 # Do not complain, so a configure script can configure whichever
2914 # parts of a large source tree are present.
2915 if test ! -d $srcdir/$ac_config_dir; then
2916 continue
2917 fi
2918
2919 echo configuring in $ac_config_dir
2920
2921 case "$srcdir" in
2922 .) ;;
2923 *)
2924 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2925 else
2926 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2927 fi
2928 ;;
2929 esac
2930
2931 ac_popdir=`pwd`
2932 cd $ac_config_dir
2933
2934 # A "../" for each directory in /$ac_config_dir.
2935 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2936
2937 case "$srcdir" in
2938 .) # No --srcdir option. We are building in place.
2939 ac_sub_srcdir=$srcdir ;;
2940 /*) # Absolute path.
2941 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2942 *) # Relative path.
2943 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2944 esac
2945
2946 # Check for guested configure; otherwise get Cygnus style configure.
2947 if test -f $ac_sub_srcdir/configure; then
2948 ac_sub_configure=$ac_sub_srcdir/configure
2949 elif test -f $ac_sub_srcdir/configure.in; then
2950 ac_sub_configure=$ac_configure
2951 else
2952 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2953 ac_sub_configure=
2954 fi
2955
2956 # The recursion is here.
2957 if test -n "$ac_sub_configure"; then
2958
2959 # Make the cache file name correct relative to the subdirectory.
2960 case "$cache_file" in
2961 /*) ac_sub_cache_file=$cache_file ;;
2962 *) # Relative path.
2963 ac_sub_cache_file="$ac_dots$cache_file" ;;
2964 esac
2965 case "$ac_given_INSTALL" in
2966 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2967 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2968 esac
2969
2970 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2971 # The eval makes quoting arguments work.
2972 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2973 then :
2974 else
2975 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2976 fi
2977 fi
2978
2979 cd $ac_popdir
2980 done
2981fi
2982
2983
2984
Note: See TracBrowser for help on using the repository browser.