From 992d6a303c27e6155e7b554cef4cc0eefea1f877 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 27 Jun 2007 00:26:01 +0000 Subject: Enable static compilation of components --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 0bbaa44..4789027 100644 --- a/configure.ac +++ b/configure.ac @@ -51,6 +51,16 @@ if test "$enable_debug" = "yes"; then echo "enabling debug compile mode" fi +# Static compilation +AC_ARG_ENABLE(static, + AC_HELP_STRING([--enable-static], + [Compile binaries in debug mode])) + +if test "$enable_static" = "yes"; then + CFLAGS="$CFLAGS -static" + echo "enabling static compile mode" +fi + # Checks for libraries. AC_CHECK_LIB([kvm], [kvm_open], , [ echo "ERROR: Must have FreeBSD 4.x or higher"; exit 1]) -- cgit v1.2.3