Skip to content

Commit

Permalink
Added openpa in release tarball.
Browse files Browse the repository at this point in the history
  • Loading branch information
minsii committed Nov 13, 2017
1 parent d864b7a commit 3ccd8b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile.am
Expand Up @@ -10,9 +10,9 @@ include_HEADERS = include/casper.h

libcasper_la_SOURCES =

external_subdirs = @hwlocsrcdir@
external_ldflags = @hwloclibdir@
convenience_libs = @hwloclib@
external_subdirs = @hwlocsrcdir@ @opasrcdir@
external_ldflags = @hwloclibdir@ @opalibdir@
convenience_libs = @hwloclib@ @opalib@

libcasper_la_LDFLAGS = $(external_ldflags)
libcasper_la_LIBADD = $(convenience_libs)
Expand Down
8 changes: 7 additions & 1 deletion configure.ac
Expand Up @@ -343,6 +343,12 @@ fi
AM_CONDITIONAL([csp_have_topo_opt], [test "$have_hwloc" = "yes"])

# OPA library (required)
opasrcdir=""
AC_SUBST([opasrcdir])
opalibdir=""
AC_SUBST([opalibdir])
opalib=""
AC_SUBST([opalib])
AC_ARG_WITH(opa, [AC_HELP_STRING([--with-opa[=DIR|embedded|no]],
[Use the specified OPA installation; Header file opa_primitives.h should be in
dir/include, and libopa should be in dir/lib.Use embedded openpa by default])]
Expand All @@ -351,7 +357,7 @@ case "$with_opa" in
embedded)
if test -e "${csp_top_srcdir}/src/openpa" ; then
opasrcdir="src/openpa"
opalib="src/openpa/src/lib${OPALIBNAME}.la"
# only need header files
PAC_APPEND_FLAG([-I${csp_top_srcdir}/src/openpa/src],[CPPFLAGS])
PAC_APPEND_FLAG([-I${csp_top_builddir}/src/openpa/src],[CPPFLAGS])

Expand Down

0 comments on commit 3ccd8b5

Please sign in to comment.