1 AC_INIT(radsecproxy, 2.0-devel, radsecproxy@uninett.no)
8 [ --enable-udp whether to enable UDP transport: yes/no; default yes ],
9 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
12 echo "--enable-udp argument must be yes or no"
19 [ --enable-tcp whether to enable TCP transport: yes/no; default yes ],
20 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
23 echo "--enable-tcp argument must be yes or no"
30 [ --enable-tls whether to enable TLS (RadSec) transport: yes/no; default yes ],
31 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
34 echo "--enable-tls argument must be yes or no"
41 [ --enable-dtls whether to enable DTLS transport: yes/no; default yes ],
42 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
45 echo "--enable-dtls argument must be yes or no"
50 dnl Check if we're on Solaris and set CFLAGS accordingly
52 case "${target_os}" in
54 TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
55 if test "$GCC" != yes ; then
56 TARGET_CFLAGS="$TARGET_CFLAGS -mt"
58 TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
61 TARGET_CFLAGS="-Wall -pedantic -pthread"
64 dnl Adding enabled options
65 if test "x$udp" = "xyes" ; then
66 echo "UDP transport enabled"
67 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_UDP"
69 if test "x$tcp" = "xyes" ; then
70 echo "TCP transport enabled"
71 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TCP"
73 if test "x$tls" = "xyes" ; then
74 echo "TLS (RadSec) transport enabled"
75 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TLS"
77 if test "x$dtls" = "xyes" ; then
78 echo "DTLS transport enabled"
79 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_DTLS"
82 AC_SUBST(TARGET_CFLAGS)
83 AC_SUBST(TARGET_LDFLAGS)