summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-02-23 01:03:08 +0000
committerRoy Marples <roy@marples.name>2017-02-23 01:03:08 +0000
commitc7840a56da475720248fbdc5b6ecee7c3b9df10b (patch)
tree506febc018a31997a80675f3c9ae633851092e6a /configure
parent180834ebb47576f664565a8270a91e5850a31aea (diff)
downloaddhcpcd-c7840a56da475720248fbdc5b6ecee7c3b9df10b.tar.xz
Detect .git directory and add debugging flags.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 42bd4eeb..59b79593 100755
--- 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