--- libaitcfg/configure.in 2009/09/09 09:07:30 1.2 +++ libaitcfg/configure.in 2012/07/25 15:24:20 1.9 @@ -1,8 +1,8 @@ # # $Author: misho $ -# $Id: configure.in,v 1.2 2009/09/09 09:07:30 misho Exp $ +# $Id: configure.in,v 1.9 2012/07/25 15:24:20 misho Exp $ # -AC_INIT(libaitcfg, 3.0, misho@openbsd-bg.org) +AC_INIT(libaitcfg, 5.2, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitcfg.c]) AC_CONFIG_HEADERS([inc/config.h]) @@ -20,6 +20,9 @@ CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS} LDFLAGS="-L/usr/local/lib ${LDFLAGS}" # Checks for libraries. +AC_CHECK_LIB([pthread], [pthread_mutex_lock]) +AC_CHECK_LIB([aitio], [io_TrimStr]) +AC_CHECK_LIB([aitcrc], [crcFletcher16]) # Checks for header files. @@ -43,6 +46,7 @@ AC_ARG_ENABLE(debug, CFLAGS="-g ${CFLAGS}" ;; *) + AC_DEFINE(NDEBUG,, [No debug, remove asserts]) ;; esac ],) AC_MSG_RESULT($DEBUG)