X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=configure.ac;h=8adf9404d643a1b0b55a2af197e7d67e26714411;hp=5e0297160d0ab4ca2dbaad6a447c5c6ead03ef6d;hb=HEAD;hpb=582ef0444a7687b9d8b08b484d8584f5b35618e5 diff --git a/configure.ac b/configure.ac index 5e02971..eb6ed65 100644 --- a/configure.ac +++ b/configure.ac @@ -9,10 +9,9 @@ AC_LANG([C]) AC_PROG_CC if test "X$CC" = "Xgcc"; then - CFLAGS="$CFLAGS -Wall -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3" -dnl make CFLAGS="-fsanitize=address -fno-omit-frame-pointer -g" LDFLAGS="-static-libasan" + CFLAGS="$CFLAGS -Wextra -Wall -Werror -Wno-unused-parameter -Wno-deprecated-declarations -fstack-protector-all $ASAN_FLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3" else if test "X$CC" = "Xclang"; then - CFLAGS="$CFLAGS -Wall -Wformat -Wformat-security -Werror=format-security -fstack-protector-all -fsanitize=safe-stack -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" + CFLAGS="$CFLAGS -Wextra -Wall -Werror -Wno-unused-parameter -Wno-deprecated-declarations -Wformat -Wformat-security -fstack-protector-all $ASAN_FLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" fi; fi AC_PROG_MAKE_SET @@ -78,8 +77,12 @@ AC_ARG_ENABLE(gcrypt, is present]) AS_IF([test "x$use_openssl" != "xyes" && test "x$use_tomcrypt" != "xyes" || \ - test "x$enable_tomcrypt" = "xyes"], [ - AM_PATH_LIBGCRYPT() + test "x$enable_gcrypt" = "xyes"], [ + m4_ifdef([AM_PATH_LIBGCRYPT], [ + AM_PATH_LIBGCRYPT() + ], [ + m4_exit(1) + ]) ]) AS_IF([test "x$LIBGCRYPT_CFLAGS" != "x" -o "x$LIBGCRYPT_LIBS" != "x" ], [ use_gcrypt=yes