diff aclocal.m4 @ 1452:dd63b61df78c

[xemacs-hg @ 2003-05-03 22:47:10 by youngs] 2003-05-04 Steve Youngs <youngs@xemacs.org> * configure: Regenerate. 2003-05-01 Andrew Begel <abegel@CS.Berkeley.EDU> * configure.in: Move module detection to after src/ is added to MAKE_SUBDIR. On MacOS X, building modules requires xemacs to already be built. * aclocal.m4 (XE_SHLIB_STUFF): Properly define ellcc flags for MacOS X.
author youngs
date Sat, 03 May 2003 22:47:15 +0000
parents 184461bc8de4
children 1364f9716d7b
line wrap: on
line diff
--- a/aclocal.m4	Sat May 03 21:52:21 2003 +0000
+++ b/aclocal.m4	Sat May 03 22:47:15 2003 +0000
@@ -93,6 +93,9 @@
     # PIC is the default for these OSes.
     ;;
 
+  *darwin*) dll_cflags='-dynamic'
+    ;;
+
   os2*)
     # We can build DLLs from non-PIC.
     ;;
@@ -253,8 +256,16 @@
 xcldf=
 AC_MSG_CHECKING(if C compiler can produce shared libraries)
 if test "$XEGCC" = yes; then
-  xcldf="-shared"
-  xldf="-shared"
+  case "$xehost_os" in
+     *darwin*)
+          xcldf='-bundle'
+	  xldf='-bundle -bundle_loader ../../src/xemacs'
+     ;;
+     * )
+       xcldf="-shared"
+       xldf="-shared"
+     ;;
+  esac
 else # Not using GCC
   case "$xehost_os" in
     aix[[3-9]]*)
@@ -511,7 +522,6 @@
       dll_ldflags="-r"
       dll_ld="shlicc2"
       ;;
-
     *)
       ld_shlibs=no
       can_build_shared=no
@@ -551,6 +561,10 @@
     ld_dynamic_link_flags=
     ;;
 
+  *darwin*)
+    ld_dynamic_link_flags=
+    ;;
+
   freebsd2.2*)
     ld_dynamic_link_flags=
     ;;