# Check for libpanel and libmenu, for the nconf frontend
AS_IF(
[test "$need_panel_menu" = "yes" -o "$need_panel_menu" = "auto"],
- [AC_SUBST([ncurses_extra_LIBS])
- AC_SUBST([ncurses_extra_CPPFLAGS])
+ [AC_SUBST([ncurses_nconf_CPPFLAGS])
+ AC_SUBST([ncurses_panel_menu_LIBS])
AS_CASE(
[$CURSES_LOC],
- [ncursesw/*],[ncurses_extra_CPPFLAGS="-I/usr/include/ncursesw"],
- [ncurses/*],[ncurses_extra_CPPFLAGS="-I/usr/include/ncurses"])
+ [ncursesw/*],[ncurses_nconf_CPPFLAGS="-I/usr/include/ncursesw"],
+ [ncurses/*],[ncurses_nconf_CPPFLAGS="-I/usr/include/ncurses"])
LIBS_old="$LIBS"
LIBS=
AC_SEARCH_LIBS(
[test "$need_panel_menu" = "yes"],
[AC_MSG_ERROR([could not find libmenu library (frontend: nconf)])],
[has_panel_menu=no])])
- ncurses_extra_LIBS="$LIBS"
+ ncurses_panel_menu_LIBS="$LIBS"
LIBS=$LIBS_old])
AS_IF(
bin_PROGRAMS = nconf
nconf_SOURCES = nconf.c nconf.gui.c nconf.h
-nconf_CPPFLAGS = $(AM_CPPFLAGS) \
- $(intl_CPPFLAGS) \
- $(ncurses_extra_CPPFLAGS) \
+nconf_CPPFLAGS = $(AM_CPPFLAGS) \
+ $(intl_CPPFLAGS) \
+ $(ncurses_nconf_CPPFLAGS) \
-I$(top_srcdir)/libs/parser
nconf_CFLAGS = $(AM_CFLAGS) \
$(kf_CFLAGS)
-nconf_LDADD = $(top_builddir)/libs/parser/libkconfig-parser.la \
- $(intl_LIBS) $(ncurses_extra_LIBS) $(ncurses_LIBS) \
+nconf_LDADD = $(top_builddir)/libs/parser/libkconfig-parser.la \
+ $(intl_LIBS) $(ncurses_panel_menu_LIBS) $(ncurses_LIBS) \
$(nconf_EXTRA_LIBS)