--- configure.ac.orig 2005-02-15 18:50:05.978366304 +0930 +++ configure.ac 2005-02-15 19:22:42.360580312 +0930 @@ -1255,12 +1255,24 @@ #(programs which don't use it probably won't enjoy being linked with it) AM_CONDITIONAL(WANT_LIBWRAP, test "x${want_libwrap}" != "x") -#look for PAM header and lib -AC_CHECK_HEADERS(security/pam_appl.h, [have_pam_header=t]) -AC_SEARCH_LIBS(pam_start, pam, [have_libpam=t]) -if test x"${have_pam_header}" != x -a x"${have_libpam}" != x; then - AC_DEFINE(HAVE_PAM, 1, [PAM support]) +AC_ARG_WITH(pam, + [ --without-pam disable pam support(default=detect)], + [PAM=$withval]) + +if test "${PAM}" != no; then + #look for PAM header and lib + AC_CHECK_HEADERS(security/pam_appl.h, [have_pam_header=t]) + AC_SEARCH_LIBS(pam_start, pam, [have_libpam=t]) + + if test x"${have_pam_header}" != x -a x"${have_libpam}" != x; then + AC_DEFINE(HAVE_PAM, 1, [PAM support]) + PAM=OK + else + PAM="not found" + fi +else + PAM="disabled" fi @@ -1484,6 +1496,7 @@ else echo "Routeinfo: OK" fi +echo "PAM support: ${PAM}" echo "" echo "This software should perform optimally when all the lines above report 'OK'." echo "This is not possible on all platforms." --- configure.orig 2005-02-15 19:34:04.005808456 +0930 +++ configure 2005-02-15 19:31:44.538156792 +0930 @@ -1059,6 +1059,7 @@ --with-sockd-conf=FILE change location of socks server configuration file --with-pidfile=FILE change location of server pidfile --with-libc=NAME manually set name of c library if necessary + --without-pam disable pam support(default=detect) Some influential environment variables: CC C compiler command @@ -3945,7 +3946,7 @@ ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 3948 "configure"' > conftest.$ac_ext + echo '#line 3949 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -5289,7 +5290,7 @@ # Provide some information about the compiler. -echo "$as_me:5292:" \ +echo "$as_me:5293:" \ "checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 @@ -6346,11 +6347,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:6349: $lt_compile\"" >&5) + (eval echo "\"\$as_me:6350: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:6353: \$? = $ac_status" >&5 + echo "$as_me:6354: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -6589,11 +6590,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:6592: $lt_compile\"" >&5) + (eval echo "\"\$as_me:6593: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:6596: \$? = $ac_status" >&5 + echo "$as_me:6597: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -6649,11 +6650,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:6652: $lt_compile\"" >&5) + (eval echo "\"\$as_me:6653: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:6656: \$? = $ac_status" >&5 + echo "$as_me:6657: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -8834,7 +8835,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:11129: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:11132: \$? = $ac_status" >&5 + echo "$as_me:11133: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -11185,11 +11186,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:11188: $lt_compile\"" >&5) + (eval echo "\"\$as_me:11189: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:11192: \$? = $ac_status" >&5 + echo "$as_me:11193: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -12546,7 +12547,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:13485: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:13488: \$? = $ac_status" >&5 + echo "$as_me:13489: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -13541,11 +13542,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13544: $lt_compile\"" >&5) + (eval echo "\"\$as_me:13545: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:13548: \$? = $ac_status" >&5 + echo "$as_me:13549: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -15576,11 +15577,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15579: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15580: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:15583: \$? = $ac_status" >&5 + echo "$as_me:15584: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -15819,11 +15820,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15822: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15823: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:15826: \$? = $ac_status" >&5 + echo "$as_me:15827: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -15879,11 +15880,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15882: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15883: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:15886: \$? = $ac_status" >&5 + echo "$as_me:15887: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -18064,7 +18065,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5 + echo "$as_me:$LINENO: checking for library containing pam_start" >&5 echo $ECHO_N "checking for library containing pam_start... $ECHO_C" >&6 if test "${ac_cv_search_pam_start+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -30249,12 +30259,18 @@ fi -if test x"${have_pam_header}" != x -a x"${have_libpam}" != x; then + if test x"${have_pam_header}" != x -a x"${have_libpam}" != x; then cat >>confdefs.h <<\_ACEOF #define HAVE_PAM 1 _ACEOF + PAM=OK + else + PAM="not found" + fi +else + PAM="disabled" fi @@ -35024,6 +35040,7 @@ else echo "Routeinfo: OK" fi +echo "PAM support: ${PAM}" echo "" echo "This software should perform optimally when all the lines above report 'OK'." echo "This is not possible on all platforms."