mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-22 12:31:07 +00:00
Add missing checks for clock_gettime(2) (Linux has it in librt) and
for the unaligned encoding / decoding functions in <cryb/endian.h>.
This commit is contained in:
parent
1b84de1d0f
commit
75ee849080
1 changed files with 15 additions and 0 deletions
15
configure.ac
15
configure.ac
|
@ -15,6 +15,7 @@ AC_LANG(C)
|
|||
AC_PROG_CC
|
||||
AC_PROG_CC_STDC
|
||||
AC_PROG_CPP
|
||||
AC_GNU_SOURCE
|
||||
AC_C_CONST
|
||||
AC_C_RESTRICT
|
||||
AC_C_VOLATILE
|
||||
|
@ -33,12 +34,26 @@ AC_PROG_INSTALL
|
|||
#
|
||||
|
||||
AC_CHECK_HEADERS([endian.h sys/endian.h])
|
||||
AC_CHECK_FUNCS([be32enc be32dec le32enc le32dec])
|
||||
AC_CHECK_FUNCS([be64enc be64dec le64enc le64dec])
|
||||
AC_CHECK_FUNCS([strlcat strlcmp strlcpy])
|
||||
|
||||
# For tracing allocations in unit tests
|
||||
AC_CHECK_HEADERS([sys/ktrace.h])
|
||||
AC_CHECK_FUNCS([utrace])
|
||||
|
||||
############################################################################
|
||||
#
|
||||
# Extra libraries
|
||||
#
|
||||
|
||||
save_LIBS="${LIBS}"
|
||||
LIBS=""
|
||||
AC_CHECK_LIB(rt, clock_gettime)
|
||||
RT_LIBS="${LIBS}"
|
||||
LIBS="${save_LIBS}"
|
||||
AC_SUBST(RT_LIBS)
|
||||
|
||||
############################################################################
|
||||
#
|
||||
# Build options
|
||||
|
|
Loading…
Reference in a new issue