Blob Blame Raw
diff -up nut-2.2.1/lib/libupsclient-config.in.multilib nut-2.2.1/lib/libupsclient-config.in
--- nut-2.2.1/lib/libupsclient-config.in.multilib	2007-07-10 15:44:32.000000000 +0200
+++ nut-2.2.1/lib/libupsclient-config.in	2008-01-09 14:45:06.000000000 +0100
@@ -10,9 +10,18 @@
 Version="@PACKAGE_VERSION@"
 prefix=@prefix@
 exec_prefix=@exec_prefix@
-Libs="-L@libdir@ -lupsclient @LIBSSL_LDFLAGS@"
 Cflags="-I@includedir@ @LIBSSL_CFLAGS@"
 
+arch=$(/bin/arch)
+if [ "$arch" = "x86_64" -o "$arch" = "s390x" -o "$arch" = "ppc64" -o "$arch" = "ia64" ]; then
+	libdir="/usr/lib64"
+else
+	libdir="/usr/lib"
+fi
+Libs="-L$libdir -lupsclient @LIBSSL_LDFLAGS@"
+
+
+
 case "$1" in
 
   --cflags)