wmframepic: Use pkg-config to check for libraries.

This commit is contained in:
Doug Torrance 2017-08-20 10:36:29 -04:00 committed by Carlos R. Mafra
parent 7a9d0f168c
commit 04bddc625f
2 changed files with 5 additions and 5 deletions

View file

@ -3,6 +3,9 @@ AC_CONFIG_SRCDIR([src/main.c])
AM_INIT_AUTOMAKE
AC_PROG_CC
PKG_CHECK_MODULES([Xlib], [x11])
PKG_CHECK_MODULES([libXpm], [xpm])
PKG_CHECK_MODULES([argtable], [argtable2])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT

View file

@ -11,9 +11,6 @@ draw_text.c \
arg_parser.c \
arg_parser.h
wmframepic_CPPFLAGS =
wmframepic_CFLAGS = $(X_CFLAGS)
wmframepic_LDFLAGS = $(X_LIBS)
wmframepic_LDADD = $(X_PRE_LIBS) -lX11 -lXpm -largtable2 $(X_EXTRA_LIBS)
AM_CFLAGS = $(Xlib_CFLAGS) $(libXpm_CFLAGS) $(argtable_CFLAGS)
LIBS += $(Xlib_LIBS) $(libXpm_LIBS) $(argtable_LIBS)