chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login: revert lazy session-activation on non-VT seats
[elogind.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index bb196f541493a2a5bb0b3dd43996b7f627f054d4..f1b00c5aee7b3e38f4d05a784a91dc6e45383da6 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-128,7
+128,6
@@
CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
-Wold-style-definition \
-Wpointer-arith \
-Winit-self \
-Wold-style-definition \
-Wpointer-arith \
-Winit-self \
- -Wdeclaration-after-statement \
-Wfloat-equal \
-Wmissing-prototypes \
-Wstrict-prototypes \
-Wfloat-equal \
-Wmissing-prototypes \
-Wstrict-prototypes \
@@
-156,6
+155,10
@@
CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
-fdata-sections \
-fstack-protector \
--param=ssp-buffer-size=4])
-fdata-sections \
-fstack-protector \
--param=ssp-buffer-size=4])
+AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
+ [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
+ -flto])],
+ [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
AC_SUBST([OUR_CFLAGS], "$with_cflags $address_sanitizer_cflags")
AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
AC_SUBST([OUR_CFLAGS], "$with_cflags $address_sanitizer_cflags")
AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
@@
-838,7
+841,7
@@
AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
AC_SUBST(TELINIT)
AC_SUBST(TELINIT)
-AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h])
+AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h
valgrind/valgrind.h
])
# ------------------------------------------------------------------------------
have_myhostname=no
# ------------------------------------------------------------------------------
have_myhostname=no