dl-fldigi/m4/macosx.m4

54 wiersze
1.7 KiB
Plaintext
Czysty Zwykły widok Historia

AC_DEFUN([AC_FLDIGI_MACOSX], [
case "$target_os" in
darwin*)
target_darwin="yes"
;;
*)
target_darwin="no"
;;
esac
2009-08-15 09:39:02 +00:00
if test "$target_darwin" = "yes"; then
AC_MSG_NOTICE([using bundled GNU regex on $target_os])
# pretend that the regex.h check failed so that we use the bundled regex code
ac_cv_header_regex_h=no
AC_DEFINE([HAVE_REGEX_H], 0, [Define to 1 if you have the <regex.h> header file.])
fi
AC_ARG_ENABLE([mac-universal], AC_HELP_STRING([--enable-mac-universal],
[build a universal binary on Mac OS X @<:@no@:>@]),
[case "${enableval}" in
yes|no) ac_cv_mac_universal="${enableval}" ;;
*) AC_MSG_ERROR([bad value "${enableval}" for --enable-mac-universal]) ;;
esac],
[ac_cv_mac_universal=no])
if test "x$target_darwin" = "xyes" && test "x$ac_cv_mac_universal" = "xyes"; then
mac_minversion="-mmacosx-version-min=10.4"
case "$target_os" in
darwin8*)
mac_arches="-arch i386 -arch ppc"
mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
;;
darwin9*)
mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64"
mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
;;
Configure Script Engine * Add menu item "Scripts" and callback function. * Add scripting engine. * Update script engine for localization strings/messages. * Add hierarchy syntax * New file run_script.h * Hierarchy integration completed * Add command set * Add 'int find_index(char *)' to combo.cxx * Add menu item 'Generate Script' and code for generating a default config script file. * Add void loadRigXmlFile(void) to rigxml.cxx to support scripting calls. - Trim leading/trailing white spaces from portaudio device names. * Remove duplicate calling functions/method members. * Move command parameter specific verification to run_script.cxx basic testing remains in script_parsing.cxx * First Document Draft - Script commands - Add Misc NBEMS config commands - Add Notice - Program restart required. - Update Documentation with new commands * Removed Unused Variables (multiple locations) * Change behavior of floating point output for script generate. * Remove function qsy() use restriction on rig control availability. * Add strnlen, strncmp and strncpy checks to configure.ac * Add trim_white_spaces, strnlen, strncmp and strncpy routines to util.cxx * Add pa_set_dev() to soundconf.cxx for updating pa device names. * Add code to save macro(s) with content only. * Add config_script files to POTFILES.in for localization processing. * Flag command types. * Limit generate script output based on configure content. * Change script error dialog box to warning. * Change default rig.xml to rig-unassigned.xml. For testing purposes. (script generation) * Update Documents with Notes about script generation and executing. * Correct \ref and \section name duplicates in doxygen doc source * Add script commands for ID->RSID/Video/CW panel. * Move Script/Execute/Generate Menu Items to File Menu. - Move repetitive code into general functions. * Rename "Scripts" menu item to "Config Scripts" * Fix error introduced in last mods. Port Audio Gen Config
2015-02-08 14:40:44 +00:00
darwin10*)
mac_arches="-arch i386 -arch x86_64"
mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.6.sdk"
;;
*)
mac_arches=""
mac_sysroot=""
;;
esac
MAC_UNIVERSAL_CFLAGS="$mac_arches $mac_sysroot $mac_minversion"
MAC_UNIVERSAL_LDFLAGS="$mac_arches"
fi
AC_SUBST([MAC_UNIVERSAL_CFLAGS])
AC_SUBST([MAC_UNIVERSAL_LDFLAGS])
AM_CONDITIONAL([DARWIN], [test "x$target_darwin" = "xyes"])
])