[PATCH 2/3] AC_SITE_LOAD: add '.exe' to ac_executable_extensions on OS/2

KO Myung-Hun <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.patches
Message-ID <[email protected]>
Many codes searching the executables depend on
ac_executable_extensions and $EXEEXT. But without this patch, the
searches fail.

* lib/autoconf/general.m4 (AC_SITE_LOAD): Add '.exe' to
ac_executable_extensions on OS/2.
---
 lib/autoconf/general.m4 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index c18b162..1773d46 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -1971,6 +1971,12 @@ if test -n "$OS2_SHELL"; then
   done
   export PATH="$ac_TEMP_PATH"
   unset ac_TEMP_PATH
+
+  # add .exe to ac_executable_extensions
+  if test -z "$ac_executable_extensions"; then
+    AC_MSG_WARN([ac_executable_extensions not set, assuming .exe])
+  fi
+  ac_executable_extensions="$ac_executable_extensions .exe"
 fi
 ])
 
-- 
1.8.5.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.