blob: 135c6456b8c6102fa1a5d542f5a1cca5fe16c4fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- m4/libxc.m4.orig 2020-07-07 14:26:13 UTC
+++ m4/libxc.m4
@@ -57,17 +57,13 @@ AC_DEFUN([AC_CHECK_LIBXC],
LIBS="$LIBS -lxc"
AC_MSG_CHECKING([for LIBXC library])
- AC_LINK_IFELSE([[
-program main
-
- call xc_f90_family_from_id()
-end]], ac_libxc_ok=yes, ac_libxc_ok=no)
+ ac_libxc_ok=yes
AC_MSG_RESULT([$ac_libxc_ok])
LIBS="$LIBS_SVG"
LDFLAGS="$LDFLAGS_SVG"
FCFLAGS="$FCFLAGS_SVG"
if test "$ac_libxc_ok" = "yes"; then
- LIBXC_LIBS="-lxc"
+ LIBXC_LIBS="-lxc -lxcf90"
AS_IF([test -n "$LIBXC_PATH_LIBDIR"], [LIBXC_LIBS="-L$LIBXC_PATH_LIBDIR $LIBXC_LIBS"])
AC_SUBST([LIBXC_LIBS])
fi
|