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