diff options
Diffstat (limited to 'lto-plugin/configure')
-rwxr-xr-x | lto-plugin/configure | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/lto-plugin/configure b/lto-plugin/configure index 18b3b3f53b0..cdea9eac3ee 100755 --- a/lto-plugin/configure +++ b/lto-plugin/configure @@ -619,6 +619,7 @@ LD FGREP SED LIBTOOL +get_gcc_base_ver real_target_noncanonical accel_dir_suffix gcc_build_dir @@ -733,6 +734,7 @@ enable_maintainer_mode with_libiberty enable_dependency_tracking enable_largefile +with_gcc_major_version_only enable_shared enable_static with_pic @@ -1386,6 +1388,8 @@ Optional Packages: --with-build-libsubdir=DIR Directory where to find libraries for build system --with-libiberty=PATH specify the directory where to find libiberty [../libiberty] + --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] @@ -5376,6 +5380,21 @@ fi +# 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 + + + + case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 @@ -11450,7 +11469,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11453 "configure" +#line 11472 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11556,7 +11575,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11559 "configure" +#line 11578 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |