summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-30 22:02:24 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-30 22:02:24 +0200
commit763a14223fdabd8060603d858138a3ba33a7a8b6 (patch)
treea45b9ec95fdc3552d914a1df88276f4494d519c2
parentf715a24e9c704a03ad8bd99111c3e397fdd58e98 (diff)
Added configure check for Xlib.
-rw-r--r--configure.in5
-rw-r--r--plugingui/Makefile.am.plugingui4
2 files changed, 7 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index f3b32bf..9dd92cf 100644
--- a/configure.in
+++ b/configure.in
@@ -37,6 +37,11 @@ if test "x$enable_lv2" = "xyes"; then
dnl Check for lv2core
dnl ======================
PKG_CHECK_MODULES(LV2, lv2 >= 1.0)
+
+ dnl ======================
+ dnl Check for Xlib
+ dnl ======================
+ PKG_CHECK_MODULES(X11, x11 >= 1.0)
else
AC_MSG_RESULT([*** LV2 plugin will not be compiled ***])
enable_lv2=no
diff --git a/plugingui/Makefile.am.plugingui b/plugingui/Makefile.am.plugingui
index 9ad5233..c4e9218 100644
--- a/plugingui/Makefile.am.plugingui
+++ b/plugingui/Makefile.am.plugingui
@@ -32,6 +32,6 @@ PLUGIN_GUI_SOURCES = \
$(top_srcdir)/plugingui/resource.cc \
$(top_srcdir)/plugingui/resource_data.cc
-PLUGIN_GUI_LIBS = -lX11
+PLUGIN_GUI_LIBS = $(X11_LIBS)
-PLUGIN_GUI_CFLAGS = -I$(top_srcdir)/hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX
+PLUGIN_GUI_CFLAGS = $(X11_CFLAGS) -I$(top_srcdir)/hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX