]>
Commit | Line | Data |
---|---|---|
5ddf8417 JB |
1 | --- apr/build/apr_threads.m4.orig 2003-10-05 21:35:45.000000000 +0200 |
2 | +++ apr/build/apr_threads.m4 2003-10-05 21:50:16.883264632 +0200 | |
3 | @@ -130,6 +130,8 @@ | |
4 | fi | |
5 | ]) | |
6 | ||
7 | +dnl -pthread in CFLAGS is not sufficient if linking in separate process | |
8 | +pthreads_working= | |
9 | AC_CACHE_CHECK(for pthreads_lib, ac_cv_pthreads_lib,[ | |
10 | ac_cv_pthreads_lib="" | |
11 | if test "$pthreads_working" != "yes"; then | |
12 | --- apr/configure.in.orig 2003-09-02 12:19:46.000000000 +0200 | |
13 | +++ apr/configure.in 2003-10-05 22:35:55.808884648 +0200 | |
14 | @@ -189,7 +189,7 @@ | |
15 | # On AIX, libraries need to be specified on the link of lib_target | |
16 | lib_target_libs="" | |
17 | case $host in | |
18 | - *aix*) | |
19 | + *aix*|*linux*) | |
20 | lib_target_libs="\$(EXTRA_LIBS)"; | |
21 | ;; | |
22 | *-solaris2*) | |
23 | @@ -463,11 +463,9 @@ | |
24 | dnl It should check for LIBS being empty and set LIBS equal to the new value | |
25 | dnl without the extra " " in that case, but they didn't do that. So, we | |
26 | dnl end up LIBS="-lm -lcrypt -lnsl -ldl" which is an annoyance. | |
27 | -AC_CHECK_LIB(resolv, res_init) | |
28 | -AC_CHECK_LIB(nsl, gethostbyname) | |
29 | +dnl AC_CHECK_LIB(resolv, res_init) -- not used by apr | |
30 | AC_SEARCH_LIBS(gethostname, nsl) | |
31 | -AC_CHECK_LIB(socket, socket) | |
32 | -AC_SEARCH_LIBS(crypt, crypt ufc) | |
33 | +AC_SEARCH_LIBS(socket, socket) | |
34 | AC_CHECK_LIB(truerand, main) | |
35 | AC_SEARCH_LIBS(modf, m) | |
36 | AC_SEARCH_LIBS(sqrt, m) | |
37 | @@ -604,7 +602,7 @@ | |
38 | ||
39 | # The real-time POSIX extensions (e.g. shm_*, sem_*) may only | |
40 | # be available if linking against librt. | |
41 | -AC_SEARCH_LIBS(shm_open, rt) | |
42 | +dnl AC_SEARCH_LIBS(shm_open, rt) -- not used by apr | |
43 | ||
44 | case $host in | |
45 | *-sysv*) | |
46 | @@ -863,10 +861,13 @@ | |
47 | if test "$strerror_r" = "1"; then | |
48 | APR_CHECK_STRERROR_R_RC | |
49 | fi | |
50 | +save_LIBS="$LIBS" | |
51 | +AC_SEARCH_LIBS(crypt, crypt ufc) | |
52 | AC_CHECK_FUNCS(crypt_r, [ crypt_r="1" ], [ crypt_r="0" ]) | |
53 | if test "$crypt_r" = "1"; then | |
54 | APR_CHECK_CRYPT_R_STYLE | |
55 | fi | |
56 | +LIBS="$save_LIBS" | |
57 | AC_CHECK_FUNCS(mmap, [ mmap="1" ], [ mmap="0" ]) | |
58 | if test "$native_mmap_emul" = "1"; then | |
59 | mmap="1" |