linking small programs with AC_LINK_IFELSE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm wondering. I'm trying to use AC_LINK_IFELSE to link a small program
against libexpat. I set the flags 
  LIBS="$LIBS $EXPAT_LDADD"
  CPPFLAGS="$CPPFLAGS $EXPAT_INCLUDES"
  LDFLAGS="$LDFLAGS $EXPAT_LDFLAGS"
appropriatly. 

The problem is, I use the program to determine if libexpat has been
compiled already. If that doesn't work, I go ahead and ./configure &&
make the libexpat that i've packed in my distro. Now, if libexpat is
already installed on the system, this test always passes, because gcc
finds it in the standard location. Is there anything I can do to force
gcc and autoconf to link that program and only use the libraries and
headers that I give it?

Thanks,
Bob Rossi


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux