Commit 43a6aa37 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Merge branch '10.1' of https://github.com/mariadb/server into 10.1

parents 16bc9482 431da59f
...@@ -500,5 +500,5 @@ ENDIF() ...@@ -500,5 +500,5 @@ ENDIF()
IF(NON_DISTRIBUTABLE_WARNING) IF(NON_DISTRIBUTABLE_WARNING)
MESSAGE(WARNING " MESSAGE(WARNING "
You have linked MariaDB with GPLv3 libraries! You may not distribute the resulting binary. If you do, you will put yourself into a legal problem with Free Software Foundation.") You have linked MariaDB with ${NON_DISTRIBUTABLE_WARNING} libraries! You may not distribute the resulting binary. If you do, you will put yourself into a legal problem with the Free Software Foundation.")
ENDIF() ENDIF()
...@@ -157,7 +157,7 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE) ...@@ -157,7 +157,7 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE)
SET(USE_NEW_READLINE_INTERFACE 1) SET(USE_NEW_READLINE_INTERFACE 1)
ELSE() ELSE()
IF(NOT_FOR_DISTRIBUTION) IF(NOT_FOR_DISTRIBUTION)
SET(NON_DISTRIBUTABLE_WARNING 1) SET(NON_DISTRIBUTABLE_WARNING "GPLv3")
SET(USE_NEW_READLINE_INTERFACE 1) SET(USE_NEW_READLINE_INTERFACE 1)
ELSE() ELSE()
SET(USE_NEW_READLINE_INTERFACE 0) SET(USE_NEW_READLINE_INTERFACE 0)
......
...@@ -258,7 +258,7 @@ SET(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -DPACKAGE=test) # b ...@@ -258,7 +258,7 @@ SET(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -DPACKAGE=test) # b
CHECK_INCLUDE_FILES (bfd.h BFD_H_EXISTS) CHECK_INCLUDE_FILES (bfd.h BFD_H_EXISTS)
IF(BFD_H_EXISTS) IF(BFD_H_EXISTS)
IF(NOT_FOR_DISTRIBUTION) IF(NOT_FOR_DISTRIBUTION)
SET(NON_DISTRIBUTABLE_WARNING 1) SET(NON_DISTRIBUTABLE_WARNING "GPLv3")
SET(HAVE_BFD_H 1) SET(HAVE_BFD_H 1)
ENDIF() ENDIF()
ENDIF() ENDIF()
......
...@@ -22,11 +22,17 @@ MACRO(SKIP_AWS_PLUGIN msg) ...@@ -22,11 +22,17 @@ MACRO(SKIP_AWS_PLUGIN msg)
ENDMACRO() ENDMACRO()
SET(CMAKE_CXX_STANDARD 11) SET(CMAKE_CXX_STANDARD 11)
IF(NOT NOT_FOR_DISTRIBUTION)
SKIP_AWS_PLUGIN("AWS SDK has Apache 2.0 License which is not complatible with GPLv2. Set -DNOT_FOR_DISTRIBUTION=ON if you need this plugin")
ENDIF()
MYSQL_ADD_PLUGIN(aws_key_management aws_key_management_plugin.cc DISABLED MYSQL_ADD_PLUGIN(aws_key_management aws_key_management_plugin.cc DISABLED
COMPONENT aws-key-management) COMPONENT aws-key-management)
IF(NOT TARGET aws_key_management) IF(NOT TARGET aws_key_management)
RETURN() RETURN()
ELSE()
SET(NON_DISTRIBUTABLE_WARNING "Apache 2.0" PARENT_SCOPE)
ENDIF() ENDIF()
# This plugin needs recent C++ compilers (AWS C++ SDK header files are using C++11 features) # This plugin needs recent C++ compilers (AWS C++ SDK header files are using C++11 features)
......
...@@ -302,6 +302,8 @@ fi ...@@ -302,6 +302,8 @@ fi
parse_arguments `"$print_defaults" $defaults $defaults_group_suffix --mysqld mysql_install_db` parse_arguments `"$print_defaults" $defaults $defaults_group_suffix --mysqld mysql_install_db`
parse_arguments PICK-ARGS-FROM-ARGV "$@" parse_arguments PICK-ARGS-FROM-ARGV "$@"
rel_mysqld="$dirname0/@INSTALL_SBINDIR@/mysqld"
# Configure paths to support files # Configure paths to support files
if test -n "$srcdir" if test -n "$srcdir"
then then
...@@ -341,12 +343,12 @@ then ...@@ -341,12 +343,12 @@ then
exit 1 exit 1
fi fi
# relative from where the script was run for a relocatable install # relative from where the script was run for a relocatable install
elif test -n "$dirname0" -a -x "$dirname0/@INSTALL_SBINDIR@/mysqld" elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mysqld"
then then
basedir="$dirname0" basedir="$dirname0"
bindir="$basedir/@INSTALL_SBINDIR@" bindir="$basedir/@INSTALL_BINDIR@"
resolveip="$bindir/resolveip" resolveip="$bindir/resolveip"
mysqld="$basedir/@INSTALL_SBINDIR@/mysqld" mysqld="$rel_mysqld"
srcpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@" srcpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@"
buildpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@" buildpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@"
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment