aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-04-20 20:33:04 -0700
committerGlenn Morris2010-04-20 20:33:04 -0700
commit2807228d2cb72b68f1dd9d97fea6b587d83c346b (patch)
tree06a8f867ea1cba94b7b6cb795d998ec10681548f
parent022c122ac70704f3c0af86e1614592bd957a7703 (diff)
downloademacs-2807228d2cb72b68f1dd9d97fea6b587d83c346b.tar.gz
emacs-2807228d2cb72b68f1dd9d97fea6b587d83c346b.zip
Remove LIBSELINUX_LIBS need for cpp in Makefiles.
* configure.in (LIBSELINUX_LIBS): Always substitute in Makefiles. * src/Makefile.in (LIBSELINUX_LIBS): Remove containing #ifdef.
-rw-r--r--ChangeLog4
-rw-r--r--configure.in3
-rw-r--r--src/ChangeLog4
-rw-r--r--src/Makefile.in6
4 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 9daf189b088..35c5b617723 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12010-04-21 Glenn Morris <rgm@gnu.org>
2
3 * configure.in (LIBSELINUX_LIBS): Always substitute in Makefiles.
4
12010-04-21 Karel Klíč <kklic@redhat.com> 52010-04-21 Karel Klíč <kklic@redhat.com>
2 6
3 * configure.in: New option: --with(out)-selinux, on by default. 7 * configure.in: New option: --with(out)-selinux, on by default.
diff --git a/configure.in b/configure.in
index ce297106f6d..d96b4e987c6 100644
--- a/configure.in
+++ b/configure.in
@@ -1734,14 +1734,15 @@ fi
1734 1734
1735dnl SELinux is available for GNU/Linux only. 1735dnl SELinux is available for GNU/Linux only.
1736HAVE_LIBSELINUX=no 1736HAVE_LIBSELINUX=no
1737LIBSELINUX_LIBS=
1737if test "${with_selinux}" = "yes"; then 1738if test "${with_selinux}" = "yes"; then
1738 AC_CHECK_LIB([selinux], [lgetfilecon], HAVE_LIBSELINUX=yes, HAVE_LIBSELINUX=no) 1739 AC_CHECK_LIB([selinux], [lgetfilecon], HAVE_LIBSELINUX=yes, HAVE_LIBSELINUX=no)
1739 if test "$HAVE_LIBSELINUX" = yes; then 1740 if test "$HAVE_LIBSELINUX" = yes; then
1740 AC_DEFINE(HAVE_LIBSELINUX, 1, [Define to 1 if using SELinux.]) 1741 AC_DEFINE(HAVE_LIBSELINUX, 1, [Define to 1 if using SELinux.])
1741 LIBSELINUX_LIBS=-lselinux 1742 LIBSELINUX_LIBS=-lselinux
1742 AC_SUBST(LIBSELINUX_LIBS)
1743 fi 1743 fi
1744fi 1744fi
1745AC_SUBST(LIBSELINUX_LIBS)
1745 1746
1746dnl Do not put whitespace before the #include statements below. 1747dnl Do not put whitespace before the #include statements below.
1747dnl Older compilers (eg sunos4 cc) choke on it. 1748dnl Older compilers (eg sunos4 cc) choke on it.
diff --git a/src/ChangeLog b/src/ChangeLog
index 2da967958cd..716e6240320 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12010-04-21 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4
12010-04-21 Karel Klíč <kklic@redhat.com> 52010-04-21 Karel Klíč <kklic@redhat.com>
2 6
3 * Makefile.in (LIBSELINUX_LIBS): New. 7 * Makefile.in (LIBSELINUX_LIBS): New.
diff --git a/src/Makefile.in b/src/Makefile.in
index 913ac5a847e..1bb05c9e27e 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -92,6 +92,8 @@ CFLAGS_SOUND= @CFLAGS_SOUND@
92RSVG_LIBS= @RSVG_LIBS@ 92RSVG_LIBS= @RSVG_LIBS@
93RSVG_CFLAGS= @RSVG_CFLAGS@ 93RSVG_CFLAGS= @RSVG_CFLAGS@
94 94
95LIBSELINUX_LIBS = @LIBSELINUX_LIBS@
96
95INTERVALS_H = dispextern.h intervals.h composite.h 97INTERVALS_H = dispextern.h intervals.h composite.h
96 98
97GETLOADAVG_LIBS = @GETLOADAVG_LIBS@ 99GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
@@ -243,10 +245,6 @@ shared=no
243DBUS_OBJ = dbusbind.o 245DBUS_OBJ = dbusbind.o
244#endif 246#endif
245 247
246#ifdef HAVE_LIBSELINUX
247LIBSELINUX_LIBS = @LIBSELINUX_LIBS@
248#endif
249
250/* DO NOT use -R. There is a special hack described in lastfile.c 248/* DO NOT use -R. There is a special hack described in lastfile.c
251 which is used instead. Some initialized data areas are modified 249 which is used instead. Some initialized data areas are modified
252 at initial startup, then labeled as part of the text area when 250 at initial startup, then labeled as part of the text area when