version 1.1.1.1, 2017/01/24 14:48:55
|
version 1.1.1.2, 2021/03/17 00:49:17
|
Line 1
|
Line 1
|
# progtest.m4 serial 4 (gettext-0.14.2) | # progtest.m4 serial 7 (gettext-0.18.2) |
dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. | dnl Copyright (C) 1996-2003, 2005, 2008-2013 Free Software Foundation, Inc. |
dnl This file is free software; the Free Software Foundation |
dnl This file is free software; the Free Software Foundation |
dnl gives unlimited permission to copy and/or distribute it, |
dnl gives unlimited permission to copy and/or distribute it, |
dnl with or without modifications, as long as this notice is preserved. |
dnl with or without modifications, as long as this notice is preserved. |
Line 16 dnl They are *not* in the public domain.
|
Line 16 dnl They are *not* in the public domain.
|
dnl Authors: |
dnl Authors: |
dnl Ulrich Drepper <drepper@cygnus.com>, 1996. |
dnl Ulrich Drepper <drepper@cygnus.com>, 1996. |
|
|
AC_PREREQ(2.50) | AC_PREREQ([2.50]) |
|
|
# Search path for a program which passes the given test. |
# Search path for a program which passes the given test. |
|
|
Line 27 AC_DEFUN([AM_PATH_PROG_WITH_TEST],
|
Line 27 AC_DEFUN([AM_PATH_PROG_WITH_TEST],
|
# Prepare PATH_SEPARATOR. |
# Prepare PATH_SEPARATOR. |
# The user is always right. |
# The user is always right. |
if test "${PATH_SEPARATOR+set}" != set; then |
if test "${PATH_SEPARATOR+set}" != set; then |
echo "#! /bin/sh" >conf$$.sh | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
echo "exit 0" >>conf$$.sh | # contains only /bin. Note that ksh looks also at the FPATH variable, |
chmod +x conf$$.sh | # so we have to set that as well for the test. |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | PATH_SEPARATOR=: |
PATH_SEPARATOR=';' | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
else | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
PATH_SEPARATOR=: | || PATH_SEPARATOR=';' |
fi | } |
rm -f conf$$.sh | |
fi |
fi |
|
|
# Find out how to test for executable files. Don't use a zero-byte file, |
# Find out how to test for executable files. Don't use a zero-byte file, |
Line 55 rm -f conf$$.file
|
Line 54 rm -f conf$$.file
|
# Extract the first word of "$2", so it can be a program name with args. |
# Extract the first word of "$2", so it can be a program name with args. |
set dummy $2; ac_word=[$]2 |
set dummy $2; ac_word=[$]2 |
AC_MSG_CHECKING([for $ac_word]) |
AC_MSG_CHECKING([for $ac_word]) |
AC_CACHE_VAL(ac_cv_path_$1, | AC_CACHE_VAL([ac_cv_path_$1], |
[case "[$]$1" in |
[case "[$]$1" in |
[[\\/]]* | ?:[[\\/]]*) |
[[\\/]]* | ?:[[\\/]]*) |
ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
Line 84 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_c
|
Line 83 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_c
|
esac])dnl |
esac])dnl |
$1="$ac_cv_path_$1" |
$1="$ac_cv_path_$1" |
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
AC_MSG_RESULT([$]$1) | AC_MSG_RESULT([$][$1]) |
else |
else |
AC_MSG_RESULT(no) | AC_MSG_RESULT([no]) |
fi |
fi |
AC_SUBST($1)dnl | AC_SUBST([$1])dnl |
]) |
]) |