📄 configure
字号:
(exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then :else echo "$as_me: failed program was:" >&5sed 's/^/| /' conftest.$ac_ext >&5continuefirm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF/* confdefs.h. */_ACEOFcat confdefs.h >>conftest.$ac_extcat >>conftest.$ac_ext <<_ACEOF/* end confdefs.h. */$ac_declarationintmain (){exit (42); ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then breakelse echo "$as_me: failed program was:" >&5sed 's/^/| /' conftest.$ac_ext >&5firm -f conftest.err conftest.$ac_objext conftest.$ac_extdonerm -f conftest*if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.hfiac_ext=cac_cpp='$CPP $CPPFLAGS'ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'ac_compiler_gnu=$ac_cv_c_compiler_gnuac_ext=ccac_cpp='$CXXCPP $CPPFLAGS'ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'ac_compiler_gnu=$ac_cv_cxx_compiler_gnuac_uname=`uname`SHARED="-shared"STRIPPED="-Wl,-s"INCLUDES="-Isrc -I$srcdir"case $ac_uname inIRIX*) CXXFLAGS="-g -O -LANG:std -woff 1682 -no_auto_include -LANG:libc_in_namespace_std=off" SHARELDFLAGS= LDFLAGS="$LDFLAGS -LANG:std" ;;OSF1*) CXXFLAGS="-g3 -O -D__USE_STD_IOSTREAM -ieee" SHARELDFLAGS="-Wl,-expect_unresolved,'*',-hidden" ;;SunOS*) CXXFLAGS="-g0 -O2 -xlibmieee" SHARED="-G" STRIPPED="-s" ;;Linux*) CXXFLAGS="-g -O2 -fPIC" SHARELDFLAGS= ;;*) SHARELDFLAGS= ;;esacecho "$as_me:$LINENO: checking for broken C++ string library" >&5echo $ECHO_N "checking for broken C++ string library... $ECHO_C" >&6cat >conftest.$ac_ext <<_ACEOF/* confdefs.h. */_ACEOFcat confdefs.h >>conftest.$ac_extcat >>conftest.$ac_ext <<_ACEOF/* end confdefs.h. */ #include <string>intmain (){ std::string s("foobar"); (void)s.compare(0, 3, std::string("foo")); ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "$as_me:$LINENO: result: no" >&5echo "${ECHO_T}no" >&6else echo "$as_me: failed program was:" >&5sed 's/^/| /' conftest.$ac_ext >&5 echo "$as_me:$LINENO: result: yes" >&5echo "${ECHO_T}yes" >&6 cat >>confdefs.h <<\_ACEOF#define BROKEN_STRING 1_ACEOFfirm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: checking whether to compile with Matlab" >&5echo $ECHO_N "checking whether to compile with Matlab... $ECHO_C" >&6# Check whether --with-matlab or --without-matlab was given.if test "${with_matlab+set}" = set; then withval="$with_matlab" case "$withval" in "no") echo "$as_me:$LINENO: result: no" >&5echo "${ECHO_T}no" >&6 with_matlab=no ;; *) echo "$as_me:$LINENO: result: yes" >&5echo "${ECHO_T}yes" >&6 MATLAB="$withval" with_matlab=yes ;; esacelse echo "$as_me:$LINENO: result: yes (default)" >&5echo "${ECHO_T}yes (default)" >&6 with_matlab=yesfi;if test "$with_matlab" != "no" -a \( -z "$MATLAB" -o "$MATLAB" = "yes" \) ; then # Extract the first word of "matlab", so it can be a program name with args.set dummy matlab; ac_word=$2echo "$as_me:$LINENO: checking for $ac_word" >&5echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6if test "${ac_cv_path_MATLAB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else case $MATLAB in [\\/]* | ?:[\\/]*) ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedone ;;esacfiMATLAB=$ac_cv_path_MATLABif test -n "$MATLAB"; then echo "$as_me:$LINENO: result: $MATLAB" >&5echo "${ECHO_T}$MATLAB" >&6else echo "$as_me:$LINENO: result: no" >&5echo "${ECHO_T}no" >&6fifiif test "$MATLAB" -a ! -x "$MATLAB" ; then # Extract the first word of ""$MATLAB"", so it can be a program name with args.set dummy "$MATLAB"; ac_word=$2echo "$as_me:$LINENO: checking for $ac_word" >&5echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6if test "${ac_cv_path_MATLAB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else case $MATLAB in [\\/]* | ?:[\\/]*) ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedone ;;esacfiMATLAB=$ac_cv_path_MATLABif test -n "$MATLAB"; then echo "$as_me:$LINENO: result: $MATLAB" >&5echo "${ECHO_T}$MATLAB" >&6else echo "$as_me:$LINENO: result: no" >&5echo "${ECHO_T}no" >&6fifiif test -x "$MATLAB" ; then cat >>confdefs.h <<\_ACEOF#define WITH_MATLAB 1_ACEOFelse if test "$with_matlab" = "yes" ; then { echo "$as_me:$LINENO: WARNING: Matlab binary not found" >&5echo "$as_me: WARNING: Matlab binary not found" >&2;} with_matlab=no fifiif test "$with_matlab" != "no" ; then { echo "$as_me:$LINENO: Testing Matlab parameters" >&5echo "$as_me: Testing Matlab parameters" >&6;} echo "$as_me:$LINENO: checking for Matlab root directory" >&5echo $ECHO_N "checking for Matlab root directory... $ECHO_C" >&6 MATROOT=`${MATLAB} -n | grep ' r MATLAB ' | cut -b 31-` echo "$as_me:$LINENO: result: $MATROOT" >&5echo "${ECHO_T}$MATROOT" >&6 echo "$as_me:$LINENO: checking for Matlab architecture" >&5echo $ECHO_N "checking for Matlab architecture... $ECHO_C" >&6 MATARCH=`${MATLAB} -n | grep ' r ARCH ' | cut -b 31-` echo "$as_me:$LINENO: result: $MATARCH" >&5echo "${ECHO_T}$MATARCH" >&6 if test -z "$MATROOT" -o -z "$MATARCH" ; then { { echo "$as_me:$LINENO: error: Cannot determine Matlab root directory and architecture, please check Matlab binary location" >&5echo "$as_me: error: Cannot determine Matlab root directory and architecture, please check Matlab binary location" >&2;} { (exit 1); exit 1; }; } fi INCLUDES="$INCLUDES -I$MATROOT/extern/include" LIBS="$LIBS -lmat -lmx" case "$ac_uname" in IRIX*) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -rpath $MATROOT/bin/$MATARCH" ;; OSF1*) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -rpath $MATROOT/bin/$MATARCH" ;; Linux) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -Wl,-rpath,$MATROOT/bin/$MATARCH:$MATROOT/sys/os/$MATARCH -Wl,--disable-new-dtags" ;; SunOS) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -R$MATROOT/bin/$MATARCH" ;; *) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -Wl,-rpath,$MATROOT/bin/$MATARCH" ;; esacelse MATROOT= MATARCH=fiLIBS="$LIBS -lm"if test $ac_uname = "SunOS" ; then LIBS="$LIBS -lCstd -lCrun"fi ac_config_files="$ac_config_files Makefile"cat >confcache <<\_ACEOF# This file is a shell script that caches the results of configure# tests run on this system so they can be shared between configure# scripts and configure runs, see configure's option --config-cache.# It is not useful on other systems. If it contains results you don't# want to keep, you may remove or edit it.## config.status only pays attention to the cache file if you give it# the --recheck option to rerun configure.## `ac_cv_env_foo' variables (set or unset) will be overridden when# loading this file, other *unset* `ac_cv_foo' will be assigned the# following values._ACEOF# The following way of writing the cache mishandles newlines in values,# but we know of no workaround that is simple, portable, and efficient.# So, don't put newlines in cache variables' values.# Ultrix sh set writes to stderr and can't be redirected directly,# and sets the high bit in the cache file unless we assign to the vars.{ (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac;} | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcacheif diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fifirm -f confcachetest "x$prefix" = xNONE && prefix=$ac_default_prefix# Let make expand exec_prefix.test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'# VPATH may cause trouble with some makes, so we remove $(srcdir),# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and# trailing colons and then remove the whole line if
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -