--- old/dbus-1.5.8/configure.ac 2011-09-21 19:25:12.000000000 +0200 +++ dbus-1.5.8/configure.ac 2012-02-22 23:24:26.081339112 +0100 @@ -122,6 +122,13 @@ AM_CONDITIONAL(DBUS_UNIX, test "$dbus_unix" = yes) AM_CONDITIONAL(DBUS_CYGWIN, test "$dbus_cygwin" = yes) +# special CFLAG for static build +DBUS_STATIC_BUILD_CFLAG= +if test "x$enable_shared" = xno; then + DBUS_STATIC_BUILD_CFLAG=-DDBUS_STATIC_BUILD +fi +AC_SUBST([DBUS_STATIC_BUILD_CFLAG]) + AC_ARG_ENABLE(ansi, AS_HELP_STRING([--enable-ansi],[enable -ansi -pedantic gcc flags]),enable_ansi=$enableval,enable_ansi=no) AC_ARG_ENABLE(verbose-mode, AS_HELP_STRING([--enable-verbose-mode],[support verbose debug mode]),enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE) AC_ARG_ENABLE(asserts, AS_HELP_STRING([--enable-asserts],[include assertion checks]),enable_asserts=$enableval,enable_asserts=$USE_MAINTAINER_MODE)