config/misc.m4
author athos
Thu, 09 Jun 2005 15:22:40 +0000
changeset 1464 718207d6a1e6
parent 1370 76a3f46d361c
permissions -rw-r--r--
Bugfix.
ladanyi@1370
     1
AC_DEFUN([LX_ENABLE_DOCS],
ladanyi@1370
     2
[
ladanyi@1370
     3
  AC_ARG_ENABLE([docs],
ladanyi@1370
     4
AS_HELP_STRING([--enable-docs@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
ladanyi@1370
     5
AS_HELP_STRING([--disable-docs], [do not build the documentation]),
ladanyi@1370
     6
         [], [enable_docs=yes])
ladanyi@1370
     7
ladanyi@1370
     8
  AC_MSG_CHECKING([whether to build the documention])
ladanyi@1370
     9
  case "$enable_docs" in
ladanyi@1370
    10
    yes)
ladanyi@1370
    11
      DOXYGEN_INTERNAL_DOCS=NO
ladanyi@1370
    12
      AC_MSG_RESULT([yes])
ladanyi@1370
    13
      ;;
ladanyi@1370
    14
    full)
ladanyi@1370
    15
      DOXYGEN_INTERNAL_DOCS=YES
ladanyi@1370
    16
      AC_MSG_RESULT([full])
ladanyi@1370
    17
      ;;
ladanyi@1370
    18
    no)
ladanyi@1370
    19
      DOXYGEN_INTERNAL_DOCS=NO
ladanyi@1370
    20
      AC_MSG_RESULT([no])
ladanyi@1370
    21
      ;;
ladanyi@1370
    22
    *)
ladanyi@1370
    23
      AC_MSG_ERROR([bad value $enable_docs for option --enable-docs])
ladanyi@1370
    24
      ;;
ladanyi@1370
    25
  esac
ladanyi@1370
    26
  AC_SUBST(DOXYGEN_INTERNAL_DOCS)
ladanyi@1370
    27
  AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"])
ladanyi@1370
    28
])
ladanyi@1404
    29
ladanyi@1404
    30
AC_DEFUN([LX_ENABLE_GUI],
ladanyi@1404
    31
[
ladanyi@1404
    32
  AC_ARG_ENABLE([gui],
ladanyi@1404
    33
AS_HELP_STRING([--enable-gui], [build the GUI])
ladanyi@1404
    34
AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
ladanyi@1404
    35
         [], [enable_gui=no])
ladanyi@1404
    36
ladanyi@1404
    37
  AC_MSG_CHECKING([whether to build the GUI])
ladanyi@1404
    38
  if test x"$enable_gui" != x"no"; then
ladanyi@1404
    39
      AC_MSG_RESULT([yes])
ladanyi@1404
    40
  else
ladanyi@1404
    41
      AC_MSG_RESULT([no])
ladanyi@1404
    42
  fi
ladanyi@1404
    43
  if test x"$enable_gui" != x"no"; then
ladanyi@1404
    44
    PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
ladanyi@1404
    45
  fi
ladanyi@1404
    46
  AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
ladanyi@1404
    47
])