Index: src/driver/Makefile.am
===================================================================
--- src/driver/Makefile.am	(revision ec129c41602fc1e6b8d76d388878e9e9d18535c3)
+++ src/driver/Makefile.am	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -6,5 +6,5 @@
 ## file "LICENCE" distributed with Cforall.
 ##
-## Makefile.am -- 
+## Makefile.am --
 ##
 ## Author           : Peter A. Buhr
@@ -26,3 +26,6 @@
 cc1_SOURCES = cc1.cc
 
+cfa.cc : ${abs_top_srcdir}/version
+	@true
+
 MAINTAINERCLEANFILES = @CFA_PREFIX@/bin/${bin_PROGRAMS} @CFA_PREFIX@/lib/${cc1lib_PROGRAMS}
Index: src/driver/Makefile.in
===================================================================
--- src/driver/Makefile.in	(revision ec129c41602fc1e6b8d76d388878e9e9d18535c3)
+++ src/driver/Makefile.in	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -100,4 +100,5 @@
 CFA_PREFIX = @CFA_PREFIX@
 CFLAGS = @CFLAGS@
+CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -542,4 +543,7 @@
 
 
+cfa.cc : ${abs_top_srcdir}/version
+	@true
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
Index: src/driver/cfa.cc
===================================================================
--- src/driver/cfa.cc	(revision ec129c41602fc1e6b8d76d388878e9e9d18535c3)
+++ src/driver/cfa.cc	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -25,4 +25,5 @@
 using std::endl;
 using std::string;
+using std::to_string;
 
 
@@ -50,6 +51,6 @@
 
 int main( int argc, char *argv[] ) {
-	string Version( VERSION );							// current version number from CONFIG
-	string Major( CFA_VERSION_MAJOR ), Minor( CFA_VERSION_MINOR ), Patch( CFA_VERSION_MINOR );
+	string Version( CFA_VERSION_LONG );							// current version number from CONFIG
+	string Major( to_string( CFA_VERSION_MAJOR ) ), Minor( to_string( CFA_VERSION_MINOR ) ), Patch( to_string( CFA_VERSION_PATCH ) );
 
 	string installincdir( CFA_INCDIR );					// fixed location of include files
