configure: Fixed check for AM_PATH_LIBCCRYPT
authorYoga Ramalingam <yramalingam1@bloomberg.net>
Mon, 8 Dec 2014 18:09:47 +0000 (13:09 -0500)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 22 Dec 2014 14:54:36 +0000 (15:54 +0100)
configure.in

index b00df81..f6203d9 100644 (file)
@@ -1861,7 +1861,7 @@ then
                [with_libgcrypt="no (symbol gcry_md_hash_buffer not found)"])
 
        if test "$with_libgcrypt" != "no"; then
-               AM_PATH_LIBGCRYPT(1:1.2.0,,with_libgcrypt="no (version 1.2.0+ required)")
+               m4_ifdef([AM_PATH_LIBGCRYPT],[AM_PATH_LIBGCRYPT(1:1.2.0,,with_libgcrypt="no (version 1.2.0+ required)")])
                GCRYPT_CPPFLAGS="$LIBGCRYPT_CPPFLAGS $LIBGCRYPT_CFLAGS"
                GCRYPT_LIBS="$LIBGCRYPT_LIBS"
        fi