1 # Configure script for libada.
2 # Copyright 2003, 2004 Free Software Foundation, Inc.
4 # This file is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 AC_CONFIG_SRCDIR([Makefile.in])
21 # This is an autoconf 2.5x script.
24 # Very limited version of AC_MAINTAINER_MODE.
27 AC_HELP_STRING([--enable-maintainer-mode],
28 [enable make rules and dependencies not useful (and
29 sometimes confusing) to the casual installer]),
30 [case ${enable_maintainer_mode} in
33 *) AC_MSG_ERROR([--enable-maintainer-mode must be yes or no]) ;;
35 maintainer_mode=${enableval}],
39 # Start of actual configure tests
41 # Output: create a Makefile.
42 AC_CONFIG_FILES([Makefile])
47 [ --disable-shared don't provide a shared libgnat],
49 case $enable_shared in
53 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
54 for pkg in $enableval; do
55 if test "$pkg" = "ada" || test "$pkg" = "libada"; then
62 ], [enable_shared=yes])
63 AC_SUBST(enable_shared)