summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-12-11 06:49:02 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-12-11 06:49:02 -0800
commit5f8b579b46da948871b027748ef7beedc528ae14 (patch)
treedaed3aae770fffd1045d8ac16f332f08216a32c8 /configure
parentb078354aa1a2e24c827307764521e9666670eb11 (diff)
downloadtxr-5f8b579b46da948871b027748ef7beedc528ae14.tar.gz
txr-5f8b579b46da948871b027748ef7beedc528ae14.tar.bz2
txr-5f8b579b46da948871b027748ef7beedc528ae14.zip
* configure (have_git): New variable and configure test for git.
* Makefile (SRCS): Only set if git is available. (enforce): Fail if we don't have git.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index 8b6e4d7a..6eedf21e 100755
--- a/configure
+++ b/configure
@@ -120,6 +120,7 @@ have_syslog=
have_windows_h=
have_posix_sigs=
need_darwin_c_source=
+have_git=
#
# Parse configuration variables
@@ -627,6 +628,8 @@ mpi_version := $mpi_version
# EXE suffix
EXE := $exe
+have_git := $have_git
+
CC := $cc
LEX := $lex
YACC := $yacc
@@ -699,6 +702,17 @@ conftest_syms()
$make conftest.syms ${@+"$@"} > conftest.err 2>&1
}
+#
+# Check for git because we use it out of the Makefile
+#
+printf "Checking whether we have git ... "
+
+if git --version > /dev/null 2> /dev/null ; then
+ have_git=y
+ printf "yes\n"
+else
+ printf "missing\n"
+fi
#
# Check C compiler sanity