Commit eb61666d authored by Adam Mercer's avatar Adam Mercer
Browse files

add configure flag to disable osx version check

Original: c690f810dbabc88c5514caefa1a5929343c96e64
parent 81f4e0db
# lalsuite_build.m4 - top level build macros
#
# serial 10
# serial 11
AC_DEFUN([LALSUITE_USE_LIBTOOL],
[## $0: Generate a libtool script for use in configure tests
......@@ -302,3 +302,15 @@ AC_DEFUN([LALSUITE_WITH_CUDA],
], [ cuda=false ])
LALSUITE_ENABLE_MODULE([CUDA],[cuda])
])
AC_DEFUN([LALSUITE_ENABLE_OSX_VERSION_CHECK],
[AC_ARG_ENABLE(
[osx_version_check],
AC_HELP_STRING([--enable-osx-version-check][disable OS X version check [default=yes]]),
[ case "${enableval}" in
yes) osx_version_check=true;;
no) osx_version_check=false;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-osx-version-check]);;
esac
], [ osx_version_check=true ] )
])
......@@ -185,24 +185,27 @@ AC_CHECK_PROGS([MKIND],[makeindex],[echo])
AC_CHECK_PROGS([DVIPS],[dvips],[echo])
# check for supported mac os x version
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
LALSUITE_ENABLE_OSX_VERSION_CHECK
if test "x${osx_version_check}" = "xtrue"; then
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
# link tests using libtool
......
......@@ -64,6 +64,7 @@ LALAPPS_WITH_EXTRA_CPPFLAGS
LALAPPS_WITH_EXTRA_CFLAGS
LALAPPS_WITH_EXTRA_LDFLAGS
LALAPPS_WITH_EXTRA_LIBS
LALSUITE_ENABLE_GCC_FLAGS
LALSUITE_ENABLE_NIGHTLY
LALAPPS_ENABLE_CONDOR
......@@ -169,24 +170,27 @@ AM_PATH_PYTHON([2.4],,[:])
AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != :])
# check for supported mac os x version
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
LALSUITE_ENABLE_OSX_VERSION_CHECK
if test "x${osx_version_check}" = "xtrue"; then
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
# link tests using libtool
......
......@@ -83,24 +83,27 @@ LT_INIT
AM_PATH_PYTHON([2.4],,[AC_MSG_ERROR([Python-2.4, or higher, is required])])
# check for supported mac os x version
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
LALSUITE_ENABLE_OSX_VERSION_CHECK
if test "x${osx_version_check}" = "xtrue"; then
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
# link tests using libtool
......
......@@ -84,24 +84,27 @@ AM_PATH_PYTHON([2.4],,[AC_MSG_ERROR([Python-2.4, or higher, is required])])
AC_CHECK_PROGS([M4],[gm4 m4],[m4])
# check for supported mac os x version
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
LALSUITE_ENABLE_OSX_VERSION_CHECK
if test "x${osx_version_check}" = "xtrue"; then
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
# link tests using libtool
......
......@@ -86,24 +86,27 @@ LT_INIT
AM_PATH_PYTHON([2.4],,[AC_MSG_ERROR([Python-2.4, or higher, is required])])
# check for supported mac os x version
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
LALSUITE_ENABLE_OSX_VERSION_CHECK
if test "x${osx_version_check}" = "xtrue"; then
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
# link tests using libtool
......
......@@ -82,24 +82,27 @@ LT_INIT
AM_PATH_PYTHON([2.4],,[AC_MSG_ERROR([Python-2.4, or higher, is required])])
# check for supported mac os x version
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
LALSUITE_ENABLE_OSX_VERSION_CHECK
if test "x${osx_version_check}" = "xtrue"; then
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
# link tests using libtool
......
......@@ -89,24 +89,27 @@ LT_INIT
AM_PATH_PYTHON([2.4],,[AC_MSG_ERROR([Python-2.4, or higher, is required])])
# check for supported mac os x version
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
LALSUITE_ENABLE_OSX_VERSION_CHECK
if test "x${osx_version_check}" = "xtrue"; then
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
# link tests using libtool
......
......@@ -83,24 +83,27 @@ LT_INIT
AM_PATH_PYTHON([2.4],,[AC_MSG_ERROR([Python-2.4, or higher, is required])])
# check for supported mac os x version
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
LALSUITE_ENABLE_OSX_VERSION_CHECK
if test "x${osx_version_check}" = "xtrue"; then
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
# link tests using libtool
......
......@@ -83,24 +83,27 @@ LT_INIT
AM_PATH_PYTHON([2.4],,[AC_MSG_ERROR([Python-2.4, or higher, is required])])
# check for supported mac os x version
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
LALSUITE_ENABLE_OSX_VERSION_CHECK
if test "x${osx_version_check}" = "xtrue"; then
if test "x$build_vendor" = "xapple"; then
AC_CHECK_PROGS([SW_VERS],[sw_vers])
if test "x$SW_VERS" != "x"; then
AC_MSG_CHECKING([Mac OS X version])
MACOSX_VERSION=`$SW_VERS -productVersion`
AC_MSG_RESULT([$MACOSX_VERSION])
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
case "$MACOSX_VERSION" in
10.0*|10.1*|10.2*|10.3*)
AC_MSG_ERROR([This version of Mac OS X is not supported])
;;
10.4*|10.5*|10.6*)
# supported version
;;
*)
AC_MSG_WARN([Unknown Mac OS X version])
;;
esac
fi
# link tests using libtool
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment