diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2001-10-15 14:58:54 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2001-10-15 14:58:54 (GMT) |
commit | d57ed66242e3615fe0c3bb4e26d06f2a6a78a61d (patch) | |
tree | dfb0025b2422c04eca23db8865aed1e21fcba36f /unix/configure.in | |
parent | 342928681741cf621d8fb12b1bb82782f3cf3755 (diff) | |
download | tcl-d57ed66242e3615fe0c3bb4e26d06f2a6a78a61d.zip tcl-d57ed66242e3615fe0c3bb4e26d06f2a6a78a61d.tar.gz tcl-d57ed66242e3615fe0c3bb4e26d06f2a6a78a61d.tar.bz2 |
Trying to do more with configure...
Diffstat (limited to 'unix/configure.in')
-rw-r--r-- | unix/configure.in | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/unix/configure.in b/unix/configure.in index d3312f4..5727e17 100644 --- a/unix/configure.in +++ b/unix/configure.in @@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to dnl generate the file "configure", which is run during Tcl installation dnl to configure the system for the local environment. AC_INIT(../generic/tcl.h) -# RCS: @(#) $Id: configure.in,v 1.72 2001/08/12 21:17:43 mdejong Exp $ +# RCS: @(#) $Id: configure.in,v 1.72.6.1 2001/10/15 14:58:55 dkf Exp $ TCL_VERSION=8.4 TCL_MAJOR_VERSION=8 @@ -60,6 +60,27 @@ if test -n "$GCC"; then fi fi +AC_C_CROSS +AC_MSG_CHECKING([for 64-bit integer type]) +AC_CACHE_VAL(tcl_cv_type_64bit,[ + AC_TRY_COMPILE(,[__int64 value = (__int64) 0;], + tcl_cv_type_64bit=__int64, + AC_TRY_RUN([ +#include <unistd.h> +int main() { + exit(!(sizeof(long long) > sizeof(long))); +} +], + tcl_cv_type_64bit="long long", + tcl_cv_type_64bit=none, tcl_cv_type_64bit=none))]) +if test "${tcl_cv_type_64bit}" = none ; then + AC_DEFINE(TCL_WIDE_INT_IS_LONG) + AC_MSG_RESULT(using long) +else + AC_DEFINE_UNQUOTED(TCL_WIDE_INT_TYPE,${tcl_cv_type_64bit}) + AC_MSG_RESULT(${tcl_cv_type_64bit}) +fi + #-------------------------------------------------------------------- # Supply substitutes for missing POSIX library procedures, or # set flags so Tcl uses alternate procedures. @@ -72,7 +93,7 @@ AC_CHECK_FUNCS(getcwd, , [AC_DEFINE(USEGETWD)]) AC_REPLACE_FUNCS(opendir strstr) -AC_REPLACE_FUNCS(strtol tmpnam waitpid) +AC_REPLACE_FUNCS(strtol tmpnam waitpid strtoll strtoull) AC_CHECK_FUNC(strerror, , [AC_DEFINE(NO_STRERROR)]) AC_CHECK_FUNC(getwd, , [AC_DEFINE(NO_GETWD)]) AC_CHECK_FUNC(wait3, , [AC_DEFINE(NO_WAIT3)]) @@ -541,4 +562,6 @@ AC_SUBST(TCL_BIN_DIR) AC_SUBST(TCL_UNSHARED_LIB_SUFFIX) AC_SUBST(TCL_VERSION) +AC_SUBST(TCL_HAS_LONGLONG) + AC_OUTPUT(Makefile tclConfig.sh) |