llvm.org GIT mirror llvm / d442d28
Add a bit of a hack to avoid multiple defines of variables in config.h and llvm-config.h. This could probably be improved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110547 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 9 years ago
3 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
15801580 dnl contains the same list of files as AC_CONFIG_HEADERS below. This ensures the
15811581 dnl files can be updated automatically when their *.in sources change.
15821582 AC_CONFIG_HEADERS([include/llvm/Config/config.h include/llvm/Config/llvm-config.h])
1583 AH_TOP([#ifndef CONFIG_H
1584 #define CONFIG_H])
1585 AH_BOTTOM([#endif])
1586
15831587 AC_CONFIG_FILES([include/llvm/Config/Targets.def])
15841588 AC_CONFIG_FILES([include/llvm/Config/AsmPrinters.def])
15851589 AC_CONFIG_FILES([include/llvm/Config/AsmParsers.def])
0 /* include/llvm/Config/config.h.in. Generated from autoconf/configure.ac by autoheader. */
1
2 #ifndef CONFIG_H
3 #define CONFIG_H
14
25 /* 32 bit multilib directory. */
36 #undef CXX_INCLUDE_32BIT_DIR
606609
607610 /* Define to `unsigned int' if does not define. */
608611 #undef size_t
612
613 #endif
99 /* This file enumerates all of the llvm variables from configure so that
1010 they can be in exported headers and won't override package specific
1111 directives. This is a C file so we can include it in the llvm-c headers. */
12
13 /* To avoid multiple inclusions of these variables when we include the exported
14 headers and config.h, conditionally include these. */
15 /* TODO: This is a bit of a hack. */
16 #ifndef CONFIG_H
1217
1318 /* Installation directory for binary executables */
1419 #undef LLVM_BINDIR
8186
8287 /* Installation prefix directory */
8388 #undef LLVM_PREFIX
89
90 #endif