SRC_URI = http://ftp.epix.net/apache/httpd/httpd-${PV}.tar.gz
 SECTION = net
-DEPENDS = virtual/libc expat libtool openssl
+DEPENDS = virtual/libc expat openssl
 RDEPENDS = libc6, libexpat1, libssl0.9.7
 
 S = ${WORKDIR}/httpd-${PV}
 
-inherit autotools
+inherit autotools libtool
 
 CFLAGS_append = " -DPATH_MAX=4096"
 CFLAGS_prepend = "-I${STAGING_DIR}/target/include/openssl "
 
 export EXTRA_CFLAGS="${CFLAGS}"
 EXTRA_OEMAKE_append=' CROSS=${CROSS}'
 
+inherit cml1
+
 do_configure () {
        install -m 0644 ${FILESDIR}/defconfig ${S}/.config
        cml1_do_configure
        install -m 0755 ${FILESDIR}/postinst ${D}/CONTROL/postinst;
        install -m 0755 ${FILESDIR}/prerm ${D}/CONTROL/prerm;
 }
-
-inherit cml1 base
 
 export EXTRA_CFLAGS="${CFLAGS}"
 EXTRA_OEMAKE_append=' CROSS=${CROSS}'
 
+inherit cml1
+
 do_configure () {
        install -m 0644 ${FILESDIR}/defconfig ${S}/.config
        cml1_do_configure
        install -m 0755 ${FILESDIR}/postinst ${D}/CONTROL/postinst;
        install -m 0755 ${FILESDIR}/prerm ${D}/CONTROL/prerm;
 }
-
-inherit cml1 base
 
 SRC_URI = ${SOURCEFORGE_MIRROR}/${PN}/${P}.tar.gz
 S = "${WORKDIR}/${P}"
 
-inherit autotools
+inherit autotools libtool
 
 do_stage () {
        install -m 0644 lib/expat.h ${STAGING_DIR}/target/include/
 
 SRC_URI := ${DEBIAN_MIRROR}/main/f/fakeroot/${PN}_${PV}.tar.gz
 S = ${WORKDIR}/${P}
 
-inherit autotools
+inherit autotools libtool
 
                   ${D}/sbin
        install -m 0755 ifup ${D}/sbin/
        ln ${D}/sbin/ifup ${D}/sbin/ifdown
-       install -m 0644 ${FILESDIR}/init ${D}/etc/init.d/init
+       install -m 0644 ${FILESDIR}/init ${D}/etc/init.d/networking
        install -m 0644 ${FILESDIR}/interfaces ${D}/etc/network/interfaces
 }
 
 SRC_URI = ${SOURCEFORGE_MIRROR}/irda/${P}.tar.gz
 S = ${WORKDIR}/${P}
 
-inherit autotools
+inherit autotools libtool
 
 do_compile () {
        oe_runmake -C irattach
 
          file://${FILESDIR}/debian.patch;patch=1
 S=${WORKDIR}/jpeg-${PV}
 
-inherit autotools
+inherit autotools libtool
 
 EXTRA_OECONF="--enable-static --enable-shared"
 
-# this libtool cant handle the multiword gcc
-CC:=${@oe.data.getVar("CC", d, 1).split()[-1].strip()}
 CFLAGS_append = " -D_REENTRANT"
 #export AR:=${AR} rv
 
 
 SRC_URI_append = " file://${FILESDIR}/libogg-configure.patch;patch=1"
 S=${WORKDIR}/${P}
 
-inherit autotools
+inherit autotools libtool
 
+DESCRIPTION = Generic library support script\
+ This is GNU libtool, a generic library support script.  Libtool hides\
+ the complexity of generating special library types (such as shared\
+ libraries) behind a consistent interface.  To use libtool, add the\
+ new generic library building commands to your Makefile, Makefile.in,\
+ or Makefile.am.  See the documentation for details.  Libtool supports\
+ building static libraries on all platforms.\
+ Libtool supports generation of C, C++ and Java libraries.
+
+SRC_URI = http://ftp.club.cc.cmu.edu/pub/gnu/libtool/libtool-1.5.tar.gz \
+         file://${FILESDIR}/libdir-la.patch;patch=1 \
+         file://${FILESDIR}/sedvar.patch;patch=1 \
+         file://${FILESDIR}/tag.patch;patch=1 \
+         file://${FILESDIR}/libtoolize-staging.patch;patch=1
+#        file://${FILESDIR}/libdir-rpath.patch;patch=1
+S = "${WORKDIR}/${P}"
+
+inherit autotools
+
+EXTRA_OECONF = --disable-ltdl-install
+do_configure_prepend () {
+       unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC CPP
+       ./bootstrap
+       rm -f ${S}/ltmain.sh
+}
+
+do_stage () {
+       install -d ${STAGING_DIR}/share/{libtool,aclocal}
+       install -m 0755 libtool ${STAGING_BINDIR}/libtool
+       install -m 0755 libtoolize ${STAGING_BINDIR}/libtoolize
+       install -c config.guess ${STAGING_DIR}/share/libtool/
+       install -c config.sub ${STAGING_DIR}/share/libtool/
+       install -c -m 0644 ltmain.sh ${STAGING_DIR}/share/libtool/
+       install -c -m 0644 libtool.m4 ${STAGING_DIR}/share/aclocal/
+       install -c -m 0644 ltdl.m4 ${STAGING_DIR}/share/aclocal/
+}
 
 SRC_URI = ${SOURCEFORGE_MIRROR}/openobex/${P}.tar.gz
 S = ${WORKDIR}/${P}
 
-inherit autotools
+inherit autotools libtool
 
 do_stage () {
        install -m 0755 src/.libs/libopenobex* ${STAGING_LIBDIR}/
 
 SRC_URI = ${SOURCEFORGE_MIRROR}/openobex/${P}.tar.gz
 S = ${WORKDIR}/${P}
 
-inherit autotools
+inherit autotools libtool
 
 EXTRA_OECONF = --disable-glibtest --with-glib-prefix=${STAGING_DIR}/target
 export OPENOBEX_CFLAGS=-I${STAGING_DIR}/target/include
 
 SRC_URI = ftp://ftp.csx.cam.ac.uk/pub/software/programming/${PN}/${P}.tar.bz2
 S = "${WORKDIR}/${P}"
 
-inherit autotools
+inherit autotools libtool
 
-# this libtool cant handle the multiword gcc
-CC:=${@oe.data.getVar("CC", d, 1).split()[-1].strip()}
 CFLAGS_append = " -D_REENTRANT"
 do_compile () {
        ${BUILD_CC} -I${S}/include -c dftables.c
 
 #SRC_URI_append = " file://${FILESDIR}/collie-module.patch;patch=1"
 S = ${WORKDIR}/${PN}
 
-inherit autotools
+inherit autotools libtool
 
 do_compile_prepend () {
        ./autogen.sh