• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

Revision731c4ce0e93065fb70db5faa2bd6c9c6bad56738 (tree)
Time2020-05-24 06:59:02
AuthorDavid Edelsohn <dje.gcc@gmai...>
CommiterDavid Edelsohn

Log Message

libcpp, libdecnumber: configure and substitute AR

AIX supports "FAT" libraries containing 32 bit and 64 bit objects
(similar to Darwin), but commands for manipulating libraries do not
default to accept both 32 bit and 64 bit object files. While updating
the AIX configuration to support building and running GCC as a 64 bit
application, I have encountered some build libraries that hard code
AR=ar instead of testing the environment.

This patch adds AR_CHECK_TOOL(AR, ar) to configure.ac for the two
libraries and updates Makefile.in to accept the substitution.

2020-05-23 David Edelsohn <dje.gcc@gmail.com>

libcpp/ChangeLog:
* Makefile.in (AR): Substitute @AR@.
* configure.ac (CHECK_PROG AR): New.
* configure: Regenerate.

libdecnumber/ChangeLog:
* Makefile.in (AR): Substitute @AR@.
* configure.ac (CHECK_PROG AR): New.
* configure: Regenerate.

Change Summary

Incremental Difference

--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,9 @@
1+2020-05-23 David Edelsohn <dje.gcc@gmail.com>
2+
3+ * Makefile.in (AR): Substitute @AR@.
4+ * configure.ac (CHECK_PROG AR): New.
5+ * configure: Regenerate.
6+
17 2020-05-20 Nathan Sidwell <nathan@acm.org>
28
39 * internal.h (typedef _cpp_file): Delete, unnecessary in C++.
--- a/libcpp/Makefile.in
+++ b/libcpp/Makefile.in
@@ -25,7 +25,7 @@ srcdir = @srcdir@
2525 top_builddir = .
2626 VPATH = @srcdir@
2727 INSTALL = @INSTALL@
28-AR = ar
28+AR = @AR@
2929 ARFLAGS = cru
3030 ACLOCAL = @ACLOCAL@
3131 AUTOCONF = @AUTOCONF@
--- a/libcpp/configure
+++ b/libcpp/configure
@@ -658,6 +658,7 @@ ACLOCAL
658658 EGREP
659659 GREP
660660 CPP
661+AR
661662 RANLIB
662663 ac_ct_CXX
663664 CXXFLAGS
@@ -4011,6 +4012,98 @@ else
40114012 RANLIB="$ac_cv_prog_RANLIB"
40124013 fi
40134014
4015+if test -n "$ac_tool_prefix"; then
4016+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4017+set dummy ${ac_tool_prefix}ar; ac_word=$2
4018+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019+$as_echo_n "checking for $ac_word... " >&6; }
4020+if ${ac_cv_prog_AR+:} false; then :
4021+ $as_echo_n "(cached) " >&6
4022+else
4023+ if test -n "$AR"; then
4024+ ac_cv_prog_AR="$AR" # Let the user override the test.
4025+else
4026+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027+for as_dir in $PATH
4028+do
4029+ IFS=$as_save_IFS
4030+ test -z "$as_dir" && as_dir=.
4031+ for ac_exec_ext in '' $ac_executable_extensions; do
4032+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033+ ac_cv_prog_AR="${ac_tool_prefix}ar"
4034+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035+ break 2
4036+ fi
4037+done
4038+ done
4039+IFS=$as_save_IFS
4040+
4041+fi
4042+fi
4043+AR=$ac_cv_prog_AR
4044+if test -n "$AR"; then
4045+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4046+$as_echo "$AR" >&6; }
4047+else
4048+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049+$as_echo "no" >&6; }
4050+fi
4051+
4052+
4053+fi
4054+if test -z "$ac_cv_prog_AR"; then
4055+ ac_ct_AR=$AR
4056+ # Extract the first word of "ar", so it can be a program name with args.
4057+set dummy ar; ac_word=$2
4058+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059+$as_echo_n "checking for $ac_word... " >&6; }
4060+if ${ac_cv_prog_ac_ct_AR+:} false; then :
4061+ $as_echo_n "(cached) " >&6
4062+else
4063+ if test -n "$ac_ct_AR"; then
4064+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4065+else
4066+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067+for as_dir in $PATH
4068+do
4069+ IFS=$as_save_IFS
4070+ test -z "$as_dir" && as_dir=.
4071+ for ac_exec_ext in '' $ac_executable_extensions; do
4072+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073+ ac_cv_prog_ac_ct_AR="ar"
4074+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075+ break 2
4076+ fi
4077+done
4078+ done
4079+IFS=$as_save_IFS
4080+
4081+fi
4082+fi
4083+ac_ct_AR=$ac_cv_prog_ac_ct_AR
4084+if test -n "$ac_ct_AR"; then
4085+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4086+$as_echo "$ac_ct_AR" >&6; }
4087+else
4088+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089+$as_echo "no" >&6; }
4090+fi
4091+
4092+ if test "x$ac_ct_AR" = x; then
4093+ AR=""
4094+ else
4095+ case $cross_compiling:$ac_tool_warned in
4096+yes:)
4097+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4098+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4099+ac_tool_warned=yes ;;
4100+esac
4101+ AR=$ac_ct_AR
4102+ fi
4103+else
4104+ AR="$ac_cv_prog_AR"
4105+fi
4106+
40144107
40154108
40164109 ac_ext=c
--- a/libcpp/configure.ac
+++ b/libcpp/configure.ac
@@ -12,6 +12,7 @@ AC_PROG_INSTALL
1212 AC_PROG_CC
1313 AC_PROG_CXX
1414 AC_PROG_RANLIB
15+AC_CHECK_TOOL(AR, ar)
1516
1617 AC_USE_SYSTEM_EXTENSIONS
1718 AC_SYS_LARGEFILE
--- a/libdecnumber/ChangeLog
+++ b/libdecnumber/ChangeLog
@@ -1,3 +1,9 @@
1+2020-05-23 David Edelsohn <dje.gcc@gmail.com>
2+
3+ * Makefile.in (AR): Substitute @AR@.
4+ * configure.ac (CHECK_PROG AR): New.
5+ * configure: Regenerate.
6+
17 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
28
39 * configure: Regenerated.
--- a/libdecnumber/Makefile.in
+++ b/libdecnumber/Makefile.in
@@ -25,7 +25,7 @@ srcdir = @srcdir@
2525 top_builddir = .
2626 VPATH = @srcdir@
2727 INSTALL = @INSTALL@
28-AR = ar
28+AR = @AR@
2929 ARFLAGS = cru
3030 ACLOCAL = @ACLOCAL@
3131 AUTOCONF = @AUTOCONF@
--- a/libdecnumber/configure
+++ b/libdecnumber/configure
@@ -651,6 +651,7 @@ WARN_CFLAGS
651651 AUTOHEADER
652652 AUTOCONF
653653 ACLOCAL
654+AR
654655 RANLIB
655656 OBJEXT
656657 EXEEXT
@@ -3247,6 +3248,98 @@ else
32473248 RANLIB="$ac_cv_prog_RANLIB"
32483249 fi
32493250
3251+if test -n "$ac_tool_prefix"; then
3252+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3253+set dummy ${ac_tool_prefix}ar; ac_word=$2
3254+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255+$as_echo_n "checking for $ac_word... " >&6; }
3256+if ${ac_cv_prog_AR+:} false; then :
3257+ $as_echo_n "(cached) " >&6
3258+else
3259+ if test -n "$AR"; then
3260+ ac_cv_prog_AR="$AR" # Let the user override the test.
3261+else
3262+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263+for as_dir in $PATH
3264+do
3265+ IFS=$as_save_IFS
3266+ test -z "$as_dir" && as_dir=.
3267+ for ac_exec_ext in '' $ac_executable_extensions; do
3268+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269+ ac_cv_prog_AR="${ac_tool_prefix}ar"
3270+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271+ break 2
3272+ fi
3273+done
3274+ done
3275+IFS=$as_save_IFS
3276+
3277+fi
3278+fi
3279+AR=$ac_cv_prog_AR
3280+if test -n "$AR"; then
3281+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3282+$as_echo "$AR" >&6; }
3283+else
3284+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285+$as_echo "no" >&6; }
3286+fi
3287+
3288+
3289+fi
3290+if test -z "$ac_cv_prog_AR"; then
3291+ ac_ct_AR=$AR
3292+ # Extract the first word of "ar", so it can be a program name with args.
3293+set dummy ar; ac_word=$2
3294+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295+$as_echo_n "checking for $ac_word... " >&6; }
3296+if ${ac_cv_prog_ac_ct_AR+:} false; then :
3297+ $as_echo_n "(cached) " >&6
3298+else
3299+ if test -n "$ac_ct_AR"; then
3300+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3301+else
3302+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303+for as_dir in $PATH
3304+do
3305+ IFS=$as_save_IFS
3306+ test -z "$as_dir" && as_dir=.
3307+ for ac_exec_ext in '' $ac_executable_extensions; do
3308+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309+ ac_cv_prog_ac_ct_AR="ar"
3310+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311+ break 2
3312+ fi
3313+done
3314+ done
3315+IFS=$as_save_IFS
3316+
3317+fi
3318+fi
3319+ac_ct_AR=$ac_cv_prog_ac_ct_AR
3320+if test -n "$ac_ct_AR"; then
3321+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3322+$as_echo "$ac_ct_AR" >&6; }
3323+else
3324+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325+$as_echo "no" >&6; }
3326+fi
3327+
3328+ if test "x$ac_ct_AR" = x; then
3329+ AR=""
3330+ else
3331+ case $cross_compiling:$ac_tool_warned in
3332+yes:)
3333+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335+ac_tool_warned=yes ;;
3336+esac
3337+ AR=$ac_ct_AR
3338+ fi
3339+else
3340+ AR="$ac_cv_prog_AR"
3341+fi
3342+
32503343
32513344 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
32523345 for ac_prog in aclocal
--- a/libdecnumber/configure.ac
+++ b/libdecnumber/configure.ac
@@ -28,6 +28,7 @@ AC_CONFIG_AUX_DIR(..)
2828 AC_PROG_MAKE_SET
2929 AC_PROG_CC
3030 AC_PROG_RANLIB
31+AC_CHECK_TOOL(AR, ar)
3132
3233 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3334 AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])