BuildSystem: Improve detection of optionals libs

This commit is contained in:
Philippe Pepiot 2010-11-11 16:33:24 +01:00
parent 5a05594092
commit 7c9e560236

View File

@ -5,8 +5,9 @@ PROG= wmfs
MAN1= wmfs.1
.for lib in xrandr xinerama imlib2
HAVE_${lib:U}!= echo ${LIBS} | grep -q ${lib} && echo -DHAVE_${lib:U}
CFLAGS+= ${HAVE_${lib:U}}
.if !empty(LIBS:M${lib})
CFLAGS+= -DHAVE_${lib:U}
.endif
.endfor
CFLAGS_LIB!= pkg-config --cflags-only-I ${LIBS}