1dnl Configury specific to the libfabrics perf hooking provider 2 3dnl Called to configure this provider 4dnl 5dnl Arguments: 6dnl 7dnl $1: action if configured successfully 8dnl $2: action if not configured successfully 9dnl 10 11AC_DEFUN([FI_PERF_CONFIGURE],[ 12 # Determine if we can support the perf hooking provider 13 perf_happy=0 14 AS_IF([test x"$enable_perf" != x"no"], [perf_happy=1]) 15 AS_IF([test x"$perf_dl" == x"1"], [ 16 perf_happy=0 17 AC_MSG_ERROR([perf provider cannot be compiled as DL]) 18 ]) 19 AS_IF([test $perf_happy -eq 1], [$1], [$2]) 20 21]) 22