Fix a problem with configure on *BSD systems. Make sure we add -liconv etc
authorRichard Sharpe <sharpe@samba.org>
Mon, 10 Nov 2003 05:34:51 +0000 (05:34 +0000)
committerRichard Sharpe <sharpe@samba.org>
Mon, 10 Nov 2003 05:34:51 +0000 (05:34 +0000)
to LDFLAGS. One of the problems with configure/autoconf is that there seems
to be no separation of LDLFAGS etc in configure from the LDFLAGS it is
building for the Makefile.
(This used to be commit 63d7698208a0fc4dfd2e3158f5ccbb1b6d9a6baf)

source3/configure.in

index db9f3d45987d1825e38b41cd1e2b2433447f0f12..e14ea29050c171f7a971bde4b2d17fa32eda41ca 100644 (file)
@@ -1689,7 +1689,9 @@ dnl ])
            if test x"$jm_cv_lib_iconv" != x; then
               LIBS="$LIBS -l$jm_cv_lib_iconv"
            fi
+          dnl Add the flags we need to CPPFLAGS and LDFLAGS
           CFLAGS_ADD_DIR(CPPFLAGS, "$i/include")
+          LIB_ADD_DIR(LDFLAGS, "$i/lib")
           export CPPFLAGS
            AC_DEFINE(HAVE_NATIVE_ICONV,1,[Whether to use native iconv])
           AC_DEFINE_UNQUOTED(DEFAULT_DOS_CHARSET,$default_dos_charset,[Default dos charset name])