Initial revision
[official-gcc.git] / gcc / f / runtime / configure
blobdcc60b6e65687eda0700f3217addd62721a0cf4d
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
18 build=NONE
19 cache_file=./config.cache
20 exec_prefix=NONE
21 host=NONE
22 no_create=
23 nonopt=NONE
24 no_recursion=
25 prefix=NONE
26 program_prefix=NONE
27 program_suffix=NONE
28 program_transform_name=s,x,x,
29 silent=
30 site=
31 srcdir=
32 target=NONE
33 verbose=
34 x_includes=NONE
35 x_libraries=NONE
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
50 subdirs=
51 MFLAGS= MAKEFLAGS=
52 # Maximum number of lines to put in a shell here document.
53 ac_max_here_lines=12
55 ac_prev=
56 for ac_option
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
62 ac_prev=
63 continue
66 case "$ac_option" in
67 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68 *) ac_optarg= ;;
69 esac
71 # Accept the important Cygnus configure options, so we can diagnose typos.
73 case "$ac_option" in
75 -bindir | --bindir | --bindi | --bind | --bin | --bi)
76 ac_prev=bindir ;;
77 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78 bindir="$ac_optarg" ;;
80 -build | --build | --buil | --bui | --bu)
81 ac_prev=build ;;
82 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83 build="$ac_optarg" ;;
85 -cache-file | --cache-file | --cache-fil | --cache-fi \
86 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87 ac_prev=cache_file ;;
88 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90 cache_file="$ac_optarg" ;;
92 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
93 ac_prev=datadir ;;
94 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
95 | --da=*)
96 datadir="$ac_optarg" ;;
98 -disable-* | --disable-*)
99 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
107 -enable-* | --enable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 case "$ac_option" in
115 *=*) ;;
116 *) ac_optarg=yes ;;
117 esac
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122 | --exec | --exe | --ex)
123 ac_prev=exec_prefix ;;
124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126 | --exec=* | --exe=* | --ex=*)
127 exec_prefix="$ac_optarg" ;;
129 -gas | --gas | --ga | --g)
130 # Obsolete; use --with-gas.
131 with_gas=yes ;;
133 -help | --help | --hel | --he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
136 cat << EOF
137 Usage: configure [options] [host]
138 Options: [defaults in brackets after descriptions]
139 Configuration:
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145 Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
147 [$ac_default_prefix]
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
149 [same as prefix]
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
154 [PREFIX/share]
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
157 [PREFIX/com]
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
170 cat << EOF
171 Host type:
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
186 exit 0 ;;
188 -host | --host | --hos | --ho)
189 ac_prev=host ;;
190 -host=* | --host=* | --hos=* | --ho=*)
191 host="$ac_optarg" ;;
193 -includedir | --includedir | --includedi | --included | --include \
194 | --includ | --inclu | --incl | --inc)
195 ac_prev=includedir ;;
196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197 | --includ=* | --inclu=* | --incl=* | --inc=*)
198 includedir="$ac_optarg" ;;
200 -infodir | --infodir | --infodi | --infod | --info | --inf)
201 ac_prev=infodir ;;
202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203 infodir="$ac_optarg" ;;
205 -libdir | --libdir | --libdi | --libd)
206 ac_prev=libdir ;;
207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
208 libdir="$ac_optarg" ;;
210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211 | --libexe | --libex | --libe)
212 ac_prev=libexecdir ;;
213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214 | --libexe=* | --libex=* | --libe=*)
215 libexecdir="$ac_optarg" ;;
217 -localstatedir | --localstatedir | --localstatedi | --localstated \
218 | --localstate | --localstat | --localsta | --localst \
219 | --locals | --local | --loca | --loc | --lo)
220 ac_prev=localstatedir ;;
221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224 localstatedir="$ac_optarg" ;;
226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
227 ac_prev=mandir ;;
228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229 mandir="$ac_optarg" ;;
231 -nfp | --nfp | --nf)
232 # Obsolete; use --without-fp.
233 with_fp=no ;;
235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
236 | --no-cr | --no-c)
237 no_create=yes ;;
239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
241 no_recursion=yes ;;
243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245 | --oldin | --oldi | --old | --ol | --o)
246 ac_prev=oldincludedir ;;
247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250 oldincludedir="$ac_optarg" ;;
252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
253 ac_prev=prefix ;;
254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255 prefix="$ac_optarg" ;;
257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
258 | --program-pre | --program-pr | --program-p)
259 ac_prev=program_prefix ;;
260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262 program_prefix="$ac_optarg" ;;
264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
265 | --program-suf | --program-su | --program-s)
266 ac_prev=program_suffix ;;
267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269 program_suffix="$ac_optarg" ;;
271 -program-transform-name | --program-transform-name \
272 | --program-transform-nam | --program-transform-na \
273 | --program-transform-n | --program-transform- \
274 | --program-transform | --program-transfor \
275 | --program-transfo | --program-transf \
276 | --program-trans | --program-tran \
277 | --progr-tra | --program-tr | --program-t)
278 ac_prev=program_transform_name ;;
279 -program-transform-name=* | --program-transform-name=* \
280 | --program-transform-nam=* | --program-transform-na=* \
281 | --program-transform-n=* | --program-transform-=* \
282 | --program-transform=* | --program-transfor=* \
283 | --program-transfo=* | --program-transf=* \
284 | --program-trans=* | --program-tran=* \
285 | --progr-tra=* | --program-tr=* | --program-t=*)
286 program_transform_name="$ac_optarg" ;;
288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289 | -silent | --silent | --silen | --sile | --sil)
290 silent=yes ;;
292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
293 ac_prev=sbindir ;;
294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
295 | --sbi=* | --sb=*)
296 sbindir="$ac_optarg" ;;
298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300 | --sharedst | --shareds | --shared | --share | --shar \
301 | --sha | --sh)
302 ac_prev=sharedstatedir ;;
303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
306 | --sha=* | --sh=*)
307 sharedstatedir="$ac_optarg" ;;
309 -site | --site | --sit)
310 ac_prev=site ;;
311 -site=* | --site=* | --sit=*)
312 site="$ac_optarg" ;;
314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
315 ac_prev=srcdir ;;
316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317 srcdir="$ac_optarg" ;;
319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320 | --syscon | --sysco | --sysc | --sys | --sy)
321 ac_prev=sysconfdir ;;
322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324 sysconfdir="$ac_optarg" ;;
326 -target | --target | --targe | --targ | --tar | --ta | --t)
327 ac_prev=target ;;
328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329 target="$ac_optarg" ;;
331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
332 verbose=yes ;;
334 -version | --version | --versio | --versi | --vers)
335 echo "configure generated by autoconf version 2.12"
336 exit 0 ;;
338 -with-* | --with-*)
339 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344 ac_package=`echo $ac_package| sed 's/-/_/g'`
345 case "$ac_option" in
346 *=*) ;;
347 *) ac_optarg=yes ;;
348 esac
349 eval "with_${ac_package}='$ac_optarg'" ;;
351 -without-* | --without-*)
352 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
360 --x)
361 # Obsolete; use --with-x.
362 with_x=yes ;;
364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365 | --x-incl | --x-inc | --x-in | --x-i)
366 ac_prev=x_includes ;;
367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369 x_includes="$ac_optarg" ;;
371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373 ac_prev=x_libraries ;;
374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376 x_libraries="$ac_optarg" ;;
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
385 if test "x$nonopt" != xNONE; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388 nonopt="$ac_option"
391 esac
392 done
394 if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400 # File descriptor usage:
401 # 0 standard input
402 # 1 file creation
403 # 2 errors and warnings
404 # 3 some systems may open it to /dev/tty
405 # 4 used on the Kubota Titan
406 # 6 checking for... messages and results
407 # 5 compiler messages saved in config.log
408 if test "$silent" = yes; then
409 exec 6>/dev/null
410 else
411 exec 6>&1
413 exec 5>./config.log
415 echo "\
416 This file contains any messages produced by compilers while
417 running configure, to aid debugging if configure makes a mistake.
418 " 1>&5
420 # Strip out --no-create and --no-recursion so they do not pile up.
421 # Also quote any args containing shell metacharacters.
422 ac_configure_args=
423 for ac_arg
425 case "$ac_arg" in
426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 | --no-cr | --no-c) ;;
428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
433 esac
434 done
436 # NLS nuisances.
437 # Only set these to C if already set. These must not be set unconditionally
438 # because not all systems understand e.g. LANG=C (notably SCO).
439 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440 # Non-C LC_CTYPE values break the ctype check.
441 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
447 rm -rf conftest* confdefs.h
448 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
449 echo > confdefs.h
451 # A filename unique to this package, relative to the directory that
452 # configure is in, which we can look for to find out if srcdir is correct.
453 ac_unique_file=libF77/Version.c
455 # Find the source files, if location was not specified.
456 if test -z "$srcdir"; then
457 ac_srcdir_defaulted=yes
458 # Try the directory containing this script, then its parent.
459 ac_prog=$0
460 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
462 srcdir=$ac_confdir
463 if test ! -r $srcdir/$ac_unique_file; then
464 srcdir=..
466 else
467 ac_srcdir_defaulted=no
469 if test ! -r $srcdir/$ac_unique_file; then
470 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
472 else
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478 # Prefer explicitly selected file to automatically selected ones.
479 if test -z "$CONFIG_SITE"; then
480 if test "x$prefix" != xNONE; then
481 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
482 else
483 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486 for ac_site_file in $CONFIG_SITE; do
487 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
489 . "$ac_site_file"
491 done
493 if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
495 . $cache_file
496 else
497 echo "creating cache $cache_file"
498 > $cache_file
501 ac_ext=c
502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503 ac_cpp='$CPP $CPPFLAGS'
504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 cross_compiling=$ac_cv_prog_cc_cross
508 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
511 ac_n= ac_c='
512 ' ac_t=' '
513 else
514 ac_n=-n ac_c= ac_t=
516 else
517 ac_n= ac_c='\c' ac_t=
522 # From configure.in 1.10
524 # For g77 we'll set CC to point at the built gcc, but this will get it into
525 # the makefiles
526 # Extract the first word of "gcc", so it can be a program name with args.
527 set dummy gcc; ac_word=$2
528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
529 echo "configure:530: checking for $ac_word" >&5
530 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
531 echo $ac_n "(cached) $ac_c" 1>&6
532 else
533 if test -n "$CC"; then
534 ac_cv_prog_CC="$CC" # Let the user override the test.
535 else
536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
537 for ac_dir in $PATH; do
538 test -z "$ac_dir" && ac_dir=.
539 if test -f $ac_dir/$ac_word; then
540 ac_cv_prog_CC="gcc"
541 break
543 done
544 IFS="$ac_save_ifs"
547 CC="$ac_cv_prog_CC"
548 if test -n "$CC"; then
549 echo "$ac_t""$CC" 1>&6
550 else
551 echo "$ac_t""no" 1>&6
554 if test -z "$CC"; then
555 # Extract the first word of "cc", so it can be a program name with args.
556 set dummy cc; ac_word=$2
557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
558 echo "configure:559: checking for $ac_word" >&5
559 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
561 else
562 if test -n "$CC"; then
563 ac_cv_prog_CC="$CC" # Let the user override the test.
564 else
565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
566 ac_prog_rejected=no
567 for ac_dir in $PATH; do
568 test -z "$ac_dir" && ac_dir=.
569 if test -f $ac_dir/$ac_word; then
570 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
571 ac_prog_rejected=yes
572 continue
574 ac_cv_prog_CC="cc"
575 break
577 done
578 IFS="$ac_save_ifs"
579 if test $ac_prog_rejected = yes; then
580 # We found a bogon in the path, so make sure we never use it.
581 set dummy $ac_cv_prog_CC
582 shift
583 if test $# -gt 0; then
584 # We chose a different compiler from the bogus one.
585 # However, it has the same basename, so the bogon will be chosen
586 # first if we set CC to just the basename; use the full file name.
587 shift
588 set dummy "$ac_dir/$ac_word" "$@"
589 shift
590 ac_cv_prog_CC="$@"
595 CC="$ac_cv_prog_CC"
596 if test -n "$CC"; then
597 echo "$ac_t""$CC" 1>&6
598 else
599 echo "$ac_t""no" 1>&6
602 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
605 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
606 echo "configure:607: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
608 ac_ext=c
609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
610 ac_cpp='$CPP $CPPFLAGS'
611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
612 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
613 cross_compiling=$ac_cv_prog_cc_cross
615 cat > conftest.$ac_ext <<EOF
616 #line 617 "configure"
617 #include "confdefs.h"
618 main(){return(0);}
620 if { (eval echo configure:621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
621 ac_cv_prog_cc_works=yes
622 # If we can't run a trivial program, we are probably using a cross compiler.
623 if (./conftest; exit) 2>/dev/null; then
624 ac_cv_prog_cc_cross=no
625 else
626 ac_cv_prog_cc_cross=yes
628 else
629 echo "configure: failed program was:" >&5
630 cat conftest.$ac_ext >&5
631 ac_cv_prog_cc_works=no
633 rm -fr conftest*
635 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
636 if test $ac_cv_prog_cc_works = no; then
637 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
639 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
640 echo "configure:641: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
641 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
642 cross_compiling=$ac_cv_prog_cc_cross
644 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
645 echo "configure:646: checking whether we are using GNU C" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
648 else
649 cat > conftest.c <<EOF
650 #ifdef __GNUC__
651 yes;
652 #endif
654 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
655 ac_cv_prog_gcc=yes
656 else
657 ac_cv_prog_gcc=no
661 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
663 if test $ac_cv_prog_gcc = yes; then
664 GCC=yes
665 ac_test_CFLAGS="${CFLAGS+set}"
666 ac_save_CFLAGS="$CFLAGS"
667 CFLAGS=
668 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
669 echo "configure:670: checking whether ${CC-cc} accepts -g" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672 else
673 echo 'void f(){}' > conftest.c
674 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
675 ac_cv_prog_cc_g=yes
676 else
677 ac_cv_prog_cc_g=no
679 rm -f conftest*
683 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
684 if test "$ac_test_CFLAGS" = set; then
685 CFLAGS="$ac_save_CFLAGS"
686 elif test $ac_cv_prog_cc_g = yes; then
687 CFLAGS="-g -O2"
688 else
689 CFLAGS="-O2"
691 else
692 GCC=
693 test "${CFLAGS+set}" = set || CFLAGS="-g"
696 if test "$CROSS";then
697 ac_cv_c_cross=yes
698 else
699 ac_cv_c_cross=no
702 test "$AR" || AR=ar
704 if test "$RANLIB"; then :
706 else
707 RANLIB_TEST=true
708 # Extract the first word of "ranlib", so it can be a program name with args.
709 set dummy ranlib; ac_word=$2
710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711 echo "configure:712: checking for $ac_word" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
714 else
715 if test -n "$RANLIB"; then
716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
717 else
718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
719 for ac_dir in $PATH; do
720 test -z "$ac_dir" && ac_dir=.
721 if test -f $ac_dir/$ac_word; then
722 ac_cv_prog_RANLIB="ranlib"
723 break
725 done
726 IFS="$ac_save_ifs"
727 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
730 RANLIB="$ac_cv_prog_RANLIB"
731 if test -n "$RANLIB"; then
732 echo "$ac_t""$RANLIB" 1>&6
733 else
734 echo "$ac_t""no" 1>&6
742 # Sanity check for the cross-compilation case:
743 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
744 echo "configure:745: checking how to run the C preprocessor" >&5
745 # On Suns, sometimes $CPP names a directory.
746 if test -n "$CPP" && test -d "$CPP"; then
747 CPP=
749 if test -z "$CPP"; then
750 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
752 else
753 # This must be in double quotes, not single quotes, because CPP may get
754 # substituted into the Makefile and "${CC-cc}" will confuse make.
755 CPP="${CC-cc} -E"
756 # On the NeXT, cc -E runs the code through the compiler's parser,
757 # not just through cpp.
758 cat > conftest.$ac_ext <<EOF
759 #line 760 "configure"
760 #include "confdefs.h"
761 #include <assert.h>
762 Syntax Error
764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
765 { (eval echo configure:766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
766 ac_err=`grep -v '^ *+' conftest.out`
767 if test -z "$ac_err"; then
769 else
770 echo "$ac_err" >&5
771 echo "configure: failed program was:" >&5
772 cat conftest.$ac_ext >&5
773 rm -rf conftest*
774 CPP="${CC-cc} -E -traditional-cpp"
775 cat > conftest.$ac_ext <<EOF
776 #line 777 "configure"
777 #include "confdefs.h"
778 #include <assert.h>
779 Syntax Error
781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
782 { (eval echo configure:783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
783 ac_err=`grep -v '^ *+' conftest.out`
784 if test -z "$ac_err"; then
786 else
787 echo "$ac_err" >&5
788 echo "configure: failed program was:" >&5
789 cat conftest.$ac_ext >&5
790 rm -rf conftest*
791 CPP=/lib/cpp
793 rm -f conftest*
795 rm -f conftest*
796 ac_cv_prog_CPP="$CPP"
798 CPP="$ac_cv_prog_CPP"
799 else
800 ac_cv_prog_CPP="$CPP"
802 echo "$ac_t""$CPP" 1>&6
804 ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
805 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
806 echo "configure:807: checking for stdio.h" >&5
807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809 else
810 cat > conftest.$ac_ext <<EOF
811 #line 812 "configure"
812 #include "confdefs.h"
813 #include <stdio.h>
815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
816 { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
817 ac_err=`grep -v '^ *+' conftest.out`
818 if test -z "$ac_err"; then
819 rm -rf conftest*
820 eval "ac_cv_header_$ac_safe=yes"
821 else
822 echo "$ac_err" >&5
823 echo "configure: failed program was:" >&5
824 cat conftest.$ac_ext >&5
825 rm -rf conftest*
826 eval "ac_cv_header_$ac_safe=no"
828 rm -f conftest*
830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
831 echo "$ac_t""yes" 1>&6
833 else
834 echo "$ac_t""no" 1>&6
835 { echo "configure: error: Can't find stdio.h.
836 You must have a usable C system for the target already installed, at least
837 including headers and, preferably, the library, before you can configure
838 the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c',
839 then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }
843 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
844 echo "configure:845: checking for ANSI C header files" >&5
845 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
847 else
848 cat > conftest.$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
851 #include <stdlib.h>
852 #include <stdarg.h>
853 #include <string.h>
854 #include <float.h>
856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
857 { (eval echo configure:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
858 ac_err=`grep -v '^ *+' conftest.out`
859 if test -z "$ac_err"; then
860 rm -rf conftest*
861 ac_cv_header_stdc=yes
862 else
863 echo "$ac_err" >&5
864 echo "configure: failed program was:" >&5
865 cat conftest.$ac_ext >&5
866 rm -rf conftest*
867 ac_cv_header_stdc=no
869 rm -f conftest*
871 if test $ac_cv_header_stdc = yes; then
872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
873 cat > conftest.$ac_ext <<EOF
874 #line 875 "configure"
875 #include "confdefs.h"
876 #include <string.h>
878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
879 egrep "memchr" >/dev/null 2>&1; then
881 else
882 rm -rf conftest*
883 ac_cv_header_stdc=no
885 rm -f conftest*
889 if test $ac_cv_header_stdc = yes; then
890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
891 cat > conftest.$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
894 #include <stdlib.h>
896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
897 egrep "free" >/dev/null 2>&1; then
899 else
900 rm -rf conftest*
901 ac_cv_header_stdc=no
903 rm -f conftest*
907 if test $ac_cv_header_stdc = yes; then
908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
909 if test "$cross_compiling" = yes; then
911 else
912 cat > conftest.$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
915 #include <ctype.h>
916 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
917 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
919 int main () { int i; for (i = 0; i < 256; i++)
920 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
921 exit (0); }
924 if { (eval echo configure:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
925 then
927 else
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
930 rm -fr conftest*
931 ac_cv_header_stdc=no
933 rm -fr conftest*
939 echo "$ac_t""$ac_cv_header_stdc" 1>&6
940 if test $ac_cv_header_stdc = yes; then
941 cat >> confdefs.h <<\EOF
942 #define STDC_HEADERS 1
949 echo $ac_n "checking for posix""... $ac_c" 1>&6
950 echo "configure:951: checking for posix" >&5
951 if eval "test \"`echo '$''{'g77_cv_header_posix'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
953 else
954 cat > conftest.$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
957 #include <sys/types.h>
958 #include <unistd.h>
959 #ifdef _POSIX_VERSION
961 #endif
964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
965 egrep "yes" >/dev/null 2>&1; then
966 rm -rf conftest*
967 g77_cv_header_posix=yes
968 else
969 rm -rf conftest*
970 g77_cv_header_posix=no
972 rm -f conftest*
976 echo "$ac_t""$g77_cv_header_posix" 1>&6
978 # We can rely on the GNU library being posix-ish. I guess checking the
979 # header isn't actually like checking the functions, though...
980 echo $ac_n "checking for GNU library""... $ac_c" 1>&6
981 echo "configure:982: checking for GNU library" >&5
982 if eval "test \"`echo '$''{'g77_cv_lib_gnu'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
984 else
985 cat > conftest.$ac_ext <<EOF
986 #line 987 "configure"
987 #include "confdefs.h"
988 #include <stdio.h>
989 #ifdef __GNU_LIBRARY__
991 #endif
994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
995 egrep "yes" >/dev/null 2>&1; then
996 rm -rf conftest*
997 g77_cv_lib_gnu=yes
998 else
999 rm -rf conftest*
1000 g77_cv_lib_gnu=no
1002 rm -f conftest*
1006 echo "$ac_t""$g77_cv_lib_gnu" 1>&6
1008 # Apparently cygwin needs to be special-cased.
1009 echo $ac_n "checking for cyg\`win'32""... $ac_c" 1>&6
1010 echo "configure:1011: checking for cyg\`win'32" >&5
1011 if eval "test \"`echo '$''{'g77_cv_sys_cygwin32'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1013 else
1014 cat > conftest.$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1017 #ifdef __CYGWIN32__
1019 #endif
1022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1023 egrep "yes" >/dev/null 2>&1; then
1024 rm -rf conftest*
1025 g77_cv_sys_cygwin32=yes
1026 else
1027 rm -rf conftest*
1028 g77_cv_sys_cygwin32=no
1030 rm -f conftest*
1034 echo "$ac_t""$g77_cv_sys_cygwin32" 1>&6
1036 ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'`
1037 echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
1038 echo "configure:1039: checking for fcntl.h" >&5
1039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1041 else
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1045 #include <fcntl.h>
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out`
1050 if test -z "$ac_err"; then
1051 rm -rf conftest*
1052 eval "ac_cv_header_$ac_safe=yes"
1053 else
1054 echo "$ac_err" >&5
1055 echo "configure: failed program was:" >&5
1056 cat conftest.$ac_ext >&5
1057 rm -rf conftest*
1058 eval "ac_cv_header_$ac_safe=no"
1060 rm -f conftest*
1062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1063 echo "$ac_t""yes" 1>&6
1064 test $g77_cv_header_posix = yes && cat >> confdefs.h <<\EOF
1065 #define _POSIX_SOURCE 1
1068 else
1069 echo "$ac_t""no" 1>&6
1070 cat >> confdefs.h <<\EOF
1071 #define NO_FCNTL 1
1073 cat >> confdefs.h <<\EOF
1074 #define OPEN_DECL 1
1080 echo $ac_n "checking for working const""... $ac_c" 1>&6
1081 echo "configure:1082: checking for working const" >&5
1082 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1084 else
1085 cat > conftest.$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1089 int main() {
1091 /* Ultrix mips cc rejects this. */
1092 typedef int charset[2]; const charset x;
1093 /* SunOS 4.1.1 cc rejects this. */
1094 char const *const *ccp;
1095 char **p;
1096 /* NEC SVR4.0.2 mips cc rejects this. */
1097 struct point {int x, y;};
1098 static struct point const zero = {0,0};
1099 /* AIX XL C 1.02.0.0 rejects this.
1100 It does not let you subtract one const X* pointer from another in an arm
1101 of an if-expression whose if-part is not a constant expression */
1102 const char *g = "string";
1103 ccp = &g + (g ? g-g : 0);
1104 /* HPUX 7.0 cc rejects these. */
1105 ++ccp;
1106 p = (char**) ccp;
1107 ccp = (char const *const *) p;
1108 { /* SCO 3.2v4 cc rejects this. */
1109 char *t;
1110 char const *s = 0 ? (char *) 0 : (char const *) 0;
1112 *t++ = 0;
1114 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1115 int x[] = {25, 17};
1116 const int *foo = &x[0];
1117 ++foo;
1119 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1120 typedef const int *iptr;
1121 iptr p = 0;
1122 ++p;
1124 { /* AIX XL C 1.02.0.0 rejects this saying
1125 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1126 struct s { int j; const int *ap[3]; };
1127 struct s *b; b->j = 5;
1129 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1130 const int foo = 10;
1133 ; return 0; }
1135 if { (eval echo configure:1136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1136 rm -rf conftest*
1137 ac_cv_c_const=yes
1138 else
1139 echo "configure: failed program was:" >&5
1140 cat conftest.$ac_ext >&5
1141 rm -rf conftest*
1142 ac_cv_c_const=no
1144 rm -f conftest*
1147 echo "$ac_t""$ac_cv_c_const" 1>&6
1148 if test $ac_cv_c_const = no; then
1149 cat >> confdefs.h <<\EOF
1150 #define const
1155 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1156 echo "configure:1157: checking for size_t" >&5
1157 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1159 else
1160 cat > conftest.$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1163 #include <sys/types.h>
1164 #if STDC_HEADERS
1165 #include <stdlib.h>
1166 #include <stddef.h>
1167 #endif
1169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1170 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1171 rm -rf conftest*
1172 ac_cv_type_size_t=yes
1173 else
1174 rm -rf conftest*
1175 ac_cv_type_size_t=no
1177 rm -f conftest*
1180 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1181 if test $ac_cv_type_size_t = no; then
1182 cat >> confdefs.h <<\EOF
1183 #define size_t unsigned
1189 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1190 echo "configure:1191: checking return type of signal handlers" >&5
1191 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1197 #include <sys/types.h>
1198 #include <signal.h>
1199 #ifdef signal
1200 #undef signal
1201 #endif
1202 #ifdef __cplusplus
1203 extern "C" void (*signal (int, void (*)(int)))(int);
1204 #else
1205 void (*signal ()) ();
1206 #endif
1208 int main() {
1209 int i;
1210 ; return 0; }
1212 if { (eval echo configure:1213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1213 rm -rf conftest*
1214 ac_cv_type_signal=void
1215 else
1216 echo "configure: failed program was:" >&5
1217 cat conftest.$ac_ext >&5
1218 rm -rf conftest*
1219 ac_cv_type_signal=int
1221 rm -f conftest*
1224 echo "$ac_t""$ac_cv_type_signal" 1>&6
1225 cat >> confdefs.h <<EOF
1226 #define RETSIGTYPE $ac_cv_type_signal
1230 # we'll get atexit by default
1231 if test $ac_cv_header_stdc != yes; then
1232 echo $ac_n "checking for atexit""... $ac_c" 1>&6
1233 echo "configure:1234: checking for atexit" >&5
1234 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237 cat > conftest.$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 /* System header to define __stub macros and hopefully few prototypes,
1241 which can conflict with char atexit(); below. */
1242 #include <assert.h>
1243 /* Override any gcc2 internal prototype to avoid an error. */
1244 /* We use char because int might match the return type of a gcc2
1245 builtin and then its argument prototype would still apply. */
1246 char atexit();
1248 int main() {
1250 /* The GNU C library defines this for functions which it implements
1251 to always fail with ENOSYS. Some functions are actually named
1252 something starting with __ and the normal name is an alias. */
1253 #if defined (__stub_atexit) || defined (__stub___atexit)
1254 choke me
1255 #else
1256 atexit();
1257 #endif
1259 ; return 0; }
1261 if { (eval echo configure:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1262 rm -rf conftest*
1263 eval "ac_cv_func_atexit=yes"
1264 else
1265 echo "configure: failed program was:" >&5
1266 cat conftest.$ac_ext >&5
1267 rm -rf conftest*
1268 eval "ac_cv_func_atexit=no"
1270 rm -f conftest*
1273 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
1274 echo "$ac_t""yes" 1>&6
1275 cat >> confdefs.h <<\EOF
1276 #define onexit atexit
1279 else
1280 echo "$ac_t""no" 1>&6
1281 cat >> confdefs.h <<\EOF
1282 #define NO_ONEXIT 1
1285 echo $ac_n "checking for onexit""... $ac_c" 1>&6
1286 echo "configure:1287: checking for onexit" >&5
1287 if eval "test \"`echo '$''{'ac_cv_func_onexit'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 /* System header to define __stub macros and hopefully few prototypes,
1294 which can conflict with char onexit(); below. */
1295 #include <assert.h>
1296 /* Override any gcc2 internal prototype to avoid an error. */
1297 /* We use char because int might match the return type of a gcc2
1298 builtin and then its argument prototype would still apply. */
1299 char onexit();
1301 int main() {
1303 /* The GNU C library defines this for functions which it implements
1304 to always fail with ENOSYS. Some functions are actually named
1305 something starting with __ and the normal name is an alias. */
1306 #if defined (__stub_onexit) || defined (__stub___onexit)
1307 choke me
1308 #else
1309 onexit();
1310 #endif
1312 ; return 0; }
1314 if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1315 rm -rf conftest*
1316 eval "ac_cv_func_onexit=yes"
1317 else
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1320 rm -rf conftest*
1321 eval "ac_cv_func_onexit=no"
1323 rm -f conftest*
1326 if eval "test \"`echo '$ac_cv_func_'onexit`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1329 else
1330 echo "$ac_t""no" 1>&6
1331 echo $ac_n "checking for on_exit""... $ac_c" 1>&6
1332 echo "configure:1333: checking for on_exit" >&5
1333 if eval "test \"`echo '$''{'ac_cv_func_on_exit'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336 cat > conftest.$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339 /* System header to define __stub macros and hopefully few prototypes,
1340 which can conflict with char on_exit(); below. */
1341 #include <assert.h>
1342 /* Override any gcc2 internal prototype to avoid an error. */
1343 /* We use char because int might match the return type of a gcc2
1344 builtin and then its argument prototype would still apply. */
1345 char on_exit();
1347 int main() {
1349 /* The GNU C library defines this for functions which it implements
1350 to always fail with ENOSYS. Some functions are actually named
1351 something starting with __ and the normal name is an alias. */
1352 #if defined (__stub_on_exit) || defined (__stub___on_exit)
1353 choke me
1354 #else
1355 on_exit();
1356 #endif
1358 ; return 0; }
1360 if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1361 rm -rf conftest*
1362 eval "ac_cv_func_on_exit=yes"
1363 else
1364 echo "configure: failed program was:" >&5
1365 cat conftest.$ac_ext >&5
1366 rm -rf conftest*
1367 eval "ac_cv_func_on_exit=no"
1369 rm -f conftest*
1372 if eval "test \"`echo '$ac_cv_func_'on_exit`\" = yes"; then
1373 echo "$ac_t""yes" 1>&6
1374 cat >> confdefs.h <<\EOF
1375 #define onexit on_exit
1378 else
1379 echo "$ac_t""no" 1>&6
1386 else true
1389 # This should always succeed on unix.
1390 # Apparently positive result on cygwin loses re. NON_UNIX_STDIO
1391 # (as of cygwin b18).
1392 echo $ac_n "checking for fstat""... $ac_c" 1>&6
1393 echo "configure:1394: checking for fstat" >&5
1394 if eval "test \"`echo '$''{'ac_cv_func_fstat'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1396 else
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1400 /* System header to define __stub macros and hopefully few prototypes,
1401 which can conflict with char fstat(); below. */
1402 #include <assert.h>
1403 /* Override any gcc2 internal prototype to avoid an error. */
1404 /* We use char because int might match the return type of a gcc2
1405 builtin and then its argument prototype would still apply. */
1406 char fstat();
1408 int main() {
1410 /* The GNU C library defines this for functions which it implements
1411 to always fail with ENOSYS. Some functions are actually named
1412 something starting with __ and the normal name is an alias. */
1413 #if defined (__stub_fstat) || defined (__stub___fstat)
1414 choke me
1415 #else
1416 fstat();
1417 #endif
1419 ; return 0; }
1421 if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1422 rm -rf conftest*
1423 eval "ac_cv_func_fstat=yes"
1424 else
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1427 rm -rf conftest*
1428 eval "ac_cv_func_fstat=no"
1430 rm -f conftest*
1433 if eval "test \"`echo '$ac_cv_func_'fstat`\" = yes"; then
1434 echo "$ac_t""yes" 1>&6
1436 else
1437 echo "$ac_t""no" 1>&6
1440 echo $ac_n "checking need for NON_UNIX_STDIO""... $ac_c" 1>&6
1441 echo "configure:1442: checking need for NON_UNIX_STDIO" >&5
1442 if test $g77_cv_sys_cygwin32 = yes || test $ac_cv_func_fstat = no; then
1443 echo "$ac_t""yes" 1>&6
1444 cat >> confdefs.h <<\EOF
1445 #define NON_UNIX_STDIO 1
1448 else
1449 echo "$ac_t""no" 1>&6
1452 # This is necessary for e.g. Linux:
1453 echo $ac_n "checking for necessary members of struct FILE""... $ac_c" 1>&6
1454 echo "configure:1455: checking for necessary members of struct FILE" >&5
1455 if eval "test \"`echo '$''{'g77_cv_struct_FILE'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457 else
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461 #include <stdio.h>
1462 int main() {
1463 FILE s; s._ptr; s._base; s._flag;
1464 ; return 0; }
1466 if { (eval echo configure:1467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1467 rm -rf conftest*
1468 g77_cv_struct_FILE=yes
1469 else
1470 echo "configure: failed program was:" >&5
1471 cat conftest.$ac_ext >&5
1472 rm -rf conftest*
1473 g77_cv_struct_FILE=no
1475 rm -f conftest*
1477 echo "$ac_t""$g77_cv_struct_FILE" 1>&6
1478 if test $g77_cv_struct_FILE = no; then
1479 cat >> confdefs.h <<\EOF
1480 #define MISSING_FILE_ELEMS 1
1485 echo $ac_n "checking for drem in -lm""... $ac_c" 1>&6
1486 echo "configure:1487: checking for drem in -lm" >&5
1487 ac_lib_var=`echo m'_'drem | sed 'y%./+-%__p_%'`
1488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1490 else
1491 ac_save_LIBS="$LIBS"
1492 LIBS="-lm $LIBS"
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1496 /* Override any gcc2 internal prototype to avoid an error. */
1497 /* We use char because int might match the return type of a gcc2
1498 builtin and then its argument prototype would still apply. */
1499 char drem();
1501 int main() {
1502 drem()
1503 ; return 0; }
1505 if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1506 rm -rf conftest*
1507 eval "ac_cv_lib_$ac_lib_var=yes"
1508 else
1509 echo "configure: failed program was:" >&5
1510 cat conftest.$ac_ext >&5
1511 rm -rf conftest*
1512 eval "ac_cv_lib_$ac_lib_var=no"
1514 rm -f conftest*
1515 LIBS="$ac_save_LIBS"
1518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1519 echo "$ac_t""yes" 1>&6
1520 cat >> confdefs.h <<\EOF
1521 #define IEEE_drem 1
1524 else
1525 echo "$ac_t""no" 1>&6
1530 # posix will guarantee the right behaviour for sprintf, else we can't be
1531 # sure; HEADER_STDC wouldn't be the right check in sunos4, for instance.
1532 # However, on my sunos4/gcc setup unistd.h leads us wrongly to believe
1533 # we're posix-conformant, so always do the test.
1534 echo $ac_n "checking for ansi/posix sprintf result""... $ac_c" 1>&6
1535 echo "configure:1536: checking for ansi/posix sprintf result" >&5
1536 if test "$cross_compiling" = yes; then
1537 g77_cv_sys_sprintf_ansi=no
1538 else
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1542 #include <stdio.h>
1543 /* does sprintf return the number of chars transferred? */
1544 main () {char foo[2]; (sprintf(foo, "1") == 1) ? exit(0) : exit(1);}
1547 if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1548 then
1549 g77_cv_sys_sprintf_ansi=yes
1550 else
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1553 rm -fr conftest*
1554 g77_cv_sys_sprintf_ansi=no
1556 rm -fr conftest*
1559 if eval "test \"`echo '$''{'g77_cv_sys_sprintf_ansi'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1561 else
1562 g77_cv_sys_sprintf_ansi=$g77_cv_sys_sprintf_ansi
1565 if test $ac_cv_c_cross = no; then
1566 echo "$ac_t""$g77_cv_sys_sprintf_ansi" 1>&6
1567 else
1568 echo "$ac_t""can't tell -- assuming no" 1>&6
1570 # The cygwin patch takes steps to avoid defining USE_STRLEN here -- I don't
1571 # understand why.
1572 if test $g77_cv_sys_sprintf_ansi != yes; then
1573 cat >> confdefs.h <<\EOF
1574 #define USE_STRLEN 1
1579 # define NON_ANSI_RW_MODES on unix (can't hurt)
1580 echo $ac_n "checking NON_ANSI_RW_MODES""... $ac_c" 1>&6
1581 echo "configure:1582: checking NON_ANSI_RW_MODES" >&5
1582 cat > conftest.$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1585 #ifdef unix
1587 #endif
1588 #ifdef __unix
1590 #endif
1591 #ifdef __unix__
1593 #endif
1596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1597 egrep "yes" >/dev/null 2>&1; then
1598 rm -rf conftest*
1599 is_unix=yes
1600 else
1601 rm -rf conftest*
1602 is_unix=no
1604 rm -f conftest*
1606 if test $g77_cv_sys_cygwin32 = yes; then
1607 echo "$ac_t""no" 1>&6
1608 else
1609 if test $is_unix = yes; then
1610 cat >> confdefs.h <<\EOF
1611 #define NON_ANSI_RW_MODES 1
1614 echo "$ac_t""yes" 1>&6
1615 else
1616 echo "$ac_t""no" 1>&6
1620 # We have to firkle with the info in hconfig.h to figure out suitable types
1621 # (via com.h). proj.h and com.h are in $srcdir/.., config.h which they need
1622 # is in ../.. and the config files are in $srcdir/../../config.
1623 echo $ac_n "checking f2c integer type""... $ac_c" 1>&6
1624 echo "configure:1625: checking f2c integer type" >&5
1625 late_ac_cpp=$ac_cpp
1626 ac_cpp="$late_ac_cpp -I$srcdir/.. -I../.. -I$srcdir/../.. -I$srcdir/../../config"
1627 if eval "test \"`echo '$''{'g77_cv_sys_f2cinteger'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1629 else
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 #include "proj.h"
1634 #define FFECOM_DETERMINE_TYPES 1
1635 #include "com.h"
1636 #if FFECOM_f2cINTEGER == FFECOM_f2ccodeLONG
1637 F2C_INTEGER=long int
1638 #elif FFECOM_f2cINTEGER == FFECOM_f2ccodeINT
1639 F2C_INTEGER=int
1640 #else
1641 # error "Cannot find a suitable type for F2C_INTEGER"
1642 #endif
1645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1646 egrep "F2C_INTEGER=long int" >/dev/null 2>&1; then
1647 rm -rf conftest*
1648 g77_cv_sys_f2cinteger="long int"
1650 rm -f conftest*
1652 if test "$g77_cv_sys_f2cinteger" = ""; then
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 #include "proj.h"
1657 #define FFECOM_DETERMINE_TYPES 1
1658 #include "com.h"
1659 #if FFECOM_f2cINTEGER == FFECOM_f2ccodeLONG
1660 F2C_INTEGER=long int
1661 #elif FFECOM_f2cINTEGER == FFECOM_f2ccodeINT
1662 F2C_INTEGER=int
1663 #else
1664 # error "Cannot find a suitable type for F2C_INTEGER"
1665 #endif
1668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1669 egrep "F2C_INTEGER=int" >/dev/null 2>&1; then
1670 rm -rf conftest*
1671 g77_cv_sys_f2cinteger=int
1673 rm -f conftest*
1676 if test "$g77_cv_sys_f2cinteger" = ""; then
1677 echo "$ac_t""""" 1>&6
1678 { echo "configure: error: Can't determine type for f2c integer; config.log may help." 1>&2; exit 1; }
1683 echo "$ac_t""$g77_cv_sys_f2cinteger" 1>&6
1684 F2C_INTEGER=$g77_cv_sys_f2cinteger
1685 ac_cpp=$late_ac_cpp
1688 echo $ac_n "checking f2c long int type""... $ac_c" 1>&6
1689 echo "configure:1690: checking f2c long int type" >&5
1690 late_ac_cpp=$ac_cpp
1691 ac_cpp="$late_ac_cpp -I$srcdir/.. -I../.. -I$srcdir/../.. -I$srcdir/../../config"
1692 if eval "test \"`echo '$''{'g77_cv_sys_f2clongint'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1694 else
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 #include "proj.h"
1699 #define FFECOM_DETERMINE_TYPES 1
1700 #include "com.h"
1701 #if FFECOM_f2cLONGINT == FFECOM_f2ccodeLONG
1702 F2C_LONGINT=long int
1703 #elif FFECOM_f2cLONGINT == FFECOM_f2ccodeLONGLONG
1704 F2C_LONGINT=long long int
1705 #else
1706 # error "Cannot find a suitable type for F2C_LONGINT"
1707 #endif
1710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1711 egrep "F2C_LONGINT=long int" >/dev/null 2>&1; then
1712 rm -rf conftest*
1713 g77_cv_sys_f2clongint="long int"
1715 rm -f conftest*
1717 if test "$g77_cv_sys_f2clongint" = ""; then
1718 cat > conftest.$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1721 #include "proj.h"
1722 #define FFECOM_DETERMINE_TYPES 1
1723 #include "com.h"
1724 #if FFECOM_f2cLONGINT == FFECOM_f2ccodeLONG
1725 F2C_LONGINT=long int
1726 #elif FFECOM_f2cLONGINT == FFECOM_f2ccodeLONGLONG
1727 F2C_LONGINT=long long int
1728 #else
1729 # error "Cannot find a suitable type for F2C_LONGINT"
1730 #endif
1733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1734 egrep "F2C_LONGINT=long long int" >/dev/null 2>&1; then
1735 rm -rf conftest*
1736 g77_cv_sys_f2clongint="long long int"
1738 rm -f conftest*
1741 if test "$g77_cv_sys_f2clongint" = ""; then
1742 echo "$ac_t""""" 1>&6
1743 { echo "configure: error: Can't determine type for f2c long int; config.log may help." 1>&2; exit 1; }
1748 echo "$ac_t""$g77_cv_sys_f2clongint" 1>&6
1749 F2C_LONGINT=$g77_cv_sys_f2clongint
1750 ac_cpp=$late_ac_cpp
1757 # This EOF_CHAR is a misfeature on unix.
1758 cat >> confdefs.h <<\EOF
1759 #define NO_EOF_CHAR_CHECK 1
1763 cat >> confdefs.h <<\EOF
1764 #define Skip_f2c_Undefs 1
1771 cat >> confdefs.h <<\EOF
1772 #define Pad_UDread 1
1779 cat >> confdefs.h <<\EOF
1780 #define WANT_LEAD_0 1
1784 # avoid confusion in case the `makefile's from the f2c distribution have
1785 # got put here
1786 test -f libF77/makefile && mv libF77/makefile libF77/makefile.ori
1787 test -f libI77/makefile && mv libI77/makefile libI77/makefile.ori
1788 test -f libU77/makefile && mv libU77/makefile libU77/makefile.ori
1790 trap '' 1 2 15
1791 cat > confcache <<\EOF
1792 # This file is a shell script that caches the results of configure
1793 # tests run on this system so they can be shared between configure
1794 # scripts and configure runs. It is not useful on other systems.
1795 # If it contains results you don't want to keep, you may remove or edit it.
1797 # By default, configure uses ./config.cache as the cache file,
1798 # creating it if it does not exist already. You can give configure
1799 # the --cache-file=FILE option to use a different cache file; that is
1800 # what configure does when it calls configure scripts in
1801 # subdirectories, so they share the cache.
1802 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1803 # config.status only pays attention to the cache file if you give it the
1804 # --recheck option to rerun configure.
1807 # The following way of writing the cache mishandles newlines in values,
1808 # but we know of no workaround that is simple, portable, and efficient.
1809 # So, don't put newlines in cache variables' values.
1810 # Ultrix sh set writes to stderr and can't be redirected directly,
1811 # and sets the high bit in the cache file unless we assign to the vars.
1812 (set) 2>&1 |
1813 case `(ac_space=' '; set) 2>&1` in
1814 *ac_space=\ *)
1815 # `set' does not quote correctly, so add quotes (double-quote substitution
1816 # turns \\\\ into \\, and sed turns \\ into \).
1817 sed -n \
1818 -e "s/'/'\\\\''/g" \
1819 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1822 # `set' quotes correctly as required by POSIX, so do not add quotes.
1823 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1825 esac >> confcache
1826 if cmp -s $cache_file confcache; then
1828 else
1829 if test -w $cache_file; then
1830 echo "updating cache $cache_file"
1831 cat confcache > $cache_file
1832 else
1833 echo "not updating unwritable cache $cache_file"
1836 rm -f confcache
1838 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1840 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1841 # Let make expand exec_prefix.
1842 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1844 # Any assignment to VPATH causes Sun make to only execute
1845 # the first set of double-colon rules, so remove it if not needed.
1846 # If there is a colon in the path, we need to keep it.
1847 if test "x$srcdir" = x.; then
1848 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1851 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1853 # Transform confdefs.h into DEFS.
1854 # Protect against shell expansion while executing Makefile rules.
1855 # Protect against Makefile macro expansion.
1856 cat > conftest.defs <<\EOF
1857 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1858 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1859 s%\[%\\&%g
1860 s%\]%\\&%g
1861 s%\$%$$%g
1863 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1864 rm -f conftest.defs
1867 # Without the "./", some shells look in PATH for config.status.
1868 : ${CONFIG_STATUS=./config.status}
1870 echo creating $CONFIG_STATUS
1871 rm -f $CONFIG_STATUS
1872 cat > $CONFIG_STATUS <<EOF
1873 #! /bin/sh
1874 # Generated automatically by configure.
1875 # Run this file to recreate the current configuration.
1876 # This directory was configured as follows,
1877 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1879 # $0 $ac_configure_args
1881 # Compiler output produced by configure, useful for debugging
1882 # configure, is in ./config.log if it exists.
1884 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1885 for ac_option
1887 case "\$ac_option" in
1888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1889 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1890 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1891 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1892 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1893 exit 0 ;;
1894 -help | --help | --hel | --he | --h)
1895 echo "\$ac_cs_usage"; exit 0 ;;
1896 *) echo "\$ac_cs_usage"; exit 1 ;;
1897 esac
1898 done
1900 ac_given_srcdir=$srcdir
1902 trap 'rm -fr `echo "Makefile ../../include/f2c.h:f2c.h.in libI77/Makefile libF77/Makefile libU77/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1904 cat >> $CONFIG_STATUS <<EOF
1906 # Protect against being on the right side of a sed subst in config.status.
1907 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1908 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1909 $ac_vpsub
1910 $extrasub
1911 s%@CFLAGS@%$CFLAGS%g
1912 s%@CPPFLAGS@%$CPPFLAGS%g
1913 s%@CXXFLAGS@%$CXXFLAGS%g
1914 s%@DEFS@%$DEFS%g
1915 s%@LDFLAGS@%$LDFLAGS%g
1916 s%@LIBS@%$LIBS%g
1917 s%@exec_prefix@%$exec_prefix%g
1918 s%@prefix@%$prefix%g
1919 s%@program_transform_name@%$program_transform_name%g
1920 s%@bindir@%$bindir%g
1921 s%@sbindir@%$sbindir%g
1922 s%@libexecdir@%$libexecdir%g
1923 s%@datadir@%$datadir%g
1924 s%@sysconfdir@%$sysconfdir%g
1925 s%@sharedstatedir@%$sharedstatedir%g
1926 s%@localstatedir@%$localstatedir%g
1927 s%@libdir@%$libdir%g
1928 s%@includedir@%$includedir%g
1929 s%@oldincludedir@%$oldincludedir%g
1930 s%@infodir@%$infodir%g
1931 s%@mandir@%$mandir%g
1932 s%@CC@%$CC%g
1933 s%@AR@%$AR%g
1934 s%@RANLIB@%$RANLIB%g
1935 s%@RANLIB_TEST@%$RANLIB_TEST%g
1936 s%@CPP@%$CPP%g
1937 s%@F2C_INTEGER@%$F2C_INTEGER%g
1938 s%@F2C_LONGINT@%$F2C_LONGINT%g
1939 s%@CROSS@%$CROSS%g
1941 CEOF
1944 cat >> $CONFIG_STATUS <<\EOF
1946 # Split the substitutions into bite-sized pieces for seds with
1947 # small command number limits, like on Digital OSF/1 and HP-UX.
1948 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1949 ac_file=1 # Number of current file.
1950 ac_beg=1 # First line for current file.
1951 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1952 ac_more_lines=:
1953 ac_sed_cmds=""
1954 while $ac_more_lines; do
1955 if test $ac_beg -gt 1; then
1956 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1957 else
1958 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1960 if test ! -s conftest.s$ac_file; then
1961 ac_more_lines=false
1962 rm -f conftest.s$ac_file
1963 else
1964 if test -z "$ac_sed_cmds"; then
1965 ac_sed_cmds="sed -f conftest.s$ac_file"
1966 else
1967 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1969 ac_file=`expr $ac_file + 1`
1970 ac_beg=$ac_end
1971 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1973 done
1974 if test -z "$ac_sed_cmds"; then
1975 ac_sed_cmds=cat
1979 cat >> $CONFIG_STATUS <<EOF
1981 CONFIG_FILES=\${CONFIG_FILES-"Makefile ../../include/f2c.h:f2c.h.in libI77/Makefile libF77/Makefile libU77/Makefile"}
1983 cat >> $CONFIG_STATUS <<\EOF
1984 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1986 case "$ac_file" in
1987 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1988 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1989 *) ac_file_in="${ac_file}.in" ;;
1990 esac
1992 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1994 # Remove last slash and all that follows it. Not all systems have dirname.
1995 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1996 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1997 # The file is in a subdirectory.
1998 test ! -d "$ac_dir" && mkdir "$ac_dir"
1999 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2000 # A "../" for each directory in $ac_dir_suffix.
2001 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2002 else
2003 ac_dir_suffix= ac_dots=
2006 case "$ac_given_srcdir" in
2007 .) srcdir=.
2008 if test -z "$ac_dots"; then top_srcdir=.
2009 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2010 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2011 *) # Relative path.
2012 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2013 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2014 esac
2017 echo creating "$ac_file"
2018 rm -f "$ac_file"
2019 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2020 case "$ac_file" in
2021 *Makefile*) ac_comsub="1i\\
2022 # $configure_input" ;;
2023 *) ac_comsub= ;;
2024 esac
2026 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2027 sed -e "$ac_comsub
2028 s%@configure_input@%$configure_input%g
2029 s%@srcdir@%$srcdir%g
2030 s%@top_srcdir@%$top_srcdir%g
2031 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2032 fi; done
2033 rm -f conftest.s*
2036 cat >> $CONFIG_STATUS <<EOF
2039 cat >> $CONFIG_STATUS <<\EOF
2041 exit 0
2043 chmod +x $CONFIG_STATUS
2044 rm -fr confdefs* $ac_clean_files
2045 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1