]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
authorEric Blake <ebb9@byu.net>
Wed, 28 Jan 2009 16:11:43 +0000 (09:11 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 3 Feb 2009 16:37:53 +0000 (09:37 -0700)
* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
AC_DEFUN_ONCE, since this is a one-shot macro.
(AC_PROG_INSTALL): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/autoconf/programs.m4

index 3d1cea4d2270ef3659d141bc46e186d964bcff92..67b207ce7316f4da0c52f5e04d952c2c660eea97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-03  Eric Blake  <ebb9@byu.net>
+
+       Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
+       * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
+       AC_DEFUN_ONCE, since this is a one-shot macro.
+       (AC_PROG_INSTALL): Likewise.
+
 2009-02-03  Eric Blake  <ebb9@byu.net>
 
        Mention that packagers should not pre-set CFLAGS.
index 3f66ae32d6e6e7ea89c2600b41c2596dad990824..d12c0aeebce9d8ebc235e890b500f42b76fdfc83 100644 (file)
@@ -2,7 +2,8 @@
 # Checking for programs.
 
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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
@@ -544,7 +545,7 @@ m4_ifval([$3],
 # ---------------
 AN_MAKEVAR([INSTALL], [AC_PROG_INSTALL])
 AN_PROGRAM([install], [AC_PROG_INSTALL])
-AC_DEFUN([AC_PROG_INSTALL],
+AC_DEFUN_ONCE([AC_PROG_INSTALL],
 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
 AC_REQUIRE_AUX_FILE([install-sh])dnl
 # Find a good install program.  We prefer a C program (faster),
@@ -682,7 +683,7 @@ AC_SUBST(INSTALL_DATA)dnl
 # recognize any option.  It will interpret all options as
 # directories to create.
 AN_MAKEVAR([MKDIR_P], [AC_PROG_MKDIR_P])
-AC_DEFUN([AC_PROG_MKDIR_P],
+AC_DEFUN_ONCE([AC_PROG_MKDIR_P],
 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
 AC_REQUIRE_AUX_FILE([install-sh])dnl
 AC_MSG_CHECKING([for a thread-safe mkdir -p])