[PATCH] 4.0: New build system doesn't allow custom config file locations

Tony Vroon tony at linx.net
Mon Sep 1 15:45:57 UTC 2008


Good afternoon,

The old build system allowed to customise the location of several key
configuration files through modifying variables such as _PATH_DHCPD_CONF
and _PATH_DHCLIENT_CONF.
This functionality appears to have been lost in the conversion to a
fully autotools-driven build system. The attached patch reintroduces it.
I'm open to comments. This will be used for downstream packaging.

Regards,
Tony V.
LINX IT

Signed-off-by: Tony Vroon <tony at linx.net>

diff -uNr dhcp-4.0.0.ORIG/configure.ac dhcp-4.0.0/configure.ac
--- dhcp-4.0.0.ORIG/configure.ac	2008-09-01 15:39:03.000000000 +0100
+++ dhcp-4.0.0/configure.ac	2008-09-01 16:07:44.000000000 +0100
@@ -140,6 +140,19 @@
 	AC_DEFINE_UNQUOTED([_PATH_DHCRELAY_PID], ["$withval"],
 			   [File for dhcrelay process information.]))
 
+AC_ARG_WITH(srv-cfg-file,
+	AC_HELP_STRING([--with-srv-cfg-file=PATH],
+		       [Configuration file for dhcpd
+		        (default is /etc/dhcpd.conf)]),
+	AC_DEFINE_UNQUOTED([_PATH_DHCPD_CONF], ["$withval"],
+			   [File for dhcpd configuration.]))
+AC_ARG_WITH(cli-cfg-file,
+	AC_HELP_STRING([--with-cli-cfg-file=PATH],
+		       [Configuration file for dhclient
+		        (default is /etc/dhclient.conf)]),
+	AC_DEFINE_UNQUOTED([_PATH_DHCLIENT_CONF], ["$withval"],
+			   [File for dhclient configuration.]))
+
 # figure out what IPv4 interface code to use
 AC_CHECK_HEADERS(linux/types.h)  # needed for linux/filter.h on old systems
 


More information about the dhcp-hackers mailing list