Build: Check solaris_{as,ld} where appropriate.
The build system now directly checks for Solaris assembler and linker, improving clarity and simplification.
The GCC build system’s configure script now directly checks for the Solaris assembler (as) and linker (ld) using the solaris_as and solaris_ld variables. This improves clarity by directly testing for the Solaris tools instead of relying on negations of gas and gnu_ld. The change simplifies some tests and converts some case/esac statements to if/else statements.
In Details
Several gas and gnu_ld checks in gcc/configure need to determine if Solaris as and ld are in use. This patch checks solaris_as and solaris_ld directly instead of !gas and !gnu_ld in configure.ac and acinclude.m4. Since solaris_as/solaris_ld imply target *-*-solaris2*, tests can be simplified and sometimes converted from case/esac to if/else. No functional change, but improves readability of build scripts.
For Context
The GCC build system needs to adapt to different operating systems and toolchains. This commit improves how the build system detects and configures itself for Solaris, a Unix-based operating system. By directly checking for the Solaris assembler and linker, the build process becomes more reliable and easier to understand. This ensures that GCC can be built correctly on Solaris systems.