X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=config%2Fgr_subversion.m4;h=849d7a9f60c395fd14ee61e7bb5acc1710f5948a;hb=refs%2Fheads%2Ftry-3.3.1;hp=7a415219d8cbe6384e41c6780092268b6f7fe326;hpb=c5652769dcc55973895a13f3938f2c2f7217e107;p=debian%2Fgnuradio diff --git a/config/gr_subversion.m4 b/config/gr_subversion.m4 index 7a415219..849d7a9f 100644 --- a/config/gr_subversion.m4 +++ b/config/gr_subversion.m4 @@ -23,19 +23,10 @@ dnl # # Test for presence of subversion, and create variables for # current repository version and last changed date. -# -# TODO: Fix the following problems in this code: -# -# 1. Remove use of non-standard program which (3.0BSD, not specified -# by POSIX. -# -# 2. When operating on distribution tarballs (which do not have -# subversion metadata) on machines that have subversion, do not -# produce error message. AC_DEFUN([GR_SUBVERSION],[ - AC_CHECK_PROG([SVN],[svn],[`which svn`]) - if ! test -z $SVN ; then + AC_PATH_PROG([SVN],[svn]) + if test "$SVN" != "" -a -d .svn ; then SVNVERSION=`$SVN info . | grep '^Revision' | cut -f 2- -d ' '` SVNDATE=`$SVN info . | grep 'Last Changed Date' | cut -f 4-6 -d ' '` fi