Article View: gnu.utils.bug
Article #759Bug in autoconf 1.1 ?
From: Remy CARD
Date: Mon, 07 Sep 1992 14:16
Date: Mon, 07 Sep 1992 14:16
41 lines
1750 bytes
1750 bytes
Hi, I have found a bug in the configure script that comes with the shellutils version 1.7. This script seems to have been generated by autoconf so I have looked at this program and patched it. Description of the bug: On a Linux machine using gcc 2.2.2, the shellutils' configure incorrectly assumes that tzname does not exist. I have taken a look at configure and it seems that it detects if tzname is present by trying to compile a program containing 'extern char **tzname;'. In Linux, tzname is declared in time.h as 'extern char *tzname[2];' and gcc says that the two declarations are not compatible. The fix is to change the declaration of tzname in acspecific.m4 contained in the autoconf distribution. The patch is enclosed at the end of this mail. -- Remy Card card@masi.ibp.fr *** acspecific.m4.old Mon Sep 7 15:07:08 1992 --- acspecific.m4 Mon Sep 7 15:07:21 1992 *************** *** 484,490 **** if test -n "$no_tm_zone"; then AC_COMPILE_CHECK(tzname, [#include <time.h> #ifndef tzname /* For SGI. */ ! extern char **tzname; #endif], [atoi(*tzname);], AC_DEFINE(HAVE_TZNAME)) fi ])dnl --- 484,490 ---- if test -n "$no_tm_zone"; then AC_COMPILE_CHECK(tzname, [#include <time.h> #ifndef tzname /* For SGI. */ ! extern char *tzname[]; #endif], [atoi(*tzname);], AC_DEFINE(HAVE_TZNAME)) fi ])dnl
Technical Details
Message-ID:
<9209071416.AA23620@masi.ibp.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!masi.ibp.fr!cardShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!masi.ibp.fr!card From: card@masi.ibp.fr (Remy CARD) Subject: Bug in autoconf 1.1 ? Message-ID: <9209071416.AA23620@masi.ibp.fr> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 7 Sep 1992 14:16:29 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 42