From: Karel Zak Date: Thu, 18 Aug 2011 09:50:27 +0000 (+0200) Subject: build-sys: add --enable-ddate X-Git-Tag: v2.20~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a8962f3a7cb970b28add7d770528edebbe03635;p=thirdparty%2Futil-linux.git build-sys: add --enable-ddate Don't build this crazy thing by default. Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index a8bf0d8fc5..0d3b889312 100644 --- a/configure.ac +++ b/configure.ac @@ -855,6 +855,12 @@ AC_ARG_ENABLE([arch], ) AM_CONDITIONAL(BUILD_ARCH, test "x$enable_arch" = xyes) +AC_ARG_ENABLE([ddate], + AS_HELP_STRING([--enable-ddate], [do build ddate]), + [], enable_date=no +) +AM_CONDITIONAL(BUILD_DDATE, test "x$enable_ddate" = xyes) + AC_ARG_ENABLE([agetty], AS_HELP_STRING([--disable-agetty], [do not build agetty]), [], enable_agetty=yes diff --git a/misc-utils/Makefile.am b/misc-utils/Makefile.am index 9e2e66bf7b..28bcca1731 100644 --- a/misc-utils/Makefile.am +++ b/misc-utils/Makefile.am @@ -6,7 +6,7 @@ bin_PROGRAMS = sbin_PROGRAMS = usrsbin_exec_PROGRAMS = -usrbin_exec_PROGRAMS = cal ddate logger look mcookie namei whereis +usrbin_exec_PROGRAMS = cal logger look mcookie namei whereis EXTRA_DIST += README.cal README.ddate @@ -17,11 +17,16 @@ usrbin_exec_SCRIPTS = chkdupexe CLEANFILES = chkdupexe -dist_man_MANS = cal.1 chkdupexe.1 ddate.1 logger.1 look.1 mcookie.1 \ +dist_man_MANS = cal.1 chkdupexe.1 logger.1 look.1 mcookie.1 \ namei.1 whereis.1 namei_SOURCES = namei.c $(top_srcdir)/lib/strutils.c +if BUILD_DDATE +usrbin_exec_PROGRAMS += ddate +dist_man_MANS += ddate.1 +endif + if BUILD_LIBUUID usrbin_exec_PROGRAMS += uuidgen dist_man_MANS += uuidgen.1