summaryrefslogtreecommitdiff
path: root/libf2c
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1999-04-11 19:26:16 -0600
committerJeff Law <law@gcc.gnu.org>1999-04-11 19:26:16 -0600
commit6b1d78bf509804015999f36eb34ff78608aaf40d (patch)
tree26ae8e01342a8027dc84c26d4e440ea4a9ff1bf4 /libf2c
parentd2ec29fbf1b8d9bc6778f64e3d2c7a25ea095845 (diff)
downloadgcc-6b1d78bf509804015999f36eb34ff78608aaf40d.tar.gz
Forgot to cvs add this with Mumit's previous patch.
From-SVN: r26359
Diffstat (limited to 'libf2c')
-rw-r--r--libf2c/libU77/aclocal.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/libf2c/libU77/aclocal.m4 b/libf2c/libU77/aclocal.m4
new file mode 100644
index 00000000000..d230dadf807
--- /dev/null
+++ b/libf2c/libU77/aclocal.m4
@@ -0,0 +1,16 @@
+dnl See whether we have struct timezone
+dnl LIBU77_HAVE_STRUCT_TIMEZONE
+AC_DEFUN(LIBU77_HAVE_STRUCT_TIMEZONE,
+[AC_MSG_CHECKING([whether struct timezone exists])
+AC_CACHE_VAL(libu77_cv_have_struct_timezone,
+[AC_TRY_COMPILE([#include <sys/time.h>],
+[struct timezone tz;],
+libu77_ac_have_struct_timezone=yes, libu77_ac_have_struct_timezone=no)])
+if test $libu77_ac_have_struct_timezone = yes; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE_UNQUOTED(HAVE_STRUCT_TIMEZONE)
+else
+ AC_MSG_RESULT(no)
+fi
+])dnl
+