Commit | Line | Data |
---|---|---|
247f344a MW |
1 | dnl -*-autoconf-*- |
2 | dnl | |
3 | dnl Auto-configuration script for udpkey | |
4 | dnl | |
5 | dnl (c) 2012 Mark Wooding | |
6 | dnl | |
7 | ||
8 | dnl----- Licensing notice --------------------------------------------------- | |
9 | dnl | |
10 | dnl This file is part of udpkey. | |
11 | dnl | |
12 | dnl The udpkey program is free software; you can redistribute it and/or modify | |
13 | dnl it under the terms of the GNU General Public License as published by | |
14 | dnl the Free Software Foundation; either version 2 of the License, or | |
15 | dnl (at your option) any later version. | |
16 | dnl | |
17 | dnl The udpkey program is distributed in the hope that it will be useful, | |
18 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | dnl GNU General Public License for more details. | |
21 | dnl | |
22 | dnl You should have received a copy of the GNU General Public License | |
23 | dnl along with udpkey; if not, write to the Free Software Foundation, | |
24 | dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
25 | ||
26 | dnl-------------------------------------------------------------------------- | |
27 | dnl Initialization. | |
28 | ||
29 | mdw_AUTO_VERSION | |
30 | AC_INIT([udpkey], AUTO_VERSION, [mdw@distorted.org.uk]) | |
31 | AC_CONFIG_SRCDIR([udpkey.c]) | |
32 | AC_CONFIG_AUX_DIR([config]) | |
33 | AM_INIT_AUTOMAKE([foreign]) | |
34 | mdw_SILENT_RULES | |
35 | ||
36 | dnl-------------------------------------------------------------------------- | |
37 | dnl C programming environment. | |
38 | ||
39 | AC_PROG_CC | |
40 | AM_PROG_CC_C_O | |
41 | AX_CFLAGS_WARN_ALL | |
42 | AC_SUBST([AM_CFLAGS]) | |
43 | ||
44 | PKG_CHECK_MODULES([mLib], [mLib >= 2.1.0]) | |
45 | PKG_CHECK_MODULES([catacomb], [catacomb >= 2.1.1]) | |
46 | AM_CFLAGS="$AM_CFLAGS $mLib_CFLAGS $catacomb_CFLAGS" | |
47 | ||
48 | dnl-------------------------------------------------------------------------- | |
49 | dnl Output. | |
50 | ||
51 | AC_CONFIG_FILES([Makefile]) | |
52 | AC_OUTPUT | |
53 | ||
54 | dnl----- That's all, folks -------------------------------------------------- |