70 lines
1.4 KiB
Bash
Executable File
70 lines
1.4 KiB
Bash
Executable File
#! /bin/sh
|
|
# Copyright (C) 2002, 2003 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
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
# any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# Make sure that Automake suggest using AM_PATH_LISPDIR to define lispdir.
|
|
|
|
. ./defs || Exit 1
|
|
|
|
set -e
|
|
|
|
echo 1
|
|
|
|
cat > Makefile.am << 'END'
|
|
lisp_LISP = foo.el
|
|
END
|
|
|
|
$ACLOCAL
|
|
AUTOMAKE_fails
|
|
grep AM_PATH_LISPDIR stderr
|
|
|
|
|
|
echo 2
|
|
# Setting lispdir should not be enough.
|
|
|
|
cat > Makefile.am << 'END'
|
|
lispdir = /usr/share/emacs/site-lisp
|
|
lisp_LISP = foo.el
|
|
END
|
|
|
|
$ACLOCAL
|
|
AUTOMAKE_fails
|
|
grep AM_PATH_LISPDIR stderr
|
|
|
|
echo 3
|
|
# Setting EMACS should not be enough.
|
|
|
|
cat > Makefile.am << 'END'
|
|
EMACS = emacs
|
|
lisp_LISP = foo.el
|
|
END
|
|
|
|
$ACLOCAL
|
|
AUTOMAKE_fails
|
|
grep AM_PATH_LISPDIR stderr
|
|
|
|
|
|
echo 4
|
|
# Setting both is OK.
|
|
|
|
cat > Makefile.am << 'END'
|
|
lispdir = /usr/share/emacs/site-lisp
|
|
EMACS = emacs
|
|
lisp_LISP = foo.el
|
|
END
|
|
|
|
$ACLOCAL
|
|
$AUTOMAKE -a
|