configure: Store the full path to the prelink tool.
This commit is contained in:
parent
6a97f2202e
commit
3d08f5d914
|
@ -6884,26 +6884,26 @@ test -n "$PKG_CONFIG" || PKG_CONFIG="false"
|
|||
|
||||
case $host_cpu in
|
||||
*i[3456789]86*)
|
||||
for ac_prog in prelink
|
||||
do
|
||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||
set dummy $ac_prog; ac_word=$2
|
||||
# Extract the first word of "prelink", so it can be a program name with args.
|
||||
set dummy prelink; ac_word=$2
|
||||
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
||||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
||||
if test "${ac_cv_prog_PRELINK+set}" = set; then
|
||||
if test "${ac_cv_path_PRELINK+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
if test -n "$PRELINK"; then
|
||||
ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
|
||||
else
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
case $PRELINK in
|
||||
[\\/]* | ?:[\\/]*)
|
||||
ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
|
||||
;;
|
||||
*)
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in /sbin /usr/sbin $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
ac_cv_prog_PRELINK="$ac_prog"
|
||||
ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
|
||||
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
|
@ -6911,9 +6911,11 @@ done
|
|||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
PRELINK=$ac_cv_prog_PRELINK
|
||||
PRELINK=$ac_cv_path_PRELINK
|
||||
if test -n "$PRELINK"; then
|
||||
{ echo "$as_me:$LINENO: result: $PRELINK" >&5
|
||||
echo "${ECHO_T}$PRELINK" >&6; }
|
||||
|
@ -6923,10 +6925,6 @@ echo "${ECHO_T}no" >&6; }
|
|||
fi
|
||||
|
||||
|
||||
test -n "$PRELINK" && break
|
||||
done
|
||||
test -n "$PRELINK" || PRELINK="false"
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ AC_CHECK_PROGS(PKG_CONFIG, pkg-config, false)
|
|||
|
||||
case $host_cpu in
|
||||
*i[[3456789]]86*)
|
||||
AC_CHECK_PROGS(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
|
||||
AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in New Issue