Regenerate build system files
[dejagnu.git] / configure.ac
blob7c9a95e1990255af9a0e609845c6a159c56e2b77
1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright (C) 1992-2019, 2020 Free Software Foundation, Inc.
4 dnl
5 dnl This file is part of DejaGnu.
6 dnl
7 dnl DejaGnu is free software; you can redistribute it and/or modify it
8 dnl under the terms of the GNU General Public License as published by
9 dnl the Free Software Foundation; either version 3 of the License, or
10 dnl (at your option) any later version.
11 dnl
12 dnl DejaGnu is distributed in the hope that it will be useful, but
13 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
14 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 dnl General Public License for more details.
16 dnl
17 dnl You should have received a copy of the GNU General Public License
18 dnl along with DejaGnu; if not, write to the Free Software Foundation,
19 dnl Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
21 AC_PREREQ([2.69])
22 AC_INIT([GNU DejaGnu],[1.6.3-rc3],[bug-dejagnu@gnu.org])
23 AM_INIT_AUTOMAKE([1.14 subdir-objects])
24 AM_MAINTAINER_MODE
25 AC_PROG_MAKE_SET
27 AC_PROG_AWK
28 AC_PROG_CC
29 AC_PROG_CXX
30 AC_PROG_INSTALL
31 AC_EXEEXT
33 if test -z "$AWK"; then
34   AC_MSG_ERROR([AWK not installed])
37 # Provide an empty global site file (/dev/null) as default.
38 if test x"$DEJAGNU" = x
39 then
40   DEJAGNU="/dev/null"
42 AC_SUBST(DEJAGNU)
43 # Makefile.am arranges for DEJAGNU to be exported in the environment.
45 # Patch interpreter lines in config.* scripts to reference CONFIG_SHELL.
46 # Normally configure ensures that these scripts are run using CONFIG_SHELL
47 # and their interpreter lines are ignored, but DejaGnu also installs
48 # config.guess and the framework invokes it at runtime.
49 if test x"$SHELL" != x/bin/sh
50 then
51   AC_CONFIG_COMMANDS([scriptpatch],[
52     for file in config.guess config.sub
53     do
54       f=${ac_srcdir}/${file}
55       sed -e '1s,^@%:@!.*$,@%:@! '"${SHELL}", $f > ${f}.new
56       if test `awk 'END {print NR}' $f` != `awk 'END {print NR}' ${f}.new`
57       then
58         AC_MSG_ERROR([patching script for local shell changed line count!])
59       fi
60       mv -f ${f}.new $f
61     done
62 ], [SHELL=$SHELL])
65 AC_CONFIG_FILES([Makefile])
66 AC_OUTPUT