autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_PATH_PROG breaks with $PATH in $4.


From: Roger Leigh
Subject: AC_PATH_PROG breaks with $PATH in $4.
Date: 15 Sep 2002 17:29:46 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

I have the following code in a configure.ac:


AC_MSG_WARN([PATH=$PATH])

if test x${BUILD_FOOMATIC} = xyes ; then
  AC_PATH_PROG([FOOMATIC_KITLOAD], [foomatic-kitload], ,
               [$PATH:/usr/sbin:/usr/local/sbin])
  if test -z "$FOOMATIC_KITLOAD" ; then
    AC_MSG_WARN(Cannot find foomatic-kitload; attempt to install foomatic data 
will fail)
  fi
fi


When I use this (with autoconf 2.53), the macro fails:

configure: WARNING: PATH=/bin:/usr/bin
checking for foomatic-kitload... no
configure: WARNING: Cannot find foomatic-kitload; attempt to install foomatic 
data will fail

but if I remove the $PATH: from the AC_PATH_PROG call, it works:

configure: WARNING: PATH=/bin:/usr/bin
checking for foomatic-kitload... /usr/sbin/foomatic-kitload

This happens whatever PATH is, e.g. bin:/usr/bin, or
~/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

AC_PATH_PROG is used in this way in the autoconf manual.  Is this a
bug in autoconf, or am I doing something wrong?


Thanks,
Roger

-- 
Roger Leigh
                ** Registration Number: 151826, http://counter.li.org **
                Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848 available on public keyservers




reply via email to

[Prev in Thread] Current Thread [Next in Thread]