diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/eet/m4/efl_compiler_flag.m4 | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/eet/m4/efl_compiler_flag.m4')
-rw-r--r-- | libraries/eet/m4/efl_compiler_flag.m4 | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/libraries/eet/m4/efl_compiler_flag.m4 b/libraries/eet/m4/efl_compiler_flag.m4 deleted file mode 100644 index 618c6a6..0000000 --- a/libraries/eet/m4/efl_compiler_flag.m4 +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr> | ||
2 | dnl and Albin Tonnerre <albin dot tonnerre at gmail dot com> | ||
3 | dnl That code is public domain and can be freely used or copied. | ||
4 | |||
5 | dnl Macro that checks if a compiler flag is supported by the compiler. | ||
6 | |||
7 | dnl Usage: EFL_COMPILER_FLAG(flag) | ||
8 | dnl flag is added to CFLAGS if supported. | ||
9 | |||
10 | AC_DEFUN([EFL_COMPILER_FLAG], | ||
11 | [ | ||
12 | |||
13 | CFLAGS_save="${CFLAGS}" | ||
14 | CFLAGS="${CFLAGS} $1" | ||
15 | |||
16 | AC_LANG_PUSH([C]) | ||
17 | AC_MSG_CHECKING([whether the compiler supports $1]) | ||
18 | |||
19 | AC_COMPILE_IFELSE( | ||
20 | [AC_LANG_PROGRAM([[]])], | ||
21 | [have_flag="yes"], | ||
22 | [have_flag="no"]) | ||
23 | AC_MSG_RESULT([${have_flag}]) | ||
24 | |||
25 | if test "x${have_flag}" = "xno" ; then | ||
26 | CFLAGS="${CFLAGS_save}" | ||
27 | fi | ||
28 | AC_LANG_POP([C]) | ||
29 | |||
30 | ]) | ||
31 | |||
32 | dnl Macro that checks if a linker flag is supported by the compiler. | ||
33 | |||
34 | dnl Usage: EFL_LINKER_FLAG(flag) | ||
35 | dnl flag is added to CFLAGS if supported (will be passed to ld anyway). | ||
36 | |||
37 | AC_DEFUN([EFL_LINKER_FLAG], | ||
38 | [ | ||
39 | |||
40 | CFLAGS_save="${CFLAGS}" | ||
41 | CFLAGS="${CFLAGS} $1" | ||
42 | |||
43 | AC_LANG_PUSH([C]) | ||
44 | AC_MSG_CHECKING([whether the compiler supports $1]) | ||
45 | |||
46 | AC_LINK_IFELSE( | ||
47 | [AC_LANG_PROGRAM([[]])], | ||
48 | [have_flag="yes"], | ||
49 | [have_flag="no"]) | ||
50 | AC_MSG_RESULT([${have_flag}]) | ||
51 | |||
52 | if test "x${have_flag}" = "xno" ; then | ||
53 | CFLAGS="${CFLAGS_save}" | ||
54 | fi | ||
55 | AC_LANG_POP([C]) | ||
56 | |||
57 | ]) | ||