MYDDAS: Added option to enable different compilation directories for mysql devel libraries

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1892 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
tiagosoares 2007-06-04 00:56:47 +00:00
parent 211e5cec2b
commit b1d0de4266
2 changed files with 16 additions and 16 deletions

6
configure vendored
View File

@ -865,7 +865,7 @@ Optional Features:
--enable-condor allow Yap to be used from condor
--enable-april compile Yap to support April ILP system
--enable-dlcompat use dlcompat library for dynamic loading on Mac OS X
--enable-myddas enable the MYDDAS library
--enable-myddas[=DIR] enable the MYDDAS library
--enable-myddas-stats enable the MYDDAS library statistics support
--enable-myddas-top-level enable the MYDDAS top-level support to MySQL
@ -2434,7 +2434,7 @@ fi;
if test "${enable_myddas+set}" = set; then
enableval="$enable_myddas"
if test "$enableval" = yes; then
yap_cv_myddas=yes
yap_cv_myddas=/usr/
elif test "$enableval" = no; then
yap_cv_myddas=no
else
@ -4360,7 +4360,7 @@ echo "${ECHO_T}$yap_mysql" >&6
if test "$yap_mysql" = yes
then
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL"
LIBS="$LIBS -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv "
LIBS="$LIBS -L${yap_cv_myddas}/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv "
fi
echo "$as_me:$LINENO: checking for main in -lodbc" >&5

View File

@ -92,9 +92,9 @@ AC_ARG_WITH(gmp,
[yap_cv_gmp=yes])
AC_ARG_ENABLE(myddas,
[ --enable-myddas enable the MYDDAS library],
[ --enable-myddas[[=DIR]] enable the MYDDAS library],
if test "$enableval" = yes; then
yap_cv_myddas=yes
yap_cv_myddas=/usr/
elif test "$enableval" = no; then
yap_cv_myddas=no
else
@ -481,7 +481,7 @@ then
if test "$yap_mysql" = yes
then
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL"
LIBS="$LIBS -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv "
LIBS="$LIBS -L${yap_cv_myddas}/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv "
fi
dnl check for odbc