-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
50 lines (38 loc) · 1.11 KB
/
configure.ac
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
42
43
44
45
46
47
48
49
50
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([Window Maker Volume Manager],[2.0.1],[[email protected]],[wmvolman])
AC_CONFIG_SRCDIR([src])
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
AC_CONFIG_HEADERS([config.h])
AC_GNU_SOURCE
AC_PROG_CC
AM_PROG_CC_C_O
AC_HEADER_STDC
PKG_CHECK_MODULES([X],[x11])
AC_SUBST([X_CFLAGS])
AC_SUBST([X_LIBS])
AC_CHECK_LIB([dockapp],[DAMakeShapedPixmapFromFile],,AC_MSG_ERROR([libdockapp >= 0.6.0 is required.]))
PKG_CHECK_MODULES([GLIB2],[glib-2.0 >= 2.31.13])
AC_SUBST([GLIB2_CFLAGS])
AC_SUBST([GLIB2_LIBS])
PKG_CHECK_MODULES([GIO],[gio-2.0 >= 2.31.13])
AC_SUBST([GIO_CFLAGS])
AC_SUBST([GIO_LIBS])
PKG_CHECK_MODULES([UDISKS],[udisks2 >= 2.0.0])
AC_SUBST([UDISKS_CFLAGS])
AC_SUBST([UDISKS_LIBS])
AC_ARG_ENABLE([Werror],
AS_HELP_STRING([--disable-Werror],[do no add -Wall -Werror to CFLAGS]),,[enable_Werror=yes])
AC_MSG_CHECKING([whether to enable -Werror])
if test "x$enable_Werror" = "xyes"; then
CFLAGS="$CFLAGS -Wall -Werror"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
AC_CONFIG_FILES([
Makefile
src/Makefile
icons/Makefile
])
AC_OUTPUT