Edit

kc3-lang/automake/tests/cond9.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1999-04-27 15:52:46
    Hash : 57ff67b1
    Message : * cond9.test: New file. From Raja R Harinath. * Makefile.am (TESTS): Added cond9.test.

  • 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
    
    (autoconf --version) > /dev/null 2>&1 || exit 77
    
    $ACLOCAL \
      && autoconf \
      && $AUTOMAKE -a \
      && ./configure \
      && $MAKE echo-something | grep interesting > /dev/null