Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit df51494

Browse files
authored
Merge pull request #49 from tango-controls/fix-9
Fix incorrect comparison brackets in configure script
2 parents 06facdb + b3385ef commit df51494

2 files changed

Lines changed: 24 additions & 21 deletions

File tree

assets/m4/ac_path_mariadb.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ AC_ARG_WITH(mariadbclient-lib,AC_HELP_STRING([--with-mariadbclient-lib=LIB],[Dir
4444
fi
4545
done
4646
47-
for iloc in include/mariadb include; do
47+
for iloc in include/mariadb include include/mysql; do
4848
if test -f "$tryprefix/$iloc/mysql.h"; then
4949
MARIADBCLIENT_CFLAGS="-I$tryprefix/$iloc"
5050
fi

assets/m4/mysql_release.m4

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,37 @@ dnl MINOR_VERSION)
77
dnl
88

99
AC_DEFUN([mysql_AC_HAVE_MYSQL_VERSION],
10-
[AC_CACHE_CHECK([for mysql release (at least version $2.$3)],
11-
ac_cv_mysql_version_$2_$3,
12-
[
13-
if test -x $1; then
14-
VERS=`$1 --version 2>&1 | cut -d ' ' -f 6 | cut -d ',' -f 1`
10+
[AC_CACHE_CHECK([for mysql release (at least version $2.$3)],
11+
ac_cv_mysql_version_$2_$3,
12+
[
13+
if test -x $1; then
14+
VERS=`$1 --version 2>&1 | cut -d ' ' -f 6 | cut -d ',' -f 1`
1515
MYSQL_VERSION=$VERS
16-
17-
MYSQL_MAJOR=`echo $VERS | cut -d '.' -f 1`
18-
MYSQL_MINOR=`echo $VERS | cut -d '.' -f 2`
19-
MYSQL_MICRO=`echo $VERS | cut -d '.' -f 3`
16+
17+
MYSQL_MAJOR=`echo $VERS | cut -d '.' -f 1`
18+
MYSQL_MINOR=`echo $VERS | cut -d '.' -f 2`
19+
MYSQL_MICRO=`echo $VERS | cut -d '.' -f 3`
2020
MARIA=`echo $MYSQL_MICRO | cut -d '-' -f 2`
2121
22-
if [[ "$MARIA" == *aria* ]]; then
22+
case "$MARIA" in
23+
*aria*)
2324
MYSQL_VERSION=not_found
2425
ac_cv_mysql_version_$2_$3=no
25-
else
26-
if test $MYSQL_MAJOR -lt $2; then
26+
;;
27+
*)
28+
if test $MYSQL_MAJOR -lt $2; then
2729
ac_cv_mysql_version_$2_$3=no
28-
else
30+
else
2931
if test $MYSQL_MINOR -lt $3; then
30-
ac_cv_mysql_version_$2_$3=no
31-
else
32-
ac_cv_mysql_version_$2_$3=yes
33-
fi
32+
ac_cv_mysql_version_$2_$3=no
33+
else
34+
ac_cv_mysql_version_$2_$3=yes
35+
fi
3436
fi
35-
fi
37+
;;
38+
esac
3639
else
3740
ac_cv_mysql_version_$2_$3=no
3841
fi
39-
])
40-
])
42+
])
43+
])

0 commit comments

Comments
 (0)