OSSP CVS Repository

ossp - Difference in ossp-pkg/js/configure.ac versions 1.18 and 1.19
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/js/configure.ac 1.18 -> 1.19

--- configure.ac 2006/08/03 12:41:27     1.18
+++ configure.ac 2006/08/03 13:19:20     1.19
@@ -138,6 +138,19 @@
     CPPFLAGS="$CPPFLAGS -DJS_HAS_FILE_OBJECT"
 fi
 
+dnl #   configure option --with-dso
+AC_ARG_WITH([dso],
+        AS_HELP_STRING([--with-dso], [build without DSO object (allows run-time process extending)]),
+        [ac_cv_with_dso=$withval], [ac_cv_with_dso=no])
+AC_CACHE_CHECK([whether to build with the DSO object], [ac_cv_with_dso], [ac_cv_with_dso=no])
+if test ".$ac_cv_with_dso" = ".yes"; then
+    AC_CHECK_LIB(dl, dlopen)
+    AC_CHECK_HEADER(dlfcn.h, , AC_ERROR([dlopen(3) header <dlfcn.h> required]))
+    AC_CHECK_FUNCS(dlopen dlclose dlerror, , AC_ERROR([dlopen(3) API functions dlopen/dlclose/dlerror required]))
+    CPPFLAGS="$CPPFLAGS -DJS_HAS_DSO_OBJECT"
+    CLI_LDFLAGS="$CLI_LDFLAGS -export-dynamic"
+fi
+
 AC_SUBST(CLI_CFLAGS)
 AC_SUBST(CLI_CPPFLAGS)
 AC_SUBST(CLI_LDFLAGS)

CVSTrac 2.0.1