Fix issue with Mac OS version detection in m4 package. (#2835)
This commit is contained in:
parent
8365dbd959
commit
de7be6694f
@ -23,7 +23,6 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
class M4(AutotoolsPackage):
|
class M4(AutotoolsPackage):
|
||||||
@ -52,8 +51,9 @@ def configure_args(self):
|
|||||||
args.append('--without-libsigsegv-prefix')
|
args.append('--without-libsigsegv-prefix')
|
||||||
|
|
||||||
# http://lists.gnu.org/archive/html/bug-m4/2016-09/msg00002.html
|
# http://lists.gnu.org/archive/html/bug-m4/2016-09/msg00002.html
|
||||||
if (sys.platform == 'darwin') and (spec.satisfies('%gcc')) and \
|
arch = spec.architecture
|
||||||
(spec.architecture.platform_os.version == '10.12'):
|
if (arch.platform == 'darwin' and arch.platform_os == 'sierra' and
|
||||||
|
'%gcc' in spec):
|
||||||
args.append('ac_cv_type_struct_sched_param=yes')
|
args.append('ac_cv_type_struct_sched_param=yes')
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user