From 6e66bc53a14bb33c87257a94abd92cc6cf71c9ef Mon Sep 17 00:00:00 2001 From: Mika Laitio Date: Sat, 14 Jul 2012 17:03:42 +0300 Subject: [PATCH] fix building on 64 bit systems Install to /usr/local/lib64 on 64 bit systems. Signed-off-by: Mika Laitio --- autobuild.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/autobuild.sh b/autobuild.sh index bb273c0..81ccb79 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -1,12 +1,21 @@ #!/bin/sh -export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig +PREFIX=${PREFIX:=/usr/local} + +if ! [ -d /lib64 ] ; +then + LIBDIR=${LIBDIR:=$PREFIX/lib} +else + LIBDIR=${LIBDIR:=$PREFIX/lib64} +fi +export PKG_CONFIG_PATH=$LIBDIR/pkgconfig:$PKG_CONFIG_PATH + if ! [ -e Makefile ] ; then echo "No Makefile available, generating it." libtoolize --automake --force --copy - autoreconf --force --install - ./configure --prefix=/usr/local + autoreconf --install + ./configure --prefix=$PREFIX --libdir=$LIBDIR else echo "Makefile found, no need to generate it." fi -- 2.41.0