⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lc-configure.in

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 IN
📖 第 1 页 / 共 2 页
字号:
    AC_DEFINE(CLICK_DMALLOC)fidnldnl valgrind debugging supportdnlAC_ARG_ENABLE(valgrind, [  --enable-valgrind       extra support for debugging with valgrind], :, enable_valgrind=no)if test $enable_valgrind = yes; then    AC_CHECK_HEADERS(valgrind/memcheck.h, ac_found_valgrind_memcheck_h=yes, ac_found_valgrind_memcheck_h=no)    if test $ac_found_valgrind_memcheck_h = no; then	AC_MSG_ERROR([=========================================Can't find Valgrind header file 'valgrind/memcheck.h'.Try again without '--enable-valgrind'.=========================================])    fi    AC_DEFINE(HAVE_VALGRIND)fidnldnl use Intel-specific machine instructionsdnlAC_ARG_ENABLE(intel-cpu, [  --enable-intel-cpu      enable Intel-specific machine instructions], :, enable_intel_cpu=no)if test $enable_intel_cpu = yes; then    AC_DEFINE(HAVE_INTEL_CPU)fidnl pcap librarydnl note: no longer need pcap under Linuxdnl if test "$enable_userlevel" = yes; then    CLICK_CHECK_LIBPCAP    AC_DEFINE(HAVE_USERLEVEL_DRIVER)    HAVE_USERLEVEL_DRIVER=1dnl fidnl other user-level specificsAC_CACHE_CHECK([whether struct if_data has ifi_datalen], [ac_cv_if_data_ifi_datalen],    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <net/if.h>#include <net/if_var.h>]], [[struct if_msghdr ifm; ifm.ifm_data.ifi_datalen = 0;]])], ac_cv_if_data_ifi_datalen=yes, ac_cv_if_data_ifi_datalen=no)])if test "x$ac_cv_if_data_ifi_datalen" = xyes; then    AC_DEFINE([HAVE_IF_DATA_IFI_DATALEN], [1], [Define if 'struct if_data' has an 'ifi_datalen' member.])fiAC_CACHE_CHECK([whether struct sockaddr_in has sin_len], [ac_cv_sockaddr_in_sin_len],    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>#include <netinet/in.h>]], [[struct sockaddr_in sin; sin.sin_len = 0;]])], ac_cv_sockaddr_in_sin_len=yes, ac_cv_sockaddr_in_sin_len=no)])if test "x$ac_cv_sockaddr_in_sin_len" = xyes; then    AC_DEFINE([HAVE_SOCKADDR_IN_SIN_LEN], [1], [Define if 'struct sockaddr_in' has a 'sin_len' member.])fidnl PlanetLab "Privileged Operations" libraryexplicit_proper=yesAC_ARG_WITH(proper, [[  --with-proper[=PREFIX]  use PlanetLab Proper library (optional)]],  [properprefix=$withval; if test -z "$withval" -o "$withval" = yes; then properprefix=; fi],  [properprefix=no; explicit_proper=no])if test "$properprefix" != no; then    dnl Proper requires libcurl    dnl AC_CHECK_HEADER(curl/curl.h, have_curl_h=yes, have_curl_h=no)    dnl AC_CHECK_LIB(curl, curl_easy_init)    saveflags="$CPPFLAGS"; test -n "$properprefix" && CPPFLAGS="$CPPFLAGS -I$properprefix/include"    AC_CHECK_HEADER(prop.h, have_prop_h=yes, have_prop_h=no)    CPPFLAGS="$saveflags"        AC_LANG_C    saveflags="$LDFLAGS"; test -n "$properprefix" && LDFLAGS="$LDFLAGS -L$properprefix/lib"    AC_CHECK_LIB(proper, prop_open, have_libproper=yes, have_libproper=no)    LDFLAGS="$saveflags"    AC_LANG_CPLUSPLUS    if test $have_prop_h = yes -a $have_libproper = yes; then	AC_DEFINE(HAVE_PROPER)	test -n "$properprefix" && PROPER_INCLUDES="-I$properprefix/include" && PROPER_LIBS="-L$properprefix/lib"	PROPER_LIBS="$PROPER_LIBS -lproper"    elif test $explicit_proper = yes; then	PROPER_INCLUDES= PROPER_LIBS=	AC_MSG_ERROR([=========================================You explicitly specified --with-proper, but I can't find the proper headersand/or libraries where you said they would be.  Run again supplying--without-proper or --with-proper=PREFIX.=========================================])    fifiAC_SUBST(PROPER_INCLUDES)AC_SUBST(PROPER_LIBS)dnldnl programs needed for build processdnlCLICK_PROG_INSTALLCLICK_PROG_GMAKECLICK_PROG_AUTOCONFCLICK_PROG_PERL5AC_PROG_AWKAC_PROG_GREPAC_PROG_EGREPif test -z "$GMAKE"; then    AC_MSG_ERROR([==============================================Can't find GNU make.  Either put 'gmake' on your PATH andrerun './configure', or set the GMAKE environment variable toGNU make's pathname.==============================================])fidnldnl Makeinfo, texi2dvi, install-info, pod2mandnlAC_MSG_CHECKING(for working makeinfo)MAKEINFO=${MAKEINFO-makeinfo}if ($MAKEINFO --version) < /dev/null > conftest.out 2>&1; then    if test `head -n 1 conftest.out | sed 's/^.* \([[0-9]][[0-9]]*\).*$/\1/'` -ge 4; then	AC_MSG_RESULT(found)    else	MAKEINFO='$(conf_auxdir)/missing makeinfo'	AC_MSG_RESULT(old)    fielse    MAKEINFO='$(conf_auxdir)/missing makeinfo'    AC_MSG_RESULT(missing)fiAC_MSG_CHECKING(for working texi2dvi)TEXI2DVI=${TEXI2DVI-texi2dvi}if ($TEXI2DVI --version) < /dev/null > conftest.out 2>&1; then    dnl Search for a good version of texi2dvi    if test `head -n 1 conftest.out | sed 's/.*Texinfo \([[0-9]][[0-9]]*\).*/\1/'` -ge 4; then	AC_MSG_RESULT(found)    else	TEXI2DVI='$(conf_auxdir)/missing texi2dvi'	AC_MSG_RESULT(old)    fielse    TEXI2DVI='$(conf_auxdir)/missing texi2dvi'    AC_MSG_RESULT(missing)fidnl Assume any version of install-info is OKif test ${INSTALL_INFO-xxx} = xxx; then    AC_PATH_PROG(INSTALL_INFO, install-info, '$(conf_auxdir)/missing install-info',	$PATH:/sbin:/usr/sbin:/usr/local/sbin)fiAC_MSG_CHECKING(for working install-info)if ($INSTALL_INFO --version) < /dev/null > conftest.out 2>&1; then    AC_MSG_RESULT(found)else    INSTALL_INFO='$(conf_auxdir)/missing install-info'    AC_MSG_RESULT(missing)fiAC_MSG_CHECKING(for working pod2man)POD2MAN=${POD2MAN-pod2man}if ($POD2MAN --help) < /dev/null > conftest.out 2>&1 && grep pod2man conftest.out >/dev/null 2>&1; then    AC_MSG_RESULT(found)else    POD2MAN='$(conf_auxdir)/missing pod2man'    AC_MSG_RESULT(missing)fiAC_SUBST(MAKEINFO)AC_SUBST(TEXI2DVI)AC_SUBST(INSTALL_INFO)AC_SUBST(POD2MAN)dnldnl set path variablesdnlshell_expand () {    val=`eval echo '$'"$1"`    while echo "x$val" | fgrep '$' >/dev/null 2>&1; do val=`eval echo "$val"`; done    eval "$1='$val'"}dnl Preset $prefix and $exec_prefix.test "x$prefix" = xNONE && prefix=$ac_default_prefixtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'dnl Expand 'infodir' to check for Red Hatif test x$infodir = 'x${prefix}/info'; then    test ! -d ${prefix}/info && test -d ${prefix}/share/info && infodir='${prefix}/share/info'fishell_expand bindirshell_expand sbindirshell_expand libdirshell_expand datarootdirshell_expand datadirshell_expand includedirclickdatadir="$datadir/click"AC_SUBST(clickdatadir)AC_DEFINE_UNQUOTED(CLICK_BINDIR, "$bindir")AC_DEFINE_UNQUOTED(CLICK_LIBDIR, "$libdir")AC_DEFINE_UNQUOTED(CLICK_DATADIR, "$clickdatadir")dnldnl Provisionsdnldnl start out with CPUprovisions="$target_cpu"case "$target_cpu" in    i386) :;;    i486|i586) provisions="$provisions i386";;    i686|i786) provisions="$provisions i386 i586";;esacdnl add 'analysis' if analysis elements are availableif test "x$enable_analysis" = xyes; then    provisions="$provisions analysis"fidnl add 'int64' if 64-bit integers are availableif test "x$have_int64_types" = xyes; then    provisions="$provisions int64"fidnl add 'ip6' if ip6 elements are availableif test "x$enable_ip6" = xyes; then    provisions="$provisions ip6"fidnl add 'linux' if compiling under linuxif test "x$ac_cv_under_linux" = xyes; then    provisions="$provisions linux"fidnl add 'pcap' if libpcap is availableif test "x$HAVE_PCAP" = xyes; then    provisions="$provisions pcap"fidnl add 'umultithread' if compiled with --enable-user-multithreadif test "x$enable_user_multithread" = xyes; then    provisions="$provisions umultithread"fidnl add 'wifi' if wifi elements are availableif test "x$enable_wifi" = xyes; then    provisions="$provisions wifi"fiAC_SUBST(provisions)dnldnl Outputdnlconfig_files="Makefile click-buildtool libsrc/Makefile"for ac_dir in include; do    test ! -d "$ac_dir" && mkdir "$ac_dir"doneAC_OUTPUT_COMMANDS([for ac_file in $CONFIG_HEADERS; do    test $ac_file = include/click/config.h:config.h.in && echo > stamp-hdonefor ac_file in $CONFIG_FILES; do    test $ac_file = click-buildtool && chmod +x click-buildtool    test -z "$GMAKE" && echo $ac_file | grep Makefile >/dev/null && $ac_given_srcdir/missing gmake $ac_filedone], GMAKE="$GMAKE")AC_OUTPUT($config_files)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -