X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=configure.in;h=f516395573078b480a44cf1a17f92bcbd5424eac;hp=939e96491ece60c47c300743957caa1ff84aa6fd;hb=a2098885df4a9df3bed183f1013676313b65765f;hpb=4724093b5726d891e49e07191b52a14db1b93ecd diff --git a/configure.in b/configure.in index 939e96491..f51639557 100644 --- a/configure.in +++ b/configure.in @@ -3,16 +3,21 @@ AC_SET_MAKE AC_PROG_INSTALL dnl -dnl Apparently, if you run a shell window in Emacs, it sets the EMACS -dnl environment variable to 't'. Lets undo the damage. +dnl Apparently, if you run a shell window or a term window in Emacs, +dnl it sets the EMACS environment variable to 't' or a version number +dnl of Emacs. Lets undo the damage. dnl -if test "${EMACS}" = "t"; then +if test "${EMACS}" = "t" -o -n "${INSIDE_EMACS}"; then EMACS="" fi -AC_ARG_WITH(xemacs,[ --with-xemacs Use XEmacs to build], +AC_ARG_WITH(xemacs, + [AS_HELP_STRING([[--with-xemacs[=PROG]]], + [use XEmacs to build (default: PROG=xemacs)])], [ if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi ]) -AC_ARG_WITH(emacs,[ --with-emacs Use Emacs to build], +AC_ARG_WITH(emacs, + [AS_HELP_STRING([[--with-emacs[=PROG]]], + [use Emacs to build (default: PROG=emacs)])], [ if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi ]) AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, no) @@ -21,13 +26,27 @@ AC_CHECK_PROG(EMACS, emacs, emacs, xemacs) AC_PATH_LISPDIR AC_PATH_ETCDIR AC_PATH_INFO_DIR -AC_CHECK_URL -AC_CHECK_W3 AC_SET_BUILD_FLAGS GNUS_CHECK_FONTS -AC_OUTPUT(Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile) +AC_PATH_PROG(GZIP_PROG, gzip) +AC_ARG_WITH(compress-install, + [AS_HELP_STRING([[--without-compress-install]], + [do not compress .el and .info files when installing.])], + [ if test "${withval}" = no; then + COMPRESS_INSTALL=no; + else + if test -n "${GZIP_PROG}"; then + COMPRESS_INSTALL=yes; + else + COMPRESS_INSTALL=no; + fi; + fi ], + [ if test -n "${GZIP_PROG}"; then + COMPRESS_INSTALL=yes; + else + COMPRESS_INSTALL=no; + fi ]) +AC_SUBST(COMPRESS_INSTALL) -ifelse(dnl Do not change this comment - arch-tag: 4fda042e-c632-45be-867f-4d90bc87746b -)dnl +AC_OUTPUT(Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile)