Skip to content

Commit

Permalink
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
Browse files Browse the repository at this point in the history
_XOPEN_SOURCE on AIX 4.
  • Loading branch information
loewis committed Nov 18, 2003
1 parent e3be860 commit c19c5a6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
14 changes: 12 additions & 2 deletions configure
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/sh
# From configure.in Revision: 1.439 .
# From configure.in Revision: 1.440 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for python 2.4.
#
Expand Down Expand Up @@ -1458,6 +1458,11 @@ case $ac_sys_system/$ac_sys_release in
# This should hopefully be fixed in FreeBSD 4.9
FreeBSD/4.8* | Darwin/6* )
define_xopen_source=no;;
# On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in
# wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or
# has another value. By not (re)defining it, the defaults come in place.
AIX/4)
define_xopen_source=no;;
esac

if test $define_xopen_source = yes
Expand Down Expand Up @@ -12984,7 +12989,12 @@ echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
if test -z "$DYNLOADFILE"
then
case $ac_sys_system/$ac_sys_release in
AIX*) DYNLOADFILE="dynload_aix.o";;
AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
if test "$ac_cv_func_dlopen" = yes
then DYNLOADFILE="dynload_shlib.o"
else DYNLOADFILE="dynload_aix.o"
fi
;;
BeOS*) DYNLOADFILE="dynload_beos.o";;
hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Darwin/*) DYNLOADFILE="dynload_next.o";;
Expand Down
12 changes: 11 additions & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ case $ac_sys_system/$ac_sys_release in
# This should hopefully be fixed in FreeBSD 4.9
FreeBSD/4.8* | Darwin/6* )
define_xopen_source=no;;
# On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in
# wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or
# has another value. By not (re)defining it, the defaults come in place.
AIX/4)
define_xopen_source=no;;
esac

if test $define_xopen_source = yes
Expand Down Expand Up @@ -2036,7 +2041,12 @@ AC_MSG_CHECKING(DYNLOADFILE)
if test -z "$DYNLOADFILE"
then
case $ac_sys_system/$ac_sys_release in
AIX*) DYNLOADFILE="dynload_aix.o";;
AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
if test "$ac_cv_func_dlopen" = yes
then DYNLOADFILE="dynload_shlib.o"
else DYNLOADFILE="dynload_aix.o"
fi
;;
BeOS*) DYNLOADFILE="dynload_beos.o";;
hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Darwin/*) DYNLOADFILE="dynload_next.o";;
Expand Down

0 comments on commit c19c5a6

Please sign in to comment.