Minor issues during configuration.

This commit is contained in:
Mats Erik Andersson
2013-10-03 23:02:58 +02:00
parent 1d9298cfaf
commit 13a585a09a
3 changed files with 14 additions and 4 deletions

View File

@@ -1,3 +1,12 @@
2013-10-03 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac (HAVE_SYSLOG_INTERNAL): Remove
a misplaced character.
* am/libcurses.m4 (IU_LIB_TERMCAP): Rework the
message in AC_MSG_CHECKING() and always call
AC_MSG_RESULT().
2013-10-02 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Capture syntax errors.

View File

@@ -96,8 +96,8 @@ AC_DEFUN([IU_LIB_TERMCAP], [
dnl
_IU_SAVE_LIBS=$LIBS
AC_CHECK_LIB(termcap, tgetent, LIBTERMCAP=-ltermcap)
AC_MSG_CHECKING([where tgetent is declared])
location_tgetent=none
AC_MSG_CHECKING([whether tgetent needs support])
location_tgetent=no
LIBS="$LIBS $LIBTERMCAP"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[#include <termcap.h>]],
@@ -116,10 +116,11 @@ AC_DEFUN([IU_LIB_TERMCAP], [
location_tgetent=term.h])
])
LIBS=$_IU_SAVE_LIBS
AC_MSG_RESULT($location_tgetent)
if test "$ac_cv_lib_termcap_tgetent" = yes \
&& test "$ac_cv_have_decl_tgetent" = yes; then
AC_MSG_RESULT($location_tgetent)
:
else
AC_CHECK_LIB(curses, tgetent, LIBTERMCAP=-lcurses)
AC_CHECK_DECLS([tgetent], , , [[#include <curses.h>

View File

@@ -870,7 +870,7 @@ IU_CHECK_MACRO(syslog internal macros,
[LOG_PRI LOG_FAC],
AC_CHECK_TYPE(CODE,
AC_CHECK_DECL(prioritynames,
[<EFBFBD>AC_DEFINE([HAVE_SYSLOG_INTERNAL], 1,
[AC_DEFINE([HAVE_SYSLOG_INTERNAL], 1,
[Define to 1 if <syslog.h> defines prioritynames])], ,
iu_syslog_includes), , iu_syslog_includes),)
undefine([iu_syslog_includes])