1234567891011121314151617181920212223242526 |
- 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 <bsd/string.h> to get the `strlcpy()' function.])
- fi
- AC_OUTPUT
|