mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 06:53:03 +00:00
Cleanup the openpam AC_MSG's slightly.
Add a DATE AC_SUBST.
This commit is contained in:
parent
f04385215b
commit
408ad94329
14
configure.ac
14
configure.ac
@ -224,25 +224,17 @@ dnl ----------
|
|||||||
dnl PAM module
|
dnl PAM module
|
||||||
dnl ----------
|
dnl ----------
|
||||||
if test "$with_libpam" = "yes"; then
|
if test "$with_libpam" = "yes"; then
|
||||||
AC_MSG_CHECKING(security/pam_misc.h)
|
|
||||||
AC_CHECK_HEADER(security/pam_misc.h)
|
AC_CHECK_HEADER(security/pam_misc.h)
|
||||||
if test "$ac_cv_header_security_pam_misc_h" = yes; then
|
if test "$ac_cv_header_security_pam_misc_h" = yes; then
|
||||||
AC_DEFINE(HAVE_PAM_MISC_H,,Have pam_misc.h)
|
AC_DEFINE(HAVE_PAM_MISC_H,,Have pam_misc.h)
|
||||||
AC_DEFINE(PAM_CONV_FUNC,misc_conv,Have misc_conv)
|
AC_DEFINE(PAM_CONV_FUNC,misc_conv,Have misc_conv)
|
||||||
pam_conv_func="misc_conv"
|
pam_conv_func="misc_conv"
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
fi
|
fi
|
||||||
AC_MSG_CHECKING(security/openpam.h)
|
|
||||||
AC_CHECK_HEADER(security/openpam.h)
|
AC_CHECK_HEADER(security/openpam.h)
|
||||||
if test "$ac_cv_header_security_openpam_h" = yes; then
|
if test "$ac_cv_header_security_openpam_h" = yes; then
|
||||||
AC_DEFINE(HAVE_OPENPAM_H,,Have openpam.h)
|
AC_DEFINE(HAVE_OPENPAM_H,,Have openpam.h)
|
||||||
AC_DEFINE(PAM_CONV_FUNC,openpam_ttyconv,Have openpam_ttyconv)
|
AC_DEFINE(PAM_CONV_FUNC,openpam_ttyconv,Have openpam_ttyconv)
|
||||||
pam_conv_func="openpam_ttyconv"
|
pam_conv_func="openpam_ttyconv"
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
fi
|
fi
|
||||||
if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
|
if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
|
||||||
AC_MSG_WARN([*** pam support will not be built ***])
|
AC_MSG_WARN([*** pam support will not be built ***])
|
||||||
@ -836,6 +828,12 @@ file="${srcdir}/lib/version.h"
|
|||||||
VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
|
VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
|
||||||
AC_SUBST(VERSION)
|
AC_SUBST(VERSION)
|
||||||
|
|
||||||
|
dnl ----------
|
||||||
|
dnl configure date
|
||||||
|
dnl ----------
|
||||||
|
CONFDATE=`date '+%Y%m%d'`
|
||||||
|
AC_SUBST(CONFDATE)
|
||||||
|
|
||||||
dnl ------------------------------
|
dnl ------------------------------
|
||||||
dnl set paths for process id files
|
dnl set paths for process id files
|
||||||
dnl ------------------------------
|
dnl ------------------------------
|
||||||
|
14
configure.in
14
configure.in
@ -224,25 +224,17 @@ dnl ----------
|
|||||||
dnl PAM module
|
dnl PAM module
|
||||||
dnl ----------
|
dnl ----------
|
||||||
if test "$with_libpam" = "yes"; then
|
if test "$with_libpam" = "yes"; then
|
||||||
AC_MSG_CHECKING(security/pam_misc.h)
|
|
||||||
AC_CHECK_HEADER(security/pam_misc.h)
|
AC_CHECK_HEADER(security/pam_misc.h)
|
||||||
if test "$ac_cv_header_security_pam_misc_h" = yes; then
|
if test "$ac_cv_header_security_pam_misc_h" = yes; then
|
||||||
AC_DEFINE(HAVE_PAM_MISC_H,,Have pam_misc.h)
|
AC_DEFINE(HAVE_PAM_MISC_H,,Have pam_misc.h)
|
||||||
AC_DEFINE(PAM_CONV_FUNC,misc_conv,Have misc_conv)
|
AC_DEFINE(PAM_CONV_FUNC,misc_conv,Have misc_conv)
|
||||||
pam_conv_func="misc_conv"
|
pam_conv_func="misc_conv"
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
fi
|
fi
|
||||||
AC_MSG_CHECKING(security/openpam.h)
|
|
||||||
AC_CHECK_HEADER(security/openpam.h)
|
AC_CHECK_HEADER(security/openpam.h)
|
||||||
if test "$ac_cv_header_security_openpam_h" = yes; then
|
if test "$ac_cv_header_security_openpam_h" = yes; then
|
||||||
AC_DEFINE(HAVE_OPENPAM_H,,Have openpam.h)
|
AC_DEFINE(HAVE_OPENPAM_H,,Have openpam.h)
|
||||||
AC_DEFINE(PAM_CONV_FUNC,openpam_ttyconv,Have openpam_ttyconv)
|
AC_DEFINE(PAM_CONV_FUNC,openpam_ttyconv,Have openpam_ttyconv)
|
||||||
pam_conv_func="openpam_ttyconv"
|
pam_conv_func="openpam_ttyconv"
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
fi
|
fi
|
||||||
if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
|
if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
|
||||||
AC_MSG_WARN([*** pam support will not be built ***])
|
AC_MSG_WARN([*** pam support will not be built ***])
|
||||||
@ -836,6 +828,12 @@ file="${srcdir}/lib/version.h"
|
|||||||
VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
|
VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
|
||||||
AC_SUBST(VERSION)
|
AC_SUBST(VERSION)
|
||||||
|
|
||||||
|
dnl ----------
|
||||||
|
dnl configure date
|
||||||
|
dnl ----------
|
||||||
|
CONFDATE=`date '+%Y%m%d'`
|
||||||
|
AC_SUBST(CONFDATE)
|
||||||
|
|
||||||
dnl ------------------------------
|
dnl ------------------------------
|
||||||
dnl set paths for process id files
|
dnl set paths for process id files
|
||||||
dnl ------------------------------
|
dnl ------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user