Line 0
Link Here
|
|
|
1 |
--- configure.orig 2008-05-15 10:00:33.000000000 +0200 |
2 |
+++ configure 2008-05-15 10:00:39.000000000 +0200 |
3 |
@@ -899,10 +899,9 @@ |
4 |
QALCULATE_CURRENT |
5 |
QALCULATE_REVISION |
6 |
QALCULATE_AGE |
7 |
-CLN_CONFIG |
8 |
+PKG_CONFIG |
9 |
CLN_CPPFLAGS |
10 |
CLN_LIBS |
11 |
-PKG_CONFIG |
12 |
GLIB_CFLAGS |
13 |
GLIB_LIBS |
14 |
READLINE_LIBS |
15 |
@@ -1535,7 +1534,6 @@ |
16 |
--enable-fast-install[=PKGS] |
17 |
optimize for fast installation [default=yes] |
18 |
--disable-libtool-lock avoid locking (might break parallel builds) |
19 |
- --disable-clntest Do not try to compile and run a test CLN program |
20 |
|
21 |
Optional Packages: |
22 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
23 |
@@ -1544,8 +1542,6 @@ |
24 |
--with-pic try to use only PIC/non-PIC objects [default=use |
25 |
both] |
26 |
--with-tags[=TAGS] include additional configurations [automatic] |
27 |
- --with-cln-prefix=PFX Prefix where CLN is installed (optional) |
28 |
- --with-cln-exec-prefix=PFX Exec prefix where CLN is installed (optional) |
29 |
--with-readline turn on readline default=yes, default tries -lncurses, -lcurses, -ltermcap |
30 |
|
31 |
Some influential environment variables: |
32 |
@@ -5992,12 +5988,12 @@ |
33 |
if test $ac_cv_func_bind_textdomain_codeset = yes; then |
34 |
DATADIRNAME=share |
35 |
else |
36 |
- DATADIRNAME=share |
37 |
+ DATADIRNAME=lib |
38 |
fi |
39 |
|
40 |
;; |
41 |
*) |
42 |
- DATADIRNAME=share |
43 |
+ DATADIRNAME=lib |
44 |
;; |
45 |
esac |
46 |
fi |
47 |
@@ -6648,7 +6644,7 @@ |
48 |
;; |
49 |
*-*-irix6*) |
50 |
# Find out which ABI we are using. |
51 |
- echo '#line 6651 "configure"' > conftest.$ac_ext |
52 |
+ echo '#line 6647 "configure"' > conftest.$ac_ext |
53 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
54 |
(eval $ac_compile) 2>&5 |
55 |
ac_status=$? |
56 |
@@ -8566,11 +8562,11 @@ |
57 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
58 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
59 |
-e 's:$: $lt_compiler_flag:'` |
60 |
- (eval echo "\"\$as_me:8569: $lt_compile\"" >&5) |
61 |
+ (eval echo "\"\$as_me:8565: $lt_compile\"" >&5) |
62 |
(eval "$lt_compile" 2>conftest.err) |
63 |
ac_status=$? |
64 |
cat conftest.err >&5 |
65 |
- echo "$as_me:8573: \$? = $ac_status" >&5 |
66 |
+ echo "$as_me:8569: \$? = $ac_status" >&5 |
67 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
68 |
# The compiler can only warn and ignore the option if not recognized |
69 |
# So say no if there are warnings other than the usual output. |
70 |
@@ -8856,11 +8852,11 @@ |
71 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
72 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
73 |
-e 's:$: $lt_compiler_flag:'` |
74 |
- (eval echo "\"\$as_me:8859: $lt_compile\"" >&5) |
75 |
+ (eval echo "\"\$as_me:8855: $lt_compile\"" >&5) |
76 |
(eval "$lt_compile" 2>conftest.err) |
77 |
ac_status=$? |
78 |
cat conftest.err >&5 |
79 |
- echo "$as_me:8863: \$? = $ac_status" >&5 |
80 |
+ echo "$as_me:8859: \$? = $ac_status" >&5 |
81 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
82 |
# The compiler can only warn and ignore the option if not recognized |
83 |
# So say no if there are warnings other than the usual output. |
84 |
@@ -8960,11 +8956,11 @@ |
85 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
86 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
87 |
-e 's:$: $lt_compiler_flag:'` |
88 |
- (eval echo "\"\$as_me:8963: $lt_compile\"" >&5) |
89 |
+ (eval echo "\"\$as_me:8959: $lt_compile\"" >&5) |
90 |
(eval "$lt_compile" 2>out/conftest.err) |
91 |
ac_status=$? |
92 |
cat out/conftest.err >&5 |
93 |
- echo "$as_me:8967: \$? = $ac_status" >&5 |
94 |
+ echo "$as_me:8963: \$? = $ac_status" >&5 |
95 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
96 |
then |
97 |
# The compiler can only warn and ignore the option if not recognized |
98 |
@@ -11318,7 +11314,7 @@ |
99 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
100 |
lt_status=$lt_dlunknown |
101 |
cat > conftest.$ac_ext <<EOF |
102 |
-#line 11321 "configure" |
103 |
+#line 11317 "configure" |
104 |
#include "confdefs.h" |
105 |
|
106 |
#if HAVE_DLFCN_H |
107 |
@@ -11418,7 +11414,7 @@ |
108 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
109 |
lt_status=$lt_dlunknown |
110 |
cat > conftest.$ac_ext <<EOF |
111 |
-#line 11421 "configure" |
112 |
+#line 11417 "configure" |
113 |
#include "confdefs.h" |
114 |
|
115 |
#if HAVE_DLFCN_H |
116 |
@@ -13833,11 +13829,11 @@ |
117 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
118 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
119 |
-e 's:$: $lt_compiler_flag:'` |
120 |
- (eval echo "\"\$as_me:13836: $lt_compile\"" >&5) |
121 |
+ (eval echo "\"\$as_me:13832: $lt_compile\"" >&5) |
122 |
(eval "$lt_compile" 2>conftest.err) |
123 |
ac_status=$? |
124 |
cat conftest.err >&5 |
125 |
- echo "$as_me:13840: \$? = $ac_status" >&5 |
126 |
+ echo "$as_me:13836: \$? = $ac_status" >&5 |
127 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
128 |
# The compiler can only warn and ignore the option if not recognized |
129 |
# So say no if there are warnings other than the usual output. |
130 |
@@ -13937,11 +13933,11 @@ |
131 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
132 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
133 |
-e 's:$: $lt_compiler_flag:'` |
134 |
- (eval echo "\"\$as_me:13940: $lt_compile\"" >&5) |
135 |
+ (eval echo "\"\$as_me:13936: $lt_compile\"" >&5) |
136 |
(eval "$lt_compile" 2>out/conftest.err) |
137 |
ac_status=$? |
138 |
cat out/conftest.err >&5 |
139 |
- echo "$as_me:13944: \$? = $ac_status" >&5 |
140 |
+ echo "$as_me:13940: \$? = $ac_status" >&5 |
141 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
142 |
then |
143 |
# The compiler can only warn and ignore the option if not recognized |
144 |
@@ -15511,11 +15507,11 @@ |
145 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
146 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
147 |
-e 's:$: $lt_compiler_flag:'` |
148 |
- (eval echo "\"\$as_me:15514: $lt_compile\"" >&5) |
149 |
+ (eval echo "\"\$as_me:15510: $lt_compile\"" >&5) |
150 |
(eval "$lt_compile" 2>conftest.err) |
151 |
ac_status=$? |
152 |
cat conftest.err >&5 |
153 |
- echo "$as_me:15518: \$? = $ac_status" >&5 |
154 |
+ echo "$as_me:15514: \$? = $ac_status" >&5 |
155 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
156 |
# The compiler can only warn and ignore the option if not recognized |
157 |
# So say no if there are warnings other than the usual output. |
158 |
@@ -15615,11 +15611,11 @@ |
159 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
160 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
161 |
-e 's:$: $lt_compiler_flag:'` |
162 |
- (eval echo "\"\$as_me:15618: $lt_compile\"" >&5) |
163 |
+ (eval echo "\"\$as_me:15614: $lt_compile\"" >&5) |
164 |
(eval "$lt_compile" 2>out/conftest.err) |
165 |
ac_status=$? |
166 |
cat out/conftest.err >&5 |
167 |
- echo "$as_me:15622: \$? = $ac_status" >&5 |
168 |
+ echo "$as_me:15618: \$? = $ac_status" >&5 |
169 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
170 |
then |
171 |
# The compiler can only warn and ignore the option if not recognized |
172 |
@@ -17810,11 +17806,11 @@ |
173 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
174 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
175 |
-e 's:$: $lt_compiler_flag:'` |
176 |
- (eval echo "\"\$as_me:17813: $lt_compile\"" >&5) |
177 |
+ (eval echo "\"\$as_me:17809: $lt_compile\"" >&5) |
178 |
(eval "$lt_compile" 2>conftest.err) |
179 |
ac_status=$? |
180 |
cat conftest.err >&5 |
181 |
- echo "$as_me:17817: \$? = $ac_status" >&5 |
182 |
+ echo "$as_me:17813: \$? = $ac_status" >&5 |
183 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
184 |
# The compiler can only warn and ignore the option if not recognized |
185 |
# So say no if there are warnings other than the usual output. |
186 |
@@ -18100,11 +18096,11 @@ |
187 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
188 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
189 |
-e 's:$: $lt_compiler_flag:'` |
190 |
- (eval echo "\"\$as_me:18103: $lt_compile\"" >&5) |
191 |
+ (eval echo "\"\$as_me:18099: $lt_compile\"" >&5) |
192 |
(eval "$lt_compile" 2>conftest.err) |
193 |
ac_status=$? |
194 |
cat conftest.err >&5 |
195 |
- echo "$as_me:18107: \$? = $ac_status" >&5 |
196 |
+ echo "$as_me:18103: \$? = $ac_status" >&5 |
197 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
198 |
# The compiler can only warn and ignore the option if not recognized |
199 |
# So say no if there are warnings other than the usual output. |
200 |
@@ -18204,11 +18200,11 @@ |
201 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
202 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
203 |
-e 's:$: $lt_compiler_flag:'` |
204 |
- (eval echo "\"\$as_me:18207: $lt_compile\"" >&5) |
205 |
+ (eval echo "\"\$as_me:18203: $lt_compile\"" >&5) |
206 |
(eval "$lt_compile" 2>out/conftest.err) |
207 |
ac_status=$? |
208 |
cat out/conftest.err >&5 |
209 |
- echo "$as_me:18211: \$? = $ac_status" >&5 |
210 |
+ echo "$as_me:18207: \$? = $ac_status" >&5 |
211 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
212 |
then |
213 |
# The compiler can only warn and ignore the option if not recognized |
214 |
@@ -20899,13 +20895,13 @@ |
215 |
|
216 |
|
217 |
|
218 |
-{ echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5 |
219 |
-echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6; } |
220 |
+{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
221 |
+echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
222 |
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
223 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
224 |
else |
225 |
ac_check_lib_save_LIBS=$LIBS |
226 |
-LIBS="-pthread $LIBS" |
227 |
+LIBS="-lpthread $LIBS" |
228 |
cat >conftest.$ac_ext <<_ACEOF |
229 |
/* confdefs.h. */ |
230 |
_ACEOF |
231 |
@@ -20961,7 +20957,7 @@ |
232 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
233 |
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
234 |
if test $ac_cv_lib_pthread_pthread_create = yes; then |
235 |
- LIBS="$LIBS -pthread" |
236 |
+ LIBS="$LIBS -lpthread" |
237 |
fi |
238 |
|
239 |
|
240 |
@@ -20973,52 +20969,16 @@ |
241 |
|
242 |
|
243 |
|
244 |
-# Check whether --with-cln-prefix was given. |
245 |
-if test "${with_cln_prefix+set}" = set; then |
246 |
- withval=$with_cln_prefix; cln_config_prefix="$withval" |
247 |
-else |
248 |
- cln_config_prefix="" |
249 |
-fi |
250 |
- |
251 |
- |
252 |
-# Check whether --with-cln-exec-prefix was given. |
253 |
-if test "${with_cln_exec_prefix+set}" = set; then |
254 |
- withval=$with_cln_exec_prefix; cln_config_exec_prefix="$withval" |
255 |
-else |
256 |
- cln_config_exec_prefix="" |
257 |
-fi |
258 |
- |
259 |
-# Check whether --enable-clntest was given. |
260 |
-if test "${enable_clntest+set}" = set; then |
261 |
- enableval=$enable_clntest; |
262 |
-else |
263 |
- enable_clntest=yes |
264 |
-fi |
265 |
- |
266 |
- |
267 |
-if test x$cln_config_exec_prefix != x ; then |
268 |
- cln_config_args="$cln_config_args --exec-prefix=$cln_config_exec_prefix" |
269 |
- if test x${CLN_CONFIG+set} != xset ; then |
270 |
- CLN_CONFIG=$cln_config_exec_prefix/bin/cln-config |
271 |
- fi |
272 |
-fi |
273 |
-if test x$cln_config_prefix != x ; then |
274 |
- cln_config_args="$cln_config_args --prefix=$cln_config_prefix" |
275 |
- if test x${CLN_CONFIG+set} != xset ; then |
276 |
- CLN_CONFIG=$cln_config_prefix/bin/cln-config |
277 |
- fi |
278 |
-fi |
279 |
- |
280 |
-# Extract the first word of "cln-config", so it can be a program name with args. |
281 |
-set dummy cln-config; ac_word=$2 |
282 |
+# Extract the first word of "pkg-config", so it can be a program name with args. |
283 |
+set dummy pkg-config; ac_word=$2 |
284 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
285 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
286 |
-if test "${ac_cv_path_CLN_CONFIG+set}" = set; then |
287 |
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
288 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
289 |
else |
290 |
- case $CLN_CONFIG in |
291 |
+ case $PKG_CONFIG in |
292 |
[\\/]* | ?:[\\/]*) |
293 |
- ac_cv_path_CLN_CONFIG="$CLN_CONFIG" # Let the user override the test with a path. |
294 |
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
295 |
;; |
296 |
*) |
297 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
298 |
@@ -21028,7 +20988,7 @@ |
299 |
test -z "$as_dir" && as_dir=. |
300 |
for ac_exec_ext in '' $ac_executable_extensions; do |
301 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
302 |
- ac_cv_path_CLN_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
303 |
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
304 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
305 |
break 2 |
306 |
fi |
307 |
@@ -21036,14 +20996,14 @@ |
308 |
done |
309 |
IFS=$as_save_IFS |
310 |
|
311 |
- test -z "$ac_cv_path_CLN_CONFIG" && ac_cv_path_CLN_CONFIG="no" |
312 |
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
313 |
;; |
314 |
esac |
315 |
fi |
316 |
-CLN_CONFIG=$ac_cv_path_CLN_CONFIG |
317 |
-if test -n "$CLN_CONFIG"; then |
318 |
- { echo "$as_me:$LINENO: result: $CLN_CONFIG" >&5 |
319 |
-echo "${ECHO_T}$CLN_CONFIG" >&6; } |
320 |
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
321 |
+if test -n "$PKG_CONFIG"; then |
322 |
+ { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
323 |
+echo "${ECHO_T}$PKG_CONFIG" >&6; } |
324 |
else |
325 |
{ echo "$as_me:$LINENO: result: no" >&5 |
326 |
echo "${ECHO_T}no" >&6; } |
327 |
@@ -21053,219 +21013,27 @@ |
328 |
cln_min_version=1.1.0 |
329 |
{ echo "$as_me:$LINENO: checking for CLN - version >= $cln_min_version" >&5 |
330 |
echo $ECHO_N "checking for CLN - version >= $cln_min_version... $ECHO_C" >&6; } |
331 |
-if test "$CLN_CONFIG" = "no" ; then |
332 |
+if test "$PKG_CONFIG" = "no" ; then |
333 |
{ echo "$as_me:$LINENO: result: no" >&5 |
334 |
echo "${ECHO_T}no" >&6; } |
335 |
- echo "*** The cln-config script installed by CLN could not be found" |
336 |
- echo "*** If CLN was installed in PREFIX, make sure PREFIX/bin is in" |
337 |
- echo "*** your path, or set the CLN_CONFIG environment variable to the" |
338 |
- echo "*** full path to cln-config." |
339 |
+ echo "*** could not find pkg-config" |
340 |
{ { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5 |
341 |
echo "$as_me: error: No suitable installed version of CLN could be found." >&2;} |
342 |
{ (exit 1); exit 1; }; } |
343 |
else |
344 |
- cln_min_major_version=`echo $cln_min_version | \ |
345 |
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
346 |
- cln_min_minor_version=`echo $cln_min_version | \ |
347 |
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
348 |
- cln_min_micro_version=`echo $cln_min_version | \ |
349 |
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
350 |
- CLN_CPPFLAGS=`$CLN_CONFIG $cln_config_args --cppflags` |
351 |
- CLN_LIBS=`$CLN_CONFIG $cln_config_args --libs` |
352 |
- cln_config_version=`$CLN_CONFIG $cln_config_args --version` |
353 |
- cln_config_major_version=`echo $cln_config_version | \ |
354 |
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
355 |
- cln_config_minor_version=`echo $cln_config_version | \ |
356 |
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
357 |
- cln_config_micro_version=`echo $cln_config_version | \ |
358 |
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
359 |
- if test \( $cln_config_major_version -lt $cln_min_major_version \) -o \ |
360 |
- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -lt $cln_min_minor_version \) -o \ |
361 |
- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -eq $cln_min_minor_version -a $cln_config_micro_version -lt $cln_min_micro_version \); then |
362 |
- echo -e "\n*** 'cln-config --version' returned $cln_config_major_version.$cln_config_minor_version.$cln_config_micro_version, but the minimum version" |
363 |
- echo "*** of CLN required is $cln_min_major_version.$cln_min_minor_version.$cln_min_micro_version. If cln-config is correct, then it is" |
364 |
- echo "*** best to upgrade to the required version." |
365 |
- echo "*** If cln-config was wrong, set the environment variable CLN_CONFIG" |
366 |
- echo "*** to point to the correct copy of cln-config, and remove the file" |
367 |
- echo "*** config.cache before re-running configure." |
368 |
- { { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5 |
369 |
-echo "$as_me: error: No suitable installed version of CLN could be found." >&2;} |
370 |
- { (exit 1); exit 1; }; } |
371 |
+ if $PKG_CONFIG cln --atleast-version=${cln_min_version}; then |
372 |
+ echo "Found cln >= ${cln_min_version}" |
373 |
+ CLN_CPPFLAGS=`$PKG_CONFIG cln --cflags` |
374 |
+ CLN_LIBS=`$PKG_CONFIG cln --libs` |
375 |
else |
376 |
- no_cln="" |
377 |
- if test "x$enable_clntest" = "xyes" ; then |
378 |
- ac_save_CPPFLAGS="$CPPFLAGS" |
379 |
- ac_save_LIBS="$LIBS" |
380 |
- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS" |
381 |
- LIBS="$LIBS $CLN_LIBS" |
382 |
- rm -f conf.clntest |
383 |
- if test "$cross_compiling" = yes; then |
384 |
- echo $ac_n "cross compiling; assumed OK... $ac_c" |
385 |
-else |
386 |
- cat >conftest.$ac_ext <<_ACEOF |
387 |
-/* confdefs.h. */ |
388 |
-_ACEOF |
389 |
-cat confdefs.h >>conftest.$ac_ext |
390 |
-cat >>conftest.$ac_ext <<_ACEOF |
391 |
-/* end confdefs.h. */ |
392 |
- |
393 |
-#include <stdio.h> |
394 |
-#include <string.h> |
395 |
-#include <cln/version.h> |
396 |
- |
397 |
-/* we do not #include <stdlib.h> because autoconf in C++ mode inserts a |
398 |
- prototype for exit() that conflicts with the one in stdlib.h */ |
399 |
-extern "C" int system(const char *); |
400 |
- |
401 |
-int main(void) |
402 |
-{ |
403 |
- system("touch conf.clntest"); |
404 |
- |
405 |
- if ((CL_VERSION_MAJOR != $cln_config_major_version) || |
406 |
- (CL_VERSION_MINOR != $cln_config_minor_version) || |
407 |
- (CL_VERSION_PATCHLEVEL != $cln_config_micro_version)) { |
408 |
- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the header file I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version); |
409 |
- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", CL_VERSION_MAJOR, CL_VERSION_MINOR, CL_VERSION_PATCHLEVEL); |
410 |
- printf("*** is corrupted or you have specified some wrong -I compiler flags.\n"); |
411 |
- printf("*** Please inquire and consider reinstalling CLN.\n"); |
412 |
- return 1; |
413 |
- } |
414 |
- if ((cln::version_major != $cln_config_major_version) || |
415 |
- (cln::version_minor != $cln_config_minor_version) || |
416 |
- (cln::version_patchlevel != $cln_config_micro_version)) { |
417 |
- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the library I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version); |
418 |
- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", cln::version_major, cln::version_minor, cln::version_patchlevel); |
419 |
- printf("*** is corrupted or you have specified some wrong -L compiler flags.\n"); |
420 |
- printf("*** Please inquire and consider reinstalling CLN.\n"); |
421 |
- return 1; |
422 |
- } |
423 |
- return 0; |
424 |
-} |
425 |
- |
426 |
-_ACEOF |
427 |
-rm -f conftest$ac_exeext |
428 |
-if { (ac_try="$ac_link" |
429 |
-case "(($ac_try" in |
430 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
431 |
- *) ac_try_echo=$ac_try;; |
432 |
-esac |
433 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
434 |
- (eval "$ac_link") 2>&5 |
435 |
- ac_status=$? |
436 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
437 |
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
438 |
- { (case "(($ac_try" in |
439 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
440 |
- *) ac_try_echo=$ac_try;; |
441 |
-esac |
442 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
443 |
- (eval "$ac_try") 2>&5 |
444 |
- ac_status=$? |
445 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
446 |
- (exit $ac_status); }; }; then |
447 |
- : |
448 |
-else |
449 |
- echo "$as_me: program exited with status $ac_status" >&5 |
450 |
-echo "$as_me: failed program was:" >&5 |
451 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
452 |
- |
453 |
-( exit $ac_status ) |
454 |
-no_cln=yes |
455 |
-fi |
456 |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
457 |
-fi |
458 |
- |
459 |
- |
460 |
- CPPFLAGS="$ac_save_CPPFLAGS" |
461 |
- LIBS="$ac_save_LIBS" |
462 |
- fi |
463 |
- if test "x$no_cln" = x ; then |
464 |
- { echo "$as_me:$LINENO: result: yes, $cln_config_version" >&5 |
465 |
-echo "${ECHO_T}yes, $cln_config_version" >&6; } |
466 |
- |
467 |
- LIBS="$LIBS $CLN_LIBS" |
468 |
- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS" |
469 |
- |
470 |
-cat >>confdefs.h <<\_ACEOF |
471 |
-#define HAVE_LIBCLN 1 |
472 |
-_ACEOF |
473 |
- |
474 |
- |
475 |
- else |
476 |
- { echo "$as_me:$LINENO: result: no" >&5 |
477 |
-echo "${ECHO_T}no" >&6; } |
478 |
- if test ! -f conf.clntest ; then |
479 |
- echo "*** Could not run CLN test program, checking why..." |
480 |
- CPPFLAGS="$CFLAGS $CLN_CPPFLAGS" |
481 |
- LIBS="$LIBS $CLN_LIBS" |
482 |
- cat >conftest.$ac_ext <<_ACEOF |
483 |
-/* confdefs.h. */ |
484 |
-_ACEOF |
485 |
-cat confdefs.h >>conftest.$ac_ext |
486 |
-cat >>conftest.$ac_ext <<_ACEOF |
487 |
-/* end confdefs.h. */ |
488 |
- |
489 |
-#include <stdio.h> |
490 |
-#include <cln/version.h> |
491 |
- |
492 |
-int |
493 |
-main () |
494 |
-{ |
495 |
- return 0; |
496 |
- ; |
497 |
- return 0; |
498 |
-} |
499 |
-_ACEOF |
500 |
-rm -f conftest.$ac_objext conftest$ac_exeext |
501 |
-if { (ac_try="$ac_link" |
502 |
-case "(($ac_try" in |
503 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
504 |
- *) ac_try_echo=$ac_try;; |
505 |
-esac |
506 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
507 |
- (eval "$ac_link") 2>conftest.er1 |
508 |
- ac_status=$? |
509 |
- grep -v '^ *+' conftest.er1 >conftest.err |
510 |
- rm -f conftest.er1 |
511 |
- cat conftest.err >&5 |
512 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
513 |
- (exit $ac_status); } && { |
514 |
- test -z "$ac_cxx_werror_flag" || |
515 |
- test ! -s conftest.err |
516 |
- } && test -s conftest$ac_exeext && |
517 |
- $as_test_x conftest$ac_exeext; then |
518 |
- echo "*** The test program compiled, but did not run. This usually means" |
519 |
- echo "*** that the run-time linker is not finding CLN or finding the wrong" |
520 |
- echo "*** version of CLN. If it is not finding CLN, you'll need to set your" |
521 |
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
522 |
- echo "*** to the installed location. Also, make sure you have run ldconfig if that" |
523 |
- echo "*** is required on your system." |
524 |
-else |
525 |
- echo "$as_me: failed program was:" >&5 |
526 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
527 |
- |
528 |
- echo "*** The test program failed to compile or link. See the file config.log for the" |
529 |
- echo "*** exact error that occured. This usually means CLN was incorrectly installed" |
530 |
- echo "*** or that you have moved CLN since it was installed. In the latter case, you" |
531 |
- echo "*** may want to edit the cln-config script: $CLN_CONFIG." |
532 |
-fi |
533 |
- |
534 |
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
535 |
- conftest$ac_exeext conftest.$ac_ext |
536 |
- CPPFLAGS="$ac_save_CPPFLAGS" |
537 |
- LIBS="$ac_save_LIBS" |
538 |
- fi |
539 |
- CLN_CPPFLAGS="" |
540 |
- CLN_LIBS="" |
541 |
- { { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5 |
542 |
+ echo "ERROR: cln >= ${cln_min_version} not found" |
543 |
+ { { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5 |
544 |
echo "$as_me: error: No suitable installed version of CLN could be found." >&2;} |
545 |
{ (exit 1); exit 1; }; } |
546 |
- fi |
547 |
fi |
548 |
fi |
549 |
|
550 |
|
551 |
-rm -f conf.clntest |
552 |
|
553 |
|
554 |
|
555 |
@@ -23523,13 +23291,13 @@ |
556 |
DATADIRNAME=share |
557 |
else |
558 |
CATOBJEXT=.mo |
559 |
- DATADIRNAME=share |
560 |
+ DATADIRNAME=lib |
561 |
fi |
562 |
|
563 |
;; |
564 |
*) |
565 |
CATOBJEXT=.mo |
566 |
- DATADIRNAME=share |
567 |
+ DATADIRNAME=lib |
568 |
;; |
569 |
esac |
570 |
fi |
571 |
@@ -24528,10 +24296,9 @@ |
572 |
QALCULATE_CURRENT!$QALCULATE_CURRENT$ac_delim |
573 |
QALCULATE_REVISION!$QALCULATE_REVISION$ac_delim |
574 |
QALCULATE_AGE!$QALCULATE_AGE$ac_delim |
575 |
-CLN_CONFIG!$CLN_CONFIG$ac_delim |
576 |
+PKG_CONFIG!$PKG_CONFIG$ac_delim |
577 |
CLN_CPPFLAGS!$CLN_CPPFLAGS$ac_delim |
578 |
CLN_LIBS!$CLN_LIBS$ac_delim |
579 |
-PKG_CONFIG!$PKG_CONFIG$ac_delim |
580 |
GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim |
581 |
GLIB_LIBS!$GLIB_LIBS$ac_delim |
582 |
READLINE_LIBS!$READLINE_LIBS$ac_delim |
583 |
@@ -24559,7 +24326,7 @@ |
584 |
LTLIBOBJS!$LTLIBOBJS$ac_delim |
585 |
_ACEOF |
586 |
|
587 |
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then |
588 |
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then |
589 |
break |
590 |
elif $ac_last_try; then |
591 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |