X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=bootstrap.sh;h=105822cf38a1bd8422cbd89b2cd145ddf2bd0062;hb=099d030487cb45bb61af17b07ae4361b8a3ea8c6;hp=606d63d660ad01574b207c4d6729ed203f87d08c;hpb=a8307570ed163de48393092f56360cea9c6e0a02;p=awesomized%2Flibmemcached diff --git a/bootstrap.sh b/bootstrap.sh index 606d63d6..105822cf 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -388,8 +388,7 @@ function run_configure () # Set ENV ASSERT in order to enable assert. # If we are doing a valgrind run, we always compile with assert disabled if $valgrind_run; then - BUILD_CONFIGURE_ARG+= " CXXFLAGS=-DNDEBUG " - BUILD_CONFIGURE_ARG+= " CFLAGS=-DNDEBUG " + BUILD_CONFIGURE_ARG+= '--enable-assert=no' else if $DEBUG; then BUILD_CONFIGURE_ARG+=' --enable-debug --enable-assert' @@ -573,7 +572,7 @@ function make_valgrind () # If we don't have a configure, then most likely we will be missing libtool assert_file 'configure' - if [[ -f 'libtool' ]]; then + if [[ -x 'libtool' ]]; then TESTS_ENVIRONMENT="./libtool --mode=execute $VALGRIND_COMMAND" else TESTS_ENVIRONMENT="$VALGRIND_COMMAND" @@ -890,21 +889,6 @@ function make_for_continuus_integration () assert_no_file 'Makefile' 'Programmer error, Makefile existed where build state should have been clean' case $HOST_OS in - *-fedora-*) - run_configure - - assert_exec_file 'configure' - assert_file 'Makefile' - - make_target 'all' - - # make rpm includes "make distcheck" - if [[ -f rpm.am ]]; then - make_rpm - elif [[ -d rpm ]]; then - make_rpm - fi - ;; *) make_jenkins_default ;; @@ -1714,6 +1698,12 @@ function main () # We don't want Jenkins overriding other variables, so we NULL them. if [ -z "$MAKE_TARGET" ]; then if $jenkins_build_environment; then + if [[ -n "$label" ]]; then + check_make_target $label + if [ $? -eq 0 ]; then + MAKE_TARGET="$label" + fi + fi if [[ -n "$LABEL" ]]; then check_make_target $LABEL if [ $? -eq 0 ]; then