summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-18 23:42:19 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-18 23:42:19 (GMT)
commit8f4ceb168c34cc3a23d90f97b328697251c45585 (patch)
treeaff02a471e121794536b1a7ef68f4fd75b6aff98 /configure.in
parent0e680b7608cf6a2e1be70569b4da2cf5a7204c2d (diff)
downloadcpython-8f4ceb168c34cc3a23d90f97b328697251c45585.zip
cpython-8f4ceb168c34cc3a23d90f97b328697251c45585.tar.gz
cpython-8f4ceb168c34cc3a23d90f97b328697251c45585.tar.bz2
Two unrelated changes:
- add test for strptime (not used by the core but needed by Marc Lemburg's Date object). - Test for GNU ld on Solaris; need to add an extra linker option to export symbols in that case.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 093bd73..247f411 100644
--- a/configure.in
+++ b/configure.in
@@ -315,6 +315,13 @@ then
next/*) LINKFORSHARED="-u libsys_s";;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
IRIX*/6*) LINKFORSHARED="-all";;
+ SunOS/5*) if test "$CC" = "gcc"
+ then
+ if gcc -Xlinker -V 2>/dev/null | grep BFD >/dev/null
+ then
+ LINKFORSHARED="-Xlinker --export-dynamic"
+ fi
+ fi;;
esac
fi
AC_MSG_RESULT($LINKFORSHARED)
@@ -441,7 +448,7 @@ AC_CHECK_FUNCS(alarm chown clock dlopen execv flock fork ftime ftruncate \
gethostname_r getpeername getpgrp getpid getpwent gettimeofday getwd \
kill link lstat mkfifo nice pause plock putenv readlink \
select setgid setlocale setuid setsid setpgid setpgrp setvbuf \
- sigaction siginterrupt sigrelse strftime symlink \
+ sigaction siginterrupt sigrelse strftime strptime symlink \
tcgetpgrp tcsetpgrp times truncate uname waitpid)
AC_REPLACE_FUNCS(dup2 getcwd strdup strerror memmove)
AC_CHECK_FUNC(getpgrp, AC_TRY_COMPILE([#include <unistd.h>], [getpgrp(0);], AC_DEFINE(GETPGRP_HAVE_ARG)))