Use AC_CHECK_LIB instead of AC_SEARCH_LIBS, to prevent adding -larchive to global...
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 22 Dec 2014 18:42:55 +0000 (19:42 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 22 Dec 2014 18:42:55 +0000 (19:42 +0100)
configure.ac

index 3966e41..9439980 100644 (file)
@@ -1096,7 +1096,7 @@ AC_SUBST(LIBSOUP_GNOME_CFLAGS)
 AC_SUBST(LIBSOUP_GNOME_LIBS)
 
 dnl libarchive *****************************************************************
-AC_SEARCH_LIBS([archive_read_new], [archive],
+AC_CHECK_LIB([archive], [archive_read_new],
                       ARCHIVE_LIBS=-larchive
                       HAVE_ARCHIVE=yes
                       AC_SUBST(ARCHIVE_LIBS),