diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-12-03 12:40:24 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-12-03 12:40:51 +0000 |
commit | f419c9ed1c25b3378535fd130a33559096ef0654 (patch) | |
tree | 5d947a0aaca077e07a5aa60e4062196fca493fbf | |
parent | f927229159fb2b0a4d34204b57f5b05c2789273a (diff) |
enable zenity support by default if it is in the path
-rw-r--r-- | configure.in | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/configure.in b/configure.in index c2129c102..7fd6ad9f0 100644 --- a/configure.in +++ b/configure.in @@ -458,9 +458,9 @@ AC_ARG_ENABLE(icecream, ,) AC_ARG_ENABLE(zenity, - AS_HELP_STRING([--enable-zenity], - [Display a icon in the notification area during build.]), -,) + AS_HELP_STRING([--disable-zenity], + [Do not display a build icon in the notification area (on unix) during build.]), +,enable_zenity=yes) AC_ARG_ENABLE(cl-x64, AS_HELP_STRING([--enable-cl-x64], @@ -8006,8 +8006,14 @@ dnl Use zenity during build dnl =================================================================== AC_MSG_CHECKING([whether to use zenity during build]) if test "$enable_zenity" = "yes"; then - ENABLE_ZENITY=TRUE - AC_MSG_RESULT([yes]) + AC_PATH_PROGS( ZNTY, zenity ) + if test -z "ZNTY"; then + ENABLE_ZENITY=FALSE + AC_MSG_RESULT([no]) + else + ENABLE_ZENITY=TRUE + AC_MSG_RESULT([yes]) + fi else ENABLE_ZENITY=FALSE AC_MSG_RESULT([no]) |