summaryrefslogtreecommitdiff
path: root/m4/runlog.m4
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2001-12-12 11:11:39 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2001-12-12 11:11:39 +0000
commit925abad3c7daa7038e7a31f351012b58d8217691 (patch)
treef170754d0e940bf775bb7b0e87677124313527e4 /m4/runlog.m4
parent89598be4bc31e43edd5619c3c3508c2fbc183650 (diff)
downloadautomake-925abad3c7daa7038e7a31f351012b58d8217691.tar.gz
* m4/python.m4 (AM_PATH_PYTHON): Check all known Python interpreters
in loop until we find one the satisfies the user supplied version. Add python2 to the list of known interpreters. Don't use changequote. Cache the calculation of PYTHON_VERSION and PYTHON_PLATFORM. (AM_PYTHON_CHECK_VERSION): New function, extracted from AM_PATH_PYTHON and modernized. * m4/runlog.m4: New file. * m4/Makefile.am (m4data_DATA): Add it.
Diffstat (limited to 'm4/runlog.m4')
-rw-r--r--m4/runlog.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/m4/runlog.m4 b/m4/runlog.m4
new file mode 100644
index 000000000..f2525c266
--- /dev/null
+++ b/m4/runlog.m4
@@ -0,0 +1,27 @@
+# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+# AM_RUN_LOG(COMMAND)
+# -------------------
+# Run COMMAND, save the exit status in ac_status, and log it.
+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
+AC_DEFUN([AM_RUN_LOG],
+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ (exit $ac_status); }])