]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Detect .git directory and add debugging flags.
authorRoy Marples <roy@marples.name>
Thu, 23 Feb 2017 01:03:08 +0000 (01:03 +0000)
committerRoy Marples <roy@marples.name>
Thu, 23 Feb 2017 01:03:08 +0000 (01:03 +0000)
configure

index 42bd4eebb0a6e91daa5ae4aa4e718fb8831b0599..59b795937135f4a95d3397b8e3889e014f032f23 100755 (executable)
--- a/configure
+++ b/configure
@@ -355,6 +355,10 @@ if [ -z "$DEBUG" -a -f .fslckout ]; then
        printf "Found fossil checkout ... "
        DEBUG=yes
 fi
+if [ -z "$DEBUG" -a -d .git ]; then
+       printf "Found git checkout ... "
+       DEBUG=yes
+fi
 if [ -n "$DEBUG" -a "$DEBUG" != no -a "$DEBUG" != false ]; then
        echo "Adding debugging CFLAGS"
        cat <<EOF >>$CONFIG_MK