diff options
Diffstat (limited to 'opcodes')
-rwxr-xr-x | opcodes/configure | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/opcodes/configure b/opcodes/configure index da03f50..747c939 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -641,6 +641,7 @@ MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE NO_WMISSING_FIELD_INITIALIZERS +WARN_WRITE_STRINGS NO_WERROR WARN_CFLAGS OTOOL64 @@ -11146,7 +11147,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11149 "configure" +#line 11150 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11252,7 +11253,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11255 "configure" +#line 11256 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11535,6 +11536,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 : @@ -11594,6 +11609,7 @@ fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |