Mercurial > dwindows
annotate aclocal.m4 @ 2761:904c3d1d0ec4
Linux: Update the debian packaging with the latest information.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 06 Jan 2022 13:44:28 +0000 |
parents | c677d728e143 |
children | 83c17a84bc27 |
rev | line source |
---|---|
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1 # generated automatically by aclocal 1.16.2 -*- Autoconf -*- |
3 | 2 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3 # Copyright (C) 1996-2020 Free Software Foundation, Inc. |
3 | 4 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
5 # This file is free software; the Free Software Foundation |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
6 # gives unlimited permission to copy and/or distribute it, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
7 # with or without modifications, as long as this notice is preserved. |
3 | 8 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
9 # This program is distributed in the hope that it will be useful, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
12 # PARTICULAR PURPOSE. |
3 | 13 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
15 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
16 # serial 11 (pkg-config-0.29.1) |
3 | 17 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
18 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
19 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
20 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
21 dnl This program is free software; you can redistribute it and/or modify |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
22 dnl it under the terms of the GNU General Public License as published by |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
23 dnl the Free Software Foundation; either version 2 of the License, or |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
24 dnl (at your option) any later version. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
25 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
26 dnl This program is distributed in the hope that it will be useful, but |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
27 dnl WITHOUT ANY WARRANTY; without even the implied warranty of |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
28 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
29 dnl General Public License for more details. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
30 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
31 dnl You should have received a copy of the GNU General Public License |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
32 dnl along with this program; if not, write to the Free Software |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
33 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
34 dnl 02111-1307, USA. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
35 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
36 dnl As a special exception to the GNU General Public License, if you |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
37 dnl distribute this file as part of a program that contains a |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
38 dnl configuration script generated by Autoconf, you may include it under |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
39 dnl the same distribution terms that you use for the rest of that |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
40 dnl program. |
3 | 41 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
42 dnl PKG_PREREQ(MIN-VERSION) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
43 dnl ----------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
44 dnl Since: 0.29 |
3 | 45 dnl |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
46 dnl Verify that the version of the pkg-config macros are at least |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
47 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
48 dnl installed version of pkg-config, this checks the developer's version |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
49 dnl of pkg.m4 when generating configure. |
3 | 50 dnl |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
51 dnl To ensure that this macro is defined, also add: |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
52 dnl m4_ifndef([PKG_PREREQ], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
53 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
54 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
55 dnl See the "Since" comment for each macro you use to see what version |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
56 dnl of the macros you require. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
57 m4_defun([PKG_PREREQ], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
58 [m4_define([PKG_MACROS_VERSION], [0.29.1]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
59 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
60 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
61 ])dnl PKG_PREREQ |
3 | 62 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
63 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
64 dnl ---------------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
65 dnl Since: 0.16 |
3 | 66 dnl |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
67 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
68 dnl first found in the path. Checks that the version of pkg-config found |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
69 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
70 dnl used since that's the first version where most current features of |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
71 dnl pkg-config existed. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
72 AC_DEFUN([PKG_PROG_PKG_CONFIG], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
73 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
74 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
75 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
76 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
77 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
78 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) |
3 | 79 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
80 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
81 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
82 fi |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
83 if test -n "$PKG_CONFIG"; then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
84 _pkg_min_version=m4_default([$1], [0.9.0]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
85 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
86 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
87 AC_MSG_RESULT([yes]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
88 else |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
89 AC_MSG_RESULT([no]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
90 PKG_CONFIG="" |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
91 fi |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
92 fi[]dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
93 ])dnl PKG_PROG_PKG_CONFIG |
3 | 94 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
95 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
96 dnl ------------------------------------------------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
97 dnl Since: 0.18 |
3 | 98 dnl |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
99 dnl Check to see whether a particular set of modules exists. Similar to |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
100 dnl PKG_CHECK_MODULES(), but does not set variables or print errors. |
3 | 101 dnl |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
102 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
103 dnl only at the first occurence in configure.ac, so if the first place |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
104 dnl it's called might be skipped (such as if it is within an "if", you |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
105 dnl have to call PKG_CHECK_EXISTS manually |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
106 AC_DEFUN([PKG_CHECK_EXISTS], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
107 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
108 if test -n "$PKG_CONFIG" && \ |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
109 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
110 m4_default([$2], [:]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
111 m4_ifvaln([$3], [else |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
112 $3])dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
113 fi]) |
3 | 114 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
115 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
116 dnl --------------------------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
117 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
118 dnl pkg_failed based on the result. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
119 m4_define([_PKG_CONFIG], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
120 [if test -n "$$1"; then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
121 pkg_cv_[]$1="$$1" |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
122 elif test -n "$PKG_CONFIG"; then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
123 PKG_CHECK_EXISTS([$3], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
124 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
125 test "x$?" != "x0" && pkg_failed=yes ], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
126 [pkg_failed=yes]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
127 else |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
128 pkg_failed=untried |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
129 fi[]dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
130 ])dnl _PKG_CONFIG |
3 | 131 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
132 dnl _PKG_SHORT_ERRORS_SUPPORTED |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
133 dnl --------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
134 dnl Internal check to see if pkg-config supports short errors. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
135 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
136 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
138 _pkg_short_errors_supported=yes |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
139 else |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
140 _pkg_short_errors_supported=no |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
141 fi[]dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
142 ])dnl _PKG_SHORT_ERRORS_SUPPORTED |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
143 |
3 | 144 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
145 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
146 dnl [ACTION-IF-NOT-FOUND]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
147 dnl -------------------------------------------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
148 dnl Since: 0.4.0 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
149 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
150 dnl Note that if there is a possibility the first call to |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
151 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
152 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
153 AC_DEFUN([PKG_CHECK_MODULES], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
154 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
155 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
156 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
157 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
158 pkg_failed=no |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
159 AC_MSG_CHECKING([for $1]) |
3 | 160 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
161 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
162 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
163 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
164 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
165 and $1[]_LIBS to avoid the need to call pkg-config. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
166 See the pkg-config man page for more details.]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
167 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
168 if test $pkg_failed = yes; then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
169 AC_MSG_RESULT([no]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
170 _PKG_SHORT_ERRORS_SUPPORTED |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
171 if test $_pkg_short_errors_supported = yes; then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
172 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
173 else |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
174 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
175 fi |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
176 # Put the nasty error message in config.log where it belongs |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
177 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
3 | 178 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
179 m4_default([$4], [AC_MSG_ERROR( |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
180 [Package requirements ($2) were not met: |
3 | 181 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
182 $$1_PKG_ERRORS |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
183 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
184 Consider adjusting the PKG_CONFIG_PATH environment variable if you |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
185 installed software in a non-standard prefix. |
3 | 186 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
187 _PKG_TEXT])[]dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
188 ]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
189 elif test $pkg_failed = untried; then |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
190 AC_MSG_RESULT([no]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
191 m4_default([$4], [AC_MSG_FAILURE( |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
192 [The pkg-config script could not be found or is too old. Make sure it |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
193 is in your PATH or set the PKG_CONFIG environment variable to the full |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
194 path to pkg-config. |
3 | 195 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
196 _PKG_TEXT |
3 | 197 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
198 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
199 ]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
200 else |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
201 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
202 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
203 AC_MSG_RESULT([yes]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
204 $3 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
205 fi[]dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
206 ])dnl PKG_CHECK_MODULES |
3 | 207 |
208 | |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
209 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
210 dnl [ACTION-IF-NOT-FOUND]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
211 dnl --------------------------------------------------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
212 dnl Since: 0.29 |
3 | 213 dnl |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
214 dnl Checks for existence of MODULES and gathers its build flags with |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
215 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
216 dnl and VARIABLE-PREFIX_LIBS from --libs. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
217 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
218 dnl Note that if there is a possibility the first call to |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
219 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
220 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
221 dnl configure.ac. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
222 AC_DEFUN([PKG_CHECK_MODULES_STATIC], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
223 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
224 _save_PKG_CONFIG=$PKG_CONFIG |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
225 PKG_CONFIG="$PKG_CONFIG --static" |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
226 PKG_CHECK_MODULES($@) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
227 PKG_CONFIG=$_save_PKG_CONFIG[]dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
228 ])dnl PKG_CHECK_MODULES_STATIC |
3 | 229 |
230 | |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
231 dnl PKG_INSTALLDIR([DIRECTORY]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
232 dnl ------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
233 dnl Since: 0.27 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
234 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
235 dnl Substitutes the variable pkgconfigdir as the location where a module |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
236 dnl should install pkg-config .pc files. By default the directory is |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
237 dnl $libdir/pkgconfig, but the default can be changed by passing |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
238 dnl DIRECTORY. The user can override through the --with-pkgconfigdir |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
239 dnl parameter. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
240 AC_DEFUN([PKG_INSTALLDIR], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
241 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
242 m4_pushdef([pkg_description], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
243 [pkg-config installation directory @<:@]pkg_default[@:>@]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
244 AC_ARG_WITH([pkgconfigdir], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
245 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
246 [with_pkgconfigdir=]pkg_default) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
247 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
248 m4_popdef([pkg_default]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
249 m4_popdef([pkg_description]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
250 ])dnl PKG_INSTALLDIR |
3 | 251 |
252 | |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
253 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
254 dnl -------------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
255 dnl Since: 0.27 |
3 | 256 dnl |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
257 dnl Substitutes the variable noarch_pkgconfigdir as the location where a |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
258 dnl module should install arch-independent pkg-config .pc files. By |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
259 dnl default the directory is $datadir/pkgconfig, but the default can be |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
260 dnl changed by passing DIRECTORY. The user can override through the |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
261 dnl --with-noarch-pkgconfigdir parameter. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
262 AC_DEFUN([PKG_NOARCH_INSTALLDIR], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
263 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
264 m4_pushdef([pkg_description], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
265 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
266 AC_ARG_WITH([noarch-pkgconfigdir], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
267 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
268 [with_noarch_pkgconfigdir=]pkg_default) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
269 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
270 m4_popdef([pkg_default]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
271 m4_popdef([pkg_description]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
272 ])dnl PKG_NOARCH_INSTALLDIR |
3 | 273 |
274 | |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
275 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
276 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
277 dnl ------------------------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
278 dnl Since: 0.28 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
279 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
280 dnl Retrieves the value of the pkg-config variable for the given module. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
281 AC_DEFUN([PKG_CHECK_VAR], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
282 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
283 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
284 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
285 _PKG_CONFIG([$1], [variable="][$3]["], [$2]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
286 AS_VAR_COPY([$1], [pkg_cv_][$1]) |
3 | 287 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
288 AS_VAR_IF([$1], [""], [$5], [$4])dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
289 ])dnl PKG_CHECK_VAR |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
290 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
291 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
292 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
293 dnl [DESCRIPTION], [DEFAULT]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
294 dnl ------------------------------------------ |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
295 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
296 dnl Prepare a "--with-" configure option using the lowercase |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
297 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
298 dnl PKG_CHECK_MODULES in a single macro. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
299 AC_DEFUN([PKG_WITH_MODULES], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
300 [ |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
301 m4_pushdef([with_arg], m4_tolower([$1])) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
302 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
303 m4_pushdef([description], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
304 [m4_default([$5], [build with ]with_arg[ support])]) |
3 | 305 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
306 m4_pushdef([def_arg], [m4_default([$6], [auto])]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
307 m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
308 m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) |
3 | 309 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
310 m4_case(def_arg, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
311 [yes],[m4_pushdef([with_without], [--without-]with_arg)], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
312 [m4_pushdef([with_without],[--with-]with_arg)]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
313 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
314 AC_ARG_WITH(with_arg, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
315 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
316 [AS_TR_SH([with_]with_arg)=def_arg]) |
3 | 317 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
318 AS_CASE([$AS_TR_SH([with_]with_arg)], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
319 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
320 [auto],[PKG_CHECK_MODULES([$1],[$2], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
321 [m4_n([def_action_if_found]) $3], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
322 [m4_n([def_action_if_not_found]) $4])]) |
3 | 323 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
324 m4_popdef([with_arg]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
325 m4_popdef([description]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
326 m4_popdef([def_arg]) |
3 | 327 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
328 ])dnl PKG_WITH_MODULES |
3 | 329 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
330 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
331 dnl [DESCRIPTION], [DEFAULT]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
332 dnl ----------------------------------------------- |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
333 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
334 dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
335 dnl check._[VARIABLE-PREFIX] is exported as make variable. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
336 AC_DEFUN([PKG_HAVE_WITH_MODULES], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
337 [ |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
338 PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) |
3 | 339 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
340 AM_CONDITIONAL([HAVE_][$1], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
341 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
342 ])dnl PKG_HAVE_WITH_MODULES |
3 | 343 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
344 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
345 dnl [DESCRIPTION], [DEFAULT]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
346 dnl ------------------------------------------------------ |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
347 dnl |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
348 dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
349 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
350 dnl and preprocessor variable. |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
351 AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
352 [ |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
353 PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) |
3 | 354 |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
355 AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
356 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
357 ])dnl PKG_HAVE_DEFINE_WITH_MODULES |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
358 |
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
359 m4_include([acinclude.m4]) |