X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fm4%2Fpkgconfig.am;fp=util-vserver%2Fm4%2Fpkgconfig.am;h=0000000000000000000000000000000000000000;hb=9c78378bebc1a9f3d400f422df8ede9efea57dea;hp=340ffc1e46b69b532869afa33a21ef359b8083df;hpb=faa778968d1a7dfeaebc9fe4b847e691dc62fd15;p=util-vserver.git diff --git a/util-vserver/m4/pkgconfig.am b/util-vserver/m4/pkgconfig.am deleted file mode 100644 index 340ffc1..0000000 --- a/util-vserver/m4/pkgconfig.am +++ /dev/null @@ -1,56 +0,0 @@ -## $Id$ ---*- makefile -*--- - -## Copyright (C) 2002 Enrico Scholz -## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; version 2 of the License. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -## - -BAD_INC_PATHS = /usr/include|/usr/local/include -BAD_LIB_PATHS = /usr/lib - -pkgconfdir = $(libdir)/pkgconfig -pkgconf_DATA = $(addsuffix .pc, $(PKGCONFIG_FILES)) - -CLEANFILES += $(addsuffix .pc, $(PKGCONFIG_FILES)) -EXTRA_DIST += $(addsuffix .pc.subst, $(PKGCONFIG_FILES)) - -pkgconf_SUBST = s!@'PACKAGE'@!$(PACKAGE)!g; \ - s!@'VERSION'@!$(VERSION)!g; \ - s!@'prefix'@!$(prefix)!g; \ - s!@'exec_prefix'@!$(exec_prefix)!g; \ - s!@'libdir'@!$(libdir)!g; \ - s!@'includedir'@!$(includedir)!g; \ - s!@'libflags"@!$${libflags}$(pkgconf_LIBFLAGS)!g;"' \ - s!@'incflags"@!$${incflags}$(pkgconf_INCFLAGS)!g;"' \ - s!@'pkgincflags"@!$${pkgincflags}$(pkgconf_PKGINCFLAGS)!g;"' \ - s!@'pkgincludedir'@!$(pkgincludedir)!g - - -%.pc: %.pc.subst Makefile - rm -f $@ - @case '$(libdir)' in \ - $(BAD_LIB_PATHS)) libflags=;; \ - *) libflags='-L$${libdir} ';; \ - esac; \ - case '$(pkgincludedir)' in \ - $(BAD_INC_PATHS)) pkgincflags=;; \ - *) pkgincflags='-I$${pkgincludedir} ';; \ - esac; \ - case '$(includedir)' in \ - $(BAD_INC_PATHS)) incflags=;; \ - *) incflags='-I$${includedir} ';; \ - esac; \ - sed -e '$(pkgconf_SUBST)' $< >$@ - test -z "$(CHMOD_REFERENCE)" || $(CHMOD_REFERENCE) '$<' '$@' - chmod a-w $@