[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
2-gary-AC_CONFIG_M4_DIR.patch
From: |
Gary V. Vaughan |
Subject: |
2-gary-AC_CONFIG_M4_DIR.patch |
Date: |
Tue, 07 Oct 2003 11:11:15 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3 |
It would be nice to get this into the next release so that the other autotools
can start using it...
Cheers,
Gary.
--
())_. Gary V. Vaughan gary@(lilith.warpmail.net|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \' `&
`(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/
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'])
+fi
+])# AC_CONFIG_M4_DIR
+
+
+
+
## ----------------------------------- ##
## Getting the canonical system type. ##
## ----------------------------------- ##
- 2-gary-AC_CONFIG_M4_DIR.patch,
Gary V. Vaughan <=