]> www.ginac.de Git - ginac.git/commitdiff
- ginac.h includes version.h (created by configure script), which contains
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Fri, 24 Mar 2000 19:45:38 +0000 (19:45 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Fri, 24 Mar 2000 19:45:38 +0000 (19:45 +0000)
  library version defines

14 files changed:
Makefile.in
NEWS
check/Makefile.in
cint/Makefile.in
configure
configure.in
doc/Makefile.in
doc/reference/Makefile.in
doc/tutorial/Makefile.in
ginac/Makefile.in
ginac/ginac.h
ginac/version.h.in [new file with mode: 0644]
ginsh/Makefile.in
tools/Makefile.in

index 1ab8391310b4f11aeba8c7fb60b556b77c5f648e..fd63e6e66b41be8a9e6f5cd9819a7fbd7553d349 100644 (file)
@@ -359,7 +359,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
diff --git a/NEWS b/NEWS
index 47dfa00eb7699768ed27fdd9f0c22736bb45051b..699284cc2b10ab6d4874348c3b439232a4ef7505 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,9 @@ This file records noteworthy changes.
   - gamma() -> Gamma()
   - EulerGamma -> gamma
   - beta() -> Beta()
   - gamma() -> Gamma()
   - EulerGamma -> gamma
   - beta() -> Beta()
+* #include'ing ginac.h defines the preprocessor symbols GINACLIB_MAJOR_VERSION,
+  GINACLIB_MINOR_VERSION, and GINACLIB_MICRO_VERSION with the respective GiNaC
+  library version numbers.
 
 0.5.4 (15 March 2000)
 * Some algorithms in class matrix (notably determinant) were replaced by
 
 0.5.4 (15 March 2000)
 * Some algorithms in class matrix (notably determinant) were replaced by
index 80a3d07668322561a1c78a78eab694e9156ce883..777124a76763dd938021f49e2b99f84bedf638c0 100644 (file)
@@ -278,7 +278,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
index a494a339fdf260e72d0499a38e21793321cdbd82..859afebbd6eb178863fd7edca1605afb643dc91d 100644 (file)
@@ -340,7 +340,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
index ca421d097c8ed856e051b9a215d868713f514cd0..ecd447e902fabc0edf195a1cdfb2604a329758c7 100755 (executable)
--- a/configure
+++ b/configure
@@ -3236,6 +3236,7 @@ Makefile
 GiNaC.spec
 ginac-config
 ginac/Makefile
 GiNaC.spec
 ginac-config
 ginac/Makefile
+ginac/version.h
 check/Makefile
 ginsh/Makefile
 tools/Makefile
 check/Makefile
 ginsh/Makefile
 tools/Makefile
@@ -3384,6 +3385,7 @@ CONFIG_FILES=\${CONFIG_FILES-"Makefile
 GiNaC.spec
 ginac-config
 ginac/Makefile
 GiNaC.spec
 ginac-config
 ginac/Makefile
+ginac/version.h
 check/Makefile
 ginsh/Makefile
 tools/Makefile
 check/Makefile
 ginsh/Makefile
 tools/Makefile
index 432ca153c119551358fff71a5c24b49b776f0f29..7d5aa722bcac5b6101fcaedf8e26ede9173ed53b 100644 (file)
@@ -193,6 +193,7 @@ Makefile
 GiNaC.spec
 ginac-config
 ginac/Makefile
 GiNaC.spec
 ginac-config
 ginac/Makefile
+ginac/version.h
 check/Makefile
 ginsh/Makefile
 tools/Makefile
 check/Makefile
 ginsh/Makefile
 tools/Makefile
index f7d7934f0d6d44ba740b4846a456da8cbb6899f0..90b3a168ba1d7272c6228b7dd19a630fd6fefd42 100644 (file)
@@ -273,7 +273,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
index 021b10eacdb18827f6d75b17627482d2f7bc2d5d..7addcef536ecf2ff38bf1ca598220abaa0b93fb5 100644 (file)
@@ -169,7 +169,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
index ddb714928624d5f09b9317acb73df31bcef68d45..b90fdead93fd304c16059af1a3bc3e06cd33e478 100644 (file)
@@ -326,7 +326,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
index e4eca61e143bc108c5391e5e027515790124e3d6..d3eabe5c4a70682b62bf4b14b7ad98e9ef1915fa 100644 (file)
@@ -114,7 +114,7 @@ ginacinclude_HEADERS = ginac.h add.h archive.h basic.h clifford.h color.h   colo
 EXTRA_DIST = container.pl function.pl structure.pl
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ../config.h
 EXTRA_DIST = container.pl function.pl structure.pl
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ../config.h
-CONFIG_CLEAN_FILES = 
+CONFIG_CLEAN_FILES =  version.h
 LTLIBRARIES =  $(lib_LTLIBRARIES)
 
 
 LTLIBRARIES =  $(lib_LTLIBRARIES)
 
 
@@ -142,7 +142,7 @@ CCLD = $(CC)
 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
 HEADERS =  $(ginacinclude_HEADERS)
 
 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
 HEADERS =  $(ginacinclude_HEADERS)
 
-DIST_COMMON =  Makefile.am Makefile.in
+DIST_COMMON =  Makefile.am Makefile.in version.h.in
 
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
@@ -172,6 +172,8 @@ Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
        cd $(top_builddir) \
          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
        cd $(top_builddir) \
          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
+version.h: $(top_builddir)/config.status version.h.in
+       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
 mostlyclean-libLTLIBRARIES:
 
 
 mostlyclean-libLTLIBRARIES:
 
@@ -294,7 +296,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
@@ -433,13 +435,13 @@ maintainer-clean-generic clean mostlyclean distclean maintainer-clean
 
 # Files which are generated by perl scripts
 $(srcdir)/function.h $(srcdir)/function.cpp: $(srcdir)/function.pl
 
 # Files which are generated by perl scripts
 $(srcdir)/function.h $(srcdir)/function.cpp: $(srcdir)/function.pl
-       cd $(srcdir) && perl function.pl
+       cd $(srcdir) && perl -w function.pl
 
 $(srcdir)/lst.h $(srcdir)/lst.cpp: $(srcdir)/container.pl
 
 $(srcdir)/lst.h $(srcdir)/lst.cpp: $(srcdir)/container.pl
-       cd $(srcdir) && perl container.pl lst
+       cd $(srcdir) && perl -w container.pl lst
 
 $(srcdir)/exprseq.h $(srcdir)/exprseq.cpp: $(srcdir)/container.pl
 
 $(srcdir)/exprseq.h $(srcdir)/exprseq.cpp: $(srcdir)/container.pl
-       cd $(srcdir) && perl container.pl exprseq
+       cd $(srcdir) && perl -w container.pl exprseq
 
 # Force build of headers before compilation
 $(srcdir)/add.cpp: $(srcdir)/function.h $(srcdir)/lst.h $(srcdir)/exprseq.h
 
 # Force build of headers before compilation
 $(srcdir)/add.cpp: $(srcdir)/function.h $(srcdir)/lst.h $(srcdir)/exprseq.h
index 491b05667a2b60526deed34910c04029eef67b09..cd7202b8b0564c52cd2eb26fd49d8672dd46fcd6 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef __GINAC_H__
 #define __GINAC_H__
 
 #ifndef __GINAC_H__
 #define __GINAC_H__
 
+#include "version.h"
+
 #include "basic.h"
 
 #include "ex.h"
 #include "basic.h"
 
 #include "ex.h"
diff --git a/ginac/version.h.in b/ginac/version.h.in
new file mode 100644 (file)
index 0000000..81b8ecc
--- /dev/null
@@ -0,0 +1,31 @@
+/** @file version.h
+ *
+ *  GiNaC library version information. */
+
+/*
+ *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#ifndef __GINAC_VERSION_H__
+#define __GINAC_VERSION_H__
+
+/* Major, minor, and micro version number of the GiNaC library. */
+#define GINACLIB_MAJOR_VERSION @GINACLIB_MAJOR_VERSION@
+#define GINACLIB_MINOR_VERSION @GINACLIB_MINOR_VERSION@
+#define GINACLIB_MICRO_VERSION @GINACLIB_MICRO_VERSION@
+
+#endif // ndef __GINAC_VERSION_H__
index 5bd33c8e4fc3290beadccfb5d8c0ed8370ec5868..09bea8f908bb89d9746064273377776af0000c6e 100644 (file)
@@ -316,7 +316,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
index 0f42a2cdc71a13c0c2ee7bf18633b388e6331134..c04d6ddab9792264c36cb8029cf23e79aa2f0d7a 100644 (file)
@@ -299,7 +299,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \