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.ulab-next-nosound
parent
334eeb970a
commit
00e70a5c54
@ -1,9 +1,12 @@
|
|||||||
|
AM_CFLAGS = $(X_CFLAGS)
|
||||||
|
|
||||||
bin_PROGRAMS = \
|
bin_PROGRAMS = \
|
||||||
xrdp-genkeymap
|
xrdp-genkeymap
|
||||||
|
|
||||||
xrdp_genkeymap_SOURCES = genkeymap.c evdev-map.c
|
xrdp_genkeymap_SOURCES = genkeymap.c evdev-map.c
|
||||||
|
|
||||||
|
xrdp_genkeymap_LDFLAGS = \
|
||||||
|
$(X_LIBS)
|
||||||
|
|
||||||
xrdp_genkeymap_LDADD = \
|
xrdp_genkeymap_LDADD = \
|
||||||
-L/usr/X11R6/lib \
|
$(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS)
|
||||||
-lX11
|
|
||||||
|
Loading…
Reference in new issue