https://bugzilla.novell.com/show_bug.cgi?id=382344 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=382344#c5 --- Comment #5 from Stanislav Brabec <sbrabec@novell.com> 2009-03-17 06:42:10 MST --- Here is the new version of site script. It is intended only for 64-bit bi-arch platforms. It can be places anywhere, but CONFIG_SITE shell variable should point to it. It is possible to modify this script to be shareable for all platforms. It modifies behavior of configure in all prefixes, not only /usr/local. It's possible to limit this behavior only to specific prefixes. It is possible to alter the default libexecdir in the same way to prevent /usr/local/libexec. -------------------- # If user did not specify libdir, guess the correct target: # Use lib64 for 64 bit targets, keep the default for the rest. if test "$libdir" = '${exec_prefix}/lib' ; then # We are trying to guess 32-bit target compilation. It's not as easy as # it sounds, as there is possible several intermediate combinations. ac_config_site_32bit_target=NONE # User defined -m32 in CFLAGS or CXXFLAGS: # (It's sufficient for 32-bit, but alone may cause mis-behavior of some checks.) case "$CFLAGS" in *-m32*) ac_config_site_32bit_target=YES ;; esac case "$CXXFLAGS" in *-m32*) ac_config_site_32bit_target=YES ;; esac # User explicitly specified counterpart --host: # (If cross toolchain is installed, generates 32-bit, else generates native.) case "$host" in *i[3456]86-* | ppc-* | s390-* ) ac_config_site_32bit_target=YES ;; esac # Running with linux32: # (Changes detected platform, but not the toolchain target.) case "`/bin/uname -i`" in x86_64 | ppc64 | s390x ) ;; * ) ac_config_site_32bit_target=YES ;; esac if test "x$ac_config_site_32bit_target" = xNONE; then libdir='${exec_prefix}/lib64' fi fi # Continue with the standard behavior of configure defined in AC_SITE_LOAD: if test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do if test -r "$ac_site_file"; then { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done -------------------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.