[libstdc++] Build system cleanup 12/n
Kelley Cook
kcook@gcc.gnu.org
Fri Apr 8 17:18:00 GMT 2005
This just tidies up Mark's group function check macro to use some m4
magic to eliminate an unnessecary shell out and like the other linkage
check macros, check for the underscored macros only when the
non-underscored functions were not present. The m4 macro funclist just
changes all whitespace and punctuation in $3 to be a single " ".
For clarity, the diff in the generated configure snippet looks like this:
@@ -11304,9 +11304,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
- `for x in acosf asinf atanf \
- cosf sinf tanf \
- coshf sinhf tanhf; do echo
"$x (0);"; done`
+acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf
(0); sinhf (0); tanhf (0);
;
return 0;
}
@@ -11361,9 +11359,7 @@ echo "${ECHO_T}$glibcxx_cv_func_float_tr
-for ac_func in acosf asinf atanf \
- cosf sinf tanf \
- coshf sinhf tanhf
+for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
Then of course, there is no need for the seperate call to the macro look
for the underscored functions.
Also this patch makes the next patch very easy.
OK?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ac12.diff
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050408/93aa05cd/attachment.ksh>
More information about the Libstdc++
mailing list