Added to configure.ac explicit checks for stdint.h, inttypes.h, stdlib.h because slibtool does not put them into ./configure by default

This commit is contained in:
Thomas Schmitt 2025-03-24 08:54:42 +01:00
parent b9c39474ea
commit 1098709bf4
2 changed files with 6 additions and 2 deletions

View File

@ -97,7 +97,9 @@ AC_SUBST(LIBTOOL_DEPS)
AC_PROG_INSTALL
AC_CHECK_HEADERS()
dnl GNU libtool checks them by default/unconditionally, but slibtool does not.
dnl So accept the ugly double check and -DHAVE_*_H arguments with GNU libtool.
AC_CHECK_HEADERS(stdint.h inttypes.h stdlib.h)
dnl Check for tm_gmtoff field in struct tm
AC_CHECK_MEMBER([struct tm.tm_gmtoff],

View File

@ -84,7 +84,9 @@ dnl LIBTOOL="$LIBTOOL --silent"
AC_PROG_INSTALL
AC_CHECK_HEADERS()
dnl GNU libtool checks them by default/unconditionally, but slibtool does not.
dnl So accept the ugly double check and -DHAVE_*_H arguments with GNU libtool.
AC_CHECK_HEADERS(stdint.h inttypes.h stdlib.h)
AC_CHECK_MEMBER([struct tm.tm_gmtoff],
[AC_DEFINE(HAVE_TM_GMTOFF, 1,