# USA.
avahidir = $(pythondir)/avahi
+
+if HAVE_PYTHON
avahi_PYTHON = __init__.py SimpleGladeApp.py
+endif
-EXTRA_DIST = $(avahi_PYTHON)
+EXTRA_DIST = __init__.py SimpleGladeApp.py
if [ "x$1" = "xam" ] ; then
set -ex
- run_versioned automake 1.7 -a -c --foreign
+ run_versioned automake 1.9 -a -c --foreign
./config.status
else
set -ex
rm -rf autom4te.cache
rm -f config.cache
- run_versioned aclocal 1.7
+ run_versioned aclocal 1.9
libtoolize -c --force
autoheader
- run_versioned automake 1.7 -a -c --foreign
+ run_versioned automake 1.9 -a -c --foreign
autoconf -Wall
CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@"
AC_SUBST(avahi_runtime_dir)
AC_SUBST(avahi_socket)
-AM_PATH_PYTHON(2.4)
+HAVE_PYTHON=fuck
+AM_PATH_PYTHON(2.4, [HAVE_PYTHON=yes], [HAVE_PYTHON=no])
+AM_CONDITIONAL(HAVE_PYTHON, [test "x$HAVE_PYTHON" = xyes ])
AC_CONFIG_FILES([
Makefile
compiler: ${CC}
cflags: ${CFLAGS}
Enable Gtk: ${ENABLE_GTK}
- Enable Dbus: ${ENABLE_DBUS}
+ Enable DBUS: ${ENABLE_DBUS}
+ Have Python: ${HAVE_PYTHON}
Linux Distro: ${with_distro}
User for Avahi: ${AVAHI_USER}
Group for Avahi: ${AVAHI_GROUP}