Import new pam-const.m4 from rra-c-util 3.8
authorRuss Allbery <rra@stanford.edu>
Thu, 8 Sep 2011 02:25:23 +0000 (19:25 -0700)
committerDerrick Brashear <shadow@dementix.org>
Thu, 8 Sep 2011 15:26:54 +0000 (08:26 -0700)
Fixes detection of whether the PAM library uses const on FreeBSD and
possibly others.  Report and testing from Julien ÉLIE.

Change-Id: Ice01914f4a00f73e4e473934f4ad907da3a3493f
Reviewed-on: http://gerrit.openafs.org/5376
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/cf/pam-const.m4

index ffbbb60..8428611 100644 (file)
@@ -10,6 +10,9 @@ dnl we guess wrong.  This test is ugly, but it seems to work.
 dnl
 dnl Contributed by Markus Moeller.
 dnl
+dnl The canonical version of this file is maintained in the rra-c-util
+dnl package, available at <http://www.eyrie.org/~eagle/software/rra-c-util/>.
+dnl
 dnl Copyright 2007 Russ Allbery <rra@stanford.edu>
 dnl Copyright 2007, 2008 Markus Moeller
 dnl
@@ -28,7 +31,7 @@ AC_DEFUN([_RRA_HEADER_PAM_CONST_SOURCE],
 
 AC_DEFUN([RRA_HEADER_PAM_CONST],
 [AC_CACHE_CHECK([whether PAM prefers const], [rra_cv_header_pam_const],
-    [AC_EGREP_CPP([const void \*\* *item], _RRA_HEADER_PAM_CONST_SOURCE(),
+    [AC_EGREP_CPP([const void \*\* *_?item], _RRA_HEADER_PAM_CONST_SOURCE(),
         [rra_cv_header_pam_const=yes], [rra_cv_header_pam_const=no])])
 AS_IF([test x"$rra_cv_header_pam_const" = xyes],
     [rra_header_pam_const=const], [rra_header_pam_const=])