Skip to content

Commit

Permalink
configure.ac: Refine compile time checks for headers and functions
Browse files Browse the repository at this point in the history
This removes checks for <string.h> and strpbrk as they are used
unconditionally and unlikely to be absent on any supported platforms.

This also makes it error out when <dlfcn.h> is not found.

Signed-off-by: Daiki Ueno <[email protected]>
  • Loading branch information
ueno committed Nov 6, 2023
1 parent 2e8c26b commit 7d89b44
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,14 @@ if test "$P11_MODULE_PATH" != "" ; then
fi

# Checks for header files.
AC_CHECK_HEADERS([string.h dlfcn.h])
AC_CHECK_HEADERS([dlfcn.h], , [AC_MSG_ERROR([<dlfcn.h> is not found])])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_BIGENDIAN
AC_C_INLINE
AC_TYPE_SIZE_T

# Checks for library functions.
AC_CHECK_FUNCS([strpbrk])

AC_CONFIG_FILES([
Makefile
docs/Makefile
Expand Down

0 comments on commit 7d89b44

Please sign in to comment.