Fixed some tests that were failing under cygwin
[pspp-builds.git] / configure.ac
index 7921bcc345025de9b01a823645cbd76b31711801..e3da678e616eda184b1f8fdd487af66d93e263a9 100644 (file)
@@ -22,6 +22,16 @@ dnl Checks for libraries.
 AC_SYS_LARGEFILE
 AC_FUNC_FSEEKO
 AC_CHECK_LIB(m, sin)
+AC_ARG_WITH(libplot, [  --without-libplot         don't compile in support of charts (using libplot)])
+
+if test x"$with_libplot" != x"no" ; then 
+       AC_CHECK_LIB(plot, pl_newpl_r,,
+         AC_MSG_ERROR([You must install libplot (or use --without-libplot)])
+       )
+fi
+AM_CONDITIONAL(WITHCHARTS, test x"$with_libplot" != x"no")
+
+
 AC_CHECK_LIB(gmp, mpf_get_str,,
        AC_CHECK_LIB(gmp, __gmpf_get_str,,
           AC_MSG_ERROR([You must install libgmp])
@@ -76,7 +86,8 @@ AC_HEADER_TIME
 
 AC_C_CONST
 AC_C_INLINE
-AC_TYPE_OFF_T
+dnl  Dont use AC_TYPE_OFF_T --- it doesnt generate the HAVE_TYPE macro
+AC_CHECK_TYPES(off_t) 
 AC_TYPE_SIZE_T
 AC_STRUCT_TM