Make PAM work by checking for dlopen() in libdl, not dl_open(),
authoraland <aland>
Sat, 22 Sep 2001 15:11:17 +0000 (15:11 +0000)
committeraland <aland>
Sat, 22 Sep 2001 15:11:17 +0000 (15:11 +0000)
which doesn't exist.

src/modules/rlm_pam/configure
src/modules/rlm_pam/configure.in

index d38060b..c3fbab7 100755 (executable)
@@ -521,7 +521,7 @@ else
 fi
 
 
-# From configure.in Revision: 1.1 
+# From configure.in Revision: 1.2 
 
 
 if test x$with_rlm_pam != xno; then
@@ -829,9 +829,9 @@ fi
 echo "$ac_t""$CPP" 1>&6
 
 
-       echo $ac_n "checking for dl_open in -ldl""... $ac_c" 1>&6
-echo "configure:834: checking for dl_open in -ldl" >&5
-ac_lib_var=`echo dl'_'dl_open | sed 'y%./+-%__p_%'`
+       echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
+echo "configure:834: checking for dlopen in -ldl" >&5
+ac_lib_var=`echo dl'_'dlopen | 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
@@ -843,10 +843,10 @@ cat > conftest.$ac_ext <<EOF
 /* 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 dl_open();
+char dlopen();
 
 int main() {
-dl_open()
+dlopen()
 ; return 0; }
 EOF
 if { (eval echo configure:853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
index 33320f5..266fa33 100644 (file)
@@ -7,7 +7,7 @@ if test x$with_[]modname != xno; then
        AC_PROG_CC
        AC_PROG_CPP
 
-       AC_CHECK_LIB(dl, dl_open,
+       AC_CHECK_LIB(dl, dlopen,
                [ pam_ldflags="-ldl" ]
        )