summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-18 11:35:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-18 11:35:15 (GMT)
commit2fc35bb9ba41c64cd39412f33a06ce3f97ae52bf (patch)
tree45b557f94c173d688a169fa5de9752cc8c98f0c2 /unix/configure
parentd1096bcd57ccd523eddcb970a9b0224158a87522 (diff)
downloadtk-2fc35bb9ba41c64cd39412f33a06ce3f97ae52bf.zip
tk-2fc35bb9ba41c64cd39412f33a06ce3f97ae52bf.tar.gz
tk-2fc35bb9ba41c64cd39412f33a06ce3f97ae52bf.tar.bz2
More update necessary for autoconf 2.70. This fixes the determination of intptr_t/uintptr_t
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure96
1 files changed, 7 insertions, 89 deletions
diff --git a/unix/configure b/unix/configure
index 7343380..ce6b6de 100755
--- a/unix/configure
+++ b/unix/configure
@@ -7363,108 +7363,26 @@ printf "%s\n" "#define gid_t int" >>confdefs.h
fi
-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