summaryrefslogtreecommitdiff
blob: 01527607cabcb4ddac946aba7e78be7f747a66dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- ntfsprogs-2.0.0/configure.ac
+++ ntfsprogs-2.0.0/configure.ac
@@ -79,6 +79,10 @@
 	ac_configure_args="$ac_configure_args --prefix $prefix"
 fi
 
+AC_ARG_ENABLE([extras],[AS_HELP_STRING([--enable-extras],[build/install the extra programs])],,enable_extras=no)
+AM_CONDITIONAL(ENABLE_EXTRAS, test "x$enable_extras" = xyes)
+
+
 # Command-line options.
 AC_ARG_ENABLE(debug,
 	AS_HELP_STRING(--enable-debug,enable additional debugging code and
--- ntfsprogs-2.0.0/ntfsprogs/Makefile.am
+++ ntfsprogs-2.0.0/ntfsprogs/Makefile.am
@@ -14,7 +14,8 @@
 bin_PROGRAMS		= ntfsfix ntfsinfo ntfscluster ntfsls ntfscat ntfscmp
 sbin_PROGRAMS		= mkntfs ntfslabel ntfsundelete ntfsresize ntfsclone \
 			  ntfscp
-EXTRA_PROGRAMS		= ntfsdump_logfile ntfswipe ntfstruncate ntfsmove \
+EXTRA_PROGRAMS		=
+extra_progs		= ntfsdump_logfile ntfswipe ntfstruncate ntfsmove \
 			  ntfsmftalloc ntfsck
 
 man_MANS		= mkntfs.8 ntfsfix.8 ntfslabel.8 ntfsinfo.8 \
@@ -37,6 +38,12 @@
 EXTRA_PROGRAMS		+= ntfsdecrypt
 endif
 
+if ENABLE_EXTRAS
+bin_PROGRAMS		+= $(extra_progs)
+else
+EXTRA_PROGRAMS		+= $(extra_progs)
+endif
+
 # Set the include path.
 AM_CPPFLAGS		= -I$(top_srcdir)/include/ntfs $(all_includes)