Mercurial > hg > CbC > CbC_gcc
comparison libsanitizer/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 # -*- Autoconf -*- | 1 # -*- Autoconf -*- |
2 # Process this file with autoconf to produce a configure script. | 2 # Process this file with autoconf to produce a configure script. |
3 | 3 |
4 AC_PREREQ([2.64]) | |
5 AC_INIT(package-unused, version-unused, libsanitizer) | 4 AC_INIT(package-unused, version-unused, libsanitizer) |
6 AC_CONFIG_SRCDIR([include/sanitizer/common_interface_defs.h]) | 5 AC_CONFIG_SRCDIR([include/sanitizer/common_interface_defs.h]) |
7 | 6 |
8 AM_ENABLE_MULTILIB(, ..) | 7 AM_ENABLE_MULTILIB(, ..) |
9 | 8 |
27 AC_SUBST(target_alias) | 26 AC_SUBST(target_alias) |
28 GCC_LIBSTDCXX_RAW_CXX_FLAGS | 27 GCC_LIBSTDCXX_RAW_CXX_FLAGS |
29 | 28 |
30 AM_INIT_AUTOMAKE(foreign no-dist) | 29 AM_INIT_AUTOMAKE(foreign no-dist) |
31 AM_MAINTAINER_MODE | 30 AM_MAINTAINER_MODE |
31 | |
32 GCC_WITH_TOOLEXECLIBDIR | |
32 | 33 |
33 # Calculate toolexeclibdir | 34 # Calculate toolexeclibdir |
34 # Also toolexecdir, though it's only used in toolexeclibdir | 35 # Also toolexecdir, though it's only used in toolexeclibdir |
35 case ${version_specific_libs} in | 36 case ${version_specific_libs} in |
36 yes) | 37 yes) |
43 no) | 44 no) |
44 if test -n "$with_cross_host" && | 45 if test -n "$with_cross_host" && |
45 test x"$with_cross_host" != x"no"; then | 46 test x"$with_cross_host" != x"no"; then |
46 # Install a library built with a cross compiler in tooldir, not libdir. | 47 # Install a library built with a cross compiler in tooldir, not libdir. |
47 toolexecdir='$(exec_prefix)/$(target_alias)' | 48 toolexecdir='$(exec_prefix)/$(target_alias)' |
48 toolexeclibdir='$(toolexecdir)/lib' | 49 case ${with_toolexeclibdir} in |
50 no) | |
51 toolexeclibdir='$(toolexecdir)/lib' | |
52 ;; | |
53 *) | |
54 toolexeclibdir=${with_toolexeclibdir} | |
55 ;; | |
56 esac | |
49 else | 57 else |
50 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | 58 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' |
51 toolexeclibdir='$(libdir)' | 59 toolexeclibdir='$(libdir)' |
52 fi | 60 fi |
53 multi_os_directory=`$CC -print-multi-os-directory` | 61 multi_os_directory=`$CC -print-multi-os-directory` |
251 if test "$have_mmap" = "no"; then | 259 if test "$have_mmap" = "no"; then |
252 VIEW_FILE=read.lo | 260 VIEW_FILE=read.lo |
253 ALLOC_FILE=alloc.lo | 261 ALLOC_FILE=alloc.lo |
254 else | 262 else |
255 VIEW_FILE=mmapio.lo | 263 VIEW_FILE=mmapio.lo |
256 AC_PREPROC_IFELSE([ | 264 AC_PREPROC_IFELSE([AC_LANG_SOURCE([ |
257 #include <sys/mman.h> | 265 #include <sys/mman.h> |
258 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) | 266 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) |
259 #error no MAP_ANONYMOUS | 267 #error no MAP_ANONYMOUS |
260 #endif | 268 #endif |
261 ], [ALLOC_FILE=mmap.lo], [ALLOC_FILE=alloc.lo]) | 269 ])], [ALLOC_FILE=mmap.lo], [ALLOC_FILE=alloc.lo]) |
262 fi | 270 fi |
263 AC_SUBST(VIEW_FILE) | 271 AC_SUBST(VIEW_FILE) |
264 AC_SUBST(ALLOC_FILE) | 272 AC_SUBST(ALLOC_FILE) |
265 | 273 |
266 BACKTRACE_USES_MALLOC=0 | 274 BACKTRACE_USES_MALLOC=0 |
279 have_dl_iterate_phdr=no | 287 have_dl_iterate_phdr=no |
280 else | 288 else |
281 # When built as a GCC target library, we can't do a link test. | 289 # When built as a GCC target library, we can't do a link test. |
282 AC_EGREP_HEADER([dl_iterate_phdr], [link.h], [have_dl_iterate_phdr=yes], | 290 AC_EGREP_HEADER([dl_iterate_phdr], [link.h], [have_dl_iterate_phdr=yes], |
283 [have_dl_iterate_phdr=no]) | 291 [have_dl_iterate_phdr=no]) |
284 case "${host}" in | |
285 *-*-solaris2.10*) | |
286 # Avoid dl_iterate_phdr on Solaris 10, where it is in the | |
287 # header file but is only in -ldl. | |
288 have_dl_iterate_phdr=no ;; | |
289 esac | |
290 fi | 292 fi |
291 if test "$have_dl_iterate_phdr" = "yes"; then | 293 if test "$have_dl_iterate_phdr" = "yes"; then |
292 AC_DEFINE(HAVE_DL_ITERATE_PHDR, 1, [Define if dl_iterate_phdr is available.]) | 294 AC_DEFINE(HAVE_DL_ITERATE_PHDR, 1, [Define if dl_iterate_phdr is available.]) |
293 fi | 295 fi |
294 | 296 |