- updated to 1.8.0
[packages/DevIL.git] / DevIL-gnu-inline.patch
CommitLineData
b57d6474 1--- DevIL-1.7.8/devil-1.7.8/configure.ac~ 2009-03-08 21:43:03.000000000 +0100
2+++ DevIL-1.7.8/devil-1.7.8/configure.ac 2010-04-21 15:40:09.671716250 +0200
3@@ -154,6 +154,17 @@
4 AS_IF([test "x$restrict_keyword" = "xfound"],
5 [DEVIL_CHECK_RESTRICT_GNU99])
6
7+dnl checking if the -fgnu89-inline flag is available
8+TMP_CFLAGS="$CFLAGS"
9+CFLAGS="$CFLAGS -fgnu89-inline"
10+AC_MSG_CHECKING([gnu89-inline option])
11+AC_COMPILE_IFELSE([[void main(void){}]],
12+ [AC_MSG_RESULT(yes)]
13+ [CFLAGS="$TMP_CFLAGS"]
14+ [ADD_CFLAGS(-fgnu89-inline)]
15+ ,[AC_MSG_RESULT(no)]
16+ [CFLAGS="$TMP_CFLAGS"])
17+
18 dnl must add AC_CACHE_CHECK support where possible
19
20 dnl AM_MAINTAINER_MODE
This page took 0.07915 seconds and 4 git commands to generate.