clean up gl/modules/selinux-at
authorJim Meyering <meyering@redhat.com>
Wed, 22 Oct 2008 10:44:17 +0000 (12:44 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 22 Oct 2008 10:44:17 +0000 (12:44 +0200)
* gl/modules/selinux-at:
Ensure that LIB_SELINUX is cleared, in case it's set in the environment.
m4-quote the first two args to AC_SEARCH_LIBS.
Don't violate autoconf's ac_ namespace: s/ac_save/gl_save/
Drop the useless double quotes around a simple assignment RHS.

gl/modules/selinux-at

index 7599083..d1675fe 100644 (file)
@@ -13,12 +13,13 @@ configure.ac:
 # For runcon.
 AC_CHECK_HEADERS([selinux/flask.h])
 AC_LIBOBJ([selinux-at])
-ac_save_LIBS="$LIBS"
-  AC_SEARCH_LIBS(setfilecon, selinux,
+gl_save_LIBS=$LIBS
+  LIB_SELINUX=
+  AC_SEARCH_LIBS([setfilecon], [selinux],
                  [test "$ac_cv_search_setfilecon" = "none required" ||
                   LIB_SELINUX=$ac_cv_search_setfilecon])
   AC_SUBST(LIB_SELINUX)
-LIBS="$ac_save_LIBS"
+LIBS=$gl_save_LIBS
 
 Makefile.am: