Kaydet (Commit) 7b06ddc1 authored tarafından Michael Meeks's avatar Michael Meeks

enable zenity support by default if it is in the path

üst a16ea41c
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment