about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configure.ng4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ng b/configure.ng
index 1e141c9f..5f85a4dd 100644
--- a/configure.ng
+++ b/configure.ng
@@ -676,7 +676,9 @@ if test $? -eq 0; then
 	# Generate debian/ link if the dpkg command exists
 	# (read: if we are running on a debian compatible system)
 	echo "creating Debian-specific links ..."
-	test -f debian/rules || ln -s contrib/Debian debian
+	if test ! -f debian/rules -a -f contrib/Debian/rules; then
+		ln -s contrib/Debian debian
+	fi
 fi
 
 # -- Result --