From 08edfd513f13d88656c8544218b5980a10a2f6d7 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Mon, 21 Jun 2010 14:06:57 +0200 Subject: [PATCH] new configure procedure as suggested by nedko --- .gitignore | 3 +-- CHANGELOG-psyclpc | 5 ++++ INSTALL | 58 +++++++++++++++++++------------------------ src/Makefile.in | 2 +- src/autoconf/Makefile | 2 +- src/configure | 9 +++++++ src/settings/psyced | 2 +- src/util/overhead.c | 1 + src/version.sh | 26 +++++++++++++++++++ 9 files changed, 70 insertions(+), 38 deletions(-) create mode 100755 src/configure create mode 100644 src/version.sh diff --git a/.gitignore b/.gitignore index 78dc4af..64b136c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,7 @@ src/autoconf/aclocal.m4 src/autoconf/autom4te.cache src/config.h src/config.status -src/configure +src/configure-do src/dftables src/efun_defs.c src/instrs.h @@ -44,5 +44,4 @@ src/util/erq/Makefile src/util/erq/erq src/util/indent/Makefile src/util/xerq/Makefile -src/version.sh src/y.output diff --git a/CHANGELOG-psyclpc b/CHANGELOG-psyclpc index 7fb462f..e06ceaf 100644 --- a/CHANGELOG-psyclpc +++ b/CHANGELOG-psyclpc @@ -1,3 +1,8 @@ +2010-06-21 (nedko/lynX) (4.0.14) + - removed traditional configure script from distribution + new ./configure uses autotools to generate the configure script + then runs it with the psyced defaults + 2010-05-23 (lynX) (4.0.13) - added fix for the iconv detection to configure script by spigot. thx!! diff --git a/INSTALL b/INSTALL index ddc2eb7..d7fe05b 100644 --- a/INSTALL +++ b/INSTALL @@ -14,10 +14,9 @@ psyclpc & LDMud Notes --------------------- psyclpc is a variant of the LPC language optimized for psyced. - When using this driver distribution "./configure" will restart - itself as "./configure --with-setting psyced". This will run - configure with all the sane options necessary for a pleasant - psyclpc experience tuned to psyced requirements. + When using this driver distribution "./configure" will use the + GNU build system to generate the actual configure-do script, + then run it using psyced settings. See also http://lpc.psyc.eu and http://about.psyc.eu/psyclpc @@ -26,14 +25,6 @@ psyclpc & LDMud Notes settings directory and run it. All the new functions of psyclpc will then automatically default to LDMud-compatible behaviour. - Also running "./configure" with *any* parameters will keep it - from loading psyced behaviour. Expect psyced not to work with - such a driver. It will probably fail with one of these messages: - - psyclpc: Unknown option '--tls-key'. - - Failed to load master object 'secure/master'. - Unix or Unix-like system ------------------------ @@ -41,14 +32,15 @@ Unix or Unix-like system The driver uses a standard autoconfiguration system which on most systems does all the work for you (for exceptions see below). To prepare the compilation, execute the 'configure' script from - within the src/ directory. + within the src/ directory. This will run the GNU autotools + to generate a configure-do script, then run it. - configure checks for a number of site specific settings and uses this + configure-do checks for a number of site specific settings and uses this information to create the files machine.h (from machine.h.in), Makefile (from Makefile.in) and config.h (from config.h.in). We'll come back to config.h below. - configure takes a lot of arguments (--help will tell you everything), + configure-do takes a lot of arguments (--help will tell you everything), but the most important are these: --prefix=PREFIX: the base directory for the mud installation, @@ -68,26 +60,26 @@ Unix or Unix-like system argument. A lot of the drivers parameters can be tweaked for better performance; these - parameters are defined in config.h . This file too is created by configure, + parameters are defined in config.h . This file too is created by configure-do, which provides sensible defaults for all parameters for which no explicite setting is provided. To tweak a setting yourself, pass the argument - '--enable-