Author: cazfi
Date: Tue Nov 25 03:05:21 2014
New Revision: 27126

URL: http://svn.gna.org/viewcvs/freeciv?rev=27126&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:
    branches/S2_5/configure.ac
    branches/S2_5/doc/README.AI_modules

Modified: branches/S2_5/configure.ac
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/configure.ac?rev=27126&r1=27125&r2=27126&view=diff
==============================================================================
--- branches/S2_5/configure.ac  (original)
+++ branches/S2_5/configure.ac  Tue Nov 25 03:05:21 2014
@@ -413,6 +413,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: branches/S2_5/doc/README.AI_modules
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/doc/README.AI_modules?rev=27126&r1=27125&r2=27126&view=diff
==============================================================================
--- branches/S2_5/doc/README.AI_modules (original)
+++ branches/S2_5/doc/README.AI_modules Tue Nov 25 03:05:21 2014
@@ -91,6 +91,10 @@
 For "--LoadAI <modulename>" to find the AI module, it must reside in 
${libdir}/fcai/
 (/usr/lib/fcai by default) under name fc_ai_<modulename>.so
 
+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
+
 
 5. Using default AI as part of new AI module
 --------------------------------------------


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to