pike.git / src / modules / Mysql / configure.in

version» Context lines:

pike.git/src/modules/Mysql/configure.in:1:   # - # $Id: configure.in,v 1.23 2001/02/06 22:59:25 grubba Exp $ + # $Id: configure.in,v 1.24 2001/02/07 01:51:27 grubba Exp $   #   # Configure script for the mysql-module   #   # Henrik Grubbström   #      #   # NOTE:   # Prior to 3.20.0 After 3.20.0   # --------------------------------------------------------------
pike.git/src/modules/Mysql/configure.in:239:    else    AC_DEFINE(HAVE_MYSQL)       # Note: mysql_port and mysql_unix_port aren't functions, but that shouldn't matter    define([PIKE_CHECK_MYSQL_FUNC], [    changequote(<<, >>)dnl    define(<<AC_CV_NAME>>, translit(pike_cv_mysql_$1, [ *], [_p]))dnl    changequote([, ])dnl    AC_MSG_CHECKING(for $1)    AC_CACHE_VAL(AC_CV_NAME, [ -  AC_TRY_COMPILE([ +  AC_TRY_LINK([ + #ifdef HAVE_WINSOCK_H + #include <winsock.h> + #endif +    #ifdef HAVE_MYSQL_H   #include <mysql.h>   #else   #ifdef HAVE_MYSQL_MYSQL_H   #include <mysql/mysql.h>   #else   #error Need mysql.h headerfile!   #endif   #endif -  - #ifndef STDCALL - #define STDCALL - #endif /* STDCALL */ -  +     ], [    void (*foo__)() = (void (*)())&$1;    ], [AC_CV_NAME="yes"], [AC_CV_NAME="no"])    ])    if test "$AC_CV_NAME" = "yes"; then    AC_DEFINE(translit(HAVE_$1,[a-z],[A-Z]))    fi    AC_MSG_RESULT($AC_CV_NAME)    ])