00001 dnl -*- Mode: M4 -*-
00002 dnl $Id: acinclude.m4,v 1.1 2000/01/06 18:36:33 pfkeb Exp $
00003 dnl
00004 dnl Copyright (C) 2000 The Board of Trustees of
00005 dnl The Leland Stanford Junior University. All Rights Reserved.
00006 dnl
00007 dnl To be called like
00008 dnl
00009 dnl glast_CHECK_LIB( LIB_XXX, libxxx.la, DIR )
00010 dnl
00011 dnl Searchs for libxxx.la in one of two places.
00012 dnl Picks the first of DIR or $glast_prefix/lib
00013 dnl Sets the output variable LIBXXX to the first found
00014 dnl
00015 dnl Author: Paul_Kunz@slac.stanford.edu
00016 dnl (my first M4 macro)
00017 dnl
00018
00019 AC_DEFUN(glast_CHECK_LIB,
00020 [
00021 AC_CHECK_PROG(glast_result, autogen, yes, no, $srcdir/$3)
00022 if test x"$glast_result" = xyes ; then
00023 $1="\$(top_builddir)/$3/$2"
00024 else
00025 $1=$glast_prefix/lib/$2
00026 fi
00027 AC_SUBST($1)
00028 ])
00029 dnl -*- Mode: M4 -*-
00030 dnl $Id: acinclude.m4,v 1.1 2000/01/06 18:36:33 pfkeb Exp $
00031 dnl
00032 dnl Copyright (C) 2000 The Board of Trustees of
00033 dnl The Leland Stanford Junior University. All Rights Reserved.
00034 dnl
00035 dnl To be called like
00036 dnl
00037 dnl glast_CHECK_LIB( LIB_XXX, libxxx.la, DIR )
00038 dnl
00039 dnl Searchs for libxxx.la in one of two places.
00040 dnl Picks the first of DIR/src or $glast_prefix/lib
00041 dnl Sets the output variable LIBXXX to the first found
00042 dnl
00043 dnl Author: Paul_Kunz@slac.stanford.edu
00044 dnl
00045
00046 AC_DEFUN(glast_CHECK_LIB_SRC,
00047 [
00048 AC_CHECK_PROG(glast_result, autogen, yes, no, $srcdir/$3)
00049 if test x"$glast_result" = xyes ; then
00050 $1="\$(top_builddir)/$3/src/$2"
00051 else
00052 $1=$glast_prefix/lib/$2
00053 fi
00054 AC_SUBST($1)
00055 ])
00056
00057
00058