~strycore/ubuntu/vivid/gnome-weather/fix-for-1456400

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-06-14 12:48:12 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140614124812-dpklbhi0nul402ay
Tags: 3.12.1-0ubuntu1
* New upstream release.
  - Updates translations. LP: #1313416
* Add extra build-depends needed for tests, but don't enable tests yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
If you have problems, you may need to regenerate the build system entirely.
21
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
22
 
23
 
# nls.m4 serial 5 (gettext-0.18)
24
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
25
 
dnl Inc.
26
 
dnl This file is free software; the Free Software Foundation
27
 
dnl gives unlimited permission to copy and/or distribute it,
28
 
dnl with or without modifications, as long as this notice is preserved.
29
 
dnl
30
 
dnl This file can can be used in projects which are not available under
31
 
dnl the GNU General Public License or the GNU Library General Public
32
 
dnl License but which still want to provide support for the GNU gettext
33
 
dnl functionality.
34
 
dnl Please note that the actual code of the GNU gettext library is covered
35
 
dnl by the GNU Library General Public License, and the rest of the GNU
36
 
dnl gettext package package is covered by the GNU General Public License.
37
 
dnl They are *not* in the public domain.
38
 
 
39
 
dnl Authors:
40
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
41
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
42
 
 
43
 
AC_PREREQ([2.50])
44
 
 
45
 
AC_DEFUN([AM_NLS],
46
 
[
47
 
  AC_MSG_CHECKING([whether NLS is requested])
48
 
  dnl Default is enabled NLS
49
 
  AC_ARG_ENABLE([nls],
50
 
    [  --disable-nls           do not use Native Language Support],
51
 
    USE_NLS=$enableval, USE_NLS=yes)
52
 
  AC_MSG_RESULT([$USE_NLS])
53
 
  AC_SUBST([USE_NLS])
54
 
])
55
 
 
56
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
57
 
# serial 1 (pkg-config-0.24)
58
 
59
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
60
 
#
61
 
# This program is free software; you can redistribute it and/or modify
62
 
# it under the terms of the GNU General Public License as published by
63
 
# the Free Software Foundation; either version 2 of the License, or
64
 
# (at your option) any later version.
65
 
#
66
 
# This program is distributed in the hope that it will be useful, but
67
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
68
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
69
 
# General Public License for more details.
70
 
#
71
 
# You should have received a copy of the GNU General Public License
72
 
# along with this program; if not, write to the Free Software
73
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
74
 
#
75
 
# As a special exception to the GNU General Public License, if you
76
 
# distribute this file as part of a program that contains a
77
 
# configuration script generated by Autoconf, you may include it under
78
 
# the same distribution terms that you use for the rest of that program.
79
 
 
80
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
81
 
# ----------------------------------
82
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
83
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
84
 
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
85
 
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
86
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
87
 
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
88
 
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
89
 
 
90
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
91
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
92
 
fi
93
 
if test -n "$PKG_CONFIG"; then
94
 
        _pkg_min_version=m4_default([$1], [0.9.0])
95
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
96
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
97
 
                AC_MSG_RESULT([yes])
98
 
        else
99
 
                AC_MSG_RESULT([no])
100
 
                PKG_CONFIG=""
101
 
        fi
102
 
fi[]dnl
103
 
])# PKG_PROG_PKG_CONFIG
104
 
 
105
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
106
 
#
107
 
# Check to see whether a particular set of modules exists.  Similar
108
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
109
 
#
110
 
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
111
 
# only at the first occurence in configure.ac, so if the first place
112
 
# it's called might be skipped (such as if it is within an "if", you
113
 
# have to call PKG_CHECK_EXISTS manually
114
 
# --------------------------------------------------------------
115
 
AC_DEFUN([PKG_CHECK_EXISTS],
116
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
117
 
if test -n "$PKG_CONFIG" && \
118
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
119
 
  m4_default([$2], [:])
120
 
m4_ifvaln([$3], [else
121
 
  $3])dnl
122
 
fi])
123
 
 
124
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
125
 
# ---------------------------------------------
126
 
m4_define([_PKG_CONFIG],
127
 
[if test -n "$$1"; then
128
 
    pkg_cv_[]$1="$$1"
129
 
 elif test -n "$PKG_CONFIG"; then
130
 
    PKG_CHECK_EXISTS([$3],
131
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
132
 
                      test "x$?" != "x0" && pkg_failed=yes ],
133
 
                     [pkg_failed=yes])
134
 
 else
135
 
    pkg_failed=untried
136
 
fi[]dnl
137
 
])# _PKG_CONFIG
138
 
 
139
 
# _PKG_SHORT_ERRORS_SUPPORTED
140
 
# -----------------------------
141
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
142
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
143
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
144
 
        _pkg_short_errors_supported=yes
145
 
else
146
 
        _pkg_short_errors_supported=no
147
 
fi[]dnl
148
 
])# _PKG_SHORT_ERRORS_SUPPORTED
149
 
 
150
 
 
151
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
152
 
# [ACTION-IF-NOT-FOUND])
153
 
#
154
 
#
155
 
# Note that if there is a possibility the first call to
156
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
157
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
158
 
#
159
 
#
160
 
# --------------------------------------------------------------
161
 
AC_DEFUN([PKG_CHECK_MODULES],
162
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
163
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
164
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
165
 
 
166
 
pkg_failed=no
167
 
AC_MSG_CHECKING([for $1])
168
 
 
169
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
170
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
171
 
 
172
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
173
 
and $1[]_LIBS to avoid the need to call pkg-config.
174
 
See the pkg-config man page for more details.])
175
 
 
176
 
if test $pkg_failed = yes; then
177
 
        AC_MSG_RESULT([no])
178
 
        _PKG_SHORT_ERRORS_SUPPORTED
179
 
        if test $_pkg_short_errors_supported = yes; then
180
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
181
 
        else 
182
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
183
 
        fi
184
 
        # Put the nasty error message in config.log where it belongs
185
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
186
 
 
187
 
        m4_default([$4], [AC_MSG_ERROR(
188
 
[Package requirements ($2) were not met:
189
 
 
190
 
$$1_PKG_ERRORS
191
 
 
192
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
193
 
installed software in a non-standard prefix.
194
 
 
195
 
_PKG_TEXT])[]dnl
196
 
        ])
197
 
elif test $pkg_failed = untried; then
198
 
        AC_MSG_RESULT([no])
199
 
        m4_default([$4], [AC_MSG_FAILURE(
200
 
[The pkg-config script could not be found or is too old.  Make sure it
201
 
is in your PATH or set the PKG_CONFIG environment variable to the full
202
 
path to pkg-config.
203
 
 
204
 
_PKG_TEXT
205
 
 
206
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
207
 
        ])
208
 
else
209
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
210
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
211
 
        AC_MSG_RESULT([yes])
212
 
        $3
213
 
fi[]dnl
214
 
])# PKG_CHECK_MODULES
215
 
 
216
 
 
217
 
# PKG_INSTALLDIR(DIRECTORY)
218
 
# -------------------------
219
 
# Substitutes the variable pkgconfigdir as the location where a module
220
 
# should install pkg-config .pc files. By default the directory is
221
 
# $libdir/pkgconfig, but the default can be changed by passing
222
 
# DIRECTORY. The user can override through the --with-pkgconfigdir
223
 
# parameter.
224
 
AC_DEFUN([PKG_INSTALLDIR],
225
 
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
226
 
m4_pushdef([pkg_description],
227
 
    [pkg-config installation directory @<:@]pkg_default[@:>@])
228
 
AC_ARG_WITH([pkgconfigdir],
229
 
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
230
 
    [with_pkgconfigdir=]pkg_default)
231
 
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
232
 
m4_popdef([pkg_default])
233
 
m4_popdef([pkg_description])
234
 
]) dnl PKG_INSTALLDIR
235
 
 
236
 
 
237
 
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
238
 
# -------------------------
239
 
# Substitutes the variable noarch_pkgconfigdir as the location where a
240
 
# module should install arch-independent pkg-config .pc files. By
241
 
# default the directory is $datadir/pkgconfig, but the default can be
242
 
# changed by passing DIRECTORY. The user can override through the
243
 
# --with-noarch-pkgconfigdir parameter.
244
 
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
245
 
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
246
 
m4_pushdef([pkg_description],
247
 
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
248
 
AC_ARG_WITH([noarch-pkgconfigdir],
249
 
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
250
 
    [with_noarch_pkgconfigdir=]pkg_default)
251
 
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
252
 
m4_popdef([pkg_default])
253
 
m4_popdef([pkg_description])
254
 
]) dnl PKG_NOARCH_INSTALLDIR
255
 
 
256
 
 
257
 
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
258
 
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
259
 
# -------------------------------------------
260
 
# Retrieves the value of the pkg-config variable for the given module.
261
 
AC_DEFUN([PKG_CHECK_VAR],
262
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
263
 
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
264
 
 
265
 
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
266
 
AS_VAR_COPY([$1], [pkg_cv_][$1])
267
 
 
268
 
AS_VAR_IF([$1], [""], [$5], [$4])dnl
269
 
])# PKG_CHECK_VAR
270
 
 
271
 
dnl GLIB_GSETTINGS
272
 
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
273
 
dnl the schema should be compiled
274
 
dnl
275
 
 
276
 
AC_DEFUN([GLIB_GSETTINGS],
277
 
[
278
 
  m4_pattern_allow([AM_V_GEN])
279
 
  AC_ARG_ENABLE(schemas-compile,
280
 
                AS_HELP_STRING([--disable-schemas-compile],
281
 
                               [Disable regeneration of gschemas.compiled on install]),
282
 
                [case ${enableval} in
283
 
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
284
 
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
285
 
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
286
 
                 esac])
287
 
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
288
 
  PKG_PROG_PKG_CONFIG([0.16])
289
 
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
290
 
  if test x$cross_compiling != xyes; then
291
 
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
292
 
  else
293
 
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
294
 
  fi
295
 
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
296
 
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
297
 
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
298
 
  else
299
 
    ifelse([$1],,[:],[$1])
300
 
  fi
301
 
 
302
 
  GSETTINGS_RULES='
303
 
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
304
 
 
305
 
mostlyclean-am: clean-gsettings-schemas
306
 
 
307
 
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
308
 
 
309
 
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
310
 
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
311
 
 
312
 
all-am: $(gsettings_SCHEMAS:.xml=.valid)
313
 
uninstall-am: uninstall-gsettings-schemas
314
 
install-data-am: install-gsettings-schemas
315
 
 
316
 
.SECONDARY: $(gsettings_SCHEMAS)
317
 
 
318
 
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
319
 
        @$(NORMAL_INSTALL)
320
 
        if test -n "$^"; then \
321
 
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
322
 
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
323
 
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
324
 
        fi
325
 
 
326
 
uninstall-gsettings-schemas:
327
 
        @$(NORMAL_UNINSTALL)
328
 
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
329
 
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
330
 
        test -n "$$files" || exit 0; \
331
 
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
332
 
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
333
 
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
334
 
 
335
 
clean-gsettings-schemas:
336
 
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
337
 
 
338
 
ifdef gsettings_ENUM_NAMESPACE
339
 
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
340
 
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
341
 
endif
342
 
'
343
 
  _GSETTINGS_SUBST(GSETTINGS_RULES)
344
 
])
345
 
 
346
 
dnl _GSETTINGS_SUBST(VARIABLE)
347
 
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
348
 
AC_DEFUN([_GSETTINGS_SUBST],
349
 
[
350
 
AC_SUBST([$1])
351
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
352
 
]
353
 
)
354
 
 
355
 
dnl -*- mode: autoconf -*-
356
 
dnl Copyright 2009 Johan Dahlin
357
 
dnl
358
 
dnl This file is free software; the author(s) gives unlimited
359
 
dnl permission to copy and/or distribute it, with or without
360
 
dnl modifications, as long as this notice is preserved.
361
 
dnl
362
 
 
363
 
# serial 1
364
 
 
365
 
m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
366
 
[
367
 
    AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
368
 
    AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
369
 
    AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
370
 
 
371
 
    dnl enable/disable introspection
372
 
    m4_if([$2], [require],
373
 
    [dnl
374
 
        enable_introspection=yes
375
 
    ],[dnl
376
 
        AC_ARG_ENABLE(introspection,
377
 
                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
378
 
                                 [Enable introspection for this build]),, 
379
 
                                 [enable_introspection=auto])
380
 
    ])dnl
381
 
 
382
 
    AC_MSG_CHECKING([for gobject-introspection])
383
 
 
384
 
    dnl presence/version checking
385
 
    AS_CASE([$enable_introspection],
386
 
    [no], [dnl
387
 
        found_introspection="no (disabled, use --enable-introspection to enable)"
388
 
    ],dnl
389
 
    [yes],[dnl
390
 
        PKG_CHECK_EXISTS([gobject-introspection-1.0],,
391
 
                         AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
392
 
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
393
 
                         found_introspection=yes,
394
 
                         AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
395
 
    ],dnl
396
 
    [auto],[dnl
397
 
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
398
 
        dnl Canonicalize enable_introspection
399
 
        enable_introspection=$found_introspection
400
 
    ],dnl
401
 
    [dnl        
402
 
        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
403
 
    ])dnl
404
 
 
405
 
    AC_MSG_RESULT([$found_introspection])
406
 
 
407
 
    INTROSPECTION_SCANNER=
408
 
    INTROSPECTION_COMPILER=
409
 
    INTROSPECTION_GENERATE=
410
 
    INTROSPECTION_GIRDIR=
411
 
    INTROSPECTION_TYPELIBDIR=
412
 
    if test "x$found_introspection" = "xyes"; then
413
 
       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
414
 
       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
415
 
       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
416
 
       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
417
 
       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
418
 
       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
419
 
       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
420
 
       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
421
 
    fi
422
 
    AC_SUBST(INTROSPECTION_SCANNER)
423
 
    AC_SUBST(INTROSPECTION_COMPILER)
424
 
    AC_SUBST(INTROSPECTION_GENERATE)
425
 
    AC_SUBST(INTROSPECTION_GIRDIR)
426
 
    AC_SUBST(INTROSPECTION_TYPELIBDIR)
427
 
    AC_SUBST(INTROSPECTION_CFLAGS)
428
 
    AC_SUBST(INTROSPECTION_LIBS)
429
 
    AC_SUBST(INTROSPECTION_MAKEFILE)
430
 
 
431
 
    AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
432
 
])
433
 
 
434
 
 
435
 
dnl Usage:
436
 
dnl   GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
437
 
 
438
 
AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
439
 
[
440
 
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
441
 
])
442
 
 
443
 
dnl Usage:
444
 
dnl   GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
445
 
 
446
 
 
447
 
AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
448
 
[
449
 
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
450
 
])
451
 
 
452
23
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
453
24
#
454
25
# This file is free software; the Free Software Foundation
1515
1086
AC_SUBST([am__untar])
1516
1087
]) # _AM_PROG_TAR
1517
1088
 
 
1089
# nls.m4 serial 5 (gettext-0.18)
 
1090
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
 
1091
dnl Inc.
 
1092
dnl This file is free software; the Free Software Foundation
 
1093
dnl gives unlimited permission to copy and/or distribute it,
 
1094
dnl with or without modifications, as long as this notice is preserved.
 
1095
dnl
 
1096
dnl This file can can be used in projects which are not available under
 
1097
dnl the GNU General Public License or the GNU Library General Public
 
1098
dnl License but which still want to provide support for the GNU gettext
 
1099
dnl functionality.
 
1100
dnl Please note that the actual code of the GNU gettext library is covered
 
1101
dnl by the GNU Library General Public License, and the rest of the GNU
 
1102
dnl gettext package package is covered by the GNU General Public License.
 
1103
dnl They are *not* in the public domain.
 
1104
 
 
1105
dnl Authors:
 
1106
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
1107
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
1108
 
 
1109
AC_PREREQ([2.50])
 
1110
 
 
1111
AC_DEFUN([AM_NLS],
 
1112
[
 
1113
  AC_MSG_CHECKING([whether NLS is requested])
 
1114
  dnl Default is enabled NLS
 
1115
  AC_ARG_ENABLE([nls],
 
1116
    [  --disable-nls           do not use Native Language Support],
 
1117
    USE_NLS=$enableval, USE_NLS=yes)
 
1118
  AC_MSG_RESULT([$USE_NLS])
 
1119
  AC_SUBST([USE_NLS])
 
1120
])
 
1121
 
 
1122
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
1123
# serial 1 (pkg-config-0.24)
 
1124
 
1125
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
1126
#
 
1127
# This program is free software; you can redistribute it and/or modify
 
1128
# it under the terms of the GNU General Public License as published by
 
1129
# the Free Software Foundation; either version 2 of the License, or
 
1130
# (at your option) any later version.
 
1131
#
 
1132
# This program is distributed in the hope that it will be useful, but
 
1133
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
1134
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
1135
# General Public License for more details.
 
1136
#
 
1137
# You should have received a copy of the GNU General Public License
 
1138
# along with this program; if not, write to the Free Software
 
1139
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
1140
#
 
1141
# As a special exception to the GNU General Public License, if you
 
1142
# distribute this file as part of a program that contains a
 
1143
# configuration script generated by Autoconf, you may include it under
 
1144
# the same distribution terms that you use for the rest of that program.
 
1145
 
 
1146
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
1147
# ----------------------------------
 
1148
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
1149
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
1150
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
1151
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
1152
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
1153
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
1154
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
1155
 
 
1156
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
1157
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
1158
fi
 
1159
if test -n "$PKG_CONFIG"; then
 
1160
        _pkg_min_version=m4_default([$1], [0.9.0])
 
1161
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
1162
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
1163
                AC_MSG_RESULT([yes])
 
1164
        else
 
1165
                AC_MSG_RESULT([no])
 
1166
                PKG_CONFIG=""
 
1167
        fi
 
1168
fi[]dnl
 
1169
])# PKG_PROG_PKG_CONFIG
 
1170
 
 
1171
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1172
#
 
1173
# Check to see whether a particular set of modules exists.  Similar
 
1174
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
1175
#
 
1176
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1177
# only at the first occurence in configure.ac, so if the first place
 
1178
# it's called might be skipped (such as if it is within an "if", you
 
1179
# have to call PKG_CHECK_EXISTS manually
 
1180
# --------------------------------------------------------------
 
1181
AC_DEFUN([PKG_CHECK_EXISTS],
 
1182
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1183
if test -n "$PKG_CONFIG" && \
 
1184
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
1185
  m4_default([$2], [:])
 
1186
m4_ifvaln([$3], [else
 
1187
  $3])dnl
 
1188
fi])
 
1189
 
 
1190
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
1191
# ---------------------------------------------
 
1192
m4_define([_PKG_CONFIG],
 
1193
[if test -n "$$1"; then
 
1194
    pkg_cv_[]$1="$$1"
 
1195
 elif test -n "$PKG_CONFIG"; then
 
1196
    PKG_CHECK_EXISTS([$3],
 
1197
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
1198
                      test "x$?" != "x0" && pkg_failed=yes ],
 
1199
                     [pkg_failed=yes])
 
1200
 else
 
1201
    pkg_failed=untried
 
1202
fi[]dnl
 
1203
])# _PKG_CONFIG
 
1204
 
 
1205
# _PKG_SHORT_ERRORS_SUPPORTED
 
1206
# -----------------------------
 
1207
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
1208
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1209
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
1210
        _pkg_short_errors_supported=yes
 
1211
else
 
1212
        _pkg_short_errors_supported=no
 
1213
fi[]dnl
 
1214
])# _PKG_SHORT_ERRORS_SUPPORTED
 
1215
 
 
1216
 
 
1217
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
1218
# [ACTION-IF-NOT-FOUND])
 
1219
#
 
1220
#
 
1221
# Note that if there is a possibility the first call to
 
1222
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
1223
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
1224
#
 
1225
#
 
1226
# --------------------------------------------------------------
 
1227
AC_DEFUN([PKG_CHECK_MODULES],
 
1228
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1229
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
1230
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
1231
 
 
1232
pkg_failed=no
 
1233
AC_MSG_CHECKING([for $1])
 
1234
 
 
1235
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
1236
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
1237
 
 
1238
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
1239
and $1[]_LIBS to avoid the need to call pkg-config.
 
1240
See the pkg-config man page for more details.])
 
1241
 
 
1242
if test $pkg_failed = yes; then
 
1243
        AC_MSG_RESULT([no])
 
1244
        _PKG_SHORT_ERRORS_SUPPORTED
 
1245
        if test $_pkg_short_errors_supported = yes; then
 
1246
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
 
1247
        else 
 
1248
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
 
1249
        fi
 
1250
        # Put the nasty error message in config.log where it belongs
 
1251
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
1252
 
 
1253
        m4_default([$4], [AC_MSG_ERROR(
 
1254
[Package requirements ($2) were not met:
 
1255
 
 
1256
$$1_PKG_ERRORS
 
1257
 
 
1258
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
1259
installed software in a non-standard prefix.
 
1260
 
 
1261
_PKG_TEXT])[]dnl
 
1262
        ])
 
1263
elif test $pkg_failed = untried; then
 
1264
        AC_MSG_RESULT([no])
 
1265
        m4_default([$4], [AC_MSG_FAILURE(
 
1266
[The pkg-config script could not be found or is too old.  Make sure it
 
1267
is in your PATH or set the PKG_CONFIG environment variable to the full
 
1268
path to pkg-config.
 
1269
 
 
1270
_PKG_TEXT
 
1271
 
 
1272
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
1273
        ])
 
1274
else
 
1275
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
1276
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
1277
        AC_MSG_RESULT([yes])
 
1278
        $3
 
1279
fi[]dnl
 
1280
])# PKG_CHECK_MODULES
 
1281
 
 
1282
 
 
1283
# PKG_INSTALLDIR(DIRECTORY)
 
1284
# -------------------------
 
1285
# Substitutes the variable pkgconfigdir as the location where a module
 
1286
# should install pkg-config .pc files. By default the directory is
 
1287
# $libdir/pkgconfig, but the default can be changed by passing
 
1288
# DIRECTORY. The user can override through the --with-pkgconfigdir
 
1289
# parameter.
 
1290
AC_DEFUN([PKG_INSTALLDIR],
 
1291
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 
1292
m4_pushdef([pkg_description],
 
1293
    [pkg-config installation directory @<:@]pkg_default[@:>@])
 
1294
AC_ARG_WITH([pkgconfigdir],
 
1295
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 
1296
    [with_pkgconfigdir=]pkg_default)
 
1297
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 
1298
m4_popdef([pkg_default])
 
1299
m4_popdef([pkg_description])
 
1300
]) dnl PKG_INSTALLDIR
 
1301
 
 
1302
 
 
1303
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 
1304
# -------------------------
 
1305
# Substitutes the variable noarch_pkgconfigdir as the location where a
 
1306
# module should install arch-independent pkg-config .pc files. By
 
1307
# default the directory is $datadir/pkgconfig, but the default can be
 
1308
# changed by passing DIRECTORY. The user can override through the
 
1309
# --with-noarch-pkgconfigdir parameter.
 
1310
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 
1311
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 
1312
m4_pushdef([pkg_description],
 
1313
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 
1314
AC_ARG_WITH([noarch-pkgconfigdir],
 
1315
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 
1316
    [with_noarch_pkgconfigdir=]pkg_default)
 
1317
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 
1318
m4_popdef([pkg_default])
 
1319
m4_popdef([pkg_description])
 
1320
]) dnl PKG_NOARCH_INSTALLDIR
 
1321
 
 
1322
 
 
1323
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 
1324
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1325
# -------------------------------------------
 
1326
# Retrieves the value of the pkg-config variable for the given module.
 
1327
AC_DEFUN([PKG_CHECK_VAR],
 
1328
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1329
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 
1330
 
 
1331
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
 
1332
AS_VAR_COPY([$1], [pkg_cv_][$1])
 
1333
 
 
1334
AS_VAR_IF([$1], [""], [$5], [$4])dnl
 
1335
])# PKG_CHECK_VAR
 
1336
 
 
1337
dnl GLIB_GSETTINGS
 
1338
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
 
1339
dnl the schema should be compiled
 
1340
dnl
 
1341
 
 
1342
AC_DEFUN([GLIB_GSETTINGS],
 
1343
[
 
1344
  m4_pattern_allow([AM_V_GEN])
 
1345
  AC_ARG_ENABLE(schemas-compile,
 
1346
                AS_HELP_STRING([--disable-schemas-compile],
 
1347
                               [Disable regeneration of gschemas.compiled on install]),
 
1348
                [case ${enableval} in
 
1349
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
1350
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
1351
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
 
1352
                 esac])
 
1353
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
 
1354
  PKG_PROG_PKG_CONFIG([0.16])
 
1355
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
 
1356
  if test x$cross_compiling != xyes; then
 
1357
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
1358
  else
 
1359
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
 
1360
  fi
 
1361
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
 
1362
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
1363
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
 
1364
  else
 
1365
    ifelse([$1],,[:],[$1])
 
1366
  fi
 
1367
 
 
1368
  GSETTINGS_RULES='
 
1369
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
1370
 
 
1371
mostlyclean-am: clean-gsettings-schemas
 
1372
 
 
1373
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
1374
 
 
1375
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
1376
        $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@
 
1377
 
 
1378
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
1379
uninstall-am: uninstall-gsettings-schemas
 
1380
install-data-am: install-gsettings-schemas
 
1381
 
 
1382
.SECONDARY: $(gsettings_SCHEMAS)
 
1383
 
 
1384
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
 
1385
        @$(NORMAL_INSTALL)
 
1386
        if test -n "$^"; then \
 
1387
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
1388
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
1389
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
1390
        fi
 
1391
 
 
1392
uninstall-gsettings-schemas:
 
1393
        @$(NORMAL_UNINSTALL)
 
1394
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
1395
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
1396
        test -n "$$files" || exit 0; \
 
1397
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
1398
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
1399
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
1400
 
 
1401
clean-gsettings-schemas:
 
1402
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
1403
 
 
1404
ifdef gsettings_ENUM_NAMESPACE
 
1405
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
1406
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
 
1407
endif
 
1408
'
 
1409
  _GSETTINGS_SUBST(GSETTINGS_RULES)
 
1410
])
 
1411
 
 
1412
dnl _GSETTINGS_SUBST(VARIABLE)
 
1413
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
1414
AC_DEFUN([_GSETTINGS_SUBST],
 
1415
[
 
1416
AC_SUBST([$1])
 
1417
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
1418
]
 
1419
)
 
1420
 
 
1421
dnl -*- mode: autoconf -*-
 
1422
dnl Copyright 2009 Johan Dahlin
 
1423
dnl
 
1424
dnl This file is free software; the author(s) gives unlimited
 
1425
dnl permission to copy and/or distribute it, with or without
 
1426
dnl modifications, as long as this notice is preserved.
 
1427
dnl
 
1428
 
 
1429
# serial 1
 
1430
 
 
1431
m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
 
1432
[
 
1433
    AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
1434
    AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
1435
    AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
 
1436
 
 
1437
    dnl enable/disable introspection
 
1438
    m4_if([$2], [require],
 
1439
    [dnl
 
1440
        enable_introspection=yes
 
1441
    ],[dnl
 
1442
        AC_ARG_ENABLE(introspection,
 
1443
                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
 
1444
                                 [Enable introspection for this build]),, 
 
1445
                                 [enable_introspection=auto])
 
1446
    ])dnl
 
1447
 
 
1448
    AC_MSG_CHECKING([for gobject-introspection])
 
1449
 
 
1450
    dnl presence/version checking
 
1451
    AS_CASE([$enable_introspection],
 
1452
    [no], [dnl
 
1453
        found_introspection="no (disabled, use --enable-introspection to enable)"
 
1454
    ],dnl
 
1455
    [yes],[dnl
 
1456
        PKG_CHECK_EXISTS([gobject-introspection-1.0],,
 
1457
                         AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
 
1458
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
 
1459
                         found_introspection=yes,
 
1460
                         AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
 
1461
    ],dnl
 
1462
    [auto],[dnl
 
1463
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
 
1464
        dnl Canonicalize enable_introspection
 
1465
        enable_introspection=$found_introspection
 
1466
    ],dnl
 
1467
    [dnl        
 
1468
        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
 
1469
    ])dnl
 
1470
 
 
1471
    AC_MSG_RESULT([$found_introspection])
 
1472
 
 
1473
    INTROSPECTION_SCANNER=
 
1474
    INTROSPECTION_COMPILER=
 
1475
    INTROSPECTION_GENERATE=
 
1476
    INTROSPECTION_GIRDIR=
 
1477
    INTROSPECTION_TYPELIBDIR=
 
1478
    if test "x$found_introspection" = "xyes"; then
 
1479
       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
 
1480
       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
 
1481
       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
 
1482
       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
 
1483
       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
 
1484
       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
 
1485
       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
 
1486
       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
 
1487
    fi
 
1488
    AC_SUBST(INTROSPECTION_SCANNER)
 
1489
    AC_SUBST(INTROSPECTION_COMPILER)
 
1490
    AC_SUBST(INTROSPECTION_GENERATE)
 
1491
    AC_SUBST(INTROSPECTION_GIRDIR)
 
1492
    AC_SUBST(INTROSPECTION_TYPELIBDIR)
 
1493
    AC_SUBST(INTROSPECTION_CFLAGS)
 
1494
    AC_SUBST(INTROSPECTION_LIBS)
 
1495
    AC_SUBST(INTROSPECTION_MAKEFILE)
 
1496
 
 
1497
    AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
 
1498
])
 
1499
 
 
1500
 
 
1501
dnl Usage:
 
1502
dnl   GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
 
1503
 
 
1504
AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
 
1505
[
 
1506
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
 
1507
])
 
1508
 
 
1509
dnl Usage:
 
1510
dnl   GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
 
1511
 
 
1512
 
 
1513
AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
 
1514
[
 
1515
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
 
1516
])
 
1517
 
1518
1518
m4_include([libgd/libgd.m4])
 
1519
m4_include([m4/glibtests.m4])
1519
1520
m4_include([m4/intltool.m4])
1520
1521
m4_include([m4/libtool.m4])
1521
1522
m4_include([m4/ltoptions.m4])