Silence autoconf errors. Fix the svn revision retrieval in the autoconf script.
This commit is contained in:
parent
e2f2bf6bb3
commit
b41dd28132
|
@ -13,7 +13,7 @@ case $host in
|
||||||
esac
|
esac
|
||||||
AC_SUBST(desmume_arch)
|
AC_SUBST(desmume_arch)
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([1.10])
|
AM_INIT_AUTOMAKE([1.10 subdir-objects])
|
||||||
|
|
||||||
dnl -- make sure we have a c++ compiler
|
dnl -- make sure we have a c++ compiler
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
@ -24,11 +24,12 @@ AC_PROG_RANLIB
|
||||||
dnl -- check for endianess
|
dnl -- check for endianess
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
|
||||||
# took this from geany, hope it works
|
dnl -- since svn 1.7 theres only a single .svn folder in the root dir
|
||||||
REVISION="r0"
|
REVISION="r0"
|
||||||
SVN=`which svn 2>/dev/null`
|
SVN=`which svn 2>/dev/null`
|
||||||
if test -d ".svn" -a "x${SVN}" != "x" -a -x "${SVN}" ; then
|
if test -d "../.svn" -a "x${SVN}" != "x" -a -x "${SVN}" ; then
|
||||||
REVISION=r`$SVN info|grep 'Last Changed Rev'|cut -d' ' -f4`
|
REVISION=r`$SVN info|grep 'Last Changed Rev'|cut -d' ' -f4`
|
||||||
|
echo "$REVISION"
|
||||||
fi
|
fi
|
||||||
AC_DEFINE_UNQUOTED([SVN_REV], "$REVISION", [subversion revision number])
|
AC_DEFINE_UNQUOTED([SVN_REV], "$REVISION", [subversion revision number])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue