diff options
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure index 60cb979b558..c9e43fb80e3 100755 --- a/gcc/configure +++ b/gcc/configure @@ -734,6 +734,7 @@ INCINTL LIBINTL_DEP LIBINTL USE_NLS +get_gcc_base_ver extra_opt_files extra_modes_file NATIVE_SYSTEM_HEADER_DIR @@ -918,6 +919,7 @@ with_multilib_list enable_rpath with_libiconv_prefix enable_sjlj_exceptions +with_gcc_major_version_only enable_secureplt enable_leading_mingw64_underscores enable_cld @@ -1721,6 +1723,8 @@ Optional Packages: --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir + --with-gcc-major-version-only + use only GCC major number in filesystem paths --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] @@ -11860,6 +11864,21 @@ static struct plugin_gcc_version gcc_version = {basever, datestamp, configuration_arguments}; EOF +# Determine what GCC version number to use in filesystem paths. + + get_gcc_base_ver="cat" + +# Check whether --with-gcc-major-version-only was given. +if test "${with_gcc_major_version_only+set}" = set; then : + withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then + get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'" + fi + +fi + + + + # Internationalization # If we haven't got the data from the intl directory, # assume NLS is disabled. @@ -18414,7 +18433,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18417 "configure" +#line 18436 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -18520,7 +18539,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18523 "configure" +#line 18542 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |