Changeset 171 for trunk/configure.ac


Ignore:
Timestamp:
Aug 26, 2006, 11:47:43 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #72. Introduced libtool to create a static svndigest. Libtool
creates partially static libraries, i.e., links all functions from
static libraries available and performs shared linkage to the rest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r168 r171  
    5757fi
    5858
     59# optionally prepare for building static libraries.
     60AC_ARG_ENABLE(staticbin,
     61  [  --enable-staticbin      create a static binary])
     62if test "$enable_staticbin" = "yes"; then
     63  case $host in
     64  *-apple-darwin*)
     65    # At the time of creating this libsvn_subr uses
     66    # Keychain on Mac OSX. In consequence the below
     67    # frameworks are needed for succesful static builds.
     68    LIBS="$LIBS -framework Security"
     69    LIBS="$LIBS -framework CoreFoundation"
     70    LIBS="$LIBS -framework CoreServices"
     71    ;;
     72  esac
     73  STATICFLAG=-static
     74  AC_SUBST(STATICFLAG)
     75fi
     76
    5977# Apache Portable Runtime (APR) API checks
    6078# The next three lines are not needed as long as APR_FIND_APR is used.
     
    82100  [ LDFLAGS="$LDFLAGS -L$withval/lib" CPPFLAGS="$CPPFLAGS -I$withval/include"])
    83101AC_CHECK_HEADER([subversion-1/svn_types.h],,svn_found="no")
     102# The library checks below may match shared libs even when
     103# --enable-staticbin is given to configure. This should probably not
     104# pose any problems since in a properly installed system the shared
     105# and static libraries should be the same.
    84106AC_SEARCH_LIBS([svn_cmdline_setup_auth_baton],[svn_subr-1],,svn_found="no")
    85107AC_SEARCH_LIBS([svn_ra_initialize],[svn_ra-1],,svn_found="no")
Note: See TracChangeset for help on using the changeset viewer.