pcs 98/02/04 02:22:18
Modified: src/modules/standard mod_so.c Log: Now tries to find the appropriate library for dynamic loading during Configure. Looks for -ldl if dlopen() isn't already available. Revision Changes Path 1.2 +22 -0 apache-1.3/src/modules/standard/mod_so.c Index: mod_so.c =================================================================== RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_so.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- mod_so.c 1998/02/03 10:41:35 1.1 +++ mod_so.c 1998/02/04 10:22:18 1.2 @@ -62,6 +62,28 @@ */ +/* + * Module definition information + * + * MODULE-DEFINITION-START + * Name: so_module + * ConfigStart + if ./helpers/TestCompile func dlopen; then + : + else + DL_LIB="" + if ./helpers/TestCompile lib dl; then + DL_LIB="-ldl" + fi + LIBS="$LIBS $DL_LIB" + if [ "X$DL_LIB" != "X" ]; then + echo " + using $DL_LIB for dynamic loading (mod_so)" + fi + fi + * ConfigEnd + * MODULE-DEFINITION-END + */ + #include "httpd.h" #include "http_config.h" #include "http_log.h"