diff options
| -rw-r--r-- | configure.in | 78 |
1 files changed, 36 insertions, 42 deletions
diff --git a/configure.in b/configure.in index 4db05455ba8..c1c8c5cd0b9 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -42,25 +42,33 @@ gamedir='${localstatedir}/games/emacs' | |||
| 42 | 42 | ||
| 43 | gameuser=games | 43 | gameuser=games |
| 44 | 44 | ||
| 45 | AC_ARG_WITH(gcc, | 45 | dnl Autoconf is so much less fun under VMS, maybe |
| 46 | [ --without-gcc don't use GCC to compile Emacs if GCC is found]) | 46 | dnl because everything is less fun under VMS. --ttn |
| 47 | AC_ARG_WITH(pop, | 47 | AC_DEFUN([EMACS_ARG_Y],[dnl |
| 48 | [ --without-pop don't support POP mail retrieval with movemail], | 48 | AC_ARG_WITH([$1],[AS_HELP_STRING([--with-$1],[$2])],[$3],[$4])dnl |
| 49 | ])dnl | ||
| 50 | AC_DEFUN([EMACS_ARG_N],[dnl | ||
| 51 | AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[$3],[$4])dnl | ||
| 52 | ])dnl | ||
| 53 | |||
| 54 | EMACS_ARG_N([gcc],[don't use GCC to compile Emacs if GCC is found]) | ||
| 55 | |||
| 56 | EMACS_ARG_N([pop],[don't support POP mail retrieval with movemail], | ||
| 49 | [if test "$withval" = yes; then | 57 | [if test "$withval" = yes; then |
| 50 | AC_DEFINE(MAIL_USE_POP) | 58 | AC_DEFINE(MAIL_USE_POP) |
| 51 | else : | 59 | else : |
| 52 | fi], | 60 | fi], |
| 53 | AC_DEFINE(MAIL_USE_POP)) | 61 | AC_DEFINE(MAIL_USE_POP)) |
| 54 | AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl | 62 | AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl |
| 55 | AC_ARG_WITH(kerberos, | 63 | |
| 56 | [ --with-kerberos support Kerberos-authenticated POP], | 64 | EMACS_ARG_Y([kerberos],[support Kerberos-authenticated POP], |
| 57 | [if test "$withval" = yes; then | 65 | [if test "$withval" = yes; then |
| 58 | AC_DEFINE(KERBEROS) | 66 | AC_DEFINE(KERBEROS) |
| 59 | fi]) | 67 | fi]) |
| 60 | AH_TEMPLATE(KERBEROS, | 68 | AH_TEMPLATE(KERBEROS, |
| 61 | [Define to support Kerberos-authenticated POP mail retrieval.])dnl | 69 | [Define to support Kerberos-authenticated POP mail retrieval.])dnl |
| 62 | AC_ARG_WITH(kerberos5, | 70 | |
| 63 | [ --with-kerberos5 support Kerberos version 5 authenticated POP], | 71 | EMACS_ARG_Y([kerberos5],[support Kerberos version 5 authenticated POP], |
| 64 | [if test "${with_kerberos5+set}" = set; then | 72 | [if test "${with_kerberos5+set}" = set; then |
| 65 | if test "${with_kerberos+set}" != set; then | 73 | if test "${with_kerberos+set}" != set; then |
| 66 | with_kerberos=yes | 74 | with_kerberos=yes |
| @@ -68,21 +76,19 @@ AC_ARG_WITH(kerberos5, | |||
| 68 | fi | 76 | fi |
| 69 | AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) | 77 | AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) |
| 70 | fi]) | 78 | fi]) |
| 71 | AC_ARG_WITH(hesiod, | 79 | |
| 72 | [ --with-hesiod support Hesiod to get the POP server host], | 80 | EMACS_ARG_Y([hesiod],[support Hesiod to get the POP server host], |
| 73 | [if test "$withval" = yes; then | 81 | [if test "$withval" = yes; then |
| 74 | AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) | 82 | AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) |
| 75 | fi]) | 83 | fi]) |
| 76 | 84 | ||
| 77 | AC_ARG_WITH(sound, | 85 | EMACS_ARG_N([sound],[don't compile with sound support]) |
| 78 | [ --without-sound don't compile with sound support]) | ||
| 79 | 86 | ||
| 80 | dnl This should be the last --with option, because --with-x is | 87 | dnl This should be the last --with option, because --with-x is |
| 81 | dnl added later on when we find the path of X, and it's best to | 88 | dnl added later on when we find the path of X, and it's best to |
| 82 | dnl keep them together visually. | 89 | dnl keep them together visually. |
| 83 | AC_ARG_WITH(x-toolkit, | 90 | AC_ARG_WITH([x-toolkit],[AS_HELP_STRING([--with-x-toolkit=KIT], |
| 84 | [ --with-x-toolkit=KIT use an X toolkit | 91 | [use an X toolkit (KIT one of: yes, lucid, athena, motif, gtk, no)])], |
| 85 | (KIT = yes/lucid/athena/motif/gtk/no)], | ||
| 86 | [ case "${withval}" in | 92 | [ case "${withval}" in |
| 87 | y | ye | yes ) val=gtk ;; | 93 | y | ye | yes ) val=gtk ;; |
| 88 | n | no ) val=no ;; | 94 | n | no ) val=no ;; |
| @@ -98,33 +104,21 @@ this option's value should be `yes', `no', `lucid', `athena', `motif' or `gtk'. | |||
| 98 | esac | 104 | esac |
| 99 | with_x_toolkit=$val | 105 | with_x_toolkit=$val |
| 100 | ]) | 106 | ]) |
| 101 | AC_ARG_WITH(xpm, | 107 | |
| 102 | [ --with-xpm use -lXpm for displaying XPM images]) | 108 | EMACS_ARG_Y([xpm],[use -lXpm for displaying XPM images]) |
| 103 | AC_ARG_WITH(jpeg, | 109 | EMACS_ARG_Y([jpeg],[use -ljpeg for displaying JPEG images]) |
| 104 | [ --with-jpeg use -ljpeg for displaying JPEG images]) | 110 | EMACS_ARG_Y([tiff],[use -ltiff for displaying TIFF images]) |
| 105 | AC_ARG_WITH(tiff, | 111 | EMACS_ARG_Y([gif],[use -lgif (or -lungif) for displaying GIF images]) |
| 106 | [ --with-tiff use -ltiff for displaying TIFF images]) | 112 | EMACS_ARG_Y([png],[use -lpng for displaying PNG images]) |
| 107 | AC_ARG_WITH(gif, | 113 | EMACS_ARG_Y([gpm],[use -lgpm for mouse support on a GNU/Linux console]) |
| 108 | [ --with-gif use -lgif (or -lungif) for displaying GIF images]) | 114 | EMACS_ARG_Y([rsvg],[use -lrsvg-2 for displaying SVG images]) |
| 109 | AC_ARG_WITH(png, | 115 | EMACS_ARG_Y([gtk],[use GTK (same as --with-x-toolkit=gtk)]) |
| 110 | [ --with-png use -lpng for displaying PNG images]) | 116 | EMACS_ARG_Y([pkg-config-prog],[Path to pkg-config for finding GTK and librsvg]) |
| 111 | AC_ARG_WITH(gpm, | 117 | EMACS_ARG_N([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars]) |
| 112 | [ --with-gpm use -lgpm for mouse support on a GNU/Linux console]) | 118 | EMACS_ARG_N([xaw3d],[don't use Xaw3d]) |
| 113 | AC_ARG_WITH(rsvg, | 119 | EMACS_ARG_N([xim],[don't use X11 XIM]) |
| 114 | [ --with-rsvg use -lrsvg-2 for displaying SVG images]) | 120 | EMACS_ARG_N([carbon],[don't use Carbon GUI on Mac OS X]) |
| 115 | AC_ARG_WITH(gtk, | 121 | |
| 116 | [ --with-gtk use GTK (same as --with-x-toolkit=gtk)]) | ||
| 117 | AC_ARG_WITH(pkg-config-prog, | ||
| 118 | [ --with-pkg-config-prog Path to pkg-config to use for finding GTK and librsvg]) | ||
| 119 | AC_ARG_WITH(toolkit-scroll-bars, | ||
| 120 | [ --without-toolkit-scroll-bars | ||
| 121 | don't use Motif or Xaw3d scroll bars]) | ||
| 122 | AC_ARG_WITH(xaw3d, | ||
| 123 | [ --without-xaw3d don't use Xaw3d]) | ||
| 124 | AC_ARG_WITH(xim, | ||
| 125 | [ --without-xim don't use X11 XIM]) | ||
| 126 | AC_ARG_WITH(carbon, | ||
| 127 | [ --without-carbon don't use Carbon GUI on Mac OS X]) | ||
| 128 | AC_ARG_ENABLE(carbon-app, | 122 | AC_ARG_ENABLE(carbon-app, |
| 129 | [[ --enable-carbon-app[=DIR] [DIR=/Application] | 123 | [[ --enable-carbon-app[=DIR] [DIR=/Application] |
| 130 | specify install directory for Emacs.app on Mac OS X]], | 124 | specify install directory for Emacs.app on Mac OS X]], |