Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-09-27 Thread Sergio Belkin
2010/8/23 Eric Blake : >>> Ah - the difference is the presence of -L/usr/lib/mysql in the working >>> command line.  For your configure test to work, you'd also have to >>> provide >>> that same -L option to LDFLAGS prior to using AC_CHECK_LIB (or the better >>> AC_SEARCH_LIBS). >> >> But I don't

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-09-27 Thread Sergio Belkin
2010/9/27 Sergio Belkin : > 2010/8/23 Eric Blake : > Ah - the difference is the presence of -L/usr/lib/mysql in the working command line.  For your configure test to work, you'd also have to provide that same -L option to LDFLAGS prior to using AC_CHECK_LIB (or the better A

About AC_CHECK_HEADERS and different locations

2010-09-27 Thread Sergio Belkin
Hi, I am autoconfiscating a project that has a header file with a line: #include configure.ac has: AC_CHECK_HEADERS(postgresql/libpq-fe.h) The problem is that Ubuntu has such a header file on /usr/include/postgresq but fedora has it on /usr/include. So how can I make that configure script c

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-09-27 Thread Luke Mewburn
On Mon, Sep 27, 2010 at 10:30:49AM -0300, Sergio Belkin wrote: | Hi, I've added | | LDFLAGS="-L/usr/lib/mysql $LDFLAGS" | | and it worked. I wonder if the proper way to do it. I've used the following: # Look for mysql via the presence of 'mysql_config' or 'mysql_config5' # AC_PA