diff options
author | Christian Heimes <christian@python.org> | 2021-11-14 09:02:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-14 09:02:24 (GMT) |
commit | 464e6616be86129e33af6d9e43540c260d6804d5 (patch) | |
tree | c3f516c93bf2e0bc58ee6b3868e5a8a6aab12977 /configure | |
parent | 25835c518aa7446f3680b62c1fb43827e0f190d9 (diff) | |
download | cpython-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-x | configure | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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; } |