Debian Codegraph @

libgcobol/configure.tgt

raw
1 # -*- shell-script -*-
2 # Copyright (C) 2025 Free Software Foundation, Inc.
3 #
4 # GCC is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
8 #
9 # GCC is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with GCC; see the file COPYING3. If not see
16 # <http://www.gnu.org/licenses/>.
17
18 # This is the target specific configuration file. This is invoked by the
19 # autoconf generated configure script. Putting it in a separate shell file
20 # lets us skip running autoconf when modifying target specific information.
21
22 # Enable the libgcobol build only on systems where it is known to work.
23 # More targets shall be added after testing.
24 # For testing, you can override this with --enable-libgcobol. (See configure.ac)
25
26 LIBGCOBOL_SUPPORTED=no
27
28 case "${target}" in
29 aarch64*-*-linux*)
30 LIBGCOBOL_SUPPORTED=yes
31 ;;
32 powerpc64le-*-linux*)
33 if test x$ac_cv_sizeof_void_p = x8; then
34 LIBGCOBOL_SUPPORTED=yes
35 fi
36 ;;
37 riscv64-*-linux*)
38 if test x$ac_cv_sizeof_void_p = x8; then
39 LIBGCOBOL_SUPPORTED=yes
40 fi
41 ;;
42 x86_64-*-linux* | i?86-*-linux* | x86_64-*-darwin*)
43 if test x$ac_cv_sizeof_void_p = x8; then
44 LIBGCOBOL_SUPPORTED=yes
45 fi
46 ;;
47 *)
48 UNSUPPORTED=1
49 ;;
50 esac