build-sys: use -lutil for BSD only

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2014-09-17 10:56:46 +02:00
parent 2eaac5489b
commit 8026fa9bc7
2 changed files with 11 additions and 1 deletions

View File

@ -136,9 +136,17 @@ PKG_PROG_PKG_CONFIG
GTK_DOC_CHECK([1.10])
AC_PATH_PROG([XSLTPROC], [xsltproc])
linux_os=no
AS_CASE([${host_os}], [*linux*], [linux_os=yes])
bsd_os=no
AS_CASE([${host_os}],
[*linux*],
[linux_os=yes],
[*bsd*],
[bsd_os=yes])
AM_CONDITIONAL([LINUX], [test "x$linux_os" = xyes])
AM_CONDITIONAL([BSD], [test "x$bsd_os" = xyes])
dnl define ARCH_<NAME> conditionals
UL_SET_ARCH([I86], [i?86-*])

View File

@ -23,7 +23,9 @@ sbin_PROGRAMS += agetty
dist_man_MANS += term-utils/agetty.8
agetty_SOURCES = term-utils/agetty.c
agetty_LDADD = $(LDADD) libcommon.la
if BSD
agetty_LDADD += -lutil
endif
endif # BUILD_AGETTY