mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
For support of new GCC v4, obtain the full and major versions of the
llvm-gcc command. This will help distinguish which version is being used so the makefiles can accommodate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
253b9e7750
commit
7917d3af3f
@ -167,6 +167,8 @@ LLVMGCC := @LLVMGCC@
|
|||||||
LLVMGXX := @LLVMGXX@
|
LLVMGXX := @LLVMGXX@
|
||||||
LLVMCC1 := @LLVMCC1@
|
LLVMCC1 := @LLVMCC1@
|
||||||
LLVMCC1PLUS := @LLVMCC1PLUS@
|
LLVMCC1PLUS := @LLVMCC1PLUS@
|
||||||
|
LLVMGCC_VERSION := @LLVMGCC_VERSION@
|
||||||
|
LLVMGCC_MAJVERS := @LLVMGCC_MAJVERS@
|
||||||
|
|
||||||
# Path to directory where object files should be stored during a build.
|
# Path to directory where object files should be stored during a build.
|
||||||
# Set OBJ_ROOT to "." if you do not want to use a separate place for
|
# Set OBJ_ROOT to "." if you do not want to use a separate place for
|
||||||
|
@ -592,6 +592,10 @@ if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
|
|||||||
AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath)
|
AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath)
|
||||||
llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
|
llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
|
||||||
AC_SUBST(LLVMGCCDIR,$llvmgccdir)
|
AC_SUBST(LLVMGCCDIR,$llvmgccdir)
|
||||||
|
llvmgccversion=[`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`]
|
||||||
|
llvmgccmajvers=[`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`]
|
||||||
|
AC_SUBST(LLVMGCC_VERSION,$llvmgccversion)
|
||||||
|
AC_SUBST(LLVMGCC_MAJVERS,$llvmgccmajvers)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Propagate the shared library extension that the libltdl checks did to
|
dnl Propagate the shared library extension that the libltdl checks did to
|
||||||
|
10
configure
vendored
10
configure
vendored
@ -476,7 +476,7 @@ ac_includes_default="\
|
|||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif"
|
#endif"
|
||||||
|
|
||||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
|
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
@ -30696,6 +30696,12 @@ if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
|
|||||||
llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
|
llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
|
||||||
LLVMGCCDIR=$llvmgccdir
|
LLVMGCCDIR=$llvmgccdir
|
||||||
|
|
||||||
|
llvmgccversion=`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`
|
||||||
|
llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
|
||||||
|
LLVMGCC_VERSION=$llvmgccversion
|
||||||
|
|
||||||
|
LLVMGCC_MAJVERS=$llvmgccmajvers
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SHLIBEXT=$libltdl_cv_shlibext
|
SHLIBEXT=$libltdl_cv_shlibext
|
||||||
@ -31584,6 +31590,8 @@ s,@MMAP_FILE@,$MMAP_FILE,;t t
|
|||||||
s,@LLVMCC1@,$LLVMCC1,;t t
|
s,@LLVMCC1@,$LLVMCC1,;t t
|
||||||
s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
|
s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
|
||||||
s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
|
s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
|
||||||
|
s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
|
||||||
|
s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
|
||||||
s,@SHLIBEXT@,$SHLIBEXT,;t t
|
s,@SHLIBEXT@,$SHLIBEXT,;t t
|
||||||
s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
|
s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
|
||||||
s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
|
s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user