Changeset 2527


Ignore:
Timestamp:
Jul 26, 2011, 4:15:29 AM (12 years ago)
Author:
Peter
Message:

remove compiler test from configure.ac genewrated in common_defs.sh (to speed up tests not using compiler)

Location:
trunk/test
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/common_defs.sh.in

    r2520 r2527  
    119119AC_INIT([hello],[1.0])
    120120AC_CONFIG_SRCDIR([hello.cc])
    121 AM_INIT_AUTOMAKE([foreign])
    122121AC_CONFIG_MACRO_DIR([m4])
    123 AC_LANG(C++)
    124 AC_PROG_CXXCPP
    125 AC_PROG_CXX
    126122EOF
     123if (echo "$required" | grep automake > /dev/null); then
     124echo "AM_INIT_AUTOMAKE([foreign])" >> configure.ac
     125fi
    127126if (echo "$required" | grep libtool > /dev/null); then
    128127echo AC_PROG_LIBTOOL >> configure.ac
  • trunk/test/static_test.sh

    r2526 r2527  
    2929
    3030cat >> configure.ac <<EOF
     31AC_LANG([C++])
     32AC_PROG_CXXCPP
     33AC_PROG_CXX
    3134YAT_FIND_YAT
    3235CXX=\`\$yat_config --cxx\`
  • trunk/test/yat_cpp_add_flag_test.sh

    r2526 r2527  
    3030
    3131cat >> configure.ac <<EOF
     32AC_LANG([C++])
     33AC_PROG_CXXCPP
     34AC_PROG_CXX
    3235YAT_CPP_ADD_FLAG([YAT_CPPFLAGS__], [-I/usr/include])
    3336YAT_CPP_ADD_FLAG([YAT_CPPFLAGS__], [-I/usr/local/include])
  • trunk/test/yat_cxx_add_flag_test.sh

    r2526 r2527  
    3030
    3131cat >> configure.ac <<EOF
     32AC_LANG([C++])
     33AC_PROG_CXXCPP
     34AC_PROG_CXX
    3235YAT_CXX_ADD_FLAG([YAT_CXXFLAGS__], [-DSOMETHING])
    3336YAT_CXX_ADD_FLAG([YAT_CXXFLAGS__], [-DSOMETHING])
  • trunk/test/yat_ld_add_flag_test.sh

    r2526 r2527  
    3030
    3131cat >> configure.ac <<EOF
     32AC_LANG([C++])
     33AC_PROG_CXXCPP
     34AC_PROG_CXX
    3235YAT_LD_ADD_FLAG([YAT_LDFLAGS__], [-L/usr/lib])
    3336YAT_LD_ADD_FLAG([YAT_LDFLAGS__], [-L/usr/local/lib])
  • trunk/test/yat_lt_link_ifelse_test.sh

    r2520 r2527  
    3030
    3131cat >> configure.ac <<EOF
     32AC_LANG([C++])
     33AC_PROG_CXXCPP
     34AC_PROG_CXX
    3235YAT_USE_LIBTOOL_PUSH
    3336AC_MSG_CHECKING([libtool linking])
  • trunk/test/yat_m4_test.sh

    r2526 r2527  
    3030
    3131cat >> configure.ac <<EOF
     32AC_LANG([C++])
     33AC_PROG_CXXCPP
     34AC_PROG_CXX
    3235YAT_FIND_YAT
    3336CXX=\`\$yat_config --cxx\`
  • trunk/test/yat_m4_test2.sh

    r2526 r2527  
    2929
    3030cat >> configure.ac <<EOF
     31AC_LANG([C++])
     32AC_PROG_CXXCPP
     33AC_PROG_CXX
    3134YAT_FIND_YAT(,[AC_MSG_ERROR([yat_find_yat failed - see warning above])])
    3235YAT_CHECK_VERSION([1.60.2],
  • trunk/test/yat_msg_error_test.sh

    r2520 r2527  
    3030specific_msg='some specific message a51965'
    3131
    32 # don't use default configure.ac because it checks for compiler etc
    33 # which is not needed here
    34 cat > configure.ac <<EOF
    35 AC_INIT([hello],[1.0])
    36 AC_CONFIG_SRCDIR([hello.cc])
    37 AC_CONFIG_MACRO_DIR([m4])
     32cat >> configure.ac <<EOF
    3833YAT_MSG_ERROR([$specific_msg])
    3934AC_MSG_CHECKING([for something more])
  • trunk/test/yat_msg_error_test2.sh

    r2520 r2527  
    2929. ./common_defs.sh || exit 1
    3030
    31 # don't use default configure.ac because it checks for compiler etc
    32 # which is not needed here
    33 cat > configure.ac <<EOF
    34 AC_INIT([hello],[1.0])
    35 AC_CONFIG_SRCDIR([hello.cc])
    36 AC_CONFIG_MACRO_DIR([m4])
     31cat >> configure.ac <<EOF
    3732AS_IF([test x = x], [], [YAT_MSG_ERROR([some message])])
    3833AC_CONFIG_FILES([Makefile])
Note: See TracChangeset for help on using the changeset viewer.