Changeset 168 for trunk/configure.ac
- Timestamp:
- Mar 15, 2008, 10:02:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r162 r168 875 875 if test x"${mytclient}" = x-DSH_STANDALONE -o x"${mytclient}" = x-DSH_WITH_CLIENT; 876 876 then 877 dnl For threaded modules 877 878 ACX_PTHREAD 878 879 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" … … 880 881 LDFLAGS="$PTHREAD_CFLAGS $LDFLAGS" 881 882 CC="$PTHREAD_CC" 883 dnl For MODI_TXT 884 CHECK_ZLIB() 882 885 fi 883 886 … … 969 972 fi 970 973 if test "x${withval}" = "xmysql"; then 974 if test "x$zlib_found" = "x" 975 then 976 CHECK_ZLIB() 977 fi 971 978 AC_CHECK_PROG(HAVE_MYSQL_CONFIG, mysql_config, yes, no) 972 979 if test "$HAVE_MYSQL_CONFIG" = "yes"; then 973 # echo "mysql_config found"974 980 sh_mysql_libs="`mysql_config --libs`" 975 # echo ${sh_mysql_libs}976 981 sh_mysql_libs="`eval echo ${sh_mysql_libs}`" 977 # echo $mysql_libs978 # save_libs="$LIBS"979 # LIBS="$LIBS `mysql_config --libs`"980 # echo $LIBS981 982 LIBS="$LIBS ${sh_mysql_libs}" 982 # echo $LIBS983 983 sh_mysql_cflags="`mysql_config --cflags`" 984 984 sh_mysql_cflags="`eval echo ${sh_mysql_cflags}`" 985 # CFLAGS="$CFLAGS `mysql_config --cflags`"986 # CFLAGS="$CFLAGS ${sh_mysql_cflags}"987 985 CPPFLAGS="$CPPFLAGS ${sh_mysql_cflags}" 988 986 else 989 AC_MSG_CHECKING( for MySQL in /usr /usr/local /usr/local/mysql MYSQL_HOME)987 AC_MSG_CHECKING([for MySQL in /usr /usr/local /usr/local/mysql MYSQL_HOME]) 990 988 mysql_directory="/usr /usr/local /usr/local/mysql ${MYSQL_HOME}" 991 989 … … 1053 1051 AC_DEFINE(WITH_MYSQL) 1054 1052 AC_DEFINE(WITH_DATABASE) 1055 AC_CHECK_LIB(z, inflateEnd, [zlib_cv_libz=yes], [zlib_cv_libz=no]) 1056 AC_MSG_CHECKING(for zlib) 1057 if test "$zlib_cv_libz" = "yes" 1053 if test "x$zlib_found" = "xyes" 1058 1054 then 1059 1055 LIBS="$LIBS -lz -lm" 1060 AC_MSG_RESULT(ok)1061 1056 else 1062 AC_MSG_RESULT(failed)1063 1057 echo 1064 echo " Either the mysql or the zlib library was not found" 1065 echo " or was unusable. Possible reasons include:" 1058 1059 echo " Mysql library was not found or not useable." 1060 echo " Possible reasons include:" 1066 1061 echo " - an old, incompatible version compiled from source" 1067 1062 echo " - on Solaris, libmysql is compiled with the Solaris" … … 1072 1067 echo " message from the compiler." 1073 1068 echo 1074 echo " If your mysql and zliblibraries are installed in an"1069 echo " If your mysql libraries are installed in an" 1075 1070 echo " unusual place, use --with-libs=-L/path/to/libdirectory" 1076 echo " where libdirectory is the directory holding libmysql" 1077 echo " or libz." 1071 echo " where libdirectory is the directory holding libmysql." 1078 1072 if test x"$enable_static" = xyes; then 1079 1073 echo " Note that for compiling a static binary, you need" … … 1081 1075 fi 1082 1076 echo 1083 AC_MSG_ERROR([libmysql or zlibnot found or unuseable])1077 AC_MSG_ERROR([libmysql not found or unuseable]) 1084 1078 fi 1085 1079 AC_CHECK_HEADERS(mysql/mysql.h)
Note:
See TracChangeset
for help on using the changeset viewer.