Re: Having trouble using AC_CHECK_LIB

2015-03-02 Thread Peter Johansson
On 03/03/2015 09:53 AM, Julian Marchant wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/02/2015 06:19 PM, Zack Weinberg wrote: If this works, PKG_CHECK_MODULES will work too; that's what Mike was trying to say. Ah, OK. Where's the documentation on that macro? I don't see it on https

Re: Having trouble using AC_CHECK_LIB

2015-03-02 Thread Julian Marchant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/02/2015 06:19 PM, Zack Weinberg wrote: > If this works, PKG_CHECK_MODULES will work too; that's what Mike > was trying to say. Ah, OK. Where's the documentation on that macro? I don't see it on https://www.gnu.org/software/autoconf/manual/autoco

Re: Having trouble using AC_CHECK_LIB

2015-03-02 Thread Zack Weinberg
On Mon, Mar 2, 2015 at 6:14 PM, Julian Marchant wrote: > On 03/02/2015 03:50 PM, Mike Frysinger wrote: >> if the libraries provide pkg-config files, you should use those >> instead of probing things directly with AC_CHECK_LIB. i.e. use the >> PKG_CHECK_MODULES macro instead. > > It doesn't; it ju

Re: Having trouble using AC_CHECK_LIB

2015-03-02 Thread Julian Marchant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/02/2015 03:50 PM, Mike Frysinger wrote: > if the libraries provide pkg-config files, you should use those > instead of probing things directly with AC_CHECK_LIB. i.e. use the > PKG_CHECK_MODULES macro instead. It doesn't; it just does this:

Re: Having trouble using AC_CHECK_LIB

2015-03-02 Thread Mike Frysinger
On 02 Mar 2015 08:48, Julian Marchant wrote: > OK, I see where my confusion is. The makefile gets -lSDL2_image and > -lSDL2_mixer out of a call to pkg-config. Now I've got to figure out > why searching for SDL2_mixer is failing... but I've got some things to > check in that regard. if the librarie

Re: Having trouble using AC_CHECK_LIB

2015-03-02 Thread Julian Marchant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 OK, I see where my confusion is. The makefile gets -lSDL2_image and - -lSDL2_mixer out of a call to pkg-config. Now I've got to figure out why searching for SDL2_mixer is failing... but I've got some things to check in that regard. Anyway, thanks for

Re: Having trouble using AC_CHECK_LIB

2015-03-02 Thread Julian Marchant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well, doing a search, I came across something that showed me that I'm supposed to check for the "SDL_image" library for SDL_image, so I changed "SDL2" in that check to "SDL2_image", and it worked. But I'm confused now; what's the rule for what the libr

Re: Having trouble using AC_CHECK_LIB

2015-03-02 Thread Gavin Smith
On 2 March 2015 at 06:10, Harlan Stenn wrote: >> I'm stuck at one part. Project: Starfighter requires SDL_Image and >> SDL_Mixer from SDL2 in order to build, so I'm trying to check for them >> by using AC_CHECK_LIB with functions defined by SDL_Image and >> SDL_Mixer. These are my checks (you can

Re: Having trouble using AC_CHECK_LIB

2015-03-01 Thread Harlan Stenn
Julian Marchant writes: > I'm trying to replace the hand-made Makefile of Project: Starfighter > with Autoconf and Automake files. This is my first time using Autoconf > and Automake, so I'm kind of learning as I go along. > > I'm stuck at one part. Project: Starfighter requires SDL_Image and > SD

Having trouble using AC_CHECK_LIB

2015-03-01 Thread Julian Marchant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to replace the hand-made Makefile of Project: Starfighter with Autoconf and Automake files. This is my first time using Autoconf and Automake, so I'm kind of learning as I go along. I'm stuck at one part. Project: Starfighter requires SDL_I