~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to build/ac-macros/macosx.m4

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl ===================================================================
 
2
dnl   Licensed to the Apache Software Foundation (ASF) under one
 
3
dnl   or more contributor license agreements.  See the NOTICE file
 
4
dnl   distributed with this work for additional information
 
5
dnl   regarding copyright ownership.  The ASF licenses this file
 
6
dnl   to you under the Apache License, Version 2.0 (the
 
7
dnl   "License"); you may not use this file except in compliance
 
8
dnl   with the License.  You may obtain a copy of the License at
 
9
dnl
 
10
dnl     http://www.apache.org/licenses/LICENSE-2.0
 
11
dnl
 
12
dnl   Unless required by applicable law or agreed to in writing,
 
13
dnl   software distributed under the License is distributed on an
 
14
dnl   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
15
dnl   KIND, either express or implied.  See the License for the
 
16
dnl   specific language governing permissions and limitations
 
17
dnl   under the License.
 
18
dnl ===================================================================
 
19
dnl
 
20
dnl  Mac OS X specific checks
 
21
 
 
22
dnl SVN_LIB_MACHO_ITERATE
 
23
dnl Check for _dyld_image_name and _dyld_image_header availability
 
24
AC_DEFUN(SVN_LIB_MACHO_ITERATE,
 
25
[
 
26
  AC_MSG_CHECKING([for Mach-O dynamic module iteration functions])
 
27
  AC_RUN_IFELSE([AC_LANG_PROGRAM([[
 
28
    #include <mach-o/dyld.h>
 
29
    #include <mach-o/loader.h>
 
30
  ]],[[
 
31
    const struct mach_header *header = _dyld_get_image_header(0);
 
32
    const char *name = _dyld_get_image_name(0);
 
33
    if (name && header) return 0;
 
34
    return 1;
 
35
  ]])],[
 
36
    AC_DEFINE([SVN_HAVE_MACHO_ITERATE], [1],
 
37
              [Is Mach-O low-level _dyld API available?])
 
38
    AC_MSG_RESULT([yes])
 
39
  ],[
 
40
    AC_MSG_RESULT([no])
 
41
  ])
 
42
])
 
43
 
 
44
dnl SVN_LIB_MACOS_PLIST
 
45
dnl Assign variables for Mac OS property list support
 
46
AC_DEFUN(SVN_LIB_MACOS_PLIST,
 
47
[
 
48
  AC_MSG_CHECKING([for Mac OS property list utilities])
 
49
 
 
50
  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
51
    #include <AvailabilityMacros.h>
 
52
    #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
 
53
     || !defined(MAC_OS_X_VERSION_10_0) \
 
54
     || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
 
55
    #error ProperyList API unavailable.
 
56
    #endif
 
57
  ]],[[]])],[
 
58
    dnl ### Hack.  We should only need to pass the -framework options when
 
59
    dnl linking libsvn_subr, since it is the only library that uses Keychain.
 
60
    dnl
 
61
    dnl Unfortunately, libtool 1.5.x doesn't track transitive dependencies for
 
62
    dnl OS X frameworks like it does for normal libraries, so we need to
 
63
    dnl explicitly pass the option to all the users of libsvn_subr to allow
 
64
    dnl static builds to link successfully.
 
65
    dnl
 
66
    dnl This does mean that all executables we link will be linked directly
 
67
    dnl to these frameworks - even when building shared libraries - but that
 
68
    dnl shouldn't cause any problems.
 
69
 
 
70
    LIBS="$LIBS -framework CoreFoundation"
 
71
    AC_DEFINE([SVN_HAVE_MACOS_PLIST], [1],
 
72
              [Is Mac OS property list API available?])
 
73
    AC_MSG_RESULT([yes])
 
74
  ],[
 
75
    AC_MSG_RESULT([no])
 
76
  ])
 
77
])
 
78
 
 
79
dnl SVN_LIB_MACOS_KEYCHAIN
 
80
dnl Check configure options and assign variables related to Keychain support
 
81
 
 
82
AC_DEFUN(SVN_LIB_MACOS_KEYCHAIN,
 
83
[
 
84
  AC_ARG_ENABLE(keychain,
 
85
    AS_HELP_STRING([--disable-keychain],
 
86
    [Disable use of Mac OS KeyChain for auth credentials]),
 
87
    [enable_keychain=$enableval],[enable_keychain=yes])
 
88
 
 
89
  AC_MSG_CHECKING([for Mac OS KeyChain Services])
 
90
 
 
91
  if test "$enable_keychain" = "yes"; then
 
92
    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
93
      #include <AvailabilityMacros.h>
 
94
      #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
 
95
       || !defined(MAC_OS_X_VERSION_10_2) \
 
96
       || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
 
97
      #error KeyChain API unavailable.
 
98
      #endif
 
99
    ]],[[]])],[
 
100
      dnl ### Hack, see SVN_LIB_MACOS_PLIST
 
101
      LIBS="$LIBS -framework Security"
 
102
      LIBS="$LIBS -framework CoreServices"
 
103
      AC_DEFINE([SVN_HAVE_KEYCHAIN_SERVICES], [1], [Is Mac OS KeyChain support enabled?])
 
104
      AC_MSG_RESULT([yes])
 
105
    ],[
 
106
      enable_keychain=no
 
107
      AC_MSG_RESULT([no])
 
108
    ])
 
109
  fi
 
110
])