[prev in list] [next in list] [prev in thread] [next in thread] 

List:       autoconf
Subject:    Re: Mangled argument vector choking on spaces?
From:       "David A. Wheeler" <dwheeler () dwheeler ! com>
Date:       2015-01-05 22:17:07
Message-ID: E1Y8FxT-0006qG-8D () rmm6prod02 ! runbox ! com
[Download RAW message or body]

On Sat, 03 Jan 2015 15:37:14 -0800, Paul Eggert <eggert@cs.ucla.edu> wrote:

> David A. Wheeler wrote:
> > E.g. when using AC_CHECK_PROG to search for "sbcl", the generated makefile would say:
> > SBCL = sbcl
> 
> That's easy to do without changing Autoconf.  Put this in configure.ac:
> 
> AC_CHECK_PROG([SBCL], [sbcl], [sbcl], [false])

Fair point.  I've reflexively been using AC_PATH_PROG, but in my case AC_CHECK_PROG
is the better choice.

I think the autoconf documentation should encourage its users to *NOT* embed full pathnames
if they can avoid them, e.g., they should be encouraged to use AC_CHECK_PROG instead of
AC_PATH_PROG. Then spaces-in-directories would bite users (builders) less often.

It'd still be good to have a solution for spaces-in-directories.

--- David A. Wheeler


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic