From 2eb9155e1cfe4dbf15b27d29d4e04ca4f54ab66a Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 19 Feb 2017 16:12:23 +0100 Subject: [PATCH] Enable SSE if necessary --- Makefile.am_client | 3 +++ Makefile.am_server | 3 +++ configure.ac_client | 1 + configure.ac_server | 1 + 4 files changed, 8 insertions(+) diff --git a/Makefile.am_client b/Makefile.am_client index 4eb5e3b2..f0caaf43 100644 --- a/Makefile.am_client +++ b/Makefile.am_client @@ -35,6 +35,9 @@ if !EMBEDDED_CRYPTOPP urbackupclientbackend_LDADD += $(CRYPTOPP_LIBS) else urbackupclientbackend_CXXFLAGS += -DCRYPTOPP_INCLUDE_PREFIX=cryptoplugin -DCRYPTOPP_NO_UNALIGNED_DATA_ACCESS -DCRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562 +ifeq ($(TARGET_CPU),x86) +urbackupsrv_CXXFLAGS += -msse -msse2 +endif endif if CLIENT_UPDATE diff --git a/Makefile.am_server b/Makefile.am_server index d48d14ed..2f11a3e4 100644 --- a/Makefile.am_server +++ b/Makefile.am_server @@ -45,6 +45,9 @@ if !EMBEDDED_CRYPTOPP urbackupsrv_LDADD += $(CRYPTOPP_LIBS) else urbackupsrv_CXXFLAGS += -DCRYPTOPP_INCLUDE_PREFIX=cryptoplugin -DCRYPTOPP_NO_UNALIGNED_DATA_ACCESS -DCRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562 +ifeq ($(TARGET_CPU),x86) +urbackupsrv_CXXFLAGS += -msse -msse2 +endif endif diff --git a/configure.ac_client b/configure.ac_client index 53636818..c48ce10b 100644 --- a/configure.ac_client +++ b/configure.ac_client @@ -5,6 +5,7 @@ AC_PREREQ(2.61) AC_INIT([urbackup-client], [2.1.13.BUILDID], [martin@urbackup.org]) AC_CONFIG_SRCDIR([AcceptThread.cpp]) AC_CONFIG_HEADER([config.h]) +AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE([subdir-objects]) AC_ARG_ENABLE([headless], diff --git a/configure.ac_server b/configure.ac_server index 5b316b94..c30a3c78 100644 --- a/configure.ac_server +++ b/configure.ac_server @@ -6,6 +6,7 @@ AC_INIT([urbackup-server], [2.1.17.BUILDID], [martin@urbackup.org]) AC_CONFIG_SRCDIR([AcceptThread.cpp]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_MACRO_DIR([m4]) +AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE([subdir-objects tar-ustar]) AC_ARG_WITH([mail], AS_HELP_STRING([--without-mail], [Disables server mailing features. Use this to remove the dependency on libcurl.]))