diff options
Diffstat (limited to 'lto-plugin/configure')
-rwxr-xr-x | lto-plugin/configure | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lto-plugin/configure b/lto-plugin/configure index 234ff90a055..1e4041bc7e7 100755 --- a/lto-plugin/configure +++ b/lto-plugin/configure @@ -601,6 +601,7 @@ ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS +LTO_FORMAT target_noncanonical CPP OTOOL64 @@ -10397,7 +10398,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10400 "configure" +#line 10401 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10503,7 +10504,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10506 "configure" +#line 10507 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10741,6 +10742,14 @@ CC="$lt_save_CC" +. ${srcdir}/../gcc/config.gcc +case ${lto_binary_reader} in + *coff*) LTO_FORMAT=coff ;; + *elf*) LTO_FORMAT=elf ;; + *) as_fn_error "LTO plugin is not supported on this target." "$LINENO" 5 ;; +esac + + ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" case $ac_cv_c_uint64_t in #( no|yes) ;; #( |