]> www.average.org Git - pam_pcsc_cr.git/commitdiff
autoconf: update to newer autotools
authorEugene Crosser <crosser@average.org>
Mon, 26 Dec 2022 21:05:20 +0000 (22:05 +0100)
committerEugene Crosser <crosser@average.org>
Mon, 26 Dec 2022 21:06:13 +0000 (22:06 +0100)
.gitignore
configure.ac

index d4d27d567dc2c091f6394705f733ae8104d3d19a..6a3d3d2ac907b0830795717881d96fc42e5da6df 100644 (file)
@@ -1,3 +1,4 @@
+*~
 *.o
 *.lo
 *.a
index 2ac5dd93a5d900d3e03d834fcb8fb0814c8c76d5..987690c999487beec7243aa6726be466475e4e87 100644 (file)
@@ -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]])])