source: trunk/configure.ac @ 430

Revision 430, 2.1 KB checked in by thomas, 4 years ago (diff)
  • configure.ac:
  • m4/Makefile.am:
  • m4/as-ac-expand.m4:
  • moap.spec.in:
  • m4/as-ac-expand.m4 (added): Make package properly noarch, so that building it on 64 bit installs in the correct location. Clean up some lint warnings, all except inconsistent version in changelog.
Line 
1dnl initialize autoconf
2dnl when going to/from release please remove/add the nano (fourth number)
3dnl releases only do Wall, cvs and prerelease does Werror too
4AC_INIT(moap, 0.2.7.1,
5   http://thomas.apestaart.org/moap/trac/newticket,
6   moap)
7
8dnl initialize automake
9AM_INIT_AUTOMAKE
10
11dnl define PACKAGE_VERSION_* variables
12AS_VERSION
13
14AS_NANO
15
16dnl authors
17AC_SUBST_FILE(AUTHORS)
18AUTHORS=$srcdir/AUTHORS
19
20dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
21AM_MAINTAINER_MODE
22
23dnl Add parameters for aclocal
24AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
25
26dnl check for python
27AS_PATH_PYTHON(2.3)
28
29dnl check for where to install our python stuff
30dnl FIXME: this gives us the installed python location, disregarding prefix
31dnl PYTHONLIBDIR=`$PYTHON -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
32PYVER=[`$PYTHON -c "import sys ; print sys.version[:3]"`]
33dnl FIXME: this always puts it in an arch-specific location when in fact it
34dnl is noarch
35dnl PYTHONLIBDIR=\${libdir}/python$PYVER/site-packages
36dnl This is the best way of installing in an arch-independent location for now
37AS_AC_EXPAND(PYTHONLIBDIR, "\${exec_prefix}/lib/python$PYVER/site-packages")
38
39AC_MSG_NOTICE(Installing python code in $PYTHONLIBDIR)
40AC_SUBST(PYTHONLIBDIR)
41
42dnl check for RDF
43AS_PYTHON_IMPORT([RDF], HAVE_RDF="yes", HAVE_RDF="no")
44
45dnl check for epydoc
46AC_CHECK_PROG(EPYDOC, epydoc, yes, no)
47AM_CONDITIONAL(HAVE_EPYDOC, test "x$EPYDOC" = "xyes")
48
49dnl check for pychecker
50AC_CHECK_PROG(PYCHECKER, pychecker, yes, no)
51AM_CONDITIONAL(HAVE_PYCHECKER, test "x$PYCHECKER" = "xyes")
52
53dnl output stuff
54AC_OUTPUT(
55Makefile
56bin/Makefile
57etc/Makefile
58etc/bash_completion.d/Makefile
59m4/Makefile
60moap/Makefile
61moap/bug/Makefile
62moap/command/Makefile
63moap/configure/Makefile
64moap/configure/uninstalled.py
65moap/configure/installed.py
66moap/doap/Makefile
67moap/extern/Makefile
68moap/publish/Makefile
69moap/util/Makefile
70moap/vcs/Makefile
71moap/test/Makefile
72doc/Makefile
73misc/Makefile
74moap.spec
75)
76
77if test "x$HAVE_RDF" = "xno"
78then
79  echo
80  echo "Could not import RDF."
81  echo "doap-related functionality will not work until you install it."
82fi
Note: See TracBrowser for help on using the repository browser.