summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 17a902105b91085605994194dcd033e863b59c78 (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
36
37
38
39
40
41
AC_INIT([dctrl-tools], [2.22.2], [dctrl-tools-devel@lists.alioth.debian.org])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE([foreign subdir-objects dist-bzip2])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES])

AC_PROG_CC_C99
gl_EARLY
AC_USE_SYSTEM_EXTENSIONS
LT_INIT
gl_INIT

AC_CHECK_PROG([PO4A],[po4a],[po4a],[no])
AM_CONDITIONAL([HAVE_PO4A], [test "x$PO4A" != "xno"])

AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.1])

AC_ARG_ENABLE([werror],
    AS_HELP_STRING([--enable-werror], [treat warnings as errors]),
    [],
    [enable_werror=no])

AS_IF([test "x$enable_werror" != "xno"], [
  AC_SUBST([WERROR], [-Werror])
])


AC_SUBST([GREP_ALIASES], ["grep-status grep-available grep-aptavail grep-debtags"])

AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([
    Makefile
    po/Makefile.in
    gnulib/lib/Makefile
    gnulib/po/Makefile.in
    sync-available/sync-available
])

AC_OUTPUT