Blame SOURCES/bind-9.9.1-P2-multlib-conflict.patch

2e2c49
diff --git a/config.h.in b/config.h.in
10d019
index 4ecaa8f..2f65ccc 100644
2e2c49
--- a/config.h.in
2e2c49
+++ b/config.h.in
10d019
@@ -600,7 +600,7 @@ int sigwait(const unsigned int *set, int *sig);
2e2c49
 #undef PREFER_GOSTASN1
2e2c49
 
2e2c49
 /* The size of `void *', as computed by sizeof. */
2e2c49
-#undef SIZEOF_VOID_P
2e2c49
+/* #undef SIZEOF_VOID_P */
2e2c49
 
2e2c49
 /* Define to 1 if you have the ANSI C header files. */
2e2c49
 #undef STDC_HEADERS
2e2c49
diff --git a/isc-config.sh.in b/isc-config.sh.in
10d019
index a8a0a89..b5e94ed 100644
2e2c49
--- a/isc-config.sh.in
2e2c49
+++ b/isc-config.sh.in
89a891
@@ -13,7 +13,18 @@ prefix=@prefix@
2e2c49
 exec_prefix=@exec_prefix@
2e2c49
 exec_prefix_set=
2e2c49
 includedir=@includedir@
2e2c49
-libdir=@libdir@
2e2c49
+arch=$(uname -m)
2e2c49
+
2e2c49
+case $arch in
2e2c49
+	x86_64 | amd64 | sparc64 | s390x | ppc64)
2e2c49
+		libdir=/usr/lib64
2e2c49
+		sec_libdir=/usr/lib
2e2c49
+		;;
2e2c49
+	* )
2e2c49
+		libdir=/usr/lib
2e2c49
+		sec_libdir=/usr/lib64
2e2c49
+		;;
2e2c49
+esac
2e2c49
 
2e2c49
 usage()
2e2c49
 {
89a891
@@ -132,6 +143,16 @@ if test x"$echo_libs" = x"true"; then
2e2c49
 	if test x"${exec_prefix_set}" = x"true"; then
2e2c49
 		libs="-L${exec_prefix}/lib"
2e2c49
 	else
2e2c49
+		if [ ! -x $libdir/libisc.so ] ; then
2e2c49
+			if [ ! -x $sec_libdir/libisc.so ] ; then
2e2c49
+				echo "Error: ISC libs not found in $libdir"
2e2c49
+				if [ -d $sec_libdir ] ; then
2e2c49
+					echo "Error: ISC libs not found in $sec_libdir"
2e2c49
+				fi
2e2c49
+				exit 1
2e2c49
+			fi
2e2c49
+			libdir=$sec_libdir
2e2c49
+		fi
2e2c49
 		libs="-L${libdir}"
2e2c49
 	fi
2e2c49
 	if test x"$libirs" = x"true" ; then