On Thu, Mar 12, 2015 at 5:09 AM, Lucas De Marchi
<[email protected]> wrote:
> On Tue, Mar 10, 2015 at 3:04 PM, Jeff Waugh <[email protected]> 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 $@ [email protected]
    srcdir=''; \
    test -f ./[email protected] || srcdir=$(srcdir)/; \
    $(edit) $${srcdir}[email protected] >[email protected]
    chmod +x [email protected]
    chmod a-w [email protected]
    mv [email protected] $@

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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to