X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfigure;h=b6298b56dcf5cff306806ca927295ac7f93d8e73;hb=814f1489e9d1d92a30d94d69a0066addcc564bd2;hp=11e6ed436a1d23f655866368fa24e86fedf2ce7a;hpb=9780e045073b1719a7a4c6cbe00e4aa7525bd180;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/configure b/gas/configure index 11e6ed436a..b6298b56dc 100755 --- a/gas/configure +++ b/gas/configure @@ -640,6 +640,7 @@ target_cpu_type extra_objects cgen_cpu_prefix GDBINIT +WARN_WRITE_STRINGS NO_WERROR WARN_CFLAGS OTOOL64 @@ -664,6 +665,7 @@ CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE +am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE @@ -3702,6 +3704,7 @@ fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' + am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= @@ -3764,11 +3767,11 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. -# Always define AMTAR for backward compatibility. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' @@ -3786,6 +3789,7 @@ else # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. + rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. @@ -3845,7 +3849,7 @@ else break fi ;; - msvisualcpp | msvcmsys) + msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. @@ -10978,7 +10982,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10981 "configure" +#line 10985 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11084,7 +11088,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11087 "configure" +#line 11091 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11745,6 +11749,20 @@ fi rm -f conftest* +# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. +WARN_WRITE_STRINGS="" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__GNUC__ +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "^[0-3]$" >/dev/null 2>&1; then : + +else + WARN_WRITE_STRINGS="-Wwrite-strings" +fi +rm -f conftest* + # Check whether --enable-werror was given. if test "${enable_werror+set}" = set; then : @@ -11805,6 +11823,7 @@ fi + # Generate a header file ac_config_headers="$ac_config_headers config.h:config.in"