Checkout Tools
  • last updated 34 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Switch default C++ language level to C++11 on Unix.

- "Modern" C++ (C++11 and later) has become ubiquitous.

- We already need C++11 to compile the KWallet plugin.

- JavaHL compiles in C++11 mode, otherwise it would not build on Windows

with newer versions of MSVC.

- Our core code is not affected at all.

* configure.ac: Display the C and C++ language level flags.

* build/ac-macros/compiler.m4

(SVN_CXX_MODE_SETUP): Switch to C++11.

(SVN_CXX_MODE_SETUP11): Remove; it's now obsolete.

* build/ac-macros/kwallet.m4

(SVN_LIB_KWALLET): Remove reference to SVN_CXX_MODE_SETUP11.

* subversion/bindings/javahl/native/RemoteSession.cpp

(compare_c_strings::operator()): Make this method const to avoid a warning.

  1. … 3 more files in changeset.
Add --with-kwallet=INCDIR:LIBDIR to support KDE5 on platforms that do

not provide kf5-config. On FreeBSD 11 I can build with KDE5 using

--with-kwallet=/usr/local/include:/usr/local/lib.

* build/ac-macros/kwallet.m4: Add optional =INCDIR:LIBDIR.

Reinstate the compiler flag part of r1802536 as clang 3.8 requires it.

* build/ac-macros/kwallet.h: Set --std=c++11 if available.

Revert r1802536, the change from kf5-config to qtpaths breaks Fedora builds.

* build/ac-macros/kwallet.h: Revert.

* build/ac-macros/kwallet.h: Switch KDE5 from using kf5-config, which is

deprecated, to using qtpaths; ensure the --std=c+11 flag is used, if

available, as it may be required. This now builds on my FreeBSD/clang

box using --with-kwallet=/usr/local.

Add KDE 5 support to the KWallet auth provider. The --with-kwallet

option now looks for KDE 5 before looking for KDE 4. Both 4 and 5

use the same underlying storage and so passwords written by one can

be read by the other.

* build/ac-macros/kwallet.m4 (SVN_LIB_KWALLET): Detect KDE 4 and 5.

* build/ac-macros/compiler.m4 (SVN_CXX_MODE_SETUP11): New, set -std=c++11.

* subversion/libsvn_auth_kwallet/kwallet.cpp

(kwallet_password_get, kwallet_password_set): Support KDE 4 and 5.

  1. … 2 more files in changeset.
* build/ac-macros/kwallet.m4: Use the `--install include' and `--install

lib' kde4-config parameters to retrieve the location where KDE4's

headers and libraries are installed, respectively.

Patch by: Raphael Kubo da Costa <rakuco@FreeBSD.org>

Fix building svn trunk on Mac OS X with the gnome keyring lib installed.

Don't check for gnome keyring and kwallet on Mac OS X. While these libraries are

available on the platform - you get libgnome-keyring when installing Gimp via

MacPorts - the auth providers' functions and symbols are currently not declared

on Mac OS X and Windows.

* configure.ac

* build/ac-macros/kwallet.m4: Don't check for kwallet and gnome keyring on

darwin platforms.

  1. … 1 more file in changeset.
Follow-up to r1466445:

* build/ac-macros/kwallet.m4: Fix indentation, no functional change.

* build/ac-macros/kwallet.m4: Don't require NLS support for kwallet support.

Patch by: Raphael Kubo da Costa <rakuco@FreeBSD.org>

Fix warnings about missing AC_LANG_SOURCE with autoconf 2.68; tested also

against 2.59.

Kudos to Philip Martin for pointing me at final bit needed to fix this.

* build/ac-macros/kwallet.m4 (SVN_LIB_KWALLET),

build/ac-macros/swig.m4 (SVN_FIND_SWIG),

build/ac-macros/gssapi.m4 (SVN_LIB_RA_SERF_GSSAPI),

build/ac-macros/neon.m4 (SVN_NEON_CONFIG),

configure.ac:

Wrap AC_{PREPROC,COMPILE,LINK}_IFELSE source argument with AC_LANG_SOURCE.

  1. … 4 more files in changeset.
Apply ASF license headers to a number of files included under that license

but lacking said header.

Patch by: Niall Pemberton <niallp{_AT_}apache.org>

  1. … 175 more files in changeset.
Fix usage of 'grep' in the build system. '$GREP' was invoked for finding

D-Bus and KWallet, but is not defined in autoconf-2.59. The build system uses

plain 'grep' or '$EGREP' everywhere else so use '$EGREP' here too.

* build/ac-macros/kwallet.m4

(SVN_LIB_KWALLET): Use '$EGREP' instead of '$GREP', and adjust the regex

syntax accordingly.

* configure.ac

(D-Bus section): Use '$EGREP' instead of '$GREP'.

  1. … 1 more file in changeset.
Fix remaining part of Issue 3453: Building Subversion 1.6 requires GNU grep 2.5.

* build/ac-macros/kwallet.m4

(SVN_LIB_KWALLET): Don't use the -o option of grep.

Follow-up to r38377:

Rename SVN_REMOVE_REDUNDANT_LIB_DIRS to SVN_REMOVE_STANDARD_LIB_DIRS.

* build/ac-macros/svn-macros.m4

(SVN_REMOVE_REDUNDANT_LIB_DIRS): Rename to ...

(SVN_REMOVE_STANDARD_LIB_DIRS): ... this. Improve doc string. Filter -L

options with standard library search directories followed by '/'.

* build/ac-macros/apr.m4

(SVN_LIB_APR):

* build/ac-macros/aprutil.m4

(SVN_LIB_APRUTIL):

* build/ac-macros/gssapi.m4

(SVN_LIB_RA_SERF_GSSAPI):

* build/ac-macros/kwallet.m4

(SVN_LIB_KWALLET):

* build/ac-macros/sasl.m4

(SVN_LIB_SASL):

* build/ac-macros/sqlite.m4

(SVN_SQLITE_DIR_CONFIG):

* build/ac-macros/zlib.m4

(SVN_LIB_Z): Update.

Suggested by: julianfoad

stsp

  1. … 7 more files in changeset.
Filter out redundant library directories (e.g. /usr/lib) to avoid linking

against Subversion libraries potentially placed in these directories.

* build/ac-macros/svn-macros.m4

(SVN_REMOVE_REDUNDANT_LIB_DIRS): New.

* build/ac-macros/apr.m4

(SVN_LIB_APR):

* build/ac-macros/aprutil.m4

(SVN_LIB_APRUTIL):

* build/ac-macros/gssapi.m4

(SVN_LIB_RA_SERF_GSSAPI):

* build/ac-macros/kwallet.m4

(SVN_LIB_KWALLET):

* build/ac-macros/sasl.m4

(SVN_LIB_SASL):

* build/ac-macros/sqlite.m4

(SVN_SQLITE_DIR_CONFIG):

* build/ac-macros/zlib.m4

(SVN_LIB_Z): Use SVN_REMOVE_REDUNDANT_LIB_DIRS.

  1. … 7 more files in changeset.
Revert r38218. Buildbots now provide 'config.log' when an error occurs.

  1. … 16 more files in changeset.
Make `configure` sometimes print the content of 'config.log' when an error occurs.

* build/ac-macros/svn-macros.m4

(SVN_MSG_ERROR): New.

* build/ac-macros/apache.m4:

* build/ac-macros/apr.m4:

* build/ac-macros/apr_memcache.m4:

* build/ac-macros/aprutil.m4:

* build/ac-macros/berkeley-db.m4:

* build/ac-macros/ctypesgen.m4:

* build/ac-macros/gssapi.m4:

* build/ac-macros/java.m4:

* build/ac-macros/kwallet.m4:

* build/ac-macros/neon.m4:

* build/ac-macros/sasl.m4:

* build/ac-macros/serf.m4:

* build/ac-macros/sqlite.m4:

* build/ac-macros/swig.m4:

* build/ac-macros/zlib.m4:

* configure.ac: Use SVN_MSG_ERROR() instead of AC_MSG_ERROR().

[Reverted in r38285.]

  1. … 16 more files in changeset.
Use AC_PATH_PROG instead of AC_CHECK_PROG to simplify detection of some programs.

* build/ac-macros/gssapi.m4

(SVN_LIB_RA_SERF_GSSAPI):

* build/ac-macros/kwallet.m4

(SVN_LIB_KWALLET): Use AC_PATH_PROG instead of AC_CHECK_PROG.

  1. … 1 more file in changeset.
Follow-up to r36222:

* build/ac-macros/kwallet.m4

(SVN_LIB_KWALLET): Check svn_enable_shared variable instead of

enable_shared variable.

Search for pkg-config only once and use pkg-config found by AC_PATH_PROG.

* configure.ac

(pkg-config): Use AC_PATH_PROG to find pkg-config and store the path to

pkg-config in PKG_CONFIG variable.

(D-Bus, GNOME Keyring): Use PKG_CONFIG variable.

* build/ac-macros/kwallet.m4

(SVN_LIB_KWALLET):

* build/ac-macros/neon.m4

(SVN_LIB_NEON, SVN_NEON_CONFIG):

* build/ac-macros/sqlite.m4

(SVN_SQLITE_PKG_CONFIG): Use PKG_CONFIG variable.

  1. … 3 more files in changeset.
* build/ac-macros/kwallet.m4

(SVN_LIB_KWALLET): Simplify use of pkg-config.

Move the KWallet autoconf code out of configure.ac.

* build/ac-macros/kwallet.m4:

New.

* configure.ac:

Yank KWallet checking in favor of the imported macro.

* aclocal.m4:

Include the new file.

  1. … 2 more files in changeset.