📄 configure
字号:
echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
echo "configure:1739: checking size of unsigned int" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1747 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(unsigned int));
exit(0);
}
EOF
if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_unsigned_int=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_sizeof_unsigned_int=0
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
EOF
echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
echo "configure:1778: checking size of unsigned long" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1786 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(unsigned long));
exit(0);
}
EOF
if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_unsigned_long=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_sizeof_unsigned_long=0
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
EOF
# Extract the first word of "pppd", so it can be a program name with args.
set dummy pppd; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1820: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PPPD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$PPPD" in
/*)
ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_PPPD="$PPPD" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_PPPD="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="NOTFOUND"
;;
esac
fi
PPPD="$ac_cv_path_PPPD"
if test -n "$PPPD"; then
echo "$ac_t""$PPPD" 1>&6
else
echo "$ac_t""no" 1>&6
fi
# Extract the first word of "setsid", so it can be a program name with args.
set dummy setsid; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1857: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_SETSID'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$SETSID" in
/*)
ac_cv_path_SETSID="$SETSID" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_SETSID="$SETSID" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_SETSID="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_SETSID" && ac_cv_path_SETSID=""""
;;
esac
fi
SETSID="$ac_cv_path_SETSID"
if test -n "$SETSID"; then
echo "$ac_t""$SETSID" 1>&6
else
echo "$ac_t""no" 1>&6
fi
# Extract the first word of "id", so it can be a program name with args.
set dummy id; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1894: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ID'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$ID" in
/*)
ac_cv_path_ID="$ID" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_ID="$ID" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="/usr/xpg4/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_ID="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_ID" && ac_cv_path_ID=""""
;;
esac
fi
ID="$ac_cv_path_ID"
if test -n "$ID"; then
echo "$ac_t""$ID" 1>&6
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for Linux 2.4.X kernel-mode PPPoE support""... $ac_c" 1>&6
echo "configure:1929: checking for Linux 2.4.X kernel-mode PPPoE support" >&5
if test "`uname -s`" = "Linux" ; then
modprobe ppp_generic > /dev/null 2>&1
modprobe ppp_async > /dev/null 2>&1
modprobe n_hdlc > /dev/null 2>&1
modprobe ppp_synctty > /dev/null 2>&1
modprobe pppoe > /dev/null 2>&1
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1940 "configure"
#include "confdefs.h"
#include <sys/socket.h>
#include <net/ethernet.h>
#include <linux/if.h>
#include <linux/if_pppox.h>
int main()
{
if (socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OE) >= 0) return 0; else return 1;
}
EOF
if { (eval echo configure:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_linux_kernel_pppoe=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_linux_kernel_pppoe=no
fi
rm -fr conftest*
fi
else
ac_cv_linux_kernel_pppoe=no
fi
$ECHO $ac_cv_linux_kernel_pppoe
if test "$ac_cv_linux_kernel_pppoe" != yes ; then
if test "$LINUX_KERNELMODE_PLUGIN" = rp-pppoe.so; then
echo "*** Your kernel does not appear to have built-in PPPoE support,"
echo "*** but I will build the kernel-mode plugin anyway."
fi
fi
if test "$GCC" = yes; then
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -ansi -pedantic"
fi
if test "$PPPD" = "NOTFOUND"; then
$ECHO ""
$ECHO "*** Oops! I couldn't find pppd, the PPP daemon anywhere."
$ECHO "*** You must install pppd, version 2.3.10 or later."
$ECHO "*** I will keep going, but it may not work."
$ECHO ""
fi
PPPD_VERSION=`$PPPD --version 2>&1 | awk '{print $NF}'`
case "$PPPD_VERSION" in
1.*|2.0.*|2.1.*|2.2.*|2.3.0|2.3.1|2.3.2|2.3.3|2.3.4|2.3.5|2.3.6)
$ECHO ""
$ECHO "*** Oops! Your version of pppd is $PPPD_VERSION, which is too old."
$ECHO "*** You need at least 2.3.7 (2.3.10 or newer recommended.)"
$ECHO "*** I will keep going, but it may not work."
$ECHO ""
;;
2.3.7|2.3.8|2.3.9)
$ECHO ""
$ECHO "*** Warning. Your version of pppd is $PPPD_VERSION. You will"
$ECHO "*** not be able to use connect-on-demand. Upgrade to pppd"
$ECHO "*** 2.3.10 or newer if you need connect-on-demand."
$ECHO ""
;;
2*|3*|4*|5*|6*|7*|8*|9*)
;;
*)
$ECHO ""
$ECHO "*** Oops. I cannot figure out what version of pppd you have."
$ECHO "*** All I got back was '$PPPD_VERSION'"
$ECHO "*** I will keep going, but it may not work."
$ECHO ""
;;
esac
echo $ac_n "checking packing order of bit fields""... $ac_c" 1>&6
echo "configure:2021: checking packing order of bit fields" >&5
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2026 "configure"
#include "confdefs.h"
union foo {
struct bar {
unsigned int ver:4;
unsigned int type:4;
} bb;
unsigned char baz;
};
int
main(void)
{
union foo x;
x.bb.ver = 1;
x.bb.type = 2;
if (x.baz == 0x21) {
return 1;
} else if (x.baz == 0x12) {
return 0;
} else {
return 2;
}
}
EOF
if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
PACK=normal
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
PACK=rev
fi
rm -fr conftest*
fi
if test "$PACK" = "rev" ; then
$ECHO "reversed"
cat >> confdefs.h <<\EOF
#define PACK_BITFIELDS_REVERSED 1
EOF
else
$ECHO "normal"
fi
# Sigh... got to fix this up for tcl
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Fully resolve WRAPPER for Tcl script.
WRAPPER=${sbindir}/pppoe-wrapper
eval "WRAPPER=${WRAPPER}"
eval "WRAPPER=${WRAPPER}"
# Determine what targets to build
TARGETS="pppoe pppoe-server"
# pppoe-sniff is built only on Linux and Solaris
if test "$ac_cv_header_linux_if_packet_h" = "yes" -o "$ac_cv_header_sys_dlpi_h" = "yes" ; then
TARGETS="$TARGETS pppoe-sniff"
fi
# pppoe-relay is built only on Linux
if test "$ac_cv_header_linux_if_packet_h" = "yes" ; then
TARGETS="$TARGETS pppoe-relay"
fi
# plugin is built only if we have kernel support
if test -n "$LINUX_KERNELMODE_PLUGIN" ; then
TARGETS="$TARGETS $LINUX_KERNELMODE_PLUGIN"
mkdir plugin > /dev/null 2>&1
fi
EXTRACONFIGS=""
# Licensed stuff only for commercial distro (for now)
if test -n "$LIC_DEFINE" ; then
TARGETS="licensed-only $TARGETS"
EXTRACONFIGS="$EXTRACONFIGS licensed-only/Makefile"
fi
RDYNAMIC=""
# L2TP is only in commercial distro (for now)
if test -n "$LIC_DEFINE" ; then
TARGETS="l2tp $TARGETS"
EXTRACONFIGS="$EXTRACONFIGS l2tp/Makefile l2tp/handlers/Makefile"
LIC_DEFINE="$LIC_DEFINE -DHAVE_L2TP=1"
LIC_LIB="$LIC_LIB -Ll2tp -ll2tp"
PPPOE_SERVER_DEPS="$PPPOE_SERVER_DEPS l2tp/libl2tp.a"
RDYNAMIC="-rdynamic"
fi
LIBEVENT=../libevent
datadir_evaluated=`eval echo $datadir`
trap '' 1 2 15
cat > confcache <<\EOF
# 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. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# 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 \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -