From: Yann E. MORIN" Date: Mon, 4 Mar 2013 22:42:10 +0000 (+0100) Subject: configure: introduce mconf-specific ncurses CPPFLAGS X-Git-Tag: v3.9.0.0~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63c59ab32f2485871eb7a85995a4970d8748ae34;p=kconfig-frontends configure: introduce mconf-specific ncurses CPPFLAGS Use that to pass the CURSES_LOC definition. Signed-off-by: "Yann E. MORIN" --- diff --git a/configure.ac b/configure.ac index f177892..4e02c50 100644 --- a/configure.ac +++ b/configure.ac @@ -257,13 +257,13 @@ AC_SUBST([intl_LIBS]) # Check for ncurses, for the mconf & nconf frontends AS_IF( [test "$need_curses" = "yes" -o "$need_curses" = "auto"], - [AC_SUBST([CURSES_LOC]) + [AC_SUBST([ncurses_mconf_CPPFLAGS]) AC_SUBST([ncurses_LIBS]) LIBS_old="$LIBS" LIBS= AC_CHECK_HEADERS( [ncursesw/curses.h ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h], - [CURSES_LOC=$ac_header; break]) + [CURSES_LOC=$ac_header; ncurses_mconf_CPPFLAGS=-DCURSES_LOC=\\\"$ac_header\\\"; break]) AS_IF( [test -z "$CURSES_LOC"], [AS_IF( diff --git a/frontends/mconf/Makefile.am b/frontends/mconf/Makefile.am index 39bb77b..5ea3c48 100644 --- a/frontends/mconf/Makefile.am +++ b/frontends/mconf/Makefile.am @@ -2,7 +2,7 @@ bin_PROGRAMS = mconf mconf_SOURCES = mconf.c mconf_CPPFLAGS = $(AM_CPPFLAGS) \ - -DCURSES_LOC='"$(CURSES_LOC)"' \ + ${ncurses_mconf_CPPFLAGS} \ $(intl_CPPFLAGS) \ -I$(top_srcdir)/libs \ -I$(top_srcdir)/libs/parser diff --git a/libs/lxdialog/Makefile.am b/libs/lxdialog/Makefile.am index 271b220..73b084e 100644 --- a/libs/lxdialog/Makefile.am +++ b/libs/lxdialog/Makefile.am @@ -9,7 +9,7 @@ libkconfig_lxdialog_a_SOURCES = \ util.c \ yesno.c -libkconfig_lxdialog_a_CPPFLAGS = $(AM_CPPFLAGS) \ - -DCURSES_LOC='"${CURSES_LOC}"' \ +libkconfig_lxdialog_a_CPPFLAGS = $(AM_CPPFLAGS) \ + ${ncurses_mconf_CPPFLAGS} \ $(intl_CPPFLAGS) liblxdialog_a_CFLAGS = $(AM_CFLAGS) $(kf_CFLAGS)