summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: b1e7d85edce470db4d49f0196098d1f65ded0364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
AC_INIT([sssd],
        m4_esyscmd([cat VERSION |head -n1 | tr -d '\n']),
        [sssd-devel@lists.fedorahosted.org])
AC_CONFIG_SRCDIR([BUILD.txt])
AC_CONFIG_AUX_DIR([build])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_INSTALL

AC_CONFIG_SUBDIRS([replace common server sss_client])

# If the VERSION file has a second line, we'll append it
# to the release tag when creating an RPM or SRPM
# This is intended for build systems to create snapshot
# RPMs. The format should be something like:
# .20090915gitf1bcde7
# and would result in an SRPM looking like:
# sssd-0.5.0-0.20090915gitf1bcde7.fc11.src.rpm
AC_SUBST([PRERELEASE_VERSION],
         m4_esyscmd([cat VERSION |tail --lines=+2 |head -n1 | tr -d '\n']))

AC_CONFIG_FILES([Makefile contrib/sssd.spec])
AC_OUTPUT