11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# progtest.m4 serial 2 (gettext-0.10.40)
15
dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
16
dnl This file is free software, distributed under the terms of the GNU
17
dnl General Public License. As a special exception to the GNU General
18
dnl Public License, this file may be distributed as part of a program
19
dnl that contains a configuration script generated by Autoconf, under
20
dnl the same distribution terms as the rest of that program.
22
dnl This file can can be used in projects which are not available under
23
dnl the GNU General Public License or the GNU Library General Public
24
dnl License but which still want to provide support for the GNU gettext
26
dnl Please note that the actual code of the GNU gettext library is covered
27
dnl by the GNU Library General Public License, and the rest of the GNU
28
dnl gettext package package is covered by the GNU General Public License.
29
dnl They are *not* in the public domain.
32
dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
34
# Search path for a program which passes the given test.
36
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
37
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
38
AC_DEFUN([AM_PATH_PROG_WITH_TEST],
39
[# Extract the first word of "$2", so it can be a program name with args.
40
set dummy $2; ac_word=[$]2
41
AC_MSG_CHECKING([for $ac_word])
42
AC_CACHE_VAL(ac_cv_path_$1,
45
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
48
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
49
for ac_dir in ifelse([$5], , $PATH, [$5]); do
50
test -z "$ac_dir" && ac_dir=.
51
if test -f $ac_dir/$ac_word; then
53
ac_cv_path_$1="$ac_dir/$ac_word"
59
dnl If no 4th arg is given, leave the cache variable unset,
60
dnl so AC_PATH_PROGS will keep looking.
61
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
66
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
14
74
# Do all the work for Automake. -*- Autoconf -*-
16
76
# This macro actually does too much some checks are only needed if
842
902
LEX=${am_missing_run}flex
845
# progtest.m4 serial 2 (gettext-0.10.40)
846
dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
847
dnl This file is free software, distributed under the terms of the GNU
848
dnl General Public License. As a special exception to the GNU General
849
dnl Public License, this file may be distributed as part of a program
850
dnl that contains a configuration script generated by Autoconf, under
851
dnl the same distribution terms as the rest of that program.
853
dnl This file can can be used in projects which are not available under
854
dnl the GNU General Public License or the GNU Library General Public
855
dnl License but which still want to provide support for the GNU gettext
857
dnl Please note that the actual code of the GNU gettext library is covered
858
dnl by the GNU Library General Public License, and the rest of the GNU
859
dnl gettext package package is covered by the GNU General Public License.
860
dnl They are *not* in the public domain.
863
dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
865
# Search path for a program which passes the given test.
867
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
868
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
869
AC_DEFUN([AM_PATH_PROG_WITH_TEST],
870
[# Extract the first word of "$2", so it can be a program name with args.
871
set dummy $2; ac_word=[$]2
872
AC_MSG_CHECKING([for $ac_word])
873
AC_CACHE_VAL(ac_cv_path_$1,
876
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
879
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
880
for ac_dir in ifelse([$5], , $PATH, [$5]); do
881
test -z "$ac_dir" && ac_dir=.
882
if test -f $ac_dir/$ac_word; then
884
ac_cv_path_$1="$ac_dir/$ac_word"
890
dnl If no 4th arg is given, leave the cache variable unset,
891
dnl so AC_PATH_PROGS will keep looking.
892
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
897
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then