From ca37d49a63a8ec9ccea471fab39bc03cc5867b33 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 14 Mar 2016 08:54:06 +0000 Subject: [PATCH] Summary: libcc1: rerun configure when gcc/BASE-VER changes * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute. * configure: Regenerate. * Makefile.in: Regenerate. From-SVN: r234176 --- libcc1/ChangeLog | 6 ++++++ libcc1/Makefile.in | 1 + libcc1/configure | 35 +++++++++++++++++++++++++++++++---- libcc1/configure.ac | 1 + 4 files changed, 39 insertions(+), 4 deletions(-) diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index 2aaceda2dd0..1efcb68e04b 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,3 +1,9 @@ +2016-03-14 Andreas Schwab + + * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute. + * configure: Regenerate. + * Makefile.in: Regenerate. + 2015-06-25 Richard Sandiford * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash diff --git a/libcc1/Makefile.in b/libcc1/Makefile.in index 83a1ec8c431..9e003682363 100644 --- a/libcc1/Makefile.in +++ b/libcc1/Makefile.in @@ -151,6 +151,7 @@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ +CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ diff --git a/libcc1/configure b/libcc1/configure index bbd3e724175..bf112bb4671 100755 --- a/libcc1/configure +++ b/libcc1/configure @@ -608,6 +608,7 @@ libsuffix GMPINC WERROR WARN_FLAGS +CONFIG_STATUS_DEPENDENCIES gcc_version visibility CXXCPP @@ -8511,7 +8512,7 @@ _LT_EOF if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no @@ -10539,7 +10540,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10542 "configure" +#line 10543 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10645,7 +10646,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10648 "configure" +#line 10649 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -13403,7 +13404,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) @@ -14306,6 +14307,14 @@ _ACEOF gcc_version=`cat $srcdir/../gcc/BASE-VER` +CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER' + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu WARN_FLAGS= save_CFLAGS="$CFLAGS" @@ -14351,8 +14360,20 @@ $as_echo "$ac_res" >&6; } fi done CFLAGS="$save_CFLAGS" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + WERROR= # Check whether --enable-werror-always was given. if test "${enable_werror_always+set}" = set; then : @@ -14365,6 +14386,12 @@ if test $enable_werror_always = yes; then : WERROR="$WERROR${WERROR:+ }-Werror" fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + diff --git a/libcc1/configure.ac b/libcc1/configure.ac index 6c97afdf9c7..e2e3fdae0b4 100644 --- a/libcc1/configure.ac +++ b/libcc1/configure.ac @@ -50,6 +50,7 @@ AC_CHECK_DECLS([basename]) gcc_version=`cat $srcdir/../gcc/BASE-VER` AC_SUBST(gcc_version) +AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/../gcc/BASE-VER']) ACX_PROG_CC_WARNING_OPTS([-W -Wall], [WARN_FLAGS]) AC_SUBST(WARN_FLAGS)