Commit 79651977 authored by venaas's avatar venaas Committed by venaas

initial autoconf support

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@106 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 7894295a
Stig Venaas <venaas@uninett.no>
Copyright (C) 2006, 2007 Stig Venaas <venaas@uninett.no>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
bin_PROGRAMS = radsecproxy
radsecproxy_SOURCES = radsecproxy.c \
util.c \
debug.c \
radsecproxy.h \
debug.h
radsecproxy_CFLAGS = -g -Wall -pedantic -pthread @SSL_CFLAGS@
radsecproxy_LDFLAGS = @SSL_LDFLAGS@
radsecproxy_LDADD = @SSL_LIBS@
......@@ -2,7 +2,9 @@ This is a beta version of a generic RADIUS proxy that can support
various RADIUS clients over UDP or TLS (RadSec).
It should build on most Linux and BSD platforms by simply typing
"make". To use it you need to create a config file called
"make". You may also try to use autoconf if you like.
To use it you need to create a config file called
"radsecproxy.conf" which must be in /etc/radsecproxy (unless
you alter it in the header file), the current directory, or
you can specify the location with the "-c" command line
......@@ -16,6 +18,14 @@ detailed; and "-f" to run the proxy in the foreground with logging
to stderr. Without "-f" the default is to detach as a daemon and
log to syslog.
Thanks to Stefan Winter and Andreas Solberg for making me do this,
and the funding from GEANT2. Stefan as well as Kolbjørn Barmen
and Maja Wolniewicz have helped with early testing of the code.
All of the above plus Milan Sova have provided good feedback on
several implementation choices. Finally thanks to Hans Zandbelt
for providing the autoconf stuff. I may have forgotten someone,
let me know if you feel left out.
For more information, feedback etc. contact <venaas@uninett.no>.
Stig Venaas, 2007.05.15
Stig Venaas, 2007.05.24
dnl Based on the one from the Boinc project by Reinhard
AC_DEFUN([AX_CHECK_SSL],
[AC_MSG_CHECKING(for OpenSSL)
SSL_DIR=
found_ssl="no"
AC_ARG_WITH(ssl,
AC_HELP_STRING([--with-ssl],
[Use SSL (in specified installation directory)]),
[check_ssl_dir="$withval"],
[check_ssl_dir=])
for dir in $check_ssl_dir /usr /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local ; do
ssldir="$dir"
if test -f "$dir/include/openssl/ssl.h"; then
found_ssl="yes";
SSL_DIR="${ssldir}"
SSL_CFLAGS="-I$ssldir/include -I$ssldir/include/openssl";
break;
fi
if test -f "$dir/include/ssl.h"; then
found_ssl="yes";
SSL_DIR="${ssldir}"
SSL_CFLAGS="-I$ssldir/include/";
break
fi
done
AC_MSG_RESULT($found_ssl)
if test x_$found_ssl != x_yes; then
AC_MSG_ERROR([
----------------------------------------------------------------------
Cannot find SSL libraries.
Please install OpenSSL or specify installation directory with
--with-ssl=(dir).
----------------------------------------------------------------------
])
else
printf "OpenSSL found in $ssldir\n";
SSL_LIBS="-lssl -lcrypto";
SSL_LDFLAGS="-L$ssldir/lib";
AC_DEFINE_UNQUOTED([USE_OPENSSL],[1],
["Define to 1 if you want to use the OpenSSL crypto library"])
AC_SUBST(SSL_CFLAGS)
AC_SUBST(SSL_LDFLAGS)
AC_SUBST(SSL_LIBS)
fi
])dnl
#!/bin/sh
touch NEWS
autoreconf --force --install
AC_INIT(radsecproxy, 0.1, venaas@uninett.no)
AM_INIT_AUTOMAKE
AC_PROG_CC
AM_PROG_CC_C_O
AX_CHECK_SSL
AC_OUTPUT(Makefile)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment