diff --git a/acconfig.h b/acconfig.h index ab88dd6e6..bcdaae990 100644 --- a/acconfig.h +++ b/acconfig.h @@ -61,6 +61,9 @@ /* Define to include Oliver's networking support */ #undef FG_NETWORK_OLK +/* Define to include Oliver's networking support */ +#undef FG_NEW_WEATHER + /* Define if we are building FGFS (should always be defined) */ #undef FGFS diff --git a/src/Main/Makefile.am b/src/Main/Makefile.am index 9eb5892fd..2ab5caf19 100644 --- a/src/Main/Makefile.am +++ b/src/Main/Makefile.am @@ -4,6 +4,14 @@ else SERIAL_LIBS = endif +if ENABLE_NEW_WEATHER +WEATHER_LIBS = $(top_builddir)/Simulator/WeatherCM/libWeatherCM.a \ + $(top_builddir)/Lib/Voronoi/libVoronoi.a +else +WEATHER_LIBS = $(top_builddir)/Simulator/Weather/libWeather.a +endif + + CPPFLAGS += -DPKGLIBDIR=\"$(pkglibdir)\" EXTRA_DIST = 3dfx.sh runfgfs.in runfgfs.bat.in @@ -38,8 +46,7 @@ fgfs_LDADD = \ $(top_builddir)/Simulator/Network/libNetwork.a \ $(top_builddir)/Simulator/Objects/libObjects.a \ $(top_builddir)/Simulator/Time/libTime.a \ - $(top_builddir)/Simulator/Weather/libWeather.a \ - $(top_builddir)/Simulator/WeatherCM/libWeatherCM.a \ + $(WEATHER_LIBS) \ $(top_builddir)/Simulator/Joystick/libJoystick.a \ $(SERIAL_LIBS) \ $(top_builddir)/Lib/Math/libMath.a \ diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 646e18b2d..2c9124f29 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -70,8 +70,12 @@ #include