summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-05-19 07:00:58 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-05-19 07:00:58 (GMT)
commit58e28887d54315fafd918a7a38a037e5b77fcc9a (patch)
tree0b306fc455610e970d89a3df0229505e879104d3 /configure
parent5ef922447c3dd0f9b306b4fde59481b4d4eaeaa3 (diff)
downloadcpython-58e28887d54315fafd918a7a38a037e5b77fcc9a.zip
cpython-58e28887d54315fafd918a7a38a037e5b77fcc9a.tar.gz
cpython-58e28887d54315fafd918a7a38a037e5b77fcc9a.tar.bz2
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
I suppose this could be backported if anyone cares.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 20 insertions, 3 deletions
diff --git a/configure b/configure
index f829580..8676dab 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 45995 .
+# From configure.in Revision: 46010 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for python 2.5.
#
@@ -3387,7 +3387,14 @@ _ACEOF
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
hp*|HP*)
- LDLIBRARY='libpython$(VERSION).sl'
+ case `uname -m` in
+ ia64)
+ LDLIBRARY='libpython$(VERSION).so'
+ ;;
+ *)
+ LDLIBRARY='libpython$(VERSION).sl'
+ ;;
+ esac
BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
;;
@@ -10869,7 +10876,12 @@ echo $ECHO_N "checking SO... $ECHO_C" >&6
if test -z "$SO"
then
case $ac_sys_system in
- hp*|HP*) SO=.sl;;
+ hp*|HP*)
+ case `uname -m` in
+ ia64) SO=.so;;
+ *) SO=.sl;;
+ esac
+ ;;
CYGWIN*) SO=.dll;;
*) SO=.so;;
esac
@@ -10887,6 +10899,11 @@ else
fi
echo "$as_me:$LINENO: result: $SO" >&5
echo "${ECHO_T}$SO" >&6
+
+cat >>confdefs.h <<_ACEOF
+#define SHLIB_EXT "$SO"
+_ACEOF
+
# LDSHARED is the ld *command* used to create shared library
# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
# (Shared libraries in this instance are shared modules to be loaded into