if capnproto is not installed on standard (/usr/local) location BUT appears on path, it is not correctly detected
following patch restore behaviour.
--- configure.ac.ori 2015-12-11 12:21:30.182591195 +0100
+++ configure.ac 2015-12-11 12:30:33.938425796 +0100
@@ -2,9 +2,14 @@
AC_ARG_WITH(capnp, [ --with-capnp=<path/to/capnp> Cap'n Proto install dir (default: /usr/local/)])
-if test "$with_capnp" == ""
+if test x"$with_capnp" == "x"
then
- with_capnp=/usr/local/
+ # no Cap'n Proto install dir specified check PATH
+ AC_CHECK_PROG(capnpCheck, capnp, "yes", "no")
+else
+ # use provided path
+ with_capnp=$with_capnp
+ AC_CHECK_PROG(capnpCheck, capnp, "yes", "no", $with_capnp/bin)
fi
AC_ARG_WITH(gsl, [ --with-gsl=<path/to/gsl> GNU Scientific Library install dir (default: /usr/local/)])
@@ -26,8 +31,6 @@
AC_MSG_ERROR([Zlib not found.])
fi
-AC_CHECK_PROG(capnpCheck, capnp, "yes", "no", $with_capnp/bin)
-
if test "$capnpCheck" != "yes"
then
AC_MSG_ERROR([Cap'n Proto compiler (capnp) not found.])