summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2019-11-10 20:07:19 +0100
committerGilles Chehade <gilles@poolp.org>2019-11-10 20:07:19 +0100
commit2bfcc6bab1107f91d565a9129eb1f886c9487662 (patch)
treef99b49b0da7bc20fd9dfa6bafaaddb2efbe93d0b
parentRevert "woops:" (diff)
downloadOpenSMTPD-2bfcc6bab1107f91d565a9129eb1f886c9487662.tar.xz
OpenSMTPD-2bfcc6bab1107f91d565a9129eb1f886c9487662.zip
Revert "fix error messages when fail to build"
This reverts commit be322874dea2b2b469620ae6613278cfc033c4f1.
-rw-r--r--configure.ac12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index c2b25711..8641c50a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -168,13 +168,15 @@ AC_CHECK_HEADERS([bsd/libutil.h libutil.h])
AC_CHECK_HEADER([fts.h],
[],
- [AC_MSG_ERROR([*** fts.h missing - please install libfts ***])],
+ [AC_MSG_ERROR([*** fts.h missing - please install fts library ***])],
[
#include <sys/types.h>
#include <sys/stat.h>
])
+
+
#
# CHECKS FOR TYPES
#
@@ -584,6 +586,7 @@ AC_CHECK_DECL([strsep],
])
+
# These functions might be found in libressl
AC_CHECK_DECLS([strlcat, strlcpy],
[],
@@ -1617,7 +1620,7 @@ AC_ARG_WITH([libasr],
fi ]
)
-AC_CHECK_HEADER([asr.h], ,[AC_MSG_ERROR([*** asr.h missing - please install libasr ***])],
+AC_CHECK_HEADER([asr.h], ,[AC_MSG_ERROR([*** asr.h missing - please install first or check config.log ***])],
[#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>])
@@ -1725,10 +1728,8 @@ if test "x${need_libevent_autodetect}" != "xno"; then
done
fi
-AC_CHECK_HEADER([event.h], ,[AC_MSG_ERROR([*** event.h missing - please install libevent ***])],
-[#include <sys/types.h>])
-LIBS_BACKUP=$LIBS
LIBS="-levent $LIBS"
+
AC_MSG_CHECKING([if programs using libevent functions will link])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
@@ -1743,7 +1744,6 @@ AC_LINK_IFELSE(
AC_MSG_RESULT([no])
]
)
-LIBS=$LIBS_BACKUP
#l2174 (customized, bu adding -lssl to LIBS)