[grilo] build: Install 64bit libraries in proper place



commit 9066efc21bd9431e26ce385c99267332194dba0c
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon Oct 29 17:58:14 2012 +0000

    build: Install 64bit libraries in proper place
    
    In case 'libdir' is not specified, select lib or lib64 depending on the
    machine.

 configure.ac |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9ed62fd..1af932d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,12 +85,23 @@ AC_DEFINE_UNQUOTED(GRL_NAME, "$GRL_NAME", [framework name])
 
 # Give parameters a default value
 
-if test $prefix = "NONE" ; then
-	prefix="/usr/local"
+if test "x${prefix}" = "xNONE" ; then
+   prefix="${ac_default_prefix}"
 fi
 
-if test $libdir = "\${exec_prefix}/lib" ; then
-	libdir="$prefix/lib"
+if test "x${exec_prefix}" = "xNONE" ; then
+   exec_prefix="${prefix}"
+fi
+
+if test "${libdir}" = '${exec_prefix}/lib'; then
+   case `uname -m` in
+        x86_64|ppc64|powerpc64)
+                libdir='${exec_prefix}/lib64'
+        ;;
+        *)
+                libdir='${exec_prefix}/lib'
+        ;;
+esac
 fi
 
 # Plugins directory



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