Ignore:
Timestamp:
May 21, 2007, 2:27:53 AM (18 years ago)
Author:
bird
Message:

In progress...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/dev-lang/python/configure.in

    r3225 r3364  
    184184        atheos*) MACHDEP="atheos";;
    185185        irix646) MACHDEP="irix6";;
     186        os2*|emx*) MACHDEP="emx";;
     187
    186188        '')     MACHDEP="unknown";;
    187189        esac
     
    487489    gcc) CC="$CC -D_HAVE_BSDI";;
    488490    esac;;
     491os2*|emx*)
     492    CC="$CC -DPYCC_OS2=1 -DPYCC_GCC=1"
     493    ;;
    489494esac
    490495
     
    519524# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
    520525# systems without shared libraries, LDLIBRARY is the same as LIBRARY
    521 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
    522 # DLLLIBRARY is the shared (i.e., DLL) library.
    523 # 
     526# (defined in the Makefiles). On Cygwin and OS/2 LDLIBRARY is the import
     527# library, DLLLIBRARY is the shared (i.e., DLL) library.
     528#
    524529# RUNSHARED is used to run shared python without installed libraries
    525530#
     
    665670          RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
    666671          ;;
     672    os2*|emx*)
     673      LDLIBRARY='python$(VERSION)_dll.a'
     674          BLDLIBRARY='-L. -lpython$(VERSION)'
     675          RUNSHARED=BEGINLIBPATH="`pwd`;$BEGINLIBPATH"
     676      CONDENSED_VERSION=`echo "$(VERSION)" | tr -d .,"`
     677      DLLLIBRARY='python$(CONDENSED_VERSION).dll'
     678          ;;
    667679  esac
    668680else # shared is disabled
     
    706718                BeOS*) LN="ln -s";;
    707719                CYGWIN*) LN="ln -s";;
     720                os2*|emx*) LN="ln -s";;
    708721                atheos*) LN="ln -s";;
    709722                *) LN=ln;;
     
    13961409AC_SUBST(LINKFORSHARED)
    13971410# SO is the extension of shared libraries `(including the dot!)
    1398 # -- usually .so, .sl on HP-UX, .dll on Cygwin
     1411# -- usually .so, .sl on HP-UX, .dll on Cygwin and OS/2
    13991412AC_MSG_CHECKING(SO)
    14001413if test -z "$SO"
     
    14081421                ;;
    14091422        CYGWIN*)   SO=.dll;;
     1423        os2*|emx*) SO=.dll;;
    14101424        *)         SO=.so;;
    14111425        esac
     
    34023416if test ! -f Modules/Setup
    34033417then
    3404         cp $srcdir/Modules/Setup.dist Modules/Setup
     3418        if test "$MACHDEP" = "emx"; then
     3419        cp $srcdir/PC/os2emx/Modules/Setup.os2emx Modules/Setup
     3420    else
     3421        cp $srcdir/Modules/Setup.dist Modules/Setup
     3422    if
    34053423fi
    34063424
Note: See TracChangeset for help on using the changeset viewer.