1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
# HDRL_CHECK([location])
# ----------------------
# Sets build variables required to build and link hdrl
# the argument defines the relative location of the hdrl external in the source
# tree
AC_DEFUN([HDRL_CHECK],
[
HDRL_LOCATION="$1"
AC_MSG_CHECKING([HDRL in $HDRL_LOCATION])
# visibility hidden to not expose any hdrl symbols in the pipeline shared
# libraries
HDRL_CFLAGS="-std=c99 -fvisibility=hidden"
HDRL_LIBS="-lhdrl -lcplcore -lcpldrs -lcplui -lcpldfs -lcext"
HDRL_LDFLAGS="-L\$(top_builddir)/$HDRL_LOCATION"
HDRL_INCLUDES="-I\$(top_srcdir)/$HDRL_LOCATION"
AC_SUBST(HDRL_LIBS)
AC_SUBST(HDRL_LDFLAGS)
AC_SUBST(HDRL_CFLAGS)
AC_SUBST(HDRL_INCLUDES)
AC_MSG_RESULT([ok])
])
|