diff --git a/ChangeLog b/ChangeLog index c9cbbe68..a619c27a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-03-17 Stepan Kasal + + * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of + AC_SUBST. + (_AC_PATH_PROG): Store the result to VARIABLE. + (AC_PATH_PROG): No need to set VARIABLE again. + 2006-03-17 Stepan Kasal * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests: diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4 index 008adb53..90c7ef82 100644 --- a/lib/autoconf/programs.m4 +++ b/lib/autoconf/programs.m4 @@ -122,7 +122,7 @@ fi # ----------------------------------------------------- AC_DEFUN([AC_CHECK_PROG], [_AC_CHECK_PROG($@) -AC_SUBST($1)dnl +AC_SUBST([$1])dnl ]) @@ -164,6 +164,7 @@ m4_ifvaln([$3], [ test -z "$ac_cv_path_$1" && ac_cv_path_$1="$3"])dnl ;; esac])dnl +$1=$ac_cv_path_$1 if test -n "$$1"; then AC_MSG_RESULT([$$1]) else @@ -176,7 +177,7 @@ fi # ----------------------------------------------------------------------- AC_DEFUN([AC_PATH_PROG], [_AC_PATH_PROG($@) -AC_SUBST([$1], [$ac_cv_path_$1])dnl +AC_SUBST([$1])dnl ])