Changeset 2245


Ignore:
Timestamp:
Apr 21, 2010, 3:46:24 PM (12 years ago)
Author:
Peter
Message:

first version of macro YAT_LT_LINK_IFELSE. Currently limited to C++ and the output in config.log should probably be limited. refs #496

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/Makefile.am

    r2202 r2245  
    2424
    2525EXTRA_DIST = yat.m4
     26
     27## if we don't use the macro, we need to tell automake to include it in dist
     28EXTRA_DIST += yat_lt_link_ifelse.m4
  • trunk/m4/yat_common.m4

    r2242 r2245  
    11## $Id$
    22#
    3 # Copyright (C) 2009 Peter Johansson
     3# Copyright (C) 2009, 2010 Peter Johansson
    44#
    55# This file is part of the yat library, http://dev.thep.lu.se/yat
     
    2222# This file contains some small useful macros.
    2323#
    24 # serial 0
     24# serial 1
    2525#
    2626
     
    4242[
    4343  AC_PREREQ([2.58])
    44   AS_VAR_PUSHDEF([COMMAND], [$1])
    45   COMMAND >&AS_MESSAGE_LOG_FD 2>conftest.err
     44  yat_command="$1";
     45  YAT_ECHO_LOG([$yat_command])
     46  $yat_command >&AS_MESSAGE_LOG_FD 2>conftest.err
    4647  yat_status=$?
    47   YAT_ECHO_LOG([COMMAND])
    4848  YAT_ECHO_LOG([status: $yat_status])
    4949  AS_IF([test $yat_status == 0], [$2],
  • trunk/test/Makefile.am

    r2237 r2245  
    8484yat_cxx_add_flag_test.sh \
    8585yat_ld_add_flag_test.sh \
     86yat_lt_link_ifelse_test.sh \
    8687yat_m4_test.sh \
    8788yat_m4_test2.sh
Note: See TracChangeset for help on using the changeset viewer.