f8cf897
diff -up allegro-4.4.2/misc/allegro-config.in~ allegro-4.4.2/misc/allegro-config.in
f8cf897
--- allegro-4.4.2/misc/allegro-config.in~	2010-03-03 11:22:34.000000000 +0100
f8cf897
+++ allegro-4.4.2/misc/allegro-config.in	2011-07-12 10:42:05.231457514 +0200
f8cf897
@@ -19,8 +19,15 @@ exec_prefix=$prefix
cd0c4c9
 exec_prefix_set=no
cd0c4c9
 include_prefix=@INCLUDE_PREFIX@
f8cf897
 include_path=${prefix}/include
f8cf897
-lib_path=${exec_prefix}/lib@LIB_SUFFIX@
f8cf897
 bin_path=${exec_prefix}/bin
aa5f9d5
+arch=$(/bin/arch)
aa5f9d5
+if [ "$arch" = "x86_64" -o "$arch" = "s390x" -o "$arch" = "ppc64" \
aa5f9d5
+    -o "$arch" = "ia64" ];
aa5f9d5
+then
5c826a1
+    lib_path="/usr/lib64"
aa5f9d5
+else
5c826a1
+    lib_path="/usr/lib"
aa5f9d5
+fi
cd0c4c9
 
cd0c4c9
 static_libs=@LINK_WITH_STATIC_LIBS@
cd0c4c9
 lib_type=@LIB_TO_LINK@