summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2015-11-17 14:55:09 +0100
committerFrancis Dupont <fdupont@isc.org>2015-11-17 14:55:09 +0100
commita555d1ab9ff099e4bf278ba416188b7491f51f7f (patch)
treea96633bd93e868f56dc99e5ef729716713191363 /configure
parentce29e695745f3a660f0a0cd9e43b4b1c41bb8276 (diff)
parent2830c4005906378b3f14bcb8c146a156268bc3dc (diff)
downloadisc-dhcp-a555d1ab9ff099e4bf278ba416188b7491f51f7f.tar.gz
Finished merge of rt39210 (--with-libbind fixes) (regen required)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 16 insertions, 7 deletions
diff --git a/configure b/configure
index 3325472b..661a3c72 100755
--- a/configure
+++ b/configure
@@ -627,6 +627,7 @@ LTLIBOBJS
LIBOBJS
LDAP_CFLAGS
LDAP_LIBS
+BINDDIR
ac_prefix_program
HAVE_ATF_FALSE
HAVE_ATF_TRUE
@@ -6644,7 +6645,7 @@ $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
fi
-libbind=
+BINDDIR=
# Check whether --with-libbind was given.
if test "${with_libbind+set}" = set; then :
@@ -6655,20 +6656,28 @@ fi
case "$use_libbind" in
yes)
- libbind="\${top_srcdir}/bind"
+ BINDDIR="\${top_srcdir}/bind"
;;
no)
- libbind="\${top_srcdir}/bind"
+ BINDDIR="\${top_srcdir}/bind"
;;
*)
- libbind="$use_libbind"
+ BINDDIR="$use_libbind"
if test ! -d "bind"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: empty bind directory" >&5
-$as_echo "$as_me: WARNING: empty bind directory" >&2;}
+ # no bind directory, create it with a fake Makefile.in
+ # (AC_CONFIG_FILES and top Makefile refer to it so
+ # it must exits)
+ mkdir bind
+ cat > bind/Makefile.in << EOF
+# placeholder
+all check clean distclean distdir install uninstall:
+
+EOF
fi
;;
esac
+
# OpenLDAP support.
# Check whether --with-ldap was given.
@@ -6976,7 +6985,7 @@ fi
CFLAGS="$CFLAGS $STD_CWARNINGS"
# Try to add the bind include directory
-CFLAGS="$CFLAGS -I$libbind/include"
+CFLAGS="$CFLAGS -I$BINDDIR/include"
case "$host" in
*-darwin*)