Skip to content

Commit e9042ea

Browse files
committed
Fix some mixups between define quoted/unquoted.
1 parent 2c46d5d commit e9042ea

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

Tools/configure/conf_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def setup_machdep(v):
7676
SUNOS_VERSION = pyconf.sed(
7777
v.ac_sys_release, r"\.(\d)$", r".0\1"
7878
).replace(".", "")
79-
pyconf.define(
79+
pyconf.define_unquoted(
8080
"Py_SUNOS_VERSION",
8181
SUNOS_VERSION,
8282
"The version of SunOS/Solaris as reported by `uname -r' without the dot.",

Tools/configure/conf_security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def check_ssl_cipher_suites(v):
303303
pyconf.define("PY_SSL_DEFAULT_CIPHERS", 2)
304304
else:
305305
pyconf.define("PY_SSL_DEFAULT_CIPHERS", 0)
306-
pyconf.define("PY_SSL_DEFAULT_CIPHER_STRING", f'"{ssl_suites}"')
306+
pyconf.define_unquoted("PY_SSL_DEFAULT_CIPHER_STRING", f'"{ssl_suites}"')
307307

308308

309309
def check_builtin_hashlib_hashes(v):

Tools/configure/conf_syslibs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def check_remaining_libs(v):
212212
AIX_BUILDDATE = pyconf.cmd_output(
213213
["sh", "-c", "lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }'"]
214214
)
215-
pyconf.define(
215+
pyconf.define_unquoted(
216216
"AIX_BUILDDATE",
217217
AIX_BUILDDATE,
218218
"BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the PEP425 tag "

Tools/configure/conf_targets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def setup_android_api(v):
8686
pyconf.result(v.ANDROID_API_LEVEL)
8787
if not v.ANDROID_API_LEVEL:
8888
pyconf.error("Fatal: you must define __ANDROID_API__")
89-
pyconf.define(
89+
pyconf.define_unquoted(
9090
"ANDROID_API_LEVEL", v.ANDROID_API_LEVEL, "The Android API level."
9191
)
9292
v.LIBS += " -llog"

configure-new

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5921,7 +5921,7 @@ function u_setup_machdep( SUNOS_VERSION, ac_md_release, ac_md_system, _split_
59215921
}
59225922
if ((V["ac_sys_system"] == "SunOS")) {
59235923
SUNOS_VERSION = _str_replace(pyconf_sed(V["ac_sys_release"], "\\.(\\d)$", ".0\\1"), ".", "")
5924-
pyconf_define("Py_SUNOS_VERSION", SUNOS_VERSION, 1, "The version of SunOS/Solaris as reported by `uname -r' without the dot.")
5924+
pyconf_define_unquoted("Py_SUNOS_VERSION", SUNOS_VERSION, "The version of SunOS/Solaris as reported by `uname -r' without the dot.")
59255925
}
59265926
}
59275927
pyconf_result("\"" V["MACHDEP"] "\"")
@@ -6882,7 +6882,7 @@ function u_check_ssl_cipher_suites( ssl_suites) {
68826882
pyconf_define("PY_SSL_DEFAULT_CIPHERS", 2, 0, "")
68836883
} else {
68846884
pyconf_define("PY_SSL_DEFAULT_CIPHERS", 0, 0, "")
6885-
pyconf_define("PY_SSL_DEFAULT_CIPHER_STRING", "\"" ssl_suites "\"", 1, "")
6885+
pyconf_define_unquoted("PY_SSL_DEFAULT_CIPHER_STRING", "\"" ssl_suites "\"")
68866886
}
68876887
}
68886888

@@ -7479,7 +7479,7 @@ function u_check_remaining_libs( AIX_BUILDDATE, ac_cv_aligned_required) {
74797479
_va83[3] = "lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }'"
74807480
_va83[0] = 3
74817481
AIX_BUILDDATE = pyconf_cmd_output(_va83)
7482-
pyconf_define("AIX_BUILDDATE", AIX_BUILDDATE, 1, "BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the PEP425 tag of the build system.")
7482+
pyconf_define_unquoted("AIX_BUILDDATE", AIX_BUILDDATE, "BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the PEP425 tag of the build system.")
74837483
pyconf_result(AIX_BUILDDATE)
74847484
}
74857485
ac_cv_aligned_required = (pyconf_run_check("aligned memory access is required", "\n int main(void) {\n char s[16];\n int i, *p1, *p2;\n for (i=0; i < 16; i++) s[i] = i;\n p1 = (int*)(s+1);\n p2 = (int*)(s+2);\n if (*p1 == *p2) return 1;\n return 0;\n }\n ") ? "no" : "yes")
@@ -7586,7 +7586,7 @@ function u_setup_android_api( _i_line, _n_line, android_out, android_out_retu
75867586
if ((!((V["ANDROID_API_LEVEL"] != "") && (V["ANDROID_API_LEVEL"] != "no")))) {
75877587
pyconf_error("Fatal: you must define __ANDROID_API__")
75887588
}
7589-
pyconf_define("ANDROID_API_LEVEL", V["ANDROID_API_LEVEL"], 1, "The Android API level.")
7589+
pyconf_define_unquoted("ANDROID_API_LEVEL", V["ANDROID_API_LEVEL"], "The Android API level.")
75907590
V["LIBS"] = V["LIBS"] " -llog"
75917591
pyconf_checking("for the Android arm ABI")
75927592
pyconf_result(arm_arch)

0 commit comments

Comments
 (0)