chiark / gitweb /
configure.ac: Link `-lgc' when searching for `GC_mumble' functions.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 17 Nov 2017 22:14:02 +0000 (22:14 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 26 Nov 2017 14:08:35 +0000 (14:08 +0000)
Otherwise we can't find them and fall back to using deprecated things.
This is a shame.

configure.ac

index 79778fd..0778fc9 100644 (file)
@@ -475,7 +475,10 @@ LIBS=$mdw_SAVE_LIBS
 # and report them all at once.
 AC_CHECK_LIB(gc, GC_malloc,            [AC_SUBST(LIBGC,[-lgc])],
             [missing_libraries="$missing_libraries libgc"])
+mdw_SAVE_LIBS=$LIBS
+LIBS="$LIBS $LIBGC"
 AC_CHECK_FUNCS(GC_get_all_interior_pointers)
+LIBS=$mdw_SAVE_LIBS
 AC_CHECK_LIB(gcrypt, gcry_md_open,
              [AC_SUBST(LIBGCRYPT,[-lgcrypt])],
             [missing_libraries="$missing_libraries libgcrypt"])