OSDN Git Service

config/
[pf3gnuchains/gcc-fork.git] / config / acx.m4
index 73afe8d..c8a32c9 100644 (file)
@@ -211,6 +211,8 @@ if test -z "$ac_cv_prog_$1" ; then
   else
     $1="${ncn_target_tool_prefix}[$]2"
   fi], [$1="$3"])
+else
+  $1="$ac_cv_prog_$1"
 fi
 ]) []dnl # NCN_STRICT_CHECK_TARGET_TOOLS
   
@@ -324,8 +326,8 @@ if test -z "$ac_cv_path_$1" ; then
     fi
   elif test $build != $host && test $have_gcc_for_target = yes; then
     $1=`$GCC_FOR_TARGET --print-prog-name=$2`
-    test [$]$1=$2 && $1=
-    ac_cv_path_$1=[$]$1
+    test [$]$1 = $2 && $1=
+    test -n "[$]$1" && ac_cv_path_$1=[$]$1
   fi
 fi
 if test -z "$ac_cv_path_$1" && test -n "$gcc_cv_tool_dirs"; then
@@ -540,10 +542,6 @@ AC_DEFUN([ACX_CHECK_PROG_VER],[
                       $5)  gcc_cv_prog_$2_modern=yes;;
                       *)   gcc_cv_prog_$2_modern=no;;
                     esac]
-
-                    if test $gcc_cv_prog_$2_modern = no; then
-                      $1="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing $2"
-                    fi
                    ])
   else
     gcc_cv_prog_$2_modern=no
@@ -577,16 +575,23 @@ AC_DEFUN([ACX_BUGURL],[
                    [Direct users to URL to report a bug]),
     [case "$withval" in
       yes) AC_MSG_ERROR([bug URL not specified]) ;;
-      no)  REPORT_BUGS_TO="";
-          REPORT_BUGS_TEXI=""
+      no)  BUGURL=
           ;;
-      *)   REPORT_BUGS_TO="<$withval>"
-          REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
+      *)   BUGURL="$withval"
           ;;
      esac],
-     REPORT_BUGS_TO="<$1>"
-     REPORT_BUGS_TEXI="@uref{$1}"
+     BUGURL="$1"
   )
+  case ${BUGURL} in
+  "")
+    REPORT_BUGS_TO=
+    REPORT_BUGS_TEXI=
+    ;;
+  *)
+    REPORT_BUGS_TO="<$BUGURL>"
+    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
+    ;;
+  esac;
   AC_SUBST(REPORT_BUGS_TO)
   AC_SUBST(REPORT_BUGS_TEXI)
 ])