configure
资源名称:socks5.zip [点击查看]
上传用户:sddyfurun
上传日期:2007-01-04
资源大小:525k
文件大小:150k
源码类别:
代理服务器
开发平台:
Unix_Linux
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "sig_atomic_t" >/dev/null 2>&1; then
- rm -rf conftest*
- r_cv_type_sig_atomic_t=yes
- else
- rm -rf conftest*
- r_cv_type_sig_atomic_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$r_cv_type_sig_atomic_t" 1>&6
- if test "$r_cv_type_sig_atomic_t" = "no"; then
- cat >> confdefs.h <<EOF
- #define sig_atomic_t int
- EOF
- fi
- echo $ac_n "checking for cc_t""... $ac_c" 1>&6
- echo "configure:2667: checking for cc_t" >&5
- if eval "test "`echo '$''{'r_cv_have_cct'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2672 "configure"
- #include "confdefs.h"
- cc_t
- int main() {
- #include <termio.h>
- ; return 0; }
- EOF
- if { (eval echo configure:2679: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- cc_t foo;
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- r_cv_have_cct=yes
- fi
- rm -f conftest*
- fi
- if test $r_cv_have_cct = no; then cat >> confdefs.h <<EOF
- #define NO_CC_T 1
- EOF
- fi
- echo "$ac_t""$r_cv_have_cct" 1>&6
- echo $ac_n "checking for sig_t""... $ac_c" 1>&6
- echo "configure:2698: checking for sig_t" >&5
- if eval "test "`echo '$''{'r_cv_have_sigt'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2703 "configure"
- #include "confdefs.h"
- #include <signal.h>
- int main() {
- sig_t i = (sig_t)0;
- ; return 0; }
- EOF
- if { (eval echo configure:2710: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- r_cv_have_sigt=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- r_cv_have_sigt=no
- fi
- rm -f conftest*
- fi
- if test "$r_cv_have_sigt" = "no"; then FTPDEFS="$FTPDEFS -DCOMPAT"; fi
- echo "$ac_t""$r_cv_have_sigt" 1>&6
- echo
- echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
- echo "configure:2728: checking for sys_errlist" >&5
- if eval "test "`echo '$''{'r_cv_have_sysel'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2733 "configure"
- #include "confdefs.h"
- int main() {
- extern char **sys_errlist;char **foo = sys_errlist;
- ; return 0; }
- EOF
- if { (eval echo configure:2740: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- r_cv_have_sysel=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- r_cv_have_sysel=no
- fi
- rm -f conftest*
- fi
- if test "$r_cv_have_sysel" = "yes"; then cat >> confdefs.h <<EOF
- #define HAVE_SYSERRLIST 1
- EOF
- fi
- echo "$ac_t""$r_cv_have_sysel" 1>&6
- for ac_func in dlopen shl_load
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:2761: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2766 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:2789: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- saved_libs="$LIBS"
- LIBS="$LIBS $TELNET_LIBS"
- for ac_func in setupterm
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:2819: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2824 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:2847: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in tgetent
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:2874: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2879 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:2902: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- LIBS="$saved_libs"
- for ac_func in gethostbyname_r gethostbyaddr_r getpwuid_r getservbyname_r
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:2931: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2936 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:2959: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in memset memcmp memmove strchr strrchr strdup strerror
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:2986: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2991 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3014: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in bcopy bcmp bzero index rindex
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3041: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3046 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3069: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in setenv putenv unsetenv getenv
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3096: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3101 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3124: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in getdomainname rresvport sendmsg setsid setpgid setpgrp getifaddrs
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3151: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3156 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3179: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in waitpid flock dgettext sigaction sigprocmask
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3206: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3211 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3234: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in re_comp strspn getcwd vfork herror genget getopt
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3261: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3266 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3289: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- echo $ac_n "checking for vprintf""... $ac_c" 1>&6
- echo "configure:3314: checking for vprintf" >&5
- if eval "test "`echo '$''{'ac_cv_func_vprintf'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3319 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char vprintf(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char vprintf();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_vprintf) || defined (__stub___vprintf)
- choke me
- #else
- vprintf();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3342: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_vprintf=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_vprintf=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'vprintf`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_VPRINTF 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$ac_cv_func_vprintf" != yes; then
- echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
- echo "configure:3366: checking for _doprnt" >&5
- if eval "test "`echo '$''{'ac_cv_func__doprnt'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3371 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char _doprnt(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char _doprnt();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub__doprnt) || defined (__stub____doprnt)
- choke me
- #else
- _doprnt();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3394: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func__doprnt=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func__doprnt=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'_doprnt`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_DOPRNT 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
- echo "configure:3419: checking whether setpgrp takes no argument" >&5
- if eval "test "`echo '$''{'ac_cv_func_setpgrp_void'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3427 "configure"
- #include "confdefs.h"
- /*
- * If this system has a BSD-style setpgrp, which takes arguments, exit
- * successfully.
- */
- main()
- {
- if (setpgrp(1,1) == -1)
- exit(0);
- else
- exit(1);
- }
- EOF
- if { (eval echo configure:3443: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_setpgrp_void=no
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_setpgrp_void=yes
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
- if test $ac_cv_func_setpgrp_void = yes; then
- cat >> confdefs.h <<EOF
- #define SETPGRP_VOID 1
- EOF
- fi
- # Check whether --with-krb5 or --without-krb5 was given.
- if test "${with_krb5+set}" = set; then
- withval="$with_krb5"
- KRB5="$withval"
- else
- KRB5="no"
- fi
- if test "$KRB5" != "no"; then
- echo
- echo $ac_n "checking Kerberos 5""... $ac_c" 1>&6
- echo "configure:3478: checking Kerberos 5" >&5
- if eval "test "`echo '$''{'r_cv_krb5_home'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$KRB5" = "yes" -o "$KRB5" = ""; then
- r_cv_krb5_home=`egrep ^klogin /etc/inetd.conf|awk '{print $6;}'|awk -F/ '{ORS="/";for(i=1;i<=NF-2;i++) print $i;}'`
- else
- r_cv_krb5_home=$KRB5
- fi
- fi
- if test "$KRB5" = "" -a "$r_cv_krb5_home" != "" -a ! -d $r_cv_krb5_home/include/krb5; then
- r_cv_krb5_home=""
- fi
- KRB5_HOME=$r_cv_krb5_home
- if test "$KRB5_HOME" != ""; then
- echo "$ac_t"""$KRB5_HOME"" 1>&6
- elif test "$KRB5" != ""; then
- echo "$ac_t"""default"" 1>&6
- else
- echo "$ac_t"""no"" 1>&6
- fi
- if test "$KRB5" != "" -o "$KRB5_HOME" != ""; then
- if test "$KRB5_HOME" != ""; then
- CFLAGS="$CFLAGS -I$KRB5_HOME/include"
- LDFLAGS="$LDFLAGS -L$KRB5_HOME/lib"
- fi
- echo $ac_n "checking for main in -ldb""... $ac_c" 1>&6
- echo "configure:3507: checking for main in -ldb" >&5
- ac_lib_var=`echo db'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ldb $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3515 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3522: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo db | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-ldb $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$ac_cv_lib_db_main" = "no"; then
- echo $ac_n "checking for main in -lndbm""... $ac_c" 1>&6
- echo "configure:3551: checking for main in -lndbm" >&5
- ac_lib_var=`echo ndbm'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lndbm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3559 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3566: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lndbm $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
- echo "configure:3595: checking for main in -lisode" >&5
- ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lisode $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3603 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3610: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo isode | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lisode $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for main in -lcom_err""... $ac_c" 1>&6
- echo "configure:3638: checking for main in -lcom_err" >&5
- ac_lib_var=`echo com_err'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lcom_err $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3646 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3653: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lcom_err $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
- echo "configure:3681: checking for main in -lcrypto" >&5
- ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lcrypto $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3689 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3696: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lcrypto $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
- echo "configure:3724: checking for main in -lkrb5" >&5
- ac_lib_var=`echo krb5'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lkrb5 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3732 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3739: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lkrb5 $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for main in -lgssapi_krb5""... $ac_c" 1>&6
- echo "configure:3767: checking for main in -lgssapi_krb5" >&5
- ac_lib_var=`echo gssapi_krb5'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lgssapi_krb5 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3775 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3782: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo gssapi_krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lgssapi_krb5 $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- # Check whether --with-ident or --without-ident was given.
- if test "${with_ident+set}" = set; then
- withval="$with_ident"
- IDENT="$withval"
- else
- IDENT="no"
- fi
- if test "$IDENT" != "no"; then
- if test "$IDENT" != "yes"; then
- CFLAGS="$CFLAGS -I$IDENT/include"
- LDFLAGS="$LDFLAGS -L$IDENT/lib -lident"
- fi
- SAVED_CPPFLAGS="$CPPFLAGS"
- if test "$IDENT" != ""; then
- CPPFLAGS="$CPPFLAGS -I$IDENT/include"
- fi
- for ac_hdr in ident.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3835: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3840 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3845: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- CPPFLAGS="$SAVED_CPPFLAGS"
- echo $ac_n "checking for main in -lident""... $ac_c" 1>&6
- echo "configure:3874: checking for main in -lident" >&5
- ac_lib_var=`echo ident'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lident $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3882 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3889: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_LIBIDENT 1
- EOF
- SERVER_LIBS="$SERVER_LIBS -lident"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- echo
- # Extract the first word of "finger", so it can be a program name with args.
- set dummy finger; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3920: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_ORIG_FINGER'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$ORIG_FINGER" in
- /*)
- ac_cv_path_ORIG_FINGER="$ORIG_FINGER" # Let the user override the test with a path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_ORIG_FINGER="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- fi
- ORIG_FINGER="$ac_cv_path_ORIG_FINGER"
- if test -n "$ORIG_FINGER"; then
- echo "$ac_t""$ORIG_FINGER" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- # Extract the first word of "traceroute", so it can be a program name with args.
- set dummy traceroute; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3951: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_TROUTEPROG'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$TROUTEPROG" in
- /*)
- ac_cv_path_TROUTEPROG="$TROUTEPROG" # Let the user override the test with a path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_TROUTEPROG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- fi
- TROUTEPROG="$ac_cv_path_TROUTEPROG"
- if test -n "$TROUTEPROG"; then
- echo "$ac_t""$TROUTEPROG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$TROUTEPROG" != ""; then
- cat >> confdefs.h <<EOF
- #define TROUTEPROG "$TROUTEPROG"
- EOF
- fi
- # Extract the first word of "ping", so it can be a program name with args.
- set dummy ping; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3988: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_PINGPROG'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$PINGPROG" in
- /*)
- ac_cv_path_PINGPROG="$PINGPROG" # Let the user override the test with a path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_PINGPROG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- fi
- PINGPROG="$ac_cv_path_PINGPROG"
- if test -n "$PINGPROG"; then
- echo "$ac_t""$PINGPROG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$PINGPROG" != ""; then
- cat >> confdefs.h <<EOF
- #define PINGPROG "$PINGPROG"
- EOF
- fi
- echo
- SRVPID_FILE="/tmp/socks5.pid"
- SRVCONF_FILE="/etc/socks5.conf"
- SRVIDT_FILE="/tmp/socks5.ident"
- LIBCONF_FILE="/etc/libsocks5.conf"
- PINCONF_FILE="/etc/socks5.plugins"
- # Check whether --with-debug or --without-debug was given.
- if test "${with_debug+set}" = set; then
- withval="$with_debug"
- if test "$GCC" = "yes"; then CDEBUG_FLAGS="-g -Wall -Wno-comment"; else CDEBUG_FLAGS="-g"; fi
- fi
- # Check whether --with-static or --without-static was given.
- if test "${with_static+set}" = set; then
- withval="$with_static"
- if test "$withval" != "yes"; then CC="$CC $withval" ; else CC="$CC -static" ; fi
- fi
- # Check whether --with-threads or --without-threads was given.
- if test "${with_threads+set}" = set; then
- withval="$with_threads"
- threads="$withval"
- else
- threads="no"
- fi
- if test "$threads" != "no"; then
- CFLAGS="$CFLAGS -D_THREAD_SAFE"
- if test "$threads" != "yes"; then
- CFLAGS="$CFLAGS -D_THREAD_SAFE -I$threads/include"
- LDFLAGS="$LDFLAGS -L$threads/lib"
- fi;
- cat >> confdefs.h <<EOF
- #define USE_THREADS 1
- EOF
- SAVED_CPPFLAGS="$CPPFLAGS"
- if test "$threads" != ""; then
- CPPFLAGS="$CPPFLAGS -I$threads/include"
- fi
- for ac_hdr in pthread.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4070: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4075 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4080: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- CPPFLAGS="$SAVED_CPPFLAGS"
- saved_libs="$LIBS"
- echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
- echo "configure:4110: checking for main in -lpthreads" >&5
- ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lpthreads $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4118 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:4125: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="-lpthreads $LIBS";SERVER_LIBS="-lpthreads"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
- echo "configure:4146: checking for main in -lpthread" >&5
- ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4154 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:4161: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="-lpthread $LIBS";SERVER_LIBS="-lpthread"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$GCC" = "yes"; then
- if test "$OS" = "AIX"; then
- SERVER_LIBS="$SERVER_LIBS -lc_r"
- EXTRA_LDFLAGS="-nostartfiles"
- EXTRA_OBJS="/lib/crt0_r.o"
- fi;
- if test "$OS" = "OSF1"; then
- SERVER_LIBS="$SERVER_LIBS -lmach -lc_r"
- fi;
- if test "$OS" = "HP-UX"; then
- case "$OSVER" in
- *10.*)
- SERVER_LIBS="$SERVER_LIBS -lcma -lc_r"
- esac
- fi;
- fi;
- for ac_func in pthread_create pthread_self pthread_exit
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4200: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4205 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4228: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in pthread_attr_init pthread_attr_setscope
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4255: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4260 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4283: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in pthread_attr_setdetachstate
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4310: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4315 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4338: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in pthread_detach
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4365: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4370 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4393: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in pthread_sigmask pthread_kill
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4420: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4425 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4448: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- LIBS="$saved_libs"
- fi
- # Check whether --with-libconffile or --without-libconffile was given.
- if test "${with_libconffile+set}" = set; then
- withval="$with_libconffile"
- LIBCONF_FILE="$withval"; cat >> confdefs.h <<EOF
- #define LIBCONF_FILE "$withval"
- EOF
- fi
- # Check whether --with-srvconffile or --without-srvconffile was given.
- if test "${with_srvconffile+set}" = set; then
- withval="$with_srvconffile"
- SRVCONF_FILE="$withval"; cat >> confdefs.h <<EOF
- #define SRVCONF_FILE "$withval"
- EOF
- fi
- # Check whether --with-srvpidfile or --without-srvpidfile was given.
- if test "${with_srvpidfile+set}" = set; then
- withval="$with_srvpidfile"
- SRVPID_FILE="$withval" ; cat >> confdefs.h <<EOF
- #define SRVPID_FILE "$withval"
- EOF
- fi
- # Check whether --with-srvidtfile or --without-srvidtfile was given.
- if test "${with_srvidtfile+set}" = set; then
- withval="$with_srvidtfile"
- SRVIDT_FILE="$withval" ; cat >> confdefs.h <<EOF
- #define SRVIDT_FILE "$withval"
- EOF
- fi
- # Check whether --with-srvpwdfile or --without-srvpwdfile was given.
- if test "${with_srvpwdfile+set}" = set; then
- withval="$with_srvpwdfile"
- SRVPWD_FILE="$withval" ; cat >> confdefs.h <<EOF
- #define SRVPWD_FILE "$withval"
- EOF
- fi
- # Check whether --with-default-port or --without-default-port was given.
- if test "${with_default_port+set}" = set; then
- withval="$with_default_port"
- SOCKS_DEFAULT_PORT="$withval"; cat >> confdefs.h <<EOF
- #define SOCKS_DEFAULT_PORT $withval
- EOF
- fi
- # Check whether --with-default-server or --without-default-server was given.
- if test "${with_default_server+set}" = set; then
- withval="$with_default_server"
- cat >> confdefs.h <<EOF
- #define SOCKS_DEFAULT_SERVER "$withval"
- EOF
- fi
- # Check whether --with-default-version or --without-default-version was given.
- if test "${with_default_version+set}" = set; then
- withval="$with_default_version"
- cat >> confdefs.h <<EOF
- #define SOCKS_DEFAULT_VERSION $withval
- EOF
- fi
- # Check whether --with-syslog-facility or --without-syslog-facility was given.
- if test "${with_syslog_facility+set}" = set; then
- withval="$with_syslog_facility"
- syslog_fac="$withval"
- fi
- if test "$syslog_fac" != "no"; then
- if test "$syslog_fac" = "yes" -o "$syslog_fac" = ""; then
- syslog_fac=LOG_DAEMON
- fi
- cat >> confdefs.h <<EOF
- #define SYSLOG_FAC $syslog_fac
- EOF
- fi
- # Check whether --with-monitor or --without-monitor was given.
- if test "${with_monitor+set}" = set; then
- withval="$with_monitor"
- MON_DIR="$withval"; MON_LIBS="-L$(MON_DIR)/lib -lmon";
- echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
- echo "configure:4566: checking for main in -lipc" >&5
- ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lipc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4574 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:4581: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lipc $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
- echo "configure:4609: checking for main in -lcompat" >&5
- ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lcompat $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4617 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:4624: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lcompat $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- MON_CFLAGS="-I$(MON_DIR)/include";
- cat >> confdefs.h <<EOF
- #define MONITOR 1
- EOF
- fi
- # Check whether --with-passwd or --without-passwd was given.
- if test "${with_passwd+set}" = set; then
- withval="$with_passwd"
- cat >> confdefs.h <<EOF
- #define USE_PASSWD 1
- EOF
- fi
- # Check whether --with-shadow-passwd or --without-shadow-passwd was given.
- if test "${with_shadow_passwd+set}" = set; then
- withval="$with_shadow_passwd"
- cat >> confdefs.h <<EOF
- #define USE_SHADOW_PASSWD 1
- EOF
- fi
- # Check whether --with-plugins or --without-plugins was given.
- if test "${with_plugins+set}" = set; then
- withval="$with_plugins"
- cat >> confdefs.h <<EOF
- #define USE_PLUGINS 1
- EOF
- fi
- # Check whether --with-pinconffile or --without-pinconffile was given.
- if test "${with_pinconffile+set}" = set; then
- withval="$with_pinconffile"
- PINCONFF_ILE="$withval" ; cat >> confdefs.h <<EOF
- #define PINCONF_FILE "$withval"
- EOF
- fi
- SHLIB_LD="ld"
- SHLIB_LIB=""
- SHLIB_LFLAGS="-shared"
- SHLIB_CFLAGS="-r"
- SHLIB_OFLAGS="-o "
- if test "$exec_prefix" != "NONE"; then
- SHLIB_DIR=$exec_prefix/lib
- elif test "$prefix" != "NONE"; then
- SHLIB_DIR=$prefix/lib
- else
- SHLIB_DIR=/usr/local/lib
- fi
- PRELOADS="echo Shared libraries not supported; exit; :"
- PRELOADA=""
- echo $ac_n "checking shared library support""... $ac_c" 1>&6
- echo "configure:4711: checking shared library support" >&5
- if test "$ac_cv_func_dlopen" = "yes" -o "$ac_cv_func_shl_load" = "yes"; then
- if test "$with_plugins" = "yes"; then
- PLUGIN_LIBS="libs5auth_u.so libs5auth_k.so libs5auth_c.so libs5filter_p.so"
- else
- SHARED_LIBSOCKS5_CFLAGS="-DFOR_SHARED_LIBRARY -DIN_LIBRARY"
- fi
- if test "$ac_cv_func_dlopen" = "yes"; then SHLIB_LIB="libsocks5_sh.so"; fi
- case `uname -rs` in
- UNIX_SV*|UNIX_System_V*)
- SHLIB_LFLAGS="-G"
- ;;
- FreeBSD*|NetBSD*)
- SHLIB_LFLAGS="-Bshareable"
- SHLIB_CFLAGS="-fpic"
- PRELOADS="LD_PRELOAD"
- ;;
- SunOS*4.*)
- SHLIB_CFLAGS="-P"
- SHLIB_LFLAGS="-dp -assert pure-text -assert nodefinitions"
- PRELOADS="LD_PRELOAD"
- ;;
- SunOS*5.*)
- SHLIB_LD="cc"
- SHLIB_CFLAGS="-KPIC"
- SHLIB_LFLAGS="-G"
- SHLIB_OFLAGS="-W0,-y-o -W0,-y"
- PRELOADS="LD_PRELOAD"
- ;;
- IRIX*5.*|IRIX*6.*)
- SHLIB_CFLAGS="-KPIC"
- PRELOADS="_RLD_LIST"
- PRELOADA=":DEFAULT"
- ;;
- BSD/OS*)
- SHLIB_LIB=
- ;;
- OSF1*)
- PRELOADS="_RLD_LIST"
- PRELOADA=":DEFAULT"
- ;;
- AIX*)
- SHLIB_LIB=""
- ;;
- *)
- PRELOADS="LD_PRELOAD"
- ;;
- esac
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fpic"
- case `uname -rs` in
- SunOS*4.*)
- DLLIBS="-lc"
- ;;
- SunOS*5.*)
- SHLIB_LD="gcc"
- SHLIB_OFLAGS="-o "
- SHLIB_LFLAGS="-shared"
- ;;
- UNIX_SV*|UNIX_System_V*)
- SHLIB_CFLAGS=
- ;;
- FreeBSD*|NetBSD*)
- ;;
- *)
- SHLIB_LD="gcc"
- SHLIB_LFLAGS="-shared"
- esac
- fi
- if test `uname -s` = "FreeBSD"; then
- SHLIB_CFLAGS="-fpic -r"
- fi
- echo "$ac_t"""lflags: $SHLIB_LFLAGS cflags: $SHLIB_CFLAGS"" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$PLUGIN_LIBS" = "" ; then
- AUTHS="upwd.o gss.o"
- FILTERS="packet.o"
- SERVER_PLUGIN_OBJS="$AUTHS $FILTERS"
- CLIENT_PLUGIN_OBJS="$AUTHS"
- fi
- SHLIB_LIBS="$SHLIB_LIBS $LIBS"
- if test "`uname`" = "Linux"; then
- SHLIB_LIBS="$SHLIB_LIBS -lc"
- fi
- if test "$with_plugins" = "yes" ; then
- case `uname -rs` in
- AIX*)
- SHLIB_LIBS="$SHLIB_LIBS -L../lib -ls5util"
- ;;
- HP-UX*)
- EXPORT_LDFLAGS="-Wl,-E"
- ;;
- Linux*)
- EXPORT_LDFLAGS="-export-dynamic"
- ;;
- OSF1*)
- EXPORT_LDFLAGS="-Wl,-non_hidden"
- SHLIB_LFLAGS="$SHLIB_LFLAGS -Wl,-warning_unresolved"
- esac
- fi
- BINRM="/bin/rm -f"
- LIBS="$LIBS $STATIC_LIBS"
- 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) 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"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*)=(.*)/1=${1=2}/p'
- ;;
- esac >> confcache
- if cmp -s $cache_file confcache; then
- :
- else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
- fi
- rm -f confcache
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- DEFS=-DHAVE_CONFIG_H
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.12"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "$ac_cs_usage"; exit 0 ;;
- *) echo "$ac_cs_usage"; exit 1 ;;
- esac
- done
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
- trap 'rm -fr `echo "Makefile
- lib/Makefile
- test/Makefile
- shlib/Makefile
- shlib/runsocks
- server/Makefile
- server/stopsocks
- include/Makefile
- clients/Makefile
- clients/pt/Makefile
- clients/ftp/Makefile
- clients/finger/Makefile
- clients/archie/Makefile
- clients/telnet/Makefile
- clients/telnet/libtelnet/Makefile
- stamp-h include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
- $ac_vpsub
- $extrasub
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@CC@%$CC%g
- s%@CPP@%$CPP%g
- s%@RANLIB@%$RANLIB%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@MAKED@%$MAKED%g
- s%@AUTOCONF@%$AUTOCONF%g
- s%@AUTOHDR@%$AUTOHDR%g
- s%@ORIG_FINGER@%$ORIG_FINGER%g
- s%@TROUTEPROG@%$TROUTEPROG%g
- s%@PINGPROG@%$PINGPROG%g
- s%@DLLIBS@%$DLLIBS%g
- s%@SHLIB_LD@%$SHLIB_LD%g
- s%@SHLIB_DIR@%$SHLIB_DIR%g
- s%@SHLIB_LIB@%$SHLIB_LIB%g
- s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
- s%@SHLIB_OFLAGS@%$SHLIB_OFLAGS%g
- s%@SERVER_PLUGIN_OBJS@%$SERVER_PLUGIN_OBJS%g
- s%@CLIENT_PLUGIN_OBJS@%$CLIENT_PLUGIN_OBJS%g
- s%@SHARED_LIBSOCKS5_CFLAGS@%$SHARED_LIBSOCKS5_CFLAGS%g
- s%@PLUGIN_LIBS@%$PLUGIN_LIBS%g
- s%@PRELOADS@%$PRELOADS%g
- s%@PRELOADA@%$PRELOADA%g
- s%@SHLIB_LFLAGS@%$SHLIB_LFLAGS%g
- s%@SHLIB_LIBS@%$SHLIB_LIBS%g
- s%@MON_DIR@%$MON_DIR%g
- s%@MON_LIBS@%$MON_LIBS%g
- s%@MON_CFLAGS@%$MON_CFLAGS%g
- s%@SOCKS_DEFAULT_PORT@%$SOCKS_DEFAULT_PORT%g
- s%@SRVPID_FILE@%$SRVPID_FILE%g
- s%@SRVCONF_FILE@%$SRVCONF_FILE%g
- s%@LIBCONF_FILE@%$LIBCONF_FILE%g
- s%@CDEBUG_FLAGS@%$CDEBUG_FLAGS%g
- s%@BINRM@%$BINRM%g
- s%@SERVER_DEFS@%$SERVER_DEFS%g
- s%@SERVER_LIBS@%$SERVER_LIBS%g
- s%@EXTRA_OBJS@%$EXTRA_OBJS%g
- s%@EXTRA_LDFLAGS@%$EXTRA_LDFLAGS%g
- s%@EXPORT_LDFLAGS@%$EXPORT_LDFLAGS%g
- s%@TELNET_DEFS@%$TELNET_DEFS%g
- s%@TELNET_LIBS@%$TELNET_LIBS%g
- s%@FTPDEFS@%$FTPDEFS%g
- CEOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_FILES=${CONFIG_FILES-"Makefile
- lib/Makefile
- test/Makefile
- shlib/Makefile
- shlib/runsocks
- server/Makefile
- server/stopsocks
- include/Makefile
- clients/Makefile
- clients/pt/Makefile
- clients/ftp/Makefile
- clients/finger/Makefile
- clients/archie/Makefile
- clients/telnet/Makefile
- clients/telnet/libtelnet/Makefile
- stamp-h"}
- EOF
- cat >> $CONFIG_STATUS <<EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^([ ]*)#([ ]*define[ ][ ]*)'
- ac_dB='([ ][ ]*)[^ ]*%1#2'
- ac_dC='3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_uB='([ ])%1#2define3'
- ac_uC=' '
- ac_uD='4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_eB='$%1#2define3'
- ac_eC=' '
- ac_eD='%g'
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="include/config.h"
- EOF
- cat >> $CONFIG_STATUS <<EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- echo creating $ac_file
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
- EOF
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<EOF
- s/[\&%]/\&/g
- s%[\$`]%\&%g
- s%#define ([A-Za-z_][A-Za-z0-9_]*) *(.*)%${ac_dA}1${ac_dB}1${ac_dC}2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
- cat >> $CONFIG_STATUS <<EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1