Debian Codegraph @

libgrust/configure.ac

raw
1 AC_INIT([libgrust], version-unused,,libgrust)
2 AC_CONFIG_SRCDIR(Makefile.am)
3 AC_CONFIG_FILES([Makefile])
4
5 if test -n "${with_target_subdir}"; then
6 AM_ENABLE_MULTILIB(, ..)
7 fi
8
9 # Do not delete or change the following two lines. For why, see
10 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
11 AC_CANONICAL_SYSTEM
12 target_alias=${target_alias-$host_alias}
13 AC_SUBST(target_alias)
14
15 # Automake should never attempt to rebuild configure
16 AM_MAINTAINER_MODE
17
18 AM_INIT_AUTOMAKE([1.15.1 foreign no-dist -Wall])
19
20 # Make sure we don't test executables when making cross-tools.
21 GCC_NO_EXECUTABLES
22
23
24 # Add the ability to change LIBTOOL directory
25 GCC_WITH_TOOLEXECLIBDIR
26
27 # Use system specific extensions
28 AC_USE_SYSTEM_EXTENSIONS
29
30
31 # Checks for header files.
32 AC_HEADER_STDC
33 AC_HEADER_SYS_WAIT
34 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h \
35 time.h sys/stat.h wchar.h)
36
37 AC_ARG_ENABLE([werror],
38 [AS_HELP_STRING([--disable-werror], [disable building with -Werror])])
39
40 # Add CET specific flags if CET is enabled
41 GCC_CET_FLAGS(CET_FLAGS)
42 XCFLAGS="$XCFLAGS $CET_FLAGS"
43
44 # Check for tools
45 AM_PROG_AR
46 AC_PROG_CC
47 AC_PROG_CXX
48 AM_PROG_AS
49 AC_PROG_MAKE_SET
50 AC_PROG_INSTALL
51
52 # Enable libtool
53 LT_INIT
54
55 # target_noncanonical variables...
56 AC_CANONICAL_HOST
57 ACX_NONCANONICAL_HOST
58 ACX_NONCANONICAL_TARGET
59 GCC_TOPLEV_SUBDIRS
60
61 AC_MSG_CHECKING([for --enable-version-specific-runtime-libs])
62 AC_ARG_ENABLE(version-specific-runtime-libs,
63 [ --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory ],
64 [case "$enableval" in
65 yes) version_specific_libs=yes ;;
66 no) version_specific_libs=no ;;
67 *) AC_MSG_ERROR([Unknown argument to enable/disable version-specific libs]);;
68 esac],
69 [version_specific_libs=no])
70 AC_MSG_RESULT($version_specific_libs)
71
72 toolexecdir=no
73 toolexeclibdir=no
74
75 # Calculate toolexeclibdir
76 # Also toolexecdir, though it's only used in toolexeclibdir
77 case ${version_specific_libs} in
78 yes)
79 # Need the gcc compiler version to know where to install libraries
80 # and header files if --enable-version-specific-runtime-libs option
81 # is selected.
82 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
83 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
84 ;;
85 no)
86 if test -n "$with_cross_host" &&
87 test x"$with_cross_host" != x"no"; then
88 # Install a library built with a cross compiler in tooldir, not libdir.
89 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
90 toolexeclibdir='$(toolexecdir)/lib'
91 else
92 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
93 toolexeclibdir='$(libdir)'
94 fi
95 multi_os_directory=`$CC -print-multi-os-directory`
96 case $multi_os_directory in
97 .) ;; # Avoid trailing /.
98 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
99 esac
100 ;;
101 esac
102
103 AC_SUBST(toolexecdir)
104 AC_SUBST(toolexeclibdir)
105
106 AM_CONDITIONAL(TARGET_LIBRARY, test -n "$with_target_subdir")
107
108 AC_CONFIG_FILES([libformat_parser/Makefile])
109
110 AC_CONFIG_FILES(AC_FOREACH([DIR], [libproc_macro_internal], [DIR/Makefile ]),
111 [ cat > vpsed$$ << \_EOF
112 s!`test -f '$<' || echo '$(srcdir)/'`!!
113 _EOF
114 sed -f vpsed$$ $ac_file > tmp$$
115 mv tmp$$ $ac_file
116 rm vpsed$$
117 echo 'MULTISUBDIR =' >> $ac_file
118 ml_norecursion=yes
119 AS_UNSET([ml_norecursion])
120 ])
121
122 GCC_BASE_VER
123
124 AC_MSG_NOTICE([libgrust has been configured.])
125
126 AC_OUTPUT