[PATCH] D12995: Add support for lldb config.h and detect ncurses' include path

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 19 13:12:19 PDT 2015


krytarowski created this revision.
krytarowski added a reviewer: joerg.
krytarowski added subscribers: lldb-commits, llvm-commits.
krytarowski set the repository for this revision to rL LLVM.

This change is required to get proper ncurses handling on NetBSD.


Repository:
  rL LLVM

http://reviews.llvm.org/D12995

Files:
  autoconf/configure.ac

Index: autoconf/configure.ac
===================================================================
--- autoconf/configure.ac
+++ autoconf/configure.ac
@@ -1810,6 +1810,7 @@
 AC_CHECK_HEADERS([sys/ioctl.h malloc/malloc.h mach/mach.h])
 AC_CHECK_HEADERS([valgrind/valgrind.h])
 AC_CHECK_HEADERS([fenv.h])
+AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h])
 AC_CHECK_DECLS([FE_ALL_EXCEPT, FE_INEXACT], [], [], [[#include <fenv.h>]])
 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   AC_CHECK_HEADERS(pthread.h,
@@ -2213,6 +2214,18 @@
   AC_CONFIG_FILES([tools/clang/${doxy}:${clang_src_root}/${doxy}.in])
 fi
 
+dnl Configure lldb, if present
+if test "${lldb_src_root}" = ""; then
+  lldb_src_root="$srcdir/tools/lldb"
+fi
+if test -f ${lldb_src_root}/INSTALL.txt; then
+  dnl Use variables to stay under 80 columns.
+  configh="include/lldb/Config/config.h"
+  doxy="docs/doxygen.cfg"
+  AC_CONFIG_HEADERS([tools/lldb/${configh}:${lldb_src_root}/${configh}.in])
+  AC_CONFIG_FILES([tools/lldb/${doxy}:${lldb_src_root}/${doxy}.in])
+fi
+
 dnl OCaml findlib META file
 AC_CONFIG_FILES([bindings/ocaml/llvm/META.llvm])
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12995.35178.patch
Type: text/x-patch
Size: 1144 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150919/a959805e/attachment.bin>


More information about the llvm-commits mailing list