55 |
cat libltdl/configure.tmp >> libltdl/configure.in |
cat libltdl/configure.tmp >> libltdl/configure.in |
56 |
rm libltdl/configure.tmp |
rm libltdl/configure.tmp |
57 |
fi |
fi |
58 |
|
|
59 |
|
# Maybe patch ltdl.c. This is only needed for 1.4.2 and earlier. |
60 |
|
if patch libltdl/ltdl.c <<EOP |
61 |
|
--- ltdl.c~ Fri Apr 12 18:52:48 2002 |
62 |
|
+++ ltdl.c Tue Jul 9 14:12:47 2002 |
63 |
|
@@ -2246,15 +2246,15 @@ |
64 |
|
static int |
65 |
|
find_handle_callback (filename, data, ignored) |
66 |
|
char *filename; |
67 |
|
lt_ptr data; |
68 |
|
lt_ptr ignored; |
69 |
|
{ |
70 |
|
lt_dlhandle *handle = (lt_dlhandle *) data; |
71 |
|
- int found = access (filename, R_OK); |
72 |
|
+ int found = !access (filename, F_OK); |
73 |
|
|
74 |
|
/* Bail out if file cannot be read... */ |
75 |
|
if (!found) |
76 |
|
return 0; |
77 |
|
|
78 |
|
/* Try to dlopen the file, but do not continue searching in any |
79 |
|
case. */ |
80 |
|
EOP |
81 |
|
then true |
82 |
|
else |
83 |
|
echo "WARNING: could not patch libltdl, but this is probably OK." |
84 |
|
fi |
85 |
|
|
86 |
###################################################################### |
###################################################################### |
87 |
|
|
88 |
autoheader |
autoheader |