[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r1543 - trunk/utils/m4

Jakob Schlyter jakob at kirei.se
Mon Aug 10 13:15:52 CEST 2009


Author: jakob
Date: 2009-08-10 13:15:52 +0200 (Mon, 10 Aug 2009)
New Revision: 1543

Modified:
   trunk/utils/m4/acx_mysql.m4
   trunk/utils/m4/acx_sqlite3.m4
Log:
make sure command line tool is executable

Modified: trunk/utils/m4/acx_mysql.m4
===================================================================
--- trunk/utils/m4/acx_mysql.m4	2009-08-10 11:03:57 UTC (rev 1542)
+++ trunk/utils/m4/acx_mysql.m4	2009-08-10 11:15:52 UTC (rev 1543)
@@ -12,9 +12,11 @@
 			AC_PATH_PROGS(MYSQL_CONFIG, mysql_config, mysql_config, $PATH)
 			AC_PATH_PROGS(MYSQL, mysql, mysql)
 		])
-	if test -z "$MYSQL"; then
-		AC_MSG_ERROR([mysql not found])
+
+	if ! test -x "$MYSQL"; then
+		AC_MSG_ERROR([mysql command not found])
 	fi
+
 	if test -x "$MYSQL_CONFIG"
 	then
 		AC_MSG_CHECKING(mysql version)

Modified: trunk/utils/m4/acx_sqlite3.m4
===================================================================
--- trunk/utils/m4/acx_sqlite3.m4	2009-08-10 11:03:57 UTC (rev 1542)
+++ trunk/utils/m4/acx_sqlite3.m4	2009-08-10 11:15:52 UTC (rev 1543)
@@ -12,6 +12,11 @@
 			AC_PATH_PROGS(SQLITE3, sqlite3, sqlite3, $PATH)
 		])
 	
+	
+	if ! test -x "$SQLITE3"; then
+		AC_MSG_ERROR([sqlite3 command not found])
+	fi
+	
 	AC_MSG_CHECKING(what are the SQLite3 includes)
 	SQLITE3_INCLUDES="-I$SQLITE3_PATH/include"
 	AC_MSG_RESULT($SQLITE3_INCLUDES)




More information about the Opendnssec-commits mailing list