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