| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 | #! /bin/sh# Copyright (C) 2001-2017 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/>.# Test to make sure that '.o' and '.obj' are handled like '.$(OBJEXT)'.# See also related "grepping" test 'suffix6.sh'.. test-init.shcat >> configure.ac << 'END'# $(LINK) is not defined automatically by Automake, since the *_SOURCES# variables don't contain any known extension (.c, .cc, .f ...),# So we need this hack -- but since such an hack can also serve as a# mild stress test, that's ok.OBJEXT=${OBJEXT-oOo}AC_SUBST([LINK], ['cat >$@'])AC_SUBST([EXEEXT], [.XxX])AC_SUBST([OBJEXT])AC_OUTPUTENDunset OBJEXTcat > Makefile.am << 'END'SUFFIXES = .zoo .o .obj .@OBJEXT@bin_PROGRAMS = foofoo_SOURCES = foo.zoo.zoo.o:	{ echo '=.zoo.o=' && cat $<; } >$@.zoo.obj:	{ echo '=.zoo.obj=' && cat $<; } >$@.zoo.@OBJEXT@:	{ echo '=.zoo.@OBJEXT@=' && cat $<; } >$@END$ACLOCAL$AUTOCONF$AUTOMAKE./configurecat > foo.exp <<'END'=.zoo.oOo=%ONE%ENDecho %ONE% > foo.zoo$MAKEcat foo.oOocat foo.XxXdiff foo.XxX foo.exprm -f foo.* expcat > foo.exp <<'END'=.zoo.o=%TWO%ENDecho %TWO% > foo.zoorun_make OBJEXT=ocat foo.ocat foo.XxXdiff foo.XxX foo.exprm -f foo.* expcat > foo.exp <<'END'=.zoo.obj=%THREE%ENDecho %THREE% > foo.zoorun_make OBJEXT=objcat foo.objcat foo.XxXdiff foo.XxX foo.exprm -f foo.* exp:
 |