diff options
author | Louie S <louie@example.com> | 2023-03-02 21:36:07 -0800 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-03-02 21:36:07 -0800 |
commit | 02f7ca01c62c34b775643ca1872338af06b5a9ba (patch) | |
tree | 0cc98f70ead4210e411645fa0f50c7c612457283 /configure | |
parent | e64d5d0c347c7c7155f414d8c2a7c766523ded9b (diff) |
configure flag to enable/disable desktop entry installation
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 33 |
1 files changed, 30 insertions, 3 deletions
@@ -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 |