gmyth-stream/gmemcoder/m4/as-compiler-flag.m4
author morphbr
Tue May 29 21:24:48 2007 +0100 (2007-05-29)
branchtrunk
changeset 718 3fbcd3d9b2d1
permissions -rwxr-xr-x
[svn r724] * GMyth-Streamer version 0.3 released
- Improved Log architecture;
- Creation of a history for the transcoder's actions
- Creation of an id for each transcoder instanciated
- Also wrapps default actions for python's default logger

- Created new functions to make use of this new Log architecture;
- serve_new_id
- serve_get_log
- serve_get_all_log

- _Lot_ of small bug fixes;

- Inserted header for all files;

- Splited files with too many lines (more than 1 class per file)
in more files;
renatofilho@584
     1
dnl as-compiler-flag.m4 0.1.0
renatofilho@584
     2
renatofilho@584
     3
dnl autostars m4 macro for detection of compiler flags
renatofilho@584
     4
renatofilho@584
     5
dnl David Schleef <ds@schleef.org>
renatofilho@584
     6
renatofilho@584
     7
dnl $Id: as-compiler-flag.m4,v 1.1 2005/06/18 18:02:46 burgerman Exp $
renatofilho@584
     8
renatofilho@584
     9
dnl AS_COMPILER_FLAG(CFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
renatofilho@584
    10
dnl Tries to compile with the given CFLAGS.
renatofilho@584
    11
dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags,
renatofilho@584
    12
dnl and ACTION-IF-NOT-ACCEPTED otherwise.
renatofilho@584
    13
renatofilho@584
    14
AC_DEFUN([AS_COMPILER_FLAG],
renatofilho@584
    15
[
renatofilho@584
    16
  AC_MSG_CHECKING([to see if compiler understands $1])
renatofilho@584
    17
renatofilho@584
    18
  save_CFLAGS="$CFLAGS"
renatofilho@584
    19
  CFLAGS="$CFLAGS $1"
renatofilho@584
    20
renatofilho@584
    21
  AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
renatofilho@584
    22
  CFLAGS="$save_CFLAGS"
renatofilho@584
    23
renatofilho@584
    24
  if test "X$flag_ok" = Xyes ; then
renatofilho@584
    25
    $2
renatofilho@584
    26
    true
renatofilho@584
    27
  else
renatofilho@584
    28
    $3
renatofilho@584
    29
    true
renatofilho@584
    30
  fi
renatofilho@584
    31
  AC_MSG_RESULT([$flag_ok])
renatofilho@584
    32
])