llvm.org GIT mirror llvm / 94a935f
Add --program-prefix support to build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162707 91177308-0d34-0410-b5e6-96231b3b80d8 Sebastian Pop 7 years ago
4 changed file(s) with 21 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
6060
6161 prefix := @prefix@
6262 PROJ_prefix := $(prefix)
63 program_prefix := @program_prefix@
6364 PROJ_VERSION := $(LLVMVersion)
6465 else
6566 ifndef PROJ_SRC_ROOT
547547 LLVM_CONFIG := $(LLVMToolDir)/llvm-config$(EXEEXT)
548548 endif
549549 ifndef LLVMDIS
550 LLVMDIS := $(LLVMToolDir)/llvm-dis$(EXEEXT)
550 LLVMDIS := $(LLVMToolDir)/$(program_prefix)llvm-dis$(EXEEXT)
551551 endif
552552 ifndef LLI
553 LLI := $(LLVMToolDir)/lli$(EXEEXT)
553 LLI := $(LLVMToolDir)/$(program_prefix)lli$(EXEEXT)
554554 endif
555555 ifndef LLC
556 LLC := $(LLVMToolDir)/llc$(EXEEXT)
556 LLC := $(LLVMToolDir)/$(program_prefix)llc$(EXEEXT)
557557 endif
558558 ifndef LOPT
559 LOPT := $(LLVMToolDir)/opt$(EXEEXT)
559 LOPT := $(LLVMToolDir)/$(program_prefix)opt$(EXEEXT)
560560 endif
561561 ifndef LBUGPOINT
562 LBUGPOINT := $(LLVMToolDir)/bugpoint$(EXEEXT)
562 LBUGPOINT := $(LLVMToolDir)/$(program_prefix)bugpoint$(EXEEXT)
563563 endif
564564 ifndef LLVMLINK
565 LLVMLINK := $(LLVMToolDir)/llvm-link$(EXEEXT)
565 LLVMLINK := $(LLVMToolDir)/$(program_prefix)llvm-link$(EXEEXT)
566566 endif
567567
568568 #--------------------------------------------------------------------
15401540 else
15411541 ToolBinDir = $(DESTDIR)$(PROJ_bindir)
15421542 endif
1543 DestTool = $(ToolBinDir)/$(TOOLEXENAME)
1543 DestTool = $(ToolBinDir)/$(program_prefix)$(TOOLEXENAME)
15441544
15451545 install-local:: $(DestTool)
15461546
15551555
15561556 # TOOLALIAS install.
15571557 ifdef TOOLALIAS
1558 DestToolAlias = $(ToolBinDir)/$(TOOLALIAS)$(EXEEXT)
1558 DestToolAlias = $(ToolBinDir)/$(program_prefix)$(TOOLALIAS)$(EXEEXT)
15591559
15601560 install-local:: $(DestToolAlias)
15611561
3838 dnl in the output of --version option of the generated configure script.
3939 AC_SUBST(LLVM_COPYRIGHT,["Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."])
4040 AC_COPYRIGHT([Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.])
41
42 dnl Add --program-prefix value to Makefile.rules. Already an ARG variable.
43 AC_SUBST([program_prefix])
4144
4245 dnl Indicate that we require autoconf 2.60 or later.
4346 AC_PREREQ(2.60)
639639 host_alias
640640 target_alias
641641 LLVM_COPYRIGHT
642 program_prefix
642643 CC
643644 CFLAGS
644645 LDFLAGS
19271928
19281929
19291930
1931
1932
19301933 ac_aux_dir=
19311934 for ac_dir in autoconf "$srcdir"/autoconf; do
19321935 if test -f "$ac_dir/install-sh"; then
1028810291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1028910292 lt_status=$lt_dlunknown
1029010293 cat > conftest.$ac_ext <
10291 #line 10292 "configure"
10294 #line 10295 "configure"
1029210295 #include "confdefs.h"
1029310296
1029410297 #if HAVE_DLFCN_H
2211322116 host_alias!$host_alias$ac_delim
2211422117 target_alias!$target_alias$ac_delim
2211522118 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22119 program_prefix!$program_prefix$ac_delim
2211622120 CC!$CC$ac_delim
2211722121 CFLAGS!$CFLAGS$ac_delim
2211822122 LDFLAGS!$LDFLAGS$ac_delim
2217122175 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
2217222176 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
2217322177 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22174 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
2217522178 _ACEOF
2217622179
2217722180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2221322216 ac_delim='%!_!# '
2221422217 for ac_last_try in false false false false false :; do
2221522218 cat >conf$$subs.sed <<_ACEOF
22219 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
2221622220 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
2221722221 ENABLE_PIC!$ENABLE_PIC$ac_delim
2221822222 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
2231022314 LTLIBOBJS!$LTLIBOBJS$ac_delim
2231122315 _ACEOF
2231222316
22313 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
22317 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
2231422318 break
2231522319 elif $ac_last_try; then
2231622320 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2232922333
2233022334 cat >>$CONFIG_STATUS <<_ACEOF
2233122335 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2233322337 _ACEOF
2233422338 sed '
2233522339 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
2234222346 ' >>$CONFIG_STATUS
2234322347 rm -f conf$$subs.sed
2234422348 cat >>$CONFIG_STATUS <<_ACEOF
22345 :end
22346 s/|#_!!_#|//g
2234722349 CEOF$ac_eof
2234822350 _ACEOF
2234922351
2259122593 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2259222594 s&@INSTALL@&$ac_INSTALL&;t t
2259322595 $ac_datarootdir_hack
22594 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22596 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
2259522597
2259622598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2259722599 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&