#!/bin/bash
# Copyright (c) 2000-2015 Synology Inc. All rights reserved.

case ${MakeClean} in
	[Yy][Ee][Ss])
		make distclean
		;;
esac

case ${CleanOnly} in
	[Yy][Ee][Ss])
		return
		;;
esac

env CC="${CC}" AR="${AR}" RANLIB=${RANLIB} STRIP=${STRIP} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CFLAGS}" \
./configure ${ConfigOpt} \
	--disable-selinux \
	--disable-realtime \
	--disable-o_direct \
	--with-lvm1=none \
	--with-pool=none \
	--with-cluster=none \
	--disable-udev-systemd-background-jobs \
	ac_cv_func_malloc_0_nonnull=yes \
	ac_cv_func_realloc_0_nonnull=yes

make ${MAKE_FLAGS}

