From: JINMEI Tatuya Date: Wed, 31 Oct 2012 21:51:22 +0000 (-0700) Subject: [2356] corrected ressoring LDFLAGS. X-Git-Tag: trac2487_base~20^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1f95f0359a425b9d758cfacffc75a4517fb342f;p=thirdparty%2Fkea.git [2356] corrected ressoring LDFLAGS. we should have used _SAVED; also we need to make a copy of LDFLAGS (in LDFLAGS_SAVED) before extending it. it now does both of these correctly. --- diff --git a/examples/m4/ax_isc_bind10.m4 b/examples/m4/ax_isc_bind10.m4 index 6d97d59a21..cfb9aaaf35 100644 --- a/examples/m4/ax_isc_bind10.m4 +++ b/examples/m4/ax_isc_bind10.m4 @@ -71,12 +71,12 @@ fi # make sure we have buildable libraries AC_MSG_CHECKING([for BIND 10 common library]) BIND10_COMMON_LIB="-lb10-util -lb10-exceptions" -LDFLAGS="$LDFLAGS $BIND10_LDFLAGS" +LDFLAGS_SAVED="$LDFLAGS" +LDFLAGS_CHECK_COMMON="$LDFLAGS $BIND10_LDFLAGS" LIBS="$LIBS $BIND10_COMMON_LIB" for d in $bind10_lib_dirs do - LDFLAGS_SAVED="$LDFLAGS" - LDFLAGS="$LDFLAGS -L$d" + LDFLAGS="$LDFLAGS_CHECK_COMMON -L$d" AC_TRY_LINK([ #include ],[ @@ -85,7 +85,6 @@ isc::util::OutputBuffer buffer(0); if test "x$BIND10_LDFLAGS" != "x"; then break fi - LDFLAGS="$LDFLAGS_SAVED" done if test "x$BIND10_LDFLAGS" != "x"; then AC_MSG_RESULT(yes) @@ -117,7 +116,7 @@ AC_SUBST(BIND10_DNS_LIB) # Restore other flags CPPFLAGS="$CPPFLAGS_SAVED" -LDFLAGS="$LDFLAGS_SAVES" +LDFLAGS="$LDFLAGS_SAVED" AC_LANG_RESTORE ])dnl AX_ISC_BIND10