tools: Take into account the executable extension when looking for tools in the path.
diff --git a/configure b/configure
index 1c42c9e..bcf67cf 100755
--- a/configure
+++ b/configure
@@ -3960,6 +3960,11 @@
 fi
 
 
+cat >>confdefs.h <<_ACEOF
+#define EXEEXT "$ac_exeext"
+_ACEOF
+
+
 case $host in
   *-darwin*)
     if test "x$enable_win64" = "xyes"