]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 1243: Build overrides configured AR setting
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 23 Oct 2011 02:03:09 +0000 (20:03 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 23 Oct 2011 02:03:09 +0000 (20:03 -0600)
configure.ac

index 586864c0528bc5523af31efcc19d110e691de2ec..62ecb0220b2f56033d67def4d8413361340f2fcb 100644 (file)
@@ -95,8 +95,10 @@ if test "x$ac_cv_path_PERL" = "xnone"; then
 fi
 AC_PATH_PROG(POD2MAN, pod2man, $FALSE)
 
-dnl set $(AR)
-AC_PATH_PROG(AR, ar, $FALSE)
+dnl set $(AR) if not provided by the build environment
+if test "x$AR" = "x"; then
+  AC_PATH_PROG(AR, ar, $FALSE)
+fi
 AR_R="$AR r"
 AC_SUBST(AR_R)