--- libaitpelco/configure.in 2013/01/17 10:16:17 1.3 +++ libaitpelco/configure.in 2016/08/18 09:34:21 1.5.2.2 @@ -1,11 +1,14 @@ # # $Author: misho $ -# $Id: configure.in,v 1.3 2013/01/17 10:16:17 misho Exp $ +# $Id: configure.in,v 1.5.2.2 2016/08/18 09:34:21 misho Exp $ # -AC_INIT(libaitpelco, 1.2, misho@openbsd-bg.org) +AC_INIT(libaitpelco, 2.2, misho@openbsd-bg.org) AC_CONFIG_SRCDIR([src/aitpelco.c]) AC_CONFIG_HEADERS([inc/config.h]) +ac_cv_func_malloc_0_nonnull="yes" +ac_cv_func_realloc_0_nonnull="yes" + # Checks for programs. AC_PROG_CC AC_PROG_INSTALL @@ -14,15 +17,14 @@ AC_PROG_RANLIB AC_CANONICAL_HOST AC_CANONICAL_TARGET -AC_CHECK_TOOL(MKDEP, mkdep, no) +AC_CHECK_TOOL(MKDEP, mkdep, ../mkdep) AC_SUBST(MKDEP) -CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}" -LDFLAGS="-L/usr/local/lib ${LDFLAGS}" +CFLAGS="-Wall -O2 -fPIC ${CFLAGS}" +LDFLAGS="${LDFLAGS}" # Checks for libraries. -# FIXME: Replace `main' with a function in `-laitcrc': -AC_CHECK_LIB([aitcrc], [crcPelco]) +AC_CHECK_LIB([elwix], [crcPelco]) # Checks for header files.