[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/4] AC_SITE_LOAD: add OS/2-specific initialization
From: |
KO Myung-Hun |
Subject: |
[PATCH 2/4] AC_SITE_LOAD: add OS/2-specific initialization |
Date: |
Mon, 22 Sep 2014 15:59:51 +0900 |
\ may be recognized as an escape character on some shells such as
pdksh. And the executables on OS/2 have .exe as an extension.
* lib/autoconf/general.m4 (AC_SITE_LOAD): Convert \ in PATH to /.
Add .exe to ac_executable_extensions.
---
lib/autoconf/general.m4 | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index 77f71d2..5a87d5e 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -1951,6 +1951,34 @@ do
|| AC_MSG_FAILURE([failed to load site script $ac_site_file])
fi
done
+
+if test -n "$OS2_SHELL"; then
+ # Backslashes into forward slashes:
+ # The following OS/2 specific code is performed AFTER config.site
+ # has been loaded to allow users to change their environment there.
+ # This strange code is necessary to deal with handling of backslashes by
+ # ksh.
+ ac_save_IFS="$IFS"
+ IFS="\\"
+ ac_TEMP_PATH=
+ for ac_dir in $PATH; do
+ IFS=$ac_save_IFS
+ if test -z "$ac_TEMP_PATH"; then
+ ac_TEMP_PATH="$ac_dir"
+ else
+ ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
+ fi
+ 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"
+ export ac_executable_extensions
+fi
])
--
1.7.3.2
- [PATCH 4/4] git-version-gen: remove cr as well, (continued)
- [PATCH 1/4] AC_CACHE_SAVE: treat x: as an absolute path as well, KO Myung-Hun, 2014/09/22
- [PATCH 2/4] AC_SITE_LOAD: add OS/2-specific initialization,
KO Myung-Hun <=
- Re: [PATCH 2/4] AC_SITE_LOAD: add OS/2-specific initialization, Eric Blake, 2014/09/22
- Re: [PATCH 2/4] AC_SITE_LOAD: add OS/2-specific initialization, KO Myung-Hun, 2014/09/22
- Re: [PATCH 2/4] AC_SITE_LOAD: add OS/2-specific initialization, Eric Blake, 2014/09/22
- Re: [PATCH 2/4] AC_SITE_LOAD: add OS/2-specific initialization, KO Myung-Hun, 2014/09/23
- Re: [PATCH 2/4] AC_SITE_LOAD: add OS/2-specific initialization, KO Myung-Hun, 2014/09/23
- Re: [PATCH 2/4] AC_SITE_LOAD: add OS/2-specific initialization, KO Myung-Hun, 2014/09/29