From 9fb42baba94590e4219e62fc4e3ce0e92346d4e6 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 18 Apr 2007 00:06:48 +0000 Subject: added checking for Fink and DarwinPorts so PiDiP can find it's deps svn path=/trunk/externals/pidip/; revision=7575 --- configure.ac | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6028ec7..606d72b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT +AC_CANONICAL_HOST AC_CONFIG_HEADER(include/pidip_config.h) PDP_PIDIP_VERSION="0.12.20" @@ -18,6 +19,25 @@ THEORA_LIBS= enable_ffmpeg=no enable_mpeg4ip=no +# Check for DarwinPorts and/or Fink on Mac OS X/Darwin +case "$host" in + *-darwin* | *-macos10*) + if test -d /sw ; then + # Fink + PATH="/sw/bin:/sw/sbin:$PATH" + CFLAGS="$CFLAGS -I/sw/include" + CPPFLAGS="$CPPFLAGS -I/sw/include" + LDFLAGS="$LDFLAGS -L/sw/lib" + elif test -d /opt/local ; then + # DarwinPorts + PATH="/opt/local/bin:/opt/local/sbin:$PATH" + CFLAGS="$CFLAGS -I/opt/local/include" + CPPFLAGS="$CPPFLAGS -I/opt/local/include" + LDFLAGS="$LDFLAGS -L/opt/local/lib" + fi + ;; +esac + AC_ARG_WITH(pdsources, [ --with-pd=PATH pd source tree]) if ! test -z "${with_pd}" then -- cgit v1.2.1