llvm.org GIT mirror llvm / ba48ceb
Add --program-prefix support to build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164633 91177308-0d34-0410-b5e6-96231b3b80d8 Sebastian Pop 7 years ago
6 changed file(s) with 21 addition(s) and 11 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
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
17311731 dnl OCaml findlib META file
17321732 AC_CONFIG_FILES([bindings/ocaml/llvm/META.llvm])
17331733
1734 dnl Add --program-prefix value to Makefile.rules. Already an ARG variable.
1735 test "x$program_prefix" = "xNONE" && program_prefix=""
1736 AC_SUBST([program_prefix])
1737
1738
17341739 dnl Do special configuration of Makefiles
17351740 AC_CONFIG_COMMANDS([setup],,[llvm_src="${srcdir}"])
17361741 AC_CONFIG_MAKEFILE(Makefile)
791791 ENABLE_VISIBILITY_INLINES_HIDDEN
792792 RPATH
793793 RDYNAMIC
794 program_prefix
794795 LIBOBJS
795796 LTLIBOBJS'
796797 ac_subst_files=''
1031510316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1031610317 lt_status=$lt_dlunknown
1031710318 cat > conftest.$ac_ext <
10318 #line 10319 "configure"
10319 #line 10320 "configure"
1031910320 #include "confdefs.h"
1032010321
1032110322 #if HAVE_DLFCN_H
2140621407 fi
2140721408
2140821409 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21410
21411
21412 test "x$program_prefix" = "xNONE" && program_prefix=""
21413
2140921414
2141021415
2141121416 ac_config_commands="$ac_config_commands setup"
2233322338 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
2233422339 RPATH!$RPATH$ac_delim
2233522340 RDYNAMIC!$RDYNAMIC$ac_delim
22341 program_prefix!$program_prefix$ac_delim
2233622342 LIBOBJS!$LIBOBJS$ac_delim
2233722343 LTLIBOBJS!$LTLIBOBJS$ac_delim
2233822344 _ACEOF
2233922345
22340 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
22346 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
2234122347 break
2234222348 elif $ac_last_try; then
2234322349 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2235622362
2235722363 cat >>$CONFIG_STATUS <<_ACEOF
2235822364 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22365 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2236022366 _ACEOF
2236122367 sed '
2236222368 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
2236922375 ' >>$CONFIG_STATUS
2237022376 rm -f conf$$subs.sed
2237122377 cat >>$CONFIG_STATUS <<_ACEOF
22372 :end
22373 s/|#_!!_#|//g
2237422378 CEOF$ac_eof
2237522379 _ACEOF
2237622380
2261822622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2261922623 s&@INSTALL@&$ac_INSTALL&;t t
2262022624 $ac_datarootdir_hack
22621 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22625 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
2262222626
2262322627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2262422628 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14361436 uninstall-local::
14371437 $(Echo) Uninstall circumvented with NO_INSTALL
14381438 else
1439 DestTool = $(DESTDIR)$(PROJ_bindir)/$(TOOLEXENAME)
1439 DestTool = $(DESTDIR)$(PROJ_bindir)/$(program_prefix)$(TOOLEXENAME)
14401440
14411441 install-local:: $(DestTool)
14421442
14501450
14511451 # TOOLALIAS install.
14521452 ifdef TOOLALIAS
1453 DestToolAlias = $(DESTDIR)$(PROJ_bindir)/$(TOOLALIAS)$(EXEEXT)
1453 DestToolAlias = $(DESTDIR)$(PROJ_bindir)/$(program_prefix)$(TOOLALIAS)$(EXEEXT)
14541454
14551455 install-local:: $(DestToolAlias)
14561456
6262 install:: $(DESTDIR)$(PROJ_bindir)
6363 $(Echo) Installing llvm-config-host
6464 $(Verb) $(ProgInstall) $(BuildLLVMToolDir)/llvm-config \
65 $(DESTDIR)$(PROJ_bindir)/llvm-config-host
65 $(DESTDIR)$(PROJ_bindir)/$(program_prefix)llvm-config-host
6666 endif