489 |
# and it might use a cached value for the path. |
# and it might use a cached value for the path. |
490 |
# No big loss, I think, since most configures don't use this macro anyway. |
# No big loss, I think, since most configures don't use this macro anyway. |
491 |
AC_DEFUN([AC_PREFIX_PROGRAM], |
AC_DEFUN([AC_PREFIX_PROGRAM], |
492 |
[dnl Get an upper case version of $[1]. |
[if test "x$prefix" = xNONE; then |
|
m4_pushdef([AC_Prog], m4_toupper([$1]))dnl |
|
|
if test "x$prefix" = xNONE; then |
|
493 |
dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle. |
dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle. |
494 |
_AS_ECHO_N([checking for prefix by]) |
_AS_ECHO_N([checking for prefix by ]) |
495 |
AC_PATH_PROG(AC_Prog, [$1]) |
AC_PATH_PROG(ac_prefix_program, [$1]) |
496 |
if test -n "$ac_cv_path_[]AC_Prog"; then |
if test -n $ac_prefix_program; then |
497 |
prefix=`AS_DIRNAME(["$ac_cv_path_[]AC_Prog"])` |
prefix=`AS_DIRNAME(["$ac_prefix_program"])` |
498 |
prefix=`AS_DIRNAME(["$prefix"])` |
prefix=`AS_DIRNAME(["$prefix"])` |
499 |
fi |
fi |
500 |
fi |
fi |
|
m4_popdef([AC_Prog])dnl |
|
501 |
])# AC_PREFIX_PROGRAM |
])# AC_PREFIX_PROGRAM |
502 |
|
|
503 |
|
|