diff options
-rw-r--r-- | m4/module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/module.c b/m4/module.c index ac1b58c7..07e33519 100644 --- a/m4/module.c +++ b/m4/module.c @@ -273,6 +273,10 @@ m4__module_open (m4 *context, const char *name, m4_obstack *obs) char *filepath = m4_path_search (context, name, suffixes); void *handle = NULL; + /* Use system module search path if m4_path_search fails. */ + if (!filepath) + filepath = xstrdup (name); + if (filepath) { handle = dlopen (filepath, RTLD_NOW|RTLD_GLOBAL); |