mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
Add changes to build environment support to support MacOS X (darwin).
Changes will be overwritten upon next autoconf/libtool update.
This commit is contained in:
parent
3c63a944eb
commit
6b4240fee4
4 changed files with 35 additions and 1 deletions
3
build/config.guess
vendored
3
build/config.guess
vendored
|
|
@ -971,6 +971,9 @@ EOF
|
||||||
Power*:Rhapsody:*:*)
|
Power*:Rhapsody:*:*)
|
||||||
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
*:Darwin:*:* | *:"Mac OS":*:*)
|
||||||
|
echo `uname -p`-apple-darwin${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
*:Rhapsody:*:*)
|
*:Rhapsody:*:*)
|
||||||
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
|
|
||||||
2
build/config.sub
vendored
2
build/config.sub
vendored
|
|
@ -918,7 +918,7 @@ case $os in
|
||||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||||
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||||
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
||||||
| -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
|
| -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -darwin* | -oskit*)
|
||||||
# Remember, each alternative MUST END IN *, to match a version number.
|
# Remember, each alternative MUST END IN *, to match a version number.
|
||||||
;;
|
;;
|
||||||
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
|
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
|
||||||
|
|
|
||||||
|
|
@ -1364,6 +1364,17 @@ else
|
||||||
hardcode_shlibpath_var=no
|
hardcode_shlibpath_var=no
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
darwin* | rhapsody*)
|
||||||
|
allow_undefined_flag='-undefined warning'
|
||||||
|
archive_cmds='$CC $(if [ "$module" = "yes" ]; then echo -bundle; else echo -dynamiclib -undefined suppress; fi) -o $lib $libobjs $deplibs $linkopts'
|
||||||
|
archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
|
||||||
|
## What we need is to hardcode the path to the library, not the search path
|
||||||
|
#hardcode_direct=yes
|
||||||
|
#hardcode_libdir_flag_spec='-install_name $libdir/$lib'
|
||||||
|
hardcode_shlibpath_var=no
|
||||||
|
whole_archive_flag_spec='-all_load'
|
||||||
|
;;
|
||||||
|
|
||||||
hpux9* | hpux10* | hpux11*)
|
hpux9* | hpux10* | hpux11*)
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
|
hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
|
||||||
|
|
@ -1903,6 +1914,18 @@ freebsd*)
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
darwin* | rhapsody*)
|
||||||
|
deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
||||||
|
file_magic_cmd=/usr/bin/file
|
||||||
|
file_magic_test_file=`echo System/Library/Frameworks/System.framework/Versions/*/System | head -1`
|
||||||
|
library_names_spec='${libname}.$(if [ "$module" = "yes" ]; then echo so; else echo dylib; fi)'
|
||||||
|
need_lib_prefix=no
|
||||||
|
need_version=no
|
||||||
|
postinstall_cmds='chmod +x $lib'
|
||||||
|
shlibpath_overrides_runpath=yes
|
||||||
|
shlibpath_var=DYLD_LIBRARY_PATH
|
||||||
|
;;
|
||||||
|
|
||||||
gnu*)
|
gnu*)
|
||||||
version_type=linux
|
version_type=linux
|
||||||
need_lib_prefix=no
|
need_lib_prefix=no
|
||||||
|
|
|
||||||
|
|
@ -1084,6 +1084,10 @@ compiler."
|
||||||
# These systems don't actually have c library (as such)
|
# These systems don't actually have c library (as such)
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
|
*-*-rhapsody* | *-*-darwin*)
|
||||||
|
# Darwin C library is in the System framework
|
||||||
|
deplibs="$deplibs -framework System"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
elif test "$arg" = "-lm"; then
|
elif test "$arg" = "-lm"; then
|
||||||
case "$host" in
|
case "$host" in
|
||||||
|
|
@ -1091,6 +1095,10 @@ compiler."
|
||||||
# These systems don't actually have math library (as such)
|
# These systems don't actually have math library (as such)
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
|
*-*-rhapsody* | *-*-darwin*)
|
||||||
|
# Darwin math library is in the System framework
|
||||||
|
deplibs="$deplibs -framework System"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
deplibs="$deplibs $arg"
|
deplibs="$deplibs $arg"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue