Newer
Older
AC_INIT()
AC_ARG_ENABLE([debugging], [ --enable-debugging enable -g when compiling ])
AC_ARG_ENABLE([64bit], [ --enable-64bit enable 64bit binary analysis ])
AC_ARG_ENABLE([reducedanalysis], [ --enable-reducedanalysis reduce the amount of in-depth analysis (useful for large programs that exhaust memory)])
AC_ARG_ENABLE([idapro], [ --enable-idapro build STARS as a plugin for IDA])
AC_ARG_ENABLE([idapro], [ --enable-irdb build STARS as a IRDB analysis])
AC_CANONICAL_HOST
if test "$enable_debugging" = yes; then
fi
if test "$enable_idapro" != no; then
BACKENDS=idapro
fi
if test "$enable_irdb" = yes; then
BACKENDS="$BACKENDS irdb"
fi
-I${SMPSA_HOME}/include \
-I${SMPSA_HOME}/include/base \
-I${SMPSA_HOME}/include/interfaces \
-I${SMPSA_HOME}/include/interfaces/abstract \
-I${SMPSA_HOME}/include/interfaces/idapro \
-D__LINUX__ -w -m32 --short-enums \
IDA_CXXFLAGS="-DSTARS_IDA_INTERFACE -D__PLUGIN__ -D__IDP__"
IRDB_CXXFLAGS="-DSTARS_IRDB_INTERFACE "
if test "$enable_reducedanalysis" = yes; then
EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -DSMP_REDUCED_ANALYSIS"
if test ! "$enable_64bit" = no; then
echo Enabling 64-bit IDAPRO support.
EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -D__EA64__"
PLUGIN_NAME=SMPStaticAnalyzer.plx64
AC_SUBST(EXTRA_CXXFLAGS)
AC_SUBST(CXX)
AC_SUBST(LD)
AC_SUBST(IDA_CXXFLAGS)
AC_SUBST(IRDB_CXXFLAGS)
AC_SUBST(BACKENDS)
AC_OUTPUT(Makefile
src/Makefile
src/base/Makefile
src/interfaces/abstract/Makefile
src/drivers/Makefile
src/drivers/idapro/Makefile
src/drivers/irdb/Makefile
lib/irdb/Makefile
lib/idapro/Makefile