11#! /bin/sh
2- # From configure.in Revision: 59625 .
2+ # From configure.in Revision: 59826 .
33# Guess values for system-dependent variables and create Makefiles.
44# Generated by GNU Autoconf 2.61 for python 3.0.
55#
@@ -728,7 +728,6 @@ HAVE_GETHOSTBYNAME_R
728728HAVE_GETHOSTBYNAME
729729LIBM
730730LIBC
731- UNICODE_OBJS
732731THREADHEADERS
733732SRCDIRS
734733LTLIBOBJS'
@@ -1321,8 +1320,6 @@ Optional Features:
13211320 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
13221321 --enable-ipv6 Enable ipv6 (with ipv4) support
13231322 --disable-ipv6 Disable ipv6 support
1324- --enable-unicode[=ucs[24]]
1325- Enable Unicode strings (default is yes)
13261323
13271324Optional Packages:
13281325 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -1349,6 +1346,7 @@ Optional Packages:
13491346 --with-fpectl enable SIGFPE catching
13501347 --with-libm=STRING math library
13511348 --with-libc=STRING C library
1349+ --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
13521350
13531351Some influential environment variables:
13541352 CC C compiler command
@@ -21481,95 +21479,76 @@ fi
2148121479echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
2148221480fi
2148321481
21484- { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21485- echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21486- # Check whether --enable-unicode was given.
21487- if test "${enable_unicode+set}" = set; then
21488- enableval=$enable_unicode;
21489- else
21490- enable_unicode=yes
21482+ { echo "$as_me:$LINENO: checking what type to use for str" >&5
21483+ echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
21484+
21485+ # Check whether --with-wide-unicode was given.
21486+ if test "${with_wide_unicode+set}" = set; then
21487+ withval=$with_wide_unicode;
21488+ if test "$withval" != no
21489+ then unicode_size="4"
21490+ else unicode_size="2"
2149121491fi
2149221492
21493+ else
21494+
21495+ case "$have_ucs4_tcl" in
21496+ yes) unicode_size="4" ;;
21497+ *) unicode_size="2" ;;
21498+ esac
2149321499
21494- if test $enable_unicode = yes
21495- then
21496- # Without any arguments, Py_UNICODE defaults to two-byte mode
21497- case "$have_ucs4_tcl" in
21498- yes) enable_unicode="ucs4"
21499- ;;
21500- *) enable_unicode="ucs2"
21501- ;;
21502- esac
2150321500fi
2150421501
2150521502
2150621503
21507- case "$enable_unicode" in
21508- ucs2) unicode_size="2"
21509- cat >>confdefs.h <<\_ACEOF
21510- #define Py_UNICODE_SIZE 2
21511- _ACEOF
2151221504
21513- ;;
21514- ucs4) unicode_size="4"
21515- cat >>confdefs.h <<\_ACEOF
21505+ case "$unicode_size" in
21506+ 4) cat >>confdefs.h <<\_ACEOF
2151621507#define Py_UNICODE_SIZE 4
2151721508_ACEOF
21518-
21519- ;;
21509+ ;;
21510+ *) cat >>confdefs.h <<\_ACEOF
21511+ #define Py_UNICODE_SIZE 2
21512+ _ACEOF
21513+ ;;
2152021514esac
2152121515
2152221516
2152321517
2152421518
21525-
21526- if test "$enable_unicode" = "no"
21527- then
21528- UNICODE_OBJS=""
21529- { echo "$as_me:$LINENO: result: not used" >&5
21530- echo "${ECHO_T}not used" >&6; }
21531- else
21532- UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21533-
21534- cat >>confdefs.h <<\_ACEOF
21535- #define Py_USING_UNICODE 1
21536- _ACEOF
21537-
21538-
21539- # wchar_t is only usable if it maps to an unsigned type
21540- if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21519+ # wchar_t is only usable if it maps to an unsigned type
21520+ if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
2154121521 -a "$ac_cv_wchar_t_signed" = "no"
21542- then
21543- PY_UNICODE_TYPE="wchar_t"
21522+ then
21523+ PY_UNICODE_TYPE="wchar_t"
2154421524
2154521525cat >>confdefs.h <<\_ACEOF
2154621526#define HAVE_USABLE_WCHAR_T 1
2154721527_ACEOF
2154821528
21549- cat >>confdefs.h <<\_ACEOF
21529+ cat >>confdefs.h <<\_ACEOF
2155021530#define PY_UNICODE_TYPE wchar_t
2155121531_ACEOF
2155221532
21553- elif test "$ac_cv_sizeof_short" = "$unicode_size"
21554- then
21555- PY_UNICODE_TYPE="unsigned short"
21556- cat >>confdefs.h <<\_ACEOF
21533+ elif test "$ac_cv_sizeof_short" = "$unicode_size"
21534+ then
21535+ PY_UNICODE_TYPE="unsigned short"
21536+ cat >>confdefs.h <<\_ACEOF
2155721537#define PY_UNICODE_TYPE unsigned short
2155821538_ACEOF
2155921539
21560- elif test "$ac_cv_sizeof_long" = "$unicode_size"
21561- then
21562- PY_UNICODE_TYPE="unsigned long"
21563- cat >>confdefs.h <<\_ACEOF
21540+ elif test "$ac_cv_sizeof_long" = "$unicode_size"
21541+ then
21542+ PY_UNICODE_TYPE="unsigned long"
21543+ cat >>confdefs.h <<\_ACEOF
2156421544#define PY_UNICODE_TYPE unsigned long
2156521545_ACEOF
2156621546
21567- else
21568- PY_UNICODE_TYPE="no type found"
21569- fi
21570- { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21571- echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21547+ else
21548+ PY_UNICODE_TYPE="no type found"
2157221549fi
21550+ { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21551+ echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
2157321552
2157421553# check for endianness
2157521554{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
@@ -24432,13 +24411,12 @@ HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
2443224411HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
2443324412LIBM!$LIBM$ac_delim
2443424413LIBC!$LIBC$ac_delim
24435- UNICODE_OBJS!$UNICODE_OBJS$ac_delim
2443624414THREADHEADERS!$THREADHEADERS$ac_delim
2443724415SRCDIRS!$SRCDIRS$ac_delim
2443824416LTLIBOBJS!$LTLIBOBJS$ac_delim
2443924417_ACEOF
2444024418
24441- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19 ; then
24419+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18 ; then
2444224420 break
2444324421 elif $ac_last_try; then
2444424422 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
0 commit comments