Build fixes from Michael Biebl
authorDan Williams <dcbw@redhat.com>
Fri, 9 May 2008 19:08:40 +0000 (19:08 +0000)
committerDan Williams <dcbw@redhat.com>
Fri, 9 May 2008 19:08:40 +0000 (19:08 +0000)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3653 4912f4e0-d625-0410-9fb7-b9a5a253dbdc

configure.in
policy/Makefile.am

index 885d4bd..f04228d 100644 (file)
@@ -221,11 +221,7 @@ AC_SUBST(LIBNL_LIBS)
 
 PKG_CHECK_MODULES(POLKIT, polkit-dbus)
 
-AC_CHECK_PROG([POLKIT_POLICY_FILE_VALIDATE],
-    [polkit-policy-file-validate], [polkit-policy-file-validate])
-if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then
-    AC_MSG_ERROR([polkit-policy-file-validate not found])
-fi
+AC_PATH_PROG([POLKIT_POLICY_FILE_VALIDATE], [polkit-policy-file-validate], [false])
 
 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
 AC_SUBST(GLIB_GENMARSHAL)
index 243f3b7..69f5d2e 100644 (file)
@@ -4,11 +4,11 @@ dist_polkit_policy_DATA =                             \
        org.freedesktop.network-manager-settings.system.policy
 
 check:
-       for f in $(dist_polkit_policy_DATA); do \
+       @for f in $(dist_polkit_policy_DATA); do \
             echo -n "Validate PolicyKit policy in $$f : "; \
             $(POLKIT_POLICY_FILE_VALIDATE) $(srcdir)/$$f ; \
            ret=$$?; \
-            if  [ "$$ret" == "0" ]; \
+            if  [ "$$ret" = "0" ]; \
              then \
                 echo ok; \
             else \