diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2021-11-20 17:37:21 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2021-11-20 17:56:10 +0100 |
commit | 9dadc0e51c91e98d4f23b3385fd2ef20fbdb3358 (patch) | |
tree | 3f85fe8ce838495b89f2d3b1ab43dea9e0b79b49 /configure.ac | |
parent | 781d5a820df9aec9b6dbfe86fa1e7ef1f5112b47 (diff) | |
download | fetchmail-9dadc0e51c91e98d4f23b3385fd2ef20fbdb3358.tar.gz fetchmail-9dadc0e51c91e98d4f23b3385fd2ef20fbdb3358.tar.bz2 fetchmail-9dadc0e51c91e98d4f23b3385fd2ef20fbdb3358.zip |
configure.ac: fix rpath, and duplicate library setting
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 5 insertions, 6 deletions
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") |