Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with autoconf and frameworks



I've found that configure checks often check for physical files rather than loading a library. So it may be looking for libogg.so or libogg.a, ... And, LDFLAGS is not always added to configure checks, so it may not be overriding the -logg and -lvorbis options in the check if it does try to load a library. I usually end up hacking configure, I don't know much about setting up autoconf.

On Dec 1, 2005, at 11:24 PM, Brandon D. Valentine wrote:

I'm trying to get a fairly standard UNIX app (icecast[0]) to compile
against shared libraries (libogg and libvorbis) installed as Frameworks
(the Xiph QT Frameworks[1]). I'd like to be able to distribute an OS X
installer package for icecast that depends on the Xiph QT Framework
package. This would be far preferable to the current methods for
installing icecast, which have people installing a second copy of the
Xiph libraries via fink or a similar mechanism. I'm new to the OS X
Frameworks packaging and the Apple porting guide only mentions autoconf
in passing.


libogg and libvorbis are installed as /Library/Frameworks/ Ogg.framework
and Vorbis.framework. I have tried setting LDFLAGS and CFLAGS to
"-framework Ogg -framework Vorbis", but configure complains that it
can't find the libraries.


  % ./configure LDFLAGS="-framework Ogg -framework Vorbis"
  [...]
  checking for libogg... not found
  checking for libvorbis... not found
  configure: error: must have Ogg Vorbis v1.0 or above installed

What is the correct, OS X like thing to do to teach autoconf and
automake how to find these libraries via their Frameworks? I'd like to
fix this, and pass it back to Xiph so that icecast will do the right
thing on OS X when these Frameworks are installed.


I'm sure a shove in the right direction from someone who's done this
before is all I need.

----- William Kyngesburye <email@hidden> http://www.kyngchaos.com/

All generalizations are dangerous, even this one.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden
References: 
 >help with autoconf and frameworks (From: "Brandon D. Valentine" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.