Skip to content

Commit

Permalink
Fix setup of lib directory with autogen.sh --system
Browse files Browse the repository at this point in the history
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
  • Loading branch information
berrange committed Jan 26, 2011
1 parent e0e4e4d commit 3493f1b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3493f1b

Please sign in to comment.