diff options
Diffstat (limited to 'libcc1/configure')
-rwxr-xr-x | libcc1/configure | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/libcc1/configure b/libcc1/configure index bf112bb..d6f480f 100755 --- a/libcc1/configure +++ b/libcc1/configure @@ -610,6 +610,7 @@ WERROR WARN_FLAGS CONFIG_STATUS_DEPENDENCIES gcc_version +get_gcc_base_ver visibility CXXCPP am__fastdepCXX_FALSE @@ -747,6 +748,7 @@ with_pic enable_fast_install with_gnu_ld enable_libtool_lock +with_gcc_major_version_only enable_werror_always enable_plugin ' @@ -1403,6 +1405,8 @@ Optional Packages: --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] + --with-gcc-major-version-only + use only GCC major number in filesystem paths Some influential environment variables: CC C compiler command @@ -10540,7 +10544,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10543 "configure" +#line 10547 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10646,7 +10650,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10649 "configure" +#line 10653 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -14305,7 +14309,25 @@ cat >>confdefs.h <<_ACEOF _ACEOF -gcc_version=`cat $srcdir/../gcc/BASE-VER` + + 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 + + + + +if test x$with_gcc_major_version_only = xyes ; then + gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER` + else + gcc_version=`cat $srcdir/../gcc/BASE-VER` +fi CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER' |