configure: Fix source tree detection to enable more warnings

Related: https://pagure.io/freeipa/issue/8351
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Peter Keresztes Schmidt authored and Florence Blanc-Renaud committed 2021-01-15 14:11:56 +01:00
1 parent f3f9672d52
commit 54b42f72fb
1 file changed
+1 -1
+1 -1
View File
@@ -455,7 +455,7 @@ AC_ARG_ENABLE(more-warnings,
[AC_HELP_STRING([--enable-more-warnings],
[Maximum compiler warnings])],
set_more_warnings="$enableval",[
if test -d $srcdir/../.hg; then
if test -d $srcdir/.git; then
set_more_warnings=yes
else
set_more_warnings=no