forked from libview/libview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
97 lines (77 loc) · 2.37 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
AC_INIT(libview, 0.7.0, [email protected])
AC_PREREQ(2.50)
AC_CONFIG_SRCDIR(config.h.in)
AC_COPYRIGHT([Copyright 2005-2011 VMware, Inc.])
dnl ################################################################
dnl # libtool versioning
dnl ################################################################
dnl #
dnl # +1 : 0 : +1 == new interface that does not break old one.
dnl # +1 : 0 : ? == removed an interface. Breaks old apps.
dnl # ? : +1 : ? == internal changes that doesn't break anything.
dnl #
dnl # CURRENT : REVISION : AGE
dnl #
LT_CURRENT=7
LT_REVISION=0
LT_AGE=4
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
dnl ################################################################
dnl # Initialize automake
dnl ################################################################
VERSION=0.7.0
PACKAGE=libview
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
dnl ################################################################
dnl # Specify a header configuration file
dnl ################################################################
AM_CONFIG_HEADER(config.h)
dnl ################################################################
dnl # Check for some standard stuff.
dnl ################################################################
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_LN_S
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AC_C_CONST
AC_TYPE_SIZE_T
AC_EXEEXT
PKG_CHECK_MODULES(VIEW, [gtk+-2.0 >= 2.4.0, gtkmm-2.4])
AC_SUBST(VIEW_CFLAGS)
AC_SUBST(VIEW_LIBS)
dnl # Use wall if we have GCC
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall"
fi
AC_ARG_ENABLE(deprecated, [ --enable-deprecated compile with deprecated API usage],,enable_deprecated=yes)
if test "$enable_deprecated" = no; then
DEBUG_CFLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DATK_DISABLED_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
fi
AC_SUBST(CFLAGS)
AC_SUBST(DEBUG_CFLAGS)
dnl ################################################################
dnl # Output the Makefiles
dnl ################################################################
AC_CONFIG_FILES([
Doxyfile
Makefile
libview.pc
docs/Makefile
docs/html/Makefile
libview/Makefile
scripts/Makefile
tests/Makefile
])
AC_OUTPUT
echo
echo $PACKAGE v$VERSION
echo
echo "Now type make to compile"
echo "Then su to root and type: make install"
echo