diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-03-20 18:56:01 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-03-21 15:37:37 +0200 |
commit | 38b9f8aecf80d5e002e3684b72a17cd0dafe9e33 (patch) | |
tree | 25d70d5a7338c2ad80eebfbbd6e794d28dd96ab9 /configure.ac | |
download | vmod-remoteip-38b9f8aecf80d5e002e3684b72a17cd0dafe9e33.tar.gz vmod-remoteip-38b9f8aecf80d5e002e3684b72a17cd0dafe9e33.tar.bz2 |
Initial commit
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..0545796 --- /dev/null +++ b/configure.ac @@ -0,0 +1,61 @@ +# This file is part of vmod_remoteip. +# Copyright (C) 2017-2018 Sergey Poznyakoff +# +# Vmod_remoteip 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 3, or (at your option) +# any later version. +# +# Vmod_remoteip 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 vmod_remoteip. If not, see <http://www.gnu.org/licenses/>. + +AC_PREREQ(2.69) +AC_INIT([vmod-remoteip], [0.90], [gray@gnu.org]) +AC_CONFIG_AUX_DIR([build-aux]) +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_SRCDIR(src/vmod_remoteip.vcc) +AM_CONFIG_HEADER(config.h) + +AC_SUBST([AC_VMOD_BASENAME],[remoteip]) +AC_CANONICAL_SYSTEM +AC_LANG(C) + +AM_INIT_AUTOMAKE([1.14 gnu tar-ustar silent-rules]) +AM_SILENT_RULES([yes]) + +AC_GNU_SOURCE +AC_PROG_CC +AC_PROG_CC_STDC +if test "x$ac_cv_prog_cc_c99" = xno; then + AC_MSG_ERROR([could not find a C99 compatible compiler]) +fi +AC_PROG_CPP + +AC_PROG_INSTALL +AC_PROG_LIBTOOL +AC_PROG_MAKE_SET + +# Checks for header files. +AC_HEADER_STDC + +# Check for functions + +AM_VARNISHAPI([6.0],[6.3.1]) +AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR], + [Varnish API major version number]) + +AC_CONFIG_TESTDIR(tests) +AC_CONFIG_FILES([tests/Makefile tests/atlocal]) +AM_MISSING_PROG([AUTOM4TE], [autom4te]) + +AC_CONFIG_FILES([ + Makefile + src/Makefile +]) +AC_OUTPUT + |