You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.9 KiB
100 lines
2.9 KiB
11 years ago
|
dnl Process this file with autoconf to produce a configure script.
|
||
|
|
||
|
AC_INIT(lightdm-webkit2-greeter, 0.1.2)
|
||
|
AC_SUBST(THEME_DIR)
|
||
|
AC_CONFIG_HEADER(config.h)
|
||
|
|
||
|
LT_INIT()
|
||
|
|
||
|
AM_INIT_AUTOMAKE
|
||
|
AM_PROG_CC_C_O
|
||
|
AM_MAINTAINER_MODE
|
||
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
|
||
|
|
||
|
GNOME_COMPILE_WARNINGS(maximum)
|
||
|
|
||
|
dnl ###########################################################################
|
||
|
dnl Dependencies
|
||
|
dnl ###########################################################################
|
||
|
|
||
|
PKG_CHECK_MODULES(GREETER, [
|
||
|
liblightdm-gobject-1
|
||
|
gtk+-3.0
|
||
|
webkit2gtk-3.0
|
||
|
dbus-glib-1
|
||
|
])
|
||
|
|
||
|
PKG_CHECK_MODULES(WEB_EXTENSION, [webkit2gtk-3.0 >= 2.0.0])
|
||
|
AC_SUBST(WEB_EXTENSION_CFLAGS)
|
||
|
AC_SUBST(WEB_EXTENSION_LIBS)
|
||
|
|
||
|
dnl ###########################################################################
|
||
|
dnl Configurable values
|
||
|
dnl ###########################################################################
|
||
|
THEME_DIR="/usr/share/lightdm-webkit/themes/"
|
||
|
AC_ARG_WITH(theme-dir,
|
||
|
AS_HELP_STRING(--with-theme-dir=<path>,
|
||
|
Theme directory to use for webkit themes),
|
||
|
if test x$withval != x; then
|
||
|
THEME_DIR="$withval"
|
||
|
fi
|
||
|
)
|
||
|
AC_SUBST(THEME_DIR)
|
||
|
AC_DEFINE_UNQUOTED(THEME_DIR, "$THEME_DIR", Theme Dir)
|
||
|
|
||
|
CONFIG_DIR="/etc/lightdm/"
|
||
|
AC_ARG_WITH(config-dir,
|
||
|
AS_HELP_STRING(--with-config-dir=<path>,
|
||
|
Configuration directory of lightdm),
|
||
|
if test x$withval != x; then
|
||
|
CONFIG_DIR="$withval"
|
||
|
fi
|
||
|
)
|
||
|
AC_SUBST(CONFIG_DIR)
|
||
|
AC_DEFINE_UNQUOTED(CONFIG_DIR, "$CONFIG_DIR", Config Dir)
|
||
|
|
||
|
DESKTOP_DIR="/usr/share/xgreeters/"
|
||
|
AC_ARG_WITH(desktop-dir,
|
||
|
AS_HELP_STRING(--with-desktop-dir=<path>,
|
||
|
Desktop directory of lightdm),
|
||
|
if test x$withval != x; then
|
||
|
DESKTOP_DIR="$withval"
|
||
|
fi
|
||
|
)
|
||
|
AC_SUBST(DESKTOP_DIR)
|
||
|
AC_DEFINE_UNQUOTED(DESKTOP_DIR, "$DESKTOP_DIR", Desktop Dir)
|
||
|
|
||
|
dnl ###########################################################################
|
||
|
dnl Internationalization
|
||
|
dnl ###########################################################################
|
||
|
|
||
|
IT_PROG_INTLTOOL(0.35.0)
|
||
|
GETTEXT_PACKAGE=lightdm-webkit2-greeter
|
||
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package)
|
||
|
|
||
|
dnl ###########################################################################
|
||
|
dnl Files to generate
|
||
|
dnl ###########################################################################
|
||
|
|
||
|
AC_OUTPUT([
|
||
|
Makefile
|
||
|
data/Makefile
|
||
|
src/Makefile
|
||
|
po/Makefile.in
|
||
|
themes/Makefile
|
||
|
themes/webkit/Makefile
|
||
|
])
|
||
|
|
||
|
dnl ###########################################################################
|
||
|
dnl Summary
|
||
|
dnl ###########################################################################
|
||
|
|
||
|
echo "
|
||
|
Light Display Manager WebKit2 Greeter $VERSION
|
||
|
==========================================
|
||
|
|
||
|
prefix: $prefix
|
||
|
Theme directory: $THEME_DIR
|
||
|
Configuration directory: $CONFIG_DIR
|
||
|
"
|