# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. m4_define([SSLPROXY_VERSION], 1.0.1) m4_define([SSLPROXY_PATCHLV], 1) # For additional releasename (ex. m4_define([SSLPROXY_RELSUFFIX], [rc1]) for rc1) m4_define([SSLPROXY_RELSUFFIX], [atfix]) AC_PREREQ(2.59) AC_INIT([sslproxy], SSLPROXY_VERSION[-]SSLPROXY_PATCHLV[]SSLPROXY_RELSUFFIX, [ultramonkey-l7-develop@lists.sourceforge.jp]) AM_INIT_AUTOMAKE([foreign]) AC_CONFIG_SRCDIR([config.h.in]) AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB # Checks for libraries. AC_LANG_PUSH([C++]) AC_CHECK_LIB([log4cxx], [main],, [AC_MSG_ERROR( sslproxy require log4cxx library. )] ) AC_CHECK_LIB([boost_regex], [main],, [AC_MSG_ERROR([sslproxy requires boost, The Boost C++ Libraries.])]) AC_LANG_POP([C++]) AC_CHECK_LIB([rt], [main],, [AC_MSG_ERROR( sslproxy require rt library. )] ) AC_CHECK_LIB([ssl], [main],, [AC_MSG_ERROR([sslproxy require ssl library. In many linux distro, ]dnl [openssl-devel or openssl-dev package will provides you the ssl libraries.])]) # Checks for header files. AC_CHECK_HEADERS([limits.h unistd.h]) AC_LANG_PUSH([C++]) AC_CHECK_HEADERS([boost/asio/ssl.hpp],, [AC_MSG_ERROR([sslproxy requires boost, The Boost C++ Libraries, ]dnl [1.36.0 or higher. Does your system have boost headers? ]dnl [In many linux distro, boost-devel or boost-dev package will provides you ]dnl [the boost headers.])]) AC_CHECK_HEADERS([log4cxx/logger.h],, [AC_MSG_ERROR([sslproxy requires log4cxx. Does your system have ]dnl [log4cxx headers?])]) AC_LANG_POP([C++]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T AC_STRUCT_TM # Checks for library functions. AC_HEADER_STDC AC_FUNC_MKTIME AC_FUNC_STRFTIME AC_CHECK_FUNCS([gethostname localtime_r memset]) AC_SUBST(CC,g++) AC_SUBST(sslproxy_version, SSLPROXY_VERSION) AC_SUBST(sslproxy_patchlv, SSLPROXY_PATCHLV) AC_SUBST(sslproxy_relsuffix, SSLPROXY_RELSUFFIX) AC_CONFIG_FILES([parameter/Makefile] [logger/Makefile] [Makefile] [src/Makefile] [conf/Makefile] [conf/logrotate.d/Makefile] [sslfiles/Makefile] [sslproxy.spec]) AC_OUTPUT