diff options
author | lloyd <[email protected]> | 2007-10-21 02:13:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-10-21 02:13:09 +0000 |
commit | b9f4051e2b6561c7af32b95872d337452da4ac2f (patch) | |
tree | 53cac3f3361064bc60621195f90eff531e556031 | |
parent | 88ca120bf1907ff48074e960919a736efc9de065 (diff) |
Remove the checks that the compiler specified works on the given OS/CPU.
All too often this information gets out of of date, so trust the user is
specifying something that makes sense if they use --cc, --cpu, or --os.
-rwxr-xr-x | configure.pl | 17 | ||||
-rw-r--r-- | misc/config/cc/bcc | 8 | ||||
-rw-r--r-- | misc/config/cc/compaq | 9 | ||||
-rw-r--r-- | misc/config/cc/ekopath | 9 | ||||
-rw-r--r-- | misc/config/cc/gcc | 36 | ||||
-rw-r--r-- | misc/config/cc/hpcc | 8 | ||||
-rw-r--r-- | misc/config/cc/icc | 12 | ||||
-rw-r--r-- | misc/config/cc/kai | 19 | ||||
-rw-r--r-- | misc/config/cc/mipspro | 9 | ||||
-rw-r--r-- | misc/config/cc/msvc | 8 | ||||
-rw-r--r-- | misc/config/cc/pgi | 9 | ||||
-rw-r--r-- | misc/config/cc/sgipro64 | 8 | ||||
-rw-r--r-- | misc/config/cc/sunwspro | 10 | ||||
-rw-r--r-- | misc/config/os/aix | 6 | ||||
-rw-r--r-- | misc/config/os/beos | 5 | ||||
-rw-r--r-- | misc/config/os/cygwin | 6 | ||||
-rw-r--r-- | misc/config/os/darwin | 7 | ||||
-rw-r--r-- | misc/config/os/freebsd | 9 | ||||
-rw-r--r-- | misc/config/os/hpux | 5 | ||||
-rw-r--r-- | misc/config/os/irix | 6 | ||||
-rw-r--r-- | misc/config/os/linux | 19 | ||||
-rw-r--r-- | misc/config/os/netbsd | 14 | ||||
-rw-r--r-- | misc/config/os/openbsd | 10 | ||||
-rw-r--r-- | misc/config/os/qnx | 8 | ||||
-rw-r--r-- | misc/config/os/solaris | 6 | ||||
-rw-r--r-- | misc/config/os/tru64 | 4 | ||||
-rw-r--r-- | misc/config/os/windows | 6 |
27 files changed, 3 insertions, 270 deletions
diff --git a/configure.pl b/configure.pl index e13fdacd9..60f8193e4 100755 --- a/configure.pl +++ b/configure.pl @@ -326,17 +326,6 @@ sub choose_target { my ($arch, $submodel) = figure_out_arch($cpu); - croak(realname($os), " doesn't run on $arch ($submodel)") - unless($arch eq 'generic' or $os eq 'generic' or - in_array($arch, $OPERATING_SYSTEM{$os}{'arch'})); - - croak(realname($cc), " doesn't run on $arch ($submodel)") - unless($arch eq 'generic' or - (in_array($arch, $ccinfo{'arch'}))); - - croak(realname($cc), " doesn't run on ", realname($os)) - unless($os eq 'generic' or (in_array($os, $ccinfo{'os'}))); - # hacks if($cc eq 'gcc') { $ccinfo{'binary_name'} = 'c++' if($os eq 'darwin'); @@ -369,6 +358,8 @@ sub choose_target { } } + autoconfig("$cc $os $arch $submodel"); + add_to($config, { 'compiler' => $cc, 'os' => $os, @@ -1248,7 +1239,6 @@ sub get_os_info { 'install_cmd_data:install_cmd_exec'); read_list($_, $reader, 'aliases', list_push(\@{$info{'aliases'}})); - read_list($_, $reader, 'arch', list_push(\@{$info{'arch'}})); read_list($_, $reader, 'supports_shared', list_push(\@{$info{'supports_shared'}})); @@ -1277,9 +1267,6 @@ sub get_cc_info { match_any_of($_, \%info, 'unquoted', 'makefile_style'); - read_list($_, $reader, 'os', list_push(\@{$info{'os'}})); - read_list($_, $reader, 'arch', list_push(\@{$info{'arch'}})); - sub quoted_mapping { my $hashref = $_[0]; return sub { diff --git a/misc/config/cc/bcc b/misc/config/cc/bcc index 56206fb81..a3bf7cf6f 100644 --- a/misc/config/cc/bcc +++ b/misc/config/cc/bcc @@ -26,11 +26,3 @@ i686 -> "/G6" athlon -> "/G6" pentium4 -> "/G6" </mach_opt> - -<arch> -ia32 -</arch> - -<os> -windows -</os> diff --git a/misc/config/cc/compaq b/misc/config/cc/compaq index 5710698a0..90811b039 100644 --- a/misc/config/cc/compaq +++ b/misc/config/cc/compaq @@ -24,12 +24,3 @@ default -> "$(CXX) -shared -soname $(SONAME)" <mach_opt> alpha -> "-arch=SUBMODEL" alpha- </mach_opt> - -<arch> -alpha -</arch> - -<os> -tru64 -linux -</os> diff --git a/misc/config/cc/ekopath b/misc/config/cc/ekopath index abf0b5b1c..f8bd8f2fe 100644 --- a/misc/config/cc/ekopath +++ b/misc/config/cc/ekopath @@ -35,12 +35,3 @@ core2duo -> "-mcpu=core" ia32 -> "-mcpu=anyx86" amd64 -> "-mcpu=athlon64" </mach_opt> - -<os> -linux -</os> - -<arch> -ia32 -amd64 -</arch> diff --git a/misc/config/cc/gcc b/misc/config/cc/gcc index 1485037c2..2111f9940 100644 --- a/misc/config/cc/gcc +++ b/misc/config/cc/gcc @@ -81,39 +81,3 @@ freebsd -> "-pthread" netbsd -> "-pthread" qnx -> "-fexceptions -D_QNX_SOURCE" </mach_abi_linking> - -<os> -aix -beos -cygwin -darwin -freebsd -hpux -irix -linux -netbsd -openbsd -qnx -solaris -tru64 -windows -</os> - -<arch> -alpha -amd64 -arm -hppa -ia32 -ia64 -m68k -mips32 -mips64 -ppc -ppc64 -s390 -s390x -sh -sparc32 -sparc64 -</arch> diff --git a/misc/config/cc/hpcc b/misc/config/cc/hpcc index 7167be329..2048c5bb2 100644 --- a/misc/config/cc/hpcc +++ b/misc/config/cc/hpcc @@ -27,11 +27,3 @@ hppa2.0 -> "+DA2.0W" <so_link_flags> default -> "$(CXX) +Z -b -Wl,+h,$(SONAME)" # Documented in cc(1), but not CC(1) (?) </so_link_flags> - -<arch> -hppa -</arch> - -<os> -hpux -</os> diff --git a/misc/config/cc/icc b/misc/config/cc/icc index 47c017130..8effcfd3b 100644 --- a/misc/config/cc/icc +++ b/misc/config/cc/icc @@ -22,19 +22,9 @@ makefile_style unix i686 -> "-march=pentium3" athlon -> "-march=pentium3" pentium4 -> "-march=pentium4" -"core2duo" -> "-march=sse3" +core2duo -> "-march=sse3" </mach_opt> <so_link_flags> default -> "$(CXX) -fPIC -shared" </so_link_flags> - -<arch> -amd64 -ia32 -ia64 -</arch> - -<os> -linux -</os> diff --git a/misc/config/cc/kai b/misc/config/cc/kai index 49afd1a3b..564ca2157 100644 --- a/misc/config/cc/kai +++ b/misc/config/cc/kai @@ -25,22 +25,3 @@ default -> "$(CXX) --soname $(SONAME)" <mach_abi_linking> all -> "--one_per" </mach_abi_linking> - -<arch> -alpha -hppa -ia32 -mips32 -mips64 -sparc32 -sparc64 -</arch> - -<os> -hpux -irix -linux -solaris -tru64 -</os> - diff --git a/misc/config/cc/mipspro b/misc/config/cc/mipspro index 2f01cf29e..8ceeb52b7 100644 --- a/misc/config/cc/mipspro +++ b/misc/config/cc/mipspro @@ -37,12 +37,3 @@ mips64-r10000 -> "-mips4 -r10000" mips32 -> "-n32" mips64 -> "-64" </mach_abi_linking> - -<arch> -mips32 -mips64 -</arch> - -<os> -irix -</os> diff --git a/misc/config/cc/msvc b/misc/config/cc/msvc index cb5b56b5d..63ee0a944 100644 --- a/misc/config/cc/msvc +++ b/misc/config/cc/msvc @@ -18,11 +18,3 @@ warning_flags "" ar_command "link /lib" makefile_style nmake - -<arch> -ia32 -</arch> - -<os> -windows -</os> diff --git a/misc/config/cc/pgi b/misc/config/cc/pgi index 9b5a24611..b67edbcc3 100644 --- a/misc/config/cc/pgi +++ b/misc/config/cc/pgi @@ -26,12 +26,3 @@ athlon -> "-tp k7" pentium4 -> "-tp p6" ia32 -> "-tp px" </mach_opt> - -<arch> -ia32 -</arch> - -<os> -linux -solaris -</os> diff --git a/misc/config/cc/sgipro64 b/misc/config/cc/sgipro64 index b1429df94..5bb561834 100644 --- a/misc/config/cc/sgipro64 +++ b/misc/config/cc/sgipro64 @@ -25,11 +25,3 @@ default -> "$(CXX) -shared -Wl,-soname,$(SONAME)" <mach_opt> </mach_opt> - -<arch> -ia64 -</arch> - -<os> -linux -</os> diff --git a/misc/config/cc/sunwspro b/misc/config/cc/sunwspro index 179b06408..842df153f 100644 --- a/misc/config/cc/sunwspro +++ b/misc/config/cc/sunwspro @@ -41,13 +41,3 @@ sparc64 -> "-xchip=SUBMODEL" sparc64- <mach_abi_linking> sparc64 -> "-xarch=v9" </mach_abi_linking> - -<arch> -ia32 -sparc32 -sparc64 -</arch> - -<os> -solaris -</os> diff --git a/misc/config/os/aix b/misc/config/os/aix index fd7330f18..cec818580 100644 --- a/misc/config/os/aix +++ b/misc/config/os/aix @@ -5,9 +5,3 @@ os_type unix <supports_shared> all </supports_shared> - -<arch> -ia64 -ppc -ppc64 -</arch> diff --git a/misc/config/os/beos b/misc/config/os/beos index 498bd493d..2b12792bb 100644 --- a/misc/config/os/beos +++ b/misc/config/os/beos @@ -11,11 +11,6 @@ doc_dir documentation all </supports_shared> -<arch> -ia32 -ppc -</arch> - <aliases> haiku </aliases> diff --git a/misc/config/os/cygwin b/misc/config/os/cygwin index ce10e504b..c2aadea98 100644 --- a/misc/config/os/cygwin +++ b/misc/config/os/cygwin @@ -11,9 +11,3 @@ doc_dir docs <supports_shared> #all </supports_shared> - -<arch> -ia32 -amd64 # in theory -ia64 # in theory -</arch> diff --git a/misc/config/os/darwin b/misc/config/os/darwin index 248dc3d97..597d91457 100644 --- a/misc/config/os/darwin +++ b/misc/config/os/darwin @@ -16,13 +16,6 @@ doc_dir doc all </supports_shared> -<arch> -ia32 -amd64 -ppc -ppc64 # g5! -</arch> - <aliases> macosx </aliases> diff --git a/misc/config/os/freebsd b/misc/config/os/freebsd index d7818cdc6..6cc184d98 100644 --- a/misc/config/os/freebsd +++ b/misc/config/os/freebsd @@ -7,12 +7,3 @@ install_group wheel <supports_shared> all </supports_shared> - -<arch> -alpha -amd64 -ia32 -ia64 -powerpc -sparc64 -</arch> diff --git a/misc/config/os/hpux b/misc/config/os/hpux index 7a12d10dd..6e17d3b73 100644 --- a/misc/config/os/hpux +++ b/misc/config/os/hpux @@ -8,11 +8,6 @@ so_suffix sl all </supports_shared> -<arch> -hppa -ia64 -</arch> - <aliases> hp-ux </aliases> diff --git a/misc/config/os/irix b/misc/config/os/irix index 773942391..fd8b43287 100644 --- a/misc/config/os/irix +++ b/misc/config/os/irix @@ -5,9 +5,3 @@ os_type unix <supports_shared> all </supports_shared> - -<arch> -mips32 -mips64 -</arch> - diff --git a/misc/config/os/linux b/misc/config/os/linux index 701fc9091..acf224244 100644 --- a/misc/config/os/linux +++ b/misc/config/os/linux @@ -6,22 +6,3 @@ os_type unix <supports_shared> all </supports_shared> - -<arch> -alpha -amd64 -arm -hppa -ia32 -ia64 -m68k -mips32 -mips64 -ppc -ppc64 -sh -sparc32 -sparc64 -s390 -s390x -</arch> diff --git a/misc/config/os/netbsd b/misc/config/os/netbsd index b0caeff70..da713e3a0 100644 --- a/misc/config/os/netbsd +++ b/misc/config/os/netbsd @@ -7,17 +7,3 @@ install_group wheel <supports_shared> all </supports_shared> - -<arch> -alpha -amd64 -arm -hppa -ia32 -ia64 -m68k -mips32 -mips64 -ppc -sparc32 -</arch> diff --git a/misc/config/os/openbsd b/misc/config/os/openbsd index 8d0329e1e..9f966bf49 100644 --- a/misc/config/os/openbsd +++ b/misc/config/os/openbsd @@ -7,13 +7,3 @@ install_group wheel <supports_shared> all </supports_shared> - -<arch> -alpha -ia32 -m68k -mips32 -ppc -sparc32 -sparc64 -</arch> diff --git a/misc/config/os/qnx b/misc/config/os/qnx index cd5ddab5f..28bc8dea9 100644 --- a/misc/config/os/qnx +++ b/misc/config/os/qnx @@ -5,11 +5,3 @@ os_type unix <supports_shared> all </supports_shared> - -<arch> -arm -ia32 -mips32 -ppc -sh -</arch> diff --git a/misc/config/os/solaris b/misc/config/os/solaris index 078019584..58b458e9b 100644 --- a/misc/config/os/solaris +++ b/misc/config/os/solaris @@ -9,12 +9,6 @@ install_cmd_exec install -u OWNER -g GROUP -m 755 all </supports_shared> -<arch> -ia32 -sparc32 -sparc64 -</arch> - <aliases> sunos </aliases> diff --git a/misc/config/os/tru64 b/misc/config/os/tru64 index e2b264104..e320c1df4 100644 --- a/misc/config/os/tru64 +++ b/misc/config/os/tru64 @@ -6,10 +6,6 @@ os_type unix all </supports_shared> -<arch> -alpha -</arch> - <aliases> osf1 </aliases> diff --git a/misc/config/os/windows b/misc/config/os/windows index e1170d79c..2f21da309 100644 --- a/misc/config/os/windows +++ b/misc/config/os/windows @@ -19,12 +19,6 @@ install_group <nil> #all </supports_shared> -<arch> -ia32 -amd64 # in theory -ia64 # in theory -</arch> - <aliases> win32 mswin32 |