summaryrefslogtreecommitdiffstats
path: root/win/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-18 10:42:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-18 10:42:05 (GMT)
commitd456e92a29bc93a8d61922ed5e1f3d6ef7a44a55 (patch)
tree932df22d49052c64e6693b484135304119cf5ea7 /win/configure
parent392ecd0f2d72fc6e6b164b6b18f5aa867377d475 (diff)
downloadtcl-d456e92a29bc93a8d61922ed5e1f3d6ef7a44a55.zip
tcl-d456e92a29bc93a8d61922ed5e1f3d6ef7a44a55.tar.gz
tcl-d456e92a29bc93a8d61922ed5e1f3d6ef7a44a55.tar.bz2
Rename AC_HELP_STRING to AS_HELP_STRING, and fix determination of intptr_t/uintptr_t with autoconf 2.70
Diffstat (limited to 'win/configure')
-rwxr-xr-xwin/configure97
1 files changed, 7 insertions, 90 deletions
diff --git a/win/configure b/win/configure
index 0e89594..eafe1fd 100755
--- a/win/configure
+++ b/win/configure
@@ -5016,113 +5016,30 @@ fi
printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h
-ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
+ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "
+#include <stdint.h>
+
+"
if test "x$ac_cv_type_intptr_t" = xyes
then :
-
printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
-else $as_nop
-
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pointer-size signed integer type" >&5
-printf %s "checking for pointer-size signed integer type... " >&6; }
-if test ${tcl_cv_intptr_t+y}
-then :
- printf %s "(cached) " >&6
-else $as_nop
-
- for tcl_cv_intptr_t in "int" "long" "long long" none; do
- if test "$tcl_cv_intptr_t" != none; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$ac_includes_default
-int
-main (void)
-{
-static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_intptr_t))];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
- tcl_ok=yes
-else $as_nop
- tcl_ok=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
- test "$tcl_ok" = yes && break; fi
- done
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_intptr_t" >&5
-printf "%s\n" "$tcl_cv_intptr_t" >&6; }
- if test "$tcl_cv_intptr_t" != none; then
-
-printf "%s\n" "#define intptr_t $tcl_cv_intptr_t" >>confdefs.h
-
- fi
fi
+ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "
+#include <stdint.h>
-ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
+"
if test "x$ac_cv_type_uintptr_t" = xyes
then :
-
printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
-else $as_nop
-
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pointer-size unsigned integer type" >&5
-printf %s "checking for pointer-size unsigned integer type... " >&6; }
-if test ${tcl_cv_uintptr_t+y}
-then :
- printf %s "(cached) " >&6
-else $as_nop
-
- for tcl_cv_uintptr_t in "unsigned int" "unsigned long" "unsigned long long" \
- none; do
- if test "$tcl_cv_uintptr_t" != none; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$ac_includes_default
-int
-main (void)
-{
-static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_uintptr_t))];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
- tcl_ok=yes
-else $as_nop
- tcl_ok=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
- test "$tcl_ok" = yes && break; fi
- done
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_uintptr_t" >&5
-printf "%s\n" "$tcl_cv_uintptr_t" >&6; }
- if test "$tcl_cv_uintptr_t" != none; then
-
-printf "%s\n" "#define uintptr_t $tcl_cv_uintptr_t" >>confdefs.h
-
- fi
fi
-
#--------------------------------------------------------------------
# Zipfs support - Tip 430
#--------------------------------------------------------------------