This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: configure doesn't INTLLIBS when gettext is in libintl
- To: pthomas at suse dot de (Philipp Thomas)
- Subject: Re: PATCH: configure doesn't INTLLIBS when gettext is in libintl
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 18 Jan 2001 00:53:44 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org
> * John David Anglin (dave@hiauly1.hia.nrc.ca) [20010117 07:37]:
>
> > Definitely something is needed. Either LIBS or INTLLIBS needs to contain
> > -lintl when gt_cv_func_gettext_libintl is yes.
> [...]
> > This isn't happening. The LIBS variable is saved and restored around
> > the check for gettext.
>
> OK, I somehow missed that. And as all I have available are machines running
> SuSE Linux, I can't test the your case. But the following patch should do
> what you need. Could you please test it and report back? If it works, I'll
> check it in.
The patch was missing a closing double quote around `yes'. Here is a revised
patch. Bootstrap under hpux 10.20 is now in the latter part of stage 2.
I checked that `-lintl' was successfully inserted into gcc Makefile.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2001-01-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
* aclocal.m4 (AM_WITH_NLS): Add -lintl to LIBS if gettext was
found in libintl.
* configure: Regenerate.
--- aclocal.m4.orig Thu Jan 11 23:54:40 2001
+++ aclocal.m4 Wed Jan 17 22:59:13 2001
@@ -387,6 +387,10 @@
gt_cv_func_gettext_libintl=no)])
fi
+ if test "$gt_cv_func_gettext_libintl" = "yes"; then
+ LIBS="-lintl $LIBS"
+ fi
+
if test "$gt_cv_func_gettext_libc" = "yes" \
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
AC_DEFINE(HAVE_GETTEXT)