Commit da3d2105 authored by Dmitry Antipov's avatar Dmitry Antipov
Browse files

Fix and document recently introduced configuration options.

* configure.ac (--disable-features): Rename to --without-all.
(OPTION_DEFAULT_ON): Change to use with_features.
* INSTALL: Fix description.
* etc/NEWS: Mention --without-all and --enable-link-time-optimization.
parent 128a5c0d
2012-08-08 Dmitry Antipov <dmantipov@yandex.ru>
* configure.ac (--disable-features): Rename to --without-all.
(OPTION_DEFAULT_ON): Change to use with_features.
* INSTALL: Fix description.
2012-08-07 Dmitry Antipov <dmantipov@yandex.ru> 2012-08-07 Dmitry Antipov <dmantipov@yandex.ru>
* configure.ac: New option --disable-features. * configure.ac: New option --disable-features.
......
...@@ -319,19 +319,21 @@ systems which support that. ...@@ -319,19 +319,21 @@ systems which support that.
Use --without-sound to disable sound support. Use --without-sound to disable sound support.
Use --disable-features if you want to build a small executable with Use --without-all if you want to build a small executable with the minimal
the minimal dependencies on external libraries, at the cost dependencies on external libraries, at the cost of disabling most of the
of disabling most of the features that are normally enabled by default. features that are normally enabled by default. Using --without-all is
Using --disable-features is equivalent to: --without-sound --without-dbus equivalent to --without-sound --without-dbus --without-libotf
--without-libotf --without-selinux --without-xft --without-gsettings --without-selinux --without-xft --without-gsettings --without-gnutls
--without-gnutls --without-rsvg --without-xml2 --without-gconf --without-rsvg --without-xml2 --without-gconf --without-imagemagick
--without-imagemagick --without-m17n-flt --without-jpeg --without-tiff --without-m17n-flt --without-jpeg --without-tiff --without-gif
--without-gif --without-png --without-gpm. Note that --disable-features --without-png --without-gpm. Note that --without-all leaves X support
leaves X support enabled, and using the GTK2 or GTK3 toolkit creates a lot enabled, and using the GTK2 or GTK3 toolkit creates a lot of library
of library dependencies. So if you want to build a small executable with dependencies. So if you want to build a small executable with very basic
very basic X support, use --disable-features --with-x-toolkit=no. X support, use --without-all --with-x-toolkit=no. For the smallest possible
For the smallest possible executable without X, use --disable-features executable without X, use --without-all --without-x. If you want to build
--without-x. with just a few features enabled, you can combine --without-all with
--with-FEATURE. For example, you can use --without-all --with-dbus
to build with DBus support and nothing more.
Use --with-wide-int to implement Emacs values with the type 'long long', Use --with-wide-int to implement Emacs values with the type 'long long',
even on hosts where a narrower type would do. With this option, on a even on hosts where a narrower type would do. With this option, on a
......
...@@ -48,13 +48,13 @@ archlibdir='${libexecdir}/emacs/${version}/${configuration}' ...@@ -48,13 +48,13 @@ archlibdir='${libexecdir}/emacs/${version}/${configuration}'
docdir='${datadir}/emacs/${version}/etc' docdir='${datadir}/emacs/${version}/etc'
gamedir='${localstatedir}/games/emacs' gamedir='${localstatedir}/games/emacs'
dnl Do not omit a lot of the nice features by default. dnl Special option to disable the most of other options.
AC_ARG_ENABLE(features, AC_ARG_WITH(all,
[AS_HELP_STRING([--disable-features], [AS_HELP_STRING([--without-all],
[omit almost all features and build [omit almost all features and build
small executable with minimal dependencies])], small executable with minimal dependencies])],
enable_features=$enableval, with_features=$withval,
enable_features=yes) with_features=yes)
dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING) dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING)
dnl Create a new --with option that defaults to being disabled. dnl Create a new --with option that defaults to being disabled.
...@@ -80,7 +80,7 @@ dnl non-alphanumeric characters with "_". ...@@ -80,7 +80,7 @@ dnl non-alphanumeric characters with "_".
dnl HELP-STRING is the help text for the option. dnl HELP-STRING is the help text for the option.
AC_DEFUN([OPTION_DEFAULT_ON], [dnl AC_DEFUN([OPTION_DEFAULT_ON], [dnl
AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[],[dnl AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[],[dnl
m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=$enable_features])dnl m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=$with_features])dnl
])dnl ])dnl
OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail]) OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail])
......
2012-08-08 Dmitry Antipov <dmantipov@yandex.ru>
* NEWS: Mention --without-all and --enable-link-time-optimization.
2012-07-31 Jan Djärv <jan.h.d@swipnet.se> 2012-07-31 Jan Djärv <jan.h.d@swipnet.se>
* TODO (NS port): Add text about event loop. * TODO (NS port): Add text about event loop.
......
...@@ -23,6 +23,12 @@ so we will look at it and add it to the manual. ...@@ -23,6 +23,12 @@ so we will look at it and add it to the manual.
* Installation Changes in Emacs 24.2 * Installation Changes in Emacs 24.2
** New configure option '--without-all' to disable additonal features.
This disables most of the features that are normally enabled by default.
** New configure option '--enable-link-time-optimization' to utilize
an appropriate feature provided by GCC since version 4.5.0.
** New configure option '--enable-gcc-warnings', intended for developers. ** New configure option '--enable-gcc-warnings', intended for developers.
If building with GCC, this enables compile-time checks that warn about If building with GCC, this enables compile-time checks that warn about
possibly-questionable C code. On a recent GNU system there should be possibly-questionable C code. On a recent GNU system there should be
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment