]> git.mxchange.org Git - flightgear.git/commitdiff
Fix terrasync svn-library linkage - not perfect but now links against libsvn_subr...
authorJames Turner <zakalawe@mac.com>
Thu, 6 May 2010 15:44:27 +0000 (16:44 +0100)
committerJames Turner <zakalawe@mac.com>
Thu, 6 May 2010 15:44:27 +0000 (16:44 +0100)
Further cleanups by an autoconf expert would be most welcome.

configure.ac
utils/TerraSync/terrasync.cxx

index ddd9ce5bf3b51e97efcb0f3f71aef7f548ba60a4..1e6eb40a7c5353bc9a48533bfc6af726d77cef7d 100644 (file)
@@ -745,10 +745,9 @@ fi
 dnl Check for Subversion library support
 save_LIBS=$LIBS
 save_CPPFLAGS=$CPPFLAGS
-LIBS=""
+LIBS="`apr-1-config --link-ld`"
 CPPFLAGS="-I/usr/include/subversion-1 `apr-1-config --includes`"
-AC_CHECK_LIB(svn_client-1, svn_client_checkout3)
-AC_CHECK_HEADERS([svn_client.h glut.h])
+AC_CHECK_HEADERS([svn_client.h])
 if test "x$ac_cv_header_svn_client_h" != "xyes"; then
   echo "TerraSync will shell out for command line subversion"
   svn_LIBS=""
@@ -756,6 +755,7 @@ if test "x$ac_cv_header_svn_client_h" != "xyes"; then
 else
   echo "TerraSync will use integrated subversion library"
   AC_SEARCH_LIBS(svn_client_checkout, svn_client-1)
+  AC_SEARCH_LIBS(svn_cmdline_init, svn_subr-1)
   svn_LIBS=$LIBS
   svn_CPPFLAGS=$CPPFLAGS
   AC_SUBST(svn_LIBS)
index f6c33c9b64c3e393ae6f2749c127dc22d88a43e8..7404530e1139bc93fa925c50629defee14fcf2f8 100644 (file)
@@ -128,10 +128,6 @@ svn_opt_revision_t *mysvn_rev_peg = NULL;
 static const svn_version_checklist_t mysvn_checklist[] = {
     { "svn_subr",   svn_subr_version },
     { "svn_client", svn_client_version },
-    { "svn_wc",     svn_wc_version },
-    { "svn_ra",     svn_ra_version },
-    { "svn_delta",  svn_delta_version },
-    { "svn_diff",   svn_diff_version },
     { NULL, NULL }
 };