[Geany-devel] Geany 0.18 (configure.in) has hidden depends on 'which' utility.

Erik Southworth erik.southworth at xxxxx
Fri Sep 11 01:58:07 UTC 2009


Just a normal build: but a strange configure error did occur.

$$$

checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
configure: error: No C++ compiler not found. Please install a C++ compiler.

$$$

I found it's just a ``which`` in configure.in.

QQQ

# check for C++ compiler explicitly and fail if none is found, do this check
# after AC_PROG_CXX has set the CXX environment variable
which $CXX >/dev/null 2>&1
if test "x$?" != "x0"; then
    AC_MSG_ERROR([No C++ compiler not found. Please install a C++
compiler.])
fi

QQQ

I didn't know that the ``which`` utility was considered a compiler. :p

How about just using a shell builtin, ``hash``, ``type -P`` or just ``eval
$CXX --version`` as a test instead?

------------------------------------------------------------------
configure.in:18 : which $CXX >/dev/null 2>&1
configure.in:51 : GIT=`which git 2>/dev/null`
configure.in:60 : SVN=`which svn 2>/dev/null`
Found 3 matches for "which".

-- 
-Erik S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20090910/e6f343d5/attachment.html>


More information about the Devel mailing list