summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-11-14 09:02:24 (GMT)
committerGitHub <noreply@github.com>2021-11-14 09:02:24 (GMT)
commit464e6616be86129e33af6d9e43540c260d6804d5 (patch)
treec3f516c93bf2e0bc58ee6b3868e5a8a6aab12977 /configure
parent25835c518aa7446f3680b62c1fb43827e0f190d9 (diff)
downloadcpython-464e6616be86129e33af6d9e43540c260d6804d5.zip
cpython-464e6616be86129e33af6d9e43540c260d6804d5.tar.gz
cpython-464e6616be86129e33af6d9e43540c260d6804d5.tar.bz2
bpo-45800: Move pyexpat build setup into configure (GH-29547)
Settings for :mod:`pyexpat` C extension are now detected by ``configure``. The bundled ``expat`` library is built in ``Makefile``. Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure b/configure
index 43516a4..53dc4a2 100755
--- a/configure
+++ b/configure
@@ -664,6 +664,9 @@ LIBMPDEC_INTERNAL
LIBMPDEC_LDFLAGS
LIBMPDEC_CFLAGS
LIBFFI_INCLUDEDIR
+LIBEXPAT_INTERNAL
+LIBEXPAT_LDFLAGS
+LIBEXPAT_CFLAGS
TZPATH
SHLIBS
CFLAGSFORSHARED
@@ -10715,6 +10718,24 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
$as_echo "$with_system_expat" >&6; }
+if test "x$with_system_expat" = xyes; then :
+
+ LIBEXPAT_CFLAGS=""
+ LIBEXPAT_LDFLAGS="-lexpat"
+ LIBEXPAT_INTERNAL=
+
+else
+
+ LIBEXPAT_CFLAGS="-I\$(srcdir)/Modules/expat"
+ LIBEXPAT_LDFLAGS="-lm \$(LIBEXPAT_A)"
+ LIBEXPAT_INTERNAL="\$(LIBEXPAT_A)"
+
+fi
+
+
+
+
+
# Check for use of the system libffi library
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
$as_echo_n "checking for --with-system-ffi... " >&6; }