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