summaryrefslogtreecommitdiffstats
path: root/contrib/libf2c/libU77/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libf2c/libU77/aclocal.m4')
-rw-r--r--contrib/libf2c/libU77/aclocal.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/libf2c/libU77/aclocal.m4 b/contrib/libf2c/libU77/aclocal.m4
new file mode 100644
index 0000000..d230dad
--- /dev/null
+++ b/contrib/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
+
OpenPOWER on IntegriCloud