Here is a patch that disables linux-specific tools on non-linux targets.
Signed-Off-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-Off-By: Karel Zak <kzak@redhat.com>
disk-utils \
fdisk \
getopt \
- hwclock \
login-utils \
misc-utils \
- mount \
- partx \
po \
schedutils \
sys-utils \
text-utils \
tests
+if LINUX
+SUBDIRS += \
+ hwclock \
+ mount \
+ partx
+endif
+
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
[AC_MSG_NOTICE([Your libc thinks that swapon has 1 arg only.])
])
+case ${host_os} in
+ *linux*)
+ AM_CONDITIONAL([LINUX], [true])
+ ;;
+ *)
+ AM_CONDITIONAL([LINUX], [false])
+ ;;
+esac
dnl UTIL_SET_ARCH(ARCHNAME, PATTERN)
dnl ---------------------------------
include $(top_srcdir)/config/include-Makefile.am
-man_MANS = blockdev.8 fdformat.8 isosize.8 mkfs.8 mkswap.8 \
+man_MANS = blockdev.8 isosize.8 mkfs.8 mkswap.8 \
fsck.minix.8 mkfs.minix.8 mkfs.bfs.8
sbin_PROGRAMS = mkfs mkswap blockdev fsck.minix mkfs.minix mkfs.bfs
mkswap_SOURCES = mkswap.c swapheader.h ../lib/linux_version.c ../lib/blkdev.c
blockdev_SOURCES = blockdev.c ../lib/linux_version.c ../lib/blkdev.c
-usrbinexec_PROGRAMS = fdformat isosize
+usrbinexec_PROGRAMS = isosize
+
+if LINUX
+man_MANS += fdformat.8
+usrbinexec_PROGRAMS += fdformat
+endif
if BUILD_ELVTUNE
sbin_PROGRAMS += elvtune
endif
if HAVE_NCURSES
+if LINUX
usrbinexec_PROGRAMS += setterm
man_MANS += setterm.1
+endif
if HAVE_TINFO
setterm_LDADD = -ltinfo
else
include $(top_srcdir)/config/include-Makefile.am
-bin_PROGRAMS = dmesg
+bin_PROGRAMS =
+if LINUX
+bin_PROGRAMS += dmesg
+endif
-usrbinexec_PROGRAMS = cytune flock ipcrm ipcs renice setsid setarch
+usrbinexec_PROGRAMS = flock ipcrm ipcs renice setsid
+if LINUX
+usrbinexec_PROGRAMS += cytune setarch
+endif
cytune_SOURCES = cytune.c cyclades.h
+if LINUX
sbin_PROGRAMS = ctrlaltdel
+endif
-usrsbinexec_PROGRAMS = readprofile tunelp rtcwake
+usrsbinexec_PROGRAMS = readprofile
+if LINUX
+usrsbinexec_PROGRAMS += tunelp rtcwake
+endif
tunelp_SOURCES = tunelp.c lp.h