summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorvenaas <venaas>2008-02-19 14:12:26 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-02-19 14:12:26 +0000
commit1932be8fffa9c6a1e3b6df17f51f3e29746cb7f4 (patch)
tree853cc596c87d161f60a84ca022f1f53bbccf7183 /configure.ac
parent4f214a98e413b6d19aa536d5735f722d453d2280 (diff)
Solaris9 fixes
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@214 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 410df27..444ee64 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,5 +2,18 @@ AC_INIT(radsecproxy, 1.2-devel, venaas@uninett.no)
AM_INIT_AUTOMAKE
AC_PROG_CC
AM_PROG_CC_C_O
+dnl Check if we're on Solaris and set CFLAGS accordingly
+AC_CANONICAL_SYSTEM
+case "${target_os}" in
+ solaris*)
+ TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
+ TARGET_LDFLAGS="-lsocket"
+ ;;
+ *)
+ TARGET_CFLAGS=""
+ TARGET_LDFLAGS=""
+ esac
+AC_SUBST(TARGET_CFLAGS)
+AC_SUBST(TARGET_LDFLAGS)
AX_CHECK_SSL
AC_OUTPUT(Makefile)