Branch: Tag:

2005-02-16

2005-02-16 16:53:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported SHUTDOWN_DEFAULT test from Pike 7.7.

Rev: src/modules/Mysql/configure.in:1.42

1:   # - # $Id: configure.in,v 1.41 2004/10/05 13:09:51 mast Exp $ + # $Id: configure.in,v 1.42 2005/02/16 16:53:43 grubba Exp $   #   # Configure script for the mysql-module   #
97:       AC_CHECK_HEADERS(winsock.h mysql.h mysql/mysql.h errmsg.h mysql/errmsg.h)    +  # Defines within headerfile + define([AC_CHECK_MYSQL_OPTIONS], + [ + AC_MSG_CHECKING(for $1) + AC_TRY_COMPILE([ + #ifdef HAVE_MYSQL_H + #include <mysql.h> + #else + #ifdef HAVE_MYSQL_MYSQL_H + #include <mysql/mysql.h> + #endif + #endif + ], [ + int tmp; + tmp = $1; + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_$1) + ], [ + AC_MSG_RESULT(no) + ])]) +  +  AC_CHECK_MYSQL_OPTIONS(SHUTDOWN_DEFAULT) +  +     # Mysql libs       pike_cv_mysql="unknown"