AM_CPPFLAGS = -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"'
AM_CFLAGS = $(LDAP_CFLAGS)
-noinst_LIBRARIES = libdhcp.@A@
+lib_@DHLIBS@ = libdhcp.@A@
libdhcp_@A@_SOURCES = alloc.c bpf.c comapi.c conflex.c ctrace.c dhcp4o6.c \
discover.c dispatch.c dlpi.c dns.c ethernet.c execute.c \
fddi.c icmp.c inet.c lpf.c memory.c nit.c ns_name.c \
LDAP_LIBS
BINDLT
A
+DHLIBS
INSTALL_BIND_FALSE
INSTALL_BIND_TRUE
HAVE_BINDDIR_FALSE
enableval=$enable_libtool; want_libtool="$enableval"
fi
-if test "$want_libtool" = "yes"; then
+
+
if test "$want_libtool" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5
$as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5
-$as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;}
- cd $srcdir; exec ./re-conf $ac_configure_args
- cd $srcdir; exec ./re-conf $ac_configure_args
- as_fn_error $? "Recovering failed" "$LINENO" 5
+ # dequote $ac_configure_args
+ eval "set my_configure_args $ac_configure_args"
+ shift
+ re_configure_args=
+ for a; do
+ re_configure_args="$re_configure_args $a"
+ done
+ cd $srcdir; exec ./re-conf $re_configure_args
as_fn_error $? "Recovering failed" "$LINENO" 5
fi
-fi
-A=a
+
+DHLIBS=LIBRARIES
A=a
+
+
# OpenLDAP support.
# Check whether --with-ldap was given.
AC_ARG_ENABLE(libtool,
AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]),
want_libtool="$enableval")
-if test "$want_libtool" = "yes"; then
+
+
if test "$want_libtool" = "yes"; then
AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
- AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
- cd $srcdir; exec ./re-conf $ac_configure_args
- cd $srcdir; exec ./re-conf $ac_configure_args
- AC_MSG_ERROR([Recovering failed])
+ # dequote $ac_configure_args
+ eval "set my_configure_args $ac_configure_args"
+ shift
+ re_configure_args=
+ for a; do
+ re_configure_args="$re_configure_args $a"
+ done
+ cd $srcdir; exec ./re-conf $re_configure_args
AC_MSG_ERROR([Recovering failed])
fi
-fi
-A=a
+
+DHLIBS=LIBRARIES
A=a
+
+AC_SUBST(DHLIBS)
AC_SUBST(A)
AC_SUBST(BINDLT)
# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
AC_USE_SYSTEM_EXTENSIONS
-AC_PROG_RANLIB
AC_PATH_PROG(AR, ar)
AC_SUBST(AR)
AC_ARG_ENABLE(libtool,
AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]),
want_libtool="$enableval")
+
if test "$want_libtool" = "no"; then
AC_MSG_ERROR([libtool configure is used but libtool is disabled?])
fi
+
+DHLIBS=LTLIBRARIES
A=la
BINDLT=--with-libtool
+
+
+AC_SUBST(DHLIBS)
AC_SUBST(A)
AC_SUBST(BINDLT)
# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
AC_USE_SYSTEM_EXTENSIONS
+@BEGIN WITHOUT LIBTOOL
AC_PROG_RANLIB
+@END WITHOUT LIBTOOL
AC_PATH_PROG(AR, ar)
AC_SUBST(AR)
AC_ARG_ENABLE(libtool,
AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]),
want_libtool="$enableval")
+
@BEGIN WITH LIBTOOL
if test "$want_libtool" = "no"; then
AC_MSG_ERROR([libtool configure is used but libtool is disabled?])
fi
+
+DHLIBS=LTLIBRARIES
A=la
BINDLT=--with-libtool
@END WITH LIBTOOL
+
@BEGIN WITHOUT LIBTOOL
if test "$want_libtool" = "yes"; then
AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
- cd $srcdir; exec ./re-conf $ac_configure_args
+ # dequote $ac_configure_args
+ eval "set my_configure_args $ac_configure_args"
+ shift
+ re_configure_args=
+ for a; do
+ re_configure_args="$re_configure_args $a"
+ done
+ cd $srcdir; exec ./re-conf $re_configure_args
AC_MSG_ERROR([Recovering failed])
fi
+
+DHLIBS=LIBRARIES
A=a
@END WITHOUT LIBTOOL
+
+AC_SUBST(DHLIBS)
AC_SUBST(A)
AC_SUBST(BINDLT)
AC_ARG_ENABLE(libtool,
AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]),
want_libtool="$enableval")
-if test "$want_libtool" = "yes"; then
+
+
if test "$want_libtool" = "yes"; then
AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
- AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
- cd $srcdir; exec ./re-conf $ac_configure_args
- cd $srcdir; exec ./re-conf $ac_configure_args
- AC_MSG_ERROR([Recovering failed])
+ # dequote $ac_configure_args
+ eval "set my_configure_args $ac_configure_args"
+ shift
+ re_configure_args=
+ for a; do
+ re_configure_args="$re_configure_args $a"
+ done
+ cd $srcdir; exec ./re-conf $re_configure_args
AC_MSG_ERROR([Recovering failed])
fi
-fi
-A=a
+
+DHLIBS=LIBRARIES
A=a
+
+AC_SUBST(DHLIBS)
AC_SUBST(A)
AC_SUBST(BINDLT)
bin_PROGRAMS = omshell
-lib_LIBRARIES = libdhcpctl.@A@
+lib_@DHLIBS@ = libdhcpctl.@A@
noinst_PROGRAMS = cltest
man_MANS = omshell.1 dhcpctl.3
EXTRA_DIST = $(man_MANS)
@BINDLIBISCCFGDIR@/libisccfg.@A@ \
@BINDLIBISCDIR@/libisc.@A@
-libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c
+libdhcpctl_@A@_SOURCES = dhcpctl.c callback.c remote.c
cltest_SOURCES = cltest.c
cltest_LDADD = libdhcpctl.@A@ ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \
-lib_LIBRARIES = libomapi.@A@
+lib_@DHLIBS@ = libomapi.@A@
noinst_PROGRAMS = svtest
libomapi_@A@_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
#!/bin/sh
#
-# Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
-# called by the configure place-holder
+# called by the legacy configure when libtool is enabled
cp configure.ac+lt configure.ac
-autoreconf -i && ./configure $*
+autoreconf -i
+echo Reconfiguring with $*
+./configure $*
AM_CPPFLAGS = -I..
-check_LIBRARIES = libt_api.@A@
+check_@DHLIBS@ = libt_api.@A@
libt_api_@A@_SOURCES = t_api.c t_api_dhcp.c
$escaped += 1;
next;
} else {
- print $line. "\n";
$included += 1;
}
}