#! /bin/sh # Copyright (C) 2002 Free Software Foundation, Inc. # # This file is part of GNU Automake. # # GNU Automake 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. # # GNU Automake 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 autoconf; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # Test case for Ada support. . ./defs || exit 1 set -e cat >>configure.in <<'END' AM_PROG_ADA AC_OUTPUT END cat >Makefile.am <<'END' bin_PROGRAMS = helloworld helloworld_SOURCES = \ hello.adb \ hello.ads \ helloworld.adb \ world.adb \ world.ads END cat >helloworld.adb <<'END' with Hello; with World; procedure Helloworld is begin Hello.Put; World.Put; end Helloworld; END cat >hello.ads <<'END' package Hello is procedure Put; end Hello; END cat >hello.adb <<'END' with Ada.Text_Io; package body Hello is procedure Put is begin Ada.Text_Io.Put ("Hello "); end Put; end Hello; END cat >world.ads <<'END' package World is procedure Put; end World; END cat >world.adb <<'END' with Ada.Text_Io; package body World is procedure Put is begin Ada.Text_Io.Put_Line ("World!"); end Put; end World; END $ACLOCAL $AUTOCONF $AUTOMAKE ./configure $MAKE ./helloworld | grep 'Hello World'