Use AC_MSG_RESULT to print the few configuration options
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 1 Oct 2013 23:55:08 +0000 (09:55 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 1 Oct 2013 23:55:08 +0000 (09:55 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
configure.ac

index 81ccd0b72793301e84b429c00678a124eead2571..a21a51b263d9f7e4c18830182202ea57593e641c 100644 (file)
@@ -73,8 +73,11 @@ AC_SUBST([GCC_CFLAGS], $with_cflags)
 AC_PATH_PROG(DOXYGEN, [doxygen])
 if test "x$DOXYGEN" = "x"; then
        AC_MSG_WARN([doxygen not found - required for documentation])
+       have_doxygen="no"
+else
+       have_doxygen="yes"
 fi
-AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
+AM_CONDITIONAL([HAVE_DOXYGEN], [test "x$have_doxygen" = "xyes"])
 
 AC_MSG_CHECKING([whether to build with gcov])
 AC_ARG_ENABLE([gcov],
@@ -104,3 +107,9 @@ AC_CONFIG_FILES([Makefile
                 test/Makefile
                 libevdev.pc])
 AC_OUTPUT
+
+AC_MSG_RESULT([
+              Build documentation      ${have_doxygen}
+              Build unit-tests         ${HAVE_CHECK}
+              Enable profiling         ${enable_gcov}
+              ])