RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: rse@rpm5.org
Module: rpm Date: 26-Jun-2007 20:25:18
Branch: HEAD Handle: 2007062619251800
Modified files:
rpm configure.ac
Log:
simplify --with-linux option handling and do no Linux-specific magic.
Instead let one explicitly disable/enable it.
Summary:
Revision Changes Path
2.139 +7 -11 rpm/configure.ac
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/configure.ac
============================================================================
$ cvs diff -u -r2.138 -r2.139 configure.ac
--- rpm/configure.ac 26 Jun 2007 18:19:08 -0000 2.138
+++ rpm/configure.ac 26 Jun 2007 18:25:18 -0000 2.139
@@ -607,17 +607,13 @@
AC_SUBST(WITH_LIBELF_DEBUGEDIT)
dnl # optional SELinux support
-WITH_SELINUX_LIB=
-with_selinuxval=no
-case "$target" in
- *-*-linux*) with_selinuxval=yes ;;
-esac
-withval=${with_selinuxval}
-AC_ARG_WITH(selinux, AS_HELP_STRING([--with-selinux], [build RPM with SELinux support]))
-if test $withval != no; then
- AC_DEFINE(WITH_SELINUX, 1, [Build with SELinux support?])
- WITH_SELINUX_LIB="-lselinux"
-fi
+WITH_SELINUX_LIB=""
+AC_ARG_WITH(selinux, AS_HELP_STRING([--with-selinux], [build RPM with SELinux support]), [
+ if test ".$withval" = .yes; then
+ AC_DEFINE(WITH_SELINUX, 1, [Build with SELinux support?])
+ WITH_SELINUX_LIB="-lselinux"
+ fi
+])
AC_SUBST(WITH_SELINUX_LIB)
dnl # auto-detect whether Perl bindings should be built.
@@ .
Received on Tue Jun 26 20:25:18 2007