ax_lib_metis

Synopsis

AX_LIB_METIS([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])

Description

This macro searches for the METIS library in the user specified location. The user may specify the location either by defining the environment variable METIS or by using the –with-metis option to configure. If the environment variable is defined it has precedent over everything else. If no location was specified then it searches in /usr/lib and /usr/local/lib for the library and in /usr/include and /usr/local/include for the header files. Upon successful completion the variables METIS_LIB and METIS_INCLUDE are set.

ACTION-IF-FOUND is a list of shell commands to run if a METIS library is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it is not found. If ACTION-IF-FOUND is not specified, the default action will define HAVE_METIS. If ACTION-IF-NOT-FOUND is not specified then an error will be generated halting configure.

Source Code

Download the latest version of ax_lib_metis.m4 or browse the macro’s revision history.

License

Copyright © 2008 Ben Bergen 

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.