If you are going to compile bind from source, here is the config parameters listed in bind.spec from bind-9.2.4-28.0.1.el4.src.rpm:
Code:
cp -f /usr/share/libtool/config.{guess,sub} .
export CFLAGS="$RPM_OPT_FLAGS"
if pkg-config openssl ; then
export CFLAGS="$CFLAGS `pkg-config --cflags openssl`"
export CPPFLAGS="$CPPFLAGS `pkg-config --cflags-only-I openssl`"
export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
fi
export CFLAGS="$CFLAGS -g"
%configure --with-libtool --localstatedir=/var \
--enable-threads \
--enable-ipv6 \
--with-openssl=/usr
make