charon-tkm: Abort if gprbuild binary is not found
authorReto Buerki <reet@codelabs.ch>
Thu, 28 Nov 2013 08:37:55 +0000 (09:37 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 4 Dec 2013 09:42:03 +0000 (10:42 +0100)
configure.ac

index a3fb712..34836d6 100644 (file)
@@ -939,6 +939,9 @@ CFLAGS="$CFLAGS -include `pwd`/config.h"
 
 if test x$tkm = xtrue; then
        AC_PATH_PROG([GPRBUILD], [gprbuild], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
+       if test x$GPRBUILD = x; then
+               AC_MSG_ERROR([gprbuild not found])
+       fi
 fi
 
 if test x$coverage = xtrue; then