From 1285deb746735dd189c859b2090b580fddc2672e Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Fri, 21 Sep 2007 04:08:32 +0000 Subject: * Configure script detects 64bit distributions of MySQL. * Generated the configure script with cygwin's autoconf. You can re-generate the configure script by executing autoconf. To compile everything just execute these two commands: ./configure make git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11252 54d463be-8e91-2dee-dedb-b68131a5f0ec --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 080df746b..206de53f9 100644 --- a/configure.in +++ b/configure.in @@ -160,7 +160,7 @@ MYSQL_LIBS="" if test "$want_mysql" = "no" ; then AC_MSG_NOTICE([ignoring MySQL (optional)]) else - if test -z "$MYSQL_CONFIG_HOME" -o test; then + if test -z "$MYSQL_CONFIG_HOME"; then AC_PATH_PROG([MYSQL_CONFIG_HOME], [mysql_config], [no]) fi @@ -171,6 +171,9 @@ else MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --cflags`" MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`" AC_MSG_RESULT([yes ($MYSQL_VERSION)]) + if test -n "`$MYSQL_CONFIG_HOME --libs | grep -i '\-m64'`"; then + AC_MSG_ERROR([$MYSQL_CONFIG_HOME reported that MySQL was compiled in 64bit mode, please specify a 32bit distribution of MySQL with --with-mysql=... stopping]) + fi else AC_MSG_RESULT([no]) AC_MSG_NOTICE([disabling MySQL (optional)]) -- cgit v1.2.3-60-g2f50