~bratsche/xsplash/help-fix

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Cody Russell
  • Date: 2009-08-04 14:36:19 UTC
  • Revision ID: cody@beamish-20090804143619-pv5n1a1kge19x6xb
updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# shamelessly stolen from clutter-gtk
3
 
#
4
 
m4_define([giggity_major_version], [0])
5
 
m4_define([giggity_minor_version], [1])
6
 
m4_define([giggity_micro_version], [0])
7
 
 
8
 
m4_define([giggity_api_version],
9
 
          [giggity_major_version.giggity_minor_version])
10
 
m4_define([giggity_version],
11
 
          [giggity_major_version.giggity_minor_version.giggity_micro_version])
12
 
 
13
 
m4_define([giggity_interface_age], [0])
14
 
m4_define([giggity_binary_age],
15
 
          [m4_eval(100 * giggity_minor_version + giggity_micro_version)])
16
 
 
17
1
AC_PREREQ(2.59)
18
2
 
19
 
AC_INIT([giggity],
20
 
        [giggity_version],
21
 
        [https://bugs.launchpad.net/avani])
22
 
AC_CONFIG_SRCDIR([src/gtymessagedialog.h])
 
3
AC_INIT([xsplash],
 
4
        [0.1],
 
5
        [https://bugs.launchpad.net/xsplash])
 
6
AC_CONFIG_SRCDIR([src/xsplash.c])
23
7
AC_CONFIG_MACRO_DIR([build/autotools])
24
8
 
25
9
AM_CONFIG_HEADER([config.h])
26
10
 
27
11
AM_INIT_AUTOMAKE([1.9])
28
12
 
29
 
GIGGITY_MAJOR_VERSION=giggity_major_version
30
 
GIGGITY_MINOR_VERSION=giggity_minor_version
31
 
GIGGITY_MICRO_VERSION=giggity_micro_version
32
 
GIGGITY_VERSION=giggity_version
33
 
AC_SUBST(GIGGITY_MAJOR_VERSION)
34
 
AC_SUBST(GIGGITY_MINOR_VERSION)
35
 
AC_SUBST(GIGGITY_MICRO_VERSION)
36
 
AC_SUBST(GIGGITY_VERSION)
37
 
 
38
 
m4_define([lt_current],
39
 
          [m4_eval(100 * giggity_minor_version + giggity_micro_version - giggity_interface_age)])
40
 
m4_define([lt_revision], [giggity_interface_age])
41
 
m4_define([lt_age], [m4_eval(giggity_binary_age - giggity_interface_age)])
42
 
GIGGITY_LT_CURRENT=lt_current
43
 
GIGGITY_LT_REV=lt_revision
44
 
GIGGITY_LT_AGE=lt_age
45
 
GIGGITY_LT_VERSION="$GIGGITY_LT_CURRENT:$GIGGITY_LT_REV:$GIGGITY_LT_AGE"
46
 
GIGGITY_LT_LDFLAGS="-version-info $GIGGITY_LT_VERSION"
47
 
 
48
 
AC_SUBST(GIGGITY_LT_VERSION)
49
 
AC_SUBST(GIGGITY_LT_LDFLAGS)
50
 
 
51
13
dnl ===========================================================================
52
14
 
53
15
# Checks for programs
68
30
AC_FUNC_MMAP
69
31
AC_CHECK_FUNCS([memset munmap strcasecmp strdup])
70
32
 
71
 
PKG_CHECK_MODULES(CLUTTER, clutter-x11-0.9 >= 0.9.0)
72
 
AC_SUBST(CLUTTER_CFLAGS)
73
 
AC_SUBST(CLUTTER_LIBS)
74
 
 
75
 
PKG_CHECK_MODULES(CLUTTER_GTK, clutter-gtk-0.9 >= 0.9.0)
76
 
AC_SUBST(CLUTTER_GTK_CFLAGS)
77
 
AC_SUBST(CLUTTER_GTK_LIBS)
78
 
 
79
33
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.14)
80
34
AC_SUBST(GTK_CFLAGS)
81
35
AC_SUBST(GTK_LIBS)
88
42
AC_SUBST(GCC_FLAGS)
89
43
 
90
44
# use strict compiler flags only on development releases
91
 
m4_define([maintainer_flags_default], [m4_if(m4_eval(giggity_minor_version % 2), [1], [yes], [no])])
 
45
m4_define([maintainer_flags_default], [no])
92
46
AC_ARG_ENABLE([maintainer-flags],
93
47
              [AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes@:>@],
94
48
                              [Use strict compiler flags @<:@default=no@:>@])],
105
59
AC_SUBST(MAINTAINER_CFLAGS)
106
60
 
107
61
 
108
 
dnl = GTK Doc Check ===========================================================
109
 
 
110
 
GTK_DOC_CHECK([1.8])
111
 
 
112
62
dnl ===========================================================================
113
63
 
114
64
SHAVE_INIT([build/autotools], [enable])
120
70
  build/autotools/shave-libtool
121
71
  build/autotools/shave
122
72
  src/Makefile
123
 
  example/Makefile
124
 
  libgiggity.pc
125
73
])
126
74
 
127
75
AC_OUTPUT
128
76
 
129
77
echo ""
130
 
echo " libgiggity $VERSION"
 
78
echo " xsplash $VERSION"
131
79
echo " ==============================="
132
80
echo ""
133
81
echo " Prefix       : ${prefix}"
134
82
echo ""
135
 
echo " Documentation: ${enable_gtk_doc}"
136
 
echo ""