From b5c33062b2ed69712487a1b7cd65de6b25b7dcfb Mon Sep 17 00:00:00 2001 From: kloczek Date: Mon, 7 Jan 2002 19:00:35 +0000 Subject: [PATCH] - seems separating libwrap outside $LIBS (stunnel package produces only one library and executable) isn't good idea because $LIBS is used during AC_CHECK_SIZEOF() and some oure libraries want libwrap. This patch moves all AC_CHECK_SIZEOF() calls befor libraries detections where $LIBS is empty. This is more saner way and can be performed in this way because all checked types do not require linking test programs with nothing more than libc. Changed files: stunnel-ac_fixes.patch -> 1.1 --- stunnel-ac_fixes.patch | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 stunnel-ac_fixes.patch diff --git a/stunnel-ac_fixes.patch b/stunnel-ac_fixes.patch new file mode 100644 index 0000000..4e4f492 --- /dev/null +++ b/stunnel-ac_fixes.patch @@ -0,0 +1,30 @@ +--- stunnel-3.22/configure.ac~ Mon Jan 7 14:08:57 2002 ++++ stunnel-3.22/configure.ac Mon Jan 7 14:08:57 2002 +@@ -13,6 +13,13 @@ + AC_SUBST(VERSION) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION") + ++dnl Checks for integer sizes ++AC_CHECK_SIZEOF(unsigned char) ++AC_CHECK_SIZEOF(unsigned short) ++AC_CHECK_SIZEOF(unsigned int) ++AC_CHECK_SIZEOF(unsigned long) ++AC_CHECK_SIZEOF(unsigned long long) ++ + checkssldir() { : + if test -f "$1/include/openssl/ssl.h"; then + AC_DEFINE(HAVE_OPENSSL) +@@ -224,13 +231,6 @@ + dnl Checks for library functions. + AC_CHECK_FUNCS(getopt snprintf vsnprintf openpty _getpty daemon waitpid wait4 sysconf getrlimit pthread_sigmask) + +-dnl Checks for integer sizes +-AC_CHECK_SIZEOF(unsigned char) +-AC_CHECK_SIZEOF(unsigned short) +-AC_CHECK_SIZEOF(unsigned int) +-AC_CHECK_SIZEOF(unsigned long) +-AC_CHECK_SIZEOF(unsigned long long) +- + LIBS="$LIBS $wrap_LIB" + + AC_CONFIG_FILES([Makefile]) -- 2.44.0