• unknown's avatar
    Fix bug#27520. For some unknown reason, libtool.m4 attempts · 6fcdff50
    unknown authored
    to find "ar" but if it cannot be found sets AR=false.  This
    leads to confusing failures during the build rather than at
    configure time.
    
    We have our own checks for ar, but as AR was already set
    earlier by the libtool tests they were never exectuted.
    
    Therefore, update the tests so that we catch any libtool
    failures, and run AC_CHECK_PROG explicitly to ensure that we
    see sensible output from configure prior to any potential
    failure.
    
    
    config/ac-macros/misc.m4:
      AC_CHECK_PROG does nothing if the first argument (variable) is
      already set, so remove redundant check for the empty string.
      This also ensures that a 'checking for ar' message is printed
      prior to any failure, which is far less confusing.
    6fcdff50
misc.m4 22.5 KB