]>
Commit | Line | Data |
---|---|---|
309787e6 SS |
1 | Index: configure.ac |
2 | =================================================================== | |
3 | RCS file: /home/cvsroot/graphviz2/configure.ac,v | |
4 | retrieving revision 1.327 | |
5 | retrieving revision 1.328 | |
6 | @@ -23,20 +23,6 @@ | |
7 | AC_SUBST(GRAPHVIZ_VERSION_MINOR) | |
8 | AC_SUBST(GRAPHVIZ_VERSION_MICRO) | |
9 | ||
10 | -# Windows version numbers | |
11 | -# For the build number: months since Jan 2000, day of month from the timestamp | |
12 | -# For the revision number: hour, minute from the timestamp | |
13 | - | |
14 | -if test $GRAPHVIZ_VERSION_MICRO = "0"; then | |
15 | - GRAPHVIZ_VERSION_BUILD=0 | |
16 | - GRAPHVIZ_VERSION_REVISION=0 | |
17 | -else | |
18 | - GRAPHVIZ_VERSION_BUILD=`expr \( ${GRAPHVIZ_VERSION_MICRO:0:4} - 2000 \) \* 12 + ${GRAPHVIZ_VERSION_MICRO:4:2}`${GRAPHVIZ_VERSION_MICRO:6:2} | |
19 | - GRAPHVIZ_VERSION_REVISION=${GRAPHVIZ_VERSION_MICRO:9:4} | |
20 | -fi | |
21 | -AC_SUBST(GRAPHVIZ_VERSION_BUILD) | |
22 | -AC_SUBST(GRAPHVIZ_VERSION_REVISION) | |
23 | - | |
24 | dnl =========================================================================== | |
25 | ||
26 | # libtool shared library version for main libs (cdt, graph, gvc) | |
27 | @@ -100,6 +86,22 @@ | |
28 | AC_DEFINE_UNQUOTED(GVPLUGIN_VERSION,$GVPLUGIN_VERSION,[Compatibility version number for plugins.]) | |
29 | AC_SUBST(GVPLUGIN_VERSION) | |
30 | ||
31 | +GRAPHVIZ_VERSION_BUILD=0 | |
32 | +GRAPHVIZ_VERSION_REVISION=0 | |
33 | +case "${host_os}" in | |
34 | + *uwin* | *cygwin* | *mingw32* ) | |
35 | + # Windows version numbers | |
36 | + # For the build number: months since Jan 2000, day of month from the timestamp | |
37 | + # For the revision number: hour, minute from the timestamp | |
38 | + if test $GRAPHVIZ_VERSION_MICRO != "0"; then | |
39 | + GRAPHVIZ_VERSION_BUILD=`expr \( ${GRAPHVIZ_VERSION_MICRO:0:4} - 2000 \) \* 12 + ${GRAPHVIZ_VERSION_MICRO:4:2}`${GRAPHVIZ_VERSION_MICRO:6:2} | |
40 | + GRAPHVIZ_VERSION_REVISION=${GRAPHVIZ_VERSION_MICRO:9:4} | |
41 | + fi | |
42 | + ;; | |
43 | +esac | |
44 | +AC_SUBST(GRAPHVIZ_VERSION_BUILD) | |
45 | +AC_SUBST(GRAPHVIZ_VERSION_REVISION) | |
46 | + | |
47 | LIBPOSTFIX= | |
48 | case "${host_os}" in | |
49 | *linux* ) |