ax_lib_upnp
===========

Synopsis
********

     AX_LIB_UPNP([ACTION-IF-TRUE], [ACTION-IF-FALSE])

Description
***********

This macro will check for the existence of libupnp (http://upnp.sourceforge.net/). It does this by checking for the header file upnp.h and the upnp library object file. A --with-libupnp option is supported as well. The following output variables are set with AC_SUBST:

       UPNP_CPPFLAGS
       UPNP_LDFLAGS
       UPNP_LIBS

You can use them like this in Makefile.am:

       AM_CPPFLAGS = $(UPNP_CPPFLAGS)
       AM_LDFLAGS = $(UPNP_LDFLAGS)
       program_LDADD = $(UPNP_LIBS)

Additionally, the C preprocessor symbol HAVE_LIBUPNP will be defined with AC_DEFINE if libupnp is available.

Source Code
***********

Download the latest version of ax_lib_upnp.m4 (http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_lib_upnp.m4) or browse the macro's revision history (http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=history;f=m4/ax_lib_upnp.m4).

License
*******

Copyright © 2009 Oskar Liljeblad oskar@osk.mine.nu

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.