• Sergei Trofimovich's avatar
    aclocal.m4: respect user's --with-ar= choice · 79848f18
    Sergei Trofimovich authored
    'FP_PROG_AR' macro has a minor bug: it ignores
    already existing value stored in '$fp_prog_ar'.
    
    I've noticed it when tried to built UNREG ghc using thin LTO:
    
      $ ./configure --enable-unregisterised \
                    --with-nm=gcc-nm \
                    --with-ar=gcc-ar \
                    --with-ranlib=gcc-ranlib \
    
    ./configure refused to use 'gcc-ar' (LTO-aware variant of 'ar')
    and kept using 'ar'.
    
    '$fp_prog_ar' is initialized (in a complex manner) in 'configure.ac' as:
    
        FP_ARG_WITH_PATH_GNU_PROG([AR], [ar], [ar])
        ArCmd="$AR"
        fp_prog_ar="$AR"
        AC_SUBST([ArCmd])
    
    The change keeps that value.
    Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
    79848f18
aclocal.m4 69.7 KB