3 # Sets fp_prog_ar_is_gnu to yes or no, depending on whether it is GNU ar or not.
4 AC_DEFUN([FP_PROG_AR_IS_GNU],
5 [AC_REQUIRE([FP_PROG_AR])
6 AC_CACHE_CHECK([whether $fp_prog_ar is GNU ar], [fp_cv_prog_ar_is_gnu],
7 [if "$fp_prog_ar" --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then
8 fp_cv_prog_ar_is_gnu=yes
10 fp_cv_prog_ar_is_gnu=no
12 fp_prog_ar_is_gnu=$fp_cv_prog_ar_is_gnu
13 AC_SUBST([ArIsGNUAr], [`echo $fp_prog_ar_is_gnu | tr 'a-z' 'A-Z'`])