comparison libgfortran/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 # Process this file with autoconf to produce a configure script, like so: 1 # Process this file with autoconf to produce a configure script, like so:
2 # aclocal && autoconf && autoheader && automake 2 # aclocal && autoconf && autoheader && automake
3 3
4 AC_PREREQ(2.64)
5 AC_INIT([GNU Fortran Runtime Library], 0.3,,[libgfortran]) 4 AC_INIT([GNU Fortran Runtime Library], 0.3,,[libgfortran])
6 AC_CONFIG_HEADER(config.h) 5 AC_CONFIG_HEADER(config.h)
7 GCC_TOPLEV_SUBDIRS 6 GCC_TOPLEV_SUBDIRS
8 7
9 # ------- 8 # -------
85 LIBGFOR_IS_NATIVE=true 84 LIBGFOR_IS_NATIVE=true
86 fi 85 fi
87 86
88 AC_USE_SYSTEM_EXTENSIONS 87 AC_USE_SYSTEM_EXTENSIONS
89 88
89 GCC_WITH_TOOLEXECLIBDIR
90
90 # Calculate toolexeclibdir 91 # Calculate toolexeclibdir
91 # Also toolexecdir, though it's only used in toolexeclibdir 92 # Also toolexecdir, though it's only used in toolexeclibdir
92 case ${version_specific_libs} in 93 case ${version_specific_libs} in
93 yes) 94 yes)
94 # Need the gcc compiler version to know where to install libraries 95 # Need the gcc compiler version to know where to install libraries
100 no) 101 no)
101 if test -n "$with_cross_host" && 102 if test -n "$with_cross_host" &&
102 test x"$with_cross_host" != x"no"; then 103 test x"$with_cross_host" != x"no"; then
103 # Install a library built with a cross compiler in tooldir, not libdir. 104 # Install a library built with a cross compiler in tooldir, not libdir.
104 toolexecdir='$(exec_prefix)/$(target_alias)' 105 toolexecdir='$(exec_prefix)/$(target_alias)'
105 toolexeclibdir='$(toolexecdir)/lib' 106 case ${with_toolexeclibdir} in
107 no)
108 toolexeclibdir='$(toolexecdir)/lib'
109 ;;
110 *)
111 toolexeclibdir=${with_toolexeclibdir}
112 ;;
113 esac
106 else 114 else
107 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 115 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
108 toolexeclibdir='$(libdir)' 116 toolexeclibdir='$(libdir)'
109 fi 117 fi
110 multi_os_directory=`$CC -print-multi-os-directory` 118 multi_os_directory=`$CC -print-multi-os-directory`
312 AC_DEFINE(HAVE_STRTOLD, 1, [Define if you have strtold.]) 320 AC_DEFINE(HAVE_STRTOLD, 1, [Define if you have strtold.])
313 fi 321 fi
314 else 322 else
315 AC_CHECK_FUNCS_ONCE(getrusage times mkstemp strtof strtold snprintf \ 323 AC_CHECK_FUNCS_ONCE(getrusage times mkstemp strtof strtold snprintf \
316 ftruncate chsize chdir getentropy getlogin gethostname kill link symlink \ 324 ftruncate chsize chdir getentropy getlogin gethostname kill link symlink \
317 sleep ttyname \ 325 sleep ttyname sigaction waitpid \
318 alarm access fork setmode fcntl writev \ 326 alarm access fork posix_spawn setmode fcntl writev \
319 gettimeofday stat fstat lstat getpwuid vsnprintf dup \ 327 gettimeofday stat fstat lstat getpwuid vsnprintf dup \
320 getcwd localtime_r gmtime_r getpwuid_r ttyname_r clock_gettime \ 328 getcwd localtime_r gmtime_r getpwuid_r ttyname_r clock_gettime \
321 getgid getpid getuid geteuid umask getegid \ 329 getgid getpid getuid geteuid umask getegid \
322 secure_getenv __secure_getenv mkostemp strnlen strndup newlocale \ 330 secure_getenv __secure_getenv mkostemp strnlen strndup newlocale \
323 freelocale uselocale strerror_l) 331 freelocale uselocale strerror_l)
607 615
608 # Check out attribute support. 616 # Check out attribute support.
609 LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY 617 LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY
610 LIBGFOR_CHECK_ATTRIBUTE_ALIAS 618 LIBGFOR_CHECK_ATTRIBUTE_ALIAS
611 619
612 # Check out sync builtins support. 620 # Check out atomic builtins support.
613 LIBGFOR_CHECK_SYNC_FETCH_AND_ADD 621 LIBGFOR_CHECK_ATOMIC_FETCH_ADD
614 622
615 # Check out #pragma weak. 623 # Check out #pragma weak.
616 LIBGFOR_GTHREAD_WEAK 624 LIBGFOR_GTHREAD_WEAK
617 625
618 # Check out weakref support. 626 # Check out weakref support.