* gettext-0.15 released.
+2006-07-21 Bruno Haible <bruno@clisp.org>
+
+ * gettext-6-prg.c: Enable the test only for glibc >= 2.3.
+ * gettext-7-prg.c: Likewise.
+ * gettext-6: Update.
+ * gettext-7: Likewise.
+
2006-07-14 Bruno Haible <bruno@clisp.org>
* Makefile.am (MOSTLYCLEANFILES): New variable.
EOF
tmpfiles="$tmpfiles gt-6.out"
-./gettext-6-prg > gt-6.out || exit 1
+./gettext-6-prg > gt-6.out
+case $? in
+ 0) ;;
+ 77)
+ echo "Skipping test: not a glibc 2.3 system"
+ rm -fr $tmpfiles; exit 77
+ ;;
+esac
: ${DIFF=diff}
${DIFF} gt-6.ok gt-6.out || exit 1
/* Test program, used by the gettext-6 test.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005-2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdio.h>
#include <string.h>
-#if USE_POSIX_THREADS && (__GLIBC__ >= 2)
+#if USE_POSIX_THREADS && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3))
#include <pthread.h>
#include "setenv.h"
${MSGFMT} -o de_DE/LC_MESSAGES/tstthread.mo ${top_srcdir}/tests/gettext-7.po
tmpfiles="$tmpfiles gt-7.out"
-./gettext-7-prg > gt-7.out || exit 1
+./gettext-7-prg > gt-7.out
+case $? in
+ 0) ;;
+ 77)
+ echo "Skipping test: not a glibc 2.3 system"
+ rm -fr $tmpfiles; exit 77
+ ;;
+esac
rm -fr $tmpfiles
/* Test program, used by the gettext-7 test.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005-2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdio.h>
#include <string.h>
-#if USE_POSIX_THREADS && (__GLIBC__ >= 2)
+#if USE_POSIX_THREADS && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3))
#include <pthread.h>
#include "setenv.h"