Skip to content

Commit

Permalink
refactor: avoid hack when checking size of struct MD5Context
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabedini committed Dec 19, 2024
1 parent 1174e85 commit 09d2c38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/ghc-internal/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ AS_IF([test "x$with_libcharset" != xno],

fi

dnl Calling AC_CHECK_TYPE(T) makes AC_CHECK_SIZEOF(T) abort on failure
dnl instead of considering sizeof(T) as 0.
AC_CHECK_TYPE([struct MD5Context], [], [AC_MSG_ERROR([internal error])], [#include "include/md5.h"])
AC_CHECK_SIZEOF([struct MD5Context], [], [#include "include/md5.h"])
AS_IF([test "$ac_cv_sizeof_struct_MD5Context" -eq 0],[
AC_MSG_ERROR([cannot determine sizeof(struct MD5Context)])
])

AC_SUBST(EXTRA_LIBS)
AC_CONFIG_FILES([ghc-internal.buildinfo])
Expand Down

0 comments on commit 09d2c38

Please sign in to comment.