diff options
author | Adam Jackson <ajax@nwnk.net> | 2005-07-20 19:31:52 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2005-07-20 19:31:52 +0000 |
commit | fe29c745207c2076cd711a23d1dbae033a192143 (patch) | |
tree | 62f4b130007c30bb31940500c354b410ee5f0e1c | |
parent | 575ef4d780ef152a889ee475e4875923c5244589 (diff) |
Use a unique token for PKG_CHECK_MODULES. Otherwise, if you use a global
configure cache, you cache it, and the cached value is probably wrong.
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.ac | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am index 3d99d65..17a6350 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,8 +21,8 @@ bin_PROGRAMS = xclock -xclock_CFLAGS = $(DEP_CFLAGS) -xclock_LDADD = $(DEP_LIBS) +xclock_CFLAGS = $(XCLOCK_CFLAGS) +xclock_LDADD = $(XCLOCK_LIBS) xclock_SOURCES = \ Clock.c \ diff --git a/configure.ac b/configure.ac index 198e164..d19fa92 100644 --- a/configure.ac +++ b/configure.ac @@ -34,10 +34,10 @@ AC_PROG_INSTALL AC_CHECK_FUNCS([strlcpy]) dnl Required dependencies -PKG_CHECK_MODULES(X11, x11) +PKG_CHECK_MODULES(XCLOCK_X11, x11) XAW_CHECK_XPRINT_SUPPORT(XAW) -DEP_CFLAGS="$X11_CFLAGS $XAW_CFLAGS" -DEP_LIBS="$X11_LIBS $XAW_LIBS" +XCLOCK_CFLAGS="$XCLOCK_X11_CFLAGS $XAW_CFLAGS" +XCLOCK_LIBS="$XCLOCK_X11_LIBS $XAW_LIBS" dnl Optional dependencies AC_ARG_WITH(xft, AC_HELP_STRING([--with-xft],[Use Xft2 and Xrender for rendering (Default is YES)]),use_xft="$withval",use_xft="try") @@ -58,7 +58,7 @@ if test x$use_xkb != xno ; then AC_DEFINE([XKB],1,[Define to use XkbStdBell]) fi -AC_SUBST(DEP_CFLAGS) -AC_SUBST(DEP_LIBS) +AC_SUBST(XCLOCK_CFLAGS) +AC_SUBST(XCLOCK_LIBS) AC_OUTPUT([Makefile]) |