This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Clean up configure glibc version detection, add --with-glibc-version


Il 06/11/2013 19:33, Joseph S. Myers ha scritto:
> +dnl GCC_GLIBC_VERSION_GTE_IFELSE(MAJOR, MINOR, IF-TRUE, IF-FALSE)
> +dnl -------------------------------------------------------------
> +dnl If the target glibc version ($glibc_version_major.$glibc_version_minor)
> +dnl is at least MAJOR.MINOR, call IF-TRUE, otherwise call IF-FALSE.
> +AC_DEFUN([GCC_GLIBC_VERSION_GTE_IFELSE],
> +[
> +if test $glibc_version_major -gt $1 \
> +  || ( test $glibc_version_major -eq $1 && test $glibc_version_minor -ge $2 );
> +then
> +  :
> +  $3
> +else
> +  :
> +  $4
> +fi])

Ok, but please use AS_IF here.

Paolo


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