From f3dc389d453a81ffd3957662e287c96b3a73c4bb Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 11 May 2011 19:31:22 -0700 Subject: [PATCH] configure: Use $LIB for linking a program, not $LTLIB. The gettext manual says: `@LIBINTL@' is for use without `libtool', `@LTLIBINTL@' is for use with `libtool' It has similar wording for libiconv. Since there's lots of libtool-related stuff in the PSPP makefiles, I assumed that PSPP needed $LTLIB. But it now appears that this is only correct for linking a libtool library, not for linking a program that links against libtool libraries. On GNU/Linux, both $LIB and $LTLIB expand to the empty string, so I couldn't tell from experimenting there. This should fix link failures with Mingw, reported by Harry Thijssen . --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 35337d6cbb..eb10e560a2 100644 --- a/configure.ac +++ b/configure.ac @@ -35,7 +35,7 @@ PSPP_PERL dnl Disable automatic po/ support, because PSPP provides its own po/ support. AC_PROVIDE([AM_PO_SUBDIRS]) AM_GNU_GETTEXT([external], [need-ngettext]) -LIBS="$LTLIBINTL $LIBS" +LIBS="$LIBINTL $LIBS" dnl Checks for libraries. AC_SYS_LARGEFILE @@ -327,7 +327,7 @@ AM_ICONV if test "$am_cv_func_iconv" != "yes"; then PSPP_REQUIRED_PREREQ([iconv (see http://www.gnu.org/software/libiconv/)]) fi -LIBS="$LTLIBICONV $LIBS" +LIBS="$LIBICONV $LIBS" dnl Required by the gnulib 'relocatable-prog' module. dnl See doc/relocatable-maint.texi in the gnulib tree for details. -- 2.30.2