Changeset 1337 for trunk/configure.ac


Ignore:
Timestamp:
Feb 13, 2011, 12:57:58 AM (11 years ago)
Author:
Peter Johansson
Message:

using macros from yat to create files .release and .release_year

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1293 r1337  
    1313# Copyright (C) 2006 Jari Häkkinen
    1414# Copyright (C) 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson
     15# Copyright (C) 2011 Peter Johansson
    1516#
    1617# This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    4748           AC_SUBST([PACKAGE_URL], ["http://dev.thep.lu.se/svndigest"])])
    4849
    49 # propagate RELEASE_YEAR from file .release_year
    50 RELEASE_YEAR=`cat $srcdir/.release_year`
    51 AC_SUBST([RELEASE_YEAR])
    52 AC_DEFINE_UNQUOTED([RELEASE_YEAR], ["$RELEASE_YEAR"],
    53                    [Define year package was last modified])
    54 AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/.release_year'])
    55 
    5650AC_SUBST([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION])
    5751AC_SUBST([SVNDIGEST_MINOR_VERSION], [MINOR_VERSION])
     
    173167LIBS=$save_LIBS
    174168AC_SUBST([SVN_LIBS])
    175 
    176 
    177 # check if svnversion is installed
    178 AC_PATH_PROG([SVNVERSION], [svnversion], [no])
    179169
    180170# PLplot API checks
     
    267257AC_SUBST(PLPLOT_LIBS)
    268258
    269 # checking if we build in a subversion WC
    270 AS_IF([test -d $srcdir/.svn], [wc_found="yes"], [wc_found="no"])
    271 AM_CONDITIONAL([HAVE_SVN_WC], [test "$wc_found" = "yes"])
    272 AC_SUBST([wc_found])
    273 
    274259# checking if we have test repo
    275260test_repo_filename=$srcdir/test/repo;
     
    286271AC_CONFIG_FILES([test/svn_update.sh], [chmod +x test/svn_update.sh])
    287272
    288 dnl maintainer make rukes from yat project
     273dnl maintainer make rules from yat project
    289274YAT_SVN_RELEASE
     275YAT_SVN_REVISION
     276YAT_REVISION_HEADER
     277YAT_SVN_RELEASE_YEAR
     278
    290279
    291280# Restore FLAGS
     
    311300all_reqs_ok="true"
    312301
    313 if (test "$wc_found" = "yes"); then
     302AS_VAR_IF([have_svn_wc], [yes], [
    314303   AC_MSG_CHECKING([help2man])
    315304   # redirecting potential error msg to log file
     
    325314          [                             ], 79))
    326315   ])
    327    # svnversion is required when building from svn wc
    328    if (test "x$SVNVERSION" = "xno"); then
    329       all_reqs_ok="false";
    330       AC_MSG_WARN([dnl
    331 Cannot find svnversion, which is required when building from a
    332 subversion working copy. Please install svnversion and make sure it is
    333 in your search path.]);
    334    fi
    335316   if (test "$test_repo_found" = "no"); then
    336317      all_reqs_ok="false";
     
    340321update in top directory.]);
    341322   fi
    342 fi
     323])
    343324
    344325# Non-existing APR is fatal -- sub-sequent compilation will fail.
Note: See TracChangeset for help on using the changeset viewer.