Bind `:key-type' and `:value-type' for old Emacsen.
[elisp/gnus.git-] / configure.in
index cf9ad75..e648a4e 100644 (file)
@@ -1,47 +1,11 @@
 AC_INIT(lisp/gnus.el)
+AC_DEFINE_GNUS_PRODUCT_NAME(t-gnus)
 AC_SET_MAKE
 AC_PROG_INSTALL
-
-XEMACS="xemacs"
-EMACS="emacs"
-AC_ARG_WITH(
-       xemacs,
-       [  --with-xemacs           Use XEmacs to build [XEMACS=xemacs]],
-       [ if test "${withval}" = "yes"; then
-               EMACS=${XEMACS};
-       elif test "${withval}" != "no"; then
-               XEMACS=${withval};
-               EMACS=${withval};
-       fi ])
-AC_SUBST(XEMACS)
-
-AC_ARG_WITH(
-       emacs,
-       [  --with-emacs            Use Emacs to build  [EMACS=emacs]],
-       [ if test "${withval}" != "yes" && test "${withval}" != "no"; then
-               EMACS=${withval};
-       fi ])
-AC_SUBST(EMACS)
-
 AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, no)
-
+AC_CHECK_EMACS
 AC_PATH_LISPDIR
-
 AC_CHECK_W3
-
-ADDITIONAL_LOAD_PATH=
-AC_ARG_WITH(
-       addpath,
-       [  --with-addpath=PATH     search Emacs-Lisp libraries with PATH
-                          use colons to separate directory names],
-       ADDITIONAL_LOAD_PATH=${with_addpath})
-AC_SUBST(ADDITIONAL_LOAD_PATH)
-
-PACKAGEDIR=
-AC_ARG_WITH(
-       packagedir,
-       [  --with-packagedir=DIR   package DIR for XEmacs [guessed]],
-       PACKAGEDIR=${with_packagedir})
-AC_SUBST(PACKAGEDIR)
-
+AC_PATH_PACKAGEDIR
+AC_ADD_LOAD_PATH
 AC_OUTPUT(Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile)