Add stdio.h to mysql link test
authorwarlord <warlord@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 7 Oct 2003 19:24:21 +0000 (19:24 +0000)
committerwarlord <warlord@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 7 Oct 2003 19:24:21 +0000 (19:24 +0000)
Fix mysql link "test"

git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@709 cb58f699-b61c-0410-a6fe-9272a202ed29

configure.ac

index 0b83fbe..64b17c4 100644 (file)
@@ -667,14 +667,15 @@ if test "$found_mysql" = yes ; then
       LIBS="$LIBS $MYSQL_LIBS"
       AC_MSG_CHECKING(if we can link againt mysql)
       AC_TRY_LINK(
-        [#include <mysql.h>],
+        [#include <mysql.h>
+        #include <stdio.h>],
         [mysql_server_init(0, NULL, NULL)],
        [have_mysql_libs=yes],
        [have_mysql_libs=no])
       LIBS="$save_LIBS"
 
       if test "$have_mysql_libs" = no ; then
-         if "$mysql_enabled" = "yes" ; then
+         if test "$mysql_enabled" = "yes" ; then
             AC_MSG_ERROR([unable to link with MySQL Embedded Server Library])
         else
            AC_MSG_RESULT(no.  skipping MySQL)