mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
configure: make setbacklight optional
Modify the pkg-config check for setbacklight so that failure only disables building setbacklight, instead of failing the whole configure. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
b6df4f7de4
commit
4b141597c6
|
@ -216,7 +216,8 @@ fi
|
|||
AC_CHECK_PROG(RSVG_CONVERT, rsvg-convert, rsvg-convert)
|
||||
AM_CONDITIONAL(HAVE_RSVG_CONVERT, test -n "$RSVG_CONVERT")
|
||||
|
||||
PKG_CHECK_MODULES(SETBACKLIGHT, [libudev libdrm])
|
||||
PKG_CHECK_MODULES(SETBACKLIGHT, [libudev libdrm], enable_setbacklight=yes, enable_setbacklight=no)
|
||||
AM_CONDITIONAL(BUILD_SETBACKLIGHT, test "x$enable_setbacklight" = "xyes")
|
||||
|
||||
if test "x$GCC" = "xyes"; then
|
||||
my_common_gcc_flags="-Wall -Wextra -Wno-unused-parameter \
|
||||
|
|
|
@ -22,7 +22,7 @@ event_test_la_SOURCES = event-test.c $(test_runner_src)
|
|||
test_client_SOURCES = test-client.c
|
||||
test_client_LDADD = $(SIMPLE_CLIENT_LIBS)
|
||||
|
||||
noinst_PROGRAMS = setbacklight matrix-test
|
||||
noinst_PROGRAMS = $(setbacklight) matrix-test
|
||||
|
||||
matrix_test_SOURCES = \
|
||||
matrix-test.c \
|
||||
|
@ -38,4 +38,8 @@ setbacklight_SOURCES = \
|
|||
setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
|
||||
setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
|
||||
|
||||
if BUILD_SETBACKLIGHT
|
||||
setbacklight = setbacklight
|
||||
endif
|
||||
|
||||
EXTRA_DIST = weston-test
|
||||
|
|
Loading…
Reference in a new issue