diff configure.in @ 798:5055b5b0d75d

Display Lirc state in config log. Re-organize the config log a bit.
author zas_
date Sat, 07 Jun 2008 10:18:30 +0000
parents 5329797d8ff1
children 373c370887bb
line wrap: on
line diff
--- a/configure.in	Sat Jun 07 09:36:12 2008 +0000
+++ b/configure.in	Sat Jun 07 10:18:30 2008 +0000
@@ -219,10 +219,12 @@
   done
 ])
 
+HAVE_LIRC=no
 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])],,)],)
+    [AC_CHECK_LIB(lirc_client,lirc_init,[HAVE_LIRC=yes;LIBS=-llirc_client $LIBS;AC_DEFINE([HAVE_LIRC],[],[Define to 1 if LIRC must be used])],,)],)
 fi
+AM_CONDITIONAL(HAVE_LIRC, [test "x$HAVE_LIRC" = xyes])
 
 
 #  LCMS support
@@ -354,11 +356,6 @@
   UNIX:          $os_unix
   Win32:         $platform_win32 (native: $os_win32)
 
-Settings:
-  Developer:     $__IS_DEVELOPER
-  Debug:         $__IS_DEBUG
-  Deprecated:    $__IS_DEPRECATED
-
 Flags:
   Geeqie:        $GQ_CFLAGS
   DEFS:          $DEFS
@@ -370,12 +367,19 @@
   Thread:        $LIBPTHREAD
   Others:	 $LCMS_LIBS $EXIV2_LIBS
 
+Localization:
+  NLS support:   $USE_NLS
+  LINGUAS:       $LINGUAS
+
+Settings:
+  Developer:     $__IS_DEVELOPER
+  Debug:         $__IS_DEBUG
+  Deprecated:    $__IS_DEPRECATED
+
 Support:
   LCMS:          $HAVE_LCMS
   Exiv2:	 $HAVE_EXIV2
-Localization:
-  NLS support:   $USE_NLS
-  LINGUAS:       $LINGUAS
+  Lirc:          $HAVE_LIRC
 
 Documentation:
   Doxygen:       $DOXYGEN