mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] SDL_image and SDL_mixer without pkg-config sc


From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] SDL_image and SDL_mixer without pkg-config scripts in Debian (was: Difficulty building project using mingw-cross-env)
Date: Tue, 16 Feb 2010 11:38:04 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Volker Grabsch <address@hidden> schrieb:
> Instead, I recommend to check whether the *.pc files of SDL_image
> and SDL_mixer exist. If they, use them. If they don't, use the
> AC_CHECK_LIB workaround.
> 
>     PKG_CHECK_EXISTS([SDL_image SDL_mixer],
> 
>         PKG_CHECK_MODULES([SDL_image SDL_mixer],
> 
>         AC_CHECK_LIB(SDL_image, ...)
>         AC_CHECK_LIB(SDL_mixer, ...)
>     )

I thought about it and came to the conclusion that this might
produce misleading error messages on systems where SDL_image
is installed and SDL_mixer isn't.

However, the following variant should be okay:

    PKG_CHECK_EXISTS([SDL_image],
        PKG_CHECK_MODULES([SDL_image],
        AC_CHECK_LIB(SDL_image, ...)
    )

    PKG_CHECK_EXISTS([SDL_mixer],
        PKG_CHECK_MODULES([SDL_mixer],
        AC_CHECK_LIB(SDL_mixer, ...)
    )


@Andreas Roever: Maybe this variant is also interesting for
Topper and Pushover?


Greets,

    Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR




reply via email to

[Prev in Thread] Current Thread [Next in Thread]