BuildSystem: Add DragonFly BSD.
ASTERISK-27820 Change-Id: I310896143e94d65da1c2be3bb448204a8b86d557
This commit is contained in:
parent
a9c74fdc04
commit
efe40ff671
|
@ -13,6 +13,10 @@ check_for_app() {
|
|||
# On Linux, environment variables tell which one to use.
|
||||
|
||||
case `uname -sr` in
|
||||
DragonFly*)
|
||||
MY_AC_VER=
|
||||
MY_AM_VER=
|
||||
;;
|
||||
FreeBSD*)
|
||||
MY_AC_VER=
|
||||
MY_AM_VER=
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
#include <fftw3.h>
|
||||
#endif
|
||||
|
||||
#if defined(__Darwin__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__CYGWIN__)
|
||||
#if defined(__Darwin__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__CYGWIN__)
|
||||
#include <float.h>
|
||||
#else
|
||||
#include <values.h>
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
#ifdef __linux
|
||||
#include <linux/soundcard.h>
|
||||
#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun)
|
||||
#elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun)
|
||||
#include <sys/soundcard.h>
|
||||
#else
|
||||
#include <soundcard.h>
|
||||
|
|
|
@ -4653,7 +4653,7 @@ case "${host_os}" in
|
|||
CPPFLAGS=-I/usr/pkg/include
|
||||
LDFLAGS=-L/usr/pkg/lib
|
||||
;;
|
||||
freebsd*)
|
||||
dragonfly*|freebsd*)
|
||||
ac_default_prefix=/usr/local
|
||||
CPPFLAGS=-I/usr/local/include
|
||||
LDFLAGS=-L/usr/local/lib
|
||||
|
@ -4742,7 +4742,7 @@ HOST_OS=${host_os}
|
|||
PBX_WINARCH=0
|
||||
|
||||
case "${host_os}" in
|
||||
freebsd*)
|
||||
dragonfly*|freebsd*)
|
||||
OSARCH=FreeBSD
|
||||
;;
|
||||
netbsd*)
|
||||
|
|
|
@ -67,7 +67,7 @@ case "${host_os}" in
|
|||
CPPFLAGS=-I/usr/pkg/include
|
||||
LDFLAGS=-L/usr/pkg/lib
|
||||
;;
|
||||
freebsd*)
|
||||
dragonfly*|freebsd*)
|
||||
ac_default_prefix=/usr/local
|
||||
CPPFLAGS=-I/usr/local/include
|
||||
LDFLAGS=-L/usr/local/lib
|
||||
|
@ -152,7 +152,7 @@ AC_SUBST(HOST_OS)
|
|||
PBX_WINARCH=0
|
||||
|
||||
case "${host_os}" in
|
||||
freebsd*)
|
||||
dragonfly*|freebsd*)
|
||||
OSARCH=FreeBSD
|
||||
;;
|
||||
netbsd*)
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#ifndef __BYTE_ORDER
|
||||
#ifdef __linux__
|
||||
#include <endian.h>
|
||||
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||
#if defined(__OpenBSD__)
|
||||
#include "asterisk/compat.h"
|
||||
#endif
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/vmmeter.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
#include <vm/vm_param.h>
|
||||
#endif
|
||||
#if defined(HAVE_SWAPCTL)
|
||||
|
|
|
@ -2423,7 +2423,7 @@ char *ast_eid_to_str(char *s, int maxlen, struct ast_eid *eid)
|
|||
return os;
|
||||
}
|
||||
|
||||
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__)
|
||||
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__Darwin__)
|
||||
#include <ifaddrs.h>
|
||||
#include <net/if_dl.h>
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <gmime/gmime.h>
|
||||
#if defined (__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__Darwin__)
|
||||
#if defined (__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__Darwin__)
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
#include <sys/stat.h>
|
||||
#elif defined(__linux__) || defined(__FreeBSD__) || defined(__GLIBC__)
|
||||
#elif defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__GLIBC__)
|
||||
#include <sys/soundcard.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__Darwin__) || defined(__CYGWIN__)
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__Darwin__) || defined(__CYGWIN__) || defined(__DragonFly__)
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
#include <sys/time.h>
|
||||
|
|
Loading…
Reference in New Issue