>>>>> On Tue, 12 May 2020 13:38:21 +0100, Andrew Watkins said:
> 
> Hello,
> 
> I have been looking at cleaning the build of bacula on Solaris 
> https://bugs.bacula.org/view.php?id=2520 since configure does not use 
> the correct mysqlclient library, then I spotted that if the configure 
> used mysql_config all would be work. Looking more closely I do not see 
> how mysql_config would ever get called?
> 
> configure line 24195:
> 
> if test "${with_mysql+set}" = set; then :
>    withval=$with_mysql;
>    HAVE_LIBSR="no"
>    if test "$withval" != "no"; then <<<<<<<<
>       if test "$withval" = "yes"; then <<<<<<<<
>          MYSQL_CONFIG=`which mysql_config 2>/dev/null`
> 
> So, $withval=$with_mysql=/usr/mysql/5.7 which means the test would never 
> be correct
> 
>    if test "/usr/mysql/5.7" != "no"; then
>       if test "/usr/mysql/5.7" = "yes"; then
> 
> Or have I missed the point?

It gets called when $withval=$with_mysql=yes, i.e. configure with --with-mysql
instead of --with-mysql=/usr/mysql/5.7.

__Martin


_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to