Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(124077)

Side by Side Diff: configure.ac

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « configure ('k') | iOS/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dnl *********************************************** 1 dnl ***********************************************
2 dnl * Please run autoreconf to test your changes! * 2 dnl * Please run autoreconf to test your changes! *
3 dnl *********************************************** 3 dnl ***********************************************
4 4
5 # Set VERSION so we only need to edit in one place (i.e., here) 5 # Set VERSION so we only need to edit in one place (i.e., here)
6 m4_define(PYTHON_VERSION, 3.6) 6 m4_define(PYTHON_VERSION, 3.6)
7 7
8 AC_PREREQ(2.65) 8 AC_PREREQ(2.65)
9 9
10 AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/) 10 AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 if test "$cross_compiling" = yes; then 365 if test "$cross_compiling" = yes; then
366 # ac_sys_system and ac_sys_release are used for setting 366 # ac_sys_system and ac_sys_release are used for setting
367 # a lot of different things including 'define_xopen_source' 367 # a lot of different things including 'define_xopen_source'
368 # in the case statement below. 368 # in the case statement below.
369 case "$host" in 369 case "$host" in
370 *-*-linux*) 370 *-*-linux*)
371 ac_sys_system=Linux 371 ac_sys_system=Linux
372 ;; 372 ;;
373 *-*-cygwin*) 373 *-*-cygwin*)
374 ac_sys_system=Cygwin 374 ac_sys_system=Cygwin
375 ;;
376 *-apple-ios)
377 ac_sys_system=iOS
375 ;; 378 ;;
376 *) 379 *)
377 # for now, limit cross builds to known configurations 380 # for now, limit cross builds to known configurations
378 MACHDEP="unknown" 381 MACHDEP="unknown"
379 AC_MSG_ERROR([cross build not supported for $host]) 382 AC_MSG_ERROR([cross build not supported for $host])
380 esac 383 esac
381 ac_sys_release= 384 ac_sys_release=
382 else 385 else
383 ac_sys_system=`uname -s` 386 ac_sys_system=`uname -s`
384 if test "$ac_sys_system" = "AIX" \ 387 if test "$ac_sys_system" = "AIX" \
(...skipping 23 matching lines...) Expand all
408 case "$host" in 411 case "$host" in
409 *-*-linux*) 412 *-*-linux*)
410 case "$host_cpu" in 413 case "$host_cpu" in
411 arm*) 414 arm*)
412 _host_cpu=arm 415 _host_cpu=arm
413 ;; 416 ;;
414 *) 417 *)
415 _host_cpu=$host_cpu 418 _host_cpu=$host_cpu
416 esac 419 esac
417 ;; 420 ;;
421 *-apple-ios)
422 case "$host_cpu" in
423 arm*)
424 _host_cpu=arm
425 ;;
426 *)
427 _host_cpu=$host_cpu
428 esac
429 ;;
418 *-*-cygwin*) 430 *-*-cygwin*)
419 _host_cpu= 431 _host_cpu=
420 ;; 432 ;;
421 *) 433 *)
422 # for now, limit cross builds to known configurations 434 # for now, limit cross builds to known configurations
423 MACHDEP="unknown" 435 MACHDEP="unknown"
424 AC_MSG_ERROR([cross build not supported for $host]) 436 AC_MSG_ERROR([cross build not supported for $host])
425 esac 437 esac
426 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" 438 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
427 fi 439 fi
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 495 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
484 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 496 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
485 # identifies itself as Darwin/7.* 497 # identifies itself as Darwin/7.*
486 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 498 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
487 # disables platform specific features beyond repair. 499 # disables platform specific features beyond repair.
488 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 500 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
489 # has no effect, don't bother defining them 501 # has no effect, don't bother defining them
490 Darwin/@<:@6789@:>@.*) 502 Darwin/@<:@6789@:>@.*)
491 define_xopen_source=no;; 503 define_xopen_source=no;;
492 Darwin/1@<:@0-9@:>@.*) 504 Darwin/1@<:@0-9@:>@.*)
505 define_xopen_source=no;;
506 # On iOS, defining _POSIX_C_SOURCE also disables platform specific features.
507 iOS/*)
493 define_xopen_source=no;; 508 define_xopen_source=no;;
494 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but 509 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
495 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined 510 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
496 # or has another value. By not (re)defining it, the defaults come in place. 511 # or has another value. By not (re)defining it, the defaults come in place.
497 AIX/4) 512 AIX/4)
498 define_xopen_source=no;; 513 define_xopen_source=no;;
499 AIX/5) 514 AIX/5)
500 if test `uname -r` -eq 1; then 515 if test `uname -r` -eq 1; then
501 define_xopen_source=no 516 define_xopen_source=no
502 fi 517 fi
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 1177
1163 # tweak ARFLAGS only if the user didn't set it on the command line 1178 # tweak ARFLAGS only if the user didn't set it on the command line
1164 AC_SUBST(ARFLAGS) 1179 AC_SUBST(ARFLAGS)
1165 if test -z "$ARFLAGS" 1180 if test -z "$ARFLAGS"
1166 then 1181 then
1167 ARFLAGS="rc" 1182 ARFLAGS="rc"
1168 fi 1183 fi
1169 1184
1170 AC_CHECK_TOOLS([READELF], [readelf], [:]) 1185 AC_CHECK_TOOLS([READELF], [readelf], [:])
1171 if test "$cross_compiling" = yes; then 1186 if test "$cross_compiling" = yes; then
1172 case "$READELF" in 1187 » case "$host" in
1173 » readelf|:) 1188 » *-apple-ios)
1174 » AC_MSG_ERROR([readelf for the host is required for cross builds]) 1189 » » # readelf not required for iOS cross builds.
1175 » ;; 1190 » ;;
1176 esac 1191 » *)
1192 » » case "$READELF" in
1193 » » » readelf|:)
1194 » » » AC_MSG_ERROR([readelf for the host is required for cross builds])
1195 » » » ;;
1196 » » esac
1197 » esac
1177 fi 1198 fi
1178 AC_SUBST(READELF) 1199 AC_SUBST(READELF)
1179 1200
1180 AC_SUBST(ASDLGEN) 1201 AC_SUBST(ASDLGEN)
1181 AC_CHECK_PROGS(PYTHON, python$PACKAGE_VERSION python3 python, not-found) 1202 AC_CHECK_PROGS(PYTHON, python$PACKAGE_VERSION python3 python, not-found)
1182 if test "$PYTHON" = not-found; then 1203 if test "$PYTHON" = not-found; then
1183 ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" 1204 ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #"
1184 else 1205 else
1185 ASDLGEN="$PYTHON" 1206 ASDLGEN="$PYTHON"
1186 fi 1207 fi
(...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after
3185 case $ac_sys_system/$ac_sys_release in 3206 case $ac_sys_system/$ac_sys_release in
3186 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynloa d_aix.c 3207 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynloa d_aix.c
3187 if test "$ac_cv_func_dlopen" = yes 3208 if test "$ac_cv_func_dlopen" = yes
3188 then DYNLOADFILE="dynload_shlib.o" 3209 then DYNLOADFILE="dynload_shlib.o"
3189 else DYNLOADFILE="dynload_aix.o" 3210 else DYNLOADFILE="dynload_aix.o"
3190 fi 3211 fi
3191 ;; 3212 ;;
3192 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; 3213 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
3193 # Use dynload_next.c only on 10.2 and below, which don't have native dlo pen() 3214 # Use dynload_next.c only on 10.2 and below, which don't have native dlo pen()
3194 Darwin/@<:@0156@:>@\..*) DYNLOADFILE="dynload_next.o";; 3215 Darwin/@<:@0156@:>@\..*) DYNLOADFILE="dynload_next.o";;
3216 # Disable dynamic loading on iOS
3217 iOS/*) DYNLOADFILE="dynload_stub.o";;
3195 *) 3218 *)
3196 # use dynload_shlib.c and dlopen() if we have it; otherwise stub 3219 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
3197 # out any dynamic loading 3220 # out any dynamic loading
3198 if test "$ac_cv_func_dlopen" = yes 3221 if test "$ac_cv_func_dlopen" = yes
3199 then DYNLOADFILE="dynload_shlib.o" 3222 then DYNLOADFILE="dynload_shlib.o"
3200 else DYNLOADFILE="dynload_stub.o" 3223 else DYNLOADFILE="dynload_stub.o"
3201 fi 3224 fi
3202 ;; 3225 ;;
3203 esac 3226 esac
3204 fi 3227 fi
(...skipping 2036 matching lines...) Expand 10 before | Expand all | Expand 10 after
5241 5264
5242 echo "creating Modules/Setup" >&AS_MESSAGE_FD 5265 echo "creating Modules/Setup" >&AS_MESSAGE_FD
5243 if test ! -f Modules/Setup 5266 if test ! -f Modules/Setup
5244 then 5267 then
5245 cp $srcdir/Modules/Setup.dist Modules/Setup 5268 cp $srcdir/Modules/Setup.dist Modules/Setup
5246 fi 5269 fi
5247 5270
5248 echo "creating Modules/Setup.local" >&AS_MESSAGE_FD 5271 echo "creating Modules/Setup.local" >&AS_MESSAGE_FD
5249 if test ! -f Modules/Setup.local 5272 if test ! -f Modules/Setup.local
5250 then 5273 then
5251 » echo "# Edit this file for local setup changes" >Modules/Setup.local 5274 if test ! -f Modules/Setup.$_PYTHON_HOST_PLATFORM
5275 then
5276 echo "# Edit this file for local setup changes" >Modules/Setup.local
5277 else
5278 if test -f Modules/Setup.$_PYTHON_HOST_PLATFORM.local
5279 then
5280 cp Modules/Setup.$_PYTHON_HOST_PLATFORM.local Modules/Setup.local
5281 else
5282 cat Modules/Setup.embedded Modules/Setup.$_PYTHON_HOST_PLATFORM > Mo dules/Setup.local
5283 fi
5284 fi
5252 fi 5285 fi
5253 5286
5254 echo "creating Makefile" >&AS_MESSAGE_FD 5287 echo "creating Makefile" >&AS_MESSAGE_FD
5255 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 5288 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
5256 -s Modules Modules/Setup.config \ 5289 -s Modules Modules/Setup.config \
5257 Modules/Setup.local Modules/Setup 5290 Modules/Setup.local Modules/Setup
5258 mv config.c Modules 5291 mv config.c Modules
OLDNEW
« no previous file with comments | « configure ('k') | iOS/README » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+