From a7b7b2a80811a0d912ab3381769c481b407333e3 Mon Sep 17 00:00:00 2001 From: Francesco Salvestrini Date: Thu, 30 Jul 2009 00:36:59 +0200 Subject: [PATCH 4/4] New ORBit2 related macro (using AX_PATH_GENERIC) --- ax_lib_orbit2.m4 | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) create mode 100644 ax_lib_orbit2.m4 diff --git a/ax_lib_orbit2.m4 b/ax_lib_orbit2.m4 new file mode 100644 index 0000000..26ca251 --- /dev/null +++ b/ax_lib_orbit2.m4 @@ -0,0 +1,32 @@ +# =========================================================================== +# http://www.nongnu.org/autoconf-archive/ax_lib_orbit2.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_LIB_ORBIT2([VERSION],[ACTION-IF-SUCCESS],[ACTION-IF-FAILURE]) +# +# DESCRIPTION +# +# Checks for minimum Orbit2 library version VERSION. If successfull executes +# ACTION-IF-SUCCESS otherwise ACTION-IF-FAILURE. +# +# Defines ORBIT2_LIBS and ORBIT2_CFLAGS. +# +# A simple example: +# +# AX_LIB_ORBIT2([2.14.16],,[ +# AC_MSG_ERROR([Your system lacks of orbit2 >= 2.14.16]) +# ]) +# +# LICENSE +# +# Copyright (c) 2009 Francesco Salvestrini +# +# 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. + +AC_DEFUN([AX_LIB_ORBIT2], [ + AX_PATH_GENERIC([orbit2],[$1],'s/^ORBit2\ \+//',[$2],[$3]) +]) -- 1.6.3.3