Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463648 - sys-devel/autoconf-archive - ax_check_mysql.m4 don't detect mysql
Summary: sys-devel/autoconf-archive - ax_check_mysql.m4 don't detect mysql
Status: RESOLVED DUPLICATE of bug 388519
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nathan Phillip Brink (binki) (RETIRED)
URL: http://www.gnu.org/software/autoconf-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-28 19:10 UTC by Andreis Vinogradovs ( slepnoga )
Modified: 2013-03-30 04:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreis Vinogradovs ( slepnoga ) 2013-03-28 19:10:36 UTC
1) Add AX_CHECK_MYSQL in configure.ac
2) eautoreconf
3) configure 

Result :

Testing if MySQL was installed to common source/binary directory
checking for mysql... no
Testing if MySQL was installed to common package manager directory
checking for mysql... yes
checking /usr/include/mysql/mysql_version.h/mysql_version.h usability... no
checking /usr/include/mysql/mysql_version.h/mysql_version.h presence... no
checking for /usr/include/mysql/mysql_version.h/mysql_version.h... no
checking /usr/include/mysql_version.h/mysql_version.h usability... no
checking /usr/include/mysql_version.h/mysql_version.h presence... no
checking for /usr/include/mysql_version.h/mysql_version.h... no
checking if /usr/lib/mysql/plugin/ exists...... yes
checking for mysql... /usr/bin/
checking yes/include/mysql/mysql_version.h/mysql_version.h usability... no
checking yes/include/mysql/mysql_version.h/mysql_version.h presence... no
checking for yes/include/mysql/mysql_version.h/mysql_version.h... no
checking yes/include/mysql_version.h/mysql_version.h usability... no
checking yes/include/mysql_version.h/mysql_version.h presence... no
checking for yes/include/mysql_version.h/mysql_version.h... no
checking if yes/lib/mysql/plugin/ exists...... no
checking if yes/lib/plugin/ exists...... no
checking for mysql... (cached) /usr/bin/
configure: WARNING: Could not find directory containing MySQL includes. The MySQL development library may not be installed. If development library is installed\, please designate the command\,plugin\,and include directories manually with --with-mysql-command\, --with-mysql-plugin\, and --with-mysql-include
checking MySQL Architecture... 64
checking MySQL Version... 5.5.30
checking if MySQL install supports Plugins... yes
checking /usr//include/mysql/mysql_version.h/mysql_version.h usability... no
checking /usr//include/mysql/mysql_version.h/mysql_version.h presence... no
checking for /usr//include/mysql/mysql_version.h/mysql_version.h... no
checking /usr//include/mysql_version.h/mysql_version.h usability... no
checking /usr//include/mysql_version.h/mysql_version.h presence... no
checking for /usr//include/mysql_version.h/mysql_version.h... no
checking if /usr//lib/mysql/plugin/ exists...... yes
checking for mysql... (cached) /usr/bin/
Comment 1 Andreis Vinogradovs ( slepnoga ) 2013-03-28 19:17:15 UTC
Sorry, first log is incorrect:
Testing if MySQL was installed to common source/binary directory
checking for mysql... no
Testing if MySQL was installed to common package manager directory
checking for mysql... yes
checking /usr/include/mysql/mysql_version.h/mysql_version.h usability... no
checking /usr/include/mysql/mysql_version.h/mysql_version.h presence... no
checking for /usr/include/mysql/mysql_version.h/mysql_version.h... no
checking /usr/include/mysql_version.h/mysql_version.h usability... no
checking /usr/include/mysql_version.h/mysql_version.h presence... no
checking for /usr/include/mysql_version.h/mysql_version.h... no
checking if /usr/lib/mysql/plugin/ exists...... yes
checking for mysql... /usr/bin/
checking yes/include/mysql/mysql_version.h/mysql_version.h usability... no
checking yes/include/mysql/mysql_version.h/mysql_version.h presence... no
checking for yes/include/mysql/mysql_version.h/mysql_version.h... no
checking yes/include/mysql_version.h/mysql_version.h usability... no
checking yes/include/mysql_version.h/mysql_version.h presence... no
checking for yes/include/mysql_version.h/mysql_version.h... no
checking if yes/lib/mysql/plugin/ exists...... no
checking if yes/lib/plugin/ exists...... no
checking for mysql... (cached) /usr/bin/
configure: WARNING: Could not find directory containing MySQL includes. The MySQL development library may not be installed. If development library is installed\, please designate the command\,plugin\,and include directories manually with --with-mysql-command\, --with-mysql-plugin\, and --with-mysql-include
checking MySQL Architecture... 64
checking MySQL Version... 5.5.30
checking if MySQL install supports Plugins... yes
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-29 17:37:50 UTC
You should use this as a development package: copy and adapt the file you need to your project. You can contribute the changes back upstream.

*** This bug has been marked as a duplicate of bug 388519 ***
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2013-03-29 22:39:24 UTC
(In reply to comment #2)
> You should use this as a development package: copy and adapt the file you
> need to your project. You can contribute the changes back upstream.

I do not support the advice to “copy and adapt the file you need to your project”. True, if the .m4 macro does not work as it is, you should check if a new release of autoconf-archive (Gentoo’s package is behind, my fault) has a fixed version of the macro my checking autoconf-archive’s website.

For this package, maybe working with upstream to fix the macro may work better than asking for Gentoo to fix it on your behalf since you are the one using the macro in your autoconf script. This package is provided in Gentoo because sometimes old packages using old versions of autoconf-archive macros break. Another reason this package exists which you as an autoconf script writer should be aware of is that some packages using autoconf-archive macros fail to use  AC_CONFIG_MACRO_DIR in configure.ac and set ACLOCAL_AMFLAGS in Makefile.am. Please set those ;-).

Sorry for the irrelevant blabble…

> *** This bug has been marked as a duplicate of bug 388519 ***
Comment 4 SpanKY gentoo-dev 2013-03-30 04:53:20 UTC
(In reply to comment #3)

ax_* m4 files are not common.  you cannot rely on them being available in the system.  so packages make local copies and ship them.

it is not provided in Gentoo for packages in the tree to use to rebuild autotools.  they're provided as an easy way for devs to include.

if you need something more, then you communicate with upstream.  the maintainers are pretty responsive.  patching the package in Gentoo is pretty much not going to happen like ever.  Jeroen is correct.