Patchwork [PATCHv4,1/2] configure: add libdir and --libdir

login
register
mail settings
Submitter Alon Levy
Date May 18, 2011, 2:23 p.m.
Message ID <1305728624-13250-2-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/96172/
State New
Headers show

Comments

Alon Levy - May 18, 2011, 2:23 p.m.
---
 configure |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/configure b/configure
index d7dba5d..0627f1d 100755
--- a/configure
+++ b/configure
@@ -146,6 +146,7 @@  mandir="\${prefix}/share/man"
 datadir="\${prefix}/share/qemu"
 docdir="\${prefix}/share/doc/qemu"
 bindir="\${prefix}/bin"
+libdir="\${prefix}/lib"
 sysconfdir="\${prefix}/etc"
 confsuffix="/qemu"
 slirp="yes"
@@ -536,6 +537,8 @@  for opt do
   ;;
   --bindir=*) bindir="$optarg"
   ;;
+  --libdir=*) libdir="$optarg"
+  ;;
   --datadir=*) datadir="$optarg"
   ;;
   --docdir=*) docdir="$optarg"
@@ -2630,6 +2633,7 @@  fi
 echo "Install prefix    $prefix"
 echo "BIOS directory    `eval echo $datadir`"
 echo "binary directory  `eval echo $bindir`"
+echo "library directory `eval echo $libdir`"
 echo "config directory  `eval echo $sysconfdir`"
 if test "$mingw32" = "no" ; then
 echo "Manual directory  `eval echo $mandir`"
@@ -2722,6 +2726,7 @@  echo >> $config_host_mak
 echo all: >> $config_host_mak
 echo "prefix=$prefix" >> $config_host_mak
 echo "bindir=$bindir" >> $config_host_mak
+echo "libdir=$libdir" >> $config_host_mak
 echo "mandir=$mandir" >> $config_host_mak
 echo "datadir=$datadir" >> $config_host_mak
 echo "sysconfdir=$sysconfdir" >> $config_host_mak