From 02f7ca01c62c34b775643ca1872338af06b5a9ba Mon Sep 17 00:00:00 2001 From: Louie S Date: Thu, 2 Mar 2023 21:36:07 -0800 Subject: configure flag to enable/disable desktop entry installation --- configure | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index ba1dd45..192ff3a 100755 --- a/configure +++ b/configure @@ -623,6 +623,8 @@ ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS +DESKTOP_ENTRY_FALSE +DESKTOP_ENTRY_TRUE WINDOWS_FALSE WINDOWS_TRUE UNIX_FALSE @@ -733,6 +735,7 @@ enable_silent_rules enable_dependency_tracking with_ncurses with_ncursesw +enable_desktop_entry ' ac_precious_vars='build_alias host_alias @@ -1384,6 +1387,7 @@ Optional Features: do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build + --enable-desktop-entry install a desktop entry (default is no) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -5722,6 +5726,24 @@ else fi +# enable/disable options +# Check whether --enable-desktop-entry was given. +if test "${enable_desktop_entry+set}" = set; then : + enableval=$enable_desktop_entry; desktop_entry=$enableval +else + desktop_entry=no +fi + + + if test "$desktop_entry" = "yes"; then + DESKTOP_ENTRY_TRUE= + DESKTOP_ENTRY_FALSE='#' +else + DESKTOP_ENTRY_TRUE='#' + DESKTOP_ENTRY_FALSE= +fi + + ac_config_files="$ac_config_files Makefile src/Makefile docs/Makefile data/Makefile" cat >confcache <<\_ACEOF @@ -5901,6 +5923,10 @@ if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then as_fn_error $? "conditional \"WINDOWS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${DESKTOP_ENTRY_TRUE}" && test -z "${DESKTOP_ENTRY_FALSE}"; then + as_fn_error $? "conditional \"DESKTOP_ENTRY\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -7047,7 +7073,8 @@ cat << EOF ** Configuration summary for ${PACKAGE_NAME} ${PACKAGE_VERSION} - Prefix: ${prefix} - Compiler: ${CC} ${CFLAGS} ${CPPFLAGS} - Libraries: ${LIBS} + Prefix: ${prefix} + Compiler: ${CC} ${CFLAGS} ${CPPFLAGS} + Libraries: ${LIBS} + Desktop Entry: ${desktop_entry} EOF -- cgit