diff options
| author | Glenn Morris | 2010-04-20 20:33:04 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-04-20 20:33:04 -0700 |
| commit | 2807228d2cb72b68f1dd9d97fea6b587d83c346b (patch) | |
| tree | 06a8f867ea1cba94b7b6cb795d998ec10681548f | |
| parent | 022c122ac70704f3c0af86e1614592bd957a7703 (diff) | |
| download | emacs-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-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.in | 3 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/Makefile.in | 6 |
4 files changed, 12 insertions, 5 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-04-21 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.in (LIBSELINUX_LIBS): Always substitute in Makefiles. | ||
| 4 | |||
| 1 | 2010-04-21 Karel Klíč <kklic@redhat.com> | 5 | 2010-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 | ||
| 1735 | dnl SELinux is available for GNU/Linux only. | 1735 | dnl SELinux is available for GNU/Linux only. |
| 1736 | HAVE_LIBSELINUX=no | 1736 | HAVE_LIBSELINUX=no |
| 1737 | LIBSELINUX_LIBS= | ||
| 1737 | if test "${with_selinux}" = "yes"; then | 1738 | if 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 |
| 1744 | fi | 1744 | fi |
| 1745 | AC_SUBST(LIBSELINUX_LIBS) | ||
| 1745 | 1746 | ||
| 1746 | dnl Do not put whitespace before the #include statements below. | 1747 | dnl Do not put whitespace before the #include statements below. |
| 1747 | dnl Older compilers (eg sunos4 cc) choke on it. | 1748 | dnl 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 @@ | |||
| 1 | 2010-04-21 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef. | ||
| 4 | |||
| 1 | 2010-04-21 Karel Klíč <kklic@redhat.com> | 5 | 2010-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@ | |||
| 92 | RSVG_LIBS= @RSVG_LIBS@ | 92 | RSVG_LIBS= @RSVG_LIBS@ |
| 93 | RSVG_CFLAGS= @RSVG_CFLAGS@ | 93 | RSVG_CFLAGS= @RSVG_CFLAGS@ |
| 94 | 94 | ||
| 95 | LIBSELINUX_LIBS = @LIBSELINUX_LIBS@ | ||
| 96 | |||
| 95 | INTERVALS_H = dispextern.h intervals.h composite.h | 97 | INTERVALS_H = dispextern.h intervals.h composite.h |
| 96 | 98 | ||
| 97 | GETLOADAVG_LIBS = @GETLOADAVG_LIBS@ | 99 | GETLOADAVG_LIBS = @GETLOADAVG_LIBS@ |
| @@ -243,10 +245,6 @@ shared=no | |||
| 243 | DBUS_OBJ = dbusbind.o | 245 | DBUS_OBJ = dbusbind.o |
| 244 | #endif | 246 | #endif |
| 245 | 247 | ||
| 246 | #ifdef HAVE_LIBSELINUX | ||
| 247 | LIBSELINUX_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 |