Skip to content

Commit

Permalink
volk: Properly sets up package config script if Orc is not found for …
Browse files Browse the repository at this point in the history
…Volk.
  • Loading branch information
trondeau committed Feb 17, 2011
1 parent f939848 commit 2e67c13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/orc.m4
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ AC_DEFUN([ORC_CHECK],
AC_SUBST(ORC_CFLAGS)
LV_HAVE_ORC=yes
LV_HAVE_ORCC=yes
LV_ORC_PKGCONFIG="-lvolk_orc"
if test "x$cross_compiling" = "xyes" ; then
LV_HAVE_ORCC=no
fi
Expand All @@ -32,14 +33,17 @@ AC_DEFUN([ORC_CHECK],
AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
LV_HAVE_ORC=no
LV_HAVE_ORCC=no
LV_ORC_PKGCONFIG=""
])
else
AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
LV_HAVE_ORC=no
LV_HAVE_ORCC=no
LV_ORC_PKGCONFIG=""
fi
AM_CONDITIONAL(LV_HAVE_ORC, [test "x$LV_HAVE_ORC" = "xyes"])
AM_CONDITIONAL(LV_HAVE_ORCC, [test "x$LV_HAVE_ORCC" = "xyes"])
AC_SUBST(LV_ORC_PKGCONFIG)
]))

AC_DEFUN([ORC_OUTPUT],
Expand Down
2 changes: 1 addition & 1 deletion volk.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Name: volk
Description: VOLK.. Vector Optimized Library of Kernels
Requires:
Version: @VERSION@
Libs: -lvolk -lvolk_runtime -lvolk_orc
Libs: -lvolk -lvolk_runtime @LV_ORC_PKGCONFIG@
Cflags: -I${includedir} ${LV_CXXFLAGS}

0 comments on commit 2e67c13

Please sign in to comment.