--- /dev/null
+Author: Alessio Treglia <alessio@debian.org>
+Description: Process configure's --libdir option to set the shared library
+ installation path properly.
+Forwarded: no
+---
+ configure | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+--- gpac.orig/configure
++++ gpac/configure
+@@ -271,6 +271,8 @@ for opt do
+ case "$opt" in
+ --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
+ ;;
++ --libdir=*) libdir=`echo $opt | cut -d '=' -f 2`
++ ;;
+ --mandir=*) mandir=`echo $opt | cut -d '=' -f 2`
+ ;;
+ --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
+@@ -313,9 +315,6 @@ case "$cpu" in
+ if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
+ if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then
+ cpu="x86_64"
+- if test "$linux" = "yes" ; then
+- libdir="lib64"
+- fi
+ want_pic="yes"
+ fi
+ fi
+@@ -328,7 +327,6 @@ case "$cpu" in
+ ;;
+ ppc64)
+ cpu="powerpc"
+- libdir="lib64"
+ ;;
+ "Power Macintosh"|ppc)
+ cpu="powerpc"