Patch #6228.
* flip.c (flip_file): No need to conditionally substitute for
"fseeko" and "off_t" manually anymore, as gnulib takes care of it
for us.
* acinclude.m4: Delete PSPP_OFF_T macro.
* configure.ac: Don't call AC_FUNC_FSEEKO or PSPP_OFF_T.
+2007-10-12 Ben Pfaff <blp@gnu.org>
+
+ Use fseeko module from gnulib instead of our home-grown solution.
+ Patch #6228.
+
+ * acinclude.m4: Delete PSPP_OFF_T macro.
+
+ * configure.ac: Don't call AC_FUNC_FSEEKO or PSPP_OFF_T.
+
2007-10-12 Ben Pfaff <blp@gnu.org>
* Smake: Add fprintf-posix, printf-posix, printf-safe,
fi
])
-dnl Check that off_t is defined as an integer type.
-dnl Solaris sometimes declares it as a struct, if it
-dnl thinks that the compiler does not support `long long'.
-AC_DEFUN([PSPP_OFF_T],
-[
- AC_COMPILE_IFELSE([#include <sys/types.h>
- #include <unistd.h>
- off_t x = 0;
- int main (void)
- {
- lseek (0, 1, 2);
- return 0;
- }], [], [AC_MSG_ERROR(
- [Your system's definition of off_t is broken. You are probably
- using Solaris. You can probably fix the problem with
- `--disable-largefile' or `CFLAGS=-ansi'.])])
-])
-
dnl Check whether a C compiler option is accepted.
dnl If so, add it to CFLAGS.
dnl Example: PSPP_ENABLE_OPTION(-Wdeclaration-after-statement)
dnl Checks for libraries.
AC_SYS_LARGEFILE
-AC_FUNC_FSEEKO
AC_CHECK_LIB(m, sin)
PSPP_LIBPLOT
PSPP_LC_PAPER
fi
AM_CONDITIONAL(WITH_GUI_TOOLS, test x"$with_gui_tools" = x"yes")
-PSPP_OFF_T
-
AC_CHECK_LIB(gslcblas,main,,[PSPP_REQUIRED_PREREQ([libgslcblas])])
AC_CHECK_LIB(gsl, gsl_cdf_chisq_Q,,[PSPP_REQUIRED_PREREQ([libgsl (version 1.4 or later)])])
+2007-10-12 Ben Pfaff <blp@gnu.org>
+
+ * flip.c (flip_file): No need to conditionally substitute for
+ "fseeko" and "off_t" manually anymore, as gnulib takes care of it
+ for us.
+
2007-09-21 Jason Stover <jhs@wonko.gcsu.edu>
* regression.q (run_regression): Partial fix of memory leak, bug
for (j = 0; j < read_cases; j++)
output_buf[j] = input_buf[i + j * flip->var_cnt];
-#ifndef HAVE_FSEEKO
-#define fseeko fseek
-#endif
-
-#ifndef HAVE_OFF_T
-#define off_t long int
-#endif
-
if (fseeko (output_file,
sizeof *input_buf * (case_idx
+ (off_t) i * flip->case_cnt),