From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> Using this conditional for test progs only should be ok. Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- configure.ac | 2 ++ libsmartcols/samples/Makemodule.am | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7b6a9e7..b8b0074 100644 --- a/configure.ac +++ b/configure.ac @@ -397,6 +397,8 @@ AC_CHECK_FUNCS([inotify_init1], [have_inotify_init1=yes]) AC_CHECK_FUNCS([open_memstream], [have_open_memstream=yes],[have_open_memstream=no]) AC_CHECK_FUNCS([reboot], [have_reboot=yes],[have_reboot=no]) +AM_CONDITIONAL([HAVE_OPENAT], [test "x$have_openat" = xyes]) + dnl lib/mononotic.c may require -lrt AC_CHECK_FUNCS([clock_gettime], [], [AC_CHECK_LIB([rt], [clock_gettime], [REALTIME_LIBS="-lrt"])] diff --git a/libsmartcols/samples/Makemodule.am b/libsmartcols/samples/Makemodule.am index be74fc3..0a2d892 100644 --- a/libsmartcols/samples/Makemodule.am +++ b/libsmartcols/samples/Makemodule.am @@ -1,6 +1,5 @@ check_PROGRAMS += \ - sample-scols-tree \ sample-scols-title \ sample-scols-wrap \ sample-scols-continuous @@ -9,9 +8,12 @@ sample_scols_cflags = $(AM_CFLAGS) $(NO_UNUSED_WARN_CFLAGS) \ -I$(ul_libsmartcols_incdir) sample_scols_ldadd = $(LDADD) libsmartcols.la +if HAVE_OPENAT +check_PROGRAMS += sample-scols-tree sample_scols_tree_SOURCES = libsmartcols/samples/tree.c sample_scols_tree_LDADD = $(sample_scols_ldadd) libcommon.la sample_scols_tree_CFLAGS = $(sample_scols_cflags) +endif sample_scols_title_SOURCES = libsmartcols/samples/title.c sample_scols_title_LDADD = $(sample_scols_ldadd) -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html