mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2025-12-23 08:30:08 +01:00
This pam plugin never used GDBus because it transparently uses threads which do not work well with a lot of PAM applications. But even settling on the "still better to use than plain dbus library" dbus-glib wasn't without problems, as any use or initialisation of GIO sockets would modify signal handler for signals such as SIGPIPE (see gio/gsocket.c). Many years later, sd-bus is a more modern alternative to the bare dbus library with a better API. This includes: - Removing use of gboolean, guint, g_new0() and many glib string helpers - Simplifying debug logging - Marking user-facing messages to be translated
97 lines
2.7 KiB
Text
97 lines
2.7 KiB
Text
AC_INIT([fprintd], [1.90.0])
|
|
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip check-news])
|
|
AC_CONFIG_SRCDIR([src/main.c])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
# Enable silent build when available (Automake 1.11)
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
|
|
AC_PREREQ([2.50])
|
|
AC_PROG_LIBTOOL
|
|
AC_PROG_CC
|
|
AM_PROG_CC_C_O
|
|
|
|
GETTEXT_PACKAGE=fprintd
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define to the Gettext package name])
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
AM_GLIB_GNU_GETTEXT
|
|
IT_PROG_INTLTOOL([0.35.0])
|
|
|
|
PKG_CHECK_MODULES(FPRINT, [libfprint-2 >= 1.90.0])
|
|
AC_SUBST(FPRINT_LIBS)
|
|
AC_SUBST(FPRINT_CFLAGS)
|
|
|
|
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.56 dbus-glib-1)
|
|
AC_SUBST(GLIB_CFLAGS)
|
|
AC_SUBST(GLIB_LIBS)
|
|
|
|
PKG_CHECK_MODULES(PAM_MODULE, libsystemd)
|
|
AC_SUBST(PAM_MODULE_CFLAGS)
|
|
AC_SUBST(PAM_MODULE_LIBS)
|
|
|
|
PKG_CHECK_MODULES(DAEMON, glib-2.0 dbus-glib-1 gmodule-2.0 polkit-gobject-1 >= 0.91 gio-2.0)
|
|
AC_SUBST(DAEMON_LIBS)
|
|
AC_SUBST(DAEMON_CFLAGS)
|
|
|
|
AC_ARG_ENABLE(pam, AC_HELP_STRING([--enable-pam],[Build the fprintd PAM module]), enable_pam="$enableval", enable_pam=yes)
|
|
has_pam=no
|
|
if test x$enable_pam = xyes; then
|
|
has_pam=yes
|
|
AC_CHECK_HEADER([security/pam_modules.h], [has_pam=yes] , [has_pam=no])
|
|
if test x$has_pam = xyes; then
|
|
has_pam=no
|
|
AC_CHECK_LIB(pam, pam_start, [PAM_LIBS="-lpam"
|
|
has_pam=yes],
|
|
has_pam=no)
|
|
fi
|
|
AC_SUBST(PAM_LIBS)
|
|
fi
|
|
AM_CONDITIONAL(HAVE_PAM, test "x$has_pam" = "xyes")
|
|
|
|
AC_MSG_CHECKING(for PAM headers and library)
|
|
AC_MSG_RESULT([$has_pam])
|
|
|
|
|
|
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
|
|
AC_CHECK_PROG([XSLTPROC], [xsltproc], [xsltproc])
|
|
AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man])
|
|
AM_CONDITIONAL(BUILD_MAN, test x"$POD2MAN" != "x")
|
|
|
|
GTK_DOC_CHECK([1.3])
|
|
|
|
AC_ARG_WITH([systemdsystemunitdir],
|
|
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
|
[],
|
|
[with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
|
AS_IF([test "x$with_systemdsystemunitdir" != "xno"], [
|
|
# StateDirectory was introduced in systemd 235
|
|
PKG_CHECK_MODULES(SYSTEMD, systemd >= 235)
|
|
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
|
])
|
|
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$systemdsystemunitdir"])
|
|
|
|
AS_AC_EXPAND(DATADIR, $datadir)
|
|
|
|
DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
|
|
AC_SUBST(DBUS_SERVICES_DIR)
|
|
AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for DBUS is])
|
|
|
|
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
|
|
AC_DEFINE_UNQUOTED(SYSCONFDIR, "$SYSCONFDIR", [Where the configuration file will be located])
|
|
|
|
GNOME_COMPILE_WARNINGS
|
|
|
|
AC_OUTPUT([
|
|
Makefile
|
|
src/Makefile
|
|
data/Makefile
|
|
utils/Makefile
|
|
pam/Makefile
|
|
doc/Makefile
|
|
doc/version.xml
|
|
doc/dbus/Makefile
|
|
tests/Makefile
|
|
tests/pam/Makefile
|
|
tests/pam/services/Makefile
|
|
po/Makefile.in
|
|
])
|