OSDN Git Service

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