blob: b80fed4b5ccd81fccf228e315988424d5de81252 [file] [log] [blame]
#!/bin/sh
# Copyright (C) Igor Sysoev
# Copyright (C) NGINX, Inc.
# Disable localized program messages.
LC_ALL=C
export LC_ALL
# Stop on error exit status.
set -e
# Stop on uninitialized variable.
set -u
. auto/init
. auto/options
NJS_AUTOTEST=$NJS_BUILD_DIR/autotest
NJS_AUTOCONF_ERR=$NJS_BUILD_DIR/autoconf.err
NJS_AUTO_CONFIG_H=$NJS_BUILD_DIR/njs_auto_config.h
NJS_MAKEFILE=$NJS_BUILD_DIR/Makefile
NJS_LIB_INCS="src $NJS_BUILD_DIR"
test -d $NJS_BUILD_DIR || mkdir $NJS_BUILD_DIR
> $NJS_AUTOCONF_ERR
cat << END > $NJS_AUTO_CONFIG_H
/* This file is auto-generated by configure */
END
. auto/os
. auto/cc
. auto/types
. auto/endianness
. auto/clang
. auto/time
. auto/memalign
. auto/getrandom
. auto/stat
. auto/explicit_bzero
. auto/pcre
. auto/readline
. auto/openssl
. auto/sources
NJS_LIB_AUX_CFLAGS="$NJS_PCRE_CFLAGS"
NJS_LIBS="$NJS_LIBRT"
NJS_LIB_AUX_LIBS="$NJS_PCRE_LIB $NJS_OPENSSL_LIB"
. auto/modules
. auto/make
. auto/expect
. auto/summary