+2011-05-21 Bruno Haible <bruno@clisp.org>
+
+ selinux-h: Move AC_LIBOBJ invocations to module description.
+ * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
+ AC_LIBOBJ invocation from here...
+ * modules/selinux-h (configure.ac): ... to here.
+
2011-05-21 Bruno Haible <bruno@clisp.org>
select: Respect rules for use of AC_LIBOBJ.
-# serial 4 -*- Autoconf -*-
+# serial 5 -*- Autoconf -*-
# Copyright (C) 2006-2007, 2009-2011 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
if test "$ac_cv_header_selinux_selinux_h" = yes; then
# We do have <selinux/selinux.h>, so do compile getfilecon.c
# and arrange to use its wrappers.
- AC_LIBOBJ([getfilecon])
gl_CHECK_NEXT_HEADERS([selinux/selinux.h])
AC_DEFINE([getfilecon], [rpl_getfilecon],
[Always use our getfilecon wrapper.])
gl_HEADERS_SELINUX_SELINUX_H
gl_HEADERS_SELINUX_CONTEXT_H
AC_REQUIRE([AC_C_INLINE])
+if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
+ AC_LIBOBJ([getfilecon])
+fi
Makefile.am:
lib_SOURCES += se-context.in.h se-selinux.in.h