2012-04-13 17:16:23 +02:00
|
|
|
dnl ---- configure.ac for gb.ncurses
|
|
|
|
|
2014-04-05 23:22:43 +02:00
|
|
|
m4_include([../version.m4])
|
|
|
|
AC_INIT(gambas3-gb-ncurses, GB_VERSION, GB_MAIL, [], GB_URL)
|
2012-04-13 17:16:23 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2014-04-05 23:22:43 +02:00
|
|
|
|
2012-04-13 17:16:23 +02:00
|
|
|
GB_INIT(gb.ncurses)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2020-04-08 17:58:55 +02:00
|
|
|
# Most distributions I have seen apparently provide the ncurses and panel
|
|
|
|
# pkg-config files (which may be synonymous with ncursesw and panelw for
|
|
|
|
# wide-character support). Solus only provides the *w versions.
|
|
|
|
#
|
|
|
|
# We should prefer linking with the wide-character version but still
|
|
|
|
# allow to compile on systems that don't have ncursesw pkg-config files.
|
|
|
|
pkg-config --silence-errors --exists ncursesw panelw
|
|
|
|
if test $? -eq "0"
|
|
|
|
then gb_ncurses_pkgconfig_names="ncursesw panelw"
|
|
|
|
else gb_ncurses_pkgconfig_names="ncurses panel"
|
|
|
|
fi
|
|
|
|
|
2018-08-24 23:50:47 +02:00
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
2012-05-18 03:19:15 +02:00
|
|
|
ncurses, NCURSES, gb.ncurses, [src],
|
2020-04-08 17:58:55 +02:00
|
|
|
$gb_ncurses_pkgconfig_names)
|
2018-08-24 23:50:47 +02:00
|
|
|
|
2012-04-13 17:16:23 +02:00
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
|
|
|
src/Makefile \
|
|
|
|
)
|
|
|
|
|
|
|
|
GB_PRINT_MESSAGES
|