1 dnl configure.in.irtp --
2 dnl
3 dnl configuration for Aspen multicast library
4 dnl
5 dnl Copyright (c) 2000-2002 The Regents of the University of California.
6 dnl All rights reserved.
7 dnl
8 dnl Redistribution and use in source and binary forms, with or without
9 dnl modification, are permitted provided that the following conditions are met:
10 dnl
11 dnl A. Redistributions of source code must retain the above copyright notice,
12 dnl this list of conditions and the following disclaimer.
13 dnl B. Redistributions in binary form must reproduce the above copyright
14 dnl notice, this list of conditions and the following disclaimer in the
15 dnl documentation and/or other materials provided with the distribution.
16 dnl C. Neither the names of the copyright holders nor the names of its
17 dnl contributors may be used to endorse or promote products derived from
18 dnl this software without specific prior written permission.
19 dnl
20 dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
21 dnl IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 dnl THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 dnl PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
24 dnl LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 dnl CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 dnl SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 dnl CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 dnl ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 dnl POSSIBILITY OF SUCH DAMAGE.
31
32 V_ASPEN_OBJ=""
33 V_ASPEN_LIB=""
34 V_ASPEN_INC=""
35
36 AC_ARG_WITH(aspen, [ --with-aspen enable Aspen multicast library], aspen_dir=$withval, aspen_dir="no")
37
38 if test "$aspen_dir" != "no" ; then
39 V_ASPEN_OBJ="net/net-aspen.o"
40
41 AC_MSG_CHECKING(for aspen)
42 #
43 # check if aspen_dir is a source tree or if aspen
44 # has been installed in e.g. /usr/local
45 #
46 if test -r $aspen_dir/aspen/session.h ; then
47 if test ! -r $aspen_dir/src/libaspen.a ; then
48 AC_MSG_ERROR($aspen_dir/src/libaspen.a does not exist)
49 fi
50
51 AC_MSG_RESULT($aspen_dir)
52 V_ASPEN_INC="-I$aspen_dir"
53 V_ASPEN_LIB="-L$aspen_dir/src -laspen -laspen_tcl"
54 elif test -r $aspen_dir/include/aspen/session.h ; then
55 if test ! -r $aspen_dir/lib/libaspen.a ; then
56 AC_MSG_ERROR($aspen_dir/lib/libaspen.a does not exit)
57 fi
58
59 AC_MSG_RESULT($aspen_dir)
60 V_ASPEN_INC="$aspen_dir/include"
61 V_ASPEN_LIB="-L$aspen_dir/lib -laspen -laspen_tcl"
62 else
63 AC_MSG_RESULT(no)
64 AC_MSG_ERROR(cannot find aspen.h in $aspen_dir)
65 fi
66
67 #
68 # also need to link with libexpat (or libbsdxml)
69 #
70 EXPAT_LIB=`(. $aspen_dir/aspenConfig.sh; echo $EXPAT_LIB)`
71 V_ASPEN_LIB="$V_ASPEN_LIB $EXPAT_LIB"
72 fi
73
74 AC_SUBST(V_ASPEN_OBJ)
75 AC_SUBST(V_ASPEN_LIB)
76 AC_SUBST(V_ASPEN_INC)
77
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.