diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-14 20:12:41 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-14 20:12:41 (GMT) |
commit | 7b8c7546ebc1fc3688ef95768fa8b82f0f205490 (patch) | |
tree | 2e14b243347a9c38c82e2e774d4b201f23149916 /configure | |
parent | dcd2dc2fffce8614c5d2b8d303a303a599b88a23 (diff) | |
download | cpython-7b8c7546ebc1fc3688ef95768fa8b82f0f205490.zip cpython-7b8c7546ebc1fc3688ef95768fa8b82f0f205490.tar.gz cpython-7b8c7546ebc1fc3688ef95768fa8b82f0f205490.tar.bz2 |
Mass checkin of universal newline support.
Highlights: import and friends will understand any of \r, \n and \r\n
as end of line. Python file input will do the same if you use mode 'U'.
Everything can be disabled by configuring with --without-universal-newlines.
See PEP278 for details.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -844,6 +844,7 @@ Optional Packages: --with(out)-thread=DIRECTORY deprecated; use --with(out)-threads --with-pth use GNU pth threading libraries --with(out)-cycle-gc disable/enable garbage collection + --with(out)-universal-newlines disable/enable foreign newlines --with(out)-pymalloc disable/enable specialized mallocs --with-wctype-functions use wctype.h functions --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking @@ -10933,6 +10934,29 @@ fi echo "$as_me:$LINENO: result: $with_cycle_gc" >&5 echo "${ECHO_T}$with_cycle_gc" >&6 +# Check for universal newline support +echo "$as_me:$LINENO: checking for --with-universal-newline" >&5 +echo $ECHO_N "checking for --with-universal-newline... $ECHO_C" >&6 + +# Check whether --with-universal-newlines or --without-universal-newlines was given. +if test "${with_universal_newlines+set}" = set; then + withval="$with_universal_newlines" + +fi; + +if test -z "$with_universal_newlines" +then with_universal_newlines="yes" +fi +if test "$with_universal_newlines" != "no" +then + cat >>confdefs.h <<\_ACEOF +#define WITH_UNIVERSAL_NEWLINES 1 +_ACEOF + +fi +echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 +echo "${ECHO_T}$with_universal_newlines" >&6 + # Check for Python-specific malloc support echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |