]> git.meshlink.io Git - catta/blobdiff - configure.ac
* Patch by Ikke <ikke@eikke.com> to make distcheck pass.
[catta] / configure.ac
index 05b48c1e80ae819ef70ec9f556fa191639fb4378..d477743769d2a3bb995522400abe9aa95ae13b8e 100644 (file)
@@ -35,6 +35,7 @@ fi
 
 # Checks for programs.
 AC_PROG_CC
+AC_GNU_SOURCE
 AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_LN_S
@@ -124,7 +125,7 @@ AC_ARG_ENABLE(dbus,
 
 if test "x$ENABLE_DBUS" = "xyes"; then
        AC_DEFINE(ENABLE_DBUS, 1, [Whether to use DBUS or not])
-        PKG_CHECK_MODULES(DBUS, [ dbus-glib-1 >= 0.23])
+        PKG_CHECK_MODULES(DBUS, [ dbus-glib-1 >= 0.30])
 
        AC_ARG_WITH(dbus-sys, [  --with-dbus-sys=<dir>   where D-BUS system.d directory is])
 
@@ -136,10 +137,6 @@ if test "x$ENABLE_DBUS" = "xyes"; then
        AC_SUBST(DBUS_SYS_DIR)
        AC_DEFINE_UNQUOTED(DBUS_SYSTEMD_DIR, `eval echo $DBUS_SYS_DIR` , [Where system.d dir for DBUS is])
 
-       if pkg-config dbus-1 --atleast-version=0.30 ; then
-          AC_DEFINE(DBUS_USE_NEW_API, 1, [Whether to use the new API for DBUS 0.30])
-       fi
-
         AC_SUBST(DBUS_CFLAGS)
        AC_SUBST(DBUS_LIBS)
 fi
@@ -184,11 +181,10 @@ if test "z$with_distro" = "z"; then
    exit 1
 else
 case $with_distro in
-   debian|gentoo)
+   debian|gentoo|suse)
      ;;
    *)
-     echo "Your distribution (${with_distro}) is not yet supported!  (patches welcome)"
-     exit 1
+     echo "Your distribution (${with_distro}) is not yet supported, init scripts and dbus configuration will not be installed! (patches welcome)"
      ;;
 esac
 
@@ -242,6 +238,7 @@ avahi-client/Makefile
 initscript/Makefile 
 initscript/Debian/Makefile
 initscript/Gentoo/Makefile
+initscript/SUSE/Makefile
 avahi-dnsconfd/Makefile
 ])
 AC_OUTPUT