summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2002-07-19 06:55:41 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2002-07-19 06:55:41 (GMT)
commit8235ea1c3a5c57c9279668b5bff3d5f021ceb2d5 (patch)
treeaaab09a7c61fc66bc25bb19cc885692bd0e8e121 /configure
parentb88169819c301dc77fc2f240c1641acf0b8cf5af (diff)
downloadcpython-8235ea1c3a5c57c9279668b5bff3d5f021ceb2d5.zip
cpython-8235ea1c3a5c57c9279668b5bff3d5f021ceb2d5.tar.gz
cpython-8235ea1c3a5c57c9279668b5bff3d5f021ceb2d5.tar.bz2
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure b/configure
index 1641fd1..007ae0f 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 1.330 .
+# From configure.in Revision: 1.332 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
#
@@ -1225,6 +1225,7 @@ VERSION=2.3
SOVERSION=1.0
+
cat >>confdefs.h <<\_ACEOF
#define _XOPEN_SOURCE 500
_ACEOF
@@ -1347,8 +1348,7 @@ else
ppc)
CC=mwcc
without_gcc=yes
- OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma"
- CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'"
+ OPT="-O -export pragma"
LDFLAGS="$LDFLAGS -nodup"
;;
x86)
@@ -3107,6 +3107,11 @@ fi
# Other platforms follow
if test $enable_shared = "yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define Py_ENABLE_SHARED 1
+_ACEOF
+
case $ac_sys_system in
BeOS*)
LDLIBRARY='libpython$(VERSION).so'
@@ -8820,7 +8825,6 @@ then
*gcc*) CCSHARED="-shared";;
*) CCSHARED="";;
esac;;
- CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";;
atheos*) CCSHARED="-fPIC";;
esac
fi