📄 configure
字号:
fififor ac_prog in $CCC c++ g++ gcc CC cxx cc++ cldo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1306: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs"fifiCXX="$ac_cv_prog_CXX"if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$CXX" && breakdonetest -n "$CXX" || CXX="gcc"echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:1338: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5ac_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_crosscat > conftest.$ac_ext << EOF#line 1349 "configure"#include "confdefs.h"int main(){return(0);}EOFif { (eval echo configure:1354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cxx_cross=no else ac_cv_prog_cxx_cross=yes fielse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cxx_works=nofirm -fr conftest*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_crossecho "$ac_t""$ac_cv_prog_cxx_works" 1>&6if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:1380: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6cross_compiling=$ac_cv_prog_cxx_crossecho $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6echo "configure:1385: checking whether we are using GNU C++" >&5if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.C <<EOF#ifdef __GNUC__ yes;#endifEOFif { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yeselse ac_cv_prog_gxx=nofifiecho "$ac_t""$ac_cv_prog_gxx" 1>&6if test $ac_cv_prog_gxx = yes; then GXX=yeselse GXX=fiac_test_CXXFLAGS="${CXXFLAGS+set}"ac_save_CXXFLAGS="$CXXFLAGS"CXXFLAGS=echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6echo "configure:1413: checking whether ${CXX-g++} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'void f(){}' > conftest.ccif test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then ac_cv_prog_cxx_g=yeselse ac_cv_prog_cxx_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cxx_g" 1>&6if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS="$ac_save_CXXFLAGS"elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fielse if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fififor ac_declaration in \ ''\ '#include <stdlib.h>' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);'do cat > conftest.$ac_ext <<EOF#line 1454 "configure"#include "confdefs.h"#include <stdlib.h>$ac_declarationint main() {exit (42);; return 0; }EOFif { (eval echo configure:1462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then :else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* continuefirm -f conftest* cat > conftest.$ac_ext <<EOF#line 1472 "configure"#include "confdefs.h"$ac_declarationint main() {exit (42);; return 0; }EOFif { (eval echo configure:1479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* breakelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*doneif test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.hfiCFLAGS="-g" CXXFLAGS="-g"echo -n "checking whether mipsel-linux-g++ requires --permissive... "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_crosscat > conftest.$ac_ext <<EOF#line 1511 "configure"#include "confdefs.h"int main() {class foo { public: operator++() { return 1; } }; foo bar; bar++; ; return 0; }EOFif { (eval echo configure:1519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* CXXFLAGS="$CXXFLAGS"echo "no"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CXXFLAGS="$CXXFLAGS --permissive"echo "yes"firm -f conftest*LIBS="-lpthread"INCLUDES="-I$prefix/include -I. -I../kdecore -I../kimgio -I../kdeui -I../jscript"# Check whether --enable-static or --disable-static was given.if test "${enable_static+set}" = set; then enableval="$enable_static" echo "Linking with static libraries" LDFLAGS="$LDFLAGS --static"fi# Check whether --with-flek or --without-flek was given.if test "${with_flek+set}" = set; then withval="$with_flek" echo "Grabbing FLEK from $with_flek..." LIBS="$LIBS -L$with_flek/lib -lflek" INCLUDES="$INCLUDES -I$with_flek -I$with_flek/Flek -I./flek" FLAGS="$CFLAGS -DUSING_FLEK_LIB" CXXFLAGS="$CXXFLAGS -DUSING_FLEK_LIB"fiFLTK="/usr/local"# Check whether --with-fltk or --without-fltk was given.if test "${with_fltk+set}" = set; then withval="$with_fltk" echo "Grabbing FLTK from $with_fltk..." FLTK=$with_fltk LIBS="$LIBS -L$with_fltk/lib -lfltk" INCLUDES="$INCLUDES -I$with_fltk -I$with_fltk/FL -I./fltk" fi# Check whether --with-nxapp or --without-nxapp was given.if test "${with_nxapp+set}" = set; then withval="$with_nxapp" echo "Found NxApp Framework in $with_nxapp" NXAPPFOLDER=$with_nxapp INCLUDES="$INCLUDES -I$NXAPPFOLDER" LIBS="$NXAPPFOLDER/libpixil-pim.a $LIBS"fi# Check whether --with-microwin or --without-microwin was given.if test "${with_microwin+set}" = set; then withval="$with_microwin" echo "Found MicroWindows in $with_microwin" MWFOLDER=$with_microwin INCLUDES="$INCLUDES -I$MWFOLDER/include -I$includedir/microwin" FLAGS="$CFLAGS -DNANOX -D_NANOX"host_alias CXXFLAGS="$CXXFLAGS -DNANOX -D_NANOX" LIBS="$LIBS -ljpeg -L$MWFOLDER/lib -lnano-X -lmwengine -lmwdrivers -lmwfonts" NANOX=1 fi# Check whether --with-libwwwconf or --without-libwwwconf was given.if test "${with_libwwwconf+set}" = set; then withval="$with_libwwwconf" if test -f $with_libwwwconf/libwww-config; then LIBWWW_CONFIG=$with_libwwwconf/libwww-config else { echo "configure: error: libwww-conf not found in $with_libwwwconf" 1>&2; exit 1; } fifiac_tool_tp1=ac_tool_tp2=if test "x"$ac_tool_prefix != "x"; then ac_tool_path=`which ${ac_tool_prefix}gcc` if test "x"$ac_tool_path != "x"; then ac_tool_tp1=`dirname $ac_tool_path` ac_tool_tp2=`dirname $ac_tool_tp1`/$host_alias/bin fifi# Extract the first word of "libwww-config", so it can be a program name with args.set dummy libwww-config; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1627: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_LIBWWW_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$LIBWWW_CONFIG" in /*) ac_cv_path_LIBWWW_CONFIG="$LIBWWW_CONFIG" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_LIBWWW_CONFIG="$LIBWWW_CONFIG" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$ac_tool_tp1:$ac_tool_tp2:$prefix/bin:$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_LIBWWW_CONFIG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_LIBWWW_CONFIG" && ac_cv_path_LIBWWW_CONFIG=":" ;;esacfiLIBWWW_CONFIG="$ac_cv_path_LIBWWW_CONFIG"if test -n "$LIBWWW_CONFIG"; then echo "$ac_t""$LIBWWW_CONFIG" 1>&6else echo "$ac_t""no" 1>&6fiif test -z $LIBWWW_CONFIG -o $LIBWWW_CONFIG = ":"; then { echo "configure: error: Unable to locate libwww-config, please specify with --with-libwwwconf=path" 1>&2; exit 1; }fiecho $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6echo "configure:1665: checking how to run the C++ preprocessor" >&5if test -z "$CXXCPP"; thenif 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_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext <<EOF#line 1678 "configure"#include "confdefs.h"#include <stdlib.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1683: \"$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# 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_crossfifiCXXCPP="$ac_cv_prog_CXXCPP"echo "$ac_t""$CXXCPP" 1>&6# If we find X, set shell vars x_includes and x_libraries to the# paths, otherwise set no_x=yes.# Uses ac_ vars as temps to allow command line to override cache and checks.# --without-x overrides everything else, but does not touch the cache.echo $ac_n "checking for X""... $ac_c" 1>&6echo "configure:1712: checking for X" >&5# Check whether --with-x or --without-x was given.if test "${with_x+set}" = set; then withval="$with_x" :fi# $have_x is `yes', `no', `disabled', or empty when we do not yet know.if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabledelse if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then # Both variables are already set. have_x=yes elseif eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -