Changeset 129 for trunk/configure.in

Show
Ignore:
Timestamp:
11/18/09 04:40:30 (3 years ago)
Author:
mercyful
Message:

$ Build 438/Sql Alpha
+ Removed all SQLite Code and References.
+ Updated the SQL Wrapper, and all Automake files to now link in and also Detect MySql? in the configure scripts.
+ Added detection for OpenSSL, not in use yet, but will add encryption for passwords.

and anything else of intertest once everything is moved over to the SQL Backend.

This is still an interm develop update release, the MySql? backend
is still a WIP, and the Husky SMAPI Library will be removed shortly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r117 r129  
    88AC_LANG_CPLUSPLUS 
    99AC_PROG_CXX 
     10 
     11AC_PROG_LIBTOOL 
     12AC_PROG_MAKE_SET 
     13AC_PROG_CC 
     14 
    1015 
    1116m4_pattern_allow([^AM_PROG_LIBTOOL$]) 
     
    2833AH_VERBATIM([USING_LINUX],[#undef USING_LINUX]) 
    2934AH_VERBATIM([OLD_PERL],[#undef OLD_PERL]) 
     35 
     36 
     37dnl ********************************************************************* 
     38dnl ** MYSql ************************************************************ 
     39dnl ********************************************************************* 
     40 
     41echo Detecting MySQL ... 
     42 
     43# mysql autodetected. 
     44 
     45# checking for mysql library. 
     46AC_CHECK_HEADER([mysql/mysql.h]) 
     47AC_PATH_PROG([mysql_config], [mysql_config]) 
     48 
     49# checking for mysql environment. 
     50if test "$ac_cv_header_mysql_mysql_h" = "yes" -a -n "$mysql_config"; then 
     51    MYSQL_CFLAGS="$(mysql_config --cflags)" 
     52    MYSQL_LDFLAGS="$(mysql_config --libs)" 
     53    AC_SUBST(MYSQL_CFLAGS) 
     54    AC_SUBST(MYSQL_LDFLAGS) 
     55 
     56    # define the mysql name and version. 
     57    AC_DEFINE_UNQUOTED(PLUGIN_NAME_MYSQL, "mysql", [Plugin name as Prefix.]) 
     58    AC_DEFINE_UNQUOTED(PLUGIN_VERSION_MYSQL, "$(mysql_config --version)", [Plugin version for MySQL.]) 
     59fi 
     60 
     61# define automake rule for compiling. 
     62AM_CONDITIONAL([HAVE_MYSQL], [test "$ac_cv_header_mysql_mysql_h" = "yes"]) 
     63 
     64 
     65# check if no database backends are available, that doesn't make sense for a sql plugin. :) 
     66if test -z "$ac_cv_header_mysql_mysql_h"; then 
     67    AC_MSG_ERROR([*** no database backend found, install development and library files]) 
     68fi 
    3069 
    3170 
     
    143182AM_CONDITIONAL(DO_PERL, test "x$perl" = "xyes") 
    144183 
    145 echo =[Python]======= 
     184echo =[OpenSSL Detection]==================== 
     185echo checking for OpenSSL for Encryption [Not Yet Implimented]. 
     186# Checking openssl library. 
     187AC_CHECK_HEADER([openssl/des.h], [], [AC_MSG_ERROR([*** des.h is required, install openssl header files])]) 
     188AC_CHECK_HEADER([openssl/evp.h], [], [AC_MSG_ERROR([*** evp.h is required, install openssl header files])]) 
     189AC_CHECK_LIB([crypto], [EVP_CIPHER_CTX_init], [], [AC_MSG_ERROR([*** EVP_CIPHER_CTX_init is required, install openssl library files])]) 
     190AC_CHECK_LIB([crypto], [EVP_MD_CTX_init], [], [AC_MSG_ERROR([*** EVP_MD_CTX_init is required, install openssl library files])]) 
     191AC_CHECK_LIB([crypto], [DES_crypt], [], [AC_MSG_ERROR([*** DES_crypt is required, install openssl library files])]) 
     192echo =[OpenSSL Detection]==================== 
     193echo 
     194echo =[Plugin Detection]===================== 
     195echo =[MySQL]================================ 
     196echo PLUGINS: MySQL: $ac_cv_header_mysql_mysql_h 
     197echo PLUGINS: MySQL: $MYSQL_CFLAGS 
     198echo PLUGINS: MySQL: $MYSQL_LDFLAGS 
     199echo 
     200echo =[Python]=============================== 
    146201echo PLUGINS: Python: $python 
    147202echo PLUGINS: Python: $PY_VER 
    148203echo PLUGINS: Python: $PY_LIB 
    149204echo PLUGINS: Python: $PY_INC 
    150 echo =[Perl - WIP]=== 
     205echo 
     206echo =[Perl]================================= 
    151207echo PLUGINS: Perl: $perl 
    152208echo PLUGINS: Perl: $PERL_CFLAGS 
    153209echo PLUGINS: Perl: $PERL_LDFLAGS 
    154 echo =[Done]========= 
    155  
     210echo =[Done]================================= 
     211 
     212AC_SUBST(MYSQL_CFLAGS) 
     213AC_SUBST(MYSQL_LDFLAGS) 
    156214 
    157215AC_SUBST(PY_CFLAGS)