Autoconf question

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Autoconf question

Greg Steuck

We [workaround] an upstream [bug] in x11/hs-X11.

A proper fix would be to add an exrta-lib-dirs line to
[] that sets the directory where X libs live

The directory is already included as ld-options: @LDFLAGS@, except it
ends up as -L/usr/X11R6/lib and is not used for linking the shared
library (the essence of the [bug]).

Anybody got an autoconf recipe handy for that? I'd like a patch like
the following, except with a proper x_libraries figured out by

diff --git a/ b/
index 6925939..a6c7ef3 100644
--- a/
+++ b/
@@ -5,3 +5,4 @@ buildable: @BUILD_PACKAGE_BOOL@
 cc-options: @X_CFLAGS@ @CPPFLAGS@
 ld-options: @X_LIBS@ @LDFLAGS@
 extra-libraries: @EXTRA_LIBRARIES@
+extra-lib-dirs: @x_libraries@

The value is already available in configure, it's just not
"exported". Output of ./configure includes lines like this:

checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include

Produced by this shell fragment:
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }



-- is Gmail hosted, use PGP:
Fingerprint: 5E2B 2D0E 1E03 2046 BEC3  4D50 0B15 42BD 8DF5 A1B0