Skip to content

Commit 3f69ed3

Browse files
committed
configure: Remove unused check
1 parent f40a7d1 commit 3f69ed3

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

configure.ac

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,6 @@ case ${host_os} in
8080
esac
8181
AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
8282

83-
# Check if the C compiler supports __attribute__((constructor))
84-
AC_CACHE_CHECK([wether the C compiler supports constructor/destructor attributes],
85-
ac_cv_attribute_constructor, [
86-
ac_cv_attribute_constructor=no
87-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
88-
[[
89-
static void __attribute__((constructor)) test_constructor(void) {
90-
}
91-
static void __attribute__((destructor)) test_destructor(void) {
92-
}
93-
]], [])],
94-
[ac_cv_attribute_constructor=yes]
95-
)]
96-
)
97-
if test "$ac_cv_attribute_constructor" = "yes"; then
98-
AC_DEFINE(HAVE_ATTRIBUTE_CONSTRUCTOR, 1, [Define if the C compiler supports constructor/destructor attributes])
99-
fi
100-
10183
AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden")
10284

10385
if test "x$enable_static" = "xyes" -a "x$enable_shared" = "xno"; then

0 commit comments

Comments
 (0)