Changeset 400 for python


Ignore:
Timestamp:
Mar 22, 2014, 12:06:54 AM (11 years ago)
Author:
dmik
Message:

python: Add OS/2 bits to configure.ac and sync with configure.

Contributed by Paul Smedley.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/configure

    r391 r400  
    52135213LDLIBRARYDIR=''
    52145214RUNSHARED=''
    5215 CONDENSED_VERSION=`echo "${VERSION}" | tr -d .,"`
     5215CONDENSED_VERSION=''
    52165216
    52175217# LINKCC is the command that links the python executable -- default is $(CC).
     
    53985398        ;;
    53995399    OS/2*|os2*|*emx*)
    5400         LDLIBRARY='python$(VERSION)_dll.a'
    5401         BLDLIBRARY='-L. -lpython$(VERSION)'
    5402         RUNSHARED=BEGINLIBPATH="'`pwd`;$BEGINLIBPATH'"
    5403         DLLLIBRARY='python${CONDENSED_VERSION}.dll'
    5404         ;;
     5400          LDLIBRARY='python$(VERSION)_dll.a'
     5401          BLDLIBRARY='-L. -lpython$(VERSION)'
     5402          RUNSHARED=BEGINLIBPATH="'`pwd`;$BEGINLIBPATH'"
     5403          CONDENSED_VERSION=`echo "${VERSION}" | tr -d .,"`
     5404          DLLLIBRARY='python$(CONDENSED_VERSION).dll'
     5405          ;;
    54055406
    54065407  esac
     
    81408141
    81418142# SO is the extension of shared libraries `(including the dot!)
    8142 # -- usually .so, .sl on HP-UX, .dll on Cygwin
     8143# -- usually .so, .sl on HP-UX, .dll on Cygwin and OS/2
    81438144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
    81448145$as_echo_n "checking SO... " >&6; }
     
    83168317                LDSHARED="gcc -shared"
    83178318                LDCXXSHARED="g++ -shared";;
    8318         OS/2*|os2*|*emx*) LDSHARED="${CC} ${LDFLAGS} -Zdll";;
     8319        OS/2*|os2*|*emx*)
     8320                LDSHARED="${CC} ${LDFLAGS} -Zdll"
     8321                LDCXXSHARED="${CXX} ${LDFLAGS} -Zdll";;
    83198322        *)      LDSHARED="ld";;
    83208323        esac
  • python/trunk/configure.ac

    r391 r400  
    347347        atheos*) MACHDEP="atheos";;
    348348        irix646) MACHDEP="irix6";;
     349        os2*|OS/2*|emx*) MACHDEP="os2knix";;
    349350        '')     MACHDEP="unknown";;
    350351    esac
     
    749750# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
    750751# systems without shared libraries, LDLIBRARY is the same as LIBRARY
    751 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
    752 # DLLLIBRARY is the shared (i.e., DLL) library.
    753 # 
     752# (defined in the Makefiles). On Cygwin and OS/2 LDLIBRARY is the import
     753# library, DLLLIBRARY is the shared (i.e., DLL) library.
     754#
    754755# RUNSHARED is used to run shared python without installed libraries
    755756#
     
    762763AC_SUBST(INSTSONAME)
    763764AC_SUBST(RUNSHARED)
     765AC_SUBST(CONDENSED_VERSION)
    764766LDLIBRARY="$LIBRARY"
    765767BLDLIBRARY='$(LDLIBRARY)'
     
    768770LDLIBRARYDIR=''
    769771RUNSHARED=''
     772CONDENSED_VERSION=''
    770773
    771774# LINKCC is the command that links the python executable -- default is $(CC).
     
    822825then
    823826  case $ac_sys_system in
    824   CYGWIN* | atheos*)
     827  CYGWIN* | atheos* | *OS/2* | *emx* | *os2*)
    825828    enable_shared="yes";;
    826829  *)
     
    926929        RUNSHARED=LIBPATH=`pwd`:${LIBPATH}
    927930        ;;
     931    OS/2*|os2*|*emx*)
     932          LDLIBRARY='python$(VERSION)_dll.a'
     933          BLDLIBRARY='-L. -lpython$(VERSION)'
     934          RUNSHARED=BEGINLIBPATH="'`pwd`;$BEGINLIBPATH'"
     935          CONDENSED_VERSION=`echo "${VERSION}" | tr -d .,"`
     936          DLLLIBRARY='python$(CONDENSED_VERSION).dll'
     937          ;;
    928938
    929939  esac
     
    10091019                BeOS*) LN="ln -s";;
    10101020                CYGWIN*) LN="ln -s";;
     1021                OS/2*|os2*|*emx*) LN="ln -s";;
    10111022                atheos*) LN="ln -s";;
    10121023                *) LN=ln;;
     
    19071918AC_SUBST(LINKFORSHARED)
    19081919# SO is the extension of shared libraries `(including the dot!)
    1909 # -- usually .so, .sl on HP-UX, .dll on Cygwin
     1920# -- usually .so, .sl on HP-UX, .dll on Cygwin and OS/2
    19101921AC_MSG_CHECKING(SO)
    19111922if test -z "$SO"
     
    19191930                ;;
    19201931        CYGWIN*)   SO=.dll;;
     1932        OS/2*|os2*|*emx*) SO=.dll;;
    19211933        *)         SO=.so;;
    19221934        esac
     
    20752087                LDSHARED="gcc -shared"
    20762088                LDCXXSHARED="g++ -shared";;
     2089        OS/2*|os2*|*emx*)
     2090                LDSHARED="${CC} ${LDFLAGS} -Zdll"
     2091                LDCXXSHARED="${CXX} ${LDFLAGS} -Zdll";;
    20772092        *)      LDSHARED="ld";;
    20782093        esac
Note: See TracChangeset for help on using the changeset viewer.