fix openbsd build (FSBUILD-256)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17071 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ad581d8c00
commit
f6fe2667d4
|
@ -25,6 +25,12 @@ echo " You need autoconf version 2.59 or newer installed"
|
||||||
echo " to build FreeSWITCH from SVN."
|
echo " to build FreeSWITCH from SVN."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test `uname -s` = "OpenBSD" && test "$ac_version" = "2.62"; then
|
||||||
|
echo "Autoconf 2.62 is broken on OpenBSD, please try another version"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
IFS=_; set $ac_version; IFS=' '
|
IFS=_; set $ac_version; IFS=' '
|
||||||
ac_version=$1
|
ac_version=$1
|
||||||
IFS=.; set $ac_version; IFS=' '
|
IFS=.; set $ac_version; IFS=' '
|
||||||
|
@ -37,6 +43,7 @@ else
|
||||||
echo "bootstrap: autoconf version $ac_version (ok)"
|
echo "bootstrap: autoconf version $ac_version (ok)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# automake 1.7 or newer
|
# automake 1.7 or newer
|
||||||
|
|
||||||
am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;s/[- ].*//g;q'`
|
am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;s/[- ].*//g;q'`
|
||||||
|
|
21
configure.in
21
configure.in
|
@ -589,7 +589,7 @@ elif test "$ac_cv_sizeof_long" = "8"; then
|
||||||
int64_value="long"
|
int64_value="long"
|
||||||
long_value=long
|
long_value=long
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-solaris2*|*apple-darwin*)
|
*-solaris2*|*apple-darwin*|*-openbsd*)
|
||||||
if test "$ac_cv_sizeof_long_long" = "8"; then
|
if test "$ac_cv_sizeof_long_long" = "8"; then
|
||||||
int64_t_fmt='#define SWITCH_INT64_T_FMT "lld"'
|
int64_t_fmt='#define SWITCH_INT64_T_FMT "lld"'
|
||||||
uint64_t_fmt='#define SWITCH_UINT64_T_FMT "llu"'
|
uint64_t_fmt='#define SWITCH_UINT64_T_FMT "llu"'
|
||||||
|
@ -696,7 +696,16 @@ AC_SUBST(uint64_t_fmt)
|
||||||
AC_SUBST(ssize_t_fmt)
|
AC_SUBST(ssize_t_fmt)
|
||||||
AC_SUBST(size_t_fmt)
|
AC_SUBST(size_t_fmt)
|
||||||
|
|
||||||
AC_PATH_PROGS(ZCAT, gunzip gzcat gzip zcat)
|
case $host in
|
||||||
|
*-openbsd*)
|
||||||
|
# OpenBSD's gunzip and friends don't like -d because its redundant, only gzip does
|
||||||
|
AC_PATH_PROGS(ZCAT, gzip)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
AC_PATH_PROGS(ZCAT, gunzip gzcat gzip zcat)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
AC_PATH_PROGS(TAR, gtar tar)
|
AC_PATH_PROGS(TAR, gtar tar)
|
||||||
AC_PATH_PROGS(WGET, wget)
|
AC_PATH_PROGS(WGET, wget)
|
||||||
AC_PATH_PROGS(CURL, curl)
|
AC_PATH_PROGS(CURL, curl)
|
||||||
|
@ -951,6 +960,14 @@ AC_CONFIG_SUBDIRS([libs/spandsp])
|
||||||
AC_CONFIG_SUBDIRS([libs/broadvoice])
|
AC_CONFIG_SUBDIRS([libs/broadvoice])
|
||||||
AC_CONFIG_SUBDIRS([libs/libg722_1])
|
AC_CONFIG_SUBDIRS([libs/libg722_1])
|
||||||
|
|
||||||
|
case $host in
|
||||||
|
*-openbsd*)
|
||||||
|
# libtool won't link static libs against shared ones on OpenBSD unless we tell it not to be stupid
|
||||||
|
AC_CONFIG_COMMANDS([hacklibtool], [cp libtool libtool.orig && sed -e "s/deplibs_check_method=.*/deplibs_check_method=pass_all/g" libtool.orig > libtool])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
@ -61,6 +61,9 @@
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "parse.h"
|
#include "parse.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#ifdef __OpenBSD__
|
||||||
|
#include <stdint.h>
|
||||||
|
#endif
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
Loading…
Reference in New Issue