diff --git a/configure.ac b/configure.ac index e89dd2dc8..aa39e3591 100644 --- a/configure.ac +++ b/configure.ac @@ -354,29 +354,6 @@ dnl joystick lib AC_DEFINE([ENABLE_PLIB_JOYSTICK], 1, [Define to enable plib joystick support]) -dnl Checking for PSL in plib -dnl version of plib, so check for it. -AC_MSG_CHECKING([for plib PSL scripting support]) -AC_COMPILE_IFELSE([ -#include - -int main() { - // not for running... - pslProgram program((pslExtension *)0); - program.compile("int main () {}", ""); - return 0; -} -], - [AC_MSG_RESULT(yes); - have_plib_psl=yes], - AC_MSG_RESULT(no) -) -AM_CONDITIONAL(HAVE_PLIB_PSL, test "x$have_plib_psl" = "xyes") -if test "x$have_plib_psl" = "xyes"; then - AC_DEFINE([HAVE_PLIB_PSL], 1, - [Define if plib version is new enough to provide "PSL"]) -fi - dnl Check for the presence of SimGear AC_CHECK_HEADER(simgear/version.h) if test "x$ac_cv_header_simgear_version_h" != "xyes"; then @@ -555,16 +532,6 @@ echo "=================" echo "Prefix: $prefix" -if test "x$have_plib_psl" = "xyes"; then - echo "Plib PSL scripting: yes" -else - echo "Plib PSL scripting: $fg_psl_string_compile" - echo " You will not be able to run scripts written in PSL" - echo " and some advanced GUI and input features may not" - echo " work. Download and install the latest CVS version" - echo " of plib if you would like to enable PSL support." -fi - if test "x$with_logging" != "x"; then echo "Debug messages: $with_logging" else diff --git a/src/Cockpit/radiostack.cxx b/src/Cockpit/radiostack.cxx index 9af2567dc..4a6d38da5 100644 --- a/src/Cockpit/radiostack.cxx +++ b/src/Cockpit/radiostack.cxx @@ -77,8 +77,8 @@ FGRadioStack::init () update(0); // FIXME: use dt // Search radio database once per second - globals->get_event_mgr()->add( "fgRadioSearch()", current_radiostack, - &FGRadioStack::search, 1000 ); + globals->get_event_mgr()->addTask( "fgRadioSearch()", current_radiostack, + &FGRadioStack::search, 1 ); } diff --git a/src/Main/Makefile.am b/src/Main/Makefile.am index 7230ff957..a14582f9b 100644 --- a/src/Main/Makefile.am +++ b/src/Main/Makefile.am @@ -22,14 +22,6 @@ else CLOUD3D_LIBS = endif -if HAVE_PLIB_PSL -SCRIPTING_LIBS = $(top_builddir)/src/Scripting/libScripting.a -PSL_LIBS = -lplibpsl -else -SCRIPTING_LIBS = -PSL_LIBS = -endif - AM_CXXFLAGS = -DPKGLIBDIR=\"$(pkglibdir)\" EXTRA_DIST = 3dfx.sh runfgfs.in runfgfs.bat.in @@ -82,7 +74,7 @@ fgfs_LDADD = \ $(top_builddir)/src/Network/libNetwork.a \ $(top_builddir)/src/Navaids/libNavaids.a \ $(top_builddir)/src/Scenery/libScenery.a \ - $(SCRIPTING_LIBS) \ + $(top_builddir)/src/Scripting/libScripting.a \ $(top_builddir)/src/Sound/libSound.a \ $(top_builddir)/src/Airports/libAirports.a \ $(MPLAYER_LIBS) \ @@ -94,11 +86,10 @@ fgfs_LDADD = \ $(CLOUD3D_LIBS) \ -lsgroute -lsgsky -lsgsound -lsgephem -lsgmaterial -lsgtgdb -lsgmodel \ -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -lsgprops -lsgdebug \ - -lsgmagvar -lsgmisc -lsgxml -lsgsound -lsgserial -lsgstructure \ + -lsgmagvar -lsgmisc -lnasal -lsgxml -lsgsound -lsgserial -lsgstructure \ $(THREAD_LIBS) \ -lplibpu -lplibfnt -lplibjs -lplibnet -lplibssg -lplibsg -lplibul \ $(network_LIBS) \ - $(PSL_LIBS) \ -lz \ $(opengl_LIBS) \ $(audio_LIBS) diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index ff079276e..9663ad892 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -26,6 +26,7 @@ #if defined(HAVE_PLIB_PSL) # include #endif +#include #include