summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/flac/m4/really_gcc.m4
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2023-12-06 17:12:21 +1100
committer Vas Crabb <vas@vastheman.com>2023-12-06 17:12:45 +1100
commit414c5ce5a54d242ccc0303b4f94e8d7cfe651570 (patch)
treed4f74eb35d22b58f33eecc3e3cf2529703c8be2a /3rdparty/flac/m4/really_gcc.m4
parentfaf991a563a9bf8adc7aeee80001606d58857b99 (diff)
3rdparty: Renamed libflac to flac - it's a full FLAC distribution, libFLAC is just a small part of it.
Diffstat (limited to '3rdparty/flac/m4/really_gcc.m4')
-rw-r--r--3rdparty/flac/m4/really_gcc.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/3rdparty/flac/m4/really_gcc.m4 b/3rdparty/flac/m4/really_gcc.m4
new file mode 100644
index 00000000000..8bc94d5eb4a
--- /dev/null
+++ b/3rdparty/flac/m4/really_gcc.m4
@@ -0,0 +1,29 @@
+dnl @synopsis XIPH_GCC_REALLY_IS_GCC
+dnl
+dnl Find out if a compiler claiming to be gcc really is gcc (clang lies).
+dnl @version 1.0 Oct 31 2013
+dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
+dnl
+dnl Permission to use, copy, modify, distribute, and sell this file for any
+dnl purpose is hereby granted without fee, provided that the above copyright
+dnl and this permission notice appear in all copies. No representations are
+dnl made about the suitability of this software for any purpose. It is
+dnl provided "as is" without express or implied warranty.
+dnl
+
+# If the configure script has already detected GNU GCC, then make sure it
+# isn't CLANG masquerading as GCC.
+
+AC_DEFUN([XIPH_GCC_REALLY_IS_GCC],
+[ AC_LANG_ASSERT(C)
+ if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ ]], [[
+ #ifdef __clang__
+ This is clang!
+ #endif
+ ]])],[ac_cv_c_compiler_gnu=yes],[ac_cv_c_compiler_gnu=no
+ ])
+ fi
+])