summaryrefslogtreecommitdiff
path: root/configure.ac
blob: d49e3616ba1bc051d2dd14cdcc1478925e07c605 (plain)
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
32
33
34
35
AC_INIT([preppie], [0.0.1])
AM_INIT_AUTOMAKE([silent-rules])

AC_SUBST(PREPPIE_API_VERSION, [1.0])

if test x"$PREPPIE_PROFILE_DIR" = x; then
  PREPPIE_PROFILE_DIR="\${pkglibdir}/profiles"
fi
AC_SUBST(PREPPIE_PROFILE_DIR)

AC_CONFIG_MACRO_DIR([m4])

AC_CONFIG_HEADERS([config.h])

AC_PROG_CC
AC_PROG_LIBTOOL

if test x"$GCC" = xyes; then
  CFLAGS="$CFLAGS -Wall -Werror"
fi

AC_SUBST(GLIB_PKG_DEPS, ['glib-2.0 >= 2.16'])

PKG_CHECK_MODULES([GLIB], [$GLIB_PKG_DEPS])

AC_CONFIG_FILES([
  Makefile
  data/Makefile
  doc/Makefile
  gen/Makefile
  preppie/Makefile
  preppie/preppie.pc
  tests/Makefile
])
AC_OUTPUT