From: mquinson Date: Fri, 11 Dec 2009 12:25:28 +0000 (+0000) Subject: We need to try linking the code to detect getline, or gcc will think that this is... X-Git-Tag: SVN~840 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f027d4c352e944191a07b6426b1df851e9638404?ds=sidebyside We need to try linking the code to detect getline, or gcc will think that this is a yet undefined external symbol git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6886 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/configure.ac b/configure.ac index 96f482d3a2..88bdf2a778 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,7 @@ AC_CHECK_FUNCS([gettimeofday usleep \ dnl GNU systems before POSIX2008 need the _GNU_SOURCE definition to find getline (and simgrid does pass this) AC_MSG_CHECKING(a usable getline) -AC_COMPILE_IFELSE([ +AC_LINK_IFELSE([ #define _GNU_SOURCE #include int main(void){