[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r11089 - in /libdfp/trunk: ChangeLog README.developer config.log configure configure.ac
- To: commits@xxxxxxxxxx
- Subject: [commits] r11089 - in /libdfp/trunk: ChangeLog README.developer config.log configure configure.ac
- From: ryanarn@xxxxxxxxxx
- Date: Wed, 28 Jul 2010 21:24:16 -0000
Author: ryanarn
Date: Wed Jul 28 14:24:15 2010
New Revision: 11089
Log:
2010-07-28 Ryan S. Arnold <rsa@xxxxxxxxxx>
* configure: Regenerated.
* config.log: Removed as unnecessary.
* configure.ac: --target now works in lieu of --build. --host is no
longer necessary.
* README.developer: Removed directive to use --host and replaced with a
diective to use --target.
Removed:
libdfp/trunk/config.log
Modified:
libdfp/trunk/ChangeLog
libdfp/trunk/README.developer
libdfp/trunk/configure
libdfp/trunk/configure.ac
Modified: libdfp/trunk/ChangeLog
==============================================================================
--- libdfp/trunk/ChangeLog (original)
+++ libdfp/trunk/ChangeLog Wed Jul 28 14:24:15 2010
@@ -1,3 +1,12 @@
+2010-07-28 Ryan S. Arnold <rsa@xxxxxxxxxx>
+
+ * configure: Regenerated.
+ * config.log: Removed as unnecessary.
+ * configure.ac: --target now works in lieu of --build. --host is no
+ longer necessary.
+ * README.developer: Removed directive to use --host and replaced with a
+ diective to use --target.
+
2010-07-26 Ryan S. Arnold <rsa@xxxxxxxxxx>
* configure: Regenerated file.
Modified: libdfp/trunk/README.developer
==============================================================================
--- libdfp/trunk/README.developer (original)
+++ libdfp/trunk/README.developer Wed Jul 28 14:24:15 2010
@@ -289,7 +289,7 @@
Some System Z machines require the -mzarch flag, e.g.
CFLAGS="-m31 -mzarch -O2 -g"
- These should accompany sympathetic --build and --host switches
+ These should accompany sympathetic --build or --target switches
described below, e.g.
powerpc-linux-gnu for -m32
@@ -305,11 +305,15 @@
In order to build 32-bit libdfp you can pass the following switches:
- --build=powerpc-linux-gnu --host=powerpc-linux-gnu
+ --build=powerpc-linux-gnu
+ or
+ --target=powerpc-linux-gnu
In order to build 64-bit libdfp you can pass the following switches:
- --build=powerpc64-linux-gnu --host=powerpc64-linux-gnu
+ --build=powerpc64-linux-gnu
+ or
+ --target=powerpc64-linux-gnu
The following switches define the DFP backend.
@@ -394,7 +398,7 @@
--with-backend=libdecnumber --enable-decimal-float=dpd \
--libdir=/usr/lib64/ \
--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
- --build=powerpc64-linux-gnu --host=powerpc64-linux-gnu \
+ --build=powerpc64-linux-gnu \
--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc64_power5 \
2>&1 | tee _configure64_power5
@@ -406,7 +410,7 @@
--with-backend=libdecnumber --enable-decimal-float=dpd \
--libdir=/usr/lib64/ \
--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
- --build=powerpc64-linux-gnu --host=powerpc64-linux-gnu \
+ --build=powerpc64-linux-gnu \
--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc64_power6 \
--with-cpu=power6 2>&1 | tee _configure64_power6
@@ -418,7 +422,7 @@
--with-backend=libdecnumber --enable-decimal-float=dpd \
--libdir=/usr/lib64/ \
--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
- --build=powerpc64-linux-gnu --host=powerpc64-linux-gnu \
+ --build=powerpc64-linux-gnu \
--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc64_power7 \
--with-cpu=power7 2>&1 | tee _configure64_power7
@@ -428,7 +432,7 @@
/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
--with-backend=libdecnumber --enable-decimal-float=dpd \
--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
- --build=powerpc-linux-gnu --host=powerpc-linux-gnu \
+ --build=powerpc-linux-gnu \
--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc32_power5 \
2>&1 | tee _configure32_power5
@@ -438,7 +442,7 @@
/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
--with-backend=libdecnumber --enable-decimal-float=dpd \
--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
- --build=powerpc-linux-gnu --host=powerpc-linux-gnu \
+ --build=powerpc-linux-gnu \
--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc32_power6 \
--with-cpu=power6 2>&1 | tee _configure32_power6
@@ -448,7 +452,7 @@
/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
--with-backend=libdecnumber --enable-decimal-float=dpd \
--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
- --build=powerpc-linux-gnu --host=powerpc-linux-gnu \
+ --build=powerpc-linux-gnu \
--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc32_power7 \
--with-cpu=power7 2>&1 | tee _configure32_power7
Modified: libdfp/trunk/configure
==============================================================================
--- libdfp/trunk/configure (original)
+++ libdfp/trunk/configure Wed Jul 28 14:24:15 2010
@@ -276,7 +276,7 @@
ac_unique_file="printf_dfp.c"
ac_subdirs_all="$ac_subdirs_all libdecnumber"
ac_subdirs_all="$ac_subdirs_all libbid"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os enable_decimal_float dfp_backend with_dfp with_fp base_machine machine CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT OBJDUMP AS ASFLAGS libdfp_cv_cc_with_decimal_float glibc_headers glibc_build enable_static enable_shared submachine submachine_opt sysdep_dirs RANLIB ac_ct_RANLIB AWK subdirs LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os enable_decimal_float dfp_backend with_dfp with_fp base_machine machine CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT OBJDUMP AS ASFLAGS libdfp_cv_cc_with_decimal_float glibc_headers glibc_build enable_static enable_shared submachine submachine_opt sysdep_dirs RANLIB ac_ct_RANLIB AWK subdirs LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
@@ -797,6 +797,7 @@
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
+ --target=TARGET configure for building compilers for TARGET [HOST]
_ACEOF
fi
@@ -1396,20 +1397,60 @@
-# Do we support `cross' libdfp support? Probably. But this may not be necessary.
-# The implication is that we can't actually guess the Decimal Float Type backend based
-# upon the $build_* variables.
-
-# Copied from GLIBC, but this may be unnecessary.
-config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
-machine=$config_machine
-
-# Only allow a Linux host OS.
+# Do we support `cross' libdfp support? Probably. But this may not be
+# necessary. The implication of building a cross libdfp is that we can't
+# actually guess the Decimal Float Type backend based upon the $build_*
+# variables. This will be manifest as a --target that differs from --build.
+echo "$as_me:$LINENO: checking target system type" >&5
+echo $ECHO_N "checking target system type... $ECHO_C" >&6
+if test "${ac_cv_target+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_target_alias=$target_alias
+test "x$ac_cv_target_alias" = "x" &&
+ ac_cv_target_alias=$ac_cv_host_alias
+ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
+echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_target" >&5
+echo "${ECHO_T}$ac_cv_target" >&6
+target=$ac_cv_target
+target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+
+# The aliases save the names the user supplied, while $host etc.
+# will get canonicalized.
+test -n "$target_alias" &&
+ test "$program_prefix$program_suffix$program_transform_name" = \
+ NONENONEs,x,x, &&
+ program_prefix=${target_alias}-
+
+config_os=$host_os
+machine=$host_cpu
+target_machine=$target_cpu
+
+# If the user uses --target instead of --host we can detect it.
+if test "$target_machine" != "$machine"; then
+ machine=$target_machine
+fi
+
+# Only allow a Linux host OS. We don't support building libdfp on non-Linux
+# systems.
if test "$config_os" != linux-gnu; then
- { { echo "$as_me:$LINENO: error: 'linux-gnu' is the only supported host OS" >&5
-echo "$as_me: error: 'linux-gnu' is the only supported host OS" >&2;}
+ { { echo "$as_me:$LINENO: error: 'linux-gnu' is the only allowed host OS" >&5
+echo "$as_me: error: 'linux-gnu' is the only allowed host OS" >&2;}
{ (exit 1); exit 1; }; }
fi
+
+## This will fail on a pcc64 system where we're configuring for ppc.
+#if test "$host_cpi" != "$target_cpu"; then
+# AC_MSG_ERROR([${PACKAGE_NAME} does not yet support cross-compliation.])
+#fi
# PowerPC[64] defaults to DPD encoded DFP. x86[_64] defaults to BID encoded DFP.
default_encoding=
@@ -3041,9 +3082,7 @@
# Wherever there's a standalone configure fragment we need to tell the top
-# level configure to recurse into it. This doesn't pass the full complement
-# of CFLAGS necessary so Makefile.in will need to manually pass the CFLAGS to
-# the backend `make' invocation.
+# level configure to recurse into it.
if test "$dfp_backend" = libdecnumber; then
@@ -3680,6 +3719,10 @@
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
+s,@target@,$target,;t t
+s,@target_cpu@,$target_cpu,;t t
+s,@target_vendor@,$target_vendor,;t t
+s,@target_os@,$target_os,;t t
s,@enable_decimal_float@,$enable_decimal_float,;t t
s,@dfp_backend@,$dfp_backend,;t t
s,@with_dfp@,$with_dfp,;t t
Modified: libdfp/trunk/configure.ac
==============================================================================
--- libdfp/trunk/configure.ac (original)
+++ libdfp/trunk/configure.ac Wed Jul 28 14:24:15 2010
@@ -25,19 +25,31 @@
# code will run.
AC_CANONICAL_HOST
-# Do we support `cross' libdfp support? Probably. But this may not be necessary.
-# The implication is that we can't actually guess the Decimal Float Type backend based
-# upon the $build_* variables.
-dnl AC_CANONICAL_BUILD
-
-# Copied from GLIBC, but this may be unnecessary.
-config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
-machine=$config_machine
-
-# Only allow a Linux host OS.
+# Do we support `cross' libdfp support? Probably. But this may not be
+# necessary. The implication of building a cross libdfp is that we can't
+# actually guess the Decimal Float Type backend based upon the $build_*
+# variables. This will be manifest as a --target that differs from --build.
+AC_CANONICAL_SYSTEM
+
+config_os=$host_os
+machine=$host_cpu
+target_machine=$target_cpu
+
+# If the user uses --target instead of --host we can detect it.
+if test "$target_machine" != "$machine"; then
+ machine=$target_machine
+fi
+
+# Only allow a Linux host OS. We don't support building libdfp on non-Linux
+# systems.
if test "$config_os" != linux-gnu; then
- AC_MSG_ERROR(['linux-gnu' is the only supported host OS])
-fi
+ AC_MSG_ERROR(['linux-gnu' is the only allowed host OS])
+fi
+
+## This will fail on a pcc64 system where we're configuring for ppc.
+#if test "$host_cpi" != "$target_cpu"; then
+# AC_MSG_ERROR([${PACKAGE_NAME} does not yet support cross-compliation.])
+#fi
# PowerPC[64] defaults to DPD encoded DFP. x86[_64] defaults to BID encoded DFP.
default_encoding=
@@ -638,13 +650,11 @@
# Wherever there's a standalone configure fragment we need to tell the top
-# level configure to recurse into it. This doesn't pass the full complement
-# of CFLAGS necessary so Makefile.in will need to manually pass the CFLAGS to
-# the backend `make' invocation.
+# level configure to recurse into it.
if test "$dfp_backend" = libdecnumber; then
- AC_CONFIG_SUBDIRS(libdecnumber)
+ AC_CONFIG_SUBDIRS(libdecnumber)
else
- AC_CONFIG_SUBDIRS(libbid)
+ AC_CONFIG_SUBDIRS(libbid)
fi
# This tells autoconf to generate Makefile from the Makefile.in. This is the