[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2-gary-AC_CONFIG_M4_DIR.patch
From: |
Akim Demaille |
Subject: |
Re: 2-gary-AC_CONFIG_M4_DIR.patch |
Date: |
Wed, 08 Oct 2003 10:54:25 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
> It would be nice to get this into the next release so that the other
> autotools can start using it...
Please, don't include the code below the signature...
| Index: ChangeLog
| from Gary V. Vaughan <address@hidden>
|
| * lib/autoconf/general.m4 (AC_CONFIG_M4_DIR): Stub out a macro
| that future autopoint/aclocal/automake/autoreconf will be able
| to trace to find where to install local m4 macros.
|
| Index: lib/autoconf/general.m4
| ===================================================================
| RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
| retrieving revision 1.818
| diff -u -p -u -r1.818 general.m4
| --- lib/autoconf/general.m4 26 Sep 2003 09:11:23 -0000 1.818
| +++ lib/autoconf/general.m4 7 Oct 2003 10:01:06 -0000
| @@ -1538,6 +1538,29 @@ AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])d
|
|
|
| +## ------------------------ ##
| +## Finding aclocal macros. ##
| +## ------------------------ ##
| +
| +
| +# AC_CONFIG_M4_DIR(DIR)
| +# ---------------------
| +# Declare directory containing additional macros for aclocal.
| +# DIR can be either absolute or relative to $srcdir.
| +AC_DEFUN([AC_CONFIG_M4_DIR],
| +[case $1 in
| + [[\\/]]* | ?:[[\\/]]* ) ac_m4_dir=$1 ;;
| + *) ac_m4_dir=$srcdir/$1 ;;
| +esac
| +if test -d "$ac_m4_dir"; then :
| +else
| + AC_MSG_ERROR([cannot find m4 directory \`$1'])
No need to quote the quote here.
| +fi
| +])# AC_CONFIG_M4_DIR
| +
| +
| +
| +
| ## ----------------------------------- ##
| ## Getting the canonical system type. ##
| ## ----------------------------------- ##
Please, install, document and NEWS :) But I would like to departure
from the "m4" presence (if I could change history, these guys would be
.ac too). I would prefer AC_CONFIG_MACRO_DIR, or
AC_CONFIG_AUTOCONF_DIR etc. And the variable name needs to be
documented too.