chiark / gitweb /
Follow new transport configuration interface. Add parameters for flow
[jog] / configure.in
1 dnl -*-fundamental-*-
2 dnl
3 dnl $Id: configure.in,v 1.1 2002/01/25 19:34:45 mdw Exp $
4 dnl
5 dnl Configuration script for jog
6 dnl
7 dnl (c) 2001 Mark Wooding
8 dnl
9
10 dnl ----- Licensing notice --------------------------------------------------
11 dnl
12 dnl This file is part of Jog: Programming for a jogging machine.
13 dnl
14 dnl Jog is free software; you can redistribute it and/or modify
15 dnl it under the terms of the GNU General Public License as published by
16 dnl the Free Software Foundation; either version 2 of the License, or
17 dnl (at your option) any later version.
18 dnl 
19 dnl Jog is distributed in the hope that it will be useful,
20 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 dnl GNU General Public License for more details.
23 dnl 
24 dnl You should have received a copy of the GNU General Public License
25 dnl along with Jog; if not, write to the Free Software Foundation,
26 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28 dnl ----- Revision history --------------------------------------------------
29 dnl
30 dnl $Log: configure.in,v $
31 dnl Revision 1.1  2002/01/25 19:34:45  mdw
32 dnl Initial revision
33 dnl
34
35 AC_INIT(rxglue.c)
36 AM_INIT_AUTOMAKE(jog, 1.0.0)
37 AM_CONFIG_HEADER(config.h)
38
39 AC_PROG_CC
40 AC_PROG_CPP
41 mdw_GCC_FLAGS
42
43 AC_CACHE_CHECK([where to find <rexxsaa.h>], [mdw_cv_rexxsaa_path], [
44   bad=true
45   tmp_CPPFLAGS=$CPPFLAGS
46   for i in present /usr/include/regina /usr/local/include/regina; do
47     case $i in
48       present) ;;
49       /*) CPPFLAGS="-I$i $tmp_CPPFLAGS" ;;
50       *) AC_MSG_ERROR([Buggered!]) ;;
51     esac
52     ac_cpp='$CPP $CPPFLAGS'
53     AC_TRY_CPP([#include <rexxsaa.h>], [bad=false; break;])
54   done
55   if $bad; then
56     AC_MSG_ERROR([header file <rexxsaa.h> not found])
57   fi
58   CPPFLAGS=$tmp_CPPFLAGS
59   mdw_cv_rexxsaa_path=$i
60 ])
61 case $mdw_cv_rexxsaa_path in
62   present) ;;
63   /*) CPPFLAGS="-I$mdw_cv_rexxsaa_path $tmp_CPPFLAGS" ;;
64   *) AC_MSG_ERROR([Buggered!]) ;;
65 esac
66
67 mdw_CHECK_MANYLIBS(crypt, crypt)
68 mdw_CHECK_MANYLIBS(dlopen, dl)
69 mdw_CHECK_MANYLIBS(RexxStart, regina rexx)
70 mdw_CHECK_MANYLIBS(pthread_create, pthread)
71 mdw_CHECK_MANYLIBS(socket, socket)
72 mdw_MLIB(2.0.0pre4)
73
74 mdw_TYPE_SSIZE_T
75
76 AC_OUTPUT(Makefile)
77
78 dnl ----- That's all, folks -------------------------------------------------