Check $AR when detecting ar as this seems to be the official way

This commit is contained in:
Joel Rosdahl 2010-09-18 23:29:59 +02:00
parent cb2bf5daa1
commit e1b287d0ca

View File

@ -17,7 +17,7 @@ AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_CHECK_TOOL(AR, ar)
if test -z "$ac_ct_AR"; then
if test -z "$AR"; then
AC_MSG_ERROR(cannot find ar)
fi