Bug 68382 - arts' configure fails to find my OSS installation
Summary: arts' configure fails to find my OSS installation
Status: RESOLVED FIXED
Alias: None
Product: configure
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-16 17:26 UTC by Torsten Kasch
Modified: 2004-01-10 20:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch for arts/configure.in.in (1.00 KB, patch)
2004-01-10 15:07 UTC, Torsten Kasch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kasch 2003-11-16 17:26:23 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 2.95.3 20010315 (release) 
OS:          Solaris

I'm trying to ./configure a recent arts snapshot on my Solaris 8 x86 box. Having OSS installed in /opt/oss, I've tried to configure arts the following way:

KDEDIR=/vol/kde-cvs
QTDIR=/vol/qt-3.2.1
CPPFLAGS="-I/opt/oss/include"
LDFLAGS="-R${KDEDIR}/lib -R${QTDIR}/lib -R/vol/local/lib -R/vol/graphics/lib"
PKG_CONFIG_PATH=/vol/gtk-2.2.0/lib/pkgconfig
export KDEDIR LDFLAGS QTDIR PKG_CONFIG_PATH
./configure \
   --prefix=${KDEDIR} \
   --with-qt-includes=${QTDIR}/include \
   --with-qt-libraries=${QTDIR}/lib \
   --with-extra-includes=/vol/local/include:/vol/graphics/include:/opt/oss/include \
   --with-extra-libs=/vol/local/lib:/vol/graphics/lib

Unfortunately this doesn't seem to pass /opt/oss/include for the autoconf test for <sys/soundcard.h> and thus HAVE_SYS_SOUNDCARD_H wouldn't get defined in config.h as it should.

additional notes:

* I'm using autoconf 2.53
* IIRC, this didn't work for arts from KDE 3.1.0 (at least)
Comment 1 Torsten Kasch 2004-01-10 15:07:01 UTC
Created attachment 4079 [details]
patch for arts/configure.in.in

Use KDE_CHECK_HEADERS() macro for sys/soundcard.h test so that CPPFLAGS are
used.
Comment 2 Stephan Kulow 2004-01-10 20:45:18 UTC
Subject: arts

CVS commit by coolo: 

applying the patch to fix solaris OSS 
CCMAIL: 68382-done@bugs.kde.org


  M +3 -1      configure.in.in   1.96


--- arts/configure.in.in  #1.95:1.96
@@ -58,5 +58,7 @@
 AC_HEADER_DIRENT
 AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/cdefs.h fnmatch.h sysent.h strings.h sys/stat.h sys/select.h sys/socket.h linux/socket.h socketbits.h sigaction.h paths.h malloc.h monetary.h sys/param.h limits.h sys/mnttab.h mntent.h fstab.h sys/soundcard.h)
+AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/cdefs.h fnmatch.h sysent.h strings.h sys/stat.h sys/select.h sys/socket.h linux/socket.h socketbits.h sigaction.h paths.h malloc.h monetary.h sys/param.h limits.h sys/mnttab.h mntent.h fstab.h)
+
+KDE_CHECK_HEADERS(sys/soundcard.h)
 
 dnl Checks for libraries.