Commits

ripencc committed f652f37

proper Darwin detection

Comments (0)

Files changed (1)

 dnl Process this file with autoconf to produce a configure script.
 AC_REVISION($Revision$)
 
-AC_INIT([libbgpdump], 1.4.99.12, [ris@ripe.net])
+AC_INIT([libbgpdump], 1.4.99.13, [ris@ripe.net])
 AC_CONFIG_SRCDIR([bgpdump_lib.c])
 AC_CONFIG_HEADERS([bgpdump-config.h])
 
 AC_CHECK_FUNCS(inet_ntoa, [], AC_CHECK_LIB(nsl, inet_ntoa, [], AC_MSG_ERROR([inet_ntoa not found],1)))
 AC_CHECK_FUNCS(inet_ntop, [], AC_CHECK_LIB(nsl, inet_ntop, [], AC_MSG_ERROR([inet_ntop not found],1)))
 
-OS=`uname|sed -e 'y/A-Z/a-z/'`
-case $OS in
-	darwin*)
-		LDFLAGS='-dynamiclib'
-		;;
-	*)
-		LDFLAGS='-shared'
-		;;
+case `uname` in
+	Darwin*) LDFLAGS='-dynamiclib' ;;
+	*)       LDFLAGS='-shared' ;;
 esac
 
 AC_SUBST(CFLAGS)