#!/bin/ksh -p # sysbench-config # # This is for running "configure" on sysbench so that we will get # libumem linked as the memory allocator. #-- Directory to do a "configure" or "make" in BUILDDIR=build.umem #-- If you get a SEGV in strcasecmp under mysql_drv_describe, you #-- may need to use a better matching libmysqlclient_r library, #-- as in this example mysql_incdir=/usr/mysql/include/mysql mysql_libdir=/usr/mysql/lib/64/mysql CC=cc CXX=CC CFLAGS="-O3 -m64" CXXFLAGS=$CFLAGS LDFLAGS="-R ${mysql_libdir}:/usr/sfw/lib/64:/usr/local/lib/64 -lumem" export CC CXX CFLAGS CXXFLAGS LDFLAGS echo "--- Running configure in $BUILDDIR" cd $BUILDDIR ./configure \ --with-mysql-includes=$mysql_incdir \ --with-mysql-libs=$mysql_libdir echo "--- Return status = $?"