I need you help with auitoconf. I have a project with existing source. I need to convert that program and include support for mysql.
Since I want to do it with the "right" way, I want to add the mysql autoconf macros I found at: ac-archive (Autoconf Macro Archive - ac-archive - ax_lib_mysql)
So, I have a few questions:
1. I want to make the ./configure script to check for the mysql.h and libmysqlclient.so files. Is that macro suitable for this?
2. Is there any other simpler way to do it?
3. The program's directory contains a subdirectory named "m4". Is this the target directory under which I have to add the macro? If not, how do I instruct autoconf to check for that macro?
4. Finally, what should I run in order to build new configure scripts? Is an automake or autoreconf enough?
And a final question: How do I instruct the ./configure && make to add the necessary -lmysqlclient -lz flags?