#!/bin/sh
-# Copyright (C) 2004-2012 Free Software Foundation, Inc.
+# Copyright (C) 2004-2013 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# correctly.
# Report from Ralf Corsepius.
-. ./defs || exit 1
+. test-init.sh
cat >>configure.ac <<'EOF'
AM_CONDITIONAL([INC], [test -z "$two"])
./configure --prefix="$cwd"/nowhere --bindir="$cwd"/bin \
--includedir="$cwd"/inc
$MAKE installdirs
-test ! -d bin
+test ! -e bin
test -d inc/foo
-test ! -f inc/foo/foo.h
+test ! -e inc/foo/foo.h
rm -rf inc
$MAKE install
-test ! -d bin
+test ! -e bin
test -f inc/foo/foo.h
$MAKE distdircheck
./configure two=two --prefix="$cwd"/nowhere --bindir="$cwd"/bin \
--includedir="$cwd"/inc
$MAKE install
-test ! -d inc
+test ! -e inc
test -f bin/x.sh
rm -rf inc
$MAKE installdirs
-test ! -d inc
+test ! -e inc
test -d bin
$MAKE distdircheck