wmclock: Use defines to get language xpms instead of creating symlinks.

This commit is contained in:
Doug Torrance 2015-09-24 02:24:08 -04:00 committed by Carlos R. Mafra
parent 1332c07b8f
commit 81952635d5
2 changed files with 5 additions and 6 deletions

View file

@ -17,10 +17,9 @@ if test ! -d "${LangDir}"; then
AC_MSG_ERROR([Cannot find language directory '${LangDir}'.])
fi
echo "configuring for ${with_lang} day-of-week and month names..."
rm -f month.xpm weekday.xpm
ln -s "./${LangDir}/month.xpm" .
ln -s "./${LangDir}/weekday.xpm" .
AC_DEFINE_UNQUOTED(MONTH_XPM, ["${LangDir}/month.xpm"])
AC_DEFINE_UNQUOTED(WEEKDAY_XPM, ["${LangDir}/weekday.xpm"])
AC_MSG_NOTICE([configuring for ${with_lang} day-of-week and month names...])
PKG_CHECK_MODULES([x11], [x11])
PKG_CHECK_MODULES([xpm], [xpm])

View file

@ -109,8 +109,8 @@
#ifndef ONLY_SHAPED_WINDOW
# include "clk.xpm"
#endif /* !ONLY_SHAPED_WINDOW */
#include "month.xpm"
#include "weekday.xpm"
#include MONTH_XPM
#include WEEKDAY_XPM
#include "xpm/date.xpm"
#include "xpm/led.xpm"
#include "xpm/mask.xbm"