]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix setup of lib directory with autogen.sh --system
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 19 Jan 2011 12:24:26 +0000 (12:24 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 26 Jan 2011 14:54:23 +0000 (14:54 +0000)
On x86_64 hosts, /usr/lib64 must be used instead of /usr/lib
Rather than attempt to whitelist architectures, just check
for existance of /usr/lib64

* autogen.sh: Fix to use /usr/lib64 if it exists

autogen.sh

index 323710be8a33e3fb8e5174436928bca0f5ddf54f..ff13fd1486684f51d2540db982dc73f886a28f97 100755 (executable)
@@ -21,7 +21,14 @@ if test "x$1" = "x--no-git"; then
 fi
 if test "x$1" = "x--system"; then
     shift
-    EXTRA_ARGS="--prefix=/usr --sysconfdir=/etc --localstatedir=/var"
+    prefix=/usr
+    libdir=$prefix/lib
+    sysconfdir=/etc
+    localstatedir=/var
+    if [ -d /usr/lib64 ]; then
+      libdir=$prefix/lib64
+    fi
+    EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
     echo "Running ./configure with $EXTRA_ARGS $@"
 else
     if test -z "$*" && test ! -f "$THEDIR/config.status"; then