warnCFLAGS=
- common_flags="-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables"
+ common_flags="-fexceptions -fasynchronous-unwind-tables"
case "$enable_compile_warnings" in
no)
;;
esac
+ AH_VERBATIM([FORTIFY_SOURCE],
+ [/* Enable compile-time and run-time bounds-checking, and some warnings,
+ without upsetting newer glibc. */
+ #if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__
+ # define _FORTIFY_SOURCE 2
+ #endif
+ ])
+
compiler_flags=
for option in $try_compiler_flags; do
SAVE_CFLAGS="$CFLAGS"
if test $use_readline = yes; then
saved_libs=$LIBS
LIBS=$READLINE_LIBS
- AC_CHECK_FUNCS([rl_completion_matches])
+ AC_CHECK_FUNCS([rl_completion_matches rl_crlf rl_replace_line])
LIBS=$saved_libs
fi
])