Author: cazfi Date: Tue Nov 25 03:05:13 2014 New Revision: 27125 URL: http://svn.gna.org/viewcvs/freeciv?rev=27125&view=rev Log: Added configure option --with-ai-lib to force default AI build for custom ai types to use even when no ai type using it is being built
See patch #5447 Modified: trunk/configure.ac trunk/doc/README.AI_modules Modified: trunk/configure.ac URL: http://svn.gna.org/viewcvs/freeciv/trunk/configure.ac?rev=27125&r1=27124&r2=27125&view=diff ============================================================================== --- trunk/configure.ac (original) +++ trunk/configure.ac Tue Nov 25 03:05:13 2014 @@ -441,6 +441,10 @@ AS_HELP_STRING([--with-default-ai], [default ai type [first static]]), [default_ai_set="${withval}"], []) + +AC_ARG_WITH([ai-lib], + AS_HELP_STRING([--with-ai-lib], [build in default AI code [if needed]]), + [ai_mod_default_needed=yes], []) AM_CONDITIONAL([AI_MOD_DEFAULT_NEEDED], [test "x${ai_mod_default_needed}" = "xyes" || test "x${default_ai_set}" = "x"]) Modified: trunk/doc/README.AI_modules URL: http://svn.gna.org/viewcvs/freeciv/trunk/doc/README.AI_modules?rev=27125&r1=27124&r2=27125&view=diff ============================================================================== --- trunk/doc/README.AI_modules (original) +++ trunk/doc/README.AI_modules Tue Nov 25 03:05:13 2014 @@ -108,6 +108,10 @@ to make sure data needed by default AI is in the beginning of the allocated data blocks. For example, see threaded AI: tai_player_alloc(), tai_player_free(), and struct tai_plr. +Default AI code is usually built in freeciv only if some AI type using it has been built; +either 'classic' or 'threaded'. If no such ai type has been built, you can still force +it in for custom ai types to use by passing configure option --with-ai-lib + 6. Callback interface ChangeLog ------------------------------- _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits