Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 1211:eecdeb37934a
prev1210:79bbd30363f4
next1225:73dd41cb37a8
author nkeynes
date Fri Feb 10 19:26:10 2012 +1000 (7 years ago)
permissions -rw-r--r--
last change Break tools out into its own Makefile using CC_FOR_BUILD
file annotate diff log raw
1.1 --- a/configure.in Tue Feb 07 14:27:13 2012 +1000
1.2 +++ b/configure.in Fri Feb 10 19:26:10 2012 +1000
1.3 @@ -5,17 +5,20 @@
1.4 AM_MAINTAINER_MODE
1.5 AM_CONFIG_HEADER(config.h)
1.6
1.7 +AC_CANONICAL_BUILD
1.8 +AC_CANONICAL_HOST
1.9 +
1.10 +m4_include([m4/ccforbuild.m4])
1.11 +
1.12 AC_ISC_POSIX
1.13 AC_PROG_CC
1.14 +AM_PROG_CC_STDC
1.15 AC_PROG_CC_FOR_BUILD
1.16 -AM_PROG_CC_STDC
1.17 AC_PROG_OBJC
1.18 AC_PROG_SED
1.19 AM_PROG_AS
1.20 AC_CHECK_SIZEOF([void *])
1.21 AC_HEADER_STDC
1.22 -AC_CANONICAL_BUILD
1.23 -AC_CANONICAL_HOST
1.24
1.25 _AM_DEPENDENCIES([OBJC])
1.26
1.27 @@ -102,6 +105,7 @@
1.28 fi
1.29
1.30 dnl ------------------ C Compiler flags -----------------------
1.31 +CFLAGS_FOR_BUILD="-O2 -std=c99"
1.32 CFLAGS="-g -fexceptions"
1.33 OBJCFLAGS="-g -fexceptions"
1.34 AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])
1.35 @@ -228,6 +232,10 @@
1.36 fi
1.37 fi
1.38
1.39 +AC_PUSH_CC_FOR_BUILD
1.40 +PKG_CHECK_MODULES(GLIB_FOR_BUILD, glib-2.0)
1.41 +AC_POP_CC_FOR_BUILD
1.42 +
1.43 AM_CONDITIONAL(GUI_GTK, [test "$HAVE_GTK" = 'yes'])
1.44
1.45 PKG_CHECK_MODULES(LIBISOFS, [libisofs-1] )
1.46 @@ -291,6 +299,11 @@
1.47 AC_CHECK_FUNC(glCreateShader, [ AC_DEFINE([HAVE_OPENGL_SHADER],1,[Have 2.0 shader support]) ], [])
1.48 AC_CHECK_FUNC(glCreateShaderObjectARB, [ AC_DEFINE([HAVE_OPENGL_SHADER_ARB],1,[Have ARB shader support]) ], [])
1.49 AC_CHECK_FUNC(glClampColorARB, [ AC_DEFINE([HAVE_OPENGL_CLAMP_COLOR],1,[Have Color Clamp]) ], [])
1.50 +AC_CHECK_FUNC(glClearDepthf, [ AC_DEFINE([HAVE_OPENGL_CLEAR_DEPTHF],1,[Have glClearDepthf function]) ], [])
1.51 +AC_CHECK_FUNC(glAreTexturesResident, [ AC_DEFINE([HAVE_OPENGL_TEX_RESIDENT],1,[Have glAreTexturesResident]) ], [])
1.52 +AC_CHECK_FUNC(glTexEnvi, [ AC_DEFINE([HAVE_OPENGL_FIXEDFUNC],1,[Have OpenGL fixed-functionality]) ], [])dnl glTexEnvi is a pretty fair proxy for this.
1.53 +
1.54 +
1.55
1.56
1.57 dnl ------------------- SH4 translator target -------------------
1.58 @@ -443,6 +456,7 @@
1.59 AC_OUTPUT([
1.60 Makefile
1.61 src/Makefile
1.62 +src/tools/Makefile
1.63 po/Makefile.in
1.64 test/Makefile
1.65 Info.plist
.