bug-autoconf
[Top][All Lists]
Advanced

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

autoconf 2.60/2.61 and Solaris 2.4


From: Bruno Haible
Subject: autoconf 2.60/2.61 and Solaris 2.4
Date: Sun, 4 Mar 2007 03:26:57 +0100
User-agent: KMail/1.5.4

Hi,

The following simple configure.ac

========================= configure.ac ===========================
AC_INIT
AC_PROG_CC
AC_EGREP_CPP([notc99], [
#if 0
  notc99
#endif
  ],
  [gl_cv_func_printf_retval_c99="guessing no"],
  [gl_cv_func_printf_retval_c99="guessing yes"])
AC_OUTPUT
===================================================================

processed with autoconf 2.60 or 2.61, yields a configure script that
cannot be processed on Solaris 2.4. On this machine I do

$ export PATH=/opt/SUNWspro/SC5.0/bin:/usr/bin:/usr/ccs/bin
$ export CC="cc -O"
$ ./configure

The result is that the configure script aborts:

checking for gcc... cc -O
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc -O accepts -g... yes
checking for cc -O option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -O -E
checking for grep that handles long lines and -e... configure: error: no 
acceptable grep could be found in 
/opt/SUNWspro/SC5.0/bin:/usr/bin:/usr/ccs/bin:/usr/xpg4/bin

The configure script generated with autoconf 2.59, on the other hand, works:

checking for gcc... cc -O
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc -O accepts -g... yes
checking for cc -O option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -O -E
checking for egrep... egrep
configure: creating ./config.status

No problem on Solaris 2.5.1.

This means that autoconf >= 2.60 has dropped support for Solaris 2.4, right?

                 Bruno





reply via email to

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