This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Avoid $(shell) in determining default ARM ABI


> --- a/ports/sysdeps/arm/configure.in
> +++ b/ports/sysdeps/arm/configure.in
> @@ -40,4 +40,7 @@ AC_CACHE_CHECK([whether the compiler is using the ARM hard-float ABI],
>    ], libc_cv_arm_pcs_vfp=yes, libc_cv_arm_pcs_vfp=no)])
>  if test $libc_cv_arm_pcs_vfp = yes; then
>    AC_DEFINE(HAVE_ARM_PCS_VFP)
> +  echo "default-abi := hard" > default-abi.make
> +else
> +  echo "default-abi := soft" > default-abi.make

That's not right.  You need to use autoconf machinery for this so that
./config.status will recreate the file.  But actually you can just append
to config_vars in the fragment and then the main configure's
AC_CONFIG_COMMANDS will add your lines to config.make, which is even easier.


Thanks,
Roland


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