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

version» Context lines:

pike.git/src/modules/Mysql/configure.in:1:   # - # $Id: configure.in,v 1.13 2000/03/22 23:25:41 grubba Exp $ + # $Id: configure.in,v 1.14 2000/03/22 23:39:10 grubba Exp $   #   # Configure script for the mysql-module   # - # Henrik Grubbström + # Henrik Grubbstrm   #      #   # NOTE:   # Prior to 3.20.0 After 3.20.0   # --------------------------------------------------------------   # /usr/local/mysql/mach-lib-threads /usr/local/lib/mysql   # /usr/local/mysql/include /usr/local/include/mysql   # libmysql.a libmysqllib.a   # libstrings.a libmystrings.a
pike.git/src/modules/Mysql/configure.in:220:    # Note: mysql_port and mysql_unix_port aren't functions, but that shouldn't matter    AC_CHECK_FUNCS(mysql_real_query mysql_fetch_lengths mysql_port mysql_unix_port)    if test "$ac_cv_func_mysql_fetch_lengths" = "yes"; then    #    # In 3.20.6b mysql_fetch_lengths() returns an uint *.    # In 3.20.22 it returns an unsigned int *.    # In 3.22.23 it returns an unsigned long *.    #    AC_MSG_CHECKING([if mysql_fetch_lengths() returns an uint or an ulong])    AC_CACHE_VAL(pike_cv_mysql_fetch_lengths_ret_type, [ -  for ret_type in "unsigned long" "unsigned int" "long" "int"; do +  for ret_type in "unsigned long long" "unsigned long" "unsigned int" "long long" "long" "int"; do    AC_TRY_COMPILE([   #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 -  ], [ - $ret_type *mysql_fetch_lengths(MYSQL_RES *mysql) +  + #ifndef STDCALL + #define STDCALL + #endif /* STDCALL */ +  + $ret_type * STDCALL mysql_fetch_lengths(MYSQL_RES *mysql)   {    return 0;   } -  ], [ pike_cv_mysql_fetch_lengths_ret_type="$ret_type"; break; ]) +  ], [], [ pike_cv_mysql_fetch_lengths_ret_type="$ret_type"; break; ])    done    ])    if test "X$pike_cv_mysql_fetch_lengths_ret_type" = "X"; then    AC_MSG_RESULT(Unknown -- Defaulting to unsigned long)    AC_DEFINE(FETCH_LENGTHS_TYPE, unsigned long)    else    AC_MSG_RESULT($pike_cv_mysql_fetch_lengths_ret_type)    AC_DEFINE(FETCH_LENGTHS_TYPE, $pike_cv_mysql_fetch_lengths_ret_type)    fi    else :; fi    fi   fi      AC_SUBST(MYSQL_LIBS)      AC_OUTPUT(Makefile,echo FOO >stamp-h )