* split m4.include/mc-with-screen.m4 file in two files: mc-with-screen-slang.m4 and mc-with-screen.m4
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
We have several AC_TRY_RUN's in the configure/m4 stuff,
which obviously breaks crosscompiling.
This changeset contain fixies for S-Lang library. First try to search
library via 'pkg-config slang' and then try to go in old search way.
Macro AC_TRY_RUN() now replaced by AC_RUN_IFELSE()
Also, next changes was made:
* Removed AC_TRY_RUN() from gmodule checking code.
* More accuracy in grepping of SLANG_VERSION defined constant
* avoid autoconf error 'suspicious presence of an AC_DEFINE in the second argument, where no actions should be taken'
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Fix issue:
Added additional check for this place.
Reason: If slang installed into /usr/local path, then ./configure
script stopped with 'Slang library not found' error
Also added new two options to configure script:
--with-slang-includes=PATH
--with-slang-libs=PATH
Now libslang finds in (by order):
* --with-slang-includes and --with-slang-libs
* /usr
* /usr/local
Signed-off-by: Slava Zanko <slavazanko@gmail.com>