3ce7d3
diff --git a/configure.in b/configure.in
3ce7d3
index e6cd6a4..988b0a7 100644
3ce7d3
--- a/configure.in
3ce7d3
+++ b/configure.in
3ce7d3
@@ -5116,6 +5116,8 @@ AC_SUBST(BUILD_CPPFLAGS)
3ce7d3
 AC_SUBST(BUILD_LDFLAGS)
3ce7d3
 AC_SUBST(BUILD_LIBS)
3ce7d3
 
3ce7d3
+AC_SUBST(LIBDIR_SUFFIX)
3ce7d3
+
3ce7d3
 #
3ce7d3
 # Commands to run at the end of config.status.
3ce7d3
 # Don't just put these into configure, it won't work right if somebody
3ce7d3
diff --git a/isc-config.sh.in b/isc-config.sh.in
3ce7d3
index 110191a..5a64004 100644
3ce7d3
--- a/isc-config.sh.in
3ce7d3
+++ b/isc-config.sh.in
3ce7d3
@@ -12,16 +12,17 @@ prefix=@prefix@
3ce7d3
 exec_prefix=@exec_prefix@
3ce7d3
 exec_prefix_set=
3ce7d3
 includedir=@includedir@
3ce7d3
+libdir_suffix=@LIBDIR_SUFFIX@
3ce7d3
 arch=$(uname -m)
3ce7d3
 
3ce7d3
 case $arch in
3ce7d3
 	x86_64 | amd64 | sparc64 | s390x | ppc64)
3ce7d3
-		libdir=/usr/lib64
3ce7d3
-		sec_libdir=/usr/lib
3ce7d3
+		libdir=/usr/lib64${libdir_suffix}
3ce7d3
+		sec_libdir=/usr/lib${libdir_suffix}
3ce7d3
 		;;
3ce7d3
 	* )
3ce7d3
-		libdir=/usr/lib
3ce7d3
-		sec_libdir=/usr/lib64
3ce7d3
+		libdir=/usr/lib${libdir_suffix}
3ce7d3
+		sec_libdir=/usr/lib64${libdir_suffix}
3ce7d3
 		;;
3ce7d3
 esac
3ce7d3