provide a new ub_conf_dir variable, to be used in unbound-control-setup
authorsthen <sthen@openbsd.org>
Mon, 5 Jan 2015 13:27:28 +0000 (13:27 +0000)
committersthen <sthen@openbsd.org>
Mon, 5 Jan 2015 13:27:28 +0000 (13:27 +0000)
ok brad@, committed upstream (r3297)

usr.sbin/unbound/configure.ac

index 7e5da1a..9c6f752 100644 (file)
@@ -118,6 +118,8 @@ AC_ARG_WITH([conf_file],
 AC_SUBST(ub_conf_file)
 ACX_ESCAPE_BACKSLASH($ub_conf_file, hdr_config)
 AC_DEFINE_UNQUOTED(CONFIGFILE, ["$hdr_config"], [Pathname to the Unbound configuration file])
+ub_conf_dir=`AS_DIRNAME(["$ub_conf_file"])` 
+AC_SUBST(ub_conf_dir)
 
 # Determine run, chroot directory and pidfile locations
 AC_ARG_WITH(run-dir,