GCC with patches for OS216
Revisão | 731c4ce0e93065fb70db5faa2bd6c9c6bad56738 (tree) |
---|---|
Hora | 2020-05-24 06:59:02 |
Autor | David Edelsohn <dje.gcc@gmai...> |
Commiter | David Edelsohn |
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.
@@ -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 | + | |
1 | 7 | 2020-05-20 Nathan Sidwell <nathan@acm.org> |
2 | 8 | |
3 | 9 | * internal.h (typedef _cpp_file): Delete, unnecessary in C++. |
@@ -25,7 +25,7 @@ srcdir = @srcdir@ | ||
25 | 25 | top_builddir = . |
26 | 26 | VPATH = @srcdir@ |
27 | 27 | INSTALL = @INSTALL@ |
28 | -AR = ar | |
28 | +AR = @AR@ | |
29 | 29 | ARFLAGS = cru |
30 | 30 | ACLOCAL = @ACLOCAL@ |
31 | 31 | AUTOCONF = @AUTOCONF@ |
@@ -658,6 +658,7 @@ ACLOCAL | ||
658 | 658 | EGREP |
659 | 659 | GREP |
660 | 660 | CPP |
661 | +AR | |
661 | 662 | RANLIB |
662 | 663 | ac_ct_CXX |
663 | 664 | CXXFLAGS |
@@ -4011,6 +4012,98 @@ else | ||
4011 | 4012 | RANLIB="$ac_cv_prog_RANLIB" |
4012 | 4013 | fi |
4013 | 4014 | |
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 | + | |
4014 | 4107 | |
4015 | 4108 | |
4016 | 4109 | ac_ext=c |
@@ -12,6 +12,7 @@ AC_PROG_INSTALL | ||
12 | 12 | AC_PROG_CC |
13 | 13 | AC_PROG_CXX |
14 | 14 | AC_PROG_RANLIB |
15 | +AC_CHECK_TOOL(AR, ar) | |
15 | 16 | |
16 | 17 | AC_USE_SYSTEM_EXTENSIONS |
17 | 18 | AC_SYS_LARGEFILE |
@@ -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 | + | |
1 | 7 | 2020-05-14 H.J. Lu <hongjiu.lu@intel.com> |
2 | 8 | |
3 | 9 | * configure: Regenerated. |
@@ -25,7 +25,7 @@ srcdir = @srcdir@ | ||
25 | 25 | top_builddir = . |
26 | 26 | VPATH = @srcdir@ |
27 | 27 | INSTALL = @INSTALL@ |
28 | -AR = ar | |
28 | +AR = @AR@ | |
29 | 29 | ARFLAGS = cru |
30 | 30 | ACLOCAL = @ACLOCAL@ |
31 | 31 | AUTOCONF = @AUTOCONF@ |
@@ -651,6 +651,7 @@ WARN_CFLAGS | ||
651 | 651 | AUTOHEADER |
652 | 652 | AUTOCONF |
653 | 653 | ACLOCAL |
654 | +AR | |
654 | 655 | RANLIB |
655 | 656 | OBJEXT |
656 | 657 | EXEEXT |
@@ -3247,6 +3248,98 @@ else | ||
3247 | 3248 | RANLIB="$ac_cv_prog_RANLIB" |
3248 | 3249 | fi |
3249 | 3250 | |
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 | + | |
3250 | 3343 | |
3251 | 3344 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
3252 | 3345 | for ac_prog in aclocal |
@@ -28,6 +28,7 @@ AC_CONFIG_AUX_DIR(..) | ||
28 | 28 | AC_PROG_MAKE_SET |
29 | 29 | AC_PROG_CC |
30 | 30 | AC_PROG_RANLIB |
31 | +AC_CHECK_TOOL(AR, ar) | |
31 | 32 | |
32 | 33 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
33 | 34 | AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal]) |