diff options
author | monty@hundin.mysql.fi <> | 2002-01-18 00:43:50 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-01-18 00:43:50 +0200 |
commit | 89fa5f13d9d26f5232c3068ab67878a02804b91a (patch) | |
tree | 76a38a24a1fef179359cc94ec33e00e09f3ac3ad /scripts/mysql_config.sh | |
parent | 89f8ca058e3c548fa23b7a4aeb5662425d3d83b0 (diff) | |
download | mariadb-git-89fa5f13d9d26f5232c3068ab67878a02804b91a.tar.gz |
Fixed bug when making a range join based on information from a const table.
Diffstat (limited to 'scripts/mysql_config.sh')
-rw-r--r-- | scripts/mysql_config.sh | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh index af11957576b..9320efdd2a1 100644 --- a/scripts/mysql_config.sh +++ b/scripts/mysql_config.sh @@ -58,12 +58,16 @@ fix_path () done } -abs_path=`expr \( substr $0 1 1 \) = '/'` -if [ "x$abs_path" = "x1" ] ; then - me=$0 -else - me=`which $0` -fi +get_full_path () +{ + case $1 in + /*) echo "$1";; + ./*) tmp=`pwd`/$1; echo $tmp | sed -e 's;/./;/;' ;; + *) which $1 ;; + esac +} + +me=`get_full_path $0` basedir=`echo $me | sed -e 's;/bin/mysql_config;;'` @@ -81,6 +85,7 @@ ldflags='@LDFLAGS@' client_libs='@CLIENT_LIBS@' libs="$ldflags -L'$pkglibdir' -lmysqlclient $client_libs" +libs=`echo $libs | sed -e 's; +;;'` cflags="-I'$pkgincludedir'" usage () { |