This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Your recent change to gcc/configure.in


> 
> This change 
> 
> 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
> 
>         * configure.in: Take toplevel configure arguments from the
>         environment to create configargs.h and substitute
>         gcc_config_arguments, taking account of any existing configargs.h
>         if reconfiguring.
>         * configure: Regenerate.
> 
> Breaks builds on Solaris machines.  'test' on these machines does not 
> support the -e flag.
> 
> Also, in autoconf files you should use 'test', not '['; since I believe 
> that the latter is not as widely available on some obscure machines.
> 
> R.
> 


Ok, I've installed the following patch to fix this problem:

2000-11-13  Richard Earnshaw  <rearnsha@arm.com>

	* configure.in:  Use 'test -f' not '[ -e'.
	* configure: Regenerated.


Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.450
diff -p -r1.450 configure.in
*** configure.in	2000/11/13 13:39:35	1.450
--- configure.in	2000/11/13 16:54:40
*************** gcc_version_full=`grep version_string ${
*** 4204,4210 ****
  gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
  
  # Compile in configure arguments.
! if [ -e configargs.h ]; then
  	# Being re-configured.
  	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
  	gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
--- 4204,4210 ----
  gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
  
  # Compile in configure arguments.
! if test -f configargs.h ; then
  	# Being re-configured.
  	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
  	gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]