# HG changeset patch # User zas_ # Date 1211586012 0 # Node ID 5329797d8ff11aa268f1d311db8ee83347e455c5 # Parent f606e8962329983dd4483030207625e4b8afcadd Fix display of libpthread detection. Fix display of lirc support, do not test for headers if disabled. diff -r f606e8962329 -r 5329797d8ff1 configure.in --- a/configure.in Fri May 23 23:18:40 2008 +0000 +++ b/configure.in Fri May 23 23:40:12 2008 +0000 @@ -156,7 +156,6 @@ AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:") AC_SUBST(WINDRES) -AC_MSG_CHECKING(for libpthread) have_libpthread=no AC_CHECK_LIB([pthread], [main], [AC_CHECK_HEADER([pthread.h], @@ -169,6 +168,7 @@ else AC_MSG_WARN([POSIX thread header not installed]) fi +AC_MSG_CHECKING(for libpthread) AC_MSG_RESULT([${have_libpthread}]) dnl reasonable guesses for where stuff is installed @@ -196,10 +196,12 @@ # ---------------------------------------------------------------------- dnl Check for LIRC client support +AC_MSG_CHECKING(if LIRC support is enabled) +lirc=no AC_ARG_ENABLE([lirc], AC_HELP_STRING([--disable-lirc], [disable lirc support (auto)]), [ -if test x"${enableval}" = x"yes" -a x"$GCC" = x"yes"; then +if test "x${enableval}" = "xyes" -a "x$GCC" = "xyes"; then AC_MSG_RESULT(yes) lirc=yes else @@ -217,7 +219,7 @@ done ]) -if test "x${lirc}" != x"no" ; then +if test "x${lirc}" != "xno" ; then AC_CHECK_HEADER(lirc/lirc_client.h, [AC_CHECK_LIB(lirc_client,lirc_init,[LIBS=-llirc_client $LIBS;AC_DEFINE([HAVE_LIRC],[],[Define to 1 if LIRC must be used])],,)],) fi