3 dnl $Id: configure.in,v 1.1 2002/01/25 19:34:45 mdw Exp $
5 dnl Configuration script for jog
7 dnl (c) 2001 Mark Wooding
10 dnl ----- Licensing notice --------------------------------------------------
12 dnl This file is part of Jog: Programming for a jogging machine.
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.
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.
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.
28 dnl ----- Revision history --------------------------------------------------
30 dnl $Log: configure.in,v $
31 dnl Revision 1.1 2002/01/25 19:34:45 mdw
36 AM_INIT_AUTOMAKE(jog, 1.0.0)
37 AM_CONFIG_HEADER(config.h)
43 AC_CACHE_CHECK([where to find <rexxsaa.h>], [mdw_cv_rexxsaa_path], [
45 tmp_CPPFLAGS=$CPPFLAGS
46 for i in present /usr/include/regina /usr/local/include/regina; do
49 /*) CPPFLAGS="-I$i $tmp_CPPFLAGS" ;;
50 *) AC_MSG_ERROR([Buggered!]) ;;
52 ac_cpp='$CPP $CPPFLAGS'
53 AC_TRY_CPP([#include <rexxsaa.h>], [bad=false; break;])
56 AC_MSG_ERROR([header file <rexxsaa.h> not found])
58 CPPFLAGS=$tmp_CPPFLAGS
59 mdw_cv_rexxsaa_path=$i
61 case $mdw_cv_rexxsaa_path in
63 /*) CPPFLAGS="-I$mdw_cv_rexxsaa_path $tmp_CPPFLAGS" ;;
64 *) AC_MSG_ERROR([Buggered!]) ;;
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)
78 dnl ----- That's all, folks -------------------------------------------------