diff options
author | Gary V. Vaughan <gary@gnu.org> | 2014-11-20 22:09:03 +0000 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2014-11-20 22:16:31 +0000 |
commit | 4e9147c19130312b6ae4e93d7982393b78dbfc3b (patch) | |
tree | 387fbd5d311678abb9350ee7c630900bc10b2759 | |
parent | 1117977cc5c466546f155bacb82e9dd9a2f5b049 (diff) | |
download | m4-4e9147c19130312b6ae4e93d7982393b78dbfc3b.tar.gz |
modules: support non-posix PATH_SEPARATOR.
* configure.ac (PATH_SEPARATOR): Propagate to config.h.
* m4/path.c (search_path_env_init): Respect PATH_SEPARATOR.
Reported by KO Myung-Hun
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | m4/path.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f43a412f..d4fffd62 100644 --- a/configure.ac +++ b/configure.ac @@ -204,7 +204,14 @@ AC_MSG_RESULT([$use_modules]) AC_SUBST([DLPREOPEN]) AC_SUBST([PREOPEN_DEPENDENCIES]) + +## ------------------------------- ## +## Dynamic Loader Characteristics. ## +## ------------------------------- ## + LT_FUNC_DLSYM_USCORE +AC_DEFINE_UNQUOTED([PATH_SEPARATOR], ['$PATH_SEPARATOR'], + [Define this to system search path delimiter]) ## ---------------- ## @@ -101,7 +101,7 @@ search_path_env_init (m4__search_path_info *info, char *path, bool isabs) do { - path_end = strchr (path, ':'); + path_end = strchr (path, PATH_SEPARATOR); if (path_end) *path_end = '\0'; if (!isabs || *path == '/') |