2014-12-11 15:18:16 +00:00
|
|
|
AC_INIT([wmclock], [1.0.15], [wmaker-dev@lists.windowmaker.org])
|
2014-12-11 15:18:12 +00:00
|
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
|
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
|
|
|
AC_PROG_CC
|
2014-12-11 15:18:13 +00:00
|
|
|
|
|
|
|
define([langlist], esyscmd([ls -d lang.* | sed 's/lang.//']))
|
|
|
|
AC_ARG_WITH([lang],
|
|
|
|
AS_HELP_STRING([--with-lang],
|
|
|
|
[Configure wmclock to use day and month names for the specified
|
|
|
|
language. Defaults to 'english'. Choices are: ]
|
|
|
|
langlist),
|
|
|
|
[],
|
|
|
|
[with_lang=english])
|
|
|
|
|
|
|
|
LangDir="lang.${with_lang}"
|
|
|
|
if test ! -d "${LangDir}"; then
|
|
|
|
AC_MSG_ERROR([Cannot find language directory '${LangDir}'.])
|
|
|
|
fi
|
|
|
|
|
2015-09-24 06:24:08 +00:00
|
|
|
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...])
|
2014-12-11 15:18:13 +00:00
|
|
|
|
2014-12-11 15:18:12 +00:00
|
|
|
PKG_CHECK_MODULES([x11], [x11])
|
|
|
|
PKG_CHECK_MODULES([xpm], [xpm])
|
|
|
|
PKG_CHECK_MODULES([xext], [xext])
|
2014-12-11 15:18:14 +00:00
|
|
|
AC_CONFIG_FILES([Makefile wmclock.1])
|
2014-12-11 15:18:12 +00:00
|
|
|
AC_OUTPUT
|