BuildSystem: set HAVE_IMLIB instead of HAVE_IMLIB

This commit is contained in:
Philippe Pepiot 2010-11-12 18:14:31 +01:00
parent f6ad74273c
commit 01bd4cc265
2 changed files with 6 additions and 2 deletions

View File

@ -4,12 +4,16 @@
PROG= wmfs
MAN1= wmfs.1
.for lib in xrandr xinerama imlib2
.for lib in xrandr xinerama
.if !empty(LIBS:M${lib})
CFLAGS+= -DHAVE_${lib:U}
.endif
.endfor
.if !empty(LIBS:Mimlib2)
CFLAGS+= -DHAVE_IMLIB
.endif
.if !defined(CFLAGS_LIBS)
CFLAGS_LIBS!= pkg-config --cflags-only-I ${LIBS}
.endif

View File

@ -12,7 +12,7 @@ CFLAGS+= -DHAVE_XINERAMA
endif
ifneq ($(findstring imlib2, ${LIBS}),)
CFLAGS+= -DHAVE_IMLIB2
CFLAGS+= -DHAVE_IMLIB
endif
ifndef CFLAGS_LIBS