This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch: toplevel patch for --enable-libgomp
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: aoliva at redhat dot com, dj at redhat dot com
- Date: Tue, 7 Mar 2006 15:24:26 -0400
- Subject: Re: patch: toplevel patch for --enable-libgomp
- References: <20060221205944.GA4866@redhat.com>
On Tue, Feb 21, 2006 at 04:59:44PM -0400, Aldy Hernandez wrote:
Ping.
I wrongly sent it to config-patches before.
Aldy
> This patch uses the existing machinery for --enable-foo, instead of the
> present hack. As a bonus, it gets document in configure's --help.
>
> Tested on x86-64-linux.
>
> OK?
>
> * configure.in: Re-arrange handling of enable-libgomp. Document.
> * configure: Regenerate.
>
> Index: configure.in
> ===================================================================
> --- configure.in (revision 111314)
> +++ configure.in (working copy)
> @@ -317,6 +317,32 @@ if test "${ENABLE_LIBSSP}" != "yes" ; th
> noconfigdirs="$noconfigdirs target-libssp"
> fi
>
> +AC_ARG_ENABLE(libgomp,
> +[ --enable-libgomp Builds libgomp directory],
> +ENABLE_LIBGOMP=$enableval,
> +ENABLE_LIBGOMP=yes)
> +# Allow --disable-libgomp to exclude target-libgomp
> +case $ENABLE_LIBGOMP in
> +no)
> + noconfigdirs="$noconfigdirs target-libgomp"
> + ;;
> +yes)
> + # Enable libgomp by default on hosted POSIX systems.
> + case "${target}" in
> + *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
> + ;;
> + *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
> + ;;
> + *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux*)
> + ;;
> + *-*-darwin* | *-*-aix*)
> + ;;
> + *)
> + noconfigdirs="$noconfigdirs target-libgomp"
> + ;;
> + esac
> +esac
> +
> # Set the default so we build libgcc-math for ix86 and x86_64
> AC_ARG_ENABLE(libgcc-math,
> [ --enable-libgcc-math Builds libgcc-math directory],,
> @@ -371,31 +397,6 @@ no)
> esac
> esac
>
> -# Allow --disable-libgomp to exclude target-libgomp
> -case $enable_libgomp in
> -yes)
> - ;;
> -no)
> - noconfigdirs="$noconfigdirs target-libgomp"
> - ;;
> -"")
> - # Enable libgomp by default on hosted POSIX systems.
> - case "${target}" in
> - *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
> - ;;
> - *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
> - ;;
> - *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux*)
> - ;;
> - *-*-darwin* | *-*-aix*)
> - ;;
> - *)
> - noconfigdirs="$noconfigdirs target-libgomp"
> - ;;
> - esac
> -esac
> -
> -
> case "${target}" in
> *-*-chorusos)
> noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"