[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: [patch] AC_PATH_EMACS



>> On Mon, 08 Jul 2002 06:23:41 +0900
>> okazaki@be.to (OKAZAKI Tetsurou) said as follows:

岡> パッチの内容は、aclocal.m4 のマクロ AC_CHECK_EMACS を copy & paste 
岡> して AC_PATH_EMACS というマクロを作り、その中で呼ばれている
岡> AC_CHECK_PRG(S) を AC_PATH_PROG(S) に置き換えているだけです。

要は,末尾のパッチのように変更しようと言うことですよね? autoconf の 
Info によれば,

info> -- Macro: AC_PATH_PROG (VARIABLE, PROG-TO-CHECK-FOR,
info>                         [VALUE-IF-NOT-FOUND], [PATH])
info>     `AC_CHECK_PROG'に似ていますが,見つかった場合,VARIABLEを 
info>     PROG-TO-CHECK-FORの完全なパスに設定します.

ということですから,大丈夫かなあと思いますが,どうでしょう?

-- 
土屋 雅稔  ( TSUCHIYA Masatoshi )

Index: aclocal.m4
===================================================================
RCS file: /storage/cvsroot/emacs-w3m/aclocal.m4,v
retrieving revision 1.9
diff -u -r1.9 aclocal.m4
--- aclocal.m4	2002/03/07 04:55:46	1.9
+++ aclocal.m4	2002/07/08 03:04:46
@@ -18,7 +18,7 @@
 fi
 ])
 
-AC_DEFUN(AC_CHECK_EMACS,
+AC_DEFUN(AC_PATH_EMACS,
  [dnl Check for Emacsen.
 
   dnl Apparently, if you run a shell window in Emacs, it sets the EMACS
@@ -31,18 +31,18 @@
   AC_ARG_WITH(emacs,
    [  --with-emacs=EMACS      compile with EMACS [EMACS=emacs, xemacs, mule...]],
    [if test "${withval}" = yes -o -z "${withval}"; then
-      AC_CHECK_PROGS(EMACS, emacs xemacs mule, emacs)
+      AC_PATH_PROGS(EMACS, emacs xemacs mule, emacs)
     else
-      AC_CHECK_PROG(EMACS, ${withval}, ${withval}, emacs)
+      AC_PATH_PROG(EMACS, ${withval}, ${withval}, emacs)
     fi])
   AC_ARG_WITH(xemacs,
    [  --with-xemacs=XEMACS    compile with XEMACS [XEMACS=xemacs]],
    [if test x$withval = xyes -o x$withval = x; then
-      AC_CHECK_PROG(EMACS, xemacs, xemacs, xemacs)
+      AC_PATH_PROG(EMACS, xemacs, xemacs, xemacs)
     else
-      AC_CHECK_PROG(EMACS, $withval, $withval, xemacs)
+      AC_PATH_PROG(EMACS, $withval, $withval, xemacs)
     fi])
-  test -z "${EMACS}" && AC_CHECK_PROGS(EMACS, emacs xemacs mule, emacs)
+  test -z "${EMACS}" && AC_PATH_PROGS(EMACS, emacs xemacs mule, emacs)
   AC_SUBST(EMACS)
   
   AC_MSG_CHECKING([what a flavor does ${EMACS} have])
Index: configure.in
===================================================================
RCS file: /storage/cvsroot/emacs-w3m/configure.in,v
retrieving revision 1.3
diff -u -r1.3 configure.in
--- configure.in	2001/03/16 12:00:27	1.3
+++ configure.in	2002/07/08 03:04:46
@@ -1,7 +1,7 @@
 AC_INIT(w3m.el)
 AC_SET_MAKE
 AC_PROG_INSTALL
-AC_CHECK_EMACS
+AC_PATH_EMACS
 AC_PATH_LISPDIR
 AC_PATH_PACKAGEDIR
 AC_PATH_ICONDIR