On Thu, Mar 12, 2015 at 5:09 AM, Lucas De Marchi <lucas.de.mar...@gmail.com> wrote: > On Tue, Mar 10, 2015 at 3:04 PM, Jeff Waugh <j...@bethesignal.org> wrote: >> Generate pkg-config files during configure as God (Havoc) intended. This >> fixes >> all of systemd's pkg-config files when cross-compiling (and possibly other >> use >> cases).
> Kay, please take a look on this. There's a similar patch pending to > kmod on [1]. I'm still not sure what exactly it's fixing... seems like > just that it would not replace/expand all occurrences of the > variables... AC_CONFIG_FILES is usually meant to create/prepare autoconf/automake related files needed for the build process, and not to produce plain package content to ship. Not that quoting autoconf manuals would make the autotools mess any better, but there is also this. :) "Similarly, you should not rely on AC_CONFIG_FILES to replace bindir and friends in your shell scripts and other files; instead, let make manage their replacement. For instance Autoconf ships templates of its shell scripts ending with ‘.in’, and uses a makefile snippet similar to the following to build scripts like autoheader and autom4te: edit = sed \ -e 's|@bindir[@]|$(bindir)|g' \ -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \ -e 's|@prefix[@]|$(prefix)|g' autoheader autom4te: Makefile rm -f $@ $@.tmp srcdir=''; \ test -f ./$@.in || srcdir=$(srcdir)/; \ $(edit) $${srcdir}$@.in >$@.tmp chmod +x $@.tmp chmod a-w $@.tmp mv $@.tmp $@ autoheader: $(srcdir)/autoheader.in autom4te: $(srcdir)/autom4te.in" http://www.gnu.org/software/autoconf/manual/autoconf.html#Installation-Directory-Variables Kay _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel