aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olson2008-01-23 03:43:32 +0000
committerMichael Olson2008-01-23 03:43:32 +0000
commit8b1de1b56a34249a9b948ee7f28d3a0aefbb38be (patch)
tree5c355eb74413f68cf2cb901015418e9ff875ab72
parentdfbe40f2145a3df3b4296aaefa3456bb46d19a3b (diff)
downloademacs-8b1de1b56a34249a9b948ee7f28d3a0aefbb38be.tar.gz
emacs-8b1de1b56a34249a9b948ee7f28d3a0aefbb38be.zip
Rename EMACS_ARG_Y to OPTION_DEFAULT_OFF, and EMACS_ARG_N to OPTION_DEFAULT_ON.
-rw-r--r--ChangeLog7
-rw-r--r--configure.in124
2 files changed, 73 insertions, 58 deletions
diff --git a/ChangeLog b/ChangeLog
index d019bf4f8cc..e324c06b45b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12008-01-23 Tom Tromey <tromey@redhat.com>
2
3 * configure.in (OPTION_DEFAULT_ON, OPTION_DEFAULT_OFF): New
4 macros.
5 (EMACS_ARG_Y, EMACS_ARG_N): Remove.
6 Update all users.
7
12008-01-21 Dan Nicolaescu <dann@ics.uci.edu> 82008-01-21 Dan Nicolaescu <dann@ics.uci.edu>
2 9
3 * config.guess, config.sub: Updated from master source. 10 * config.guess, config.sub: Updated from master source.
diff --git a/configure.in b/configure.in
index 00b219db21e..be7f5d0fed1 100644
--- a/configure.in
+++ b/configure.in
@@ -43,47 +43,63 @@ gamedir='${localstatedir}/games/emacs'
43 43
44gameuser=games 44gameuser=games
45 45
46dnl Autoconf is so much less fun under VMS, maybe 46dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING)
47dnl because everything is less fun under VMS. --ttn 47dnl Create a new --with option that defaults to being disabled.
48AC_DEFUN([EMACS_ARG_Y],[dnl 48dnl NAME is the base name of the option. The shell variable with_NAME
49AC_ARG_WITH([$1],[AS_HELP_STRING([--with-$1],[$2])],[$3],[$4])dnl 49dnl will be set to either the user's value (if the option is
50dnl specified; 'yes' for a plain --with-NAME) or to 'no' (if the
51dnl option is not specified). Note that the shell variable name is
52dnl constructed as autoconf does, by replacing non-alphanumeric
53dnl characters with "_".
54dnl HELP-STRING is the help text for the option.
55AC_DEFUN([OPTION_DEFAULT_OFF], [dnl
56 AC_ARG_WITH([$1],[AS_HELP_STRING([--with-$1],[$2])],[],[dnl
57 m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=no])dnl
50])dnl 58])dnl
51AC_DEFUN([EMACS_ARG_N],[dnl 59
52AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[$3],[$4])dnl 60dnl OPTION_DEFAULT_ON(NAME, HELP-STRING)
61dnl Create a new --with option that defaults to being enabled. NAME
62dnl is the base name of the option. The shell variable with_NAME
63dnl will be set either to 'no' (for a plain --without-NAME) or to
64dnl 'yes' (if the option is not specified). Note that the shell
65dnl variable name is constructed as autoconf does, by replacing
66dnl non-alphanumeric characters with "_".
67dnl HELP-STRING is the help text for the option.
68AC_DEFUN([OPTION_DEFAULT_ON], [dnl
69 AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[],[dnl
70 m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=yes])dnl
53])dnl 71])dnl
54 72
55EMACS_ARG_N([gcc],[don't use GCC to compile Emacs if GCC is found]) 73OPTION_DEFAULT_ON([gcc],[don't use GCC to compile Emacs if GCC is found])
56 74
57EMACS_ARG_N([pop],[don't support POP mail retrieval with movemail], 75OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail])
58[if test "$withval" = yes; then 76if test "$with_pop" = yes; then
59 AC_DEFINE(MAIL_USE_POP) 77 AC_DEFINE(MAIL_USE_POP)
60else : 78fi
61fi],
62AC_DEFINE(MAIL_USE_POP))
63AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl 79AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl
64 80
65EMACS_ARG_Y([kerberos],[support Kerberos-authenticated POP], 81OPTION_DEFAULT_OFF([kerberos],[support Kerberos-authenticated POP])
66[if test "$withval" = yes; then 82if test "$with_kerberos" = yes; then
67 AC_DEFINE(KERBEROS) 83 AC_DEFINE(KERBEROS)
68fi]) 84fi
69AH_TEMPLATE(KERBEROS, 85AH_TEMPLATE(KERBEROS,
70 [Define to support Kerberos-authenticated POP mail retrieval.])dnl 86 [Define to support Kerberos-authenticated POP mail retrieval.])dnl
71 87
72EMACS_ARG_Y([kerberos5],[support Kerberos version 5 authenticated POP], 88OPTION_DEFAULT_OFF([kerberos5],[support Kerberos version 5 authenticated POP])
73[if test "${with_kerberos5+set}" = set; then 89if test "${with_kerberos5}" = yes; then
74 if test "${with_kerberos+set}" != set; then 90 if test "${with_kerberos}" != yes; then
75 with_kerberos=yes 91 with_kerberos=yes
76 AC_DEFINE(KERBEROS) 92 AC_DEFINE(KERBEROS)
77 fi 93 fi
78 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) 94 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.])
79fi]) 95fi
80 96
81EMACS_ARG_Y([hesiod],[support Hesiod to get the POP server host], 97OPTION_DEFAULT_OFF([hesiod],[support Hesiod to get the POP server host])
82[if test "$withval" = yes; then 98if test "$with_hesiod" = yes; then
83 AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) 99 AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.])
84fi]) 100fi
85 101
86EMACS_ARG_N([sound],[don't compile with sound support]) 102OPTION_DEFAULT_ON([sound],[don't compile with sound support])
87 103
88dnl This should be the last --with option, because --with-x is 104dnl This should be the last --with option, because --with-x is
89dnl added later on when we find the path of X, and it's best to 105dnl added later on when we find the path of X, and it's best to
@@ -106,20 +122,28 @@ this option's value should be `yes', `no', `lucid', `athena', `motif' or `gtk'.
106 with_x_toolkit=$val 122 with_x_toolkit=$val
107]) 123])
108 124
109EMACS_ARG_Y([xpm],[use -lXpm for displaying XPM images]) 125OPTION_DEFAULT_OFF([xpm],[use -lXpm for displaying XPM images])
110EMACS_ARG_Y([jpeg],[use -ljpeg for displaying JPEG images]) 126OPTION_DEFAULT_OFF([jpeg],[use -ljpeg for displaying JPEG images])
111EMACS_ARG_Y([tiff],[use -ltiff for displaying TIFF images]) 127OPTION_DEFAULT_OFF([tiff],[use -ltiff for displaying TIFF images])
112EMACS_ARG_Y([gif],[use -lgif (or -lungif) for displaying GIF images]) 128OPTION_DEFAULT_OFF([gif],[use -lgif (or -lungif) for displaying GIF images])
113EMACS_ARG_Y([png],[use -lpng for displaying PNG images]) 129OPTION_DEFAULT_OFF([png],[use -lpng for displaying PNG images])
114EMACS_ARG_Y([gpm],[use -lgpm for mouse support on a GNU/Linux console]) 130OPTION_DEFAULT_OFF([gpm],[use -lgpm for mouse support on a GNU/Linux console])
115EMACS_ARG_Y([rsvg],[use -lrsvg-2 for displaying SVG images]) 131OPTION_DEFAULT_OFF([rsvg],[use -lrsvg-2 for displaying SVG images])
116EMACS_ARG_Y([gtk],[use GTK (same as --with-x-toolkit=gtk)]) 132OPTION_DEFAULT_OFF([gtk],[use GTK (same as --with-x-toolkit=gtk)])
117EMACS_ARG_Y([pkg-config-prog],[Path to pkg-config for finding GTK and librsvg]) 133OPTION_DEFAULT_ON([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars])
118EMACS_ARG_N([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars]) 134OPTION_DEFAULT_ON([xaw3d],[don't use Xaw3d])
119EMACS_ARG_N([xaw3d],[don't use Xaw3d]) 135OPTION_DEFAULT_ON([xim],[don't use X11 XIM])
120EMACS_ARG_N([xim],[don't use X11 XIM]) 136OPTION_DEFAULT_ON([carbon],[don't use Carbon GUI on Mac OS X])
121EMACS_ARG_N([carbon],[don't use Carbon GUI on Mac OS X]) 137OPTION_DEFAULT_ON([dbus],[use D-Bus])
122EMACS_ARG_Y([dbus],[use D-Bus]) 138
139AC_ARG_WITH([pkg-config-prog],dnl
140 [AS_HELP_STRING([--with-pkg-config-prog=PATH],
141 [Path to pkg-config for finding GTK and librsvg])])
142if test "X${with_pkg_config_prog}" != X; then
143 if test "${with_pkg_config_prog}" != yes; then
144 PKG_CONFIG="${with_pkg_config_prog}"
145 fi
146fi
123 147
124AC_ARG_ENABLE(carbon-app, 148AC_ARG_ENABLE(carbon-app,
125[AS_HELP_STRING([--enable-carbon-app@<:@=DIR@:>@], 149[AS_HELP_STRING([--enable-carbon-app@<:@=DIR@:>@],
@@ -1089,9 +1113,7 @@ dnl also defines GSTUFF_PKG_ERRORS on error
1089AC_DEFUN([PKG_CHECK_MODULES], [ 1113AC_DEFUN([PKG_CHECK_MODULES], [
1090 succeeded=no 1114 succeeded=no
1091 1115
1092 if test -z "$PKG_CONFIG"; then 1116 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1093 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1094 fi
1095 1117
1096 if test "$PKG_CONFIG" = "no" ; then 1118 if test "$PKG_CONFIG" = "no" ; then
1097 ifelse([$4], , [AC_MSG_ERROR([ 1119 ifelse([$4], , [AC_MSG_ERROR([
@@ -1147,10 +1169,6 @@ if test "${with_sound}" != "no"; then
1147 1169
1148 ALSA_REQUIRED=1.0.0 1170 ALSA_REQUIRED=1.0.0
1149 ALSA_MODULES="alsa >= $ALSA_REQUIRED" 1171 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
1150 dnl Check if --with-pkg-config-prog has been given.
1151 if test "X${with_pkg_config_prog}" != X; then
1152 PKG_CONFIG="${with_pkg_config_prog}"
1153 fi
1154 PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) 1172 PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no)
1155 if test $HAVE_ALSA = yes; then 1173 if test $HAVE_ALSA = yes; then
1156 SAVE_CFLAGS="$CFLAGS" 1174 SAVE_CFLAGS="$CFLAGS"
@@ -1639,11 +1657,6 @@ fi
1639HAVE_RSVG=no 1657HAVE_RSVG=no
1640if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then 1658if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
1641 if test "${with_rsvg}" != "no"; then 1659 if test "${with_rsvg}" != "no"; then
1642 dnl Check if `--with-pkg-config-prog' has been given.
1643 if test "X${with_pkg_config_prog}" != X; then
1644 PKG_CONFIG="${with_pkg_config_prog}"
1645 fi
1646
1647 RSVG_REQUIRED=2.0.0 1660 RSVG_REQUIRED=2.0.0
1648 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" 1661 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
1649 1662
@@ -1674,10 +1687,6 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
1674 GTK_REQUIRED=2.6 1687 GTK_REQUIRED=2.6
1675 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" 1688 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
1676 1689
1677 dnl Check if --with-pkg-config-prog has been given.
1678 if test "X${with_pkg_config_prog}" != X; then
1679 PKG_CONFIG="${with_pkg_config_prog}"
1680 fi
1681 dnl Checks for libraries. 1690 dnl Checks for libraries.
1682 PKG_CHECK_MODULES(GTK, $GTK_MODULES, pkg_check_gtk=yes, pkg_check_gtk=no) 1691 PKG_CHECK_MODULES(GTK, $GTK_MODULES, pkg_check_gtk=yes, pkg_check_gtk=no)
1683 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 1692 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
@@ -1765,21 +1774,20 @@ dnl D-Bus has been tested under GNU/Linux only. Must be adapted for
1765dnl other platforms. Support for higher D-Bus versions but 1.0 is 1774dnl other platforms. Support for higher D-Bus versions but 1.0 is
1766dnl also not configured. 1775dnl also not configured.
1767HAVE_DBUS=no 1776HAVE_DBUS=no
1777AC_MSG_CHECKING([maybe dbus])
1768if test "${with_dbus}" = "yes"; then 1778if test "${with_dbus}" = "yes"; then
1769 PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, HAVE_DBUS=yes, HAVE_DBUS=no) 1779 PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, HAVE_DBUS=yes, HAVE_DBUS=no)
1770 if test "$HAVE_DBUS" = yes; then 1780 if test "$HAVE_DBUS" = yes; then
1771 AC_DEFINE(HAVE_DBUS, 1, [Define to 1 if using D-Bus.]) 1781 AC_DEFINE(HAVE_DBUS, 1, [Define to 1 if using D-Bus.])
1772 fi 1782 fi
1783 AC_MSG_RESULT($HAVE_DBUS)
1784else
1785 AC_MSG_RESULT(no bub)
1773fi 1786fi
1774 1787
1775### Link with -lXft if available to work around a bug. 1788### Link with -lXft if available to work around a bug.
1776HAVE_XFT=maybe 1789HAVE_XFT=maybe
1777if test "${HAVE_GTK}" = "yes"; then 1790if test "${HAVE_GTK}" = "yes"; then
1778 dnl Check if --with-pkg-config-prog has been given.
1779 if test "X${with_pkg_config_prog}" != X; then
1780 PKG_CONFIG="${with_pkg_config_prog}"
1781 fi
1782
1783 PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no) 1791 PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no)
1784 if test "$HAVE_XFT" != no; then 1792 if test "$HAVE_XFT" != no; then
1785 OLD_CFLAGS="$CPPFLAGS" 1793 OLD_CFLAGS="$CPPFLAGS"