@@ -23,7 +23,7 @@ endif()
23
23
# Obsolete in favor of C99 <fenv.h> functions to control FPU rounding modes.
24
24
function (_php_zend_check_fpu_setcw result)
25
25
# Skip in consecutive configuration phases.
26
- if (NOT DEFINED PHP_ZEND_HAS_FPU_SETCW )
26
+ if (NOT DEFINED PHP_ZEND_ ${result} )
27
27
message (CHECK_START "Checking for usable _FPU_SETCW" )
28
28
29
29
cmake_push_check_state(RESET)
@@ -48,24 +48,24 @@ function(_php_zend_check_fpu_setcw result)
48
48
49
49
return 0;
50
50
}
51
- ]] PHP_ZEND_HAS_FPU_SETCW )
51
+ ]] PHP_ZEND_ ${result} )
52
52
cmake_pop_check_state()
53
53
54
- if (PHP_ZEND_HAS_FPU_SETCW )
54
+ if (PHP_ZEND_ ${result} )
55
55
message (CHECK_PASS "yes" )
56
56
else ()
57
57
message (CHECK_FAIL "no" )
58
58
endif ()
59
59
endif ()
60
60
61
- set (${result} ${PHP_ZEND_HAS_FPU_SETCW } )
61
+ set (${result} ${PHP_ZEND_ ${result} })
62
62
63
63
return (PROPAGATE ${result} )
64
64
endfunction ()
65
65
66
66
function (_php_zend_check_fpsetprec result)
67
67
# Skip in consecutive configuration phases.
68
- if (NOT DEFINED PHP_ZEND_HAS_FPSETPREC )
68
+ if (NOT DEFINED PHP_ZEND_ ${result} )
69
69
message (CHECK_START "Checking for usable fpsetprec" )
70
70
71
71
cmake_push_check_state(RESET)
@@ -89,24 +89,24 @@ function(_php_zend_check_fpsetprec result)
89
89
90
90
return 0;
91
91
}
92
- ]] PHP_ZEND_HAS_FPSETPREC )
92
+ ]] PHP_ZEND_ ${result} )
93
93
cmake_pop_check_state()
94
94
95
- if (PHP_ZEND_HAS_FPSETPREC )
95
+ if (PHP_ZEND_ ${result} )
96
96
message (CHECK_PASS "yes" )
97
97
else ()
98
98
message (CHECK_FAIL "no" )
99
99
endif ()
100
100
endif ()
101
101
102
- set (${result} ${PHP_ZEND_HAS_FPSETPREC } )
102
+ set (${result} ${PHP_ZEND_ ${result} })
103
103
104
104
return (PROPAGATE ${result} )
105
105
endfunction ()
106
106
107
107
function (_php_zend_check_controlfp result)
108
108
# Skip in consecutive configuration phases.
109
- if (NOT DEFINED PHP_ZEND_HAS_CONTROLFP )
109
+ if (NOT DEFINED PHP_ZEND_ ${result} )
110
110
message (CHECK_START "Checking for usable _controlfp" )
111
111
112
112
cmake_push_check_state(RESET)
@@ -130,24 +130,24 @@ function(_php_zend_check_controlfp result)
130
130
131
131
return 0;
132
132
}
133
- ]] PHP_ZEND_HAS_CONTROLFP )
133
+ ]] PHP_ZEND_ ${result} )
134
134
cmake_pop_check_state()
135
135
136
- if (PHP_ZEND_HAS_CONTROLFP )
136
+ if (PHP_ZEND_ ${result} )
137
137
message (CHECK_PASS "yes" )
138
138
else ()
139
139
message (CHECK_FAIL "no" )
140
140
endif ()
141
141
endif ()
142
142
143
- set (${result} ${PHP_ZEND_HAS_CONTROLFP } )
143
+ set (${result} ${PHP_ZEND_ ${result} })
144
144
145
145
return (PROPAGATE ${result} )
146
146
endfunction ()
147
147
148
148
function (_php_zend_check_controlfp_s result)
149
149
# Skip in consecutive configuration phases.
150
- if (NOT DEFINED PHP_ZEND_HAS_CONTROLFP_S )
150
+ if (NOT DEFINED PHP_ZEND_ ${result} )
151
151
message (CHECK_START "Checking for usable _controlfp_s" )
152
152
153
153
cmake_push_check_state(RESET)
@@ -172,24 +172,24 @@ function(_php_zend_check_controlfp_s result)
172
172
173
173
return 0;
174
174
}
175
- ]] PHP_ZEND_HAS_CONTROLFP_S )
175
+ ]] PHP_ZEND_ ${result} )
176
176
cmake_pop_check_state()
177
177
178
- if (PHP_ZEND_HAS_CONTROLFP_S )
178
+ if (PHP_ZEND_ ${result} )
179
179
message (CHECK_PASS "yes" )
180
180
else ()
181
181
message (CHECK_FAIL "no" )
182
182
endif ()
183
183
endif ()
184
184
185
- set (${result} ${PHP_ZEND_HAS_CONTROLFP_S } )
185
+ set (${result} ${PHP_ZEND_ ${result} })
186
186
187
187
return (PROPAGATE ${result} )
188
188
endfunction ()
189
189
190
190
function (_php_zend_check_fpu_inline_asm_x86 result)
191
191
# Skip in consecutive configuration phases.
192
- if (NOT DEFINED PHP_ZEND_HAS_FPU_INLINE_ASM_X86 )
192
+ if (NOT DEFINED PHP_ZEND_ ${result} )
193
193
message (
194
194
CHECK_START
195
195
"Checking whether FPU control word can be manipulated by inline assembler"
@@ -215,17 +215,17 @@ function(_php_zend_check_fpu_inline_asm_x86 result)
215
215
216
216
return 0;
217
217
}
218
- ]] PHP_ZEND_HAS_FPU_INLINE_ASM_X86 )
218
+ ]] PHP_ZEND_ ${result} )
219
219
cmake_pop_check_state()
220
220
221
- if (PHP_ZEND_HAS_FPU_INLINE_ASM_X86 )
221
+ if (PHP_ZEND_ ${result} )
222
222
message (CHECK_PASS "yes" )
223
223
else ()
224
224
message (CHECK_FAIL "no" )
225
225
endif ()
226
226
endif ()
227
227
228
- set (${result} ${PHP_ZEND_HAS_FPU_INLINE_ASM_X86 } )
228
+ set (${result} ${PHP_ZEND_ ${result} })
229
229
230
230
return (PROPAGATE ${result} )
231
231
endfunction ()
0 commit comments