--- libaitsched/configure.in 2015/07/02 22:46:00 1.36.2.1 +++ libaitsched/configure.in 2023/08/31 15:23:24 1.54 @@ -1,8 +1,8 @@ # # $Author: misho $ -# $Id: configure.in,v 1.36.2.1 2015/07/02 22:46:00 misho Exp $ +# $Id: configure.in,v 1.54 2023/08/31 15:23:24 misho Exp $ # -AC_INIT(libaitsched, 6.1, misho@elwix.org) +AC_INIT(libaitsched, 7.8, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitsched.c]) AC_CONFIG_HEADERS([inc/config.h]) @@ -27,9 +27,11 @@ LDFLAGS="${LDFLAGS}" # Checks for libraries. AC_CHECK_LIB([pthread], [pthread_create]) AC_CHECK_LIB([rt], [aio_read]) +AC_CHECK_LIB([bsd], [strlcpy]) # Checks for header files. AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h]) +AC_CHECK_HEADERS([bsd/string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE @@ -111,6 +113,22 @@ AC_ARG_WITH(kq_events, [ KQ_EVENTS=$withval ], KQ_EVENTS=32) AC_DEFINE_UNQUOTED(KQ_EVENTS, $KQ_EVENTS, [ How many kqueue events can scheduling at one time ]) AC_MSG_RESULT($KQ_EVENTS) + +ELWIX=no +AC_MSG_CHECKING(With libelwix Build) +AC_ARG_WITH(elwix, + [ --with-elwix Build library with libelwix memory managemant], + [ ELWIX=$withval + case "$withval" in + yes) + AC_DEFINE(__ELWIX,, [Build libraries with libelwix memory managemant]) + CFLAGS="-g ${CFLAGS}" + LIBS="${LIBS} -lelwix" + ;; + *) + ;; + esac ],) +AC_MSG_RESULT($ELWIX) AC_CONFIG_FILES([Makefile inc/Makefile