Avoid overriding the check-local rule, hushing automake warning
[gnash.git] / macros / alp.m4
blob160c2fd775ceb5da80674652e4cd8dfeae7539ca
1  dnl  
2 dnl    Copyright (C) 2005, 2006, 2009, 2010 Free Software Foundation, Inc.
3 dnl  
4 dnl  This program is free software; you can redistribute it and/or modify
5 dnl  it under the terms of the GNU General Public License as published by
6 dnl  the Free Software Foundation; either version 3 of the License, or
7 dnl  (at your option) any later version.
8 dnl  
9 dnl  This program is distributed in the hope that it will be useful,
10 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 dnl  GNU General Public License for more details.
13 dnl  You should have received a copy of the GNU General Public License
14 dnl  along with this program; if not, write to the Free Software
15 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17 AC_DEFUN([GNASH_PATH_ALP],
20   dnl See if we're running under scratchbox, specifically ALP
21   BARTENDER=
22   ALP_CFLAGS=
23   ALP_LIBS=
24   have_alp=no
26   if test x"$sbox" = xyes; then
27     dnl Look for Alp
28     for i in $incllist; do
29       if test -f $i/alp/bundlemgr.h; then
30         ac_cv_path_alp_incl="-I$i"
31         alp=yes
32         break
33       fi
34     done
36     ac_cv_path_alp_lib=""
37     newlist="/opt/alp/lib /opt/alp/lib/tmp ${incllist}"
38     for i in $newlist; do
39       if test -f $i/libalp_bundlemgr.a -o -f $i/libalp_bundlemgr.${shlibext}; then
40             ac_cv_path_alp_lib="-L$i -lalp_bundlemgr ${ac_cv_path_alp_lib}"
41         break
42       fi
43     done
44     for i in $newlist; do
45       if test -f $i/libalp_appmgr.a -o -f $i/libalp_appmgr.${shlibext}; then
46             ac_cv_path_alp_lib="${ac_cv_path_alp_lib} -lalp_appmgr"
47         break
48       fi
49     done
50     for i in $newlist; do
51       if test -f $i/alp_max.a -o -f $i/alp_max.${shlibext}; then
52             ac_cv_path_alp_lib="${ac_cv_path_alp_lib} -lalp_max"
53         break
54       fi
55     done
56   fi
58   if test -f ${_SBOX_DIR}/tools/bin/bartender; then
59     BARTENDER=${_SBOX_DIR}/tools/bin/bartender
60   fi
62   if test x"${ac_cv_path_alp_incl}" != x; then
63     ALP_CFLAGS="${ac_cv_path_alp_incl}"
64   fi
66   if test x"${ac_cv_path_alp_lib}" != x; then
67     ALP_LIBS="${ac_cv_path_alp_lib}"
68     AC_DEFINE(HAVE_ALP, [1], [has the ALP/Hiker mobile framework])
69     have_alp=yes
70   fi
72   AC_SUBST(BARTENDER)
73   AC_SUBST(ALP_CFLAGS)
74   AC_SUBST(ALP_LIBS)
77 # Local Variables:
78 # c-basic-offset: 2
79 # tab-width: 2
80 # indent-tabs-mode: nil
81 # End: