[llvm-commits] CVS: llvm/autoconf/configure.ac

Brian Gaeke gaeke at cs.uiuc.edu
Thu Jan 22 15:56:01 PST 2004


Changes in directory llvm/autoconf:

configure.ac updated: 1.67 -> 1.68

---
Log message:

Add autoconf check for the version of etags we have detected, and select
appropriate "force C++" command-line option.


---
Diffs of the changes:  (+8 -0)

Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.67 llvm/autoconf/configure.ac:1.68
--- llvm/autoconf/configure.ac:1.67	Wed Jan 21 13:38:56 2004
+++ llvm/autoconf/configure.ac	Thu Jan 22 15:55:15 2004
@@ -169,6 +169,14 @@
 dnl Checks for tools we can get away with not having:
 AC_PATH_PROG(DOT,[dot],[true dot])
 AC_PATH_PROG(ETAGS,[etags],[true etags])
+dnl Check if we know how to tell etags we are using C++:
+etags_version=`$ETAGS --version 2>&1`
+case "$etags_version" in
+	*[Ee]xuberant*) ETAGSFLAGS="--language-force=c++" ;;
+	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
+	*) ETAGSFLAGS="" ;;
+esac
+AC_SUBST(ETAGSFLAGS,$ETAGSFLAGS)
 AC_PATH_PROG(PYTHON,[python],[true python])
 if test "$PYTHON" = "false"
 then





More information about the llvm-commits mailing list