Merge branch 'develop' into MAX-268
This commit is contained in:
11
macros.cmake
11
macros.cmake
@ -57,11 +57,12 @@ endmacro()
|
|||||||
|
|
||||||
macro(check_deps)
|
macro(check_deps)
|
||||||
|
|
||||||
|
|
||||||
# Check for libraries MaxScale depends on
|
# Check for libraries MaxScale depends on
|
||||||
set(MAXSCALE_DEPS aio ssl crypt crypto z m dl rt pthread)
|
set(MAXSCALE_DEPS aio ssl crypt crypto z m dl rt pthread)
|
||||||
foreach(lib ${MAXSCALE_DEPS})
|
foreach(lib ${MAXSCALE_DEPS})
|
||||||
find_library(lib${lib} ${lib})
|
find_library(lib${lib} ${lib})
|
||||||
if((DEFINED lib${lib}) AND (${lib${lib}} STREQUAL "lib${lib}-NOTFOUND"))
|
if((DEFINED lib${lib}) AND (${lib${lib}} MATCHES "NOTFOUND"))
|
||||||
set(DEPS_ERROR TRUE)
|
set(DEPS_ERROR TRUE)
|
||||||
set(FAILED_DEPS "${FAILED_DEPS} lib${lib}")
|
set(FAILED_DEPS "${FAILED_DEPS} lib${lib}")
|
||||||
elseif(DEBUG_OUTPUT)
|
elseif(DEBUG_OUTPUT)
|
||||||
@ -159,7 +160,7 @@ macro(check_dirs)
|
|||||||
unset(EMBEDDED_LIB_STATIC)
|
unset(EMBEDDED_LIB_STATIC)
|
||||||
|
|
||||||
# Inform the user about the embedded library
|
# Inform the user about the embedded library
|
||||||
if( (${EMBEDDED_LIB} STREQUAL "EMBEDDED_LIB_STATIC-NOTFOUND") OR (${EMBEDDED_LIB} STREQUAL "EMBEDDED_LIB_DYNAMIC-NOTFOUND"))
|
if( (${EMBEDDED_LIB} MATCHES "NOTFOUND") OR (${EMBEDDED_LIB} MATCHES "NOTFOUND"))
|
||||||
set(DEPS_OK FALSE CACHE BOOL "If all the dependencies were found.")
|
set(DEPS_OK FALSE CACHE BOOL "If all the dependencies were found.")
|
||||||
message(FATAL_ERROR "Library not found: libmysqld. If your install of MySQL is in a non-default location, please provide the location with -DEMBEDDED_LIB=<path to library>")
|
message(FATAL_ERROR "Library not found: libmysqld. If your install of MySQL is in a non-default location, please provide the location with -DEMBEDDED_LIB=<path to library>")
|
||||||
else()
|
else()
|
||||||
@ -186,6 +187,7 @@ macro(check_dirs)
|
|||||||
|
|
||||||
#Check RabbitMQ headers and libraries
|
#Check RabbitMQ headers and libraries
|
||||||
if(BUILD_RABBITMQ)
|
if(BUILD_RABBITMQ)
|
||||||
|
include(CheckCSourceCompiles)
|
||||||
|
|
||||||
if(DEFINED RABBITMQ_LIB)
|
if(DEFINED RABBITMQ_LIB)
|
||||||
find_library(RMQ_LIB rabbitmq PATHS ${RABBITMQ_LIB} NO_DEFAULT_PATH)
|
find_library(RMQ_LIB rabbitmq PATHS ${RABBITMQ_LIB} NO_DEFAULT_PATH)
|
||||||
@ -212,6 +214,11 @@ macro(check_dirs)
|
|||||||
set(RABBITMQ_HEADERS ${RMQ_HEADERS} CACHE PATH "Path to RabbitMQ headers" FORCE)
|
set(RABBITMQ_HEADERS ${RMQ_HEADERS} CACHE PATH "Path to RabbitMQ headers" FORCE)
|
||||||
message(STATUS "Using RabbitMQ headers found at: ${RABBITMQ_HEADERS}")
|
message(STATUS "Using RabbitMQ headers found at: ${RABBITMQ_HEADERS}")
|
||||||
endif()
|
endif()
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES ${RABBITMQ_HEADERS})
|
||||||
|
check_c_source_compiles("#include <amqp.h>\n int main(){if(AMQP_DELIVERY_PERSISTENT){return 0;}return 1;}" HAVE_RMQ50)
|
||||||
|
if(NOT HAVE_RMQ50)
|
||||||
|
message(FATAL_ERROR "Old version of RabbitMQ-C library found. Version 0.5 or newer is required.")
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
static char* server_options[] = {
|
static char* server_options[] = {
|
||||||
"SkySQL Gateway",
|
"MariaDB Corporation MaxScale",
|
||||||
"--no-defaults",
|
"--no-defaults",
|
||||||
"--datadir=.",
|
"--datadir=.",
|
||||||
"--language=.",
|
"--language=.",
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* This file is distributed as part of the SkySQL Gateway. It is free
|
* This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
||||||
* software: you can redistribute it and/or modify it under the terms of the
|
* software: you can redistribute it and/or modify it under the terms of the
|
||||||
* GNU General Public License as published by the Free Software Foundation,
|
* GNU General Public License as published by the Free Software Foundation,
|
||||||
* version 2.
|
* version 2.
|
||||||
@ -13,11 +13,11 @@
|
|||||||
* this program; if not, write to the Free Software Foundation, Inc., 51
|
* this program; if not, write to the Free Software Foundation, Inc., 51
|
||||||
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*
|
*
|
||||||
* Copyright SkySQL Ab 2013
|
* Copyright MariaDB Corporation Ab 2014
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file buffer.h - The Gateway buffer management functions
|
* @file buffer.h - The MaxScale buffer management functions
|
||||||
*
|
*
|
||||||
* The buffer management is based on the principle of a linked list
|
* The buffer management is based on the principle of a linked list
|
||||||
* of variable size buffer, the intention beign to allow longer
|
* of variable size buffer, the intention beign to allow longer
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef _FILTER_HARNESS_H
|
#ifndef _FILTER_HARNESS_H
|
||||||
#define _FILTER_HARNESS_H
|
#define _FILTER_HARNESS_H
|
||||||
/*
|
/*
|
||||||
* This file is distributed as part of the SkySQL Gateway. It is free
|
* This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
||||||
* software: you can redistribute it and/or modify it under the terms of the
|
* software: you can redistribute it and/or modify it under the terms of the
|
||||||
* GNU General Public License as published by the Free Software Foundation,
|
* GNU General Public License as published by the Free Software Foundation,
|
||||||
* version 2.
|
* version 2.
|
||||||
@ -15,7 +15,7 @@
|
|||||||
* this program; if not, write to the Free Software Foundation, Inc., 51
|
* this program; if not, write to the Free Software Foundation, Inc., 51
|
||||||
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*
|
*
|
||||||
* Copyright SkySQL Ab 2013
|
* Copyright MariaDB Corporation Ab 2014
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user