Skip to content
Snippets Groups Projects
configure.in 1.47 KiB
Newer Older
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)])



jdh8d's avatar
jdh8d committed
EXTRA_CXXFLAGS=-O3 
CXX=g++
LD=g++
jdh8d's avatar
jdh8d committed
PLUGIN_NAME=SMPStaticAnalyzer.plx

if test "$enable_debugging" = yes; then 
jdh8d's avatar
jdh8d committed
	EXTRA_CXXFLAGS=-g
jdh8d's avatar
jdh8d committed
EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS}  \
                                   -std=c++0x \
jdh8d's avatar
jdh8d committed
	-I${SMPSA_HOME}/include  \
	-I${SMPSA_HOME}/include/base  \
	-I${SMPSA_HOME}/include/interfaces  \
	-I${SMPSA_HOME}/include/interfaces/abstract \
jdh8d's avatar
jdh8d committed
	-I${SMPSA_HOME}/include/interfaces/idapro \
	-I${IDASDK}/include \
jdh8d's avatar
jdh8d committed
	-D__IDP__ -D__PLUGIN__ -D__LINUX__ -DSTARS_IDA_INTERFACE -w  -m32 --short-enums \
if test "$enable_reducedanalysis" = yes; then 
jdh8d's avatar
jdh8d committed
	EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -DSMP_REDUCED_ANALYSIS"
jdh8d's avatar
jdh8d committed
if test ! "$enable_64bit" = no; then
	echo Enabling 64-bit IDAPRO support.
   	EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -D__EA64__"
   	PLUGIN_NAME=SMPStaticAnalyzer.plx64
jdh8d's avatar
jdh8d committed
STARS_HOME=$SMPSA_HOME

jdh8d's avatar
jdh8d committed
AC_SUBST(EXTRA_CXXFLAGS)
AC_SUBST(CXX)
AC_SUBST(LD)
jdh8d's avatar
jdh8d committed
AC_SUBST(PLUGIN_NAME)
jdh8d's avatar
jdh8d committed
AC_SUBST(STARS_HOME)
jdh8d's avatar
jdh8d committed

AC_OUTPUT(Makefile
	src/Makefile
	src/base/Makefile
jdh8d's avatar
jdh8d committed
	src/interfaces/Makefile
jdh8d's avatar
jdh8d committed
	src/interfaces/idapro/Makefile
	src/interfaces/irdb/Makefile
	src/interfaces/abstract/Makefile
	lib/Makefile
	scripts/Makefile
)