From: Eugene Crosser Date: Mon, 26 Dec 2022 21:05:20 +0000 (+0100) Subject: autoconf: update to newer autotools X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=commitdiff_plain;h=6df3f2e61d2404c8673b64523b9e77de899f3878 autoconf: update to newer autotools --- diff --git a/.gitignore b/.gitignore index d4d27d5..6a3d3d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*~ *.o *.lo *.a diff --git a/configure.ac b/configure.ac index 2ac5dd9..987690c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,23 +1,23 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([pam_pcsc_cr], 0.9.6) +AC_INIT([pam_pcsc_cr],[0.9.6]) AC_CONFIG_SRCDIR([pam_pcsc_cr.c]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE -AM_CONFIG_HEADER([config.h]) -AC_LANG_C +AC_CONFIG_HEADERS([config.h]) +AC_LANG([C]) AC_PROG_CC if test "X$CC" = "Xgcc"; then - CFLAGS="$CFLAGS -Wall" + CFLAGS="$CFLAGS -Wall -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3" fi -dnl -fstack-protector-all -fsanitize=address +dnl make CFLAGS="-fsanitize=address -fno-omit-frame-pointer -g" LDFLAGS="-static-libasan" AC_PROG_MAKE_SET AC_SUBST(PROGS)dnl AC_SUBST(LIBPROGS)dnl AC_PROG_INSTALL -AM_PROG_LIBTOOL +LT_INIT PKG_PROG_PKG_CONFIG AC_CHECK_HEADERS([security/pam_appl.h], [], [ @@ -104,8 +104,6 @@ AS_IF([test "x$use_gcrypt" = "xyes"], [ AC_SUBST(CRYPTO_OBJS) dnl Checks for header files. -AC_HEADER_STDC -AC_HEADER_TIME AC_CHECK_HEADERS([winscard.h reader.h], [], [AC_MSG_ERROR([[pcsclite headers not found]])])