configure.in (n2n-2.8) | : | configure.in (n2n-3.0) | ||
---|---|---|---|---|
AC_INIT([Makefile.in], 1.0) | AC_INIT([Makefile.in], 1.0) | |||
AC_ARG_WITH(edgex, [ --with-edgex Build for Ubiquity-X]) | ||||
# NOTE: this file is not actually used. You need to edit configure as well! | # NOTE: this file is not actually used. You need to edit configure as well! | |||
N2N_VERSION_SHORT=`grep N2N_VERSION_SHORT ../../Makefile | head -1| cut -d "=" - f 2` | N2N_VERSION_SHORT=`grep N2N_VERSION_SHORT ../../Makefile | head -1| cut -d "=" - f 2` | |||
GIT_COMMITS=`grep GIT_COMMITS ../../Makefile | head -1| cut -d "=" -f 2` | GIT_COMMITS=`grep GIT_COMMITS ../../Makefile | head -1| cut -d "=" -f 2` | |||
MACHINE=`uname -m` | DEBIAN_VERSION=`cat /etc/debian_version | grep "^8" | wc -l` | |||
SHORT_MACHINE=`uname -m | cut -b1-3` | ||||
EXTRA_DEP="" | ||||
if test $DEBIAN_VERSION = "0"; then | ||||
EXTRA_DEP=", libzstd1" | ||||
fi | ||||
if test "${EXTN+set}" != set; then | ||||
MACHINE=`uname -m` | ||||
SHORT_MACHINE=`echo $MACHINE | cut -b1-3` | ||||
if test $MACHINE = "x86_64"; then | if test $MACHINE = "x86_64"; then | |||
EXTN="amd64" | EXTN="amd64" | |||
else | ||||
if test $SHORT_MACHINE = "aar"; then | ||||
EXTN="arm64" | ||||
EXTRA_DEPS="" | ||||
else | ||||
if test $SHORT_MACHINE = "arm"; then | ||||
EXTN="armhf" | ||||
EXTRA_DEPS="" | ||||
else | else | |||
if test $SHORT_MACHINE = "mip"; then | if test $SHORT_MACHINE = "aar"; then | |||
EXTN="mips" | EXTN="arm64" | |||
EXTRA_DEPS="" | else | |||
else | if test $SHORT_MACHINE = "arm"; then | |||
EXTN="i386" | EXTN="armhf" | |||
fi | else | |||
fi | if test $SHORT_MACHINE = "mip"; then | |||
fi | EXTN="mips" | |||
else | ||||
EXTN="i386" | ||||
fi | ||||
fi | ||||
fi | ||||
fi | ||||
fi | ||||
if test "${with_edgex+set}" = set; then | ||||
EXTN="mipsel" | ||||
fi | fi | |||
APP=n2n | APP=n2n | |||
DATE=`date -R` | DATE=`date -R` | |||
AC_SUBST(APP) | AC_SUBST(APP) | |||
AC_SUBST(MACHINE) | ||||
AC_SUBST(N2N_VERSION_SHORT) | AC_SUBST(N2N_VERSION_SHORT) | |||
AC_SUBST(GIT_COMMITS) | AC_SUBST(GIT_COMMITS) | |||
AC_SUBST(EXTN) | AC_SUBST(EXTN) | |||
AC_SUBST(DATE) | AC_SUBST(DATE) | |||
AC_SUBST(EXTRA_DEP) | ||||
AC_CONFIG_FILES(debian/changelog) | AC_CONFIG_FILES(debian/changelog) | |||
AC_CONFIG_FILES(debian/files) | AC_CONFIG_FILES(debian/files) | |||
AC_CONFIG_FILES(debian/control) | AC_CONFIG_FILES(debian/control) | |||
AC_CONFIG_FILES(debian/rules) | AC_CONFIG_FILES(debian/rules) | |||
AC_CONFIG_FILES(../etc/systemd/system/edge.service) | AC_CONFIG_FILES(../etc/systemd/system/edge.service) | |||
AC_CONFIG_FILES(../etc/systemd/system/edge@.service) | AC_CONFIG_FILES(../etc/systemd/system/edge@.service) | |||
AC_CONFIG_FILES(../etc/systemd/system/edge-ntopng@.service) | AC_CONFIG_FILES(../etc/systemd/system/edge-ntopng@.service) | |||
AC_CONFIG_FILES(../etc/systemd/system/supernode.service) | AC_CONFIG_FILES(../etc/systemd/system/supernode.service) | |||
AC_CONFIG_FILES(Makefile) | AC_CONFIG_FILES(Makefile) | |||
End of changes. 6 change blocks. | ||||
21 lines changed or deleted | 33 lines changed or added |