Added SSHD_BIN in configure.ac
This commit is contained in:
parent
b9ed302de1
commit
81b4fdb274
5 changed files with 64 additions and 5 deletions
55
configure
vendored
55
configure
vendored
|
|
@ -654,6 +654,7 @@ CLIGEN_DIR
|
|||
WC_BIN
|
||||
TAIL_BIN
|
||||
GREP
|
||||
SSHD_BIN
|
||||
SSH_BIN
|
||||
LEXLIB
|
||||
LEX_OUTPUT_ROOT
|
||||
|
|
@ -5685,7 +5686,7 @@ if test "$LEX" = ":"; then
|
|||
as_fn_error $? "CLIXON does not find lex or flex." "$LINENO" 5
|
||||
fi
|
||||
|
||||
# SSH binary path
|
||||
# SSH binary path for client and test
|
||||
# Extract the first word of "ssh", so it can be a program name with args.
|
||||
set dummy ssh; ac_word=$2
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
|
|
@ -5732,7 +5733,57 @@ fi
|
|||
|
||||
|
||||
|
||||
printf "%s\n" "#define SSH_BIN \"$SSH_BIN\"" >>confdefs.h
|
||||
printf "%s\n" "#define SSH_BIN \"${SSH_BIN}\"" >>confdefs.h
|
||||
|
||||
|
||||
# SSHD binary path for test
|
||||
# Extract the first word of "sshd", so it can be a program name with args.
|
||||
set dummy sshd; 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_SSHD_BIN+y}
|
||||
then :
|
||||
printf %s "(cached) " >&6
|
||||
else $as_nop
|
||||
case $SSHD_BIN in
|
||||
[\\/]* | ?:[\\/]*)
|
||||
ac_cv_path_SSHD_BIN="$SSHD_BIN" # 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_SSHD_BIN="$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
|
||||
SSHD_BIN=$ac_cv_path_SSHD_BIN
|
||||
if test -n "$SSHD_BIN"; then
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SSHD_BIN" >&5
|
||||
printf "%s\n" "$SSHD_BIN" >&6; }
|
||||
else
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
printf "%s\n" "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
|
||||
printf "%s\n" "#define SSHD_BIN \"${SSHD_BIN}\"" >>confdefs.h
|
||||
|
||||
|
||||
# For cli pipe output functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue