summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAlexander Traud <pabstraud@compuserve.com>2018-03-08 16:14:11 +0100
committerAlexander Traud <pabstraud@compuserve.com>2018-03-09 17:09:20 +0100
commit5b525c9781ce63e9d8143adc3666f87cb12bacc7 (patch)
tree8c2aef7efe6d26a70bc1d46c00b72f3f6f4d31d0 /configure
parentffdc5c63985c8749eb26a9f5d66b2d796a0623d7 (diff)
BuildSystem: Add NetBSD.
Headers, libraries, and rpath. ASTERISK-27728 ASTERISK-11015 Reported by: Curt Sampson Change-Id: I50aa5fcd095937df32a2e33307caac7e79a8b5b7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 18609ca20..3dad9d049 100755
--- a/configure
+++ b/configure
@@ -4671,6 +4671,11 @@ case "${host_os}" in
esac
case "${host_os}" in
+ netbsd*)
+ ac_default_prefix=/usr/pkg
+ CPPFLAGS=-I/usr/pkg/include
+ LDFLAGS=-L/usr/pkg/lib
+ ;;
freebsd*)
ac_default_prefix=/usr/local
CPPFLAGS=-I/usr/local/include
@@ -18623,6 +18628,9 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
$as_echo_n "checking whether to use rpath... " >&6; }
AST_RPATH=
+if test "${OSARCH}" = "NetBSD"; then
+ AST_RPATH="-Wl,-rpath,/usr/pkg/lib"
+fi
if test "${check_rpath}" != yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }