diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-27 21:35:06 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-27 21:35:06 +0300 |
commit | eeb0b5d5b0791c580e49e7a6ca4f844f2a0edabb (patch) | |
tree | b6e6cb82c81abe75d56fc82b5fd7957e15d8304d | |
parent | c7882f59b6e5e4bb142928939264ca0c9af8e129 (diff) | |
download | egawk-eeb0b5d5b0791c580e49e7a6ca4f844f2a0edabb.tar.gz egawk-eeb0b5d5b0791c580e49e7a6ca4f844f2a0edabb.tar.bz2 egawk-eeb0b5d5b0791c580e49e7a6ca4f844f2a0edabb.zip |
Add configure option to enable severe portability problems.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | configh.in | 3 | ||||
-rwxr-xr-x | configure | 13 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | pc/config.h | 6 |
6 files changed, 37 insertions, 0 deletions
@@ -3,6 +3,12 @@ * awkgram.y (check_for_bad): Bitwise-and the bad character with 0xFF to avoid sign extension into a large integer. + Unrelated: + + * configure.ac: Add an option to enable locale letters in identifiers. + Undocumented and subject to being rescinded at any time in the future. + * NEWS: Mention to look at configure --help. + 2014-09-23 Arnold D. Robbins <arnold@skeeve.com> * awkgram.y (yylex): Don't check for junk characters inside @@ -27,6 +27,9 @@ Changes from 4.1.1 to 4.1.2 beside those of the English alphabet in identifiers. This has been fixed. (isalpha and isalnum are NOT our friends.) + If you feel that you must have this misfeature, use `configure --help' + to see what option to use when configuring gawk to reenable it. + XX. A number of bugs have been fixed. See the ChangeLog. Changes from 4.1.0 to 4.1.1 @@ -320,6 +320,9 @@ /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL +/* enable severe portability problems */ +#undef I_DONT_KNOW_WHAT_IM_DOING + /* libc is broken for regex handling */ #undef LIBC_IS_BORKED @@ -761,6 +761,7 @@ enable_option_checking enable_silent_rules with_whiny_user_strftime enable_lint +enable_severe_portability_problems enable_dependency_tracking enable_largefile enable_nls @@ -1405,6 +1406,7 @@ Optional Features: --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --disable-lint Disable gawk lint checking + --enable-severe-portability-problems Enable really nasty portability problems --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking @@ -3181,6 +3183,17 @@ $as_echo "#define NO_LINT 1" >>confdefs.h fi +# Check whether --enable-severe-portability-problems was given. +if test "${enable_severe_portability_problems+set}" = set; then : + enableval=$enable_severe_portability_problems; if test "$enableval" = yes + then + +$as_echo "#define I_DONT_KNOW_WHAT_IM_DOING 1" >>confdefs.h + + fi + +fi + # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || diff --git a/configure.ac b/configure.ac index 5ad3b564..55ca72de 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,12 @@ AC_ARG_ENABLE([lint], [ --disable-lint Disable gawk lint checking], AC_DEFINE(NO_LINT, 1, [disable lint checks]) fi ) +AC_ARG_ENABLE([severe-portability-problems], [ --enable-severe-portability-problems Enable really nasty portability problems], + if test "$enableval" = yes + then + AC_DEFINE(I_DONT_KNOW_WHAT_IM_DOING, 1, [enable severe portability problems]) + fi +) AC_CANONICAL_HOST AC_USE_SYSTEM_EXTENSIONS diff --git a/pc/config.h b/pc/config.h index 85389eb2..04024007 100644 --- a/pc/config.h +++ b/pc/config.h @@ -242,6 +242,9 @@ #define HAVE_STDLIB_H 1 #endif +/* Define to 1 if you have the `strcasecmp' function. */ +#undef HAVE_STRCASECMP + /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 @@ -407,6 +410,9 @@ /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL +/* enable severe portability problems */ +#undef I_DONT_KNOW_WHAT_IM_DOING + /* libc is broken for regex handling */ #undef LIBC_IS_BORKED |