# Copyright 2009 Nathan Phillip Brink # # This file is a part of DistRen. # # Distren is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # DistRen is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with DistRen. If not, see . # # PKGCONFIG_OHNOWRAP(VARIABLE-PREFIX, MODULES) # see bug 13912 on freedesktop's bugzilla # $1 is the var to store stuff in # $2 is the listing of modules to pass to PKG_CHECK_MODULES # # Original code derived from and depending on pkg.m4 distributed with dev-util/pkgconfig-0.23 # which is Copyright (c) 2004 Scott James Remnant # AC_DEFUN([PKGCONFIG_OHNOWRAP], [dnl AC_ARG_VAR([$1][_LDADD],[Linker names of libraries to link to for $1])dnl AC_ARG_VAR([$1][_LDFLAGS],[Linker flags for linking to libraries for $1])dnl PKG_CHECK_MODULES([$1], [$2]) _PKG_CONFIG([$1][_LDADD], [libs-only-l], [$2]) _PKG_CONFIG([$1][_LDFLAGS], [libs-only-other], [$2]) $1[]_LDADD=$pkg_cv_[]$1[]_LDADD $1[]_LDFLAGS=$pkg_cv_[]$1[]_LDFLAGS ])