Fix build without O2
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 13 Nov 2007 11:03:38 +0000 (13:03 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 13 Nov 2007 11:03:38 +0000 (13:03 +0200)
HAVE_LOCALE_H is used by system.h, ensure it is defined properly
(the issue only occurs when compiling without __OPTIMIZE__ (ie -O2)
 otherwise libintl.h do include locale.h)

Patch from Pascal Rigaux

configure.ac

index 1ba012d..cd2cb44 100644 (file)
@@ -510,6 +510,8 @@ AC_HEADER_MAJOR
 AC_HEADER_DIRENT
 AC_HEADER_TIME
 
+AC_CHECK_HEADERS(locale.h)
+
 AC_CHECK_HEADERS(fcntl.h getopt.h grp.h memory.h netdb.h pwd.h utime.h)
 
 AC_CHECK_HEADERS(sys/ipc.h sys/socket.h sys/select.h)