summaryrefslogtreecommitdiffhomepage
path: root/patches/gnucobol-3.1.2_pre.local.patch
blob: 8c20fd60374220e71ad204b7764337d9531538ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
diff -ru gnucobol-3.1.2.orig/configure gnucobol-3.1.2/configure
--- gnucobol-3.1.2.orig/configure	2020-12-23 13:04:58.000000000 +0100
+++ gnucobol-3.1.2/configure	2022-02-07 11:04:34.765517654 +0100
@@ -18217,165 +18217,10 @@
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
-# Checks for size of long
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if size of long int = size of long long" >&5
-$as_echo_n "checking if size of long int = size of long long... " >&6; }
-if test "$cross_compiling" = yes; then :
-  if test "$COB_LI_IS_LL" = "0"; then
-		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5
-$as_echo "specified \"no\" on configure line" >&6; }
-	 else
-		if test "$COB_LI_IS_LL" = "1"; then
-			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5
-$as_echo "specified \"yes\" on configure line" >&6; }
-		else
-			COB_LI_IS_LL=1
-			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5
-$as_echo "assumed - cross-compilation" >&6; }
-		fi
-	 fi
-	 $as_echo "#define COB_LI_IS_LL \$COB_LI_IS_LL" >>confdefs.h
-
-	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5
-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;}
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-	if (sizeof(long int) == sizeof(long long))
-		return 0;
-	return 1;
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  $as_echo "#define COB_LI_IS_LL 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if long is 32 bits" >&5
-$as_echo_n "checking if long is 32 bits... " >&6; }
-if test "$cross_compiling" = yes; then :
-  if test "$COB_32_BIT_LONG" = "0"; then
-		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5
-$as_echo "specified \"no\" on configure line" >&6; }
-	 else
-		if test "$COB_32_BIT_LONG" = "1"; then
-			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5
-$as_echo "specified \"yes\" on configure line" >&6; }
-		else
-			COB_32_BIT_LONG=1
-			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5
-$as_echo "assumed - cross-compilation" >&6; }
-		fi
-	 fi
-	 $as_echo "#define COB_32_BIT_LONG \$COB_32_BIT_LONG" >>confdefs.h
-
-	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5
-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;}
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-	if (sizeof (long) == 4)
-		return 0;
-	return 1;
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  $as_echo "#define COB_32_BIT_LONG 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-
-
-if test "cross_compiling" != "yes"; then
-	COB_HAS_64_BIT_POINTER="no"
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pointer is longer than 32 bits" >&5
-$as_echo_n "checking if pointer is longer than 32 bits... " >&6; }
-if test "$cross_compiling" = yes; then :
-  if test "$COB_HAS_64_BIT_POINTER" = "0"; then
-		COB_HAS_64_BIT_POINTER="no"
-		$as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h
-
-		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5
-$as_echo "specified \"no\" on configure line" >&6; }
-	 else
-		if test "$COB_HAS_64_BIT_POINTER" = "1"; then
-			COB_HAS_64_BIT_POINTER="yes"
-			$as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h
-
-			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5
-$as_echo "specified \"yes\" on configure line" >&6; }
-		else
-			COB_HAS_64_BIT_POINTER="no"
-			$as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h
-
-			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed \"no\" - cross-compilation" >&5
-$as_echo "assumed \"no\" - cross-compilation" >&6; }
-		fi
-	 fi
-	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5
-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;}
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-	if (sizeof (void *) > 4U)
-		return 0;
-	return 1;
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  COB_HAS_64_BIT_POINTER="yes"
-	 $as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h
-
-	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
+# 64-bit midipix
+$as_echo "#define COB_LI_IS_LL 1" >>confdefs.h
+$as_echo "#define COB_32_BIT_LONG 0" >>confdefs.h
+$as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h
 
 # Check gcc wrapv option
 # We likely don't need this and remove it before 3.0 final release