AC_INIT([conwrap], [1.0], [markus-hennecke@markus-hennecke.de]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC AC_PROG_INSTALL # Checks for libraries. AC_SEARCH_LIBS([strlcpy], [bsd], [], [ AC_MSG_ERROR([unable to find strlcpy function]) ]) bsdstrl_h_found="no" AC_CHECK_HEADERS([bsd/string.h], [bsdstrl_h_found="yes"]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([ Makefile src/Makefile ]) if test x"$bsdstrl_h_found" = x"yes" then AC_DEFINE([USE_BSD_H], 1, [Define to 1 if you need to include to get the `strlcpy()' function.]) fi AC_OUTPUT