Add C-Preprocessor define CDIO_VERSION so this can easily be tested in
C/C++ applications.
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -15,14 +15,20 @@ dnl along with this program; if not, write to the Free Software
|
||||
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
dnl 02111-1307, USA.
|
||||
|
||||
define(RELEASE_NUM, 68)
|
||||
define(CDIO_VERSION_STR, 0.$1cvs)
|
||||
|
||||
AC_PREREQ(2.52)
|
||||
AC_REVISION([$Id: configure.ac,v 1.71 2004/03/20 03:15:35 rocky Exp $])dnl
|
||||
AC_INIT(libcdio, 0.68cvs)
|
||||
AC_REVISION([$Id: configure.ac,v 1.72 2004/03/20 12:41:23 rocky Exp $])dnl
|
||||
AC_INIT(libcdio, CDIO_VERSION_STR(RELEASE_NUM))
|
||||
AC_CONFIG_SRCDIR(src/cd-info.c)
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_CANONICAL_HOST
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
LIBCDIO_VERSION_NUM=RELEASE_NUM
|
||||
AC_SUBST(LIBCDIO_VERSION_NUM)
|
||||
|
||||
AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
|
||||
AM_MISSING_PROG(CVS2CL, cvs2cl, $missing_dir)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
/* $Id: version.h.in,v 1.2 2003/11/17 11:50:37 rocky Exp $ */
|
||||
/* $Id: version.h.in,v 1.3 2004/03/20 12:41:23 rocky Exp $ */
|
||||
/** \file version.h
|
||||
* \brief A file simply containing the library version number.
|
||||
*/
|
||||
|
||||
#define CDIO_VERSION "@VERSION@"
|
||||
|
||||
/* This can be used for testing in the C preprocessor */
|
||||
#define LIBCDIO_VERSION_NUM @LIBCDIO_VERSION_NUM@
|
||||
|
||||
Reference in New Issue
Block a user