acinclude.m4
changeset 1 cf2af46e9e2a
parent 0 74212992fb08
child 723 1e8865a3e127
equal deleted inserted replaced
0:74212992fb08 1:cf2af46e9e2a
   432 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   432 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   433 ac_prog=ld
   433 ac_prog=ld
   434 if test "$ac_cv_prog_gcc" = yes; then
   434 if test "$ac_cv_prog_gcc" = yes; then
   435   # Check if gcc -print-prog-name=ld gives a path.
   435   # Check if gcc -print-prog-name=ld gives a path.
   436   AC_MSG_CHECKING([for ld used by GCC])
   436   AC_MSG_CHECKING([for ld used by GCC])
   437   ac_prog=`($CC -print-prog-name=ld | tr -d '\r') 2>&5`
   437   DELCR='tr -d \015'
       
   438   ac_prog=`($CC -print-prog-name=ld | $DELCR) 2>&5`
   438   case "$ac_prog" in
   439   case "$ac_prog" in
   439     # Accept absolute paths.
   440     # Accept absolute paths.
   440 changequote(,)dnl
   441 changequote(,)dnl
   441     [\\/]* | [A-Za-z]:[\\/]*)
   442     [\\/]* | [A-Za-z]:[\\/]*)
   442       re_direlt='/[^/][^/]*/\.\./'
   443       re_direlt='/[^/][^/]*/\.\./'