summaryrefslogtreecommitdiff
path: root/scripts/mysql_config.sh
diff options
context:
space:
mode:
authortsmith@ramayana.hindu.god <>2007-09-28 10:55:28 -0600
committertsmith@ramayana.hindu.god <>2007-09-28 10:55:28 -0600
commit37cbd6f7b46c2887aea61d32651fd97c67e09f5c (patch)
tree46cf13bd29c548d5b0f651877e446ba0be6c3513 /scripts/mysql_config.sh
parent7ef6e66bc67bcb003a02f0996fc37315a4f87429 (diff)
parentc22a4a71f633d3308e0b13d1884b7b4b08875542 (diff)
downloadmariadb-git-37cbd6f7b46c2887aea61d32651fd97c67e09f5c.tar.gz
Merge ramayana.hindu.god:/home/tsmith/m/bk/51
into ramayana.hindu.god:/home/tsmith/m/bk/maint/51
Diffstat (limited to 'scripts/mysql_config.sh')
-rw-r--r--scripts/mysql_config.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh
index 6b054e83720..ae58655ed0f 100644
--- a/scripts/mysql_config.sh
+++ b/scripts/mysql_config.sh
@@ -92,9 +92,14 @@ fix_path pkgincludedir include/mysql include
version='@VERSION@'
socket='@MYSQL_UNIX_ADDR@'
-port='@MYSQL_TCP_PORT@'
ldflags='@LDFLAGS@'
+if [ @MYSQL_TCP_PORT_DEFAULT@ -eq 0 ]; then
+ port=0
+else
+ port=@MYSQL_TCP_PORT@
+fi
+
# Create options
# We intentionally add a space to the beginning and end of lib strings, simplifies replace later
libs=" $ldflags -L$pkglibdir -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@"