[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch] Support for Erlang tools and Erlang as a test language
From: |
Paul Eggert |
Subject: |
Re: [Patch] Support for Erlang tools and Erlang as a test language |
Date: |
Mon, 20 Feb 2006 11:55:20 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Romain Lenglet <address@hidden> writes:
> Please find another patch for the macros renaming, the new entry
> in NEWS, and for a file I forgot to modify (lib/freeze.mk).
Thanks. I installed them. In the future could you please send these
to address@hidden instead? I am CC'ing them to the list now,
so that others can see them.
2006-02-20 Romain Lenglet <address@hidden>
* NEWS: Add short description of new macros.
* lib/freeze.mk $(autoconf_m4f_dependencies): Add erlang.mk.
* lib/autoconf/erlang.m4: Rename macros to use AC_ prefix.
All uses changed.
(AC_ERLANG_PATH_ERLC): Renamed from ERLANG_PATH_ERLC.
(AC_ERLANG_NEED_ERLC): Renamed from ERLANG_NEED_ERLC.
(AC_ERLANG_PATH_ERL): Renamed from ERLANG_PATH_ERL.
(AC_ERLANG_NEED_ERL): Renamed from ERLANG_NEED_ERL.
(AC_ERLANG_CHECK_LIB): Renamed from ERLANG_CHECK_LIB.
(AC_ERLANG_SUBST_ROOT_DIR): Renamed from ERLANG_SUBST_ROOT_DIR.
(AC_ERLANG_SUBST_LIB_DIR): Renamed from ERLANG_SUBST_LIB_DIR.
(AC_ERLANG_SUBST_INSTALL_LIB_DIR):
Renamed from ERLANG_SUBST_INSTALL_LIB_DIR.
(AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR):
Renamed from ERLANG_SUBST_INSTALL_LIB_SUBDIR.
--- NEWS 15 Feb 2006 07:00:29 -0000 1.352
+++ NEWS 20 Feb 2006 19:45:32 -0000 1.353
@@ -78,6 +78,15 @@
** autoreconf
Supports --no-recursive now.
+** New macros to support Erlang/OTP.
+ New macros for configuring paths to Erlang tools and libraries:
+ AC_ERLANG_PATH_ERLC, AC_ERLANG_NEED_ERLC, AC_ERLANG_PATH_ERL,
+ AC_ERLANG_NEED_ERL, AC_ERLANG_CHECK_LIB, AC_ERLANG_SUBST_ROOT_DIR,
+ AC_ERLANG_SUBST_LIB_DIR.
+
+ New macros for configuring installation of Erlang libraries:
+ AC_ERLANG_SUBST_INSTALL_LIB_DIR, AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR.
+
* Major changes in Autoconf 2.59b
Released 2004-08-20, by Paul Eggert.
--- lib/freeze.mk 14 May 2005 07:00:39 -0000 1.12
+++ lib/freeze.mk 20 Feb 2006 19:45:32 -0000 1.13
@@ -1,6 +1,6 @@
## Freeze M4 files.
-## Copyright (C) 2002, 2004 Free Software Foundation, Inc.
+## Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -88,6 +88,7 @@ autoconf_m4f_dependencies = \
$(src_libdir)/autoconf/lang.m4 \
$(src_libdir)/autoconf/c.m4 \
$(src_libdir)/autoconf/fortran.m4 \
+ $(src_libdir)/autoconf/erlang.m4 \
$(src_libdir)/autoconf/functions.m4 \
$(src_libdir)/autoconf/headers.m4 \
$(src_libdir)/autoconf/types.m4 \
--- lib/autoconf/erlang.m4 20 Feb 2006 08:56:25 -0000 1.1
+++ lib/autoconf/erlang.m4 20 Feb 2006 19:45:33 -0000 1.2
@@ -47,9 +47,9 @@
# Written by Romain Lenglet.
-# ERLANG_PATH_ERLC([VALUE-IF-NOT-FOUND], [PATH])
+# AC_ERLANG_PATH_ERLC([VALUE-IF-NOT-FOUND], [PATH])
# ----------------------------------------------
-AC_DEFUN([ERLANG_PATH_ERLC],
+AC_DEFUN([AC_ERLANG_PATH_ERLC],
[AC_ARG_VAR([ERLC], [Erlang/OTP compiler command [autodetected]])dnl
if test -n "$ERLC"; then
AC_MSG_CHECKING([for erlc])
@@ -58,20 +58,20 @@ else
AC_PATH_TOOL(ERLC, erlc, [$1], [$2])
fi
AC_ARG_VAR([ERLCFLAGS], [Erlang/OTP compiler flags [none]])dnl
-])# ERLANG_PATH_ERLC
+])# AC_ERLANG_PATH_ERLC
-# ERLANG_NEED_ERLC([PATH])
+# AC_ERLANG_NEED_ERLC([PATH])
# ------------------------
-AC_DEFUN([ERLANG_NEED_ERLC],
-[ERLANG_PATH_ERLC([not found], [$1])
+AC_DEFUN([AC_ERLANG_NEED_ERLC],
+[AC_ERLANG_PATH_ERLC([not found], [$1])
if test "$ERLC" = "not found"; then
AC_MSG_ERROR([Erlang/OTP compiler (erlc) not found but required])
fi
-])# ERLANG_NEED_ERLC
+])# AC_ERLANG_NEED_ERLC
-# ERLANG_PATH_ERL([VALUE-IF-NOT-FOUND], [PATH])
+# AC_ERLANG_PATH_ERL([VALUE-IF-NOT-FOUND], [PATH])
# ---------------------------------------------
-AC_DEFUN([ERLANG_PATH_ERL],
+AC_DEFUN([AC_ERLANG_PATH_ERL],
[AC_ARG_VAR([ERL], [Erlang/OTP interpreter command [autodetected]])dnl
if test -n "$ERL"; then
AC_MSG_CHECKING([for erl])
@@ -79,16 +79,16 @@ if test -n "$ERL"; then
else
AC_PATH_TOOL(ERL, erl, [$1], [$2])[]dnl
fi
-])# ERLANG_PATH_ERL
+])# AC_ERLANG_PATH_ERL
-# ERLANG_NEED_ERL([PATH])
+# AC_ERLANG_NEED_ERL([PATH])
# -----------------------
-AC_DEFUN([ERLANG_NEED_ERL],
-[ERLANG_PATH_ERL([not found], [$1])
+AC_DEFUN([AC_ERLANG_NEED_ERL],
+[AC_ERLANG_PATH_ERL([not found], [$1])
if test "$ERL" = "not found"; then
AC_MSG_ERROR([Erlang/OTP interpreter (erl) not found but required])
fi
-])# ERLANG_NEED_ERL
+])# AC_ERLANG_NEED_ERL
@@ -175,7 +175,7 @@ AC_DEFUN([AC_LANG_PREPROC(Erlang)],
# ----------------------------
# Find the Erlang compiler. Must be AC_DEFUN'd to be AC_REQUIRE'able.
AC_DEFUN([AC_LANG_COMPILER(Erlang)],
-[AC_REQUIRE([ERLANG_PATH_ERLC])])
+[AC_REQUIRE([AC_ERLANG_PATH_ERLC])])
@@ -183,11 +183,11 @@ AC_DEFUN([AC_LANG_COMPILER(Erlang)],
dnl Macro for checking if an Erlang library is installed
-# ERLANG_CHECK_LIB(LIBRARY, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# AC_ERLANG_CHECK_LIB(LIBRARY, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
# -------------------------------------------------------------------
-AC_DEFUN([ERLANG_CHECK_LIB],
-[AC_REQUIRE([ERLANG_PATH_ERLC])[]dnl
-AC_REQUIRE([ERLANG_PATH_ERL])[]dnl
+AC_DEFUN([AC_ERLANG_CHECK_LIB],
+[AC_REQUIRE([AC_ERLANG_PATH_ERLC])[]dnl
+AC_REQUIRE([AC_ERLANG_PATH_ERL])[]dnl
AC_CACHE_CHECK([for Erlang/OTP '$1' library subdirectory],
[erlang_cv_lib_dir_$1],
[AC_LANG_PUSH(Erlang)[]dnl
@@ -212,17 +212,17 @@ AC_CACHE_CHECK([for Erlang/OTP '$1' libr
])
AC_SUBST([ERLANG_LIB_DIR_$1], [$erlang_cv_lib_dir_$1])
AS_IF([test "$erlang_cv_lib_dir_$1" = "not found"], [$3], [$2])
-])# ERLANG_CHECK_LIB
+])# AC_ERLANG_CHECK_LIB
dnl Determines the Erlang/OTP root directory
-# ERLANG_SUBST_ROOT_DIR
+# AC_ERLANG_SUBST_ROOT_DIR
# ---------------
-AC_DEFUN([ERLANG_SUBST_ROOT_DIR],
-[AC_REQUIRE([ERLANG_NEED_ERLC])[]dnl
-AC_REQUIRE([ERLANG_NEED_ERL])[]dnl
+AC_DEFUN([AC_ERLANG_SUBST_ROOT_DIR],
+[AC_REQUIRE([AC_ERLANG_NEED_ERLC])[]dnl
+AC_REQUIRE([AC_ERLANG_NEED_ERL])[]dnl
AC_CACHE_CHECK([for Erlang/OTP root directory],
[erlang_cv_root_dir],
[AC_LANG_PUSH(Erlang)[]dnl
@@ -237,13 +237,13 @@ AC_CACHE_CHECK([for Erlang/OTP root dire
AC_LANG_POP(Erlang)[]dnl
])
AC_SUBST([ERLANG_ROOT_DIR], [$erlang_cv_root_dir])
-])# ERLANG_SUBST_ROOT_DIR
+])# AC_ERLANG_SUBST_ROOT_DIR
-# ERLANG_SUBST_LIB_DIR
+# AC_ERLANG_SUBST_LIB_DIR
# ---------------
-AC_DEFUN([ERLANG_SUBST_LIB_DIR],
-[AC_REQUIRE([ERLANG_NEED_ERLC])[]dnl
-AC_REQUIRE([ERLANG_NEED_ERL])[]dnl
+AC_DEFUN([AC_ERLANG_SUBST_LIB_DIR],
+[AC_REQUIRE([AC_ERLANG_NEED_ERLC])[]dnl
+AC_REQUIRE([AC_ERLANG_NEED_ERL])[]dnl
AC_CACHE_CHECK([for Erlang/OTP library base directory],
[erlang_cv_lib_dir],
[AC_LANG_PUSH(Erlang)[]dnl
@@ -258,7 +258,7 @@ AC_CACHE_CHECK([for Erlang/OTP library b
AC_LANG_POP(Erlang)[]dnl
])
AC_SUBST([ERLANG_LIB_DIR], [$erlang_cv_lib_dir])
-])# ERLANG_SUBST_LIB_DIR
+])# AC_ERLANG_SUBST_LIB_DIR
dnl Directories for installing Erlang/OTP packages are separated from the
@@ -266,9 +266,9 @@ dnl directories determined by running th
dnl for building.
-# ERLANG_SUBST_INSTALL_LIB_DIR
+# AC_ERLANG_SUBST_INSTALL_LIB_DIR
# ---------------
-AC_DEFUN([ERLANG_SUBST_INSTALL_LIB_DIR],
+AC_DEFUN([AC_ERLANG_SUBST_INSTALL_LIB_DIR],
[AC_MSG_CHECKING([for Erlang/OTP library installation base directory])
AC_ARG_VAR([ERLANG_INSTALL_LIB_DIR],
[Erlang/OTP library installation base directory [LIBDIR/erlang/lib]])
@@ -278,13 +278,13 @@ else
AC_SUBST([ERLANG_INSTALL_LIB_DIR], ['${libdir}/erlang/lib'])
AC_MSG_RESULT([$libdir/erlang/lib])
fi
-])# ERLANG_SUBST_INSTALL_LIB_DIR
+])# AC_ERLANG_SUBST_INSTALL_LIB_DIR
-# ERLANG_SUBST_INSTALL_LIB_SUBDIR(PACKAGE_TARNAME, PACKAGE_VERSION)
+# AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR(PACKAGE_TARNAME, PACKAGE_VERSION)
# ---------------
-AC_DEFUN([ERLANG_SUBST_INSTALL_LIB_SUBDIR],
-[AC_REQUIRE([ERLANG_SUBST_INSTALL_LIB_DIR])[]dnl
+AC_DEFUN([AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR],
+[AC_REQUIRE([AC_ERLANG_SUBST_INSTALL_LIB_DIR])[]dnl
AC_MSG_CHECKING([for Erlang/OTP '$1' library installation subdirectory])
AC_ARG_VAR([ERLANG_INSTALL_LIB_DIR_$1],
[Erlang/OTP '$1' library installation subdirectory
[ERLANG_INSTALL_LIB_DIR/$1-$2]])
@@ -294,5 +294,5 @@ else
AC_SUBST([ERLANG_INSTALL_LIB_DIR_$1], ['${ERLANG_INSTALL_LIB_DIR}/$1-$2'])
AC_MSG_RESULT([$ERLANG_INSTALL_LIB_DIR/$1-$2])
fi
-])# ERLANG_SUBST_INSTALL_LIB_SUBDIR
+])# AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR