michael@0: dnl This Source Code Form is subject to the terms of the Mozilla Public michael@0: dnl License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: dnl file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: AC_DEFUN([MOZ_PROG_CHECKMSYS], michael@0: [AC_REQUIRE([AC_INIT_BINSH])dnl michael@0: if test `uname -s | grep -c MINGW 2>/dev/null` != "0"; then michael@0: msyshost=1 michael@0: fi michael@0: ]) michael@0: michael@0: AC_DEFUN([MOZ_PATH_PROG], michael@0: [ AC_PATH_PROG($1,$2,$3,$4) michael@0: if test "$msyshost"; then michael@0: case "[$]$1" in michael@0: /*) michael@0: tmp_DIRNAME=`dirname "[$]$1"` michael@0: tmp_BASENAME=`basename "[$]$1"` michael@0: tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` michael@0: $1="$tmp_PWD/$tmp_BASENAME" michael@0: if test -e "[$]$1.exe"; then michael@0: $1="[$]$1.exe" michael@0: fi michael@0: esac michael@0: fi michael@0: ]) michael@0: michael@0: AC_DEFUN([MOZ_PATH_PROGS], michael@0: [ AC_PATH_PROGS($1,$2,$3,$4) michael@0: if test "$msyshost"; then michael@0: case "[$]$1" in michael@0: /*) michael@0: tmp_DIRNAME=`dirname "[$]$1"` michael@0: tmp_BASENAME=`basename "[$]$1"` michael@0: tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` michael@0: $1="$tmp_PWD/$tmp_BASENAME" michael@0: if test -e "[$]$1.exe"; then michael@0: $1="[$]$1.exe" michael@0: fi michael@0: esac michael@0: fi michael@0: ])