Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 79abd73

Browse files
committed
Remove configure tests for signed', volatile', and signal handler args;
the harm potential outweighs the possible benefits.
1 parent bfdd6a7 commit 79abd73

File tree

13 files changed

+229
-377
lines changed

13 files changed

+229
-377
lines changed

aclocal.m4

+5-36
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.4 2000/08/26 21:11:44 petere Exp $
1+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.5 2000/08/27 19:00:00 petere Exp $
22
# This comes from the official Autoconf macro archive at
33
# <http://research.cys.de/autoconf-archive/>
44
# (I removed the $ before the Id CVS keyword below.)
@@ -65,38 +65,7 @@ extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_acc
6565
AC_DEFINE_UNQUOTED(ACCEPT_TYPE_ARG3,$ac_cv_func_accept_arg3)
6666
])
6767
# Macros to detect C compiler features
68-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.4 2000/08/26 21:11:44 petere Exp $
69-
70-
71-
# PGAC_C_SIGNED
72-
# -------------
73-
# Check if the C compiler understands signed types.
74-
# (Of course any ISO C compiler should, what is this still doing here?)
75-
AC_DEFUN([PGAC_C_SIGNED],
76-
[AC_CACHE_CHECK(for signed types, pgac_cv_c_signed,
77-
[AC_TRY_COMPILE([],
78-
[signed char c; signed short s; signed int i;],
79-
[pgac_cv_c_signed=yes],
80-
[pgac_cv_c_signed=no])])
81-
if test x"$pgac_cv_c_signed" = xno ; then
82-
AC_DEFINE(signed,, [Define empty if the C compiler does not understand signed types])
83-
fi])# PGAC_C_SIGNED
84-
85-
86-
87-
# PGAC_C_VOLATILE
88-
# ---------------
89-
# Check if the C compiler understands `volatile'. Note that if it doesn't
90-
# then this will potentially break the program semantics.
91-
AC_DEFUN([PGAC_C_VOLATILE],
92-
[AC_CACHE_CHECK(for volatile, pgac_cv_c_volatile,
93-
[AC_TRY_COMPILE([],
94-
[extern volatile int i;],
95-
[pgac_cv_c_volatile=yes],
96-
[pgac_cv_c_volatile=no])])
97-
if test x"$pgac_cv_c_volatile" = xno ; then
98-
AC_DEFINE(volatile,, [Define empty if the C compiler does not understand `volatile'])
99-
fi])# PGAC_C_VOLATILE
68+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.5 2000/08/27 19:00:00 petere Exp $
10069

10170

10271

@@ -185,7 +154,7 @@ undefine([AC_TYPE_NAME])dnl
185154
undefine([AC_CV_NAME])dnl
186155
])# PGAC_CHECK_ALIGNOF
187156
# Macros that test various C library quirks
188-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.4 2000/08/26 21:11:44 petere Exp $
157+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.5 2000/08/27 19:00:00 petere Exp $
189158

190159

191160
# PGAC_VAR_INT_TIMEZONE
@@ -264,7 +233,7 @@ fi
264233
HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
265234
AC_SUBST(HAVE_POSIX_SIGNALS)])# PGAC_FUNC_POSIX_SIGNALS
266235
# Macros to detect certain C++ features
267-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.4 2000/08/26 21:11:44 petere Exp $
236+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.5 2000/08/27 19:00:00 petere Exp $
268237

269238

270239
# PGAC_CLASS_STRING
@@ -333,7 +302,7 @@ fi])# PGAC_CXX_NAMESPACE_STD
333302
#
334303
# Autoconf macros for configuring the build of Python extension modules
335304
#
336-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.4 2000/08/26 21:11:44 petere Exp $
305+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.5 2000/08/27 19:00:00 petere Exp $
337306
#
338307

339308
# PGAC_PROG_PYTHON

config/c-compiler.m4

+1-32
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,5 @@
11
# Macros to detect C compiler features
2-
# $Header: /cvsroot/pgsql/config/c-compiler.m4,v 1.1 2000/06/11 11:39:46 petere Exp $
3-
4-
5-
# PGAC_C_SIGNED
6-
# -------------
7-
# Check if the C compiler understands signed types.
8-
# (Of course any ISO C compiler should, what is this still doing here?)
9-
AC_DEFUN([PGAC_C_SIGNED],
10-
[AC_CACHE_CHECK(for signed types, pgac_cv_c_signed,
11-
[AC_TRY_COMPILE([],
12-
[signed char c; signed short s; signed int i;],
13-
[pgac_cv_c_signed=yes],
14-
[pgac_cv_c_signed=no])])
15-
if test x"$pgac_cv_c_signed" = xno ; then
16-
AC_DEFINE(signed,, [Define empty if the C compiler does not understand signed types])
17-
fi])# PGAC_C_SIGNED
18-
19-
20-
21-
# PGAC_C_VOLATILE
22-
# ---------------
23-
# Check if the C compiler understands `volatile'. Note that if it doesn't
24-
# then this will potentially break the program semantics.
25-
AC_DEFUN([PGAC_C_VOLATILE],
26-
[AC_CACHE_CHECK(for volatile, pgac_cv_c_volatile,
27-
[AC_TRY_COMPILE([],
28-
[extern volatile int i;],
29-
[pgac_cv_c_volatile=yes],
30-
[pgac_cv_c_volatile=no])])
31-
if test x"$pgac_cv_c_volatile" = xno ; then
32-
AC_DEFINE(volatile,, [Define empty if the C compiler does not understand `volatile'])
33-
fi])# PGAC_C_VOLATILE
2+
# $Header: /cvsroot/pgsql/config/c-compiler.m4,v 1.2 2000/08/27 19:00:22 petere Exp $
343

354

365

0 commit comments

Comments
 (0)