From cbcfacb6893b551469ed576694417c0d9f4137b7 Mon Sep 17 00:00:00 2001 From: Mika Laitio Date: Sat, 14 Jul 2012 19:20:48 +0300 Subject: [PATCH] support for /usr/local/lib64 dir Signed-off-by: Mika Laitio --- autobuild.sh | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/autobuild.sh b/autobuild.sh index 97c69a9..81ccb79 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -1,16 +1,22 @@ #!/bin/sh +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 "generating build system files for target platform" + echo "No Makefile available, generating it." libtoolize --automake --force --copy - aclocal - autoheader - touch stamp-h - autoconf - automake -a -c - ./configure --prefix=/usr/local + autoreconf --install + ./configure --prefix=$PREFIX --libdir=$LIBDIR else - echo "no need to generate makefiles" + echo "Makefile found, no need to generate it." fi make -- 2.41.1