2014-10-02 12:14:01 +00:00
|
|
|
diff -up bind-9.10.1b1/contrib/dlz/config.dlz.in.64bit bind-9.10.1b1/contrib/dlz/config.dlz.in
|
|
|
|
--- bind-9.10.1b1/contrib/dlz/config.dlz.in.64bit 2014-06-23 06:47:35.000000000 +0200
|
|
|
|
+++ bind-9.10.1b1/contrib/dlz/config.dlz.in 2014-07-29 15:29:06.956527598 +0200
|
2007-07-23 14:27:48 +00:00
|
|
|
@@ -17,6 +17,13 @@
|
|
|
|
#
|
|
|
|
dlzdir='${DLZ_DRIVER_DIR}'
|
|
|
|
|
|
|
|
+AC_MSG_CHECKING([for target libdir])
|
|
|
|
+AC_RUN_IFELSE([int main(void) {exit((sizeof(void *) == 8) ? 0 : 1);}],
|
|
|
|
+ [target_lib=lib64],
|
|
|
|
+ [target_lib=lib],
|
|
|
|
+)
|
|
|
|
+AC_MSG_RESULT(["$target_lib"])
|
|
|
|
+
|
|
|
|
#
|
|
|
|
# Private autoconf macro to simplify configuring drivers:
|
|
|
|
#
|
2014-10-02 12:14:01 +00:00
|
|
|
@@ -140,9 +147,9 @@ then
|
2007-07-23 14:27:48 +00:00
|
|
|
then
|
2008-07-11 10:16:21 +00:00
|
|
|
use_dlz_mysql=$d
|
|
|
|
mysql_include=$d/include/mysql
|
|
|
|
- if test -d $d/lib/mysql
|
|
|
|
+ if test -d $d/${target_lib}/mysql
|
|
|
|
then
|
|
|
|
- mysql_lib=$d/lib/mysql
|
|
|
|
+ mysql_lib=$d/${target_lib}/mysql
|
|
|
|
else
|
|
|
|
mysql_lib=$d/lib
|
|
|
|
fi
|
2014-10-02 12:14:01 +00:00
|
|
|
@@ -288,9 +295,9 @@ case "$use_dlz_bdb" in
|
2012-04-24 12:59:30 +00:00
|
|
|
then
|
2014-10-02 12:14:01 +00:00
|
|
|
break
|
2012-04-24 12:59:30 +00:00
|
|
|
fi
|
2014-10-02 12:14:01 +00:00
|
|
|
- elif test -f "$dd/lib/lib${d}.so"
|
|
|
|
+ elif test -f "$dd/${target_lib}/lib${d}.so"
|
|
|
|
then
|
|
|
|
- dlz_bdb_libs="-L${dd}/lib -l${d}"
|
|
|
|
+ dlz_bdb_libs="-L${dd}/${target_lib} -l${d}"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
@@ -390,7 +397,7 @@ case "$use_dlz_ldap" in
|
2007-07-23 14:27:48 +00:00
|
|
|
*)
|
|
|
|
DLZ_ADD_DRIVER(LDAP, dlz_ldap_driver,
|
|
|
|
[-I$use_dlz_ldap/include],
|
|
|
|
- [-L$use_dlz_ldap/lib -lldap -llber])
|
|
|
|
+ [-L$use_dlz_ldap/${target_lib} -lldap -llber])
|
|
|
|
|
|
|
|
AC_MSG_RESULT(
|
2008-07-11 10:16:21 +00:00
|
|
|
[using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include])
|
2014-10-02 12:14:01 +00:00
|
|
|
@@ -425,11 +432,11 @@ then
|
|
|
|
odbcdirs="/usr /usr/local /usr/pkg"
|
|
|
|
for d in $odbcdirs
|
|
|
|
do
|
|
|
|
- if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
|
|
|
|
+ if test -f $d/include/sql.h -a -f $d/${target_lib}/libodbc.a
|
|
|
|
then
|
|
|
|
use_dlz_odbc=$d
|
|
|
|
dlz_odbc_include="-I$use_dlz_odbc/include"
|
|
|
|
- dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
|
|
|
|
+ dlz_odbc_libs="-L$use_dlz_odbc/${target_lib} -lodbc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|