* aclang.m4: Use m4_copy to duplicate macros.

(AC_LANG_PUSH): In order to have AC_LANG's simplifications
effective, be sure to let _AC_LANG be the old language before
calling AC_LANG.
This commit is contained in:
Akim Demaille 2001-01-11 10:06:39 +00:00
parent 86ac9c829a
commit 616dba6d84
6 changed files with 33 additions and 26 deletions

View File

@ -1,3 +1,10 @@
2001-01-11 Akim Demaille <akim@epita.fr>
* aclang.m4: Use m4_copy to duplicate macros.
(AC_LANG_PUSH): In order to have AC_LANG's simplifications
effective, be sure to let _AC_LANG be the old language before
calling AC_LANG.
2000-12-25 Pavel Roskin <proski@gnu.org> 2000-12-25 Pavel Roskin <proski@gnu.org>
* autoreconf.sh: s/localddir/localdir/. * autoreconf.sh: s/localddir/localdir/.

View File

@ -126,7 +126,7 @@ _AC_LANG_DISPATCH([$0], _AC_LANG, $@)])])
# ------------------ # ------------------
# Save the current language, and use LANG. # Save the current language, and use LANG.
m4_define([AC_LANG_PUSH], m4_define([AC_LANG_PUSH],
[m4_pushdef([_AC_LANG])dnl [m4_pushdef([_AC_LANG], m4_defn([_AC_LANG]))dnl
AC_LANG([$1])]) AC_LANG([$1])])
@ -431,31 +431,31 @@ $1])
# AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY]) # AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY])
# ---------------------------------------- # ----------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)])) m4_copy([AC_LANG_PROGRAM(C)], [AC_LANG_PROGRAM(C++)])
# AC_LANG_CALL(C++)(PROLOGUE, FUNCTION) # AC_LANG_CALL(C++)(PROLOGUE, FUNCTION)
# ------------------------------------- # -------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)])) m4_copy([AC_LANG_CALL(C)], [AC_LANG_CALL(C++)])
# AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION) # AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION)
# ------------------------------------ # ------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)])) m4_copy([AC_LANG_FUNC_LINK_TRY(C)], [AC_LANG_FUNC_LINK_TRY(C++)])
# AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION) # AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION)
# --------------------------------------------------- # ---------------------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)])) m4_copy([AC_LANG_BOOL_COMPILE_TRY(C)], [AC_LANG_BOOL_COMPILE_TRY(C++)])
# AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION) # AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION)
# ------------------------------------------- # -------------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)])) m4_copy([AC_LANG_INT_SAVE(C)], [AC_LANG_INT_SAVE(C++)])

View File

@ -126,7 +126,7 @@ _AC_LANG_DISPATCH([$0], _AC_LANG, $@)])])
# ------------------ # ------------------
# Save the current language, and use LANG. # Save the current language, and use LANG.
m4_define([AC_LANG_PUSH], m4_define([AC_LANG_PUSH],
[m4_pushdef([_AC_LANG])dnl [m4_pushdef([_AC_LANG], m4_defn([_AC_LANG]))dnl
AC_LANG([$1])]) AC_LANG([$1])])
@ -431,31 +431,31 @@ $1])
# AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY]) # AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY])
# ---------------------------------------- # ----------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)])) m4_copy([AC_LANG_PROGRAM(C)], [AC_LANG_PROGRAM(C++)])
# AC_LANG_CALL(C++)(PROLOGUE, FUNCTION) # AC_LANG_CALL(C++)(PROLOGUE, FUNCTION)
# ------------------------------------- # -------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)])) m4_copy([AC_LANG_CALL(C)], [AC_LANG_CALL(C++)])
# AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION) # AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION)
# ------------------------------------ # ------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)])) m4_copy([AC_LANG_FUNC_LINK_TRY(C)], [AC_LANG_FUNC_LINK_TRY(C++)])
# AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION) # AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION)
# --------------------------------------------------- # ---------------------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)])) m4_copy([AC_LANG_BOOL_COMPILE_TRY(C)], [AC_LANG_BOOL_COMPILE_TRY(C++)])
# AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION) # AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION)
# ------------------------------------------- # -------------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)])) m4_copy([AC_LANG_INT_SAVE(C)], [AC_LANG_INT_SAVE(C++)])

View File

@ -126,7 +126,7 @@ _AC_LANG_DISPATCH([$0], _AC_LANG, $@)])])
# ------------------ # ------------------
# Save the current language, and use LANG. # Save the current language, and use LANG.
m4_define([AC_LANG_PUSH], m4_define([AC_LANG_PUSH],
[m4_pushdef([_AC_LANG])dnl [m4_pushdef([_AC_LANG], m4_defn([_AC_LANG]))dnl
AC_LANG([$1])]) AC_LANG([$1])])
@ -431,31 +431,31 @@ $1])
# AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY]) # AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY])
# ---------------------------------------- # ----------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)])) m4_copy([AC_LANG_PROGRAM(C)], [AC_LANG_PROGRAM(C++)])
# AC_LANG_CALL(C++)(PROLOGUE, FUNCTION) # AC_LANG_CALL(C++)(PROLOGUE, FUNCTION)
# ------------------------------------- # -------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)])) m4_copy([AC_LANG_CALL(C)], [AC_LANG_CALL(C++)])
# AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION) # AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION)
# ------------------------------------ # ------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)])) m4_copy([AC_LANG_FUNC_LINK_TRY(C)], [AC_LANG_FUNC_LINK_TRY(C++)])
# AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION) # AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION)
# --------------------------------------------------- # ---------------------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)])) m4_copy([AC_LANG_BOOL_COMPILE_TRY(C)], [AC_LANG_BOOL_COMPILE_TRY(C++)])
# AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION) # AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION)
# ------------------------------------------- # -------------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)])) m4_copy([AC_LANG_INT_SAVE(C)], [AC_LANG_INT_SAVE(C++)])

View File

@ -126,7 +126,7 @@ _AC_LANG_DISPATCH([$0], _AC_LANG, $@)])])
# ------------------ # ------------------
# Save the current language, and use LANG. # Save the current language, and use LANG.
m4_define([AC_LANG_PUSH], m4_define([AC_LANG_PUSH],
[m4_pushdef([_AC_LANG])dnl [m4_pushdef([_AC_LANG], m4_defn([_AC_LANG]))dnl
AC_LANG([$1])]) AC_LANG([$1])])
@ -431,31 +431,31 @@ $1])
# AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY]) # AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY])
# ---------------------------------------- # ----------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)])) m4_copy([AC_LANG_PROGRAM(C)], [AC_LANG_PROGRAM(C++)])
# AC_LANG_CALL(C++)(PROLOGUE, FUNCTION) # AC_LANG_CALL(C++)(PROLOGUE, FUNCTION)
# ------------------------------------- # -------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)])) m4_copy([AC_LANG_CALL(C)], [AC_LANG_CALL(C++)])
# AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION) # AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION)
# ------------------------------------ # ------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)])) m4_copy([AC_LANG_FUNC_LINK_TRY(C)], [AC_LANG_FUNC_LINK_TRY(C++)])
# AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION) # AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION)
# --------------------------------------------------- # ---------------------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)])) m4_copy([AC_LANG_BOOL_COMPILE_TRY(C)], [AC_LANG_BOOL_COMPILE_TRY(C++)])
# AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION) # AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION)
# ------------------------------------------- # -------------------------------------------
# Same as C. # Same as C.
m4_define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)])) m4_copy([AC_LANG_INT_SAVE(C)], [AC_LANG_INT_SAVE(C++)])

View File

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
.TH AUTORECONF "1" "December 2000" "GNU autoconf 2.49c" FSF .TH AUTORECONF "1" "January 2001" "GNU autoconf 2.49c" FSF
.SH NAME .SH NAME
autoreconf \- Update generated configuration files autoreconf \- Update generated configuration files
.SH SYNOPSIS .SH SYNOPSIS