bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] split AC_LIB_LINKFLAGS_BODY for multi-library packages


From: Sam Steingold
Subject: Re: [PATCH] split AC_LIB_LINKFLAGS_BODY for multi-library packages
Date: Wed, 12 Mar 2008 09:34:43 -0400
User-agent: Thunderbird 2.0.0.0 (X11/20070326)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bruno Haible wrote:
| Sam Steingold wrote:
|> some packages (e.g., GNU libffcall) install multiple libraries, so
|> AC_LIB_LINKFLAGS_BODY is insufficient for detecting them.
|> this patch splits AC_LIB_LINKFLAGS_BODY into two parts: for adding a
|> -with-libname-prefix command line switch and for searching for
|> libraries.
|
| This patch is not complete: lib-link.m4 has 3 entry points
| AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS, AC_LIB_LINKFLAGS_BODY, and
| your patch splits only one of the three.
|
| Actually I don't want to split these three macros, because the user
| should
| have to write a single macro call, not two. Also, I don't want to add
| an extra 'package' argument to the macros, because it would complicate
| the calling conventions of the macros for a rare usecase.
|
| Instead, I'm adding a separate macro AC_LIB_FROMPACKAGE, with which
| you can declare which library comes from which package. Like this:
|
|    AC_LIB_FROMPACKAGE(avcall, ffcall)
|    AC_LIB_FROMPACKAGE(vacall, ffcall)
|    AC_LIB_LINKFLAGS(avcall)
|    AC_LIB_LINKFLAGS(vacall)

does this create two new options
- --with-libavcall-prefix and
- --with-libvacall-prefix
instead of one option
- --with-libffcall-prefix
as in my patch?

| *** m4/lib-link.m4.orig       2008-03-12 05:46:15.000000000 +0100
| --- m4/lib-link.m4    2008-03-12 05:44:50.000000000 +0100
| ***************
| *** 1,4 ****
| ! # lib-link.m4 serial 14 (gettext-0.18)
please add "# -*- Autoconf -*-" here.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH19vzPp1Qsf2qnMcRAlAjAKCTV1ANwekKFbsm5AEju5S79xqNrQCePOpc
yn4vtF3GTlguDizeYaq+Fys=
=7p5c
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]