Skip some pointless configure checks on OS X

This commit is contained in:
Thomas Goyne 2015-07-27 18:09:19 -07:00
parent 8f5bfb0cae
commit 096398425a
1 changed files with 13 additions and 7 deletions

View File

@ -125,8 +125,10 @@ AC_SUBST([BUILD_DATE])
################################################### ###################################################
# Check for pthreads and setup variables / compiler # Check for pthreads and setup variables / compiler
################################################### ###################################################
ACX_PTHREAD([], [AC_MSG_FAILURE([You must have working pthreads.])]) AS_IF([test x$build_darwin != xyes], [
CC="$PTHREAD_CC" ACX_PTHREAD([], [AC_MSG_FAILURE([You must have working pthreads.])])
CC="$PTHREAD_CC"
])
###################### ######################
# Check compiler flags # Check compiler flags
@ -188,12 +190,16 @@ AC_ARG_ENABLE(sanity-checks,
### Required Dependencies ### Required Dependencies
######################### #########################
AC_PATH_XTRA AS_IF([test x$build_darwin != xyes], [
AS_IF([test x$no_x = xyes && test x$build_darwin != xyes], AC_PATH_XTRA
[AC_MSG_FAILURE([You must have a working copy of X installed.])]) AS_IF([test x$no_x = xyes],
[AC_MSG_FAILURE([You must have a working copy of X installed.])])
AX_CHECK_GL AX_CHECK_GL
AS_IF([test x$no_gl = xyes], [AC_MSG_FAILURE([Aegisub requires GL support.])]) AS_IF([test x$no_gl = xyes], [AC_MSG_FAILURE([Aegisub requires GL support.])])
], [
AC_CHECK_HEADERS([OpenGL/gl.h])
])
AC_SUBST(GL_CFLAGS) AC_SUBST(GL_CFLAGS)
AC_SUBST(GL_LIBS) AC_SUBST(GL_LIBS)