PennMUSH Community

Changeset 1219

Show
Ignore:
Timestamp:
02/19/08 19:19:21 (10 months ago)
Author:
shawnw
Message:

#7553: --disable-sql

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/CHANGES.183

    r1215 r1219  
    3030   particular action list. This and associated commands inspired 
    3131   by [Rhost]. 
     32 * New configure option --disable-sql to turn off checks for all supported 
     33   SQL servers. 
    3234 
    3335Commands: 
  • 1.8.3/branches/devel/README.SQL

    r873 r1219  
    55 
    66As of version 1.7.7p32, PennMUSH includes functions and commands that 
    7 can access SQL databases. Currently, the following databases are  
     7can access SQL databases. Currently, the following databases are 
    88supported: 
    99 
     
    1212  * Sqlite v3  (from 1.8.3p2) 
    1313 
    14 This document explains how to use (or avoid) SQL with PennMUSH, and covers 
    15 the following issues: 
     14This document explains how to use (or avoid) SQL with PennMUSH, and 
     15covers the following issues: 
    1616 
    1717   I. Compiling with or without SQL 
     
    2222 
    2323In general, Configure attempts to detect all support sql client 
    24 libraries on the host, and will link with all of them, permitting 
    25 you to select which platform you want at runtime. You can selectively 
    26 prevent linking with client libraries that are present on your 
    27 system, as well; this is described below. 
     24libraries on the host, and will link with all of them, permitting you 
     25to select which platform you want at runtime. You can selectively 
     26prevent linking with client libraries that are present on your system, 
     27by passing configure a --without-FOO option. --disable-sql turns off 
     28all checks for SQL servers. 
    2829 
    2930I.a. MySQL 
    3031 
    3132  The configure script distributed with PennMUSH automatically detects 
    32   the MySQL client library via the presence of the mysql_config program,  
    33   which will tell configure where needed headers and libraries are. 
     33  the MySQL client library via the presence of the mysql_config 
     34  program, which will tell configure where needed headers and 
     35  libraries are. 
    3436 
    3537  If you want to avoid linking these libraries on systems where they 
    3638  are present, pass the --without-mysql switch to configure. 
    3739 
    38   If you installed Mysql from a binary package (e.g. rpm or apt), 
    39   you should be sure that your system also has the development 
    40   package (usuallyl mysql-dev or mysql-devel). 
     40  If you installed Mysql from a binary package (e.g. rpm or apt), you 
     41  should be sure that your system also has the development package 
     42  (usuallyl mysql-dev or mysql-devel). 
    4143 
    4244  If you think you have mysql libraries and header files but configure 
    43   isn't finding them, they may be in an unusual location on your system, 
    44   with mysql_config not in your default path. 
    45   Find its location ('where mysql_config' if the program works for you, 
    46   'find / -name mysql_config' otherwise, and call configure with  
     45  isn't finding them, they may be in an unusual location on your 
     46  system, with mysql_config not in your default path.  Find its 
     47  location ('where mysql_config' if the program works for you, 'find / 
     48  -name mysql_config' otherwise, and call configure with 
    4749  --with-mysql=/path/to/mysql_config 
    4850 
     
    5759 
    5860  If you installed PostgresQL from a binary package (e.g. rpm or apt), 
    59   you should be sure that your system also has the development 
    60   package (usually postgresql-dev, or libpq or similar) 
     61  you should be sure that your system also has the development package 
     62  (usually postgresql-dev, or libpq or similar) 
    6163 
    62   If you think you have postgresql libraries and header files but configure 
    63   isn't finding them, they may be in an unusual location on your system, 
    64   with pg_config not in your default path. 
    65   Find its location ('where pg_config' if the program works for you, 
    66   'find / -name pg_config' otherwise, and call configure with  
     64  If you think you have postgresql libraries and header files but 
     65  configure isn't finding them, they may be in an unusual location on 
     66  your system, with pg_config not in your default path.  Find its 
     67  location ('where pg_config' if the program works for you, 'find / 
     68  -name pg_config' otherwise, and call configure with 
    6769  --with-postgresql=/path/to/pg_config 
    6870 
    6971I.c Sqlite 
    7072 
    71   The configure script distrubted with PennMUSH looks for sqlite3 headers 
    72   and libraries in /usr, /usr/local and /opt. If it's somewhere else on 
    73   your system, call configure with --with-sqlite3=/path/to/sqlite3 
     73  The configure script distrubted with PennMUSH looks for sqlite3 
     74  headers and libraries in /usr, /usr/local and /opt. If it's 
     75  somewhere else on your system, call configure with 
     76  --with-sqlite3=/path/to/sqlite3 
     77  
     78  If you want to avoid linking with sqlite on systems where it is 
     79  present, pass the --without-sqlite3 switch to configure. 
    7480 
    75   The path is the directory that contains the hdrs/ and lib/ directories 
    76   that hold the sqlite3 headers and library respectively. 
     81  The path is the directory that contains the hdrs/ and lib/ 
     82  directories that hold the sqlite3 headers and library respectively. 
    7783 
    7884II. Mush configuration overview 
     
    8288  sql_platform provides the name of the SQL database server software 
    8389  that will be used for connections. It current takes one of four 
    84   values: "disabled" (no SQL), "mysql", "postgresql", or "sqlite3".  
     90  values: "disabled" (no SQL), "mysql", "postgresql", or "sqlite3". 
    8591  If not specified, it defaults to disabled. 
    8692 
    87   sql_host gives the name of the host running the SQL server. 
    88   It defaults to 127.0.0.1, which makes a TCP connection to the  
    89   local host. The keyword "localhost" instead makes a domain socket 
    90   (Unix) or named pipe (Windows) connection under MySQL. 
    91   You can also specify an alternate port by setting sql_host to 
    92   hostname:port (e.g. 127.0.0.1:5444). 
     93  sql_host gives the name of the host running the SQL server.  It 
     94  defaults to 127.0.0.1, which makes a TCP connection to the local 
     95  host. The keyword "localhost" instead makes a domain socket (Unix) 
     96  or named pipe (Windows) connection under MySQL.  You can also 
     97  specify an alternate port by setting sql_host to hostname:port 
     98  (e.g. 127.0.0.1:5444). 
    9399 
    94   sql_database gives the name of the database that contains the  
    95   MUSH's tables. This must be specified and there is no default. 
     100  sql_database gives the name of the database that contains the MUSH's 
     101  tables. This must be specified and there is no default. 
    96102  
    97103  sql_username provides a username to connect to the SQL server 
    98   with. If no specified, a null username will be used, which many 
    99   SQL servers treat as "the user running this (pennmush) process". 
     104  with. If no specified, a null username will be used, which many SQL 
     105  servers treat as "the user running this (pennmush) process". 
    100106 
    101   sql_password provides the password for the user. It defaults to 
    102   no password. 
     107  sql_password provides the password for the user. It defaults to no 
     108  password. 
    103109  
    104   For sqlite3, which uses a local file instead of connected to a database 
    105   server, sql_database gives the name of the database file, sql_host must  
    106   be localhost, and the username and password are currently ignored. 
     110  For sqlite3, which uses a local file instead of connected to a 
     111  database server, sql_database gives the name of the database file, 
     112  sql_host must be localhost, and the username and password are 
     113  currently ignored. 
    107114 
    108115III. SQL setup tips 
    109116 
    110117  You will have to set up the appropriate database on the SQL server, 
    111   and username permitted to perform operations in that database,  
    112   and a password for that username. This is a platform-specific process. 
     118  and username permitted to perform operations in that database, and a 
     119  password for that username. This is a platform-specific process. 
    113120 
    114121  A. MySQL platform 
  • 1.8.3/branches/devel/configure

    r1195 r1219  
    12831283  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) 
    12841284  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] 
     1285  --disable-sql           Don't use SQL support 
    12851286  --disable-ipv6          Don't use IPv6 networking 
    12861287  --disable-nls           Don't use message-translation 
     
    32813282 
    32823283 
     3284 
    32833285# Extract the first word of "perl", so it can be a program name with args. 
    32843286set dummy perl; ac_word=$2 
     
    33213323 
    33223324 
     3325if test "${PERL+set}" != "set"; then 
     3326   { { echo "$as_me:$LINENO: error: perl is required to build and run PennMUSH" >&5 
     3327echo "$as_me: error: perl is required to build and run PennMUSH" >&2;} 
     3328   { (exit 1); exit 1; }; } 
     3329fi 
     3330 
    33233331# Extract the first word of "test", so it can be a program name with args. 
    33243332set dummy test; ac_word=$2 
     
    34413449 
    34423450 
    3443 # AC_PATH_PROG(EXPAND, expand) 
    34443451# Extract the first word of "indent", so it can be a program name with args. 
    34453452set dummy indent; ac_word=$2 
     
    36083615# maybe use them instead? 
    36093616if test $DEFAULT_CFLAGS = yes; then 
    3610  if test "x$GDB" != x; then 
    3611   if test "x$ac_cv_c_compiler_gnu" = xyes; then 
     3617 if test "${GDB+set}" = "set"; then 
     3618  if test "${ac_cv_c_compiler_gnu+set}" = "set"; then 
    36123619CFLAGS="-ggdb $CFLAGS -W -Wall -pedantic -Wno-comment" 
    36133620   else 
     
    36853692 
    36863693 
    3687 if test $build_os = darwin -a $build_cpu = powerpc; then 
     3694case "${build_cpu}-${build_os}" in 
     3695  powerpc*-darwin*) 
    36883696 
    36893697 
     
    37313739echo "${ECHO_T}yes" >&6; } 
    37323740 
    3733      CFLAGS="$CFLAGS -mdynamic-no-pic" 
     3741      CFLAGS="$CFLAGS -mdynamic-no-pic" 
    37343742 
    37353743 
     
    37513759 
    37523760 
    3753 fi 
    3754  
    3755  
    3756 if test "x$CTAGS" = x -a "x$EXCTAGS" != x; then 
     3761  ;; 
     3762esac 
     3763 
     3764if test "${CTAGS+set}" != "set" -a "${EXCTAGS+set}" = "set"; then 
    37573765    CTAGS=$EXCTAGS 
    37583766fi 
    37593767 
    3760 if test "x$ETAGS" = x -a "x$EXCTAGS" != x; then 
     3768if test "${ETAGS+set}" != "set" -a "${EXCTAGS+set}" = "set"; then 
    37613769    ETAGS="$EXCTAGS -e" 
    37623770fi 
     
    38023810 
    38033811 
    3804 if test "x$UPTIME" != x; then 
     3812if test "${UPTIME+set}" = "set"; then 
    38053813 cat >>confdefs.h <<\_ACEOF 
    38063814#define HAVE_UPTIME 1 
     
    38543862 
    38553863 
    3856 if test "x$SENDMAIL" != x; then 
     3864if test "${SENDMAIL+set}" = "set"; then 
    38573865 cat >>confdefs.h <<\_ACEOF 
    38583866#define HAVE_SENDMAIL 1 
     
    1219712205 
    1219812206 
    12199 if test "no$PCRE_LIBS" != "no"; then 
     12207if test "${PCRE_LIBS+set}" = "set"; then 
    1220012208   cat >>confdefs.h <<\_ACEOF 
    1220112209#define HAVE_PCRE 1 
     
    1220612214### Databases 
    1220712215 
     12216# Check whether --enable-sql was given. 
     12217if test "${enable_sql+set}" = set; then 
     12218  enableval=$enable_sql; enable_sql=$enableval 
     12219else 
     12220  enable_Sql=yes 
     12221fi 
     12222 
     12223 
     12224if test $enable_sql = yes; then 
     12225{ echo "$as_me:$LINENO: Looking for supported SQL servers" >&5 
     12226echo "$as_me: Looking for supported SQL servers" >&6;} 
    1220812227 
    1220912228 
     
    1264312662    fi 
    1264412663 
     12664else 
     12665{ echo "$as_me:$LINENO: Skipping SQL server checks" >&5 
     12666echo "$as_me: Skipping SQL server checks" >&6;} 
     12667fi 
    1264512668 
    1264612669### Functions 
  • 1.8.3/branches/devel/configure.in

    r1207 r1219  
    7070   ], []) 
    7171  ;; 
    72 csac 
     72esac 
    7373 
    7474if test "${CTAGS+set}" != "set" -a "${EXCTAGS+set}" = "set"; then 
     
    177177### Databases 
    178178 
     179AC_ARG_ENABLE(sql, AS_HELP_STRING([--disable-sql], 
     180[Don't use SQL support]), enable_sql=$enableval, enable_Sql=yes) 
     181 
     182if test $enable_sql = yes; then 
     183AC_MSG_NOTICE([Looking for supported SQL servers]) 
    179184AX_LIB_MYSQL() 
    180185AX_LIB_POSTGRESQL() 
    181186AX_LIB_SQLITE3() 
     187else 
     188AC_MSG_NOTICE([Skipping SQL server checks]) 
     189fi 
    182190 
    183191### Functions