+Sat Sep 20 17:44:40 CDT 2003 Adam Heath <doogie@debian.org>
+
+ * configure.in, include/dpkg.h.in: Fix (non-)detection of setlocale.
+
Fri Sep 19 20:02:19 CDT 2003 Adam Heath <doogie@debian.org>
* debian/changelog: Set date/time for 1.10.15 release.
ALL_LINGUAS="ca cs da de en es fr gl it nl ja pl pt_BR ru sv"
AM_GNU_GETTEXT([external])
AM_PO_SUBDIRS
+if test "x$HAVE_LOCALE_H" = "x"; then
+ AC_MSG_CHECKING([whether setlocale() is available])
+ HAVE_SETLOCALE=''
+ AC_TRY_COMPILE([#include <locale.h>],[ setlocale(0, "bar");], HAVE_SETLOCALE=1;
+ AC_DEFINE(HAVE_SETLOCALE,1,[Define if setlocale is available.])
+ )
+ if test "x$HAVE_SETLOCALE" = x; then
+ AC_MSG_RESULT(no)
+ else
+ AC_MSG_RESULT(yes)
+ fi
+fi
dnl Other stuff
#ifndef BUILDOLDPKGFORMAT
#define BUILDOLDPKGFORMAT 0
#endif
+
+/* Take care of NLS matters. */
+
+#if HAVE_LOCALE_H
+# include <locale.h>
+#endif
+#if !HAVE_SETLOCALE
+# define setlocale(Category, Locale) /* empty */
+#endif
+
+#if ENABLE_NLS
+# include <libintl.h>
+# define _(Text) gettext (Text)
+# define N_(Text) Text
+#else
+# undef bindtextdomain
+# define bindtextdomain(Domain, Directory) /* empty */
+# undef textdomain
+# define textdomain(Domain) /* empty */
+# define _(Text) Text
+# define N_(Text) Text
+# define gettext(Text) Text
+#endif
+
])
-AC_OUTPUT(
+AC_OUTPUT( po/Makefile.in
Makefile.conf
Makefile
include/Makefile
main/Makefile
dselect/Makefile
methods/Makefile
-utils/Makefile
-po/Makefile.in)
+utils/Makefile)
dpkg (1.10.16) unstable; urgency=low
+ * Fix configure to set HAVE_SETLOCALE. Closes: #211816
+
-- Adam Heath <doogie@debian.org> UNRELEASED
dpkg (1.10.15) unstable; urgency=low
#define TARBLKSZ 512
-/* Take care of NLS matters. */
-
-#if HAVE_LOCALE_H
-# include <locale.h>
-#endif
-#if !HAVE_SETLOCALE
-# define setlocale(Category, Locale) /* empty */
-#endif
-
-#if ENABLE_NLS
-# include <libintl.h>
-# define _(Text) gettext (Text)
-# define N_(Text) Text
-#else
-# undef bindtextdomain
-# define bindtextdomain(Domain, Directory) /* empty */
-# undef textdomain
-# define textdomain(Domain) /* empty */
-# define _(Text) Text
-# define N_(Text) Text
-# define gettext(Text) Text
-#endif
-
extern const char thisname[]; /* defined separately in each program */
extern const char printforhelp[];