Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 776652
Collapse All | Expand All

(-)a/configure.ac (-9 / +9 lines)
Lines 157-163 AC_ARG_WITH([dlopen], Link Here
157
		       [dl-loadable provider support @<:@default=yes@:>@]),
157
		       [dl-loadable provider support @<:@default=yes@:>@]),
158
	)
158
	)
159
159
160
if test "$freebsd" == "0"; then
160
if test "$freebsd" = "0"; then
161
AS_IF([test x"$with_dlopen" != x"no"], [
161
AS_IF([test x"$with_dlopen" != x"no"], [
162
AC_CHECK_LIB(dl, dlopen, [],
162
AC_CHECK_LIB(dl, dlopen, [],
163
    AC_MSG_ERROR([dlopen not found.  libfabric requires libdl.]))
163
    AC_MSG_ERROR([dlopen not found.  libfabric requires libdl.]))
Lines 520-526 AC_ARG_ENABLE([cuda-dlopen], Link Here
520
        [Enable dlopen of CUDA libraries @<:@default=no@:>@])
520
        [Enable dlopen of CUDA libraries @<:@default=no@:>@])
521
    ],
521
    ],
522
    [
522
    [
523
        AS_IF([test "$freebsd" == "0"], [
523
        AS_IF([test "$freebsd" = "0"], [
524
            AC_CHECK_LIB(dl, dlopen, [],
524
            AC_CHECK_LIB(dl, dlopen, [],
525
                [AC_MSG_ERROR([dlopen not found.  libfabric requires libdl.])])
525
                [AC_MSG_ERROR([dlopen not found.  libfabric requires libdl.])])
526
        ])
526
        ])
Lines 558-564 AC_ARG_ENABLE([memhooks-monitor], Link Here
558
AC_DEFINE_UNQUOTED(ENABLE_MEMHOOKS_MONITOR, [$enable_memhooks],
558
AC_DEFINE_UNQUOTED(ENABLE_MEMHOOKS_MONITOR, [$enable_memhooks],
559
	[Define to 1 to enable memhooks memory monitor])
559
	[Define to 1 to enable memhooks memory monitor])
560
560
561
AS_IF([test "$enable_memhooks" == "1"], [
561
AS_IF([test "$enable_memhooks" = "1"], [
562
	AC_CHECK_FUNCS([__curbrk __clear_cache])
562
	AC_CHECK_FUNCS([__curbrk __clear_cache])
563
	AC_CHECK_HEADERS([linux/mman.h sys/syscall.h])
563
	AC_CHECK_HEADERS([linux/mman.h sys/syscall.h])
564
	AC_CHECK_DECLS([__syscall], [], [], [#include <sys/syscall.h>])
564
	AC_CHECK_DECLS([__syscall], [], [], [#include <sys/syscall.h>])
Lines 602-614 AC_ARG_WITH([gdrcopy], Link Here
602
			    and runtime libraries are installed.])],
602
			    and runtime libraries are installed.])],
603
	    [], [])
603
	    [], [])
604
604
605
AS_IF([test -n "$with_gdrcopy" && test x"$with_gdrcopy" != x"no" && test "$have_libcuda" == "0"],
605
AS_IF([test -n "$with_gdrcopy" && test x"$with_gdrcopy" != x"no" && test "$have_libcuda" = "0"],
606
	[AC_MSG_ERROR([gdrcopy is requested but cuda is not requested or cuda runtime is not available.])],
606
	[AC_MSG_ERROR([gdrcopy is requested but cuda is not requested or cuda runtime is not available.])],
607
	[])
607
	[])
608
608
609
have_gdrcopy=0
609
have_gdrcopy=0
610
AS_IF([test "$have_libcuda" == "1" && test x"$with_gdrcopy" != x"no"],
610
AS_IF([test "$have_libcuda" = "1" && test x"$with_gdrcopy" != x"no"],
611
	[AS_IF([test x"$with_gdrcopy" == x"yes"],[gdrcopy_dir=""],[gdrcopy_dir=$with_gdrcopy])
611
	[AS_IF([test x"$with_gdrcopy" = x"yes"],[gdrcopy_dir=""],[gdrcopy_dir=$with_gdrcopy])
612
	 FI_CHECK_PACKAGE([gdrcopy],
612
	 FI_CHECK_PACKAGE([gdrcopy],
613
			  [gdrapi.h],
613
			  [gdrapi.h],
614
			  [gdrapi],
614
			  [gdrapi],
Lines 632-638 AC_ARG_ENABLE([gdrcopy-dlopen], Link Here
632
        [Enable dlopen of gdrcopy libraries @<:@default=no@:>@])
632
        [Enable dlopen of gdrcopy libraries @<:@default=no@:>@])
633
    ],
633
    ],
634
    [
634
    [
635
        AS_IF([test "$freebsd" == "0"], [
635
        AS_IF([test "$freebsd" = "0"], [
636
            AC_CHECK_LIB(dl, dlopen, [],
636
            AC_CHECK_LIB(dl, dlopen, [],
637
                [AC_MSG_ERROR([dlopen not found.  libfabric requires libdl.])])
637
                [AC_MSG_ERROR([dlopen not found.  libfabric requires libdl.])])
638
        ])
638
        ])
Lines 657-663 AC_ARG_ENABLE([rocr-dlopen], Link Here
657
        [Enable dlopen of ROCR libraries @<:@default=no@:>@])
657
        [Enable dlopen of ROCR libraries @<:@default=no@:>@])
658
    ],
658
    ],
659
    [
659
    [
660
        AS_IF([test "$freebsd" == "0"], [
660
        AS_IF([test "$freebsd" = "0"], [
661
            AC_CHECK_LIB(dl, dlopen, [],
661
            AC_CHECK_LIB(dl, dlopen, [],
662
                [AC_MSG_ERROR([dlopen not found.  libfabric requires libdl.])])
662
                [AC_MSG_ERROR([dlopen not found.  libfabric requires libdl.])])
663
        ])
663
        ])
Lines 739-745 fi Link Here
739
739
740
for i in $PROVIDERS_TO_BUILD; do
740
for i in $PROVIDERS_TO_BUILD; do
741
	v=${i}_dl
741
	v=${i}_dl
742
	if test `eval echo \\$${v}` == "1"; then
742
	if test `eval echo \\$${v}` = "1"; then
743
		dso="$i ${dso}"
743
		dso="$i ${dso}"
744
	else
744
	else
745
		builtin="$i ${builtin}"
745
		builtin="$i ${builtin}"

Return to bug 776652