AM_INIT_AUTOMAKE
+AS_IF(
+ [test "$(${srcdir}/scripts/version.sh --internal)" = "hg"],
+ [AM_SILENT_RULES],
+ [AM_SILENT_RULES([yes])])
+
+AS_IF(
+ [test $AM_DEFAULT_VERBOSITY -eq 0],
+ [SILENT_MAKEFLAGS="--no-print-directory -s"],
+ [SILENT_MAKEFLAGS=""])
+AC_SUBST([SILENT_MAKEFLAGS])
+
#----------------------------------------
# Prepare libtool
LT_PREREQ([2.2.6])
[install utilities to manage .config files (default=no)])])
AC_SUBST([enable_utils], [${enable_utils:-yes}])
+AC_ARG_ENABLE(
+ [L10n],
+ [AS_HELP_STRING(
+ [--disable-L10n],
+ [enable localisation (L10n) (default=auto)])])
+AC_SUBST([enable_L10n], [${enable_L10n:-yes}])
+
#----------------------------------------
# Options to selectively enable/disable frontends
# All are selected by default
#----------------------------------------
# Check for gettext, for the kconfig frontends
-[has_gettext=yes]
-AC_CHECK_HEADERS(
- [libintl.h],
- [ac_ct_gettext_hdr=$ac_header; break],
- [has_gettext=no])
+[has_gettext="$enable_L10n"]
+AS_IF(
+ [test "$has_gettext" = "yes"],
+ [AC_CHECK_HEADERS(
+ [libintl.h],
+ [ac_ct_gettext_hdr=$ac_header; break],
+ [has_gettext=no])])
AS_IF(
[test "$has_gettext" = "yes"],
[AC_CHECK_DECL(
LIBS_old="$LIBS"
LIBS=
AC_CHECK_HEADERS(
- [ncurses/ncurses.h ncurses/curses.h ncursesw/curses.h ncurses.h curses.h],
+ [ncursesw/curses.h ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h],
[CURSES_LOC=$ac_header; break])
AS_IF(
[test -z "$CURSES_LOC"],
AS_IF(
[test "$need_panel_menu" = "yes" -o "$need_panel_menu" = "auto"],
[AC_SUBST([ncurses_extra_LIBS])
+ AC_SUBST([ncurses_extra_CPPFLAGS])
+ AS_CASE(
+ [$CURSES_LOC],
+ [ncursesw/*],[ncurses_extra_CPPFLAGS="-I/usr/include/ncursesw"],
+ [ncurses/*],[ncurses_extra_CPPFLAGS="-I/usr/include/ncurses"])
LIBS_old="$LIBS"
LIBS=
AC_SEARCH_LIBS(