Changeset 19 for trunk/configure.ac


Ignore:
Timestamp:
Feb 12, 2006, 10:49:56 PM (19 years ago)
Author:
rainer
Message:

Rewrite of test suite, checksum for growing logs, fix for minor bug with dead client detection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r18 r19  
    617617       [  --enable-message-queue[[=MODE]]       enable SysV message queue [[MODE=0700]]],
    618618       [
    619        if test "x${enable_message_queue}" = xyes; then
     619       if test "x${ac_cv_header_sys_msg_h}" = "xyes"; then
     620           if test "x${enable_message_queue}" = xyes; then
     621               AC_DEFINE(WITH_MESSAGE_QUEUE)
     622               AC_DEFINE_UNQUOTED(MESSAGE_QUEUE_MODE, 0700)
     623           elif test "x${enable_message_queue}" != xno; then
     624               echo "${enableval}" | grep ['[^0123456789]'] >/dev/null 2>&1 &&
     625                   AC_MSG_ERROR([--enable-message-queue: MODE must be numeric])
     626               echo "${enableval}" | \
     627                   grep ['0[0123456789][0123456789][0123456789]'] >/dev/null 2>&1 ||
     628                   AC_MSG_ERROR([--enable-message-queue: MODE must be an octal (0nnn) number])
    620629               AC_DEFINE(WITH_MESSAGE_QUEUE)
    621                AC_DEFINE_UNQUOTED(MESSAGE_QUEUE_MODE, 0700)
    622        elif test "x${enable_message_queue}" != xno; then
    623                 echo "${enableval}" | grep ['[^0123456789]'] >/dev/null 2>&1 &&
    624                         AC_MSG_ERROR([--enable-message-queue: MODE must be numeric])
    625                 echo "${enableval}" | \
    626                         grep ['0[0123456789][0123456789][0123456789]'] >/dev/null 2>&1 ||
    627                         AC_MSG_ERROR([--enable-message-queue: MODE must be an octal (0nnn) number])
    628                 AC_DEFINE(WITH_MESSAGE_QUEUE)
    629                 AC_DEFINE_UNQUOTED(MESSAGE_QUEUE_MODE, ${enable_message_queue})
     630               AC_DEFINE_UNQUOTED(MESSAGE_QUEUE_MODE, ${enable_message_queue})
     631           fi
     632       else
     633           echo
     634           echo "**********************************************"
     635           echo
     636           AC_MSG_WARN([sys/msg.h missing, --enable-message-queue disabled])
     637           echo
     638           echo "**********************************************"
     639           echo
    630640       fi
    631641       ]
     
    871881          AC_CHECK_PROG(HAVE_MYSQL_CONFIG, mysql_config, yes, no)
    872882          if test "$HAVE_MYSQL_CONFIG" = "yes"; then
    873                 echo "mysql_config found"
     883                # echo "mysql_config found"
    874884                sh_mysql_libs="`mysql_config --libs`"
    875885                # echo ${sh_mysql_libs}
     
    880890                # echo $LIBS
    881891                LIBS="$LIBS ${sh_mysql_libs}"
    882                 echo $LIBS
     892                # echo $LIBS
    883893                sh_mysql_cflags="`mysql_config --cflags`"
    884894                sh_mysql_cflags="`eval echo ${sh_mysql_cflags}`"
Note: See TracChangeset for help on using the changeset viewer.