diff options
author | Paul Brook <paul@codesourcery.com> | 2005-07-06 20:12:53 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-07-06 20:12:53 +0000 |
commit | c42adccb1a99b85613384a3847264c3cc51a12d7 (patch) | |
tree | 0bb8c02cd9ebcb7d0c16fb9ab660584cd3d67047 /gcc/aclocal.m4 | |
parent | 6dfb90cf55f7a7abfcbe6a4bf80b38569cc2a8b6 (diff) | |
download | gcc-c42adccb1a99b85613384a3847264c3cc51a12d7.zip gcc-c42adccb1a99b85613384a3847264c3cc51a12d7.tar.gz gcc-c42adccb1a99b85613384a3847264c3cc51a12d7.tar.bz2 |
aclocal.m4: Work around a bug in AC_PATH_PROGS when its last argument is empty.
* aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
argument is empty.
* configure: Regenerate.
From-SVN: r101664
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r-- | gcc/aclocal.m4 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index da6e38a..6c12bfb4 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -711,7 +711,13 @@ dnl shut up useless "checking for..." messages dnl we can still read them in config.log exec AS_MESSAGE_FD([])>/dev/null if test "x[$]$1" = x; then - AC_PATH_PROGS($1, $2, , $gcc_cv_tool_dirs) + # The AC_PATH_PROGS macro doesn't work properly when its 4th argument + # is empty. + if test "x$gcc_cv_tool_dirs" = x; then + $1= + else + AC_PATH_PROGS($1, $2, , $gcc_cv_tool_dirs) + fi fi if test "x[$]$1" = x; then # If the loop above did not find a tool, then use whatever |