This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Pick up correct lib path when configuring on 64 bit hosts


This patch sets up PKG_CONFIG_PATH using lib or lib64 accordingly.
I still haven't done a full build, but I checked that the directories 
are being picked up from .../lib64.

OK to install?

Index: acinclude.m4
===================================================================
RCS file: /cvs/frysk/frysk-common/acinclude.m4,v
retrieving revision 1.33
diff -d -u -p -r1.33 acinclude.m4
--- acinclude.m4        11 Dec 2005 01:42:29 -0000      1.33
+++ acinclude.m4        13 Jan 2006 22:54:55 -0000
@@ -80,4 +80,5 @@ test "x$FIG2DEV" = x && AC_MSG_ERROR([no

 AM_PROG_AS

-export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/frysk/lib/pkgconfig:/usr/lib/frysk/pkgconfig
+lib=`pkg-config --debug 2>&1 |awk -F '/' '/^Scanning.*pkgconfig.$/ { print $(NF - 1); exit; }'`
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/frysk/$lib/pkgconfig:/usr/$lib/frysk/pkgconfig


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]