Fix --disable-static, reported by Shea Levy.

This commit is contained in:
Nicholas Marriott 2013-03-06 14:58:48 +00:00
parent bc3580fa06
commit e964ff70e6

View File

@ -53,8 +53,11 @@ AM_CONDITIONAL(IS_DEBUG, test "x$found_debug" = xyes)
AC_ARG_ENABLE(
static,
AC_HELP_STRING(--enable-static, create a static build),
[LDFLAGS="$LDFLAGS -static"]
found_static=$enable_static
)
if test "x$found_static" = xyes; then
LDFLAGS="$LDFLAGS -static"
fi
# Is this gcc?
AM_CONDITIONAL(IS_GCC, test "x$GCC" = xyes)