From e4011af21308a159f2e5498f48bcc293f2edde19 Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Thu, 14 Mar 2013 00:09:39 +1100 Subject: Ancient Mac GCC does not support C++11/C++0x. Swapped to using clang on OS X. --- libpit/configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libpit') diff --git a/libpit/configure.ac b/libpit/configure.ac index 30fd136..4847828 100644 --- a/libpit/configure.ac +++ b/libpit/configure.ac @@ -4,7 +4,8 @@ AC_CANONICAL_TARGET AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign]) AC_CONFIG_HEADERS([config.h]) -AC_PROG_CXX +AM_PROG_AR +m4_pattern_allow([AM_PROG_PR], [AM_PROG_AR]) LT_INIT() @@ -18,18 +19,22 @@ case $target in *-linux*) AC_DEFINE(OS_LINUX, [], [Linux backend]) AC_MSG_RESULT([Linux]) + AC_PROG_CXX ;; *-darwin*) AC_DEFINE(OS_DARWIN, [], [Darwin backend]) AC_MSG_RESULT([Darwin/MacOS X]) + AC_PROG_CXX([clang++]) ;; *-mingw*) AC_DEFINE(OS_WINDOWS, [], [Windows backend]) AC_MSG_RESULT([Windows]) + AC_PROG_CXX ;; *-cygwin*) AC_DEFINE(OS_WINDOWS, [], [Windows backend]) AC_MSG_RESULT([Windows]) + AC_PROG_CXX ;; *) AC_MSG_ERROR([unsupported operating system]) -- cgit v1.2.3