]> git.mxchange.org Git - flightgear.git/commitdiff
issue #61: built-in svn broken for automake builds
authorThorstenB <brehmt@gmail.com>
Sat, 11 Jun 2011 13:29:50 +0000 (15:29 +0200)
committerThorstenB <brehmt@gmail.com>
Sat, 11 Jun 2011 13:30:18 +0000 (15:30 +0200)
Thanks to "j...@flygarna.se"

configure.ac

index b64b972ff6090e3a1f96caa04745cdfa7d38abb7..693740442dc09ac4a11cd8143782bad217200e78 100644 (file)
@@ -826,8 +826,11 @@ if test "x$with_libsvn" = "xyes"; then
     AC_CHECK_HEADERS([svn_client.h])
        if test "x$ac_cv_header_svn_client_h" = "xyes"; then
        echo "TerraSync will use libsvn"
-       AC_SEARCH_LIBS(svn_client_checkout, svn_client-1)
-       AC_SEARCH_LIBS(svn_cmdline_init, svn_subr-1)
+       AC_SEARCH_LIBS(svn_client_checkout, svn_client-1,
+                      [AC_DEFINE([HAVE_LIBSVN_CLIENT_1], [1], [Define to 1 if you have libsvn_client-1])],
+                      [AC_MSG_ERROR(svn_client-1 library not found.)],)
+       AC_SEARCH_LIBS(svn_cmdline_init, svn_subr-1, , [AC_MSG_ERROR(svn_subr-1 library not found.)],)
+       AC_SEARCH_LIBS(svn_ra_initialize, svn_ra-1, , [AC_MSG_ERROR(svn_ra-1 library not found.)],)
        svn_LIBS=$LIBS
        svn_CPPFLAGS=$CPPFLAGS
        AC_SUBST(svn_LIBS)