bug-gnulib
[Top][All Lists]
Advanced

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

update getline.m4 test


From: Bruno Haible
Subject: update getline.m4 test
Date: Sat, 22 Jul 2006 17:06:04 +0200
User-agent: KMail/1.9.1

Hi,

The getline.m4 causes trouble in relocatable.c if, during cross-compilation,
it defines getline to rpl_getline _even_ on glibc2 systems. A link
error occurs because relocatable.c is not prepared to need the getline.o
replacement module.

The fix is to make the getline.m4 test less pessimistic.

Bruno


2006-07-19  Bruno Haible  <address@hidden>

        * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume that
        getline works on glibc2 systems. Needed to avoid trouble in
        relocatable.c.
        Reported by Nils Magnus Larsgard <address@hidden>.

*** getline.m4  2 Aug 2005 09:33:30 -0000       1.16
--- getline.m4  22 Jul 2006 15:05:35 -0000
***************
*** 1,6 ****
! # getline.m4 serial 13
  
! dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 Free Software
  dnl Foundation, Inc.
  dnl
  dnl This file is free software; the Free Software Foundation
--- 1,6 ----
! # getline.m4 serial 14
  
! dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006 Free Software
  dnl Foundation, Inc.
  dnl
  dnl This file is free software; the Free Software Foundation
***************
*** 47,53 ****
      }
      ], am_cv_func_working_getline=yes dnl The library version works.
      , am_cv_func_working_getline=no dnl The library version does NOT work.
!     , am_cv_func_working_getline=no dnl We're cross compiling.
      )])
    fi
  
--- 47,64 ----
      }
      ], am_cv_func_working_getline=yes dnl The library version works.
      , am_cv_func_working_getline=no dnl The library version does NOT work.
!     , dnl We're cross compiling. Assume it works on glibc2 systems.
!       [AC_EGREP_CPP([Lucky GNU user],
!          [
! #include <features.h>
! #ifdef __GNU_LIBRARY__
!  #if (__GLIBC__ >= 2)
!   Lucky GNU user
!  #endif
! #endif
!          ],
!          [am_cv_func_working_getline=yes],
!          [am_cv_func_working_getline=no])]
      )])
    fi
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]