• Asaf Kahlon's avatar
    acinclude.m4: check if -latomic is needed. · 2ec5a33f
    Asaf Kahlon authored
    On some cases, -latomic is needed for likning, and since the current
    acinclude.m4 checks only compilation we can sometimes miss the need for -latomic
    and the linking process will fail.
    Therefore, the AC_CHECK_IFELSE was replaced with AC_LINK_IFELSE. If the first
    try fails, we try to link again with -latomic and add LIBS="-latmoic" in case we
    succeeded.
    Signed-off-by: 's avatarAsaf Kahlon <asafka7@gmail.com>
    2ec5a33f
acinclude.m4 43.7 KB