llvm.org GIT mirror llvm / cf9be26
Added --with-extra-options=opts to specify additional options to build LLVM and run tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28882 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
3 changed file(s) with 31 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
102102 # Targets that we should build
103103 TARGETS_TO_BUILD=@TARGETS_TO_BUILD@
104104
105 # Extra options to compile LLVM with
106 EXTRA_OPTIONS=@EXTRA_OPTIONS@
107
105108 # Endian-ness of the target
106109 ENDIAN=@ENDIAN@
107110
324324 *) AC_MSG_ERROR([Invalid path for --with-llvmgccdir. Provide full path]) ;;
325325 esac
326326
327 dnl Specify extra build options
328 AC_ARG_WITH(extra-options,
329 AS_HELP_STRING([--with-extra-options],
330 [Specify addtional options to compile LLVM with]),,
331 extraopts=default)
332 case "$extraopts" in
333 default) EXTRA_OPTIONS= ;;
334 *) EXTRA_OPTIONS=$extraopts ;;
335 esac
336 AC_SUBST(EXTRA_OPTIONS,$EXTRA_OPTIONS)
327337
328338 dnl===-----------------------------------------------------------------------===
329339 dnl===
476476 # include
477477 #endif"
478478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480480 ac_subst_files=''
481481
482482 # Initialize some variables set by options.
10561056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
10571057 --with-llvmgccdir Specify location of llvm-gcc install dir (default
10581058 searches PATH)
1059 --with-extra-options Specify addtional options to compile LLVM with
10591060 --with-tclinclude directory where tcl headers are
10601061 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
10611062 --with-pic try to use only PIC/non-PIC objects [default=use
31593160 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
31603161 { (exit 1); exit 1; }; } ;;
31613162 esac
3163
3164
3165
3166 # Check whether --with-extra-options or --without-extra-options was given.
3167 if test "${with_extra_options+set}" = set; then
3168 extraopts="$with_extra_options"
3169
3170 else
3171 extraopts=default
3172 fi;
3173 case "$extraopts" in
3174 default) EXTRA_OPTIONS= ;;
3175 *) EXTRA_OPTIONS=$extraopts ;;
3176 esac
3177 EXTRA_OPTIONS=$EXTRA_OPTIONS
31623178
31633179
31643180
3189031906 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
3189131907 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
3189231908 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31909 s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
3189331910 s,@CPP@,$CPP,;t t
3189431911 s,@CXX@,$CXX,;t t
3189531912 s,@CXXFLAGS@,$CXXFLAGS,;t t