summaryrefslogtreecommitdiffstats
path: root/genkeymap/Makefile.am
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-01-30 11:42:39 -0800
committerPavel Roskin <plroskin@gmail.com>2016-01-30 17:18:52 -0800
commit00e70a5c5450579145ef077340d8148a1ba3338c (patch)
tree39f1a9cb809c04b92cba45c2035b355342a185ed /genkeymap/Makefile.am
parent334eeb970aeea2f4ca706eebd0326e9854e5d229 (diff)
downloadxrdp-proprietary-00e70a5c5450579145ef077340d8148a1ba3338c.tar.gz
xrdp-proprietary-00e70a5c5450579145ef077340d8148a1ba3338c.zip
Use standard autotools means to detect X11
Use AC_PATH_XTRA to search for X11 in configure.ac. In Makefiles, add X_CFLAGS to AM_CFLAGS for the source compilation. Add X_LIBS to LDFLAGS. Add X_PRE_LIBS and X_EXTRA_LIBS to LDADD. With this patch, X Windows system is correctly detected on Mac OS X.
Diffstat (limited to 'genkeymap/Makefile.am')
-rw-r--r--genkeymap/Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/genkeymap/Makefile.am b/genkeymap/Makefile.am
index aed72512..25767395 100644
--- a/genkeymap/Makefile.am
+++ b/genkeymap/Makefile.am
@@ -1,9 +1,12 @@
+AM_CFLAGS = $(X_CFLAGS)
bin_PROGRAMS = \
xrdp-genkeymap
xrdp_genkeymap_SOURCES = genkeymap.c evdev-map.c
+xrdp_genkeymap_LDFLAGS = \
+ $(X_LIBS)
+
xrdp_genkeymap_LDADD = \
- -L/usr/X11R6/lib \
- -lX11
+ $(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS)