diff options
Diffstat (limited to 'make_vms.com')
-rw-r--r-- | make_vms.com | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/make_vms.com b/make_vms.com index f35a48f..deee87f 100644 --- a/make_vms.com +++ b/make_vms.com | |||
@@ -13,8 +13,10 @@ $! 0.01 20060120 First version to receive a number | |||
13 | $! 0.02 20061008 Adapt to new Makefile.in | 13 | $! 0.02 20061008 Adapt to new Makefile.in |
14 | $! 0.03 20091224 Add support for large file check | 14 | $! 0.03 20091224 Add support for large file check |
15 | $! 0.04 20100110 Add new gzclose, gzlib, gzread, gzwrite | 15 | $! 0.04 20100110 Add new gzclose, gzlib, gzread, gzwrite |
16 | $! 0.05 20100221 Exchange zlibdefs.h by zconf.h.in | ||
16 | $! | 17 | $! |
17 | $ on error then goto err_exit | 18 | $ on error then goto err_exit |
19 | $ set proc/parse=ext | ||
18 | $! | 20 | $! |
19 | $ true = 1 | 21 | $ true = 1 |
20 | $ false = 0 | 22 | $ false = 0 |
@@ -38,7 +40,7 @@ $ v_file = "zlib.h" | |||
38 | $ ccopt = "" | 40 | $ ccopt = "" |
39 | $ lopts = "" | 41 | $ lopts = "" |
40 | $ dnsrl = "" | 42 | $ dnsrl = "" |
41 | $ aconf_in_file = "config.hin" | 43 | $ aconf_in_file = "zconf.h.in#zconf.h_in" |
42 | $ conf_check_string = "" | 44 | $ conf_check_string = "" |
43 | $ linkonly = false | 45 | $ linkonly = false |
44 | $ optfile = name + ".opt" | 46 | $ optfile = name + ".opt" |
@@ -104,13 +106,16 @@ $ i = i + 1 | |||
104 | $ goto find_aconf | 106 | $ goto find_aconf |
105 | $ endif | 107 | $ endif |
106 | $ open/read/err=aconf_err aconf_in 'fname' | 108 | $ open/read/err=aconf_err aconf_in 'fname' |
107 | $ open/write aconf zlibdefs.h | 109 | $ open/write aconf zconf.h |
108 | $ACONF_LOOP: | 110 | $ACONF_LOOP: |
109 | $ read/end_of_file=aconf_exit aconf_in line | 111 | $ read/end_of_file=aconf_exit aconf_in line |
110 | $ work = f$edit(line, "compress,trim") | 112 | $ work = f$edit(line, "compress,trim") |
111 | $ if f$extract(0,6,work) .nes. "#undef" | 113 | $ if f$extract(0,6,work) .nes. "#undef" |
112 | $ then | 114 | $ then |
113 | $ write aconf line | 115 | $ if f$extract(0,12,work) .nes. "#cmakedefine" |
116 | $ then | ||
117 | $ write aconf line | ||
118 | $ endif | ||
114 | $ else | 119 | $ else |
115 | $ cdef = f$element(1," ",work) | 120 | $ cdef = f$element(1," ",work) |
116 | $ gosub check_config | 121 | $ gosub check_config |