--- configure.org	2006-05-31 00:06:26.000000000 -0700
+++ configure	2006-06-01 18:08:54.000000000 -0700
@@ -6664,6 +6664,9 @@
 			elif test -f $withval/include/mysql.h; then
 				MYSQL_INCDIR=$withval/include
 				MYSQL_LIBDIR=$withval/lib
+			elif test -f $withval/include/mysql5/mysql/mysql.h; then
+				MYSQL_INCDIR=$withval/include/mysql5/mysql
+				MYSQL_LIBDIR=$withval/lib/mysql5/mysql
 			else
 			echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
