File: tests.m4

package info (click to toggle)
libfsntfs 20190104-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,708 kB
  • sloc: ansic: 230,932; sh: 5,968; makefile: 1,743; python: 492; sed: 16
file content (23 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (33)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dnl Functions for testing
dnl
dnl Version: 20180905

dnl Function to detect if tests dependencies are available
AC_DEFUN([AX_TESTS_CHECK_LOCAL],
  [AC_CHECK_HEADERS([dlfcn.h])

  AC_CHECK_FUNCS([fmemopen getopt mkstemp unlink])

  AC_CHECK_LIB(
    dl,
    dlsym)

  AS_IF(
    [test "x$lt_cv_prog_gnu_ld" = xyes && test "x$ac_cv_lib_dl_dlsym" = xyes],
    [AC_DEFINE(
      [HAVE_GNU_DL_DLSYM],
      [1],
      [Define to 1 if dlsym funtion is available in GNU dl.])
  ])
])