]> arthur.barton.de Git - ngircd.git/commitdiff
configure: Only link "contrib/Debian" if it exists
authorAlexander Barton <alex@barton.de>
Sun, 26 Jan 2014 22:40:58 +0000 (23:40 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 19 Mar 2014 01:26:39 +0000 (02:26 +0100)
This isn't the case on "VPATH builds", for example.

(cherry picked from commit 14a84dfca57efeb744aa6219ca7776dc629871b7)

configure.ng

index ef5b956fdbec8cc72089b780bb2c733472a0a0c5..63389958265bdda627b7af31cbb6d5a48955e928 100644 (file)
@@ -673,7 +673,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 --