summaryrefslogtreecommitdiff
path: root/usr.sbin/unbound
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2015-01-05 13:27:34 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2015-01-05 13:27:34 +0000
commitecf05d4400d07a910e64003b7280a95a4bc32130 (patch)
tree5c3f0bb695b3877bf66d595976c9e67133a9c8df /usr.sbin/unbound
parent4cfc1d85df9499a64e32083de436a00e3e66719f (diff)
regen
Diffstat (limited to 'usr.sbin/unbound')
-rw-r--r--usr.sbin/unbound/configure25
1 files changed, 25 insertions, 0 deletions
diff --git a/usr.sbin/unbound/configure b/usr.sbin/unbound/configure
index bdfc14f2205..9855014fa41 100644
--- a/usr.sbin/unbound/configure
+++ b/usr.sbin/unbound/configure
@@ -733,6 +733,7 @@ UNBOUND_PIDFILE
UNBOUND_SHARE_DIR
UNBOUND_CHROOT_DIR
UNBOUND_RUN_DIR
+ub_conf_dir
ub_conf_file
EGREP
GREP
@@ -4047,6 +4048,30 @@ cat >>confdefs.h <<_ACEOF
#define CONFIGFILE "$hdr_config"
_ACEOF
+ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
+$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ub_conf_file" : 'X\(//\)[^/]' \| \
+ X"$ub_conf_file" : 'X\(//\)$' \| \
+ X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ub_conf_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
# Determine run, chroot directory and pidfile locations