Edit

kc3-lang/automake/tests/cond9.test

Branch :

  • Show log

    Commit

  • Author : Akim Demaille
    Date : 2001-01-26 14:21:37
    Hash : dc9a4021
    Message : * m4/depend.m4 (AM_DEPENDENCIES): Don't leave `AC_PROG_CC' etc. in clear. * m4/init.m4: Likewise. * m4/sanity.m4: s/conftestfile/conftest.file/.

  • tests/cond9.test
  • #! /bin/sh
    
    # Test for bug in conditionals.  From Raja R Harinath.
    
    . $srcdir/defs || exit 1
    
    cat > configure.in << 'END'
    AC_INIT(Makefile.am)
    AM_INIT_AUTOMAKE(foo,0.0)
    AM_CONDITIONAL(FALSE, [test x = y])
    AC_OUTPUT(Makefile)
    END
    
    cat > Makefile.am << 'END'
    if FALSE
    this=
    else
    this=is_something_interesting
    endif
    
    echo-something:
    	echo '$(this)'
    END
    
    $needs_autoconf
    
    $ACLOCAL \
      && $AUTOCONF \
      && $AUTOMAKE -a \
      && ./configure \
      && $MAKE echo-something | grep interesting > /dev/null