Configuring a separate build directory still replaces the source-root
Makefile and redirects subsequent CLI builds. Allow embedded builds
to leave the standalone build entry point unchanged.
When this option is enabled only PCRE library
is discovered.
--no-quickjs disables QuickJS engine discovery.
+ --no-root-makefile skips creation of the source-root Makefile.
--no-zlib disables zlib discovery. When this option is
enabled zlib dependant code is not built as a
part of libnjs.a.
# Makefile.
+if [ "$NJS_ROOT_MAKEFILE" = YES ]; then
+
cat << END > Makefile
# This file is auto-generated by configure
rm -rf $NJS_BUILD_DIR Makefile
END
+
+fi
NJS_TRY_PCRE2=YES
NJS_TRY_GOTO=YES
+NJS_ROOT_MAKEFILE=YES
NJS_CONFIGURE_OPTIONS=
--pic=*) NJS_PIC="$value" ;;
--build-dir=*) NJS_BUILD_DIR="$value" ;;
+ --no-root-makefile) NJS_ROOT_MAKEFILE=NO ;;
--address-sanitizer=*) NJS_ADDRESS_SANITIZER="$value" ;;
--addr2line=*) NJS_ADDR2LINE="$value" ;;