configure
来自「KDE下的西门子手机管理程序」· 代码 · 共 2,160 行 · 第 1/5 页
TXT
2,160 行
CXXFLAGS="$CXXFLAGS -fno-builtin" else echo "$ac_t""no" 1>&6 : fi fi if test "$kde_use_strict_options" = "yes"; then CXXFLAGS="$CXXFLAGS -Wcast-qual -Wbad-function-cast -Wshadow -Wcast-align" fi if test "$kde_very_strict" = "yes"; then CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wredundant-decls -Wconversion" fi fi fi echo $ac_n "checking whether $CXX supports -fexceptions""... $ac_c" 1>&6echo "configure:1755: checking whether $CXX supports -fexceptions" >&5kde_cache=`echo fexceptions | sed 'y%.=/+-%___p_%'`if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'int main() { return 0; }' >conftest.cceval "kde_cv_prog_cxx_$kde_cache=no"if test -z "`$CXX -fexceptions -c conftest.cc 2>&1`"; then if test -z "`$CXX -fexceptions -o conftest conftest.o 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes" fifirm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 : USE_EXCEPTIONS="-fexceptions" else echo "$ac_t""no" 1>&6 : USE_EXCEPTIONS= fi echo $ac_n "checking whether $CXX supports -frtti""... $ac_c" 1>&6echo "configure:1790: checking whether $CXX supports -frtti" >&5kde_cache=`echo frtti | sed 'y%.=/+-%___p_%'`if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'int main() { return 0; }' >conftest.cceval "kde_cv_prog_cxx_$kde_cache=no"if test -z "`$CXX -frtti -c conftest.cc 2>&1`"; then if test -z "`$CXX -frtti -o conftest conftest.o 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes" fifirm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 : USE_RTTI="-frtti" else echo "$ac_t""no" 1>&6 : USE_RTTI= fi case "$host" in *-*-irix*) test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS" ;; *-*-sysv4.2uw*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE";; esac if test -n "$USER_CXXFLAGS"; then CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS" fi __val=$CXX __forbid=" -fno-rtti " if test -n "$__val"; then __new="" ac_save_IFS=$IFS IFS=" " for i in $__val; do case "$__forbid" in *" $i "*) echo "configure: warning: found forbidden $i in CXX, removing it" 1>&2 ;; *) # Careful to not add spaces, where there were none, because otherwise # libtool gets confused, if we change e.g. CXX if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; esac done IFS=$ac_save_IFS CXX=$__new fi __val=$CXXFLAGS __forbid=" -fno-rtti " if test -n "$__val"; then __new="" ac_save_IFS=$IFS IFS=" " for i in $__val; do case "$__forbid" in *" $i "*) echo "configure: warning: found forbidden $i in CXXFLAGS, removing it" 1>&2 ;; *) # Careful to not add spaces, where there were none, because otherwise # libtool gets confused, if we change e.g. CXX if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; esac done IFS=$ac_save_IFS CXXFLAGS=$__new fi echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6echo "configure:1870: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cxx_crossac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext <<EOF#line 1887 "configure"#include "confdefs.h"#include <stdlib.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CXXCPP=/lib/cppfirm -f conftest* ac_cv_prog_CXXCPP="$CXXCPP" ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_cross fi CXXCPP="$ac_cv_prog_CXXCPP" fi echo "$ac_t""$CXXCPP" 1>&6 # the following is to allow programs, that are known to # have problems when compiled with -O2 if test -n "$CXXFLAGS"; then kde_safe_IFS=$IFS IFS=" " NOOPT_CXXFLAGS="" for i in $CXXFLAGS; do case $i in -O*) ;; *) NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS $i" ;; esac done IFS=$kde_safe_IFS fi # Check whether --enable-final or --disable-final was given.if test "${enable_final+set}" = set; then enableval="$enable_final" kde_use_final=$enablevalelse kde_use_final=nofi REPO="" NOREPO="" echo $ac_n "checking whether $CXX supports -frepo""... $ac_c" 1>&6echo "configure:1953: checking whether $CXX supports -frepo" >&5kde_cache=`echo frepo | sed 'y%.=/+-%___p_%'`if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'int main() { return 0; }' >conftest.cceval "kde_cv_prog_cxx_$kde_cache=no"if test -z "`$CXX -frepo -c conftest.cc 2>&1`"; then if test -z "`$CXX -frepo -o conftest conftest.o 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes" fifirm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 : REPO="-frepo" NOREPO="-fno-repo" else echo "$ac_t""no" 1>&6 : fi if test -z "$REPO"; then echo $ac_n "checking whether $CXX supports -instances=explicit""... $ac_c" 1>&6echo "configure:1988: checking whether $CXX supports -instances=explicit" >&5kde_cache=`echo instances=explicit | sed 'y%.=/+-%___p_%'`if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'int main() { return 0; }' >conftest.cceval "kde_cv_prog_cxx_$kde_cache=no"if test -z "`$CXX -instances=explicit -c conftest.cc 2>&1`"; then if test -z "`$CXX -instances=explicit -o conftest conftest.o 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes" fifirm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 : REPO="-instances=explicit" NOREPO="-instances=extern" else echo "$ac_t""no" 1>&6 : fi fi if test -n "$REPO"; then cat >> confdefs.h <<EOF#define HAVE_TEMPLATE_REPOSITORY 1EOF fi if test "x$kde_use_final" = "xyes"; then KDE_USE_FINAL_TRUE="" KDE_USE_FINAL_FALSE="#" else KDE_USE_FINAL_TRUE="#" KDE_USE_FINAL_FALSE="" fi # Check whether --enable-closure or --disable-closure was given.if test "${enable_closure+set}" = set; then enableval="$enable_closure" kde_use_closure=$enablevalelse kde_use_closure=yesfi if test "x$kde_use_closure" = "xyes"; then KDE_USE_CLOSURE_TRUE="" KDE_USE_CLOSURE_FALSE="#"# CXXFLAGS="$CXXFLAGS $REPO" else KDE_USE_CLOSURE_TRUE="#" KDE_USE_CLOSURE_FALSE="" fi KDE_CXXFLAGS= # Check whether --enable-shared or --disable-shared was given.if test "${enable_shared+set}" = set; then enableval="$enable_shared" p=${PACKAGE-default}case "$enableval" inyes) enable_shared=yes ;;no) enable_shared=no ;;*) enable_shared=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$ac_save_ifs" ;;esacelse enable_shared=yesfi# Check whether --enable-static or --disable-static was given.if test "${enable_static+set}" = set; then enableval="$enable_static" p=${PACKAGE-default}case "$enableval" inyes) enable_static=yes ;;no) enable_static=no ;;*) enable_static=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$ac_save_ifs" ;;esacelse enable_static=nofi# Check whether --enable-fast-install or --disable-fast-install was given.if test "${enable_fast_install+set}" = set; then enableval="$enable_fast_install" p=${PACKAGE-default}case "$enableval" inyes) enable_fast_install=yes ;;no) enable_fast_install=no ;;*) enable_fast_install=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$ac_save_ifs" ;;esacelse enable_fast_install=yesfi# Check whether --with-gnu-ld or --without-gnu-ld was given.if test "${with_gnu_ld+set}" = set; then withval="$with_gnu_ld" test "$withval" = no || with_gnu_ld=yeselse with_gnu_ld=nofiac_prog=ldif test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6echo "configure:2148: checking for ld used by GCC" >&5 case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case "$ac_prog" in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_p
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?