mirror of
https://github.com/HEYAHONG/kconfig-frontends.git
synced 2025-05-09 02:01:14 +08:00
configure: effectively deactivate gettext if missing
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
3b3e3c3c92
commit
a7fd37ae24
@ -55,7 +55,7 @@ AC_SUBST([AM_YFLAGS], ["-t -l -p zconf"])
|
||||
|
||||
#----------------------------------------
|
||||
# Check for gettext, for the kconfig frontends
|
||||
AC_SUBST([gettext])
|
||||
AC_SUBST([GETTEXT])
|
||||
AC_CHECK_HEADERS(
|
||||
[libintl.h],
|
||||
[ac_ct_gettext_hdr=$ac_header; break],
|
||||
@ -63,8 +63,9 @@ AC_CHECK_HEADERS(
|
||||
AS_IF(
|
||||
[test -n "$ac_ct_gettext_hdr"],
|
||||
[AC_CHECK_DECL(
|
||||
[gettext],[gettext=y],
|
||||
[AC_MSG_WARN([gettext is missing, frontends will not be localised])],
|
||||
[gettext],,
|
||||
[AC_MSG_WARN([gettext is missing, frontends will not be localised])
|
||||
GETTEXT=-DKBUILD_NO_NLS],
|
||||
[#include <$ac_ct_gettext_hdr>])])
|
||||
|
||||
#----------------------------------------
|
||||
|
@ -1,5 +1,7 @@
|
||||
bin_PROGRAMS = conf
|
||||
|
||||
conf_SOURCES = conf.c
|
||||
conf_CPPFLAGS = $(AM_CPPFLAGS) -I../../parser
|
||||
conf_CPPFLAGS = $(AM_CPPFLAGS) \
|
||||
$(GETTEXT) \
|
||||
-I../../parser
|
||||
conf_LDADD = ../../parser/libkconfigparser.a
|
||||
|
@ -1,5 +1,8 @@
|
||||
bin_PROGRAMS = mconf
|
||||
|
||||
mconf_SOURCES = mconf.c
|
||||
mconf_CPPFLAGS = $(AM_CPPFLAGS) -I../../parser -DCURSES_LOC='"${CURSES_LOC}"'
|
||||
mconf_CPPFLAGS = $(AM_CPPFLAGS) \
|
||||
-DCURSES_LOC='"${CURSES_LOC}"' \
|
||||
$(GETTEXT) \
|
||||
-I../../parser
|
||||
mconf_LDADD = ../../parser/libkconfigparser.a ../../lxdialog/liblxdialog.a
|
||||
|
@ -1,5 +1,7 @@
|
||||
bin_PROGRAMS = nconf
|
||||
|
||||
nconf_SOURCES = nconf.c nconf.gui.c nconf.h
|
||||
nconf_CPPFLAGS = $(AM_CPPFLAGS) -I../../parser
|
||||
nconf_CPPFLAGS = $(AM_CPPFLAGS) \
|
||||
$(GETTEXT) \
|
||||
-I../../parser
|
||||
nconf_LDADD = ../../parser/libkconfigparser.a -lmenu -lpanel
|
||||
|
@ -9,4 +9,6 @@ liblxdialog_a_SOURCES = \
|
||||
util.c \
|
||||
yesno.c
|
||||
|
||||
liblxdialog_a_CPPFLAGS = $(AM_CPPFLAGS) -DCURSES_LOC='"${CURSES_LOC}"'
|
||||
liblxdialog_a_CPPFLAGS = $(AM_CPPFLAGS) \
|
||||
-DCURSES_LOC='"${CURSES_LOC}"' \
|
||||
$(GETTEXT)
|
||||
|
@ -10,6 +10,9 @@ dist_EXTRA_libkconfigparser_a_SOURCES = \
|
||||
|
||||
BUILT_SOURCES = hconf.c lconf.c
|
||||
|
||||
# Can't use libkconfigparser_a_CPPFLAGS, as it breaks dependencies
|
||||
yconf.o: CPPFLAGS+=$(GETTEXT)
|
||||
|
||||
.gperf.c:
|
||||
$(GPERF) -t --output-file $@ -a -C -E -g -k 1,3,$$ -p -t $<
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user