cvs: php4 /ext/mysql config.m4
| From: | Jani Taskinen | Date: | Mon, 08 Jul 2002 15:31:01 +0000 |
| Subject: | cvs: php4 /ext/mysql config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12751@lists.php.net to get a copy of this message | ||
sniper Mon Jul 8 11:31:01 2002 EDT
Modified files:
/php4/ext/mysql config.m4
Log:
Fix shared build and made the logic of finding the socket location better.
Index: php4/ext/mysql/config.m4
diff -u php4/ext/mysql/config.m4:1.51 php4/ext/mysql/config.m4:1.52
--- php4/ext/mysql/config.m4:1.51 Mon Jun 10 20:18:34 2002
+++ php4/ext/mysql/config.m4 Mon Jul 8 11:31:01 2002
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.51 2002/06/11 00:18:34 sniper Exp $
+dnl $Id: config.m4,v 1.52 2002/07/08 15:31:01 sniper Exp $
dnl
sinclude(ext/mysql/libmysql/acinclude.m4)
@@ -33,31 +33,36 @@
break 2
fi
done
-
- AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, "$MYSQL_SOCK", [ ])
- AC_MSG_RESULT([$MYSQL_SOCK])
-])
+ if test -n "$MYSQL_SOCK"; then
+ AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, "$MYSQL_SOCK", [ ])
+ AC_MSG_RESULT([$MYSQL_SOCK])
+ else
+ AC_MSG_RESULT([no])
+ fi
+])
-PHP_ARG_WITH(mysql, for MySQL support,
-[ --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base directory.
- If unspecified, the bundled MySQL library will be used.], yes)
PHP_ARG_WITH(mysql-sock, for specified location of the MySQL UNIX socket,
[ --with-mysql-sock[=DIR] Location of the MySQL unix socket pointer.
If unspecified, the default locations are searched.])
+PHP_ARG_WITH(mysql, for MySQL support,
+[ --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base directory.
+ If unspecified, the bundled MySQL library will be used.], yes)
if test "$PHP_MYSQL" != "no"; then
AC_DEFINE(HAVE_MYSQL, 1, [Whether you have MySQL])
AC_MSG_CHECKING(for MySQL UNIX socket location)
- if test "$PHP_MYSQL_SOCK" != "no"; then
- MYSQL_SOCK=$PHP_MYSQL_SOCK
- AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, "$MYSQL_SOCK", [ ])
- AC_MSG_RESULT([$MYSQL_SOCK])
- else
+ if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK"
!= "yes"; then
+ MYSQL_SOCK=$PHP_MYSQL_SOCK
+ AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, "$MYSQL_SOCK", [ ])
+ AC_MSG_RESULT([$MYSQL_SOCK])
+ elif test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL_SOCK" =
"yes"; then
PHP_MYSQL_SOCKET_SEARCH
+ else
+ AC_MSG_RESULT([no])
fi
fi