diff options
Diffstat (limited to 'old-configure.in')
-rw-r--r-- | old-configure.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/old-configure.in b/old-configure.in index 8785bc9467..5c7e3c4411 100644 --- a/old-configure.in +++ b/old-configure.in @@ -5235,7 +5235,14 @@ ac_configure_args="$_SUBDIR_CONFIG_ARGS" # --with-system-nspr will have been converted into the relevant $NSPR_CFLAGS # and $NSPR_LIBS. -ac_configure_args="`echo $ac_configure_args | sed -e 's/--with-system-nspr[^[:space:]]* *//'`" +case "${OS_TARGET}" in + Darwin|DragonFly|FreeBSD|NetBSD|OpenBSD) + ac_configure_args="`echo $ac_configure_args | sed -e 's/--with-system-nspr[^[:space:]]* *//'`" + ;; + *) + ac_configure_args="`echo $ac_configure_args | ${TOOLCHAIN_PREFIX}sed -e 's/--with-system-nspr\S* *//'`" + ;; +esac if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then ac_configure_args="$ac_configure_args --with-nspr-cflags='$NSPR_CFLAGS'" |