| OLD | NEW |
| 1 # generated automatically by aclocal 1.15 -*- Autoconf -*- | 1 # generated automatically by aclocal 1.15 -*- Autoconf -*- |
| 2 | 2 |
| 3 # Copyright (C) 1996-2014 Free Software Foundation, Inc. | 3 # Copyright (C) 1996-2014 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 # This file is free software; the Free Software Foundation | 5 # This file is free software; the Free Software Foundation |
| 6 # gives unlimited permission to copy and/or distribute it, | 6 # gives unlimited permission to copy and/or distribute it, |
| 7 # with or without modifications, as long as this notice is preserved. | 7 # with or without modifications, as long as this notice is preserved. |
| 8 | 8 |
| 9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
| 10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | 10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
| 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 12 # PARTICULAR PURPOSE. | 12 # PARTICULAR PURPOSE. |
| 13 | 13 |
| 14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun
([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | 14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun
([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) |
| 15 m4_ifndef([AC_AUTOCONF_VERSION], | 15 m4_ifndef([AC_AUTOCONF_VERSION], |
| 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
| 18 [m4_warning([this file was generated for autoconf 2.69. | 18 [m4_warning([this file was generated for autoconf 2.69. |
| 19 You have another version of autoconf. It may work, but is not guaranteed to. | 19 You have another version of autoconf. It may work, but is not guaranteed to. |
| 20 If you have problems, you may need to regenerate the build system entirely. | 20 If you have problems, you may need to regenerate the build system entirely. |
| 21 To do so, use the procedure documented by the package, typically 'autoreconf'.])
]) | 21 To do so, use the procedure documented by the package, typically 'autoreconf'.])
]) |
| 22 | 22 |
| 23 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | 23 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
| 24 # serial 1 (pkg-config-0.24) | 24 dnl serial 11 (pkg-config-0.29.1) |
| 25 # | 25 dnl |
| 26 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | 26 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
| 27 # | 27 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> |
| 28 # This program is free software; you can redistribute it and/or modify | 28 dnl |
| 29 # it under the terms of the GNU General Public License as published by | 29 dnl This program is free software; you can redistribute it and/or modify |
| 30 # the Free Software Foundation; either version 2 of the License, or | 30 dnl it under the terms of the GNU General Public License as published by |
| 31 # (at your option) any later version. | 31 dnl the Free Software Foundation; either version 2 of the License, or |
| 32 # | 32 dnl (at your option) any later version. |
| 33 # This program is distributed in the hope that it will be useful, but | 33 dnl |
| 34 # WITHOUT ANY WARRANTY; without even the implied warranty of | 34 dnl This program is distributed in the hope that it will be useful, but |
| 35 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 35 dnl WITHOUT ANY WARRANTY; without even the implied warranty of |
| 36 # General Public License for more details. | 36 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 37 # | 37 dnl General Public License for more details. |
| 38 # You should have received a copy of the GNU General Public License | 38 dnl |
| 39 # along with this program; if not, write to the Free Software | 39 dnl You should have received a copy of the GNU General Public License |
| 40 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 40 dnl along with this program; if not, write to the Free Software |
| 41 # | 41 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 42 # As a special exception to the GNU General Public License, if you | 42 dnl 02111-1307, USA. |
| 43 # distribute this file as part of a program that contains a | 43 dnl |
| 44 # configuration script generated by Autoconf, you may include it under | 44 dnl As a special exception to the GNU General Public License, if you |
| 45 # the same distribution terms that you use for the rest of that program. | 45 dnl distribute this file as part of a program that contains a |
| 46 dnl configuration script generated by Autoconf, you may include it under |
| 47 dnl the same distribution terms that you use for the rest of that |
| 48 dnl program. |
| 46 | 49 |
| 47 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) | 50 dnl PKG_PREREQ(MIN-VERSION) |
| 48 # ---------------------------------- | 51 dnl ----------------------- |
| 52 dnl Since: 0.29 |
| 53 dnl |
| 54 dnl Verify that the version of the pkg-config macros are at least |
| 55 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's |
| 56 dnl installed version of pkg-config, this checks the developer's version |
| 57 dnl of pkg.m4 when generating configure. |
| 58 dnl |
| 59 dnl To ensure that this macro is defined, also add: |
| 60 dnl m4_ifndef([PKG_PREREQ], |
| 61 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf
/autogen])]) |
| 62 dnl |
| 63 dnl See the "Since" comment for each macro you use to see what version |
| 64 dnl of the macros you require. |
| 65 m4_defun([PKG_PREREQ], |
| 66 [m4_define([PKG_MACROS_VERSION], [0.29.1]) |
| 67 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, |
| 68 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[
found])]) |
| 69 ])dnl PKG_PREREQ |
| 70 |
| 71 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
| 72 dnl ---------------------------------- |
| 73 dnl Since: 0.16 |
| 74 dnl |
| 75 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to |
| 76 dnl first found in the path. Checks that the version of pkg-config found |
| 77 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is |
| 78 dnl used since that's the first version where most current features of |
| 79 dnl pkg-config existed. |
| 49 AC_DEFUN([PKG_PROG_PKG_CONFIG], | 80 AC_DEFUN([PKG_PROG_PKG_CONFIG], |
| 50 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | 81 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
| 51 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIB
S)))?$]) | 82 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIB
S)))?$]) |
| 52 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) | 83 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) |
| 53 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) | 84 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) |
| 54 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) | 85 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) |
| 55 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search pa
th]) | 86 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search pa
th]) |
| 56 | 87 |
| 57 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 88 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 58 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) | 89 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
| 59 fi | 90 fi |
| 60 if test -n "$PKG_CONFIG"; then | 91 if test -n "$PKG_CONFIG"; then |
| 61 _pkg_min_version=m4_default([$1], [0.9.0]) | 92 _pkg_min_version=m4_default([$1], [0.9.0]) |
| 62 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) | 93 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) |
| 63 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 94 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 64 AC_MSG_RESULT([yes]) | 95 AC_MSG_RESULT([yes]) |
| 65 else | 96 else |
| 66 AC_MSG_RESULT([no]) | 97 AC_MSG_RESULT([no]) |
| 67 PKG_CONFIG="" | 98 PKG_CONFIG="" |
| 68 fi | 99 fi |
| 69 fi[]dnl | 100 fi[]dnl |
| 70 ])# PKG_PROG_PKG_CONFIG | 101 ])dnl PKG_PROG_PKG_CONFIG |
| 71 | 102 |
| 72 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | 103 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
| 73 # | 104 dnl ------------------------------------------------------------------- |
| 74 # Check to see whether a particular set of modules exists. Similar | 105 dnl Since: 0.18 |
| 75 # to PKG_CHECK_MODULES(), but does not set variables or print errors. | 106 dnl |
| 76 # | 107 dnl Check to see whether a particular set of modules exists. Similar to |
| 77 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | 108 dnl PKG_CHECK_MODULES(), but does not set variables or print errors. |
| 78 # only at the first occurence in configure.ac, so if the first place | 109 dnl |
| 79 # it's called might be skipped (such as if it is within an "if", you | 110 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
| 80 # have to call PKG_CHECK_EXISTS manually | 111 dnl only at the first occurence in configure.ac, so if the first place |
| 81 # -------------------------------------------------------------- | 112 dnl it's called might be skipped (such as if it is within an "if", you |
| 113 dnl have to call PKG_CHECK_EXISTS manually |
| 82 AC_DEFUN([PKG_CHECK_EXISTS], | 114 AC_DEFUN([PKG_CHECK_EXISTS], |
| 83 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | 115 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| 84 if test -n "$PKG_CONFIG" && \ | 116 if test -n "$PKG_CONFIG" && \ |
| 85 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then | 117 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
| 86 m4_default([$2], [:]) | 118 m4_default([$2], [:]) |
| 87 m4_ifvaln([$3], [else | 119 m4_ifvaln([$3], [else |
| 88 $3])dnl | 120 $3])dnl |
| 89 fi]) | 121 fi]) |
| 90 | 122 |
| 91 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | 123 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
| 92 # --------------------------------------------- | 124 dnl --------------------------------------------- |
| 125 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting |
| 126 dnl pkg_failed based on the result. |
| 93 m4_define([_PKG_CONFIG], | 127 m4_define([_PKG_CONFIG], |
| 94 [if test -n "$$1"; then | 128 [if test -n "$$1"; then |
| 95 pkg_cv_[]$1="$$1" | 129 pkg_cv_[]$1="$$1" |
| 96 elif test -n "$PKG_CONFIG"; then | 130 elif test -n "$PKG_CONFIG"; then |
| 97 PKG_CHECK_EXISTS([$3], | 131 PKG_CHECK_EXISTS([$3], |
| 98 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` | 132 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` |
| 99 test "x$?" != "x0" && pkg_failed=yes ], | 133 test "x$?" != "x0" && pkg_failed=yes ], |
| 100 [pkg_failed=yes]) | 134 [pkg_failed=yes]) |
| 101 else | 135 else |
| 102 pkg_failed=untried | 136 pkg_failed=untried |
| 103 fi[]dnl | 137 fi[]dnl |
| 104 ])# _PKG_CONFIG | 138 ])dnl _PKG_CONFIG |
| 105 | 139 |
| 106 # _PKG_SHORT_ERRORS_SUPPORTED | 140 dnl _PKG_SHORT_ERRORS_SUPPORTED |
| 107 # ----------------------------- | 141 dnl --------------------------- |
| 142 dnl Internal check to see if pkg-config supports short errors. |
| 108 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], | 143 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
| 109 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | 144 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
| 110 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 145 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 111 _pkg_short_errors_supported=yes | 146 _pkg_short_errors_supported=yes |
| 112 else | 147 else |
| 113 _pkg_short_errors_supported=no | 148 _pkg_short_errors_supported=no |
| 114 fi[]dnl | 149 fi[]dnl |
| 115 ])# _PKG_SHORT_ERRORS_SUPPORTED | 150 ])dnl _PKG_SHORT_ERRORS_SUPPORTED |
| 116 | 151 |
| 117 | 152 |
| 118 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | 153 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
| 119 # [ACTION-IF-NOT-FOUND]) | 154 dnl [ACTION-IF-NOT-FOUND]) |
| 120 # | 155 dnl -------------------------------------------------------------- |
| 121 # | 156 dnl Since: 0.4.0 |
| 122 # Note that if there is a possibility the first call to | 157 dnl |
| 123 # PKG_CHECK_MODULES might not happen, you should be sure to include an | 158 dnl Note that if there is a possibility the first call to |
| 124 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac | 159 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an |
| 125 # | 160 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
| 126 # | |
| 127 # -------------------------------------------------------------- | |
| 128 AC_DEFUN([PKG_CHECK_MODULES], | 161 AC_DEFUN([PKG_CHECK_MODULES], |
| 129 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | 162 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| 130 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl | 163 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
| 131 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl | 164 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl |
| 132 | 165 |
| 133 pkg_failed=no | 166 pkg_failed=no |
| 134 AC_MSG_CHECKING([for $1]) | 167 AC_MSG_CHECKING([for $1]) |
| 135 | 168 |
| 136 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) | 169 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) |
| 137 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) | 170 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 _PKG_TEXT | 204 _PKG_TEXT |
| 172 | 205 |
| 173 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl | 206 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl |
| 174 ]) | 207 ]) |
| 175 else | 208 else |
| 176 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | 209 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
| 177 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS | 210 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
| 178 AC_MSG_RESULT([yes]) | 211 AC_MSG_RESULT([yes]) |
| 179 $3 | 212 $3 |
| 180 fi[]dnl | 213 fi[]dnl |
| 181 ])# PKG_CHECK_MODULES | 214 ])dnl PKG_CHECK_MODULES |
| 182 | 215 |
| 183 | 216 |
| 184 # PKG_INSTALLDIR(DIRECTORY) | 217 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
| 185 # ------------------------- | 218 dnl [ACTION-IF-NOT-FOUND]) |
| 186 # Substitutes the variable pkgconfigdir as the location where a module | 219 dnl --------------------------------------------------------------------- |
| 187 # should install pkg-config .pc files. By default the directory is | 220 dnl Since: 0.29 |
| 188 # $libdir/pkgconfig, but the default can be changed by passing | 221 dnl |
| 189 # DIRECTORY. The user can override through the --with-pkgconfigdir | 222 dnl Checks for existence of MODULES and gathers its build flags with |
| 190 # parameter. | 223 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags |
| 224 dnl and VARIABLE-PREFIX_LIBS from --libs. |
| 225 dnl |
| 226 dnl Note that if there is a possibility the first call to |
| 227 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to |
| 228 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your |
| 229 dnl configure.ac. |
| 230 AC_DEFUN([PKG_CHECK_MODULES_STATIC], |
| 231 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| 232 _save_PKG_CONFIG=$PKG_CONFIG |
| 233 PKG_CONFIG="$PKG_CONFIG --static" |
| 234 PKG_CHECK_MODULES($@) |
| 235 PKG_CONFIG=$_save_PKG_CONFIG[]dnl |
| 236 ])dnl PKG_CHECK_MODULES_STATIC |
| 237 |
| 238 |
| 239 dnl PKG_INSTALLDIR([DIRECTORY]) |
| 240 dnl ------------------------- |
| 241 dnl Since: 0.27 |
| 242 dnl |
| 243 dnl Substitutes the variable pkgconfigdir as the location where a module |
| 244 dnl should install pkg-config .pc files. By default the directory is |
| 245 dnl $libdir/pkgconfig, but the default can be changed by passing |
| 246 dnl DIRECTORY. The user can override through the --with-pkgconfigdir |
| 247 dnl parameter. |
| 191 AC_DEFUN([PKG_INSTALLDIR], | 248 AC_DEFUN([PKG_INSTALLDIR], |
| 192 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) | 249 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) |
| 193 m4_pushdef([pkg_description], | 250 m4_pushdef([pkg_description], |
| 194 [pkg-config installation directory @<:@]pkg_default[@:>@]) | 251 [pkg-config installation directory @<:@]pkg_default[@:>@]) |
| 195 AC_ARG_WITH([pkgconfigdir], | 252 AC_ARG_WITH([pkgconfigdir], |
| 196 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, | 253 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, |
| 197 [with_pkgconfigdir=]pkg_default) | 254 [with_pkgconfigdir=]pkg_default) |
| 198 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) | 255 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) |
| 199 m4_popdef([pkg_default]) | 256 m4_popdef([pkg_default]) |
| 200 m4_popdef([pkg_description]) | 257 m4_popdef([pkg_description]) |
| 201 ]) dnl PKG_INSTALLDIR | 258 ])dnl PKG_INSTALLDIR |
| 202 | 259 |
| 203 | 260 |
| 204 # PKG_NOARCH_INSTALLDIR(DIRECTORY) | 261 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) |
| 205 # ------------------------- | 262 dnl -------------------------------- |
| 206 # Substitutes the variable noarch_pkgconfigdir as the location where a | 263 dnl Since: 0.27 |
| 207 # module should install arch-independent pkg-config .pc files. By | 264 dnl |
| 208 # default the directory is $datadir/pkgconfig, but the default can be | 265 dnl Substitutes the variable noarch_pkgconfigdir as the location where a |
| 209 # changed by passing DIRECTORY. The user can override through the | 266 dnl module should install arch-independent pkg-config .pc files. By |
| 210 # --with-noarch-pkgconfigdir parameter. | 267 dnl default the directory is $datadir/pkgconfig, but the default can be |
| 268 dnl changed by passing DIRECTORY. The user can override through the |
| 269 dnl --with-noarch-pkgconfigdir parameter. |
| 211 AC_DEFUN([PKG_NOARCH_INSTALLDIR], | 270 AC_DEFUN([PKG_NOARCH_INSTALLDIR], |
| 212 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) | 271 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) |
| 213 m4_pushdef([pkg_description], | 272 m4_pushdef([pkg_description], |
| 214 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) | 273 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) |
| 215 AC_ARG_WITH([noarch-pkgconfigdir], | 274 AC_ARG_WITH([noarch-pkgconfigdir], |
| 216 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, | 275 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, |
| 217 [with_noarch_pkgconfigdir=]pkg_default) | 276 [with_noarch_pkgconfigdir=]pkg_default) |
| 218 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) | 277 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) |
| 219 m4_popdef([pkg_default]) | 278 m4_popdef([pkg_default]) |
| 220 m4_popdef([pkg_description]) | 279 m4_popdef([pkg_description]) |
| 221 ]) dnl PKG_NOARCH_INSTALLDIR | 280 ])dnl PKG_NOARCH_INSTALLDIR |
| 222 | 281 |
| 223 | 282 |
| 224 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, | 283 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, |
| 225 # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | 284 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
| 226 # ------------------------------------------- | 285 dnl ------------------------------------------- |
| 227 # Retrieves the value of the pkg-config variable for the given module. | 286 dnl Since: 0.28 |
| 287 dnl |
| 288 dnl Retrieves the value of the pkg-config variable for the given module. |
| 228 AC_DEFUN([PKG_CHECK_VAR], | 289 AC_DEFUN([PKG_CHECK_VAR], |
| 229 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | 290 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| 230 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl | 291 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl |
| 231 | 292 |
| 232 _PKG_CONFIG([$1], [variable="][$3]["], [$2]) | 293 _PKG_CONFIG([$1], [variable="][$3]["], [$2]) |
| 233 AS_VAR_COPY([$1], [pkg_cv_][$1]) | 294 AS_VAR_COPY([$1], [pkg_cv_][$1]) |
| 234 | 295 |
| 235 AS_VAR_IF([$1], [""], [$5], [$4])dnl | 296 AS_VAR_IF([$1], [""], [$5], [$4])dnl |
| 236 ])# PKG_CHECK_VAR | 297 ])dnl PKG_CHECK_VAR |
| 237 | 298 |
| 238 # Copyright (C) 2002-2014 Free Software Foundation, Inc. | 299 # Copyright (C) 2002-2014 Free Software Foundation, Inc. |
| 239 # | 300 # |
| 240 # This file is free software; the Free Software Foundation | 301 # This file is free software; the Free Software Foundation |
| 241 # gives unlimited permission to copy and/or distribute it, | 302 # gives unlimited permission to copy and/or distribute it, |
| 242 # with or without modifications, as long as this notice is preserved. | 303 # with or without modifications, as long as this notice is preserved. |
| 243 | 304 |
| 244 # AM_AUTOMAKE_VERSION(VERSION) | 305 # AM_AUTOMAKE_VERSION(VERSION) |
| 245 # ---------------------------- | 306 # ---------------------------- |
| 246 # Automake X.Y traces this macro to ensure aclocal.m4 has been | 307 # Automake X.Y traces this macro to ensure aclocal.m4 has been |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 [rm -rf .tst 2>/dev/null | 914 [rm -rf .tst 2>/dev/null |
| 854 mkdir .tst 2>/dev/null | 915 mkdir .tst 2>/dev/null |
| 855 if test -d .tst; then | 916 if test -d .tst; then |
| 856 am__leading_dot=. | 917 am__leading_dot=. |
| 857 else | 918 else |
| 858 am__leading_dot=_ | 919 am__leading_dot=_ |
| 859 fi | 920 fi |
| 860 rmdir .tst 2>/dev/null | 921 rmdir .tst 2>/dev/null |
| 861 AC_SUBST([am__leading_dot])]) | 922 AC_SUBST([am__leading_dot])]) |
| 862 | 923 |
| 924 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
| 925 # From Jim Meyering |
| 926 |
| 927 # Copyright (C) 1996-2014 Free Software Foundation, Inc. |
| 928 # |
| 929 # This file is free software; the Free Software Foundation |
| 930 # gives unlimited permission to copy and/or distribute it, |
| 931 # with or without modifications, as long as this notice is preserved. |
| 932 |
| 933 # AM_MAINTAINER_MODE([DEFAULT-MODE]) |
| 934 # ---------------------------------- |
| 935 # Control maintainer-specific portions of Makefiles. |
| 936 # Default is to disable them, unless 'enable' is passed literally. |
| 937 # For symmetry, 'disable' may be passed as well. Anyway, the user |
| 938 # can override the default with the --enable/--disable switch. |
| 939 AC_DEFUN([AM_MAINTAINER_MODE], |
| 940 [m4_case(m4_default([$1], [disable]), |
| 941 [enable], [m4_define([am_maintainer_other], [disable])], |
| 942 [disable], [m4_define([am_maintainer_other], [enable])], |
| 943 [m4_define([am_maintainer_other], [enable]) |
| 944 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) |
| 945 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
| 946 dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
| 947 AC_ARG_ENABLE([maintainer-mode], |
| 948 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], |
| 949 am_maintainer_other[ make rules and dependencies not useful |
| 950 (and sometimes confusing) to the casual installer])], |
| 951 [USE_MAINTAINER_MODE=$enableval], |
| 952 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) |
| 953 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
| 954 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
| 955 MAINT=$MAINTAINER_MODE_TRUE |
| 956 AC_SUBST([MAINT])dnl |
| 957 ] |
| 958 ) |
| 959 |
| 863 # Check to see how 'make' treats includes. -*- Autoconf -*- | 960 # Check to see how 'make' treats includes. -*- Autoconf -*- |
| 864 | 961 |
| 865 # Copyright (C) 2001-2014 Free Software Foundation, Inc. | 962 # Copyright (C) 2001-2014 Free Software Foundation, Inc. |
| 866 # | 963 # |
| 867 # This file is free software; the Free Software Foundation | 964 # This file is free software; the Free Software Foundation |
| 868 # gives unlimited permission to copy and/or distribute it, | 965 # gives unlimited permission to copy and/or distribute it, |
| 869 # with or without modifications, as long as this notice is preserved. | 966 # with or without modifications, as long as this notice is preserved. |
| 870 | 967 |
| 871 # AM_MAKE_INCLUDE() | 968 # AM_MAKE_INCLUDE() |
| 872 # ----------------- | 969 # ----------------- |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1364 AC_SUBST([am__tar]) | 1461 AC_SUBST([am__tar]) |
| 1365 AC_SUBST([am__untar]) | 1462 AC_SUBST([am__untar]) |
| 1366 ]) # _AM_PROG_TAR | 1463 ]) # _AM_PROG_TAR |
| 1367 | 1464 |
| 1368 m4_include([m4/libtool.m4]) | 1465 m4_include([m4/libtool.m4]) |
| 1369 m4_include([m4/ltoptions.m4]) | 1466 m4_include([m4/ltoptions.m4]) |
| 1370 m4_include([m4/ltsugar.m4]) | 1467 m4_include([m4/ltsugar.m4]) |
| 1371 m4_include([m4/ltversion.m4]) | 1468 m4_include([m4/ltversion.m4]) |
| 1372 m4_include([m4/lt~obsolete.m4]) | 1469 m4_include([m4/lt~obsolete.m4]) |
| 1373 m4_include([acinclude.m4]) | 1470 m4_include([acinclude.m4]) |
| OLD | NEW |