From fd236d99ef08e63de34ecfd5aca7dc41151f34b8 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 10 Jun 2020 08:13:13 -0600 Subject: [PATCH] cs configure: propoagate some options to rktio configure Otherwise, for example, there's a pthread mismatch currently on arm32 for rktio compilation and racketcs linking. --- racket/src/cs/c/configure | 14 ++++++++++++++ racket/src/cs/c/configure.ac | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/racket/src/cs/c/configure b/racket/src/cs/c/configure index 91bbe0c59b..efc3700787 100755 --- a/racket/src/cs/c/configure +++ b/racket/src/cs/c/configure @@ -5372,6 +5372,20 @@ SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} RANLIB="'"'"${RANLIB}"'"' SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} WINDRES="'"'"${WINDRES}"'"' SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CPPFLAGS="'"'"${CPPFLAGS}"'"' +# Make sure the --enable-pthread result is propagated: +if test "${enable_pthread}" = "yes" ; then + SUB_CONFIGURE_EXTRAS="$SUB_CONFIGURE_EXTRAS --enable-pthread" +else + SUB_CONFIGURE_EXTRAS="$SUB_CONFIGURE_EXTRAS --disable-pthread" +fi + +# Make sure the --enable-iconv result is propagated: +if test "${enable_iconv}" = "yes" ; then + SUB_CONFIGURE_EXTRAS="$SUB_CONFIGURE_EXTRAS --enable-iconv" +else + SUB_CONFIGURE_EXTRAS="$SUB_CONFIGURE_EXTRAS --disable-iconv" +fi + ############## libtool ################ if test "${enable_shared}" = "yes" ; then diff --git a/racket/src/cs/c/configure.ac b/racket/src/cs/c/configure.ac index 459fab06b9..2f1ad02079 100644 --- a/racket/src/cs/c/configure.ac +++ b/racket/src/cs/c/configure.ac @@ -601,6 +601,20 @@ SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} RANLIB="'"'"${RANLIB}"'"' SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} WINDRES="'"'"${WINDRES}"'"' SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CPPFLAGS="'"'"${CPPFLAGS}"'"' +# Make sure the --enable-pthread result is propagated: +if test "${enable_pthread}" = "yes" ; then + SUB_CONFIGURE_EXTRAS="$SUB_CONFIGURE_EXTRAS --enable-pthread" +else + SUB_CONFIGURE_EXTRAS="$SUB_CONFIGURE_EXTRAS --disable-pthread" +fi + +# Make sure the --enable-iconv result is propagated: +if test "${enable_iconv}" = "yes" ; then + SUB_CONFIGURE_EXTRAS="$SUB_CONFIGURE_EXTRAS --enable-iconv" +else + SUB_CONFIGURE_EXTRAS="$SUB_CONFIGURE_EXTRAS --disable-iconv" +fi + ############## libtool ################ if test "${enable_shared}" = "yes" ; then