]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Test for sig_atomic_t. Needed for reliable signal handlers.
authorBruno Haible <bruno@clisp.org>
Tue, 14 Oct 2003 10:24:31 +0000 (10:24 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:03 +0000 (12:11 +0200)
gettext-tools/ChangeLog
gettext-tools/Makefile.am
gettext-tools/configure.ac
gettext-tools/m4/ChangeLog
gettext-tools/m4/Makefile.am
gettext-tools/m4/sig_atomic_t.m4 [new file with mode: 0644]

index dec1ad95e0d99c6beab3f2427c61ecc726958b5d..ae133f0e5c8c46908b6dc717c496a0f8bb03eddc 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-08  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: Invoke gt_SIG_ATOMIC_T.
+       * Makefile.am (config.h_vms, config.h.msvc): Define HAVE_SIG_ATOMIC_T.
+
 2003-10-04  Bruno Haible  <bruno@clisp.org>
 
        * configure.ac: Remove gt_PROG_LEX invocation.
index 433c74bac7dbc7625b61b9708bf022ab8f1d41d2..5ea01522a0bf280be9c6b091c01425f9fbebfce7 100644 (file)
@@ -99,6 +99,7 @@ config.h_vms: config.h.in ../version.sh
             -e 's/#undef HAVE_SELECT$$/#define HAVE_SELECT 1/' \
             -e 's/#undef HAVE_SETENV$$/#define HAVE_SETENV 1/' \
             -e 's/#undef HAVE_SETLOCALE$$/#define HAVE_SETLOCALE 1/' \
+            -e 's/#undef HAVE_SIG_ATOMIC_T$$/#define HAVE_SIG_ATOMIC_T 1/' \
             -e 's/#undef HAVE_STDBOOL_H$$/#define HAVE_STDBOOL_H 1/' \
             -e 's/#undef HAVE_STDDEF_H$$/#define HAVE_STDDEF_H 1/' \
             -e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \
@@ -183,6 +184,7 @@ config.h.msvc: config.h.in ../version.sh
            -e 's/#undef HAVE_RAISE$$/#define HAVE_RAISE 1/' \
            -e 's/#undef HAVE_SEARCH_H$$/#define HAVE_SEARCH_H 1/' \
            -e 's/#undef HAVE_SETLOCALE$$/#define HAVE_SETLOCALE 1/' \
+           -e 's/#undef HAVE_SIG_ATOMIC_T$$/#define HAVE_SIG_ATOMIC_T 1/' \
            -e 's/#undef HAVE_STDDEF_H$$/#define HAVE_STDDEF_H 1/' \
            -e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \
            -e 's/#undef HAVE_STRCSPN$$/#define HAVE_STRCSPN 1/' \
index 35d319217c4182a790fedfb6f2bae625907a4fd5..bd491ffedc9472806da8b9d3bb95401c9246b23f 100644 (file)
@@ -96,6 +96,7 @@ jm_AC_TYPE_UINTMAX_T
 gt_TYPE_SSIZE_T
 AC_TYPE_PID_T
 AC_TYPE_MODE_T
+gt_TYPE_SIG_ATOMIC_T
 
 dnl Checks for library functions.
 gl_FUNC_ALLOCA
index ce8f86090e7106d494103b5f6d7ebd19b4b22a6e..8cdabdba75d84e8468088145ef66f2959a84c315 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-14  Bruno Haible  <bruno@clisp.org>
+
+       * sig_atomic_t.m4: New file.
+       * Makefile.am (EXTRA_DIST): Add it.
+
 2003-10-04  Bruno Haible  <bruno@clisp.org>
 
        * flex.m4: Remove file.
index dc9018e51f7edfb3ba2e88e685122c14a3668870..1a50530e8bcacda4e42ad745adbe28a77358c820 100644 (file)
@@ -58,6 +58,7 @@ readlink.m4 \
 relocatable.m4 \
 setenv.m4 \
 setlocale.m4 \
+sig_atomic_t.m4 \
 siginfo.m4 \
 signalblocking.m4 \
 ssize_t.m4 \
diff --git a/gettext-tools/m4/sig_atomic_t.m4 b/gettext-tools/m4/sig_atomic_t.m4
new file mode 100644 (file)
index 0000000..b893635
--- /dev/null
@@ -0,0 +1,16 @@
+# sig_atomic_t.m4 serial 1 (gettext-0.12.2)
+dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License.  As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+AC_DEFUN([gt_TYPE_SIG_ATOMIC_T],
+[
+  AC_CHECK_TYPES(sig_atomic_t, ,
+    [AC_DEFINE(sig_atomic_t, int,
+       [Define as an integer type suitable for memory locations that can be
+        accessed atomically even in the presence of asynchnonous signals.])],
+    [#include <signal.h>])
+])