diff options
author | venaas <venaas> | 2009-02-18 15:37:01 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2009-02-18 15:37:01 +0000 |
commit | f2d6619255e9644f4f134dfe98a24342d35e618b (patch) | |
tree | 8f98185b835dbe76483b332724e17094e3d48e74 /configure.ac | |
parent | 851dd8c2292a077089bfffb5dd52943b8f7c53b4 (diff) |
updated files for 1.3-beta release
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.3@480 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 64 |
1 files changed, 63 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ee71115..3fdc0d5 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,51 @@ -AC_INIT(radsecproxy, 1.3-alpha, venaas@uninett.no) +AC_INIT(radsecproxy, 1.3-beta, venaas@uninett.no) AM_INIT_AUTOMAKE AC_PROG_CC AM_PROG_CC_C_O +udp=yes +AC_ARG_ENABLE(udp, + [ --enable-udp whether to enable UDP transport: yes/no; default yes ], + [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then + udp=$enableval + else + echo "--enable-udp argument must be yes or no" + exit -1 + fi + ]) + +tcp=yes +AC_ARG_ENABLE(tcp, + [ --enable-tcp whether to enable TCP transport: yes/no; default yes ], + [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then + tcp=$enableval + else + echo "--enable-tcp argument must be yes or no" + exit -1 + fi + ]) + +tls=yes +AC_ARG_ENABLE(tls, + [ --enable-tls whether to enable TLS (RadSec) transport: yes/no; default yes ], + [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then + tls=$enableval + else + echo "--enable-tls argument must be yes or no" + exit -1 + fi + ]) + +dtls=yes +AC_ARG_ENABLE(dtls, + [ --enable-dtls whether to enable DTLS transport: yes/no; default yes ], + [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then + dtls=$enableval + else + echo "--enable-dtls argument must be yes or no" + exit -1 + fi + ]) + dnl Check if we're on Solaris and set CFLAGS accordingly AC_CANONICAL_SYSTEM case "${target_os}" in @@ -13,6 +57,24 @@ case "${target_os}" in TARGET_CFLAGS="" TARGET_LDFLAGS="" esac +dnl Adding enabled options +if test "x$udp" = "xyes" ; then + echo "UDP transport enabled" + TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_UDP" +fi +if test "x$tcp" = "xyes" ; then + echo "TCP transport enabled" + TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TCP" +fi +if test "x$tls" = "xyes" ; then + echo "TLS (RadSec) transport enabled" + TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TLS" +fi +if test "x$dtls" = "xyes" ; then + echo "DTLS transport enabled" + TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_DTLS" +fi + AC_SUBST(TARGET_CFLAGS) AC_SUBST(TARGET_LDFLAGS) AX_CHECK_SSL |