#configure.in - configure template for mod_ca. # # # VSD - Virtual Server Daemon # Copyright (c) 2000 - 2001 Idaya Ltd. # # VSD is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # VSD is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with VSD - see the COPYING file; if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # # # See the AUTHORS file for a list of contributors to VSD. # See the ChangeLog files for a list of changes. # AC_INIT(mod_ca.c) AC_CONFIG_HEADER(config.h) dnl Global version variable PACKAGE="mod_ca" AC_SUBST(PACKAGE) VERSION="1.0.0" AC_SUBST(VERSION) AC_SUBST(MANDATE) dnl Checks for programs AC_PROG_CC AC_CHECK_TOOL(AR, ar) AC_PATH_PROG(RM, rm, rm) dnl Checks for header files AC_HEADER_STDC AC_CHECK_HEADERS(stdio.h) dnl Checks for typedefs, structures and compiler characteristics AC_C_CONST AC_TYPE_SIZE_T dnl Checks for library functions AC_PROG_GCC_TRADITIONAL AC_CHECK_FUNCS(strerror) dnl Check for OpenSSL directories AC_MSG_CHECKING([for OpenSSL]) for ssldir in $prefix /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg; do if test -f "$ssldir/include/openssl/crypto.h"; then AC_DEFINE(HAVE_OPENSSL) GOT_SSL="yes" break fi if test -f "$ssldir/include/ssl/crypto.h"; then AC_DEFINE(HAVE_SSL) GOT_SSL="yes" break fi done if test -n "$GOT_SSL"; then AC_DEFINE_UNQUOTED(ssldir, "$ssldir") if test "$ssldir" != "/usr"; then includes="$includes -I$ssldir/include" LDFLAGS="$LDFLAGS -L$ssldir/lib" fi LIBS="$LIBS -lssl" AC_MSG_RESULT($ssldir) AC_CHECK_LIB(crypto, CRYPTO_lock, LIBS="$LIBS -lcrypto") else AC_MSG_RESULT([not found]) fi AC_ARG_WITH(openssl, [ --with-openssl support openssl secure certificates], , with_openssl=yes) test "$with_openssl" = yes && AC_DEFINE(WITH_OPENSSL) AC_OUTPUT([Makefile])