File: as-compiler.m4

package info (click to toggle)
gst-plugins-bad1.0 1.0.8-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 36,832 kB
  • sloc: ansic: 297,908; cpp: 22,677; sh: 13,303; xml: 6,362; makefile: 4,867; perl: 1,435; objc: 1,273; python: 362; sed: 16
file content (44 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (80)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
dnl as-compiler.m4 0.1.0

dnl autostars m4 macro for detection of compiler flavor

dnl Thomas Vander Stichele <thomas at apestaart dot org>

dnl $Id: as-compiler.m4,v 1.4 2004/06/01 09:44:19 thomasvs Exp $

dnl AS_COMPILER(COMPILER)
dnl will set variable COMPILER to
dnl - gcc
dnl - forte
dnl - (empty) if no guess could be made

AC_DEFUN([AS_COMPILER],
[
  as_compiler=
  AC_MSG_CHECKING(for compiler flavour)

  dnl is it gcc ?
  if test "x$GCC" = "xyes"; then
    as_compiler="gcc"
  fi

  dnl is it forte ?
  AC_TRY_RUN([
int main
(int argc, char *argv[])
{
#ifdef __sun
  return 0;
#else
  return 1;
#endif
}
  ], as_compiler="forte", ,)

  if test "x$as_compiler" = "x"; then
    AC_MSG_RESULT([unknown !])
  else
    AC_MSG_RESULT($as_compiler)
  fi
  [$1]=$as_compiler
])