Use Apple libtool if build and host are Darwin

This allows combining fat .a files.
This commit is contained in:
Jonathan Schleifer 2018-01-19 01:17:05 +01:00
parent d49633ffc4
commit 408f3121a3
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
2 changed files with 98 additions and 66 deletions

View file

@ -22,6 +22,19 @@ dnl POSSIBILITY OF SUCH DAMAGE.
dnl
AC_DEFUN([BUILDSYS_INIT], [
AC_REQUIRE([AC_CANONICAL_BUILD])
AC_REQUIRE([AC_CANONICAL_HOST])
case "$build_os" in
darwin*)
case "$host_os" in
darwin*)
AC_SUBST(BUILD_AND_HOST_ARE_DARWIN, yes)
;;
esac
;;
esac
AC_CONFIG_COMMANDS_PRE([
AC_SUBST(CC_DEPENDS, $GCC)
AC_SUBST(CXX_DEPENDS, $GXX)