File: hdrl.m4

package info (click to toggle)
cpl-plugin-vimos 3.1.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,044 kB
  • sloc: ansic: 160,597; cpp: 13,619; sh: 4,323; python: 1,425; makefile: 793; perl: 10
file content (24 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (3)
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])
])