From 3620a1ce26b6a139e3bc6b0f13f6fe9e85ff7c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 5 Mar 2015 15:09:05 +0000 Subject: added missing files for autotools migration svn path=/trunk/externals/iem/iemmatrix/; revision=17433 --- m4/iem_fat.m4 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 m4/iem_fat.m4 (limited to 'm4/iem_fat.m4') diff --git a/m4/iem_fat.m4 b/m4/iem_fat.m4 new file mode 100644 index 0000000..712e1db --- /dev/null +++ b/m4/iem_fat.m4 @@ -0,0 +1,51 @@ +dnl Copyright (C) 2005-2006 IOhannes m zmölnig +dnl This file is free software; IOhannes m zmölnig +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([IEM_CHECK_FAT], +[ +AC_ARG_ENABLE(fat-binary, + [ --enable-fat-binary=ARCHS + build an Apple Multi Architecture Binary (MAB); + ARCHS is a comma-delimited list of architectures for + which to build; if ARCHS is omitted, then the package + will be built for all architectures supported by the + platform (e.g. "ppc,i386" for MacOS/X and Darwin; + if this option is disabled or omitted entirely, then + the package will be built only for the target + platform], + [fat_binary=$enableval], [fat_binary=no]) +if test "$fat_binary" != no; then + AC_MSG_CHECKING([target architectures]) + + # Respect TARGET_ARCHS setting from environment if available. + if test -z "$TARGET_ARCHS"; then + # Respect ARCH given to --enable-fat-binary if present. + if test "$fat_binary" != yes; then + TARGET_ARCHS=`echo "$fat_binary" | tr ',' ' '` + else + # Choose a default set of architectures based upon platform. + TARGET_ARCHS="ppc i386" + fi + fi + AC_MSG_RESULT([$TARGET_ARCHS]) + + define([Name],[translit([$1],[./-], [___])]) + # /usr/lib/arch_tool -archify_list $TARGET_ARCHS + []Name="" + for archs in $TARGET_ARCHS + do + []Name="$[]Name -arch $archs" + done + + if test "x$[]Name" != "x"; then + IEM_CHECK_CFLAGS($[]Name,,[]Name="") + IEM_CHECK_CXXFLAGS($[]Name,,[]Name="") + IEM_CHECK_LDFLAGS($[]Name,,[]Name="") + fi + + + undefine([Name]) +fi +])# IEM_CHECK_FAT -- cgit v1.2.1