coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 17/22] maint: simplify declaration of "libexec" programs


From: Stefano Lattarini
Subject: [PATCH 17/22] maint: simplify declaration of "libexec" programs
Date: Sat, 1 Sep 2012 01:46:54 +0200

* configure.ac: No need to use 'gl_ADD_PROG' and an indirection
variable '$optional_pkglib_progs' to declare the 'libstdbuf.so'
"libexec" program; the decision to whether compile that program
is not up to the user, but it only and simply depends on whether
the 'stdbuf' "bin" program is to be built or not.
---
 configure.ac | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 99f293a..53dc706 100644
--- a/configure.ac
+++ b/configure.ac
@@ -417,9 +417,9 @@ m4_include([m4/cu-progs.m4])
 
 # Now that we know which programs will actually be built up, figure out
 # which optional helper progs should be compiled.
-optional_pkglib_progs=
 case " $optional_bin_progs " in
-  *' stdbuf '*) gl_ADD_PROG([optional_pkglib_progs], [libstdbuf.so]) ;;
+  *' stdbuf '*) pkglibexec_PROGRAMS='libstdbuf.so';;
+  *) pkglibexec_PROGRAMS='';;
 esac
 
 man1_MANS=`
@@ -444,8 +444,6 @@ EXTRA_MANS=`for p in $no_install_progs_default; do echo 
man/$p.1; done`
 # this case, only for $(bin_PROGRAMS).
 bin_PROGRAMS=`
   for p in $optional_bin_progs; do echo "src/$p\$(EXEEXT)"; done`
-pkglibexec_PROGRAMS=`
-  for p in $optional_pkglib_progs; do echo src/$p; done`
 
 # Normalize whitespace.
 man1_MANS=`echo $man1_MANS`
-- 
1.7.12




reply via email to

[Prev in Thread] Current Thread [Next in Thread]