ref: ff16ab098e1ffe799f8ea87efc7458fcf0a93371
parent: cc71cded7690c1fb0912c8e54919cf3462f521d6
author: Ron <[email protected]>
date: Wed Sep 19 12:12:16 EDT 2012
Just fix opus-uninstalled.pc instead of tweaking the build dir Doing it this way means it's only the weird corner case that actually pays for being weird, and we don't litter the build dir with an extra link that normal builds really don't need at all. It also avoids the problem of platforms where LN_S isn't well defined.
--- a/configure.ac
+++ b/configure.ac
@@ -292,13 +292,6 @@
AC_SUBST([PC_LIBM])
-AC_CONFIG_COMMANDS([builddir-include],
- [ if test ! -e include; then
- $LN_S $ac_top_srcdir/include include
- fi
- ],[ LN_S="$LN_S" ]
- )
-
AC_CONFIG_FILES([Makefile opus.pc opus-uninstalled.pc
doc/Makefile doc/Doxyfile])
--- a/opus-uninstalled.pc.in
+++ b/opus-uninstalled.pc.in
@@ -9,4 +9,4 @@
Requires:
Conflicts:
Libs: ${libdir}/libopus.a @PC_LIBM@
-Cflags: -I${includedir}/include
+Cflags: -I${pcfiledir}/@top_srcdir@/include