From 9dadc0e51c91e98d4f23b3385fd2ef20fbdb3358 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 20 Nov 2021 17:37:21 +0100 Subject: configure.ac: fix rpath, and duplicate library setting --- configure.ac | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ba21272d..140489e6 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,8 @@ AM_PROG_AR AC_PROG_RANLIB AM_PROG_CC_C_O +AC_LIB_RPATH + AC_ISC_POSIX dnl AC_ISC_POSIX: - XXX FIXME: remove in fetchmail 6.4. dnl This macro adds `-lcposix' to output variable `LIBS' if necessary @@ -612,7 +614,7 @@ else AC_DEFINE(KERBEROS_V5) test "$dir" != "/usr" && CFLAGS="$CFLAGS -I$dir/include" LDFLAGS="$LDFLAGS -L$dir/lib" - LIBS="$LIBS $ac_krblibs $libk5crypto" + LIBS="$LIBS $ac_krblibs $libk5crypto" with_kerberos5=$dir break else @@ -777,9 +779,8 @@ then PKG_CHECK_MODULES([SSL],[libssl libcrypto],[LIBS="$LIBS $SSL_LIBS"],[ AS_MESSAGE([SSL-check: pkg-config check failed, using traditional probe]) LDFLAGS="$LDFLAGS -L$with_ssl/lib" - AC_LIB_LINKFLAGS([crypto]) AC_LIB_LINKFLAGS([ssl], [crypto]) - LIBS="$LIBS $LIBSSL $LIBCRYPTO" + LIBS="$LIBSSL $LIBS" dnl check if -ldl is needed AC_MSG_CHECKING([for additional library dependencies of SSL]) found=0 @@ -805,10 +806,8 @@ fi if test "$cross_compiling" != yes -a "$with_ssl" != "no" then - AC_LIB_LINKFLAGS([crypto]) AC_LIB_LINKFLAGS([ssl], [crypto]) - - LIBS="$LIBS $LIBSSL $LIBCRYPTO" + LIBS="$LIBSSL $LIBS" fi AC_MSG_NOTICE([LIBS:] "$LIBS") -- cgit v1.2.3