From 4e9147c19130312b6ae4e93d7982393b78dbfc3b Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Thu, 20 Nov 2014 22:09:03 +0000 Subject: 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 --- configure.ac | 7 +++++++ m4/path.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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]) ## ---------------- ## diff --git a/m4/path.c b/m4/path.c index 0858cfdf..6f47ff6b 100644 --- a/m4/path.c +++ b/m4/path.c @@ -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 == '/') -- cgit v1.2.1