]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
A couple minor configure.ac tweaks.
authorWayne Davison <wayne@opencoder.net>
Mon, 25 May 2020 18:50:44 +0000 (11:50 -0700)
committerWayne Davison <wayne@opencoder.net>
Mon, 25 May 2020 18:50:44 +0000 (11:50 -0700)
configure.ac

index e22e17e91439452a3390fc594f28e015024452b1..cbf93056ca77e89668842e4004ee5c1b50bb549b 100644 (file)
@@ -391,8 +391,7 @@ AH_TEMPLATE([USE_OPENSSL],
 [Undefine if you do not want to use openssl crypto library.  By default this is defined.])
 if test x"$enable_openssl" != x"no" && test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then
     AC_MSG_RESULT(yes)
-    AC_SEARCH_LIBS(MD5_Init, crypto)
-    AC_DEFINE(USE_OPENSSL)
+    AC_SEARCH_LIBS(MD5_Init, crypto, [AC_DEFINE(USE_OPENSSL)])
 else
     AC_MSG_RESULT(no)
 fi
@@ -404,8 +403,7 @@ AH_TEMPLATE([SUPPORT_XXHASH],
 [Undefine if you do not want xxhash checksums.  By default this is defined.])
 if test x"$enable_xxhash" != x"no" && test x"$ac_cv_header_xxhash_h" = x"yes"; then
     AC_MSG_RESULT(yes)
-    AC_SEARCH_LIBS(XXH64_createState, xxhash)
-    AC_DEFINE(SUPPORT_XXHASH)
+    AC_SEARCH_LIBS(XXH64_createState, xxhash, [AC_DEFINE(SUPPORT_XXHASH)])
 else
     AC_MSG_RESULT(no)
 fi