summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2004-11-22 22:59:03 (GMT)
committermdejong <mdejong>2004-11-22 22:59:03 (GMT)
commit4a7ff1607966c70a574e8a9bd2870f37c21c1a70 (patch)
treecd56fd6a3be52b348cfeb40cab2e0e15ae67b322 /unix/tcl.m4
parentef4b091cbe98d05b7498a99ef0e793e55986e3e2 (diff)
downloadtcl-4a7ff1607966c70a574e8a9bd2870f37c21c1a70.zip
tcl-4a7ff1607966c70a574e8a9bd2870f37c21c1a70.tar.gz
tcl-4a7ff1607966c70a574e8a9bd2870f37c21c1a70.tar.bz2
* unix/configure: Regen.
* unix/tcl.m4 (SC_TCL_64BIT_FLAGS): Define HAVE_TYPE_OFF64_T only when off64_t, open64(), and lseek64() are defined. IRIX 5.3 is known to not include an open64 function. [Bug 1030465]
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m411
1 files changed, 9 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 1dbd59f..03b7550 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -2580,10 +2580,17 @@ AC_DEFUN(SC_TCL_64BIT_FLAGS, [
AC_TRY_COMPILE([#include <sys/types.h>],[off64_t offset;
],
tcl_cv_type_off64_t=yes,tcl_cv_type_off64_t=no)])
- if test "x${tcl_cv_type_off64_t}" = "xyes" ; then
+ AC_CHECK_FUNCS(open64 lseek64)
+ dnl Define HAVE_TYPE_OFF64_T only when the off64_t type and the
+ dnl functions lseek64 and open64 are defined.
+ if test "x${tcl_cv_type_off64_t}" = "xyes" && \
+ test "x${ac_cv_func_lseek64}" = "xyes" && \
+ test "x${ac_cv_func_open64}" = "xyes" ; then
AC_DEFINE(HAVE_TYPE_OFF64_T, 1, [Is off64_t in <sys/types.h>?])
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
fi
- AC_MSG_RESULT(${tcl_cv_type_off64_t})
fi])
#--------------------------------------------------------------------