X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=1dfe83380c01e8e90c1ecae7d20138215222f759;hp=5e0297160d0ab4ca2dbaad6a447c5c6ead03ef6d;hb=cc9b90217adb5f69875fb9196adf08473b618ad0;hpb=a91fa6c2aaa95825f3d9db6c7ed9291e7b2b7263 diff --git a/configure.ac b/configure.ac index 5e02971..1dfe833 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 -fsanitize=address -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 -fsanitize=safe-stack -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" fi; fi AC_PROG_MAKE_SET @@ -78,7 +77,7 @@ AC_ARG_ENABLE(gcrypt, is present]) AS_IF([test "x$use_openssl" != "xyes" && test "x$use_tomcrypt" != "xyes" || \ - test "x$enable_tomcrypt" = "xyes"], [ + test "x$enable_gcrypt" = "xyes"], [ AM_PATH_LIBGCRYPT() ]) AS_IF([test "x$LIBGCRYPT_CFLAGS" != "x" -o "x$LIBGCRYPT_LIBS" != "x" ], [