unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* configure.in/darwin: remove fink dependency?
@ 2005-02-11  0:31 Martin Fredriksson
  2005-02-11  4:20 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Fredriksson @ 2005-02-11  0:31 UTC (permalink / raw


In configure.in, for powerpc-apple-darwin, I believe that "using fink 
packages if available" should be removed.  There is no use for that (as 
far as I know?) since the needed packages (I think it's only ncurses) 
are part of the normal development environment.

The problem with using fink packages is when one builds on a machine 
with fink present.  The resulting binary will have dynamic dependencies 
to "/sw/lib/..." which might not exist on other machines.

I suggest following patch:

--- configure.in.orig   Fri Feb 11 01:19:29 2005
+++ configure.in        Fri Feb 11 01:19:58 2005
@@ -1126,12 +1126,6 @@
      machine=powermac opsys=darwin
      # Define CPP as follows to make autoconf work correctly.
      CPP="${CC-cc} -E -no-cpp-precomp"
-    # Use fink packages if available.
-    if test -d /sw/include && test -d /sw/lib; then
-       GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
-        CPP="${CPP} ${GCC_TEST_OPTIONS}"
-       NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
-    fi
    ;;

    ## AMD x86-64 Linux-based GNU system

Note the question mark in the subject.  Anyone think this should be 
kept there?

/m

-- 
Martin Fredriksson <m@rfc.se>, 0730-59 77 00

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: configure.in/darwin: remove fink dependency?
  2005-02-11  0:31 configure.in/darwin: remove fink dependency? Martin Fredriksson
@ 2005-02-11  4:20 ` Stefan Monnier
  2005-02-11  4:45   ` Martin Fredriksson
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2005-02-11  4:20 UTC (permalink / raw
  Cc: emacs-devel

> In configure.in, for powerpc-apple-darwin, I believe that "using fink
> packages if available" should be removed.  There is no use for that (as far
> as I know?) since the needed packages (I think it's only ncurses) are part
> of the normal development environment.
[...]
> Note the question mark in the subject.  Anyone think this should be
> kept there?

Well, I added this code specifically to find some extra libs, not
for ncurses.  I can't remember exactly which libs I cared about but IIRC
there was Xaw3d (used for the scrollbar) as well some image libs.
There could also be gtk libs there for people who want to build with gtk.

AFAIK the reasons I added the code are still valid.  Maybe this only makes
sense for the X11 build and not for the Carbon build, I wouldn't know (I
only build it for X11).


        Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: configure.in/darwin: remove fink dependency?
  2005-02-11  4:20 ` Stefan Monnier
@ 2005-02-11  4:45   ` Martin Fredriksson
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Fredriksson @ 2005-02-11  4:45 UTC (permalink / raw
  Cc: emacs-devel

On 11 feb 2005, at 05.20, Stefan Monnier wrote:

>> In configure.in, for powerpc-apple-darwin, I believe that "using fink
>> packages if available" should be removed.  There is no use for that 
>> (as far
>> as I know?) since the needed packages (I think it's only ncurses) are 
>> part
>> of the normal development environment.
>
> Well, I added this code specifically to find some extra libs, not
> for ncurses.  I can't remember exactly which libs I cared about but 
> IIRC
> there was Xaw3d (used for the scrollbar) as well some image libs.
> There could also be gtk libs there for people who want to build with 
> gtk.
>
> AFAIK the reasons I added the code are still valid.  Maybe this only 
> makes
> sense for the X11 build and not for the Carbon build, I wouldn't know 
> (I
> only build it for X11).

I forgot about X11... (I only build for Carbon...).  I understand the 
need there.  Perhaps then it should also check for darwinports 
(/opt/local/{include,lib}) as some people use that instead of fink?

I still think it's a problem with dependencies on files which are not 
always present, but I guess one just has to be careful when building a 
binary package (I do 'mv /sw /sw.SAVE' prior to my build...).

/m

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-11  4:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-11  0:31 configure.in/darwin: remove fink dependency? Martin Fredriksson
2005-02-11  4:20 ` Stefan Monnier
2005-02-11  4:45   ` Martin Fredriksson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).