r20313 - gnucash/trunk - Really fix conditional configure test for gtkmm.

Christian Stimming cstim at code.gnucash.org
Fri Feb 18 06:35:34 EST 2011


Author: cstim
Date: 2011-02-18 06:35:34 -0500 (Fri, 18 Feb 2011)
New Revision: 20313
Trac: http://svn.gnucash.org/trac/changeset/20313

Modified:
   gnucash/trunk/configure.ac
Log:
Really fix conditional configure test for gtkmm.

Modified: gnucash/trunk/configure.ac
===================================================================
--- gnucash/trunk/configure.ac	2011-02-18 09:37:24 UTC (rev 20312)
+++ gnucash/trunk/configure.ac	2011-02-18 11:35:34 UTC (rev 20313)
@@ -108,22 +108,24 @@
 #AC_CONFIG_MACRO_DIR(macros)
 
 AC_PROG_INSTALL
+PKG_PROG_PKG_CONFIG
 
 
 ###--------------------------------------------------------
 ### Optionally enable gtkmm plugin (requires c++ compiler)
 ###--------------------------------------------------------
-enable_gtkmm=false
+enable_GTKMM=false
 
 AC_ARG_ENABLE(gtkmm,
-  [AS_HELP_STRING([--enable-gtkmm],[enable gtkmm gui])]
+  [AS_HELP_STRING([--enable-gtkmm],[enable gtkmm gui])],
   [case "${enableval}" in
-     yes) enable_gtkmm=true ;;
-     no) enable_gtkmm=false ;;
-     *) enable_gtkmm=true ;;
+     yes) enable_GTKMM=true ;;
+     no) enable_GTKMM=false ;;
+     *) enable_GTKMM=false ;;
    esac]
   )
-AS_IF([test x${enable_gtkmm} = "xyes"],
+
+AS_IF([test x${enable_GTKMM} = "xtrue"],
   [
     GTKMM_DIR=gtkmm
     # We require gtkmm, of course
@@ -1570,6 +1572,9 @@
 if test x${PYTHON_DIR} != x; then
   components="$components python-bindings"
 fi
+if test x${GTKMM_DIR} != x; then
+  components="${components} ${GTKMM_DIR}"
+fi
 
 AC_MSG_RESULT([
   Options detected/selected



More information about the gnucash-changes mailing list