Ignore:
Timestamp:
Apr 11, 2010, 5:06:16 PM (12 years ago)
Author:
Peter
Message:

Required .m4 files no longer need to be set in variable
'required'. The files are not copied manually anymore but we let
aclocal do the job. Modified tests to reflect this change.

File:
1 edited

Legend:

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

    r2228 r2240  
    3535bootstrap ()
    3636{
    37     autoreconf -siv && true
    38     res=$?
    39     case $res in
    40   0)
    41       :;;
    42   63)
    43       exit 77;;
    44   *)
    45       exit $res;;
    46     esac
     37    @MKDIR_P@ m4
     38    autoreconf -siv && true
     39    res=$?
     40    case $res in
     41        0)
     42            :;;
     43        63)
     44            exit 77;;
     45        *)
     46            exit $res;;
     47    esac
    4748}
    4849
     
    6061      (echo "$me: running libtool --version" && libtool --version) || \
    6162      (echo "$me: running glibtool --version" && glibtool --version) || exit 77
    62       ;;
    63       *.m4)
    64       : # do nothing see below
    6563      ;;
    6664      *)
     
    10199echo "creating Makefile.am"
    102100cat > Makefile.am <<EOF
    103 ACLOCAL_AMFLAGS = -I m4
    104 # dependency to rerun configure
    105 CONFIG_STATUS_DEPENDENCIES = $abs_top_builddir/build_support/yat-config
     101ACLOCAL_AMFLAGS = -I m4 -I ${abs_top_srcdir}/m4 --install
    106102AM_CPPFLAGS = \$(YAT_CPPFLAGS)
    107103AM_CXXFLAGS = \$(YAT_CXXFLAGS)
     
    136132fi #end of creation of autotool files
    137133
    138 if test -n "$required"; then
    139   for tool in $required; do
    140     case $tool in
    141       *.m4)
    142       @MKDIR_P@ --verbose m4
    143       echo "copying $tool"
    144       cp @abs_top_srcdir@/m4/$tool m4/$tool
    145       ;;
    146       *)
    147       :
    148     esac
    149   done
    150 fi
    151  
    152134# turn on shell traces when in verbose mode
    153135set -x
Note: See TracChangeset for help on using the changeset viewer.