Skip to content
Snippets Groups Projects
Commit c121be20 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[configure] ensures that a plug-in does not hide another one in autoconf

turns out `m4_index` treats its first argument as one big string and not a
sequence of words. `m4_regexp` with words delimiters in the regexp is thus
better suited for the task.
parent 677941ae
No related branches found
No related tags found
No related merge requests found
...@@ -850,7 +850,7 @@ AC_ARG_ENABLE(external, ...@@ -850,7 +850,7 @@ AC_ARG_ENABLE(external,
]) ])
AC_FOREACH([__plugin],m4_esyscmd([ls src/plugins]), AC_FOREACH([__plugin],m4_esyscmd([ls src/plugins]),
[ m4_if(m4_index(KNOWN_SRC_DIRS,__plugin),[-1], [ m4_if(m4_regexp(KNOWN_SRC_DIRS,`\<__plugin\>'),[-1],
[ [
m4_define([plugin_dir],[src/plugins/__plugin]) m4_define([plugin_dir],[src/plugins/__plugin])
m4_syscmd(test -r plugin_dir/configure.in) m4_syscmd(test -r plugin_dir/configure.in)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment