Split off of #28045, where the libatomic dependency is handled.
CC: @embray @dimpase @isuruf
Component: build: configure
Author: Thierry Thomas, Dima Pasechnik
Branch: d5c10a5
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/28991