Reid Spencer | 018e77d | 2005-02-24 18:25:24 +0000 | [diff] [blame] | 1 | # |
| 2 | # Provide the arguments and other processing needed for an LLVM project |
| 3 | # |
| 4 | AC_DEFUN([LLVM_CONFIG_PROJECT], |
| 5 | [AC_ARG_WITH([llvmsrc], |
| 6 | AS_HELP_STRING([--with-llvmsrc],[Location of LLVM Source Code]), |
Reid Spencer | 746047a | 2006-04-18 06:25:37 +0000 | [diff] [blame] | 7 | [llvm_src="$withval"],[llvm_src="]$1["]) |
Reid Spencer | 018e77d | 2005-02-24 18:25:24 +0000 | [diff] [blame] | 8 | AC_SUBST(LLVM_SRC,$llvm_src) |
| 9 | AC_ARG_WITH([llvmobj], |
| 10 | AS_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]), |
Reid Spencer | 746047a | 2006-04-18 06:25:37 +0000 | [diff] [blame] | 11 | [llvm_obj="$withval"],[llvm_obj="]$2["]) |
Reid Spencer | 018e77d | 2005-02-24 18:25:24 +0000 | [diff] [blame] | 12 | AC_SUBST(LLVM_OBJ,$llvm_obj) |
| 13 | AC_CONFIG_COMMANDS([setup],,[llvm_src="${LLVM_SRC}"]) |
| 14 | ]) |