libmail - A mail handling library Code
Brought to you by:
mandas
AC_INIT([libmail], [0.2], [http://sourceforge.net/tracker/?group_id=251539&atid=1126791]) AM_INIT_AUTOMAKE([libmail],[0.2]) AC_CONFIG_SRCDIR([libmail/network.c]) AC_CONFIG_HEADERS([config.h]) AC_PROG_CXX AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_LIBTOOL CFLAGS="-D_GNU_SOURCE -Wall -Wunused -Wstrict-prototypes" AC_CHECK_LIB([sasl2],[sasl_client_init], check_sasl=yes,check_sasl=no) if test $check_sasl = no; then AC_MSG_ERROR([cyrus-sasl2 is needed for authentication purposes]) exit 1 else LDFLAGS="-lsasl2" fi AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [Enable debug]), [ if test $enableval = yes; then CFLAGS="$CFLAGS -g -DNDEBUG" optimize="no" fi ],[optimize="yes"]) AC_ARG_ENABLE([profile], AS_HELP_STRING([--enable-profile], [Enable profiling]), [ if test $enableval = yes; then CFLAGS="$CFLAGS -pg -g -DNDEBUG" optimize="yes" fi ]) if test $optimize = "yes"; then CFLAGS="$CFLAGS -O2" fi # Checks for header files. AC_CHECK_HEADERS([arpa/inet.h limits.h netdb.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/socket.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T AC_TYPE_UINT32_T AC_TYPE_UINT8_T # Checks for library functions. AC_FUNC_MALLOC AC_CHECK_FUNCS([memset socket strchr strdup strrchr strstr]) AC_CONFIG_FILES([libmail/Makefile Makefile man/Makefile]) AC_OUTPUT