From 0a2f8b61d47116a2f2e17f6026fd7f17c2f15878 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 28 Aug 2000 09:53:42 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 7b94b98d71..be54aa5091 100644 --- a/configure.in +++ b/configure.in @@ -57,6 +57,10 @@ AC_ARG_ENABLE(fat-binary, # to ensure AC_HEADER_SYS_WAIT works AC_DEFINE(_POSIX_SOURCE) ;; + darwin*) + echo -n "MacOS X (Darwin): " + TARGET_ARCHS="ppc" + ;; esac # /usr/lib/arch_tool -archify_list $TARGET_ARCHS for archs in $TARGET_ARCHS @@ -160,6 +164,7 @@ case "$target_os" in nextstep*) ;; openstep*) ;; rhapsody*) ;; +darwin*) ;; human*) ac_cv_func_getpgrp_void=yes;; beos*) ;; cygwin*) rb_cv_have_daylight=no;; @@ -443,6 +448,7 @@ if test "$with_dln_a_out" != yes; then nextstep*) ;; openstep*) ;; rhapsody*) ;; + darwin*) ;; human*) ;; bsdi*) ;; beos*) ;; @@ -524,6 +530,10 @@ if test "$with_dln_a_out" != yes; then LDFLAGS="" DLDFLAGS="$ARCH_FLAG" rb_cv_dlopen=yes ;; + darwin*) LDSHARED='cc -dynamic -bundle -undefined suppress' + LDFLAGS="" + DLDFLAGS="$ARCH_FLAG" + rb_cv_dlopen=yes ;; aix*) LDSHARED='/usr/ccs/bin/ld' XLDFLAGS='-Wl,-bE:ruby.imp' DLDFLAGS='-brtl -eInit_$(TARGET) -bI:$(topdir)/ruby.imp -bM:SRE -T512 -H512 -lc' @@ -590,6 +600,8 @@ else AC_DEFINE(DLEXT, ".bundle");; rhapsody*) DLEXT=bundle AC_DEFINE(DLEXT, ".bundle");; + darwin*) DLEXT=bundle + AC_DEFINE(DLEXT, ".bundle");; os2_emx*) DLEXT=dll AC_DEFINE(DLEXT, ".dll");; cygwin*|mingw*) DLEXT=so @@ -617,6 +629,8 @@ case "$target_os" in STRIP='strip -A -n';; rhapsody*) STRIP='strip -A -n';; + darwin*) + STRIP='strip -A -n';; esac EXTSTATIC= @@ -803,6 +817,9 @@ case "$target_os" in rhapsody*) CFLAGS="$CFLAGS -pipe -no-precomp" ;; + darwin*) + CFLAGS="$CFLAGS -pipe -no-precomp" + ;; os2_emx) CFLAGS="$CFLAGS -DOS2" ;; -- cgit v1.2.3