From 5a9190603dc7ab9bde12c2be3915949c537e2450 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 5 Mar 2013 00:03:10 +0100 Subject: [PATCH] configure: rename ncurses_EXTRA_CFLAGS ncurses_EXTRA_CFLAGS are actually used by nconf, so needs to be renamed to a more meaningful name. Signed-off-by: "Yann E. MORIN" --- configure.ac | 10 +++++----- frontends/nconf/Makefile.am | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index bf35786..f177892 100644 --- a/configure.ac +++ b/configure.ac @@ -291,12 +291,12 @@ AS_IF( # 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( @@ -321,7 +321,7 @@ AS_IF( [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( diff --git a/frontends/nconf/Makefile.am b/frontends/nconf/Makefile.am index 32096ab..90a6154 100644 --- a/frontends/nconf/Makefile.am +++ b/frontends/nconf/Makefile.am @@ -1,12 +1,12 @@ 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) -- 2.39.5