Changeset 3110
- Timestamp:
- Nov 10, 2013, 12:42:16 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r3091 r3110 495 495 AC_SUBST([enable_static]) 496 496 497 # Name of directory libtool put stuff int - needed for some tests 498 AC_SUBST([lt_cv_objdir]) 499 497 500 YAT_SVN_RELEASE([am/maintainer.am]) 498 501 -
trunk/test/defs.sh.in
r3100 r3110 125 125 abs_top_builddir=@abs_top_builddir@ 126 126 abs_top_srcdir=@abs_top_srcdir@ 127 lt_cv_objdir=@lt_cv_objdir@ 127 128 have_doxygen="@have_doxygen@" 128 129 mkdir_p="@MKDIR_P@ --verbose" -
trunk/test/gen_libmy_static.sh
r3041 r3110 26 26 cd $test_dir 27 27 28 # redefine so we can call check_requir mentwithout exit28 # redefine so we can call check_requirements without exit 29 29 exit_skip () 30 30 { … … 32 32 } 33 33 34 required=" autoconf automakestatic"34 required="static" 35 35 check_requirements > stdout 2> stderr 36 36 37 # if requir ments are misssing we just create an empty dummy file (to37 # if requirements are misssing we just create an empty dummy file (to 38 38 # avoid triggering the make target over and over again) 39 39 if test x$req_failed = xyes; then … … 43 43 fi 44 44 45 cat > configure.ac <<EOF 46 AC_INIT([foo], [1]) 47 AM_INIT_AUTOMAKE([foreign]) 48 AC_PROG_CXX 49 AC_PROG_RANLIB 50 AC_CONFIG_FILES([Makefile]) 51 AC_OUTPUT 52 EOF 45 # include to get variable $old_library 46 . $abs_top_builddir/yat/libyat.la 47 test x"${old_library}" != x"" || exit 1 53 48 54 cat > Makefile.am <<EOF 55 lib_LIBRARIES = libmy-static.a 56 libmy_static_a_SOURCES = foo.cc 57 EOF 58 59 cat > foo.cc <<EOF 60 int foo_static(void) { return 0; } 61 EOF 62 63 verbose= 64 bootstrap 65 ./configure --prefix=$abs_top_builddir/test || exit 1 66 67 unset MAKEFLAGS 68 make install V=0 || exit 1 49 cp $abs_top_builddir/yat/${lt_cv_objdir}/${old_library} \ 50 $abs_top_builddir/test/lib/libmy-static.a 69 51 exit 0 -
trunk/test/yat_lt_link_la_ifelse_test.sh
r3100 r3110 52 52 AC_MSG_CHECKING([whether linking against -lmy-static works]) 53 53 YAT_LT_LINK_LA_IFELSE([ 54 int foo_static(void); 55 int my_func(void) { return foo_static(); } 54 namespace theplu { 55 namespace yat { 56 namespace utility { 57 int version(void); 58 }}} 59 int my_func(void) { return theplu::yat::utility::version(); } 56 60 ],[ 57 61 AC_MSG_RESULT([yes]) 58 AC_MSG_FAILURE 62 AC_MSG_FAILURE([expected configure to fail]) 59 63 ],[ 60 64 AC_MSG_RESULT([no])
Note: See TracChangeset
for help on using the changeset viewer.