On Darwin 1.3.7 I had an error building locks/unix/crossproc.c
>From what it seems in the configure.in AutoConf source, the locking
mechanism is determined in lines around 950-980 and defines some
APR_USE_*_SERIALIZE, those are copied over to apr.h.in in lines 60-70, but
the onther following four (APR_HAS_*_SERIALIZE) are initialized randomly.
Crossproc.c uses the APR_HAS ones while configure sets the APR_USE group. I
replaced the APR_HAS with APR_USE and the whole thing went thru...
Am I missing something? :)
Pier
--- crossproc.c.old Sat Jun 30 02:33:16 2001
+++ crossproc.c Sat Jun 30 02:51:23 2001
@@ -59,7 +59,7 @@
-#if APR_HAS_SYSVSEM_SERIALIZE
+#if APR_USE_SYSVSEM_SERIALIZE
static struct sembuf op_on;
static struct sembuf op_off;
@@ -162,7 +162,7 @@
#endif /* SysV sem implementation */
-#if APR_HAS_PROC_PTHREAD_SERIALIZE
+#if APR_USE_PROC_PTHREAD_SERIALIZE
static void proc_pthread_setup(void)
{
@@ -296,7 +296,7 @@
#endif
-#if APR_HAS_FCNTL_SERIALIZE
+#if APR_USE_FCNTL_SERIALIZE
static struct flock lock_it;
static struct flock unlock_it;
@@ -405,7 +405,7 @@
#endif /* fcntl implementation */
-#if APR_HAS_FLOCK_SERIALIZE
+#if APR_USE_FLOCK_SERIALIZE
static apr_status_t flock_release(apr_lock_t *);
@@ -515,16 +515,16 @@
void apr_unix_setup_lock(void)
{
-#if APR_HAS_SYSVSEM_SERIALIZE
+#if APR_USE_SYSVSEM_SERIALIZE
sysv_setup();
#endif
-#if APR_HAS_PROC_PTHREAD_SERIALIZE
+#if APR_USE_PROC_PTHREAD_SERIALIZE
proc_pthread_setup();
#endif
-#if APR_HAS_FCNTL_SERIALIZE
+#if APR_USE_FCNTL_SERIALIZE
fcntl_setup();
#endif
-#if APR_HAS_FLOCK_SERIALIZE
+#if APR_USE_FLOCK_SERIALIZE
flock_setup();
#endif
}