Changeset 668 for trunk/configure.ac
- Timestamp:
- Jul 4, 2008, 1:28:06 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r641 r668 72 72 AC_PROG_CXX 73 73 AC_PROG_INSTALL 74 AC_PROG_ LIBTOOL74 AC_PROG_RANLIB 75 75 AC_PROG_SED 76 76 AC_CHECK_PROG([GNUPLOT],[gnuplot],[ok]) … … 92 92 [SD_CXXFLAGS="$SD_CXXFLAGS -g -O"], 93 93 [SD_CPPFLAGS="-DNDEBUG" SD_CXXFLAGS="$SD_CXXFLAGS -O3"]) 94 95 # optionally prepare for building static libraries.96 AC_ARG_ENABLE(staticbin,97 [AS_HELP_STRING([--enable-staticbin], [create a static binary,98 at least as static as the available underlying libraries99 allows])])100 if test "$enable_staticbin" = "yes"; then101 case $host in102 *-apple-darwin*)103 # At the time of creating this libsvn_subr uses104 # Keychain on Mac OSX. In consequence the below105 # frameworks are needed for succesful static builds.106 SD_LIBS="$SD_LIBS -framework Security"107 SD_LIBS="$SD_LIBS -framework CoreFoundation"108 SD_LIBS="$SD_LIBS -framework CoreServices"109 ;;110 esac111 STATICFLAG=-static112 AC_SUBST(STATICFLAG)113 fi114 94 115 95 # Apache Portable Runtime (APR) API checks … … 147 127 AC_CHECK_HEADER([apr_allocator.h],,apr_found="no") 148 128 AC_CHECK_HEADER([subversion-1/svn_types.h],,svn_found="no") 149 # The library checks below may match shared libs even when150 # --enable-staticbin is given to configure. This should probably not151 # pose any problems since in a properly installed system the shared152 # and static libraries should be the same.153 129 AC_SEARCH_LIBS([svn_cmdline_setup_auth_baton],[svn_subr-1], 154 130 [SD_LIBS="-lsvn_subr-1 $SD_LIBS"],svn_found="no") … … 300 276 fi 301 277 302 if test "$enable_staticbin" = "yes"; then303 AC_MSG_NOTICE([A statically linked 'svndigest' binary will be created.])304 else305 AC_MSG_NOTICE([A dynamically linked 'svndigest' binary will be created.])306 fi307 AC_MSG_NOTICE([])308 309 278 AC_MSG_NOTICE([Now type 'make ; make check'.]) 310
Note: See TracChangeset
for help on using the changeset viewer.