diff options
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | tests/cert-tests/Makefile.am | 1 | ||||
-rwxr-xr-x | tests/cert-tests/template-test | 5 |
3 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index cb33184661..798775b8d9 100644 --- a/configure.ac +++ b/configure.ac @@ -768,6 +768,10 @@ if test x$ac_zlib != xno; then fi fi AC_SUBST(LIBZ_PC) + +# export for use in scripts +AC_SUBST(ac_cv_sizeof_unsigned_long_int) + AC_SUBST(GNUTLS_REQUIRES_PRIVATE) diff --git a/tests/cert-tests/Makefile.am b/tests/cert-tests/Makefile.am index f6addc2528..cacf765653 100644 --- a/tests/cert-tests/Makefile.am +++ b/tests/cert-tests/Makefile.am @@ -120,6 +120,7 @@ TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) \ VALGRIND="$(VALGRIND)" \ LIBTOOL="$(LIBTOOL)" \ top_builddir="$(top_builddir)" \ + ac_cv_sizeof_unsigned_long_int="$(ac_cv_sizeof_unsigned_long_int)" \ ASAN_OPTIONS="detect_leaks=0:exitcode=6" \ srcdir="$(srcdir)" diff --git a/tests/cert-tests/template-test b/tests/cert-tests/template-test index 2f14bf2eab..206f8182b0 100755 --- a/tests/cert-tests/template-test +++ b/tests/cert-tests/template-test @@ -21,6 +21,7 @@ #set -e srcdir="${srcdir:-.}" +ac_cv_sizeof_unsigned_long_int="${ac_cv_sizeof_unsigned_long_int:-8}" CERTTOOL="${CERTTOOL:-../../src/certtool${EXEEXT}}" DIFF="${DIFF:-diff}" @@ -121,7 +122,7 @@ fi rm -f tmp-tt.pem # The following test works in 64-bit systems -if test "$(getconf LONG_BIT)" = "64"; then +if test "${ac_cv_sizeof_unsigned_long_int}" = 8;then datefudge -s "2007-04-22" \ "${CERTTOOL}" --generate-self-signed \ @@ -179,7 +180,7 @@ rm -f tmp-tt.pem # Test the GeneralizedTime support -if test "$(getconf LONG_BIT)" = "64"; then +if test "${ac_cv_sizeof_unsigned_long_int}" = 8;then # we should test that on systems which have 64-bit time_t. datefudge -s "2051-04-22" \ "${CERTTOOL}" --generate-self-signed \ |