]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix spandsp --srcdir builds
authorMichael Jerris <mike@jerris.com>
Fri, 11 Dec 2009 19:03:38 +0000 (19:03 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 11 Dec 2009 19:03:38 +0000 (19:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15913 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/spandsp/configure.ac
libs/spandsp/src/Makefile.am

index 06eaf6ee887085443870571f19179ffee036a788..bfc348584ccbdef39b130feb560349094cec198a 100644 (file)
@@ -438,13 +438,15 @@ fi
 
 if test "$enable_builtin_tiff" = "yes" ; then
   abs_tiffdir="`cd $srcdir/../tiff-3.8.2/ && pwd`"
+  spandsp_builddir="`pwd`"
+  abs_tiffbuilddir="`cd $spandsp_builddir/../tiff-3.8.2/ && pwd`"
   save_CFLAGS=$CFLAGS
   CFLAGS="$CFLAGS -I$abs_tiffdir/libtiff"
   AC_CHECK_HEADERS([tiffio.h])
   CFLAGS="$save_CFLAGS"
   COMP_VENDOR_CFLAGS="-I$abs_tiffdir/libtiff $COMP_VENDOR_CFLAGS"
   COMP_VENDOR_LDFLAGS="-L$abs_tiffdir/libtiff $COMP_VENDOR_LDFLAGS"
-  LIBS="$LIBS $abs_tiffdir/libtiff/libtiff.la"
+  LIBS="$LIBS $abs_tiffbuilddir/libtiff/libtiff.la"
   AC_DEFINE([HAVE_LIBTIFF], [1], [Define to 1 if you have the `tiff' library (-ltiff).])
 else
   AC_CHECK_HEADERS([tiffio.h])
index 85b28a6de25c5d893ddd94b06507d7d7fbee523d..4c4c7d531af9b14bd9797c84acb09e09f16da940 100644 (file)
@@ -288,10 +288,10 @@ noinst_HEADERS =        faxfont.h \
                         v29tx_constellation_maps.h
 
 make_at_dictionary$(EXEEXT): $(top_srcdir)/src/make_at_dictionary.c
-       $(CC_FOR_BUILD) -o make_at_dictionary$(EXEEXT) $(top_srcdir)/src/make_at_dictionary.c  -DHAVE_CONFIG_H 
+       $(CC_FOR_BUILD) -o make_at_dictionary$(EXEEXT) $(top_srcdir)/src/make_at_dictionary.c  -DHAVE_CONFIG_H -I$(abs_builddir)
 
 make_modem_filter$(EXEEXT): $(top_srcdir)/src/make_modem_filter.c $(top_srcdir)/src/filter_tools.c 
-       $(CC_FOR_BUILD) -o make_modem_filter$(EXEEXT) $(top_srcdir)/src/make_modem_filter.c $(top_srcdir)/src/filter_tools.c -DHAVE_CONFIG_H -lm
+       $(CC_FOR_BUILD) -o make_modem_filter$(EXEEXT) $(top_srcdir)/src/make_modem_filter.c $(top_srcdir)/src/filter_tools.c -DHAVE_CONFIG_H -I$(abs_builddir) -lm
 
 # We need to run make_at_dictionary, so it generates the
 # at_interpreter_dictionary.h file