File pam-modules-automake.patch of Package pam-modules

--- pam_pwcheck-3.13/configure.in.orig
+++ pam_pwcheck-3.13/configure.in
@@ -2,7 +2,7 @@ dnl Process this file with autoconf to p
 AC_INIT(pam_pwcheck, 3.13, kukuk@thkukuk.de, pam_pwcheck)
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([src/pam_pwcheck.c])
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
 AC_PREFIX_DEFAULT(/usr)
 
 dnl Some hacks for correct paths ...
@@ -31,8 +31,9 @@ test "$CFLAGS" = "" && CFLAGS="-O2"
 CFLAGS="$CFLAGS -fPIC -DPIC"
 
 dnl Check for programs
-AC_GNU_SOURCE
-AC_PROG_CC
+AC_USE_SYSTEM_EXTENSIONS
+AC_PROG_CC_STDC
+AC_SYS_LARGEFILE
 AC_PROG_MAKE_SET
 AC_PROG_INSTALL
 
@@ -90,7 +91,7 @@ else
   LDFLAGS="${LDFLAGS} -G"
 fi
 
-AM_GNU_GETTEXT_VERSION
+AM_GNU_GETTEXT_VERSION([0.17])
 AM_GNU_GETTEXT([external])
 
 AC_OUTPUT([doc/Makefile src/Makefile Makefile po/Makefile.in])
--- pam_unix2-2.9.1/configure.in.orig
+++ pam_unix2-2.9.1/configure.in
@@ -2,7 +2,7 @@ dnl Process this file with autoconf to p
 AC_INIT(pam_unix2, 2.9.1, http://www.suse.de/feedback, pam_unix2)
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([src/support.c])
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
 AC_PREFIX_DEFAULT(/usr)
 
 dnl Set of available languages.
@@ -33,11 +33,12 @@ test "$CFLAGS" = "" && CFLAGS="-O2 -Wall
 CFLAGS="$CFLAGS -fPIC -DPIC"
 
 dnl Check for programs
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
 AC_PROG_MAKE_SET
 AC_PROG_INSTALL
 
-AC_GNU_SOURCE
 
 AC_CHECK_LIB(crypt, crypt)
 AC_CHECK_LIB(dl, dlerror)
--- pam_homecheck-2.0/configure.in.orig
+++ pam_homecheck-2.0/configure.in
@@ -2,7 +2,7 @@ dnl Process this file with autoconf to p
 AC_INIT(src/pam_homecheck.c)
 AC_CANONICAL_SYSTEM
 AM_INIT_AUTOMAKE("pam_homecheck", 2.0)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
 AC_PREFIX_DEFAULT(/usr)
 
 dnl Some hacks for correct paths ...
@@ -25,7 +25,9 @@ dnl Try to set usefull CFLAGS
 test "$CFLAGS" = "" && CFLAGS="-O2 -Wall"
 
 dnl Check for programs
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
 AC_PROG_MAKE_SET
 AC_PROG_INSTALL
 # per default don't build static libraries
@@ -41,7 +43,7 @@ AC_CHECK_HEADERS(security/pam_ext.h)
 dnl Various function checking
 AC_CHECK_FUNCS(fprintf snprintf syslog strncmp, , AC_MSG_ERROR(some basic C functions cannot be found))
 
-AM_GNU_GETTEXT_VERSION
+AM_GNU_GETTEXT_VERSION([0.17])
 AM_GNU_GETTEXT([external])
 
 AH_VERBATIM([_ZZENABLE_NLS],