Changeset 1558 for trunk/configure.ac


Ignore:
Timestamp:
Oct 10, 2008, 12:59:25 AM (13 years ago)
Author:
Peter
Message:

svn-clean target - see README.developer - is handy for the RM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1542 r1558  
    173173YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-pedantic])
    174174YAT_CPP_ADD_FLAG([CPPFLAGS], [-DHAVE_INLINE=1])
    175 AC_ARG_ENABLE(debug,
     175AC_ARG_ENABLE([debug],
    176176  [AS_HELP_STRING([--enable-debug],[turn on debug options and code])])
    177177if test "${enable_debug}" = "yes" ; then
     
    184184  YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-O3])
    185185fi
     186
     187# enable target svn-clean
     188AC_ARG_ENABLE([svn-support],
     189   [AS_HELP_STRING([--enable-svn-support],
     190                   [enable svn support. Used by yat developers])],
     191   [enable_svn_support=yes])
     192if test "x$enable_svn_support" = "xyes"; then
     193  AC_CHECK_PROG([have_svnversion], [svnversion], [yes], [no])
     194  svn_error_msg="svn support cannot be enabled:"
     195  if test "x$have_svnversion" != "xyes"; then
     196    AC_MSG_ERROR([$svn_error_msg svnversion executable not found.])
     197  fi
     198  if test `svnversion -n $srcdir` == "exported"; then
     199    AC_MSG_ERROR([$svn_error_msg `$srcdir' is not an svn wc.])
     200  fi
     201  AC_PATH_PROG([PERL], [perl], [no])
     202  if test "x$PERL" = "xno"; then
     203    AC_MSG_ERROR([$svn_error_msg perl executable not found.])
     204  fi
     205  AC_PROG_PERL_MODULES([strict], ,
     206         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     207  AC_PROG_PERL_MODULES([Cwd], ,
     208         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     209  AC_PROG_PERL_MODULES([File::Path], ,
     210         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     211  AC_PROG_PERL_MODULES([Getopt::Long], ,
     212         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     213  AC_PROG_PERL_MODULES([Pod::Usage], ,
     214         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     215
     216fi
     217AM_CONDITIONAL([ENABLE_SVN_SUPPORT], [test "x$enable_svn_support" = "xyes"])
     218
    186219
    187220# check for quiet_NaN support in OS
Note: See TracChangeset for help on using the changeset viewer.