summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-05-19 07:00:58 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-05-19 07:00:58 +0000
commit2a212249b0aee4c26e86c00a8803d72b01f476d7 (patch)
tree06ca5c4da8c05d113240963cea7e080d99a6bbc8 /configure.in
parentae39531f9c98d4ad064be06a5fc2712dc1c0d2d2 (diff)
downloadcpython-2a212249b0aee4c26e86c00a8803d72b01f476d7.tar.gz
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.in')
-rw-r--r--configure.in17
1 files changed, 15 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 26c881f093..a7c50bd013 100644
--- a/configure.in
+++ b/configure.in
@@ -611,7 +611,14 @@ if test $enable_shared = "yes"; then
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}
;;
@@ -1359,7 +1366,12 @@ AC_MSG_CHECKING(SO)
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
@@ -1376,6 +1388,7 @@ else
sleep 10
fi
AC_MSG_RESULT($SO)
+AC_DEFINE_UNQUOTED(SHLIB_EXT, "$SO", [Define this to be extension of shared libraries (including the dot!).])
# 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