mirror of https://codeberg.org/cage/tinmop/
- added test for TK interpreter in configure.ac.
This commit is contained in:
parent
90a6bfa02b
commit
bd148e93b6
|
@ -340,6 +340,7 @@ STRIP = @STRIP@
|
|||
UNZIP = @UNZIP@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
WISH = @WISH@
|
||||
XDG_OPEN = @XDG_OPEN@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XGETTEXT_015 = @XGETTEXT_015@
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
** Programs
|
||||
|
||||
+ to build the package:
|
||||
- C compiler
|
||||
- SBCL compiler;
|
||||
- curl
|
||||
- xgettext.
|
||||
|
||||
+ to install the package, including running the script to install lisp libraries (~quick_quicklisp.sh~):
|
||||
|
@ -44,7 +47,6 @@
|
|||
- git.
|
||||
|
||||
+ to run the program:
|
||||
- SBCL compiler;
|
||||
- xdg-open;
|
||||
- openssl;
|
||||
- unzip (command line utitlity to decompress zip file);
|
||||
|
|
|
@ -623,6 +623,7 @@ LTLIBOBJS
|
|||
LIBOBJS
|
||||
ENABLE_COMPLETION_FALSE
|
||||
ENABLE_COMPLETION_TRUE
|
||||
WISH
|
||||
COMPLETION_DIR
|
||||
PKG_CONFIG
|
||||
FILE
|
||||
|
@ -7805,6 +7806,63 @@ if test "$PKG_CONFIG" != "no" ; then
|
|||
|
||||
fi
|
||||
|
||||
for ac_prog in wish
|
||||
do
|
||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||
set dummy $ac_prog; ac_word=$2
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
printf %s "checking for $ac_word... " >&6; }
|
||||
if test ${ac_cv_path_WISH+y}
|
||||
then :
|
||||
printf %s "(cached) " >&6
|
||||
else $as_nop
|
||||
case $WISH in
|
||||
[\\/]* | ?:[\\/]*)
|
||||
ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
|
||||
;;
|
||||
*)
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
case $as_dir in #(((
|
||||
'') as_dir=./ ;;
|
||||
*/) ;;
|
||||
*) as_dir=$as_dir/ ;;
|
||||
esac
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
||||
ac_cv_path_WISH="$as_dir$ac_word$ac_exec_ext"
|
||||
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
WISH=$ac_cv_path_WISH
|
||||
if test -n "$WISH"; then
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WISH" >&5
|
||||
printf "%s\n" "$WISH" >&6; }
|
||||
else
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
printf "%s\n" "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
test -n "$WISH" && break
|
||||
done
|
||||
test -n "$WISH" || WISH="no"
|
||||
|
||||
|
||||
if test "$WISH" = "no" ; then
|
||||
as_fn_error $? "Can not find TK interpreter executable." "$LINENO" 5
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
if test "$COMPLETION_DIR" != ""; then
|
||||
ENABLE_COMPLETION_TRUE=
|
||||
ENABLE_COMPLETION_FALSE='#'
|
||||
|
|
|
@ -145,6 +145,13 @@ if test "$PKG_CONFIG" != "no" ; then
|
|||
AC_SUBST([COMPLETION_DIR])
|
||||
fi
|
||||
|
||||
AC_PATH_PROGS([WISH],[wish],[no])
|
||||
|
||||
if test "$WISH" = "no" ; then
|
||||
AC_MSG_ERROR([Can not find TK interpreter executable.])
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([ENABLE_COMPLETION],[test "$COMPLETION_DIR" != ""])
|
||||
|
||||
AC_PROG_MKDIR_P
|
||||
|
|
Loading…
Reference in New Issue