Skip to content
Snippets Groups Projects
Commit 21c0791a authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Check for gcc as well.

parent 4bb13d45
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -623,22 +623,18 @@ if test $ol_aix_threads = yes ; then
fi
if test -z "${CC}"; then
AC_CHECK_PROGS(CC,cc,missing)
AC_CHECK_PROGS(CC,cc gcc,missing)
if test "${CC}" = "missing" ; then
AC_MSG_ERROR([Unable to locate cc(1). Check PATH or set CC.])
AC_MSG_ERROR([Unable to locate cc(1) or suitable replacement. Check PATH or set CC.])
fi
fi
dnl The default CFLAGS is empty NOT whatever AC_PROG_CC sets.
dnl (for now, let autoconf sort this out)
dnl CFLAGS=${CFLAGS-""}
if test -z "${AR}"; then
AC_CHECK_PROGS(AR,ar gar,missing)
if test "${AR}" = "missing" ; then
AC_MSG_ERROR([Unable to locate ar(1). Check PATH or set AR.])
AC_MSG_ERROR([Unable to locate ar(1) or suitable replacement. Check PATH or set AR.])
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment