source: trunk/src/gcc/libf2c/libI77/configure@ 1122

Last change on this file since 1122 was 1122, checked in by bird, 22 years ago

Regenerated with new autoconf (forced to use stable).

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 64.9 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19cache_file=./config.cache
20exec_prefix=NONE
21host=NONE
22no_create=
23nonopt=NONE
24no_recursion=
25prefix=NONE
26program_prefix=NONE
27program_suffix=NONE
28program_transform_name=s,x,x,
29silent=
30site=
31srcdir=
32target=NONE
33verbose=
34x_includes=NONE
35x_libraries=NONE
36bindir='${exec_prefix}/bin'
37sbindir='${exec_prefix}/sbin'
38libexecdir='${exec_prefix}/libexec'
39datadir='${prefix}/share'
40sysconfdir='${prefix}/etc'
41sharedstatedir='${prefix}/com'
42localstatedir='${prefix}/var'
43libdir='${exec_prefix}/lib'
44includedir='${prefix}/include'
45oldincludedir='/usr/include'
46infodir='${prefix}/info'
47mandir='${prefix}/man'
48
49# Initialize some other variables.
50subdirs=
51MFLAGS= MAKEFLAGS=
52SHELL=${CONFIG_SHELL-/bin/sh}
53# Maximum number of lines to put in a shell here document.
54ac_max_here_lines=12
55
56ac_prev=
57for ac_option
58do
59
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
63 ac_prev=
64 continue
65 fi
66
67 case "$ac_option" in
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69 *) ac_optarg= ;;
70 esac
71
72 # Accept the important Cygnus configure options, so we can diagnose typos.
73
74 case "$ac_option" in
75
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
77 ac_prev=bindir ;;
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
80
81 -build | --build | --buil | --bui | --bu)
82 ac_prev=build ;;
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84 build="$ac_optarg" ;;
85
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88 ac_prev=cache_file ;;
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
92
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94 ac_prev=datadir ;;
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96 | --da=*)
97 datadir="$ac_optarg" ;;
98
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104 fi
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
107
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 fi
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 case "$ac_option" in
116 *=*) ;;
117 *) ac_optarg=yes ;;
118 esac
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
120
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
129
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
132 with_gas=yes ;;
133
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
137 cat << EOF
138Usage: configure [options] [host]
139Options: [defaults in brackets after descriptions]
140Configuration:
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
148 [$ac_default_prefix]
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
150 [same as prefix]
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
155 [PREFIX/share]
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
158 [PREFIX/com]
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
170EOF
171 cat << EOF
172Host type:
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
183EOF
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
186 fi
187 exit 0 ;;
188
189 -host | --host | --hos | --ho)
190 ac_prev=host ;;
191 -host=* | --host=* | --hos=* | --ho=*)
192 host="$ac_optarg" ;;
193
194 -includedir | --includedir | --includedi | --included | --include \
195 | --includ | --inclu | --incl | --inc)
196 ac_prev=includedir ;;
197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 | --includ=* | --inclu=* | --incl=* | --inc=*)
199 includedir="$ac_optarg" ;;
200
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
202 ac_prev=infodir ;;
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
205
206 -libdir | --libdir | --libdi | --libd)
207 ac_prev=libdir ;;
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
210
211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 | --libexe | --libex | --libe)
213 ac_prev=libexecdir ;;
214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 | --libexe=* | --libex=* | --libe=*)
216 libexecdir="$ac_optarg" ;;
217
218 -localstatedir | --localstatedir | --localstatedi | --localstated \
219 | --localstate | --localstat | --localsta | --localst \
220 | --locals | --local | --loca | --loc | --lo)
221 ac_prev=localstatedir ;;
222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 localstatedir="$ac_optarg" ;;
226
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228 ac_prev=mandir ;;
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
231
232 -nfp | --nfp | --nf)
233 # Obsolete; use --without-fp.
234 with_fp=no ;;
235
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237 | --no-cr | --no-c)
238 no_create=yes ;;
239
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
242 no_recursion=yes ;;
243
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 | --oldin | --oldi | --old | --ol | --o)
247 ac_prev=oldincludedir ;;
248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 oldincludedir="$ac_optarg" ;;
252
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254 ac_prev=prefix ;;
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
257
258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 | --program-pre | --program-pr | --program-p)
260 ac_prev=program_prefix ;;
261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 program_prefix="$ac_optarg" ;;
264
265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 | --program-suf | --program-su | --program-s)
267 ac_prev=program_suffix ;;
268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 program_suffix="$ac_optarg" ;;
271
272 -program-transform-name | --program-transform-name \
273 | --program-transform-nam | --program-transform-na \
274 | --program-transform-n | --program-transform- \
275 | --program-transform | --program-transfor \
276 | --program-transfo | --program-transf \
277 | --program-trans | --program-tran \
278 | --progr-tra | --program-tr | --program-t)
279 ac_prev=program_transform_name ;;
280 -program-transform-name=* | --program-transform-name=* \
281 | --program-transform-nam=* | --program-transform-na=* \
282 | --program-transform-n=* | --program-transform-=* \
283 | --program-transform=* | --program-transfor=* \
284 | --program-transfo=* | --program-transf=* \
285 | --program-trans=* | --program-tran=* \
286 | --progr-tra=* | --program-tr=* | --program-t=*)
287 program_transform_name="$ac_optarg" ;;
288
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
291 silent=yes ;;
292
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294 ac_prev=sbindir ;;
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296 | --sbi=* | --sb=*)
297 sbindir="$ac_optarg" ;;
298
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
302 | --sha | --sh)
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307 | --sha=* | --sh=*)
308 sharedstatedir="$ac_optarg" ;;
309
310 -site | --site | --sit)
311 ac_prev=site ;;
312 -site=* | --site=* | --sit=*)
313 site="$ac_optarg" ;;
314
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316 ac_prev=srcdir ;;
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
319
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 | --syscon | --sysco | --sysc | --sys | --sy)
322 ac_prev=sysconfdir ;;
323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 sysconfdir="$ac_optarg" ;;
326
327 -target | --target | --targe | --targ | --tar | --ta | --t)
328 ac_prev=target ;;
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
331
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
333 verbose=yes ;;
334
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.13"
337 exit 0 ;;
338
339 -with-* | --with-*)
340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344 fi
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
346 case "$ac_option" in
347 *=*) ;;
348 *) ac_optarg=yes ;;
349 esac
350 eval "with_${ac_package}='$ac_optarg'" ;;
351
352 -without-* | --without-*)
353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
360
361 --x)
362 # Obsolete; use --with-x.
363 with_x=yes ;;
364
365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 | --x-incl | --x-inc | --x-in | --x-i)
367 ac_prev=x_includes ;;
368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 x_includes="$ac_optarg" ;;
371
372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 ac_prev=x_libraries ;;
375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 x_libraries="$ac_optarg" ;;
378
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380 ;;
381
382 *)
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
385 fi
386 if test "x$nonopt" != xNONE; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388 fi
389 nonopt="$ac_option"
390 ;;
391
392 esac
393done
394
395if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397fi
398
399trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400
401# File descriptor usage:
402# 0 standard input
403# 1 file creation
404# 2 errors and warnings
405# 3 some systems may open it to /dev/tty
406# 4 used on the Kubota Titan
407# 6 checking for... messages and results
408# 5 compiler messages saved in config.log
409if test "$silent" = yes; then
410 exec 6>/dev/null
411else
412 exec 6>&1
413fi
414exec 5>./config.log
415
416echo "\
417This file contains any messages produced by compilers while
418running configure, to aid debugging if configure makes a mistake.
419" 1>&5
420
421# Strip out --no-create and --no-recursion so they do not pile up.
422# Also quote any args containing shell metacharacters.
423ac_configure_args=
424for ac_arg
425do
426 case "$ac_arg" in
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c) ;;
429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434 esac
435done
436
437# NLS nuisances.
438# Only set these to C if already set. These must not be set unconditionally
439# because not all systems understand e.g. LANG=C (notably SCO).
440# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441# Non-C LC_CTYPE values break the ctype check.
442if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
446
447# confdefs.h avoids OS command line length limits that DEFS can exceed.
448rm -rf conftest* confdefs.h
449# AIX cpp loses on an empty file, so make sure it contains at least a newline.
450echo > confdefs.h
451
452# A filename unique to this package, relative to the directory that
453# configure is in, which we can look for to find out if srcdir is correct.
454ac_unique_file=ftell_.c
455
456# Find the source files, if location was not specified.
457if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
460 ac_prog=$0
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463 srcdir=$ac_confdir
464 if test ! -r $srcdir/$ac_unique_file; then
465 srcdir=..
466 fi
467else
468 ac_srcdir_defaulted=no
469fi
470if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473 else
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475 fi
476fi
477srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478
479# Prefer explicitly selected file to automatically selected ones.
480if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483 else
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485 fi
486fi
487for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
490 . "$ac_site_file"
491 fi
492done
493
494if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
496 . $cache_file
497else
498 echo "creating cache $cache_file"
499 > $cache_file
500fi
501
502ac_ext=c
503# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504ac_cpp='$CPP $CPPFLAGS'
505ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507cross_compiling=$ac_cv_prog_cc_cross
508
509ac_exeext=
510ac_objext=o
511if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514 ac_n= ac_c='
515' ac_t=' '
516 else
517 ac_n=-n ac_c= ac_t=
518 fi
519else
520 ac_n= ac_c='\c' ac_t=
521fi
522
523echo $ac_n "checking for path separator""... $ac_c" 1>&6
524echo "configure:525: checking for path separator" >&5
525# Filter path to get backslahes into forwardslashes
526case "`uname -s 2> /dev/null`" in
527OS/2)
528 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
529 PATH_IFS=';'
530 ;;
531*)
532 PATH_IFS=':'
533 ;;
534esac
535echo "$ac_t""${PATH_IFS}" 1>&6
536
537echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
538echo "configure:539: checking for Cygwin environment" >&5
539if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
540 echo $ac_n "(cached) $ac_c" 1>&6
541else
542 cat > conftest.$ac_ext <<EOF
543#line 544 "configure"
544#include "confdefs.h"
545
546int main() {
547
548#ifndef __CYGWIN__
549#define __CYGWIN__ __CYGWIN32__
550#endif
551return __CYGWIN__;
552; return 0; }
553EOF
554if { (eval echo configure:555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
555 rm -rf conftest*
556 ac_cv_cygwin=yes
557else
558 echo "configure: failed program was:" >&5
559 cat conftest.$ac_ext >&5
560 rm -rf conftest*
561 ac_cv_cygwin=no
562fi
563rm -f conftest*
564rm -f conftest*
565fi
566
567echo "$ac_t""$ac_cv_cygwin" 1>&6
568CYGWIN=
569test "$ac_cv_cygwin" = yes && CYGWIN=yes
570echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
571echo "configure:572: checking for mingw32 environment" >&5
572if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
573 echo $ac_n "(cached) $ac_c" 1>&6
574else
575 cat > conftest.$ac_ext <<EOF
576#line 577 "configure"
577#include "confdefs.h"
578
579int main() {
580return __MINGW32__;
581; return 0; }
582EOF
583if { (eval echo configure:584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
584 rm -rf conftest*
585 ac_cv_mingw32=yes
586else
587 echo "configure: failed program was:" >&5
588 cat conftest.$ac_ext >&5
589 rm -rf conftest*
590 ac_cv_mingw32=no
591fi
592rm -f conftest*
593rm -f conftest*
594fi
595
596echo "$ac_t""$ac_cv_mingw32" 1>&6
597MINGW32=
598test "$ac_cv_mingw32" = yes && MINGW32=yes
599echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
600echo "configure:601: checking for EMX/OS2 environment" >&5
601if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
602 echo $ac_n "(cached) $ac_c" 1>&6
603else
604 : ${CC=gcc.exe}
605cat > conftest.$ac_ext <<EOF
606#line 607 "configure"
607#include "confdefs.h"
608
609int main() {
610return __EMX__;
611; return 0; }
612EOF
613if { (eval echo configure:614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
614 rm -rf conftest*
615 ac_cv_emxos2=yes
616else
617 echo "configure: failed program was:" >&5
618 cat conftest.$ac_ext >&5
619 rm -rf conftest*
620 ac_cv_emxos2=no
621fi
622rm -f conftest*
623rm -f conftest*
624fi
625
626echo "$ac_t""$ac_cv_emxos2" 1>&6
627if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
628 echo $ac_n "(cached) $ac_c" 1>&6
629else
630 if test "$ac_cv_emxos2" = yes ; then
631 ac_cv_libpre=
632else
633 ac_cv_libpre=lib
634fi
635
636fi
637
638EMXOS2=
639test "$ac_cv_emxos2" = yes && EMXOS2=yes
640
641
642
643echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
644echo "configure:645: checking for executable suffix" >&5
645if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
647else
648 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
649 ac_cv_exeext=.exe
650else
651 rm -f conftest*
652 echo 'int main () { return 0; }' > conftest.$ac_ext
653 ac_cv_exeext=
654 if { (eval echo configure:655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
655 for file in conftest.*; do
656 case $file in
657 *.c | *.o | *.obj) ;;
658 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
659 esac
660 done
661 else
662 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
663 fi
664 rm -f conftest*
665 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
666fi
667fi
668
669EXEEXT=""
670test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
671echo "$ac_t""${ac_cv_exeext}" 1>&6
672ac_exeext=$EXEEXT
673
674
675
676
677# These defines are necessary to get 64-bit file size support.
678
679cat >> confdefs.h <<\EOF
680#define _XOPEN_SOURCE 500L
681EOF
682
683# The following is needed by irix6.2 so that struct timeval is declared.
684cat >> confdefs.h <<\EOF
685#define _XOPEN_SOURCE_EXTENDED 1
686EOF
687
688# The following is needed by Solaris2.5.1 so that struct timeval is declared.
689cat >> confdefs.h <<\EOF
690#define __EXTENSIONS__ 1
691EOF
692
693cat >> confdefs.h <<\EOF
694#define _FILE_OFFSET_BITS 64
695EOF
696
697cat >> confdefs.h <<\EOF
698#define _LARGEFILE_SOURCE 1
699EOF
700
701
702
703
704
705# For g77 we'll set CC to point at the built gcc, but this will get it into
706# the makefiles
707# Extract the first word of "gcc", so it can be a program name with args.
708set dummy gcc; ac_word=$2
709echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
710echo "configure:711: checking for $ac_word" >&5
711if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
713else
714 if test -n "$CC"; then
715 ac_cv_prog_CC="$CC" # Let the user override the test.
716else
717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
718 ac_dummy="$PATH"
719 for ac_dir in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir=.
721 if test -f $ac_dir/$ac_word -o \
722 -f $ac_dir/$ac_word$ac_exeext ; then
723 ac_cv_prog_CC="gcc"
724 break
725 fi
726 done
727 IFS="$ac_save_ifs"
728fi
729fi
730CC="$ac_cv_prog_CC"
731if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
733else
734 echo "$ac_t""no" 1>&6
735fi
736
737if test -z "$CC"; then
738 # Extract the first word of "cc", so it can be a program name with args.
739set dummy cc; ac_word=$2
740echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
741echo "configure:742: checking for $ac_word" >&5
742if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
743 echo $ac_n "(cached) $ac_c" 1>&6
744else
745 if test -n "$CC"; then
746 ac_cv_prog_CC="$CC" # Let the user override the test.
747else
748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
749 ac_prog_rejected=no
750 ac_dummy="$PATH"
751 for ac_dir in $ac_dummy; do
752 test -z "$ac_dir" && ac_dir=.
753 if test -f $ac_dir/$ac_word -o \
754 -f $ac_dir/$ac_word$ac_exeext ; then
755 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
756 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
757 ac_prog_rejected=yes
758 continue
759 fi
760 ac_cv_prog_CC="cc"
761 break
762 fi
763 done
764 IFS="$ac_save_ifs"
765if test $ac_prog_rejected = yes; then
766 # We found a bogon in the path, so make sure we never use it.
767 set dummy $ac_cv_prog_CC
768 shift
769 if test $# -gt 0; then
770 # We chose a different compiler from the bogus one.
771 # However, it has the same basename, so the bogon will be chosen
772 # first if we set CC to just the basename; use the full file name.
773 shift
774 set dummy "$ac_dir/$ac_word" "$@"
775 shift
776 ac_cv_prog_CC="$@"
777 fi
778fi
779fi
780fi
781CC="$ac_cv_prog_CC"
782if test -n "$CC"; then
783 echo "$ac_t""$CC" 1>&6
784else
785 echo "$ac_t""no" 1>&6
786fi
787
788 if test -z "$CC"; then
789 case "`uname -s`" in
790 *win32* | *WIN32*)
791 # Extract the first word of "cl", so it can be a program name with args.
792set dummy cl; ac_word=$2
793echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
794echo "configure:795: checking for $ac_word" >&5
795if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
797else
798 if test -n "$CC"; then
799 ac_cv_prog_CC="$CC" # Let the user override the test.
800else
801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
802 ac_dummy="$PATH"
803 for ac_dir in $ac_dummy; do
804 test -z "$ac_dir" && ac_dir=.
805 if test -f $ac_dir/$ac_word -o \
806 -f $ac_dir/$ac_word$ac_exeext ; then
807 ac_cv_prog_CC="cl"
808 break
809 fi
810 done
811 IFS="$ac_save_ifs"
812fi
813fi
814CC="$ac_cv_prog_CC"
815if test -n "$CC"; then
816 echo "$ac_t""$CC" 1>&6
817else
818 echo "$ac_t""no" 1>&6
819fi
820 ;;
821 esac
822 fi
823 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
824fi
825
826
827echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
828echo "configure:829: checking whether we are using GNU C" >&5
829if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
831else
832 cat > conftest.c <<EOF
833#ifdef __GNUC__
834 yes;
835#endif
836EOF
837if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
838 ac_cv_prog_gcc=yes
839else
840 ac_cv_prog_gcc=no
841fi
842fi
843
844echo "$ac_t""$ac_cv_prog_gcc" 1>&6
845
846if test $ac_cv_prog_gcc = yes; then
847 GCC=yes
848else
849 GCC=
850fi
851
852ac_test_CFLAGS="${CFLAGS+set}"
853ac_save_CFLAGS="$CFLAGS"
854CFLAGS=
855echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
856echo "configure:857: checking whether ${CC-cc} accepts -g" >&5
857if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
859else
860 echo 'void f(){}' > conftest.c
861if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
862 ac_cv_prog_cc_g=yes
863else
864 ac_cv_prog_cc_g=no
865fi
866rm -f conftest*
867
868fi
869
870echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
871if test "$ac_test_CFLAGS" = set; then
872 CFLAGS="$ac_save_CFLAGS"
873elif test $ac_cv_prog_cc_g = yes; then
874 if test "$GCC" = yes; then
875 CFLAGS="-g -O2"
876 else
877 CFLAGS="-g"
878 fi
879else
880 if test "$GCC" = yes; then
881 CFLAGS="-O2"
882 else
883 CFLAGS=
884 fi
885fi
886
887
888LIBTOOL='$(SHELL) ../libtool'
889
890
891test "$AR" || AR=ar
892
893echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
894echo "configure:895: checking whether ${MAKE-make} sets \${MAKE}" >&5
895set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
896if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
898else
899 cat > conftestmake <<\EOF
900all:
901 @echo 'ac_maketemp="${MAKE}"'
902EOF
903# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
904eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
905if test -n "$ac_maketemp"; then
906 eval ac_cv_prog_make_${ac_make}_set=yes
907else
908 eval ac_cv_prog_make_${ac_make}_set=no
909fi
910rm -f conftestmake
911fi
912if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
913 echo "$ac_t""yes" 1>&6
914 SET_MAKE=
915else
916 echo "$ac_t""no" 1>&6
917 SET_MAKE="MAKE=${MAKE-make}"
918fi
919
920
921
922# Sanity check for the cross-compilation case:
923echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
924echo "configure:925: checking how to run the C preprocessor" >&5
925# On Suns, sometimes $CPP names a directory.
926if test -n "$CPP" && test -d "$CPP"; then
927 CPP=
928fi
929if test -z "$CPP"; then
930if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
932else
933 # This must be in double quotes, not single quotes, because CPP may get
934 # substituted into the Makefile and "${CC-cc}" will confuse make.
935 CPP="${CC-cc} -E"
936 # On the NeXT, cc -E runs the code through the compiler's parser,
937 # not just through cpp.
938 cat > conftest.$ac_ext <<EOF
939#include <sys/types.h>
940#line 941 "configure"
941#include "confdefs.h"
942#include <assert.h>
943Syntax Error
944EOF
945ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
946{ (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
947ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
948if test -z "$ac_err"; then
949 :
950else
951 echo "$ac_err" >&5
952 echo "configure: failed program was:" >&5
953 cat conftest.$ac_ext >&5
954 rm -rf conftest*
955 CPP="${CC-cc} -E -traditional-cpp"
956 cat > conftest.$ac_ext <<EOF
957#include <sys/types.h>
958#line 959 "configure"
959#include "confdefs.h"
960#include <assert.h>
961Syntax Error
962EOF
963ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
964{ (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
965ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
966if test -z "$ac_err"; then
967 :
968else
969 echo "$ac_err" >&5
970 echo "configure: failed program was:" >&5
971 cat conftest.$ac_ext >&5
972 rm -rf conftest*
973 CPP="${CC-cc} -nologo -E"
974 cat > conftest.$ac_ext <<EOF
975#include <sys/types.h>
976#line 977 "configure"
977#include "confdefs.h"
978#include <assert.h>
979Syntax Error
980EOF
981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
982{ (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
984if test -z "$ac_err"; then
985 :
986else
987 echo "$ac_err" >&5
988 echo "configure: failed program was:" >&5
989 cat conftest.$ac_ext >&5
990 rm -rf conftest*
991 CPP=/lib/cpp
992fi
993rm -f conftest*
994fi
995rm -f conftest*
996fi
997rm -f conftest*
998 ac_cv_prog_CPP="$CPP"
999fi
1000 CPP="$ac_cv_prog_CPP"
1001else
1002 ac_cv_prog_CPP="$CPP"
1003fi
1004echo "$ac_t""$CPP" 1>&6
1005
1006ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
1007echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
1008echo "configure:1009: checking for stdio.h" >&5
1009if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011else
1012 cat > conftest.$ac_ext <<EOF
1013#include <sys/types.h>
1014#line 1015 "configure"
1015#include "confdefs.h"
1016#include <stdio.h>
1017EOF
1018ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1019{ (eval echo configure:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1020ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1021if test -z "$ac_err"; then
1022 rm -rf conftest*
1023 eval "ac_cv_header_$ac_safe=yes"
1024else
1025 echo "$ac_err" >&5
1026 echo "configure: failed program was:" >&5
1027 cat conftest.$ac_ext >&5
1028 rm -rf conftest*
1029 eval "ac_cv_header_$ac_safe=no"
1030fi
1031rm -f conftest*
1032fi
1033if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1034 echo "$ac_t""yes" 1>&6
1035 :
1036else
1037 echo "$ac_t""no" 1>&6
1038{ echo "configure: error: Can't find stdio.h.
1039You must have a usable C system for the target already installed, at least
1040including headers and, preferably, the library, before you can configure
1041the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c',
1042then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }
1043fi
1044
1045
1046echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1047echo "configure:1048: checking for ANSI C header files" >&5
1048if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1050else
1051 cat > conftest.$ac_ext <<EOF
1052#include <sys/types.h>
1053#line 1054 "configure"
1054#include "confdefs.h"
1055#include <stdlib.h>
1056#include <stdarg.h>
1057#include <string.h>
1058#include <float.h>
1059EOF
1060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1061{ (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1063if test -z "$ac_err"; then
1064 rm -rf conftest*
1065 ac_cv_header_stdc=yes
1066else
1067 echo "$ac_err" >&5
1068 echo "configure: failed program was:" >&5
1069 cat conftest.$ac_ext >&5
1070 rm -rf conftest*
1071 ac_cv_header_stdc=no
1072fi
1073rm -f conftest*
1074
1075if test $ac_cv_header_stdc = yes; then
1076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1077cat > conftest.$ac_ext <<EOF
1078#line 1079 "configure"
1079#include "confdefs.h"
1080#include <string.h>
1081EOF
1082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1083 egrep "memchr" >/dev/null 2>&1; then
1084 :
1085else
1086 rm -rf conftest*
1087 ac_cv_header_stdc=no
1088fi
1089rm -f conftest*
1090
1091fi
1092
1093if test $ac_cv_header_stdc = yes; then
1094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1095cat > conftest.$ac_ext <<EOF
1096#line 1097 "configure"
1097#include "confdefs.h"
1098#include <stdlib.h>
1099EOF
1100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1101 egrep "free" >/dev/null 2>&1; then
1102 :
1103else
1104 rm -rf conftest*
1105 ac_cv_header_stdc=no
1106fi
1107rm -f conftest*
1108
1109fi
1110
1111if test $ac_cv_header_stdc = yes; then
1112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1113if test "$cross_compiling" = yes; then
1114 :
1115else
1116 cat > conftest.$ac_ext <<EOF
1117#line 1118 "configure"
1118#include "confdefs.h"
1119#include <ctype.h>
1120#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1121#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1122#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1123int main () { int i; for (i = 0; i < 256; i++)
1124if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1125exit (0); }
1126
1127EOF
1128if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1129then
1130 :
1131else
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1134 rm -fr conftest*
1135 ac_cv_header_stdc=no
1136fi
1137rm -fr conftest*
1138fi
1139
1140fi
1141fi
1142
1143echo "$ac_t""$ac_cv_header_stdc" 1>&6
1144if test $ac_cv_header_stdc = yes; then
1145 cat >> confdefs.h <<\EOF
1146#define STDC_HEADERS 1
1147EOF
1148
1149fi
1150
1151
1152echo $ac_n "checking for posix""... $ac_c" 1>&6
1153echo "configure:1154: checking for posix" >&5
1154if eval "test \"`echo '$''{'g77_cv_header_posix'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1156else
1157 cat > conftest.$ac_ext <<EOF
1158#line 1159 "configure"
1159#include "confdefs.h"
1160#include <sys/types.h>
1161#include <unistd.h>
1162#ifdef _POSIX_VERSION
1163 yes
1164#endif
1165
1166EOF
1167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1168 egrep "yes" >/dev/null 2>&1; then
1169 rm -rf conftest*
1170 g77_cv_header_posix=yes
1171else
1172 rm -rf conftest*
1173 g77_cv_header_posix=no
1174fi
1175rm -f conftest*
1176
1177fi
1178
1179echo "$ac_t""$g77_cv_header_posix" 1>&6
1180
1181# We can rely on the GNU library being posix-ish. I guess checking the
1182# header isn't actually like checking the functions, though...
1183echo $ac_n "checking for GNU library""... $ac_c" 1>&6
1184echo "configure:1185: checking for GNU library" >&5
1185if eval "test \"`echo '$''{'g77_cv_lib_gnu'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1187else
1188 cat > conftest.$ac_ext <<EOF
1189#line 1190 "configure"
1190#include "confdefs.h"
1191#include <stdio.h>
1192#ifdef __GNU_LIBRARY__
1193 yes
1194#endif
1195
1196EOF
1197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1198 egrep "yes" >/dev/null 2>&1; then
1199 rm -rf conftest*
1200 g77_cv_lib_gnu=yes
1201else
1202 rm -rf conftest*
1203 g77_cv_lib_gnu=no
1204fi
1205rm -f conftest*
1206
1207fi
1208
1209echo "$ac_t""$g77_cv_lib_gnu" 1>&6
1210
1211# Apparently cygwin needs to be special-cased.
1212echo $ac_n "checking for cyg\`win'32""... $ac_c" 1>&6
1213echo "configure:1214: checking for cyg\`win'32" >&5
1214if eval "test \"`echo '$''{'g77_cv_sys_cygwin32'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1216else
1217 cat > conftest.$ac_ext <<EOF
1218#line 1219 "configure"
1219#include "confdefs.h"
1220#ifdef __CYGWIN32__
1221 yes
1222#endif
1223
1224EOF
1225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1226 egrep "yes" >/dev/null 2>&1; then
1227 rm -rf conftest*
1228 g77_cv_sys_cygwin32=yes
1229else
1230 rm -rf conftest*
1231 g77_cv_sys_cygwin32=no
1232fi
1233rm -f conftest*
1234
1235fi
1236
1237echo "$ac_t""$g77_cv_sys_cygwin32" 1>&6
1238
1239# ditto for mingw32.
1240echo $ac_n "checking for mingw32""... $ac_c" 1>&6
1241echo "configure:1242: checking for mingw32" >&5
1242if eval "test \"`echo '$''{'g77_cv_sys_mingw32'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1244else
1245 cat > conftest.$ac_ext <<EOF
1246#line 1247 "configure"
1247#include "confdefs.h"
1248#ifdef __MINGW32__
1249 yes
1250#endif
1251
1252EOF
1253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1254 egrep "yes" >/dev/null 2>&1; then
1255 rm -rf conftest*
1256 g77_cv_sys_mingw32=yes
1257else
1258 rm -rf conftest*
1259 g77_cv_sys_mingw32=no
1260fi
1261rm -f conftest*
1262
1263fi
1264
1265echo "$ac_t""$g77_cv_sys_mingw32" 1>&6
1266
1267
1268echo $ac_n "checking for working const""... $ac_c" 1>&6
1269echo "configure:1270: checking for working const" >&5
1270if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1272else
1273 cat > conftest.$ac_ext <<EOF
1274#line 1275 "configure"
1275#include "confdefs.h"
1276
1277int main() {
1278
1279/* Ultrix mips cc rejects this. */
1280typedef int charset[2]; const charset x;
1281/* SunOS 4.1.1 cc rejects this. */
1282char const *const *ccp;
1283char **p;
1284/* NEC SVR4.0.2 mips cc rejects this. */
1285struct point {int x, y;};
1286static struct point const zero = {0,0};
1287/* AIX XL C 1.02.0.0 rejects this.
1288 It does not let you subtract one const X* pointer from another in an arm
1289 of an if-expression whose if-part is not a constant expression */
1290const char *g = "string";
1291ccp = &g + (g ? g-g : 0);
1292/* HPUX 7.0 cc rejects these. */
1293++ccp;
1294p = (char**) ccp;
1295ccp = (char const *const *) p;
1296{ /* SCO 3.2v4 cc rejects this. */
1297 char *t;
1298 char const *s = 0 ? (char *) 0 : (char const *) 0;
1299
1300 *t++ = 0;
1301}
1302{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1303 int x[] = {25, 17};
1304 const int *foo = &x[0];
1305 ++foo;
1306}
1307{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1308 typedef const int *iptr;
1309 iptr p = 0;
1310 ++p;
1311}
1312{ /* AIX XL C 1.02.0.0 rejects this saying
1313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1314 struct s { int j; const int *ap[3]; };
1315 struct s *b; b->j = 5;
1316}
1317{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1318 const int foo = 10;
1319}
1320
1321; return 0; }
1322EOF
1323if { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 rm -rf conftest*
1325 ac_cv_c_const=yes
1326else
1327 echo "configure: failed program was:" >&5
1328 cat conftest.$ac_ext >&5
1329 rm -rf conftest*
1330 ac_cv_c_const=no
1331fi
1332rm -f conftest*
1333fi
1334
1335echo "$ac_t""$ac_cv_c_const" 1>&6
1336if test $ac_cv_c_const = no; then
1337 cat >> confdefs.h <<\EOF
1338#define const
1339EOF
1340
1341fi
1342
1343echo $ac_n "checking for size_t""... $ac_c" 1>&6
1344echo "configure:1345: checking for size_t" >&5
1345if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1347else
1348 cat > conftest.$ac_ext <<EOF
1349#line 1350 "configure"
1350#include "confdefs.h"
1351#include <sys/types.h>
1352#if STDC_HEADERS
1353#include <stdlib.h>
1354#include <stddef.h>
1355#endif
1356EOF
1357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1358 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1359 rm -rf conftest*
1360 ac_cv_type_size_t=yes
1361else
1362 rm -rf conftest*
1363 ac_cv_type_size_t=no
1364fi
1365rm -f conftest*
1366
1367fi
1368echo "$ac_t""$ac_cv_type_size_t" 1>&6
1369if test $ac_cv_type_size_t = no; then
1370 cat >> confdefs.h <<\EOF
1371#define size_t unsigned
1372EOF
1373
1374fi
1375
1376
1377
1378# This should always succeed on unix.
1379# Apparently positive result on cygwin loses re. NON_UNIX_STDIO
1380# (as of cygwin b18). Likewise on mingw.
1381echo $ac_n "checking for fstat""... $ac_c" 1>&6
1382echo "configure:1383: checking for fstat" >&5
1383if eval "test \"`echo '$''{'ac_cv_func_fstat'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385else
1386 cat > conftest.$ac_ext <<EOF
1387#line 1388 "configure"
1388#include "confdefs.h"
1389/* System header to define __stub macros and hopefully few prototypes,
1390 which can conflict with char fstat(); below. */
1391#include <assert.h>
1392/* Override any gcc2 internal prototype to avoid an error. */
1393/* We use char because int might match the return type of a gcc2
1394 builtin and then its argument prototype would still apply. */
1395char fstat();
1396
1397int main() {
1398
1399/* The GNU C library defines this for functions which it implements
1400 to always fail with ENOSYS. Some functions are actually named
1401 something starting with __ and the normal name is an alias. */
1402#if defined (__stub_fstat) || defined (__stub___fstat)
1403choke me
1404#else
1405fstat();
1406#endif
1407
1408; return 0; }
1409EOF
1410if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1411 rm -rf conftest*
1412 eval "ac_cv_func_fstat=yes"
1413else
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1416 rm -rf conftest*
1417 eval "ac_cv_func_fstat=no"
1418fi
1419rm -f conftest*
1420fi
1421
1422if eval "test \"`echo '$ac_cv_func_'fstat`\" = yes"; then
1423 echo "$ac_t""yes" 1>&6
1424 :
1425else
1426 echo "$ac_t""no" 1>&6
1427fi
1428
1429echo $ac_n "checking need for NON_UNIX_STDIO""... $ac_c" 1>&6
1430echo "configure:1431: checking need for NON_UNIX_STDIO" >&5
1431if test $g77_cv_sys_cygwin32 = yes \
1432 || test $g77_cv_sys_mingw32 = yes \
1433 || test $ac_cv_func_fstat = no; then
1434 echo "$ac_t""yes" 1>&6
1435 cat >> confdefs.h <<\EOF
1436#define NON_UNIX_STDIO 1
1437EOF
1438
1439else
1440 echo "$ac_t""no" 1>&6
1441fi
1442
1443for ac_func in fseeko
1444do
1445echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1446echo "configure:1447: checking for $ac_func" >&5
1447if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1449else
1450 cat > conftest.$ac_ext <<EOF
1451#line 1452 "configure"
1452#include "confdefs.h"
1453/* System header to define __stub macros and hopefully few prototypes,
1454 which can conflict with char $ac_func(); below. */
1455#include <assert.h>
1456/* Override any gcc2 internal prototype to avoid an error. */
1457/* We use char because int might match the return type of a gcc2
1458 builtin and then its argument prototype would still apply. */
1459char $ac_func();
1460
1461int main() {
1462
1463/* The GNU C library defines this for functions which it implements
1464 to always fail with ENOSYS. Some functions are actually named
1465 something starting with __ and the normal name is an alias. */
1466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1467choke me
1468#else
1469$ac_func();
1470#endif
1471
1472; return 0; }
1473EOF
1474if { (eval echo configure:1475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1475 rm -rf conftest*
1476 eval "ac_cv_func_$ac_func=yes"
1477else
1478 echo "configure: failed program was:" >&5
1479 cat conftest.$ac_ext >&5
1480 rm -rf conftest*
1481 eval "ac_cv_func_$ac_func=no"
1482fi
1483rm -f conftest*
1484fi
1485
1486if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1487 echo "$ac_t""yes" 1>&6
1488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1489 cat >> confdefs.h <<EOF
1490#define $ac_tr_func 1
1491EOF
1492
1493else
1494 echo "$ac_t""no" 1>&6
1495fi
1496done
1497
1498for ac_func in ftello
1499do
1500echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1501echo "configure:1502: checking for $ac_func" >&5
1502if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1504else
1505 cat > conftest.$ac_ext <<EOF
1506#line 1507 "configure"
1507#include "confdefs.h"
1508/* System header to define __stub macros and hopefully few prototypes,
1509 which can conflict with char $ac_func(); below. */
1510#include <assert.h>
1511/* Override any gcc2 internal prototype to avoid an error. */
1512/* We use char because int might match the return type of a gcc2
1513 builtin and then its argument prototype would still apply. */
1514char $ac_func();
1515
1516int main() {
1517
1518/* The GNU C library defines this for functions which it implements
1519 to always fail with ENOSYS. Some functions are actually named
1520 something starting with __ and the normal name is an alias. */
1521#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1522choke me
1523#else
1524$ac_func();
1525#endif
1526
1527; return 0; }
1528EOF
1529if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1530 rm -rf conftest*
1531 eval "ac_cv_func_$ac_func=yes"
1532else
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1535 rm -rf conftest*
1536 eval "ac_cv_func_$ac_func=no"
1537fi
1538rm -f conftest*
1539fi
1540
1541if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1542 echo "$ac_t""yes" 1>&6
1543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1544 cat >> confdefs.h <<EOF
1545#define $ac_tr_func 1
1546EOF
1547
1548else
1549 echo "$ac_t""no" 1>&6
1550fi
1551done
1552
1553for ac_func in ftruncate
1554do
1555echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1556echo "configure:1557: checking for $ac_func" >&5
1557if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1559else
1560 cat > conftest.$ac_ext <<EOF
1561#line 1562 "configure"
1562#include "confdefs.h"
1563/* System header to define __stub macros and hopefully few prototypes,
1564 which can conflict with char $ac_func(); below. */
1565#include <assert.h>
1566/* Override any gcc2 internal prototype to avoid an error. */
1567/* We use char because int might match the return type of a gcc2
1568 builtin and then its argument prototype would still apply. */
1569char $ac_func();
1570
1571int main() {
1572
1573/* The GNU C library defines this for functions which it implements
1574 to always fail with ENOSYS. Some functions are actually named
1575 something starting with __ and the normal name is an alias. */
1576#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1577choke me
1578#else
1579$ac_func();
1580#endif
1581
1582; return 0; }
1583EOF
1584if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1585 rm -rf conftest*
1586 eval "ac_cv_func_$ac_func=yes"
1587else
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1590 rm -rf conftest*
1591 eval "ac_cv_func_$ac_func=no"
1592fi
1593rm -f conftest*
1594fi
1595
1596if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1597 echo "$ac_t""yes" 1>&6
1598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1599 cat >> confdefs.h <<EOF
1600#define $ac_tr_func 1
1601EOF
1602
1603else
1604 echo "$ac_t""no" 1>&6
1605fi
1606done
1607
1608for ac_func in mkstemp
1609do
1610echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1611echo "configure:1612: checking for $ac_func" >&5
1612if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1614else
1615 cat > conftest.$ac_ext <<EOF
1616#line 1617 "configure"
1617#include "confdefs.h"
1618/* System header to define __stub macros and hopefully few prototypes,
1619 which can conflict with char $ac_func(); below. */
1620#include <assert.h>
1621/* Override any gcc2 internal prototype to avoid an error. */
1622/* We use char because int might match the return type of a gcc2
1623 builtin and then its argument prototype would still apply. */
1624char $ac_func();
1625
1626int main() {
1627
1628/* The GNU C library defines this for functions which it implements
1629 to always fail with ENOSYS. Some functions are actually named
1630 something starting with __ and the normal name is an alias. */
1631#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1632choke me
1633#else
1634$ac_func();
1635#endif
1636
1637; return 0; }
1638EOF
1639if { (eval echo configure:1640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1640 rm -rf conftest*
1641 eval "ac_cv_func_$ac_func=yes"
1642else
1643 echo "configure: failed program was:" >&5
1644 cat conftest.$ac_ext >&5
1645 rm -rf conftest*
1646 eval "ac_cv_func_$ac_func=no"
1647fi
1648rm -f conftest*
1649fi
1650
1651if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1652 echo "$ac_t""yes" 1>&6
1653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1654 cat >> confdefs.h <<EOF
1655#define $ac_tr_func 1
1656EOF
1657
1658else
1659 echo "$ac_t""no" 1>&6
1660fi
1661done
1662
1663for ac_func in tempnam
1664do
1665echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1666echo "configure:1667: checking for $ac_func" >&5
1667if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669else
1670 cat > conftest.$ac_ext <<EOF
1671#line 1672 "configure"
1672#include "confdefs.h"
1673/* System header to define __stub macros and hopefully few prototypes,
1674 which can conflict with char $ac_func(); below. */
1675#include <assert.h>
1676/* Override any gcc2 internal prototype to avoid an error. */
1677/* We use char because int might match the return type of a gcc2
1678 builtin and then its argument prototype would still apply. */
1679char $ac_func();
1680
1681int main() {
1682
1683/* The GNU C library defines this for functions which it implements
1684 to always fail with ENOSYS. Some functions are actually named
1685 something starting with __ and the normal name is an alias. */
1686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1687choke me
1688#else
1689$ac_func();
1690#endif
1691
1692; return 0; }
1693EOF
1694if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 rm -rf conftest*
1696 eval "ac_cv_func_$ac_func=yes"
1697else
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1700 rm -rf conftest*
1701 eval "ac_cv_func_$ac_func=no"
1702fi
1703rm -f conftest*
1704fi
1705
1706if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1709 cat >> confdefs.h <<EOF
1710#define $ac_tr_func 1
1711EOF
1712
1713else
1714 echo "$ac_t""no" 1>&6
1715fi
1716done
1717
1718for ac_func in tmpnam
1719do
1720echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1721echo "configure:1722: checking for $ac_func" >&5
1722if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1724else
1725 cat > conftest.$ac_ext <<EOF
1726#line 1727 "configure"
1727#include "confdefs.h"
1728/* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char $ac_func(); below. */
1730#include <assert.h>
1731/* Override any gcc2 internal prototype to avoid an error. */
1732/* We use char because int might match the return type of a gcc2
1733 builtin and then its argument prototype would still apply. */
1734char $ac_func();
1735
1736int main() {
1737
1738/* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1742choke me
1743#else
1744$ac_func();
1745#endif
1746
1747; return 0; }
1748EOF
1749if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750 rm -rf conftest*
1751 eval "ac_cv_func_$ac_func=yes"
1752else
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1755 rm -rf conftest*
1756 eval "ac_cv_func_$ac_func=no"
1757fi
1758rm -f conftest*
1759fi
1760
1761if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1764 cat >> confdefs.h <<EOF
1765#define $ac_tr_func 1
1766EOF
1767
1768else
1769 echo "$ac_t""no" 1>&6
1770fi
1771done
1772
1773
1774# posix will guarantee the right behaviour for sprintf, else we can't be
1775# sure; HEADER_STDC wouldn't be the right check in sunos4, for instance.
1776# However, on my sunos4/gcc setup unistd.h leads us wrongly to believe
1777# we're posix-conformant, so always do the test.
1778echo $ac_n "checking for ansi/posix sprintf result""... $ac_c" 1>&6
1779echo "configure:1780: checking for ansi/posix sprintf result" >&5
1780if test "$cross_compiling" = yes; then
1781 g77_cv_sys_sprintf_ansi=no
1782else
1783 cat > conftest.$ac_ext <<EOF
1784#line 1785 "configure"
1785#include "confdefs.h"
1786 #include <stdio.h>
1787 /* does sprintf return the number of chars transferred? */
1788 main () {char foo[2]; (sprintf(foo, "1") == 1) ? exit(0) : exit(1);}
1789
1790EOF
1791if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1792then
1793 g77_cv_sys_sprintf_ansi=yes
1794else
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1797 rm -fr conftest*
1798 g77_cv_sys_sprintf_ansi=no
1799fi
1800rm -fr conftest*
1801fi
1802
1803if eval "test \"`echo '$''{'g77_cv_sys_sprintf_ansi'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1805else
1806 g77_cv_sys_sprintf_ansi=$g77_cv_sys_sprintf_ansi
1807fi
1808
1809echo "$ac_t""$g77_cv_sys_sprintf_ansi" 1>&6
1810
1811# The cygwin patch takes steps to avoid defining USE_STRLEN here -- I don't
1812# understand why.
1813if test $g77_cv_sys_sprintf_ansi != yes; then
1814 cat >> confdefs.h <<\EOF
1815#define USE_STRLEN 1
1816EOF
1817
1818fi
1819
1820# define NON_ANSI_RW_MODES on unix (can't hurt)
1821echo $ac_n "checking NON_ANSI_RW_MODES""... $ac_c" 1>&6
1822echo "configure:1823: checking NON_ANSI_RW_MODES" >&5
1823cat > conftest.$ac_ext <<EOF
1824#line 1825 "configure"
1825#include "confdefs.h"
1826#ifdef unix
1827 yes
1828#endif
1829#ifdef __unix
1830 yes
1831#endif
1832#ifdef __unix__
1833 yes
1834#endif
1835
1836EOF
1837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1838 egrep "yes" >/dev/null 2>&1; then
1839 rm -rf conftest*
1840 is_unix=yes
1841else
1842 rm -rf conftest*
1843 is_unix=no
1844fi
1845rm -f conftest*
1846
1847# NON_ANSI_RW_MODES shouldn't be necessary on cygwin for binary mounts.
1848if test $g77_cv_sys_cygwin32 = yes || test $g77_cv_sys_mingw32 = yes; then
1849 echo "$ac_t""no" 1>&6
1850else
1851 if test $is_unix = yes; then
1852 cat >> confdefs.h <<\EOF
1853#define NON_ANSI_RW_MODES 1
1854EOF
1855
1856 echo "$ac_t""yes" 1>&6
1857 else
1858 echo "$ac_t""no" 1>&6
1859 fi
1860fi
1861
1862# This EOF_CHAR is a misfeature on unix.
1863cat >> confdefs.h <<\EOF
1864#define NO_EOF_CHAR_CHECK 1
1865EOF
1866
1867
1868echo $ac_n "checking for off_t""... $ac_c" 1>&6
1869echo "configure:1870: checking for off_t" >&5
1870if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1872else
1873 cat > conftest.$ac_ext <<EOF
1874#line 1875 "configure"
1875#include "confdefs.h"
1876#include <sys/types.h>
1877#if STDC_HEADERS
1878#include <stdlib.h>
1879#include <stddef.h>
1880#endif
1881EOF
1882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1883 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1884 rm -rf conftest*
1885 ac_cv_type_off_t=yes
1886else
1887 rm -rf conftest*
1888 ac_cv_type_off_t=no
1889fi
1890rm -f conftest*
1891
1892fi
1893echo "$ac_t""$ac_cv_type_off_t" 1>&6
1894if test $ac_cv_type_off_t = no; then
1895 cat >> confdefs.h <<\EOF
1896#define off_t long
1897EOF
1898
1899fi
1900
1901
1902cat >> confdefs.h <<\EOF
1903#define Skip_f2c_Undefs 1
1904EOF
1905
1906
1907trap '' 1 2 15
1908cat > confcache <<\EOF
1909# This file is a shell script that caches the results of configure
1910# tests run on this system so they can be shared between configure
1911# scripts and configure runs. It is not useful on other systems.
1912# If it contains results you don't want to keep, you may remove or edit it.
1913#
1914# By default, configure uses ./config.cache as the cache file,
1915# creating it if it does not exist already. You can give configure
1916# the --cache-file=FILE option to use a different cache file; that is
1917# what configure does when it calls configure scripts in
1918# subdirectories, so they share the cache.
1919# Giving --cache-file=/dev/null disables caching, for debugging configure.
1920# config.status only pays attention to the cache file if you give it the
1921# --recheck option to rerun configure.
1922#
1923EOF
1924# The following way of writing the cache mishandles newlines in values,
1925# but we know of no workaround that is simple, portable, and efficient.
1926# So, don't put newlines in cache variables' values.
1927# Ultrix sh set writes to stderr and can't be redirected directly,
1928# and sets the high bit in the cache file unless we assign to the vars.
1929(set) 2>&1 |
1930 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1931 *ac_space=\ *)
1932 # `set' does not quote correctly, so add quotes (double-quote substitution
1933 # turns \\\\ into \\, and sed turns \\ into \).
1934 sed -n \
1935 -e "s/'/'\\\\''/g" \
1936 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1937 ;;
1938 *)
1939 # `set' quotes correctly as required by POSIX, so do not add quotes.
1940 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1941 ;;
1942 esac >> confcache
1943if cmp -s $cache_file confcache; then
1944 :
1945else
1946 if test -w $cache_file; then
1947 echo "updating cache $cache_file"
1948 cat confcache > $cache_file
1949 else
1950 echo "not updating unwritable cache $cache_file"
1951 fi
1952fi
1953rm -f confcache
1954
1955trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1956
1957test "x$prefix" = xNONE && prefix=$ac_default_prefix
1958# Let make expand exec_prefix.
1959test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1960
1961# Any assignment to VPATH causes Sun make to only execute
1962# the first set of double-colon rules, so remove it if not needed.
1963# If there is a colon in the path, we need to keep it.
1964if test "x$srcdir" = x.; then
1965 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1966fi
1967
1968trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1969
1970DEFS=-DHAVE_CONFIG_H
1971
1972# Without the "./", some shells look in PATH for config.status.
1973: ${CONFIG_STATUS=./config.status}
1974
1975echo creating $CONFIG_STATUS
1976rm -f $CONFIG_STATUS
1977cat > $CONFIG_STATUS <<EOF
1978#! /bin/sh
1979# Generated automatically by configure.
1980# Run this file to recreate the current configuration.
1981# This directory was configured as follows,
1982EOF
1983echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
1984cat >> $CONFIG_STATUS <<EOF
1985# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1986#
1987# $0 $ac_configure_args
1988#
1989# Compiler output produced by configure, useful for debugging
1990# configure, is in ./config.log if it exists.
1991
1992ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1993for ac_option
1994do
1995 case "\$ac_option" in
1996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1997 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1998 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1999 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2000 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2001 exit 0 ;;
2002 -help | --help | --hel | --he | --h)
2003 echo "\$ac_cs_usage"; exit 0 ;;
2004 *) echo "\$ac_cs_usage"; exit 1 ;;
2005 esac
2006done
2007
2008ac_given_srcdir=$srcdir
2009PATHIFS="$PATH_IFS"
2010
2011trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2012EOF
2013cat >> $CONFIG_STATUS <<EOF
2014
2015# Protect against being on the right side of a sed subst in config.status.
2016sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2017 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2018$ac_vpsub
2019$extrasub
2020s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
2021s%@SHELL@%$SHELL%g
2022s%@CFLAGS@%$CFLAGS%g
2023s%@CPPFLAGS@%$CPPFLAGS%g
2024s%@CXXFLAGS@%$CXXFLAGS%g
2025s%@FFLAGS@%$FFLAGS%g
2026s%@DEFS@%$DEFS%g
2027s%@LDFLAGS@%$LDFLAGS%g
2028s%@LIBS@%$LIBS%g
2029s%@exec_prefix@%$exec_prefix%g
2030s%@prefix@%$prefix%g
2031s%@program_transform_name@%$program_transform_name%g
2032s%@bindir@%$bindir%g
2033s%@sbindir@%$sbindir%g
2034s%@libexecdir@%$libexecdir%g
2035s%@datadir@%$datadir%g
2036s%@sysconfdir@%$sysconfdir%g
2037s%@sharedstatedir@%$sharedstatedir%g
2038s%@localstatedir@%$localstatedir%g
2039s%@libdir@%$libdir%g
2040s%@includedir@%$includedir%g
2041s%@oldincludedir@%$oldincludedir%g
2042s%@infodir@%$infodir%g
2043s%@mandir@%$mandir%g
2044s%@PATH_IFS@%$PATH_IFS%g
2045s%@EXEEXT@%$EXEEXT%g
2046s%@CC@%$CC%g
2047s%@LIBTOOL@%$LIBTOOL%g
2048s%@AR@%$AR%g
2049s%@SET_MAKE@%$SET_MAKE%g
2050s%@CPP@%$CPP%g
2051
2052CEOF
2053EOF
2054
2055cat >> $CONFIG_STATUS <<\EOF
2056
2057# Split the substitutions into bite-sized pieces for seds with
2058# small command number limits, like on Digital OSF/1 and HP-UX.
2059ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2060ac_file=1 # Number of current file.
2061ac_beg=1 # First line for current file.
2062ac_end=$ac_max_sed_cmds # Line after last line for current file.
2063ac_more_lines=:
2064ac_sed_cmds=""
2065while $ac_more_lines; do
2066 if test $ac_beg -gt 1; then
2067 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2068 else
2069 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2070 fi
2071 if test ! -s conftest.s$ac_file; then
2072 ac_more_lines=false
2073 rm -f conftest.s$ac_file
2074 else
2075 if test -z "$ac_sed_cmds"; then
2076 ac_sed_cmds="sed -f conftest.s$ac_file"
2077 else
2078 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2079 fi
2080 ac_file=`expr $ac_file + 1`
2081 ac_beg=$ac_end
2082 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2083 fi
2084done
2085if test -z "$ac_sed_cmds"; then
2086 ac_sed_cmds=cat
2087fi
2088EOF
2089
2090cat >> $CONFIG_STATUS <<EOF
2091
2092CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2093EOF
2094cat >> $CONFIG_STATUS <<\EOF
2095for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2096 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2097 case "$ac_file" in
2098 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2099 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2100 *) ac_file_in="${ac_file}.in" ;;
2101 esac
2102
2103 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2104
2105 # Remove last slash and all that follows it. Not all systems have dirname.
2106 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2107 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2108 # The file is in a subdirectory.
2109 test ! -d "$ac_dir" && mkdir "$ac_dir"
2110 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2111 # A "../" for each directory in $ac_dir_suffix.
2112 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2113 else
2114 ac_dir_suffix= ac_dots=
2115 fi
2116
2117 case "$ac_given_srcdir" in
2118 .) srcdir=.
2119 if test -z "$ac_dots"; then top_srcdir=.
2120 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2121 [/\\]* | [a-zA-Z]:*)
2122 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2123 *) # Relative path.
2124 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2125 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2126 esac
2127
2128
2129 echo creating "$ac_file"
2130 rm -f "$ac_file"
2131 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2132 case "$ac_file" in
2133 *Makefile*) ac_comsub="1i\\
2134# $configure_input" ;;
2135 *) ac_comsub= ;;
2136 esac
2137
2138 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
2139 sed -e "$ac_comsub
2140s%@configure_input@%$configure_input%g
2141s%@srcdir@%$srcdir%g
2142s%@top_srcdir@%$top_srcdir%g
2143" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2144fi; done
2145rm -f conftest.s*
2146
2147# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2148# NAME is the cpp macro being defined and VALUE is the value it is being given.
2149#
2150# ac_d sets the value in "#define NAME VALUE" lines.
2151ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2152ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2153ac_dC='\3'
2154ac_dD='%g'
2155# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2156ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2157ac_uB='\([ ]\)%\1#\2define\3'
2158ac_uC=' '
2159ac_uD='\4%g'
2160# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2161ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2162ac_eB='$%\1#\2define\3'
2163ac_eC=' '
2164ac_eD='%g'
2165
2166if test "${CONFIG_HEADERS+set}" != set; then
2167EOF
2168cat >> $CONFIG_STATUS <<EOF
2169 CONFIG_HEADERS="config.h"
2170EOF
2171cat >> $CONFIG_STATUS <<\EOF
2172fi
2173for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2175 case "$ac_file" in
2176 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2177 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2178 *) ac_file_in="${ac_file}.in" ;;
2179 esac
2180
2181 echo creating $ac_file
2182
2183 rm -f conftest.frag conftest.in conftest.out
2184# kso the other way around might work better with drive letters and such.
2185# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2186 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
2187 cat $ac_file_inputs > conftest.in
2188
2189EOF
2190
2191# Transform confdefs.h into a sed script conftest.vals that substitutes
2192# the proper values into config.h.in to produce config.h. And first:
2193# Protect against being on the right side of a sed subst in config.status.
2194# Protect against being in an unquoted here document in config.status.
2195rm -f conftest.vals
2196cat > conftest.hdr <<\EOF
2197s/[\\&%]/\\&/g
2198s%[\\$`]%\\&%g
2199s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2200s%ac_d%ac_u%gp
2201s%ac_u%ac_e%gp
2202EOF
2203sed -n -f conftest.hdr confdefs.h > conftest.vals
2204rm -f conftest.hdr
2205
2206# This sed command replaces #undef with comments. This is necessary, for
2207# example, in the case of _POSIX_SOURCE, which is predefined and required
2208# on some systems where configure will not decide to define it.
2209cat >> conftest.vals <<\EOF
2210s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2211EOF
2212
2213# Break up conftest.vals because some shells have a limit on
2214# the size of here documents, and old seds have small limits too.
2215
2216rm -f conftest.tail
2217while :
2218do
2219 ac_lines=`grep -c . conftest.vals`
2220 # grep -c gives empty output for an empty file on some AIX systems.
2221 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2222 # Write a limited-size here document to conftest.frag.
2223 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2224 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2225 echo 'CEOF
2226 sed -f conftest.frag conftest.in > conftest.out
2227 rm -f conftest.in
2228 mv conftest.out conftest.in
2229' >> $CONFIG_STATUS
2230 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2231 rm -f conftest.vals
2232 mv conftest.tail conftest.vals
2233done
2234rm -f conftest.vals
2235
2236cat >> $CONFIG_STATUS <<\EOF
2237 rm -f conftest.frag conftest.h
2238 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2239 cat conftest.in >> conftest.h
2240 rm -f conftest.in
2241 if cmp -s $ac_file conftest.h 2>/dev/null; then
2242 echo "$ac_file is unchanged"
2243 rm -f conftest.h
2244 else
2245 # Remove last slash and all that follows it. Not all systems have dirname.
2246 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2247 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2248 # The file is in a subdirectory.
2249 test ! -d "$ac_dir" && mkdir "$ac_dir"
2250 fi
2251 rm -f $ac_file
2252 mv conftest.h $ac_file
2253 fi
2254fi; done
2255
2256EOF
2257cat >> $CONFIG_STATUS <<EOF
2258
2259EOF
2260cat >> $CONFIG_STATUS <<\EOF
2261
2262exit 0
2263EOF
2264chmod +x $CONFIG_STATUS
2265rm -fr confdefs* $ac_clean_files
2266test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2267
2268
2269
Note: See TracBrowser for help on using the repository browser.