add --enable-static support to autoconf

pull/297/merge
texane 2015-02-03 19:07:06 +01:00
rodzic 729914652b
commit 5608a3e72e
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -13,8 +13,10 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AC_PROG_RANLIB
AM_PROG_CC_C_O
AC_CONFIG_MACRO_DIR([m4])
LT_INIT
AC_CHECK_HEADERS(sys/mman.h)
AC_CHECK_HEADERS(sys/poll.h)
@ -49,6 +51,11 @@ if test "x$with_gtk" = "xyes"; then
fi
AC_SUBST([MAYBE_GUI])
AC_ARG_ENABLE([static], AS_HELP_STRING([--enable-static], [enable binaries static linking]))
if test "x$enable_static" = "xyes"; then
LDFLAGS="$LDFLAGS -all-static"
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT