Posted to tcl by kbk at Sun Dec 28 20:48:39 GMT 2008view pretty
TDBCMYSQL_SAVED_CPPFLAGS="${CPPFLAGS}" AC_ARG_WITH(mysql-includedir, AC_HELP_STRING([--with-mysql-includedir], [directory where MySQL header files reside]), with_mysqlincludedir=${withval}) if test x"${with_mysqlincludedir}" != x ; then AC_MSG_WARN(mysql includes in ${with_mysqlincludedir}) CPPFLAGS="${CPPFLAGS} -I\"${with_mysqlincludedir}\"" MYSQL_INCLUDE_SPEC="-I\"${with_mysqlincludedir}\"" fi AC_MSG_WARN(looking for mysql.h with ${CPPFLAGS}) AC_CHECK_HEADER(mysql.h, AC_MSG_WARN(OK), AC_MSG_ERROR("cannot find a working mysql.h")) CPPFLAGS="${TDBCMYSQL_SAVED_CPPLFAGS}" TEA_ADD_INCLUDES([${MYSQL_INCLUDE_SPEC}]) ---- configure: WARNING: mysql includes in /opt/lampp/include/mysql configure: WARNING: looking for mysql.h with -I"/opt/lampp/include/mysql" checking mysql.h usability... no checking mysql.h presence... no checking for mysql.h... no configure: error: "cannot find a working mysql.h"