Branch: Tag:

1997-02-11

1997-02-11 08:40:20 by Fredrik H├╝binette (Hubbe) <hubbe@hubbe.net>

files moved for new module system

Rev: src/modules/Gz/.cvsignore:1.1
Rev: src/modules/Gz/Makefile.in:1.1
Rev: src/modules/Gz/configure.in:1.1
Rev: src/modules/Gz/doc/gz_deflate:1.1
Rev: src/modules/Gz/doc/gz_inflate:1.1
Rev: src/modules/Gz/testsuite.in:1.1
Rev: src/modules/Gz/zlib_machine.h.in:1.1
Rev: src/modules/Gz/zlibmod.c:1.1
Rev: src/modules/Image/.cvsignore:1.1
Rev: src/modules/Image/Makefile.in:1.1
Rev: src/modules/Image/blit.c:1.1
Rev: src/modules/Image/config.h.in:1.1
Rev: src/modules/Image/configure.in:1.1
Rev: src/modules/Image/dct.c:1.1
Rev: src/modules/Image/doc.txt:1.1
Rev: src/modules/Image/doc/image.html:1.1
Rev: src/modules/Image/font.c:1.1
Rev: src/modules/Image/image.c:1.1
Rev: src/modules/Image/image.h:1.1
Rev: src/modules/Image/lzw.c:1.1
Rev: src/modules/Image/lzw.h:1.1
Rev: src/modules/Image/matrix.c:1.1
Rev: src/modules/Image/operator.c:1.1
Rev: src/modules/Image/pattern.c:1.1
Rev: src/modules/Image/pnm.c:1.1
Rev: src/modules/Image/quant.c:1.1
Rev: src/modules/Image/testfont:1.1
Rev: src/modules/Image/testsuite.in:1.1
Rev: src/modules/Image/togif.c:1.1
Rev: src/modules/Mysql/.cvsignore:1.1
Rev: src/modules/Mysql/Makefile.in:1.1
Rev: src/modules/Mysql/acconfig.h:1.1
Rev: src/modules/Mysql/configure.in:1.1
Rev: src/modules/Mysql/doc/mysql:1.1
Rev: src/modules/Mysql/doc/mysql_result:1.1
Rev: src/modules/Mysql/mysql.c:1.1
Rev: src/modules/Mysql/precompiled_mysql.h:1.1
Rev: src/modules/Mysql/result.c:1.1
Rev: src/modules/Pipe/.cvsignore:1.1
Rev: src/modules/Pipe/Makefile.in:1.1
Rev: src/modules/Pipe/config.h.in:1.1
Rev: src/modules/Pipe/configure.in:1.1
Rev: src/modules/Pipe/pipe.c:1.1
Rev: src/modules/Pipe/testsuite.in:1.1
Rev: src/modules/Regexp/.cvsignore:1.1
Rev: src/modules/Regexp/Makefile.in:1.1
Rev: src/modules/Regexp/configure.in:1.1
Rev: src/modules/Regexp/doc/regexp:1.1
Rev: src/modules/Regexp/glue.c:1.1
Rev: src/modules/Regexp/pike_regexp.c:1.1
Rev: src/modules/Regexp/pike_regexp.h:1.1
Rev: src/modules/Regexp/testsuite.in:1.1
Rev: src/modules/Ssleay/.cvsignore:1.1
Rev: src/modules/Ssleay/Makefile.in:1.1
Rev: src/modules/Ssleay/configure.in:1.1
Rev: src/modules/Ssleay/ssleay.c:1.1
Rev: src/modules/call_out/call_out.c:1.7
Rev: src/modules/files/testsuite.in:1.4
Rev: src/modules/readline/.cvsignore:1.1
Rev: src/modules/readline/Makefile.in:1.1
Rev: src/modules/readline/configure.in:1.1
Rev: src/modules/readline/doc/readline:1.1
Rev: src/modules/readline/readline_machine.h.in:1.1
Rev: src/modules/readline/readlinemod.c:1.1
Rev: src/modules/readline/testsuite.in:1.1

1: + # + # $Id: configure.in,v 1.1 1997/02/11 08:36:34 hubbe Exp $ + # + # Configure script for the mysql-module + # + # Henrik Grubbstr├Âm + #    -  + # + # NOTE: + # Prior to 3.20.0 After 3.20.0 + # -------------------------------------------------------------- + # /usr/local/mysql/mach-lib-threads /usr/local/lib/mysql + # /usr/local/mysql/include /usr/local/include/mysql + # libmysql.a libmysqllib.a + # libstrings.a libmystrings.a + # +  +  + AC_INIT(mysql.c) + AC_CONFIG_HEADER(config.h) +  + sinclude(../module_configure.in) +  + OLD_LIBS=$LIBS + OLD_LDFLAGS=$LDFLAGS + OLD_CPPFLAGS=$CPPFLAGS + MYSQL_LIBS="" +  + AC_ARG_WITH(mysql, [ --without-mysql no support for the Mysql database],[],[with_mysql=yes]) +  + if test x$with_mysql = xyes; then +  +  AC_MSG_CHECKING(Checking for Mysql lib-directory) +  +  AC_CACHE_VAL(pike_cv_mysql_lib_dir, [ +  for pike_cv_mysql_lib_dir in /usr/local/lib/mysql /usr/local/mysql/lib/mysql /usr/gnu/lib/mysql /usr/lib/mysql /lib/mysql /usr/local/mysql/lib /usr/local/mysql/mach-lib-thread no; do +  if test -d $pike_cv_mysql_lib_dir/.; then +  break +  else +  : +  fi +  done +  ]) +  +  AC_MSG_RESULT($pike_cv_mysql_lib_dir) +  +  if test x$pike_cv_mysql_lib_dir = xno; then :; else +  echo Adding $pike_cv_mysql_lib_dir to the library search path. +  LDFLAGS="-L$pike_cv_mysql_lib_dir ${LDFLAGS}" +  fi +  +  AC_MSG_CHECKING(Checking for Mysql include-directory) +  +  AC_CACHE_VAL(pike_cv_mysql_include_dir, [ +  for pike_cv_mysql_include_dir in /usr/local/include/mysql /usr/local/mysql/include/mysql /usr/gnu/include/mysql /usr/include/mysql /include/mysql /usr/local/mysql/include no; do +  if test -d $pike_cv_mysql_include_dir/.; then +  break +  else +  : +  fi +  done +  ]) +  +  AC_MSG_RESULT($pike_cv_mysql_include_dir) +  +  if test x$pike_cv_mysql_include_dir = xno; then :; else +  echo Adding $pike_cv_mysql_include_dir to the include search path. +  CPPFLAGS="-I$pike_cv_mysql_include_dir ${CPPFLAGS}" +  fi +  +  # Header file +  +  AC_CHECK_HEADERS(mysql.h mysql/mysql.h) +  +  # Mysql libs +  +  pike_cv_mysql="no" +  +  AC_CHECK_LIB(mystrings, bchange, [ +  LIBS="-lmystrings $LIBS" +  MYSQL_LIBS="-lmystrings ${MYSQL_LIBS}" +  pike_cv_mysql="post3.20" +  ], [ +  AC_CHECK_LIB(strings, bchange, [ +  LIBS="-lstrings $LIBS" +  MYSQL_LIBS="-lstrings ${MYSQL_LIBS}" +  pike_cv_mysql="pre3.20" +  ], []) +  ]) +  +  AC_MSG_CHECKING(Mysql version) +  +  AC_MSG_RESULT($pike_cv_mysql) +  +  if test x$pike_cv_mysql = xno; then +  # Restore variables, so we don't link with unnessesary libs +  +  LIBS=$OLD_LIBS +  CPPFLAGS=$OLD_CPPFLAGS +  LDFLAGS=$OLD_LDFLAGS +  MYSQL_LIBS="" +  else +  +  # System libs which might be needed +  +  if echo $LIBS|grep -- -lsocket >&5 2>&5; then +  : +  else +  AC_CHECK_LIB(socket, socket, [ +  LIBS="-lsocket $LIBS" +  MYSQL_LIBS="-lsocket ${MYSQL_LIBS}" +  ], []) +  fi +  if echo $LIBS|grep -- -lnsl >&5 2>&5; then +  : +  else +  AC_CHECK_LIB(nsl, gethostbyname, [ +  LIBS="-lnsl $LIBS" +  MYSQL_LIBS="-lnsl ${MYSQL_LIBS}" +  ], []) +  fi +  if echo $LIBS|grep -- -lm >&5 2>&5; then +  : +  else +  AC_CHECK_LIB(m, floor, [ +  LIBS="-lm $LIBS" +  MYSQL_LIBS="-lm ${MYSQL_LIBS}" +  ], []) +  fi +  +  # Pthreads is still needed in 3.20.0. +  AC_CHECK_FUNC(pthread_self, [], [ +  AC_CHECK_LIB(pthread, pthread_self, [ +  LIBS="-lpthread $LIBS" +  echo Warning added -lpthread to \$LIBS\! +  ], [ +  AC_CHECK_LIB(pthreads, pthread_self, [ +  LIBS="-lpthreads $LIBS" +  echo Warning added -lpthreads to \$LIBS\! +  ], []) +  ]) +  ]) +  +  AC_CHECK_LIB(dbug, _db_doprnt_, [ +  LIBS="-ldbug $LIBS" +  MYSQL_LIBS="-ldbug ${MYSQL_LIBS}" +  ], []) +  +  AC_CHECK_LIB(mysys, my_init, [ +  LIBS="-lmysys $LIBS" +  MYSQL_LIBS="-lmysys ${MYSQL_LIBS}" +  ], []) +  +  # Try a couple of mysqlclient libs +  # in order of age, newest first. +  +  AC_CHECK_LIB(mysqlclient, mysql_connect, [ +  LIBS="-lmysqlclient $LIBS" +  MYSQL_LIBS="-lmysqlclient ${MYSQL_LIBS}" +  ], [ +  AC_CHECK_LIB(mysqllib, mysql_connect, [ +  LIBS="-lmysqllib $LIBS" +  MYSQL_LIBS="-lmysqllib ${MYSQL_LIBS}" +  ], [ +  AC_CHECK_LIB(mysql, mysql_connect, [ +  LIBS="-lmysql $LIBS" +  MYSQL_LIBS="-lmysql ${MYSQL_LIBS}" +  ], [ pike_cv_mysql="no" ]) +  ]) +  ]) +  +  if test x$pike_cv_mysql = xno; then +  # Restore variables, so we don't link with unnessesary libs +  +  LIBS=$OLD_LIBS +  CPPFLAGS=$OLD_CPPFLAGS +  LDFLAGS=$OLD_LDFLAGS +  MYSQL_LIBS="" +  else +  AC_DEFINE(HAVE_MYSQL) +  +  AC_CHECK_FUNCS(mysql_real_query mysql_fetch_lengths) +  fi +  fi + else +  : + fi +  + AC_SUBST(MYSQL_LIBS) +  + AC_OUTPUT(Makefile,echo FOO >stamp-h )   Newline at end of file added.