* 5nosinte.ads: Get definition of "int" from Interfaces.C.
[official-gcc.git] / libf2c / configure
blob664aeffeab20dbf3d6db59f5f7d2b42e00886552
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 sitefile=
44 srcdir=
45 target=NONE
46 verbose=
47 x_includes=NONE
48 x_libraries=NONE
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
63 subdirs=
64 MFLAGS= MAKEFLAGS=
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
67 ac_max_here_lines=12
69 ac_prev=
70 for ac_option
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
85 # Accept the important Cygnus configure options, so we can diagnose typos.
87 case "$ac_option" in
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
95 ac_prev=build ;;
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97 build="$ac_optarg" ;;
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
153 Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --site-file=FILE use FILE as the site file
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
162 [$ac_default_prefix]
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 [same as prefix]
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
169 [PREFIX/share]
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 [PREFIX/com]
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
185 cat << EOF
186 Host type:
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
201 exit 0 ;;
203 -host | --host | --hos | --ho)
204 ac_prev=host ;;
205 -host=* | --host=* | --hos=* | --ho=*)
206 host="$ac_optarg" ;;
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 ac_prev=infodir ;;
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
221 ac_prev=libdir ;;
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 ac_prev=mandir ;;
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
246 -nfp | --nfp | --nf)
247 # Obsolete; use --without-fp.
248 with_fp=no ;;
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 | --no-cr | --no-c)
252 no_create=yes ;;
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 no_recursion=yes ;;
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 ac_prev=prefix ;;
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
305 silent=yes ;;
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 ac_prev=sbindir ;;
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 | --sbi=* | --sb=*)
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
316 | --sha | --sh)
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 | --sha=* | --sh=*)
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
325 ac_prev=site ;;
326 -site=* | --site=* | --sit=*)
327 site="$ac_optarg" ;;
329 -site-file | --site-file | --site-fil | --site-fi | --site-f)
330 ac_prev=sitefile ;;
331 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
332 sitefile="$ac_optarg" ;;
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 ac_prev=srcdir ;;
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
346 -target | --target | --targe | --targ | --tar | --ta | --t)
347 ac_prev=target ;;
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 verbose=yes ;;
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.13"
356 exit 0 ;;
358 -with-* | --with-*)
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 case "$ac_option" in
366 *=*) ;;
367 *) ac_optarg=yes ;;
368 esac
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
380 --x)
381 # Obsolete; use --with-x.
382 with_x=yes ;;
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 nonopt="$ac_option"
411 esac
412 done
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
421 # 0 standard input
422 # 1 file creation
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
429 exec 6>/dev/null
430 else
431 exec 6>&1
433 exec 5>./config.log
435 echo "\
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
438 " 1>&5
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
442 ac_configure_args=
443 for ac_arg
445 case "$ac_arg" in
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 esac
454 done
456 # NLS nuisances.
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 echo > confdefs.h
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=libF77/Version.c
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
479 ac_prog=$0
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 srcdir=$ac_confdir
483 if test ! -r $srcdir/$ac_unique_file; then
484 srcdir=..
486 else
487 ac_srcdir_defaulted=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 else
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$sitefile"; then
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503 else
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 else
508 CONFIG_SITE="$sitefile"
510 for ac_site_file in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
513 . "$ac_site_file"
515 done
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
519 . $cache_file
520 else
521 echo "creating cache $cache_file"
522 > $cache_file
525 ac_ext=c
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp='$CPP $CPPFLAGS'
528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling=$ac_cv_prog_cc_cross
532 ac_exeext=
533 ac_objext=o
534 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='
538 ' ac_t=' '
539 else
540 ac_n=-n ac_c= ac_t=
542 else
543 ac_n= ac_c='\c' ac_t=
548 if test "${srcdir}" = "." ; then
549 if test "${with_target_subdir}" != "." ; then
550 topsrcdir=${with_multisrctop}../..
551 else
552 topsrcdir=${with_multisrctop}..
554 else
555 topsrcdir=${srcdir}/..
557 ac_aux_dir=
558 for ac_dir in $topsrcdir $srcdir/$topsrcdir; do
559 if test -f $ac_dir/install-sh; then
560 ac_aux_dir=$ac_dir
561 ac_install_sh="$ac_aux_dir/install-sh -c"
562 break
563 elif test -f $ac_dir/install.sh; then
564 ac_aux_dir=$ac_dir
565 ac_install_sh="$ac_aux_dir/install.sh -c"
566 break
568 done
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in $topsrcdir $srcdir/$topsrcdir" 1>&2; exit 1; }
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # If the language specific compiler does not exist, but the "gcc" directory
578 # does, we do not build anything. Note, $r is set by the top-level Makefile.
579 # Note that when we look for the compiler, we search both with and without
580 # extension to handle cross and canadian cross builds.
581 compiler_name=f771
582 rm -f skip-this-dir
583 echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
584 echo "configure:585: checking if compiler $compiler_name has been built" >&5
585 if eval "test \"`echo '$''{'g77_cv_compiler_exists'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
587 else
588 g77_cv_compiler_exists=yes
589 if test -n "$r"; then
590 if test -d "$r"/gcc; then
591 if test -f "$r"/gcc/$compiler_name \
592 || test -f "$r"/gcc/$compiler_name.exe; then
593 true
594 else
595 g77_cv_compiler_exists=no
596 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
603 echo "$ac_t""$g77_cv_compiler_exists" 1>&6
604 if test x$g77_cv_compiler_exists = xno
605 then
606 rm -f Makefile conftest* confdefs* core
607 exit 0
613 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
614 # at least currently, we never actually build a program, so we never
615 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
616 # fails, because we are probably configuring with a cross compiler
617 # which cant create executables. So we include AC_EXEEXT to keep
618 # automake happy, but we dont execute it, since we dont care about
619 # the result.
620 if false; then
621 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
622 # to nothing, so nothing would remain between `then' and `fi' if it
623 # were not for the `:' below.
625 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
626 echo "configure:627: checking for Cygwin environment" >&5
627 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
628 echo $ac_n "(cached) $ac_c" 1>&6
629 else
630 cat > conftest.$ac_ext <<EOF
631 #line 632 "configure"
632 #include "confdefs.h"
634 int main() {
636 #ifndef __CYGWIN__
637 #define __CYGWIN__ __CYGWIN32__
638 #endif
639 return __CYGWIN__;
640 ; return 0; }
642 if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
643 rm -rf conftest*
644 ac_cv_cygwin=yes
645 else
646 echo "configure: failed program was:" >&5
647 cat conftest.$ac_ext >&5
648 rm -rf conftest*
649 ac_cv_cygwin=no
651 rm -f conftest*
652 rm -f conftest*
655 echo "$ac_t""$ac_cv_cygwin" 1>&6
656 CYGWIN=
657 test "$ac_cv_cygwin" = yes && CYGWIN=yes
658 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
659 echo "configure:660: checking for mingw32 environment" >&5
660 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
662 else
663 cat > conftest.$ac_ext <<EOF
664 #line 665 "configure"
665 #include "confdefs.h"
667 int main() {
668 return __MINGW32__;
669 ; return 0; }
671 if { (eval echo configure:672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
672 rm -rf conftest*
673 ac_cv_mingw32=yes
674 else
675 echo "configure: failed program was:" >&5
676 cat conftest.$ac_ext >&5
677 rm -rf conftest*
678 ac_cv_mingw32=no
680 rm -f conftest*
681 rm -f conftest*
684 echo "$ac_t""$ac_cv_mingw32" 1>&6
685 MINGW32=
686 test "$ac_cv_mingw32" = yes && MINGW32=yes
689 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
690 echo "configure:691: checking for executable suffix" >&5
691 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
693 else
694 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
695 ac_cv_exeext=.exe
696 else
697 rm -f conftest*
698 echo 'int main () { return 0; }' > conftest.$ac_ext
699 ac_cv_exeext=
700 if { (eval echo configure:701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
701 for file in conftest.*; do
702 case $file in
703 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
704 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
705 esac
706 done
707 else
708 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
710 rm -f conftest*
711 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
715 EXEEXT=""
716 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
717 echo "$ac_t""${ac_cv_exeext}" 1>&6
718 ac_exeext=$EXEEXT
722 # For g77 we'll set CC to point at the built gcc, but this will get it into
723 # the makefiles
725 # Extract the first word of "gcc", so it can be a program name with args.
726 set dummy gcc; ac_word=$2
727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
728 echo "configure:729: checking for $ac_word" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
731 else
732 if test -n "$CC"; then
733 ac_cv_prog_CC="$CC" # Let the user override the test.
734 else
735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
736 ac_dummy="$PATH"
737 for ac_dir in $ac_dummy; do
738 test -z "$ac_dir" && ac_dir=.
739 if test -f $ac_dir/$ac_word; then
740 ac_cv_prog_CC="gcc"
741 break
743 done
744 IFS="$ac_save_ifs"
747 CC="$ac_cv_prog_CC"
748 if test -n "$CC"; then
749 echo "$ac_t""$CC" 1>&6
750 else
751 echo "$ac_t""no" 1>&6
754 if test -z "$CC"; then
755 # Extract the first word of "cc", so it can be a program name with args.
756 set dummy cc; ac_word=$2
757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
758 echo "configure:759: checking for $ac_word" >&5
759 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
761 else
762 if test -n "$CC"; then
763 ac_cv_prog_CC="$CC" # Let the user override the test.
764 else
765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 ac_prog_rejected=no
767 ac_dummy="$PATH"
768 for ac_dir in $ac_dummy; do
769 test -z "$ac_dir" && ac_dir=.
770 if test -f $ac_dir/$ac_word; then
771 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
772 ac_prog_rejected=yes
773 continue
775 ac_cv_prog_CC="cc"
776 break
778 done
779 IFS="$ac_save_ifs"
780 if test $ac_prog_rejected = yes; then
781 # We found a bogon in the path, so make sure we never use it.
782 set dummy $ac_cv_prog_CC
783 shift
784 if test $# -gt 0; then
785 # We chose a different compiler from the bogus one.
786 # However, it has the same basename, so the bogon will be chosen
787 # first if we set CC to just the basename; use the full file name.
788 shift
789 set dummy "$ac_dir/$ac_word" "$@"
790 shift
791 ac_cv_prog_CC="$@"
796 CC="$ac_cv_prog_CC"
797 if test -n "$CC"; then
798 echo "$ac_t""$CC" 1>&6
799 else
800 echo "$ac_t""no" 1>&6
803 if test -z "$CC"; then
804 case "`uname -s`" in
805 *win32* | *WIN32*)
806 # Extract the first word of "cl", so it can be a program name with args.
807 set dummy cl; ac_word=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809 echo "configure:810: checking for $ac_word" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
812 else
813 if test -n "$CC"; then
814 ac_cv_prog_CC="$CC" # Let the user override the test.
815 else
816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
817 ac_dummy="$PATH"
818 for ac_dir in $ac_dummy; do
819 test -z "$ac_dir" && ac_dir=.
820 if test -f $ac_dir/$ac_word; then
821 ac_cv_prog_CC="cl"
822 break
824 done
825 IFS="$ac_save_ifs"
828 CC="$ac_cv_prog_CC"
829 if test -n "$CC"; then
830 echo "$ac_t""$CC" 1>&6
831 else
832 echo "$ac_t""no" 1>&6
835 esac
837 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
841 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
842 echo "configure:843: checking whether we are using GNU C" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
845 else
846 cat > conftest.c <<EOF
847 #ifdef __GNUC__
848 yes;
849 #endif
851 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
852 ac_cv_prog_gcc=yes
853 else
854 ac_cv_prog_gcc=no
858 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
860 if test $ac_cv_prog_gcc = yes; then
861 GCC=yes
862 else
863 GCC=
866 ac_test_CFLAGS="${CFLAGS+set}"
867 ac_save_CFLAGS="$CFLAGS"
868 CFLAGS=
869 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
870 echo "configure:871: checking whether ${CC-cc} accepts -g" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
873 else
874 echo 'void f(){}' > conftest.c
875 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
876 ac_cv_prog_cc_g=yes
877 else
878 ac_cv_prog_cc_g=no
880 rm -f conftest*
884 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
885 if test "$ac_test_CFLAGS" = set; then
886 CFLAGS="$ac_save_CFLAGS"
887 elif test $ac_cv_prog_cc_g = yes; then
888 if test "$GCC" = yes; then
889 CFLAGS="-g -O2"
890 else
891 CFLAGS="-g"
893 else
894 if test "$GCC" = yes; then
895 CFLAGS="-O2"
896 else
897 CFLAGS=
901 # Check whether --enable-shared or --disable-shared was given.
902 if test "${enable_shared+set}" = set; then
903 enableval="$enable_shared"
904 p=${PACKAGE-default}
905 case $enableval in
906 yes) enable_shared=yes ;;
907 no) enable_shared=no ;;
909 enable_shared=no
910 # Look at the argument we got. We use all the common list separators.
911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
912 for pkg in $enableval; do
913 if test "X$pkg" = "X$p"; then
914 enable_shared=yes
916 done
917 IFS="$ac_save_ifs"
919 esac
920 else
921 enable_shared=yes
924 # Check whether --enable-static or --disable-static was given.
925 if test "${enable_static+set}" = set; then
926 enableval="$enable_static"
927 p=${PACKAGE-default}
928 case $enableval in
929 yes) enable_static=yes ;;
930 no) enable_static=no ;;
932 enable_static=no
933 # Look at the argument we got. We use all the common list separators.
934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
935 for pkg in $enableval; do
936 if test "X$pkg" = "X$p"; then
937 enable_static=yes
939 done
940 IFS="$ac_save_ifs"
942 esac
943 else
944 enable_static=yes
947 # Check whether --enable-fast-install or --disable-fast-install was given.
948 if test "${enable_fast_install+set}" = set; then
949 enableval="$enable_fast_install"
950 p=${PACKAGE-default}
951 case $enableval in
952 yes) enable_fast_install=yes ;;
953 no) enable_fast_install=no ;;
955 enable_fast_install=no
956 # Look at the argument we got. We use all the common list separators.
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
958 for pkg in $enableval; do
959 if test "X$pkg" = "X$p"; then
960 enable_fast_install=yes
962 done
963 IFS="$ac_save_ifs"
965 esac
966 else
967 enable_fast_install=yes
971 # Make sure we can run config.sub.
972 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
973 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
976 echo $ac_n "checking host system type""... $ac_c" 1>&6
977 echo "configure:978: checking host system type" >&5
979 host_alias=$host
980 case "$host_alias" in
981 NONE)
982 case $nonopt in
983 NONE)
984 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
985 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
986 fi ;;
987 *) host_alias=$nonopt ;;
988 esac ;;
989 esac
991 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
992 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
993 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
994 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
995 echo "$ac_t""$host" 1>&6
997 echo $ac_n "checking build system type""... $ac_c" 1>&6
998 echo "configure:999: checking build system type" >&5
1000 build_alias=$build
1001 case "$build_alias" in
1002 NONE)
1003 case $nonopt in
1004 NONE) build_alias=$host_alias ;;
1005 *) build_alias=$nonopt ;;
1006 esac ;;
1007 esac
1009 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1010 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1011 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1012 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013 echo "$ac_t""$build" 1>&6
1015 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1016 if test "${with_gnu_ld+set}" = set; then
1017 withval="$with_gnu_ld"
1018 test "$withval" = no || with_gnu_ld=yes
1019 else
1020 with_gnu_ld=no
1023 ac_prog=ld
1024 if test "$GCC" = yes; then
1025 # Check if gcc -print-prog-name=ld gives a path.
1026 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1027 echo "configure:1028: checking for ld used by GCC" >&5
1028 case $host in
1029 *-*-mingw*)
1030 # gcc leaves a trailing carriage return which upsets mingw
1031 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1033 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1034 esac
1035 case $ac_prog in
1036 # Accept absolute paths.
1037 [\\/]* | [A-Za-z]:[\\/]*)
1038 re_direlt='/[^/][^/]*/\.\./'
1039 # Canonicalize the path of ld
1040 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1041 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1042 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1043 done
1044 test -z "$LD" && LD="$ac_prog"
1047 # If it fails, then pretend we aren't using GCC.
1048 ac_prog=ld
1051 # If it is relative, then search for the first ld in PATH.
1052 with_gnu_ld=unknown
1054 esac
1055 elif test "$with_gnu_ld" = yes; then
1056 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1057 echo "configure:1058: checking for GNU ld" >&5
1058 else
1059 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1060 echo "configure:1061: checking for non-GNU ld" >&5
1062 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1064 else
1065 if test -z "$LD"; then
1066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1067 for ac_dir in $PATH; do
1068 test -z "$ac_dir" && ac_dir=.
1069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1070 lt_cv_path_LD="$ac_dir/$ac_prog"
1071 # Check to see if the program is GNU ld. I'd rather use --version,
1072 # but apparently some GNU ld's only accept -v.
1073 # Break only if it was the GNU/non-GNU ld that we prefer.
1074 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1075 test "$with_gnu_ld" != no && break
1076 else
1077 test "$with_gnu_ld" != yes && break
1080 done
1081 IFS="$ac_save_ifs"
1082 else
1083 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1087 LD="$lt_cv_path_LD"
1088 if test -n "$LD"; then
1089 echo "$ac_t""$LD" 1>&6
1090 else
1091 echo "$ac_t""no" 1>&6
1093 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1094 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1095 echo "configure:1096: checking if the linker ($LD) is GNU ld" >&5
1096 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1098 else
1099 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1100 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1101 lt_cv_prog_gnu_ld=yes
1102 else
1103 lt_cv_prog_gnu_ld=no
1107 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1108 with_gnu_ld=$lt_cv_prog_gnu_ld
1111 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $LD option to reload object files" >&5
1113 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 lt_cv_ld_reload_flag='-r'
1119 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1120 reload_flag=$lt_cv_ld_reload_flag
1121 test -n "$reload_flag" && reload_flag=" $reload_flag"
1123 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1124 echo "configure:1125: checking for BSD-compatible nm" >&5
1125 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1127 else
1128 if test -n "$NM"; then
1129 # Let the user override the test.
1130 lt_cv_path_NM="$NM"
1131 else
1132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1133 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1134 test -z "$ac_dir" && ac_dir=.
1135 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1136 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1137 # Check to see if the nm accepts a BSD-compat flag.
1138 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1139 # nm: unknown option "B" ignored
1140 # Tru64's nm complains that /dev/null is an invalid object file
1141 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1142 lt_cv_path_NM="$tmp_nm -B"
1143 break
1144 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1145 lt_cv_path_NM="$tmp_nm -p"
1146 break
1147 else
1148 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1149 continue # so that we can try to find one that supports BSD flags
1152 done
1153 IFS="$ac_save_ifs"
1154 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1158 NM="$lt_cv_path_NM"
1159 echo "$ac_t""$NM" 1>&6
1161 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether ln -s works" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165 else
1166 rm -f conftestdata
1167 if ln -s X conftestdata 2>/dev/null
1168 then
1169 rm -f conftestdata
1170 ac_cv_prog_LN_S="ln -s"
1171 else
1172 ac_cv_prog_LN_S=ln
1175 LN_S="$ac_cv_prog_LN_S"
1176 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1177 echo "$ac_t""yes" 1>&6
1178 else
1179 echo "$ac_t""no" 1>&6
1182 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1183 echo "configure:1184: checking how to recognise dependant libraries" >&5
1184 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1186 else
1187 lt_cv_file_magic_cmd='$MAGIC_CMD'
1188 lt_cv_file_magic_test_file=
1189 lt_cv_deplibs_check_method='unknown'
1190 # Need to set the preceding variable on all platforms that support
1191 # interlibrary dependencies.
1192 # 'none' -- dependencies not supported.
1193 # `unknown' -- same as none, but documents that we really don't know.
1194 # 'pass_all' -- all dependencies passed with no checks.
1195 # 'test_compile' -- check by making test program.
1196 # 'file_magic [regex]' -- check by looking for files in library path
1197 # which responds to the $file_magic_cmd with a given egrep regex.
1198 # If you have `file' or equivalent on your system and you're not sure
1199 # whether `pass_all' will *always* work, you probably want this one.
1201 case $host_os in
1202 aix*)
1203 lt_cv_deplibs_check_method=pass_all
1206 beos*)
1207 lt_cv_deplibs_check_method=pass_all
1210 bsdi4*)
1211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1212 lt_cv_file_magic_cmd='/usr/bin/file -L'
1213 lt_cv_file_magic_test_file=/shlib/libc.so
1216 cygwin* | mingw* |pw32*)
1217 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1218 lt_cv_file_magic_cmd='$OBJDUMP -f'
1221 darwin* | rhapsody*)
1222 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1223 lt_cv_file_magic_cmd='/usr/bin/file -L'
1224 case "$host_os" in
1225 rhapsody* | darwin1.012)
1226 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1228 *) # Darwin 1.3 on
1229 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1231 esac
1234 freebsd* )
1235 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1236 case $host_cpu in
1237 i*86 )
1238 # Not sure whether the presence of OpenBSD here was a mistake.
1239 # Let's accept both of them until this is cleared up.
1240 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1241 lt_cv_file_magic_cmd=/usr/bin/file
1242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1244 esac
1245 else
1246 lt_cv_deplibs_check_method=pass_all
1250 gnu*)
1251 lt_cv_deplibs_check_method=pass_all
1254 hpux10.20*|hpux11*)
1255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1256 lt_cv_file_magic_cmd=/usr/bin/file
1257 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1260 irix5* | irix6*)
1261 case $host_os in
1262 irix5*)
1263 # this will be overridden with pass_all, but let us keep it just in case
1264 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1267 case $LD in
1268 *-32|*"-32 ") libmagic=32-bit;;
1269 *-n32|*"-n32 ") libmagic=N32;;
1270 *-64|*"-64 ") libmagic=64-bit;;
1271 *) libmagic=never-match;;
1272 esac
1273 # this will be overridden with pass_all, but let us keep it just in case
1274 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1276 esac
1277 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1278 lt_cv_deplibs_check_method=pass_all
1281 # This must be Linux ELF.
1282 linux-gnu*)
1283 case $host_cpu in
1284 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1285 lt_cv_deplibs_check_method=pass_all ;;
1287 # glibc up to 2.1.1 does not perform some relocations on ARM
1288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1289 esac
1290 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1293 netbsd*)
1294 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1295 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1296 else
1297 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1301 newsos6)
1302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1303 lt_cv_file_magic_cmd=/usr/bin/file
1304 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1307 osf3* | osf4* | osf5*)
1308 # this will be overridden with pass_all, but let us keep it just in case
1309 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1310 lt_cv_file_magic_test_file=/shlib/libc.so
1311 lt_cv_deplibs_check_method=pass_all
1314 sco3.2v5*)
1315 lt_cv_deplibs_check_method=pass_all
1318 solaris*)
1319 lt_cv_deplibs_check_method=pass_all
1320 lt_cv_file_magic_test_file=/lib/libc.so
1323 sysv5uw[78]* | sysv4*uw2*)
1324 lt_cv_deplibs_check_method=pass_all
1327 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1328 case $host_vendor in
1329 ncr)
1330 lt_cv_deplibs_check_method=pass_all
1332 motorola)
1333 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]'
1334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1336 esac
1338 esac
1342 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1343 file_magic_cmd=$lt_cv_file_magic_cmd
1344 deplibs_check_method=$lt_cv_deplibs_check_method
1346 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1347 echo "configure:1348: checking for object suffix" >&5
1348 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351 rm -f conftest*
1352 echo 'int i = 1;' > conftest.$ac_ext
1353 if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1354 for ac_file in conftest.*; do
1355 case $ac_file in
1356 *.c) ;;
1357 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1358 esac
1359 done
1360 else
1361 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1363 rm -f conftest*
1366 echo "$ac_t""$ac_cv_objext" 1>&6
1367 OBJEXT=$ac_cv_objext
1368 ac_objext=$ac_cv_objext
1370 if test $host != $build; then
1371 ac_tool_prefix=${host_alias}-
1372 else
1373 ac_tool_prefix=
1376 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1378 # Only perform the check for file, if the check method requires it
1379 case $deplibs_check_method in
1380 file_magic*)
1381 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1382 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1383 echo "configure:1384: checking for ${ac_tool_prefix}file" >&5
1384 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1386 else
1387 case $MAGIC_CMD in
1389 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1391 ?:/*)
1392 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1395 ac_save_MAGIC_CMD="$MAGIC_CMD"
1396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1397 ac_dummy="/usr/bin:$PATH"
1398 for ac_dir in $ac_dummy; do
1399 test -z "$ac_dir" && ac_dir=.
1400 if test -f $ac_dir/${ac_tool_prefix}file; then
1401 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1402 if test -n "$file_magic_test_file"; then
1403 case $deplibs_check_method in
1404 "file_magic "*)
1405 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1408 egrep "$file_magic_regex" > /dev/null; then
1410 else
1411 cat <<EOF 1>&2
1413 *** Warning: the command libtool uses to detect shared libraries,
1414 *** $file_magic_cmd, produces output that libtool cannot recognize.
1415 *** The result is that libtool may fail to recognize shared libraries
1416 *** as such. This will affect the creation of libtool libraries that
1417 *** depend on shared libraries, but programs linked with such libtool
1418 *** libraries will work regardless of this problem. Nevertheless, you
1419 *** may want to report the problem to your system manager and/or to
1420 *** bug-libtool@gnu.org
1423 fi ;;
1424 esac
1426 break
1428 done
1429 IFS="$ac_save_ifs"
1430 MAGIC_CMD="$ac_save_MAGIC_CMD"
1432 esac
1435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1436 if test -n "$MAGIC_CMD"; then
1437 echo "$ac_t""$MAGIC_CMD" 1>&6
1438 else
1439 echo "$ac_t""no" 1>&6
1442 if test -z "$lt_cv_path_MAGIC_CMD"; then
1443 if test -n "$ac_tool_prefix"; then
1444 echo $ac_n "checking for file""... $ac_c" 1>&6
1445 echo "configure:1446: checking for file" >&5
1446 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448 else
1449 case $MAGIC_CMD in
1451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1453 ?:/*)
1454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1457 ac_save_MAGIC_CMD="$MAGIC_CMD"
1458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1459 ac_dummy="/usr/bin:$PATH"
1460 for ac_dir in $ac_dummy; do
1461 test -z "$ac_dir" && ac_dir=.
1462 if test -f $ac_dir/file; then
1463 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1464 if test -n "$file_magic_test_file"; then
1465 case $deplibs_check_method in
1466 "file_magic "*)
1467 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1470 egrep "$file_magic_regex" > /dev/null; then
1472 else
1473 cat <<EOF 1>&2
1475 *** Warning: the command libtool uses to detect shared libraries,
1476 *** $file_magic_cmd, produces output that libtool cannot recognize.
1477 *** The result is that libtool may fail to recognize shared libraries
1478 *** as such. This will affect the creation of libtool libraries that
1479 *** depend on shared libraries, but programs linked with such libtool
1480 *** libraries will work regardless of this problem. Nevertheless, you
1481 *** may want to report the problem to your system manager and/or to
1482 *** bug-libtool@gnu.org
1485 fi ;;
1486 esac
1488 break
1490 done
1491 IFS="$ac_save_ifs"
1492 MAGIC_CMD="$ac_save_MAGIC_CMD"
1494 esac
1497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1498 if test -n "$MAGIC_CMD"; then
1499 echo "$ac_t""$MAGIC_CMD" 1>&6
1500 else
1501 echo "$ac_t""no" 1>&6
1504 else
1505 MAGIC_CMD=:
1511 esac
1513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1516 echo "configure:1517: checking for $ac_word" >&5
1517 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1519 else
1520 if test -n "$RANLIB"; then
1521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1522 else
1523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1524 ac_dummy="$PATH"
1525 for ac_dir in $ac_dummy; do
1526 test -z "$ac_dir" && ac_dir=.
1527 if test -f $ac_dir/$ac_word; then
1528 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1529 break
1531 done
1532 IFS="$ac_save_ifs"
1535 RANLIB="$ac_cv_prog_RANLIB"
1536 if test -n "$RANLIB"; then
1537 echo "$ac_t""$RANLIB" 1>&6
1538 else
1539 echo "$ac_t""no" 1>&6
1543 if test -z "$ac_cv_prog_RANLIB"; then
1544 if test -n "$ac_tool_prefix"; then
1545 # Extract the first word of "ranlib", so it can be a program name with args.
1546 set dummy ranlib; ac_word=$2
1547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1548 echo "configure:1549: checking for $ac_word" >&5
1549 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1551 else
1552 if test -n "$RANLIB"; then
1553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1554 else
1555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1556 ac_dummy="$PATH"
1557 for ac_dir in $ac_dummy; do
1558 test -z "$ac_dir" && ac_dir=.
1559 if test -f $ac_dir/$ac_word; then
1560 ac_cv_prog_RANLIB="ranlib"
1561 break
1563 done
1564 IFS="$ac_save_ifs"
1565 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1568 RANLIB="$ac_cv_prog_RANLIB"
1569 if test -n "$RANLIB"; then
1570 echo "$ac_t""$RANLIB" 1>&6
1571 else
1572 echo "$ac_t""no" 1>&6
1575 else
1576 RANLIB=":"
1580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1581 set dummy ${ac_tool_prefix}strip; ac_word=$2
1582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1583 echo "configure:1584: checking for $ac_word" >&5
1584 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587 if test -n "$STRIP"; then
1588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1589 else
1590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1591 ac_dummy="$PATH"
1592 for ac_dir in $ac_dummy; do
1593 test -z "$ac_dir" && ac_dir=.
1594 if test -f $ac_dir/$ac_word; then
1595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1596 break
1598 done
1599 IFS="$ac_save_ifs"
1602 STRIP="$ac_cv_prog_STRIP"
1603 if test -n "$STRIP"; then
1604 echo "$ac_t""$STRIP" 1>&6
1605 else
1606 echo "$ac_t""no" 1>&6
1610 if test -z "$ac_cv_prog_STRIP"; then
1611 if test -n "$ac_tool_prefix"; then
1612 # Extract the first word of "strip", so it can be a program name with args.
1613 set dummy strip; ac_word=$2
1614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1615 echo "configure:1616: checking for $ac_word" >&5
1616 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1618 else
1619 if test -n "$STRIP"; then
1620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1621 else
1622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1623 ac_dummy="$PATH"
1624 for ac_dir in $ac_dummy; do
1625 test -z "$ac_dir" && ac_dir=.
1626 if test -f $ac_dir/$ac_word; then
1627 ac_cv_prog_STRIP="strip"
1628 break
1630 done
1631 IFS="$ac_save_ifs"
1632 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1635 STRIP="$ac_cv_prog_STRIP"
1636 if test -n "$STRIP"; then
1637 echo "$ac_t""$STRIP" 1>&6
1638 else
1639 echo "$ac_t""no" 1>&6
1642 else
1643 STRIP=":"
1648 # Check for any special flags to pass to ltconfig.
1649 libtool_flags="--cache-file=$cache_file"
1650 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1651 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1652 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1653 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1654 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1657 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1658 if test "${enable_libtool_lock+set}" = set; then
1659 enableval="$enable_libtool_lock"
1663 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1664 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1666 # Check whether --with-pic or --without-pic was given.
1667 if test "${with_pic+set}" = set; then
1668 withval="$with_pic"
1669 pic_mode="$withval"
1670 else
1671 pic_mode=default
1674 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1675 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1677 # Some flags need to be propagated to the compiler or linker for good
1678 # libtool support.
1679 case $host in
1680 *-*-irix6*)
1681 # Find out which ABI we are using.
1682 echo '#line 1683 "configure"' > conftest.$ac_ext
1683 if { (eval echo configure:1684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1684 case `/usr/bin/file conftest.$ac_objext` in
1685 *32-bit*)
1686 LD="${LD-ld} -32"
1688 *N32*)
1689 LD="${LD-ld} -n32"
1691 *64-bit*)
1692 LD="${LD-ld} -64"
1694 esac
1696 rm -rf conftest*
1699 *-*-sco3.2v5*)
1700 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1701 SAVE_CFLAGS="$CFLAGS"
1702 CFLAGS="$CFLAGS -belf"
1703 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1704 echo "configure:1705: checking whether the C compiler needs -belf" >&5
1705 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1707 else
1709 ac_ext=c
1710 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1711 ac_cpp='$CPP $CPPFLAGS'
1712 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1713 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1714 cross_compiling=$ac_cv_prog_cc_cross
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1720 int main() {
1722 ; return 0; }
1724 if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1725 rm -rf conftest*
1726 lt_cv_cc_needs_belf=yes
1727 else
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1730 rm -rf conftest*
1731 lt_cv_cc_needs_belf=no
1733 rm -f conftest*
1734 ac_ext=c
1735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1736 ac_cpp='$CPP $CPPFLAGS'
1737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1739 cross_compiling=$ac_cv_prog_cc_cross
1743 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1744 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1745 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1746 CFLAGS="$SAVE_CFLAGS"
1751 esac
1754 # Save cache, so that ltconfig can load it
1755 cat > confcache <<\EOF
1756 # This file is a shell script that caches the results of configure
1757 # tests run on this system so they can be shared between configure
1758 # scripts and configure runs. It is not useful on other systems.
1759 # If it contains results you don't want to keep, you may remove or edit it.
1761 # By default, configure uses ./config.cache as the cache file,
1762 # creating it if it does not exist already. You can give configure
1763 # the --cache-file=FILE option to use a different cache file; that is
1764 # what configure does when it calls configure scripts in
1765 # subdirectories, so they share the cache.
1766 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1767 # config.status only pays attention to the cache file if you give it the
1768 # --recheck option to rerun configure.
1771 # The following way of writing the cache mishandles newlines in values,
1772 # but we know of no workaround that is simple, portable, and efficient.
1773 # So, don't put newlines in cache variables' values.
1774 # Ultrix sh set writes to stderr and can't be redirected directly,
1775 # and sets the high bit in the cache file unless we assign to the vars.
1776 (set) 2>&1 |
1777 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1778 *ac_space=\ *)
1779 # `set' does not quote correctly, so add quotes (double-quote substitution
1780 # turns \\\\ into \\, and sed turns \\ into \).
1781 sed -n \
1782 -e "s/'/'\\\\''/g" \
1783 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1786 # `set' quotes correctly as required by POSIX, so do not add quotes.
1787 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1789 esac >> confcache
1790 if cmp -s $cache_file confcache; then
1792 else
1793 if test -w $cache_file; then
1794 echo "updating cache $cache_file"
1795 cat confcache > $cache_file
1796 else
1797 echo "not updating unwritable cache $cache_file"
1800 rm -f confcache
1803 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1804 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1805 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1806 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1807 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1808 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1809 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1810 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1811 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1812 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1814 # Reload cache, that may have been modified by ltconfig
1815 if test -r "$cache_file"; then
1816 echo "loading cache $cache_file"
1817 . $cache_file
1818 else
1819 echo "creating cache $cache_file"
1820 > $cache_file
1824 # This can be used to rebuild libtool when needed
1825 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1827 # Always use our own libtool.
1828 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1830 # Redirect the config.log output again, so that the ltconfig log is not
1831 # clobbered by the next message.
1832 exec 5>>./config.log
1840 test "$AR" || AR=ar
1842 if test "$RANLIB"; then :
1844 else
1845 # Extract the first word of "ranlib", so it can be a program name with args.
1846 set dummy ranlib; ac_word=$2
1847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_word" >&5
1849 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851 else
1852 if test -n "$RANLIB"; then
1853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1854 else
1855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 ac_dummy="$PATH"
1857 for ac_dir in $ac_dummy; do
1858 test -z "$ac_dir" && ac_dir=.
1859 if test -f $ac_dir/$ac_word; then
1860 ac_cv_prog_RANLIB="ranlib"
1861 break
1863 done
1864 IFS="$ac_save_ifs"
1865 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1868 RANLIB="$ac_cv_prog_RANLIB"
1869 if test -n "$RANLIB"; then
1870 echo "$ac_t""$RANLIB" 1>&6
1871 else
1872 echo "$ac_t""no" 1>&6
1876 # Find a good install program. We prefer a C program (faster),
1877 # so one script is as good as another. But avoid the broken or
1878 # incompatible versions:
1879 # SysV /etc/install, /usr/sbin/install
1880 # SunOS /usr/etc/install
1881 # IRIX /sbin/install
1882 # AIX /bin/install
1883 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1884 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1885 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1886 # ./install, which can be erroneously created by make from ./install.sh.
1887 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1888 echo "configure:1889: checking for a BSD compatible install" >&5
1889 if test -z "$INSTALL"; then
1890 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1892 else
1893 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1894 for ac_dir in $PATH; do
1895 # Account for people who put trailing slashes in PATH elements.
1896 case "$ac_dir/" in
1897 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1899 # OSF1 and SCO ODT 3.0 have their own names for install.
1900 # Don't use installbsd from OSF since it installs stuff as root
1901 # by default.
1902 for ac_prog in ginstall scoinst install; do
1903 if test -f $ac_dir/$ac_prog; then
1904 if test $ac_prog = install &&
1905 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1906 # AIX install. It has an incompatible calling convention.
1908 else
1909 ac_cv_path_install="$ac_dir/$ac_prog -c"
1910 break 2
1913 done
1915 esac
1916 done
1917 IFS="$ac_save_IFS"
1920 if test "${ac_cv_path_install+set}" = set; then
1921 INSTALL="$ac_cv_path_install"
1922 else
1923 # As a last resort, use the slow shell script. We don't cache a
1924 # path for INSTALL within a source directory, because that will
1925 # break other packages using the cache if that directory is
1926 # removed, or if the path is relative.
1927 INSTALL="$ac_install_sh"
1930 echo "$ac_t""$INSTALL" 1>&6
1932 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1933 # It thinks the first close brace ends the variable substitution.
1934 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1936 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1938 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1940 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1941 echo "configure:1942: checking whether ${MAKE-make} sets \${MAKE}" >&5
1942 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1943 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1945 else
1946 cat > conftestmake <<\EOF
1947 all:
1948 @echo 'ac_maketemp="${MAKE}"'
1950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1951 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1952 if test -n "$ac_maketemp"; then
1953 eval ac_cv_prog_make_${ac_make}_set=yes
1954 else
1955 eval ac_cv_prog_make_${ac_make}_set=no
1957 rm -f conftestmake
1959 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1960 echo "$ac_t""yes" 1>&6
1961 SET_MAKE=
1962 else
1963 echo "$ac_t""no" 1>&6
1964 SET_MAKE="MAKE=${MAKE-make}"
1968 # Sanity check for the cross-compilation case:
1969 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1970 echo "configure:1971: checking how to run the C preprocessor" >&5
1971 # On Suns, sometimes $CPP names a directory.
1972 if test -n "$CPP" && test -d "$CPP"; then
1973 CPP=
1975 if test -z "$CPP"; then
1976 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1978 else
1979 # This must be in double quotes, not single quotes, because CPP may get
1980 # substituted into the Makefile and "${CC-cc}" will confuse make.
1981 CPP="${CC-cc} -E"
1982 # On the NeXT, cc -E runs the code through the compiler's parser,
1983 # not just through cpp.
1984 cat > conftest.$ac_ext <<EOF
1985 #line 1986 "configure"
1986 #include "confdefs.h"
1987 #include <assert.h>
1988 Syntax Error
1990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1991 { (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1993 if test -z "$ac_err"; then
1995 else
1996 echo "$ac_err" >&5
1997 echo "configure: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
1999 rm -rf conftest*
2000 CPP="${CC-cc} -E -traditional-cpp"
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 #include <assert.h>
2005 Syntax Error
2007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then
2012 else
2013 echo "$ac_err" >&5
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2016 rm -rf conftest*
2017 CPP="${CC-cc} -nologo -E"
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2021 #include <assert.h>
2022 Syntax Error
2024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2025 { (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2027 if test -z "$ac_err"; then
2029 else
2030 echo "$ac_err" >&5
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2033 rm -rf conftest*
2034 CPP=/lib/cpp
2036 rm -f conftest*
2038 rm -f conftest*
2040 rm -f conftest*
2041 ac_cv_prog_CPP="$CPP"
2043 CPP="$ac_cv_prog_CPP"
2044 else
2045 ac_cv_prog_CPP="$CPP"
2047 echo "$ac_t""$CPP" 1>&6
2049 ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
2050 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
2051 echo "configure:2052: checking for stdio.h" >&5
2052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2054 else
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 #include <stdio.h>
2060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2061 { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2063 if test -z "$ac_err"; then
2064 rm -rf conftest*
2065 eval "ac_cv_header_$ac_safe=yes"
2066 else
2067 echo "$ac_err" >&5
2068 echo "configure: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2070 rm -rf conftest*
2071 eval "ac_cv_header_$ac_safe=no"
2073 rm -f conftest*
2075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2076 echo "$ac_t""yes" 1>&6
2078 else
2079 echo "$ac_t""no" 1>&6
2080 { echo "configure: error: Can't find stdio.h.
2081 You must have a usable C system for the target already installed, at least
2082 including headers and, preferably, the library, before you can configure
2083 the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c',
2084 then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }
2088 echo $ac_n "checking for built-in g77 integer types""... $ac_c" 1>&6
2089 echo "configure:2090: checking for built-in g77 integer types" >&5
2090 if eval "test \"`echo '$''{'libf2c_cv_has_g77_builtin_types'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2097 int main() {
2098 __g77_integer g77i;
2099 __g77_uinteger g77ui;
2100 __g77_longint g77l;
2101 __g77_ulongint g77ul;
2102 ; return 0; }
2104 if { (eval echo configure:2105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2105 rm -rf conftest*
2106 libf2c_cv_has_g77_builtin_types=yes
2107 else
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2110 rm -rf conftest*
2111 libf2c_cv_has_g77_builtin_types=no
2113 rm -f conftest*
2116 echo "$ac_t""$libf2c_cv_has_g77_builtin_types" 1>&6
2117 if test $libf2c_cv_has_g77_builtin_types = no; then
2118 { echo "configure: error: gcc doesn't define all of the built in types __g77_integer,
2119 __g77_uinteger, __g77_longint, and __g77_ulongint. You may not be using
2120 a new enough version of gcc, or your target may not have type sizes which
2121 accommodate those types." 1>&2; exit 1; }
2124 # avoid confusion in case the `makefile's from the f2c distribution have
2125 # got put here
2126 test -f libF77/makefile && mv libF77/makefile libF77/makefile.ori
2127 test -f libI77/makefile && mv libI77/makefile libI77/makefile.ori
2128 test -f libU77/makefile && mv libU77/makefile libU77/makefile.ori
2130 # Get the version trigger filename from the toplevel
2131 if [ "${with_gcc_version_trigger+set}" = set ]; then
2132 gcc_version_trigger=$with_gcc_version_trigger
2133 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
2134 else
2135 gcc_version_trigger=
2136 gcc_version=UNKNOWN
2142 # Do some error checking and defaulting for the host and target type.
2143 # The inputs are:
2144 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
2146 # The rules are:
2147 # 1. You are not allowed to specify --host, --target, and nonopt at the
2148 # same time.
2149 # 2. Host defaults to nonopt.
2150 # 3. If nonopt is not specified, then host defaults to the current host,
2151 # as determined by config.guess.
2152 # 4. Target and build default to nonopt.
2153 # 5. If nonopt is not specified, then target and build default to host.
2155 # The aliases save the names the user supplied, while $host etc.
2156 # will get canonicalized.
2157 case $host---$target---$nonopt in
2158 NONE---*---* | *---NONE---* | *---*---NONE) ;;
2159 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
2160 esac
2163 # Make sure we can run config.sub.
2164 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2165 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2168 echo $ac_n "checking host system type""... $ac_c" 1>&6
2169 echo "configure:2170: checking host system type" >&5
2171 host_alias=$host
2172 case "$host_alias" in
2173 NONE)
2174 case $nonopt in
2175 NONE)
2176 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2177 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2178 fi ;;
2179 *) host_alias=$nonopt ;;
2180 esac ;;
2181 esac
2183 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2184 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2185 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2186 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2187 echo "$ac_t""$host" 1>&6
2189 echo $ac_n "checking target system type""... $ac_c" 1>&6
2190 echo "configure:2191: checking target system type" >&5
2192 target_alias=$target
2193 case "$target_alias" in
2194 NONE)
2195 case $nonopt in
2196 NONE) target_alias=$host_alias ;;
2197 *) target_alias=$nonopt ;;
2198 esac ;;
2199 esac
2201 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
2202 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2203 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2204 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2205 echo "$ac_t""$target" 1>&6
2207 echo $ac_n "checking build system type""... $ac_c" 1>&6
2208 echo "configure:2209: checking build system type" >&5
2210 build_alias=$build
2211 case "$build_alias" in
2212 NONE)
2213 case $nonopt in
2214 NONE) build_alias=$host_alias ;;
2215 *) build_alias=$nonopt ;;
2216 esac ;;
2217 esac
2219 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2220 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2221 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2222 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2223 echo "$ac_t""$build" 1>&6
2225 test "$host_alias" != "$target_alias" &&
2226 test "$program_prefix$program_suffix$program_transform_name" = \
2227 NONENONEs,x,x, &&
2228 program_prefix=${target_alias}-
2231 subdirs="libU77 libI77 libF77"
2233 # Do Makefile first since g2c.h depends on it and shouldn't get an
2234 # earlier timestamp. Of course, it does when the multilib gunk below
2235 # edits Makefile, sigh; see additional touch below.
2236 trap '' 1 2 15
2237 cat > confcache <<\EOF
2238 # This file is a shell script that caches the results of configure
2239 # tests run on this system so they can be shared between configure
2240 # scripts and configure runs. It is not useful on other systems.
2241 # If it contains results you don't want to keep, you may remove or edit it.
2243 # By default, configure uses ./config.cache as the cache file,
2244 # creating it if it does not exist already. You can give configure
2245 # the --cache-file=FILE option to use a different cache file; that is
2246 # what configure does when it calls configure scripts in
2247 # subdirectories, so they share the cache.
2248 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2249 # config.status only pays attention to the cache file if you give it the
2250 # --recheck option to rerun configure.
2253 # The following way of writing the cache mishandles newlines in values,
2254 # but we know of no workaround that is simple, portable, and efficient.
2255 # So, don't put newlines in cache variables' values.
2256 # Ultrix sh set writes to stderr and can't be redirected directly,
2257 # and sets the high bit in the cache file unless we assign to the vars.
2258 (set) 2>&1 |
2259 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2260 *ac_space=\ *)
2261 # `set' does not quote correctly, so add quotes (double-quote substitution
2262 # turns \\\\ into \\, and sed turns \\ into \).
2263 sed -n \
2264 -e "s/'/'\\\\''/g" \
2265 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2268 # `set' quotes correctly as required by POSIX, so do not add quotes.
2269 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2271 esac >> confcache
2272 if cmp -s $cache_file confcache; then
2274 else
2275 if test -w $cache_file; then
2276 echo "updating cache $cache_file"
2277 cat confcache > $cache_file
2278 else
2279 echo "not updating unwritable cache $cache_file"
2282 rm -f confcache
2284 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2287 # Let make expand exec_prefix.
2288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2290 # Any assignment to VPATH causes Sun make to only execute
2291 # the first set of double-colon rules, so remove it if not needed.
2292 # If there is a colon in the path, we need to keep it.
2293 if test "x$srcdir" = x.; then
2294 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2297 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2299 # Transform confdefs.h into DEFS.
2300 # Protect against shell expansion while executing Makefile rules.
2301 # Protect against Makefile macro expansion.
2302 cat > conftest.defs <<\EOF
2303 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2304 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2305 s%\[%\\&%g
2306 s%\]%\\&%g
2307 s%\$%$$%g
2309 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2310 rm -f conftest.defs
2313 # Without the "./", some shells look in PATH for config.status.
2314 : ${CONFIG_STATUS=./config.status}
2316 echo creating $CONFIG_STATUS
2317 rm -f $CONFIG_STATUS
2318 cat > $CONFIG_STATUS <<EOF
2319 #! /bin/sh
2320 # Generated automatically by configure.
2321 # Run this file to recreate the current configuration.
2322 # This directory was configured as follows,
2323 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2325 # $0 $ac_configure_args
2327 # Compiler output produced by configure, useful for debugging
2328 # configure, is in ./config.log if it exists.
2330 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2331 for ac_option
2333 case "\$ac_option" in
2334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2335 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2336 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2337 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2338 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2339 exit 0 ;;
2340 -help | --help | --hel | --he | --h)
2341 echo "\$ac_cs_usage"; exit 0 ;;
2342 *) echo "\$ac_cs_usage"; exit 1 ;;
2343 esac
2344 done
2346 ac_given_srcdir=$srcdir
2347 ac_given_INSTALL="$INSTALL"
2349 trap 'rm -fr `echo "Makefile g2c.h:g2c.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2351 cat >> $CONFIG_STATUS <<EOF
2353 # Protect against being on the right side of a sed subst in config.status.
2354 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2355 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2356 $ac_vpsub
2357 $extrasub
2358 s%@SHELL@%$SHELL%g
2359 s%@CFLAGS@%$CFLAGS%g
2360 s%@CPPFLAGS@%$CPPFLAGS%g
2361 s%@CXXFLAGS@%$CXXFLAGS%g
2362 s%@FFLAGS@%$FFLAGS%g
2363 s%@DEFS@%$DEFS%g
2364 s%@LDFLAGS@%$LDFLAGS%g
2365 s%@LIBS@%$LIBS%g
2366 s%@exec_prefix@%$exec_prefix%g
2367 s%@prefix@%$prefix%g
2368 s%@program_transform_name@%$program_transform_name%g
2369 s%@bindir@%$bindir%g
2370 s%@sbindir@%$sbindir%g
2371 s%@libexecdir@%$libexecdir%g
2372 s%@datadir@%$datadir%g
2373 s%@sysconfdir@%$sysconfdir%g
2374 s%@sharedstatedir@%$sharedstatedir%g
2375 s%@localstatedir@%$localstatedir%g
2376 s%@libdir@%$libdir%g
2377 s%@includedir@%$includedir%g
2378 s%@oldincludedir@%$oldincludedir%g
2379 s%@infodir@%$infodir%g
2380 s%@mandir@%$mandir%g
2381 s%@EXEEXT@%$EXEEXT%g
2382 s%@CC@%$CC%g
2383 s%@host@%$host%g
2384 s%@host_alias@%$host_alias%g
2385 s%@host_cpu@%$host_cpu%g
2386 s%@host_vendor@%$host_vendor%g
2387 s%@host_os@%$host_os%g
2388 s%@build@%$build%g
2389 s%@build_alias@%$build_alias%g
2390 s%@build_cpu@%$build_cpu%g
2391 s%@build_vendor@%$build_vendor%g
2392 s%@build_os@%$build_os%g
2393 s%@LN_S@%$LN_S%g
2394 s%@OBJEXT@%$OBJEXT%g
2395 s%@RANLIB@%$RANLIB%g
2396 s%@STRIP@%$STRIP%g
2397 s%@LIBTOOL@%$LIBTOOL%g
2398 s%@AR@%$AR%g
2399 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2400 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2401 s%@INSTALL_DATA@%$INSTALL_DATA%g
2402 s%@SET_MAKE@%$SET_MAKE%g
2403 s%@CPP@%$CPP%g
2404 s%@gcc_version@%$gcc_version%g
2405 s%@gcc_version_trigger@%$gcc_version_trigger%g
2406 s%@target@%$target%g
2407 s%@target_alias@%$target_alias%g
2408 s%@target_cpu@%$target_cpu%g
2409 s%@target_vendor@%$target_vendor%g
2410 s%@target_os@%$target_os%g
2411 s%@subdirs@%$subdirs%g
2413 CEOF
2416 cat >> $CONFIG_STATUS <<\EOF
2418 # Split the substitutions into bite-sized pieces for seds with
2419 # small command number limits, like on Digital OSF/1 and HP-UX.
2420 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2421 ac_file=1 # Number of current file.
2422 ac_beg=1 # First line for current file.
2423 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2424 ac_more_lines=:
2425 ac_sed_cmds=""
2426 while $ac_more_lines; do
2427 if test $ac_beg -gt 1; then
2428 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2429 else
2430 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2432 if test ! -s conftest.s$ac_file; then
2433 ac_more_lines=false
2434 rm -f conftest.s$ac_file
2435 else
2436 if test -z "$ac_sed_cmds"; then
2437 ac_sed_cmds="sed -f conftest.s$ac_file"
2438 else
2439 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2441 ac_file=`expr $ac_file + 1`
2442 ac_beg=$ac_end
2443 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2445 done
2446 if test -z "$ac_sed_cmds"; then
2447 ac_sed_cmds=cat
2451 cat >> $CONFIG_STATUS <<EOF
2453 CONFIG_FILES=\${CONFIG_FILES-"Makefile g2c.h:g2c.hin"}
2455 cat >> $CONFIG_STATUS <<\EOF
2456 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2457 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2458 case "$ac_file" in
2459 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2460 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2461 *) ac_file_in="${ac_file}.in" ;;
2462 esac
2464 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2466 # Remove last slash and all that follows it. Not all systems have dirname.
2467 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2468 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2469 # The file is in a subdirectory.
2470 test ! -d "$ac_dir" && mkdir "$ac_dir"
2471 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2472 # A "../" for each directory in $ac_dir_suffix.
2473 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2474 else
2475 ac_dir_suffix= ac_dots=
2478 case "$ac_given_srcdir" in
2479 .) srcdir=.
2480 if test -z "$ac_dots"; then top_srcdir=.
2481 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2482 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2483 *) # Relative path.
2484 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2485 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2486 esac
2488 case "$ac_given_INSTALL" in
2489 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2490 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2491 esac
2493 echo creating "$ac_file"
2494 rm -f "$ac_file"
2495 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2496 case "$ac_file" in
2497 *Makefile*) ac_comsub="1i\\
2498 # $configure_input" ;;
2499 *) ac_comsub= ;;
2500 esac
2502 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2503 sed -e "$ac_comsub
2504 s%@configure_input@%$configure_input%g
2505 s%@srcdir@%$srcdir%g
2506 s%@top_srcdir@%$top_srcdir%g
2507 s%@INSTALL@%$INSTALL%g
2508 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2509 fi; done
2510 rm -f conftest.s*
2513 cat >> $CONFIG_STATUS <<EOF
2514 srcdir=${srcdir}
2515 host=${host}
2516 target=${target}
2517 with_target_subdir=${with_target_subdir}
2518 with_multisubdir=${with_multisubdir}
2519 ac_configure_args="--enable-multilib ${ac_configure_args}"
2520 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2521 topsrcdir=${topsrcdir}
2524 cat >> $CONFIG_STATUS <<\EOF
2525 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2526 if test -n "$CONFIG_FILES"; then
2527 if test -n "${with_target_subdir}"; then
2528 # FIXME: We shouldn't need to set ac_file
2529 ac_file=Makefile
2530 . ${topsrcdir}/config-ml.in
2531 touch g2c.h # to keep it more recent than Makefile
2534 exit 0
2536 chmod +x $CONFIG_STATUS
2537 rm -fr confdefs* $ac_clean_files
2538 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2540 if test "$no_recursion" != yes; then
2542 # Remove --cache-file and --srcdir arguments so they do not pile up.
2543 ac_sub_configure_args=
2544 ac_prev=
2545 for ac_arg in $ac_configure_args; do
2546 if test -n "$ac_prev"; then
2547 ac_prev=
2548 continue
2550 case "$ac_arg" in
2551 -cache-file | --cache-file | --cache-fil | --cache-fi \
2552 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2553 ac_prev=cache_file ;;
2554 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2555 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2557 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2558 ac_prev=srcdir ;;
2559 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2561 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2562 esac
2563 done
2565 for ac_config_dir in libU77 libI77 libF77; do
2567 # Do not complain, so a configure script can configure whichever
2568 # parts of a large source tree are present.
2569 if test ! -d $srcdir/$ac_config_dir; then
2570 continue
2573 echo configuring in $ac_config_dir
2575 case "$srcdir" in
2576 .) ;;
2578 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2579 else
2580 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2583 esac
2585 ac_popdir=`pwd`
2586 cd $ac_config_dir
2588 # A "../" for each directory in /$ac_config_dir.
2589 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2591 case "$srcdir" in
2592 .) # No --srcdir option. We are building in place.
2593 ac_sub_srcdir=$srcdir ;;
2594 /*) # Absolute path.
2595 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2596 *) # Relative path.
2597 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2598 esac
2600 # Check for guested configure; otherwise get Cygnus style configure.
2601 if test -f $ac_sub_srcdir/configure; then
2602 ac_sub_configure=$ac_sub_srcdir/configure
2603 elif test -f $ac_sub_srcdir/configure.in; then
2604 ac_sub_configure=$ac_configure
2605 else
2606 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2607 ac_sub_configure=
2610 # The recursion is here.
2611 if test -n "$ac_sub_configure"; then
2613 # Make the cache file name correct relative to the subdirectory.
2614 case "$cache_file" in
2615 /*) ac_sub_cache_file=$cache_file ;;
2616 *) # Relative path.
2617 ac_sub_cache_file="$ac_dots$cache_file" ;;
2618 esac
2619 case "$ac_given_INSTALL" in
2620 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2621 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2622 esac
2624 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2625 # The eval makes quoting arguments work.
2626 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2627 then :
2628 else
2629 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2633 cd $ac_popdir
2634 done