comparison libada/configure.ac @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 # Configure script for libada. 1 # Configure script for libada.
2 # Copyright (C) 2003-2018 Free Software Foundation, Inc. 2 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
3 # 3 #
4 # This file is free software; you can redistribute it and/or modify it 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 5 # under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or 6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version. 7 # (at your option) any later version.
17 17
18 sinclude(../config/acx.m4) 18 sinclude(../config/acx.m4)
19 sinclude(../config/multi.m4) 19 sinclude(../config/multi.m4)
20 sinclude(../config/override.m4) 20 sinclude(../config/override.m4)
21 sinclude(../config/picflag.m4) 21 sinclude(../config/picflag.m4)
22 sinclude(../config/toolexeclibdir.m4)
22 sinclude(../config/unwind_ipinfo.m4) 23 sinclude(../config/unwind_ipinfo.m4)
23 24
24 AC_INIT 25 AC_INIT
25 AC_PREREQ([2.64])
26 26
27 AC_CONFIG_SRCDIR([Makefile.in]) 27 AC_CONFIG_SRCDIR([Makefile.in])
28 28
29 # Determine the host, build, and target systems 29 # Determine the host, build, and target systems
30 AC_CANONICAL_BUILD 30 AC_CANONICAL_BUILD
37 37
38 # Determine the target- and build-specific subdirectories 38 # Determine the target- and build-specific subdirectories
39 GCC_TOPLEV_SUBDIRS 39 GCC_TOPLEV_SUBDIRS
40 40
41 # Command-line options. 41 # Command-line options.
42
43 AC_ARG_ENABLE(version-specific-runtime-libs,
44 [AS_HELP_STRING([--enable-version-specific-runtime-libs],
45 [specify that runtime libraries should be
46 installed in a compiler-specific directory])],
47 [case "$enableval" in
48 yes|no)
49 ;;
50 *)
51 AC_MSG_ERROR([--enable-version-specific-runtime-libs must be yes or no])
52 ;;
53 esac],
54 [enable_version_specific_runtime_libs=yes]
55 )
56
42 # Very limited version of AC_MAINTAINER_MODE. 57 # Very limited version of AC_MAINTAINER_MODE.
43 AC_ARG_ENABLE([maintainer-mode], 58 AC_ARG_ENABLE([maintainer-mode],
44 [AC_HELP_STRING([--enable-maintainer-mode], 59 [AC_HELP_STRING([--enable-maintainer-mode],
45 [enable make rules and dependencies not useful (and 60 [enable make rules and dependencies not useful (and
46 sometimes confusing) to the casual installer])], 61 sometimes confusing) to the casual installer])],
51 esac 66 esac
52 maintainer_mode=${enableval}], 67 maintainer_mode=${enableval}],
53 [MAINT='#']) 68 [MAINT='#'])
54 AC_SUBST([MAINT])dnl 69 AC_SUBST([MAINT])dnl
55 70
71 GCC_WITH_TOOLEXECLIBDIR
72
56 AM_ENABLE_MULTILIB(, ..) 73 AM_ENABLE_MULTILIB(, ..)
57 # Calculate toolexeclibdir 74 # Calculate toolexeclibdir
58 # Also toolexecdir, though it's only used in toolexeclibdir 75 # Also toolexecdir, though it's only used in toolexeclibdir
59 case ${enable_version_specific_runtime_libs} in 76 case ${enable_version_specific_runtime_libs} in
60 yes) 77 yes)
61 # Need the gcc compiler version to know where to install libraries 78 # Need the gcc compiler version to know where to install libraries
62 # and header files if --enable-version-specific-runtime-libs option 79 # and header files if --enable-version-specific-runtime-libs option
63 # is selected. 80 # is selected.
64 toolexecdir='$(libdir)/gcc/$(target_alias)' 81 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
65 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 82 toolexeclibdir='$(toolexecdir)/$(version)$(MULTISUBDIR)/adalib'
66 ;; 83 ;;
67 no) 84 no)
68 if test -n "$with_cross_host" && 85 if test -n "$with_cross_host" &&
69 test x"$with_cross_host" != x"no"; then 86 test x"$with_cross_host" != x"no"; then
70 # Install a library built with a cross compiler in tooldir, not libdir. 87 # Install a library built with a cross compiler in tooldir, not libdir.
71 toolexecdir='$(exec_prefix)/$(target_alias)' 88 toolexecdir='$(exec_prefix)/$(target_alias)'
72 toolexeclibdir='$(toolexecdir)/lib' 89 case ${with_toolexeclibdir} in
90 no)
91 toolexeclibdir='$(toolexecdir)/lib'
92 ;;
93 *)
94 toolexeclibdir=${with_toolexeclibdir}
95 ;;
96 esac
73 else 97 else
74 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 98 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
75 toolexeclibdir='$(libdir)' 99 toolexeclibdir='$(libdir)'
76 fi 100 fi
77 multi_os_directory=`$CC -print-multi-os-directory` 101 multi_os_directory=`$CC -print-multi-os-directory`
81 esac 105 esac
82 ;; 106 ;;
83 esac 107 esac
84 AC_SUBST(toolexecdir) 108 AC_SUBST(toolexecdir)
85 AC_SUBST(toolexeclibdir) 109 AC_SUBST(toolexeclibdir)
86 #TODO: toolexeclibdir is currently disregarded
87 110
88 # Check the compiler. 111 # Check the compiler.
89 # The same as in boehm-gc and libstdc++. Have to borrow it from there. 112 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
90 # We must force CC to /not/ be precious variables; otherwise 113 # We must force CC to /not/ be precious variables; otherwise
91 # the wrong, non-multilib-adjusted value will be used in multilibs. 114 # the wrong, non-multilib-adjusted value will be used in multilibs.
128 151
129 # Determine what to build for 'gnatlib' 152 # Determine what to build for 'gnatlib'
130 if test ${enable_shared} = yes; then 153 if test ${enable_shared} = yes; then
131 default_gnatlib_target="gnatlib-shared" 154 default_gnatlib_target="gnatlib-shared"
132 else 155 else
133 default_gnatlib_target="gnatlib-plain" 156 default_gnatlib_target="gnatlib"
134 fi 157 fi
135 AC_SUBST([default_gnatlib_target]) 158 AC_SUBST([default_gnatlib_target])
136 159
137 # Check for _Unwind_GetIPInfo 160 # Check for _Unwind_GetIPInfo
138 GCC_CHECK_UNWIND_GETIPINFO 161 GCC_CHECK_UNWIND_GETIPINFO