aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: a71ba3a6fce9efbbbe5de5a27186c8c50edc4147 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([lightdm-mini-greeter], [0.6.0], [http://github.com/prikhi])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([defines.h])

# Checks for programs.
AC_PROG_CC
AM_INIT_AUTOMAKE([subdir-objects])

# Checks for libraries.
PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.14)
PKG_CHECK_MODULES(LIGHTDM, liblightdm-gobject-1 >= 1.12)

# Checks for header files.
AC_CHECK_HEADERS([stdlib.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

# Check if liblightdm is v1.19.1 or below for debian builds
LDM_CHECK=$(pkg-config --max-version=1.19.1 liblightdm-gobject-1)
AS_IF([test $? = 0],
      [AC_DEFINE([LIGHTDM_1_19_1_LOWER], [], [Defined if liblightdm is version 1.19.1 or lower])]
      )

AC_CONFIG_FILES([Makefile])
AC_OUTPUT