~ubuntu-branches/ubuntu/quantal/colord/quantal-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Sjoerd Simons
  • Date: 2011-10-25 16:21:20 UTC
  • mto: (2.1.1 sid) (1.1.2)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111025162120-0aypjqn1zx9n6vgf
Tags: upstream-0.1.13
ImportĀ upstreamĀ versionĀ 0.1.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
[
29
29
  m4_pattern_allow([AM_V_GEN])
30
30
  AC_ARG_ENABLE(schemas-compile,
31
 
                AC_HELP_STRING([--disable-schemas-compile],
 
31
                AS_HELP_STRING([--disable-schemas-compile],
32
32
                               [Disable regeneration of gschemas.compiled on install]),
33
33
                [case ${enableval} in
34
34
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
103
103
]
104
104
)
105
105
 
 
106
dnl -*- mode: autoconf -*-
 
107
dnl Copyright 2009 Johan Dahlin
 
108
dnl
 
109
dnl This file is free software; the author(s) gives unlimited
 
110
dnl permission to copy and/or distribute it, with or without
 
111
dnl modifications, as long as this notice is preserved.
 
112
dnl
 
113
 
 
114
# serial 1
 
115
 
 
116
m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
 
117
[
 
118
    AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
119
    AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
120
    AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
 
121
 
 
122
    dnl enable/disable introspection
 
123
    m4_if([$2], [require],
 
124
    [dnl
 
125
        enable_introspection=yes
 
126
    ],[dnl
 
127
        AC_ARG_ENABLE(introspection,
 
128
                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
 
129
                                 [Enable introspection for this build]),, 
 
130
                                 [enable_introspection=auto])
 
131
    ])dnl
 
132
 
 
133
    AC_MSG_CHECKING([for gobject-introspection])
 
134
 
 
135
    dnl presence/version checking
 
136
    AS_CASE([$enable_introspection],
 
137
    [no], [dnl
 
138
        found_introspection="no (disabled, use --enable-introspection to enable)"
 
139
    ],dnl
 
140
    [yes],[dnl
 
141
        PKG_CHECK_EXISTS([gobject-introspection-1.0],,
 
142
                         AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
 
143
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
 
144
                         found_introspection=yes,
 
145
                         AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
 
146
    ],dnl
 
147
    [auto],[dnl
 
148
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
 
149
    ],dnl
 
150
    [dnl        
 
151
        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
 
152
    ])dnl
 
153
 
 
154
    AC_MSG_RESULT([$found_introspection])
 
155
 
 
156
    INTROSPECTION_SCANNER=
 
157
    INTROSPECTION_COMPILER=
 
158
    INTROSPECTION_GENERATE=
 
159
    INTROSPECTION_GIRDIR=
 
160
    INTROSPECTION_TYPELIBDIR=
 
161
    if test "x$found_introspection" = "xyes"; then
 
162
       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
 
163
       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
 
164
       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
 
165
       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
 
166
       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
 
167
       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
 
168
       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
 
169
       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
 
170
    fi
 
171
    AC_SUBST(INTROSPECTION_SCANNER)
 
172
    AC_SUBST(INTROSPECTION_COMPILER)
 
173
    AC_SUBST(INTROSPECTION_GENERATE)
 
174
    AC_SUBST(INTROSPECTION_GIRDIR)
 
175
    AC_SUBST(INTROSPECTION_TYPELIBDIR)
 
176
    AC_SUBST(INTROSPECTION_CFLAGS)
 
177
    AC_SUBST(INTROSPECTION_LIBS)
 
178
    AC_SUBST(INTROSPECTION_MAKEFILE)
 
179
 
 
180
    AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
 
181
])
 
182
 
 
183
 
 
184
dnl Usage:
 
185
dnl   GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
 
186
 
 
187
AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
 
188
[
 
189
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
 
190
])
 
191
 
 
192
dnl Usage:
 
193
dnl   GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
 
194
 
 
195
 
 
196
AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
 
197
[
 
198
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
 
199
])
 
200
 
106
201
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
107
202
# serial 1 (pkg-config-0.24)
108
203
1275
1370
m4_include([m4/iconv.m4])
1276
1371
m4_include([m4/intlmacosx.m4])
1277
1372
m4_include([m4/intltool.m4])
1278
 
m4_include([m4/introspection.m4])
1279
1373
m4_include([m4/lib-ld.m4])
1280
1374
m4_include([m4/lib-link.m4])
1281
1375
m4_include([m4/lib-prefix.m4])