Code

configure: don't use -lintl when there is no gettext support
authorJohn Szakmeister <john@szakmeister.net>
Sat, 18 Feb 2012 19:38:04 +0000 (14:38 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Feb 2012 08:01:53 +0000 (00:01 -0800)
commita8356d43e3602fb65a9ae57a5cf1ca98a75f5cc3
treec5dc466a8349b3ca7cc6913ae6a5280da01ff001
parent828ea97de486c1693d6e4f2c7347acb50235a85d
configure: don't use -lintl when there is no gettext support

The current configure script uses -lintl if gettext is not found in the C
library, but does so before checking if there is libintl.h available in
the first place, in which case we would later define NO_GETTEXT.

Instead, check for the existence of libintl.h first. Only when libintl.h
exists and libintl is not in libc, ask for -lintl.

Signed-off-by: John Szakmeister <john@szakmeister.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac