X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-backup/blobdiff_plain/13678d88ea392c0347081498166860ad1617ad8a..ded85b765134054b8f53c6d08b100d67afdadf16:/configure.ac diff --git a/configure.ac b/configure.ac index b9de9d7..45ddbb6 100644 --- a/configure.ac +++ b/configure.ac @@ -43,12 +43,13 @@ PKG_CHECK_MODULES([nettle], [nettle >= 2.4], [], [ ## That didn't work; unfortunately older Nettle packages don't have a ## pkg-config dropping. Let's see whether it will work anyway. nettlep=t + save_LIBS=$LIBS AC_CHECK_HEADER([nettle/sha.h], [], [nettlep=nil]) AC_CHECK_LIB([nettle], [nettle_sha256_init], [], [nettlep=nil]) case $nettlep in nil) AC_MSG_ERROR([Failed to find Nettle library.]) ;; esac - NETTLE_CFLAGS= NETTLE_LIBS=-lnettle]) + nettle_CFLAGS= nettle_LIBS=-lnettle LIBS=$save_LIBS]) dnl-------------------------------------------------------------------------- dnl Perl programming environment.