diff options
-rw-r--r-- | libf2c/ChangeLog | 28 | ||||
-rw-r--r-- | libf2c/libI77/backspace.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/close.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/config.h.in | 44 | ||||
-rwxr-xr-x | libf2c/libI77/configure | 53 | ||||
-rw-r--r-- | libf2c/libI77/configure.in | 13 | ||||
-rw-r--r-- | libf2c/libI77/dfe.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/dolio.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/due.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/err.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/fmt.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/fmtlib.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/ftell_.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/ilnw.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/lread.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/open.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/rdfmt.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/rsfe.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/rsne.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/sue.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/typesize.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/util.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/wrtfmt.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/wsle.c | 1 | ||||
-rw-r--r-- | libf2c/libI77/xwsne.c | 1 |
25 files changed, 127 insertions, 32 deletions
diff --git a/libf2c/ChangeLog b/libf2c/ChangeLog index 173cb3d..5bc4665 100644 --- a/libf2c/ChangeLog +++ b/libf2c/ChangeLog @@ -1,5 +1,33 @@ 2001-05-16 Andreas Jaeger <aj@suse.de> + * libI77/backspace.c: Include "config.h". + * libI77/close.c: Likewise. + * libI77/dfe.c: Likewise. + * libI77/dolio.c: Likewise. + * libI77/due.c: Likewise. + * libI77/err.c: Likewise. + * libI77/fmt.c: Likewise. + * libI77/fmtlib.c: Likewise. + * libI77/ftell_.c: Likewise. + * libI77/ilnw.c: Likewise. + * libI77/lread.c: Likewise. + * libI77/open.c: Likewise. + * libI77/rdfmt.c: Likewise. + * libI77/rsfe.c: Likewise. + * libI77/rsne.c: Likewise. + * libI77/util.c: Likewise. + * libI77/wrtfmt.c: Likewise. + * libI77/wsne.c: Likewise. + * libI77/xwsne.c: Likewise. + + * libI77/config.h.in: Generate with autoheader. + + * libI77/configure.in: Add comments for all AC_DEFINES so that + autoheader can grok it. + * libI77/configure: Regenerated. + +2001-05-16 Andreas Jaeger <aj@suse.de> + * libI77/Makefile.in (endfile.o): Add dependency on config.h. * libI77/endfile.c: Include config.h and sys/types for off_t. diff --git a/libf2c/libI77/backspace.c b/libf2c/libI77/backspace.c index 1968801..b2bd416 100644 --- a/libf2c/libI77/backspace.c +++ b/libf2c/libI77/backspace.c @@ -1,3 +1,4 @@ +#include "config.h" #include <sys/types.h> #include "f2c.h" #include "fio.h" diff --git a/libf2c/libI77/close.c b/libf2c/libI77/close.c index bbc5bac..79a3493 100644 --- a/libf2c/libI77/close.c +++ b/libf2c/libI77/close.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" #ifdef KR_headers diff --git a/libf2c/libI77/config.h.in b/libf2c/libI77/config.h.in index 7c1688e..58f83af 100644 --- a/libf2c/libI77/config.h.in +++ b/libf2c/libI77/config.h.in @@ -1,3 +1,47 @@ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + +/* Define to empty if the keyword does not work. */ +#undef const /* Define to `long' if <sys/types.h> doesn't define. */ #undef off_t + +/* Define if you need to in order for stat and other things to work. */ +#undef _POSIX_SOURCE + +/* Define to `unsigned' if <sys/types.h> doesn't define. */ +#undef size_t + +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define if you have the ftruncate function. */ +#undef HAVE_FTRUNCATE + +/* Define if you have the mkstemp function. */ +#undef HAVE_MKSTEMP + +/* Define if you have the tempnam function. */ +#undef HAVE_TEMPNAM + +/* Define if fcntl.h is missing. */ +#undef NO_FCNTL + +/* Define if fcntl.h is missing. */ +#undef OPEN_DECL + +/* Define if we do not have Unix Stdio. */ +#undef NON_UNIX_STDIO + +/* Define if we use strlen. */ +#undef USE_STRLEN + +/* Define if we have non ANSI RW modes. */ +#undef NON_ANSI_RW_MODES + +/* Always defined. */ +#undef NO_EOF_CHAR_CHECK + +/* Define to skip f2c undefs. */ +#undef Skip_f2c_Undefs + diff --git a/libf2c/libI77/configure b/libf2c/libI77/configure index 4c6a9bc..ec7988e 100755 --- a/libf2c/libI77/configure +++ b/libf2c/libI77/configure @@ -1114,7 +1114,8 @@ else cat >> confdefs.h <<\EOF #define NO_FCNTL 1 EOF - cat >> confdefs.h <<\EOF + + cat >> confdefs.h <<\EOF #define OPEN_DECL 1 EOF @@ -1122,12 +1123,12 @@ fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1126: checking for working const" >&5 +echo "configure:1127: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1131 "configure" +#line 1132 "configure" #include "confdefs.h" int main() { @@ -1176,7 +1177,7 @@ ccp = (char const *const *) p; ; return 0; } EOF -if { (eval echo configure:1180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -1197,12 +1198,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:1201: checking for size_t" >&5 +echo "configure:1202: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1206 "configure" +#line 1207 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -1235,12 +1236,12 @@ fi # Apparently positive result on cygwin loses re. NON_UNIX_STDIO # (as of cygwin b18). Likewise on mingw. echo $ac_n "checking for fstat""... $ac_c" 1>&6 -echo "configure:1239: checking for fstat" >&5 +echo "configure:1240: checking for fstat" >&5 if eval "test \"`echo '$''{'ac_cv_func_fstat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1244 "configure" +#line 1245 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char fstat(); below. */ @@ -1263,7 +1264,7 @@ fstat(); ; return 0; } EOF -if { (eval echo configure:1267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_fstat=yes" else @@ -1283,7 +1284,7 @@ else fi echo $ac_n "checking need for NON_UNIX_STDIO""... $ac_c" 1>&6 -echo "configure:1287: checking need for NON_UNIX_STDIO" >&5 +echo "configure:1288: checking need for NON_UNIX_STDIO" >&5 if test $g77_cv_sys_cygwin32 = yes \ || test $g77_cv_sys_mingw32 = yes \ || test $ac_cv_func_fstat = no; then @@ -1299,12 +1300,12 @@ fi for ac_func in ftruncate do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1303: checking for $ac_func" >&5 +echo "configure:1304: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1308 "configure" +#line 1309 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1327,7 +1328,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1354,12 +1355,12 @@ done for ac_func in mkstemp do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1358: checking for $ac_func" >&5 +echo "configure:1359: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1363 "configure" +#line 1364 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1382,7 +1383,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1409,12 +1410,12 @@ done for ac_func in tempnam do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1413: checking for $ac_func" >&5 +echo "configure:1414: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1418 "configure" +#line 1419 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1437,7 +1438,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1467,19 +1468,19 @@ done # However, on my sunos4/gcc setup unistd.h leads us wrongly to believe # we're posix-conformant, so always do the test. echo $ac_n "checking for ansi/posix sprintf result""... $ac_c" 1>&6 -echo "configure:1471: checking for ansi/posix sprintf result" >&5 +echo "configure:1472: checking for ansi/posix sprintf result" >&5 if test "$cross_compiling" = yes; then g77_cv_sys_sprintf_ansi=no else cat > conftest.$ac_ext <<EOF -#line 1476 "configure" +#line 1477 "configure" #include "confdefs.h" #include <stdio.h> /* does sprintf return the number of chars transferred? */ main () {char foo[2]; (sprintf(foo, "1") == 1) ? exit(0) : exit(1);} EOF -if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then g77_cv_sys_sprintf_ansi=yes else @@ -1510,9 +1511,9 @@ fi # define NON_ANSI_RW_MODES on unix (can't hurt) echo $ac_n "checking NON_ANSI_RW_MODES""... $ac_c" 1>&6 -echo "configure:1514: checking NON_ANSI_RW_MODES" >&5 +echo "configure:1515: checking NON_ANSI_RW_MODES" >&5 cat > conftest.$ac_ext <<EOF -#line 1516 "configure" +#line 1517 "configure" #include "confdefs.h" #ifdef unix yes @@ -1557,12 +1558,12 @@ EOF echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:1561: checking for off_t" >&5 +echo "configure:1562: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1566 "configure" +#line 1567 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS diff --git a/libf2c/libI77/configure.in b/libf2c/libI77/configure.in index 3f508f1..20f2628 100644 --- a/libf2c/libI77/configure.in +++ b/libf2c/libI77/configure.in @@ -113,7 +113,8 @@ AC_MSG_RESULT($g77_cv_sys_mingw32) AC_CHECK_HEADER(fcntl.h, test $g77_cv_header_posix = yes && AC_DEFINE(_POSIX_SOURCE), - AC_DEFINE(NO_FCNTL) AC_DEFINE(OPEN_DECL)) + AC_DEFINE(NO_FCNTL, 1, [Define if fcntl.h is missing.]) + AC_DEFINE(OPEN_DECL, 1, [Define if fcntl.h is missing.])) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST @@ -130,7 +131,7 @@ if test $g77_cv_sys_cygwin32 = yes \ || test $g77_cv_sys_mingw32 = yes \ || test $ac_cv_func_fstat = no; then AC_MSG_RESULT(yes) - AC_DEFINE(NON_UNIX_STDIO) + AC_DEFINE(NON_UNIX_STDIO, 1, [Define if we do not have Unix Stdio.]) else AC_MSG_RESULT(no) fi @@ -163,7 +164,7 @@ AC_MSG_RESULT($g77_cv_sys_sprintf_ansi) # The cygwin patch takes steps to avoid defining USE_STRLEN here -- I don't # understand why. if test $g77_cv_sys_sprintf_ansi != yes; then - AC_DEFINE(USE_STRLEN) + AC_DEFINE(USE_STRLEN, 1, [Define if we use strlen.]) fi # define NON_ANSI_RW_MODES on unix (can't hurt) @@ -184,7 +185,7 @@ if test $g77_cv_sys_cygwin32 = yes || test $g77_cv_sys_mingw32 = yes; then AC_MSG_RESULT(no) else if test $is_unix = yes; then - AC_DEFINE(NON_ANSI_RW_MODES) + AC_DEFINE(NON_ANSI_RW_MODES, 1, [Define if we have non ANSI RW modes.]) AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) @@ -192,11 +193,11 @@ else fi # This EOF_CHAR is a misfeature on unix. -AC_DEFINE(NO_EOF_CHAR_CHECK) +AC_DEFINE(NO_EOF_CHAR_CHECK, 1, [Always defined.]) AC_TYPE_OFF_T -AC_DEFINE(Skip_f2c_Undefs) +AC_DEFINE(Skip_f2c_Undefs, 1, [Define to skip f2c undefs.]) AC_OUTPUT(Makefile) diff --git a/libf2c/libI77/dfe.c b/libf2c/libI77/dfe.c index f639ab5..e90b16d 100644 --- a/libf2c/libI77/dfe.c +++ b/libf2c/libI77/dfe.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" #include "fmt.h" diff --git a/libf2c/libI77/dolio.c b/libf2c/libI77/dolio.c index 4b5a2ca..1e0c377 100644 --- a/libf2c/libI77/dolio.c +++ b/libf2c/libI77/dolio.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #ifdef __cplusplus diff --git a/libf2c/libI77/due.c b/libf2c/libI77/due.c index cb80a39..df34133 100644 --- a/libf2c/libI77/due.c +++ b/libf2c/libI77/due.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" diff --git a/libf2c/libI77/err.c b/libf2c/libI77/err.c index e7ac23a..6784cdd 100644 --- a/libf2c/libI77/err.c +++ b/libf2c/libI77/err.c @@ -1,3 +1,4 @@ +#include "config.h" #ifndef NON_UNIX_STDIO #define _INCLUDE_POSIX_SOURCE /* for HP-UX */ #define _INCLUDE_XOPEN_SOURCE /* for HP-UX */ diff --git a/libf2c/libI77/fmt.c b/libf2c/libI77/fmt.c index 8f08952..793dceb 100644 --- a/libf2c/libI77/fmt.c +++ b/libf2c/libI77/fmt.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" #include "fmt.h" diff --git a/libf2c/libI77/fmtlib.c b/libf2c/libI77/fmtlib.c index 91483fc..69c0d9b 100644 --- a/libf2c/libI77/fmtlib.c +++ b/libf2c/libI77/fmtlib.c @@ -1,5 +1,6 @@ /* @(#)fmtlib.c 1.2 */ #define MAXINTLENGTH 23 +#include "config.h" #include "f2c.h" #ifndef Allow_TYQUAD diff --git a/libf2c/libI77/ftell_.c b/libf2c/libI77/ftell_.c index 1bd03be..1f6d87f 100644 --- a/libf2c/libI77/ftell_.c +++ b/libf2c/libI77/ftell_.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" diff --git a/libf2c/libI77/ilnw.c b/libf2c/libI77/ilnw.c index abc6409..58fca0d 100644 --- a/libf2c/libI77/ilnw.c +++ b/libf2c/libI77/ilnw.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" #include "lio.h" diff --git a/libf2c/libI77/lread.c b/libf2c/libI77/lread.c index 4b62a5c..d546efc 100644 --- a/libf2c/libI77/lread.c +++ b/libf2c/libI77/lread.c @@ -1,3 +1,4 @@ +#include "config.h" #include <ctype.h> #include "f2c.h" #include "fio.h" diff --git a/libf2c/libI77/open.c b/libf2c/libI77/open.c index 830dca5..56bbc52 100644 --- a/libf2c/libI77/open.c +++ b/libf2c/libI77/open.c @@ -1,6 +1,7 @@ /* Define _XOPEN_SOURCE to get tempnam prototype with glibc et al -- more general than _INCLUDE_XOPEN_SOURCE used elsewhere `for HP-UX'. */ #define _XOPEN_SOURCE 1 +#include "config.h" #include "f2c.h" #include "fio.h" #include <string.h> diff --git a/libf2c/libI77/rdfmt.c b/libf2c/libI77/rdfmt.c index f2b1211..6ddd369 100644 --- a/libf2c/libI77/rdfmt.c +++ b/libf2c/libI77/rdfmt.c @@ -1,3 +1,4 @@ +#include "config.h" #include <ctype.h> #include "f2c.h" #include "fio.h" diff --git a/libf2c/libI77/rsfe.c b/libf2c/libI77/rsfe.c index a79cd79..1be4531 100644 --- a/libf2c/libI77/rsfe.c +++ b/libf2c/libI77/rsfe.c @@ -1,4 +1,5 @@ /* read sequential formatted external */ +#include "config.h" #include "f2c.h" #include "fio.h" #include "fmt.h" diff --git a/libf2c/libI77/rsne.c b/libf2c/libI77/rsne.c index 77ffdf7..a0d0bfe 100644 --- a/libf2c/libI77/rsne.c +++ b/libf2c/libI77/rsne.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" #include "lio.h" diff --git a/libf2c/libI77/sue.c b/libf2c/libI77/sue.c index eacb1d6..e7dbba0 100644 --- a/libf2c/libI77/sue.c +++ b/libf2c/libI77/sue.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" extern uiolen f__reclen; diff --git a/libf2c/libI77/typesize.c b/libf2c/libI77/typesize.c index 1cb20ff..7f42aa1 100644 --- a/libf2c/libI77/typesize.c +++ b/libf2c/libI77/typesize.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" ftnlen f__typesize[] = { 0, 0, sizeof(shortint), sizeof(integer), diff --git a/libf2c/libI77/util.c b/libf2c/libI77/util.c index ccaad2d..8280ac0 100644 --- a/libf2c/libI77/util.c +++ b/libf2c/libI77/util.c @@ -1,3 +1,4 @@ +#include "config.h" #ifndef NON_UNIX_STDIO #define _INCLUDE_POSIX_SOURCE /* for HP-UX */ #define _INCLUDE_XOPEN_SOURCE /* for HP-UX */ diff --git a/libf2c/libI77/wrtfmt.c b/libf2c/libI77/wrtfmt.c index 477c40f..37006ba 100644 --- a/libf2c/libI77/wrtfmt.c +++ b/libf2c/libI77/wrtfmt.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" #include "fmt.h" diff --git a/libf2c/libI77/wsle.c b/libf2c/libI77/wsle.c index f8555d7..386e867 100644 --- a/libf2c/libI77/wsle.c +++ b/libf2c/libI77/wsle.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" #include "fmt.h" diff --git a/libf2c/libI77/xwsne.c b/libf2c/libI77/xwsne.c index babec47..96fdd02 100644 --- a/libf2c/libI77/xwsne.c +++ b/libf2c/libI77/xwsne.c @@ -1,3 +1,4 @@ +#include "config.h" #include "f2c.h" #include "fio.h" #include "lio.h" |