build/autoconf/mozprog.m4

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 dnl This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 dnl License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 AC_DEFUN([MOZ_PROG_CHECKMSYS],
michael@0 6 [AC_REQUIRE([AC_INIT_BINSH])dnl
michael@0 7 if test `uname -s | grep -c MINGW 2>/dev/null` != "0"; then
michael@0 8 msyshost=1
michael@0 9 fi
michael@0 10 ])
michael@0 11
michael@0 12 AC_DEFUN([MOZ_PATH_PROG],
michael@0 13 [ AC_PATH_PROG($1,$2,$3,$4)
michael@0 14 if test "$msyshost"; then
michael@0 15 case "[$]$1" in
michael@0 16 /*)
michael@0 17 tmp_DIRNAME=`dirname "[$]$1"`
michael@0 18 tmp_BASENAME=`basename "[$]$1"`
michael@0 19 tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
michael@0 20 $1="$tmp_PWD/$tmp_BASENAME"
michael@0 21 if test -e "[$]$1.exe"; then
michael@0 22 $1="[$]$1.exe"
michael@0 23 fi
michael@0 24 esac
michael@0 25 fi
michael@0 26 ])
michael@0 27
michael@0 28 AC_DEFUN([MOZ_PATH_PROGS],
michael@0 29 [ AC_PATH_PROGS($1,$2,$3,$4)
michael@0 30 if test "$msyshost"; then
michael@0 31 case "[$]$1" in
michael@0 32 /*)
michael@0 33 tmp_DIRNAME=`dirname "[$]$1"`
michael@0 34 tmp_BASENAME=`basename "[$]$1"`
michael@0 35 tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
michael@0 36 $1="$tmp_PWD/$tmp_BASENAME"
michael@0 37 if test -e "[$]$1.exe"; then
michael@0 38 $1="[$]$1.exe"
michael@0 39 fi
michael@0 40 esac
michael@0 41 fi
michael@0 42 ])

mercurial