comparison configure.ac @ 17018:d603b5fb7292

disapproval of revision 'cde234fe820467241e86dc0c48917384759d7f4a'
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 11 May 2007 00:39:36 +0000
parents fe6fd0568d04
children a0ab4040a857
comparison
equal deleted inserted replaced
16523:fe6fd0568d04 17018:d603b5fb7292
805 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") 805 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
806 806
807 AC_CHECK_HEADER(sys/utsname.h) 807 AC_CHECK_HEADER(sys/utsname.h)
808 AC_CHECK_FUNC(uname) 808 AC_CHECK_FUNC(uname)
809 809
810 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], enable_fortify="$enableval", enable_fortify=yes) 810 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
811
812 AC_ARG_ENABLE(mcheck, [AC_HELP_STRING([--enable-mcheck], [compile with mcheck (malloc debugging) support])], enable_mcheck="$enableval", enable_mcheck="$enable_debug")
813 if test "x$enable_mcheck" = "xyes" ; then
814 orig_LIBS="$LIBS"
815 LIBS="$LIBS -lmcheck"
816 AC_MSG_CHECKING(for mcheck support)
817 AC_TRY_COMPILE([], [
818 int main() {return 0;}
819 ], [
820 AC_MSG_RESULT(yes)
821 ], [
822 AC_MSG_RESULT(no)
823 LIBS="$orig_LIBS"
824 ])
825 fi
826 811
827 if test "x$GCC" = "xyes"; then 812 if test "x$GCC" = "xyes"; then
828 dnl We enable -Wall later. 813 dnl We enable -Wall later.
829 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. 814 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags.
830 dnl This leads to warnings we don't want. 815 dnl This leads to warnings we don't want.