From: Karel Zak Date: Wed, 21 May 2014 11:26:56 +0000 (+0200) Subject: build-sys: add BUILD_GETOPT X-Git-Tag: v2.25-rc1~110 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3adaaa154e5d57c1862a1adb74855d5da2413c1b;p=thirdparty%2Futil-linux.git build-sys: add BUILD_GETOPT Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 35f80b80a6..d5b33a6016 100644 --- a/configure.ac +++ b/configure.ac @@ -1136,6 +1136,9 @@ AM_CONDITIONAL([BUILD_NAMEI], [test "x$build_namei" = xyes]) UL_BUILD_INIT([whereis], [yes]) AM_CONDITIONAL([BUILD_WHEREIS], [test "x$build_whereis" = xyes]) +UL_BUILD_INIT([getopt], [yes]) +AM_CONDITIONAL([BUILD_GETOPT], [test "x$build_getopt" = xyes]) + UL_BUILD_INIT([blockdev], [check]) UL_REQUIRES_LINUX([blockdev]) diff --git a/misc-utils/Makemodule.am b/misc-utils/Makemodule.am index 9e643bfa12..94e0958f84 100644 --- a/misc-utils/Makemodule.am +++ b/misc-utils/Makemodule.am @@ -162,6 +162,7 @@ dist_man_MANS += misc-utils/rename.1 rename_SOURCES = misc-utils/rename.c endif +if BUILD_GETOPT usrbin_exec_PROGRAMS += getopt dist_man_MANS += misc-utils/getopt.1 getopt_SOURCES = misc-utils/getopt.c @@ -169,3 +170,4 @@ getoptexampledir = $(docdir)/getopt/ dist_getoptexample_SCRIPTS = \ misc-utils/getopt-parse.bash \ misc-utils/getopt-parse.tcsh +endif