Changeset 3113


Ignore:
Timestamp:
Nov 10, 2013, 10:47:37 AM (10 years ago)
Author:
Peter
Message:

change YAT_USE_LIBTOOL_[PUSH|POP] so it only affects the linking tests and *no longer* the compilation tests. closes #737

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/yat_lt_link_ifelse.m4

    r3090 r3113  
    4848# YAT_USE_LIBTOOL_PUSH
    4949# --------------------
    50 # Assign `$ac_link' and `$ac_compile' to use libtool. Variables are
    51 # saved so they can be restored with YAT_USE_LIBTOOL_POP
     50# Assign `$ac_link' to use libtool. Variable is saved so they can be
     51# restored with YAT_USE_LIBTOOL_POP
    5252AC_DEFUN([YAT_USE_LIBTOOL_PUSH],
    5353[
     
    5555m4_ifdef([_YAT_USE_LIBTOOL], [],
    5656  [LT_OUTPUT
    57    yat_use_libtool_ac_compile=$ac_compile;
    58    ac_compile='./libtool --mode=compile --tag=_YAT_USE_LIBTOOL_TAG '"$ac_compile";
    5957   yat_use_libtool_ac_link=$ac_link;
    6058   ac_link='./libtool --mode=link --tag=_YAT_USE_LIBTOOL_TAG '"$ac_link";
     
    7270m4_popdef([_YAT_USE_LIBTOOL])
    7371m4_ifndef([_YAT_USE_LIBTOOL], dnl
    74   [ac_compile=$yat_use_libtool_ac_compile;
    75    ac_link=$yat_use_libtool_ac_link;
     72  [ac_link=$yat_use_libtool_ac_link;
    7673  ])
    7774]) # YAT_USE_LIBTOOL_POP
  • trunk/test/yat_lt_compile_ifelse_test.sh

    r3112 r3113  
    2121
    2222# test that YAT_USE_LIBTOOL_PUSH works with AC_COMPILE_IFELSE
     23
     24# This test is obsolete as YAT_USE_LIBTOOL_PUSH no longer affects
     25# behaviour of AC_COMPILE_IFELSE, but we leave this test here as a
     26# reminder in case we would modify YAT_USE_LIBTOOL_PUSH in the future.
    2327
    2428required="autoconf automake libtool"
     
    5054bootstrap
    5155./configure $configure_opts || exit_fail
     56
     57# test that it works with --disable-static (see
     58# http://dev.thep.lu.se/yat/ticket/737#comment:18)
     59if x$enable_shared = xyes; then
     60  ./configure --disable-static || exit_fail
     61fi
     62
    5263exit_success
Note: See TracChangeset for help on using the changeset viewer.