aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-27 03:16:37 +0000
committerYang Tse <yangsita@gmail.com>2008-07-27 03:16:37 +0000
commit1ac121292590a0678bf3d23f99e4ec8f4f96a477 (patch)
tree10bb11c4cbbe618413124a135aa517f67c500da9 /m4
parent3d4fb5136d8bd28a786a8b310445059912040abf (diff)
setup.h handles definition of _REENTRANT based on NEED_REENTRANT
definition which might be defined in config.h or config-*.h files
Diffstat (limited to 'm4')
-rw-r--r--m4/reentrant.m417
1 files changed, 6 insertions, 11 deletions
diff --git a/m4/reentrant.m4 b/m4/reentrant.m4
index 37a3923d3..61267c411 100644
--- a/m4/reentrant.m4
+++ b/m4/reentrant.m4
@@ -332,7 +332,7 @@ dnl CURL_CHECK_NEED_REENTRANT_FUNCTIONS_R
dnl -------------------------------------------------
dnl Checks if the preprocessor _REENTRANT definition
dnl makes several _r functions compiler visible.
-dnl Internal macro for CONFIGURE_REENTRANT.
+dnl Internal macro for CURL_CONFIGURE_REENTRANT.
AC_DEFUN([CURL_CHECK_NEED_REENTRANT_FUNCTIONS_R], [
#
@@ -373,23 +373,18 @@ dnl -------------------------------------------------
dnl This macro ensures that configuration tests done
dnl after this will execute with preprocessor symbol
dnl _REENTRANT defined. This macro also ensures that
-dnl the generated config file will equally define it.
-dnl Internal macro for CONFIGURE_REENTRANT.
+dnl the generated config file defines NEED_REENTRANT
+dnl and that in turn setup.h will define _REENTRANT.
+dnl Internal macro for CURL_CONFIGURE_REENTRANT.
AC_DEFUN([CURL_CONFIGURE_FROM_NOW_ON_WITH_REENTRANT], [
-AH_VERBATIM([NEED_REENTRANT],
-[/* Configure process defines NEED_REENTRANT to 1 when it finds out that */
-/* _REENTRANT is required or already defined for proper configuration. */
-@%:@undef NEED_REENTRANT
-@%:@if defined(NEED_REENTRANT) && !defined(_REENTRANT)
-@%:@ define _REENTRANT
-@%:@endif])
+AC_DEFINE(NEED_REENTRANT, 1,
+ [Define to 1 if _REENTRANT preprocessor symbol must be defined.])
cat >>confdefs.h <<_ACEOF
[@%:@ifndef _REENTRANT
@%:@ define _REENTRANT
@%:@endif]
_ACEOF
-AC_DEFINE(NEED_REENTRANT, 1, [])
])