List:MySQL++« Previous MessageNext Message »
From:David McLaughlin Date:September 1 2006 4:26pm
Subject:bug in mysql++-2.1.1 configure.ac to use mysqlclient_r
View as plain text  
To whom it may concern:

There is a bug in mysql++-2.1.1's configure.ac file that was not in 
mysql++-2.0x.
The thread has to do with not using the mysqlcient_r library even 
thought --enable-thread-check is specified.
The problem is the block of code:

# Figure out whether/how to handle threading support, if available.
AC_ARG_ENABLE(thread-check,
      [  --enable-thread-check  Check for threads, and use if available. ],
      [ thread_check=yes ])
if test "x$thread_check" = "xyes"
then
   ACX_PTHREAD
   LIBS="$PTHREAD_LIBS $LIBS"
   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   CC="$PTHREAD_CC"
fi


should come somewhere before the line MYSL_API_LOCATION, as this line 
includes the mysql_loc.m4 file that uses acx_pthread_ok.
As it currently stands, acx_pthread_ok will not be defined when it first 
being used in mysql_loc.m4, because it gets defined as a result of the 
block below it.
Please contact me if you have any questions.

Thanks so much,
David
davidm@stripped

Thread
bug in mysql++-2.1.1 configure.ac to use mysqlclient_rDavid McLaughlin1 Sep
  • Re: bug in mysql++-2.1.1 configure.ac to use mysqlclient_rWarren Young12 Jan