Commit | Line | Data |
---|---|---|
f6795c17 | 1 | dnl -*-autoconf-*- |
90b2c5d4 | 2 | dnl |
3 | dnl Configuration script for X tools | |
4 | dnl | |
5 | dnl (c) 1998 Straylight/Edgeware | |
6 | dnl | |
7 | ||
8 | dnl ----- Licensing notice -------------------------------------------------- | |
9 | dnl | |
10 | dnl This file is part of the Edgeware X tools collection. | |
11 | dnl | |
12 | dnl X tools 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. | |
c1c9f4d2 | 16 | dnl |
90b2c5d4 | 17 | dnl X tools 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. | |
c1c9f4d2 | 21 | dnl |
90b2c5d4 | 22 | dnl You should have received a copy of the GNU General Public License |
23 | dnl along with X tools; if not, write to the Free Software Foundation, | |
24 | dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
25 | ||
f6795c17 MW |
26 | dnl-------------------------------------------------------------------------- |
27 | dnl Initialization. | |
90b2c5d4 | 28 | |
f6795c17 MW |
29 | mdw_AUTO_VERSION |
30 | AC_INIT([xtoys], AUTO_VERSION, [mdw@distorted.org.uk]) | |
31 | AC_CONFIG_SRCDIR([xscsize.c]) | |
32 | AC_CONFIG_AUX_DIR([config]) | |
33 | AM_INIT_AUTOMAKE([foreign]) | |
23a4d5f7 | 34 | mdw_SILENT_RULES |
90b2c5d4 | 35 | |
f6795c17 MW |
36 | dnl-------------------------------------------------------------------------- |
37 | dnl C programming environment. | |
d5419f6c | 38 | |
f6795c17 MW |
39 | AC_PROG_CC |
40 | AX_CFLAGS_WARN_ALL | |
90b2c5d4 | 41 | AC_PATH_XTRA |
90b2c5d4 | 42 | |
f6795c17 MW |
43 | PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4]) |
44 | CFLAGS="$CFLAGS $mLib_CFLAGS" | |
45 | LIBS="$LIBS $mLib_LIBS" | |
46 | ||
47 | dnl-------------------------------------------------------------------------- | |
bce8c6ee MW |
48 | dnl Python programming environment. |
49 | ||
50 | AM_PATH_PYTHON([2.4], [python=yes], [python=no]) | |
51 | AM_CONDITIONAL([HAVE_PYTHON], [test $python = yes]) | |
52 | ||
53 | if test $python = yes; then | |
54 | AC_PYTHON_MODULE([pygtk]) | |
55 | fi | |
56 | AM_CONDITIONAL([HAVE_PYGTK], [test ${HAVE_PYMOD_PYGTK-no} = yes]) | |
57 | ||
58 | dnl-------------------------------------------------------------------------- | |
f6795c17 MW |
59 | dnl Output. |
60 | ||
61 | AC_CONFIG_FILES( | |
62 | [Makefile]) | |
63 | AC_OUTPUT | |
90b2c5d4 | 64 | |
65 | dnl ----- That's all, folks ------------------------------------------------- |