configure: Fix consistency between distrib and source CC check

Fix #26394 (closed) by:

  • Adding cc to the binary distribution configure script's CC check
  • Moving c++ up in priority in the C++ check of both scripts.

Merge request reports

Loading