Commit 65086c80 authored by incardon's avatar incardon

fixing script for gin compilation

parent efcc71de
......@@ -67,12 +67,18 @@ AC_ARG_ENABLE(memcheck,
)
AC_MSG_RESULT($mem_check)
if test x"$mem_check" = x"yes"; then
AC_DEFINE([MEMLEAK_CHECK],[],[Memory check])
fi
####################################
DEFAULT_LIB=""
# At least for glibc, clock_gettime is in librt. But don't pull that
# in if it still doesn't give us the function we want.
AC_CHECK_LIB(rt, clock_gettime,[DEFAULT_LIB+=" -lrt "],[],[])
##### CHECK FOR BOOST ##############
AX_BOOST([1.41],[],[])
......@@ -111,6 +117,7 @@ AM_CONDITIONAL(BUILDCUDA, test x$gpu_support = x"yes")
AC_SUBST(NVCCFLAGS)
AC_SUBST(INCLUDES_PATH)
AC_SUBST(DEFAULT_LIB)
# Checks for typedefs, structures, and compiler characteristics.
......
......@@ -100,7 +100,7 @@ am_vcluster_OBJECTS = vcluster-main.$(OBJEXT) \
vcluster-VCluster.$(OBJEXT)
vcluster_OBJECTS = $(am_vcluster_OBJECTS)
am__DEPENDENCIES_1 =
am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
vcluster_DEPENDENCIES = $(am__DEPENDENCIES_2)
vcluster_LINK = $(CXXLD) $(vcluster_CXXFLAGS) $(CXXFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
......@@ -193,6 +193,7 @@ CXX = mpic++
CXXDEPMODE = depmode=gcc3
CXXFLAGS = --std=c++11 -march=native -mtune=native -Wno-unused-local-typedefs -Wextra -Wno-unused-parameter -Wall -O3 -g3 -funroll-loops
CYGPATH_W = echo
DEFAULT_LIB = -lrt
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
ECHO_C =
......@@ -282,7 +283,7 @@ target_vendor = unknown
top_build_prefix = ../
top_builddir = ..
top_srcdir = ..
LINKLIBS = $(PTHREAD_LIBS) $(OPT_LIBS) $(BOOST_LDFLAGS)
LINKLIBS = $(DEFAULT_LIB) $(PTHREAD_LIBS) $(OPT_LIBS) $(BOOST_LDFLAGS)
vcluster_SOURCES = main.cpp VCluster.cpp
vcluster_CXXFLAGS = $(INCLUDES_PATH)
vcluster_CFLAGS = $(CUDA_CFLAGS)
......
LINKLIBS = $(PTHREAD_LIBS) $(OPT_LIBS) $(BOOST_LDFLAGS)
LINKLIBS = $(DEFAULT_LIB) $(PTHREAD_LIBS) $(OPT_LIBS) $(BOOST_LDFLAGS)
bin_PROGRAMS = vcluster
vcluster_SOURCES = main.cpp VCluster.cpp
vcluster_CXXFLAGS = $(INCLUDES_PATH)
vcluster_CFLAGS = $(CUDA_CFLAGS)
vcluster_LDADD = $(LINKLIBS) -lrt
vcluster_LDADD = $(LINKLIBS)
.cu.o :
$(NVCC) $(NVCCFLAGS) -o $@ -c $<
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment