--- asterisk-1.6.0-beta7.1/configure.ac.orig 2008-04-04 07:31:06 +0000 +++ asterisk-1.6.0-beta7.1/configure.ac 2008-04-04 07:36:14 +0000 @@ -522,9 +522,11 @@ AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h]) -if test "x${host_os}" = "xlinux-gnu" ; then - AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h]) -fi +case "${host_os}" in + linux*) + AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h]) + ;; +esac # BSD might not have exp2, and/or log2 AST_EXT_LIB_CHECK([EXP2L], [m], [exp2l])