1
by Achim Bohnet
Import upstream version 0.1.1 |
1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
|
3 |
# Generated by GNU Autoconf 2.59. |
|
4 |
# |
|
5 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
|
6 |
# This configure script is free software; the Free Software Foundation |
|
7 |
# gives unlimited permission to copy, distribute and modify it. |
|
8 |
## --------------------- ## |
|
9 |
## M4sh Initialization. ## |
|
10 |
## --------------------- ## |
|
11 |
||
12 |
# Be Bourne compatible |
|
13 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
14 |
emulate sh |
|
15 |
NULLCMD=: |
|
16 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
17 |
# is contrary to our usage. Disable this feature. |
|
18 |
alias -g '${1+"$@"}'='"$@"' |
|
19 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
20 |
set -o posix |
|
21 |
fi |
|
22 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
23 |
||
24 |
# Support unset when possible. |
|
25 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
26 |
as_unset=unset |
|
27 |
else |
|
28 |
as_unset=false |
|
29 |
fi |
|
30 |
||
31 |
||
32 |
# Work around bugs in pre-3.0 UWIN ksh. |
|
33 |
$as_unset ENV MAIL MAILPATH |
|
34 |
PS1='$ ' |
|
35 |
PS2='> ' |
|
36 |
PS4='+ ' |
|
37 |
||
38 |
# NLS nuisances. |
|
39 |
for as_var in \ |
|
40 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
41 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
42 |
LC_TELEPHONE LC_TIME |
|
43 |
do |
|
44 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
45 |
eval $as_var=C; export $as_var |
|
46 |
else |
|
47 |
$as_unset $as_var |
|
48 |
fi |
|
49 |
done |
|
50 |
||
51 |
# Required to use basename. |
|
52 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
53 |
as_expr=expr |
|
54 |
else |
|
55 |
as_expr=false |
|
56 |
fi |
|
57 |
||
58 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
59 |
as_basename=basename |
|
60 |
else |
|
61 |
as_basename=false |
|
62 |
fi |
|
63 |
||
64 |
||
65 |
# Name of the executable. |
|
66 |
as_me=`$as_basename "$0" || |
|
67 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
68 |
X"$0" : 'X\(//\)$' \| \ |
|
69 |
X"$0" : 'X\(/\)$' \| \ |
|
70 |
. : '\(.\)' 2>/dev/null || |
|
71 |
echo X/"$0" | |
|
72 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
73 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
|
74 |
/^X\/\(\/\).*/{ s//\1/; q; } |
|
75 |
s/.*/./; q'` |
|
76 |
||
77 |
||
78 |
# PATH needs CR, and LINENO needs CR and PATH. |
|
79 |
# Avoid depending upon Character Ranges. |
|
80 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
81 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
82 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
83 |
as_cr_digits='0123456789' |
|
84 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
85 |
||
86 |
# The user is always right. |
|
87 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
88 |
echo "#! /bin/sh" >conf$$.sh |
|
89 |
echo "exit 0" >>conf$$.sh |
|
90 |
chmod +x conf$$.sh |
|
91 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
92 |
PATH_SEPARATOR=';' |
|
93 |
else |
|
94 |
PATH_SEPARATOR=: |
|
95 |
fi |
|
96 |
rm -f conf$$.sh |
|
97 |
fi |
|
98 |
||
99 |
||
100 |
as_lineno_1=$LINENO |
|
101 |
as_lineno_2=$LINENO |
|
102 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
103 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
104 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
|
105 |
# Find who we are. Look in the path if we contain no path at all |
|
106 |
# relative or not. |
|
107 |
case $0 in |
|
108 |
*[\\/]* ) as_myself=$0 ;; |
|
109 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
110 |
for as_dir in $PATH |
|
111 |
do |
|
112 |
IFS=$as_save_IFS |
|
113 |
test -z "$as_dir" && as_dir=. |
|
114 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
115 |
done |
|
116 |
||
117 |
;; |
|
118 |
esac |
|
119 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
120 |
# in which case we are not to be found in the path. |
|
121 |
if test "x$as_myself" = x; then |
|
122 |
as_myself=$0 |
|
123 |
fi |
|
124 |
if test ! -f "$as_myself"; then |
|
125 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
|
126 |
{ (exit 1); exit 1; }; } |
|
127 |
fi |
|
128 |
case $CONFIG_SHELL in |
|
129 |
'') |
|
130 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
131 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
132 |
do |
|
133 |
IFS=$as_save_IFS |
|
134 |
test -z "$as_dir" && as_dir=. |
|
135 |
for as_base in sh bash ksh sh5; do |
|
136 |
case $as_dir in |
|
137 |
/*) |
|
138 |
if ("$as_dir/$as_base" -c ' |
|
139 |
as_lineno_1=$LINENO |
|
140 |
as_lineno_2=$LINENO |
|
141 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
142 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
143 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
|
144 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|
145 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|
146 |
CONFIG_SHELL=$as_dir/$as_base |
|
147 |
export CONFIG_SHELL |
|
148 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|
149 |
fi;; |
|
150 |
esac |
|
151 |
done |
|
152 |
done |
|
153 |
;; |
|
154 |
esac |
|
155 |
||
156 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
157 |
# uniformly replaced by the line number. The first 'sed' inserts a |
|
158 |
# line-number line before each line; the second 'sed' does the real |
|
159 |
# work. The second script uses 'N' to pair each line-number line |
|
160 |
# with the numbered line, and appends trailing '-' during |
|
161 |
# substitution so that $LINENO is not a special case at line end. |
|
162 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
163 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
|
164 |
sed '=' <$as_myself | |
|
165 |
sed ' |
|
166 |
N |
|
167 |
s,$,-, |
|
168 |
: loop |
|
169 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
|
170 |
t loop |
|
171 |
s,-$,, |
|
172 |
s,^['$as_cr_digits']*\n,, |
|
173 |
' >$as_me.lineno && |
|
174 |
chmod +x $as_me.lineno || |
|
175 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
176 |
{ (exit 1); exit 1; }; } |
|
177 |
||
178 |
# Don't try to exec as it changes $[0], causing all sort of problems |
|
179 |
# (the dirname of $[0] is not the place where we might find the |
|
180 |
# original and so on. Autoconf is especially sensible to this). |
|
181 |
. ./$as_me.lineno |
|
182 |
# Exit status is that of the last command. |
|
183 |
exit |
|
184 |
} |
|
185 |
||
186 |
||
187 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
|
188 |
*c*,-n*) ECHO_N= ECHO_C=' |
|
189 |
' ECHO_T=' ' ;; |
|
190 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
|
191 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
|
192 |
esac |
|
193 |
||
194 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
195 |
as_expr=expr |
|
196 |
else |
|
197 |
as_expr=false |
|
198 |
fi |
|
199 |
||
200 |
rm -f conf$$ conf$$.exe conf$$.file |
|
201 |
echo >conf$$.file |
|
202 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
203 |
# We could just check for DJGPP; but this test a) works b) is more generic |
|
204 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
|
205 |
if test -f conf$$.exe; then |
|
206 |
# Don't use ln at all; we don't have any links |
|
207 |
as_ln_s='cp -p' |
|
208 |
else |
|
209 |
as_ln_s='ln -s' |
|
210 |
fi |
|
211 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
212 |
as_ln_s=ln |
|
213 |
else |
|
214 |
as_ln_s='cp -p' |
|
215 |
fi |
|
216 |
rm -f conf$$ conf$$.exe conf$$.file |
|
217 |
||
218 |
if mkdir -p . 2>/dev/null; then |
|
219 |
as_mkdir_p=: |
|
220 |
else |
|
221 |
test -d ./-p && rmdir ./-p |
|
222 |
as_mkdir_p=false |
|
223 |
fi |
|
224 |
||
225 |
as_executable_p="test -f" |
|
226 |
||
227 |
# Sed expression to map a string onto a valid CPP name. |
|
228 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
229 |
||
230 |
# Sed expression to map a string onto a valid variable name. |
|
231 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
232 |
||
233 |
||
234 |
# IFS |
|
235 |
# We need space, tab and new line, in precisely that order. |
|
236 |
as_nl=' |
|
237 |
' |
|
238 |
IFS=" $as_nl" |
|
239 |
||
240 |
# CDPATH. |
|
241 |
$as_unset CDPATH |
|
242 |
||
243 |
||
244 |
||
245 |
# Check that we are running under the correct shell. |
|
246 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
247 |
||
248 |
case X$ECHO in |
|
249 |
X*--fallback-echo) |
|
250 |
# Remove one level of quotation (which was required for Make). |
|
251 |
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
252 |
;; |
|
253 |
esac |
|
254 |
||
255 |
echo=${ECHO-echo} |
|
256 |
if test "X$1" = X--no-reexec; then |
|
257 |
# Discard the --no-reexec flag, and continue. |
|
258 |
shift |
|
259 |
elif test "X$1" = X--fallback-echo; then |
|
260 |
# Avoid inline document here, it may be left over |
|
261 |
: |
|
262 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
|
263 |
# Yippee, $echo works! |
|
264 |
: |
|
265 |
else |
|
266 |
# Restart under the correct shell. |
|
267 |
exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
268 |
fi |
|
269 |
||
270 |
if test "X$1" = X--fallback-echo; then |
|
271 |
# used as fallback echo |
|
272 |
shift |
|
273 |
cat <<EOF |
|
274 |
$* |
|
275 |
EOF |
|
276 |
exit 0 |
|
277 |
fi |
|
278 |
||
279 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
280 |
# if CDPATH is set. |
|
281 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
282 |
||
283 |
if test -z "$ECHO"; then |
|
284 |
if test "X${echo_test_string+set}" != Xset; then |
|
285 |
# find a string as large as possible, as long as the shell can cope with it |
|
286 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
287 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
288 |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
|
289 |
echo_test_string="`eval $cmd`" && |
|
290 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
|
291 |
then |
|
292 |
break |
|
293 |
fi |
|
294 |
done |
|
295 |
fi |
|
296 |
||
297 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
298 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
299 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
300 |
: |
|
301 |
else |
|
302 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
|
303 |
# backslashes. This makes it impossible to quote backslashes using |
|
304 |
# echo "$something" | sed 's/\\/\\\\/g' |
|
305 |
# |
|
306 |
# So, first we look for a working echo in the user's PATH. |
|
307 |
||
308 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
309 |
for dir in $PATH /usr/ucb; do |
|
310 |
IFS="$lt_save_ifs" |
|
311 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
312 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
313 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
314 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
315 |
echo="$dir/echo" |
|
316 |
break |
|
317 |
fi |
|
318 |
done |
|
319 |
IFS="$lt_save_ifs" |
|
320 |
||
321 |
if test "X$echo" = Xecho; then |
|
322 |
# We didn't find a better echo, so look for alternatives. |
|
323 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
|
324 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
|
325 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
326 |
# This shell has a builtin print -r that does the trick. |
|
327 |
echo='print -r' |
|
328 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
|
329 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
330 |
# If we have ksh, try running configure again with it. |
|
331 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
332 |
export ORIGINAL_CONFIG_SHELL |
|
333 |
CONFIG_SHELL=/bin/ksh |
|
334 |
export CONFIG_SHELL |
|
335 |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
336 |
else |
|
337 |
# Try using printf. |
|
338 |
echo='printf %s\n' |
|
339 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
340 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
341 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
342 |
# Cool, printf works |
|
343 |
: |
|
344 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
345 |
test "X$echo_testing_string" = 'X\t' && |
|
346 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
347 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
348 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
349 |
export CONFIG_SHELL |
|
350 |
SHELL="$CONFIG_SHELL" |
|
351 |
export SHELL |
|
352 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
|
353 |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
354 |
test "X$echo_testing_string" = 'X\t' && |
|
355 |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
356 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
357 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
|
358 |
else |
|
359 |
# maybe with a smaller string... |
|
360 |
prev=: |
|
361 |
||
362 |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
363 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
|
364 |
then |
|
365 |
break |
|
366 |
fi |
|
367 |
prev="$cmd" |
|
368 |
done |
|
369 |
||
370 |
if test "$prev" != 'sed 50q "$0"'; then |
|
371 |
echo_test_string=`eval $prev` |
|
372 |
export echo_test_string |
|
373 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
374 |
else |
|
375 |
# Oops. We lost completely, so just stick with echo. |
|
376 |
echo=echo |
|
377 |
fi |
|
378 |
fi |
|
379 |
fi |
|
380 |
fi |
|
381 |
fi |
|
382 |
fi |
|
383 |
||
384 |
# Copy echo and quote the copy suitably for passing to libtool from |
|
385 |
# the Makefile, instead of quoting the original, which is used later. |
|
386 |
ECHO=$echo |
|
387 |
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
388 |
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
389 |
fi |
|
390 |
||
391 |
||
392 |
||
393 |
||
394 |
tagnames=${tagnames+${tagnames},}CXX |
|
395 |
||
396 |
tagnames=${tagnames+${tagnames},}F77 |
|
397 |
||
398 |
# Name of the host. |
|
399 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
|
400 |
# so uname gets run too. |
|
401 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
402 |
||
403 |
exec 6>&1 |
|
404 |
||
405 |
# |
|
406 |
# Initializations. |
|
407 |
# |
|
408 |
ac_default_prefix=/usr/local |
|
409 |
ac_config_libobj_dir=. |
|
410 |
cross_compiling=no |
|
411 |
subdirs= |
|
412 |
MFLAGS= |
|
413 |
MAKEFLAGS= |
|
414 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
415 |
||
416 |
# Maximum number of lines to put in a shell here document. |
|
417 |
# This variable seems obsolete. It should probably be removed, and |
|
418 |
# only ac_max_sed_lines should be used. |
|
419 |
: ${ac_max_here_lines=38} |
|
420 |
||
421 |
# Identity of this package. |
|
422 |
PACKAGE_NAME= |
|
423 |
PACKAGE_TARNAME= |
|
424 |
PACKAGE_VERSION= |
|
425 |
PACKAGE_STRING= |
|
426 |
PACKAGE_BUGREPORT= |
|
427 |
||
428 |
ac_unique_file="acinclude.m4" |
|
429 |
ac_default_prefix=${KDEDIR:-the kde prefix} |
|
430 |
# Factoring default headers for most tests. |
|
431 |
ac_includes_default="\ |
|
432 |
#include <stdio.h> |
|
433 |
#if HAVE_SYS_TYPES_H |
|
434 |
# include <sys/types.h> |
|
435 |
#endif |
|
436 |
#if HAVE_SYS_STAT_H |
|
437 |
# include <sys/stat.h> |
|
438 |
#endif |
|
439 |
#if STDC_HEADERS |
|
440 |
# include <stdlib.h> |
|
441 |
# include <stddef.h> |
|
442 |
#else |
|
443 |
# if HAVE_STDLIB_H |
|
444 |
# include <stdlib.h> |
|
445 |
# endif |
|
446 |
#endif |
|
447 |
#if HAVE_STRING_H |
|
448 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
|
449 |
# include <memory.h> |
|
450 |
# endif |
|
451 |
# include <string.h> |
|
452 |
#endif |
|
453 |
#if HAVE_STRINGS_H |
|
454 |
# include <strings.h> |
|
455 |
#endif |
|
456 |
#if HAVE_INTTYPES_H |
|
457 |
# include <inttypes.h> |
|
458 |
#else |
|
459 |
# if HAVE_STDINT_H |
|
460 |
# include <stdint.h> |
|
461 |
# endif |
|
462 |
#endif |
|
463 |
#if HAVE_UNISTD_H |
|
464 |
# include <unistd.h> |
|
465 |
#endif" |
|
466 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
467 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar KDECONFIG kde_libs_prefix kde_libs_htmldir CONF_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL HAVE_GCC_VISIBILITY unsermake_enable_pch_TRUE unsermake_enable_pch_FALSE USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG LDFLAGS_AS_NEEDED LDFLAGS_NEW_DTAGS KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN KDE_CHECK_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL KDE_USE_FPIE KDE_USE_PIE include_x11_TRUE include_x11_FALSE X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS PERL MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE MAKEKDEWIDGETS KCONFIG_COMPILER KCFG_DEPENDENCIES DCOPIDLNG DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG MEINPROC KDE_XSL_STYLESHEET XMLLINT kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_kcfgdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_menudir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDED LIB_KDECORE LIB_KDEUI LIB_KIO LIB_KJS LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KIMPROXY LIB_KNEWSTUFF LIB_KDNSSD LIB_KUNITTEST LIB_KSYCOCA LIB_KFILE LIB_KFM QTDOCDIR KDE_HAVE_DOT DOXYGEN DOXYGEN_PROJECT_NAME DOXYGEN_PROJECT_NUMBER KDE_HAS_DOXYGEN LIBOBJS LTLIBOBJS TOPSUBDIRS libkexif_SUBDIR_included_TRUE libkexif_SUBDIR_included_FALSE libkipi_SUBDIR_included_TRUE libkipi_SUBDIR_included_FALSE doc_SUBDIR_included_TRUE doc_SUBDIR_included_FALSE po_SUBDIR_included_TRUE po_SUBDIR_included_FALSE' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
468 |
ac_subst_files='' |
469 |
||
470 |
# Initialize some variables set by options. |
|
471 |
ac_init_help= |
|
472 |
ac_init_version=false |
|
473 |
# The variables have the same names as the options, with |
|
474 |
# dashes changed to underlines. |
|
475 |
cache_file=/dev/null |
|
476 |
exec_prefix=NONE |
|
477 |
no_create= |
|
478 |
no_recursion= |
|
479 |
prefix=NONE |
|
480 |
program_prefix=NONE |
|
481 |
program_suffix=NONE |
|
482 |
program_transform_name=s,x,x, |
|
483 |
silent= |
|
484 |
site= |
|
485 |
srcdir= |
|
486 |
verbose= |
|
487 |
x_includes=NONE |
|
488 |
x_libraries=NONE |
|
489 |
||
490 |
# Installation directory options. |
|
491 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
|
492 |
# and all the variables that are supposed to be based on exec_prefix |
|
493 |
# by default will actually change. |
|
494 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
|
495 |
bindir='${exec_prefix}/bin' |
|
496 |
sbindir='${exec_prefix}/sbin' |
|
497 |
libexecdir='${exec_prefix}/libexec' |
|
498 |
datadir='${prefix}/share' |
|
499 |
sysconfdir='${prefix}/etc' |
|
500 |
sharedstatedir='${prefix}/com' |
|
501 |
localstatedir='${prefix}/var' |
|
502 |
libdir='${exec_prefix}/lib' |
|
503 |
includedir='${prefix}/include' |
|
504 |
oldincludedir='/usr/include' |
|
505 |
infodir='${prefix}/info' |
|
506 |
mandir='${prefix}/man' |
|
507 |
||
508 |
ac_prev= |
|
509 |
for ac_option |
|
510 |
do |
|
511 |
# If the previous option needs an argument, assign it. |
|
512 |
if test -n "$ac_prev"; then |
|
513 |
eval "$ac_prev=\$ac_option" |
|
514 |
ac_prev= |
|
515 |
continue |
|
516 |
fi |
|
517 |
||
518 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
|
519 |
||
520 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
|
521 |
||
522 |
case $ac_option in |
|
523 |
||
524 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
525 |
ac_prev=bindir ;; |
|
526 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
527 |
bindir=$ac_optarg ;; |
|
528 |
||
529 |
-build | --build | --buil | --bui | --bu) |
|
530 |
ac_prev=build_alias ;; |
|
531 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
532 |
build_alias=$ac_optarg ;; |
|
533 |
||
534 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
535 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
536 |
ac_prev=cache_file ;; |
|
537 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
538 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
539 |
cache_file=$ac_optarg ;; |
|
540 |
||
541 |
--config-cache | -C) |
|
542 |
cache_file=config.cache ;; |
|
543 |
||
544 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
|
545 |
ac_prev=datadir ;; |
|
546 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
|
547 |
| --da=*) |
|
548 |
datadir=$ac_optarg ;; |
|
549 |
||
550 |
-disable-* | --disable-*) |
|
551 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
552 |
# Reject names that are not valid shell variable names. |
|
553 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|
554 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|
555 |
{ (exit 1); exit 1; }; } |
|
556 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
|
557 |
eval "enable_$ac_feature=no" ;; |
|
558 |
||
559 |
-enable-* | --enable-*) |
|
560 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
561 |
# Reject names that are not valid shell variable names. |
|
562 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|
563 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|
564 |
{ (exit 1); exit 1; }; } |
|
565 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
|
566 |
case $ac_option in |
|
567 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
|
568 |
*) ac_optarg=yes ;; |
|
569 |
esac |
|
570 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
|
571 |
||
572 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
573 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
574 |
| --exec | --exe | --ex) |
|
575 |
ac_prev=exec_prefix ;; |
|
576 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
577 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
578 |
| --exec=* | --exe=* | --ex=*) |
|
579 |
exec_prefix=$ac_optarg ;; |
|
580 |
||
581 |
-gas | --gas | --ga | --g) |
|
582 |
# Obsolete; use --with-gas. |
|
583 |
with_gas=yes ;; |
|
584 |
||
585 |
-help | --help | --hel | --he | -h) |
|
586 |
ac_init_help=long ;; |
|
587 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
588 |
ac_init_help=recursive ;; |
|
589 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
590 |
ac_init_help=short ;; |
|
591 |
||
592 |
-host | --host | --hos | --ho) |
|
593 |
ac_prev=host_alias ;; |
|
594 |
-host=* | --host=* | --hos=* | --ho=*) |
|
595 |
host_alias=$ac_optarg ;; |
|
596 |
||
597 |
-includedir | --includedir | --includedi | --included | --include \ |
|
598 |
| --includ | --inclu | --incl | --inc) |
|
599 |
ac_prev=includedir ;; |
|
600 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
601 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
|
602 |
includedir=$ac_optarg ;; |
|
603 |
||
604 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
|
605 |
ac_prev=infodir ;; |
|
606 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
607 |
infodir=$ac_optarg ;; |
|
608 |
||
609 |
-libdir | --libdir | --libdi | --libd) |
|
610 |
ac_prev=libdir ;; |
|
611 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
612 |
libdir=$ac_optarg ;; |
|
613 |
||
614 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
615 |
| --libexe | --libex | --libe) |
|
616 |
ac_prev=libexecdir ;; |
|
617 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
618 |
| --libexe=* | --libex=* | --libe=*) |
|
619 |
libexecdir=$ac_optarg ;; |
|
620 |
||
621 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
622 |
| --localstate | --localstat | --localsta | --localst \ |
|
623 |
| --locals | --local | --loca | --loc | --lo) |
|
624 |
ac_prev=localstatedir ;; |
|
625 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
626 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
|
627 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
|
628 |
localstatedir=$ac_optarg ;; |
|
629 |
||
630 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
631 |
ac_prev=mandir ;; |
|
632 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
633 |
mandir=$ac_optarg ;; |
|
634 |
||
635 |
-nfp | --nfp | --nf) |
|
636 |
# Obsolete; use --without-fp. |
|
637 |
with_fp=no ;; |
|
638 |
||
639 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
640 |
| --no-cr | --no-c | -n) |
|
641 |
no_create=yes ;; |
|
642 |
||
643 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
644 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
645 |
no_recursion=yes ;; |
|
646 |
||
647 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
648 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
649 |
| --oldin | --oldi | --old | --ol | --o) |
|
650 |
ac_prev=oldincludedir ;; |
|
651 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
652 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
653 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
654 |
oldincludedir=$ac_optarg ;; |
|
655 |
||
656 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
657 |
ac_prev=prefix ;; |
|
658 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
659 |
prefix=$ac_optarg ;; |
|
660 |
||
661 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
662 |
| --program-pre | --program-pr | --program-p) |
|
663 |
ac_prev=program_prefix ;; |
|
664 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
665 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
666 |
program_prefix=$ac_optarg ;; |
|
667 |
||
668 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
669 |
| --program-suf | --program-su | --program-s) |
|
670 |
ac_prev=program_suffix ;; |
|
671 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
672 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
673 |
program_suffix=$ac_optarg ;; |
|
674 |
||
675 |
-program-transform-name | --program-transform-name \ |
|
676 |
| --program-transform-nam | --program-transform-na \ |
|
677 |
| --program-transform-n | --program-transform- \ |
|
678 |
| --program-transform | --program-transfor \ |
|
679 |
| --program-transfo | --program-transf \ |
|
680 |
| --program-trans | --program-tran \ |
|
681 |
| --progr-tra | --program-tr | --program-t) |
|
682 |
ac_prev=program_transform_name ;; |
|
683 |
-program-transform-name=* | --program-transform-name=* \ |
|
684 |
| --program-transform-nam=* | --program-transform-na=* \ |
|
685 |
| --program-transform-n=* | --program-transform-=* \ |
|
686 |
| --program-transform=* | --program-transfor=* \ |
|
687 |
| --program-transfo=* | --program-transf=* \ |
|
688 |
| --program-trans=* | --program-tran=* \ |
|
689 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
|
690 |
program_transform_name=$ac_optarg ;; |
|
691 |
||
692 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
693 |
| -silent | --silent | --silen | --sile | --sil) |
|
694 |
silent=yes ;; |
|
695 |
||
696 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
697 |
ac_prev=sbindir ;; |
|
698 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
699 |
| --sbi=* | --sb=*) |
|
700 |
sbindir=$ac_optarg ;; |
|
701 |
||
702 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
703 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
704 |
| --sharedst | --shareds | --shared | --share | --shar \ |
|
705 |
| --sha | --sh) |
|
706 |
ac_prev=sharedstatedir ;; |
|
707 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
708 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
709 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
710 |
| --sha=* | --sh=*) |
|
711 |
sharedstatedir=$ac_optarg ;; |
|
712 |
||
713 |
-site | --site | --sit) |
|
714 |
ac_prev=site ;; |
|
715 |
-site=* | --site=* | --sit=*) |
|
716 |
site=$ac_optarg ;; |
|
717 |
||
718 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
719 |
ac_prev=srcdir ;; |
|
720 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
721 |
srcdir=$ac_optarg ;; |
|
722 |
||
723 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
724 |
| --syscon | --sysco | --sysc | --sys | --sy) |
|
725 |
ac_prev=sysconfdir ;; |
|
726 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
727 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
728 |
sysconfdir=$ac_optarg ;; |
|
729 |
||
730 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
|
731 |
ac_prev=target_alias ;; |
|
732 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
733 |
target_alias=$ac_optarg ;; |
|
734 |
||
735 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
736 |
verbose=yes ;; |
|
737 |
||
738 |
-version | --version | --versio | --versi | --vers | -V) |
|
739 |
ac_init_version=: ;; |
|
740 |
||
741 |
-with-* | --with-*) |
|
742 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
743 |
# Reject names that are not valid shell variable names. |
|
744 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|
745 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
|
746 |
{ (exit 1); exit 1; }; } |
|
747 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
|
748 |
case $ac_option in |
|
749 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
|
750 |
*) ac_optarg=yes ;; |
|
751 |
esac |
|
752 |
eval "with_$ac_package='$ac_optarg'" ;; |
|
753 |
||
754 |
-without-* | --without-*) |
|
755 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
756 |
# Reject names that are not valid shell variable names. |
|
757 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|
758 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
|
759 |
{ (exit 1); exit 1; }; } |
|
760 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
|
761 |
eval "with_$ac_package=no" ;; |
|
762 |
||
763 |
--x) |
|
764 |
# Obsolete; use --with-x. |
|
765 |
with_x=yes ;; |
|
766 |
||
767 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
768 |
| --x-incl | --x-inc | --x-in | --x-i) |
|
769 |
ac_prev=x_includes ;; |
|
770 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
771 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
772 |
x_includes=$ac_optarg ;; |
|
773 |
||
774 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
775 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
776 |
ac_prev=x_libraries ;; |
|
777 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
778 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
779 |
x_libraries=$ac_optarg ;; |
|
780 |
||
781 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
|
782 |
Try \`$0 --help' for more information." >&2 |
|
783 |
{ (exit 1); exit 1; }; } |
|
784 |
;; |
|
785 |
||
786 |
*=*) |
|
787 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
788 |
# Reject names that are not valid shell variable names. |
|
789 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
|
790 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
|
791 |
{ (exit 1); exit 1; }; } |
|
792 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
|
793 |
eval "$ac_envvar='$ac_optarg'" |
|
794 |
export $ac_envvar ;; |
|
795 |
||
796 |
*) |
|
797 |
# FIXME: should be removed in autoconf 3.0. |
|
798 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
799 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
800 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
801 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
|
802 |
;; |
|
803 |
||
804 |
esac |
|
805 |
done |
|
806 |
||
807 |
if test -n "$ac_prev"; then |
|
808 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
809 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
|
810 |
{ (exit 1); exit 1; }; } |
|
811 |
fi |
|
812 |
||
813 |
# Be sure to have absolute paths. |
|
814 |
for ac_var in exec_prefix prefix |
|
815 |
do |
|
816 |
eval ac_val=$`echo $ac_var` |
|
817 |
case $ac_val in |
|
818 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
|
819 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|
820 |
{ (exit 1); exit 1; }; };; |
|
821 |
esac |
|
822 |
done |
|
823 |
||
824 |
# Be sure to have absolute paths. |
|
825 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
|
826 |
localstatedir libdir includedir oldincludedir infodir mandir |
|
827 |
do |
|
828 |
eval ac_val=$`echo $ac_var` |
|
829 |
case $ac_val in |
|
830 |
[\\/$]* | ?:[\\/]* ) ;; |
|
831 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|
832 |
{ (exit 1); exit 1; }; };; |
|
833 |
esac |
|
834 |
done |
|
835 |
||
836 |
# There might be people who depend on the old broken behavior: `$host' |
|
837 |
# used to hold the argument of --host etc. |
|
838 |
# FIXME: To remove some day. |
|
839 |
build=$build_alias |
|
840 |
host=$host_alias |
|
841 |
target=$target_alias |
|
842 |
||
843 |
# FIXME: To remove some day. |
|
844 |
if test "x$host_alias" != x; then |
|
845 |
if test "x$build_alias" = x; then |
|
846 |
cross_compiling=maybe |
|
847 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
848 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
|
849 |
elif test "x$build_alias" != "x$host_alias"; then |
|
850 |
cross_compiling=yes |
|
851 |
fi |
|
852 |
fi |
|
853 |
||
854 |
ac_tool_prefix= |
|
855 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
856 |
||
857 |
test "$silent" = yes && exec 6>/dev/null |
|
858 |
||
859 |
||
860 |
# Find the source files, if location was not specified. |
|
861 |
if test -z "$srcdir"; then |
|
862 |
ac_srcdir_defaulted=yes |
|
863 |
# Try the directory containing this script, then its parent. |
|
864 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
|
865 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
866 |
X"$0" : 'X\(//\)[^/]' \| \ |
|
867 |
X"$0" : 'X\(//\)$' \| \ |
|
868 |
X"$0" : 'X\(/\)' \| \ |
|
869 |
. : '\(.\)' 2>/dev/null || |
|
870 |
echo X"$0" | |
|
871 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
872 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
873 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
874 |
/^X\(\/\).*/{ s//\1/; q; } |
|
875 |
s/.*/./; q'` |
|
876 |
srcdir=$ac_confdir |
|
877 |
if test ! -r $srcdir/$ac_unique_file; then |
|
878 |
srcdir=.. |
|
879 |
fi |
|
880 |
else |
|
881 |
ac_srcdir_defaulted=no |
|
882 |
fi |
|
883 |
if test ! -r $srcdir/$ac_unique_file; then |
|
884 |
if test "$ac_srcdir_defaulted" = yes; then |
|
885 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
|
886 |
{ (exit 1); exit 1; }; } |
|
887 |
else |
|
888 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
|
889 |
{ (exit 1); exit 1; }; } |
|
890 |
fi |
|
891 |
fi |
|
892 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
|
893 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
|
894 |
{ (exit 1); exit 1; }; } |
|
895 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
|
896 |
ac_env_build_alias_set=${build_alias+set} |
|
897 |
ac_env_build_alias_value=$build_alias |
|
898 |
ac_cv_env_build_alias_set=${build_alias+set} |
|
899 |
ac_cv_env_build_alias_value=$build_alias |
|
900 |
ac_env_host_alias_set=${host_alias+set} |
|
901 |
ac_env_host_alias_value=$host_alias |
|
902 |
ac_cv_env_host_alias_set=${host_alias+set} |
|
903 |
ac_cv_env_host_alias_value=$host_alias |
|
904 |
ac_env_target_alias_set=${target_alias+set} |
|
905 |
ac_env_target_alias_value=$target_alias |
|
906 |
ac_cv_env_target_alias_set=${target_alias+set} |
|
907 |
ac_cv_env_target_alias_value=$target_alias |
|
908 |
ac_env_CC_set=${CC+set} |
|
909 |
ac_env_CC_value=$CC |
|
910 |
ac_cv_env_CC_set=${CC+set} |
|
911 |
ac_cv_env_CC_value=$CC |
|
912 |
ac_env_CFLAGS_set=${CFLAGS+set} |
|
913 |
ac_env_CFLAGS_value=$CFLAGS |
|
914 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
|
915 |
ac_cv_env_CFLAGS_value=$CFLAGS |
|
916 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
|
917 |
ac_env_LDFLAGS_value=$LDFLAGS |
|
918 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
|
919 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
|
920 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
921 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
|
922 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
923 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
|
924 |
ac_env_CPP_set=${CPP+set} |
|
925 |
ac_env_CPP_value=$CPP |
|
926 |
ac_cv_env_CPP_set=${CPP+set} |
|
927 |
ac_cv_env_CPP_value=$CPP |
|
928 |
ac_env_CXX_set=${CXX+set} |
|
929 |
ac_env_CXX_value=$CXX |
|
930 |
ac_cv_env_CXX_set=${CXX+set} |
|
931 |
ac_cv_env_CXX_value=$CXX |
|
932 |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
|
933 |
ac_env_CXXFLAGS_value=$CXXFLAGS |
|
934 |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
|
935 |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
|
936 |
ac_env_CXXCPP_set=${CXXCPP+set} |
|
937 |
ac_env_CXXCPP_value=$CXXCPP |
|
938 |
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
|
939 |
ac_cv_env_CXXCPP_value=$CXXCPP |
|
940 |
ac_env_F77_set=${F77+set} |
|
941 |
ac_env_F77_value=$F77 |
|
942 |
ac_cv_env_F77_set=${F77+set} |
|
943 |
ac_cv_env_F77_value=$F77 |
|
944 |
ac_env_FFLAGS_set=${FFLAGS+set} |
|
945 |
ac_env_FFLAGS_value=$FFLAGS |
|
946 |
ac_cv_env_FFLAGS_set=${FFLAGS+set} |
|
947 |
ac_cv_env_FFLAGS_value=$FFLAGS |
|
948 |
||
949 |
# |
|
950 |
# Report the --help message. |
|
951 |
# |
|
952 |
if test "$ac_init_help" = "long"; then |
|
953 |
# Omit some internal or obsolete options to make the list less imposing. |
|
954 |
# This message is too long to be a string in the A/UX 3.1 sh. |
|
955 |
cat <<_ACEOF |
|
956 |
\`configure' configures this package to adapt to many kinds of systems. |
|
957 |
||
958 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
|
959 |
||
960 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
961 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
|
962 |
||
963 |
Defaults for the options are specified in brackets. |
|
964 |
||
965 |
Configuration: |
|
966 |
-h, --help display this help and exit |
|
967 |
--help=short display options specific to this package |
|
968 |
--help=recursive display the short help of all the included packages |
|
969 |
-V, --version display version information and exit |
|
970 |
-q, --quiet, --silent do not print \`checking...' messages |
|
971 |
--cache-file=FILE cache test results in FILE [disabled] |
|
972 |
-C, --config-cache alias for \`--cache-file=config.cache' |
|
973 |
-n, --no-create do not create output files |
|
974 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
975 |
||
976 |
_ACEOF |
|
977 |
||
978 |
cat <<_ACEOF |
|
979 |
Installation directories: |
|
980 |
--prefix=PREFIX install architecture-independent files in PREFIX |
|
981 |
[$ac_default_prefix] |
|
982 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
983 |
[PREFIX] |
|
984 |
||
985 |
By default, \`make install' will install all the files in |
|
986 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
987 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
988 |
for instance \`--prefix=\$HOME'. |
|
989 |
||
990 |
For better control, use the options below. |
|
991 |
||
992 |
Fine tuning of the installation directories: |
|
993 |
--bindir=DIR user executables [EPREFIX/bin] |
|
994 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
|
995 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
|
996 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
|
997 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
998 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
999 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
1000 |
--libdir=DIR object code libraries [EPREFIX/lib] |
|
1001 |
--includedir=DIR C header files [PREFIX/include] |
|
1002 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1003 |
--infodir=DIR info documentation [PREFIX/info] |
|
1004 |
--mandir=DIR man documentation [PREFIX/man] |
|
1005 |
_ACEOF |
|
1006 |
||
1007 |
cat <<\_ACEOF |
|
1008 |
||
1009 |
Program names: |
|
1010 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
|
1011 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
|
1012 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
|
1013 |
||
1014 |
System types: |
|
1015 |
--build=BUILD configure for building on BUILD [guessed] |
|
1016 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
1017 |
--target=TARGET configure for building compilers for TARGET [HOST] |
|
1018 |
_ACEOF |
|
1019 |
fi |
|
1020 |
||
1021 |
if test -n "$ac_init_help"; then |
|
1022 |
||
1023 |
cat <<\_ACEOF |
|
1024 |
||
1025 |
Optional Features: |
|
1026 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1027 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1028 |
--disable-fast-perl disable fast Makefile generation (needs perl) |
|
1029 |
--enable-debug=ARG enables debug symbols (yes|no|full) default=no |
|
1030 |
--disable-debug disables debug output and debug symbols default=no |
|
1031 |
--enable-strict compiles with strict compiler options (may not |
|
1032 |
work!) |
|
1033 |
--disable-warnings disables compilation with -Wall and similar |
|
1034 |
--enable-profile creates profiling infos default=no |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
1035 |
--disable-dependency-tracking speeds up one-time build |
1036 |
--enable-dependency-tracking do not reject slow dependency extractors |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
1037 |
--enable-pch enables precompiled header support (currently only |
1038 |
KCC or gcc >=3.4+unsermake) default=no |
|
1039 |
--enable-coverage use gcc coverage testing |
|
1040 |
--enable-new-ldflags enable the new linker flags |
|
1041 |
--enable-final build size optimized apps (experimental - needs lots |
|
1042 |
of memory) |
|
1043 |
--enable-closure delay template instantiation |
|
1044 |
--enable-nmcheck enable automatic namespace cleanness check |
|
1045 |
--enable-shared[=PKGS] |
|
1046 |
build shared libraries [default=yes] |
|
1047 |
--enable-static[=PKGS] |
|
1048 |
build static libraries [default=no] |
|
1049 |
--enable-libsuffix /lib directory suffix (64,32,none=default) |
|
1050 |
--enable-fast-install[=PKGS] |
|
1051 |
optimize for fast installation [default=yes] |
|
1052 |
--disable-libtool-lock avoid locking (might break parallel builds) |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
1053 |
--enable-pie platform supports PIE linking default=detect |
1
by Achim Bohnet
Import upstream version 0.1.1 |
1054 |
--enable-embedded link to Qt-embedded, don't use X |
1055 |
--enable-qtopia link to Qt-embedded, link to the Qtopia Environment |
|
1056 |
--enable-mac link to Qt/Mac (don't use X) |
|
1057 |
--disable-mt link to non-threaded Qt (deprecated) |
|
1058 |
--disable-threading disables threading even if libpthread found |
|
1059 |
--disable-rpath do not use the rpath feature of ld |
|
1060 |
--disable-path-check don't try to find out, where to install |
|
1061 |
||
1062 |
Optional Packages: |
|
1063 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
1064 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
1065 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
1066 |
--with-pic try to use only PIC/non-PIC objects [default=use |
|
1067 |
both] |
|
1068 |
--with-tags[=TAGS] |
|
1069 |
include additional configurations [automatic] |
|
1070 |
--with-extra-includes=DIR |
|
1071 |
adds non standard include paths |
|
1072 |
--with-extra-libs=DIR adds non standard library paths |
|
1073 |
--with-qt-dir=DIR where the root of Qt is installed |
|
1074 |
--with-qt-includes=DIR where the Qt includes are. |
|
1075 |
--with-qt-libraries=DIR where the Qt library is installed. |
|
1076 |
--without-arts build without aRts default=no |
|
1077 |
||
1078 |
Some influential environment variables: |
|
1079 |
CC C compiler command |
|
1080 |
CFLAGS C compiler flags |
|
1081 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
1082 |
nonstandard directory <lib dir> |
|
1083 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
|
1084 |
headers in a nonstandard directory <include dir> |
|
1085 |
CPP C preprocessor |
|
1086 |
CXX C++ compiler command |
|
1087 |
CXXFLAGS C++ compiler flags |
|
1088 |
CXXCPP C++ preprocessor |
|
1089 |
F77 Fortran 77 compiler command |
|
1090 |
FFLAGS Fortran 77 compiler flags |
|
1091 |
||
1092 |
Use these variables to override the choices made by `configure' or to help |
|
1093 |
it to find libraries and programs with nonstandard names/locations. |
|
1094 |
||
1095 |
_ACEOF |
|
1096 |
fi |
|
1097 |
||
1098 |
if test "$ac_init_help" = "recursive"; then |
|
1099 |
# If there are subdirs, report their specific --help. |
|
1100 |
ac_popdir=`pwd` |
|
1101 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1102 |
test -d $ac_dir || continue |
|
1103 |
ac_builddir=. |
|
1104 |
||
1105 |
if test "$ac_dir" != .; then |
|
1106 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
1107 |
# A "../" for each directory in $ac_dir_suffix. |
|
1108 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
1109 |
else |
|
1110 |
ac_dir_suffix= ac_top_builddir= |
|
1111 |
fi |
|
1112 |
||
1113 |
case $srcdir in |
|
1114 |
.) # No --srcdir option. We are building in place. |
|
1115 |
ac_srcdir=. |
|
1116 |
if test -z "$ac_top_builddir"; then |
|
1117 |
ac_top_srcdir=. |
|
1118 |
else |
|
1119 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
1120 |
fi ;; |
|
1121 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
1122 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
1123 |
ac_top_srcdir=$srcdir ;; |
|
1124 |
*) # Relative path. |
|
1125 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
1126 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
1127 |
esac |
|
1128 |
||
1129 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
|
1130 |
# the directories may not exist. |
|
1131 |
case `pwd` in |
|
1132 |
.) ac_abs_builddir="$ac_dir";; |
|
1133 |
*) |
|
1134 |
case "$ac_dir" in |
|
1135 |
.) ac_abs_builddir=`pwd`;; |
|
1136 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
1137 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
1138 |
esac;; |
|
1139 |
esac |
|
1140 |
case $ac_abs_builddir in |
|
1141 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
1142 |
*) |
|
1143 |
case ${ac_top_builddir}. in |
|
1144 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
1145 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
1146 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
1147 |
esac;; |
|
1148 |
esac |
|
1149 |
case $ac_abs_builddir in |
|
1150 |
.) ac_abs_srcdir=$ac_srcdir;; |
|
1151 |
*) |
|
1152 |
case $ac_srcdir in |
|
1153 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
1154 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
1155 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
1156 |
esac;; |
|
1157 |
esac |
|
1158 |
case $ac_abs_builddir in |
|
1159 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
1160 |
*) |
|
1161 |
case $ac_top_srcdir in |
|
1162 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
1163 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
1164 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
1165 |
esac;; |
|
1166 |
esac |
|
1167 |
||
1168 |
cd $ac_dir |
|
1169 |
# Check for guested configure; otherwise get Cygnus style configure. |
|
1170 |
if test -f $ac_srcdir/configure.gnu; then |
|
1171 |
echo |
|
1172 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
|
1173 |
elif test -f $ac_srcdir/configure; then |
|
1174 |
echo |
|
1175 |
$SHELL $ac_srcdir/configure --help=recursive |
|
1176 |
elif test -f $ac_srcdir/configure.ac || |
|
1177 |
test -f $ac_srcdir/configure.in; then |
|
1178 |
echo |
|
1179 |
$ac_configure --help |
|
1180 |
else |
|
1181 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1182 |
fi |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
1183 |
cd "$ac_popdir" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
1184 |
done |
1185 |
fi |
|
1186 |
||
1187 |
test -n "$ac_init_help" && exit 0 |
|
1188 |
if $ac_init_version; then |
|
1189 |
cat <<\_ACEOF |
|
1190 |
||
1191 |
Copyright (C) 2003 Free Software Foundation, Inc. |
|
1192 |
This configure script is free software; the Free Software Foundation |
|
1193 |
gives unlimited permission to copy, distribute and modify it. |
|
1194 |
_ACEOF |
|
1195 |
exit 0 |
|
1196 |
fi |
|
1197 |
exec 5>config.log |
|
1198 |
cat >&5 <<_ACEOF |
|
1199 |
This file contains any messages produced by compilers while |
|
1200 |
running configure, to aid debugging if configure makes a mistake. |
|
1201 |
||
1202 |
It was created by $as_me, which was |
|
1203 |
generated by GNU Autoconf 2.59. Invocation command line was |
|
1204 |
||
1205 |
$ $0 $@ |
|
1206 |
||
1207 |
_ACEOF |
|
1208 |
{ |
|
1209 |
cat <<_ASUNAME |
|
1210 |
## --------- ## |
|
1211 |
## Platform. ## |
|
1212 |
## --------- ## |
|
1213 |
||
1214 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
1215 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
1216 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
1217 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
1218 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
1219 |
||
1220 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
1221 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
1222 |
||
1223 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
1224 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
1225 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
1226 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
|
1227 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
1228 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
1229 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
1230 |
||
1231 |
_ASUNAME |
|
1232 |
||
1233 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1234 |
for as_dir in $PATH |
|
1235 |
do |
|
1236 |
IFS=$as_save_IFS |
|
1237 |
test -z "$as_dir" && as_dir=. |
|
1238 |
echo "PATH: $as_dir" |
|
1239 |
done |
|
1240 |
||
1241 |
} >&5 |
|
1242 |
||
1243 |
cat >&5 <<_ACEOF |
|
1244 |
||
1245 |
||
1246 |
## ----------- ## |
|
1247 |
## Core tests. ## |
|
1248 |
## ----------- ## |
|
1249 |
||
1250 |
_ACEOF |
|
1251 |
||
1252 |
||
1253 |
# Keep a trace of the command line. |
|
1254 |
# Strip out --no-create and --no-recursion so they do not pile up. |
|
1255 |
# Strip out --silent because we don't want to record it for future runs. |
|
1256 |
# Also quote any args containing shell meta-characters. |
|
1257 |
# Make two passes to allow for proper duplicate-argument suppression. |
|
1258 |
ac_configure_args= |
|
1259 |
ac_configure_args0= |
|
1260 |
ac_configure_args1= |
|
1261 |
ac_sep= |
|
1262 |
ac_must_keep_next=false |
|
1263 |
for ac_pass in 1 2 |
|
1264 |
do |
|
1265 |
for ac_arg |
|
1266 |
do |
|
1267 |
case $ac_arg in |
|
1268 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
1269 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1270 |
| -silent | --silent | --silen | --sile | --sil) |
|
1271 |
continue ;; |
|
1272 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|
1273 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1274 |
esac |
|
1275 |
case $ac_pass in |
|
1276 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
|
1277 |
2) |
|
1278 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
|
1279 |
if test $ac_must_keep_next = true; then |
|
1280 |
ac_must_keep_next=false # Got value, back to normal. |
|
1281 |
else |
|
1282 |
case $ac_arg in |
|
1283 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
|
1284 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
1285 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
1286 |
| -with-* | --with-* | -without-* | --without-* | --x) |
|
1287 |
case "$ac_configure_args0 " in |
|
1288 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
1289 |
esac |
|
1290 |
;; |
|
1291 |
-* ) ac_must_keep_next=true ;; |
|
1292 |
esac |
|
1293 |
fi |
|
1294 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
|
1295 |
# Get rid of the leading space. |
|
1296 |
ac_sep=" " |
|
1297 |
;; |
|
1298 |
esac |
|
1299 |
done |
|
1300 |
done |
|
1301 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
|
1302 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
|
1303 |
||
1304 |
# When interrupted or exit'd, cleanup temporary files, and complete |
|
1305 |
# config.log. We remove comments because anyway the quotes in there |
|
1306 |
# would cause problems or look ugly. |
|
1307 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
|
1308 |
# such as our DU 5.0 friend, will then `close' the trap. |
|
1309 |
trap 'exit_status=$? |
|
1310 |
# Save into config.log some information that might help in debugging. |
|
1311 |
{ |
|
1312 |
echo |
|
1313 |
||
1314 |
cat <<\_ASBOX |
|
1315 |
## ---------------- ## |
|
1316 |
## Cache variables. ## |
|
1317 |
## ---------------- ## |
|
1318 |
_ASBOX |
|
1319 |
echo |
|
1320 |
# The following way of writing the cache mishandles newlines in values, |
|
1321 |
{ |
|
1322 |
(set) 2>&1 | |
|
1323 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
|
1324 |
*ac_space=\ *) |
|
1325 |
sed -n \ |
|
1326 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
|
1327 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
|
1328 |
;; |
|
1329 |
*) |
|
1330 |
sed -n \ |
|
1331 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|
1332 |
;; |
|
1333 |
esac; |
|
1334 |
} |
|
1335 |
echo |
|
1336 |
||
1337 |
cat <<\_ASBOX |
|
1338 |
## ----------------- ## |
|
1339 |
## Output variables. ## |
|
1340 |
## ----------------- ## |
|
1341 |
_ASBOX |
|
1342 |
echo |
|
1343 |
for ac_var in $ac_subst_vars |
|
1344 |
do |
|
1345 |
eval ac_val=$`echo $ac_var` |
|
1346 |
echo "$ac_var='"'"'$ac_val'"'"'" |
|
1347 |
done | sort |
|
1348 |
echo |
|
1349 |
||
1350 |
if test -n "$ac_subst_files"; then |
|
1351 |
cat <<\_ASBOX |
|
1352 |
## ------------- ## |
|
1353 |
## Output files. ## |
|
1354 |
## ------------- ## |
|
1355 |
_ASBOX |
|
1356 |
echo |
|
1357 |
for ac_var in $ac_subst_files |
|
1358 |
do |
|
1359 |
eval ac_val=$`echo $ac_var` |
|
1360 |
echo "$ac_var='"'"'$ac_val'"'"'" |
|
1361 |
done | sort |
|
1362 |
echo |
|
1363 |
fi |
|
1364 |
||
1365 |
if test -s confdefs.h; then |
|
1366 |
cat <<\_ASBOX |
|
1367 |
## ----------- ## |
|
1368 |
## confdefs.h. ## |
|
1369 |
## ----------- ## |
|
1370 |
_ASBOX |
|
1371 |
echo |
|
1372 |
sed "/^$/d" confdefs.h | sort |
|
1373 |
echo |
|
1374 |
fi |
|
1375 |
test "$ac_signal" != 0 && |
|
1376 |
echo "$as_me: caught signal $ac_signal" |
|
1377 |
echo "$as_me: exit $exit_status" |
|
1378 |
} >&5 |
|
1379 |
rm -f core *.core && |
|
1380 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
|
1381 |
exit $exit_status |
|
1382 |
' 0 |
|
1383 |
for ac_signal in 1 2 13 15; do |
|
1384 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
|
1385 |
done |
|
1386 |
ac_signal=0 |
|
1387 |
||
1388 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
1389 |
rm -rf conftest* confdefs.h |
|
1390 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
|
1391 |
echo >confdefs.h |
|
1392 |
||
1393 |
# Predefined preprocessor variables. |
|
1394 |
||
1395 |
cat >>confdefs.h <<_ACEOF |
|
1396 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
|
1397 |
_ACEOF |
|
1398 |
||
1399 |
||
1400 |
cat >>confdefs.h <<_ACEOF |
|
1401 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
1402 |
_ACEOF |
|
1403 |
||
1404 |
||
1405 |
cat >>confdefs.h <<_ACEOF |
|
1406 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
1407 |
_ACEOF |
|
1408 |
||
1409 |
||
1410 |
cat >>confdefs.h <<_ACEOF |
|
1411 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
|
1412 |
_ACEOF |
|
1413 |
||
1414 |
||
1415 |
cat >>confdefs.h <<_ACEOF |
|
1416 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
1417 |
_ACEOF |
|
1418 |
||
1419 |
||
1420 |
# Let the site file select an alternate cache file if it wants to. |
|
1421 |
# Prefer explicitly selected file to automatically selected ones. |
|
1422 |
if test -z "$CONFIG_SITE"; then |
|
1423 |
if test "x$prefix" != xNONE; then |
|
1424 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
|
1425 |
else |
|
1426 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
|
1427 |
fi |
|
1428 |
fi |
|
1429 |
for ac_site_file in $CONFIG_SITE; do |
|
1430 |
if test -r "$ac_site_file"; then |
|
1431 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
|
1432 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
|
1433 |
sed 's/^/| /' "$ac_site_file" >&5 |
|
1434 |
. "$ac_site_file" |
|
1435 |
fi |
|
1436 |
done |
|
1437 |
||
1438 |
if test -r "$cache_file"; then |
|
1439 |
# Some versions of bash will fail to source /dev/null (special |
|
1440 |
# files actually), so we avoid doing that. |
|
1441 |
if test -f "$cache_file"; then |
|
1442 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
|
1443 |
echo "$as_me: loading cache $cache_file" >&6;} |
|
1444 |
case $cache_file in |
|
1445 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
|
1446 |
*) . ./$cache_file;; |
|
1447 |
esac |
|
1448 |
fi |
|
1449 |
else |
|
1450 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
|
1451 |
echo "$as_me: creating cache $cache_file" >&6;} |
|
1452 |
>$cache_file |
|
1453 |
fi |
|
1454 |
||
1455 |
# Check that the precious variables saved in the cache have kept the same |
|
1456 |
# value. |
|
1457 |
ac_cache_corrupted=false |
|
1458 |
for ac_var in `(set) 2>&1 | |
|
1459 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
|
1460 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
1461 |
eval ac_new_set=\$ac_env_${ac_var}_set |
|
1462 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
|
1463 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
|
1464 |
case $ac_old_set,$ac_new_set in |
|
1465 |
set,) |
|
1466 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
1467 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
1468 |
ac_cache_corrupted=: ;; |
|
1469 |
,set) |
|
1470 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
|
1471 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
1472 |
ac_cache_corrupted=: ;; |
|
1473 |
,);; |
|
1474 |
*) |
|
1475 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
|
1476 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
|
1477 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
1478 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|
1479 |
echo "$as_me: former value: $ac_old_val" >&2;} |
|
1480 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|
1481 |
echo "$as_me: current value: $ac_new_val" >&2;} |
|
1482 |
ac_cache_corrupted=: |
|
1483 |
fi;; |
|
1484 |
esac |
|
1485 |
# Pass precious variables to config.status. |
|
1486 |
if test "$ac_new_set" = set; then |
|
1487 |
case $ac_new_val in |
|
1488 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|
1489 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1490 |
*) ac_arg=$ac_var=$ac_new_val ;; |
|
1491 |
esac |
|
1492 |
case " $ac_configure_args " in |
|
1493 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
1494 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
1495 |
esac |
|
1496 |
fi |
|
1497 |
done |
|
1498 |
if $ac_cache_corrupted; then |
|
1499 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
|
1500 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
1501 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
|
1502 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
|
1503 |
{ (exit 1); exit 1; }; } |
|
1504 |
fi |
|
1505 |
||
1506 |
ac_ext=c |
|
1507 |
ac_cpp='$CPP $CPPFLAGS' |
|
1508 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
1509 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
1510 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
1511 |
||
1512 |
||
1513 |
||
1514 |
||
1515 |
||
1516 |
||
1517 |
||
1518 |
||
1519 |
||
1520 |
||
1521 |
||
1522 |
||
1523 |
||
1524 |
||
1525 |
||
1526 |
||
1527 |
||
1528 |
||
1529 |
||
1530 |
ac_aux_dir= |
|
1531 |
for ac_dir in admin $srcdir/admin; do |
|
1532 |
if test -f $ac_dir/install-sh; then |
|
1533 |
ac_aux_dir=$ac_dir |
|
1534 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
|
1535 |
break |
|
1536 |
elif test -f $ac_dir/install.sh; then |
|
1537 |
ac_aux_dir=$ac_dir |
|
1538 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
|
1539 |
break |
|
1540 |
elif test -f $ac_dir/shtool; then |
|
1541 |
ac_aux_dir=$ac_dir |
|
1542 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
|
1543 |
break |
|
1544 |
fi |
|
1545 |
done |
|
1546 |
if test -z "$ac_aux_dir"; then |
|
1547 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5 |
|
1548 |
echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;} |
|
1549 |
{ (exit 1); exit 1; }; } |
|
1550 |
fi |
|
1551 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
|
1552 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
|
1553 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
|
1554 |
||
1555 |
||
1556 |
unset CDPATH |
|
1557 |
||
1558 |
# Make sure we can run config.sub. |
|
1559 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
|
1560 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
1561 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
1562 |
{ (exit 1); exit 1; }; } |
|
1563 |
||
1564 |
echo "$as_me:$LINENO: checking build system type" >&5 |
|
1565 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
1566 |
if test "${ac_cv_build+set}" = set; then |
|
1567 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1568 |
else |
|
1569 |
ac_cv_build_alias=$build_alias |
|
1570 |
test -z "$ac_cv_build_alias" && |
|
1571 |
ac_cv_build_alias=`$ac_config_guess` |
|
1572 |
test -z "$ac_cv_build_alias" && |
|
1573 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
1574 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
1575 |
{ (exit 1); exit 1; }; } |
|
1576 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
1577 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
1578 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
1579 |
{ (exit 1); exit 1; }; } |
|
1580 |
||
1581 |
fi |
|
1582 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
1583 |
echo "${ECHO_T}$ac_cv_build" >&6 |
|
1584 |
build=$ac_cv_build |
|
1585 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
1586 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
1587 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
1588 |
||
1589 |
||
1590 |
echo "$as_me:$LINENO: checking host system type" >&5 |
|
1591 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
1592 |
if test "${ac_cv_host+set}" = set; then |
|
1593 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1594 |
else |
|
1595 |
ac_cv_host_alias=$host_alias |
|
1596 |
test -z "$ac_cv_host_alias" && |
|
1597 |
ac_cv_host_alias=$ac_cv_build_alias |
|
1598 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
1599 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
1600 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
1601 |
{ (exit 1); exit 1; }; } |
|
1602 |
||
1603 |
fi |
|
1604 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
1605 |
echo "${ECHO_T}$ac_cv_host" >&6 |
|
1606 |
host=$ac_cv_host |
|
1607 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
1608 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
1609 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
1610 |
||
1611 |
||
1612 |
echo "$as_me:$LINENO: checking target system type" >&5 |
|
1613 |
echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
|
1614 |
if test "${ac_cv_target+set}" = set; then |
|
1615 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1616 |
else |
|
1617 |
ac_cv_target_alias=$target_alias |
|
1618 |
test "x$ac_cv_target_alias" = "x" && |
|
1619 |
ac_cv_target_alias=$ac_cv_host_alias |
|
1620 |
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
|
1621 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
|
1622 |
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
|
1623 |
{ (exit 1); exit 1; }; } |
|
1624 |
||
1625 |
fi |
|
1626 |
echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
|
1627 |
echo "${ECHO_T}$ac_cv_target" >&6 |
|
1628 |
target=$ac_cv_target |
|
1629 |
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
1630 |
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
1631 |
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
1632 |
||
1633 |
||
1634 |
# The aliases save the names the user supplied, while $host etc. |
|
1635 |
# will get canonicalized. |
|
1636 |
test -n "$target_alias" && |
|
1637 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
|
1638 |
NONENONEs,x,x, && |
|
1639 |
program_prefix=${target_alias}- |
|
1640 |
test "$program_prefix" != NONE && |
|
1641 |
program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
1642 |
# Use a double $ so make ignores it. |
|
1643 |
test "$program_suffix" != NONE && |
|
1644 |
program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
1645 |
# Double any \ or $. echo might interpret backslashes. |
|
1646 |
# By default was `s,x,x', remove it if useless. |
|
1647 |
cat <<\_ACEOF >conftest.sed |
|
1648 |
s/[\\$]/&&/g;s/;s,x,x,$// |
|
1649 |
_ACEOF |
|
1650 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
1651 |
rm conftest.sed |
|
1652 |
||
1653 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
1654 |
am__api_version="1.9" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
1655 |
|
1656 |
||
1657 |
test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL |
|
1658 |
test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM |
|
1659 |
test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT |
|
1660 |
# Find a good install program. We prefer a C program (faster), |
|
1661 |
# so one script is as good as another. But avoid the broken or |
|
1662 |
# incompatible versions: |
|
1663 |
# SysV /etc/install, /usr/sbin/install |
|
1664 |
# SunOS /usr/etc/install |
|
1665 |
# IRIX /sbin/install |
|
1666 |
# AIX /bin/install |
|
1667 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
|
1668 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
1669 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
1670 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
1671 |
# OS/2's system install, which has a completely different semantic |
|
1672 |
# ./install, which can be erroneously created by make from ./install.sh. |
|
1673 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
|
1674 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
|
1675 |
if test -z "$INSTALL"; then |
|
1676 |
if test "${ac_cv_path_install+set}" = set; then |
|
1677 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1678 |
else |
|
1679 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1680 |
for as_dir in $PATH |
|
1681 |
do |
|
1682 |
IFS=$as_save_IFS |
|
1683 |
test -z "$as_dir" && as_dir=. |
|
1684 |
# Account for people who put trailing slashes in PATH elements. |
|
1685 |
case $as_dir/ in |
|
1686 |
./ | .// | /cC/* | \ |
|
1687 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
1688 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
|
1689 |
/usr/ucb/* ) ;; |
|
1690 |
*) |
|
1691 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
|
1692 |
# Don't use installbsd from OSF since it installs stuff as root |
|
1693 |
# by default. |
|
1694 |
for ac_prog in ginstall scoinst install; do |
|
1695 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1696 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
|
1697 |
if test $ac_prog = install && |
|
1698 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
1699 |
# AIX install. It has an incompatible calling convention. |
|
1700 |
: |
|
1701 |
elif test $ac_prog = install && |
|
1702 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
1703 |
# program-specific install script used by HP pwplus--don't use. |
|
1704 |
: |
|
1705 |
else |
|
1706 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
1707 |
break 3 |
|
1708 |
fi |
|
1709 |
fi |
|
1710 |
done |
|
1711 |
done |
|
1712 |
;; |
|
1713 |
esac |
|
1714 |
done |
|
1715 |
||
1716 |
||
1717 |
fi |
|
1718 |
if test "${ac_cv_path_install+set}" = set; then |
|
1719 |
INSTALL=$ac_cv_path_install |
|
1720 |
else |
|
1721 |
# As a last resort, use the slow shell script. We don't cache a |
|
1722 |
# path for INSTALL within a source directory, because that will |
|
1723 |
# break other packages using the cache if that directory is |
|
1724 |
# removed, or if the path is relative. |
|
1725 |
INSTALL=$ac_install_sh |
|
1726 |
fi |
|
1727 |
fi |
|
1728 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
|
1729 |
echo "${ECHO_T}$INSTALL" >&6 |
|
1730 |
||
1731 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
1732 |
# It thinks the first close brace ends the variable substitution. |
|
1733 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
1734 |
||
1735 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
1736 |
||
1737 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
1738 |
||
1739 |
||
1740 |
if test -z "$kde_save_INSTALL_given" ; then |
|
1741 |
# OK, user hasn't given any INSTALL, autoconf found one for us |
|
1742 |
# now we test, if it supports the -p flag |
|
1743 |
echo "$as_me:$LINENO: checking for -p flag to install" >&5 |
|
1744 |
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6 |
|
1745 |
rm -f confinst.$$.* > /dev/null 2>&1 |
|
1746 |
echo "Testtest" > confinst.$$.orig |
|
1747 |
ac_res=no |
|
1748 |
if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then |
|
1749 |
if test -f confinst.$$.new ; then |
|
1750 |
# OK, -p seems to do no harm to install |
|
1751 |
INSTALL="${INSTALL} -p" |
|
1752 |
ac_res=yes |
|
1753 |
fi |
|
1754 |
fi |
|
1755 |
rm -f confinst.$$.* |
|
1756 |
echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
1757 |
echo "${ECHO_T}$ac_res" >&6 |
|
1758 |
fi |
|
1759 |
||
1760 |
if test -z "$kde_save_INSTALL_PROGRAM_given" ; then |
|
1761 |
INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)' |
|
1762 |
fi |
|
1763 |
if test -z "$kde_save_INSTALL_SCRIPT_given" ; then |
|
1764 |
INSTALL_SCRIPT='${INSTALL}' |
|
1765 |
fi |
|
1766 |
||
1767 |
echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
|
1768 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
|
1769 |
# Just in case |
|
1770 |
sleep 1 |
|
1771 |
echo timestamp > conftest.file |
|
1772 |
# Do `set' in a subshell so we don't clobber the current shell's |
|
1773 |
# arguments. Must try -L first in case configure is actually a |
|
1774 |
# symlink; some systems play weird games with the mod time of symlinks |
|
1775 |
# (eg FreeBSD returns the mod time of the symlink's containing |
|
1776 |
# directory). |
|
1777 |
if ( |
|
1778 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|
1779 |
if test "$*" = "X"; then |
|
1780 |
# -L didn't work. |
|
1781 |
set X `ls -t $srcdir/configure conftest.file` |
|
1782 |
fi |
|
1783 |
rm -f conftest.file |
|
1784 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
|
1785 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
|
1786 |
||
1787 |
# If neither matched, then we have a broken ls. This can happen |
|
1788 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
|
1789 |
# broken ls alias from the environment. This has actually |
|
1790 |
# happened. Such a system could not be considered "sane". |
|
1791 |
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
|
1792 |
alias in your environment" >&5 |
|
1793 |
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
|
1794 |
alias in your environment" >&2;} |
|
1795 |
{ (exit 1); exit 1; }; } |
|
1796 |
fi |
|
1797 |
||
1798 |
test "$2" = conftest.file |
|
1799 |
) |
|
1800 |
then |
|
1801 |
# Ok. |
|
1802 |
: |
|
1803 |
else |
|
1804 |
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
|
1805 |
Check your system clock" >&5 |
|
1806 |
echo "$as_me: error: newly created file is older than distributed files! |
|
1807 |
Check your system clock" >&2;} |
|
1808 |
{ (exit 1); exit 1; }; } |
|
1809 |
fi |
|
1810 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
1811 |
echo "${ECHO_T}yes" >&6 |
|
1812 |
# expand $ac_aux_dir to an absolute path |
|
1813 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
|
1814 |
||
1815 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|
1816 |
# Use eval to expand $SHELL |
|
1817 |
if eval "$MISSING --run true"; then |
|
1818 |
am_missing_run="$MISSING --run " |
|
1819 |
else |
|
1820 |
am_missing_run= |
|
1821 |
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
|
1822 |
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
|
1823 |
fi |
|
1824 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
1825 |
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1826 |
# We used to keeping the `.' as first argument, in order to |
|
1827 |
# allow $(mkdir_p) to be used without argument. As in |
|
1828 |
# $(mkdir_p) $(somedir) |
|
1829 |
# where $(somedir) is conditionally defined. However this is wrong |
|
1830 |
# for two reasons: |
|
1831 |
# 1. if the package is installed by a user who cannot write `.' |
|
1832 |
# make install will fail, |
|
1833 |
# 2. the above comment should most certainly read |
|
1834 |
# $(mkdir_p) $(DESTDIR)$(somedir) |
|
1835 |
# so it does not work when $(somedir) is undefined and |
|
1836 |
# $(DESTDIR) is not. |
|
1837 |
# To support the latter case, we have to write |
|
1838 |
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
|
1839 |
# so the `.' trick is pointless. |
|
1840 |
mkdir_p='mkdir -p --' |
|
1841 |
else |
|
1842 |
# On NextStep and OpenStep, the `mkdir' command does not |
|
1843 |
# recognize any option. It will interpret all options as |
|
1844 |
# directories to create, and then abort because `.' already |
|
1845 |
# exists. |
|
1846 |
for d in ./-p ./--version; |
|
1847 |
do |
|
1848 |
test -d $d && rmdir $d |
|
1849 |
done |
|
1850 |
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
|
1851 |
if test -f "$ac_aux_dir/mkinstalldirs"; then |
|
1852 |
mkdir_p='$(mkinstalldirs)' |
|
1853 |
else |
|
1854 |
mkdir_p='$(install_sh) -d' |
|
1855 |
fi |
|
1856 |
fi |
|
1857 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
1858 |
for ac_prog in gawk mawk nawk awk |
1859 |
do |
|
1860 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
1861 |
set dummy $ac_prog; ac_word=$2 |
|
1862 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
1863 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
1864 |
if test "${ac_cv_prog_AWK+set}" = set; then |
|
1865 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1866 |
else |
|
1867 |
if test -n "$AWK"; then |
|
1868 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
1869 |
else |
|
1870 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1871 |
for as_dir in $PATH |
|
1872 |
do |
|
1873 |
IFS=$as_save_IFS |
|
1874 |
test -z "$as_dir" && as_dir=. |
|
1875 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1876 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
1877 |
ac_cv_prog_AWK="$ac_prog" |
|
1878 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
1879 |
break 2 |
|
1880 |
fi |
|
1881 |
done |
|
1882 |
done |
|
1883 |
||
1884 |
fi |
|
1885 |
fi |
|
1886 |
AWK=$ac_cv_prog_AWK |
|
1887 |
if test -n "$AWK"; then |
|
1888 |
echo "$as_me:$LINENO: result: $AWK" >&5 |
|
1889 |
echo "${ECHO_T}$AWK" >&6 |
|
1890 |
else |
|
1891 |
echo "$as_me:$LINENO: result: no" >&5 |
|
1892 |
echo "${ECHO_T}no" >&6 |
|
1893 |
fi |
|
1894 |
||
1895 |
test -n "$AWK" && break |
|
1896 |
done |
|
1897 |
||
1898 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
|
1899 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
|
1900 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
|
1901 |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
|
1902 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1903 |
else |
|
1904 |
cat >conftest.make <<\_ACEOF |
|
1905 |
all: |
|
1906 |
@echo 'ac_maketemp="$(MAKE)"' |
|
1907 |
_ACEOF |
|
1908 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
1909 |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
|
1910 |
if test -n "$ac_maketemp"; then |
|
1911 |
eval ac_cv_prog_make_${ac_make}_set=yes |
|
1912 |
else |
|
1913 |
eval ac_cv_prog_make_${ac_make}_set=no |
|
1914 |
fi |
|
1915 |
rm -f conftest.make |
|
1916 |
fi |
|
1917 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
|
1918 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
1919 |
echo "${ECHO_T}yes" >&6 |
|
1920 |
SET_MAKE= |
|
1921 |
else |
|
1922 |
echo "$as_me:$LINENO: result: no" >&5 |
|
1923 |
echo "${ECHO_T}no" >&6 |
|
1924 |
SET_MAKE="MAKE=${MAKE-make}" |
|
1925 |
fi |
|
1926 |
||
1927 |
rm -rf .tst 2>/dev/null |
|
1928 |
mkdir .tst 2>/dev/null |
|
1929 |
if test -d .tst; then |
|
1930 |
am__leading_dot=. |
|
1931 |
else |
|
1932 |
am__leading_dot=_ |
|
1933 |
fi |
|
1934 |
rmdir .tst 2>/dev/null |
|
1935 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
1936 |
# test to see if srcdir already configured |
1
by Achim Bohnet
Import upstream version 0.1.1 |
1937 |
if test "`cd $srcdir && pwd`" != "`pwd`" && |
1938 |
test -f $srcdir/config.status; then |
|
1939 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
|
1940 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
|
1941 |
{ (exit 1); exit 1; }; } |
|
1942 |
fi |
|
1943 |
||
1944 |
# test whether we have cygpath |
|
1945 |
if test -z "$CYGPATH_W"; then |
|
1946 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
|
1947 |
CYGPATH_W='cygpath -w' |
|
1948 |
else |
|
1949 |
CYGPATH_W=echo |
|
1950 |
fi |
|
1951 |
fi |
|
1952 |
||
1953 |
||
1954 |
# Define the identity of the package. |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
1955 |
PACKAGE=libkipi-0.1.2 |
1956 |
VERSION="3.4.91" |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
1957 |
|
1958 |
||
1959 |
cat >>confdefs.h <<_ACEOF |
|
1960 |
#define PACKAGE "$PACKAGE" |
|
1961 |
_ACEOF |
|
1962 |
||
1963 |
||
1964 |
cat >>confdefs.h <<_ACEOF |
|
1965 |
#define VERSION "$VERSION" |
|
1966 |
_ACEOF |
|
1967 |
||
1968 |
# Some tools Automake needs. |
|
1969 |
||
1970 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
|
1971 |
||
1972 |
||
1973 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
|
1974 |
||
1975 |
||
1976 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
|
1977 |
||
1978 |
||
1979 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
|
1980 |
||
1981 |
||
1982 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
|
1983 |
||
1984 |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
|
1985 |
||
1986 |
# Installed binaries are usually stripped using `strip' when the user |
|
1987 |
# run `make install-strip'. However `strip' might not be the right |
|
1988 |
# tool to use in cross-compilation environments, therefore Automake |
|
1989 |
# will honor the `STRIP' environment variable to overrule this program. |
|
1990 |
if test "$cross_compiling" != no; then |
|
1991 |
if test -n "$ac_tool_prefix"; then |
|
1992 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
1993 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
1994 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
1995 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
1996 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
|
1997 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1998 |
else |
|
1999 |
if test -n "$STRIP"; then |
|
2000 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
2001 |
else |
|
2002 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2003 |
for as_dir in $PATH |
|
2004 |
do |
|
2005 |
IFS=$as_save_IFS |
|
2006 |
test -z "$as_dir" && as_dir=. |
|
2007 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2008 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2009 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
2010 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2011 |
break 2 |
|
2012 |
fi |
|
2013 |
done |
|
2014 |
done |
|
2015 |
||
2016 |
fi |
|
2017 |
fi |
|
2018 |
STRIP=$ac_cv_prog_STRIP |
|
2019 |
if test -n "$STRIP"; then |
|
2020 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
2021 |
echo "${ECHO_T}$STRIP" >&6 |
|
2022 |
else |
|
2023 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2024 |
echo "${ECHO_T}no" >&6 |
|
2025 |
fi |
|
2026 |
||
2027 |
fi |
|
2028 |
if test -z "$ac_cv_prog_STRIP"; then |
|
2029 |
ac_ct_STRIP=$STRIP |
|
2030 |
# Extract the first word of "strip", so it can be a program name with args. |
|
2031 |
set dummy strip; ac_word=$2 |
|
2032 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2033 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2034 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
2035 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2036 |
else |
|
2037 |
if test -n "$ac_ct_STRIP"; then |
|
2038 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
2039 |
else |
|
2040 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2041 |
for as_dir in $PATH |
|
2042 |
do |
|
2043 |
IFS=$as_save_IFS |
|
2044 |
test -z "$as_dir" && as_dir=. |
|
2045 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2046 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2047 |
ac_cv_prog_ac_ct_STRIP="strip" |
|
2048 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2049 |
break 2 |
|
2050 |
fi |
|
2051 |
done |
|
2052 |
done |
|
2053 |
||
2054 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
2055 |
fi |
|
2056 |
fi |
|
2057 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
2058 |
if test -n "$ac_ct_STRIP"; then |
|
2059 |
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
2060 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
2061 |
else |
|
2062 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2063 |
echo "${ECHO_T}no" >&6 |
|
2064 |
fi |
|
2065 |
||
2066 |
STRIP=$ac_ct_STRIP |
|
2067 |
else |
|
2068 |
STRIP="$ac_cv_prog_STRIP" |
|
2069 |
fi |
|
2070 |
||
2071 |
fi |
|
2072 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
|
2073 |
||
2074 |
# We need awk for the "check" target. The system "awk" is bad on |
|
2075 |
# some platforms. |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
2076 |
# Always define AMTAR for backward compatibility. |
2077 |
||
2078 |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
|
2079 |
||
2080 |
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
|
2081 |
||
2082 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
2083 |
|
2084 |
||
2085 |
||
2086 |
||
2087 |
unset CDPATH |
|
2088 |
||
2089 |
||
2090 |
||
2091 |
kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin" |
|
2092 |
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs" |
|
2093 |
if test -n "$KDEDIRS"; then |
|
2094 |
kde_save_IFS=$IFS |
|
2095 |
IFS=: |
|
2096 |
for dir in $KDEDIRS; do |
|
2097 |
kde_default_bindirs="$dir/bin $kde_default_bindirs " |
|
2098 |
done |
|
2099 |
IFS=$kde_save_IFS |
|
2100 |
fi |
|
2101 |
||
2102 |
if test "x$prefix" = "xNONE"; then |
|
2103 |
||
2104 |
echo "$as_me:$LINENO: checking for kde-config" >&5 |
|
2105 |
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6 |
|
2106 |
if test -n "$KDECONFIG"; then |
|
2107 |
kde_cv_path="$KDECONFIG"; |
|
2108 |
else |
|
2109 |
kde_cache=`echo kde-config | sed 'y%./+-%__p_%'` |
|
2110 |
||
2111 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
2112 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2113 |
else |
|
2114 |
||
2115 |
kde_cv_path="NONE" |
|
2116 |
kde_save_IFS=$IFS |
|
2117 |
IFS=':' |
|
2118 |
dirs="" |
|
2119 |
for dir in $PATH; do |
|
2120 |
dirs="$dirs $dir" |
|
2121 |
done |
|
2122 |
if test -z "prepend"; then dirs="$kde_default_bindirs $dirs" |
|
2123 |
else dirs="$dirs $kde_default_bindirs" |
|
2124 |
fi |
|
2125 |
IFS=$kde_save_IFS |
|
2126 |
||
2127 |
for dir in $dirs; do |
|
2128 |
if test -x "$dir/kde-config"; then |
|
2129 |
if test -n "" |
|
2130 |
then |
|
2131 |
evalstr="$dir/kde-config 2>&1 " |
|
2132 |
if eval $evalstr; then |
|
2133 |
kde_cv_path="$dir/kde-config" |
|
2134 |
break |
|
2135 |
fi |
|
2136 |
else |
|
2137 |
kde_cv_path="$dir/kde-config" |
|
2138 |
break |
|
2139 |
fi |
|
2140 |
fi |
|
2141 |
done |
|
2142 |
||
2143 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
2144 |
||
2145 |
||
2146 |
fi |
|
2147 |
||
2148 |
||
2149 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
2150 |
||
2151 |
fi |
|
2152 |
||
2153 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
2154 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
2155 |
echo "${ECHO_T}not found" >&6 |
|
2156 |
||
2157 |
{ { echo "$as_me:$LINENO: error: The important program kde-config was not found! |
|
2158 |
Please check whether you installed KDE correctly. |
|
2159 |
" >&5 |
|
2160 |
echo "$as_me: error: The important program kde-config was not found! |
|
2161 |
Please check whether you installed KDE correctly. |
|
2162 |
" >&2;} |
|
2163 |
{ (exit 1); exit 1; }; } |
|
2164 |
||
2165 |
else |
|
2166 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
2167 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
2168 |
KDECONFIG=$kde_cv_path |
|
2169 |
||
2170 |
fi |
|
2171 |
||
2172 |
else |
|
2173 |
kde_save_PATH="$PATH" |
|
2174 |
PATH="$exec_prefix/bin:$prefix/bin:$PATH" |
|
2175 |
||
2176 |
echo "$as_me:$LINENO: checking for kde-config" >&5 |
|
2177 |
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6 |
|
2178 |
if test -n "$KDECONFIG"; then |
|
2179 |
kde_cv_path="$KDECONFIG"; |
|
2180 |
else |
|
2181 |
kde_cache=`echo kde-config | sed 'y%./+-%__p_%'` |
|
2182 |
||
2183 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
2184 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2185 |
else |
|
2186 |
||
2187 |
kde_cv_path="NONE" |
|
2188 |
kde_save_IFS=$IFS |
|
2189 |
IFS=':' |
|
2190 |
dirs="" |
|
2191 |
for dir in $PATH; do |
|
2192 |
dirs="$dirs $dir" |
|
2193 |
done |
|
2194 |
if test -z "prepend"; then dirs="$kde_default_bindirs $dirs" |
|
2195 |
else dirs="$dirs $kde_default_bindirs" |
|
2196 |
fi |
|
2197 |
IFS=$kde_save_IFS |
|
2198 |
||
2199 |
for dir in $dirs; do |
|
2200 |
if test -x "$dir/kde-config"; then |
|
2201 |
if test -n "" |
|
2202 |
then |
|
2203 |
evalstr="$dir/kde-config 2>&1 " |
|
2204 |
if eval $evalstr; then |
|
2205 |
kde_cv_path="$dir/kde-config" |
|
2206 |
break |
|
2207 |
fi |
|
2208 |
else |
|
2209 |
kde_cv_path="$dir/kde-config" |
|
2210 |
break |
|
2211 |
fi |
|
2212 |
fi |
|
2213 |
done |
|
2214 |
||
2215 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
2216 |
||
2217 |
||
2218 |
fi |
|
2219 |
||
2220 |
||
2221 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
2222 |
||
2223 |
fi |
|
2224 |
||
2225 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
2226 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
2227 |
echo "${ECHO_T}not found" >&6 |
|
2228 |
||
2229 |
{ { echo "$as_me:$LINENO: error: The important program kde-config was not found! |
|
2230 |
Please check whether you installed KDE correctly. |
|
2231 |
" >&5 |
|
2232 |
echo "$as_me: error: The important program kde-config was not found! |
|
2233 |
Please check whether you installed KDE correctly. |
|
2234 |
" >&2;} |
|
2235 |
{ (exit 1); exit 1; }; } |
|
2236 |
||
2237 |
else |
|
2238 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
2239 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
2240 |
KDECONFIG=$kde_cv_path |
|
2241 |
||
2242 |
fi |
|
2243 |
||
2244 |
PATH="$kde_save_PATH" |
|
2245 |
fi |
|
2246 |
||
2247 |
kde_libs_prefix=`$KDECONFIG --prefix` |
|
2248 |
if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then |
|
2249 |
{ { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs. |
|
2250 |
This means it has been moved since you installed it. |
|
2251 |
This won't work. Please recompile kdelibs for the new prefix. |
|
2252 |
" >&5 |
|
2253 |
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs. |
|
2254 |
This means it has been moved since you installed it. |
|
2255 |
This won't work. Please recompile kdelibs for the new prefix. |
|
2256 |
" >&2;} |
|
2257 |
{ (exit 1); exit 1; }; } |
|
2258 |
fi |
|
2259 |
kde_libs_htmldir=`$KDECONFIG --install html --expandvars` |
|
2260 |
kde_libs_suffix=`$KDECONFIG --libsuffix` |
|
2261 |
||
2262 |
echo "$as_me:$LINENO: checking where to install" >&5 |
|
2263 |
echo $ECHO_N "checking where to install... $ECHO_C" >&6 |
|
2264 |
if test "x$prefix" = "xNONE"; then |
|
2265 |
prefix=$kde_libs_prefix |
|
2266 |
echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5 |
|
2267 |
echo "${ECHO_T}$prefix (as returned by kde-config)" >&6 |
|
2268 |
else |
|
2269 |
given_prefix=$prefix |
|
2270 |
echo "$as_me:$LINENO: result: $prefix (as requested)" >&5 |
|
2271 |
echo "${ECHO_T}$prefix (as requested)" >&6 |
|
2272 |
fi |
|
2273 |
||
2274 |
# And delete superfluous '/' to make compares easier |
|
2275 |
prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'` |
|
2276 |
exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'` |
|
2277 |
given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'` |
|
2278 |
||
2279 |
||
2280 |
||
2281 |
||
2282 |
||
2283 |
||
2284 |
# Check whether --enable-fast-perl or --disable-fast-perl was given. |
|
2285 |
if test "${enable_fast_perl+set}" = set; then |
|
2286 |
enableval="$enable_fast_perl" |
|
2287 |
with_fast_perl=$enableval |
|
2288 |
else |
|
2289 |
with_fast_perl=yes |
|
2290 |
fi; |
|
2291 |
||
2292 |
||
2293 |
val= |
|
2294 |
if test -f $srcdir/configure.files ; then |
|
2295 |
val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files` |
|
2296 |
fi |
|
2297 |
CONF_FILES= |
|
2298 |
if test -n "$val" ; then |
|
2299 |
for i in $val ; do |
|
2300 |
CONF_FILES="$CONF_FILES $i" |
|
2301 |
done |
|
2302 |
fi |
|
2303 |
||
2304 |
||
2305 |
||
2306 |
||
2307 |
ac_config_headers="$ac_config_headers config.h" |
|
2308 |
||
2309 |
DEPDIR="${am__leading_dot}deps" |
|
2310 |
||
2311 |
ac_config_commands="$ac_config_commands depfiles" |
|
2312 |
||
2313 |
||
2314 |
am_make=${MAKE-make} |
|
2315 |
cat > confinc << 'END' |
|
2316 |
am__doit: |
|
2317 |
@echo done |
|
2318 |
.PHONY: am__doit |
|
2319 |
END |
|
2320 |
# If we don't find an include directive, just comment out the code. |
|
2321 |
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
|
2322 |
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
|
2323 |
am__include="#" |
|
2324 |
am__quote= |
|
2325 |
_am_result=none |
|
2326 |
# First try GNU make style include. |
|
2327 |
echo "include confinc" > confmf |
|
2328 |
# We grep out `Entering directory' and `Leaving directory' |
|
2329 |
# messages which can occur if `w' ends up in MAKEFLAGS. |
|
2330 |
# In particular we don't look at `^make:' because GNU make might |
|
2331 |
# be invoked under some other name (usually "gmake"), in which |
|
2332 |
# case it prints its new name instead of `make'. |
|
2333 |
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
|
2334 |
am__include=include |
|
2335 |
am__quote= |
|
2336 |
_am_result=GNU |
|
2337 |
fi |
|
2338 |
# Now try BSD make style include. |
|
2339 |
if test "$am__include" = "#"; then |
|
2340 |
echo '.include "confinc"' > confmf |
|
2341 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|
2342 |
am__include=.include |
|
2343 |
am__quote="\"" |
|
2344 |
_am_result=BSD |
|
2345 |
fi |
|
2346 |
fi |
|
2347 |
||
2348 |
||
2349 |
echo "$as_me:$LINENO: result: $_am_result" >&5 |
|
2350 |
echo "${ECHO_T}$_am_result" >&6 |
|
2351 |
rm -f confinc confmf |
|
2352 |
||
2353 |
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
|
2354 |
if test "${enable_dependency_tracking+set}" = set; then |
|
2355 |
enableval="$enable_dependency_tracking" |
|
2356 |
||
2357 |
fi; |
|
2358 |
if test "x$enable_dependency_tracking" != xno; then |
|
2359 |
am_depcomp="$ac_aux_dir/depcomp" |
|
2360 |
AMDEPBACKSLASH='\' |
|
2361 |
fi |
|
2362 |
||
2363 |
||
2364 |
if test "x$enable_dependency_tracking" != xno; then |
|
2365 |
AMDEP_TRUE= |
|
2366 |
AMDEP_FALSE='#' |
|
2367 |
else |
|
2368 |
AMDEP_TRUE='#' |
|
2369 |
AMDEP_FALSE= |
|
2370 |
fi |
|
2371 |
||
2372 |
||
2373 |
||
2374 |
||
2375 |
||
2376 |
||
2377 |
# Check whether --enable-debug or --disable-debug was given. |
|
2378 |
if test "${enable_debug+set}" = set; then |
|
2379 |
enableval="$enable_debug" |
|
2380 |
||
2381 |
case $enableval in |
|
2382 |
yes) |
|
2383 |
kde_use_debug_code="yes" |
|
2384 |
kde_use_debug_define=no |
|
2385 |
;; |
|
2386 |
full) |
|
2387 |
kde_use_debug_code="full" |
|
2388 |
kde_use_debug_define=no |
|
2389 |
;; |
|
2390 |
*) |
|
2391 |
kde_use_debug_code="no" |
|
2392 |
kde_use_debug_define=yes |
|
2393 |
;; |
|
2394 |
esac |
|
2395 |
||
2396 |
else |
|
2397 |
kde_use_debug_code="no" |
|
2398 |
kde_use_debug_define=no |
|
2399 |
||
2400 |
fi; |
|
2401 |
||
2402 |
# Check whether --enable-dummyoption or --disable-dummyoption was given. |
|
2403 |
if test "${enable_dummyoption+set}" = set; then |
|
2404 |
enableval="$enable_dummyoption" |
|
2405 |
||
2406 |
fi; |
|
2407 |
||
2408 |
# Check whether --enable-strict or --disable-strict was given. |
|
2409 |
if test "${enable_strict+set}" = set; then |
|
2410 |
enableval="$enable_strict" |
|
2411 |
||
2412 |
if test $enableval = "no"; then |
|
2413 |
kde_use_strict_options="no" |
|
2414 |
else |
|
2415 |
kde_use_strict_options="yes" |
|
2416 |
fi |
|
2417 |
||
2418 |
else |
|
2419 |
kde_use_strict_options="no" |
|
2420 |
fi; |
|
2421 |
||
2422 |
# Check whether --enable-warnings or --disable-warnings was given. |
|
2423 |
if test "${enable_warnings+set}" = set; then |
|
2424 |
enableval="$enable_warnings" |
|
2425 |
||
2426 |
if test $enableval = "no"; then |
|
2427 |
kde_use_warnings="no" |
|
2428 |
else |
|
2429 |
kde_use_warnings="yes" |
|
2430 |
fi |
|
2431 |
||
2432 |
else |
|
2433 |
kde_use_warnings="yes" |
|
2434 |
fi; |
|
2435 |
||
2436 |
if test "$kde_use_debug_code" != "no"; then |
|
2437 |
kde_use_warnings=yes |
|
2438 |
fi |
|
2439 |
||
2440 |
# Check whether --enable-profile or --disable-profile was given. |
|
2441 |
if test "${enable_profile+set}" = set; then |
|
2442 |
enableval="$enable_profile" |
|
2443 |
kde_use_profiling=$enableval |
|
2444 |
else |
|
2445 |
kde_use_profiling="no" |
|
2446 |
||
2447 |
fi; |
|
2448 |
||
2449 |
CFLAGS=" $CFLAGS" |
|
2450 |
||
2451 |
ac_ext=c |
|
2452 |
ac_cpp='$CPP $CPPFLAGS' |
|
2453 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2454 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2455 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2456 |
if test -n "$ac_tool_prefix"; then |
|
2457 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
2458 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
2459 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2460 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2461 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
2462 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2463 |
else |
|
2464 |
if test -n "$CC"; then |
|
2465 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2466 |
else |
|
2467 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2468 |
for as_dir in $PATH |
|
2469 |
do |
|
2470 |
IFS=$as_save_IFS |
|
2471 |
test -z "$as_dir" && as_dir=. |
|
2472 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2473 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2474 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
2475 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2476 |
break 2 |
|
2477 |
fi |
|
2478 |
done |
|
2479 |
done |
|
2480 |
||
2481 |
fi |
|
2482 |
fi |
|
2483 |
CC=$ac_cv_prog_CC |
|
2484 |
if test -n "$CC"; then |
|
2485 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
2486 |
echo "${ECHO_T}$CC" >&6 |
|
2487 |
else |
|
2488 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2489 |
echo "${ECHO_T}no" >&6 |
|
2490 |
fi |
|
2491 |
||
2492 |
fi |
|
2493 |
if test -z "$ac_cv_prog_CC"; then |
|
2494 |
ac_ct_CC=$CC |
|
2495 |
# Extract the first word of "gcc", so it can be a program name with args. |
|
2496 |
set dummy gcc; ac_word=$2 |
|
2497 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2498 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2499 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2500 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2501 |
else |
|
2502 |
if test -n "$ac_ct_CC"; then |
|
2503 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2504 |
else |
|
2505 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2506 |
for as_dir in $PATH |
|
2507 |
do |
|
2508 |
IFS=$as_save_IFS |
|
2509 |
test -z "$as_dir" && as_dir=. |
|
2510 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2511 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2512 |
ac_cv_prog_ac_ct_CC="gcc" |
|
2513 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2514 |
break 2 |
|
2515 |
fi |
|
2516 |
done |
|
2517 |
done |
|
2518 |
||
2519 |
fi |
|
2520 |
fi |
|
2521 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2522 |
if test -n "$ac_ct_CC"; then |
|
2523 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2524 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
2525 |
else |
|
2526 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2527 |
echo "${ECHO_T}no" >&6 |
|
2528 |
fi |
|
2529 |
||
2530 |
CC=$ac_ct_CC |
|
2531 |
else |
|
2532 |
CC="$ac_cv_prog_CC" |
|
2533 |
fi |
|
2534 |
||
2535 |
if test -z "$CC"; then |
|
2536 |
if test -n "$ac_tool_prefix"; then |
|
2537 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
2538 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
2539 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2540 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2541 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
2542 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2543 |
else |
|
2544 |
if test -n "$CC"; then |
|
2545 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2546 |
else |
|
2547 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2548 |
for as_dir in $PATH |
|
2549 |
do |
|
2550 |
IFS=$as_save_IFS |
|
2551 |
test -z "$as_dir" && as_dir=. |
|
2552 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2553 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2554 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
2555 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2556 |
break 2 |
|
2557 |
fi |
|
2558 |
done |
|
2559 |
done |
|
2560 |
||
2561 |
fi |
|
2562 |
fi |
|
2563 |
CC=$ac_cv_prog_CC |
|
2564 |
if test -n "$CC"; then |
|
2565 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
2566 |
echo "${ECHO_T}$CC" >&6 |
|
2567 |
else |
|
2568 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2569 |
echo "${ECHO_T}no" >&6 |
|
2570 |
fi |
|
2571 |
||
2572 |
fi |
|
2573 |
if test -z "$ac_cv_prog_CC"; then |
|
2574 |
ac_ct_CC=$CC |
|
2575 |
# Extract the first word of "cc", so it can be a program name with args. |
|
2576 |
set dummy cc; ac_word=$2 |
|
2577 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2578 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2579 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2580 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2581 |
else |
|
2582 |
if test -n "$ac_ct_CC"; then |
|
2583 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2584 |
else |
|
2585 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2586 |
for as_dir in $PATH |
|
2587 |
do |
|
2588 |
IFS=$as_save_IFS |
|
2589 |
test -z "$as_dir" && as_dir=. |
|
2590 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2591 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2592 |
ac_cv_prog_ac_ct_CC="cc" |
|
2593 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2594 |
break 2 |
|
2595 |
fi |
|
2596 |
done |
|
2597 |
done |
|
2598 |
||
2599 |
fi |
|
2600 |
fi |
|
2601 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2602 |
if test -n "$ac_ct_CC"; then |
|
2603 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2604 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
2605 |
else |
|
2606 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2607 |
echo "${ECHO_T}no" >&6 |
|
2608 |
fi |
|
2609 |
||
2610 |
CC=$ac_ct_CC |
|
2611 |
else |
|
2612 |
CC="$ac_cv_prog_CC" |
|
2613 |
fi |
|
2614 |
||
2615 |
fi |
|
2616 |
if test -z "$CC"; then |
|
2617 |
# Extract the first word of "cc", so it can be a program name with args. |
|
2618 |
set dummy cc; ac_word=$2 |
|
2619 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2620 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2621 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
2622 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2623 |
else |
|
2624 |
if test -n "$CC"; then |
|
2625 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2626 |
else |
|
2627 |
ac_prog_rejected=no |
|
2628 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2629 |
for as_dir in $PATH |
|
2630 |
do |
|
2631 |
IFS=$as_save_IFS |
|
2632 |
test -z "$as_dir" && as_dir=. |
|
2633 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2634 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2635 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
2636 |
ac_prog_rejected=yes |
|
2637 |
continue |
|
2638 |
fi |
|
2639 |
ac_cv_prog_CC="cc" |
|
2640 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2641 |
break 2 |
|
2642 |
fi |
|
2643 |
done |
|
2644 |
done |
|
2645 |
||
2646 |
if test $ac_prog_rejected = yes; then |
|
2647 |
# We found a bogon in the path, so make sure we never use it. |
|
2648 |
set dummy $ac_cv_prog_CC |
|
2649 |
shift |
|
2650 |
if test $# != 0; then |
|
2651 |
# We chose a different compiler from the bogus one. |
|
2652 |
# However, it has the same basename, so the bogon will be chosen |
|
2653 |
# first if we set CC to just the basename; use the full file name. |
|
2654 |
shift |
|
2655 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
2656 |
fi |
|
2657 |
fi |
|
2658 |
fi |
|
2659 |
fi |
|
2660 |
CC=$ac_cv_prog_CC |
|
2661 |
if test -n "$CC"; then |
|
2662 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
2663 |
echo "${ECHO_T}$CC" >&6 |
|
2664 |
else |
|
2665 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2666 |
echo "${ECHO_T}no" >&6 |
|
2667 |
fi |
|
2668 |
||
2669 |
fi |
|
2670 |
if test -z "$CC"; then |
|
2671 |
if test -n "$ac_tool_prefix"; then |
|
2672 |
for ac_prog in cl |
|
2673 |
do |
|
2674 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
2675 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
2676 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2677 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2678 |
if test "${ac_cv_prog_CC+set}" = set; then |
|
2679 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2680 |
else |
|
2681 |
if test -n "$CC"; then |
|
2682 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2683 |
else |
|
2684 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2685 |
for as_dir in $PATH |
|
2686 |
do |
|
2687 |
IFS=$as_save_IFS |
|
2688 |
test -z "$as_dir" && as_dir=. |
|
2689 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2690 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2691 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
2692 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2693 |
break 2 |
|
2694 |
fi |
|
2695 |
done |
|
2696 |
done |
|
2697 |
||
2698 |
fi |
|
2699 |
fi |
|
2700 |
CC=$ac_cv_prog_CC |
|
2701 |
if test -n "$CC"; then |
|
2702 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
2703 |
echo "${ECHO_T}$CC" >&6 |
|
2704 |
else |
|
2705 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2706 |
echo "${ECHO_T}no" >&6 |
|
2707 |
fi |
|
2708 |
||
2709 |
test -n "$CC" && break |
|
2710 |
done |
|
2711 |
fi |
|
2712 |
if test -z "$CC"; then |
|
2713 |
ac_ct_CC=$CC |
|
2714 |
for ac_prog in cl |
|
2715 |
do |
|
2716 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2717 |
set dummy $ac_prog; ac_word=$2 |
|
2718 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2719 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
2720 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2721 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2722 |
else |
|
2723 |
if test -n "$ac_ct_CC"; then |
|
2724 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2725 |
else |
|
2726 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2727 |
for as_dir in $PATH |
|
2728 |
do |
|
2729 |
IFS=$as_save_IFS |
|
2730 |
test -z "$as_dir" && as_dir=. |
|
2731 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2732 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2733 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
|
2734 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2735 |
break 2 |
|
2736 |
fi |
|
2737 |
done |
|
2738 |
done |
|
2739 |
||
2740 |
fi |
|
2741 |
fi |
|
2742 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2743 |
if test -n "$ac_ct_CC"; then |
|
2744 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2745 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
2746 |
else |
|
2747 |
echo "$as_me:$LINENO: result: no" >&5 |
|
2748 |
echo "${ECHO_T}no" >&6 |
|
2749 |
fi |
|
2750 |
||
2751 |
test -n "$ac_ct_CC" && break |
|
2752 |
done |
|
2753 |
||
2754 |
CC=$ac_ct_CC |
|
2755 |
fi |
|
2756 |
||
2757 |
fi |
|
2758 |
||
2759 |
||
2760 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
2761 |
See \`config.log' for more details." >&5 |
|
2762 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
2763 |
See \`config.log' for more details." >&2;} |
|
2764 |
{ (exit 1); exit 1; }; } |
|
2765 |
||
2766 |
# Provide some information about the compiler. |
|
2767 |
echo "$as_me:$LINENO:" \ |
|
2768 |
"checking for C compiler version" >&5 |
|
2769 |
ac_compiler=`set X $ac_compile; echo $2` |
|
2770 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
2771 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
2772 |
ac_status=$? |
|
2773 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2774 |
(exit $ac_status); } |
|
2775 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
2776 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
2777 |
ac_status=$? |
|
2778 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2779 |
(exit $ac_status); } |
|
2780 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
2781 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
2782 |
ac_status=$? |
|
2783 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2784 |
(exit $ac_status); } |
|
2785 |
||
2786 |
cat >conftest.$ac_ext <<_ACEOF |
|
2787 |
/* confdefs.h. */ |
|
2788 |
_ACEOF |
|
2789 |
cat confdefs.h >>conftest.$ac_ext |
|
2790 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2791 |
/* end confdefs.h. */ |
|
2792 |
||
2793 |
int |
|
2794 |
main () |
|
2795 |
{ |
|
2796 |
||
2797 |
; |
|
2798 |
return 0; |
|
2799 |
} |
|
2800 |
_ACEOF |
|
2801 |
ac_clean_files_save=$ac_clean_files |
|
2802 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
2803 |
# Try to create an executable without -o first, disregard a.out. |
|
2804 |
# It will help us diagnose broken compilers, and finding out an intuition |
|
2805 |
# of exeext. |
|
2806 |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|
2807 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
|
2808 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
2809 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
|
2810 |
(eval $ac_link_default) 2>&5 |
|
2811 |
ac_status=$? |
|
2812 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2813 |
(exit $ac_status); }; then |
|
2814 |
# Find the output, starting from the most likely. This scheme is |
|
2815 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
|
2816 |
# resort. |
|
2817 |
||
2818 |
# Be careful to initialize this variable, since it used to be cached. |
|
2819 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
|
2820 |
ac_cv_exeext= |
|
2821 |
# b.out is created by i960 compilers. |
|
2822 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
|
2823 |
do |
|
2824 |
test -f "$ac_file" || continue |
|
2825 |
case $ac_file in |
|
2826 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
|
2827 |
;; |
|
2828 |
conftest.$ac_ext ) |
|
2829 |
# This is the source file. |
|
2830 |
;; |
|
2831 |
[ab].out ) |
|
2832 |
# We found the default executable, but exeext='' is most |
|
2833 |
# certainly right. |
|
2834 |
break;; |
|
2835 |
*.* ) |
|
2836 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
2837 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
|
2838 |
# but it would be cool to find out if it's true. Does anybody |
|
2839 |
# maintain Libtool? --akim. |
|
2840 |
export ac_cv_exeext |
|
2841 |
break;; |
|
2842 |
* ) |
|
2843 |
break;; |
|
2844 |
esac |
|
2845 |
done |
|
2846 |
else |
|
2847 |
echo "$as_me: failed program was:" >&5 |
|
2848 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2849 |
||
2850 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
|
2851 |
See \`config.log' for more details." >&5 |
|
2852 |
echo "$as_me: error: C compiler cannot create executables |
|
2853 |
See \`config.log' for more details." >&2;} |
|
2854 |
{ (exit 77); exit 77; }; } |
|
2855 |
fi |
|
2856 |
||
2857 |
ac_exeext=$ac_cv_exeext |
|
2858 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
2859 |
echo "${ECHO_T}$ac_file" >&6 |
|
2860 |
||
2861 |
# Check the compiler produces executables we can run. If not, either |
|
2862 |
# the compiler is broken, or we cross compile. |
|
2863 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
2864 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
|
2865 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
2866 |
# If not cross compiling, check that we can run a simple program. |
|
2867 |
if test "$cross_compiling" != yes; then |
|
2868 |
if { ac_try='./$ac_file' |
|
2869 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
2870 |
(eval $ac_try) 2>&5 |
|
2871 |
ac_status=$? |
|
2872 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2873 |
(exit $ac_status); }; }; then |
|
2874 |
cross_compiling=no |
|
2875 |
else |
|
2876 |
if test "$cross_compiling" = maybe; then |
|
2877 |
cross_compiling=yes |
|
2878 |
else |
|
2879 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
2880 |
If you meant to cross compile, use \`--host'. |
|
2881 |
See \`config.log' for more details." >&5 |
|
2882 |
echo "$as_me: error: cannot run C compiled programs. |
|
2883 |
If you meant to cross compile, use \`--host'. |
|
2884 |
See \`config.log' for more details." >&2;} |
|
2885 |
{ (exit 1); exit 1; }; } |
|
2886 |
fi |
|
2887 |
fi |
|
2888 |
fi |
|
2889 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
2890 |
echo "${ECHO_T}yes" >&6 |
|
2891 |
||
2892 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
|
2893 |
ac_clean_files=$ac_clean_files_save |
|
2894 |
# Check the compiler produces executables we can run. If not, either |
|
2895 |
# the compiler is broken, or we cross compile. |
|
2896 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
2897 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
|
2898 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
2899 |
echo "${ECHO_T}$cross_compiling" >&6 |
|
2900 |
||
2901 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
|
2902 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
|
2903 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
2904 |
(eval $ac_link) 2>&5 |
|
2905 |
ac_status=$? |
|
2906 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2907 |
(exit $ac_status); }; then |
|
2908 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
2909 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
2910 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
|
2911 |
# `rm'. |
|
2912 |
for ac_file in conftest.exe conftest conftest.*; do |
|
2913 |
test -f "$ac_file" || continue |
|
2914 |
case $ac_file in |
|
2915 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
|
2916 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
2917 |
export ac_cv_exeext |
|
2918 |
break;; |
|
2919 |
* ) break;; |
|
2920 |
esac |
|
2921 |
done |
|
2922 |
else |
|
2923 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
|
2924 |
See \`config.log' for more details." >&5 |
|
2925 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
|
2926 |
See \`config.log' for more details." >&2;} |
|
2927 |
{ (exit 1); exit 1; }; } |
|
2928 |
fi |
|
2929 |
||
2930 |
rm -f conftest$ac_cv_exeext |
|
2931 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
|
2932 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
|
2933 |
||
2934 |
rm -f conftest.$ac_ext |
|
2935 |
EXEEXT=$ac_cv_exeext |
|
2936 |
ac_exeext=$EXEEXT |
|
2937 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
2938 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
|
2939 |
if test "${ac_cv_objext+set}" = set; then |
|
2940 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2941 |
else |
|
2942 |
cat >conftest.$ac_ext <<_ACEOF |
|
2943 |
/* confdefs.h. */ |
|
2944 |
_ACEOF |
|
2945 |
cat confdefs.h >>conftest.$ac_ext |
|
2946 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2947 |
/* end confdefs.h. */ |
|
2948 |
||
2949 |
int |
|
2950 |
main () |
|
2951 |
{ |
|
2952 |
||
2953 |
; |
|
2954 |
return 0; |
|
2955 |
} |
|
2956 |
_ACEOF |
|
2957 |
rm -f conftest.o conftest.obj |
|
2958 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
2959 |
(eval $ac_compile) 2>&5 |
|
2960 |
ac_status=$? |
|
2961 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2962 |
(exit $ac_status); }; then |
|
2963 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
|
2964 |
case $ac_file in |
|
2965 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
|
2966 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
2967 |
break;; |
|
2968 |
esac |
|
2969 |
done |
|
2970 |
else |
|
2971 |
echo "$as_me: failed program was:" >&5 |
|
2972 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2973 |
||
2974 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
|
2975 |
See \`config.log' for more details." >&5 |
|
2976 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|
2977 |
See \`config.log' for more details." >&2;} |
|
2978 |
{ (exit 1); exit 1; }; } |
|
2979 |
fi |
|
2980 |
||
2981 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
2982 |
fi |
|
2983 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|
2984 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
|
2985 |
OBJEXT=$ac_cv_objext |
|
2986 |
ac_objext=$OBJEXT |
|
2987 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
2988 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
|
2989 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
2990 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2991 |
else |
|
2992 |
cat >conftest.$ac_ext <<_ACEOF |
|
2993 |
/* confdefs.h. */ |
|
2994 |
_ACEOF |
|
2995 |
cat confdefs.h >>conftest.$ac_ext |
|
2996 |
cat >>conftest.$ac_ext <<_ACEOF |
|
2997 |
/* end confdefs.h. */ |
|
2998 |
||
2999 |
int |
|
3000 |
main () |
|
3001 |
{ |
|
3002 |
#ifndef __GNUC__ |
|
3003 |
choke me |
|
3004 |
#endif |
|
3005 |
||
3006 |
; |
|
3007 |
return 0; |
|
3008 |
} |
|
3009 |
_ACEOF |
|
3010 |
rm -f conftest.$ac_objext |
|
3011 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3012 |
(eval $ac_compile) 2>conftest.er1 |
|
3013 |
ac_status=$? |
|
3014 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3015 |
rm -f conftest.er1 |
|
3016 |
cat conftest.err >&5 |
|
3017 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3018 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3019 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
3020 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3021 |
(eval $ac_try) 2>&5 |
|
3022 |
ac_status=$? |
|
3023 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3024 |
(exit $ac_status); }; } && |
|
3025 |
{ ac_try='test -s conftest.$ac_objext' |
|
3026 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3027 |
(eval $ac_try) 2>&5 |
|
3028 |
ac_status=$? |
|
3029 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3030 |
(exit $ac_status); }; }; then |
|
3031 |
ac_compiler_gnu=yes |
|
3032 |
else |
|
3033 |
echo "$as_me: failed program was:" >&5 |
|
3034 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3035 |
||
3036 |
ac_compiler_gnu=no |
|
3037 |
fi |
|
3038 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3039 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
3040 |
||
3041 |
fi |
|
3042 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
3043 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
|
3044 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
3045 |
ac_test_CFLAGS=${CFLAGS+set} |
|
3046 |
ac_save_CFLAGS=$CFLAGS |
|
3047 |
CFLAGS="-g" |
|
3048 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
3049 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
|
3050 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
|
3051 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3052 |
else |
|
3053 |
cat >conftest.$ac_ext <<_ACEOF |
|
3054 |
/* confdefs.h. */ |
|
3055 |
_ACEOF |
|
3056 |
cat confdefs.h >>conftest.$ac_ext |
|
3057 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3058 |
/* end confdefs.h. */ |
|
3059 |
||
3060 |
int |
|
3061 |
main () |
|
3062 |
{ |
|
3063 |
||
3064 |
; |
|
3065 |
return 0; |
|
3066 |
} |
|
3067 |
_ACEOF |
|
3068 |
rm -f conftest.$ac_objext |
|
3069 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3070 |
(eval $ac_compile) 2>conftest.er1 |
|
3071 |
ac_status=$? |
|
3072 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3073 |
rm -f conftest.er1 |
|
3074 |
cat conftest.err >&5 |
|
3075 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3076 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3077 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
3078 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3079 |
(eval $ac_try) 2>&5 |
|
3080 |
ac_status=$? |
|
3081 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3082 |
(exit $ac_status); }; } && |
|
3083 |
{ ac_try='test -s conftest.$ac_objext' |
|
3084 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3085 |
(eval $ac_try) 2>&5 |
|
3086 |
ac_status=$? |
|
3087 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3088 |
(exit $ac_status); }; }; then |
|
3089 |
ac_cv_prog_cc_g=yes |
|
3090 |
else |
|
3091 |
echo "$as_me: failed program was:" >&5 |
|
3092 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3093 |
||
3094 |
ac_cv_prog_cc_g=no |
|
3095 |
fi |
|
3096 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3097 |
fi |
|
3098 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
3099 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
|
3100 |
if test "$ac_test_CFLAGS" = set; then |
|
3101 |
CFLAGS=$ac_save_CFLAGS |
|
3102 |
elif test $ac_cv_prog_cc_g = yes; then |
|
3103 |
if test "$GCC" = yes; then |
|
3104 |
CFLAGS="-g -O2" |
|
3105 |
else |
|
3106 |
CFLAGS="-g" |
|
3107 |
fi |
|
3108 |
else |
|
3109 |
if test "$GCC" = yes; then |
|
3110 |
CFLAGS="-O2" |
|
3111 |
else |
|
3112 |
CFLAGS= |
|
3113 |
fi |
|
3114 |
fi |
|
3115 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
|
3116 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
|
3117 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
|
3118 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3119 |
else |
|
3120 |
ac_cv_prog_cc_stdc=no |
|
3121 |
ac_save_CC=$CC |
|
3122 |
cat >conftest.$ac_ext <<_ACEOF |
|
3123 |
/* confdefs.h. */ |
|
3124 |
_ACEOF |
|
3125 |
cat confdefs.h >>conftest.$ac_ext |
|
3126 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3127 |
/* end confdefs.h. */ |
|
3128 |
#include <stdarg.h> |
|
3129 |
#include <stdio.h> |
|
3130 |
#include <sys/types.h> |
|
3131 |
#include <sys/stat.h> |
|
3132 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
3133 |
struct buf { int x; }; |
|
3134 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
3135 |
static char *e (p, i) |
|
3136 |
char **p; |
|
3137 |
int i; |
|
3138 |
{ |
|
3139 |
return p[i]; |
|
3140 |
} |
|
3141 |
static char *f (char * (*g) (char **, int), char **p, ...) |
|
3142 |
{ |
|
3143 |
char *s; |
|
3144 |
va_list v; |
|
3145 |
va_start (v,p); |
|
3146 |
s = g (p, va_arg (v,int)); |
|
3147 |
va_end (v); |
|
3148 |
return s; |
|
3149 |
} |
|
3150 |
||
3151 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
3152 |
function prototypes and stuff, but not '\xHH' hex character constants. |
|
3153 |
These don't provoke an error unfortunately, instead are silently treated |
|
3154 |
as 'x'. The following induces an error, until -std1 is added to get |
|
3155 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
3156 |
array size at least. It's necessary to write '\x00'==0 to get something |
|
3157 |
that's true only with -std1. */ |
|
3158 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
3159 |
||
3160 |
int test (int i, double x); |
|
3161 |
struct s1 {int (*f) (int a);}; |
|
3162 |
struct s2 {int (*f) (double a);}; |
|
3163 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
3164 |
int argc; |
|
3165 |
char **argv; |
|
3166 |
int |
|
3167 |
main () |
|
3168 |
{ |
|
3169 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
3170 |
; |
|
3171 |
return 0; |
|
3172 |
} |
|
3173 |
_ACEOF |
|
3174 |
# Don't try gcc -ansi; that turns off useful extensions and |
|
3175 |
# breaks some systems' header files. |
|
3176 |
# AIX -qlanglvl=ansi |
|
3177 |
# Ultrix and OSF/1 -std1 |
|
3178 |
# HP-UX 10.20 and later -Ae |
|
3179 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
|
3180 |
# SVR4 -Xc -D__EXTENSIONS__ |
|
3181 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3182 |
do |
|
3183 |
CC="$ac_save_CC $ac_arg" |
|
3184 |
rm -f conftest.$ac_objext |
|
3185 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3186 |
(eval $ac_compile) 2>conftest.er1 |
|
3187 |
ac_status=$? |
|
3188 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3189 |
rm -f conftest.er1 |
|
3190 |
cat conftest.err >&5 |
|
3191 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3192 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3193 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
3194 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3195 |
(eval $ac_try) 2>&5 |
|
3196 |
ac_status=$? |
|
3197 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3198 |
(exit $ac_status); }; } && |
|
3199 |
{ ac_try='test -s conftest.$ac_objext' |
|
3200 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3201 |
(eval $ac_try) 2>&5 |
|
3202 |
ac_status=$? |
|
3203 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3204 |
(exit $ac_status); }; }; then |
|
3205 |
ac_cv_prog_cc_stdc=$ac_arg |
|
3206 |
break |
|
3207 |
else |
|
3208 |
echo "$as_me: failed program was:" >&5 |
|
3209 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3210 |
||
3211 |
fi |
|
3212 |
rm -f conftest.err conftest.$ac_objext |
|
3213 |
done |
|
3214 |
rm -f conftest.$ac_ext conftest.$ac_objext |
|
3215 |
CC=$ac_save_CC |
|
3216 |
||
3217 |
fi |
|
3218 |
||
3219 |
case "x$ac_cv_prog_cc_stdc" in |
|
3220 |
x|xno) |
|
3221 |
echo "$as_me:$LINENO: result: none needed" >&5 |
|
3222 |
echo "${ECHO_T}none needed" >&6 ;; |
|
3223 |
*) |
|
3224 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
|
3225 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
|
3226 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
|
3227 |
esac |
|
3228 |
||
3229 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
|
3230 |
# in C++ we need to declare it. In case someone uses the same compiler |
|
3231 |
# for both compiling C and C++ we need to have the C++ compiler decide |
|
3232 |
# the declaration of exit, since it's the most demanding environment. |
|
3233 |
cat >conftest.$ac_ext <<_ACEOF |
|
3234 |
#ifndef __cplusplus |
|
3235 |
choke me |
|
3236 |
#endif |
|
3237 |
_ACEOF |
|
3238 |
rm -f conftest.$ac_objext |
|
3239 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3240 |
(eval $ac_compile) 2>conftest.er1 |
|
3241 |
ac_status=$? |
|
3242 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3243 |
rm -f conftest.er1 |
|
3244 |
cat conftest.err >&5 |
|
3245 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3246 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3247 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
3248 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3249 |
(eval $ac_try) 2>&5 |
|
3250 |
ac_status=$? |
|
3251 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3252 |
(exit $ac_status); }; } && |
|
3253 |
{ ac_try='test -s conftest.$ac_objext' |
|
3254 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3255 |
(eval $ac_try) 2>&5 |
|
3256 |
ac_status=$? |
|
3257 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3258 |
(exit $ac_status); }; }; then |
|
3259 |
for ac_declaration in \ |
|
3260 |
'' \ |
|
3261 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
3262 |
'extern "C" void std::exit (int); using std::exit;' \ |
|
3263 |
'extern "C" void exit (int) throw ();' \ |
|
3264 |
'extern "C" void exit (int);' \ |
|
3265 |
'void exit (int);' |
|
3266 |
do |
|
3267 |
cat >conftest.$ac_ext <<_ACEOF |
|
3268 |
/* confdefs.h. */ |
|
3269 |
_ACEOF |
|
3270 |
cat confdefs.h >>conftest.$ac_ext |
|
3271 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3272 |
/* end confdefs.h. */ |
|
3273 |
$ac_declaration |
|
3274 |
#include <stdlib.h> |
|
3275 |
int |
|
3276 |
main () |
|
3277 |
{ |
|
3278 |
exit (42); |
|
3279 |
; |
|
3280 |
return 0; |
|
3281 |
} |
|
3282 |
_ACEOF |
|
3283 |
rm -f conftest.$ac_objext |
|
3284 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3285 |
(eval $ac_compile) 2>conftest.er1 |
|
3286 |
ac_status=$? |
|
3287 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3288 |
rm -f conftest.er1 |
|
3289 |
cat conftest.err >&5 |
|
3290 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3291 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3292 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
3293 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3294 |
(eval $ac_try) 2>&5 |
|
3295 |
ac_status=$? |
|
3296 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3297 |
(exit $ac_status); }; } && |
|
3298 |
{ ac_try='test -s conftest.$ac_objext' |
|
3299 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3300 |
(eval $ac_try) 2>&5 |
|
3301 |
ac_status=$? |
|
3302 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3303 |
(exit $ac_status); }; }; then |
|
3304 |
: |
|
3305 |
else |
|
3306 |
echo "$as_me: failed program was:" >&5 |
|
3307 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3308 |
||
3309 |
continue |
|
3310 |
fi |
|
3311 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3312 |
cat >conftest.$ac_ext <<_ACEOF |
|
3313 |
/* confdefs.h. */ |
|
3314 |
_ACEOF |
|
3315 |
cat confdefs.h >>conftest.$ac_ext |
|
3316 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3317 |
/* end confdefs.h. */ |
|
3318 |
$ac_declaration |
|
3319 |
int |
|
3320 |
main () |
|
3321 |
{ |
|
3322 |
exit (42); |
|
3323 |
; |
|
3324 |
return 0; |
|
3325 |
} |
|
3326 |
_ACEOF |
|
3327 |
rm -f conftest.$ac_objext |
|
3328 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3329 |
(eval $ac_compile) 2>conftest.er1 |
|
3330 |
ac_status=$? |
|
3331 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3332 |
rm -f conftest.er1 |
|
3333 |
cat conftest.err >&5 |
|
3334 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3335 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3336 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
3337 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3338 |
(eval $ac_try) 2>&5 |
|
3339 |
ac_status=$? |
|
3340 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3341 |
(exit $ac_status); }; } && |
|
3342 |
{ ac_try='test -s conftest.$ac_objext' |
|
3343 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3344 |
(eval $ac_try) 2>&5 |
|
3345 |
ac_status=$? |
|
3346 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3347 |
(exit $ac_status); }; }; then |
|
3348 |
break |
|
3349 |
else |
|
3350 |
echo "$as_me: failed program was:" >&5 |
|
3351 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3352 |
||
3353 |
fi |
|
3354 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3355 |
done |
|
3356 |
rm -f conftest* |
|
3357 |
if test -n "$ac_declaration"; then |
|
3358 |
echo '#ifdef __cplusplus' >>confdefs.h |
|
3359 |
echo $ac_declaration >>confdefs.h |
|
3360 |
echo '#endif' >>confdefs.h |
|
3361 |
fi |
|
3362 |
||
3363 |
else |
|
3364 |
echo "$as_me: failed program was:" >&5 |
|
3365 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3366 |
||
3367 |
fi |
|
3368 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3369 |
ac_ext=c |
|
3370 |
ac_cpp='$CPP $CPPFLAGS' |
|
3371 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3372 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3373 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3374 |
||
3375 |
depcc="$CC" am_compiler_list= |
|
3376 |
||
3377 |
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
3378 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
|
3379 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
|
3380 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3381 |
else |
|
3382 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
3383 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
3384 |
# making bogus files that we don't know about and never remove. For |
|
3385 |
# instance it was reported that on HP-UX the gcc test will end up |
|
3386 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
3387 |
# in D'. |
|
3388 |
mkdir conftest.dir |
|
3389 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
3390 |
# using a relative directory. |
|
3391 |
cp "$am_depcomp" conftest.dir |
|
3392 |
cd conftest.dir |
|
3393 |
# We will build objects and dependencies in a subdirectory because |
|
3394 |
# it helps to detect inapplicable dependency modes. For instance |
|
3395 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
3396 |
# side effect of compilation, but ICC will put the dependencies in |
|
3397 |
# the current directory while Tru64 will put them in the object |
|
3398 |
# directory. |
|
3399 |
mkdir sub |
|
3400 |
||
3401 |
am_cv_CC_dependencies_compiler_type=none |
|
3402 |
if test "$am_compiler_list" = ""; then |
|
3403 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
3404 |
fi |
|
3405 |
for depmode in $am_compiler_list; do |
|
3406 |
# Setup a source with many dependencies, because some compilers |
|
3407 |
# like to wrap large dependency lists on column 80 (with \), and |
|
3408 |
# we should not choose a depcomp mode which is confused by this. |
|
3409 |
# |
|
3410 |
# We need to recreate these files for each test, as the compiler may |
|
3411 |
# overwrite some of them when testing with obscure command lines. |
|
3412 |
# This happens at least with the AIX C compiler. |
|
3413 |
: > sub/conftest.c |
|
3414 |
for i in 1 2 3 4 5 6; do |
|
3415 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3416 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3417 |
# Solaris 8's {/usr,}/bin/sh. |
|
3418 |
touch sub/conftst$i.h |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
3419 |
done |
3420 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
3421 |
||
3422 |
case $depmode in |
|
3423 |
nosideeffect) |
|
3424 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
3425 |
# only be used when explicitly requested |
|
3426 |
if test "x$enable_dependency_tracking" = xyes; then |
|
3427 |
continue |
|
3428 |
else |
|
3429 |
break |
|
3430 |
fi |
|
3431 |
;; |
|
3432 |
none) break ;; |
|
3433 |
esac |
|
3434 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
3435 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
3436 |
# handle `-M -o', and we need to detect this. |
|
3437 |
if depmode=$depmode \ |
|
3438 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
3439 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
3440 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
3441 |
>/dev/null 2>conftest.err && |
|
3442 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
3443 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
3444 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
3445 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3446 |
# or remarks (even with -Werror). So we grep stderr for any message |
3447 |
# that says an option was ignored or not supported. |
|
3448 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
3449 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
3450 |
# The diagnosis changed in icc 8.0: |
|
3451 |
# icc: Command line remark: option '-MP' not supported |
|
3452 |
if (grep 'ignoring option' conftest.err || |
|
3453 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
3454 |
am_cv_CC_dependencies_compiler_type=$depmode |
3455 |
break |
|
3456 |
fi |
|
3457 |
fi |
|
3458 |
done |
|
3459 |
||
3460 |
cd .. |
|
3461 |
rm -rf conftest.dir |
|
3462 |
else |
|
3463 |
am_cv_CC_dependencies_compiler_type=none |
|
3464 |
fi |
|
3465 |
||
3466 |
fi |
|
3467 |
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
3468 |
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
|
3469 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
3470 |
||
3471 |
||
3472 |
||
3473 |
if |
|
3474 |
test "x$enable_dependency_tracking" != xno \ |
|
3475 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
3476 |
am__fastdepCC_TRUE= |
|
3477 |
am__fastdepCC_FALSE='#' |
|
3478 |
else |
|
3479 |
am__fastdepCC_TRUE='#' |
|
3480 |
am__fastdepCC_FALSE= |
|
3481 |
fi |
|
3482 |
||
3483 |
||
3484 |
||
3485 |
ac_ext=c |
|
3486 |
ac_cpp='$CPP $CPPFLAGS' |
|
3487 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3488 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3489 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3490 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
3491 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
|
3492 |
# On Suns, sometimes $CPP names a directory. |
|
3493 |
if test -n "$CPP" && test -d "$CPP"; then |
|
3494 |
CPP= |
|
3495 |
fi |
|
3496 |
if test -z "$CPP"; then |
|
3497 |
if test "${ac_cv_prog_CPP+set}" = set; then |
|
3498 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3499 |
else |
|
3500 |
# Double quotes because CPP needs to be expanded |
|
3501 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
3502 |
do |
|
3503 |
ac_preproc_ok=false |
|
3504 |
for ac_c_preproc_warn_flag in '' yes |
|
3505 |
do |
|
3506 |
# Use a header file that comes with gcc, so configuring glibc |
|
3507 |
# with a fresh cross-compiler works. |
|
3508 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
3509 |
# <limits.h> exists even on freestanding compilers. |
|
3510 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
3511 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
3512 |
cat >conftest.$ac_ext <<_ACEOF |
|
3513 |
/* confdefs.h. */ |
|
3514 |
_ACEOF |
|
3515 |
cat confdefs.h >>conftest.$ac_ext |
|
3516 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3517 |
/* end confdefs.h. */ |
|
3518 |
#ifdef __STDC__ |
|
3519 |
# include <limits.h> |
|
3520 |
#else |
|
3521 |
# include <assert.h> |
|
3522 |
#endif |
|
3523 |
Syntax error |
|
3524 |
_ACEOF |
|
3525 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
3526 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
3527 |
ac_status=$? |
|
3528 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3529 |
rm -f conftest.er1 |
|
3530 |
cat conftest.err >&5 |
|
3531 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3532 |
(exit $ac_status); } >/dev/null; then |
|
3533 |
if test -s conftest.err; then |
|
3534 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
3535 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
3536 |
else |
|
3537 |
ac_cpp_err= |
|
3538 |
fi |
|
3539 |
else |
|
3540 |
ac_cpp_err=yes |
|
3541 |
fi |
|
3542 |
if test -z "$ac_cpp_err"; then |
|
3543 |
: |
|
3544 |
else |
|
3545 |
echo "$as_me: failed program was:" >&5 |
|
3546 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3547 |
||
3548 |
# Broken: fails on valid input. |
|
3549 |
continue |
|
3550 |
fi |
|
3551 |
rm -f conftest.err conftest.$ac_ext |
|
3552 |
||
3553 |
# OK, works on sane cases. Now check whether non-existent headers |
|
3554 |
# can be detected and how. |
|
3555 |
cat >conftest.$ac_ext <<_ACEOF |
|
3556 |
/* confdefs.h. */ |
|
3557 |
_ACEOF |
|
3558 |
cat confdefs.h >>conftest.$ac_ext |
|
3559 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3560 |
/* end confdefs.h. */ |
|
3561 |
#include <ac_nonexistent.h> |
|
3562 |
_ACEOF |
|
3563 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
3564 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
3565 |
ac_status=$? |
|
3566 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3567 |
rm -f conftest.er1 |
|
3568 |
cat conftest.err >&5 |
|
3569 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3570 |
(exit $ac_status); } >/dev/null; then |
|
3571 |
if test -s conftest.err; then |
|
3572 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
3573 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
3574 |
else |
|
3575 |
ac_cpp_err= |
|
3576 |
fi |
|
3577 |
else |
|
3578 |
ac_cpp_err=yes |
|
3579 |
fi |
|
3580 |
if test -z "$ac_cpp_err"; then |
|
3581 |
# Broken: success on invalid input. |
|
3582 |
continue |
|
3583 |
else |
|
3584 |
echo "$as_me: failed program was:" >&5 |
|
3585 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3586 |
||
3587 |
# Passes both tests. |
|
3588 |
ac_preproc_ok=: |
|
3589 |
break |
|
3590 |
fi |
|
3591 |
rm -f conftest.err conftest.$ac_ext |
|
3592 |
||
3593 |
done |
|
3594 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
3595 |
rm -f conftest.err conftest.$ac_ext |
|
3596 |
if $ac_preproc_ok; then |
|
3597 |
break |
|
3598 |
fi |
|
3599 |
||
3600 |
done |
|
3601 |
ac_cv_prog_CPP=$CPP |
|
3602 |
||
3603 |
fi |
|
3604 |
CPP=$ac_cv_prog_CPP |
|
3605 |
else |
|
3606 |
ac_cv_prog_CPP=$CPP |
|
3607 |
fi |
|
3608 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
|
3609 |
echo "${ECHO_T}$CPP" >&6 |
|
3610 |
ac_preproc_ok=false |
|
3611 |
for ac_c_preproc_warn_flag in '' yes |
|
3612 |
do |
|
3613 |
# Use a header file that comes with gcc, so configuring glibc |
|
3614 |
# with a fresh cross-compiler works. |
|
3615 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
3616 |
# <limits.h> exists even on freestanding compilers. |
|
3617 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
3618 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
3619 |
cat >conftest.$ac_ext <<_ACEOF |
|
3620 |
/* confdefs.h. */ |
|
3621 |
_ACEOF |
|
3622 |
cat confdefs.h >>conftest.$ac_ext |
|
3623 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3624 |
/* end confdefs.h. */ |
|
3625 |
#ifdef __STDC__ |
|
3626 |
# include <limits.h> |
|
3627 |
#else |
|
3628 |
# include <assert.h> |
|
3629 |
#endif |
|
3630 |
Syntax error |
|
3631 |
_ACEOF |
|
3632 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
3633 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
3634 |
ac_status=$? |
|
3635 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3636 |
rm -f conftest.er1 |
|
3637 |
cat conftest.err >&5 |
|
3638 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3639 |
(exit $ac_status); } >/dev/null; then |
|
3640 |
if test -s conftest.err; then |
|
3641 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
3642 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
3643 |
else |
|
3644 |
ac_cpp_err= |
|
3645 |
fi |
|
3646 |
else |
|
3647 |
ac_cpp_err=yes |
|
3648 |
fi |
|
3649 |
if test -z "$ac_cpp_err"; then |
|
3650 |
: |
|
3651 |
else |
|
3652 |
echo "$as_me: failed program was:" >&5 |
|
3653 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3654 |
||
3655 |
# Broken: fails on valid input. |
|
3656 |
continue |
|
3657 |
fi |
|
3658 |
rm -f conftest.err conftest.$ac_ext |
|
3659 |
||
3660 |
# OK, works on sane cases. Now check whether non-existent headers |
|
3661 |
# can be detected and how. |
|
3662 |
cat >conftest.$ac_ext <<_ACEOF |
|
3663 |
/* confdefs.h. */ |
|
3664 |
_ACEOF |
|
3665 |
cat confdefs.h >>conftest.$ac_ext |
|
3666 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3667 |
/* end confdefs.h. */ |
|
3668 |
#include <ac_nonexistent.h> |
|
3669 |
_ACEOF |
|
3670 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
3671 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
3672 |
ac_status=$? |
|
3673 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3674 |
rm -f conftest.er1 |
|
3675 |
cat conftest.err >&5 |
|
3676 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3677 |
(exit $ac_status); } >/dev/null; then |
|
3678 |
if test -s conftest.err; then |
|
3679 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
3680 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
3681 |
else |
|
3682 |
ac_cpp_err= |
|
3683 |
fi |
|
3684 |
else |
|
3685 |
ac_cpp_err=yes |
|
3686 |
fi |
|
3687 |
if test -z "$ac_cpp_err"; then |
|
3688 |
# Broken: success on invalid input. |
|
3689 |
continue |
|
3690 |
else |
|
3691 |
echo "$as_me: failed program was:" >&5 |
|
3692 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3693 |
||
3694 |
# Passes both tests. |
|
3695 |
ac_preproc_ok=: |
|
3696 |
break |
|
3697 |
fi |
|
3698 |
rm -f conftest.err conftest.$ac_ext |
|
3699 |
||
3700 |
done |
|
3701 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
3702 |
rm -f conftest.err conftest.$ac_ext |
|
3703 |
if $ac_preproc_ok; then |
|
3704 |
: |
|
3705 |
else |
|
3706 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
3707 |
See \`config.log' for more details." >&5 |
|
3708 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
3709 |
See \`config.log' for more details." >&2;} |
|
3710 |
{ (exit 1); exit 1; }; } |
|
3711 |
fi |
|
3712 |
||
3713 |
ac_ext=c |
|
3714 |
ac_cpp='$CPP $CPPFLAGS' |
|
3715 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3716 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3717 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3718 |
||
3719 |
||
3720 |
if test "$GCC" = "yes"; then |
|
3721 |
if test "$kde_use_debug_code" != "no"; then |
|
3722 |
if test $kde_use_debug_code = "full"; then |
|
3723 |
CFLAGS="-g3 -fno-inline $CFLAGS" |
|
3724 |
else |
|
3725 |
CFLAGS="-g -O2 $CFLAGS" |
|
3726 |
fi |
|
3727 |
else |
|
3728 |
CFLAGS="-O2 $CFLAGS" |
|
3729 |
fi |
|
3730 |
fi |
|
3731 |
||
3732 |
if test "$kde_use_debug_define" = "yes"; then |
|
3733 |
CFLAGS="-DNDEBUG $CFLAGS" |
|
3734 |
fi |
|
3735 |
||
3736 |
||
3737 |
case "$host" in |
|
3738 |
*-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";; |
|
3739 |
*-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";; |
|
3740 |
esac |
|
3741 |
||
3742 |
if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then |
|
3743 |
LDFLAGS="" |
|
3744 |
fi |
|
3745 |
||
3746 |
CXXFLAGS=" $CXXFLAGS" |
|
3747 |
||
3748 |
ac_ext=cc |
|
3749 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
3750 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3751 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3752 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
3753 |
if test -n "$ac_tool_prefix"; then |
|
3754 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
|
3755 |
do |
|
3756 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
3757 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
3758 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3759 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
3760 |
if test "${ac_cv_prog_CXX+set}" = set; then |
|
3761 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3762 |
else |
|
3763 |
if test -n "$CXX"; then |
|
3764 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
3765 |
else |
|
3766 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3767 |
for as_dir in $PATH |
|
3768 |
do |
|
3769 |
IFS=$as_save_IFS |
|
3770 |
test -z "$as_dir" && as_dir=. |
|
3771 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3772 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3773 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
3774 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3775 |
break 2 |
|
3776 |
fi |
|
3777 |
done |
|
3778 |
done |
|
3779 |
||
3780 |
fi |
|
3781 |
fi |
|
3782 |
CXX=$ac_cv_prog_CXX |
|
3783 |
if test -n "$CXX"; then |
|
3784 |
echo "$as_me:$LINENO: result: $CXX" >&5 |
|
3785 |
echo "${ECHO_T}$CXX" >&6 |
|
3786 |
else |
|
3787 |
echo "$as_me:$LINENO: result: no" >&5 |
|
3788 |
echo "${ECHO_T}no" >&6 |
|
3789 |
fi |
|
3790 |
||
3791 |
test -n "$CXX" && break |
|
3792 |
done |
|
3793 |
fi |
|
3794 |
if test -z "$CXX"; then |
|
3795 |
ac_ct_CXX=$CXX |
|
3796 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
|
3797 |
do |
|
3798 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3799 |
set dummy $ac_prog; ac_word=$2 |
|
3800 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3801 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
3802 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
|
3803 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3804 |
else |
|
3805 |
if test -n "$ac_ct_CXX"; then |
|
3806 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
3807 |
else |
|
3808 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3809 |
for as_dir in $PATH |
|
3810 |
do |
|
3811 |
IFS=$as_save_IFS |
|
3812 |
test -z "$as_dir" && as_dir=. |
|
3813 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3814 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3815 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
3816 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3817 |
break 2 |
|
3818 |
fi |
|
3819 |
done |
|
3820 |
done |
|
3821 |
||
3822 |
fi |
|
3823 |
fi |
|
3824 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
3825 |
if test -n "$ac_ct_CXX"; then |
|
3826 |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
|
3827 |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
|
3828 |
else |
|
3829 |
echo "$as_me:$LINENO: result: no" >&5 |
|
3830 |
echo "${ECHO_T}no" >&6 |
|
3831 |
fi |
|
3832 |
||
3833 |
test -n "$ac_ct_CXX" && break |
|
3834 |
done |
|
3835 |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
|
3836 |
||
3837 |
CXX=$ac_ct_CXX |
|
3838 |
fi |
|
3839 |
||
3840 |
||
3841 |
# Provide some information about the compiler. |
|
3842 |
echo "$as_me:$LINENO:" \ |
|
3843 |
"checking for C++ compiler version" >&5 |
|
3844 |
ac_compiler=`set X $ac_compile; echo $2` |
|
3845 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
3846 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
3847 |
ac_status=$? |
|
3848 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3849 |
(exit $ac_status); } |
|
3850 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
3851 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
3852 |
ac_status=$? |
|
3853 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3854 |
(exit $ac_status); } |
|
3855 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
3856 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
3857 |
ac_status=$? |
|
3858 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3859 |
(exit $ac_status); } |
|
3860 |
||
3861 |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
|
3862 |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
|
3863 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
|
3864 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3865 |
else |
|
3866 |
cat >conftest.$ac_ext <<_ACEOF |
|
3867 |
/* confdefs.h. */ |
|
3868 |
_ACEOF |
|
3869 |
cat confdefs.h >>conftest.$ac_ext |
|
3870 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3871 |
/* end confdefs.h. */ |
|
3872 |
||
3873 |
int |
|
3874 |
main () |
|
3875 |
{ |
|
3876 |
#ifndef __GNUC__ |
|
3877 |
choke me |
|
3878 |
#endif |
|
3879 |
||
3880 |
; |
|
3881 |
return 0; |
|
3882 |
} |
|
3883 |
_ACEOF |
|
3884 |
rm -f conftest.$ac_objext |
|
3885 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3886 |
(eval $ac_compile) 2>conftest.er1 |
|
3887 |
ac_status=$? |
|
3888 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3889 |
rm -f conftest.er1 |
|
3890 |
cat conftest.err >&5 |
|
3891 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3892 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3893 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
3894 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3895 |
(eval $ac_try) 2>&5 |
|
3896 |
ac_status=$? |
|
3897 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3898 |
(exit $ac_status); }; } && |
|
3899 |
{ ac_try='test -s conftest.$ac_objext' |
|
3900 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3901 |
(eval $ac_try) 2>&5 |
|
3902 |
ac_status=$? |
|
3903 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3904 |
(exit $ac_status); }; }; then |
|
3905 |
ac_compiler_gnu=yes |
|
3906 |
else |
|
3907 |
echo "$as_me: failed program was:" >&5 |
|
3908 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3909 |
||
3910 |
ac_compiler_gnu=no |
|
3911 |
fi |
|
3912 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3913 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
3914 |
||
3915 |
fi |
|
3916 |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
3917 |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
|
3918 |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
|
3919 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
3920 |
ac_save_CXXFLAGS=$CXXFLAGS |
|
3921 |
CXXFLAGS="-g" |
|
3922 |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
|
3923 |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
|
3924 |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
|
3925 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3926 |
else |
|
3927 |
cat >conftest.$ac_ext <<_ACEOF |
|
3928 |
/* confdefs.h. */ |
|
3929 |
_ACEOF |
|
3930 |
cat confdefs.h >>conftest.$ac_ext |
|
3931 |
cat >>conftest.$ac_ext <<_ACEOF |
|
3932 |
/* end confdefs.h. */ |
|
3933 |
||
3934 |
int |
|
3935 |
main () |
|
3936 |
{ |
|
3937 |
||
3938 |
; |
|
3939 |
return 0; |
|
3940 |
} |
|
3941 |
_ACEOF |
|
3942 |
rm -f conftest.$ac_objext |
|
3943 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
3944 |
(eval $ac_compile) 2>conftest.er1 |
|
3945 |
ac_status=$? |
|
3946 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
3947 |
rm -f conftest.er1 |
|
3948 |
cat conftest.err >&5 |
|
3949 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3950 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
3951 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
3952 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3953 |
(eval $ac_try) 2>&5 |
|
3954 |
ac_status=$? |
|
3955 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3956 |
(exit $ac_status); }; } && |
|
3957 |
{ ac_try='test -s conftest.$ac_objext' |
|
3958 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
3959 |
(eval $ac_try) 2>&5 |
|
3960 |
ac_status=$? |
|
3961 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3962 |
(exit $ac_status); }; }; then |
|
3963 |
ac_cv_prog_cxx_g=yes |
|
3964 |
else |
|
3965 |
echo "$as_me: failed program was:" >&5 |
|
3966 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3967 |
||
3968 |
ac_cv_prog_cxx_g=no |
|
3969 |
fi |
|
3970 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3971 |
fi |
|
3972 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
|
3973 |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
|
3974 |
if test "$ac_test_CXXFLAGS" = set; then |
|
3975 |
CXXFLAGS=$ac_save_CXXFLAGS |
|
3976 |
elif test $ac_cv_prog_cxx_g = yes; then |
|
3977 |
if test "$GXX" = yes; then |
|
3978 |
CXXFLAGS="-g -O2" |
|
3979 |
else |
|
3980 |
CXXFLAGS="-g" |
|
3981 |
fi |
|
3982 |
else |
|
3983 |
if test "$GXX" = yes; then |
|
3984 |
CXXFLAGS="-O2" |
|
3985 |
else |
|
3986 |
CXXFLAGS= |
|
3987 |
fi |
|
3988 |
fi |
|
3989 |
for ac_declaration in \ |
|
3990 |
'' \ |
|
3991 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
3992 |
'extern "C" void std::exit (int); using std::exit;' \ |
|
3993 |
'extern "C" void exit (int) throw ();' \ |
|
3994 |
'extern "C" void exit (int);' \ |
|
3995 |
'void exit (int);' |
|
3996 |
do |
|
3997 |
cat >conftest.$ac_ext <<_ACEOF |
|
3998 |
/* confdefs.h. */ |
|
3999 |
_ACEOF |
|
4000 |
cat confdefs.h >>conftest.$ac_ext |
|
4001 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4002 |
/* end confdefs.h. */ |
|
4003 |
$ac_declaration |
|
4004 |
#include <stdlib.h> |
|
4005 |
int |
|
4006 |
main () |
|
4007 |
{ |
|
4008 |
exit (42); |
|
4009 |
; |
|
4010 |
return 0; |
|
4011 |
} |
|
4012 |
_ACEOF |
|
4013 |
rm -f conftest.$ac_objext |
|
4014 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
4015 |
(eval $ac_compile) 2>conftest.er1 |
|
4016 |
ac_status=$? |
|
4017 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4018 |
rm -f conftest.er1 |
|
4019 |
cat conftest.err >&5 |
|
4020 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4021 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4022 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4023 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4024 |
(eval $ac_try) 2>&5 |
|
4025 |
ac_status=$? |
|
4026 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4027 |
(exit $ac_status); }; } && |
|
4028 |
{ ac_try='test -s conftest.$ac_objext' |
|
4029 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4030 |
(eval $ac_try) 2>&5 |
|
4031 |
ac_status=$? |
|
4032 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4033 |
(exit $ac_status); }; }; then |
|
4034 |
: |
|
4035 |
else |
|
4036 |
echo "$as_me: failed program was:" >&5 |
|
4037 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4038 |
||
4039 |
continue |
|
4040 |
fi |
|
4041 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4042 |
cat >conftest.$ac_ext <<_ACEOF |
|
4043 |
/* confdefs.h. */ |
|
4044 |
_ACEOF |
|
4045 |
cat confdefs.h >>conftest.$ac_ext |
|
4046 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4047 |
/* end confdefs.h. */ |
|
4048 |
$ac_declaration |
|
4049 |
int |
|
4050 |
main () |
|
4051 |
{ |
|
4052 |
exit (42); |
|
4053 |
; |
|
4054 |
return 0; |
|
4055 |
} |
|
4056 |
_ACEOF |
|
4057 |
rm -f conftest.$ac_objext |
|
4058 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
4059 |
(eval $ac_compile) 2>conftest.er1 |
|
4060 |
ac_status=$? |
|
4061 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4062 |
rm -f conftest.er1 |
|
4063 |
cat conftest.err >&5 |
|
4064 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4065 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4066 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4067 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4068 |
(eval $ac_try) 2>&5 |
|
4069 |
ac_status=$? |
|
4070 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4071 |
(exit $ac_status); }; } && |
|
4072 |
{ ac_try='test -s conftest.$ac_objext' |
|
4073 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4074 |
(eval $ac_try) 2>&5 |
|
4075 |
ac_status=$? |
|
4076 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4077 |
(exit $ac_status); }; }; then |
|
4078 |
break |
|
4079 |
else |
|
4080 |
echo "$as_me: failed program was:" >&5 |
|
4081 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4082 |
||
4083 |
fi |
|
4084 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4085 |
done |
|
4086 |
rm -f conftest* |
|
4087 |
if test -n "$ac_declaration"; then |
|
4088 |
echo '#ifdef __cplusplus' >>confdefs.h |
|
4089 |
echo $ac_declaration >>confdefs.h |
|
4090 |
echo '#endif' >>confdefs.h |
|
4091 |
fi |
|
4092 |
||
4093 |
ac_ext=c |
|
4094 |
ac_cpp='$CPP $CPPFLAGS' |
|
4095 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4096 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4097 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4098 |
||
4099 |
depcc="$CXX" am_compiler_list= |
|
4100 |
||
4101 |
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
4102 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
|
4103 |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
|
4104 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4105 |
else |
|
4106 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
4107 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
4108 |
# making bogus files that we don't know about and never remove. For |
|
4109 |
# instance it was reported that on HP-UX the gcc test will end up |
|
4110 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
4111 |
# in D'. |
|
4112 |
mkdir conftest.dir |
|
4113 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
4114 |
# using a relative directory. |
|
4115 |
cp "$am_depcomp" conftest.dir |
|
4116 |
cd conftest.dir |
|
4117 |
# We will build objects and dependencies in a subdirectory because |
|
4118 |
# it helps to detect inapplicable dependency modes. For instance |
|
4119 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
4120 |
# side effect of compilation, but ICC will put the dependencies in |
|
4121 |
# the current directory while Tru64 will put them in the object |
|
4122 |
# directory. |
|
4123 |
mkdir sub |
|
4124 |
||
4125 |
am_cv_CXX_dependencies_compiler_type=none |
|
4126 |
if test "$am_compiler_list" = ""; then |
|
4127 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
4128 |
fi |
|
4129 |
for depmode in $am_compiler_list; do |
|
4130 |
# Setup a source with many dependencies, because some compilers |
|
4131 |
# like to wrap large dependency lists on column 80 (with \), and |
|
4132 |
# we should not choose a depcomp mode which is confused by this. |
|
4133 |
# |
|
4134 |
# We need to recreate these files for each test, as the compiler may |
|
4135 |
# overwrite some of them when testing with obscure command lines. |
|
4136 |
# This happens at least with the AIX C compiler. |
|
4137 |
: > sub/conftest.c |
|
4138 |
for i in 1 2 3 4 5 6; do |
|
4139 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4140 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
4141 |
# Solaris 8's {/usr,}/bin/sh. |
|
4142 |
touch sub/conftst$i.h |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
4143 |
done |
4144 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
4145 |
||
4146 |
case $depmode in |
|
4147 |
nosideeffect) |
|
4148 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
4149 |
# only be used when explicitly requested |
|
4150 |
if test "x$enable_dependency_tracking" = xyes; then |
|
4151 |
continue |
|
4152 |
else |
|
4153 |
break |
|
4154 |
fi |
|
4155 |
;; |
|
4156 |
none) break ;; |
|
4157 |
esac |
|
4158 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
4159 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
4160 |
# handle `-M -o', and we need to detect this. |
|
4161 |
if depmode=$depmode \ |
|
4162 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
4163 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
4164 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
4165 |
>/dev/null 2>conftest.err && |
|
4166 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
4167 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
4168 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
4169 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4170 |
# or remarks (even with -Werror). So we grep stderr for any message |
4171 |
# that says an option was ignored or not supported. |
|
4172 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
4173 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
4174 |
# The diagnosis changed in icc 8.0: |
|
4175 |
# icc: Command line remark: option '-MP' not supported |
|
4176 |
if (grep 'ignoring option' conftest.err || |
|
4177 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
4178 |
am_cv_CXX_dependencies_compiler_type=$depmode |
4179 |
break |
|
4180 |
fi |
|
4181 |
fi |
|
4182 |
done |
|
4183 |
||
4184 |
cd .. |
|
4185 |
rm -rf conftest.dir |
|
4186 |
else |
|
4187 |
am_cv_CXX_dependencies_compiler_type=none |
|
4188 |
fi |
|
4189 |
||
4190 |
fi |
|
4191 |
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
|
4192 |
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
|
4193 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
|
4194 |
||
4195 |
||
4196 |
||
4197 |
if |
|
4198 |
test "x$enable_dependency_tracking" != xno \ |
|
4199 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
|
4200 |
am__fastdepCXX_TRUE= |
|
4201 |
am__fastdepCXX_FALSE='#' |
|
4202 |
else |
|
4203 |
am__fastdepCXX_TRUE='#' |
|
4204 |
am__fastdepCXX_FALSE= |
|
4205 |
fi |
|
4206 |
||
4207 |
||
4208 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4209 |
|
4210 |
echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5 |
|
4211 |
echo $ECHO_N "checking whether $CC is blacklisted... $ECHO_C" >&6 |
|
4212 |
||
4213 |
||
4214 |
cat >conftest.$ac_ext <<_ACEOF |
|
4215 |
/* confdefs.h. */ |
|
4216 |
_ACEOF |
|
4217 |
cat confdefs.h >>conftest.$ac_ext |
|
4218 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4219 |
/* end confdefs.h. */ |
|
4220 |
||
4221 |
#ifdef __GNUC__ |
|
4222 |
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0 |
|
4223 |
choke me |
|
4224 |
#endif |
|
4225 |
#endif |
|
4226 |
||
4227 |
int |
|
4228 |
main () |
|
4229 |
{ |
|
4230 |
||
4231 |
; |
|
4232 |
return 0; |
|
4233 |
} |
|
4234 |
_ACEOF |
|
4235 |
rm -f conftest.$ac_objext |
|
4236 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
4237 |
(eval $ac_compile) 2>conftest.er1 |
|
4238 |
ac_status=$? |
|
4239 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4240 |
rm -f conftest.er1 |
|
4241 |
cat conftest.err >&5 |
|
4242 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4243 |
(exit $ac_status); } && |
|
4244 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
4245 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4246 |
(eval $ac_try) 2>&5 |
|
4247 |
ac_status=$? |
|
4248 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4249 |
(exit $ac_status); }; } && |
|
4250 |
{ ac_try='test -s conftest.$ac_objext' |
|
4251 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4252 |
(eval $ac_try) 2>&5 |
|
4253 |
ac_status=$? |
|
4254 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4255 |
(exit $ac_status); }; }; then |
|
4256 |
kde_bad_compiler=no |
|
4257 |
else |
|
4258 |
echo "$as_me: failed program was:" >&5 |
|
4259 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4260 |
||
4261 |
kde_bad_compiler=yes |
|
4262 |
||
4263 |
fi |
|
4264 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4265 |
||
4266 |
echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5 |
|
4267 |
echo "${ECHO_T}$kde_bad_compiler" >&6 |
|
4268 |
||
4269 |
if test "$kde_bad_compiler" = "yes"; then |
|
4270 |
{ { echo "$as_me:$LINENO: error: |
|
4271 |
||
4272 |
This particular compiler version is blacklisted because it |
|
4273 |
is known to miscompile KDE. Please use a newer version, or |
|
4274 |
if that is not yet available, choose an older version. |
|
4275 |
||
4276 |
Please do not report a bug or bother us reporting this |
|
4277 |
configure error. We know about it, and we introduced |
|
4278 |
it by intention to avoid untraceable bugs or crashes in KDE. |
|
4279 |
||
4280 |
" >&5 |
|
4281 |
echo "$as_me: error: |
|
4282 |
||
4283 |
This particular compiler version is blacklisted because it |
|
4284 |
is known to miscompile KDE. Please use a newer version, or |
|
4285 |
if that is not yet available, choose an older version. |
|
4286 |
||
4287 |
Please do not report a bug or bother us reporting this |
|
4288 |
configure error. We know about it, and we introduced |
|
4289 |
it by intention to avoid untraceable bugs or crashes in KDE. |
|
4290 |
||
4291 |
" >&2;} |
|
4292 |
{ (exit 1); exit 1; }; } |
|
4293 |
fi |
|
4294 |
||
4295 |
||
4296 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
4297 |
if test "$GXX" = "yes" || test "$CXX" = "KCC"; then |
4298 |
if test "$kde_use_debug_code" != "no"; then |
|
4299 |
if test "$CXX" = "KCC"; then |
|
4300 |
CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS" |
|
4301 |
else |
|
4302 |
if test "$kde_use_debug_code" = "full"; then |
|
4303 |
CXXFLAGS="-g3 -fno-inline $CXXFLAGS" |
|
4304 |
else |
|
4305 |
CXXFLAGS="-g -O2 $CXXFLAGS" |
|
4306 |
fi |
|
4307 |
fi |
|
4308 |
||
4309 |
echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5 |
|
4310 |
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6 |
|
4311 |
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'` |
|
4312 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
4313 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4314 |
else |
|
4315 |
||
4316 |
||
4317 |
||
4318 |
||
4319 |
ac_ext=cc |
|
4320 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
4321 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4322 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4323 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4324 |
||
4325 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
4326 |
||
4327 |
||
4328 |
||
4329 |
save_CXXFLAGS="$CXXFLAGS" |
|
4330 |
CXXFLAGS="$CXXFLAGS -fno-builtin" |
|
4331 |
cat >conftest.$ac_ext <<_ACEOF |
|
4332 |
/* confdefs.h. */ |
|
4333 |
_ACEOF |
|
4334 |
cat confdefs.h >>conftest.$ac_ext |
|
4335 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4336 |
/* end confdefs.h. */ |
|
4337 |
||
4338 |
int |
|
4339 |
main () |
|
4340 |
{ |
|
4341 |
return 0; |
|
4342 |
; |
|
4343 |
return 0; |
|
4344 |
} |
|
4345 |
_ACEOF |
|
4346 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
4347 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
4348 |
(eval $ac_link) 2>conftest.er1 |
|
4349 |
ac_status=$? |
|
4350 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4351 |
rm -f conftest.er1 |
|
4352 |
cat conftest.err >&5 |
|
4353 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4354 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4355 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4356 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4357 |
(eval $ac_try) 2>&5 |
|
4358 |
ac_status=$? |
|
4359 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4360 |
(exit $ac_status); }; } && |
|
4361 |
{ ac_try='test -s conftest$ac_exeext' |
|
4362 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4363 |
(eval $ac_try) 2>&5 |
|
4364 |
ac_status=$? |
|
4365 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4366 |
(exit $ac_status); }; }; then |
|
4367 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
4368 |
else |
|
4369 |
echo "$as_me: failed program was:" >&5 |
|
4370 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4371 |
||
4372 |
fi |
|
4373 |
rm -f conftest.err conftest.$ac_objext \ |
|
4374 |
conftest$ac_exeext conftest.$ac_ext |
|
4375 |
CXXFLAGS="$save_CXXFLAGS" |
|
4376 |
ac_ext=c |
|
4377 |
ac_cpp='$CPP $CPPFLAGS' |
|
4378 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4379 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4380 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4381 |
||
4382 |
||
4383 |
fi |
|
4384 |
||
4385 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
4386 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4387 |
echo "${ECHO_T}yes" >&6 |
|
4388 |
: |
|
4389 |
CXXFLAGS="-fno-builtin $CXXFLAGS" |
|
4390 |
else |
|
4391 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4392 |
echo "${ECHO_T}no" >&6 |
|
4393 |
: |
|
4394 |
||
4395 |
fi |
|
4396 |
||
4397 |
||
4398 |
||
4399 |
echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5 |
|
4400 |
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6 |
|
4401 |
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'` |
|
4402 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
4403 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4404 |
else |
|
4405 |
||
4406 |
||
4407 |
||
4408 |
ac_ext=cc |
|
4409 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
4410 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4411 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4412 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4413 |
||
4414 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
4415 |
||
4416 |
||
4417 |
save_CXXFLAGS="$CXXFLAGS" |
|
4418 |
CXXFLAGS="$CXXFLAGS -Woverloaded-virtual" |
|
4419 |
cat >conftest.$ac_ext <<_ACEOF |
|
4420 |
/* confdefs.h. */ |
|
4421 |
_ACEOF |
|
4422 |
cat confdefs.h >>conftest.$ac_ext |
|
4423 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4424 |
/* end confdefs.h. */ |
|
4425 |
||
4426 |
int |
|
4427 |
main () |
|
4428 |
{ |
|
4429 |
return 0; |
|
4430 |
; |
|
4431 |
return 0; |
|
4432 |
} |
|
4433 |
_ACEOF |
|
4434 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
4435 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
4436 |
(eval $ac_link) 2>conftest.er1 |
|
4437 |
ac_status=$? |
|
4438 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4439 |
rm -f conftest.er1 |
|
4440 |
cat conftest.err >&5 |
|
4441 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4442 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4443 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4444 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4445 |
(eval $ac_try) 2>&5 |
|
4446 |
ac_status=$? |
|
4447 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4448 |
(exit $ac_status); }; } && |
|
4449 |
{ ac_try='test -s conftest$ac_exeext' |
|
4450 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4451 |
(eval $ac_try) 2>&5 |
|
4452 |
ac_status=$? |
|
4453 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4454 |
(exit $ac_status); }; }; then |
|
4455 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
4456 |
else |
|
4457 |
echo "$as_me: failed program was:" >&5 |
|
4458 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4459 |
||
4460 |
fi |
|
4461 |
rm -f conftest.err conftest.$ac_objext \ |
|
4462 |
conftest$ac_exeext conftest.$ac_ext |
|
4463 |
CXXFLAGS="$save_CXXFLAGS" |
|
4464 |
ac_ext=c |
|
4465 |
ac_cpp='$CPP $CPPFLAGS' |
|
4466 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4467 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4468 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4469 |
||
4470 |
||
4471 |
fi |
|
4472 |
||
4473 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
4474 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4475 |
echo "${ECHO_T}yes" >&6 |
|
4476 |
: |
|
4477 |
WOVERLOADED_VIRTUAL="-Woverloaded-virtual" |
|
4478 |
else |
|
4479 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4480 |
echo "${ECHO_T}no" >&6 |
|
4481 |
: |
|
4482 |
WOVERLOADED_VRITUAL="" |
|
4483 |
fi |
|
4484 |
||
4485 |
||
4486 |
else |
|
4487 |
if test "$CXX" = "KCC"; then |
|
4488 |
CXXFLAGS="+K3 $CXXFLAGS" |
|
4489 |
else |
|
4490 |
CXXFLAGS="-O2 $CXXFLAGS" |
|
4491 |
fi |
|
4492 |
fi |
|
4493 |
fi |
|
4494 |
||
4495 |
if test "$kde_use_debug_define" = "yes"; then |
|
4496 |
CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS" |
|
4497 |
fi |
|
4498 |
||
4499 |
if test "$kde_use_profiling" = "yes"; then |
|
4500 |
||
4501 |
echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5 |
|
4502 |
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6 |
|
4503 |
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'` |
|
4504 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
4505 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4506 |
else |
|
4507 |
||
4508 |
||
4509 |
||
4510 |
ac_ext=cc |
|
4511 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
4512 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4513 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4514 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4515 |
||
4516 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
4517 |
||
4518 |
||
4519 |
save_CXXFLAGS="$CXXFLAGS" |
|
4520 |
CXXFLAGS="$CXXFLAGS -pg" |
|
4521 |
cat >conftest.$ac_ext <<_ACEOF |
|
4522 |
/* confdefs.h. */ |
|
4523 |
_ACEOF |
|
4524 |
cat confdefs.h >>conftest.$ac_ext |
|
4525 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4526 |
/* end confdefs.h. */ |
|
4527 |
||
4528 |
int |
|
4529 |
main () |
|
4530 |
{ |
|
4531 |
return 0; |
|
4532 |
; |
|
4533 |
return 0; |
|
4534 |
} |
|
4535 |
_ACEOF |
|
4536 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
4537 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
4538 |
(eval $ac_link) 2>conftest.er1 |
|
4539 |
ac_status=$? |
|
4540 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4541 |
rm -f conftest.er1 |
|
4542 |
cat conftest.err >&5 |
|
4543 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4544 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4545 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4546 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4547 |
(eval $ac_try) 2>&5 |
|
4548 |
ac_status=$? |
|
4549 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4550 |
(exit $ac_status); }; } && |
|
4551 |
{ ac_try='test -s conftest$ac_exeext' |
|
4552 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4553 |
(eval $ac_try) 2>&5 |
|
4554 |
ac_status=$? |
|
4555 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4556 |
(exit $ac_status); }; }; then |
|
4557 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
4558 |
else |
|
4559 |
echo "$as_me: failed program was:" >&5 |
|
4560 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4561 |
||
4562 |
fi |
|
4563 |
rm -f conftest.err conftest.$ac_objext \ |
|
4564 |
conftest$ac_exeext conftest.$ac_ext |
|
4565 |
CXXFLAGS="$save_CXXFLAGS" |
|
4566 |
ac_ext=c |
|
4567 |
ac_cpp='$CPP $CPPFLAGS' |
|
4568 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4569 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4570 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4571 |
||
4572 |
||
4573 |
fi |
|
4574 |
||
4575 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
4576 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4577 |
echo "${ECHO_T}yes" >&6 |
|
4578 |
: |
|
4579 |
||
4580 |
CFLAGS="-pg $CFLAGS" |
|
4581 |
CXXFLAGS="-pg $CXXFLAGS" |
|
4582 |
||
4583 |
else |
|
4584 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4585 |
echo "${ECHO_T}no" >&6 |
|
4586 |
: |
|
4587 |
||
4588 |
fi |
|
4589 |
||
4590 |
fi |
|
4591 |
||
4592 |
if test "$kde_use_warnings" = "yes"; then |
|
4593 |
if test "$GCC" = "yes"; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4594 |
CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4595 |
case $host in |
4596 |
*-*-linux-gnu) |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4597 |
CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4598 |
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS" |
4599 |
||
4600 |
echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5 |
|
4601 |
echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6 |
|
4602 |
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'` |
|
4603 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
4604 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4605 |
else |
|
4606 |
||
4607 |
||
4608 |
||
4609 |
ac_ext=cc |
|
4610 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
4611 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4612 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4613 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4614 |
||
4615 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
4616 |
||
4617 |
||
4618 |
save_CXXFLAGS="$CXXFLAGS" |
|
4619 |
CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute" |
|
4620 |
cat >conftest.$ac_ext <<_ACEOF |
|
4621 |
/* confdefs.h. */ |
|
4622 |
_ACEOF |
|
4623 |
cat confdefs.h >>conftest.$ac_ext |
|
4624 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4625 |
/* end confdefs.h. */ |
|
4626 |
||
4627 |
int |
|
4628 |
main () |
|
4629 |
{ |
|
4630 |
return 0; |
|
4631 |
; |
|
4632 |
return 0; |
|
4633 |
} |
|
4634 |
_ACEOF |
|
4635 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
4636 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
4637 |
(eval $ac_link) 2>conftest.er1 |
|
4638 |
ac_status=$? |
|
4639 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4640 |
rm -f conftest.er1 |
|
4641 |
cat conftest.err >&5 |
|
4642 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4643 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4644 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4645 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4646 |
(eval $ac_try) 2>&5 |
|
4647 |
ac_status=$? |
|
4648 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4649 |
(exit $ac_status); }; } && |
|
4650 |
{ ac_try='test -s conftest$ac_exeext' |
|
4651 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4652 |
(eval $ac_try) 2>&5 |
|
4653 |
ac_status=$? |
|
4654 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4655 |
(exit $ac_status); }; }; then |
|
4656 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
4657 |
else |
|
4658 |
echo "$as_me: failed program was:" >&5 |
|
4659 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4660 |
||
4661 |
fi |
|
4662 |
rm -f conftest.err conftest.$ac_objext \ |
|
4663 |
conftest$ac_exeext conftest.$ac_ext |
|
4664 |
CXXFLAGS="$save_CXXFLAGS" |
|
4665 |
ac_ext=c |
|
4666 |
ac_cpp='$CPP $CPPFLAGS' |
|
4667 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4668 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4669 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4670 |
||
4671 |
||
4672 |
fi |
|
4673 |
||
4674 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
4675 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4676 |
echo "${ECHO_T}yes" >&6 |
|
4677 |
: |
|
4678 |
CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute" |
|
4679 |
else |
|
4680 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4681 |
echo "${ECHO_T}no" >&6 |
|
4682 |
: |
|
4683 |
||
4684 |
fi |
|
4685 |
||
4686 |
||
4687 |
echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5 |
|
4688 |
echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6 |
|
4689 |
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'` |
|
4690 |
if eval "test \"\${kde_cv_prog_cc_$kde_cache+set}\" = set"; then |
|
4691 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4692 |
else |
|
4693 |
||
4694 |
||
4695 |
||
4696 |
ac_ext=c |
|
4697 |
ac_cpp='$CPP $CPPFLAGS' |
|
4698 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4699 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4700 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4701 |
||
4702 |
save_CFLAGS="$CFLAGS" |
|
4703 |
CFLAGS="$CFLAGS -Wmissing-format-attribute" |
|
4704 |
cat >conftest.$ac_ext <<_ACEOF |
|
4705 |
/* confdefs.h. */ |
|
4706 |
_ACEOF |
|
4707 |
cat confdefs.h >>conftest.$ac_ext |
|
4708 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4709 |
/* end confdefs.h. */ |
|
4710 |
||
4711 |
int |
|
4712 |
main () |
|
4713 |
{ |
|
4714 |
return 0; |
|
4715 |
; |
|
4716 |
return 0; |
|
4717 |
} |
|
4718 |
_ACEOF |
|
4719 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
4720 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
4721 |
(eval $ac_link) 2>conftest.er1 |
|
4722 |
ac_status=$? |
|
4723 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4724 |
rm -f conftest.er1 |
|
4725 |
cat conftest.err >&5 |
|
4726 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4727 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4728 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4729 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4730 |
(eval $ac_try) 2>&5 |
|
4731 |
ac_status=$? |
|
4732 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4733 |
(exit $ac_status); }; } && |
|
4734 |
{ ac_try='test -s conftest$ac_exeext' |
|
4735 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4736 |
(eval $ac_try) 2>&5 |
|
4737 |
ac_status=$? |
|
4738 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4739 |
(exit $ac_status); }; }; then |
|
4740 |
eval "kde_cv_prog_cc_$kde_cache=yes" |
|
4741 |
else |
|
4742 |
echo "$as_me: failed program was:" >&5 |
|
4743 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4744 |
||
4745 |
fi |
|
4746 |
rm -f conftest.err conftest.$ac_objext \ |
|
4747 |
conftest$ac_exeext conftest.$ac_ext |
|
4748 |
CFLAGS="$save_CFLAGS" |
|
4749 |
ac_ext=c |
|
4750 |
ac_cpp='$CPP $CPPFLAGS' |
|
4751 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4752 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4753 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4754 |
||
4755 |
||
4756 |
fi |
|
4757 |
||
4758 |
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then |
|
4759 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4760 |
echo "${ECHO_T}yes" >&6 |
|
4761 |
: |
|
4762 |
CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute" |
|
4763 |
else |
|
4764 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4765 |
echo "${ECHO_T}no" >&6 |
|
4766 |
: |
|
4767 |
||
4768 |
fi |
|
4769 |
||
4770 |
;; |
|
4771 |
esac |
|
4772 |
||
4773 |
echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5 |
|
4774 |
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6 |
|
4775 |
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'` |
|
4776 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
4777 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4778 |
else |
|
4779 |
||
4780 |
||
4781 |
||
4782 |
ac_ext=cc |
|
4783 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
4784 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4785 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4786 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4787 |
||
4788 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
4789 |
||
4790 |
||
4791 |
save_CXXFLAGS="$CXXFLAGS" |
|
4792 |
CXXFLAGS="$CXXFLAGS -Wundef" |
|
4793 |
cat >conftest.$ac_ext <<_ACEOF |
|
4794 |
/* confdefs.h. */ |
|
4795 |
_ACEOF |
|
4796 |
cat confdefs.h >>conftest.$ac_ext |
|
4797 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4798 |
/* end confdefs.h. */ |
|
4799 |
||
4800 |
int |
|
4801 |
main () |
|
4802 |
{ |
|
4803 |
return 0; |
|
4804 |
; |
|
4805 |
return 0; |
|
4806 |
} |
|
4807 |
_ACEOF |
|
4808 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
4809 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
4810 |
(eval $ac_link) 2>conftest.er1 |
|
4811 |
ac_status=$? |
|
4812 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4813 |
rm -f conftest.er1 |
|
4814 |
cat conftest.err >&5 |
|
4815 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4816 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4817 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4818 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4819 |
(eval $ac_try) 2>&5 |
|
4820 |
ac_status=$? |
|
4821 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4822 |
(exit $ac_status); }; } && |
|
4823 |
{ ac_try='test -s conftest$ac_exeext' |
|
4824 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4825 |
(eval $ac_try) 2>&5 |
|
4826 |
ac_status=$? |
|
4827 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4828 |
(exit $ac_status); }; }; then |
|
4829 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
4830 |
else |
|
4831 |
echo "$as_me: failed program was:" >&5 |
|
4832 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4833 |
||
4834 |
fi |
|
4835 |
rm -f conftest.err conftest.$ac_objext \ |
|
4836 |
conftest$ac_exeext conftest.$ac_ext |
|
4837 |
CXXFLAGS="$save_CXXFLAGS" |
|
4838 |
ac_ext=c |
|
4839 |
ac_cpp='$CPP $CPPFLAGS' |
|
4840 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4841 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4842 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4843 |
||
4844 |
||
4845 |
fi |
|
4846 |
||
4847 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
4848 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4849 |
echo "${ECHO_T}yes" >&6 |
|
4850 |
: |
|
4851 |
CXXFLAGS="-Wundef $CXXFLAGS" |
|
4852 |
else |
|
4853 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4854 |
echo "${ECHO_T}no" >&6 |
|
4855 |
: |
|
4856 |
||
4857 |
fi |
|
4858 |
||
4859 |
||
4860 |
echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5 |
|
4861 |
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6 |
|
4862 |
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'` |
|
4863 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
4864 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4865 |
else |
|
4866 |
||
4867 |
||
4868 |
||
4869 |
ac_ext=cc |
|
4870 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
4871 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4872 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4873 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4874 |
||
4875 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
4876 |
||
4877 |
||
4878 |
save_CXXFLAGS="$CXXFLAGS" |
|
4879 |
CXXFLAGS="$CXXFLAGS -Wno-long-long" |
|
4880 |
cat >conftest.$ac_ext <<_ACEOF |
|
4881 |
/* confdefs.h. */ |
|
4882 |
_ACEOF |
|
4883 |
cat confdefs.h >>conftest.$ac_ext |
|
4884 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4885 |
/* end confdefs.h. */ |
|
4886 |
||
4887 |
int |
|
4888 |
main () |
|
4889 |
{ |
|
4890 |
return 0; |
|
4891 |
; |
|
4892 |
return 0; |
|
4893 |
} |
|
4894 |
_ACEOF |
|
4895 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
4896 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
4897 |
(eval $ac_link) 2>conftest.er1 |
|
4898 |
ac_status=$? |
|
4899 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4900 |
rm -f conftest.er1 |
|
4901 |
cat conftest.err >&5 |
|
4902 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4903 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4904 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4905 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4906 |
(eval $ac_try) 2>&5 |
|
4907 |
ac_status=$? |
|
4908 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4909 |
(exit $ac_status); }; } && |
|
4910 |
{ ac_try='test -s conftest$ac_exeext' |
|
4911 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4912 |
(eval $ac_try) 2>&5 |
|
4913 |
ac_status=$? |
|
4914 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4915 |
(exit $ac_status); }; }; then |
|
4916 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
4917 |
else |
|
4918 |
echo "$as_me: failed program was:" >&5 |
|
4919 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4920 |
||
4921 |
fi |
|
4922 |
rm -f conftest.err conftest.$ac_objext \ |
|
4923 |
conftest$ac_exeext conftest.$ac_ext |
|
4924 |
CXXFLAGS="$save_CXXFLAGS" |
|
4925 |
ac_ext=c |
|
4926 |
ac_cpp='$CPP $CPPFLAGS' |
|
4927 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4928 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4929 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4930 |
||
4931 |
||
4932 |
fi |
|
4933 |
||
4934 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
4935 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4936 |
echo "${ECHO_T}yes" >&6 |
|
4937 |
: |
|
4938 |
CXXFLAGS="-Wno-long-long $CXXFLAGS" |
|
4939 |
else |
|
4940 |
echo "$as_me:$LINENO: result: no" >&5 |
|
4941 |
echo "${ECHO_T}no" >&6 |
|
4942 |
: |
|
4943 |
||
4944 |
fi |
|
4945 |
||
4946 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4947 |
echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5 |
4948 |
echo $ECHO_N "checking whether $CXX supports -Wno-non-virtual-dtor... $ECHO_C" >&6 |
|
4949 |
kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'` |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
4950 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
4951 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4952 |
else |
|
4953 |
||
4954 |
||
4955 |
||
4956 |
ac_ext=cc |
|
4957 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
4958 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4959 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4960 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4961 |
||
4962 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
4963 |
||
4964 |
||
4965 |
save_CXXFLAGS="$CXXFLAGS" |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4966 |
CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4967 |
cat >conftest.$ac_ext <<_ACEOF |
4968 |
/* confdefs.h. */ |
|
4969 |
_ACEOF |
|
4970 |
cat confdefs.h >>conftest.$ac_ext |
|
4971 |
cat >>conftest.$ac_ext <<_ACEOF |
|
4972 |
/* end confdefs.h. */ |
|
4973 |
||
4974 |
int |
|
4975 |
main () |
|
4976 |
{ |
|
4977 |
return 0; |
|
4978 |
; |
|
4979 |
return 0; |
|
4980 |
} |
|
4981 |
_ACEOF |
|
4982 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
4983 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
4984 |
(eval $ac_link) 2>conftest.er1 |
|
4985 |
ac_status=$? |
|
4986 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
4987 |
rm -f conftest.er1 |
|
4988 |
cat conftest.err >&5 |
|
4989 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4990 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
4991 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
4992 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4993 |
(eval $ac_try) 2>&5 |
|
4994 |
ac_status=$? |
|
4995 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4996 |
(exit $ac_status); }; } && |
|
4997 |
{ ac_try='test -s conftest$ac_exeext' |
|
4998 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
4999 |
(eval $ac_try) 2>&5 |
|
5000 |
ac_status=$? |
|
5001 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5002 |
(exit $ac_status); }; }; then |
|
5003 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5004 |
else |
|
5005 |
echo "$as_me: failed program was:" >&5 |
|
5006 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5007 |
||
5008 |
fi |
|
5009 |
rm -f conftest.err conftest.$ac_objext \ |
|
5010 |
conftest$ac_exeext conftest.$ac_ext |
|
5011 |
CXXFLAGS="$save_CXXFLAGS" |
|
5012 |
ac_ext=c |
|
5013 |
ac_cpp='$CPP $CPPFLAGS' |
|
5014 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5015 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5016 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5017 |
||
5018 |
||
5019 |
fi |
|
5020 |
||
5021 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5022 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5023 |
echo "${ECHO_T}yes" >&6 |
|
5024 |
: |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5025 |
CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5026 |
else |
5027 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5028 |
echo "${ECHO_T}no" >&6 |
|
5029 |
: |
|
5030 |
||
5031 |
fi |
|
5032 |
||
5033 |
fi |
|
5034 |
fi |
|
5035 |
||
5036 |
if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then |
|
5037 |
CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS" |
|
5038 |
fi |
|
5039 |
||
5040 |
# Check whether --enable-pch or --disable-pch was given. |
|
5041 |
if test "${enable_pch+set}" = set; then |
|
5042 |
enableval="$enable_pch" |
|
5043 |
kde_use_pch=$enableval |
|
5044 |
else |
|
5045 |
kde_use_pch=no |
|
5046 |
fi; |
|
5047 |
||
5048 |
HAVE_GCC_VISIBILITY=0 |
|
5049 |
||
5050 |
||
5051 |
if test "$GXX" = "yes"; then |
|
5052 |
||
5053 |
echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5 |
|
5054 |
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6 |
|
5055 |
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'` |
|
5056 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5057 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5058 |
else |
|
5059 |
||
5060 |
||
5061 |
||
5062 |
ac_ext=cc |
|
5063 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5064 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5065 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5066 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5067 |
||
5068 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5069 |
||
5070 |
||
5071 |
save_CXXFLAGS="$CXXFLAGS" |
|
5072 |
CXXFLAGS="$CXXFLAGS -fno-exceptions" |
|
5073 |
cat >conftest.$ac_ext <<_ACEOF |
|
5074 |
/* confdefs.h. */ |
|
5075 |
_ACEOF |
|
5076 |
cat confdefs.h >>conftest.$ac_ext |
|
5077 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5078 |
/* end confdefs.h. */ |
|
5079 |
||
5080 |
int |
|
5081 |
main () |
|
5082 |
{ |
|
5083 |
return 0; |
|
5084 |
; |
|
5085 |
return 0; |
|
5086 |
} |
|
5087 |
_ACEOF |
|
5088 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5089 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5090 |
(eval $ac_link) 2>conftest.er1 |
|
5091 |
ac_status=$? |
|
5092 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5093 |
rm -f conftest.er1 |
|
5094 |
cat conftest.err >&5 |
|
5095 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5096 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5097 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5098 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5099 |
(eval $ac_try) 2>&5 |
|
5100 |
ac_status=$? |
|
5101 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5102 |
(exit $ac_status); }; } && |
|
5103 |
{ ac_try='test -s conftest$ac_exeext' |
|
5104 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5105 |
(eval $ac_try) 2>&5 |
|
5106 |
ac_status=$? |
|
5107 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5108 |
(exit $ac_status); }; }; then |
|
5109 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5110 |
else |
|
5111 |
echo "$as_me: failed program was:" >&5 |
|
5112 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5113 |
||
5114 |
fi |
|
5115 |
rm -f conftest.err conftest.$ac_objext \ |
|
5116 |
conftest$ac_exeext conftest.$ac_ext |
|
5117 |
CXXFLAGS="$save_CXXFLAGS" |
|
5118 |
ac_ext=c |
|
5119 |
ac_cpp='$CPP $CPPFLAGS' |
|
5120 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5121 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5122 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5123 |
||
5124 |
||
5125 |
fi |
|
5126 |
||
5127 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5128 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5129 |
echo "${ECHO_T}yes" >&6 |
|
5130 |
: |
|
5131 |
CXXFLAGS="$CXXFLAGS -fno-exceptions" |
|
5132 |
else |
|
5133 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5134 |
echo "${ECHO_T}no" >&6 |
|
5135 |
: |
|
5136 |
||
5137 |
fi |
|
5138 |
||
5139 |
||
5140 |
echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5 |
|
5141 |
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6 |
|
5142 |
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'` |
|
5143 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5144 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5145 |
else |
|
5146 |
||
5147 |
||
5148 |
||
5149 |
ac_ext=cc |
|
5150 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5151 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5152 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5153 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5154 |
||
5155 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5156 |
||
5157 |
||
5158 |
save_CXXFLAGS="$CXXFLAGS" |
|
5159 |
CXXFLAGS="$CXXFLAGS -fno-check-new" |
|
5160 |
cat >conftest.$ac_ext <<_ACEOF |
|
5161 |
/* confdefs.h. */ |
|
5162 |
_ACEOF |
|
5163 |
cat confdefs.h >>conftest.$ac_ext |
|
5164 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5165 |
/* end confdefs.h. */ |
|
5166 |
||
5167 |
int |
|
5168 |
main () |
|
5169 |
{ |
|
5170 |
return 0; |
|
5171 |
; |
|
5172 |
return 0; |
|
5173 |
} |
|
5174 |
_ACEOF |
|
5175 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5176 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5177 |
(eval $ac_link) 2>conftest.er1 |
|
5178 |
ac_status=$? |
|
5179 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5180 |
rm -f conftest.er1 |
|
5181 |
cat conftest.err >&5 |
|
5182 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5183 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5184 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5185 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5186 |
(eval $ac_try) 2>&5 |
|
5187 |
ac_status=$? |
|
5188 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5189 |
(exit $ac_status); }; } && |
|
5190 |
{ ac_try='test -s conftest$ac_exeext' |
|
5191 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5192 |
(eval $ac_try) 2>&5 |
|
5193 |
ac_status=$? |
|
5194 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5195 |
(exit $ac_status); }; }; then |
|
5196 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5197 |
else |
|
5198 |
echo "$as_me: failed program was:" >&5 |
|
5199 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5200 |
||
5201 |
fi |
|
5202 |
rm -f conftest.err conftest.$ac_objext \ |
|
5203 |
conftest$ac_exeext conftest.$ac_ext |
|
5204 |
CXXFLAGS="$save_CXXFLAGS" |
|
5205 |
ac_ext=c |
|
5206 |
ac_cpp='$CPP $CPPFLAGS' |
|
5207 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5208 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5209 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5210 |
||
5211 |
||
5212 |
fi |
|
5213 |
||
5214 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5215 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5216 |
echo "${ECHO_T}yes" >&6 |
|
5217 |
: |
|
5218 |
CXXFLAGS="$CXXFLAGS -fno-check-new" |
|
5219 |
else |
|
5220 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5221 |
echo "${ECHO_T}no" >&6 |
|
5222 |
: |
|
5223 |
||
5224 |
fi |
|
5225 |
||
5226 |
||
5227 |
echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5 |
|
5228 |
echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6 |
|
5229 |
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'` |
|
5230 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5231 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5232 |
else |
|
5233 |
||
5234 |
||
5235 |
||
5236 |
ac_ext=cc |
|
5237 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5238 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5239 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5240 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5241 |
||
5242 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5243 |
||
5244 |
||
5245 |
save_CXXFLAGS="$CXXFLAGS" |
|
5246 |
CXXFLAGS="$CXXFLAGS -fno-common" |
|
5247 |
cat >conftest.$ac_ext <<_ACEOF |
|
5248 |
/* confdefs.h. */ |
|
5249 |
_ACEOF |
|
5250 |
cat confdefs.h >>conftest.$ac_ext |
|
5251 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5252 |
/* end confdefs.h. */ |
|
5253 |
||
5254 |
int |
|
5255 |
main () |
|
5256 |
{ |
|
5257 |
return 0; |
|
5258 |
; |
|
5259 |
return 0; |
|
5260 |
} |
|
5261 |
_ACEOF |
|
5262 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5263 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5264 |
(eval $ac_link) 2>conftest.er1 |
|
5265 |
ac_status=$? |
|
5266 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5267 |
rm -f conftest.er1 |
|
5268 |
cat conftest.err >&5 |
|
5269 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5270 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5271 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5272 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5273 |
(eval $ac_try) 2>&5 |
|
5274 |
ac_status=$? |
|
5275 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5276 |
(exit $ac_status); }; } && |
|
5277 |
{ ac_try='test -s conftest$ac_exeext' |
|
5278 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5279 |
(eval $ac_try) 2>&5 |
|
5280 |
ac_status=$? |
|
5281 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5282 |
(exit $ac_status); }; }; then |
|
5283 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5284 |
else |
|
5285 |
echo "$as_me: failed program was:" >&5 |
|
5286 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5287 |
||
5288 |
fi |
|
5289 |
rm -f conftest.err conftest.$ac_objext \ |
|
5290 |
conftest$ac_exeext conftest.$ac_ext |
|
5291 |
CXXFLAGS="$save_CXXFLAGS" |
|
5292 |
ac_ext=c |
|
5293 |
ac_cpp='$CPP $CPPFLAGS' |
|
5294 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5295 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5296 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5297 |
||
5298 |
||
5299 |
fi |
|
5300 |
||
5301 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5302 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5303 |
echo "${ECHO_T}yes" >&6 |
|
5304 |
: |
|
5305 |
CXXFLAGS="$CXXFLAGS -fno-common" |
|
5306 |
else |
|
5307 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5308 |
echo "${ECHO_T}no" >&6 |
|
5309 |
: |
|
5310 |
||
5311 |
fi |
|
5312 |
||
5313 |
||
5314 |
echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5 |
|
5315 |
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6 |
|
5316 |
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'` |
|
5317 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5318 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5319 |
else |
|
5320 |
||
5321 |
||
5322 |
||
5323 |
ac_ext=cc |
|
5324 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5325 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5326 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5327 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5328 |
||
5329 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5330 |
||
5331 |
||
5332 |
save_CXXFLAGS="$CXXFLAGS" |
|
5333 |
CXXFLAGS="$CXXFLAGS -fexceptions" |
|
5334 |
cat >conftest.$ac_ext <<_ACEOF |
|
5335 |
/* confdefs.h. */ |
|
5336 |
_ACEOF |
|
5337 |
cat confdefs.h >>conftest.$ac_ext |
|
5338 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5339 |
/* end confdefs.h. */ |
|
5340 |
||
5341 |
int |
|
5342 |
main () |
|
5343 |
{ |
|
5344 |
return 0; |
|
5345 |
; |
|
5346 |
return 0; |
|
5347 |
} |
|
5348 |
_ACEOF |
|
5349 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5350 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5351 |
(eval $ac_link) 2>conftest.er1 |
|
5352 |
ac_status=$? |
|
5353 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5354 |
rm -f conftest.er1 |
|
5355 |
cat conftest.err >&5 |
|
5356 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5357 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5358 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5359 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5360 |
(eval $ac_try) 2>&5 |
|
5361 |
ac_status=$? |
|
5362 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5363 |
(exit $ac_status); }; } && |
|
5364 |
{ ac_try='test -s conftest$ac_exeext' |
|
5365 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5366 |
(eval $ac_try) 2>&5 |
|
5367 |
ac_status=$? |
|
5368 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5369 |
(exit $ac_status); }; }; then |
|
5370 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5371 |
else |
|
5372 |
echo "$as_me: failed program was:" >&5 |
|
5373 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5374 |
||
5375 |
fi |
|
5376 |
rm -f conftest.err conftest.$ac_objext \ |
|
5377 |
conftest$ac_exeext conftest.$ac_ext |
|
5378 |
CXXFLAGS="$save_CXXFLAGS" |
|
5379 |
ac_ext=c |
|
5380 |
ac_cpp='$CPP $CPPFLAGS' |
|
5381 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5382 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5383 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5384 |
||
5385 |
||
5386 |
fi |
|
5387 |
||
5388 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5389 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5390 |
echo "${ECHO_T}yes" >&6 |
|
5391 |
: |
|
5392 |
USE_EXCEPTIONS="-fexceptions" |
|
5393 |
else |
|
5394 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5395 |
echo "${ECHO_T}no" >&6 |
|
5396 |
: |
|
5397 |
USE_EXCEPTIONS= |
|
5398 |
fi |
|
5399 |
||
5400 |
ENABLE_PERMISSIVE_FLAG="-fpermissive" |
|
5401 |
||
5402 |
if test "$kde_use_pch" = "yes"; then |
|
5403 |
echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5 |
|
5404 |
echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6 |
|
5405 |
echo >conftest.h |
|
5406 |
if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then |
|
5407 |
kde_gcc_supports_pch=yes |
|
5408 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5409 |
echo "${ECHO_T}yes" >&6 |
|
5410 |
else |
|
5411 |
kde_gcc_supports_pch=no |
|
5412 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5413 |
echo "${ECHO_T}no" >&6 |
|
5414 |
fi |
|
5415 |
if test "$kde_gcc_supports_pch" = "yes"; then |
|
5416 |
echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5 |
|
5417 |
echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6 |
|
5418 |
if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then |
|
5419 |
kde_gcc_supports_pch=yes |
|
5420 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5421 |
echo "${ECHO_T}yes" >&6 |
|
5422 |
else |
|
5423 |
kde_gcc_supports_pch=no |
|
5424 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5425 |
echo "${ECHO_T}no" >&6 |
|
5426 |
fi |
|
5427 |
fi |
|
5428 |
rm -f conftest.h conftest.h.gch |
|
5429 |
fi |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5430 |
fi |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5431 |
|
5432 |
||
5433 |
if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then |
|
5434 |
unsermake_enable_pch_TRUE= |
|
5435 |
unsermake_enable_pch_FALSE='#' |
|
5436 |
else |
|
5437 |
unsermake_enable_pch_TRUE='#' |
|
5438 |
unsermake_enable_pch_FALSE= |
|
5439 |
fi |
|
5440 |
||
5441 |
if test "$CXX" = "KCC"; then |
|
5442 |
||
5443 |
if test "$kde_use_pch" = "yes"; then |
|
5444 |
||
5445 |
echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5 |
|
5446 |
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6 |
|
5447 |
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'` |
|
5448 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5449 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5450 |
else |
|
5451 |
||
5452 |
||
5453 |
||
5454 |
ac_ext=cc |
|
5455 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5456 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5457 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5458 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5459 |
||
5460 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5461 |
||
5462 |
||
5463 |
save_CXXFLAGS="$CXXFLAGS" |
|
5464 |
CXXFLAGS="$CXXFLAGS --pch" |
|
5465 |
cat >conftest.$ac_ext <<_ACEOF |
|
5466 |
/* confdefs.h. */ |
|
5467 |
_ACEOF |
|
5468 |
cat confdefs.h >>conftest.$ac_ext |
|
5469 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5470 |
/* end confdefs.h. */ |
|
5471 |
||
5472 |
int |
|
5473 |
main () |
|
5474 |
{ |
|
5475 |
return 0; |
|
5476 |
; |
|
5477 |
return 0; |
|
5478 |
} |
|
5479 |
_ACEOF |
|
5480 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5481 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5482 |
(eval $ac_link) 2>conftest.er1 |
|
5483 |
ac_status=$? |
|
5484 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5485 |
rm -f conftest.er1 |
|
5486 |
cat conftest.err >&5 |
|
5487 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5488 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5489 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5490 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5491 |
(eval $ac_try) 2>&5 |
|
5492 |
ac_status=$? |
|
5493 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5494 |
(exit $ac_status); }; } && |
|
5495 |
{ ac_try='test -s conftest$ac_exeext' |
|
5496 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5497 |
(eval $ac_try) 2>&5 |
|
5498 |
ac_status=$? |
|
5499 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5500 |
(exit $ac_status); }; }; then |
|
5501 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5502 |
else |
|
5503 |
echo "$as_me: failed program was:" >&5 |
|
5504 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5505 |
||
5506 |
fi |
|
5507 |
rm -f conftest.err conftest.$ac_objext \ |
|
5508 |
conftest$ac_exeext conftest.$ac_ext |
|
5509 |
CXXFLAGS="$save_CXXFLAGS" |
|
5510 |
ac_ext=c |
|
5511 |
ac_cpp='$CPP $CPPFLAGS' |
|
5512 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5513 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5514 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5515 |
||
5516 |
||
5517 |
fi |
|
5518 |
||
5519 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5520 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5521 |
echo "${ECHO_T}yes" >&6 |
|
5522 |
: |
|
5523 |
CXXFLAGS="$CXXFLAGS --pch" |
|
5524 |
else |
|
5525 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5526 |
echo "${ECHO_T}no" >&6 |
|
5527 |
: |
|
5528 |
||
5529 |
fi |
|
5530 |
||
5531 |
fi |
|
5532 |
||
5533 |
echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5 |
|
5534 |
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6 |
|
5535 |
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'` |
|
5536 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5537 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5538 |
else |
|
5539 |
||
5540 |
||
5541 |
||
5542 |
ac_ext=cc |
|
5543 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5544 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5545 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5546 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5547 |
||
5548 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5549 |
||
5550 |
||
5551 |
save_CXXFLAGS="$CXXFLAGS" |
|
5552 |
CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6" |
|
5553 |
cat >conftest.$ac_ext <<_ACEOF |
|
5554 |
/* confdefs.h. */ |
|
5555 |
_ACEOF |
|
5556 |
cat confdefs.h >>conftest.$ac_ext |
|
5557 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5558 |
/* end confdefs.h. */ |
|
5559 |
||
5560 |
int |
|
5561 |
main () |
|
5562 |
{ |
|
5563 |
return 0; |
|
5564 |
; |
|
5565 |
return 0; |
|
5566 |
} |
|
5567 |
_ACEOF |
|
5568 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5569 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5570 |
(eval $ac_link) 2>conftest.er1 |
|
5571 |
ac_status=$? |
|
5572 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5573 |
rm -f conftest.er1 |
|
5574 |
cat conftest.err >&5 |
|
5575 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5576 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5577 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5578 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5579 |
(eval $ac_try) 2>&5 |
|
5580 |
ac_status=$? |
|
5581 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5582 |
(exit $ac_status); }; } && |
|
5583 |
{ ac_try='test -s conftest$ac_exeext' |
|
5584 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5585 |
(eval $ac_try) 2>&5 |
|
5586 |
ac_status=$? |
|
5587 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5588 |
(exit $ac_status); }; }; then |
|
5589 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5590 |
else |
|
5591 |
echo "$as_me: failed program was:" >&5 |
|
5592 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5593 |
||
5594 |
fi |
|
5595 |
rm -f conftest.err conftest.$ac_objext \ |
|
5596 |
conftest$ac_exeext conftest.$ac_ext |
|
5597 |
CXXFLAGS="$save_CXXFLAGS" |
|
5598 |
ac_ext=c |
|
5599 |
ac_cpp='$CPP $CPPFLAGS' |
|
5600 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5601 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5602 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5603 |
||
5604 |
||
5605 |
fi |
|
5606 |
||
5607 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5608 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5609 |
echo "${ECHO_T}yes" >&6 |
|
5610 |
: |
|
5611 |
CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6" |
|
5612 |
else |
|
5613 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5614 |
echo "${ECHO_T}no" >&6 |
|
5615 |
: |
|
5616 |
||
5617 |
fi |
|
5618 |
||
5619 |
||
5620 |
echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5 |
|
5621 |
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6 |
|
5622 |
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'` |
|
5623 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5624 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5625 |
else |
|
5626 |
||
5627 |
||
5628 |
||
5629 |
ac_ext=cc |
|
5630 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5631 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5632 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5633 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5634 |
||
5635 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5636 |
||
5637 |
||
5638 |
save_CXXFLAGS="$CXXFLAGS" |
|
5639 |
CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2" |
|
5640 |
cat >conftest.$ac_ext <<_ACEOF |
|
5641 |
/* confdefs.h. */ |
|
5642 |
_ACEOF |
|
5643 |
cat confdefs.h >>conftest.$ac_ext |
|
5644 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5645 |
/* end confdefs.h. */ |
|
5646 |
||
5647 |
int |
|
5648 |
main () |
|
5649 |
{ |
|
5650 |
return 0; |
|
5651 |
; |
|
5652 |
return 0; |
|
5653 |
} |
|
5654 |
_ACEOF |
|
5655 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5656 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5657 |
(eval $ac_link) 2>conftest.er1 |
|
5658 |
ac_status=$? |
|
5659 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5660 |
rm -f conftest.er1 |
|
5661 |
cat conftest.err >&5 |
|
5662 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5663 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5664 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5665 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5666 |
(eval $ac_try) 2>&5 |
|
5667 |
ac_status=$? |
|
5668 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5669 |
(exit $ac_status); }; } && |
|
5670 |
{ ac_try='test -s conftest$ac_exeext' |
|
5671 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5672 |
(eval $ac_try) 2>&5 |
|
5673 |
ac_status=$? |
|
5674 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5675 |
(exit $ac_status); }; }; then |
|
5676 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5677 |
else |
|
5678 |
echo "$as_me: failed program was:" >&5 |
|
5679 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5680 |
||
5681 |
fi |
|
5682 |
rm -f conftest.err conftest.$ac_objext \ |
|
5683 |
conftest$ac_exeext conftest.$ac_ext |
|
5684 |
CXXFLAGS="$save_CXXFLAGS" |
|
5685 |
ac_ext=c |
|
5686 |
ac_cpp='$CPP $CPPFLAGS' |
|
5687 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5688 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5689 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5690 |
||
5691 |
||
5692 |
fi |
|
5693 |
||
5694 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5695 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5696 |
echo "${ECHO_T}yes" >&6 |
|
5697 |
: |
|
5698 |
CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2" |
|
5699 |
else |
|
5700 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5701 |
echo "${ECHO_T}no" >&6 |
|
5702 |
: |
|
5703 |
||
5704 |
fi |
|
5705 |
||
5706 |
||
5707 |
echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5 |
|
5708 |
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6 |
|
5709 |
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'` |
|
5710 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5711 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5712 |
else |
|
5713 |
||
5714 |
||
5715 |
||
5716 |
ac_ext=cc |
|
5717 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5718 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5719 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5720 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5721 |
||
5722 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5723 |
||
5724 |
||
5725 |
save_CXXFLAGS="$CXXFLAGS" |
|
5726 |
CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0" |
|
5727 |
cat >conftest.$ac_ext <<_ACEOF |
|
5728 |
/* confdefs.h. */ |
|
5729 |
_ACEOF |
|
5730 |
cat confdefs.h >>conftest.$ac_ext |
|
5731 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5732 |
/* end confdefs.h. */ |
|
5733 |
||
5734 |
int |
|
5735 |
main () |
|
5736 |
{ |
|
5737 |
return 0; |
|
5738 |
; |
|
5739 |
return 0; |
|
5740 |
} |
|
5741 |
_ACEOF |
|
5742 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5743 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5744 |
(eval $ac_link) 2>conftest.er1 |
|
5745 |
ac_status=$? |
|
5746 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5747 |
rm -f conftest.er1 |
|
5748 |
cat conftest.err >&5 |
|
5749 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5750 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5751 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5752 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5753 |
(eval $ac_try) 2>&5 |
|
5754 |
ac_status=$? |
|
5755 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5756 |
(exit $ac_status); }; } && |
|
5757 |
{ ac_try='test -s conftest$ac_exeext' |
|
5758 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5759 |
(eval $ac_try) 2>&5 |
|
5760 |
ac_status=$? |
|
5761 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5762 |
(exit $ac_status); }; }; then |
|
5763 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5764 |
else |
|
5765 |
echo "$as_me: failed program was:" >&5 |
|
5766 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5767 |
||
5768 |
fi |
|
5769 |
rm -f conftest.err conftest.$ac_objext \ |
|
5770 |
conftest$ac_exeext conftest.$ac_ext |
|
5771 |
CXXFLAGS="$save_CXXFLAGS" |
|
5772 |
ac_ext=c |
|
5773 |
ac_cpp='$CPP $CPPFLAGS' |
|
5774 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5775 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5776 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5777 |
||
5778 |
||
5779 |
fi |
|
5780 |
||
5781 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5782 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5783 |
echo "${ECHO_T}yes" >&6 |
|
5784 |
: |
|
5785 |
CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0" |
|
5786 |
else |
|
5787 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5788 |
echo "${ECHO_T}no" >&6 |
|
5789 |
: |
|
5790 |
||
5791 |
fi |
|
5792 |
||
5793 |
||
5794 |
echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5 |
|
5795 |
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6 |
|
5796 |
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'` |
|
5797 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5798 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5799 |
else |
|
5800 |
||
5801 |
||
5802 |
||
5803 |
ac_ext=cc |
|
5804 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5805 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5806 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5807 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5808 |
||
5809 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5810 |
||
5811 |
||
5812 |
save_CXXFLAGS="$CXXFLAGS" |
|
5813 |
CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0" |
|
5814 |
cat >conftest.$ac_ext <<_ACEOF |
|
5815 |
/* confdefs.h. */ |
|
5816 |
_ACEOF |
|
5817 |
cat confdefs.h >>conftest.$ac_ext |
|
5818 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5819 |
/* end confdefs.h. */ |
|
5820 |
||
5821 |
int |
|
5822 |
main () |
|
5823 |
{ |
|
5824 |
return 0; |
|
5825 |
; |
|
5826 |
return 0; |
|
5827 |
} |
|
5828 |
_ACEOF |
|
5829 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5830 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5831 |
(eval $ac_link) 2>conftest.er1 |
|
5832 |
ac_status=$? |
|
5833 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5834 |
rm -f conftest.er1 |
|
5835 |
cat conftest.err >&5 |
|
5836 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5837 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5838 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5839 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5840 |
(eval $ac_try) 2>&5 |
|
5841 |
ac_status=$? |
|
5842 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5843 |
(exit $ac_status); }; } && |
|
5844 |
{ ac_try='test -s conftest$ac_exeext' |
|
5845 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5846 |
(eval $ac_try) 2>&5 |
|
5847 |
ac_status=$? |
|
5848 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5849 |
(exit $ac_status); }; }; then |
|
5850 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5851 |
else |
|
5852 |
echo "$as_me: failed program was:" >&5 |
|
5853 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5854 |
||
5855 |
fi |
|
5856 |
rm -f conftest.err conftest.$ac_objext \ |
|
5857 |
conftest$ac_exeext conftest.$ac_ext |
|
5858 |
CXXFLAGS="$save_CXXFLAGS" |
|
5859 |
ac_ext=c |
|
5860 |
ac_cpp='$CPP $CPPFLAGS' |
|
5861 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5862 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5863 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5864 |
||
5865 |
||
5866 |
fi |
|
5867 |
||
5868 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5869 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5870 |
echo "${ECHO_T}yes" >&6 |
|
5871 |
: |
|
5872 |
CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0" |
|
5873 |
else |
|
5874 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5875 |
echo "${ECHO_T}no" >&6 |
|
5876 |
: |
|
5877 |
||
5878 |
fi |
|
5879 |
||
5880 |
||
5881 |
echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5 |
|
5882 |
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6 |
|
5883 |
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'` |
|
5884 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
5885 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5886 |
else |
|
5887 |
||
5888 |
||
5889 |
||
5890 |
ac_ext=cc |
|
5891 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
5892 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5893 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5894 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5895 |
||
5896 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
5897 |
||
5898 |
||
5899 |
save_CXXFLAGS="$CXXFLAGS" |
|
5900 |
CXXFLAGS="$CXXFLAGS --one_per" |
|
5901 |
cat >conftest.$ac_ext <<_ACEOF |
|
5902 |
/* confdefs.h. */ |
|
5903 |
_ACEOF |
|
5904 |
cat confdefs.h >>conftest.$ac_ext |
|
5905 |
cat >>conftest.$ac_ext <<_ACEOF |
|
5906 |
/* end confdefs.h. */ |
|
5907 |
||
5908 |
int |
|
5909 |
main () |
|
5910 |
{ |
|
5911 |
return 0; |
|
5912 |
; |
|
5913 |
return 0; |
|
5914 |
} |
|
5915 |
_ACEOF |
|
5916 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
5917 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
5918 |
(eval $ac_link) 2>conftest.er1 |
|
5919 |
ac_status=$? |
|
5920 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
5921 |
rm -f conftest.er1 |
|
5922 |
cat conftest.err >&5 |
|
5923 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5924 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
5925 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
5926 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5927 |
(eval $ac_try) 2>&5 |
|
5928 |
ac_status=$? |
|
5929 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5930 |
(exit $ac_status); }; } && |
|
5931 |
{ ac_try='test -s conftest$ac_exeext' |
|
5932 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5933 |
(eval $ac_try) 2>&5 |
|
5934 |
ac_status=$? |
|
5935 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5936 |
(exit $ac_status); }; }; then |
|
5937 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
5938 |
else |
|
5939 |
echo "$as_me: failed program was:" >&5 |
|
5940 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5941 |
||
5942 |
fi |
|
5943 |
rm -f conftest.err conftest.$ac_objext \ |
|
5944 |
conftest$ac_exeext conftest.$ac_ext |
|
5945 |
CXXFLAGS="$save_CXXFLAGS" |
|
5946 |
ac_ext=c |
|
5947 |
ac_cpp='$CPP $CPPFLAGS' |
|
5948 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5949 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5950 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5951 |
||
5952 |
||
5953 |
fi |
|
5954 |
||
5955 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
5956 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5957 |
echo "${ECHO_T}yes" >&6 |
|
5958 |
: |
|
5959 |
CXXFLAGS="$CXXFLAGS --one_per" |
|
5960 |
else |
|
5961 |
echo "$as_me:$LINENO: result: no" >&5 |
|
5962 |
echo "${ECHO_T}no" >&6 |
|
5963 |
: |
|
5964 |
||
5965 |
fi |
|
5966 |
||
5967 |
fi |
|
5968 |
||
5969 |
USE_RTTI= |
|
5970 |
||
5971 |
||
5972 |
case "$host" in |
|
5973 |
*-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;; |
|
5974 |
*-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";; |
|
5975 |
*-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";; |
|
5976 |
*-*-solaris*) |
|
5977 |
if test "$GXX" = yes; then |
|
5978 |
libstdcpp=`$CXX -print-file-name=libstdc++.so` |
|
5979 |
if test ! -f $libstdcpp; then |
|
5980 |
{ { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5 |
|
5981 |
echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;} |
|
5982 |
{ (exit 1); exit 1; }; } |
|
5983 |
fi |
|
5984 |
fi |
|
5985 |
;; |
|
5986 |
esac |
|
5987 |
||
5988 |
if test "x$kde_use_qt_emb" != "xyes"; then |
|
5989 |
__val=$CXX |
|
5990 |
__forbid=" -fno-rtti -rpath " |
|
5991 |
if test -n "$__val"; then |
|
5992 |
__new="" |
|
5993 |
ac_save_IFS=$IFS |
|
5994 |
IFS=" " |
|
5995 |
for i in $__val; do |
|
5996 |
case "$__forbid" in |
|
5997 |
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5 |
|
5998 |
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;; |
|
5999 |
*) # Careful to not add spaces, where there were none, because otherwise |
|
6000 |
# libtool gets confused, if we change e.g. CXX |
|
6001 |
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; |
|
6002 |
esac |
|
6003 |
done |
|
6004 |
IFS=$ac_save_IFS |
|
6005 |
CXX=$__new |
|
6006 |
fi |
|
6007 |
||
6008 |
__val=$CXXFLAGS |
|
6009 |
__forbid=" -fno-rtti -rpath " |
|
6010 |
if test -n "$__val"; then |
|
6011 |
__new="" |
|
6012 |
ac_save_IFS=$IFS |
|
6013 |
IFS=" " |
|
6014 |
for i in $__val; do |
|
6015 |
case "$__forbid" in |
|
6016 |
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5 |
|
6017 |
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;; |
|
6018 |
*) # Careful to not add spaces, where there were none, because otherwise |
|
6019 |
# libtool gets confused, if we change e.g. CXX |
|
6020 |
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; |
|
6021 |
esac |
|
6022 |
done |
|
6023 |
IFS=$ac_save_IFS |
|
6024 |
CXXFLAGS=$__new |
|
6025 |
fi |
|
6026 |
||
6027 |
else |
|
6028 |
__val=$CXX |
|
6029 |
__forbid=" -rpath " |
|
6030 |
if test -n "$__val"; then |
|
6031 |
__new="" |
|
6032 |
ac_save_IFS=$IFS |
|
6033 |
IFS=" " |
|
6034 |
for i in $__val; do |
|
6035 |
case "$__forbid" in |
|
6036 |
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5 |
|
6037 |
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;; |
|
6038 |
*) # Careful to not add spaces, where there were none, because otherwise |
|
6039 |
# libtool gets confused, if we change e.g. CXX |
|
6040 |
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; |
|
6041 |
esac |
|
6042 |
done |
|
6043 |
IFS=$ac_save_IFS |
|
6044 |
CXX=$__new |
|
6045 |
fi |
|
6046 |
||
6047 |
__val=$CXXFLAGS |
|
6048 |
__forbid=" -rpath " |
|
6049 |
if test -n "$__val"; then |
|
6050 |
__new="" |
|
6051 |
ac_save_IFS=$IFS |
|
6052 |
IFS=" " |
|
6053 |
for i in $__val; do |
|
6054 |
case "$__forbid" in |
|
6055 |
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5 |
|
6056 |
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;; |
|
6057 |
*) # Careful to not add spaces, where there were none, because otherwise |
|
6058 |
# libtool gets confused, if we change e.g. CXX |
|
6059 |
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; |
|
6060 |
esac |
|
6061 |
done |
|
6062 |
IFS=$ac_save_IFS |
|
6063 |
CXXFLAGS=$__new |
|
6064 |
fi |
|
6065 |
||
6066 |
fi |
|
6067 |
||
6068 |
||
6069 |
ac_ext=cc |
|
6070 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
6071 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6072 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6073 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6074 |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
6075 |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
6076 |
if test -z "$CXXCPP"; then |
|
6077 |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
6078 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6079 |
else |
|
6080 |
# Double quotes because CXXCPP needs to be expanded |
|
6081 |
for CXXCPP in "$CXX -E" "/lib/cpp" |
|
6082 |
do |
|
6083 |
ac_preproc_ok=false |
|
6084 |
for ac_cxx_preproc_warn_flag in '' yes |
|
6085 |
do |
|
6086 |
# Use a header file that comes with gcc, so configuring glibc |
|
6087 |
# with a fresh cross-compiler works. |
|
6088 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6089 |
# <limits.h> exists even on freestanding compilers. |
|
6090 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
6091 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
6092 |
cat >conftest.$ac_ext <<_ACEOF |
|
6093 |
/* confdefs.h. */ |
|
6094 |
_ACEOF |
|
6095 |
cat confdefs.h >>conftest.$ac_ext |
|
6096 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6097 |
/* end confdefs.h. */ |
|
6098 |
#ifdef __STDC__ |
|
6099 |
# include <limits.h> |
|
6100 |
#else |
|
6101 |
# include <assert.h> |
|
6102 |
#endif |
|
6103 |
Syntax error |
|
6104 |
_ACEOF |
|
6105 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
6106 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
6107 |
ac_status=$? |
|
6108 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6109 |
rm -f conftest.er1 |
|
6110 |
cat conftest.err >&5 |
|
6111 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6112 |
(exit $ac_status); } >/dev/null; then |
|
6113 |
if test -s conftest.err; then |
|
6114 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
6115 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
6116 |
else |
|
6117 |
ac_cpp_err= |
|
6118 |
fi |
|
6119 |
else |
|
6120 |
ac_cpp_err=yes |
|
6121 |
fi |
|
6122 |
if test -z "$ac_cpp_err"; then |
|
6123 |
: |
|
6124 |
else |
|
6125 |
echo "$as_me: failed program was:" >&5 |
|
6126 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6127 |
||
6128 |
# Broken: fails on valid input. |
|
6129 |
continue |
|
6130 |
fi |
|
6131 |
rm -f conftest.err conftest.$ac_ext |
|
6132 |
||
6133 |
# OK, works on sane cases. Now check whether non-existent headers |
|
6134 |
# can be detected and how. |
|
6135 |
cat >conftest.$ac_ext <<_ACEOF |
|
6136 |
/* confdefs.h. */ |
|
6137 |
_ACEOF |
|
6138 |
cat confdefs.h >>conftest.$ac_ext |
|
6139 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6140 |
/* end confdefs.h. */ |
|
6141 |
#include <ac_nonexistent.h> |
|
6142 |
_ACEOF |
|
6143 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
6144 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
6145 |
ac_status=$? |
|
6146 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6147 |
rm -f conftest.er1 |
|
6148 |
cat conftest.err >&5 |
|
6149 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6150 |
(exit $ac_status); } >/dev/null; then |
|
6151 |
if test -s conftest.err; then |
|
6152 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
6153 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
6154 |
else |
|
6155 |
ac_cpp_err= |
|
6156 |
fi |
|
6157 |
else |
|
6158 |
ac_cpp_err=yes |
|
6159 |
fi |
|
6160 |
if test -z "$ac_cpp_err"; then |
|
6161 |
# Broken: success on invalid input. |
|
6162 |
continue |
|
6163 |
else |
|
6164 |
echo "$as_me: failed program was:" >&5 |
|
6165 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6166 |
||
6167 |
# Passes both tests. |
|
6168 |
ac_preproc_ok=: |
|
6169 |
break |
|
6170 |
fi |
|
6171 |
rm -f conftest.err conftest.$ac_ext |
|
6172 |
||
6173 |
done |
|
6174 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
6175 |
rm -f conftest.err conftest.$ac_ext |
|
6176 |
if $ac_preproc_ok; then |
|
6177 |
break |
|
6178 |
fi |
|
6179 |
||
6180 |
done |
|
6181 |
ac_cv_prog_CXXCPP=$CXXCPP |
|
6182 |
||
6183 |
fi |
|
6184 |
CXXCPP=$ac_cv_prog_CXXCPP |
|
6185 |
else |
|
6186 |
ac_cv_prog_CXXCPP=$CXXCPP |
|
6187 |
fi |
|
6188 |
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
6189 |
echo "${ECHO_T}$CXXCPP" >&6 |
|
6190 |
ac_preproc_ok=false |
|
6191 |
for ac_cxx_preproc_warn_flag in '' yes |
|
6192 |
do |
|
6193 |
# Use a header file that comes with gcc, so configuring glibc |
|
6194 |
# with a fresh cross-compiler works. |
|
6195 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6196 |
# <limits.h> exists even on freestanding compilers. |
|
6197 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
6198 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
6199 |
cat >conftest.$ac_ext <<_ACEOF |
|
6200 |
/* confdefs.h. */ |
|
6201 |
_ACEOF |
|
6202 |
cat confdefs.h >>conftest.$ac_ext |
|
6203 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6204 |
/* end confdefs.h. */ |
|
6205 |
#ifdef __STDC__ |
|
6206 |
# include <limits.h> |
|
6207 |
#else |
|
6208 |
# include <assert.h> |
|
6209 |
#endif |
|
6210 |
Syntax error |
|
6211 |
_ACEOF |
|
6212 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
6213 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
6214 |
ac_status=$? |
|
6215 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6216 |
rm -f conftest.er1 |
|
6217 |
cat conftest.err >&5 |
|
6218 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6219 |
(exit $ac_status); } >/dev/null; then |
|
6220 |
if test -s conftest.err; then |
|
6221 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
6222 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
6223 |
else |
|
6224 |
ac_cpp_err= |
|
6225 |
fi |
|
6226 |
else |
|
6227 |
ac_cpp_err=yes |
|
6228 |
fi |
|
6229 |
if test -z "$ac_cpp_err"; then |
|
6230 |
: |
|
6231 |
else |
|
6232 |
echo "$as_me: failed program was:" >&5 |
|
6233 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6234 |
||
6235 |
# Broken: fails on valid input. |
|
6236 |
continue |
|
6237 |
fi |
|
6238 |
rm -f conftest.err conftest.$ac_ext |
|
6239 |
||
6240 |
# OK, works on sane cases. Now check whether non-existent headers |
|
6241 |
# can be detected and how. |
|
6242 |
cat >conftest.$ac_ext <<_ACEOF |
|
6243 |
/* confdefs.h. */ |
|
6244 |
_ACEOF |
|
6245 |
cat confdefs.h >>conftest.$ac_ext |
|
6246 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6247 |
/* end confdefs.h. */ |
|
6248 |
#include <ac_nonexistent.h> |
|
6249 |
_ACEOF |
|
6250 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
6251 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
6252 |
ac_status=$? |
|
6253 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6254 |
rm -f conftest.er1 |
|
6255 |
cat conftest.err >&5 |
|
6256 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6257 |
(exit $ac_status); } >/dev/null; then |
|
6258 |
if test -s conftest.err; then |
|
6259 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
6260 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
6261 |
else |
|
6262 |
ac_cpp_err= |
|
6263 |
fi |
|
6264 |
else |
|
6265 |
ac_cpp_err=yes |
|
6266 |
fi |
|
6267 |
if test -z "$ac_cpp_err"; then |
|
6268 |
# Broken: success on invalid input. |
|
6269 |
continue |
|
6270 |
else |
|
6271 |
echo "$as_me: failed program was:" >&5 |
|
6272 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6273 |
||
6274 |
# Passes both tests. |
|
6275 |
ac_preproc_ok=: |
|
6276 |
break |
|
6277 |
fi |
|
6278 |
rm -f conftest.err conftest.$ac_ext |
|
6279 |
||
6280 |
done |
|
6281 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
6282 |
rm -f conftest.err conftest.$ac_ext |
|
6283 |
if $ac_preproc_ok; then |
|
6284 |
: |
|
6285 |
else |
|
6286 |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
6287 |
See \`config.log' for more details." >&5 |
|
6288 |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
6289 |
See \`config.log' for more details." >&2;} |
|
6290 |
{ (exit 1); exit 1; }; } |
|
6291 |
fi |
|
6292 |
||
6293 |
ac_ext=c |
|
6294 |
ac_cpp='$CPP $CPPFLAGS' |
|
6295 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6296 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6297 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6298 |
||
6299 |
||
6300 |
if test "$GCC" = yes; then |
|
6301 |
NOOPT_CFLAGS=-O0 |
|
6302 |
fi |
|
6303 |
||
6304 |
echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5 |
|
6305 |
echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6 |
|
6306 |
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'` |
|
6307 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
6308 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6309 |
else |
|
6310 |
||
6311 |
||
6312 |
||
6313 |
ac_ext=cc |
|
6314 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
6315 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6316 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6317 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6318 |
||
6319 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
6320 |
||
6321 |
||
6322 |
save_CXXFLAGS="$CXXFLAGS" |
|
6323 |
CXXFLAGS="$CXXFLAGS -O0" |
|
6324 |
cat >conftest.$ac_ext <<_ACEOF |
|
6325 |
/* confdefs.h. */ |
|
6326 |
_ACEOF |
|
6327 |
cat confdefs.h >>conftest.$ac_ext |
|
6328 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6329 |
/* end confdefs.h. */ |
|
6330 |
||
6331 |
int |
|
6332 |
main () |
|
6333 |
{ |
|
6334 |
return 0; |
|
6335 |
; |
|
6336 |
return 0; |
|
6337 |
} |
|
6338 |
_ACEOF |
|
6339 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
6340 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
6341 |
(eval $ac_link) 2>conftest.er1 |
|
6342 |
ac_status=$? |
|
6343 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6344 |
rm -f conftest.er1 |
|
6345 |
cat conftest.err >&5 |
|
6346 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6347 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
6348 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
6349 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6350 |
(eval $ac_try) 2>&5 |
|
6351 |
ac_status=$? |
|
6352 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6353 |
(exit $ac_status); }; } && |
|
6354 |
{ ac_try='test -s conftest$ac_exeext' |
|
6355 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
6356 |
(eval $ac_try) 2>&5 |
|
6357 |
ac_status=$? |
|
6358 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6359 |
(exit $ac_status); }; }; then |
|
6360 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
6361 |
else |
|
6362 |
echo "$as_me: failed program was:" >&5 |
|
6363 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6364 |
||
6365 |
fi |
|
6366 |
rm -f conftest.err conftest.$ac_objext \ |
|
6367 |
conftest$ac_exeext conftest.$ac_ext |
|
6368 |
CXXFLAGS="$save_CXXFLAGS" |
|
6369 |
ac_ext=c |
|
6370 |
ac_cpp='$CPP $CPPFLAGS' |
|
6371 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6372 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6373 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6374 |
||
6375 |
||
6376 |
fi |
|
6377 |
||
6378 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
6379 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
6380 |
echo "${ECHO_T}yes" >&6 |
|
6381 |
: |
|
6382 |
NOOPT_CXXFLAGS=-O0 |
|
6383 |
else |
|
6384 |
echo "$as_me:$LINENO: result: no" >&5 |
|
6385 |
echo "${ECHO_T}no" >&6 |
|
6386 |
: |
|
6387 |
||
6388 |
fi |
|
6389 |
||
6390 |
||
6391 |
# Check whether --enable-coverage or --disable-coverage was given. |
|
6392 |
if test "${enable_coverage+set}" = set; then |
|
6393 |
enableval="$enable_coverage" |
|
6394 |
||
6395 |
if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then |
|
6396 |
ac_coverage_compiler="-fprofile-arcs -ftest-coverage" |
|
6397 |
ac_coverage_linker="-lgcc" |
|
6398 |
elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then |
|
6399 |
ac_coverage_compiler="-fprofile-arcs -ftest-coverage" |
|
6400 |
ac_coverage_linker="" |
|
6401 |
else |
|
6402 |
{ { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5 |
|
6403 |
echo "$as_me: error: coverage with your compiler is not supported" >&2;} |
|
6404 |
{ (exit 1); exit 1; }; } |
|
6405 |
fi |
|
6406 |
CFLAGS="$CFLAGS $ac_coverage_compiler" |
|
6407 |
CXXFLAGS="$CXXFLAGS $ac_coverage_compiler" |
|
6408 |
LDFLAGS="$LDFLAGS $ac_coverage_linker" |
|
6409 |
||
6410 |
fi; |
|
6411 |
||
6412 |
||
6413 |
||
6414 |
||
6415 |
||
6416 |
||
6417 |
# Check whether --enable-new_ldflags or --disable-new_ldflags was given. |
|
6418 |
if test "${enable_new_ldflags+set}" = set; then |
|
6419 |
enableval="$enable_new_ldflags" |
|
6420 |
kde_use_new_ldflags=$enableval |
|
6421 |
else |
|
6422 |
kde_use_new_ldflags=no |
|
6423 |
fi; |
|
6424 |
||
6425 |
LDFLAGS_AS_NEEDED="" |
|
6426 |
LDFLAGS_NEW_DTAGS="" |
|
6427 |
if test "x$kde_use_new_ldflags" = "xyes"; then |
|
6428 |
LDFLAGS_NEW_DTAGS="" |
|
6429 |
||
6430 |
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5 |
|
6431 |
echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6 |
|
6432 |
kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'` |
|
6433 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
6434 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6435 |
else |
|
6436 |
||
6437 |
||
6438 |
||
6439 |
ac_ext=cc |
|
6440 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
6441 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6442 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6443 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6444 |
||
6445 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
6446 |
||
6447 |
||
6448 |
save_CXXFLAGS="$CXXFLAGS" |
|
6449 |
CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags" |
|
6450 |
cat >conftest.$ac_ext <<_ACEOF |
|
6451 |
/* confdefs.h. */ |
|
6452 |
_ACEOF |
|
6453 |
cat confdefs.h >>conftest.$ac_ext |
|
6454 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6455 |
/* end confdefs.h. */ |
|
6456 |
||
6457 |
int |
|
6458 |
main () |
|
6459 |
{ |
|
6460 |
return 0; |
|
6461 |
; |
|
6462 |
return 0; |
|
6463 |
} |
|
6464 |
_ACEOF |
|
6465 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
6466 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
6467 |
(eval $ac_link) 2>conftest.er1 |
|
6468 |
ac_status=$? |
|
6469 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6470 |
rm -f conftest.er1 |
|
6471 |
cat conftest.err >&5 |
|
6472 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6473 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
6474 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
6475 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6476 |
(eval $ac_try) 2>&5 |
|
6477 |
ac_status=$? |
|
6478 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6479 |
(exit $ac_status); }; } && |
|
6480 |
{ ac_try='test -s conftest$ac_exeext' |
|
6481 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
6482 |
(eval $ac_try) 2>&5 |
|
6483 |
ac_status=$? |
|
6484 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6485 |
(exit $ac_status); }; }; then |
|
6486 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
6487 |
else |
|
6488 |
echo "$as_me: failed program was:" >&5 |
|
6489 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6490 |
||
6491 |
fi |
|
6492 |
rm -f conftest.err conftest.$ac_objext \ |
|
6493 |
conftest$ac_exeext conftest.$ac_ext |
|
6494 |
CXXFLAGS="$save_CXXFLAGS" |
|
6495 |
ac_ext=c |
|
6496 |
ac_cpp='$CPP $CPPFLAGS' |
|
6497 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6498 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6499 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6500 |
||
6501 |
||
6502 |
fi |
|
6503 |
||
6504 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
6505 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
6506 |
echo "${ECHO_T}yes" >&6 |
|
6507 |
: |
|
6508 |
LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags" |
|
6509 |
else |
|
6510 |
echo "$as_me:$LINENO: result: no" >&5 |
|
6511 |
echo "${ECHO_T}no" >&6 |
|
6512 |
: |
|
6513 |
||
6514 |
fi |
|
6515 |
||
6516 |
||
6517 |
||
6518 |
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5 |
|
6519 |
echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6 |
|
6520 |
kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'` |
|
6521 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
6522 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6523 |
else |
|
6524 |
||
6525 |
||
6526 |
||
6527 |
ac_ext=cc |
|
6528 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
6529 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6530 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6531 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6532 |
||
6533 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
6534 |
||
6535 |
||
6536 |
save_CXXFLAGS="$CXXFLAGS" |
|
6537 |
CXXFLAGS="$CXXFLAGS -Wl,--as-needed" |
|
6538 |
cat >conftest.$ac_ext <<_ACEOF |
|
6539 |
/* confdefs.h. */ |
|
6540 |
_ACEOF |
|
6541 |
cat confdefs.h >>conftest.$ac_ext |
|
6542 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6543 |
/* end confdefs.h. */ |
|
6544 |
||
6545 |
int |
|
6546 |
main () |
|
6547 |
{ |
|
6548 |
return 0; |
|
6549 |
; |
|
6550 |
return 0; |
|
6551 |
} |
|
6552 |
_ACEOF |
|
6553 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
6554 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
6555 |
(eval $ac_link) 2>conftest.er1 |
|
6556 |
ac_status=$? |
|
6557 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6558 |
rm -f conftest.er1 |
|
6559 |
cat conftest.err >&5 |
|
6560 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6561 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
6562 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
6563 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6564 |
(eval $ac_try) 2>&5 |
|
6565 |
ac_status=$? |
|
6566 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6567 |
(exit $ac_status); }; } && |
|
6568 |
{ ac_try='test -s conftest$ac_exeext' |
|
6569 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
6570 |
(eval $ac_try) 2>&5 |
|
6571 |
ac_status=$? |
|
6572 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6573 |
(exit $ac_status); }; }; then |
|
6574 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
6575 |
else |
|
6576 |
echo "$as_me: failed program was:" >&5 |
|
6577 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6578 |
||
6579 |
fi |
|
6580 |
rm -f conftest.err conftest.$ac_objext \ |
|
6581 |
conftest$ac_exeext conftest.$ac_ext |
|
6582 |
CXXFLAGS="$save_CXXFLAGS" |
|
6583 |
ac_ext=c |
|
6584 |
ac_cpp='$CPP $CPPFLAGS' |
|
6585 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6586 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6587 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6588 |
||
6589 |
||
6590 |
fi |
|
6591 |
||
6592 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
6593 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
6594 |
echo "${ECHO_T}yes" >&6 |
|
6595 |
: |
|
6596 |
LDFLAGS_AS_NEEDED="-Wl,--as-needed" |
|
6597 |
else |
|
6598 |
echo "$as_me:$LINENO: result: no" >&5 |
|
6599 |
echo "${ECHO_T}no" >&6 |
|
6600 |
: |
|
6601 |
||
6602 |
fi |
|
6603 |
||
6604 |
fi |
|
6605 |
||
6606 |
||
6607 |
||
6608 |
||
6609 |
# Check whether --enable-final or --disable-final was given. |
|
6610 |
if test "${enable_final+set}" = set; then |
|
6611 |
enableval="$enable_final" |
|
6612 |
kde_use_final=$enableval |
|
6613 |
else |
|
6614 |
kde_use_final=no |
|
6615 |
fi; |
|
6616 |
||
6617 |
if test "x$kde_use_final" = "xyes"; then |
|
6618 |
KDE_USE_FINAL_TRUE="" |
|
6619 |
KDE_USE_FINAL_FALSE="#" |
|
6620 |
else |
|
6621 |
KDE_USE_FINAL_TRUE="#" |
|
6622 |
KDE_USE_FINAL_FALSE="" |
|
6623 |
fi |
|
6624 |
||
6625 |
||
6626 |
||
6627 |
||
6628 |
# Check whether --enable-closure or --disable-closure was given. |
|
6629 |
if test "${enable_closure+set}" = set; then |
|
6630 |
enableval="$enable_closure" |
|
6631 |
kde_use_closure=$enableval |
|
6632 |
else |
|
6633 |
kde_use_closure=no |
|
6634 |
fi; |
|
6635 |
||
6636 |
KDE_NO_UNDEFINED="" |
|
6637 |
if test "x$kde_use_closure" = "xyes"; then |
|
6638 |
KDE_USE_CLOSURE_TRUE="" |
|
6639 |
KDE_USE_CLOSURE_FALSE="#" |
|
6640 |
# CXXFLAGS="$CXXFLAGS $REPO" |
|
6641 |
else |
|
6642 |
KDE_USE_CLOSURE_TRUE="#" |
|
6643 |
KDE_USE_CLOSURE_FALSE="" |
|
6644 |
KDE_NO_UNDEFINED="" |
|
6645 |
case $host in |
|
6646 |
*-*-linux-gnu) |
|
6647 |
||
6648 |
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5 |
|
6649 |
echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6 |
|
6650 |
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'` |
|
6651 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
6652 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6653 |
else |
|
6654 |
||
6655 |
||
6656 |
||
6657 |
ac_ext=cc |
|
6658 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
6659 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6660 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6661 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6662 |
||
6663 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
6664 |
||
6665 |
||
6666 |
save_CXXFLAGS="$CXXFLAGS" |
|
6667 |
CXXFLAGS="$CXXFLAGS -Wl,--no-undefined" |
|
6668 |
cat >conftest.$ac_ext <<_ACEOF |
|
6669 |
/* confdefs.h. */ |
|
6670 |
_ACEOF |
|
6671 |
cat confdefs.h >>conftest.$ac_ext |
|
6672 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6673 |
/* end confdefs.h. */ |
|
6674 |
||
6675 |
int |
|
6676 |
main () |
|
6677 |
{ |
|
6678 |
return 0; |
|
6679 |
; |
|
6680 |
return 0; |
|
6681 |
} |
|
6682 |
_ACEOF |
|
6683 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
6684 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
6685 |
(eval $ac_link) 2>conftest.er1 |
|
6686 |
ac_status=$? |
|
6687 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6688 |
rm -f conftest.er1 |
|
6689 |
cat conftest.err >&5 |
|
6690 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6691 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
6692 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
6693 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6694 |
(eval $ac_try) 2>&5 |
|
6695 |
ac_status=$? |
|
6696 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6697 |
(exit $ac_status); }; } && |
|
6698 |
{ ac_try='test -s conftest$ac_exeext' |
|
6699 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
6700 |
(eval $ac_try) 2>&5 |
|
6701 |
ac_status=$? |
|
6702 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6703 |
(exit $ac_status); }; }; then |
|
6704 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
6705 |
else |
|
6706 |
echo "$as_me: failed program was:" >&5 |
|
6707 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6708 |
||
6709 |
fi |
|
6710 |
rm -f conftest.err conftest.$ac_objext \ |
|
6711 |
conftest$ac_exeext conftest.$ac_ext |
|
6712 |
CXXFLAGS="$save_CXXFLAGS" |
|
6713 |
ac_ext=c |
|
6714 |
ac_cpp='$CPP $CPPFLAGS' |
|
6715 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6716 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6717 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6718 |
||
6719 |
||
6720 |
fi |
|
6721 |
||
6722 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
6723 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
6724 |
echo "${ECHO_T}yes" >&6 |
|
6725 |
: |
|
6726 |
||
6727 |
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5 |
|
6728 |
echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6 |
|
6729 |
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'` |
|
6730 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
6731 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6732 |
else |
|
6733 |
||
6734 |
||
6735 |
||
6736 |
ac_ext=cc |
|
6737 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
6738 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6739 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6740 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6741 |
||
6742 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
6743 |
||
6744 |
||
6745 |
save_CXXFLAGS="$CXXFLAGS" |
|
6746 |
CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined" |
|
6747 |
cat >conftest.$ac_ext <<_ACEOF |
|
6748 |
/* confdefs.h. */ |
|
6749 |
_ACEOF |
|
6750 |
cat confdefs.h >>conftest.$ac_ext |
|
6751 |
cat >>conftest.$ac_ext <<_ACEOF |
|
6752 |
/* end confdefs.h. */ |
|
6753 |
||
6754 |
int |
|
6755 |
main () |
|
6756 |
{ |
|
6757 |
return 0; |
|
6758 |
; |
|
6759 |
return 0; |
|
6760 |
} |
|
6761 |
_ACEOF |
|
6762 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
6763 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
6764 |
(eval $ac_link) 2>conftest.er1 |
|
6765 |
ac_status=$? |
|
6766 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
6767 |
rm -f conftest.er1 |
|
6768 |
cat conftest.err >&5 |
|
6769 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6770 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
6771 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
6772 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6773 |
(eval $ac_try) 2>&5 |
|
6774 |
ac_status=$? |
|
6775 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6776 |
(exit $ac_status); }; } && |
|
6777 |
{ ac_try='test -s conftest$ac_exeext' |
|
6778 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
6779 |
(eval $ac_try) 2>&5 |
|
6780 |
ac_status=$? |
|
6781 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6782 |
(exit $ac_status); }; }; then |
|
6783 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
6784 |
else |
|
6785 |
echo "$as_me: failed program was:" >&5 |
|
6786 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
6787 |
||
6788 |
fi |
|
6789 |
rm -f conftest.err conftest.$ac_objext \ |
|
6790 |
conftest$ac_exeext conftest.$ac_ext |
|
6791 |
CXXFLAGS="$save_CXXFLAGS" |
|
6792 |
ac_ext=c |
|
6793 |
ac_cpp='$CPP $CPPFLAGS' |
|
6794 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6795 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6796 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6797 |
||
6798 |
||
6799 |
fi |
|
6800 |
||
6801 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
6802 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
6803 |
echo "${ECHO_T}yes" >&6 |
|
6804 |
: |
|
6805 |
KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined" |
|
6806 |
else |
|
6807 |
echo "$as_me:$LINENO: result: no" >&5 |
|
6808 |
echo "${ECHO_T}no" >&6 |
|
6809 |
: |
|
6810 |
KDE_NO_UNDEFINED="" |
|
6811 |
fi |
|
6812 |
||
6813 |
else |
|
6814 |
echo "$as_me:$LINENO: result: no" >&5 |
|
6815 |
echo "${ECHO_T}no" >&6 |
|
6816 |
: |
|
6817 |
KDE_NO_UNDEFINED="" |
|
6818 |
fi |
|
6819 |
||
6820 |
;; |
|
6821 |
esac |
|
6822 |
fi |
|
6823 |
||
6824 |
||
6825 |
||
6826 |
||
6827 |
||
6828 |
# Check whether --enable-nmcheck or --disable-nmcheck was given. |
|
6829 |
if test "${enable_nmcheck+set}" = set; then |
|
6830 |
enableval="$enable_nmcheck" |
|
6831 |
kde_use_nmcheck=$enableval |
|
6832 |
else |
|
6833 |
kde_use_nmcheck=no |
|
6834 |
fi; |
|
6835 |
||
6836 |
if test "$kde_use_nmcheck" = "yes"; then |
|
6837 |
KDE_USE_NMCHECK_TRUE="" |
|
6838 |
KDE_USE_NMCHECK_FALSE="#" |
|
6839 |
else |
|
6840 |
KDE_USE_NMCHECK_TRUE="#" |
|
6841 |
KDE_USE_NMCHECK_FALSE="" |
|
6842 |
fi |
|
6843 |
||
6844 |
||
6845 |
||
6846 |
||
6847 |
||
6848 |
||
6849 |
# Check whether --enable-shared or --disable-shared was given. |
|
6850 |
if test "${enable_shared+set}" = set; then |
|
6851 |
enableval="$enable_shared" |
|
6852 |
p=${PACKAGE-default} |
|
6853 |
case $enableval in |
|
6854 |
yes) enable_shared=yes ;; |
|
6855 |
no) enable_shared=no ;; |
|
6856 |
*) |
|
6857 |
enable_shared=no |
|
6858 |
# Look at the argument we got. We use all the common list separators. |
|
6859 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
6860 |
for pkg in $enableval; do |
|
6861 |
IFS="$lt_save_ifs" |
|
6862 |
if test "X$pkg" = "X$p"; then |
|
6863 |
enable_shared=yes |
|
6864 |
fi |
|
6865 |
done |
|
6866 |
IFS="$lt_save_ifs" |
|
6867 |
;; |
|
6868 |
esac |
|
6869 |
else |
|
6870 |
enable_shared=yes |
|
6871 |
fi; |
|
6872 |
||
6873 |
# Check whether --enable-static or --disable-static was given. |
|
6874 |
if test "${enable_static+set}" = set; then |
|
6875 |
enableval="$enable_static" |
|
6876 |
p=${PACKAGE-default} |
|
6877 |
case $enableval in |
|
6878 |
yes) enable_static=yes ;; |
|
6879 |
no) enable_static=no ;; |
|
6880 |
*) |
|
6881 |
enable_static=no |
|
6882 |
# Look at the argument we got. We use all the common list separators. |
|
6883 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
6884 |
for pkg in $enableval; do |
|
6885 |
IFS="$lt_save_ifs" |
|
6886 |
if test "X$pkg" = "X$p"; then |
|
6887 |
enable_static=yes |
|
6888 |
fi |
|
6889 |
done |
|
6890 |
IFS="$lt_save_ifs" |
|
6891 |
;; |
|
6892 |
esac |
|
6893 |
else |
|
6894 |
enable_static=no |
|
6895 |
fi; |
|
6896 |
||
6897 |
||
6898 |
||
6899 |
||
6900 |
kdelibsuff="$kde_libs_suffix" |
|
6901 |
if test -z "$kdelibsuff"; then |
|
6902 |
kdelibsuff=no |
|
6903 |
fi |
|
6904 |
# Check whether --enable-libsuffix or --disable-libsuffix was given. |
|
6905 |
if test "${enable_libsuffix+set}" = set; then |
|
6906 |
enableval="$enable_libsuffix" |
|
6907 |
kdelibsuff=$enableval |
|
6908 |
fi; |
|
6909 |
# TODO: add an auto case that compiles a little C app to check |
|
6910 |
# where the glibc is |
|
6911 |
if test "$kdelibsuff" = "no"; then |
|
6912 |
kdelibsuff= |
|
6913 |
fi |
|
6914 |
if test -z "$kdelibsuff"; then |
|
6915 |
echo "$as_me:$LINENO: result: not using lib directory suffix" >&5 |
|
6916 |
echo "${ECHO_T}not using lib directory suffix" >&6 |
|
6917 |
||
6918 |
cat >>confdefs.h <<\_ACEOF |
|
6919 |
#define KDELIBSUFF "" |
|
6920 |
_ACEOF |
|
6921 |
||
6922 |
else |
|
6923 |
if test "$libdir" = '${exec_prefix}/lib'; then |
|
6924 |
libdir="$libdir${kdelibsuff}" |
|
6925 |
libdir="$libdir" |
|
6926 |
fi |
|
6927 |
||
6928 |
cat >>confdefs.h <<_ACEOF |
|
6929 |
#define KDELIBSUFF "${kdelibsuff}" |
|
6930 |
_ACEOF |
|
6931 |
||
6932 |
echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5 |
|
6933 |
echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6 |
|
6934 |
fi |
|
6935 |
||
6936 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
|
6937 |
if test "${enable_fast_install+set}" = set; then |
|
6938 |
enableval="$enable_fast_install" |
|
6939 |
p=${PACKAGE-default} |
|
6940 |
case $enableval in |
|
6941 |
yes) enable_fast_install=yes ;; |
|
6942 |
no) enable_fast_install=no ;; |
|
6943 |
*) |
|
6944 |
enable_fast_install=no |
|
6945 |
# Look at the argument we got. We use all the common list separators. |
|
6946 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
6947 |
for pkg in $enableval; do |
|
6948 |
IFS="$lt_save_ifs" |
|
6949 |
if test "X$pkg" = "X$p"; then |
|
6950 |
enable_fast_install=yes |
|
6951 |
fi |
|
6952 |
done |
|
6953 |
IFS="$lt_save_ifs" |
|
6954 |
;; |
|
6955 |
esac |
|
6956 |
else |
|
6957 |
enable_fast_install=yes |
|
6958 |
fi; |
|
6959 |
||
6960 |
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
|
6961 |
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
|
6962 |
if test "${lt_cv_path_SED+set}" = set; then |
|
6963 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6964 |
else |
|
6965 |
# Loop through the user's path and test for sed and gsed. |
|
6966 |
# Then use that list of sed's as ones to test for truncation. |
|
6967 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6968 |
for as_dir in $PATH |
|
6969 |
do |
|
6970 |
IFS=$as_save_IFS |
|
6971 |
test -z "$as_dir" && as_dir=. |
|
6972 |
for lt_ac_prog in sed gsed; do |
|
6973 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6974 |
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
|
6975 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
|
6976 |
fi |
|
6977 |
done |
|
6978 |
done |
|
6979 |
done |
|
6980 |
lt_ac_max=0 |
|
6981 |
lt_ac_count=0 |
|
6982 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
|
6983 |
# along with /bin/sed that truncates output. |
|
6984 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
|
6985 |
test ! -f $lt_ac_sed && break |
|
6986 |
cat /dev/null > conftest.in |
|
6987 |
lt_ac_count=0 |
|
6988 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
|
6989 |
# Check for GNU sed and select it if it is found. |
|
6990 |
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
|
6991 |
lt_cv_path_SED=$lt_ac_sed |
|
6992 |
break |
|
6993 |
fi |
|
6994 |
while true; do |
|
6995 |
cat conftest.in conftest.in >conftest.tmp |
|
6996 |
mv conftest.tmp conftest.in |
|
6997 |
cp conftest.in conftest.nl |
|
6998 |
echo >>conftest.nl |
|
6999 |
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
|
7000 |
cmp -s conftest.out conftest.nl || break |
|
7001 |
# 10000 chars as input seems more than enough |
|
7002 |
test $lt_ac_count -gt 10 && break |
|
7003 |
lt_ac_count=`expr $lt_ac_count + 1` |
|
7004 |
if test $lt_ac_count -gt $lt_ac_max; then |
|
7005 |
lt_ac_max=$lt_ac_count |
|
7006 |
lt_cv_path_SED=$lt_ac_sed |
|
7007 |
fi |
|
7008 |
done |
|
7009 |
done |
|
7010 |
||
7011 |
fi |
|
7012 |
||
7013 |
SED=$lt_cv_path_SED |
|
7014 |
echo "$as_me:$LINENO: result: $SED" >&5 |
|
7015 |
echo "${ECHO_T}$SED" >&6 |
|
7016 |
||
7017 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
|
7018 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
7019 |
if test "${ac_cv_prog_egrep+set}" = set; then |
|
7020 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7021 |
else |
|
7022 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
7023 |
then ac_cv_prog_egrep='grep -E' |
|
7024 |
else ac_cv_prog_egrep='egrep' |
|
7025 |
fi |
|
7026 |
fi |
|
7027 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
7028 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
7029 |
EGREP=$ac_cv_prog_egrep |
|
7030 |
||
7031 |
||
7032 |
||
7033 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
7034 |
if test "${with_gnu_ld+set}" = set; then |
|
7035 |
withval="$with_gnu_ld" |
|
7036 |
test "$withval" = no || with_gnu_ld=yes |
|
7037 |
else |
|
7038 |
with_gnu_ld=no |
|
7039 |
fi; |
|
7040 |
ac_prog=ld |
|
7041 |
if test "$GCC" = yes; then |
|
7042 |
# Check if gcc -print-prog-name=ld gives a path. |
|
7043 |
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
7044 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
|
7045 |
case $host in |
|
7046 |
*-*-mingw*) |
|
7047 |
# gcc leaves a trailing carriage return which upsets mingw |
|
7048 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
7049 |
*) |
|
7050 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
7051 |
esac |
|
7052 |
case $ac_prog in |
|
7053 |
# Accept absolute paths. |
|
7054 |
[\\/]* | ?:[\\/]*) |
|
7055 |
re_direlt='/[^/][^/]*/\.\./' |
|
7056 |
# Canonicalize the pathname of ld |
|
7057 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
7058 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
7059 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
7060 |
done |
|
7061 |
test -z "$LD" && LD="$ac_prog" |
|
7062 |
;; |
|
7063 |
"") |
|
7064 |
# If it fails, then pretend we aren't using GCC. |
|
7065 |
ac_prog=ld |
|
7066 |
;; |
|
7067 |
*) |
|
7068 |
# If it is relative, then search for the first ld in PATH. |
|
7069 |
with_gnu_ld=unknown |
|
7070 |
;; |
|
7071 |
esac |
|
7072 |
elif test "$with_gnu_ld" = yes; then |
|
7073 |
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
7074 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
7075 |
else |
|
7076 |
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
7077 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
7078 |
fi |
|
7079 |
if test "${lt_cv_path_LD+set}" = set; then |
|
7080 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7081 |
else |
|
7082 |
if test -z "$LD"; then |
|
7083 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7084 |
for ac_dir in $PATH; do |
|
7085 |
IFS="$lt_save_ifs" |
|
7086 |
test -z "$ac_dir" && ac_dir=. |
|
7087 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
7088 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
|
7089 |
# Check to see if the program is GNU ld. I'd rather use --version, |
|
7090 |
# but apparently some GNU ld's only accept -v. |
|
7091 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
|
7092 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
7093 |
*GNU* | *'with BFD'*) |
|
7094 |
test "$with_gnu_ld" != no && break |
|
7095 |
;; |
|
7096 |
*) |
|
7097 |
test "$with_gnu_ld" != yes && break |
|
7098 |
;; |
|
7099 |
esac |
|
7100 |
fi |
|
7101 |
done |
|
7102 |
IFS="$lt_save_ifs" |
|
7103 |
else |
|
7104 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
7105 |
fi |
|
7106 |
fi |
|
7107 |
||
7108 |
LD="$lt_cv_path_LD" |
|
7109 |
if test -n "$LD"; then |
|
7110 |
echo "$as_me:$LINENO: result: $LD" >&5 |
|
7111 |
echo "${ECHO_T}$LD" >&6 |
|
7112 |
else |
|
7113 |
echo "$as_me:$LINENO: result: no" >&5 |
|
7114 |
echo "${ECHO_T}no" >&6 |
|
7115 |
fi |
|
7116 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
7117 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
7118 |
{ (exit 1); exit 1; }; } |
|
7119 |
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
7120 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
7121 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
7122 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7123 |
else |
|
7124 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
7125 |
case `$LD -v 2>&1 </dev/null` in |
|
7126 |
*GNU* | *'with BFD'*) |
|
7127 |
lt_cv_prog_gnu_ld=yes |
|
7128 |
;; |
|
7129 |
*) |
|
7130 |
lt_cv_prog_gnu_ld=no |
|
7131 |
;; |
|
7132 |
esac |
|
7133 |
fi |
|
7134 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
7135 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
7136 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
|
7137 |
||
7138 |
||
7139 |
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
7140 |
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
7141 |
if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
7142 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7143 |
else |
|
7144 |
lt_cv_ld_reload_flag='-r' |
|
7145 |
fi |
|
7146 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
7147 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
7148 |
reload_flag=$lt_cv_ld_reload_flag |
|
7149 |
case $reload_flag in |
|
7150 |
"" | " "*) ;; |
|
7151 |
*) reload_flag=" $reload_flag" ;; |
|
7152 |
esac |
|
7153 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
7154 |
||
7155 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
7156 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
7157 |
if test "${lt_cv_path_NM+set}" = set; then |
|
7158 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7159 |
else |
|
7160 |
if test -n "$NM"; then |
|
7161 |
# Let the user override the test. |
|
7162 |
lt_cv_path_NM="$NM" |
|
7163 |
else |
|
7164 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7165 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
|
7166 |
IFS="$lt_save_ifs" |
|
7167 |
test -z "$ac_dir" && ac_dir=. |
|
7168 |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
|
7169 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
|
7170 |
# Check to see if the nm accepts a BSD-compat flag. |
|
7171 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
7172 |
# nm: unknown option "B" ignored |
|
7173 |
# Tru64's nm complains that /dev/null is an invalid object file |
|
7174 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
7175 |
*/dev/null* | *'Invalid file or object type'*) |
|
7176 |
lt_cv_path_NM="$tmp_nm -B" |
|
7177 |
break |
|
7178 |
;; |
|
7179 |
*) |
|
7180 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
|
7181 |
*/dev/null*) |
|
7182 |
lt_cv_path_NM="$tmp_nm -p" |
|
7183 |
break |
|
7184 |
;; |
|
7185 |
*) |
|
7186 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
7187 |
continue # so that we can try to find one that supports BSD flags |
|
7188 |
;; |
|
7189 |
esac |
|
7190 |
esac |
|
7191 |
fi |
|
7192 |
done |
|
7193 |
IFS="$lt_save_ifs" |
|
7194 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
7195 |
fi |
|
7196 |
fi |
|
7197 |
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
|
7198 |
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
|
7199 |
NM="$lt_cv_path_NM" |
|
7200 |
||
7201 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
7202 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
7203 |
LN_S=$as_ln_s |
|
7204 |
if test "$LN_S" = "ln -s"; then |
|
7205 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
7206 |
echo "${ECHO_T}yes" >&6 |
|
7207 |
else |
|
7208 |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
7209 |
echo "${ECHO_T}no, using $LN_S" >&6 |
|
7210 |
fi |
|
7211 |
||
7212 |
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
|
7213 |
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
|
7214 |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
7215 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7216 |
else |
|
7217 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
7218 |
lt_cv_file_magic_test_file= |
|
7219 |
lt_cv_deplibs_check_method='unknown' |
|
7220 |
# Need to set the preceding variable on all platforms that support |
|
7221 |
# interlibrary dependencies. |
|
7222 |
# 'none' -- dependencies not supported. |
|
7223 |
# `unknown' -- same as none, but documents that we really don't know. |
|
7224 |
# 'pass_all' -- all dependencies passed with no checks. |
|
7225 |
# 'test_compile' -- check by making test program. |
|
7226 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
|
7227 |
# which responds to the $file_magic_cmd with a given extended regex. |
|
7228 |
# If you have `file' or equivalent on your system and you're not sure |
|
7229 |
# whether `pass_all' will *always* work, you probably want this one. |
|
7230 |
||
7231 |
case $host_os in |
|
7232 |
aix4* | aix5*) |
|
7233 |
lt_cv_deplibs_check_method=pass_all |
|
7234 |
;; |
|
7235 |
||
7236 |
beos*) |
|
7237 |
lt_cv_deplibs_check_method=pass_all |
|
7238 |
;; |
|
7239 |
||
7240 |
bsdi4*) |
|
7241 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
7242 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
7243 |
lt_cv_file_magic_test_file=/shlib/libc.so |
|
7244 |
;; |
|
7245 |
||
7246 |
cygwin*) |
|
7247 |
lt_cv_deplibs_check_method=pass_all |
|
7248 |
;; |
|
7249 |
||
7250 |
mingw* | pw32*) |
|
7251 |
# win32_libid is a shell function defined in ltmain.sh |
|
7252 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
7253 |
lt_cv_file_magic_cmd='win32_libid' |
|
7254 |
;; |
|
7255 |
||
7256 |
darwin* | rhapsody*) |
|
7257 |
# this will be overwritten by pass_all, but leave it in just in case |
|
7258 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
7259 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
7260 |
case "$host_os" in |
|
7261 |
rhapsody* | darwin1.[012]) |
|
7262 |
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
|
7263 |
;; |
|
7264 |
*) # Darwin 1.3 on |
|
7265 |
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
|
7266 |
;; |
|
7267 |
esac |
|
7268 |
lt_cv_deplibs_check_method=pass_all |
|
7269 |
;; |
|
7270 |
||
7271 |
freebsd*) |
|
7272 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
7273 |
case $host_cpu in |
|
7274 |
i*86 ) |
|
7275 |
# Not sure whether the presence of OpenBSD here was a mistake. |
|
7276 |
# Let's accept both of them until this is cleared up. |
|
7277 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
|
7278 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
7279 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
7280 |
;; |
|
7281 |
esac |
|
7282 |
else |
|
7283 |
lt_cv_deplibs_check_method=pass_all |
|
7284 |
fi |
|
7285 |
;; |
|
7286 |
||
7287 |
gnu*) |
|
7288 |
lt_cv_deplibs_check_method=pass_all |
|
7289 |
;; |
|
7290 |
||
7291 |
hpux10.20* | hpux11*) |
|
7292 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
7293 |
case "$host_cpu" in |
|
7294 |
ia64*) |
|
7295 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
|
7296 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
7297 |
;; |
|
7298 |
hppa*64*) |
|
7299 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
|
7300 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
|
7301 |
;; |
|
7302 |
*) |
|
7303 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
7304 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
7305 |
;; |
|
7306 |
esac |
|
7307 |
;; |
|
7308 |
||
7309 |
irix5* | irix6* | nonstopux*) |
|
7310 |
case $host_os in |
|
7311 |
irix5* | nonstopux*) |
|
7312 |
# this will be overridden with pass_all, but let us keep it just in case |
|
7313 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
|
7314 |
;; |
|
7315 |
*) |
|
7316 |
case $LD in |
|
7317 |
*-32|*"-32 ") libmagic=32-bit;; |
|
7318 |
*-n32|*"-n32 ") libmagic=N32;; |
|
7319 |
*-64|*"-64 ") libmagic=64-bit;; |
|
7320 |
*) libmagic=never-match;; |
|
7321 |
esac |
|
7322 |
# this will be overridden with pass_all, but let us keep it just in case |
|
7323 |
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
|
7324 |
;; |
|
7325 |
esac |
|
7326 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
7327 |
lt_cv_deplibs_check_method=pass_all |
|
7328 |
;; |
|
7329 |
||
7330 |
# This must be Linux ELF. |
|
7331 |
linux*) |
|
7332 |
case $host_cpu in |
|
7333 |
alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* ) |
|
7334 |
lt_cv_deplibs_check_method=pass_all ;; |
|
7335 |
# the debian people say, arm and glibc 2.3.1 works for them with pass_all |
|
7336 |
arm* ) |
|
7337 |
lt_cv_deplibs_check_method=pass_all ;; |
|
7338 |
*) |
|
7339 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
|
7340 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
7341 |
esac |
|
7342 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
7343 |
;; |
|
7344 |
||
7345 |
netbsd*) |
|
7346 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
7347 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
7348 |
else |
|
7349 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
|
7350 |
fi |
|
7351 |
;; |
|
7352 |
||
7353 |
newos6*) |
|
7354 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
7355 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
7356 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
7357 |
;; |
|
7358 |
||
7359 |
nto-qnx*) |
|
7360 |
lt_cv_deplibs_check_method=unknown |
|
7361 |
;; |
|
7362 |
||
7363 |
openbsd*) |
|
7364 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
7365 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
7366 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
7367 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
|
7368 |
else |
|
7369 |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
|
7370 |
fi |
|
7371 |
;; |
|
7372 |
||
7373 |
osf3* | osf4* | osf5*) |
|
7374 |
# this will be overridden with pass_all, but let us keep it just in case |
|
7375 |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
7376 |
lt_cv_file_magic_test_file=/shlib/libc.so |
|
7377 |
lt_cv_deplibs_check_method=pass_all |
|
7378 |
;; |
|
7379 |
||
7380 |
sco3.2v5*) |
|
7381 |
lt_cv_deplibs_check_method=pass_all |
|
7382 |
;; |
|
7383 |
||
7384 |
solaris*) |
|
7385 |
lt_cv_deplibs_check_method=pass_all |
|
7386 |
lt_cv_file_magic_test_file=/lib/libc.so |
|
7387 |
;; |
|
7388 |
||
7389 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
7390 |
case $host_vendor in |
|
7391 |
motorola) |
|
7392 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
|
7393 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
7394 |
;; |
|
7395 |
ncr) |
|
7396 |
lt_cv_deplibs_check_method=pass_all |
|
7397 |
;; |
|
7398 |
sequent) |
|
7399 |
lt_cv_file_magic_cmd='/bin/file' |
|
7400 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
7401 |
;; |
|
7402 |
sni) |
|
7403 |
lt_cv_file_magic_cmd='/bin/file' |
|
7404 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
7405 |
lt_cv_file_magic_test_file=/lib/libc.so |
|
7406 |
;; |
|
7407 |
siemens) |
|
7408 |
lt_cv_deplibs_check_method=pass_all |
|
7409 |
;; |
|
7410 |
esac |
|
7411 |
;; |
|
7412 |
||
7413 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
|
7414 |
lt_cv_deplibs_check_method=pass_all |
|
7415 |
;; |
|
7416 |
esac |
|
7417 |
||
7418 |
fi |
|
7419 |
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
7420 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
7421 |
file_magic_cmd=$lt_cv_file_magic_cmd |
|
7422 |
deplibs_check_method=$lt_cv_deplibs_check_method |
|
7423 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
7424 |
||
7425 |
||
7426 |
# If no C compiler was specified, use CC. |
|
7427 |
LTCC=${LTCC-"$CC"} |
|
7428 |
||
7429 |
# Allow CC to be a program name with arguments. |
|
7430 |
compiler=$CC |
|
7431 |
||
7432 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
7433 |
if test "${enable_libtool_lock+set}" = set; then |
|
7434 |
enableval="$enable_libtool_lock" |
|
7435 |
||
7436 |
fi; |
|
7437 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
7438 |
||
7439 |
# Some flags need to be propagated to the compiler or linker for good |
|
7440 |
# libtool support. |
|
7441 |
case $host in |
|
7442 |
ia64-*-hpux*) |
|
7443 |
# Find out which ABI we are using. |
|
7444 |
echo 'int i;' > conftest.$ac_ext |
|
7445 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
7446 |
(eval $ac_compile) 2>&5 |
|
7447 |
ac_status=$? |
|
7448 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7449 |
(exit $ac_status); }; then |
|
7450 |
case `/usr/bin/file conftest.$ac_objext` in |
|
7451 |
*ELF-32*) |
|
7452 |
HPUX_IA64_MODE="32" |
|
7453 |
;; |
|
7454 |
*ELF-64*) |
|
7455 |
HPUX_IA64_MODE="64" |
|
7456 |
;; |
|
7457 |
esac |
|
7458 |
fi |
|
7459 |
rm -rf conftest* |
|
7460 |
;; |
|
7461 |
*-*-irix6*) |
|
7462 |
# Find out which ABI we are using. |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
7463 |
echo '#line 7463 "configure"' > conftest.$ac_ext |
1
by Achim Bohnet
Import upstream version 0.1.1 |
7464 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7465 |
(eval $ac_compile) 2>&5 |
|
7466 |
ac_status=$? |
|
7467 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7468 |
(exit $ac_status); }; then |
|
7469 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
7470 |
case `/usr/bin/file conftest.$ac_objext` in |
|
7471 |
*32-bit*) |
|
7472 |
LD="${LD-ld} -melf32bsmip" |
|
7473 |
;; |
|
7474 |
*N32*) |
|
7475 |
LD="${LD-ld} -melf32bmipn32" |
|
7476 |
;; |
|
7477 |
*64-bit*) |
|
7478 |
LD="${LD-ld} -melf64bmip" |
|
7479 |
;; |
|
7480 |
esac |
|
7481 |
else |
|
7482 |
case `/usr/bin/file conftest.$ac_objext` in |
|
7483 |
*32-bit*) |
|
7484 |
LD="${LD-ld} -32" |
|
7485 |
;; |
|
7486 |
*N32*) |
|
7487 |
LD="${LD-ld} -n32" |
|
7488 |
;; |
|
7489 |
*64-bit*) |
|
7490 |
LD="${LD-ld} -64" |
|
7491 |
;; |
|
7492 |
esac |
|
7493 |
fi |
|
7494 |
fi |
|
7495 |
rm -rf conftest* |
|
7496 |
;; |
|
7497 |
||
7498 |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
|
7499 |
# Find out which ABI we are using. |
|
7500 |
echo 'int i;' > conftest.$ac_ext |
|
7501 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
7502 |
(eval $ac_compile) 2>&5 |
|
7503 |
ac_status=$? |
|
7504 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7505 |
(exit $ac_status); }; then |
|
7506 |
case "`/usr/bin/file conftest.o`" in |
|
7507 |
*32-bit*) |
|
7508 |
LINUX_64_MODE="32" |
|
7509 |
case $host in |
|
7510 |
x86_64-*linux*) |
|
7511 |
LD="${LD-ld} -m elf_i386" |
|
7512 |
;; |
|
7513 |
ppc64-*linux*) |
|
7514 |
LD="${LD-ld} -m elf32ppclinux" |
|
7515 |
;; |
|
7516 |
s390x-*linux*) |
|
7517 |
LD="${LD-ld} -m elf_s390" |
|
7518 |
;; |
|
7519 |
sparc64-*linux*) |
|
7520 |
LD="${LD-ld} -m elf32_sparc" |
|
7521 |
;; |
|
7522 |
esac |
|
7523 |
;; |
|
7524 |
*64-bit*) |
|
7525 |
LINUX_64_MODE="64" |
|
7526 |
case $host in |
|
7527 |
x86_64-*linux*) |
|
7528 |
LD="${LD-ld} -m elf_x86_64" |
|
7529 |
;; |
|
7530 |
ppc*-*linux*|powerpc*-*linux*) |
|
7531 |
LD="${LD-ld} -m elf64ppc" |
|
7532 |
;; |
|
7533 |
s390*-*linux*) |
|
7534 |
LD="${LD-ld} -m elf64_s390" |
|
7535 |
;; |
|
7536 |
sparc*-*linux*) |
|
7537 |
LD="${LD-ld} -m elf64_sparc" |
|
7538 |
;; |
|
7539 |
esac |
|
7540 |
;; |
|
7541 |
esac |
|
7542 |
fi |
|
7543 |
rm -rf conftest* |
|
7544 |
;; |
|
7545 |
||
7546 |
*-*-sco3.2v5*) |
|
7547 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
7548 |
SAVE_CFLAGS="$CFLAGS" |
|
7549 |
CFLAGS="$CFLAGS -belf" |
|
7550 |
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
7551 |
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
7552 |
if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
7553 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7554 |
else |
|
7555 |
ac_ext=c |
|
7556 |
ac_cpp='$CPP $CPPFLAGS' |
|
7557 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7558 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7559 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7560 |
||
7561 |
cat >conftest.$ac_ext <<_ACEOF |
|
7562 |
/* confdefs.h. */ |
|
7563 |
_ACEOF |
|
7564 |
cat confdefs.h >>conftest.$ac_ext |
|
7565 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7566 |
/* end confdefs.h. */ |
|
7567 |
||
7568 |
int |
|
7569 |
main () |
|
7570 |
{ |
|
7571 |
||
7572 |
; |
|
7573 |
return 0; |
|
7574 |
} |
|
7575 |
_ACEOF |
|
7576 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
7577 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
7578 |
(eval $ac_link) 2>conftest.er1 |
|
7579 |
ac_status=$? |
|
7580 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
7581 |
rm -f conftest.er1 |
|
7582 |
cat conftest.err >&5 |
|
7583 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7584 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
7585 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
7586 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7587 |
(eval $ac_try) 2>&5 |
|
7588 |
ac_status=$? |
|
7589 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7590 |
(exit $ac_status); }; } && |
|
7591 |
{ ac_try='test -s conftest$ac_exeext' |
|
7592 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
7593 |
(eval $ac_try) 2>&5 |
|
7594 |
ac_status=$? |
|
7595 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7596 |
(exit $ac_status); }; }; then |
|
7597 |
lt_cv_cc_needs_belf=yes |
|
7598 |
else |
|
7599 |
echo "$as_me: failed program was:" >&5 |
|
7600 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7601 |
||
7602 |
lt_cv_cc_needs_belf=no |
|
7603 |
fi |
|
7604 |
rm -f conftest.err conftest.$ac_objext \ |
|
7605 |
conftest$ac_exeext conftest.$ac_ext |
|
7606 |
ac_ext=c |
|
7607 |
ac_cpp='$CPP $CPPFLAGS' |
|
7608 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7609 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7610 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7611 |
||
7612 |
fi |
|
7613 |
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
7614 |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
7615 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
7616 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
7617 |
CFLAGS="$SAVE_CFLAGS" |
|
7618 |
fi |
|
7619 |
;; |
|
7620 |
||
7621 |
esac |
|
7622 |
||
7623 |
need_locks="$enable_libtool_lock" |
|
7624 |
||
7625 |
||
7626 |
||
7627 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
7628 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
7629 |
if test "${ac_cv_header_stdc+set}" = set; then |
|
7630 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7631 |
else |
|
7632 |
cat >conftest.$ac_ext <<_ACEOF |
|
7633 |
/* confdefs.h. */ |
|
7634 |
_ACEOF |
|
7635 |
cat confdefs.h >>conftest.$ac_ext |
|
7636 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7637 |
/* end confdefs.h. */ |
|
7638 |
#include <stdlib.h> |
|
7639 |
#include <stdarg.h> |
|
7640 |
#include <string.h> |
|
7641 |
#include <float.h> |
|
7642 |
||
7643 |
int |
|
7644 |
main () |
|
7645 |
{ |
|
7646 |
||
7647 |
; |
|
7648 |
return 0; |
|
7649 |
} |
|
7650 |
_ACEOF |
|
7651 |
rm -f conftest.$ac_objext |
|
7652 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
7653 |
(eval $ac_compile) 2>conftest.er1 |
|
7654 |
ac_status=$? |
|
7655 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
7656 |
rm -f conftest.er1 |
|
7657 |
cat conftest.err >&5 |
|
7658 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7659 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
7660 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
7661 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7662 |
(eval $ac_try) 2>&5 |
|
7663 |
ac_status=$? |
|
7664 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7665 |
(exit $ac_status); }; } && |
|
7666 |
{ ac_try='test -s conftest.$ac_objext' |
|
7667 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
7668 |
(eval $ac_try) 2>&5 |
|
7669 |
ac_status=$? |
|
7670 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7671 |
(exit $ac_status); }; }; then |
|
7672 |
ac_cv_header_stdc=yes |
|
7673 |
else |
|
7674 |
echo "$as_me: failed program was:" >&5 |
|
7675 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7676 |
||
7677 |
ac_cv_header_stdc=no |
|
7678 |
fi |
|
7679 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7680 |
||
7681 |
if test $ac_cv_header_stdc = yes; then |
|
7682 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
7683 |
cat >conftest.$ac_ext <<_ACEOF |
|
7684 |
/* confdefs.h. */ |
|
7685 |
_ACEOF |
|
7686 |
cat confdefs.h >>conftest.$ac_ext |
|
7687 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7688 |
/* end confdefs.h. */ |
|
7689 |
#include <string.h> |
|
7690 |
||
7691 |
_ACEOF |
|
7692 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7693 |
$EGREP "memchr" >/dev/null 2>&1; then |
|
7694 |
: |
|
7695 |
else |
|
7696 |
ac_cv_header_stdc=no |
|
7697 |
fi |
|
7698 |
rm -f conftest* |
|
7699 |
||
7700 |
fi |
|
7701 |
||
7702 |
if test $ac_cv_header_stdc = yes; then |
|
7703 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
7704 |
cat >conftest.$ac_ext <<_ACEOF |
|
7705 |
/* confdefs.h. */ |
|
7706 |
_ACEOF |
|
7707 |
cat confdefs.h >>conftest.$ac_ext |
|
7708 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7709 |
/* end confdefs.h. */ |
|
7710 |
#include <stdlib.h> |
|
7711 |
||
7712 |
_ACEOF |
|
7713 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7714 |
$EGREP "free" >/dev/null 2>&1; then |
|
7715 |
: |
|
7716 |
else |
|
7717 |
ac_cv_header_stdc=no |
|
7718 |
fi |
|
7719 |
rm -f conftest* |
|
7720 |
||
7721 |
fi |
|
7722 |
||
7723 |
if test $ac_cv_header_stdc = yes; then |
|
7724 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
7725 |
if test "$cross_compiling" = yes; then |
|
7726 |
: |
|
7727 |
else |
|
7728 |
cat >conftest.$ac_ext <<_ACEOF |
|
7729 |
/* confdefs.h. */ |
|
7730 |
_ACEOF |
|
7731 |
cat confdefs.h >>conftest.$ac_ext |
|
7732 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7733 |
/* end confdefs.h. */ |
|
7734 |
#include <ctype.h> |
|
7735 |
#if ((' ' & 0x0FF) == 0x020) |
|
7736 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
7737 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
7738 |
#else |
|
7739 |
# define ISLOWER(c) \ |
|
7740 |
(('a' <= (c) && (c) <= 'i') \ |
|
7741 |
|| ('j' <= (c) && (c) <= 'r') \ |
|
7742 |
|| ('s' <= (c) && (c) <= 'z')) |
|
7743 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
7744 |
#endif |
|
7745 |
||
7746 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
7747 |
int |
|
7748 |
main () |
|
7749 |
{ |
|
7750 |
int i; |
|
7751 |
for (i = 0; i < 256; i++) |
|
7752 |
if (XOR (islower (i), ISLOWER (i)) |
|
7753 |
|| toupper (i) != TOUPPER (i)) |
|
7754 |
exit(2); |
|
7755 |
exit (0); |
|
7756 |
} |
|
7757 |
_ACEOF |
|
7758 |
rm -f conftest$ac_exeext |
|
7759 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
7760 |
(eval $ac_link) 2>&5 |
|
7761 |
ac_status=$? |
|
7762 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7763 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
7764 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
7765 |
(eval $ac_try) 2>&5 |
|
7766 |
ac_status=$? |
|
7767 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7768 |
(exit $ac_status); }; }; then |
|
7769 |
: |
|
7770 |
else |
|
7771 |
echo "$as_me: program exited with status $ac_status" >&5 |
|
7772 |
echo "$as_me: failed program was:" >&5 |
|
7773 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7774 |
||
7775 |
( exit $ac_status ) |
|
7776 |
ac_cv_header_stdc=no |
|
7777 |
fi |
|
7778 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
7779 |
fi |
|
7780 |
fi |
|
7781 |
fi |
|
7782 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
7783 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
7784 |
if test $ac_cv_header_stdc = yes; then |
|
7785 |
||
7786 |
cat >>confdefs.h <<\_ACEOF |
|
7787 |
#define STDC_HEADERS 1 |
|
7788 |
_ACEOF |
|
7789 |
||
7790 |
fi |
|
7791 |
||
7792 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
7793 |
||
7794 |
||
7795 |
||
7796 |
||
7797 |
||
7798 |
||
7799 |
||
7800 |
||
7801 |
||
7802 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
7803 |
inttypes.h stdint.h unistd.h |
|
7804 |
do |
|
7805 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
7806 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
7807 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
7808 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
7809 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7810 |
else |
|
7811 |
cat >conftest.$ac_ext <<_ACEOF |
|
7812 |
/* confdefs.h. */ |
|
7813 |
_ACEOF |
|
7814 |
cat confdefs.h >>conftest.$ac_ext |
|
7815 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7816 |
/* end confdefs.h. */ |
|
7817 |
$ac_includes_default |
|
7818 |
||
7819 |
#include <$ac_header> |
|
7820 |
_ACEOF |
|
7821 |
rm -f conftest.$ac_objext |
|
7822 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
7823 |
(eval $ac_compile) 2>conftest.er1 |
|
7824 |
ac_status=$? |
|
7825 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
7826 |
rm -f conftest.er1 |
|
7827 |
cat conftest.err >&5 |
|
7828 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7829 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
7830 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
7831 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7832 |
(eval $ac_try) 2>&5 |
|
7833 |
ac_status=$? |
|
7834 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7835 |
(exit $ac_status); }; } && |
|
7836 |
{ ac_try='test -s conftest.$ac_objext' |
|
7837 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
7838 |
(eval $ac_try) 2>&5 |
|
7839 |
ac_status=$? |
|
7840 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7841 |
(exit $ac_status); }; }; then |
|
7842 |
eval "$as_ac_Header=yes" |
|
7843 |
else |
|
7844 |
echo "$as_me: failed program was:" >&5 |
|
7845 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7846 |
||
7847 |
eval "$as_ac_Header=no" |
|
7848 |
fi |
|
7849 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7850 |
fi |
|
7851 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
7852 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
7853 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
7854 |
cat >>confdefs.h <<_ACEOF |
|
7855 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
7856 |
_ACEOF |
|
7857 |
||
7858 |
fi |
|
7859 |
||
7860 |
done |
|
7861 |
||
7862 |
||
7863 |
||
7864 |
for ac_header in dlfcn.h |
|
7865 |
do |
|
7866 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
7867 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
7868 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
7869 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
7870 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
7871 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7872 |
fi |
|
7873 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
7874 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
7875 |
else |
|
7876 |
# Is the header compilable? |
|
7877 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
7878 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
7879 |
cat >conftest.$ac_ext <<_ACEOF |
|
7880 |
/* confdefs.h. */ |
|
7881 |
_ACEOF |
|
7882 |
cat confdefs.h >>conftest.$ac_ext |
|
7883 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7884 |
/* end confdefs.h. */ |
|
7885 |
$ac_includes_default |
|
7886 |
#include <$ac_header> |
|
7887 |
_ACEOF |
|
7888 |
rm -f conftest.$ac_objext |
|
7889 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
7890 |
(eval $ac_compile) 2>conftest.er1 |
|
7891 |
ac_status=$? |
|
7892 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
7893 |
rm -f conftest.er1 |
|
7894 |
cat conftest.err >&5 |
|
7895 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7896 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
7897 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
7898 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7899 |
(eval $ac_try) 2>&5 |
|
7900 |
ac_status=$? |
|
7901 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7902 |
(exit $ac_status); }; } && |
|
7903 |
{ ac_try='test -s conftest.$ac_objext' |
|
7904 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
7905 |
(eval $ac_try) 2>&5 |
|
7906 |
ac_status=$? |
|
7907 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7908 |
(exit $ac_status); }; }; then |
|
7909 |
ac_header_compiler=yes |
|
7910 |
else |
|
7911 |
echo "$as_me: failed program was:" >&5 |
|
7912 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7913 |
||
7914 |
ac_header_compiler=no |
|
7915 |
fi |
|
7916 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7917 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
7918 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
7919 |
||
7920 |
# Is the header present? |
|
7921 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
7922 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
7923 |
cat >conftest.$ac_ext <<_ACEOF |
|
7924 |
/* confdefs.h. */ |
|
7925 |
_ACEOF |
|
7926 |
cat confdefs.h >>conftest.$ac_ext |
|
7927 |
cat >>conftest.$ac_ext <<_ACEOF |
|
7928 |
/* end confdefs.h. */ |
|
7929 |
#include <$ac_header> |
|
7930 |
_ACEOF |
|
7931 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
7932 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
7933 |
ac_status=$? |
|
7934 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
7935 |
rm -f conftest.er1 |
|
7936 |
cat conftest.err >&5 |
|
7937 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7938 |
(exit $ac_status); } >/dev/null; then |
|
7939 |
if test -s conftest.err; then |
|
7940 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
7941 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
7942 |
else |
|
7943 |
ac_cpp_err= |
|
7944 |
fi |
|
7945 |
else |
|
7946 |
ac_cpp_err=yes |
|
7947 |
fi |
|
7948 |
if test -z "$ac_cpp_err"; then |
|
7949 |
ac_header_preproc=yes |
|
7950 |
else |
|
7951 |
echo "$as_me: failed program was:" >&5 |
|
7952 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7953 |
||
7954 |
ac_header_preproc=no |
|
7955 |
fi |
|
7956 |
rm -f conftest.err conftest.$ac_ext |
|
7957 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
7958 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
7959 |
||
7960 |
# So? What about this header? |
|
7961 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
7962 |
yes:no: ) |
|
7963 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
7964 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
7965 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
7966 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
7967 |
ac_header_preproc=yes |
|
7968 |
;; |
|
7969 |
no:yes:* ) |
|
7970 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
7971 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
7972 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
7973 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
7974 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
7975 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
7976 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
7977 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
7978 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
7979 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
7980 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
7981 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
7982 |
( |
|
7983 |
cat <<\_ASBOX |
|
7984 |
## ------------------------------------------ ## |
|
7985 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
7986 |
## ------------------------------------------ ## |
|
7987 |
_ASBOX |
|
7988 |
) | |
|
7989 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
7990 |
;; |
|
7991 |
esac |
|
7992 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
7993 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
7994 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
7995 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7996 |
else |
|
7997 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
7998 |
fi |
|
7999 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
8000 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
8001 |
||
8002 |
fi |
|
8003 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
8004 |
cat >>confdefs.h <<_ACEOF |
|
8005 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
8006 |
_ACEOF |
|
8007 |
||
8008 |
fi |
|
8009 |
||
8010 |
done |
|
8011 |
||
8012 |
ac_ext=f |
|
8013 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
8014 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
8015 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
8016 |
if test -n "$ac_tool_prefix"; then |
|
8017 |
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
8018 |
do |
|
8019 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
8020 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
8021 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
8022 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
8023 |
if test "${ac_cv_prog_F77+set}" = set; then |
|
8024 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8025 |
else |
|
8026 |
if test -n "$F77"; then |
|
8027 |
ac_cv_prog_F77="$F77" # Let the user override the test. |
|
8028 |
else |
|
8029 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
8030 |
for as_dir in $PATH |
|
8031 |
do |
|
8032 |
IFS=$as_save_IFS |
|
8033 |
test -z "$as_dir" && as_dir=. |
|
8034 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
8035 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
8036 |
ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
|
8037 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
8038 |
break 2 |
|
8039 |
fi |
|
8040 |
done |
|
8041 |
done |
|
8042 |
||
8043 |
fi |
|
8044 |
fi |
|
8045 |
F77=$ac_cv_prog_F77 |
|
8046 |
if test -n "$F77"; then |
|
8047 |
echo "$as_me:$LINENO: result: $F77" >&5 |
|
8048 |
echo "${ECHO_T}$F77" >&6 |
|
8049 |
else |
|
8050 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8051 |
echo "${ECHO_T}no" >&6 |
|
8052 |
fi |
|
8053 |
||
8054 |
test -n "$F77" && break |
|
8055 |
done |
|
8056 |
fi |
|
8057 |
if test -z "$F77"; then |
|
8058 |
ac_ct_F77=$F77 |
|
8059 |
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
8060 |
do |
|
8061 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
8062 |
set dummy $ac_prog; ac_word=$2 |
|
8063 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
8064 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
8065 |
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
|
8066 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8067 |
else |
|
8068 |
if test -n "$ac_ct_F77"; then |
|
8069 |
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
|
8070 |
else |
|
8071 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
8072 |
for as_dir in $PATH |
|
8073 |
do |
|
8074 |
IFS=$as_save_IFS |
|
8075 |
test -z "$as_dir" && as_dir=. |
|
8076 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
8077 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
8078 |
ac_cv_prog_ac_ct_F77="$ac_prog" |
|
8079 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
8080 |
break 2 |
|
8081 |
fi |
|
8082 |
done |
|
8083 |
done |
|
8084 |
||
8085 |
fi |
|
8086 |
fi |
|
8087 |
ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
|
8088 |
if test -n "$ac_ct_F77"; then |
|
8089 |
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
|
8090 |
echo "${ECHO_T}$ac_ct_F77" >&6 |
|
8091 |
else |
|
8092 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8093 |
echo "${ECHO_T}no" >&6 |
|
8094 |
fi |
|
8095 |
||
8096 |
test -n "$ac_ct_F77" && break |
|
8097 |
done |
|
8098 |
||
8099 |
F77=$ac_ct_F77 |
|
8100 |
fi |
|
8101 |
||
8102 |
||
8103 |
# Provide some information about the compiler. |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
8104 |
echo "$as_me:8104:" \ |
1
by Achim Bohnet
Import upstream version 0.1.1 |
8105 |
"checking for Fortran 77 compiler version" >&5 |
8106 |
ac_compiler=`set X $ac_compile; echo $2` |
|
8107 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
8108 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
8109 |
ac_status=$? |
|
8110 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8111 |
(exit $ac_status); } |
|
8112 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
8113 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
8114 |
ac_status=$? |
|
8115 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8116 |
(exit $ac_status); } |
|
8117 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
8118 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
8119 |
ac_status=$? |
|
8120 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8121 |
(exit $ac_status); } |
|
8122 |
rm -f a.out |
|
8123 |
||
8124 |
# If we don't use `.F' as extension, the preprocessor is not run on the |
|
8125 |
# input file. (Note that this only needs to work for GNU compilers.) |
|
8126 |
ac_save_ext=$ac_ext |
|
8127 |
ac_ext=F |
|
8128 |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
|
8129 |
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
|
8130 |
if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
|
8131 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8132 |
else |
|
8133 |
cat >conftest.$ac_ext <<_ACEOF |
|
8134 |
program main |
|
8135 |
#ifndef __GNUC__ |
|
8136 |
choke me |
|
8137 |
#endif |
|
8138 |
||
8139 |
end |
|
8140 |
_ACEOF |
|
8141 |
rm -f conftest.$ac_objext |
|
8142 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
8143 |
(eval $ac_compile) 2>conftest.er1 |
|
8144 |
ac_status=$? |
|
8145 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
8146 |
rm -f conftest.er1 |
|
8147 |
cat conftest.err >&5 |
|
8148 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8149 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
8150 |
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
8151 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8152 |
(eval $ac_try) 2>&5 |
|
8153 |
ac_status=$? |
|
8154 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8155 |
(exit $ac_status); }; } && |
|
8156 |
{ ac_try='test -s conftest.$ac_objext' |
|
8157 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
8158 |
(eval $ac_try) 2>&5 |
|
8159 |
ac_status=$? |
|
8160 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8161 |
(exit $ac_status); }; }; then |
|
8162 |
ac_compiler_gnu=yes |
|
8163 |
else |
|
8164 |
echo "$as_me: failed program was:" >&5 |
|
8165 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
8166 |
||
8167 |
ac_compiler_gnu=no |
|
8168 |
fi |
|
8169 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
8170 |
ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
|
8171 |
||
8172 |
fi |
|
8173 |
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
|
8174 |
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
|
8175 |
ac_ext=$ac_save_ext |
|
8176 |
ac_test_FFLAGS=${FFLAGS+set} |
|
8177 |
ac_save_FFLAGS=$FFLAGS |
|
8178 |
FFLAGS= |
|
8179 |
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
|
8180 |
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
|
8181 |
if test "${ac_cv_prog_f77_g+set}" = set; then |
|
8182 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8183 |
else |
|
8184 |
FFLAGS=-g |
|
8185 |
cat >conftest.$ac_ext <<_ACEOF |
|
8186 |
program main |
|
8187 |
||
8188 |
end |
|
8189 |
_ACEOF |
|
8190 |
rm -f conftest.$ac_objext |
|
8191 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
8192 |
(eval $ac_compile) 2>conftest.er1 |
|
8193 |
ac_status=$? |
|
8194 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
8195 |
rm -f conftest.er1 |
|
8196 |
cat conftest.err >&5 |
|
8197 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8198 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
8199 |
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
8200 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8201 |
(eval $ac_try) 2>&5 |
|
8202 |
ac_status=$? |
|
8203 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8204 |
(exit $ac_status); }; } && |
|
8205 |
{ ac_try='test -s conftest.$ac_objext' |
|
8206 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
8207 |
(eval $ac_try) 2>&5 |
|
8208 |
ac_status=$? |
|
8209 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8210 |
(exit $ac_status); }; }; then |
|
8211 |
ac_cv_prog_f77_g=yes |
|
8212 |
else |
|
8213 |
echo "$as_me: failed program was:" >&5 |
|
8214 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
8215 |
||
8216 |
ac_cv_prog_f77_g=no |
|
8217 |
fi |
|
8218 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
8219 |
||
8220 |
fi |
|
8221 |
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
|
8222 |
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
|
8223 |
if test "$ac_test_FFLAGS" = set; then |
|
8224 |
FFLAGS=$ac_save_FFLAGS |
|
8225 |
elif test $ac_cv_prog_f77_g = yes; then |
|
8226 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
8227 |
FFLAGS="-g -O2" |
|
8228 |
else |
|
8229 |
FFLAGS="-g" |
|
8230 |
fi |
|
8231 |
else |
|
8232 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
8233 |
FFLAGS="-O2" |
|
8234 |
else |
|
8235 |
FFLAGS= |
|
8236 |
fi |
|
8237 |
fi |
|
8238 |
||
8239 |
G77=`test $ac_compiler_gnu = yes && echo yes` |
|
8240 |
ac_ext=c |
|
8241 |
ac_cpp='$CPP $CPPFLAGS' |
|
8242 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
8243 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
8244 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
8245 |
||
8246 |
||
8247 |
||
8248 |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
8249 |
||
8250 |
# find the maximum length of command line arguments |
|
8251 |
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
|
8252 |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
|
8253 |
if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
8254 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8255 |
else |
|
8256 |
i=0 |
|
8257 |
testring="ABCD" |
|
8258 |
||
8259 |
case $build_os in |
|
8260 |
msdosdjgpp*) |
|
8261 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
|
8262 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
|
8263 |
# during glob expansion). Even if it were fixed, the result of this |
|
8264 |
# check would be larger than it should be. |
|
8265 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
8266 |
;; |
|
8267 |
||
8268 |
gnu*) |
|
8269 |
# Under GNU Hurd, this test is not required because there is |
|
8270 |
# no limit to the length of command line arguments. |
|
8271 |
# Libtool will interpret -1 as no limit whatsoever |
|
8272 |
lt_cv_sys_max_cmd_len=-1; |
|
8273 |
;; |
|
8274 |
||
8275 |
cygwin* | mingw*) |
|
8276 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
|
8277 |
# about 5 minutes as the teststring grows exponentially. |
|
8278 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
|
8279 |
# you end up with a "frozen" computer, even though with patience |
|
8280 |
# the test eventually succeeds (with a max line length of 256k). |
|
8281 |
# Instead, let's just punt: use the minimum linelength reported by |
|
8282 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
|
8283 |
lt_cv_sys_max_cmd_len=8192; |
|
8284 |
;; |
|
8285 |
||
8286 |
*) |
|
8287 |
# If test is not a shell built-in, we'll probably end up computing a |
|
8288 |
# maximum length that is only half of the actual maximum length, but |
|
8289 |
# we can't tell. |
|
8290 |
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
|
8291 |
= "XX$testring") >/dev/null 2>&1 && |
|
8292 |
new_result=`expr "X$testring" : ".*" 2>&1` && |
|
8293 |
lt_cv_sys_max_cmd_len=$new_result && |
|
8294 |
test $i != 17 # 1/2 MB should be enough |
|
8295 |
do |
|
8296 |
i=`expr $i + 1` |
|
8297 |
testring=$testring$testring |
|
8298 |
done |
|
8299 |
testring= |
|
8300 |
# Add a significant safety factor because C++ compilers can tack on massive |
|
8301 |
# amounts of additional arguments before passing them to the linker. |
|
8302 |
# It appears as though 1/2 is a usable value. |
|
8303 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
8304 |
;; |
|
8305 |
esac |
|
8306 |
||
8307 |
fi |
|
8308 |
||
8309 |
if test -n $lt_cv_sys_max_cmd_len ; then |
|
8310 |
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
|
8311 |
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
|
8312 |
else |
|
8313 |
echo "$as_me:$LINENO: result: none" >&5 |
|
8314 |
echo "${ECHO_T}none" >&6 |
|
8315 |
fi |
|
8316 |
||
8317 |
||
8318 |
||
8319 |
||
8320 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
|
8321 |
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
|
8322 |
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
|
8323 |
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
8324 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8325 |
else |
|
8326 |
||
8327 |
# These are sane defaults that work on at least a few old systems. |
|
8328 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
8329 |
||
8330 |
# Character class describing NM global symbol codes. |
|
8331 |
symcode='[BCDEGRST]' |
|
8332 |
||
8333 |
# Regexp to match symbols that can be accessed directly from C. |
|
8334 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
8335 |
||
8336 |
# Transform the above into a raw symbol and a C symbol. |
|
8337 |
symxfrm='\1 \2\3 \3' |
|
8338 |
||
8339 |
# Transform an extracted symbol line into a proper C declaration |
|
8340 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
|
8341 |
||
8342 |
# Transform an extracted symbol line into symbol name and symbol address |
|
8343 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
8344 |
||
8345 |
# Define system-specific variables. |
|
8346 |
case $host_os in |
|
8347 |
aix*) |
|
8348 |
symcode='[BCDT]' |
|
8349 |
;; |
|
8350 |
cygwin* | mingw* | pw32*) |
|
8351 |
symcode='[ABCDGISTW]' |
|
8352 |
;; |
|
8353 |
hpux*) # Its linker distinguishes data from code symbols |
|
8354 |
if test "$host_cpu" = ia64; then |
|
8355 |
symcode='[ABCDEGRST]' |
|
8356 |
fi |
|
8357 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
8358 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
8359 |
;; |
|
8360 |
irix* | nonstopux*) |
|
8361 |
symcode='[BCDEGRST]' |
|
8362 |
;; |
|
8363 |
osf*) |
|
8364 |
symcode='[BCDEGQRST]' |
|
8365 |
;; |
|
8366 |
solaris* | sysv5*) |
|
8367 |
symcode='[BDT]' |
|
8368 |
;; |
|
8369 |
sysv4) |
|
8370 |
symcode='[DFNSTU]' |
|
8371 |
;; |
|
8372 |
esac |
|
8373 |
||
8374 |
# Handle CRLF in mingw tool chain |
|
8375 |
opt_cr= |
|
8376 |
case $build_os in |
|
8377 |
mingw*) |
|
8378 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
8379 |
;; |
|
8380 |
esac |
|
8381 |
||
8382 |
# If we're using GNU nm, then use its standard symbol codes. |
|
8383 |
case `$NM -V 2>&1` in |
|
8384 |
*GNU* | *'with BFD'*) |
|
8385 |
symcode='[ABCDGISTW]' ;; |
|
8386 |
esac |
|
8387 |
||
8388 |
# Try without a prefix undercore, then with it. |
|
8389 |
for ac_symprfx in "" "_"; do |
|
8390 |
||
8391 |
# Write the raw and C identifiers. |
|
8392 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
8393 |
||
8394 |
# Check to see that the pipe works correctly. |
|
8395 |
pipe_works=no |
|
8396 |
||
8397 |
rm -f conftest* |
|
8398 |
cat > conftest.$ac_ext <<EOF |
|
8399 |
#ifdef __cplusplus |
|
8400 |
extern "C" { |
|
8401 |
#endif |
|
8402 |
char nm_test_var; |
|
8403 |
void nm_test_func(){} |
|
8404 |
#ifdef __cplusplus |
|
8405 |
} |
|
8406 |
#endif |
|
8407 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
|
8408 |
EOF |
|
8409 |
||
8410 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
8411 |
(eval $ac_compile) 2>&5 |
|
8412 |
ac_status=$? |
|
8413 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8414 |
(exit $ac_status); }; then |
|
8415 |
# Now try to grab the symbols. |
|
8416 |
nlist=conftest.nm |
|
8417 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
8418 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
8419 |
ac_status=$? |
|
8420 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8421 |
(exit $ac_status); } && test -s "$nlist"; then |
|
8422 |
# Try sorting and uniquifying the output. |
|
8423 |
if sort "$nlist" | uniq > "$nlist"T; then |
|
8424 |
mv -f "$nlist"T "$nlist" |
|
8425 |
else |
|
8426 |
rm -f "$nlist"T |
|
8427 |
fi |
|
8428 |
||
8429 |
# Make sure that we snagged all the symbols we need. |
|
8430 |
if grep ' nm_test_var$' "$nlist" >/dev/null; then |
|
8431 |
if grep ' nm_test_func$' "$nlist" >/dev/null; then |
|
8432 |
cat <<EOF > conftest.$ac_ext |
|
8433 |
#ifdef __cplusplus |
|
8434 |
extern "C" { |
|
8435 |
#endif |
|
8436 |
||
8437 |
EOF |
|
8438 |
# Now generate the symbol file. |
|
8439 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
|
8440 |
||
8441 |
cat <<EOF >> conftest.$ac_ext |
|
8442 |
#if defined (__STDC__) && __STDC__ |
|
8443 |
# define lt_ptr_t void * |
|
8444 |
#else |
|
8445 |
# define lt_ptr_t char * |
|
8446 |
# define const |
|
8447 |
#endif |
|
8448 |
||
8449 |
/* The mapping between symbol names and symbols. */ |
|
8450 |
const struct { |
|
8451 |
const char *name; |
|
8452 |
lt_ptr_t address; |
|
8453 |
} |
|
8454 |
lt_preloaded_symbols[] = |
|
8455 |
{ |
|
8456 |
EOF |
|
8457 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
|
8458 |
cat <<\EOF >> conftest.$ac_ext |
|
8459 |
{0, (lt_ptr_t) 0} |
|
8460 |
}; |
|
8461 |
||
8462 |
#ifdef __cplusplus |
|
8463 |
} |
|
8464 |
#endif |
|
8465 |
EOF |
|
8466 |
# Now try linking the two files. |
|
8467 |
mv conftest.$ac_objext conftstm.$ac_objext |
|
8468 |
lt_save_LIBS="$LIBS" |
|
8469 |
lt_save_CFLAGS="$CFLAGS" |
|
8470 |
LIBS="conftstm.$ac_objext" |
|
8471 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
8472 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
8473 |
(eval $ac_link) 2>&5 |
|
8474 |
ac_status=$? |
|
8475 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8476 |
(exit $ac_status); } && test -s conftest${ac_exeext}; then |
|
8477 |
pipe_works=yes |
|
8478 |
fi |
|
8479 |
LIBS="$lt_save_LIBS" |
|
8480 |
CFLAGS="$lt_save_CFLAGS" |
|
8481 |
else |
|
8482 |
echo "cannot find nm_test_func in $nlist" >&5 |
|
8483 |
fi |
|
8484 |
else |
|
8485 |
echo "cannot find nm_test_var in $nlist" >&5 |
|
8486 |
fi |
|
8487 |
else |
|
8488 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
8489 |
fi |
|
8490 |
else |
|
8491 |
echo "$progname: failed program was:" >&5 |
|
8492 |
cat conftest.$ac_ext >&5 |
|
8493 |
fi |
|
8494 |
rm -f conftest* conftst* |
|
8495 |
||
8496 |
# Do not use the global_symbol_pipe unless it works. |
|
8497 |
if test "$pipe_works" = yes; then |
|
8498 |
break |
|
8499 |
else |
|
8500 |
lt_cv_sys_global_symbol_pipe= |
|
8501 |
fi |
|
8502 |
done |
|
8503 |
||
8504 |
fi |
|
8505 |
||
8506 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
8507 |
lt_cv_sys_global_symbol_to_cdecl= |
|
8508 |
fi |
|
8509 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
8510 |
echo "$as_me:$LINENO: result: failed" >&5 |
|
8511 |
echo "${ECHO_T}failed" >&6 |
|
8512 |
else |
|
8513 |
echo "$as_me:$LINENO: result: ok" >&5 |
|
8514 |
echo "${ECHO_T}ok" >&6 |
|
8515 |
fi |
|
8516 |
||
8517 |
echo "$as_me:$LINENO: checking for objdir" >&5 |
|
8518 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
8519 |
if test "${lt_cv_objdir+set}" = set; then |
|
8520 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8521 |
else |
|
8522 |
rm -f .libs 2>/dev/null |
|
8523 |
mkdir .libs 2>/dev/null |
|
8524 |
if test -d .libs; then |
|
8525 |
lt_cv_objdir=.libs |
|
8526 |
else |
|
8527 |
# MS-DOS does not allow filenames that begin with a dot. |
|
8528 |
lt_cv_objdir=_libs |
|
8529 |
fi |
|
8530 |
rmdir .libs 2>/dev/null |
|
8531 |
fi |
|
8532 |
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
|
8533 |
echo "${ECHO_T}$lt_cv_objdir" >&6 |
|
8534 |
objdir=$lt_cv_objdir |
|
8535 |
||
8536 |
||
8537 |
||
8538 |
||
8539 |
||
8540 |
case $host_os in |
|
8541 |
aix3*) |
|
8542 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
8543 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
8544 |
# vanish in a puff of smoke. |
|
8545 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
8546 |
COLLECT_NAMES= |
|
8547 |
export COLLECT_NAMES |
|
8548 |
fi |
|
8549 |
;; |
|
8550 |
esac |
|
8551 |
||
8552 |
# Sed substitution that helps us do robust quoting. It backslashifies |
|
8553 |
# metacharacters that are still active within double-quoted strings. |
|
8554 |
Xsed='sed -e s/^X//' |
|
8555 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
8556 |
||
8557 |
# Same as above, but do not quote variable references. |
|
8558 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
8559 |
||
8560 |
# Sed substitution to delay expansion of an escaped shell variable in a |
|
8561 |
# double_quote_subst'ed string. |
|
8562 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
8563 |
||
8564 |
# Sed substitution to avoid accidental globbing in evaled expressions |
|
8565 |
no_glob_subst='s/\*/\\\*/g' |
|
8566 |
||
8567 |
# Constants: |
|
8568 |
rm="rm -f" |
|
8569 |
||
8570 |
# Global variables: |
|
8571 |
default_ofile=libtool |
|
8572 |
can_build_shared=yes |
|
8573 |
||
8574 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
|
8575 |
# which needs '.lib'). |
|
8576 |
libext=a |
|
8577 |
ltmain="$ac_aux_dir/ltmain.sh" |
|
8578 |
ofile="$default_ofile" |
|
8579 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
8580 |
||
8581 |
if test -n "$ac_tool_prefix"; then |
|
8582 |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
8583 |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
8584 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
8585 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
8586 |
if test "${ac_cv_prog_AR+set}" = set; then |
|
8587 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8588 |
else |
|
8589 |
if test -n "$AR"; then |
|
8590 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
|
8591 |
else |
|
8592 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
8593 |
for as_dir in $PATH |
|
8594 |
do |
|
8595 |
IFS=$as_save_IFS |
|
8596 |
test -z "$as_dir" && as_dir=. |
|
8597 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
8598 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
8599 |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
8600 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
8601 |
break 2 |
|
8602 |
fi |
|
8603 |
done |
|
8604 |
done |
|
8605 |
||
8606 |
fi |
|
8607 |
fi |
|
8608 |
AR=$ac_cv_prog_AR |
|
8609 |
if test -n "$AR"; then |
|
8610 |
echo "$as_me:$LINENO: result: $AR" >&5 |
|
8611 |
echo "${ECHO_T}$AR" >&6 |
|
8612 |
else |
|
8613 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8614 |
echo "${ECHO_T}no" >&6 |
|
8615 |
fi |
|
8616 |
||
8617 |
fi |
|
8618 |
if test -z "$ac_cv_prog_AR"; then |
|
8619 |
ac_ct_AR=$AR |
|
8620 |
# Extract the first word of "ar", so it can be a program name with args. |
|
8621 |
set dummy ar; ac_word=$2 |
|
8622 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
8623 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
8624 |
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
|
8625 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8626 |
else |
|
8627 |
if test -n "$ac_ct_AR"; then |
|
8628 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
8629 |
else |
|
8630 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
8631 |
for as_dir in $PATH |
|
8632 |
do |
|
8633 |
IFS=$as_save_IFS |
|
8634 |
test -z "$as_dir" && as_dir=. |
|
8635 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
8636 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
8637 |
ac_cv_prog_ac_ct_AR="ar" |
|
8638 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
8639 |
break 2 |
|
8640 |
fi |
|
8641 |
done |
|
8642 |
done |
|
8643 |
||
8644 |
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
|
8645 |
fi |
|
8646 |
fi |
|
8647 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
8648 |
if test -n "$ac_ct_AR"; then |
|
8649 |
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
|
8650 |
echo "${ECHO_T}$ac_ct_AR" >&6 |
|
8651 |
else |
|
8652 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8653 |
echo "${ECHO_T}no" >&6 |
|
8654 |
fi |
|
8655 |
||
8656 |
AR=$ac_ct_AR |
|
8657 |
else |
|
8658 |
AR="$ac_cv_prog_AR" |
|
8659 |
fi |
|
8660 |
||
8661 |
if test -n "$ac_tool_prefix"; then |
|
8662 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
8663 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
8664 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
8665 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
8666 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
8667 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8668 |
else |
|
8669 |
if test -n "$RANLIB"; then |
|
8670 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
8671 |
else |
|
8672 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
8673 |
for as_dir in $PATH |
|
8674 |
do |
|
8675 |
IFS=$as_save_IFS |
|
8676 |
test -z "$as_dir" && as_dir=. |
|
8677 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
8678 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
8679 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
8680 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
8681 |
break 2 |
|
8682 |
fi |
|
8683 |
done |
|
8684 |
done |
|
8685 |
||
8686 |
fi |
|
8687 |
fi |
|
8688 |
RANLIB=$ac_cv_prog_RANLIB |
|
8689 |
if test -n "$RANLIB"; then |
|
8690 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
8691 |
echo "${ECHO_T}$RANLIB" >&6 |
|
8692 |
else |
|
8693 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8694 |
echo "${ECHO_T}no" >&6 |
|
8695 |
fi |
|
8696 |
||
8697 |
fi |
|
8698 |
if test -z "$ac_cv_prog_RANLIB"; then |
|
8699 |
ac_ct_RANLIB=$RANLIB |
|
8700 |
# Extract the first word of "ranlib", so it can be a program name with args. |
|
8701 |
set dummy ranlib; ac_word=$2 |
|
8702 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
8703 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
8704 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
8705 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8706 |
else |
|
8707 |
if test -n "$ac_ct_RANLIB"; then |
|
8708 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
8709 |
else |
|
8710 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
8711 |
for as_dir in $PATH |
|
8712 |
do |
|
8713 |
IFS=$as_save_IFS |
|
8714 |
test -z "$as_dir" && as_dir=. |
|
8715 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
8716 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
8717 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
8718 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
8719 |
break 2 |
|
8720 |
fi |
|
8721 |
done |
|
8722 |
done |
|
8723 |
||
8724 |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
8725 |
fi |
|
8726 |
fi |
|
8727 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
8728 |
if test -n "$ac_ct_RANLIB"; then |
|
8729 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
8730 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
8731 |
else |
|
8732 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8733 |
echo "${ECHO_T}no" >&6 |
|
8734 |
fi |
|
8735 |
||
8736 |
RANLIB=$ac_ct_RANLIB |
|
8737 |
else |
|
8738 |
RANLIB="$ac_cv_prog_RANLIB" |
|
8739 |
fi |
|
8740 |
||
8741 |
if test -n "$ac_tool_prefix"; then |
|
8742 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
8743 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
8744 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
8745 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
8746 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
|
8747 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8748 |
else |
|
8749 |
if test -n "$STRIP"; then |
|
8750 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
8751 |
else |
|
8752 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
8753 |
for as_dir in $PATH |
|
8754 |
do |
|
8755 |
IFS=$as_save_IFS |
|
8756 |
test -z "$as_dir" && as_dir=. |
|
8757 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
8758 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
8759 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
8760 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
8761 |
break 2 |
|
8762 |
fi |
|
8763 |
done |
|
8764 |
done |
|
8765 |
||
8766 |
fi |
|
8767 |
fi |
|
8768 |
STRIP=$ac_cv_prog_STRIP |
|
8769 |
if test -n "$STRIP"; then |
|
8770 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
8771 |
echo "${ECHO_T}$STRIP" >&6 |
|
8772 |
else |
|
8773 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8774 |
echo "${ECHO_T}no" >&6 |
|
8775 |
fi |
|
8776 |
||
8777 |
fi |
|
8778 |
if test -z "$ac_cv_prog_STRIP"; then |
|
8779 |
ac_ct_STRIP=$STRIP |
|
8780 |
# Extract the first word of "strip", so it can be a program name with args. |
|
8781 |
set dummy strip; ac_word=$2 |
|
8782 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
8783 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
8784 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
8785 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8786 |
else |
|
8787 |
if test -n "$ac_ct_STRIP"; then |
|
8788 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
8789 |
else |
|
8790 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
8791 |
for as_dir in $PATH |
|
8792 |
do |
|
8793 |
IFS=$as_save_IFS |
|
8794 |
test -z "$as_dir" && as_dir=. |
|
8795 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
8796 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
8797 |
ac_cv_prog_ac_ct_STRIP="strip" |
|
8798 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
8799 |
break 2 |
|
8800 |
fi |
|
8801 |
done |
|
8802 |
done |
|
8803 |
||
8804 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
8805 |
fi |
|
8806 |
fi |
|
8807 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
8808 |
if test -n "$ac_ct_STRIP"; then |
|
8809 |
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
8810 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
8811 |
else |
|
8812 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8813 |
echo "${ECHO_T}no" >&6 |
|
8814 |
fi |
|
8815 |
||
8816 |
STRIP=$ac_ct_STRIP |
|
8817 |
else |
|
8818 |
STRIP="$ac_cv_prog_STRIP" |
|
8819 |
fi |
|
8820 |
||
8821 |
||
8822 |
old_CC="$CC" |
|
8823 |
old_CFLAGS="$CFLAGS" |
|
8824 |
||
8825 |
# Set sane defaults for various variables |
|
8826 |
test -z "$AR" && AR=ar |
|
8827 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
8828 |
test -z "$AS" && AS=as |
|
8829 |
test -z "$CC" && CC=cc |
|
8830 |
test -z "$LTCC" && LTCC=$CC |
|
8831 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
8832 |
test -z "$LD" && LD=ld |
|
8833 |
test -z "$LN_S" && LN_S="ln -s" |
|
8834 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
8835 |
test -z "$NM" && NM=nm |
|
8836 |
test -z "$SED" && SED=sed |
|
8837 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
|
8838 |
test -z "$RANLIB" && RANLIB=: |
|
8839 |
test -z "$STRIP" && STRIP=: |
|
8840 |
test -z "$ac_objext" && ac_objext=o |
|
8841 |
||
8842 |
# Determine commands to create old-style static archives. |
|
8843 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
8844 |
old_postinstall_cmds='chmod 644 $oldlib' |
|
8845 |
old_postuninstall_cmds= |
|
8846 |
||
8847 |
if test -n "$RANLIB"; then |
|
8848 |
case $host_os in |
|
8849 |
openbsd*) |
|
8850 |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
8851 |
;; |
|
8852 |
*) |
|
8853 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
8854 |
;; |
|
8855 |
esac |
|
8856 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
8857 |
fi |
|
8858 |
||
8859 |
# Only perform the check for file, if the check method requires it |
|
8860 |
case $deplibs_check_method in |
|
8861 |
file_magic*) |
|
8862 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
8863 |
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
8864 |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
8865 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
8866 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8867 |
else |
|
8868 |
case $MAGIC_CMD in |
|
8869 |
[\\/*] | ?:[\\/]*) |
|
8870 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
8871 |
;; |
|
8872 |
*) |
|
8873 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
8874 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
8875 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
8876 |
for ac_dir in $ac_dummy; do |
|
8877 |
IFS="$lt_save_ifs" |
|
8878 |
test -z "$ac_dir" && ac_dir=. |
|
8879 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
|
8880 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
8881 |
if test -n "$file_magic_test_file"; then |
|
8882 |
case $deplibs_check_method in |
|
8883 |
"file_magic "*) |
|
8884 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
8885 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
8886 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
8887 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
8888 |
: |
|
8889 |
else |
|
8890 |
cat <<EOF 1>&2 |
|
8891 |
||
8892 |
*** Warning: the command libtool uses to detect shared libraries, |
|
8893 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
8894 |
*** The result is that libtool may fail to recognize shared libraries |
|
8895 |
*** as such. This will affect the creation of libtool libraries that |
|
8896 |
*** depend on shared libraries, but programs linked with such libtool |
|
8897 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
8898 |
*** may want to report the problem to your system manager and/or to |
|
8899 |
*** bug-libtool@gnu.org |
|
8900 |
||
8901 |
EOF |
|
8902 |
fi ;; |
|
8903 |
esac |
|
8904 |
fi |
|
8905 |
break |
|
8906 |
fi |
|
8907 |
done |
|
8908 |
IFS="$lt_save_ifs" |
|
8909 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
8910 |
;; |
|
8911 |
esac |
|
8912 |
fi |
|
8913 |
||
8914 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
8915 |
if test -n "$MAGIC_CMD"; then |
|
8916 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
8917 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
8918 |
else |
|
8919 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8920 |
echo "${ECHO_T}no" >&6 |
|
8921 |
fi |
|
8922 |
||
8923 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
8924 |
if test -n "$ac_tool_prefix"; then |
|
8925 |
echo "$as_me:$LINENO: checking for file" >&5 |
|
8926 |
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
8927 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
8928 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8929 |
else |
|
8930 |
case $MAGIC_CMD in |
|
8931 |
[\\/*] | ?:[\\/]*) |
|
8932 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
8933 |
;; |
|
8934 |
*) |
|
8935 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
8936 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
8937 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
8938 |
for ac_dir in $ac_dummy; do |
|
8939 |
IFS="$lt_save_ifs" |
|
8940 |
test -z "$ac_dir" && ac_dir=. |
|
8941 |
if test -f $ac_dir/file; then |
|
8942 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
8943 |
if test -n "$file_magic_test_file"; then |
|
8944 |
case $deplibs_check_method in |
|
8945 |
"file_magic "*) |
|
8946 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
8947 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
8948 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
8949 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
8950 |
: |
|
8951 |
else |
|
8952 |
cat <<EOF 1>&2 |
|
8953 |
||
8954 |
*** Warning: the command libtool uses to detect shared libraries, |
|
8955 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
8956 |
*** The result is that libtool may fail to recognize shared libraries |
|
8957 |
*** as such. This will affect the creation of libtool libraries that |
|
8958 |
*** depend on shared libraries, but programs linked with such libtool |
|
8959 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
8960 |
*** may want to report the problem to your system manager and/or to |
|
8961 |
*** bug-libtool@gnu.org |
|
8962 |
||
8963 |
EOF |
|
8964 |
fi ;; |
|
8965 |
esac |
|
8966 |
fi |
|
8967 |
break |
|
8968 |
fi |
|
8969 |
done |
|
8970 |
IFS="$lt_save_ifs" |
|
8971 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
8972 |
;; |
|
8973 |
esac |
|
8974 |
fi |
|
8975 |
||
8976 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
8977 |
if test -n "$MAGIC_CMD"; then |
|
8978 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
8979 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
8980 |
else |
|
8981 |
echo "$as_me:$LINENO: result: no" >&5 |
|
8982 |
echo "${ECHO_T}no" >&6 |
|
8983 |
fi |
|
8984 |
||
8985 |
else |
|
8986 |
MAGIC_CMD=: |
|
8987 |
fi |
|
8988 |
fi |
|
8989 |
||
8990 |
fi |
|
8991 |
;; |
|
8992 |
esac |
|
8993 |
||
8994 |
enable_dlopen=yes |
|
8995 |
enable_win32_dll=no |
|
8996 |
||
8997 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
8998 |
if test "${enable_libtool_lock+set}" = set; then |
|
8999 |
enableval="$enable_libtool_lock" |
|
9000 |
||
9001 |
fi; |
|
9002 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
9003 |
||
9004 |
||
9005 |
# Check whether --with-pic or --without-pic was given. |
|
9006 |
if test "${with_pic+set}" = set; then |
|
9007 |
withval="$with_pic" |
|
9008 |
pic_mode="$withval" |
|
9009 |
else |
|
9010 |
pic_mode=default |
|
9011 |
fi; |
|
9012 |
test -z "$pic_mode" && pic_mode=default |
|
9013 |
||
9014 |
# Use C for the default configuration in the libtool script |
|
9015 |
tagname= |
|
9016 |
lt_save_CC="$CC" |
|
9017 |
ac_ext=c |
|
9018 |
ac_cpp='$CPP $CPPFLAGS' |
|
9019 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
9020 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
9021 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
9022 |
||
9023 |
||
9024 |
# Source file extension for C test sources. |
|
9025 |
ac_ext=c |
|
9026 |
||
9027 |
# Object file extension for compiled C test sources. |
|
9028 |
objext=o |
|
9029 |
objext=$objext |
|
9030 |
||
9031 |
# Code to be used in simple compile tests |
|
9032 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
|
9033 |
||
9034 |
# Code to be used in simple link tests |
|
9035 |
lt_simple_link_test_code='int main(){return(0);}\n' |
|
9036 |
||
9037 |
||
9038 |
# If no C compiler was specified, use CC. |
|
9039 |
LTCC=${LTCC-"$CC"} |
|
9040 |
||
9041 |
# Allow CC to be a program name with arguments. |
|
9042 |
compiler=$CC |
|
9043 |
||
9044 |
||
9045 |
# |
|
9046 |
# Check for any special shared library compilation flags. |
|
9047 |
# |
|
9048 |
lt_prog_cc_shlib= |
|
9049 |
if test "$GCC" = no; then |
|
9050 |
case $host_os in |
|
9051 |
sco3.2v5*) |
|
9052 |
lt_prog_cc_shlib='-belf' |
|
9053 |
;; |
|
9054 |
esac |
|
9055 |
fi |
|
9056 |
if test -n "$lt_prog_cc_shlib"; then |
|
9057 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
|
9058 |
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
|
9059 |
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
|
9060 |
else |
|
9061 |
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
9062 |
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
9063 |
lt_cv_prog_cc_can_build_shared=no |
|
9064 |
fi |
|
9065 |
fi |
|
9066 |
||
9067 |
||
9068 |
# |
|
9069 |
# Check to make sure the static flag actually works. |
|
9070 |
# |
|
9071 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
|
9072 |
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
|
9073 |
if test "${lt_prog_compiler_static_works+set}" = set; then |
|
9074 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9075 |
else |
|
9076 |
lt_prog_compiler_static_works=no |
|
9077 |
save_LDFLAGS="$LDFLAGS" |
|
9078 |
LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
|
9079 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
9080 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
9081 |
# The compiler can only warn and ignore the option if not recognized |
|
9082 |
# So say no if there are warnings |
|
9083 |
if test -s conftest.err; then |
|
9084 |
# Append any errors to the config.log. |
|
9085 |
cat conftest.err 1>&5 |
|
9086 |
else |
|
9087 |
lt_prog_compiler_static_works=yes |
|
9088 |
fi |
|
9089 |
fi |
|
9090 |
$rm conftest* |
|
9091 |
LDFLAGS="$save_LDFLAGS" |
|
9092 |
||
9093 |
fi |
|
9094 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
|
9095 |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
9096 |
||
9097 |
if test x"$lt_prog_compiler_static_works" = xyes; then |
|
9098 |
: |
|
9099 |
else |
|
9100 |
lt_prog_compiler_static= |
|
9101 |
fi |
|
9102 |
||
9103 |
||
9104 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
9105 |
## CAVEAT EMPTOR: |
9106 |
## There is no encapsulation within the following macros, do not change |
|
9107 |
## the running order or otherwise move them around unless you know exactly |
|
9108 |
## what you are doing... |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
9109 |
|
9110 |
lt_prog_compiler_no_builtin_flag= |
|
9111 |
||
9112 |
if test "$GCC" = yes; then |
|
9113 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
9114 |
||
9115 |
||
9116 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
9117 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
9118 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
9119 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9120 |
else |
|
9121 |
lt_cv_prog_compiler_rtti_exceptions=no |
|
9122 |
ac_outfile=conftest.$ac_objext |
|
9123 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
9124 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
9125 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
9126 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
9127 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
9128 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
9129 |
# The option is referenced via a variable to avoid confusing sed. |
|
9130 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
9131 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
9132 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
9133 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
9134 |
(eval echo "\"\$as_me:9134: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
9135 |
(eval "$lt_compile" 2>conftest.err) |
9136 |
ac_status=$? |
|
9137 |
cat conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
9138 |
echo "$as_me:9138: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
9139 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
9140 |
# The compiler can only warn and ignore the option if not recognized |
|
9141 |
# So say no if there are warnings |
|
9142 |
if test ! -s conftest.err; then |
|
9143 |
lt_cv_prog_compiler_rtti_exceptions=yes |
|
9144 |
fi |
|
9145 |
fi |
|
9146 |
$rm conftest* |
|
9147 |
||
9148 |
fi |
|
9149 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
9150 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
9151 |
||
9152 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
9153 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
|
9154 |
else |
|
9155 |
: |
|
9156 |
fi |
|
9157 |
||
9158 |
fi |
|
9159 |
||
9160 |
lt_prog_compiler_wl= |
|
9161 |
lt_prog_compiler_pic= |
|
9162 |
lt_prog_compiler_static= |
|
9163 |
||
9164 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
9165 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
9166 |
||
9167 |
if test "$GCC" = yes; then |
|
9168 |
lt_prog_compiler_wl='-Wl,' |
|
9169 |
lt_prog_compiler_static='-static' |
|
9170 |
||
9171 |
case $host_os in |
|
9172 |
aix*) |
|
9173 |
# All AIX code is PIC. |
|
9174 |
if test "$host_cpu" = ia64; then |
|
9175 |
# AIX 5 now supports IA64 processor |
|
9176 |
lt_prog_compiler_static='-Bstatic' |
|
9177 |
fi |
|
9178 |
;; |
|
9179 |
||
9180 |
amigaos*) |
|
9181 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
9182 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
9183 |
# like `-m68040'. |
|
9184 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
|
9185 |
;; |
|
9186 |
||
9187 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
9188 |
# PIC is the default for these OSes. |
|
9189 |
;; |
|
9190 |
||
9191 |
mingw* | pw32* | os2*) |
|
9192 |
# This hack is so that the source file can tell whether it is being |
|
9193 |
# built for inclusion in a dll (and should export symbols for example). |
|
9194 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
9195 |
;; |
|
9196 |
||
9197 |
darwin* | rhapsody*) |
|
9198 |
# PIC is the default on this platform |
|
9199 |
# Common symbols not allowed in MH_DYLIB files |
|
9200 |
lt_prog_compiler_pic='-fno-common' |
|
9201 |
;; |
|
9202 |
||
9203 |
msdosdjgpp*) |
|
9204 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
9205 |
# on systems that don't support them. |
|
9206 |
lt_prog_compiler_can_build_shared=no |
|
9207 |
enable_shared=no |
|
9208 |
;; |
|
9209 |
||
9210 |
sysv4*MP*) |
|
9211 |
if test -d /usr/nec; then |
|
9212 |
lt_prog_compiler_pic=-Kconform_pic |
|
9213 |
fi |
|
9214 |
;; |
|
9215 |
||
9216 |
hpux*) |
|
9217 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
9218 |
# not for PA HP-UX. |
|
9219 |
case "$host_cpu" in |
|
9220 |
hppa*64*|ia64*) |
|
9221 |
# +Z the default |
|
9222 |
;; |
|
9223 |
*) |
|
9224 |
lt_prog_compiler_pic='-fPIC' |
|
9225 |
;; |
|
9226 |
esac |
|
9227 |
;; |
|
9228 |
||
9229 |
*) |
|
9230 |
lt_prog_compiler_pic='-fPIC' |
|
9231 |
;; |
|
9232 |
esac |
|
9233 |
else |
|
9234 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
9235 |
case $host_os in |
|
9236 |
aix*) |
|
9237 |
lt_prog_compiler_wl='-Wl,' |
|
9238 |
if test "$host_cpu" = ia64; then |
|
9239 |
# AIX 5 now supports IA64 processor |
|
9240 |
lt_prog_compiler_static='-Bstatic' |
|
9241 |
else |
|
9242 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
|
9243 |
fi |
|
9244 |
;; |
|
9245 |
||
9246 |
mingw* | pw32* | os2*) |
|
9247 |
# This hack is so that the source file can tell whether it is being |
|
9248 |
# built for inclusion in a dll (and should export symbols for example). |
|
9249 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
9250 |
;; |
|
9251 |
||
9252 |
hpux9* | hpux10* | hpux11*) |
|
9253 |
lt_prog_compiler_wl='-Wl,' |
|
9254 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
9255 |
# not for PA HP-UX. |
|
9256 |
case "$host_cpu" in |
|
9257 |
hppa*64*|ia64*) |
|
9258 |
# +Z the default |
|
9259 |
;; |
|
9260 |
*) |
|
9261 |
lt_prog_compiler_pic='+Z' |
|
9262 |
;; |
|
9263 |
esac |
|
9264 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
9265 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
|
9266 |
;; |
|
9267 |
||
9268 |
irix5* | irix6* | nonstopux*) |
|
9269 |
lt_prog_compiler_wl='-Wl,' |
|
9270 |
# PIC (with -KPIC) is the default. |
|
9271 |
lt_prog_compiler_static='-non_shared' |
|
9272 |
;; |
|
9273 |
||
9274 |
newsos6) |
|
9275 |
lt_prog_compiler_pic='-KPIC' |
|
9276 |
lt_prog_compiler_static='-Bstatic' |
|
9277 |
;; |
|
9278 |
||
9279 |
linux*) |
|
9280 |
case $CC in |
|
9281 |
icc* | ecc*) |
|
9282 |
lt_prog_compiler_wl='-Wl,' |
|
9283 |
lt_prog_compiler_pic='-KPIC' |
|
9284 |
lt_prog_compiler_static='-static' |
|
9285 |
;; |
|
9286 |
ccc*) |
|
9287 |
lt_prog_compiler_wl='-Wl,' |
|
9288 |
# All Alpha code is PIC. |
|
9289 |
lt_prog_compiler_static='-non_shared' |
|
9290 |
;; |
|
9291 |
esac |
|
9292 |
;; |
|
9293 |
||
9294 |
osf3* | osf4* | osf5*) |
|
9295 |
lt_prog_compiler_wl='-Wl,' |
|
9296 |
# All OSF/1 code is PIC. |
|
9297 |
lt_prog_compiler_static='-non_shared' |
|
9298 |
;; |
|
9299 |
||
9300 |
sco3.2v5*) |
|
9301 |
lt_prog_compiler_pic='-Kpic' |
|
9302 |
lt_prog_compiler_static='-dn' |
|
9303 |
;; |
|
9304 |
||
9305 |
solaris*) |
|
9306 |
lt_prog_compiler_wl='-Wl,' |
|
9307 |
lt_prog_compiler_pic='-KPIC' |
|
9308 |
lt_prog_compiler_static='-Bstatic' |
|
9309 |
;; |
|
9310 |
||
9311 |
sunos4*) |
|
9312 |
lt_prog_compiler_wl='-Qoption ld ' |
|
9313 |
lt_prog_compiler_pic='-PIC' |
|
9314 |
lt_prog_compiler_static='-Bstatic' |
|
9315 |
;; |
|
9316 |
||
9317 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
9318 |
lt_prog_compiler_wl='-Wl,' |
|
9319 |
lt_prog_compiler_pic='-KPIC' |
|
9320 |
lt_prog_compiler_static='-Bstatic' |
|
9321 |
;; |
|
9322 |
||
9323 |
sysv4*MP*) |
|
9324 |
if test -d /usr/nec ;then |
|
9325 |
lt_prog_compiler_pic='-Kconform_pic' |
|
9326 |
lt_prog_compiler_static='-Bstatic' |
|
9327 |
fi |
|
9328 |
;; |
|
9329 |
||
9330 |
uts4*) |
|
9331 |
lt_prog_compiler_pic='-pic' |
|
9332 |
lt_prog_compiler_static='-Bstatic' |
|
9333 |
;; |
|
9334 |
||
9335 |
*) |
|
9336 |
lt_prog_compiler_can_build_shared=no |
|
9337 |
;; |
|
9338 |
esac |
|
9339 |
fi |
|
9340 |
||
9341 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
|
9342 |
echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
|
9343 |
||
9344 |
# |
|
9345 |
# Check to make sure the PIC flag actually works. |
|
9346 |
# |
|
9347 |
if test -n "$lt_prog_compiler_pic"; then |
|
9348 |
||
9349 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
|
9350 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
|
9351 |
if test "${lt_prog_compiler_pic_works+set}" = set; then |
|
9352 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9353 |
else |
|
9354 |
lt_prog_compiler_pic_works=no |
|
9355 |
ac_outfile=conftest.$ac_objext |
|
9356 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
9357 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
|
9358 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
9359 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
9360 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
9361 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
9362 |
# The option is referenced via a variable to avoid confusing sed. |
|
9363 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
9364 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
9365 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
9366 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
9367 |
(eval echo "\"\$as_me:9367: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
9368 |
(eval "$lt_compile" 2>conftest.err) |
9369 |
ac_status=$? |
|
9370 |
cat conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
9371 |
echo "$as_me:9371: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
9372 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
9373 |
# The compiler can only warn and ignore the option if not recognized |
|
9374 |
# So say no if there are warnings |
|
9375 |
if test ! -s conftest.err; then |
|
9376 |
lt_prog_compiler_pic_works=yes |
|
9377 |
fi |
|
9378 |
fi |
|
9379 |
$rm conftest* |
|
9380 |
||
9381 |
fi |
|
9382 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
|
9383 |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
|
9384 |
||
9385 |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
|
9386 |
case $lt_prog_compiler_pic in |
|
9387 |
"" | " "*) ;; |
|
9388 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
|
9389 |
esac |
|
9390 |
else |
|
9391 |
lt_prog_compiler_pic= |
|
9392 |
lt_prog_compiler_can_build_shared=no |
|
9393 |
fi |
|
9394 |
||
9395 |
fi |
|
9396 |
case "$host_os" in |
|
9397 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
9398 |
*djgpp*) |
|
9399 |
lt_prog_compiler_pic= |
|
9400 |
;; |
|
9401 |
*) |
|
9402 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
9403 |
;; |
|
9404 |
esac |
|
9405 |
||
9406 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
9407 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
9408 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
|
9409 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
9410 |
else |
|
9411 |
lt_cv_prog_compiler_c_o=no |
|
9412 |
$rm -r conftest 2>/dev/null |
|
9413 |
mkdir conftest |
|
9414 |
cd conftest |
|
9415 |
mkdir out |
|
9416 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
9417 |
||
9418 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
9419 |
# that will create temporary files in the current directory regardless of |
|
9420 |
# the output directory. Thus, making CWD read-only will cause this test |
|
9421 |
# to fail, enabling locking or at least warning the user not to do parallel |
|
9422 |
# builds. |
|
9423 |
chmod -w . |
|
9424 |
||
9425 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
9426 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
9427 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
9428 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
9429 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
9430 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
9431 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
9432 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
9433 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
9434 |
(eval echo "\"\$as_me:9434: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
9435 |
(eval "$lt_compile" 2>out/conftest.err) |
9436 |
ac_status=$? |
|
9437 |
cat out/conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
9438 |
echo "$as_me:9438: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
9439 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9440 |
then |
|
9441 |
# The compiler can only warn and ignore the option if not recognized |
|
9442 |
# So say no if there are warnings |
|
9443 |
if test ! -s out/conftest.err; then |
|
9444 |
lt_cv_prog_compiler_c_o=yes |
|
9445 |
fi |
|
9446 |
fi |
|
9447 |
chmod u+w . |
|
9448 |
$rm conftest* out/* |
|
9449 |
rmdir out |
|
9450 |
cd .. |
|
9451 |
rmdir conftest |
|
9452 |
$rm conftest* |
|
9453 |
||
9454 |
fi |
|
9455 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
|
9456 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
|
9457 |
||
9458 |
||
9459 |
hard_links="nottested" |
|
9460 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
|
9461 |
# do not overwrite the value of need_locks provided by the user |
|
9462 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
9463 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
9464 |
hard_links=yes |
|
9465 |
$rm conftest* |
|
9466 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
9467 |
touch conftest.a |
|
9468 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
9469 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
9470 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
9471 |
echo "${ECHO_T}$hard_links" >&6 |
|
9472 |
if test "$hard_links" = no; then |
|
9473 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
9474 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
9475 |
need_locks=warn |
|
9476 |
fi |
|
9477 |
else |
|
9478 |
need_locks=no |
|
9479 |
fi |
|
9480 |
||
9481 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
9482 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
9483 |
||
9484 |
runpath_var= |
|
9485 |
allow_undefined_flag= |
|
9486 |
enable_shared_with_static_runtimes=no |
|
9487 |
archive_cmds= |
|
9488 |
archive_expsym_cmds= |
|
9489 |
old_archive_From_new_cmds= |
|
9490 |
old_archive_from_expsyms_cmds= |
|
9491 |
export_dynamic_flag_spec= |
|
9492 |
whole_archive_flag_spec= |
|
9493 |
thread_safe_flag_spec= |
|
9494 |
hardcode_libdir_flag_spec= |
|
9495 |
hardcode_libdir_flag_spec_ld= |
|
9496 |
hardcode_libdir_separator= |
|
9497 |
hardcode_direct=no |
|
9498 |
hardcode_minus_L=no |
|
9499 |
hardcode_shlibpath_var=unsupported |
|
9500 |
link_all_deplibs=unknown |
|
9501 |
hardcode_automatic=no |
|
9502 |
module_cmds= |
|
9503 |
module_expsym_cmds= |
|
9504 |
always_export_symbols=no |
|
9505 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
9506 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
9507 |
# included in the symbol list |
|
9508 |
include_expsyms= |
|
9509 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
9510 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
9511 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
9512 |
# as well as any symbol that contains `d'. |
|
9513 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
9514 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
9515 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
9516 |
# the symbol is explicitly referenced. Since portable code cannot |
|
9517 |
# rely on this symbol name, it's probably fine to never include it in |
|
9518 |
# preloaded symbol tables. |
|
9519 |
extract_expsyms_cmds= |
|
9520 |
||
9521 |
case $host_os in |
|
9522 |
cygwin* | mingw* | pw32*) |
|
9523 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
9524 |
# When not using gcc, we currently assume that we are using |
|
9525 |
# Microsoft Visual C++. |
|
9526 |
if test "$GCC" != yes; then |
|
9527 |
with_gnu_ld=no |
|
9528 |
fi |
|
9529 |
;; |
|
9530 |
openbsd*) |
|
9531 |
with_gnu_ld=no |
|
9532 |
;; |
|
9533 |
esac |
|
9534 |
||
9535 |
ld_shlibs=yes |
|
9536 |
if test "$with_gnu_ld" = yes; then |
|
9537 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
9538 |
wlarc='${wl}' |
|
9539 |
||
9540 |
# See if GNU ld supports shared libraries. |
|
9541 |
case $host_os in |
|
9542 |
aix3* | aix4* | aix5*) |
|
9543 |
# On AIX/PPC, the GNU linker is very broken |
|
9544 |
if test "$host_cpu" != ia64; then |
|
9545 |
ld_shlibs=no |
|
9546 |
cat <<EOF 1>&2 |
|
9547 |
||
9548 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
9549 |
*** to be unable to reliably create shared libraries on AIX. |
|
9550 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
9551 |
*** really care for shared libraries, you may want to modify your PATH |
|
9552 |
*** so that a non-GNU linker is found, and then restart. |
|
9553 |
||
9554 |
EOF |
|
9555 |
fi |
|
9556 |
;; |
|
9557 |
||
9558 |
amigaos*) |
|
9559 |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
9560 |
hardcode_libdir_flag_spec='-L$libdir' |
|
9561 |
hardcode_minus_L=yes |
|
9562 |
||
9563 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
9564 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
9565 |
# to version 4, is to share data among multiple programs linked |
|
9566 |
# with the same dynamic library. Since this doesn't match the |
|
9567 |
# behavior of shared libraries on other platforms, we can't use |
|
9568 |
# them. |
|
9569 |
ld_shlibs=no |
|
9570 |
;; |
|
9571 |
||
9572 |
beos*) |
|
9573 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
9574 |
allow_undefined_flag=unsupported |
|
9575 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
9576 |
# support --undefined. This deserves some investigation. FIXME |
|
9577 |
archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
9578 |
else |
|
9579 |
ld_shlibs=no |
|
9580 |
fi |
|
9581 |
;; |
|
9582 |
||
9583 |
cygwin* | mingw* | pw32*) |
|
9584 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
|
9585 |
# as there is no search path for DLLs. |
|
9586 |
hardcode_libdir_flag_spec='-L$libdir' |
|
9587 |
allow_undefined_flag=no |
|
9588 |
always_export_symbols=no |
|
9589 |
enable_shared_with_static_runtimes=yes |
|
9590 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
9591 |
||
9592 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
9593 |
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
9594 |
# If the export-symbols file already is a .def file (1st line |
|
9595 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
9596 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
9597 |
cp $export_symbols $output_objdir/$soname.def; |
|
9598 |
else |
|
9599 |
echo EXPORTS > $output_objdir/$soname.def; |
|
9600 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
9601 |
fi~ |
|
9602 |
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
9603 |
else |
|
9604 |
ld_shlibs=no |
|
9605 |
fi |
|
9606 |
;; |
|
9607 |
||
9608 |
netbsd*) |
|
9609 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
9610 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
9611 |
wlarc= |
|
9612 |
else |
|
9613 |
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
9614 |
archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
9615 |
fi |
|
9616 |
;; |
|
9617 |
||
9618 |
solaris* | sysv5*) |
|
9619 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
9620 |
ld_shlibs=no |
|
9621 |
cat <<EOF 1>&2 |
|
9622 |
||
9623 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
9624 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
9625 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
9626 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
9627 |
*** your PATH or compiler configuration so that the native linker is |
|
9628 |
*** used, and then restart. |
|
9629 |
||
9630 |
EOF |
|
9631 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
9632 |
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
9633 |
archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
9634 |
else |
|
9635 |
ld_shlibs=no |
|
9636 |
fi |
|
9637 |
;; |
|
9638 |
||
9639 |
sunos4*) |
|
9640 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
9641 |
wlarc= |
|
9642 |
hardcode_direct=yes |
|
9643 |
hardcode_shlibpath_var=no |
|
9644 |
;; |
|
9645 |
||
9646 |
*) |
|
9647 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
9648 |
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
9649 |
archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
9650 |
else |
|
9651 |
ld_shlibs=no |
|
9652 |
fi |
|
9653 |
;; |
|
9654 |
esac |
|
9655 |
||
9656 |
if test "$ld_shlibs" = yes; then |
|
9657 |
runpath_var=LD_RUN_PATH |
|
9658 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
9659 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
|
9660 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
9661 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
9662 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
9663 |
else |
|
9664 |
whole_archive_flag_spec= |
|
9665 |
fi |
|
9666 |
fi |
|
9667 |
else |
|
9668 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
9669 |
case $host_os in |
|
9670 |
aix3*) |
|
9671 |
allow_undefined_flag=unsupported |
|
9672 |
always_export_symbols=yes |
|
9673 |
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
9674 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
9675 |
# are no directories specified by -L. |
|
9676 |
hardcode_minus_L=yes |
|
9677 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
9678 |
# Neither direct hardcoding nor static linking is supported with a |
|
9679 |
# broken collect2. |
|
9680 |
hardcode_direct=unsupported |
|
9681 |
fi |
|
9682 |
;; |
|
9683 |
||
9684 |
aix4* | aix5*) |
|
9685 |
if test "$host_cpu" = ia64; then |
|
9686 |
# On IA64, the linker does run time linking by default, so we don't |
|
9687 |
# have to do anything special. |
|
9688 |
aix_use_runtimelinking=no |
|
9689 |
exp_sym_flag='-Bexport' |
|
9690 |
no_entry_flag="" |
|
9691 |
else |
|
9692 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
9693 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
9694 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
9695 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
9696 |
else |
|
9697 |
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
9698 |
fi |
|
9699 |
||
9700 |
# KDE requires run time linking. Make it the default. |
|
9701 |
aix_use_runtimelinking=yes |
|
9702 |
exp_sym_flag='-bexport' |
|
9703 |
no_entry_flag='-bnoentry' |
|
9704 |
fi |
|
9705 |
||
9706 |
# When large executables or shared objects are built, AIX ld can |
|
9707 |
# have problems creating the table of contents. If linking a library |
|
9708 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
9709 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
9710 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
9711 |
||
9712 |
archive_cmds='' |
|
9713 |
hardcode_direct=yes |
|
9714 |
hardcode_libdir_separator=':' |
|
9715 |
link_all_deplibs=yes |
|
9716 |
||
9717 |
if test "$GCC" = yes; then |
|
9718 |
case $host_os in aix4.012|aix4.012.*) |
|
9719 |
# We only want to do this on AIX 4.2 and lower, the check |
|
9720 |
# below for broken collect2 doesn't work under 4.3+ |
|
9721 |
collect2name=`${CC} -print-prog-name=collect2` |
|
9722 |
if test -f "$collect2name" && \ |
|
9723 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
9724 |
then |
|
9725 |
# We have reworked collect2 |
|
9726 |
hardcode_direct=yes |
|
9727 |
else |
|
9728 |
# We have old collect2 |
|
9729 |
hardcode_direct=unsupported |
|
9730 |
# It fails to find uninstalled libraries when the uninstalled |
|
9731 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
9732 |
# to unsupported forces relinking |
|
9733 |
hardcode_minus_L=yes |
|
9734 |
hardcode_libdir_flag_spec='-L$libdir' |
|
9735 |
hardcode_libdir_separator= |
|
9736 |
fi |
|
9737 |
esac |
|
9738 |
shared_flag='-shared' |
|
9739 |
else |
|
9740 |
# not using gcc |
|
9741 |
if test "$host_cpu" = ia64; then |
|
9742 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
9743 |
# chokes on -Wl,-G. The following line is correct: |
|
9744 |
shared_flag='-G' |
|
9745 |
else |
|
9746 |
if test "$aix_use_runtimelinking" = yes; then |
|
9747 |
shared_flag='-qmkshrobj ${wl}-G' |
|
9748 |
else |
|
9749 |
shared_flag='-qmkshrobj' |
|
9750 |
fi |
|
9751 |
fi |
|
9752 |
fi |
|
9753 |
||
9754 |
# Let the compiler handle the export list. |
|
9755 |
always_export_symbols=no |
|
9756 |
if test "$aix_use_runtimelinking" = yes; then |
|
9757 |
# Warning - without using the other runtime loading flags (-brtl), |
|
9758 |
# -berok will link without error, but may produce a broken library. |
|
9759 |
allow_undefined_flag='-berok' |
|
9760 |
# Determine the default libpath from the value encoded in an empty executable. |
|
9761 |
cat >conftest.$ac_ext <<_ACEOF |
|
9762 |
/* confdefs.h. */ |
|
9763 |
_ACEOF |
|
9764 |
cat confdefs.h >>conftest.$ac_ext |
|
9765 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9766 |
/* end confdefs.h. */ |
|
9767 |
||
9768 |
int |
|
9769 |
main () |
|
9770 |
{ |
|
9771 |
||
9772 |
; |
|
9773 |
return 0; |
|
9774 |
} |
|
9775 |
_ACEOF |
|
9776 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
9777 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9778 |
(eval $ac_link) 2>conftest.er1 |
|
9779 |
ac_status=$? |
|
9780 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9781 |
rm -f conftest.er1 |
|
9782 |
cat conftest.err >&5 |
|
9783 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9784 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
9785 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
9786 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9787 |
(eval $ac_try) 2>&5 |
|
9788 |
ac_status=$? |
|
9789 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9790 |
(exit $ac_status); }; } && |
|
9791 |
{ ac_try='test -s conftest$ac_exeext' |
|
9792 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
9793 |
(eval $ac_try) 2>&5 |
|
9794 |
ac_status=$? |
|
9795 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9796 |
(exit $ac_status); }; }; then |
|
9797 |
||
9798 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
9799 |
}'` |
|
9800 |
# Check for a 64-bit object if we didn't find anything. |
|
9801 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
9802 |
}'`; fi |
|
9803 |
else |
|
9804 |
echo "$as_me: failed program was:" >&5 |
|
9805 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9806 |
||
9807 |
fi |
|
9808 |
rm -f conftest.err conftest.$ac_objext \ |
|
9809 |
conftest$ac_exeext conftest.$ac_ext |
|
9810 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
9811 |
||
9812 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
9813 |
archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" |
|
9814 |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
9815 |
else |
|
9816 |
if test "$host_cpu" = ia64; then |
|
9817 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
9818 |
allow_undefined_flag="-z nodefs" |
|
9819 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
9820 |
else |
|
9821 |
# Determine the default libpath from the value encoded in an empty executable. |
|
9822 |
cat >conftest.$ac_ext <<_ACEOF |
|
9823 |
/* confdefs.h. */ |
|
9824 |
_ACEOF |
|
9825 |
cat confdefs.h >>conftest.$ac_ext |
|
9826 |
cat >>conftest.$ac_ext <<_ACEOF |
|
9827 |
/* end confdefs.h. */ |
|
9828 |
||
9829 |
int |
|
9830 |
main () |
|
9831 |
{ |
|
9832 |
||
9833 |
; |
|
9834 |
return 0; |
|
9835 |
} |
|
9836 |
_ACEOF |
|
9837 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
9838 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
9839 |
(eval $ac_link) 2>conftest.er1 |
|
9840 |
ac_status=$? |
|
9841 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
9842 |
rm -f conftest.er1 |
|
9843 |
cat conftest.err >&5 |
|
9844 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9845 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
9846 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
9847 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9848 |
(eval $ac_try) 2>&5 |
|
9849 |
ac_status=$? |
|
9850 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9851 |
(exit $ac_status); }; } && |
|
9852 |
{ ac_try='test -s conftest$ac_exeext' |
|
9853 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
9854 |
(eval $ac_try) 2>&5 |
|
9855 |
ac_status=$? |
|
9856 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9857 |
(exit $ac_status); }; }; then |
|
9858 |
||
9859 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
9860 |
}'` |
|
9861 |
# Check for a 64-bit object if we didn't find anything. |
|
9862 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
9863 |
}'`; fi |
|
9864 |
else |
|
9865 |
echo "$as_me: failed program was:" >&5 |
|
9866 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
9867 |
||
9868 |
fi |
|
9869 |
rm -f conftest.err conftest.$ac_objext \ |
|
9870 |
conftest$ac_exeext conftest.$ac_ext |
|
9871 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
9872 |
||
9873 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
9874 |
# Warning - without using the other run time loading flags, |
|
9875 |
# -berok will link without error, but may produce a broken library. |
|
9876 |
no_undefined_flag=' ${wl}-bernotok' |
|
9877 |
allow_undefined_flag=' ${wl}-berok' |
|
9878 |
# -bexpall does not export symbols beginning with underscore (_) |
|
9879 |
always_export_symbols=yes |
|
9880 |
# Exported symbols can be pulled into shared objects from archives |
|
9881 |
whole_archive_flag_spec=' ' |
|
9882 |
archive_cmds_need_lc=yes |
|
9883 |
# This is similar to how AIX traditionally builds it's shared libraries. |
|
9884 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
9885 |
fi |
|
9886 |
fi |
|
9887 |
;; |
|
9888 |
||
9889 |
amigaos*) |
|
9890 |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
9891 |
hardcode_libdir_flag_spec='-L$libdir' |
|
9892 |
hardcode_minus_L=yes |
|
9893 |
# see comment about different semantics on the GNU ld section |
|
9894 |
ld_shlibs=no |
|
9895 |
;; |
|
9896 |
||
9897 |
bsdi4*) |
|
9898 |
export_dynamic_flag_spec=-rdynamic |
|
9899 |
;; |
|
9900 |
||
9901 |
cygwin* | mingw* | pw32*) |
|
9902 |
# When not using gcc, we currently assume that we are using |
|
9903 |
# Microsoft Visual C++. |
|
9904 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
9905 |
# no search path for DLLs. |
|
9906 |
hardcode_libdir_flag_spec=' ' |
|
9907 |
allow_undefined_flag=no |
|
9908 |
# Tell ltmain to make .lib files, not .a files. |
|
9909 |
libext=lib |
|
9910 |
# Tell ltmain to make .dll files, not .so files. |
|
9911 |
shrext=".dll" |
|
9912 |
# FIXME: Setting linknames here is a bad hack. |
|
9913 |
archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
9914 |
# The linker will automatically build a .lib file if we build a DLL. |
|
9915 |
old_archive_From_new_cmds='true' |
|
9916 |
# FIXME: Should let the user specify the lib program. |
|
9917 |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
9918 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
9919 |
enable_shared_with_static_runtimes=yes |
|
9920 |
;; |
|
9921 |
||
9922 |
darwin* | rhapsody*) |
|
9923 |
if test "$GXX" = yes ; then |
|
9924 |
archive_cmds_need_lc=no |
|
9925 |
case "$host_os" in |
|
9926 |
rhapsody* | darwin1.[012]) |
|
9927 |
allow_undefined_flag='-Wl,-undefined -Wl,suppress' |
|
9928 |
;; |
|
9929 |
*) # Darwin 1.3 on |
|
9930 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
9931 |
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
|
9932 |
else |
|
9933 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
9934 |
10.012) |
|
9935 |
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
|
9936 |
;; |
|
9937 |
10.*) |
|
9938 |
allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' |
|
9939 |
;; |
|
9940 |
esac |
|
9941 |
fi |
|
9942 |
;; |
|
9943 |
esac |
|
9944 |
lt_int_apple_cc_single_mod=no |
|
9945 |
output_verbose_link_cmd='echo' |
|
9946 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
9947 |
lt_int_apple_cc_single_mod=yes |
|
9948 |
fi |
|
9949 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
9950 |
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
|
9951 |
else |
|
9952 |
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' |
|
9953 |
fi |
|
9954 |
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
|
9955 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
9956 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
9957 |
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
9958 |
else |
|
9959 |
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
9960 |
fi |
|
9961 |
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
9962 |
hardcode_direct=no |
|
9963 |
hardcode_automatic=yes |
|
9964 |
hardcode_shlibpath_var=unsupported |
|
9965 |
whole_archive_flag_spec='-all_load $convenience' |
|
9966 |
link_all_deplibs=yes |
|
9967 |
else |
|
9968 |
ld_shlibs=no |
|
9969 |
fi |
|
9970 |
;; |
|
9971 |
||
9972 |
dgux*) |
|
9973 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9974 |
hardcode_libdir_flag_spec='-L$libdir' |
|
9975 |
hardcode_shlibpath_var=no |
|
9976 |
;; |
|
9977 |
||
9978 |
freebsd1*) |
|
9979 |
ld_shlibs=no |
|
9980 |
;; |
|
9981 |
||
9982 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
9983 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
9984 |
# does not break anything, and helps significantly (at the cost of a little |
|
9985 |
# extra space). |
|
9986 |
freebsd2.2*) |
|
9987 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
9988 |
hardcode_libdir_flag_spec='-R$libdir' |
|
9989 |
hardcode_direct=yes |
|
9990 |
hardcode_shlibpath_var=no |
|
9991 |
;; |
|
9992 |
||
9993 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
9994 |
freebsd2*) |
|
9995 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
9996 |
hardcode_direct=yes |
|
9997 |
hardcode_minus_L=yes |
|
9998 |
hardcode_shlibpath_var=no |
|
9999 |
;; |
|
10000 |
||
10001 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
10002 |
freebsd*) |
|
10003 |
archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' |
|
10004 |
hardcode_libdir_flag_spec='-R$libdir' |
|
10005 |
hardcode_direct=yes |
|
10006 |
hardcode_shlibpath_var=no |
|
10007 |
;; |
|
10008 |
||
10009 |
hpux9*) |
|
10010 |
if test "$GCC" = yes; then |
|
10011 |
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
10012 |
else |
|
10013 |
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
10014 |
fi |
|
10015 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
10016 |
hardcode_libdir_separator=: |
|
10017 |
hardcode_direct=yes |
|
10018 |
||
10019 |
# hardcode_minus_L: Not really in the search PATH, |
|
10020 |
# but as the default location of the library. |
|
10021 |
hardcode_minus_L=yes |
|
10022 |
export_dynamic_flag_spec='${wl}-E' |
|
10023 |
;; |
|
10024 |
||
10025 |
hpux10* | hpux11*) |
|
10026 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
10027 |
case "$host_cpu" in |
|
10028 |
hppa*64*|ia64*) |
|
10029 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
10030 |
;; |
|
10031 |
*) |
|
10032 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' |
|
10033 |
;; |
|
10034 |
esac |
|
10035 |
else |
|
10036 |
case "$host_cpu" in |
|
10037 |
hppa*64*|ia64*) |
|
10038 |
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10039 |
;; |
|
10040 |
*) |
|
10041 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
10042 |
;; |
|
10043 |
esac |
|
10044 |
fi |
|
10045 |
if test "$with_gnu_ld" = no; then |
|
10046 |
case "$host_cpu" in |
|
10047 |
hppa*64*) |
|
10048 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
10049 |
hardcode_libdir_flag_spec_ld='+b $libdir' |
|
10050 |
hardcode_libdir_separator=: |
|
10051 |
hardcode_direct=no |
|
10052 |
hardcode_shlibpath_var=no |
|
10053 |
;; |
|
10054 |
ia64*) |
|
10055 |
hardcode_libdir_flag_spec='-L$libdir' |
|
10056 |
hardcode_direct=no |
|
10057 |
hardcode_shlibpath_var=no |
|
10058 |
||
10059 |
# hardcode_minus_L: Not really in the search PATH, |
|
10060 |
# but as the default location of the library. |
|
10061 |
hardcode_minus_L=yes |
|
10062 |
;; |
|
10063 |
*) |
|
10064 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
10065 |
hardcode_libdir_separator=: |
|
10066 |
hardcode_direct=yes |
|
10067 |
export_dynamic_flag_spec='${wl}-E' |
|
10068 |
||
10069 |
# hardcode_minus_L: Not really in the search PATH, |
|
10070 |
# but as the default location of the library. |
|
10071 |
hardcode_minus_L=yes |
|
10072 |
;; |
|
10073 |
esac |
|
10074 |
fi |
|
10075 |
;; |
|
10076 |
||
10077 |
irix5* | irix6* | nonstopux*) |
|
10078 |
if test "$GCC" = yes; then |
|
10079 |
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
10080 |
else |
|
10081 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
10082 |
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
|
10083 |
fi |
|
10084 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
10085 |
hardcode_libdir_separator=: |
|
10086 |
link_all_deplibs=yes |
|
10087 |
;; |
|
10088 |
||
10089 |
netbsd*) |
|
10090 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
10091 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
10092 |
else |
|
10093 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
10094 |
fi |
|
10095 |
hardcode_libdir_flag_spec='-R$libdir' |
|
10096 |
hardcode_direct=yes |
|
10097 |
hardcode_shlibpath_var=no |
|
10098 |
;; |
|
10099 |
||
10100 |
newsos6) |
|
10101 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10102 |
hardcode_direct=yes |
|
10103 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
10104 |
hardcode_libdir_separator=: |
|
10105 |
hardcode_shlibpath_var=no |
|
10106 |
;; |
|
10107 |
||
10108 |
openbsd*) |
|
10109 |
hardcode_direct=yes |
|
10110 |
hardcode_shlibpath_var=no |
|
10111 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
10112 |
archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
|
10113 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
10114 |
export_dynamic_flag_spec='${wl}-E' |
|
10115 |
else |
|
10116 |
case $host_os in |
|
10117 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
10118 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
10119 |
hardcode_libdir_flag_spec='-R$libdir' |
|
10120 |
;; |
|
10121 |
*) |
|
10122 |
archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
|
10123 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
10124 |
;; |
|
10125 |
esac |
|
10126 |
fi |
|
10127 |
;; |
|
10128 |
||
10129 |
os2*) |
|
10130 |
hardcode_libdir_flag_spec='-L$libdir' |
|
10131 |
hardcode_minus_L=yes |
|
10132 |
allow_undefined_flag=unsupported |
|
10133 |
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' |
|
10134 |
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
10135 |
;; |
|
10136 |
||
10137 |
osf3*) |
|
10138 |
if test "$GCC" = yes; then |
|
10139 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
10140 |
archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
10141 |
else |
|
10142 |
allow_undefined_flag=' -expect_unresolved \*' |
|
10143 |
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
10144 |
fi |
|
10145 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
10146 |
hardcode_libdir_separator=: |
|
10147 |
;; |
|
10148 |
||
10149 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
10150 |
if test "$GCC" = yes; then |
|
10151 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
10152 |
archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
10153 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
10154 |
else |
|
10155 |
allow_undefined_flag=' -expect_unresolved \*' |
|
10156 |
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
10157 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
10158 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
10159 |
||
10160 |
# Both c and cxx compiler support -rpath directly |
|
10161 |
hardcode_libdir_flag_spec='-rpath $libdir' |
|
10162 |
fi |
|
10163 |
hardcode_libdir_separator=: |
|
10164 |
;; |
|
10165 |
||
10166 |
sco3.2v5*) |
|
10167 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10168 |
hardcode_shlibpath_var=no |
|
10169 |
export_dynamic_flag_spec='${wl}-Bexport' |
|
10170 |
runpath_var=LD_RUN_PATH |
|
10171 |
hardcode_runpath_var=yes |
|
10172 |
;; |
|
10173 |
||
10174 |
solaris*) |
|
10175 |
no_undefined_flag=' -z text' |
|
10176 |
if test "$GCC" = yes; then |
|
10177 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
10178 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
10179 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' |
|
10180 |
else |
|
10181 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10182 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
10183 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
10184 |
fi |
|
10185 |
hardcode_libdir_flag_spec='-R$libdir' |
|
10186 |
hardcode_shlibpath_var=no |
|
10187 |
case $host_os in |
|
10188 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
10189 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
10190 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
10191 |
esac |
|
10192 |
link_all_deplibs=yes |
|
10193 |
;; |
|
10194 |
||
10195 |
sunos4*) |
|
10196 |
if test "x$host_vendor" = xsequent; then |
|
10197 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
10198 |
# files that make .init and .fini sections work. |
|
10199 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' |
|
10200 |
else |
|
10201 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
10202 |
fi |
|
10203 |
hardcode_libdir_flag_spec='-L$libdir' |
|
10204 |
hardcode_direct=yes |
|
10205 |
hardcode_minus_L=yes |
|
10206 |
hardcode_shlibpath_var=no |
|
10207 |
;; |
|
10208 |
||
10209 |
sysv4) |
|
10210 |
case $host_vendor in |
|
10211 |
sni) |
|
10212 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10213 |
hardcode_direct=yes # is this really true??? |
|
10214 |
;; |
|
10215 |
siemens) |
|
10216 |
## LD is ld it makes a PLAMLIB |
|
10217 |
## CC just makes a GrossModule. |
|
10218 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
10219 |
reload_cmds='$CC -r -o $output$reload_objs' |
|
10220 |
hardcode_direct=no |
|
10221 |
;; |
|
10222 |
motorola) |
|
10223 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10224 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
10225 |
;; |
|
10226 |
esac |
|
10227 |
runpath_var='LD_RUN_PATH' |
|
10228 |
hardcode_shlibpath_var=no |
|
10229 |
;; |
|
10230 |
||
10231 |
sysv4.3*) |
|
10232 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10233 |
hardcode_shlibpath_var=no |
|
10234 |
export_dynamic_flag_spec='-Bexport' |
|
10235 |
;; |
|
10236 |
||
10237 |
sysv4*MP*) |
|
10238 |
if test -d /usr/nec; then |
|
10239 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10240 |
hardcode_shlibpath_var=no |
|
10241 |
runpath_var=LD_RUN_PATH |
|
10242 |
hardcode_runpath_var=yes |
|
10243 |
ld_shlibs=yes |
|
10244 |
fi |
|
10245 |
;; |
|
10246 |
||
10247 |
sysv4.2uw2*) |
|
10248 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
10249 |
hardcode_direct=yes |
|
10250 |
hardcode_minus_L=no |
|
10251 |
hardcode_shlibpath_var=no |
|
10252 |
hardcode_runpath_var=yes |
|
10253 |
runpath_var=LD_RUN_PATH |
|
10254 |
;; |
|
10255 |
||
10256 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
10257 |
no_undefined_flag='${wl}-z ${wl}text' |
|
10258 |
if test "$GCC" = yes; then |
|
10259 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
10260 |
else |
|
10261 |
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
10262 |
fi |
|
10263 |
runpath_var='LD_RUN_PATH' |
|
10264 |
hardcode_shlibpath_var=no |
|
10265 |
;; |
|
10266 |
||
10267 |
sysv5*) |
|
10268 |
no_undefined_flag=' -z text' |
|
10269 |
# $CC -shared without GNU ld will not create a library from C++ |
|
10270 |
# object files and a static libstdc++, better avoid it by now |
|
10271 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10272 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
10273 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
10274 |
hardcode_libdir_flag_spec= |
|
10275 |
hardcode_shlibpath_var=no |
|
10276 |
runpath_var='LD_RUN_PATH' |
|
10277 |
;; |
|
10278 |
||
10279 |
uts4*) |
|
10280 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10281 |
hardcode_libdir_flag_spec='-L$libdir' |
|
10282 |
hardcode_shlibpath_var=no |
|
10283 |
;; |
|
10284 |
||
10285 |
*) |
|
10286 |
ld_shlibs=no |
|
10287 |
;; |
|
10288 |
esac |
|
10289 |
fi |
|
10290 |
||
10291 |
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
10292 |
echo "${ECHO_T}$ld_shlibs" >&6 |
|
10293 |
test "$ld_shlibs" = no && can_build_shared=no |
|
10294 |
||
10295 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
10296 |
if test "$GCC" = yes; then |
|
10297 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
10298 |
fi |
|
10299 |
||
10300 |
# |
|
10301 |
# Do we need to explicitly link libc? |
|
10302 |
# |
|
10303 |
case "x$archive_cmds_need_lc" in |
|
10304 |
x|xyes) |
|
10305 |
# Assume -lc should be added |
|
10306 |
archive_cmds_need_lc=yes |
|
10307 |
||
10308 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
10309 |
case $archive_cmds in |
|
10310 |
*'~'*) |
|
10311 |
# FIXME: we may have to deal with multi-command sequences. |
|
10312 |
;; |
|
10313 |
'$CC '*) |
|
10314 |
# Test whether the compiler implicitly links with -lc since on some |
|
10315 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
10316 |
# to ld, don't add -lc before -lgcc. |
|
10317 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
10318 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
10319 |
$rm conftest* |
|
10320 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
10321 |
||
10322 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
10323 |
(eval $ac_compile) 2>&5 |
|
10324 |
ac_status=$? |
|
10325 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10326 |
(exit $ac_status); } 2>conftest.err; then |
|
10327 |
soname=conftest |
|
10328 |
lib=conftest |
|
10329 |
libobjs=conftest.$ac_objext |
|
10330 |
deplibs= |
|
10331 |
wl=$lt_prog_compiler_wl |
|
10332 |
compiler_flags=-v |
|
10333 |
linker_flags=-v |
|
10334 |
verstring= |
|
10335 |
output_objdir=. |
|
10336 |
libname=conftest |
|
10337 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
|
10338 |
allow_undefined_flag= |
|
10339 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
10340 |
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
10341 |
ac_status=$? |
|
10342 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10343 |
(exit $ac_status); } |
|
10344 |
then |
|
10345 |
archive_cmds_need_lc=no |
|
10346 |
else |
|
10347 |
archive_cmds_need_lc=yes |
|
10348 |
fi |
|
10349 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
|
10350 |
else |
|
10351 |
cat conftest.err 1>&5 |
|
10352 |
fi |
|
10353 |
$rm conftest* |
|
10354 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
|
10355 |
echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
|
10356 |
;; |
|
10357 |
esac |
|
10358 |
fi |
|
10359 |
;; |
|
10360 |
esac |
|
10361 |
||
10362 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
10363 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
10364 |
library_names_spec= |
|
10365 |
libname_spec='lib$name' |
|
10366 |
soname_spec= |
|
10367 |
shrext=".so" |
|
10368 |
postinstall_cmds= |
|
10369 |
postuninstall_cmds= |
|
10370 |
finish_cmds= |
|
10371 |
finish_eval= |
|
10372 |
shlibpath_var= |
|
10373 |
shlibpath_overrides_runpath=unknown |
|
10374 |
version_type=none |
|
10375 |
dynamic_linker="$host_os ld.so" |
|
10376 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
10377 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
10378 |
need_lib_prefix=unknown |
|
10379 |
hardcode_into_libs=no |
|
10380 |
||
10381 |
# when you set need_version to no, make sure it does not cause -set_version |
|
10382 |
# flags to be left without arguments |
|
10383 |
need_version=unknown |
|
10384 |
||
10385 |
case $host_os in |
|
10386 |
aix3*) |
|
10387 |
version_type=linux |
|
10388 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
10389 |
shlibpath_var=LIBPATH |
|
10390 |
||
10391 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
10392 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10393 |
;; |
|
10394 |
||
10395 |
aix4* | aix5*) |
|
10396 |
version_type=linux |
|
10397 |
need_lib_prefix=no |
|
10398 |
need_version=no |
|
10399 |
hardcode_into_libs=yes |
|
10400 |
if test "$host_cpu" = ia64; then |
|
10401 |
# AIX 5 supports IA64 |
|
10402 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
10403 |
shlibpath_var=LD_LIBRARY_PATH |
|
10404 |
else |
|
10405 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
10406 |
# for dependence libraries. The import file would start with |
|
10407 |
# the line `#! .'. This would cause the generated library to |
|
10408 |
# depend on `.', always an invalid library. This was fixed in |
|
10409 |
# development snapshots of GCC prior to 3.0. |
|
10410 |
case $host_os in |
|
10411 |
aix4 | aix4.[01] | aix4.[01].*) |
|
10412 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
10413 |
echo ' yes ' |
|
10414 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
10415 |
: |
|
10416 |
else |
|
10417 |
can_build_shared=no |
|
10418 |
fi |
|
10419 |
;; |
|
10420 |
esac |
|
10421 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
10422 |
# soname into executable. Probably we can add versioning support to |
|
10423 |
# collect2, so additional links can be useful in future. |
|
10424 |
if test "$aix_use_runtimelinking" = yes; then |
|
10425 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
10426 |
# instead of lib<name>.a to let people know that these are not |
|
10427 |
# typical AIX shared libraries. |
|
10428 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10429 |
else |
|
10430 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
10431 |
# and later when we are not doing run time linking. |
|
10432 |
library_names_spec='${libname}${release}.a $libname.a' |
|
10433 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10434 |
fi |
|
10435 |
shlibpath_var=LIBPATH |
|
10436 |
fi |
|
10437 |
;; |
|
10438 |
||
10439 |
amigaos*) |
|
10440 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
10441 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
10442 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
|
10443 |
;; |
|
10444 |
||
10445 |
beos*) |
|
10446 |
library_names_spec='${libname}${shared_ext}' |
|
10447 |
dynamic_linker="$host_os ld.so" |
|
10448 |
shlibpath_var=LIBRARY_PATH |
|
10449 |
;; |
|
10450 |
||
10451 |
bsdi4*) |
|
10452 |
version_type=linux |
|
10453 |
need_version=no |
|
10454 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10455 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10456 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
10457 |
shlibpath_var=LD_LIBRARY_PATH |
|
10458 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
10459 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
10460 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
10461 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
10462 |
# libtool to hard-code these into programs |
|
10463 |
;; |
|
10464 |
||
10465 |
cygwin* | mingw* | pw32*) |
|
10466 |
version_type=windows |
|
10467 |
shrext=".dll" |
|
10468 |
need_version=no |
|
10469 |
need_lib_prefix=no |
|
10470 |
||
10471 |
case $GCC,$host_os in |
|
10472 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
10473 |
library_names_spec='$libname.dll.a' |
|
10474 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
10475 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
10476 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
10477 |
dldir=$destdir/`dirname \$dlpath`~ |
|
10478 |
test -d \$dldir || mkdir -p \$dldir~ |
|
10479 |
$install_prog $dir/$dlname \$dldir/$dlname' |
|
10480 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
10481 |
dlpath=$dir/\$dldll~ |
|
10482 |
$rm \$dlpath' |
|
10483 |
shlibpath_overrides_runpath=yes |
|
10484 |
||
10485 |
case $host_os in |
|
10486 |
cygwin*) |
|
10487 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
10488 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
10489 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
10490 |
;; |
|
10491 |
mingw*) |
|
10492 |
# MinGW DLLs use traditional 'lib' prefix |
|
10493 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
10494 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
10495 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
10496 |
# It is most probably a Windows format PATH printed by |
|
10497 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
10498 |
# path with ; separators, and with drive letters. We can handle the |
|
10499 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
10500 |
# especially as we might pass files found there to a mingw objdump, |
|
10501 |
# which wouldn't understand a cygwinified path. Ahh. |
|
10502 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
10503 |
else |
|
10504 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
10505 |
fi |
|
10506 |
;; |
|
10507 |
pw32*) |
|
10508 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
10509 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
10510 |
;; |
|
10511 |
esac |
|
10512 |
;; |
|
10513 |
||
10514 |
*) |
|
10515 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
10516 |
;; |
|
10517 |
esac |
|
10518 |
dynamic_linker='Win32 ld.exe' |
|
10519 |
# FIXME: first we should search . and the directory the executable is in |
|
10520 |
shlibpath_var=PATH |
|
10521 |
;; |
|
10522 |
||
10523 |
darwin* | rhapsody*) |
|
10524 |
dynamic_linker="$host_os dyld" |
|
10525 |
version_type=darwin |
|
10526 |
need_lib_prefix=no |
|
10527 |
need_version=no |
|
10528 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
10529 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
10530 |
shlibpath_overrides_runpath=yes |
|
10531 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
10532 |
shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
|
10533 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
10534 |
if test "$GCC" = yes; then |
|
10535 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
10536 |
else |
|
10537 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
10538 |
fi |
|
10539 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
10540 |
;; |
|
10541 |
||
10542 |
dgux*) |
|
10543 |
version_type=linux |
|
10544 |
need_lib_prefix=no |
|
10545 |
need_version=no |
|
10546 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
10547 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10548 |
shlibpath_var=LD_LIBRARY_PATH |
|
10549 |
;; |
|
10550 |
||
10551 |
freebsd1*) |
|
10552 |
dynamic_linker=no |
|
10553 |
;; |
|
10554 |
||
10555 |
freebsd*-gnu*) |
|
10556 |
version_type=linux |
|
10557 |
need_lib_prefix=no |
|
10558 |
need_version=no |
|
10559 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
10560 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10561 |
shlibpath_var=LD_LIBRARY_PATH |
|
10562 |
shlibpath_overrides_runpath=no |
|
10563 |
hardcode_into_libs=yes |
|
10564 |
dynamic_linker='GNU ld.so' |
|
10565 |
;; |
|
10566 |
||
10567 |
freebsd*) |
|
10568 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
10569 |
version_type=freebsd-$objformat |
|
10570 |
case $version_type in |
|
10571 |
freebsd-elf*) |
|
10572 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
10573 |
need_version=no |
|
10574 |
need_lib_prefix=no |
|
10575 |
;; |
|
10576 |
freebsd-*) |
|
10577 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
10578 |
need_version=yes |
|
10579 |
;; |
|
10580 |
esac |
|
10581 |
shlibpath_var=LD_LIBRARY_PATH |
|
10582 |
case $host_os in |
|
10583 |
freebsd2*) |
|
10584 |
shlibpath_overrides_runpath=yes |
|
10585 |
;; |
|
10586 |
freebsd3.01* | freebsdelf3.01*) |
|
10587 |
shlibpath_overrides_runpath=yes |
|
10588 |
hardcode_into_libs=yes |
|
10589 |
;; |
|
10590 |
*) # from 3.2 on |
|
10591 |
shlibpath_overrides_runpath=no |
|
10592 |
hardcode_into_libs=yes |
|
10593 |
;; |
|
10594 |
esac |
|
10595 |
;; |
|
10596 |
||
10597 |
gnu*) |
|
10598 |
version_type=linux |
|
10599 |
need_lib_prefix=no |
|
10600 |
need_version=no |
|
10601 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
10602 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10603 |
shlibpath_var=LD_LIBRARY_PATH |
|
10604 |
hardcode_into_libs=yes |
|
10605 |
;; |
|
10606 |
||
10607 |
hpux9* | hpux10* | hpux11*) |
|
10608 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
10609 |
# link against other versions. |
|
10610 |
version_type=sunos |
|
10611 |
need_lib_prefix=no |
|
10612 |
need_version=no |
|
10613 |
case "$host_cpu" in |
|
10614 |
ia64*) |
|
10615 |
shrext='.so' |
|
10616 |
hardcode_into_libs=yes |
|
10617 |
dynamic_linker="$host_os dld.so" |
|
10618 |
shlibpath_var=LD_LIBRARY_PATH |
|
10619 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
10620 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10621 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10622 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
10623 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
10624 |
else |
|
10625 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
10626 |
fi |
|
10627 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
10628 |
;; |
|
10629 |
hppa*64*) |
|
10630 |
shrext='.sl' |
|
10631 |
hardcode_into_libs=yes |
|
10632 |
dynamic_linker="$host_os dld.sl" |
|
10633 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
10634 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
10635 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10636 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10637 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
10638 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
10639 |
;; |
|
10640 |
*) |
|
10641 |
shrext='.sl' |
|
10642 |
dynamic_linker="$host_os dld.sl" |
|
10643 |
shlibpath_var=SHLIB_PATH |
|
10644 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
10645 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10646 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10647 |
;; |
|
10648 |
esac |
|
10649 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
10650 |
postinstall_cmds='chmod 555 $lib' |
|
10651 |
;; |
|
10652 |
||
10653 |
irix5* | irix6* | nonstopux*) |
|
10654 |
case $host_os in |
|
10655 |
nonstopux*) version_type=nonstopux ;; |
|
10656 |
*) |
|
10657 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
10658 |
version_type=linux |
|
10659 |
else |
|
10660 |
version_type=irix |
|
10661 |
fi ;; |
|
10662 |
esac |
|
10663 |
need_lib_prefix=no |
|
10664 |
need_version=no |
|
10665 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10666 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
10667 |
case $host_os in |
|
10668 |
irix5* | nonstopux*) |
|
10669 |
libsuff= shlibsuff= |
|
10670 |
;; |
|
10671 |
*) |
|
10672 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
10673 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
10674 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
10675 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
10676 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
10677 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
10678 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
10679 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
10680 |
esac |
|
10681 |
;; |
|
10682 |
esac |
|
10683 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
10684 |
shlibpath_overrides_runpath=no |
|
10685 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
10686 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
10687 |
hardcode_into_libs=yes |
|
10688 |
;; |
|
10689 |
||
10690 |
# No shared lib support for Linux oldld, aout, or coff. |
|
10691 |
linux*oldld* | linux*aout* | linux*coff*) |
|
10692 |
dynamic_linker=no |
|
10693 |
;; |
|
10694 |
||
10695 |
# This must be Linux ELF. |
|
10696 |
linux*) |
|
10697 |
version_type=linux |
|
10698 |
need_lib_prefix=no |
|
10699 |
need_version=no |
|
10700 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10701 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10702 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
10703 |
libsuff= |
|
10704 |
if test "x$LINUX_64_MODE" = x64; then |
|
10705 |
# Some platforms are per default 64-bit, so there's no /lib64 |
|
10706 |
if test -d /lib64; then |
|
10707 |
libsuff=64 |
|
10708 |
fi |
|
10709 |
fi |
|
10710 |
shlibpath_var=LD_LIBRARY_PATH |
|
10711 |
shlibpath_overrides_runpath=no |
|
10712 |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
|
10713 |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
|
10714 |
# This implies no fast_install, which is unacceptable. |
|
10715 |
# Some rework will be needed to allow for fast_install |
|
10716 |
# before this can be enabled. |
|
10717 |
hardcode_into_libs=yes |
|
10718 |
||
10719 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
10720 |
# powerpc, because MkLinux only supported shared libraries with the |
|
10721 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
10722 |
# most powerpc-linux boxes support dynamic linking these days and |
|
10723 |
# people can always --disable-shared, the test was removed, and we |
|
10724 |
# assume the GNU/Linux dynamic linker is in use. |
|
10725 |
dynamic_linker='GNU/Linux ld.so' |
|
10726 |
;; |
|
10727 |
||
10728 |
netbsd*) |
|
10729 |
version_type=sunos |
|
10730 |
need_lib_prefix=no |
|
10731 |
need_version=no |
|
10732 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
10733 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
10734 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
10735 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
10736 |
else |
|
10737 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
|
10738 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10739 |
dynamic_linker='NetBSD ld.elf_so' |
|
10740 |
fi |
|
10741 |
shlibpath_var=LD_LIBRARY_PATH |
|
10742 |
shlibpath_overrides_runpath=yes |
|
10743 |
hardcode_into_libs=yes |
|
10744 |
;; |
|
10745 |
||
10746 |
newsos6) |
|
10747 |
version_type=linux |
|
10748 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10749 |
shlibpath_var=LD_LIBRARY_PATH |
|
10750 |
shlibpath_overrides_runpath=yes |
|
10751 |
;; |
|
10752 |
||
10753 |
nto-qnx*) |
|
10754 |
version_type=linux |
|
10755 |
need_lib_prefix=no |
|
10756 |
need_version=no |
|
10757 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10758 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10759 |
shlibpath_var=LD_LIBRARY_PATH |
|
10760 |
shlibpath_overrides_runpath=yes |
|
10761 |
;; |
|
10762 |
||
10763 |
openbsd*) |
|
10764 |
version_type=sunos |
|
10765 |
need_lib_prefix=no |
|
10766 |
need_version=no |
|
10767 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
10768 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
10769 |
shlibpath_var=LD_LIBRARY_PATH |
|
10770 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
10771 |
case $host_os in |
|
10772 |
openbsd2.[89] | openbsd2.[89].*) |
|
10773 |
shlibpath_overrides_runpath=no |
|
10774 |
;; |
|
10775 |
*) |
|
10776 |
shlibpath_overrides_runpath=yes |
|
10777 |
;; |
|
10778 |
esac |
|
10779 |
else |
|
10780 |
shlibpath_overrides_runpath=yes |
|
10781 |
fi |
|
10782 |
;; |
|
10783 |
||
10784 |
os2*) |
|
10785 |
libname_spec='$name' |
|
10786 |
shrext=".dll" |
|
10787 |
need_lib_prefix=no |
|
10788 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
10789 |
dynamic_linker='OS/2 ld.exe' |
|
10790 |
shlibpath_var=LIBPATH |
|
10791 |
;; |
|
10792 |
||
10793 |
osf3* | osf4* | osf5*) |
|
10794 |
version_type=osf |
|
10795 |
need_lib_prefix=no |
|
10796 |
need_version=no |
|
10797 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10798 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10799 |
shlibpath_var=LD_LIBRARY_PATH |
|
10800 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
10801 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
10802 |
;; |
|
10803 |
||
10804 |
sco3.2v5*) |
|
10805 |
version_type=osf |
|
10806 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10807 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10808 |
shlibpath_var=LD_LIBRARY_PATH |
|
10809 |
;; |
|
10810 |
||
10811 |
solaris*) |
|
10812 |
version_type=linux |
|
10813 |
need_lib_prefix=no |
|
10814 |
need_version=no |
|
10815 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10816 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10817 |
shlibpath_var=LD_LIBRARY_PATH |
|
10818 |
shlibpath_overrides_runpath=yes |
|
10819 |
hardcode_into_libs=yes |
|
10820 |
# ldd complains unless libraries are executable |
|
10821 |
postinstall_cmds='chmod +x $lib' |
|
10822 |
;; |
|
10823 |
||
10824 |
sunos4*) |
|
10825 |
version_type=sunos |
|
10826 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
10827 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
10828 |
shlibpath_var=LD_LIBRARY_PATH |
|
10829 |
shlibpath_overrides_runpath=yes |
|
10830 |
if test "$with_gnu_ld" = yes; then |
|
10831 |
need_lib_prefix=no |
|
10832 |
fi |
|
10833 |
need_version=yes |
|
10834 |
;; |
|
10835 |
||
10836 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
10837 |
version_type=linux |
|
10838 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10839 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10840 |
shlibpath_var=LD_LIBRARY_PATH |
|
10841 |
case $host_vendor in |
|
10842 |
sni) |
|
10843 |
shlibpath_overrides_runpath=no |
|
10844 |
need_lib_prefix=no |
|
10845 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
10846 |
runpath_var=LD_RUN_PATH |
|
10847 |
;; |
|
10848 |
siemens) |
|
10849 |
need_lib_prefix=no |
|
10850 |
;; |
|
10851 |
motorola) |
|
10852 |
need_lib_prefix=no |
|
10853 |
need_version=no |
|
10854 |
shlibpath_overrides_runpath=no |
|
10855 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
10856 |
;; |
|
10857 |
esac |
|
10858 |
;; |
|
10859 |
||
10860 |
sysv4*MP*) |
|
10861 |
if test -d /usr/nec ;then |
|
10862 |
version_type=linux |
|
10863 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
10864 |
soname_spec='$libname${shared_ext}.$major' |
|
10865 |
shlibpath_var=LD_LIBRARY_PATH |
|
10866 |
fi |
|
10867 |
;; |
|
10868 |
||
10869 |
uts4*) |
|
10870 |
version_type=linux |
|
10871 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10872 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10873 |
shlibpath_var=LD_LIBRARY_PATH |
|
10874 |
;; |
|
10875 |
||
10876 |
*) |
|
10877 |
dynamic_linker=no |
|
10878 |
;; |
|
10879 |
esac |
|
10880 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
10881 |
echo "${ECHO_T}$dynamic_linker" >&6 |
|
10882 |
test "$dynamic_linker" = no && can_build_shared=no |
|
10883 |
||
10884 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
10885 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
10886 |
hardcode_action= |
|
10887 |
if test -n "$hardcode_libdir_flag_spec" || \ |
|
10888 |
test -n "$runpath_var " || \ |
|
10889 |
test "X$hardcode_automatic"="Xyes" ; then |
|
10890 |
||
10891 |
# We can hardcode non-existant directories. |
|
10892 |
if test "$hardcode_direct" != no && |
|
10893 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
10894 |
# have to relink, otherwise we might link with an installed library |
|
10895 |
# when we should be linking with a yet-to-be-installed one |
|
10896 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
10897 |
test "$hardcode_minus_L" != no; then |
|
10898 |
# Linking always hardcodes the temporary library directory. |
|
10899 |
hardcode_action=relink |
|
10900 |
else |
|
10901 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
10902 |
hardcode_action=immediate |
|
10903 |
fi |
|
10904 |
else |
|
10905 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
10906 |
# directories. |
|
10907 |
hardcode_action=unsupported |
|
10908 |
fi |
|
10909 |
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
10910 |
echo "${ECHO_T}$hardcode_action" >&6 |
|
10911 |
||
10912 |
if test "$hardcode_action" = relink; then |
|
10913 |
# Fast installation is not supported |
|
10914 |
enable_fast_install=no |
|
10915 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
10916 |
test "$enable_shared" = no; then |
|
10917 |
# Fast installation is not necessary |
|
10918 |
enable_fast_install=needless |
|
10919 |
fi |
|
10920 |
||
10921 |
striplib= |
|
10922 |
old_striplib= |
|
10923 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
10924 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
10925 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
10926 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
10927 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
10928 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
10929 |
echo "${ECHO_T}yes" >&6 |
|
10930 |
else |
|
10931 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
10932 |
case $host_os in |
|
10933 |
darwin*) |
|
10934 |
if test -n "$STRIP" ; then |
|
10935 |
striplib="$STRIP -x" |
|
10936 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
10937 |
echo "${ECHO_T}yes" >&6 |
|
10938 |
else |
|
10939 |
echo "$as_me:$LINENO: result: no" >&5 |
|
10940 |
echo "${ECHO_T}no" >&6 |
|
10941 |
fi |
|
10942 |
;; |
|
10943 |
*) |
|
10944 |
echo "$as_me:$LINENO: result: no" >&5 |
|
10945 |
echo "${ECHO_T}no" >&6 |
|
10946 |
;; |
|
10947 |
esac |
|
10948 |
fi |
|
10949 |
||
10950 |
if test "x$enable_dlopen" != xyes; then |
|
10951 |
enable_dlopen=unknown |
|
10952 |
enable_dlopen_self=unknown |
|
10953 |
enable_dlopen_self_static=unknown |
|
10954 |
else |
|
10955 |
lt_cv_dlopen=no |
|
10956 |
lt_cv_dlopen_libs= |
|
10957 |
||
10958 |
case $host_os in |
|
10959 |
beos*) |
|
10960 |
lt_cv_dlopen="load_add_on" |
|
10961 |
lt_cv_dlopen_libs= |
|
10962 |
lt_cv_dlopen_self=yes |
|
10963 |
;; |
|
10964 |
||
10965 |
mingw* | pw32*) |
|
10966 |
lt_cv_dlopen="LoadLibrary" |
|
10967 |
lt_cv_dlopen_libs= |
|
10968 |
;; |
|
10969 |
||
10970 |
cygwin*) |
|
10971 |
lt_cv_dlopen="dlopen" |
|
10972 |
lt_cv_dlopen_libs= |
|
10973 |
;; |
|
10974 |
||
10975 |
darwin*) |
|
10976 |
# if libdl is installed we need to link against it |
|
10977 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
10978 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
10979 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
10980 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10981 |
else |
|
10982 |
ac_check_lib_save_LIBS=$LIBS |
|
10983 |
LIBS="-ldl $LIBS" |
|
10984 |
cat >conftest.$ac_ext <<_ACEOF |
|
10985 |
/* confdefs.h. */ |
|
10986 |
_ACEOF |
|
10987 |
cat confdefs.h >>conftest.$ac_ext |
|
10988 |
cat >>conftest.$ac_ext <<_ACEOF |
|
10989 |
/* end confdefs.h. */ |
|
10990 |
||
10991 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
10992 |
#ifdef __cplusplus |
|
10993 |
extern "C" |
|
10994 |
#endif |
|
10995 |
/* We use char because int might match the return type of a gcc2 |
|
10996 |
builtin and then its argument prototype would still apply. */ |
|
10997 |
char dlopen (); |
|
10998 |
int |
|
10999 |
main () |
|
11000 |
{ |
|
11001 |
dlopen (); |
|
11002 |
; |
|
11003 |
return 0; |
|
11004 |
} |
|
11005 |
_ACEOF |
|
11006 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
11007 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11008 |
(eval $ac_link) 2>conftest.er1 |
|
11009 |
ac_status=$? |
|
11010 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11011 |
rm -f conftest.er1 |
|
11012 |
cat conftest.err >&5 |
|
11013 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11014 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11015 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11016 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11017 |
(eval $ac_try) 2>&5 |
|
11018 |
ac_status=$? |
|
11019 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11020 |
(exit $ac_status); }; } && |
|
11021 |
{ ac_try='test -s conftest$ac_exeext' |
|
11022 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
11023 |
(eval $ac_try) 2>&5 |
|
11024 |
ac_status=$? |
|
11025 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11026 |
(exit $ac_status); }; }; then |
|
11027 |
ac_cv_lib_dl_dlopen=yes |
|
11028 |
else |
|
11029 |
echo "$as_me: failed program was:" >&5 |
|
11030 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11031 |
||
11032 |
ac_cv_lib_dl_dlopen=no |
|
11033 |
fi |
|
11034 |
rm -f conftest.err conftest.$ac_objext \ |
|
11035 |
conftest$ac_exeext conftest.$ac_ext |
|
11036 |
LIBS=$ac_check_lib_save_LIBS |
|
11037 |
fi |
|
11038 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
11039 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
11040 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
11041 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
11042 |
else |
|
11043 |
||
11044 |
lt_cv_dlopen="dyld" |
|
11045 |
lt_cv_dlopen_libs= |
|
11046 |
lt_cv_dlopen_self=yes |
|
11047 |
||
11048 |
fi |
|
11049 |
||
11050 |
;; |
|
11051 |
||
11052 |
*) |
|
11053 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
11054 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
11055 |
if test "${ac_cv_func_shl_load+set}" = set; then |
|
11056 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11057 |
else |
|
11058 |
cat >conftest.$ac_ext <<_ACEOF |
|
11059 |
/* confdefs.h. */ |
|
11060 |
_ACEOF |
|
11061 |
cat confdefs.h >>conftest.$ac_ext |
|
11062 |
cat >>conftest.$ac_ext <<_ACEOF |
|
11063 |
/* end confdefs.h. */ |
|
11064 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
11065 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
11066 |
#define shl_load innocuous_shl_load |
|
11067 |
||
11068 |
/* System header to define __stub macros and hopefully few prototypes, |
|
11069 |
which can conflict with char shl_load (); below. |
|
11070 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
11071 |
<limits.h> exists even on freestanding compilers. */ |
|
11072 |
||
11073 |
#ifdef __STDC__ |
|
11074 |
# include <limits.h> |
|
11075 |
#else |
|
11076 |
# include <assert.h> |
|
11077 |
#endif |
|
11078 |
||
11079 |
#undef shl_load |
|
11080 |
||
11081 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
11082 |
#ifdef __cplusplus |
|
11083 |
extern "C" |
|
11084 |
{ |
|
11085 |
#endif |
|
11086 |
/* We use char because int might match the return type of a gcc2 |
|
11087 |
builtin and then its argument prototype would still apply. */ |
|
11088 |
char shl_load (); |
|
11089 |
/* The GNU C library defines this for functions which it implements |
|
11090 |
to always fail with ENOSYS. Some functions are actually named |
|
11091 |
something starting with __ and the normal name is an alias. */ |
|
11092 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
11093 |
choke me |
|
11094 |
#else |
|
11095 |
char (*f) () = shl_load; |
|
11096 |
#endif |
|
11097 |
#ifdef __cplusplus |
|
11098 |
} |
|
11099 |
#endif |
|
11100 |
||
11101 |
int |
|
11102 |
main () |
|
11103 |
{ |
|
11104 |
return f != shl_load; |
|
11105 |
; |
|
11106 |
return 0; |
|
11107 |
} |
|
11108 |
_ACEOF |
|
11109 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
11110 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11111 |
(eval $ac_link) 2>conftest.er1 |
|
11112 |
ac_status=$? |
|
11113 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11114 |
rm -f conftest.er1 |
|
11115 |
cat conftest.err >&5 |
|
11116 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11117 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11118 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11119 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11120 |
(eval $ac_try) 2>&5 |
|
11121 |
ac_status=$? |
|
11122 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11123 |
(exit $ac_status); }; } && |
|
11124 |
{ ac_try='test -s conftest$ac_exeext' |
|
11125 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
11126 |
(eval $ac_try) 2>&5 |
|
11127 |
ac_status=$? |
|
11128 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11129 |
(exit $ac_status); }; }; then |
|
11130 |
ac_cv_func_shl_load=yes |
|
11131 |
else |
|
11132 |
echo "$as_me: failed program was:" >&5 |
|
11133 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11134 |
||
11135 |
ac_cv_func_shl_load=no |
|
11136 |
fi |
|
11137 |
rm -f conftest.err conftest.$ac_objext \ |
|
11138 |
conftest$ac_exeext conftest.$ac_ext |
|
11139 |
fi |
|
11140 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
11141 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
11142 |
if test $ac_cv_func_shl_load = yes; then |
|
11143 |
lt_cv_dlopen="shl_load" |
|
11144 |
else |
|
11145 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
11146 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
11147 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
11148 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11149 |
else |
|
11150 |
ac_check_lib_save_LIBS=$LIBS |
|
11151 |
LIBS="-ldld $LIBS" |
|
11152 |
cat >conftest.$ac_ext <<_ACEOF |
|
11153 |
/* confdefs.h. */ |
|
11154 |
_ACEOF |
|
11155 |
cat confdefs.h >>conftest.$ac_ext |
|
11156 |
cat >>conftest.$ac_ext <<_ACEOF |
|
11157 |
/* end confdefs.h. */ |
|
11158 |
||
11159 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
11160 |
#ifdef __cplusplus |
|
11161 |
extern "C" |
|
11162 |
#endif |
|
11163 |
/* We use char because int might match the return type of a gcc2 |
|
11164 |
builtin and then its argument prototype would still apply. */ |
|
11165 |
char shl_load (); |
|
11166 |
int |
|
11167 |
main () |
|
11168 |
{ |
|
11169 |
shl_load (); |
|
11170 |
; |
|
11171 |
return 0; |
|
11172 |
} |
|
11173 |
_ACEOF |
|
11174 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
11175 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11176 |
(eval $ac_link) 2>conftest.er1 |
|
11177 |
ac_status=$? |
|
11178 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11179 |
rm -f conftest.er1 |
|
11180 |
cat conftest.err >&5 |
|
11181 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11182 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11183 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11184 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11185 |
(eval $ac_try) 2>&5 |
|
11186 |
ac_status=$? |
|
11187 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11188 |
(exit $ac_status); }; } && |
|
11189 |
{ ac_try='test -s conftest$ac_exeext' |
|
11190 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
11191 |
(eval $ac_try) 2>&5 |
|
11192 |
ac_status=$? |
|
11193 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11194 |
(exit $ac_status); }; }; then |
|
11195 |
ac_cv_lib_dld_shl_load=yes |
|
11196 |
else |
|
11197 |
echo "$as_me: failed program was:" >&5 |
|
11198 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11199 |
||
11200 |
ac_cv_lib_dld_shl_load=no |
|
11201 |
fi |
|
11202 |
rm -f conftest.err conftest.$ac_objext \ |
|
11203 |
conftest$ac_exeext conftest.$ac_ext |
|
11204 |
LIBS=$ac_check_lib_save_LIBS |
|
11205 |
fi |
|
11206 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
11207 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
11208 |
if test $ac_cv_lib_dld_shl_load = yes; then |
|
11209 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
11210 |
else |
|
11211 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
11212 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
11213 |
if test "${ac_cv_func_dlopen+set}" = set; then |
|
11214 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11215 |
else |
|
11216 |
cat >conftest.$ac_ext <<_ACEOF |
|
11217 |
/* confdefs.h. */ |
|
11218 |
_ACEOF |
|
11219 |
cat confdefs.h >>conftest.$ac_ext |
|
11220 |
cat >>conftest.$ac_ext <<_ACEOF |
|
11221 |
/* end confdefs.h. */ |
|
11222 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
11223 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
11224 |
#define dlopen innocuous_dlopen |
|
11225 |
||
11226 |
/* System header to define __stub macros and hopefully few prototypes, |
|
11227 |
which can conflict with char dlopen (); below. |
|
11228 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
11229 |
<limits.h> exists even on freestanding compilers. */ |
|
11230 |
||
11231 |
#ifdef __STDC__ |
|
11232 |
# include <limits.h> |
|
11233 |
#else |
|
11234 |
# include <assert.h> |
|
11235 |
#endif |
|
11236 |
||
11237 |
#undef dlopen |
|
11238 |
||
11239 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
11240 |
#ifdef __cplusplus |
|
11241 |
extern "C" |
|
11242 |
{ |
|
11243 |
#endif |
|
11244 |
/* We use char because int might match the return type of a gcc2 |
|
11245 |
builtin and then its argument prototype would still apply. */ |
|
11246 |
char dlopen (); |
|
11247 |
/* The GNU C library defines this for functions which it implements |
|
11248 |
to always fail with ENOSYS. Some functions are actually named |
|
11249 |
something starting with __ and the normal name is an alias. */ |
|
11250 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
11251 |
choke me |
|
11252 |
#else |
|
11253 |
char (*f) () = dlopen; |
|
11254 |
#endif |
|
11255 |
#ifdef __cplusplus |
|
11256 |
} |
|
11257 |
#endif |
|
11258 |
||
11259 |
int |
|
11260 |
main () |
|
11261 |
{ |
|
11262 |
return f != dlopen; |
|
11263 |
; |
|
11264 |
return 0; |
|
11265 |
} |
|
11266 |
_ACEOF |
|
11267 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
11268 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11269 |
(eval $ac_link) 2>conftest.er1 |
|
11270 |
ac_status=$? |
|
11271 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11272 |
rm -f conftest.er1 |
|
11273 |
cat conftest.err >&5 |
|
11274 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11275 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11276 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11277 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11278 |
(eval $ac_try) 2>&5 |
|
11279 |
ac_status=$? |
|
11280 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11281 |
(exit $ac_status); }; } && |
|
11282 |
{ ac_try='test -s conftest$ac_exeext' |
|
11283 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
11284 |
(eval $ac_try) 2>&5 |
|
11285 |
ac_status=$? |
|
11286 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11287 |
(exit $ac_status); }; }; then |
|
11288 |
ac_cv_func_dlopen=yes |
|
11289 |
else |
|
11290 |
echo "$as_me: failed program was:" >&5 |
|
11291 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11292 |
||
11293 |
ac_cv_func_dlopen=no |
|
11294 |
fi |
|
11295 |
rm -f conftest.err conftest.$ac_objext \ |
|
11296 |
conftest$ac_exeext conftest.$ac_ext |
|
11297 |
fi |
|
11298 |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
11299 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
11300 |
if test $ac_cv_func_dlopen = yes; then |
|
11301 |
lt_cv_dlopen="dlopen" |
|
11302 |
else |
|
11303 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
11304 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
11305 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
11306 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11307 |
else |
|
11308 |
ac_check_lib_save_LIBS=$LIBS |
|
11309 |
LIBS="-ldl $LIBS" |
|
11310 |
cat >conftest.$ac_ext <<_ACEOF |
|
11311 |
/* confdefs.h. */ |
|
11312 |
_ACEOF |
|
11313 |
cat confdefs.h >>conftest.$ac_ext |
|
11314 |
cat >>conftest.$ac_ext <<_ACEOF |
|
11315 |
/* end confdefs.h. */ |
|
11316 |
||
11317 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
11318 |
#ifdef __cplusplus |
|
11319 |
extern "C" |
|
11320 |
#endif |
|
11321 |
/* We use char because int might match the return type of a gcc2 |
|
11322 |
builtin and then its argument prototype would still apply. */ |
|
11323 |
char dlopen (); |
|
11324 |
int |
|
11325 |
main () |
|
11326 |
{ |
|
11327 |
dlopen (); |
|
11328 |
; |
|
11329 |
return 0; |
|
11330 |
} |
|
11331 |
_ACEOF |
|
11332 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
11333 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11334 |
(eval $ac_link) 2>conftest.er1 |
|
11335 |
ac_status=$? |
|
11336 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11337 |
rm -f conftest.er1 |
|
11338 |
cat conftest.err >&5 |
|
11339 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11340 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11341 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11342 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11343 |
(eval $ac_try) 2>&5 |
|
11344 |
ac_status=$? |
|
11345 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11346 |
(exit $ac_status); }; } && |
|
11347 |
{ ac_try='test -s conftest$ac_exeext' |
|
11348 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
11349 |
(eval $ac_try) 2>&5 |
|
11350 |
ac_status=$? |
|
11351 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11352 |
(exit $ac_status); }; }; then |
|
11353 |
ac_cv_lib_dl_dlopen=yes |
|
11354 |
else |
|
11355 |
echo "$as_me: failed program was:" >&5 |
|
11356 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11357 |
||
11358 |
ac_cv_lib_dl_dlopen=no |
|
11359 |
fi |
|
11360 |
rm -f conftest.err conftest.$ac_objext \ |
|
11361 |
conftest$ac_exeext conftest.$ac_ext |
|
11362 |
LIBS=$ac_check_lib_save_LIBS |
|
11363 |
fi |
|
11364 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
11365 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
11366 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
11367 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
11368 |
else |
|
11369 |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
11370 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
11371 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
11372 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11373 |
else |
|
11374 |
ac_check_lib_save_LIBS=$LIBS |
|
11375 |
LIBS="-lsvld $LIBS" |
|
11376 |
cat >conftest.$ac_ext <<_ACEOF |
|
11377 |
/* confdefs.h. */ |
|
11378 |
_ACEOF |
|
11379 |
cat confdefs.h >>conftest.$ac_ext |
|
11380 |
cat >>conftest.$ac_ext <<_ACEOF |
|
11381 |
/* end confdefs.h. */ |
|
11382 |
||
11383 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
11384 |
#ifdef __cplusplus |
|
11385 |
extern "C" |
|
11386 |
#endif |
|
11387 |
/* We use char because int might match the return type of a gcc2 |
|
11388 |
builtin and then its argument prototype would still apply. */ |
|
11389 |
char dlopen (); |
|
11390 |
int |
|
11391 |
main () |
|
11392 |
{ |
|
11393 |
dlopen (); |
|
11394 |
; |
|
11395 |
return 0; |
|
11396 |
} |
|
11397 |
_ACEOF |
|
11398 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
11399 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11400 |
(eval $ac_link) 2>conftest.er1 |
|
11401 |
ac_status=$? |
|
11402 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11403 |
rm -f conftest.er1 |
|
11404 |
cat conftest.err >&5 |
|
11405 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11406 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11407 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11408 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11409 |
(eval $ac_try) 2>&5 |
|
11410 |
ac_status=$? |
|
11411 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11412 |
(exit $ac_status); }; } && |
|
11413 |
{ ac_try='test -s conftest$ac_exeext' |
|
11414 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
11415 |
(eval $ac_try) 2>&5 |
|
11416 |
ac_status=$? |
|
11417 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11418 |
(exit $ac_status); }; }; then |
|
11419 |
ac_cv_lib_svld_dlopen=yes |
|
11420 |
else |
|
11421 |
echo "$as_me: failed program was:" >&5 |
|
11422 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11423 |
||
11424 |
ac_cv_lib_svld_dlopen=no |
|
11425 |
fi |
|
11426 |
rm -f conftest.err conftest.$ac_objext \ |
|
11427 |
conftest$ac_exeext conftest.$ac_ext |
|
11428 |
LIBS=$ac_check_lib_save_LIBS |
|
11429 |
fi |
|
11430 |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
11431 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
11432 |
if test $ac_cv_lib_svld_dlopen = yes; then |
|
11433 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
11434 |
else |
|
11435 |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
11436 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
11437 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
11438 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11439 |
else |
|
11440 |
ac_check_lib_save_LIBS=$LIBS |
|
11441 |
LIBS="-ldld $LIBS" |
|
11442 |
cat >conftest.$ac_ext <<_ACEOF |
|
11443 |
/* confdefs.h. */ |
|
11444 |
_ACEOF |
|
11445 |
cat confdefs.h >>conftest.$ac_ext |
|
11446 |
cat >>conftest.$ac_ext <<_ACEOF |
|
11447 |
/* end confdefs.h. */ |
|
11448 |
||
11449 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
11450 |
#ifdef __cplusplus |
|
11451 |
extern "C" |
|
11452 |
#endif |
|
11453 |
/* We use char because int might match the return type of a gcc2 |
|
11454 |
builtin and then its argument prototype would still apply. */ |
|
11455 |
char dld_link (); |
|
11456 |
int |
|
11457 |
main () |
|
11458 |
{ |
|
11459 |
dld_link (); |
|
11460 |
; |
|
11461 |
return 0; |
|
11462 |
} |
|
11463 |
_ACEOF |
|
11464 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
11465 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11466 |
(eval $ac_link) 2>conftest.er1 |
|
11467 |
ac_status=$? |
|
11468 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
11469 |
rm -f conftest.er1 |
|
11470 |
cat conftest.err >&5 |
|
11471 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11472 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11473 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11474 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11475 |
(eval $ac_try) 2>&5 |
|
11476 |
ac_status=$? |
|
11477 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11478 |
(exit $ac_status); }; } && |
|
11479 |
{ ac_try='test -s conftest$ac_exeext' |
|
11480 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
11481 |
(eval $ac_try) 2>&5 |
|
11482 |
ac_status=$? |
|
11483 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11484 |
(exit $ac_status); }; }; then |
|
11485 |
ac_cv_lib_dld_dld_link=yes |
|
11486 |
else |
|
11487 |
echo "$as_me: failed program was:" >&5 |
|
11488 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
11489 |
||
11490 |
ac_cv_lib_dld_dld_link=no |
|
11491 |
fi |
|
11492 |
rm -f conftest.err conftest.$ac_objext \ |
|
11493 |
conftest$ac_exeext conftest.$ac_ext |
|
11494 |
LIBS=$ac_check_lib_save_LIBS |
|
11495 |
fi |
|
11496 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
11497 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
11498 |
if test $ac_cv_lib_dld_dld_link = yes; then |
|
11499 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
11500 |
fi |
|
11501 |
||
11502 |
||
11503 |
fi |
|
11504 |
||
11505 |
||
11506 |
fi |
|
11507 |
||
11508 |
||
11509 |
fi |
|
11510 |
||
11511 |
||
11512 |
fi |
|
11513 |
||
11514 |
||
11515 |
fi |
|
11516 |
||
11517 |
;; |
|
11518 |
esac |
|
11519 |
||
11520 |
if test "x$lt_cv_dlopen" != xno; then |
|
11521 |
enable_dlopen=yes |
|
11522 |
else |
|
11523 |
enable_dlopen=no |
|
11524 |
fi |
|
11525 |
||
11526 |
case $lt_cv_dlopen in |
|
11527 |
dlopen) |
|
11528 |
save_CPPFLAGS="$CPPFLAGS" |
|
11529 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
11530 |
||
11531 |
save_LDFLAGS="$LDFLAGS" |
|
11532 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
11533 |
||
11534 |
save_LIBS="$LIBS" |
|
11535 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
11536 |
||
11537 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
11538 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
11539 |
if test "${lt_cv_dlopen_self+set}" = set; then |
|
11540 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11541 |
else |
|
11542 |
if test "$cross_compiling" = yes; then : |
|
11543 |
lt_cv_dlopen_self=cross |
|
11544 |
else |
|
11545 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
11546 |
lt_status=$lt_dlunknown |
|
11547 |
cat > conftest.$ac_ext <<EOF |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11548 |
#line 11548 "configure" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11549 |
#include "confdefs.h" |
11550 |
||
11551 |
#if HAVE_DLFCN_H |
|
11552 |
#include <dlfcn.h> |
|
11553 |
#endif |
|
11554 |
||
11555 |
#include <stdio.h> |
|
11556 |
||
11557 |
#ifdef RTLD_GLOBAL |
|
11558 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
11559 |
#else |
|
11560 |
# ifdef DL_GLOBAL |
|
11561 |
# define LT_DLGLOBAL DL_GLOBAL |
|
11562 |
# else |
|
11563 |
# define LT_DLGLOBAL 0 |
|
11564 |
# endif |
|
11565 |
#endif |
|
11566 |
||
11567 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
11568 |
find out it does not work in some platform. */ |
|
11569 |
#ifndef LT_DLLAZY_OR_NOW |
|
11570 |
# ifdef RTLD_LAZY |
|
11571 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
11572 |
# else |
|
11573 |
# ifdef DL_LAZY |
|
11574 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
11575 |
# else |
|
11576 |
# ifdef RTLD_NOW |
|
11577 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
11578 |
# else |
|
11579 |
# ifdef DL_NOW |
|
11580 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
11581 |
# else |
|
11582 |
# define LT_DLLAZY_OR_NOW 0 |
|
11583 |
# endif |
|
11584 |
# endif |
|
11585 |
# endif |
|
11586 |
# endif |
|
11587 |
#endif |
|
11588 |
||
11589 |
#ifdef __cplusplus |
|
11590 |
extern "C" void exit (int); |
|
11591 |
#endif |
|
11592 |
||
11593 |
void fnord() { int i=42;} |
|
11594 |
int main () |
|
11595 |
{ |
|
11596 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
11597 |
int status = $lt_dlunknown; |
|
11598 |
||
11599 |
if (self) |
|
11600 |
{ |
|
11601 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
11602 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
11603 |
/* dlclose (self); */ |
|
11604 |
} |
|
11605 |
||
11606 |
exit (status); |
|
11607 |
} |
|
11608 |
EOF |
|
11609 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11610 |
(eval $ac_link) 2>&5 |
|
11611 |
ac_status=$? |
|
11612 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11613 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
11614 |
(./conftest; exit; ) 2>/dev/null |
|
11615 |
lt_status=$? |
|
11616 |
case x$lt_status in |
|
11617 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
11618 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
11619 |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
11620 |
esac |
|
11621 |
else : |
|
11622 |
# compilation failed |
|
11623 |
lt_cv_dlopen_self=no |
|
11624 |
fi |
|
11625 |
fi |
|
11626 |
rm -fr conftest* |
|
11627 |
||
11628 |
||
11629 |
fi |
|
11630 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
11631 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
11632 |
||
11633 |
if test "x$lt_cv_dlopen_self" = xyes; then |
|
11634 |
LDFLAGS="$LDFLAGS $link_static_flag" |
|
11635 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
11636 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
11637 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
11638 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11639 |
else |
|
11640 |
if test "$cross_compiling" = yes; then : |
|
11641 |
lt_cv_dlopen_self_static=cross |
|
11642 |
else |
|
11643 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
11644 |
lt_status=$lt_dlunknown |
|
11645 |
cat > conftest.$ac_ext <<EOF |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11646 |
#line 11646 "configure" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11647 |
#include "confdefs.h" |
11648 |
||
11649 |
#if HAVE_DLFCN_H |
|
11650 |
#include <dlfcn.h> |
|
11651 |
#endif |
|
11652 |
||
11653 |
#include <stdio.h> |
|
11654 |
||
11655 |
#ifdef RTLD_GLOBAL |
|
11656 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
11657 |
#else |
|
11658 |
# ifdef DL_GLOBAL |
|
11659 |
# define LT_DLGLOBAL DL_GLOBAL |
|
11660 |
# else |
|
11661 |
# define LT_DLGLOBAL 0 |
|
11662 |
# endif |
|
11663 |
#endif |
|
11664 |
||
11665 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
11666 |
find out it does not work in some platform. */ |
|
11667 |
#ifndef LT_DLLAZY_OR_NOW |
|
11668 |
# ifdef RTLD_LAZY |
|
11669 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
11670 |
# else |
|
11671 |
# ifdef DL_LAZY |
|
11672 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
11673 |
# else |
|
11674 |
# ifdef RTLD_NOW |
|
11675 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
11676 |
# else |
|
11677 |
# ifdef DL_NOW |
|
11678 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
11679 |
# else |
|
11680 |
# define LT_DLLAZY_OR_NOW 0 |
|
11681 |
# endif |
|
11682 |
# endif |
|
11683 |
# endif |
|
11684 |
# endif |
|
11685 |
#endif |
|
11686 |
||
11687 |
#ifdef __cplusplus |
|
11688 |
extern "C" void exit (int); |
|
11689 |
#endif |
|
11690 |
||
11691 |
void fnord() { int i=42;} |
|
11692 |
int main () |
|
11693 |
{ |
|
11694 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
11695 |
int status = $lt_dlunknown; |
|
11696 |
||
11697 |
if (self) |
|
11698 |
{ |
|
11699 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
11700 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
11701 |
/* dlclose (self); */ |
|
11702 |
} |
|
11703 |
||
11704 |
exit (status); |
|
11705 |
} |
|
11706 |
EOF |
|
11707 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11708 |
(eval $ac_link) 2>&5 |
|
11709 |
ac_status=$? |
|
11710 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11711 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
11712 |
(./conftest; exit; ) 2>/dev/null |
|
11713 |
lt_status=$? |
|
11714 |
case x$lt_status in |
|
11715 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
11716 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
11717 |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
11718 |
esac |
|
11719 |
else : |
|
11720 |
# compilation failed |
|
11721 |
lt_cv_dlopen_self_static=no |
|
11722 |
fi |
|
11723 |
fi |
|
11724 |
rm -fr conftest* |
|
11725 |
||
11726 |
||
11727 |
fi |
|
11728 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
11729 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
11730 |
fi |
|
11731 |
||
11732 |
CPPFLAGS="$save_CPPFLAGS" |
|
11733 |
LDFLAGS="$save_LDFLAGS" |
|
11734 |
LIBS="$save_LIBS" |
|
11735 |
;; |
|
11736 |
esac |
|
11737 |
||
11738 |
case $lt_cv_dlopen_self in |
|
11739 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
11740 |
*) enable_dlopen_self=unknown ;; |
|
11741 |
esac |
|
11742 |
||
11743 |
case $lt_cv_dlopen_self_static in |
|
11744 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
11745 |
*) enable_dlopen_self_static=unknown ;; |
|
11746 |
esac |
|
11747 |
fi |
|
11748 |
||
11749 |
||
11750 |
# Report which librarie types wil actually be built |
|
11751 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
11752 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
11753 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
11754 |
echo "${ECHO_T}$can_build_shared" >&6 |
|
11755 |
||
11756 |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
11757 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
11758 |
test "$can_build_shared" = "no" && enable_shared=no |
|
11759 |
||
11760 |
# On AIX, shared libraries and static libraries use the same namespace, and |
|
11761 |
# are all built from PIC. |
|
11762 |
case "$host_os" in |
|
11763 |
aix3*) |
|
11764 |
test "$enable_shared" = yes && enable_static=no |
|
11765 |
if test -n "$RANLIB"; then |
|
11766 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
11767 |
postinstall_cmds='$RANLIB $lib' |
|
11768 |
fi |
|
11769 |
;; |
|
11770 |
||
11771 |
aix4*) |
|
11772 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
11773 |
test "$enable_shared" = yes && enable_static=no |
|
11774 |
fi |
|
11775 |
;; |
|
11776 |
darwin* | rhapsody*) |
|
11777 |
if test "$GCC" = yes; then |
|
11778 |
archive_cmds_need_lc=no |
|
11779 |
case "$host_os" in |
|
11780 |
rhapsody* | darwin1.[012]) |
|
11781 |
allow_undefined_flag='-Wl,-undefined -Wl,suppress' |
|
11782 |
;; |
|
11783 |
*) # Darwin 1.3 on |
|
11784 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
11785 |
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
|
11786 |
else |
|
11787 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
11788 |
10.012) |
|
11789 |
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
|
11790 |
;; |
|
11791 |
10.*) |
|
11792 |
allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' |
|
11793 |
;; |
|
11794 |
esac |
|
11795 |
fi |
|
11796 |
;; |
|
11797 |
esac |
|
11798 |
output_verbose_link_cmd='echo' |
|
11799 |
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
|
11800 |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
|
11801 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
11802 |
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
11803 |
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
11804 |
hardcode_direct=no |
|
11805 |
hardcode_automatic=yes |
|
11806 |
hardcode_shlibpath_var=unsupported |
|
11807 |
whole_archive_flag_spec='-all_load $convenience' |
|
11808 |
link_all_deplibs=yes |
|
11809 |
else |
|
11810 |
ld_shlibs=no |
|
11811 |
fi |
|
11812 |
;; |
|
11813 |
esac |
|
11814 |
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
11815 |
echo "${ECHO_T}$enable_shared" >&6 |
|
11816 |
||
11817 |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
11818 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
11819 |
# Make sure either enable_shared or enable_static is yes. |
|
11820 |
test "$enable_shared" = yes || enable_static=yes |
|
11821 |
echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
11822 |
echo "${ECHO_T}$enable_static" >&6 |
|
11823 |
||
11824 |
# The else clause should only fire when bootstrapping the |
|
11825 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
11826 |
# with your package, and you will get complaints that there are |
|
11827 |
# no rules to generate ltmain.sh. |
|
11828 |
if test -f "$ltmain"; then |
|
11829 |
# See if we are running on zsh, and set the options which allow our commands through |
|
11830 |
# without removal of \ escapes. |
|
11831 |
if test -n "${ZSH_VERSION+set}" ; then |
|
11832 |
setopt NO_GLOB_SUBST |
|
11833 |
fi |
|
11834 |
# Now quote all the things that may contain metacharacters while being |
|
11835 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
11836 |
# variables and quote the copies for generation of the libtool script. |
|
11837 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
|
11838 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
11839 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
11840 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
11841 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
11842 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
11843 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
11844 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
11845 |
compiler \ |
|
11846 |
CC \ |
|
11847 |
LD \ |
|
11848 |
lt_prog_compiler_wl \ |
|
11849 |
lt_prog_compiler_pic \ |
|
11850 |
lt_prog_compiler_static \ |
|
11851 |
lt_prog_compiler_no_builtin_flag \ |
|
11852 |
export_dynamic_flag_spec \ |
|
11853 |
thread_safe_flag_spec \ |
|
11854 |
whole_archive_flag_spec \ |
|
11855 |
enable_shared_with_static_runtimes \ |
|
11856 |
old_archive_cmds \ |
|
11857 |
old_archive_from_new_cmds \ |
|
11858 |
predep_objects \ |
|
11859 |
postdep_objects \ |
|
11860 |
predeps \ |
|
11861 |
postdeps \ |
|
11862 |
compiler_lib_search_path \ |
|
11863 |
archive_cmds \ |
|
11864 |
archive_expsym_cmds \ |
|
11865 |
postinstall_cmds \ |
|
11866 |
postuninstall_cmds \ |
|
11867 |
old_archive_from_expsyms_cmds \ |
|
11868 |
allow_undefined_flag \ |
|
11869 |
no_undefined_flag \ |
|
11870 |
export_symbols_cmds \ |
|
11871 |
hardcode_libdir_flag_spec \ |
|
11872 |
hardcode_libdir_flag_spec_ld \ |
|
11873 |
hardcode_libdir_separator \ |
|
11874 |
hardcode_automatic \ |
|
11875 |
module_cmds \ |
|
11876 |
module_expsym_cmds \ |
|
11877 |
lt_cv_prog_compiler_c_o \ |
|
11878 |
exclude_expsyms \ |
|
11879 |
include_expsyms; do |
|
11880 |
||
11881 |
case $var in |
|
11882 |
old_archive_cmds | \ |
|
11883 |
old_archive_from_new_cmds | \ |
|
11884 |
archive_cmds | \ |
|
11885 |
archive_expsym_cmds | \ |
|
11886 |
module_cmds | \ |
|
11887 |
module_expsym_cmds | \ |
|
11888 |
old_archive_from_expsyms_cmds | \ |
|
11889 |
export_symbols_cmds | \ |
|
11890 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
11891 |
postinstall_cmds | postuninstall_cmds | \ |
|
11892 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
11893 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
11894 |
# Double-quote double-evaled strings. |
|
11895 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
11896 |
;; |
|
11897 |
*) |
|
11898 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
11899 |
;; |
|
11900 |
esac |
|
11901 |
done |
|
11902 |
||
11903 |
case $lt_echo in |
|
11904 |
*'\$0 --fallback-echo"') |
|
11905 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
11906 |
;; |
|
11907 |
esac |
|
11908 |
||
11909 |
cfgfile="${ofile}T" |
|
11910 |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
|
11911 |
$rm -f "$cfgfile" |
|
11912 |
{ echo "$as_me:$LINENO: creating $ofile" >&5 |
|
11913 |
echo "$as_me: creating $ofile" >&6;} |
|
11914 |
||
11915 |
cat <<__EOF__ >> "$cfgfile" |
|
11916 |
#! $SHELL |
|
11917 |
||
11918 |
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
11919 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
11920 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
11921 |
# |
|
11922 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
|
11923 |
# Free Software Foundation, Inc. |
|
11924 |
# |
|
11925 |
# This file is part of GNU Libtool: |
|
11926 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
11927 |
# |
|
11928 |
# This program is free software; you can redistribute it and/or modify |
|
11929 |
# it under the terms of the GNU General Public License as published by |
|
11930 |
# the Free Software Foundation; either version 2 of the License, or |
|
11931 |
# (at your option) any later version. |
|
11932 |
# |
|
11933 |
# This program is distributed in the hope that it will be useful, but |
|
11934 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11935 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
11936 |
# General Public License for more details. |
|
11937 |
# |
|
11938 |
# You should have received a copy of the GNU General Public License |
|
11939 |
# along with this program; if not, write to the Free Software |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
11940 |
# Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. |
1
by Achim Bohnet
Import upstream version 0.1.1 |
11941 |
# |
11942 |
# As a special exception to the GNU General Public License, if you |
|
11943 |
# distribute this file as part of a program that contains a |
|
11944 |
# configuration script generated by Autoconf, you may include it under |
|
11945 |
# the same distribution terms that you use for the rest of that program. |
|
11946 |
||
11947 |
# A sed program that does not truncate output. |
|
11948 |
SED=$lt_SED |
|
11949 |
||
11950 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
11951 |
Xsed="$SED -e s/^X//" |
|
11952 |
||
11953 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
11954 |
# if CDPATH is set. |
|
11955 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
11956 |
||
11957 |
# The names of the tagged configurations supported by this script. |
|
11958 |
available_tags= |
|
11959 |
||
11960 |
# ### BEGIN LIBTOOL CONFIG |
|
11961 |
||
11962 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
11963 |
||
11964 |
# Shell to use when invoking shell scripts. |
|
11965 |
SHELL=$lt_SHELL |
|
11966 |
||
11967 |
# Whether or not to build shared libraries. |
|
11968 |
build_libtool_libs=$enable_shared |
|
11969 |
||
11970 |
# Whether or not to build static libraries. |
|
11971 |
build_old_libs=$enable_static |
|
11972 |
||
11973 |
# Whether or not to add -lc for building shared libraries. |
|
11974 |
build_libtool_need_lc=$archive_cmds_need_lc |
|
11975 |
||
11976 |
# Whether or not to disallow shared libs when runtime libs are static |
|
11977 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
11978 |
||
11979 |
# Whether or not to optimize for fast installation. |
|
11980 |
fast_install=$enable_fast_install |
|
11981 |
||
11982 |
# The host system. |
|
11983 |
host_alias=$host_alias |
|
11984 |
host=$host |
|
11985 |
||
11986 |
# An echo program that does not interpret backslashes. |
|
11987 |
echo=$lt_echo |
|
11988 |
||
11989 |
# The archiver. |
|
11990 |
AR=$lt_AR |
|
11991 |
AR_FLAGS=$lt_AR_FLAGS |
|
11992 |
||
11993 |
# A C compiler. |
|
11994 |
LTCC=$lt_LTCC |
|
11995 |
||
11996 |
# A language-specific compiler. |
|
11997 |
CC=$lt_compiler |
|
11998 |
||
11999 |
# Is the compiler the GNU C compiler? |
|
12000 |
with_gcc=$GCC |
|
12001 |
||
12002 |
# An ERE matcher. |
|
12003 |
EGREP=$lt_EGREP |
|
12004 |
||
12005 |
# The linker used to build libraries. |
|
12006 |
LD=$lt_LD |
|
12007 |
||
12008 |
# Whether we need hard or soft links. |
|
12009 |
LN_S=$lt_LN_S |
|
12010 |
||
12011 |
# A BSD-compatible nm program. |
|
12012 |
NM=$lt_NM |
|
12013 |
||
12014 |
# A symbol stripping program |
|
12015 |
STRIP=$STRIP |
|
12016 |
||
12017 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
12018 |
MAGIC_CMD=$MAGIC_CMD |
|
12019 |
||
12020 |
# Used on cygwin: DLL creation program. |
|
12021 |
DLLTOOL="$DLLTOOL" |
|
12022 |
||
12023 |
# Used on cygwin: object dumper. |
|
12024 |
OBJDUMP="$OBJDUMP" |
|
12025 |
||
12026 |
# Used on cygwin: assembler. |
|
12027 |
AS="$AS" |
|
12028 |
||
12029 |
# The name of the directory that contains temporary libtool files. |
|
12030 |
objdir=$objdir |
|
12031 |
||
12032 |
# How to create reloadable object files. |
|
12033 |
reload_flag=$lt_reload_flag |
|
12034 |
reload_cmds=$lt_reload_cmds |
|
12035 |
||
12036 |
# How to pass a linker flag through the compiler. |
|
12037 |
wl=$lt_lt_prog_compiler_wl |
|
12038 |
||
12039 |
# Object file suffix (normally "o"). |
|
12040 |
objext="$ac_objext" |
|
12041 |
||
12042 |
# Old archive suffix (normally "a"). |
|
12043 |
libext="$libext" |
|
12044 |
||
12045 |
# Shared library suffix (normally ".so"). |
|
12046 |
shrext='$shrext' |
|
12047 |
||
12048 |
# Executable file suffix (normally ""). |
|
12049 |
exeext="$exeext" |
|
12050 |
||
12051 |
# Additional compiler flags for building library objects. |
|
12052 |
pic_flag=$lt_lt_prog_compiler_pic |
|
12053 |
pic_mode=$pic_mode |
|
12054 |
||
12055 |
# What is the maximum length of a command? |
|
12056 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
12057 |
||
12058 |
# Does compiler simultaneously support -c and -o options? |
|
12059 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
12060 |
||
12061 |
# Must we lock files when doing compilation ? |
|
12062 |
need_locks=$lt_need_locks |
|
12063 |
||
12064 |
# Do we need the lib prefix for modules? |
|
12065 |
need_lib_prefix=$need_lib_prefix |
|
12066 |
||
12067 |
# Do we need a version for libraries? |
|
12068 |
need_version=$need_version |
|
12069 |
||
12070 |
# Whether dlopen is supported. |
|
12071 |
dlopen_support=$enable_dlopen |
|
12072 |
||
12073 |
# Whether dlopen of programs is supported. |
|
12074 |
dlopen_self=$enable_dlopen_self |
|
12075 |
||
12076 |
# Whether dlopen of statically linked programs is supported. |
|
12077 |
dlopen_self_static=$enable_dlopen_self_static |
|
12078 |
||
12079 |
# Compiler flag to prevent dynamic linking. |
|
12080 |
link_static_flag=$lt_lt_prog_compiler_static |
|
12081 |
||
12082 |
# Compiler flag to turn off builtin functions. |
|
12083 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
12084 |
||
12085 |
# Compiler flag to allow reflexive dlopens. |
|
12086 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
12087 |
||
12088 |
# Compiler flag to generate shared objects directly from archives. |
|
12089 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
12090 |
||
12091 |
# Compiler flag to generate thread-safe objects. |
|
12092 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
12093 |
||
12094 |
# Library versioning type. |
|
12095 |
version_type=$version_type |
|
12096 |
||
12097 |
# Format of library name prefix. |
|
12098 |
libname_spec=$lt_libname_spec |
|
12099 |
||
12100 |
# List of archive names. First name is the real one, the rest are links. |
|
12101 |
# The last name is the one that the linker finds with -lNAME. |
|
12102 |
library_names_spec=$lt_library_names_spec |
|
12103 |
||
12104 |
# The coded name of the library, if different from the real name. |
|
12105 |
soname_spec=$lt_soname_spec |
|
12106 |
||
12107 |
# Commands used to build and install an old-style archive. |
|
12108 |
RANLIB=$lt_RANLIB |
|
12109 |
old_archive_cmds=$lt_old_archive_cmds |
|
12110 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
12111 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
12112 |
||
12113 |
# Create an old-style archive from a shared archive. |
|
12114 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
12115 |
||
12116 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
12117 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
12118 |
||
12119 |
# Commands used to build and install a shared archive. |
|
12120 |
archive_cmds=$lt_archive_cmds |
|
12121 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
|
12122 |
postinstall_cmds=$lt_postinstall_cmds |
|
12123 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
12124 |
||
12125 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
12126 |
module_cmds=$lt_module_cmds |
|
12127 |
module_expsym_cmds=$lt_module_expsym_cmds |
|
12128 |
||
12129 |
# Commands to strip libraries. |
|
12130 |
old_striplib=$lt_old_striplib |
|
12131 |
striplib=$lt_striplib |
|
12132 |
||
12133 |
# Dependencies to place before the objects being linked to create a |
|
12134 |
# shared library. |
|
12135 |
predep_objects=$lt_predep_objects |
|
12136 |
||
12137 |
# Dependencies to place after the objects being linked to create a |
|
12138 |
# shared library. |
|
12139 |
postdep_objects=$lt_postdep_objects |
|
12140 |
||
12141 |
# Dependencies to place before the objects being linked to create a |
|
12142 |
# shared library. |
|
12143 |
predeps=$lt_predeps |
|
12144 |
||
12145 |
# Dependencies to place after the objects being linked to create a |
|
12146 |
# shared library. |
|
12147 |
postdeps=$lt_postdeps |
|
12148 |
||
12149 |
# The library search path used internally by the compiler when linking |
|
12150 |
# a shared library. |
|
12151 |
compiler_lib_search_path=$lt_compiler_lib_search_path |
|
12152 |
||
12153 |
# Method to check whether dependent libraries are shared objects. |
|
12154 |
deplibs_check_method=$lt_deplibs_check_method |
|
12155 |
||
12156 |
# Command to use when deplibs_check_method == file_magic. |
|
12157 |
file_magic_cmd=$lt_file_magic_cmd |
|
12158 |
||
12159 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
12160 |
allow_undefined_flag=$lt_allow_undefined_flag |
|
12161 |
||
12162 |
# Flag that forces no undefined symbols. |
|
12163 |
no_undefined_flag=$lt_no_undefined_flag |
|
12164 |
||
12165 |
# Commands used to finish a libtool library installation in a directory. |
|
12166 |
finish_cmds=$lt_finish_cmds |
|
12167 |
||
12168 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
12169 |
finish_eval=$lt_finish_eval |
|
12170 |
||
12171 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
12172 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
12173 |
||
12174 |
# Transform the output of nm in a proper C declaration |
|
12175 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
12176 |
||
12177 |
# Transform the output of nm in a C name address pair |
|
12178 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
12179 |
||
12180 |
# This is the shared library runtime path variable. |
|
12181 |
runpath_var=$runpath_var |
|
12182 |
||
12183 |
# This is the shared library path variable. |
|
12184 |
shlibpath_var=$shlibpath_var |
|
12185 |
||
12186 |
# Is shlibpath searched before the hard-coded library search path? |
|
12187 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
12188 |
||
12189 |
# How to hardcode a shared library path into an executable. |
|
12190 |
hardcode_action=$hardcode_action |
|
12191 |
||
12192 |
# Whether we should hardcode library paths into libraries. |
|
12193 |
hardcode_into_libs=$hardcode_into_libs |
|
12194 |
||
12195 |
# Flag to hardcode \$libdir into a binary during linking. |
|
12196 |
# This must work even if \$libdir does not exist. |
|
12197 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
12198 |
||
12199 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
12200 |
# a binary during linking. This must work even if \$libdir does |
|
12201 |
# not exist. |
|
12202 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
12203 |
||
12204 |
# Whether we need a single -rpath flag with a separated argument. |
|
12205 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
12206 |
||
12207 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
12208 |
# resulting binary. |
|
12209 |
hardcode_direct=$hardcode_direct |
|
12210 |
||
12211 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
12212 |
# resulting binary. |
|
12213 |
hardcode_minus_L=$hardcode_minus_L |
|
12214 |
||
12215 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
12216 |
# the resulting binary. |
|
12217 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
12218 |
||
12219 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
12220 |
# and all subsequent libraries and executables linked against it. |
|
12221 |
hardcode_automatic=$hardcode_automatic |
|
12222 |
||
12223 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
12224 |
# restored at relink time. |
|
12225 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
12226 |
||
12227 |
# Whether libtool must link a program against all its dependency libraries. |
|
12228 |
link_all_deplibs=$link_all_deplibs |
|
12229 |
||
12230 |
# Compile-time system search path for libraries |
|
12231 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
12232 |
||
12233 |
# Run-time system search path for libraries |
|
12234 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
12235 |
||
12236 |
# Fix the shell variable \$srcfile for the compiler. |
|
12237 |
fix_srcfile_path="$fix_srcfile_path" |
|
12238 |
||
12239 |
# Set to yes if exported symbols are required. |
|
12240 |
always_export_symbols=$always_export_symbols |
|
12241 |
||
12242 |
# The commands to list exported symbols. |
|
12243 |
export_symbols_cmds=$lt_export_symbols_cmds |
|
12244 |
||
12245 |
# The commands to extract the exported symbol list from a shared archive. |
|
12246 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
12247 |
||
12248 |
# Symbols that should not be listed in the preloaded symbols. |
|
12249 |
exclude_expsyms=$lt_exclude_expsyms |
|
12250 |
||
12251 |
# Symbols that must always be exported. |
|
12252 |
include_expsyms=$lt_include_expsyms |
|
12253 |
||
12254 |
# ### END LIBTOOL CONFIG |
|
12255 |
||
12256 |
__EOF__ |
|
12257 |
||
12258 |
||
12259 |
case $host_os in |
|
12260 |
aix3*) |
|
12261 |
cat <<\EOF >> "$cfgfile" |
|
12262 |
||
12263 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
12264 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
12265 |
# vanish in a puff of smoke. |
|
12266 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
12267 |
COLLECT_NAMES= |
|
12268 |
export COLLECT_NAMES |
|
12269 |
fi |
|
12270 |
EOF |
|
12271 |
;; |
|
12272 |
esac |
|
12273 |
||
12274 |
# We use sed instead of cat because bash on DJGPP gets confused if |
|
12275 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
12276 |
# text mode, it properly converts lines to CR/LF. This bash problem |
|
12277 |
# is reportedly fixed, but why not run on old versions too? |
|
12278 |
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
12279 |
||
12280 |
mv -f "$cfgfile" "$ofile" || \ |
|
12281 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
12282 |
chmod +x "$ofile" |
|
12283 |
||
12284 |
else |
|
12285 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
12286 |
# `config.status --recheck' to rerun these tests and create the |
|
12287 |
# libtool script then. |
|
12288 |
test -f Makefile && make "$ltmain" |
|
12289 |
fi |
|
12290 |
||
12291 |
||
12292 |
ac_ext=c |
|
12293 |
ac_cpp='$CPP $CPPFLAGS' |
|
12294 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
12295 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
12296 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
12297 |
||
12298 |
CC="$lt_save_CC" |
|
12299 |
||
12300 |
||
12301 |
# Check whether --with-tags or --without-tags was given. |
|
12302 |
if test "${with_tags+set}" = set; then |
|
12303 |
withval="$with_tags" |
|
12304 |
tagnames="$withval" |
|
12305 |
fi; |
|
12306 |
||
12307 |
if test -f "$ltmain" && test -n "$tagnames"; then |
|
12308 |
if test ! -f "${ofile}"; then |
|
12309 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
|
12310 |
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
|
12311 |
fi |
|
12312 |
||
12313 |
if test -z "$LTCC"; then |
|
12314 |
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
|
12315 |
if test -z "$LTCC"; then |
|
12316 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
|
12317 |
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
|
12318 |
else |
|
12319 |
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
|
12320 |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
|
12321 |
fi |
|
12322 |
fi |
|
12323 |
||
12324 |
# Extract list of available tagged configurations in $ofile. |
|
12325 |
# Note that this assumes the entire list is on one line. |
|
12326 |
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
|
12327 |
||
12328 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
12329 |
for tagname in $tagnames; do |
|
12330 |
IFS="$lt_save_ifs" |
|
12331 |
# Check whether tagname contains only valid characters |
|
12332 |
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
|
12333 |
"") ;; |
|
12334 |
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
|
12335 |
echo "$as_me: error: invalid tag name: $tagname" >&2;} |
|
12336 |
{ (exit 1); exit 1; }; } |
|
12337 |
;; |
|
12338 |
esac |
|
12339 |
||
12340 |
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
|
12341 |
then |
|
12342 |
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
|
12343 |
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
|
12344 |
{ (exit 1); exit 1; }; } |
|
12345 |
fi |
|
12346 |
||
12347 |
# Update the list of available tags. |
|
12348 |
if test -n "$tagname"; then |
|
12349 |
echo appending configuration tag \"$tagname\" to $ofile |
|
12350 |
||
12351 |
case $tagname in |
|
12352 |
CXX) |
|
12353 |
if test -n "$CXX" && test "X$CXX" != "Xno"; then |
|
12354 |
ac_ext=cc |
|
12355 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
12356 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
12357 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
12358 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
12359 |
||
12360 |
||
12361 |
||
12362 |
||
12363 |
archive_cmds_need_lc_CXX=no |
|
12364 |
allow_undefined_flag_CXX= |
|
12365 |
always_export_symbols_CXX=no |
|
12366 |
archive_expsym_cmds_CXX= |
|
12367 |
export_dynamic_flag_spec_CXX= |
|
12368 |
hardcode_direct_CXX=no |
|
12369 |
hardcode_libdir_flag_spec_CXX= |
|
12370 |
hardcode_libdir_flag_spec_ld_CXX= |
|
12371 |
hardcode_libdir_separator_CXX= |
|
12372 |
hardcode_minus_L_CXX=no |
|
12373 |
hardcode_automatic_CXX=no |
|
12374 |
module_cmds_CXX= |
|
12375 |
module_expsym_cmds_CXX= |
|
12376 |
link_all_deplibs_CXX=unknown |
|
12377 |
old_archive_cmds_CXX=$old_archive_cmds |
|
12378 |
no_undefined_flag_CXX= |
|
12379 |
whole_archive_flag_spec_CXX= |
|
12380 |
enable_shared_with_static_runtimes_CXX=no |
|
12381 |
||
12382 |
# Dependencies to place before and after the object being linked: |
|
12383 |
predep_objects_CXX= |
|
12384 |
postdep_objects_CXX= |
|
12385 |
predeps_CXX= |
|
12386 |
postdeps_CXX= |
|
12387 |
compiler_lib_search_path_CXX= |
|
12388 |
||
12389 |
# Source file extension for C++ test sources. |
|
12390 |
ac_ext=cc |
|
12391 |
||
12392 |
# Object file extension for compiled C++ test sources. |
|
12393 |
objext=o |
|
12394 |
objext_CXX=$objext |
|
12395 |
||
12396 |
# Code to be used in simple compile tests |
|
12397 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
|
12398 |
||
12399 |
# Code to be used in simple link tests |
|
12400 |
lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
|
12401 |
||
12402 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
12403 |
||
12404 |
# If no C compiler was specified, use CC. |
|
12405 |
LTCC=${LTCC-"$CC"} |
|
12406 |
||
12407 |
# Allow CC to be a program name with arguments. |
|
12408 |
compiler=$CC |
|
12409 |
||
12410 |
||
12411 |
# Allow CC to be a program name with arguments. |
|
12412 |
lt_save_CC=$CC |
|
12413 |
lt_save_LD=$LD |
|
12414 |
lt_save_GCC=$GCC |
|
12415 |
GCC=$GXX |
|
12416 |
lt_save_with_gnu_ld=$with_gnu_ld |
|
12417 |
lt_save_path_LD=$lt_cv_path_LD |
|
12418 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
12419 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
12420 |
else |
|
12421 |
unset lt_cv_prog_gnu_ld |
|
12422 |
fi |
|
12423 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
|
12424 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
|
12425 |
else |
|
12426 |
unset lt_cv_path_LD |
|
12427 |
fi |
|
12428 |
test -z "${LDCXX+set}" || LD=$LDCXX |
|
12429 |
CC=${CXX-"c++"} |
|
12430 |
compiler=$CC |
|
12431 |
compiler_CXX=$CC |
|
12432 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
12433 |
||
12434 |
# We don't want -fno-exception wen compiling C++ code, so set the |
|
12435 |
# no_builtin_flag separately |
|
12436 |
if test "$GXX" = yes; then |
|
12437 |
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
|
12438 |
else |
|
12439 |
lt_prog_compiler_no_builtin_flag_CXX= |
|
12440 |
fi |
|
12441 |
||
12442 |
if test "$GXX" = yes; then |
|
12443 |
# Set up default GNU C++ configuration |
|
12444 |
||
12445 |
||
12446 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
12447 |
if test "${with_gnu_ld+set}" = set; then |
|
12448 |
withval="$with_gnu_ld" |
|
12449 |
test "$withval" = no || with_gnu_ld=yes |
|
12450 |
else |
|
12451 |
with_gnu_ld=no |
|
12452 |
fi; |
|
12453 |
ac_prog=ld |
|
12454 |
if test "$GCC" = yes; then |
|
12455 |
# Check if gcc -print-prog-name=ld gives a path. |
|
12456 |
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
12457 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
|
12458 |
case $host in |
|
12459 |
*-*-mingw*) |
|
12460 |
# gcc leaves a trailing carriage return which upsets mingw |
|
12461 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
12462 |
*) |
|
12463 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
12464 |
esac |
|
12465 |
case $ac_prog in |
|
12466 |
# Accept absolute paths. |
|
12467 |
[\\/]* | ?:[\\/]*) |
|
12468 |
re_direlt='/[^/][^/]*/\.\./' |
|
12469 |
# Canonicalize the pathname of ld |
|
12470 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
12471 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
12472 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
12473 |
done |
|
12474 |
test -z "$LD" && LD="$ac_prog" |
|
12475 |
;; |
|
12476 |
"") |
|
12477 |
# If it fails, then pretend we aren't using GCC. |
|
12478 |
ac_prog=ld |
|
12479 |
;; |
|
12480 |
*) |
|
12481 |
# If it is relative, then search for the first ld in PATH. |
|
12482 |
with_gnu_ld=unknown |
|
12483 |
;; |
|
12484 |
esac |
|
12485 |
elif test "$with_gnu_ld" = yes; then |
|
12486 |
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
12487 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
12488 |
else |
|
12489 |
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
12490 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
12491 |
fi |
|
12492 |
if test "${lt_cv_path_LD+set}" = set; then |
|
12493 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
12494 |
else |
|
12495 |
if test -z "$LD"; then |
|
12496 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
12497 |
for ac_dir in $PATH; do |
|
12498 |
IFS="$lt_save_ifs" |
|
12499 |
test -z "$ac_dir" && ac_dir=. |
|
12500 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
12501 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
|
12502 |
# Check to see if the program is GNU ld. I'd rather use --version, |
|
12503 |
# but apparently some GNU ld's only accept -v. |
|
12504 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
|
12505 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
12506 |
*GNU* | *'with BFD'*) |
|
12507 |
test "$with_gnu_ld" != no && break |
|
12508 |
;; |
|
12509 |
*) |
|
12510 |
test "$with_gnu_ld" != yes && break |
|
12511 |
;; |
|
12512 |
esac |
|
12513 |
fi |
|
12514 |
done |
|
12515 |
IFS="$lt_save_ifs" |
|
12516 |
else |
|
12517 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
12518 |
fi |
|
12519 |
fi |
|
12520 |
||
12521 |
LD="$lt_cv_path_LD" |
|
12522 |
if test -n "$LD"; then |
|
12523 |
echo "$as_me:$LINENO: result: $LD" >&5 |
|
12524 |
echo "${ECHO_T}$LD" >&6 |
|
12525 |
else |
|
12526 |
echo "$as_me:$LINENO: result: no" >&5 |
|
12527 |
echo "${ECHO_T}no" >&6 |
|
12528 |
fi |
|
12529 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
12530 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
12531 |
{ (exit 1); exit 1; }; } |
|
12532 |
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
12533 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
12534 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
12535 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
12536 |
else |
|
12537 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
12538 |
case `$LD -v 2>&1 </dev/null` in |
|
12539 |
*GNU* | *'with BFD'*) |
|
12540 |
lt_cv_prog_gnu_ld=yes |
|
12541 |
;; |
|
12542 |
*) |
|
12543 |
lt_cv_prog_gnu_ld=no |
|
12544 |
;; |
|
12545 |
esac |
|
12546 |
fi |
|
12547 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
12548 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
12549 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
|
12550 |
||
12551 |
||
12552 |
||
12553 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
12554 |
# archiving commands below assume that GNU ld is being used. |
|
12555 |
if test "$with_gnu_ld" = yes; then |
|
12556 |
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
|
12557 |
archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
12558 |
||
12559 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
12560 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
12561 |
||
12562 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
12563 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
12564 |
# investigate it a little bit more. (MM) |
|
12565 |
wlarc='${wl}' |
|
12566 |
||
12567 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
12568 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
|
12569 |
grep 'no-whole-archive' > /dev/null; then |
|
12570 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
12571 |
else |
|
12572 |
whole_archive_flag_spec_CXX= |
|
12573 |
fi |
|
12574 |
else |
|
12575 |
with_gnu_ld=no |
|
12576 |
wlarc= |
|
12577 |
||
12578 |
# A generic and very simple default shared library creation |
|
12579 |
# command for GNU C++ for the case where it uses the native |
|
12580 |
# linker, instead of GNU ld. If possible, this setting should |
|
12581 |
# overridden to take advantage of the native linker features on |
|
12582 |
# the platform it is being used on. |
|
12583 |
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib' |
|
12584 |
fi |
|
12585 |
||
12586 |
# Commands to make compiler produce verbose output that lists |
|
12587 |
# what "hidden" libraries, object files and flags are used when |
|
12588 |
# linking a shared library. |
|
12589 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
12590 |
||
12591 |
else |
|
12592 |
GXX=no |
|
12593 |
with_gnu_ld=no |
|
12594 |
wlarc= |
|
12595 |
fi |
|
12596 |
||
12597 |
# PORTME: fill in a description of your system's C++ link characteristics |
|
12598 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
12599 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
12600 |
ld_shlibs_CXX=yes |
|
12601 |
case $host_os in |
|
12602 |
aix3*) |
|
12603 |
# FIXME: insert proper C++ library support |
|
12604 |
ld_shlibs_CXX=no |
|
12605 |
;; |
|
12606 |
aix4* | aix5*) |
|
12607 |
if test "$host_cpu" = ia64; then |
|
12608 |
# On IA64, the linker does run time linking by default, so we don't |
|
12609 |
# have to do anything special. |
|
12610 |
aix_use_runtimelinking=no |
|
12611 |
exp_sym_flag='-Bexport' |
|
12612 |
no_entry_flag="" |
|
12613 |
else |
|
12614 |
# KDE requires run time linking. Make it the default. |
|
12615 |
aix_use_runtimelinking=yes |
|
12616 |
exp_sym_flag='-bexport' |
|
12617 |
no_entry_flag='-bnoentry' |
|
12618 |
fi |
|
12619 |
||
12620 |
# When large executables or shared objects are built, AIX ld can |
|
12621 |
# have problems creating the table of contents. If linking a library |
|
12622 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
12623 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
12624 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
12625 |
||
12626 |
archive_cmds_CXX='' |
|
12627 |
hardcode_direct_CXX=yes |
|
12628 |
hardcode_libdir_separator_CXX=':' |
|
12629 |
link_all_deplibs_CXX=yes |
|
12630 |
||
12631 |
if test "$GXX" = yes; then |
|
12632 |
case $host_os in aix4.012|aix4.012.*) |
|
12633 |
# We only want to do this on AIX 4.2 and lower, the check |
|
12634 |
# below for broken collect2 doesn't work under 4.3+ |
|
12635 |
collect2name=`${CC} -print-prog-name=collect2` |
|
12636 |
if test -f "$collect2name" && \ |
|
12637 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
12638 |
then |
|
12639 |
# We have reworked collect2 |
|
12640 |
hardcode_direct_CXX=yes |
|
12641 |
else |
|
12642 |
# We have old collect2 |
|
12643 |
hardcode_direct_CXX=unsupported |
|
12644 |
# It fails to find uninstalled libraries when the uninstalled |
|
12645 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
12646 |
# to unsupported forces relinking |
|
12647 |
hardcode_minus_L_CXX=yes |
|
12648 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
12649 |
hardcode_libdir_separator_CXX= |
|
12650 |
fi |
|
12651 |
esac |
|
12652 |
shared_flag='-shared' |
|
12653 |
else |
|
12654 |
# not using gcc |
|
12655 |
if test "$host_cpu" = ia64; then |
|
12656 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
12657 |
# chokes on -Wl,-G. The following line is correct: |
|
12658 |
shared_flag='-G' |
|
12659 |
else |
|
12660 |
if test "$aix_use_runtimelinking" = yes; then |
|
12661 |
shared_flag='-qmkshrobj ${wl}-G' |
|
12662 |
else |
|
12663 |
shared_flag='-qmkshrobj' |
|
12664 |
fi |
|
12665 |
fi |
|
12666 |
fi |
|
12667 |
||
12668 |
# Let the compiler handle the export list. |
|
12669 |
always_export_symbols_CXX=no |
|
12670 |
if test "$aix_use_runtimelinking" = yes; then |
|
12671 |
# Warning - without using the other runtime loading flags (-brtl), |
|
12672 |
# -berok will link without error, but may produce a broken library. |
|
12673 |
allow_undefined_flag_CXX='-berok' |
|
12674 |
# Determine the default libpath from the value encoded in an empty executable. |
|
12675 |
cat >conftest.$ac_ext <<_ACEOF |
|
12676 |
/* confdefs.h. */ |
|
12677 |
_ACEOF |
|
12678 |
cat confdefs.h >>conftest.$ac_ext |
|
12679 |
cat >>conftest.$ac_ext <<_ACEOF |
|
12680 |
/* end confdefs.h. */ |
|
12681 |
||
12682 |
int |
|
12683 |
main () |
|
12684 |
{ |
|
12685 |
||
12686 |
; |
|
12687 |
return 0; |
|
12688 |
} |
|
12689 |
_ACEOF |
|
12690 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
12691 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
12692 |
(eval $ac_link) 2>conftest.er1 |
|
12693 |
ac_status=$? |
|
12694 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
12695 |
rm -f conftest.er1 |
|
12696 |
cat conftest.err >&5 |
|
12697 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12698 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
12699 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
12700 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12701 |
(eval $ac_try) 2>&5 |
|
12702 |
ac_status=$? |
|
12703 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12704 |
(exit $ac_status); }; } && |
|
12705 |
{ ac_try='test -s conftest$ac_exeext' |
|
12706 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
12707 |
(eval $ac_try) 2>&5 |
|
12708 |
ac_status=$? |
|
12709 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12710 |
(exit $ac_status); }; }; then |
|
12711 |
||
12712 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
12713 |
}'` |
|
12714 |
# Check for a 64-bit object if we didn't find anything. |
|
12715 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
12716 |
}'`; fi |
|
12717 |
else |
|
12718 |
echo "$as_me: failed program was:" >&5 |
|
12719 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
12720 |
||
12721 |
fi |
|
12722 |
rm -f conftest.err conftest.$ac_objext \ |
|
12723 |
conftest$ac_exeext conftest.$ac_ext |
|
12724 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
12725 |
||
12726 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
12727 |
||
12728 |
archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" |
|
12729 |
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
12730 |
else |
|
12731 |
if test "$host_cpu" = ia64; then |
|
12732 |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
|
12733 |
allow_undefined_flag_CXX="-z nodefs" |
|
12734 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
12735 |
else |
|
12736 |
# Determine the default libpath from the value encoded in an empty executable. |
|
12737 |
cat >conftest.$ac_ext <<_ACEOF |
|
12738 |
/* confdefs.h. */ |
|
12739 |
_ACEOF |
|
12740 |
cat confdefs.h >>conftest.$ac_ext |
|
12741 |
cat >>conftest.$ac_ext <<_ACEOF |
|
12742 |
/* end confdefs.h. */ |
|
12743 |
||
12744 |
int |
|
12745 |
main () |
|
12746 |
{ |
|
12747 |
||
12748 |
; |
|
12749 |
return 0; |
|
12750 |
} |
|
12751 |
_ACEOF |
|
12752 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
12753 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
12754 |
(eval $ac_link) 2>conftest.er1 |
|
12755 |
ac_status=$? |
|
12756 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
12757 |
rm -f conftest.er1 |
|
12758 |
cat conftest.err >&5 |
|
12759 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12760 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
12761 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
12762 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12763 |
(eval $ac_try) 2>&5 |
|
12764 |
ac_status=$? |
|
12765 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12766 |
(exit $ac_status); }; } && |
|
12767 |
{ ac_try='test -s conftest$ac_exeext' |
|
12768 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
12769 |
(eval $ac_try) 2>&5 |
|
12770 |
ac_status=$? |
|
12771 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12772 |
(exit $ac_status); }; }; then |
|
12773 |
||
12774 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
12775 |
}'` |
|
12776 |
# Check for a 64-bit object if we didn't find anything. |
|
12777 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
12778 |
}'`; fi |
|
12779 |
else |
|
12780 |
echo "$as_me: failed program was:" >&5 |
|
12781 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
12782 |
||
12783 |
fi |
|
12784 |
rm -f conftest.err conftest.$ac_objext \ |
|
12785 |
conftest$ac_exeext conftest.$ac_ext |
|
12786 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
12787 |
||
12788 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
12789 |
# Warning - without using the other run time loading flags, |
|
12790 |
# -berok will link without error, but may produce a broken library. |
|
12791 |
no_undefined_flag_CXX=' ${wl}-bernotok' |
|
12792 |
allow_undefined_flag_CXX=' ${wl}-berok' |
|
12793 |
# -bexpall does not export symbols beginning with underscore (_) |
|
12794 |
always_export_symbols_CXX=yes |
|
12795 |
# Exported symbols can be pulled into shared objects from archives |
|
12796 |
whole_archive_flag_spec_CXX=' ' |
|
12797 |
archive_cmds_need_lc_CXX=yes |
|
12798 |
# This is similar to how AIX traditionally builds it's shared libraries. |
|
12799 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
12800 |
fi |
|
12801 |
fi |
|
12802 |
;; |
|
12803 |
chorus*) |
|
12804 |
case $cc_basename in |
|
12805 |
*) |
|
12806 |
# FIXME: insert proper C++ library support |
|
12807 |
ld_shlibs_CXX=no |
|
12808 |
;; |
|
12809 |
esac |
|
12810 |
;; |
|
12811 |
||
12812 |
cygwin* | mingw* | pw32*) |
|
12813 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
|
12814 |
# as there is no search path for DLLs. |
|
12815 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
12816 |
allow_undefined_flag_CXX=no |
|
12817 |
always_export_symbols_CXX=no |
|
12818 |
enable_shared_with_static_runtimes_CXX=yes |
|
12819 |
||
12820 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
12821 |
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
12822 |
# If the export-symbols file already is a .def file (1st line |
|
12823 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
12824 |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
12825 |
cp $export_symbols $output_objdir/$soname.def; |
|
12826 |
else |
|
12827 |
echo EXPORTS > $output_objdir/$soname.def; |
|
12828 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
12829 |
fi~ |
|
12830 |
$CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
12831 |
else |
|
12832 |
ld_shlibs_CXX=no |
|
12833 |
fi |
|
12834 |
;; |
|
12835 |
||
12836 |
darwin* | rhapsody*) |
|
12837 |
if test "$GXX" = yes; then |
|
12838 |
archive_cmds_need_lc_CXX=no |
|
12839 |
case "$host_os" in |
|
12840 |
rhapsody* | darwin1.[012]) |
|
12841 |
allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress' |
|
12842 |
;; |
|
12843 |
*) # Darwin 1.3 on |
|
12844 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
12845 |
allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
12846 |
else |
12847 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
12848 |
10.012) |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
12849 |
allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
12850 |
;; |
12851 |
10.*) |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
12852 |
allow_undefined_flag_CXX='-Wl,-undefined -Wl,dynamic_lookup' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
12853 |
;; |
12854 |
esac |
|
12855 |
fi |
|
12856 |
;; |
|
12857 |
esac |
|
12858 |
lt_int_apple_cc_single_mod=no |
|
12859 |
output_verbose_link_cmd='echo' |
|
12860 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
12861 |
lt_int_apple_cc_single_mod=yes |
|
12862 |
fi |
|
12863 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
12864 |
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
|
12865 |
else |
|
12866 |
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' |
|
12867 |
fi |
|
12868 |
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
|
12869 |
||
12870 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
12871 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
12872 |
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
12873 |
else |
|
12874 |
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
12875 |
fi |
|
12876 |
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
12877 |
hardcode_direct_CXX=no |
|
12878 |
hardcode_automatic_CXX=yes |
|
12879 |
hardcode_shlibpath_var_CXX=unsupported |
|
12880 |
whole_archive_flag_spec_CXX='-all_load $convenience' |
|
12881 |
link_all_deplibs_CXX=yes |
|
12882 |
else |
|
12883 |
ld_shlibs_CXX=no |
|
12884 |
fi |
|
12885 |
;; |
|
12886 |
||
12887 |
dgux*) |
|
12888 |
case $cc_basename in |
|
12889 |
ec++) |
|
12890 |
# FIXME: insert proper C++ library support |
|
12891 |
ld_shlibs_CXX=no |
|
12892 |
;; |
|
12893 |
ghcx) |
|
12894 |
# Green Hills C++ Compiler |
|
12895 |
# FIXME: insert proper C++ library support |
|
12896 |
ld_shlibs_CXX=no |
|
12897 |
;; |
|
12898 |
*) |
|
12899 |
# FIXME: insert proper C++ library support |
|
12900 |
ld_shlibs_CXX=no |
|
12901 |
;; |
|
12902 |
esac |
|
12903 |
;; |
|
12904 |
freebsd12*) |
|
12905 |
# C++ shared libraries reported to be fairly broken before switch to ELF |
|
12906 |
ld_shlibs_CXX=no |
|
12907 |
;; |
|
12908 |
freebsd-elf*) |
|
12909 |
archive_cmds_need_lc_CXX=no |
|
12910 |
;; |
|
12911 |
freebsd*) |
|
12912 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
12913 |
# conventions |
|
12914 |
ld_shlibs_CXX=yes |
|
12915 |
;; |
|
12916 |
gnu*) |
|
12917 |
;; |
|
12918 |
hpux9*) |
|
12919 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
12920 |
hardcode_libdir_separator_CXX=: |
|
12921 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
12922 |
hardcode_direct_CXX=yes |
|
12923 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
12924 |
# but as the default |
|
12925 |
# location of the library. |
|
12926 |
||
12927 |
case $cc_basename in |
|
12928 |
CC) |
|
12929 |
# FIXME: insert proper C++ library support |
|
12930 |
ld_shlibs_CXX=no |
|
12931 |
;; |
|
12932 |
aCC) |
|
12933 |
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
12934 |
# Commands to make compiler produce verbose output that lists |
|
12935 |
# what "hidden" libraries, object files and flags are used when |
|
12936 |
# linking a shared library. |
|
12937 |
# |
|
12938 |
# There doesn't appear to be a way to prevent this compiler from |
|
12939 |
# explicitly linking system object files so we need to strip them |
|
12940 |
# from the output so that they don't get included in the library |
|
12941 |
# dependencies. |
|
12942 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
12943 |
;; |
|
12944 |
*) |
|
12945 |
if test "$GXX" = yes; then |
|
12946 |
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
12947 |
else |
|
12948 |
# FIXME: insert proper C++ library support |
|
12949 |
ld_shlibs_CXX=no |
|
12950 |
fi |
|
12951 |
;; |
|
12952 |
esac |
|
12953 |
;; |
|
12954 |
hpux10*|hpux11*) |
|
12955 |
if test $with_gnu_ld = no; then |
|
12956 |
case "$host_cpu" in |
|
12957 |
hppa*64*) |
|
12958 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
12959 |
hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
|
12960 |
hardcode_libdir_separator_CXX=: |
|
12961 |
;; |
|
12962 |
ia64*) |
|
12963 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
12964 |
;; |
|
12965 |
*) |
|
12966 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
12967 |
hardcode_libdir_separator_CXX=: |
|
12968 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
12969 |
;; |
|
12970 |
esac |
|
12971 |
fi |
|
12972 |
case "$host_cpu" in |
|
12973 |
hppa*64*) |
|
12974 |
hardcode_direct_CXX=no |
|
12975 |
hardcode_shlibpath_var_CXX=no |
|
12976 |
;; |
|
12977 |
ia64*) |
|
12978 |
hardcode_direct_CXX=no |
|
12979 |
hardcode_shlibpath_var_CXX=no |
|
12980 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
12981 |
# but as the default |
|
12982 |
# location of the library. |
|
12983 |
;; |
|
12984 |
*) |
|
12985 |
hardcode_direct_CXX=yes |
|
12986 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
12987 |
# but as the default |
|
12988 |
# location of the library. |
|
12989 |
;; |
|
12990 |
esac |
|
12991 |
||
12992 |
case $cc_basename in |
|
12993 |
CC) |
|
12994 |
# FIXME: insert proper C++ library support |
|
12995 |
ld_shlibs_CXX=no |
|
12996 |
;; |
|
12997 |
aCC) |
|
12998 |
case "$host_cpu" in |
|
12999 |
hppa*64*|ia64*) |
|
13000 |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
13001 |
;; |
|
13002 |
*) |
|
13003 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
|
13004 |
;; |
|
13005 |
esac |
|
13006 |
# Commands to make compiler produce verbose output that lists |
|
13007 |
# what "hidden" libraries, object files and flags are used when |
|
13008 |
# linking a shared library. |
|
13009 |
# |
|
13010 |
# There doesn't appear to be a way to prevent this compiler from |
|
13011 |
# explicitly linking system object files so we need to strip them |
|
13012 |
# from the output so that they don't get included in the library |
|
13013 |
# dependencies. |
|
13014 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
13015 |
;; |
|
13016 |
*) |
|
13017 |
if test "$GXX" = yes; then |
|
13018 |
if test $with_gnu_ld = no; then |
|
13019 |
case "$host_cpu" in |
|
13020 |
ia64*|hppa*64*) |
|
13021 |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
13022 |
;; |
|
13023 |
*) |
|
13024 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
|
13025 |
;; |
|
13026 |
esac |
|
13027 |
fi |
|
13028 |
else |
|
13029 |
# FIXME: insert proper C++ library support |
|
13030 |
ld_shlibs_CXX=no |
|
13031 |
fi |
|
13032 |
;; |
|
13033 |
esac |
|
13034 |
;; |
|
13035 |
irix5* | irix6*) |
|
13036 |
case $cc_basename in |
|
13037 |
CC) |
|
13038 |
# SGI C++ |
|
13039 |
archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
|
13040 |
||
13041 |
# Archives containing C++ object files must be created using |
|
13042 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
13043 |
# necessary to make sure instantiated templates are included |
|
13044 |
# in the archive. |
|
13045 |
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
13046 |
;; |
|
13047 |
*) |
|
13048 |
if test "$GXX" = yes; then |
|
13049 |
if test "$with_gnu_ld" = no; then |
|
13050 |
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
|
13051 |
else |
|
13052 |
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
|
13053 |
fi |
|
13054 |
fi |
|
13055 |
link_all_deplibs_CXX=yes |
|
13056 |
;; |
|
13057 |
esac |
|
13058 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
13059 |
hardcode_libdir_separator_CXX=: |
|
13060 |
;; |
|
13061 |
linux*) |
|
13062 |
case $cc_basename in |
|
13063 |
KCC) |
|
13064 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
|
13065 |
||
13066 |
# KCC will only create a shared library if the output file |
|
13067 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
13068 |
# to its proper name (with version) after linking. |
|
13069 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
|
13070 |
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
|
13071 |
# Commands to make compiler produce verbose output that lists |
|
13072 |
# what "hidden" libraries, object files and flags are used when |
|
13073 |
# linking a shared library. |
|
13074 |
# |
|
13075 |
# There doesn't appear to be a way to prevent this compiler from |
|
13076 |
# explicitly linking system object files so we need to strip them |
|
13077 |
# from the output so that they don't get included in the library |
|
13078 |
# dependencies. |
|
13079 |
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
13080 |
||
13081 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
|
13082 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
13083 |
||
13084 |
# Archives containing C++ object files must be created using |
|
13085 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
13086 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
13087 |
;; |
|
13088 |
icpc) |
|
13089 |
# Intel C++ |
|
13090 |
with_gnu_ld=yes |
|
13091 |
archive_cmds_need_lc_CXX=no |
|
13092 |
archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
|
13093 |
archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
13094 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
13095 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
13096 |
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
13097 |
;; |
|
13098 |
cxx) |
|
13099 |
# Compaq C++ |
|
13100 |
archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
|
13101 |
archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
|
13102 |
||
13103 |
runpath_var=LD_RUN_PATH |
|
13104 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
13105 |
hardcode_libdir_separator_CXX=: |
|
13106 |
||
13107 |
# Commands to make compiler produce verbose output that lists |
|
13108 |
# what "hidden" libraries, object files and flags are used when |
|
13109 |
# linking a shared library. |
|
13110 |
# |
|
13111 |
# There doesn't appear to be a way to prevent this compiler from |
|
13112 |
# explicitly linking system object files so we need to strip them |
|
13113 |
# from the output so that they don't get included in the library |
|
13114 |
# dependencies. |
|
13115 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
13116 |
;; |
|
13117 |
esac |
|
13118 |
;; |
|
13119 |
lynxos*) |
|
13120 |
# FIXME: insert proper C++ library support |
|
13121 |
ld_shlibs_CXX=no |
|
13122 |
;; |
|
13123 |
m88k*) |
|
13124 |
# FIXME: insert proper C++ library support |
|
13125 |
ld_shlibs_CXX=no |
|
13126 |
;; |
|
13127 |
mvs*) |
|
13128 |
case $cc_basename in |
|
13129 |
cxx) |
|
13130 |
# FIXME: insert proper C++ library support |
|
13131 |
ld_shlibs_CXX=no |
|
13132 |
;; |
|
13133 |
*) |
|
13134 |
# FIXME: insert proper C++ library support |
|
13135 |
ld_shlibs_CXX=no |
|
13136 |
;; |
|
13137 |
esac |
|
13138 |
;; |
|
13139 |
netbsd*) |
|
13140 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
13141 |
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
13142 |
wlarc= |
|
13143 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
13144 |
hardcode_direct_CXX=yes |
|
13145 |
hardcode_shlibpath_var_CXX=no |
|
13146 |
fi |
|
13147 |
# Workaround some broken pre-1.5 toolchains |
|
13148 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
13149 |
;; |
|
13150 |
osf3*) |
|
13151 |
case $cc_basename in |
|
13152 |
KCC) |
|
13153 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
|
13154 |
||
13155 |
# KCC will only create a shared library if the output file |
|
13156 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
13157 |
# to its proper name (with version) after linking. |
|
13158 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
|
13159 |
||
13160 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
13161 |
hardcode_libdir_separator_CXX=: |
|
13162 |
||
13163 |
# Archives containing C++ object files must be created using |
|
13164 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
13165 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
13166 |
||
13167 |
;; |
|
13168 |
RCC) |
|
13169 |
# Rational C++ 2.4.1 |
|
13170 |
# FIXME: insert proper C++ library support |
|
13171 |
ld_shlibs_CXX=no |
|
13172 |
;; |
|
13173 |
cxx) |
|
13174 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
13175 |
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
|
13176 |
||
13177 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
13178 |
hardcode_libdir_separator_CXX=: |
|
13179 |
||
13180 |
# Commands to make compiler produce verbose output that lists |
|
13181 |
# what "hidden" libraries, object files and flags are used when |
|
13182 |
# linking a shared library. |
|
13183 |
# |
|
13184 |
# There doesn't appear to be a way to prevent this compiler from |
|
13185 |
# explicitly linking system object files so we need to strip them |
|
13186 |
# from the output so that they don't get included in the library |
|
13187 |
# dependencies. |
|
13188 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
13189 |
;; |
|
13190 |
*) |
|
13191 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
13192 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
13193 |
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
|
13194 |
||
13195 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
13196 |
hardcode_libdir_separator_CXX=: |
|
13197 |
||
13198 |
# Commands to make compiler produce verbose output that lists |
|
13199 |
# what "hidden" libraries, object files and flags are used when |
|
13200 |
# linking a shared library. |
|
13201 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
13202 |
||
13203 |
else |
|
13204 |
# FIXME: insert proper C++ library support |
|
13205 |
ld_shlibs_CXX=no |
|
13206 |
fi |
|
13207 |
;; |
|
13208 |
esac |
|
13209 |
;; |
|
13210 |
osf4* | osf5*) |
|
13211 |
case $cc_basename in |
|
13212 |
KCC) |
|
13213 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
|
13214 |
||
13215 |
# KCC will only create a shared library if the output file |
|
13216 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
13217 |
# to its proper name (with version) after linking. |
|
13218 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
|
13219 |
||
13220 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
13221 |
hardcode_libdir_separator_CXX=: |
|
13222 |
||
13223 |
# Archives containing C++ object files must be created using |
|
13224 |
# the KAI C++ compiler. |
|
13225 |
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
|
13226 |
;; |
|
13227 |
RCC) |
|
13228 |
# Rational C++ 2.4.1 |
|
13229 |
# FIXME: insert proper C++ library support |
|
13230 |
ld_shlibs_CXX=no |
|
13231 |
;; |
|
13232 |
cxx) |
|
13233 |
allow_undefined_flag_CXX=' -expect_unresolved \*' |
|
13234 |
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
|
13235 |
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
|
13236 |
echo "-hidden">> $lib.exp~ |
|
13237 |
$CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
|
13238 |
$rm $lib.exp' |
|
13239 |
||
13240 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
13241 |
hardcode_libdir_separator_CXX=: |
|
13242 |
||
13243 |
# Commands to make compiler produce verbose output that lists |
|
13244 |
# what "hidden" libraries, object files and flags are used when |
|
13245 |
# linking a shared library. |
|
13246 |
# |
|
13247 |
# There doesn't appear to be a way to prevent this compiler from |
|
13248 |
# explicitly linking system object files so we need to strip them |
|
13249 |
# from the output so that they don't get included in the library |
|
13250 |
# dependencies. |
|
13251 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
13252 |
;; |
|
13253 |
*) |
|
13254 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
13255 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
13256 |
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
|
13257 |
||
13258 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
13259 |
hardcode_libdir_separator_CXX=: |
|
13260 |
||
13261 |
# Commands to make compiler produce verbose output that lists |
|
13262 |
# what "hidden" libraries, object files and flags are used when |
|
13263 |
# linking a shared library. |
|
13264 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
13265 |
||
13266 |
else |
|
13267 |
# FIXME: insert proper C++ library support |
|
13268 |
ld_shlibs_CXX=no |
|
13269 |
fi |
|
13270 |
;; |
|
13271 |
esac |
|
13272 |
;; |
|
13273 |
psos*) |
|
13274 |
# FIXME: insert proper C++ library support |
|
13275 |
ld_shlibs_CXX=no |
|
13276 |
;; |
|
13277 |
sco*) |
|
13278 |
archive_cmds_need_lc_CXX=no |
|
13279 |
case $cc_basename in |
|
13280 |
CC) |
|
13281 |
# FIXME: insert proper C++ library support |
|
13282 |
ld_shlibs_CXX=no |
|
13283 |
;; |
|
13284 |
*) |
|
13285 |
# FIXME: insert proper C++ library support |
|
13286 |
ld_shlibs_CXX=no |
|
13287 |
;; |
|
13288 |
esac |
|
13289 |
;; |
|
13290 |
sunos4*) |
|
13291 |
case $cc_basename in |
|
13292 |
CC) |
|
13293 |
# Sun C++ 4.x |
|
13294 |
# FIXME: insert proper C++ library support |
|
13295 |
ld_shlibs_CXX=no |
|
13296 |
;; |
|
13297 |
lcc) |
|
13298 |
# Lucid |
|
13299 |
# FIXME: insert proper C++ library support |
|
13300 |
ld_shlibs_CXX=no |
|
13301 |
;; |
|
13302 |
*) |
|
13303 |
# FIXME: insert proper C++ library support |
|
13304 |
ld_shlibs_CXX=no |
|
13305 |
;; |
|
13306 |
esac |
|
13307 |
;; |
|
13308 |
solaris*) |
|
13309 |
case $cc_basename in |
|
13310 |
CC) |
|
13311 |
# Sun C++ 4.2, 5.x and Centerline C++ |
|
13312 |
no_undefined_flag_CXX=' -zdefs' |
|
13313 |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
|
13314 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
13315 |
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
|
13316 |
||
13317 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
13318 |
hardcode_shlibpath_var_CXX=no |
|
13319 |
case $host_os in |
|
13320 |
solaris2.0-5 | solaris2.0-5.*) ;; |
|
13321 |
*) |
|
13322 |
# The C++ compiler is used as linker so we must use $wl |
|
13323 |
# flag to pass the commands to the underlying system |
|
13324 |
# linker. |
|
13325 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
|
13326 |
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
13327 |
;; |
|
13328 |
esac |
|
13329 |
link_all_deplibs_CXX=yes |
|
13330 |
||
13331 |
# Commands to make compiler produce verbose output that lists |
|
13332 |
# what "hidden" libraries, object files and flags are used when |
|
13333 |
# linking a shared library. |
|
13334 |
# |
|
13335 |
# There doesn't appear to be a way to prevent this compiler from |
|
13336 |
# explicitly linking system object files so we need to strip them |
|
13337 |
# from the output so that they don't get included in the library |
|
13338 |
# dependencies. |
|
13339 |
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
13340 |
||
13341 |
# Archives containing C++ object files must be created using |
|
13342 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
13343 |
# necessary to make sure instantiated templates are included |
|
13344 |
# in the archive. |
|
13345 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
13346 |
;; |
|
13347 |
gcx) |
|
13348 |
# Green Hills C++ Compiler |
|
13349 |
archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
|
13350 |
||
13351 |
# The C++ compiler must be used to create the archive. |
|
13352 |
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
13353 |
;; |
|
13354 |
*) |
|
13355 |
# GNU C++ compiler with Solaris linker |
|
13356 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
13357 |
no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
|
13358 |
if $CC --version | grep -v '^2\.7' > /dev/null; then |
|
13359 |
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
|
13360 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
13361 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
|
13362 |
||
13363 |
# Commands to make compiler produce verbose output that lists |
|
13364 |
# what "hidden" libraries, object files and flags are used when |
|
13365 |
# linking a shared library. |
|
13366 |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
13367 |
else |
|
13368 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
13369 |
# platform. |
|
13370 |
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
|
13371 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
13372 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
|
13373 |
||
13374 |
# Commands to make compiler produce verbose output that lists |
|
13375 |
# what "hidden" libraries, object files and flags are used when |
|
13376 |
# linking a shared library. |
|
13377 |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
13378 |
fi |
|
13379 |
||
13380 |
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
|
13381 |
fi |
|
13382 |
;; |
|
13383 |
esac |
|
13384 |
;; |
|
13385 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
13386 |
archive_cmds_need_lc_CXX=no |
|
13387 |
;; |
|
13388 |
tandem*) |
|
13389 |
case $cc_basename in |
|
13390 |
NCC) |
|
13391 |
# NonStop-UX NCC 3.20 |
|
13392 |
# FIXME: insert proper C++ library support |
|
13393 |
ld_shlibs_CXX=no |
|
13394 |
;; |
|
13395 |
*) |
|
13396 |
# FIXME: insert proper C++ library support |
|
13397 |
ld_shlibs_CXX=no |
|
13398 |
;; |
|
13399 |
esac |
|
13400 |
;; |
|
13401 |
vxworks*) |
|
13402 |
# FIXME: insert proper C++ library support |
|
13403 |
ld_shlibs_CXX=no |
|
13404 |
;; |
|
13405 |
*) |
|
13406 |
# FIXME: insert proper C++ library support |
|
13407 |
ld_shlibs_CXX=no |
|
13408 |
;; |
|
13409 |
esac |
|
13410 |
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
13411 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
13412 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
13413 |
||
13414 |
GCC_CXX="$GXX" |
|
13415 |
LD_CXX="$LD" |
|
13416 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
13417 |
## CAVEAT EMPTOR: |
13418 |
## There is no encapsulation within the following macros, do not change |
|
13419 |
## the running order or otherwise move them around unless you know exactly |
|
13420 |
## what you are doing... |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
13421 |
|
13422 |
cat > conftest.$ac_ext <<EOF |
|
13423 |
class Foo |
|
13424 |
{ |
|
13425 |
public: |
|
13426 |
Foo (void) { a = 0; } |
|
13427 |
private: |
|
13428 |
int a; |
|
13429 |
}; |
|
13430 |
EOF |
|
13431 |
||
13432 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
13433 |
(eval $ac_compile) 2>&5 |
|
13434 |
ac_status=$? |
|
13435 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13436 |
(exit $ac_status); }; then |
|
13437 |
# Parse the compiler output and extract the necessary |
|
13438 |
# objects, libraries and library flags. |
|
13439 |
||
13440 |
# Sentinel used to keep track of whether or not we are before |
|
13441 |
# the conftest object file. |
|
13442 |
pre_test_object_deps_done=no |
|
13443 |
||
13444 |
# The `*' in the case matches for architectures that use `case' in |
|
13445 |
# $output_verbose_cmd can trigger glob expansion during the loop |
|
13446 |
# eval without this substitution. |
|
13447 |
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
|
13448 |
||
13449 |
for p in `eval $output_verbose_link_cmd`; do |
|
13450 |
case $p in |
|
13451 |
||
13452 |
-L* | -R* | -l*) |
|
13453 |
# Some compilers place space between "-{L,R}" and the path. |
|
13454 |
# Remove the space. |
|
13455 |
if test $p = "-L" \ |
|
13456 |
|| test $p = "-R"; then |
|
13457 |
prev=$p |
|
13458 |
continue |
|
13459 |
else |
|
13460 |
prev= |
|
13461 |
fi |
|
13462 |
||
13463 |
if test "$pre_test_object_deps_done" = no; then |
|
13464 |
case $p in |
|
13465 |
-L* | -R*) |
|
13466 |
# Internal compiler library paths should come after those |
|
13467 |
# provided the user. The postdeps already come after the |
|
13468 |
# user supplied libs so there is no need to process them. |
|
13469 |
if test -z "$compiler_lib_search_path_CXX"; then |
|
13470 |
compiler_lib_search_path_CXX="${prev}${p}" |
|
13471 |
else |
|
13472 |
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
|
13473 |
fi |
|
13474 |
;; |
|
13475 |
# The "-l" case would never come before the object being |
|
13476 |
# linked, so don't bother handling this case. |
|
13477 |
esac |
|
13478 |
else |
|
13479 |
if test -z "$postdeps_CXX"; then |
|
13480 |
postdeps_CXX="${prev}${p}" |
|
13481 |
else |
|
13482 |
postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
|
13483 |
fi |
|
13484 |
fi |
|
13485 |
;; |
|
13486 |
||
13487 |
*.$objext|*.$libext) |
|
13488 |
# This assumes that the test object file only shows up |
|
13489 |
# once in the compiler output. |
|
13490 |
if test "$p" = "conftest.$objext"; then |
|
13491 |
pre_test_object_deps_done=yes |
|
13492 |
continue |
|
13493 |
fi |
|
13494 |
||
13495 |
if test "$pre_test_object_deps_done" = no; then |
|
13496 |
if test -z "$predep_objects_CXX"; then |
|
13497 |
predep_objects_CXX="$p" |
|
13498 |
else |
|
13499 |
predep_objects_CXX="$predep_objects_CXX $p" |
|
13500 |
fi |
|
13501 |
else |
|
13502 |
if test -z "$postdep_objects_CXX"; then |
|
13503 |
postdep_objects_CXX="$p" |
|
13504 |
else |
|
13505 |
postdep_objects_CXX="$postdep_objects_CXX $p" |
|
13506 |
fi |
|
13507 |
fi |
|
13508 |
;; |
|
13509 |
||
13510 |
*) ;; # Ignore the rest. |
|
13511 |
||
13512 |
esac |
|
13513 |
done |
|
13514 |
||
13515 |
# Clean up. |
|
13516 |
rm -f a.out a.exe |
|
13517 |
else |
|
13518 |
echo "libtool.m4: error: problem compiling CXX test program" |
|
13519 |
fi |
|
13520 |
||
13521 |
$rm -f confest.$objext |
|
13522 |
||
13523 |
case " $postdeps_CXX " in |
|
13524 |
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
|
13525 |
esac |
|
13526 |
||
13527 |
lt_prog_compiler_wl_CXX= |
|
13528 |
lt_prog_compiler_pic_CXX= |
|
13529 |
lt_prog_compiler_static_CXX= |
|
13530 |
||
13531 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
13532 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
13533 |
||
13534 |
# C++ specific cases for pic, static, wl, etc. |
|
13535 |
if test "$GXX" = yes; then |
|
13536 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13537 |
lt_prog_compiler_static_CXX='-static' |
|
13538 |
||
13539 |
case $host_os in |
|
13540 |
aix*) |
|
13541 |
# All AIX code is PIC. |
|
13542 |
if test "$host_cpu" = ia64; then |
|
13543 |
# AIX 5 now supports IA64 processor |
|
13544 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
13545 |
fi |
|
13546 |
;; |
|
13547 |
amigaos*) |
|
13548 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
13549 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
13550 |
# like `-m68040'. |
|
13551 |
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
|
13552 |
;; |
|
13553 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
13554 |
# PIC is the default for these OSes. |
|
13555 |
;; |
|
13556 |
mingw* | os2* | pw32*) |
|
13557 |
# This hack is so that the source file can tell whether it is being |
|
13558 |
# built for inclusion in a dll (and should export symbols for example). |
|
13559 |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
|
13560 |
;; |
|
13561 |
darwin* | rhapsody*) |
|
13562 |
# PIC is the default on this platform |
|
13563 |
# Common symbols not allowed in MH_DYLIB files |
|
13564 |
lt_prog_compiler_pic_CXX='-fno-common' |
|
13565 |
;; |
|
13566 |
*djgpp*) |
|
13567 |
# DJGPP does not support shared libraries at all |
|
13568 |
lt_prog_compiler_pic_CXX= |
|
13569 |
;; |
|
13570 |
sysv4*MP*) |
|
13571 |
if test -d /usr/nec; then |
|
13572 |
lt_prog_compiler_pic_CXX=-Kconform_pic |
|
13573 |
fi |
|
13574 |
;; |
|
13575 |
hpux*) |
|
13576 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
13577 |
# not for PA HP-UX. |
|
13578 |
case "$host_cpu" in |
|
13579 |
hppa*64*|ia64*) |
|
13580 |
;; |
|
13581 |
*) |
|
13582 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
13583 |
;; |
|
13584 |
esac |
|
13585 |
;; |
|
13586 |
*) |
|
13587 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
13588 |
;; |
|
13589 |
esac |
|
13590 |
else |
|
13591 |
case $host_os in |
|
13592 |
aix4* | aix5*) |
|
13593 |
# All AIX code is PIC. |
|
13594 |
if test "$host_cpu" = ia64; then |
|
13595 |
# AIX 5 now supports IA64 processor |
|
13596 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
13597 |
else |
|
13598 |
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
|
13599 |
fi |
|
13600 |
;; |
|
13601 |
chorus*) |
|
13602 |
case $cc_basename in |
|
13603 |
cxch68) |
|
13604 |
# Green Hills C++ Compiler |
|
13605 |
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
|
13606 |
;; |
|
13607 |
esac |
|
13608 |
;; |
|
13609 |
dgux*) |
|
13610 |
case $cc_basename in |
|
13611 |
ec++) |
|
13612 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
13613 |
;; |
|
13614 |
ghcx) |
|
13615 |
# Green Hills C++ Compiler |
|
13616 |
lt_prog_compiler_pic_CXX='-pic' |
|
13617 |
;; |
|
13618 |
*) |
|
13619 |
;; |
|
13620 |
esac |
|
13621 |
;; |
|
13622 |
freebsd*) |
|
13623 |
# FreeBSD uses GNU C++ |
|
13624 |
;; |
|
13625 |
hpux9* | hpux10* | hpux11*) |
|
13626 |
case $cc_basename in |
|
13627 |
CC) |
|
13628 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13629 |
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
|
13630 |
if test "$host_cpu" != ia64; then |
|
13631 |
lt_prog_compiler_pic_CXX='+Z' |
|
13632 |
fi |
|
13633 |
;; |
|
13634 |
aCC) |
|
13635 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13636 |
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
|
13637 |
case "$host_cpu" in |
|
13638 |
hppa*64*|ia64*) |
|
13639 |
# +Z the default |
|
13640 |
;; |
|
13641 |
*) |
|
13642 |
lt_prog_compiler_pic_CXX='+Z' |
|
13643 |
;; |
|
13644 |
esac |
|
13645 |
;; |
|
13646 |
*) |
|
13647 |
;; |
|
13648 |
esac |
|
13649 |
;; |
|
13650 |
irix5* | irix6* | nonstopux*) |
|
13651 |
case $cc_basename in |
|
13652 |
CC) |
|
13653 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13654 |
lt_prog_compiler_static_CXX='-non_shared' |
|
13655 |
# CC pic flag -KPIC is the default. |
|
13656 |
;; |
|
13657 |
*) |
|
13658 |
;; |
|
13659 |
esac |
|
13660 |
;; |
|
13661 |
linux*) |
|
13662 |
case $cc_basename in |
|
13663 |
KCC) |
|
13664 |
# KAI C++ Compiler |
|
13665 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
13666 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
13667 |
;; |
|
13668 |
icpc) |
|
13669 |
# Intel C++ |
|
13670 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13671 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
13672 |
lt_prog_compiler_static_CXX='-static' |
|
13673 |
;; |
|
13674 |
cxx) |
|
13675 |
# Compaq C++ |
|
13676 |
# Make sure the PIC flag is empty. It appears that all Alpha |
|
13677 |
# Linux and Compaq Tru64 Unix objects are PIC. |
|
13678 |
lt_prog_compiler_pic_CXX= |
|
13679 |
lt_prog_compiler_static_CXX='-non_shared' |
|
13680 |
;; |
|
13681 |
*) |
|
13682 |
;; |
|
13683 |
esac |
|
13684 |
;; |
|
13685 |
lynxos*) |
|
13686 |
;; |
|
13687 |
m88k*) |
|
13688 |
;; |
|
13689 |
mvs*) |
|
13690 |
case $cc_basename in |
|
13691 |
cxx) |
|
13692 |
lt_prog_compiler_pic_CXX='-W c,exportall' |
|
13693 |
;; |
|
13694 |
*) |
|
13695 |
;; |
|
13696 |
esac |
|
13697 |
;; |
|
13698 |
netbsd*) |
|
13699 |
;; |
|
13700 |
osf3* | osf4* | osf5*) |
|
13701 |
case $cc_basename in |
|
13702 |
KCC) |
|
13703 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
13704 |
;; |
|
13705 |
RCC) |
|
13706 |
# Rational C++ 2.4.1 |
|
13707 |
lt_prog_compiler_pic_CXX='-pic' |
|
13708 |
;; |
|
13709 |
cxx) |
|
13710 |
# Digital/Compaq C++ |
|
13711 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13712 |
# Make sure the PIC flag is empty. It appears that all Alpha |
|
13713 |
# Linux and Compaq Tru64 Unix objects are PIC. |
|
13714 |
lt_prog_compiler_pic_CXX= |
|
13715 |
lt_prog_compiler_static_CXX='-non_shared' |
|
13716 |
;; |
|
13717 |
*) |
|
13718 |
;; |
|
13719 |
esac |
|
13720 |
;; |
|
13721 |
psos*) |
|
13722 |
;; |
|
13723 |
sco*) |
|
13724 |
case $cc_basename in |
|
13725 |
CC) |
|
13726 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
13727 |
;; |
|
13728 |
*) |
|
13729 |
;; |
|
13730 |
esac |
|
13731 |
;; |
|
13732 |
solaris*) |
|
13733 |
case $cc_basename in |
|
13734 |
CC) |
|
13735 |
# Sun C++ 4.2, 5.x and Centerline C++ |
|
13736 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
13737 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
13738 |
lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
13739 |
;; |
|
13740 |
gcx) |
|
13741 |
# Green Hills C++ Compiler |
|
13742 |
lt_prog_compiler_pic_CXX='-PIC' |
|
13743 |
;; |
|
13744 |
*) |
|
13745 |
;; |
|
13746 |
esac |
|
13747 |
;; |
|
13748 |
sunos4*) |
|
13749 |
case $cc_basename in |
|
13750 |
CC) |
|
13751 |
# Sun C++ 4.x |
|
13752 |
lt_prog_compiler_pic_CXX='-pic' |
|
13753 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
13754 |
;; |
|
13755 |
lcc) |
|
13756 |
# Lucid |
|
13757 |
lt_prog_compiler_pic_CXX='-pic' |
|
13758 |
;; |
|
13759 |
*) |
|
13760 |
;; |
|
13761 |
esac |
|
13762 |
;; |
|
13763 |
tandem*) |
|
13764 |
case $cc_basename in |
|
13765 |
NCC) |
|
13766 |
# NonStop-UX NCC 3.20 |
|
13767 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
13768 |
;; |
|
13769 |
*) |
|
13770 |
;; |
|
13771 |
esac |
|
13772 |
;; |
|
13773 |
unixware*) |
|
13774 |
;; |
|
13775 |
vxworks*) |
|
13776 |
;; |
|
13777 |
*) |
|
13778 |
lt_prog_compiler_can_build_shared_CXX=no |
|
13779 |
;; |
|
13780 |
esac |
|
13781 |
fi |
|
13782 |
||
13783 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
|
13784 |
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
|
13785 |
||
13786 |
# |
|
13787 |
# Check to make sure the PIC flag actually works. |
|
13788 |
# |
|
13789 |
if test -n "$lt_prog_compiler_pic_CXX"; then |
|
13790 |
||
13791 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
|
13792 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
|
13793 |
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
|
13794 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13795 |
else |
|
13796 |
lt_prog_compiler_pic_works_CXX=no |
|
13797 |
ac_outfile=conftest.$ac_objext |
|
13798 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13799 |
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
|
13800 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
13801 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
13802 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
13803 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
13804 |
# The option is referenced via a variable to avoid confusing sed. |
|
13805 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
13806 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
13807 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
13808 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
13809 |
(eval echo "\"\$as_me:13809: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
13810 |
(eval "$lt_compile" 2>conftest.err) |
13811 |
ac_status=$? |
|
13812 |
cat conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
13813 |
echo "$as_me:13813: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
13814 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
13815 |
# The compiler can only warn and ignore the option if not recognized |
|
13816 |
# So say no if there are warnings |
|
13817 |
if test ! -s conftest.err; then |
|
13818 |
lt_prog_compiler_pic_works_CXX=yes |
|
13819 |
fi |
|
13820 |
fi |
|
13821 |
$rm conftest* |
|
13822 |
||
13823 |
fi |
|
13824 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
|
13825 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
|
13826 |
||
13827 |
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
|
13828 |
case $lt_prog_compiler_pic_CXX in |
|
13829 |
"" | " "*) ;; |
|
13830 |
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
|
13831 |
esac |
|
13832 |
else |
|
13833 |
lt_prog_compiler_pic_CXX= |
|
13834 |
lt_prog_compiler_can_build_shared_CXX=no |
|
13835 |
fi |
|
13836 |
||
13837 |
fi |
|
13838 |
case "$host_os" in |
|
13839 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
13840 |
*djgpp*) |
|
13841 |
lt_prog_compiler_pic_CXX= |
|
13842 |
;; |
|
13843 |
*) |
|
13844 |
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
|
13845 |
;; |
|
13846 |
esac |
|
13847 |
||
13848 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
13849 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
13850 |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
|
13851 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13852 |
else |
|
13853 |
lt_cv_prog_compiler_c_o_CXX=no |
|
13854 |
$rm -r conftest 2>/dev/null |
|
13855 |
mkdir conftest |
|
13856 |
cd conftest |
|
13857 |
mkdir out |
|
13858 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13859 |
||
13860 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
13861 |
# that will create temporary files in the current directory regardless of |
|
13862 |
# the output directory. Thus, making CWD read-only will cause this test |
|
13863 |
# to fail, enabling locking or at least warning the user not to do parallel |
|
13864 |
# builds. |
|
13865 |
chmod -w . |
|
13866 |
||
13867 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
13868 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
13869 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
13870 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
13871 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
13872 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
13873 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
13874 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
13875 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
13876 |
(eval echo "\"\$as_me:13876: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
13877 |
(eval "$lt_compile" 2>out/conftest.err) |
13878 |
ac_status=$? |
|
13879 |
cat out/conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
13880 |
echo "$as_me:13880: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
13881 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13882 |
then |
|
13883 |
# The compiler can only warn and ignore the option if not recognized |
|
13884 |
# So say no if there are warnings |
|
13885 |
if test ! -s out/conftest.err; then |
|
13886 |
lt_cv_prog_compiler_c_o_CXX=yes |
|
13887 |
fi |
|
13888 |
fi |
|
13889 |
chmod u+w . |
|
13890 |
$rm conftest* out/* |
|
13891 |
rmdir out |
|
13892 |
cd .. |
|
13893 |
rmdir conftest |
|
13894 |
$rm conftest* |
|
13895 |
||
13896 |
fi |
|
13897 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
|
13898 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
|
13899 |
||
13900 |
||
13901 |
hard_links="nottested" |
|
13902 |
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
|
13903 |
# do not overwrite the value of need_locks provided by the user |
|
13904 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
13905 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
13906 |
hard_links=yes |
|
13907 |
$rm conftest* |
|
13908 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
13909 |
touch conftest.a |
|
13910 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
13911 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
13912 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
13913 |
echo "${ECHO_T}$hard_links" >&6 |
|
13914 |
if test "$hard_links" = no; then |
|
13915 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
13916 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
13917 |
need_locks=warn |
|
13918 |
fi |
|
13919 |
else |
|
13920 |
need_locks=no |
|
13921 |
fi |
|
13922 |
||
13923 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
13924 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
13925 |
||
13926 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
13927 |
case $host_os in |
|
13928 |
aix4* | aix5*) |
|
13929 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
13930 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
13931 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
13932 |
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
13933 |
else |
|
13934 |
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
13935 |
fi |
|
13936 |
;; |
|
13937 |
pw32*) |
|
13938 |
export_symbols_cmds_CXX="$ltdll_cmds" |
|
13939 |
;; |
|
13940 |
cygwin* | mingw*) |
|
13941 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
13942 |
;; |
|
13943 |
*) |
|
13944 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
13945 |
;; |
|
13946 |
esac |
|
13947 |
||
13948 |
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
13949 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
13950 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
13951 |
||
13952 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
13953 |
if test "$GCC" = yes; then |
|
13954 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
13955 |
fi |
|
13956 |
||
13957 |
# |
|
13958 |
# Do we need to explicitly link libc? |
|
13959 |
# |
|
13960 |
case "x$archive_cmds_need_lc_CXX" in |
|
13961 |
x|xyes) |
|
13962 |
# Assume -lc should be added |
|
13963 |
archive_cmds_need_lc_CXX=yes |
|
13964 |
||
13965 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
13966 |
case $archive_cmds_CXX in |
|
13967 |
*'~'*) |
|
13968 |
# FIXME: we may have to deal with multi-command sequences. |
|
13969 |
;; |
|
13970 |
'$CC '*) |
|
13971 |
# Test whether the compiler implicitly links with -lc since on some |
|
13972 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
13973 |
# to ld, don't add -lc before -lgcc. |
|
13974 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
13975 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
13976 |
$rm conftest* |
|
13977 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13978 |
||
13979 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
13980 |
(eval $ac_compile) 2>&5 |
|
13981 |
ac_status=$? |
|
13982 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13983 |
(exit $ac_status); } 2>conftest.err; then |
|
13984 |
soname=conftest |
|
13985 |
lib=conftest |
|
13986 |
libobjs=conftest.$ac_objext |
|
13987 |
deplibs= |
|
13988 |
wl=$lt_prog_compiler_wl_CXX |
|
13989 |
compiler_flags=-v |
|
13990 |
linker_flags=-v |
|
13991 |
verstring= |
|
13992 |
output_objdir=. |
|
13993 |
libname=conftest |
|
13994 |
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
|
13995 |
allow_undefined_flag_CXX= |
|
13996 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
13997 |
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
13998 |
ac_status=$? |
|
13999 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14000 |
(exit $ac_status); } |
|
14001 |
then |
|
14002 |
archive_cmds_need_lc_CXX=no |
|
14003 |
else |
|
14004 |
archive_cmds_need_lc_CXX=yes |
|
14005 |
fi |
|
14006 |
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
|
14007 |
else |
|
14008 |
cat conftest.err 1>&5 |
|
14009 |
fi |
|
14010 |
$rm conftest* |
|
14011 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
|
14012 |
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
|
14013 |
;; |
|
14014 |
esac |
|
14015 |
fi |
|
14016 |
;; |
|
14017 |
esac |
|
14018 |
||
14019 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
14020 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
14021 |
library_names_spec= |
|
14022 |
libname_spec='lib$name' |
|
14023 |
soname_spec= |
|
14024 |
shrext=".so" |
|
14025 |
postinstall_cmds= |
|
14026 |
postuninstall_cmds= |
|
14027 |
finish_cmds= |
|
14028 |
finish_eval= |
|
14029 |
shlibpath_var= |
|
14030 |
shlibpath_overrides_runpath=unknown |
|
14031 |
version_type=none |
|
14032 |
dynamic_linker="$host_os ld.so" |
|
14033 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
14034 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
14035 |
need_lib_prefix=unknown |
|
14036 |
hardcode_into_libs=no |
|
14037 |
||
14038 |
# when you set need_version to no, make sure it does not cause -set_version |
|
14039 |
# flags to be left without arguments |
|
14040 |
need_version=unknown |
|
14041 |
||
14042 |
case $host_os in |
|
14043 |
aix3*) |
|
14044 |
version_type=linux |
|
14045 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
14046 |
shlibpath_var=LIBPATH |
|
14047 |
||
14048 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
14049 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14050 |
;; |
|
14051 |
||
14052 |
aix4* | aix5*) |
|
14053 |
version_type=linux |
|
14054 |
need_lib_prefix=no |
|
14055 |
need_version=no |
|
14056 |
hardcode_into_libs=yes |
|
14057 |
if test "$host_cpu" = ia64; then |
|
14058 |
# AIX 5 supports IA64 |
|
14059 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
14060 |
shlibpath_var=LD_LIBRARY_PATH |
|
14061 |
else |
|
14062 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
14063 |
# for dependence libraries. The import file would start with |
|
14064 |
# the line `#! .'. This would cause the generated library to |
|
14065 |
# depend on `.', always an invalid library. This was fixed in |
|
14066 |
# development snapshots of GCC prior to 3.0. |
|
14067 |
case $host_os in |
|
14068 |
aix4 | aix4.[01] | aix4.[01].*) |
|
14069 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
14070 |
echo ' yes ' |
|
14071 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
14072 |
: |
|
14073 |
else |
|
14074 |
can_build_shared=no |
|
14075 |
fi |
|
14076 |
;; |
|
14077 |
esac |
|
14078 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
14079 |
# soname into executable. Probably we can add versioning support to |
|
14080 |
# collect2, so additional links can be useful in future. |
|
14081 |
if test "$aix_use_runtimelinking" = yes; then |
|
14082 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
14083 |
# instead of lib<name>.a to let people know that these are not |
|
14084 |
# typical AIX shared libraries. |
|
14085 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14086 |
else |
|
14087 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
14088 |
# and later when we are not doing run time linking. |
|
14089 |
library_names_spec='${libname}${release}.a $libname.a' |
|
14090 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14091 |
fi |
|
14092 |
shlibpath_var=LIBPATH |
|
14093 |
fi |
|
14094 |
;; |
|
14095 |
||
14096 |
amigaos*) |
|
14097 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
14098 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
14099 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
|
14100 |
;; |
|
14101 |
||
14102 |
beos*) |
|
14103 |
library_names_spec='${libname}${shared_ext}' |
|
14104 |
dynamic_linker="$host_os ld.so" |
|
14105 |
shlibpath_var=LIBRARY_PATH |
|
14106 |
;; |
|
14107 |
||
14108 |
bsdi4*) |
|
14109 |
version_type=linux |
|
14110 |
need_version=no |
|
14111 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14112 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14113 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
14114 |
shlibpath_var=LD_LIBRARY_PATH |
|
14115 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
14116 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
14117 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
14118 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
14119 |
# libtool to hard-code these into programs |
|
14120 |
;; |
|
14121 |
||
14122 |
cygwin* | mingw* | pw32*) |
|
14123 |
version_type=windows |
|
14124 |
shrext=".dll" |
|
14125 |
need_version=no |
|
14126 |
need_lib_prefix=no |
|
14127 |
||
14128 |
case $GCC,$host_os in |
|
14129 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
14130 |
library_names_spec='$libname.dll.a' |
|
14131 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
14132 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
14133 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
14134 |
dldir=$destdir/`dirname \$dlpath`~ |
|
14135 |
test -d \$dldir || mkdir -p \$dldir~ |
|
14136 |
$install_prog $dir/$dlname \$dldir/$dlname' |
|
14137 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
14138 |
dlpath=$dir/\$dldll~ |
|
14139 |
$rm \$dlpath' |
|
14140 |
shlibpath_overrides_runpath=yes |
|
14141 |
||
14142 |
case $host_os in |
|
14143 |
cygwin*) |
|
14144 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
14145 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
14146 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
14147 |
;; |
|
14148 |
mingw*) |
|
14149 |
# MinGW DLLs use traditional 'lib' prefix |
|
14150 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
14151 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
14152 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
14153 |
# It is most probably a Windows format PATH printed by |
|
14154 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
14155 |
# path with ; separators, and with drive letters. We can handle the |
|
14156 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
14157 |
# especially as we might pass files found there to a mingw objdump, |
|
14158 |
# which wouldn't understand a cygwinified path. Ahh. |
|
14159 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
14160 |
else |
|
14161 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
14162 |
fi |
|
14163 |
;; |
|
14164 |
pw32*) |
|
14165 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
14166 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
14167 |
;; |
|
14168 |
esac |
|
14169 |
;; |
|
14170 |
||
14171 |
*) |
|
14172 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
14173 |
;; |
|
14174 |
esac |
|
14175 |
dynamic_linker='Win32 ld.exe' |
|
14176 |
# FIXME: first we should search . and the directory the executable is in |
|
14177 |
shlibpath_var=PATH |
|
14178 |
;; |
|
14179 |
||
14180 |
darwin* | rhapsody*) |
|
14181 |
dynamic_linker="$host_os dyld" |
|
14182 |
version_type=darwin |
|
14183 |
need_lib_prefix=no |
|
14184 |
need_version=no |
|
14185 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
14186 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
14187 |
shlibpath_overrides_runpath=yes |
|
14188 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
14189 |
shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
|
14190 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
14191 |
if test "$GCC" = yes; then |
|
14192 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
14193 |
else |
|
14194 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
14195 |
fi |
|
14196 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
14197 |
;; |
|
14198 |
||
14199 |
dgux*) |
|
14200 |
version_type=linux |
|
14201 |
need_lib_prefix=no |
|
14202 |
need_version=no |
|
14203 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
14204 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14205 |
shlibpath_var=LD_LIBRARY_PATH |
|
14206 |
;; |
|
14207 |
||
14208 |
freebsd1*) |
|
14209 |
dynamic_linker=no |
|
14210 |
;; |
|
14211 |
||
14212 |
freebsd*-gnu*) |
|
14213 |
version_type=linux |
|
14214 |
need_lib_prefix=no |
|
14215 |
need_version=no |
|
14216 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
14217 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14218 |
shlibpath_var=LD_LIBRARY_PATH |
|
14219 |
shlibpath_overrides_runpath=no |
|
14220 |
hardcode_into_libs=yes |
|
14221 |
dynamic_linker='GNU ld.so' |
|
14222 |
;; |
|
14223 |
||
14224 |
freebsd*) |
|
14225 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
14226 |
version_type=freebsd-$objformat |
|
14227 |
case $version_type in |
|
14228 |
freebsd-elf*) |
|
14229 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
14230 |
need_version=no |
|
14231 |
need_lib_prefix=no |
|
14232 |
;; |
|
14233 |
freebsd-*) |
|
14234 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
14235 |
need_version=yes |
|
14236 |
;; |
|
14237 |
esac |
|
14238 |
shlibpath_var=LD_LIBRARY_PATH |
|
14239 |
case $host_os in |
|
14240 |
freebsd2*) |
|
14241 |
shlibpath_overrides_runpath=yes |
|
14242 |
;; |
|
14243 |
freebsd3.01* | freebsdelf3.01*) |
|
14244 |
shlibpath_overrides_runpath=yes |
|
14245 |
hardcode_into_libs=yes |
|
14246 |
;; |
|
14247 |
*) # from 3.2 on |
|
14248 |
shlibpath_overrides_runpath=no |
|
14249 |
hardcode_into_libs=yes |
|
14250 |
;; |
|
14251 |
esac |
|
14252 |
;; |
|
14253 |
||
14254 |
gnu*) |
|
14255 |
version_type=linux |
|
14256 |
need_lib_prefix=no |
|
14257 |
need_version=no |
|
14258 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
14259 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14260 |
shlibpath_var=LD_LIBRARY_PATH |
|
14261 |
hardcode_into_libs=yes |
|
14262 |
;; |
|
14263 |
||
14264 |
hpux9* | hpux10* | hpux11*) |
|
14265 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
14266 |
# link against other versions. |
|
14267 |
version_type=sunos |
|
14268 |
need_lib_prefix=no |
|
14269 |
need_version=no |
|
14270 |
case "$host_cpu" in |
|
14271 |
ia64*) |
|
14272 |
shrext='.so' |
|
14273 |
hardcode_into_libs=yes |
|
14274 |
dynamic_linker="$host_os dld.so" |
|
14275 |
shlibpath_var=LD_LIBRARY_PATH |
|
14276 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
14277 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14278 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14279 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
14280 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
14281 |
else |
|
14282 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
14283 |
fi |
|
14284 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
14285 |
;; |
|
14286 |
hppa*64*) |
|
14287 |
shrext='.sl' |
|
14288 |
hardcode_into_libs=yes |
|
14289 |
dynamic_linker="$host_os dld.sl" |
|
14290 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
14291 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
14292 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14293 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14294 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
14295 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
14296 |
;; |
|
14297 |
*) |
|
14298 |
shrext='.sl' |
|
14299 |
dynamic_linker="$host_os dld.sl" |
|
14300 |
shlibpath_var=SHLIB_PATH |
|
14301 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
14302 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14303 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14304 |
;; |
|
14305 |
esac |
|
14306 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
14307 |
postinstall_cmds='chmod 555 $lib' |
|
14308 |
;; |
|
14309 |
||
14310 |
irix5* | irix6* | nonstopux*) |
|
14311 |
case $host_os in |
|
14312 |
nonstopux*) version_type=nonstopux ;; |
|
14313 |
*) |
|
14314 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
14315 |
version_type=linux |
|
14316 |
else |
|
14317 |
version_type=irix |
|
14318 |
fi ;; |
|
14319 |
esac |
|
14320 |
need_lib_prefix=no |
|
14321 |
need_version=no |
|
14322 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14323 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
14324 |
case $host_os in |
|
14325 |
irix5* | nonstopux*) |
|
14326 |
libsuff= shlibsuff= |
|
14327 |
;; |
|
14328 |
*) |
|
14329 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
14330 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
14331 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
14332 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
14333 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
14334 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
14335 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
14336 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
14337 |
esac |
|
14338 |
;; |
|
14339 |
esac |
|
14340 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
14341 |
shlibpath_overrides_runpath=no |
|
14342 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
14343 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
14344 |
hardcode_into_libs=yes |
|
14345 |
;; |
|
14346 |
||
14347 |
# No shared lib support for Linux oldld, aout, or coff. |
|
14348 |
linux*oldld* | linux*aout* | linux*coff*) |
|
14349 |
dynamic_linker=no |
|
14350 |
;; |
|
14351 |
||
14352 |
# This must be Linux ELF. |
|
14353 |
linux*) |
|
14354 |
version_type=linux |
|
14355 |
need_lib_prefix=no |
|
14356 |
need_version=no |
|
14357 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14358 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14359 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
14360 |
libsuff= |
|
14361 |
if test "x$LINUX_64_MODE" = x64; then |
|
14362 |
# Some platforms are per default 64-bit, so there's no /lib64 |
|
14363 |
if test -d /lib64; then |
|
14364 |
libsuff=64 |
|
14365 |
fi |
|
14366 |
fi |
|
14367 |
shlibpath_var=LD_LIBRARY_PATH |
|
14368 |
shlibpath_overrides_runpath=no |
|
14369 |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
|
14370 |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
|
14371 |
# This implies no fast_install, which is unacceptable. |
|
14372 |
# Some rework will be needed to allow for fast_install |
|
14373 |
# before this can be enabled. |
|
14374 |
hardcode_into_libs=yes |
|
14375 |
||
14376 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
14377 |
# powerpc, because MkLinux only supported shared libraries with the |
|
14378 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
14379 |
# most powerpc-linux boxes support dynamic linking these days and |
|
14380 |
# people can always --disable-shared, the test was removed, and we |
|
14381 |
# assume the GNU/Linux dynamic linker is in use. |
|
14382 |
dynamic_linker='GNU/Linux ld.so' |
|
14383 |
;; |
|
14384 |
||
14385 |
netbsd*) |
|
14386 |
version_type=sunos |
|
14387 |
need_lib_prefix=no |
|
14388 |
need_version=no |
|
14389 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
14390 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
14391 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
14392 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
14393 |
else |
|
14394 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
|
14395 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14396 |
dynamic_linker='NetBSD ld.elf_so' |
|
14397 |
fi |
|
14398 |
shlibpath_var=LD_LIBRARY_PATH |
|
14399 |
shlibpath_overrides_runpath=yes |
|
14400 |
hardcode_into_libs=yes |
|
14401 |
;; |
|
14402 |
||
14403 |
newsos6) |
|
14404 |
version_type=linux |
|
14405 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14406 |
shlibpath_var=LD_LIBRARY_PATH |
|
14407 |
shlibpath_overrides_runpath=yes |
|
14408 |
;; |
|
14409 |
||
14410 |
nto-qnx*) |
|
14411 |
version_type=linux |
|
14412 |
need_lib_prefix=no |
|
14413 |
need_version=no |
|
14414 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14415 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14416 |
shlibpath_var=LD_LIBRARY_PATH |
|
14417 |
shlibpath_overrides_runpath=yes |
|
14418 |
;; |
|
14419 |
||
14420 |
openbsd*) |
|
14421 |
version_type=sunos |
|
14422 |
need_lib_prefix=no |
|
14423 |
need_version=no |
|
14424 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
14425 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
14426 |
shlibpath_var=LD_LIBRARY_PATH |
|
14427 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
14428 |
case $host_os in |
|
14429 |
openbsd2.[89] | openbsd2.[89].*) |
|
14430 |
shlibpath_overrides_runpath=no |
|
14431 |
;; |
|
14432 |
*) |
|
14433 |
shlibpath_overrides_runpath=yes |
|
14434 |
;; |
|
14435 |
esac |
|
14436 |
else |
|
14437 |
shlibpath_overrides_runpath=yes |
|
14438 |
fi |
|
14439 |
;; |
|
14440 |
||
14441 |
os2*) |
|
14442 |
libname_spec='$name' |
|
14443 |
shrext=".dll" |
|
14444 |
need_lib_prefix=no |
|
14445 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
14446 |
dynamic_linker='OS/2 ld.exe' |
|
14447 |
shlibpath_var=LIBPATH |
|
14448 |
;; |
|
14449 |
||
14450 |
osf3* | osf4* | osf5*) |
|
14451 |
version_type=osf |
|
14452 |
need_lib_prefix=no |
|
14453 |
need_version=no |
|
14454 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14455 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14456 |
shlibpath_var=LD_LIBRARY_PATH |
|
14457 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
14458 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
14459 |
;; |
|
14460 |
||
14461 |
sco3.2v5*) |
|
14462 |
version_type=osf |
|
14463 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14464 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14465 |
shlibpath_var=LD_LIBRARY_PATH |
|
14466 |
;; |
|
14467 |
||
14468 |
solaris*) |
|
14469 |
version_type=linux |
|
14470 |
need_lib_prefix=no |
|
14471 |
need_version=no |
|
14472 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14473 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14474 |
shlibpath_var=LD_LIBRARY_PATH |
|
14475 |
shlibpath_overrides_runpath=yes |
|
14476 |
hardcode_into_libs=yes |
|
14477 |
# ldd complains unless libraries are executable |
|
14478 |
postinstall_cmds='chmod +x $lib' |
|
14479 |
;; |
|
14480 |
||
14481 |
sunos4*) |
|
14482 |
version_type=sunos |
|
14483 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
14484 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
14485 |
shlibpath_var=LD_LIBRARY_PATH |
|
14486 |
shlibpath_overrides_runpath=yes |
|
14487 |
if test "$with_gnu_ld" = yes; then |
|
14488 |
need_lib_prefix=no |
|
14489 |
fi |
|
14490 |
need_version=yes |
|
14491 |
;; |
|
14492 |
||
14493 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
14494 |
version_type=linux |
|
14495 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14496 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14497 |
shlibpath_var=LD_LIBRARY_PATH |
|
14498 |
case $host_vendor in |
|
14499 |
sni) |
|
14500 |
shlibpath_overrides_runpath=no |
|
14501 |
need_lib_prefix=no |
|
14502 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
14503 |
runpath_var=LD_RUN_PATH |
|
14504 |
;; |
|
14505 |
siemens) |
|
14506 |
need_lib_prefix=no |
|
14507 |
;; |
|
14508 |
motorola) |
|
14509 |
need_lib_prefix=no |
|
14510 |
need_version=no |
|
14511 |
shlibpath_overrides_runpath=no |
|
14512 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
14513 |
;; |
|
14514 |
esac |
|
14515 |
;; |
|
14516 |
||
14517 |
sysv4*MP*) |
|
14518 |
if test -d /usr/nec ;then |
|
14519 |
version_type=linux |
|
14520 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
14521 |
soname_spec='$libname${shared_ext}.$major' |
|
14522 |
shlibpath_var=LD_LIBRARY_PATH |
|
14523 |
fi |
|
14524 |
;; |
|
14525 |
||
14526 |
uts4*) |
|
14527 |
version_type=linux |
|
14528 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14529 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14530 |
shlibpath_var=LD_LIBRARY_PATH |
|
14531 |
;; |
|
14532 |
||
14533 |
*) |
|
14534 |
dynamic_linker=no |
|
14535 |
;; |
|
14536 |
esac |
|
14537 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
14538 |
echo "${ECHO_T}$dynamic_linker" >&6 |
|
14539 |
test "$dynamic_linker" = no && can_build_shared=no |
|
14540 |
||
14541 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
14542 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
14543 |
hardcode_action_CXX= |
|
14544 |
if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
|
14545 |
test -n "$runpath_var CXX" || \ |
|
14546 |
test "X$hardcode_automatic_CXX"="Xyes" ; then |
|
14547 |
||
14548 |
# We can hardcode non-existant directories. |
|
14549 |
if test "$hardcode_direct_CXX" != no && |
|
14550 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
14551 |
# have to relink, otherwise we might link with an installed library |
|
14552 |
# when we should be linking with a yet-to-be-installed one |
|
14553 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
|
14554 |
test "$hardcode_minus_L_CXX" != no; then |
|
14555 |
# Linking always hardcodes the temporary library directory. |
|
14556 |
hardcode_action_CXX=relink |
|
14557 |
else |
|
14558 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
14559 |
hardcode_action_CXX=immediate |
|
14560 |
fi |
|
14561 |
else |
|
14562 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
14563 |
# directories. |
|
14564 |
hardcode_action_CXX=unsupported |
|
14565 |
fi |
|
14566 |
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
|
14567 |
echo "${ECHO_T}$hardcode_action_CXX" >&6 |
|
14568 |
||
14569 |
if test "$hardcode_action_CXX" = relink; then |
|
14570 |
# Fast installation is not supported |
|
14571 |
enable_fast_install=no |
|
14572 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
14573 |
test "$enable_shared" = no; then |
|
14574 |
# Fast installation is not necessary |
|
14575 |
enable_fast_install=needless |
|
14576 |
fi |
|
14577 |
||
14578 |
striplib= |
|
14579 |
old_striplib= |
|
14580 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
14581 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
14582 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
14583 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
14584 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
14585 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
14586 |
echo "${ECHO_T}yes" >&6 |
|
14587 |
else |
|
14588 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
14589 |
case $host_os in |
|
14590 |
darwin*) |
|
14591 |
if test -n "$STRIP" ; then |
|
14592 |
striplib="$STRIP -x" |
|
14593 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
14594 |
echo "${ECHO_T}yes" >&6 |
|
14595 |
else |
|
14596 |
echo "$as_me:$LINENO: result: no" >&5 |
|
14597 |
echo "${ECHO_T}no" >&6 |
|
14598 |
fi |
|
14599 |
;; |
|
14600 |
*) |
|
14601 |
echo "$as_me:$LINENO: result: no" >&5 |
|
14602 |
echo "${ECHO_T}no" >&6 |
|
14603 |
;; |
|
14604 |
esac |
|
14605 |
fi |
|
14606 |
||
14607 |
if test "x$enable_dlopen" != xyes; then |
|
14608 |
enable_dlopen=unknown |
|
14609 |
enable_dlopen_self=unknown |
|
14610 |
enable_dlopen_self_static=unknown |
|
14611 |
else |
|
14612 |
lt_cv_dlopen=no |
|
14613 |
lt_cv_dlopen_libs= |
|
14614 |
||
14615 |
case $host_os in |
|
14616 |
beos*) |
|
14617 |
lt_cv_dlopen="load_add_on" |
|
14618 |
lt_cv_dlopen_libs= |
|
14619 |
lt_cv_dlopen_self=yes |
|
14620 |
;; |
|
14621 |
||
14622 |
mingw* | pw32*) |
|
14623 |
lt_cv_dlopen="LoadLibrary" |
|
14624 |
lt_cv_dlopen_libs= |
|
14625 |
;; |
|
14626 |
||
14627 |
cygwin*) |
|
14628 |
lt_cv_dlopen="dlopen" |
|
14629 |
lt_cv_dlopen_libs= |
|
14630 |
;; |
|
14631 |
||
14632 |
darwin*) |
|
14633 |
# if libdl is installed we need to link against it |
|
14634 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
14635 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
14636 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
14637 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14638 |
else |
|
14639 |
ac_check_lib_save_LIBS=$LIBS |
|
14640 |
LIBS="-ldl $LIBS" |
|
14641 |
cat >conftest.$ac_ext <<_ACEOF |
|
14642 |
/* confdefs.h. */ |
|
14643 |
_ACEOF |
|
14644 |
cat confdefs.h >>conftest.$ac_ext |
|
14645 |
cat >>conftest.$ac_ext <<_ACEOF |
|
14646 |
/* end confdefs.h. */ |
|
14647 |
||
14648 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
14649 |
#ifdef __cplusplus |
|
14650 |
extern "C" |
|
14651 |
#endif |
|
14652 |
/* We use char because int might match the return type of a gcc2 |
|
14653 |
builtin and then its argument prototype would still apply. */ |
|
14654 |
char dlopen (); |
|
14655 |
int |
|
14656 |
main () |
|
14657 |
{ |
|
14658 |
dlopen (); |
|
14659 |
; |
|
14660 |
return 0; |
|
14661 |
} |
|
14662 |
_ACEOF |
|
14663 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
14664 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
14665 |
(eval $ac_link) 2>conftest.er1 |
|
14666 |
ac_status=$? |
|
14667 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
14668 |
rm -f conftest.er1 |
|
14669 |
cat conftest.err >&5 |
|
14670 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14671 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
14672 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
14673 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14674 |
(eval $ac_try) 2>&5 |
|
14675 |
ac_status=$? |
|
14676 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14677 |
(exit $ac_status); }; } && |
|
14678 |
{ ac_try='test -s conftest$ac_exeext' |
|
14679 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
14680 |
(eval $ac_try) 2>&5 |
|
14681 |
ac_status=$? |
|
14682 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14683 |
(exit $ac_status); }; }; then |
|
14684 |
ac_cv_lib_dl_dlopen=yes |
|
14685 |
else |
|
14686 |
echo "$as_me: failed program was:" >&5 |
|
14687 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
14688 |
||
14689 |
ac_cv_lib_dl_dlopen=no |
|
14690 |
fi |
|
14691 |
rm -f conftest.err conftest.$ac_objext \ |
|
14692 |
conftest$ac_exeext conftest.$ac_ext |
|
14693 |
LIBS=$ac_check_lib_save_LIBS |
|
14694 |
fi |
|
14695 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
14696 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
14697 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
14698 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
14699 |
else |
|
14700 |
||
14701 |
lt_cv_dlopen="dyld" |
|
14702 |
lt_cv_dlopen_libs= |
|
14703 |
lt_cv_dlopen_self=yes |
|
14704 |
||
14705 |
fi |
|
14706 |
||
14707 |
;; |
|
14708 |
||
14709 |
*) |
|
14710 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
14711 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
14712 |
if test "${ac_cv_func_shl_load+set}" = set; then |
|
14713 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14714 |
else |
|
14715 |
cat >conftest.$ac_ext <<_ACEOF |
|
14716 |
/* confdefs.h. */ |
|
14717 |
_ACEOF |
|
14718 |
cat confdefs.h >>conftest.$ac_ext |
|
14719 |
cat >>conftest.$ac_ext <<_ACEOF |
|
14720 |
/* end confdefs.h. */ |
|
14721 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
14722 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
14723 |
#define shl_load innocuous_shl_load |
|
14724 |
||
14725 |
/* System header to define __stub macros and hopefully few prototypes, |
|
14726 |
which can conflict with char shl_load (); below. |
|
14727 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
14728 |
<limits.h> exists even on freestanding compilers. */ |
|
14729 |
||
14730 |
#ifdef __STDC__ |
|
14731 |
# include <limits.h> |
|
14732 |
#else |
|
14733 |
# include <assert.h> |
|
14734 |
#endif |
|
14735 |
||
14736 |
#undef shl_load |
|
14737 |
||
14738 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
14739 |
#ifdef __cplusplus |
|
14740 |
extern "C" |
|
14741 |
{ |
|
14742 |
#endif |
|
14743 |
/* We use char because int might match the return type of a gcc2 |
|
14744 |
builtin and then its argument prototype would still apply. */ |
|
14745 |
char shl_load (); |
|
14746 |
/* The GNU C library defines this for functions which it implements |
|
14747 |
to always fail with ENOSYS. Some functions are actually named |
|
14748 |
something starting with __ and the normal name is an alias. */ |
|
14749 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
14750 |
choke me |
|
14751 |
#else |
|
14752 |
char (*f) () = shl_load; |
|
14753 |
#endif |
|
14754 |
#ifdef __cplusplus |
|
14755 |
} |
|
14756 |
#endif |
|
14757 |
||
14758 |
int |
|
14759 |
main () |
|
14760 |
{ |
|
14761 |
return f != shl_load; |
|
14762 |
; |
|
14763 |
return 0; |
|
14764 |
} |
|
14765 |
_ACEOF |
|
14766 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
14767 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
14768 |
(eval $ac_link) 2>conftest.er1 |
|
14769 |
ac_status=$? |
|
14770 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
14771 |
rm -f conftest.er1 |
|
14772 |
cat conftest.err >&5 |
|
14773 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14774 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
14775 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
14776 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14777 |
(eval $ac_try) 2>&5 |
|
14778 |
ac_status=$? |
|
14779 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14780 |
(exit $ac_status); }; } && |
|
14781 |
{ ac_try='test -s conftest$ac_exeext' |
|
14782 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
14783 |
(eval $ac_try) 2>&5 |
|
14784 |
ac_status=$? |
|
14785 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14786 |
(exit $ac_status); }; }; then |
|
14787 |
ac_cv_func_shl_load=yes |
|
14788 |
else |
|
14789 |
echo "$as_me: failed program was:" >&5 |
|
14790 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
14791 |
||
14792 |
ac_cv_func_shl_load=no |
|
14793 |
fi |
|
14794 |
rm -f conftest.err conftest.$ac_objext \ |
|
14795 |
conftest$ac_exeext conftest.$ac_ext |
|
14796 |
fi |
|
14797 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
14798 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
14799 |
if test $ac_cv_func_shl_load = yes; then |
|
14800 |
lt_cv_dlopen="shl_load" |
|
14801 |
else |
|
14802 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
14803 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
14804 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
14805 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14806 |
else |
|
14807 |
ac_check_lib_save_LIBS=$LIBS |
|
14808 |
LIBS="-ldld $LIBS" |
|
14809 |
cat >conftest.$ac_ext <<_ACEOF |
|
14810 |
/* confdefs.h. */ |
|
14811 |
_ACEOF |
|
14812 |
cat confdefs.h >>conftest.$ac_ext |
|
14813 |
cat >>conftest.$ac_ext <<_ACEOF |
|
14814 |
/* end confdefs.h. */ |
|
14815 |
||
14816 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
14817 |
#ifdef __cplusplus |
|
14818 |
extern "C" |
|
14819 |
#endif |
|
14820 |
/* We use char because int might match the return type of a gcc2 |
|
14821 |
builtin and then its argument prototype would still apply. */ |
|
14822 |
char shl_load (); |
|
14823 |
int |
|
14824 |
main () |
|
14825 |
{ |
|
14826 |
shl_load (); |
|
14827 |
; |
|
14828 |
return 0; |
|
14829 |
} |
|
14830 |
_ACEOF |
|
14831 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
14832 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
14833 |
(eval $ac_link) 2>conftest.er1 |
|
14834 |
ac_status=$? |
|
14835 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
14836 |
rm -f conftest.er1 |
|
14837 |
cat conftest.err >&5 |
|
14838 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14839 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
14840 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
14841 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14842 |
(eval $ac_try) 2>&5 |
|
14843 |
ac_status=$? |
|
14844 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14845 |
(exit $ac_status); }; } && |
|
14846 |
{ ac_try='test -s conftest$ac_exeext' |
|
14847 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
14848 |
(eval $ac_try) 2>&5 |
|
14849 |
ac_status=$? |
|
14850 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14851 |
(exit $ac_status); }; }; then |
|
14852 |
ac_cv_lib_dld_shl_load=yes |
|
14853 |
else |
|
14854 |
echo "$as_me: failed program was:" >&5 |
|
14855 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
14856 |
||
14857 |
ac_cv_lib_dld_shl_load=no |
|
14858 |
fi |
|
14859 |
rm -f conftest.err conftest.$ac_objext \ |
|
14860 |
conftest$ac_exeext conftest.$ac_ext |
|
14861 |
LIBS=$ac_check_lib_save_LIBS |
|
14862 |
fi |
|
14863 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
14864 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
14865 |
if test $ac_cv_lib_dld_shl_load = yes; then |
|
14866 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
14867 |
else |
|
14868 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
14869 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
14870 |
if test "${ac_cv_func_dlopen+set}" = set; then |
|
14871 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14872 |
else |
|
14873 |
cat >conftest.$ac_ext <<_ACEOF |
|
14874 |
/* confdefs.h. */ |
|
14875 |
_ACEOF |
|
14876 |
cat confdefs.h >>conftest.$ac_ext |
|
14877 |
cat >>conftest.$ac_ext <<_ACEOF |
|
14878 |
/* end confdefs.h. */ |
|
14879 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
14880 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
14881 |
#define dlopen innocuous_dlopen |
|
14882 |
||
14883 |
/* System header to define __stub macros and hopefully few prototypes, |
|
14884 |
which can conflict with char dlopen (); below. |
|
14885 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
14886 |
<limits.h> exists even on freestanding compilers. */ |
|
14887 |
||
14888 |
#ifdef __STDC__ |
|
14889 |
# include <limits.h> |
|
14890 |
#else |
|
14891 |
# include <assert.h> |
|
14892 |
#endif |
|
14893 |
||
14894 |
#undef dlopen |
|
14895 |
||
14896 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
14897 |
#ifdef __cplusplus |
|
14898 |
extern "C" |
|
14899 |
{ |
|
14900 |
#endif |
|
14901 |
/* We use char because int might match the return type of a gcc2 |
|
14902 |
builtin and then its argument prototype would still apply. */ |
|
14903 |
char dlopen (); |
|
14904 |
/* The GNU C library defines this for functions which it implements |
|
14905 |
to always fail with ENOSYS. Some functions are actually named |
|
14906 |
something starting with __ and the normal name is an alias. */ |
|
14907 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
14908 |
choke me |
|
14909 |
#else |
|
14910 |
char (*f) () = dlopen; |
|
14911 |
#endif |
|
14912 |
#ifdef __cplusplus |
|
14913 |
} |
|
14914 |
#endif |
|
14915 |
||
14916 |
int |
|
14917 |
main () |
|
14918 |
{ |
|
14919 |
return f != dlopen; |
|
14920 |
; |
|
14921 |
return 0; |
|
14922 |
} |
|
14923 |
_ACEOF |
|
14924 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
14925 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
14926 |
(eval $ac_link) 2>conftest.er1 |
|
14927 |
ac_status=$? |
|
14928 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
14929 |
rm -f conftest.er1 |
|
14930 |
cat conftest.err >&5 |
|
14931 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14932 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
14933 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
14934 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14935 |
(eval $ac_try) 2>&5 |
|
14936 |
ac_status=$? |
|
14937 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14938 |
(exit $ac_status); }; } && |
|
14939 |
{ ac_try='test -s conftest$ac_exeext' |
|
14940 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
14941 |
(eval $ac_try) 2>&5 |
|
14942 |
ac_status=$? |
|
14943 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14944 |
(exit $ac_status); }; }; then |
|
14945 |
ac_cv_func_dlopen=yes |
|
14946 |
else |
|
14947 |
echo "$as_me: failed program was:" >&5 |
|
14948 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
14949 |
||
14950 |
ac_cv_func_dlopen=no |
|
14951 |
fi |
|
14952 |
rm -f conftest.err conftest.$ac_objext \ |
|
14953 |
conftest$ac_exeext conftest.$ac_ext |
|
14954 |
fi |
|
14955 |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
14956 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
14957 |
if test $ac_cv_func_dlopen = yes; then |
|
14958 |
lt_cv_dlopen="dlopen" |
|
14959 |
else |
|
14960 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
14961 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
14962 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
14963 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14964 |
else |
|
14965 |
ac_check_lib_save_LIBS=$LIBS |
|
14966 |
LIBS="-ldl $LIBS" |
|
14967 |
cat >conftest.$ac_ext <<_ACEOF |
|
14968 |
/* confdefs.h. */ |
|
14969 |
_ACEOF |
|
14970 |
cat confdefs.h >>conftest.$ac_ext |
|
14971 |
cat >>conftest.$ac_ext <<_ACEOF |
|
14972 |
/* end confdefs.h. */ |
|
14973 |
||
14974 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
14975 |
#ifdef __cplusplus |
|
14976 |
extern "C" |
|
14977 |
#endif |
|
14978 |
/* We use char because int might match the return type of a gcc2 |
|
14979 |
builtin and then its argument prototype would still apply. */ |
|
14980 |
char dlopen (); |
|
14981 |
int |
|
14982 |
main () |
|
14983 |
{ |
|
14984 |
dlopen (); |
|
14985 |
; |
|
14986 |
return 0; |
|
14987 |
} |
|
14988 |
_ACEOF |
|
14989 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
14990 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
14991 |
(eval $ac_link) 2>conftest.er1 |
|
14992 |
ac_status=$? |
|
14993 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
14994 |
rm -f conftest.er1 |
|
14995 |
cat conftest.err >&5 |
|
14996 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
14997 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
14998 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
14999 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15000 |
(eval $ac_try) 2>&5 |
|
15001 |
ac_status=$? |
|
15002 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15003 |
(exit $ac_status); }; } && |
|
15004 |
{ ac_try='test -s conftest$ac_exeext' |
|
15005 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
15006 |
(eval $ac_try) 2>&5 |
|
15007 |
ac_status=$? |
|
15008 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15009 |
(exit $ac_status); }; }; then |
|
15010 |
ac_cv_lib_dl_dlopen=yes |
|
15011 |
else |
|
15012 |
echo "$as_me: failed program was:" >&5 |
|
15013 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
15014 |
||
15015 |
ac_cv_lib_dl_dlopen=no |
|
15016 |
fi |
|
15017 |
rm -f conftest.err conftest.$ac_objext \ |
|
15018 |
conftest$ac_exeext conftest.$ac_ext |
|
15019 |
LIBS=$ac_check_lib_save_LIBS |
|
15020 |
fi |
|
15021 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
15022 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
15023 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
15024 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
15025 |
else |
|
15026 |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
15027 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
15028 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
15029 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
15030 |
else |
|
15031 |
ac_check_lib_save_LIBS=$LIBS |
|
15032 |
LIBS="-lsvld $LIBS" |
|
15033 |
cat >conftest.$ac_ext <<_ACEOF |
|
15034 |
/* confdefs.h. */ |
|
15035 |
_ACEOF |
|
15036 |
cat confdefs.h >>conftest.$ac_ext |
|
15037 |
cat >>conftest.$ac_ext <<_ACEOF |
|
15038 |
/* end confdefs.h. */ |
|
15039 |
||
15040 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
15041 |
#ifdef __cplusplus |
|
15042 |
extern "C" |
|
15043 |
#endif |
|
15044 |
/* We use char because int might match the return type of a gcc2 |
|
15045 |
builtin and then its argument prototype would still apply. */ |
|
15046 |
char dlopen (); |
|
15047 |
int |
|
15048 |
main () |
|
15049 |
{ |
|
15050 |
dlopen (); |
|
15051 |
; |
|
15052 |
return 0; |
|
15053 |
} |
|
15054 |
_ACEOF |
|
15055 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
15056 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
15057 |
(eval $ac_link) 2>conftest.er1 |
|
15058 |
ac_status=$? |
|
15059 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
15060 |
rm -f conftest.er1 |
|
15061 |
cat conftest.err >&5 |
|
15062 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15063 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
15064 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
15065 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15066 |
(eval $ac_try) 2>&5 |
|
15067 |
ac_status=$? |
|
15068 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15069 |
(exit $ac_status); }; } && |
|
15070 |
{ ac_try='test -s conftest$ac_exeext' |
|
15071 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
15072 |
(eval $ac_try) 2>&5 |
|
15073 |
ac_status=$? |
|
15074 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15075 |
(exit $ac_status); }; }; then |
|
15076 |
ac_cv_lib_svld_dlopen=yes |
|
15077 |
else |
|
15078 |
echo "$as_me: failed program was:" >&5 |
|
15079 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
15080 |
||
15081 |
ac_cv_lib_svld_dlopen=no |
|
15082 |
fi |
|
15083 |
rm -f conftest.err conftest.$ac_objext \ |
|
15084 |
conftest$ac_exeext conftest.$ac_ext |
|
15085 |
LIBS=$ac_check_lib_save_LIBS |
|
15086 |
fi |
|
15087 |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
15088 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
15089 |
if test $ac_cv_lib_svld_dlopen = yes; then |
|
15090 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
15091 |
else |
|
15092 |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
15093 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
15094 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
15095 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
15096 |
else |
|
15097 |
ac_check_lib_save_LIBS=$LIBS |
|
15098 |
LIBS="-ldld $LIBS" |
|
15099 |
cat >conftest.$ac_ext <<_ACEOF |
|
15100 |
/* confdefs.h. */ |
|
15101 |
_ACEOF |
|
15102 |
cat confdefs.h >>conftest.$ac_ext |
|
15103 |
cat >>conftest.$ac_ext <<_ACEOF |
|
15104 |
/* end confdefs.h. */ |
|
15105 |
||
15106 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
15107 |
#ifdef __cplusplus |
|
15108 |
extern "C" |
|
15109 |
#endif |
|
15110 |
/* We use char because int might match the return type of a gcc2 |
|
15111 |
builtin and then its argument prototype would still apply. */ |
|
15112 |
char dld_link (); |
|
15113 |
int |
|
15114 |
main () |
|
15115 |
{ |
|
15116 |
dld_link (); |
|
15117 |
; |
|
15118 |
return 0; |
|
15119 |
} |
|
15120 |
_ACEOF |
|
15121 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
15122 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
15123 |
(eval $ac_link) 2>conftest.er1 |
|
15124 |
ac_status=$? |
|
15125 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
15126 |
rm -f conftest.er1 |
|
15127 |
cat conftest.err >&5 |
|
15128 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15129 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
15130 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
15131 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15132 |
(eval $ac_try) 2>&5 |
|
15133 |
ac_status=$? |
|
15134 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15135 |
(exit $ac_status); }; } && |
|
15136 |
{ ac_try='test -s conftest$ac_exeext' |
|
15137 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
15138 |
(eval $ac_try) 2>&5 |
|
15139 |
ac_status=$? |
|
15140 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15141 |
(exit $ac_status); }; }; then |
|
15142 |
ac_cv_lib_dld_dld_link=yes |
|
15143 |
else |
|
15144 |
echo "$as_me: failed program was:" >&5 |
|
15145 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
15146 |
||
15147 |
ac_cv_lib_dld_dld_link=no |
|
15148 |
fi |
|
15149 |
rm -f conftest.err conftest.$ac_objext \ |
|
15150 |
conftest$ac_exeext conftest.$ac_ext |
|
15151 |
LIBS=$ac_check_lib_save_LIBS |
|
15152 |
fi |
|
15153 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
15154 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
15155 |
if test $ac_cv_lib_dld_dld_link = yes; then |
|
15156 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
15157 |
fi |
|
15158 |
||
15159 |
||
15160 |
fi |
|
15161 |
||
15162 |
||
15163 |
fi |
|
15164 |
||
15165 |
||
15166 |
fi |
|
15167 |
||
15168 |
||
15169 |
fi |
|
15170 |
||
15171 |
||
15172 |
fi |
|
15173 |
||
15174 |
;; |
|
15175 |
esac |
|
15176 |
||
15177 |
if test "x$lt_cv_dlopen" != xno; then |
|
15178 |
enable_dlopen=yes |
|
15179 |
else |
|
15180 |
enable_dlopen=no |
|
15181 |
fi |
|
15182 |
||
15183 |
case $lt_cv_dlopen in |
|
15184 |
dlopen) |
|
15185 |
save_CPPFLAGS="$CPPFLAGS" |
|
15186 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
15187 |
||
15188 |
save_LDFLAGS="$LDFLAGS" |
|
15189 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
15190 |
||
15191 |
save_LIBS="$LIBS" |
|
15192 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
15193 |
||
15194 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
15195 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
15196 |
if test "${lt_cv_dlopen_self+set}" = set; then |
|
15197 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
15198 |
else |
|
15199 |
if test "$cross_compiling" = yes; then : |
|
15200 |
lt_cv_dlopen_self=cross |
|
15201 |
else |
|
15202 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
15203 |
lt_status=$lt_dlunknown |
|
15204 |
cat > conftest.$ac_ext <<EOF |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
15205 |
#line 15205 "configure" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
15206 |
#include "confdefs.h" |
15207 |
||
15208 |
#if HAVE_DLFCN_H |
|
15209 |
#include <dlfcn.h> |
|
15210 |
#endif |
|
15211 |
||
15212 |
#include <stdio.h> |
|
15213 |
||
15214 |
#ifdef RTLD_GLOBAL |
|
15215 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
15216 |
#else |
|
15217 |
# ifdef DL_GLOBAL |
|
15218 |
# define LT_DLGLOBAL DL_GLOBAL |
|
15219 |
# else |
|
15220 |
# define LT_DLGLOBAL 0 |
|
15221 |
# endif |
|
15222 |
#endif |
|
15223 |
||
15224 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
15225 |
find out it does not work in some platform. */ |
|
15226 |
#ifndef LT_DLLAZY_OR_NOW |
|
15227 |
# ifdef RTLD_LAZY |
|
15228 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
15229 |
# else |
|
15230 |
# ifdef DL_LAZY |
|
15231 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
15232 |
# else |
|
15233 |
# ifdef RTLD_NOW |
|
15234 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
15235 |
# else |
|
15236 |
# ifdef DL_NOW |
|
15237 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
15238 |
# else |
|
15239 |
# define LT_DLLAZY_OR_NOW 0 |
|
15240 |
# endif |
|
15241 |
# endif |
|
15242 |
# endif |
|
15243 |
# endif |
|
15244 |
#endif |
|
15245 |
||
15246 |
#ifdef __cplusplus |
|
15247 |
extern "C" void exit (int); |
|
15248 |
#endif |
|
15249 |
||
15250 |
void fnord() { int i=42;} |
|
15251 |
int main () |
|
15252 |
{ |
|
15253 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
15254 |
int status = $lt_dlunknown; |
|
15255 |
||
15256 |
if (self) |
|
15257 |
{ |
|
15258 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
15259 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
15260 |
/* dlclose (self); */ |
|
15261 |
} |
|
15262 |
||
15263 |
exit (status); |
|
15264 |
} |
|
15265 |
EOF |
|
15266 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
15267 |
(eval $ac_link) 2>&5 |
|
15268 |
ac_status=$? |
|
15269 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15270 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
15271 |
(./conftest; exit; ) 2>/dev/null |
|
15272 |
lt_status=$? |
|
15273 |
case x$lt_status in |
|
15274 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
15275 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
15276 |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
15277 |
esac |
|
15278 |
else : |
|
15279 |
# compilation failed |
|
15280 |
lt_cv_dlopen_self=no |
|
15281 |
fi |
|
15282 |
fi |
|
15283 |
rm -fr conftest* |
|
15284 |
||
15285 |
||
15286 |
fi |
|
15287 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
15288 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
15289 |
||
15290 |
if test "x$lt_cv_dlopen_self" = xyes; then |
|
15291 |
LDFLAGS="$LDFLAGS $link_static_flag" |
|
15292 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
15293 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
15294 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
15295 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
15296 |
else |
|
15297 |
if test "$cross_compiling" = yes; then : |
|
15298 |
lt_cv_dlopen_self_static=cross |
|
15299 |
else |
|
15300 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
15301 |
lt_status=$lt_dlunknown |
|
15302 |
cat > conftest.$ac_ext <<EOF |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
15303 |
#line 15303 "configure" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
15304 |
#include "confdefs.h" |
15305 |
||
15306 |
#if HAVE_DLFCN_H |
|
15307 |
#include <dlfcn.h> |
|
15308 |
#endif |
|
15309 |
||
15310 |
#include <stdio.h> |
|
15311 |
||
15312 |
#ifdef RTLD_GLOBAL |
|
15313 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
15314 |
#else |
|
15315 |
# ifdef DL_GLOBAL |
|
15316 |
# define LT_DLGLOBAL DL_GLOBAL |
|
15317 |
# else |
|
15318 |
# define LT_DLGLOBAL 0 |
|
15319 |
# endif |
|
15320 |
#endif |
|
15321 |
||
15322 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
15323 |
find out it does not work in some platform. */ |
|
15324 |
#ifndef LT_DLLAZY_OR_NOW |
|
15325 |
# ifdef RTLD_LAZY |
|
15326 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
15327 |
# else |
|
15328 |
# ifdef DL_LAZY |
|
15329 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
15330 |
# else |
|
15331 |
# ifdef RTLD_NOW |
|
15332 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
15333 |
# else |
|
15334 |
# ifdef DL_NOW |
|
15335 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
15336 |
# else |
|
15337 |
# define LT_DLLAZY_OR_NOW 0 |
|
15338 |
# endif |
|
15339 |
# endif |
|
15340 |
# endif |
|
15341 |
# endif |
|
15342 |
#endif |
|
15343 |
||
15344 |
#ifdef __cplusplus |
|
15345 |
extern "C" void exit (int); |
|
15346 |
#endif |
|
15347 |
||
15348 |
void fnord() { int i=42;} |
|
15349 |
int main () |
|
15350 |
{ |
|
15351 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
15352 |
int status = $lt_dlunknown; |
|
15353 |
||
15354 |
if (self) |
|
15355 |
{ |
|
15356 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
15357 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
15358 |
/* dlclose (self); */ |
|
15359 |
} |
|
15360 |
||
15361 |
exit (status); |
|
15362 |
} |
|
15363 |
EOF |
|
15364 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
15365 |
(eval $ac_link) 2>&5 |
|
15366 |
ac_status=$? |
|
15367 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15368 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
15369 |
(./conftest; exit; ) 2>/dev/null |
|
15370 |
lt_status=$? |
|
15371 |
case x$lt_status in |
|
15372 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
15373 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
15374 |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
15375 |
esac |
|
15376 |
else : |
|
15377 |
# compilation failed |
|
15378 |
lt_cv_dlopen_self_static=no |
|
15379 |
fi |
|
15380 |
fi |
|
15381 |
rm -fr conftest* |
|
15382 |
||
15383 |
||
15384 |
fi |
|
15385 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
15386 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
15387 |
fi |
|
15388 |
||
15389 |
CPPFLAGS="$save_CPPFLAGS" |
|
15390 |
LDFLAGS="$save_LDFLAGS" |
|
15391 |
LIBS="$save_LIBS" |
|
15392 |
;; |
|
15393 |
esac |
|
15394 |
||
15395 |
case $lt_cv_dlopen_self in |
|
15396 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
15397 |
*) enable_dlopen_self=unknown ;; |
|
15398 |
esac |
|
15399 |
||
15400 |
case $lt_cv_dlopen_self_static in |
|
15401 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
15402 |
*) enable_dlopen_self_static=unknown ;; |
|
15403 |
esac |
|
15404 |
fi |
|
15405 |
||
15406 |
||
15407 |
# The else clause should only fire when bootstrapping the |
|
15408 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
15409 |
# with your package, and you will get complaints that there are |
|
15410 |
# no rules to generate ltmain.sh. |
|
15411 |
if test -f "$ltmain"; then |
|
15412 |
# See if we are running on zsh, and set the options which allow our commands through |
|
15413 |
# without removal of \ escapes. |
|
15414 |
if test -n "${ZSH_VERSION+set}" ; then |
|
15415 |
setopt NO_GLOB_SUBST |
|
15416 |
fi |
|
15417 |
# Now quote all the things that may contain metacharacters while being |
|
15418 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
15419 |
# variables and quote the copies for generation of the libtool script. |
|
15420 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
|
15421 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
15422 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
15423 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
15424 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
15425 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
15426 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
15427 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
15428 |
compiler_CXX \ |
|
15429 |
CC_CXX \ |
|
15430 |
LD_CXX \ |
|
15431 |
lt_prog_compiler_wl_CXX \ |
|
15432 |
lt_prog_compiler_pic_CXX \ |
|
15433 |
lt_prog_compiler_static_CXX \ |
|
15434 |
lt_prog_compiler_no_builtin_flag_CXX \ |
|
15435 |
export_dynamic_flag_spec_CXX \ |
|
15436 |
thread_safe_flag_spec_CXX \ |
|
15437 |
whole_archive_flag_spec_CXX \ |
|
15438 |
enable_shared_with_static_runtimes_CXX \ |
|
15439 |
old_archive_cmds_CXX \ |
|
15440 |
old_archive_from_new_cmds_CXX \ |
|
15441 |
predep_objects_CXX \ |
|
15442 |
postdep_objects_CXX \ |
|
15443 |
predeps_CXX \ |
|
15444 |
postdeps_CXX \ |
|
15445 |
compiler_lib_search_path_CXX \ |
|
15446 |
archive_cmds_CXX \ |
|
15447 |
archive_expsym_cmds_CXX \ |
|
15448 |
postinstall_cmds_CXX \ |
|
15449 |
postuninstall_cmds_CXX \ |
|
15450 |
old_archive_from_expsyms_cmds_CXX \ |
|
15451 |
allow_undefined_flag_CXX \ |
|
15452 |
no_undefined_flag_CXX \ |
|
15453 |
export_symbols_cmds_CXX \ |
|
15454 |
hardcode_libdir_flag_spec_CXX \ |
|
15455 |
hardcode_libdir_flag_spec_ld_CXX \ |
|
15456 |
hardcode_libdir_separator_CXX \ |
|
15457 |
hardcode_automatic_CXX \ |
|
15458 |
module_cmds_CXX \ |
|
15459 |
module_expsym_cmds_CXX \ |
|
15460 |
lt_cv_prog_compiler_c_o_CXX \ |
|
15461 |
exclude_expsyms_CXX \ |
|
15462 |
include_expsyms_CXX; do |
|
15463 |
||
15464 |
case $var in |
|
15465 |
old_archive_cmds_CXX | \ |
|
15466 |
old_archive_from_new_cmds_CXX | \ |
|
15467 |
archive_cmds_CXX | \ |
|
15468 |
archive_expsym_cmds_CXX | \ |
|
15469 |
module_cmds_CXX | \ |
|
15470 |
module_expsym_cmds_CXX | \ |
|
15471 |
old_archive_from_expsyms_cmds_CXX | \ |
|
15472 |
export_symbols_cmds_CXX | \ |
|
15473 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
15474 |
postinstall_cmds | postuninstall_cmds | \ |
|
15475 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
15476 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
15477 |
# Double-quote double-evaled strings. |
|
15478 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
15479 |
;; |
|
15480 |
*) |
|
15481 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
15482 |
;; |
|
15483 |
esac |
|
15484 |
done |
|
15485 |
||
15486 |
case $lt_echo in |
|
15487 |
*'\$0 --fallback-echo"') |
|
15488 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
15489 |
;; |
|
15490 |
esac |
|
15491 |
||
15492 |
cfgfile="$ofile" |
|
15493 |
||
15494 |
cat <<__EOF__ >> "$cfgfile" |
|
15495 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
15496 |
||
15497 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
15498 |
||
15499 |
# Shell to use when invoking shell scripts. |
|
15500 |
SHELL=$lt_SHELL |
|
15501 |
||
15502 |
# Whether or not to build shared libraries. |
|
15503 |
build_libtool_libs=$enable_shared |
|
15504 |
||
15505 |
# Whether or not to build static libraries. |
|
15506 |
build_old_libs=$enable_static |
|
15507 |
||
15508 |
# Whether or not to add -lc for building shared libraries. |
|
15509 |
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
|
15510 |
||
15511 |
# Whether or not to disallow shared libs when runtime libs are static |
|
15512 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
|
15513 |
||
15514 |
# Whether or not to optimize for fast installation. |
|
15515 |
fast_install=$enable_fast_install |
|
15516 |
||
15517 |
# The host system. |
|
15518 |
host_alias=$host_alias |
|
15519 |
host=$host |
|
15520 |
||
15521 |
# An echo program that does not interpret backslashes. |
|
15522 |
echo=$lt_echo |
|
15523 |
||
15524 |
# The archiver. |
|
15525 |
AR=$lt_AR |
|
15526 |
AR_FLAGS=$lt_AR_FLAGS |
|
15527 |
||
15528 |
# A C compiler. |
|
15529 |
LTCC=$lt_LTCC |
|
15530 |
||
15531 |
# A language-specific compiler. |
|
15532 |
CC=$lt_compiler_CXX |
|
15533 |
||
15534 |
# Is the compiler the GNU C compiler? |
|
15535 |
with_gcc=$GCC_CXX |
|
15536 |
||
15537 |
# An ERE matcher. |
|
15538 |
EGREP=$lt_EGREP |
|
15539 |
||
15540 |
# The linker used to build libraries. |
|
15541 |
LD=$lt_LD_CXX |
|
15542 |
||
15543 |
# Whether we need hard or soft links. |
|
15544 |
LN_S=$lt_LN_S |
|
15545 |
||
15546 |
# A BSD-compatible nm program. |
|
15547 |
NM=$lt_NM |
|
15548 |
||
15549 |
# A symbol stripping program |
|
15550 |
STRIP=$STRIP |
|
15551 |
||
15552 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
15553 |
MAGIC_CMD=$MAGIC_CMD |
|
15554 |
||
15555 |
# Used on cygwin: DLL creation program. |
|
15556 |
DLLTOOL="$DLLTOOL" |
|
15557 |
||
15558 |
# Used on cygwin: object dumper. |
|
15559 |
OBJDUMP="$OBJDUMP" |
|
15560 |
||
15561 |
# Used on cygwin: assembler. |
|
15562 |
AS="$AS" |
|
15563 |
||
15564 |
# The name of the directory that contains temporary libtool files. |
|
15565 |
objdir=$objdir |
|
15566 |
||
15567 |
# How to create reloadable object files. |
|
15568 |
reload_flag=$lt_reload_flag |
|
15569 |
reload_cmds=$lt_reload_cmds |
|
15570 |
||
15571 |
# How to pass a linker flag through the compiler. |
|
15572 |
wl=$lt_lt_prog_compiler_wl_CXX |
|
15573 |
||
15574 |
# Object file suffix (normally "o"). |
|
15575 |
objext="$ac_objext" |
|
15576 |
||
15577 |
# Old archive suffix (normally "a"). |
|
15578 |
libext="$libext" |
|
15579 |
||
15580 |
# Shared library suffix (normally ".so"). |
|
15581 |
shrext='$shrext' |
|
15582 |
||
15583 |
# Executable file suffix (normally ""). |
|
15584 |
exeext="$exeext" |
|
15585 |
||
15586 |
# Additional compiler flags for building library objects. |
|
15587 |
pic_flag=$lt_lt_prog_compiler_pic_CXX |
|
15588 |
pic_mode=$pic_mode |
|
15589 |
||
15590 |
# What is the maximum length of a command? |
|
15591 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
15592 |
||
15593 |
# Does compiler simultaneously support -c and -o options? |
|
15594 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
|
15595 |
||
15596 |
# Must we lock files when doing compilation ? |
|
15597 |
need_locks=$lt_need_locks |
|
15598 |
||
15599 |
# Do we need the lib prefix for modules? |
|
15600 |
need_lib_prefix=$need_lib_prefix |
|
15601 |
||
15602 |
# Do we need a version for libraries? |
|
15603 |
need_version=$need_version |
|
15604 |
||
15605 |
# Whether dlopen is supported. |
|
15606 |
dlopen_support=$enable_dlopen |
|
15607 |
||
15608 |
# Whether dlopen of programs is supported. |
|
15609 |
dlopen_self=$enable_dlopen_self |
|
15610 |
||
15611 |
# Whether dlopen of statically linked programs is supported. |
|
15612 |
dlopen_self_static=$enable_dlopen_self_static |
|
15613 |
||
15614 |
# Compiler flag to prevent dynamic linking. |
|
15615 |
link_static_flag=$lt_lt_prog_compiler_static_CXX |
|
15616 |
||
15617 |
# Compiler flag to turn off builtin functions. |
|
15618 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
|
15619 |
||
15620 |
# Compiler flag to allow reflexive dlopens. |
|
15621 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
|
15622 |
||
15623 |
# Compiler flag to generate shared objects directly from archives. |
|
15624 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
|
15625 |
||
15626 |
# Compiler flag to generate thread-safe objects. |
|
15627 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
|
15628 |
||
15629 |
# Library versioning type. |
|
15630 |
version_type=$version_type |
|
15631 |
||
15632 |
# Format of library name prefix. |
|
15633 |
libname_spec=$lt_libname_spec |
|
15634 |
||
15635 |
# List of archive names. First name is the real one, the rest are links. |
|
15636 |
# The last name is the one that the linker finds with -lNAME. |
|
15637 |
library_names_spec=$lt_library_names_spec |
|
15638 |
||
15639 |
# The coded name of the library, if different from the real name. |
|
15640 |
soname_spec=$lt_soname_spec |
|
15641 |
||
15642 |
# Commands used to build and install an old-style archive. |
|
15643 |
RANLIB=$lt_RANLIB |
|
15644 |
old_archive_cmds=$lt_old_archive_cmds_CXX |
|
15645 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
15646 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
15647 |
||
15648 |
# Create an old-style archive from a shared archive. |
|
15649 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
|
15650 |
||
15651 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
15652 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
|
15653 |
||
15654 |
# Commands used to build and install a shared archive. |
|
15655 |
archive_cmds=$lt_archive_cmds_CXX |
|
15656 |
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
|
15657 |
postinstall_cmds=$lt_postinstall_cmds |
|
15658 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
15659 |
||
15660 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
15661 |
module_cmds=$lt_module_cmds_CXX |
|
15662 |
module_expsym_cmds=$lt_module_expsym_cmds_CXX |
|
15663 |
||
15664 |
# Commands to strip libraries. |
|
15665 |
old_striplib=$lt_old_striplib |
|
15666 |
striplib=$lt_striplib |
|
15667 |
||
15668 |
# Dependencies to place before the objects being linked to create a |
|
15669 |
# shared library. |
|
15670 |
predep_objects=$lt_predep_objects_CXX |
|
15671 |
||
15672 |
# Dependencies to place after the objects being linked to create a |
|
15673 |
# shared library. |
|
15674 |
postdep_objects=$lt_postdep_objects_CXX |
|
15675 |
||
15676 |
# Dependencies to place before the objects being linked to create a |
|
15677 |
# shared library. |
|
15678 |
predeps=$lt_predeps_CXX |
|
15679 |
||
15680 |
# Dependencies to place after the objects being linked to create a |
|
15681 |
# shared library. |
|
15682 |
postdeps=$lt_postdeps_CXX |
|
15683 |
||
15684 |
# The library search path used internally by the compiler when linking |
|
15685 |
# a shared library. |
|
15686 |
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
|
15687 |
||
15688 |
# Method to check whether dependent libraries are shared objects. |
|
15689 |
deplibs_check_method=$lt_deplibs_check_method |
|
15690 |
||
15691 |
# Command to use when deplibs_check_method == file_magic. |
|
15692 |
file_magic_cmd=$lt_file_magic_cmd |
|
15693 |
||
15694 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
15695 |
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
|
15696 |
||
15697 |
# Flag that forces no undefined symbols. |
|
15698 |
no_undefined_flag=$lt_no_undefined_flag_CXX |
|
15699 |
||
15700 |
# Commands used to finish a libtool library installation in a directory. |
|
15701 |
finish_cmds=$lt_finish_cmds |
|
15702 |
||
15703 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
15704 |
finish_eval=$lt_finish_eval |
|
15705 |
||
15706 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
15707 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
15708 |
||
15709 |
# Transform the output of nm in a proper C declaration |
|
15710 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
15711 |
||
15712 |
# Transform the output of nm in a C name address pair |
|
15713 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
15714 |
||
15715 |
# This is the shared library runtime path variable. |
|
15716 |
runpath_var=$runpath_var |
|
15717 |
||
15718 |
# This is the shared library path variable. |
|
15719 |
shlibpath_var=$shlibpath_var |
|
15720 |
||
15721 |
# Is shlibpath searched before the hard-coded library search path? |
|
15722 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
15723 |
||
15724 |
# How to hardcode a shared library path into an executable. |
|
15725 |
hardcode_action=$hardcode_action_CXX |
|
15726 |
||
15727 |
# Whether we should hardcode library paths into libraries. |
|
15728 |
hardcode_into_libs=$hardcode_into_libs |
|
15729 |
||
15730 |
# Flag to hardcode \$libdir into a binary during linking. |
|
15731 |
# This must work even if \$libdir does not exist. |
|
15732 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
|
15733 |
||
15734 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
15735 |
# a binary during linking. This must work even if \$libdir does |
|
15736 |
# not exist. |
|
15737 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
|
15738 |
||
15739 |
# Whether we need a single -rpath flag with a separated argument. |
|
15740 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
|
15741 |
||
15742 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
15743 |
# resulting binary. |
|
15744 |
hardcode_direct=$hardcode_direct_CXX |
|
15745 |
||
15746 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
15747 |
# resulting binary. |
|
15748 |
hardcode_minus_L=$hardcode_minus_L_CXX |
|
15749 |
||
15750 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
15751 |
# the resulting binary. |
|
15752 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
|
15753 |
||
15754 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
15755 |
# and all subsequent libraries and executables linked against it. |
|
15756 |
hardcode_automatic=$hardcode_automatic_CXX |
|
15757 |
||
15758 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
15759 |
# restored at relink time. |
|
15760 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
15761 |
||
15762 |
# Whether libtool must link a program against all its dependency libraries. |
|
15763 |
link_all_deplibs=$link_all_deplibs_CXX |
|
15764 |
||
15765 |
# Compile-time system search path for libraries |
|
15766 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
15767 |
||
15768 |
# Run-time system search path for libraries |
|
15769 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
15770 |
||
15771 |
# Fix the shell variable \$srcfile for the compiler. |
|
15772 |
fix_srcfile_path="$fix_srcfile_path_CXX" |
|
15773 |
||
15774 |
# Set to yes if exported symbols are required. |
|
15775 |
always_export_symbols=$always_export_symbols_CXX |
|
15776 |
||
15777 |
# The commands to list exported symbols. |
|
15778 |
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
|
15779 |
||
15780 |
# The commands to extract the exported symbol list from a shared archive. |
|
15781 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
15782 |
||
15783 |
# Symbols that should not be listed in the preloaded symbols. |
|
15784 |
exclude_expsyms=$lt_exclude_expsyms_CXX |
|
15785 |
||
15786 |
# Symbols that must always be exported. |
|
15787 |
include_expsyms=$lt_include_expsyms_CXX |
|
15788 |
||
15789 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
15790 |
||
15791 |
__EOF__ |
|
15792 |
||
15793 |
||
15794 |
else |
|
15795 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
15796 |
# `config.status --recheck' to rerun these tests and create the |
|
15797 |
# libtool script then. |
|
15798 |
test -f Makefile && make "$ltmain" |
|
15799 |
fi |
|
15800 |
||
15801 |
||
15802 |
ac_ext=c |
|
15803 |
ac_cpp='$CPP $CPPFLAGS' |
|
15804 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
15805 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
15806 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
15807 |
||
15808 |
CC=$lt_save_CC |
|
15809 |
LDCXX=$LD |
|
15810 |
LD=$lt_save_LD |
|
15811 |
GCC=$lt_save_GCC |
|
15812 |
with_gnu_ldcxx=$with_gnu_ld |
|
15813 |
with_gnu_ld=$lt_save_with_gnu_ld |
|
15814 |
lt_cv_path_LDCXX=$lt_cv_path_LD |
|
15815 |
lt_cv_path_LD=$lt_save_path_LD |
|
15816 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
15817 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
15818 |
||
15819 |
else |
|
15820 |
tagname="" |
|
15821 |
fi |
|
15822 |
;; |
|
15823 |
||
15824 |
F77) |
|
15825 |
if test -n "$F77" && test "X$F77" != "Xno"; then |
|
15826 |
||
15827 |
ac_ext=f |
|
15828 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
15829 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
15830 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
15831 |
||
15832 |
||
15833 |
archive_cmds_need_lc_F77=no |
|
15834 |
allow_undefined_flag_F77= |
|
15835 |
always_export_symbols_F77=no |
|
15836 |
archive_expsym_cmds_F77= |
|
15837 |
export_dynamic_flag_spec_F77= |
|
15838 |
hardcode_direct_F77=no |
|
15839 |
hardcode_libdir_flag_spec_F77= |
|
15840 |
hardcode_libdir_flag_spec_ld_F77= |
|
15841 |
hardcode_libdir_separator_F77= |
|
15842 |
hardcode_minus_L_F77=no |
|
15843 |
hardcode_automatic_F77=no |
|
15844 |
module_cmds_F77= |
|
15845 |
module_expsym_cmds_F77= |
|
15846 |
link_all_deplibs_F77=unknown |
|
15847 |
old_archive_cmds_F77=$old_archive_cmds |
|
15848 |
no_undefined_flag_F77= |
|
15849 |
whole_archive_flag_spec_F77= |
|
15850 |
enable_shared_with_static_runtimes_F77=no |
|
15851 |
||
15852 |
# Source file extension for f77 test sources. |
|
15853 |
ac_ext=f |
|
15854 |
||
15855 |
# Object file extension for compiled f77 test sources. |
|
15856 |
objext=o |
|
15857 |
objext_F77=$objext |
|
15858 |
||
15859 |
# Code to be used in simple compile tests |
|
15860 |
lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
|
15861 |
||
15862 |
# Code to be used in simple link tests |
|
15863 |
lt_simple_link_test_code=" program t\n end\n" |
|
15864 |
||
15865 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
15866 |
||
15867 |
# If no C compiler was specified, use CC. |
|
15868 |
LTCC=${LTCC-"$CC"} |
|
15869 |
||
15870 |
# Allow CC to be a program name with arguments. |
|
15871 |
compiler=$CC |
|
15872 |
||
15873 |
||
15874 |
# Allow CC to be a program name with arguments. |
|
15875 |
lt_save_CC="$CC" |
|
15876 |
CC=${F77-"f77"} |
|
15877 |
compiler=$CC |
|
15878 |
compiler_F77=$CC |
|
15879 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
15880 |
||
15881 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
15882 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
15883 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
15884 |
echo "${ECHO_T}$can_build_shared" >&6 |
|
15885 |
||
15886 |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
15887 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
15888 |
test "$can_build_shared" = "no" && enable_shared=no |
|
15889 |
||
15890 |
# On AIX, shared libraries and static libraries use the same namespace, and |
|
15891 |
# are all built from PIC. |
|
15892 |
case "$host_os" in |
|
15893 |
aix3*) |
|
15894 |
test "$enable_shared" = yes && enable_static=no |
|
15895 |
if test -n "$RANLIB"; then |
|
15896 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
15897 |
postinstall_cmds='$RANLIB $lib' |
|
15898 |
fi |
|
15899 |
;; |
|
15900 |
aix4*) |
|
15901 |
test "$enable_shared" = yes && enable_static=no |
|
15902 |
;; |
|
15903 |
esac |
|
15904 |
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
15905 |
echo "${ECHO_T}$enable_shared" >&6 |
|
15906 |
||
15907 |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
15908 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
15909 |
# Make sure either enable_shared or enable_static is yes. |
|
15910 |
test "$enable_shared" = yes || enable_static=yes |
|
15911 |
echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
15912 |
echo "${ECHO_T}$enable_static" >&6 |
|
15913 |
||
15914 |
test "$ld_shlibs_F77" = no && can_build_shared=no |
|
15915 |
||
15916 |
GCC_F77="$G77" |
|
15917 |
LD_F77="$LD" |
|
15918 |
||
15919 |
lt_prog_compiler_wl_F77= |
|
15920 |
lt_prog_compiler_pic_F77= |
|
15921 |
lt_prog_compiler_static_F77= |
|
15922 |
||
15923 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
15924 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
15925 |
||
15926 |
if test "$GCC" = yes; then |
|
15927 |
lt_prog_compiler_wl_F77='-Wl,' |
|
15928 |
lt_prog_compiler_static_F77='-static' |
|
15929 |
||
15930 |
case $host_os in |
|
15931 |
aix*) |
|
15932 |
# All AIX code is PIC. |
|
15933 |
if test "$host_cpu" = ia64; then |
|
15934 |
# AIX 5 now supports IA64 processor |
|
15935 |
lt_prog_compiler_static_F77='-Bstatic' |
|
15936 |
fi |
|
15937 |
;; |
|
15938 |
||
15939 |
amigaos*) |
|
15940 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
15941 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
15942 |
# like `-m68040'. |
|
15943 |
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
|
15944 |
;; |
|
15945 |
||
15946 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
15947 |
# PIC is the default for these OSes. |
|
15948 |
;; |
|
15949 |
||
15950 |
mingw* | pw32* | os2*) |
|
15951 |
# This hack is so that the source file can tell whether it is being |
|
15952 |
# built for inclusion in a dll (and should export symbols for example). |
|
15953 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
15954 |
;; |
|
15955 |
||
15956 |
darwin* | rhapsody*) |
|
15957 |
# PIC is the default on this platform |
|
15958 |
# Common symbols not allowed in MH_DYLIB files |
|
15959 |
lt_prog_compiler_pic_F77='-fno-common' |
|
15960 |
;; |
|
15961 |
||
15962 |
msdosdjgpp*) |
|
15963 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
15964 |
# on systems that don't support them. |
|
15965 |
lt_prog_compiler_can_build_shared_F77=no |
|
15966 |
enable_shared=no |
|
15967 |
;; |
|
15968 |
||
15969 |
sysv4*MP*) |
|
15970 |
if test -d /usr/nec; then |
|
15971 |
lt_prog_compiler_pic_F77=-Kconform_pic |
|
15972 |
fi |
|
15973 |
;; |
|
15974 |
||
15975 |
hpux*) |
|
15976 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
15977 |
# not for PA HP-UX. |
|
15978 |
case "$host_cpu" in |
|
15979 |
hppa*64*|ia64*) |
|
15980 |
# +Z the default |
|
15981 |
;; |
|
15982 |
*) |
|
15983 |
lt_prog_compiler_pic_F77='-fPIC' |
|
15984 |
;; |
|
15985 |
esac |
|
15986 |
;; |
|
15987 |
||
15988 |
*) |
|
15989 |
lt_prog_compiler_pic_F77='-fPIC' |
|
15990 |
;; |
|
15991 |
esac |
|
15992 |
else |
|
15993 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
15994 |
case $host_os in |
|
15995 |
aix*) |
|
15996 |
lt_prog_compiler_wl_F77='-Wl,' |
|
15997 |
if test "$host_cpu" = ia64; then |
|
15998 |
# AIX 5 now supports IA64 processor |
|
15999 |
lt_prog_compiler_static_F77='-Bstatic' |
|
16000 |
else |
|
16001 |
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
|
16002 |
fi |
|
16003 |
;; |
|
16004 |
||
16005 |
mingw* | pw32* | os2*) |
|
16006 |
# This hack is so that the source file can tell whether it is being |
|
16007 |
# built for inclusion in a dll (and should export symbols for example). |
|
16008 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
16009 |
;; |
|
16010 |
||
16011 |
hpux9* | hpux10* | hpux11*) |
|
16012 |
lt_prog_compiler_wl_F77='-Wl,' |
|
16013 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
16014 |
# not for PA HP-UX. |
|
16015 |
case "$host_cpu" in |
|
16016 |
hppa*64*|ia64*) |
|
16017 |
# +Z the default |
|
16018 |
;; |
|
16019 |
*) |
|
16020 |
lt_prog_compiler_pic_F77='+Z' |
|
16021 |
;; |
|
16022 |
esac |
|
16023 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
16024 |
lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
|
16025 |
;; |
|
16026 |
||
16027 |
irix5* | irix6* | nonstopux*) |
|
16028 |
lt_prog_compiler_wl_F77='-Wl,' |
|
16029 |
# PIC (with -KPIC) is the default. |
|
16030 |
lt_prog_compiler_static_F77='-non_shared' |
|
16031 |
;; |
|
16032 |
||
16033 |
newsos6) |
|
16034 |
lt_prog_compiler_pic_F77='-KPIC' |
|
16035 |
lt_prog_compiler_static_F77='-Bstatic' |
|
16036 |
;; |
|
16037 |
||
16038 |
linux*) |
|
16039 |
case $CC in |
|
16040 |
icc* | ecc*) |
|
16041 |
lt_prog_compiler_wl_F77='-Wl,' |
|
16042 |
lt_prog_compiler_pic_F77='-KPIC' |
|
16043 |
lt_prog_compiler_static_F77='-static' |
|
16044 |
;; |
|
16045 |
ccc*) |
|
16046 |
lt_prog_compiler_wl_F77='-Wl,' |
|
16047 |
# All Alpha code is PIC. |
|
16048 |
lt_prog_compiler_static_F77='-non_shared' |
|
16049 |
;; |
|
16050 |
esac |
|
16051 |
;; |
|
16052 |
||
16053 |
osf3* | osf4* | osf5*) |
|
16054 |
lt_prog_compiler_wl_F77='-Wl,' |
|
16055 |
# All OSF/1 code is PIC. |
|
16056 |
lt_prog_compiler_static_F77='-non_shared' |
|
16057 |
;; |
|
16058 |
||
16059 |
sco3.2v5*) |
|
16060 |
lt_prog_compiler_pic_F77='-Kpic' |
|
16061 |
lt_prog_compiler_static_F77='-dn' |
|
16062 |
;; |
|
16063 |
||
16064 |
solaris*) |
|
16065 |
lt_prog_compiler_wl_F77='-Wl,' |
|
16066 |
lt_prog_compiler_pic_F77='-KPIC' |
|
16067 |
lt_prog_compiler_static_F77='-Bstatic' |
|
16068 |
;; |
|
16069 |
||
16070 |
sunos4*) |
|
16071 |
lt_prog_compiler_wl_F77='-Qoption ld ' |
|
16072 |
lt_prog_compiler_pic_F77='-PIC' |
|
16073 |
lt_prog_compiler_static_F77='-Bstatic' |
|
16074 |
;; |
|
16075 |
||
16076 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
16077 |
lt_prog_compiler_wl_F77='-Wl,' |
|
16078 |
lt_prog_compiler_pic_F77='-KPIC' |
|
16079 |
lt_prog_compiler_static_F77='-Bstatic' |
|
16080 |
;; |
|
16081 |
||
16082 |
sysv4*MP*) |
|
16083 |
if test -d /usr/nec ;then |
|
16084 |
lt_prog_compiler_pic_F77='-Kconform_pic' |
|
16085 |
lt_prog_compiler_static_F77='-Bstatic' |
|
16086 |
fi |
|
16087 |
;; |
|
16088 |
||
16089 |
uts4*) |
|
16090 |
lt_prog_compiler_pic_F77='-pic' |
|
16091 |
lt_prog_compiler_static_F77='-Bstatic' |
|
16092 |
;; |
|
16093 |
||
16094 |
*) |
|
16095 |
lt_prog_compiler_can_build_shared_F77=no |
|
16096 |
;; |
|
16097 |
esac |
|
16098 |
fi |
|
16099 |
||
16100 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
|
16101 |
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
|
16102 |
||
16103 |
# |
|
16104 |
# Check to make sure the PIC flag actually works. |
|
16105 |
# |
|
16106 |
if test -n "$lt_prog_compiler_pic_F77"; then |
|
16107 |
||
16108 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
|
16109 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
|
16110 |
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
|
16111 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16112 |
else |
|
16113 |
lt_prog_compiler_pic_works_F77=no |
|
16114 |
ac_outfile=conftest.$ac_objext |
|
16115 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
16116 |
lt_compiler_flag="$lt_prog_compiler_pic_F77" |
|
16117 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
16118 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
16119 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
16120 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
16121 |
# The option is referenced via a variable to avoid confusing sed. |
|
16122 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
16123 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
16124 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
16125 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
16126 |
(eval echo "\"\$as_me:16126: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
16127 |
(eval "$lt_compile" 2>conftest.err) |
16128 |
ac_status=$? |
|
16129 |
cat conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
16130 |
echo "$as_me:16130: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
16131 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
16132 |
# The compiler can only warn and ignore the option if not recognized |
|
16133 |
# So say no if there are warnings |
|
16134 |
if test ! -s conftest.err; then |
|
16135 |
lt_prog_compiler_pic_works_F77=yes |
|
16136 |
fi |
|
16137 |
fi |
|
16138 |
$rm conftest* |
|
16139 |
||
16140 |
fi |
|
16141 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
|
16142 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
|
16143 |
||
16144 |
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
|
16145 |
case $lt_prog_compiler_pic_F77 in |
|
16146 |
"" | " "*) ;; |
|
16147 |
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
|
16148 |
esac |
|
16149 |
else |
|
16150 |
lt_prog_compiler_pic_F77= |
|
16151 |
lt_prog_compiler_can_build_shared_F77=no |
|
16152 |
fi |
|
16153 |
||
16154 |
fi |
|
16155 |
case "$host_os" in |
|
16156 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
16157 |
*djgpp*) |
|
16158 |
lt_prog_compiler_pic_F77= |
|
16159 |
;; |
|
16160 |
*) |
|
16161 |
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
|
16162 |
;; |
|
16163 |
esac |
|
16164 |
||
16165 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
16166 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
16167 |
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
|
16168 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16169 |
else |
|
16170 |
lt_cv_prog_compiler_c_o_F77=no |
|
16171 |
$rm -r conftest 2>/dev/null |
|
16172 |
mkdir conftest |
|
16173 |
cd conftest |
|
16174 |
mkdir out |
|
16175 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
16176 |
||
16177 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
16178 |
# that will create temporary files in the current directory regardless of |
|
16179 |
# the output directory. Thus, making CWD read-only will cause this test |
|
16180 |
# to fail, enabling locking or at least warning the user not to do parallel |
|
16181 |
# builds. |
|
16182 |
chmod -w . |
|
16183 |
||
16184 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
16185 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
16186 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
16187 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
16188 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
16189 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
16190 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
16191 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
16192 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
16193 |
(eval echo "\"\$as_me:16193: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
16194 |
(eval "$lt_compile" 2>out/conftest.err) |
16195 |
ac_status=$? |
|
16196 |
cat out/conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
16197 |
echo "$as_me:16197: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
16198 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16199 |
then |
|
16200 |
# The compiler can only warn and ignore the option if not recognized |
|
16201 |
# So say no if there are warnings |
|
16202 |
if test ! -s out/conftest.err; then |
|
16203 |
lt_cv_prog_compiler_c_o_F77=yes |
|
16204 |
fi |
|
16205 |
fi |
|
16206 |
chmod u+w . |
|
16207 |
$rm conftest* out/* |
|
16208 |
rmdir out |
|
16209 |
cd .. |
|
16210 |
rmdir conftest |
|
16211 |
$rm conftest* |
|
16212 |
||
16213 |
fi |
|
16214 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
|
16215 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
|
16216 |
||
16217 |
||
16218 |
hard_links="nottested" |
|
16219 |
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
|
16220 |
# do not overwrite the value of need_locks provided by the user |
|
16221 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
16222 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
16223 |
hard_links=yes |
|
16224 |
$rm conftest* |
|
16225 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
16226 |
touch conftest.a |
|
16227 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
16228 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
16229 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
16230 |
echo "${ECHO_T}$hard_links" >&6 |
|
16231 |
if test "$hard_links" = no; then |
|
16232 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
16233 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
16234 |
need_locks=warn |
|
16235 |
fi |
|
16236 |
else |
|
16237 |
need_locks=no |
|
16238 |
fi |
|
16239 |
||
16240 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
16241 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
16242 |
||
16243 |
runpath_var= |
|
16244 |
allow_undefined_flag_F77= |
|
16245 |
enable_shared_with_static_runtimes_F77=no |
|
16246 |
archive_cmds_F77= |
|
16247 |
archive_expsym_cmds_F77= |
|
16248 |
old_archive_From_new_cmds_F77= |
|
16249 |
old_archive_from_expsyms_cmds_F77= |
|
16250 |
export_dynamic_flag_spec_F77= |
|
16251 |
whole_archive_flag_spec_F77= |
|
16252 |
thread_safe_flag_spec_F77= |
|
16253 |
hardcode_libdir_flag_spec_F77= |
|
16254 |
hardcode_libdir_flag_spec_ld_F77= |
|
16255 |
hardcode_libdir_separator_F77= |
|
16256 |
hardcode_direct_F77=no |
|
16257 |
hardcode_minus_L_F77=no |
|
16258 |
hardcode_shlibpath_var_F77=unsupported |
|
16259 |
link_all_deplibs_F77=unknown |
|
16260 |
hardcode_automatic_F77=no |
|
16261 |
module_cmds_F77= |
|
16262 |
module_expsym_cmds_F77= |
|
16263 |
always_export_symbols_F77=no |
|
16264 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
16265 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
16266 |
# included in the symbol list |
|
16267 |
include_expsyms_F77= |
|
16268 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
16269 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
16270 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
16271 |
# as well as any symbol that contains `d'. |
|
16272 |
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
|
16273 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
16274 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
16275 |
# the symbol is explicitly referenced. Since portable code cannot |
|
16276 |
# rely on this symbol name, it's probably fine to never include it in |
|
16277 |
# preloaded symbol tables. |
|
16278 |
extract_expsyms_cmds= |
|
16279 |
||
16280 |
case $host_os in |
|
16281 |
cygwin* | mingw* | pw32*) |
|
16282 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
16283 |
# When not using gcc, we currently assume that we are using |
|
16284 |
# Microsoft Visual C++. |
|
16285 |
if test "$GCC" != yes; then |
|
16286 |
with_gnu_ld=no |
|
16287 |
fi |
|
16288 |
;; |
|
16289 |
openbsd*) |
|
16290 |
with_gnu_ld=no |
|
16291 |
;; |
|
16292 |
esac |
|
16293 |
||
16294 |
ld_shlibs_F77=yes |
|
16295 |
if test "$with_gnu_ld" = yes; then |
|
16296 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
16297 |
wlarc='${wl}' |
|
16298 |
||
16299 |
# See if GNU ld supports shared libraries. |
|
16300 |
case $host_os in |
|
16301 |
aix3* | aix4* | aix5*) |
|
16302 |
# On AIX/PPC, the GNU linker is very broken |
|
16303 |
if test "$host_cpu" != ia64; then |
|
16304 |
ld_shlibs_F77=no |
|
16305 |
cat <<EOF 1>&2 |
|
16306 |
||
16307 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
16308 |
*** to be unable to reliably create shared libraries on AIX. |
|
16309 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
16310 |
*** really care for shared libraries, you may want to modify your PATH |
|
16311 |
*** so that a non-GNU linker is found, and then restart. |
|
16312 |
||
16313 |
EOF |
|
16314 |
fi |
|
16315 |
;; |
|
16316 |
||
16317 |
amigaos*) |
|
16318 |
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
16319 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
16320 |
hardcode_minus_L_F77=yes |
|
16321 |
||
16322 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
16323 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
16324 |
# to version 4, is to share data among multiple programs linked |
|
16325 |
# with the same dynamic library. Since this doesn't match the |
|
16326 |
# behavior of shared libraries on other platforms, we can't use |
|
16327 |
# them. |
|
16328 |
ld_shlibs_F77=no |
|
16329 |
;; |
|
16330 |
||
16331 |
beos*) |
|
16332 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
16333 |
allow_undefined_flag_F77=unsupported |
|
16334 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
16335 |
# support --undefined. This deserves some investigation. FIXME |
|
16336 |
archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
16337 |
else |
|
16338 |
ld_shlibs_F77=no |
|
16339 |
fi |
|
16340 |
;; |
|
16341 |
||
16342 |
cygwin* | mingw* | pw32*) |
|
16343 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
|
16344 |
# as there is no search path for DLLs. |
|
16345 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
16346 |
allow_undefined_flag_F77=no |
|
16347 |
always_export_symbols_F77=no |
|
16348 |
enable_shared_with_static_runtimes_F77=yes |
|
16349 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
16350 |
||
16351 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
16352 |
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
16353 |
# If the export-symbols file already is a .def file (1st line |
|
16354 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
16355 |
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
16356 |
cp $export_symbols $output_objdir/$soname.def; |
|
16357 |
else |
|
16358 |
echo EXPORTS > $output_objdir/$soname.def; |
|
16359 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
16360 |
fi~ |
|
16361 |
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
16362 |
else |
|
16363 |
ld_shlibs=no |
|
16364 |
fi |
|
16365 |
;; |
|
16366 |
||
16367 |
netbsd*) |
|
16368 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
16369 |
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
16370 |
wlarc= |
|
16371 |
else |
|
16372 |
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
16373 |
archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
16374 |
fi |
|
16375 |
;; |
|
16376 |
||
16377 |
solaris* | sysv5*) |
|
16378 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
16379 |
ld_shlibs_F77=no |
|
16380 |
cat <<EOF 1>&2 |
|
16381 |
||
16382 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
16383 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
16384 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
16385 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
16386 |
*** your PATH or compiler configuration so that the native linker is |
|
16387 |
*** used, and then restart. |
|
16388 |
||
16389 |
EOF |
|
16390 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
16391 |
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
16392 |
archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
16393 |
else |
|
16394 |
ld_shlibs_F77=no |
|
16395 |
fi |
|
16396 |
;; |
|
16397 |
||
16398 |
sunos4*) |
|
16399 |
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
16400 |
wlarc= |
|
16401 |
hardcode_direct_F77=yes |
|
16402 |
hardcode_shlibpath_var_F77=no |
|
16403 |
;; |
|
16404 |
||
16405 |
*) |
|
16406 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
16407 |
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
16408 |
archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
16409 |
else |
|
16410 |
ld_shlibs_F77=no |
|
16411 |
fi |
|
16412 |
;; |
|
16413 |
esac |
|
16414 |
||
16415 |
if test "$ld_shlibs_F77" = yes; then |
|
16416 |
runpath_var=LD_RUN_PATH |
|
16417 |
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
|
16418 |
export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
|
16419 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
16420 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
16421 |
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
16422 |
else |
|
16423 |
whole_archive_flag_spec_F77= |
|
16424 |
fi |
|
16425 |
fi |
|
16426 |
else |
|
16427 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
16428 |
case $host_os in |
|
16429 |
aix3*) |
|
16430 |
allow_undefined_flag_F77=unsupported |
|
16431 |
always_export_symbols_F77=yes |
|
16432 |
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
16433 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
16434 |
# are no directories specified by -L. |
|
16435 |
hardcode_minus_L_F77=yes |
|
16436 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
16437 |
# Neither direct hardcoding nor static linking is supported with a |
|
16438 |
# broken collect2. |
|
16439 |
hardcode_direct_F77=unsupported |
|
16440 |
fi |
|
16441 |
;; |
|
16442 |
||
16443 |
aix4* | aix5*) |
|
16444 |
if test "$host_cpu" = ia64; then |
|
16445 |
# On IA64, the linker does run time linking by default, so we don't |
|
16446 |
# have to do anything special. |
|
16447 |
aix_use_runtimelinking=no |
|
16448 |
exp_sym_flag='-Bexport' |
|
16449 |
no_entry_flag="" |
|
16450 |
else |
|
16451 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
16452 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
16453 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
16454 |
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
16455 |
else |
|
16456 |
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
16457 |
fi |
|
16458 |
||
16459 |
# KDE requires run time linking. Make it the default. |
|
16460 |
aix_use_runtimelinking=yes |
|
16461 |
exp_sym_flag='-bexport' |
|
16462 |
no_entry_flag='-bnoentry' |
|
16463 |
fi |
|
16464 |
||
16465 |
# When large executables or shared objects are built, AIX ld can |
|
16466 |
# have problems creating the table of contents. If linking a library |
|
16467 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
16468 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
16469 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
16470 |
||
16471 |
archive_cmds_F77='' |
|
16472 |
hardcode_direct_F77=yes |
|
16473 |
hardcode_libdir_separator_F77=':' |
|
16474 |
link_all_deplibs_F77=yes |
|
16475 |
||
16476 |
if test "$GCC" = yes; then |
|
16477 |
case $host_os in aix4.012|aix4.012.*) |
|
16478 |
# We only want to do this on AIX 4.2 and lower, the check |
|
16479 |
# below for broken collect2 doesn't work under 4.3+ |
|
16480 |
collect2name=`${CC} -print-prog-name=collect2` |
|
16481 |
if test -f "$collect2name" && \ |
|
16482 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
16483 |
then |
|
16484 |
# We have reworked collect2 |
|
16485 |
hardcode_direct_F77=yes |
|
16486 |
else |
|
16487 |
# We have old collect2 |
|
16488 |
hardcode_direct_F77=unsupported |
|
16489 |
# It fails to find uninstalled libraries when the uninstalled |
|
16490 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
16491 |
# to unsupported forces relinking |
|
16492 |
hardcode_minus_L_F77=yes |
|
16493 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
16494 |
hardcode_libdir_separator_F77= |
|
16495 |
fi |
|
16496 |
esac |
|
16497 |
shared_flag='-shared' |
|
16498 |
else |
|
16499 |
# not using gcc |
|
16500 |
if test "$host_cpu" = ia64; then |
|
16501 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
16502 |
# chokes on -Wl,-G. The following line is correct: |
|
16503 |
shared_flag='-G' |
|
16504 |
else |
|
16505 |
if test "$aix_use_runtimelinking" = yes; then |
|
16506 |
shared_flag='-qmkshrobj ${wl}-G' |
|
16507 |
else |
|
16508 |
shared_flag='-qmkshrobj' |
|
16509 |
fi |
|
16510 |
fi |
|
16511 |
fi |
|
16512 |
||
16513 |
# Let the compiler handle the export list. |
|
16514 |
always_export_symbols_F77=no |
|
16515 |
if test "$aix_use_runtimelinking" = yes; then |
|
16516 |
# Warning - without using the other runtime loading flags (-brtl), |
|
16517 |
# -berok will link without error, but may produce a broken library. |
|
16518 |
allow_undefined_flag_F77='-berok' |
|
16519 |
# Determine the default libpath from the value encoded in an empty executable. |
|
16520 |
cat >conftest.$ac_ext <<_ACEOF |
|
16521 |
program main |
|
16522 |
||
16523 |
end |
|
16524 |
_ACEOF |
|
16525 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
16526 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
16527 |
(eval $ac_link) 2>conftest.er1 |
|
16528 |
ac_status=$? |
|
16529 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
16530 |
rm -f conftest.er1 |
|
16531 |
cat conftest.err >&5 |
|
16532 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
16533 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
16534 |
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
16535 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16536 |
(eval $ac_try) 2>&5 |
|
16537 |
ac_status=$? |
|
16538 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
16539 |
(exit $ac_status); }; } && |
|
16540 |
{ ac_try='test -s conftest$ac_exeext' |
|
16541 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
16542 |
(eval $ac_try) 2>&5 |
|
16543 |
ac_status=$? |
|
16544 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
16545 |
(exit $ac_status); }; }; then |
|
16546 |
||
16547 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
16548 |
}'` |
|
16549 |
# Check for a 64-bit object if we didn't find anything. |
|
16550 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
16551 |
}'`; fi |
|
16552 |
else |
|
16553 |
echo "$as_me: failed program was:" >&5 |
|
16554 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
16555 |
||
16556 |
fi |
|
16557 |
rm -f conftest.err conftest.$ac_objext \ |
|
16558 |
conftest$ac_exeext conftest.$ac_ext |
|
16559 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
16560 |
||
16561 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
16562 |
archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" |
|
16563 |
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
16564 |
else |
|
16565 |
if test "$host_cpu" = ia64; then |
|
16566 |
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
|
16567 |
allow_undefined_flag_F77="-z nodefs" |
|
16568 |
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
16569 |
else |
|
16570 |
# Determine the default libpath from the value encoded in an empty executable. |
|
16571 |
cat >conftest.$ac_ext <<_ACEOF |
|
16572 |
program main |
|
16573 |
||
16574 |
end |
|
16575 |
_ACEOF |
|
16576 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
16577 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
16578 |
(eval $ac_link) 2>conftest.er1 |
|
16579 |
ac_status=$? |
|
16580 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
16581 |
rm -f conftest.er1 |
|
16582 |
cat conftest.err >&5 |
|
16583 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
16584 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
16585 |
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
16586 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16587 |
(eval $ac_try) 2>&5 |
|
16588 |
ac_status=$? |
|
16589 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
16590 |
(exit $ac_status); }; } && |
|
16591 |
{ ac_try='test -s conftest$ac_exeext' |
|
16592 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
16593 |
(eval $ac_try) 2>&5 |
|
16594 |
ac_status=$? |
|
16595 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
16596 |
(exit $ac_status); }; }; then |
|
16597 |
||
16598 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
16599 |
}'` |
|
16600 |
# Check for a 64-bit object if we didn't find anything. |
|
16601 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
16602 |
}'`; fi |
|
16603 |
else |
|
16604 |
echo "$as_me: failed program was:" >&5 |
|
16605 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
16606 |
||
16607 |
fi |
|
16608 |
rm -f conftest.err conftest.$ac_objext \ |
|
16609 |
conftest$ac_exeext conftest.$ac_ext |
|
16610 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
16611 |
||
16612 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
16613 |
# Warning - without using the other run time loading flags, |
|
16614 |
# -berok will link without error, but may produce a broken library. |
|
16615 |
no_undefined_flag_F77=' ${wl}-bernotok' |
|
16616 |
allow_undefined_flag_F77=' ${wl}-berok' |
|
16617 |
# -bexpall does not export symbols beginning with underscore (_) |
|
16618 |
always_export_symbols_F77=yes |
|
16619 |
# Exported symbols can be pulled into shared objects from archives |
|
16620 |
whole_archive_flag_spec_F77=' ' |
|
16621 |
archive_cmds_need_lc_F77=yes |
|
16622 |
# This is similar to how AIX traditionally builds it's shared libraries. |
|
16623 |
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
16624 |
fi |
|
16625 |
fi |
|
16626 |
;; |
|
16627 |
||
16628 |
amigaos*) |
|
16629 |
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
16630 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
16631 |
hardcode_minus_L_F77=yes |
|
16632 |
# see comment about different semantics on the GNU ld section |
|
16633 |
ld_shlibs_F77=no |
|
16634 |
;; |
|
16635 |
||
16636 |
bsdi4*) |
|
16637 |
export_dynamic_flag_spec_F77=-rdynamic |
|
16638 |
;; |
|
16639 |
||
16640 |
cygwin* | mingw* | pw32*) |
|
16641 |
# When not using gcc, we currently assume that we are using |
|
16642 |
# Microsoft Visual C++. |
|
16643 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
16644 |
# no search path for DLLs. |
|
16645 |
hardcode_libdir_flag_spec_F77=' ' |
|
16646 |
allow_undefined_flag_F77=no |
|
16647 |
# Tell ltmain to make .lib files, not .a files. |
|
16648 |
libext=lib |
|
16649 |
# Tell ltmain to make .dll files, not .so files. |
|
16650 |
shrext=".dll" |
|
16651 |
# FIXME: Setting linknames here is a bad hack. |
|
16652 |
archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
16653 |
# The linker will automatically build a .lib file if we build a DLL. |
|
16654 |
old_archive_From_new_cmds_F77='true' |
|
16655 |
# FIXME: Should let the user specify the lib program. |
|
16656 |
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
16657 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
16658 |
enable_shared_with_static_runtimes_F77=yes |
|
16659 |
;; |
|
16660 |
||
16661 |
darwin* | rhapsody*) |
|
16662 |
if test "$GXX" = yes ; then |
|
16663 |
archive_cmds_need_lc_F77=no |
|
16664 |
case "$host_os" in |
|
16665 |
rhapsody* | darwin1.[012]) |
|
16666 |
allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress' |
|
16667 |
;; |
|
16668 |
*) # Darwin 1.3 on |
|
16669 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
16670 |
allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
16671 |
else |
16672 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
16673 |
10.012) |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
16674 |
allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
16675 |
;; |
16676 |
10.*) |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
16677 |
allow_undefined_flag_F77='-Wl,-undefined -Wl,dynamic_lookup' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
16678 |
;; |
16679 |
esac |
|
16680 |
fi |
|
16681 |
;; |
|
16682 |
esac |
|
16683 |
lt_int_apple_cc_single_mod=no |
|
16684 |
output_verbose_link_cmd='echo' |
|
16685 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
16686 |
lt_int_apple_cc_single_mod=yes |
|
16687 |
fi |
|
16688 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
16689 |
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
|
16690 |
else |
|
16691 |
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' |
|
16692 |
fi |
|
16693 |
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
|
16694 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
16695 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
16696 |
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
16697 |
else |
|
16698 |
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
16699 |
fi |
|
16700 |
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
16701 |
hardcode_direct_F77=no |
|
16702 |
hardcode_automatic_F77=yes |
|
16703 |
hardcode_shlibpath_var_F77=unsupported |
|
16704 |
whole_archive_flag_spec_F77='-all_load $convenience' |
|
16705 |
link_all_deplibs_F77=yes |
|
16706 |
else |
|
16707 |
ld_shlibs_F77=no |
|
16708 |
fi |
|
16709 |
;; |
|
16710 |
||
16711 |
dgux*) |
|
16712 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16713 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
16714 |
hardcode_shlibpath_var_F77=no |
|
16715 |
;; |
|
16716 |
||
16717 |
freebsd1*) |
|
16718 |
ld_shlibs_F77=no |
|
16719 |
;; |
|
16720 |
||
16721 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
16722 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
16723 |
# does not break anything, and helps significantly (at the cost of a little |
|
16724 |
# extra space). |
|
16725 |
freebsd2.2*) |
|
16726 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
16727 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
16728 |
hardcode_direct_F77=yes |
|
16729 |
hardcode_shlibpath_var_F77=no |
|
16730 |
;; |
|
16731 |
||
16732 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
16733 |
freebsd2*) |
|
16734 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
16735 |
hardcode_direct_F77=yes |
|
16736 |
hardcode_minus_L_F77=yes |
|
16737 |
hardcode_shlibpath_var_F77=no |
|
16738 |
;; |
|
16739 |
||
16740 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
16741 |
freebsd*) |
|
16742 |
archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' |
|
16743 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
16744 |
hardcode_direct_F77=yes |
|
16745 |
hardcode_shlibpath_var_F77=no |
|
16746 |
;; |
|
16747 |
||
16748 |
hpux9*) |
|
16749 |
if test "$GCC" = yes; then |
|
16750 |
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
16751 |
else |
|
16752 |
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
16753 |
fi |
|
16754 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
16755 |
hardcode_libdir_separator_F77=: |
|
16756 |
hardcode_direct_F77=yes |
|
16757 |
||
16758 |
# hardcode_minus_L: Not really in the search PATH, |
|
16759 |
# but as the default location of the library. |
|
16760 |
hardcode_minus_L_F77=yes |
|
16761 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
16762 |
;; |
|
16763 |
||
16764 |
hpux10* | hpux11*) |
|
16765 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
16766 |
case "$host_cpu" in |
|
16767 |
hppa*64*|ia64*) |
|
16768 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
16769 |
;; |
|
16770 |
*) |
|
16771 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' |
|
16772 |
;; |
|
16773 |
esac |
|
16774 |
else |
|
16775 |
case "$host_cpu" in |
|
16776 |
hppa*64*|ia64*) |
|
16777 |
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16778 |
;; |
|
16779 |
*) |
|
16780 |
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
16781 |
;; |
|
16782 |
esac |
|
16783 |
fi |
|
16784 |
if test "$with_gnu_ld" = no; then |
|
16785 |
case "$host_cpu" in |
|
16786 |
hppa*64*) |
|
16787 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
16788 |
hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
|
16789 |
hardcode_libdir_separator_F77=: |
|
16790 |
hardcode_direct_F77=no |
|
16791 |
hardcode_shlibpath_var_F77=no |
|
16792 |
;; |
|
16793 |
ia64*) |
|
16794 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
16795 |
hardcode_direct_F77=no |
|
16796 |
hardcode_shlibpath_var_F77=no |
|
16797 |
||
16798 |
# hardcode_minus_L: Not really in the search PATH, |
|
16799 |
# but as the default location of the library. |
|
16800 |
hardcode_minus_L_F77=yes |
|
16801 |
;; |
|
16802 |
*) |
|
16803 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
16804 |
hardcode_libdir_separator_F77=: |
|
16805 |
hardcode_direct_F77=yes |
|
16806 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
16807 |
||
16808 |
# hardcode_minus_L: Not really in the search PATH, |
|
16809 |
# but as the default location of the library. |
|
16810 |
hardcode_minus_L_F77=yes |
|
16811 |
;; |
|
16812 |
esac |
|
16813 |
fi |
|
16814 |
;; |
|
16815 |
||
16816 |
irix5* | irix6* | nonstopux*) |
|
16817 |
if test "$GCC" = yes; then |
|
16818 |
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
16819 |
else |
|
16820 |
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
16821 |
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
|
16822 |
fi |
|
16823 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
16824 |
hardcode_libdir_separator_F77=: |
|
16825 |
link_all_deplibs_F77=yes |
|
16826 |
;; |
|
16827 |
||
16828 |
netbsd*) |
|
16829 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
16830 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
16831 |
else |
|
16832 |
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
16833 |
fi |
|
16834 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
16835 |
hardcode_direct_F77=yes |
|
16836 |
hardcode_shlibpath_var_F77=no |
|
16837 |
;; |
|
16838 |
||
16839 |
newsos6) |
|
16840 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16841 |
hardcode_direct_F77=yes |
|
16842 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
16843 |
hardcode_libdir_separator_F77=: |
|
16844 |
hardcode_shlibpath_var_F77=no |
|
16845 |
;; |
|
16846 |
||
16847 |
openbsd*) |
|
16848 |
hardcode_direct_F77=yes |
|
16849 |
hardcode_shlibpath_var_F77=no |
|
16850 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
16851 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
|
16852 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
16853 |
export_dynamic_flag_spec_F77='${wl}-E' |
|
16854 |
else |
|
16855 |
case $host_os in |
|
16856 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
16857 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
16858 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
16859 |
;; |
|
16860 |
*) |
|
16861 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
|
16862 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
16863 |
;; |
|
16864 |
esac |
|
16865 |
fi |
|
16866 |
;; |
|
16867 |
||
16868 |
os2*) |
|
16869 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
16870 |
hardcode_minus_L_F77=yes |
|
16871 |
allow_undefined_flag_F77=unsupported |
|
16872 |
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' |
|
16873 |
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
16874 |
;; |
|
16875 |
||
16876 |
osf3*) |
|
16877 |
if test "$GCC" = yes; then |
|
16878 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
16879 |
archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
16880 |
else |
|
16881 |
allow_undefined_flag_F77=' -expect_unresolved \*' |
|
16882 |
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
16883 |
fi |
|
16884 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
16885 |
hardcode_libdir_separator_F77=: |
|
16886 |
;; |
|
16887 |
||
16888 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
16889 |
if test "$GCC" = yes; then |
|
16890 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
16891 |
archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
16892 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
16893 |
else |
|
16894 |
allow_undefined_flag_F77=' -expect_unresolved \*' |
|
16895 |
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
16896 |
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
16897 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
16898 |
||
16899 |
# Both c and cxx compiler support -rpath directly |
|
16900 |
hardcode_libdir_flag_spec_F77='-rpath $libdir' |
|
16901 |
fi |
|
16902 |
hardcode_libdir_separator_F77=: |
|
16903 |
;; |
|
16904 |
||
16905 |
sco3.2v5*) |
|
16906 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16907 |
hardcode_shlibpath_var_F77=no |
|
16908 |
export_dynamic_flag_spec_F77='${wl}-Bexport' |
|
16909 |
runpath_var=LD_RUN_PATH |
|
16910 |
hardcode_runpath_var=yes |
|
16911 |
;; |
|
16912 |
||
16913 |
solaris*) |
|
16914 |
no_undefined_flag_F77=' -z text' |
|
16915 |
if test "$GCC" = yes; then |
|
16916 |
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
16917 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
16918 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' |
|
16919 |
else |
|
16920 |
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16921 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
16922 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
16923 |
fi |
|
16924 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
|
16925 |
hardcode_shlibpath_var_F77=no |
|
16926 |
case $host_os in |
|
16927 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
16928 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
16929 |
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
|
16930 |
esac |
|
16931 |
link_all_deplibs_F77=yes |
|
16932 |
;; |
|
16933 |
||
16934 |
sunos4*) |
|
16935 |
if test "x$host_vendor" = xsequent; then |
|
16936 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
16937 |
# files that make .init and .fini sections work. |
|
16938 |
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' |
|
16939 |
else |
|
16940 |
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
16941 |
fi |
|
16942 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
16943 |
hardcode_direct_F77=yes |
|
16944 |
hardcode_minus_L_F77=yes |
|
16945 |
hardcode_shlibpath_var_F77=no |
|
16946 |
;; |
|
16947 |
||
16948 |
sysv4) |
|
16949 |
case $host_vendor in |
|
16950 |
sni) |
|
16951 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16952 |
hardcode_direct_F77=yes # is this really true??? |
|
16953 |
;; |
|
16954 |
siemens) |
|
16955 |
## LD is ld it makes a PLAMLIB |
|
16956 |
## CC just makes a GrossModule. |
|
16957 |
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
16958 |
reload_cmds_F77='$CC -r -o $output$reload_objs' |
|
16959 |
hardcode_direct_F77=no |
|
16960 |
;; |
|
16961 |
motorola) |
|
16962 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16963 |
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
|
16964 |
;; |
|
16965 |
esac |
|
16966 |
runpath_var='LD_RUN_PATH' |
|
16967 |
hardcode_shlibpath_var_F77=no |
|
16968 |
;; |
|
16969 |
||
16970 |
sysv4.3*) |
|
16971 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16972 |
hardcode_shlibpath_var_F77=no |
|
16973 |
export_dynamic_flag_spec_F77='-Bexport' |
|
16974 |
;; |
|
16975 |
||
16976 |
sysv4*MP*) |
|
16977 |
if test -d /usr/nec; then |
|
16978 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16979 |
hardcode_shlibpath_var_F77=no |
|
16980 |
runpath_var=LD_RUN_PATH |
|
16981 |
hardcode_runpath_var=yes |
|
16982 |
ld_shlibs_F77=yes |
|
16983 |
fi |
|
16984 |
;; |
|
16985 |
||
16986 |
sysv4.2uw2*) |
|
16987 |
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
16988 |
hardcode_direct_F77=yes |
|
16989 |
hardcode_minus_L_F77=no |
|
16990 |
hardcode_shlibpath_var_F77=no |
|
16991 |
hardcode_runpath_var=yes |
|
16992 |
runpath_var=LD_RUN_PATH |
|
16993 |
;; |
|
16994 |
||
16995 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
16996 |
no_undefined_flag_F77='${wl}-z ${wl}text' |
|
16997 |
if test "$GCC" = yes; then |
|
16998 |
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
16999 |
else |
|
17000 |
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
17001 |
fi |
|
17002 |
runpath_var='LD_RUN_PATH' |
|
17003 |
hardcode_shlibpath_var_F77=no |
|
17004 |
;; |
|
17005 |
||
17006 |
sysv5*) |
|
17007 |
no_undefined_flag_F77=' -z text' |
|
17008 |
# $CC -shared without GNU ld will not create a library from C++ |
|
17009 |
# object files and a static libstdc++, better avoid it by now |
|
17010 |
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17011 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
17012 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
17013 |
hardcode_libdir_flag_spec_F77= |
|
17014 |
hardcode_shlibpath_var_F77=no |
|
17015 |
runpath_var='LD_RUN_PATH' |
|
17016 |
;; |
|
17017 |
||
17018 |
uts4*) |
|
17019 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
17020 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
|
17021 |
hardcode_shlibpath_var_F77=no |
|
17022 |
;; |
|
17023 |
||
17024 |
*) |
|
17025 |
ld_shlibs_F77=no |
|
17026 |
;; |
|
17027 |
esac |
|
17028 |
fi |
|
17029 |
||
17030 |
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
|
17031 |
echo "${ECHO_T}$ld_shlibs_F77" >&6 |
|
17032 |
test "$ld_shlibs_F77" = no && can_build_shared=no |
|
17033 |
||
17034 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
17035 |
if test "$GCC" = yes; then |
|
17036 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
17037 |
fi |
|
17038 |
||
17039 |
# |
|
17040 |
# Do we need to explicitly link libc? |
|
17041 |
# |
|
17042 |
case "x$archive_cmds_need_lc_F77" in |
|
17043 |
x|xyes) |
|
17044 |
# Assume -lc should be added |
|
17045 |
archive_cmds_need_lc_F77=yes |
|
17046 |
||
17047 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
17048 |
case $archive_cmds_F77 in |
|
17049 |
*'~'*) |
|
17050 |
# FIXME: we may have to deal with multi-command sequences. |
|
17051 |
;; |
|
17052 |
'$CC '*) |
|
17053 |
# Test whether the compiler implicitly links with -lc since on some |
|
17054 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
17055 |
# to ld, don't add -lc before -lgcc. |
|
17056 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
17057 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
17058 |
$rm conftest* |
|
17059 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
17060 |
||
17061 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
17062 |
(eval $ac_compile) 2>&5 |
|
17063 |
ac_status=$? |
|
17064 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17065 |
(exit $ac_status); } 2>conftest.err; then |
|
17066 |
soname=conftest |
|
17067 |
lib=conftest |
|
17068 |
libobjs=conftest.$ac_objext |
|
17069 |
deplibs= |
|
17070 |
wl=$lt_prog_compiler_wl_F77 |
|
17071 |
compiler_flags=-v |
|
17072 |
linker_flags=-v |
|
17073 |
verstring= |
|
17074 |
output_objdir=. |
|
17075 |
libname=conftest |
|
17076 |
lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
|
17077 |
allow_undefined_flag_F77= |
|
17078 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
17079 |
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
17080 |
ac_status=$? |
|
17081 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
17082 |
(exit $ac_status); } |
|
17083 |
then |
|
17084 |
archive_cmds_need_lc_F77=no |
|
17085 |
else |
|
17086 |
archive_cmds_need_lc_F77=yes |
|
17087 |
fi |
|
17088 |
allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
|
17089 |
else |
|
17090 |
cat conftest.err 1>&5 |
|
17091 |
fi |
|
17092 |
$rm conftest* |
|
17093 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
|
17094 |
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
|
17095 |
;; |
|
17096 |
esac |
|
17097 |
fi |
|
17098 |
;; |
|
17099 |
esac |
|
17100 |
||
17101 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
17102 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
17103 |
library_names_spec= |
|
17104 |
libname_spec='lib$name' |
|
17105 |
soname_spec= |
|
17106 |
shrext=".so" |
|
17107 |
postinstall_cmds= |
|
17108 |
postuninstall_cmds= |
|
17109 |
finish_cmds= |
|
17110 |
finish_eval= |
|
17111 |
shlibpath_var= |
|
17112 |
shlibpath_overrides_runpath=unknown |
|
17113 |
version_type=none |
|
17114 |
dynamic_linker="$host_os ld.so" |
|
17115 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
17116 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
17117 |
need_lib_prefix=unknown |
|
17118 |
hardcode_into_libs=no |
|
17119 |
||
17120 |
# when you set need_version to no, make sure it does not cause -set_version |
|
17121 |
# flags to be left without arguments |
|
17122 |
need_version=unknown |
|
17123 |
||
17124 |
case $host_os in |
|
17125 |
aix3*) |
|
17126 |
version_type=linux |
|
17127 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
17128 |
shlibpath_var=LIBPATH |
|
17129 |
||
17130 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
17131 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17132 |
;; |
|
17133 |
||
17134 |
aix4* | aix5*) |
|
17135 |
version_type=linux |
|
17136 |
need_lib_prefix=no |
|
17137 |
need_version=no |
|
17138 |
hardcode_into_libs=yes |
|
17139 |
if test "$host_cpu" = ia64; then |
|
17140 |
# AIX 5 supports IA64 |
|
17141 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
17142 |
shlibpath_var=LD_LIBRARY_PATH |
|
17143 |
else |
|
17144 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
17145 |
# for dependence libraries. The import file would start with |
|
17146 |
# the line `#! .'. This would cause the generated library to |
|
17147 |
# depend on `.', always an invalid library. This was fixed in |
|
17148 |
# development snapshots of GCC prior to 3.0. |
|
17149 |
case $host_os in |
|
17150 |
aix4 | aix4.[01] | aix4.[01].*) |
|
17151 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
17152 |
echo ' yes ' |
|
17153 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
17154 |
: |
|
17155 |
else |
|
17156 |
can_build_shared=no |
|
17157 |
fi |
|
17158 |
;; |
|
17159 |
esac |
|
17160 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
17161 |
# soname into executable. Probably we can add versioning support to |
|
17162 |
# collect2, so additional links can be useful in future. |
|
17163 |
if test "$aix_use_runtimelinking" = yes; then |
|
17164 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
17165 |
# instead of lib<name>.a to let people know that these are not |
|
17166 |
# typical AIX shared libraries. |
|
17167 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17168 |
else |
|
17169 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
17170 |
# and later when we are not doing run time linking. |
|
17171 |
library_names_spec='${libname}${release}.a $libname.a' |
|
17172 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17173 |
fi |
|
17174 |
shlibpath_var=LIBPATH |
|
17175 |
fi |
|
17176 |
;; |
|
17177 |
||
17178 |
amigaos*) |
|
17179 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
17180 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
17181 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
|
17182 |
;; |
|
17183 |
||
17184 |
beos*) |
|
17185 |
library_names_spec='${libname}${shared_ext}' |
|
17186 |
dynamic_linker="$host_os ld.so" |
|
17187 |
shlibpath_var=LIBRARY_PATH |
|
17188 |
;; |
|
17189 |
||
17190 |
bsdi4*) |
|
17191 |
version_type=linux |
|
17192 |
need_version=no |
|
17193 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17194 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17195 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
17196 |
shlibpath_var=LD_LIBRARY_PATH |
|
17197 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
17198 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
17199 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
17200 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
17201 |
# libtool to hard-code these into programs |
|
17202 |
;; |
|
17203 |
||
17204 |
cygwin* | mingw* | pw32*) |
|
17205 |
version_type=windows |
|
17206 |
shrext=".dll" |
|
17207 |
need_version=no |
|
17208 |
need_lib_prefix=no |
|
17209 |
||
17210 |
case $GCC,$host_os in |
|
17211 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
17212 |
library_names_spec='$libname.dll.a' |
|
17213 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
17214 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
17215 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
17216 |
dldir=$destdir/`dirname \$dlpath`~ |
|
17217 |
test -d \$dldir || mkdir -p \$dldir~ |
|
17218 |
$install_prog $dir/$dlname \$dldir/$dlname' |
|
17219 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
17220 |
dlpath=$dir/\$dldll~ |
|
17221 |
$rm \$dlpath' |
|
17222 |
shlibpath_overrides_runpath=yes |
|
17223 |
||
17224 |
case $host_os in |
|
17225 |
cygwin*) |
|
17226 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
17227 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
17228 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
17229 |
;; |
|
17230 |
mingw*) |
|
17231 |
# MinGW DLLs use traditional 'lib' prefix |
|
17232 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
17233 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
17234 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
17235 |
# It is most probably a Windows format PATH printed by |
|
17236 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
17237 |
# path with ; separators, and with drive letters. We can handle the |
|
17238 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
17239 |
# especially as we might pass files found there to a mingw objdump, |
|
17240 |
# which wouldn't understand a cygwinified path. Ahh. |
|
17241 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
17242 |
else |
|
17243 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
17244 |
fi |
|
17245 |
;; |
|
17246 |
pw32*) |
|
17247 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
17248 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
17249 |
;; |
|
17250 |
esac |
|
17251 |
;; |
|
17252 |
||
17253 |
*) |
|
17254 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
17255 |
;; |
|
17256 |
esac |
|
17257 |
dynamic_linker='Win32 ld.exe' |
|
17258 |
# FIXME: first we should search . and the directory the executable is in |
|
17259 |
shlibpath_var=PATH |
|
17260 |
;; |
|
17261 |
||
17262 |
darwin* | rhapsody*) |
|
17263 |
dynamic_linker="$host_os dyld" |
|
17264 |
version_type=darwin |
|
17265 |
need_lib_prefix=no |
|
17266 |
need_version=no |
|
17267 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
17268 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
17269 |
shlibpath_overrides_runpath=yes |
|
17270 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
17271 |
shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
|
17272 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
17273 |
if test "$GCC" = yes; then |
|
17274 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
17275 |
else |
|
17276 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
17277 |
fi |
|
17278 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
17279 |
;; |
|
17280 |
||
17281 |
dgux*) |
|
17282 |
version_type=linux |
|
17283 |
need_lib_prefix=no |
|
17284 |
need_version=no |
|
17285 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
17286 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17287 |
shlibpath_var=LD_LIBRARY_PATH |
|
17288 |
;; |
|
17289 |
||
17290 |
freebsd1*) |
|
17291 |
dynamic_linker=no |
|
17292 |
;; |
|
17293 |
||
17294 |
freebsd*-gnu*) |
|
17295 |
version_type=linux |
|
17296 |
need_lib_prefix=no |
|
17297 |
need_version=no |
|
17298 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
17299 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17300 |
shlibpath_var=LD_LIBRARY_PATH |
|
17301 |
shlibpath_overrides_runpath=no |
|
17302 |
hardcode_into_libs=yes |
|
17303 |
dynamic_linker='GNU ld.so' |
|
17304 |
;; |
|
17305 |
||
17306 |
freebsd*) |
|
17307 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
17308 |
version_type=freebsd-$objformat |
|
17309 |
case $version_type in |
|
17310 |
freebsd-elf*) |
|
17311 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
17312 |
need_version=no |
|
17313 |
need_lib_prefix=no |
|
17314 |
;; |
|
17315 |
freebsd-*) |
|
17316 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
17317 |
need_version=yes |
|
17318 |
;; |
|
17319 |
esac |
|
17320 |
shlibpath_var=LD_LIBRARY_PATH |
|
17321 |
case $host_os in |
|
17322 |
freebsd2*) |
|
17323 |
shlibpath_overrides_runpath=yes |
|
17324 |
;; |
|
17325 |
freebsd3.01* | freebsdelf3.01*) |
|
17326 |
shlibpath_overrides_runpath=yes |
|
17327 |
hardcode_into_libs=yes |
|
17328 |
;; |
|
17329 |
*) # from 3.2 on |
|
17330 |
shlibpath_overrides_runpath=no |
|
17331 |
hardcode_into_libs=yes |
|
17332 |
;; |
|
17333 |
esac |
|
17334 |
;; |
|
17335 |
||
17336 |
gnu*) |
|
17337 |
version_type=linux |
|
17338 |
need_lib_prefix=no |
|
17339 |
need_version=no |
|
17340 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
17341 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17342 |
shlibpath_var=LD_LIBRARY_PATH |
|
17343 |
hardcode_into_libs=yes |
|
17344 |
;; |
|
17345 |
||
17346 |
hpux9* | hpux10* | hpux11*) |
|
17347 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
17348 |
# link against other versions. |
|
17349 |
version_type=sunos |
|
17350 |
need_lib_prefix=no |
|
17351 |
need_version=no |
|
17352 |
case "$host_cpu" in |
|
17353 |
ia64*) |
|
17354 |
shrext='.so' |
|
17355 |
hardcode_into_libs=yes |
|
17356 |
dynamic_linker="$host_os dld.so" |
|
17357 |
shlibpath_var=LD_LIBRARY_PATH |
|
17358 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
17359 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17360 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17361 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
17362 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
17363 |
else |
|
17364 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
17365 |
fi |
|
17366 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
17367 |
;; |
|
17368 |
hppa*64*) |
|
17369 |
shrext='.sl' |
|
17370 |
hardcode_into_libs=yes |
|
17371 |
dynamic_linker="$host_os dld.sl" |
|
17372 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
17373 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
17374 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17375 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17376 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
17377 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
17378 |
;; |
|
17379 |
*) |
|
17380 |
shrext='.sl' |
|
17381 |
dynamic_linker="$host_os dld.sl" |
|
17382 |
shlibpath_var=SHLIB_PATH |
|
17383 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
17384 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17385 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17386 |
;; |
|
17387 |
esac |
|
17388 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
17389 |
postinstall_cmds='chmod 555 $lib' |
|
17390 |
;; |
|
17391 |
||
17392 |
irix5* | irix6* | nonstopux*) |
|
17393 |
case $host_os in |
|
17394 |
nonstopux*) version_type=nonstopux ;; |
|
17395 |
*) |
|
17396 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
17397 |
version_type=linux |
|
17398 |
else |
|
17399 |
version_type=irix |
|
17400 |
fi ;; |
|
17401 |
esac |
|
17402 |
need_lib_prefix=no |
|
17403 |
need_version=no |
|
17404 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17405 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
17406 |
case $host_os in |
|
17407 |
irix5* | nonstopux*) |
|
17408 |
libsuff= shlibsuff= |
|
17409 |
;; |
|
17410 |
*) |
|
17411 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
17412 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
17413 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
17414 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
17415 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
17416 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
17417 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
17418 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
17419 |
esac |
|
17420 |
;; |
|
17421 |
esac |
|
17422 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
17423 |
shlibpath_overrides_runpath=no |
|
17424 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
17425 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
17426 |
hardcode_into_libs=yes |
|
17427 |
;; |
|
17428 |
||
17429 |
# No shared lib support for Linux oldld, aout, or coff. |
|
17430 |
linux*oldld* | linux*aout* | linux*coff*) |
|
17431 |
dynamic_linker=no |
|
17432 |
;; |
|
17433 |
||
17434 |
# This must be Linux ELF. |
|
17435 |
linux*) |
|
17436 |
version_type=linux |
|
17437 |
need_lib_prefix=no |
|
17438 |
need_version=no |
|
17439 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17440 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17441 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
17442 |
libsuff= |
|
17443 |
if test "x$LINUX_64_MODE" = x64; then |
|
17444 |
# Some platforms are per default 64-bit, so there's no /lib64 |
|
17445 |
if test -d /lib64; then |
|
17446 |
libsuff=64 |
|
17447 |
fi |
|
17448 |
fi |
|
17449 |
shlibpath_var=LD_LIBRARY_PATH |
|
17450 |
shlibpath_overrides_runpath=no |
|
17451 |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
|
17452 |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
|
17453 |
# This implies no fast_install, which is unacceptable. |
|
17454 |
# Some rework will be needed to allow for fast_install |
|
17455 |
# before this can be enabled. |
|
17456 |
hardcode_into_libs=yes |
|
17457 |
||
17458 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
17459 |
# powerpc, because MkLinux only supported shared libraries with the |
|
17460 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
17461 |
# most powerpc-linux boxes support dynamic linking these days and |
|
17462 |
# people can always --disable-shared, the test was removed, and we |
|
17463 |
# assume the GNU/Linux dynamic linker is in use. |
|
17464 |
dynamic_linker='GNU/Linux ld.so' |
|
17465 |
;; |
|
17466 |
||
17467 |
netbsd*) |
|
17468 |
version_type=sunos |
|
17469 |
need_lib_prefix=no |
|
17470 |
need_version=no |
|
17471 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
17472 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
17473 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
17474 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
17475 |
else |
|
17476 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
|
17477 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17478 |
dynamic_linker='NetBSD ld.elf_so' |
|
17479 |
fi |
|
17480 |
shlibpath_var=LD_LIBRARY_PATH |
|
17481 |
shlibpath_overrides_runpath=yes |
|
17482 |
hardcode_into_libs=yes |
|
17483 |
;; |
|
17484 |
||
17485 |
newsos6) |
|
17486 |
version_type=linux |
|
17487 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17488 |
shlibpath_var=LD_LIBRARY_PATH |
|
17489 |
shlibpath_overrides_runpath=yes |
|
17490 |
;; |
|
17491 |
||
17492 |
nto-qnx*) |
|
17493 |
version_type=linux |
|
17494 |
need_lib_prefix=no |
|
17495 |
need_version=no |
|
17496 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17497 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17498 |
shlibpath_var=LD_LIBRARY_PATH |
|
17499 |
shlibpath_overrides_runpath=yes |
|
17500 |
;; |
|
17501 |
||
17502 |
openbsd*) |
|
17503 |
version_type=sunos |
|
17504 |
need_lib_prefix=no |
|
17505 |
need_version=no |
|
17506 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
17507 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
17508 |
shlibpath_var=LD_LIBRARY_PATH |
|
17509 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
17510 |
case $host_os in |
|
17511 |
openbsd2.[89] | openbsd2.[89].*) |
|
17512 |
shlibpath_overrides_runpath=no |
|
17513 |
;; |
|
17514 |
*) |
|
17515 |
shlibpath_overrides_runpath=yes |
|
17516 |
;; |
|
17517 |
esac |
|
17518 |
else |
|
17519 |
shlibpath_overrides_runpath=yes |
|
17520 |
fi |
|
17521 |
;; |
|
17522 |
||
17523 |
os2*) |
|
17524 |
libname_spec='$name' |
|
17525 |
shrext=".dll" |
|
17526 |
need_lib_prefix=no |
|
17527 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
17528 |
dynamic_linker='OS/2 ld.exe' |
|
17529 |
shlibpath_var=LIBPATH |
|
17530 |
;; |
|
17531 |
||
17532 |
osf3* | osf4* | osf5*) |
|
17533 |
version_type=osf |
|
17534 |
need_lib_prefix=no |
|
17535 |
need_version=no |
|
17536 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17537 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17538 |
shlibpath_var=LD_LIBRARY_PATH |
|
17539 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
17540 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
17541 |
;; |
|
17542 |
||
17543 |
sco3.2v5*) |
|
17544 |
version_type=osf |
|
17545 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17546 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17547 |
shlibpath_var=LD_LIBRARY_PATH |
|
17548 |
;; |
|
17549 |
||
17550 |
solaris*) |
|
17551 |
version_type=linux |
|
17552 |
need_lib_prefix=no |
|
17553 |
need_version=no |
|
17554 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17555 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17556 |
shlibpath_var=LD_LIBRARY_PATH |
|
17557 |
shlibpath_overrides_runpath=yes |
|
17558 |
hardcode_into_libs=yes |
|
17559 |
# ldd complains unless libraries are executable |
|
17560 |
postinstall_cmds='chmod +x $lib' |
|
17561 |
;; |
|
17562 |
||
17563 |
sunos4*) |
|
17564 |
version_type=sunos |
|
17565 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
17566 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
17567 |
shlibpath_var=LD_LIBRARY_PATH |
|
17568 |
shlibpath_overrides_runpath=yes |
|
17569 |
if test "$with_gnu_ld" = yes; then |
|
17570 |
need_lib_prefix=no |
|
17571 |
fi |
|
17572 |
need_version=yes |
|
17573 |
;; |
|
17574 |
||
17575 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
17576 |
version_type=linux |
|
17577 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17578 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17579 |
shlibpath_var=LD_LIBRARY_PATH |
|
17580 |
case $host_vendor in |
|
17581 |
sni) |
|
17582 |
shlibpath_overrides_runpath=no |
|
17583 |
need_lib_prefix=no |
|
17584 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
17585 |
runpath_var=LD_RUN_PATH |
|
17586 |
;; |
|
17587 |
siemens) |
|
17588 |
need_lib_prefix=no |
|
17589 |
;; |
|
17590 |
motorola) |
|
17591 |
need_lib_prefix=no |
|
17592 |
need_version=no |
|
17593 |
shlibpath_overrides_runpath=no |
|
17594 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
17595 |
;; |
|
17596 |
esac |
|
17597 |
;; |
|
17598 |
||
17599 |
sysv4*MP*) |
|
17600 |
if test -d /usr/nec ;then |
|
17601 |
version_type=linux |
|
17602 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
17603 |
soname_spec='$libname${shared_ext}.$major' |
|
17604 |
shlibpath_var=LD_LIBRARY_PATH |
|
17605 |
fi |
|
17606 |
;; |
|
17607 |
||
17608 |
uts4*) |
|
17609 |
version_type=linux |
|
17610 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
17611 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
17612 |
shlibpath_var=LD_LIBRARY_PATH |
|
17613 |
;; |
|
17614 |
||
17615 |
*) |
|
17616 |
dynamic_linker=no |
|
17617 |
;; |
|
17618 |
esac |
|
17619 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
17620 |
echo "${ECHO_T}$dynamic_linker" >&6 |
|
17621 |
test "$dynamic_linker" = no && can_build_shared=no |
|
17622 |
||
17623 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
17624 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
17625 |
hardcode_action_F77= |
|
17626 |
if test -n "$hardcode_libdir_flag_spec_F77" || \ |
|
17627 |
test -n "$runpath_var F77" || \ |
|
17628 |
test "X$hardcode_automatic_F77"="Xyes" ; then |
|
17629 |
||
17630 |
# We can hardcode non-existant directories. |
|
17631 |
if test "$hardcode_direct_F77" != no && |
|
17632 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
17633 |
# have to relink, otherwise we might link with an installed library |
|
17634 |
# when we should be linking with a yet-to-be-installed one |
|
17635 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
|
17636 |
test "$hardcode_minus_L_F77" != no; then |
|
17637 |
# Linking always hardcodes the temporary library directory. |
|
17638 |
hardcode_action_F77=relink |
|
17639 |
else |
|
17640 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
17641 |
hardcode_action_F77=immediate |
|
17642 |
fi |
|
17643 |
else |
|
17644 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
17645 |
# directories. |
|
17646 |
hardcode_action_F77=unsupported |
|
17647 |
fi |
|
17648 |
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
|
17649 |
echo "${ECHO_T}$hardcode_action_F77" >&6 |
|
17650 |
||
17651 |
if test "$hardcode_action_F77" = relink; then |
|
17652 |
# Fast installation is not supported |
|
17653 |
enable_fast_install=no |
|
17654 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
17655 |
test "$enable_shared" = no; then |
|
17656 |
# Fast installation is not necessary |
|
17657 |
enable_fast_install=needless |
|
17658 |
fi |
|
17659 |
||
17660 |
striplib= |
|
17661 |
old_striplib= |
|
17662 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
17663 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
17664 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
17665 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
17666 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
17667 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
17668 |
echo "${ECHO_T}yes" >&6 |
|
17669 |
else |
|
17670 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
17671 |
case $host_os in |
|
17672 |
darwin*) |
|
17673 |
if test -n "$STRIP" ; then |
|
17674 |
striplib="$STRIP -x" |
|
17675 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
17676 |
echo "${ECHO_T}yes" >&6 |
|
17677 |
else |
|
17678 |
echo "$as_me:$LINENO: result: no" >&5 |
|
17679 |
echo "${ECHO_T}no" >&6 |
|
17680 |
fi |
|
17681 |
;; |
|
17682 |
*) |
|
17683 |
echo "$as_me:$LINENO: result: no" >&5 |
|
17684 |
echo "${ECHO_T}no" >&6 |
|
17685 |
;; |
|
17686 |
esac |
|
17687 |
fi |
|
17688 |
||
17689 |
||
17690 |
||
17691 |
# The else clause should only fire when bootstrapping the |
|
17692 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
17693 |
# with your package, and you will get complaints that there are |
|
17694 |
# no rules to generate ltmain.sh. |
|
17695 |
if test -f "$ltmain"; then |
|
17696 |
# See if we are running on zsh, and set the options which allow our commands through |
|
17697 |
# without removal of \ escapes. |
|
17698 |
if test -n "${ZSH_VERSION+set}" ; then |
|
17699 |
setopt NO_GLOB_SUBST |
|
17700 |
fi |
|
17701 |
# Now quote all the things that may contain metacharacters while being |
|
17702 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
17703 |
# variables and quote the copies for generation of the libtool script. |
|
17704 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
|
17705 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
17706 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
17707 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
17708 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
17709 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
17710 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
17711 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
17712 |
compiler_F77 \ |
|
17713 |
CC_F77 \ |
|
17714 |
LD_F77 \ |
|
17715 |
lt_prog_compiler_wl_F77 \ |
|
17716 |
lt_prog_compiler_pic_F77 \ |
|
17717 |
lt_prog_compiler_static_F77 \ |
|
17718 |
lt_prog_compiler_no_builtin_flag_F77 \ |
|
17719 |
export_dynamic_flag_spec_F77 \ |
|
17720 |
thread_safe_flag_spec_F77 \ |
|
17721 |
whole_archive_flag_spec_F77 \ |
|
17722 |
enable_shared_with_static_runtimes_F77 \ |
|
17723 |
old_archive_cmds_F77 \ |
|
17724 |
old_archive_from_new_cmds_F77 \ |
|
17725 |
predep_objects_F77 \ |
|
17726 |
postdep_objects_F77 \ |
|
17727 |
predeps_F77 \ |
|
17728 |
postdeps_F77 \ |
|
17729 |
compiler_lib_search_path_F77 \ |
|
17730 |
archive_cmds_F77 \ |
|
17731 |
archive_expsym_cmds_F77 \ |
|
17732 |
postinstall_cmds_F77 \ |
|
17733 |
postuninstall_cmds_F77 \ |
|
17734 |
old_archive_from_expsyms_cmds_F77 \ |
|
17735 |
allow_undefined_flag_F77 \ |
|
17736 |
no_undefined_flag_F77 \ |
|
17737 |
export_symbols_cmds_F77 \ |
|
17738 |
hardcode_libdir_flag_spec_F77 \ |
|
17739 |
hardcode_libdir_flag_spec_ld_F77 \ |
|
17740 |
hardcode_libdir_separator_F77 \ |
|
17741 |
hardcode_automatic_F77 \ |
|
17742 |
module_cmds_F77 \ |
|
17743 |
module_expsym_cmds_F77 \ |
|
17744 |
lt_cv_prog_compiler_c_o_F77 \ |
|
17745 |
exclude_expsyms_F77 \ |
|
17746 |
include_expsyms_F77; do |
|
17747 |
||
17748 |
case $var in |
|
17749 |
old_archive_cmds_F77 | \ |
|
17750 |
old_archive_from_new_cmds_F77 | \ |
|
17751 |
archive_cmds_F77 | \ |
|
17752 |
archive_expsym_cmds_F77 | \ |
|
17753 |
module_cmds_F77 | \ |
|
17754 |
module_expsym_cmds_F77 | \ |
|
17755 |
old_archive_from_expsyms_cmds_F77 | \ |
|
17756 |
export_symbols_cmds_F77 | \ |
|
17757 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
17758 |
postinstall_cmds | postuninstall_cmds | \ |
|
17759 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
17760 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
17761 |
# Double-quote double-evaled strings. |
|
17762 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
17763 |
;; |
|
17764 |
*) |
|
17765 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
17766 |
;; |
|
17767 |
esac |
|
17768 |
done |
|
17769 |
||
17770 |
case $lt_echo in |
|
17771 |
*'\$0 --fallback-echo"') |
|
17772 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
17773 |
;; |
|
17774 |
esac |
|
17775 |
||
17776 |
cfgfile="$ofile" |
|
17777 |
||
17778 |
cat <<__EOF__ >> "$cfgfile" |
|
17779 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
17780 |
||
17781 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
17782 |
||
17783 |
# Shell to use when invoking shell scripts. |
|
17784 |
SHELL=$lt_SHELL |
|
17785 |
||
17786 |
# Whether or not to build shared libraries. |
|
17787 |
build_libtool_libs=$enable_shared |
|
17788 |
||
17789 |
# Whether or not to build static libraries. |
|
17790 |
build_old_libs=$enable_static |
|
17791 |
||
17792 |
# Whether or not to add -lc for building shared libraries. |
|
17793 |
build_libtool_need_lc=$archive_cmds_need_lc_F77 |
|
17794 |
||
17795 |
# Whether or not to disallow shared libs when runtime libs are static |
|
17796 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
|
17797 |
||
17798 |
# Whether or not to optimize for fast installation. |
|
17799 |
fast_install=$enable_fast_install |
|
17800 |
||
17801 |
# The host system. |
|
17802 |
host_alias=$host_alias |
|
17803 |
host=$host |
|
17804 |
||
17805 |
# An echo program that does not interpret backslashes. |
|
17806 |
echo=$lt_echo |
|
17807 |
||
17808 |
# The archiver. |
|
17809 |
AR=$lt_AR |
|
17810 |
AR_FLAGS=$lt_AR_FLAGS |
|
17811 |
||
17812 |
# A C compiler. |
|
17813 |
LTCC=$lt_LTCC |
|
17814 |
||
17815 |
# A language-specific compiler. |
|
17816 |
CC=$lt_compiler_F77 |
|
17817 |
||
17818 |
# Is the compiler the GNU C compiler? |
|
17819 |
with_gcc=$GCC_F77 |
|
17820 |
||
17821 |
# An ERE matcher. |
|
17822 |
EGREP=$lt_EGREP |
|
17823 |
||
17824 |
# The linker used to build libraries. |
|
17825 |
LD=$lt_LD_F77 |
|
17826 |
||
17827 |
# Whether we need hard or soft links. |
|
17828 |
LN_S=$lt_LN_S |
|
17829 |
||
17830 |
# A BSD-compatible nm program. |
|
17831 |
NM=$lt_NM |
|
17832 |
||
17833 |
# A symbol stripping program |
|
17834 |
STRIP=$STRIP |
|
17835 |
||
17836 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
17837 |
MAGIC_CMD=$MAGIC_CMD |
|
17838 |
||
17839 |
# Used on cygwin: DLL creation program. |
|
17840 |
DLLTOOL="$DLLTOOL" |
|
17841 |
||
17842 |
# Used on cygwin: object dumper. |
|
17843 |
OBJDUMP="$OBJDUMP" |
|
17844 |
||
17845 |
# Used on cygwin: assembler. |
|
17846 |
AS="$AS" |
|
17847 |
||
17848 |
# The name of the directory that contains temporary libtool files. |
|
17849 |
objdir=$objdir |
|
17850 |
||
17851 |
# How to create reloadable object files. |
|
17852 |
reload_flag=$lt_reload_flag |
|
17853 |
reload_cmds=$lt_reload_cmds |
|
17854 |
||
17855 |
# How to pass a linker flag through the compiler. |
|
17856 |
wl=$lt_lt_prog_compiler_wl_F77 |
|
17857 |
||
17858 |
# Object file suffix (normally "o"). |
|
17859 |
objext="$ac_objext" |
|
17860 |
||
17861 |
# Old archive suffix (normally "a"). |
|
17862 |
libext="$libext" |
|
17863 |
||
17864 |
# Shared library suffix (normally ".so"). |
|
17865 |
shrext='$shrext' |
|
17866 |
||
17867 |
# Executable file suffix (normally ""). |
|
17868 |
exeext="$exeext" |
|
17869 |
||
17870 |
# Additional compiler flags for building library objects. |
|
17871 |
pic_flag=$lt_lt_prog_compiler_pic_F77 |
|
17872 |
pic_mode=$pic_mode |
|
17873 |
||
17874 |
# What is the maximum length of a command? |
|
17875 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
17876 |
||
17877 |
# Does compiler simultaneously support -c and -o options? |
|
17878 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
|
17879 |
||
17880 |
# Must we lock files when doing compilation ? |
|
17881 |
need_locks=$lt_need_locks |
|
17882 |
||
17883 |
# Do we need the lib prefix for modules? |
|
17884 |
need_lib_prefix=$need_lib_prefix |
|
17885 |
||
17886 |
# Do we need a version for libraries? |
|
17887 |
need_version=$need_version |
|
17888 |
||
17889 |
# Whether dlopen is supported. |
|
17890 |
dlopen_support=$enable_dlopen |
|
17891 |
||
17892 |
# Whether dlopen of programs is supported. |
|
17893 |
dlopen_self=$enable_dlopen_self |
|
17894 |
||
17895 |
# Whether dlopen of statically linked programs is supported. |
|
17896 |
dlopen_self_static=$enable_dlopen_self_static |
|
17897 |
||
17898 |
# Compiler flag to prevent dynamic linking. |
|
17899 |
link_static_flag=$lt_lt_prog_compiler_static_F77 |
|
17900 |
||
17901 |
# Compiler flag to turn off builtin functions. |
|
17902 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
|
17903 |
||
17904 |
# Compiler flag to allow reflexive dlopens. |
|
17905 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
|
17906 |
||
17907 |
# Compiler flag to generate shared objects directly from archives. |
|
17908 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
|
17909 |
||
17910 |
# Compiler flag to generate thread-safe objects. |
|
17911 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
|
17912 |
||
17913 |
# Library versioning type. |
|
17914 |
version_type=$version_type |
|
17915 |
||
17916 |
# Format of library name prefix. |
|
17917 |
libname_spec=$lt_libname_spec |
|
17918 |
||
17919 |
# List of archive names. First name is the real one, the rest are links. |
|
17920 |
# The last name is the one that the linker finds with -lNAME. |
|
17921 |
library_names_spec=$lt_library_names_spec |
|
17922 |
||
17923 |
# The coded name of the library, if different from the real name. |
|
17924 |
soname_spec=$lt_soname_spec |
|
17925 |
||
17926 |
# Commands used to build and install an old-style archive. |
|
17927 |
RANLIB=$lt_RANLIB |
|
17928 |
old_archive_cmds=$lt_old_archive_cmds_F77 |
|
17929 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
17930 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
17931 |
||
17932 |
# Create an old-style archive from a shared archive. |
|
17933 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
|
17934 |
||
17935 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
17936 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
|
17937 |
||
17938 |
# Commands used to build and install a shared archive. |
|
17939 |
archive_cmds=$lt_archive_cmds_F77 |
|
17940 |
archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
|
17941 |
postinstall_cmds=$lt_postinstall_cmds |
|
17942 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
17943 |
||
17944 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
17945 |
module_cmds=$lt_module_cmds_F77 |
|
17946 |
module_expsym_cmds=$lt_module_expsym_cmds_F77 |
|
17947 |
||
17948 |
# Commands to strip libraries. |
|
17949 |
old_striplib=$lt_old_striplib |
|
17950 |
striplib=$lt_striplib |
|
17951 |
||
17952 |
# Dependencies to place before the objects being linked to create a |
|
17953 |
# shared library. |
|
17954 |
predep_objects=$lt_predep_objects_F77 |
|
17955 |
||
17956 |
# Dependencies to place after the objects being linked to create a |
|
17957 |
# shared library. |
|
17958 |
postdep_objects=$lt_postdep_objects_F77 |
|
17959 |
||
17960 |
# Dependencies to place before the objects being linked to create a |
|
17961 |
# shared library. |
|
17962 |
predeps=$lt_predeps_F77 |
|
17963 |
||
17964 |
# Dependencies to place after the objects being linked to create a |
|
17965 |
# shared library. |
|
17966 |
postdeps=$lt_postdeps_F77 |
|
17967 |
||
17968 |
# The library search path used internally by the compiler when linking |
|
17969 |
# a shared library. |
|
17970 |
compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
|
17971 |
||
17972 |
# Method to check whether dependent libraries are shared objects. |
|
17973 |
deplibs_check_method=$lt_deplibs_check_method |
|
17974 |
||
17975 |
# Command to use when deplibs_check_method == file_magic. |
|
17976 |
file_magic_cmd=$lt_file_magic_cmd |
|
17977 |
||
17978 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
17979 |
allow_undefined_flag=$lt_allow_undefined_flag_F77 |
|
17980 |
||
17981 |
# Flag that forces no undefined symbols. |
|
17982 |
no_undefined_flag=$lt_no_undefined_flag_F77 |
|
17983 |
||
17984 |
# Commands used to finish a libtool library installation in a directory. |
|
17985 |
finish_cmds=$lt_finish_cmds |
|
17986 |
||
17987 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
17988 |
finish_eval=$lt_finish_eval |
|
17989 |
||
17990 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
17991 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
17992 |
||
17993 |
# Transform the output of nm in a proper C declaration |
|
17994 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
17995 |
||
17996 |
# Transform the output of nm in a C name address pair |
|
17997 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
17998 |
||
17999 |
# This is the shared library runtime path variable. |
|
18000 |
runpath_var=$runpath_var |
|
18001 |
||
18002 |
# This is the shared library path variable. |
|
18003 |
shlibpath_var=$shlibpath_var |
|
18004 |
||
18005 |
# Is shlibpath searched before the hard-coded library search path? |
|
18006 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
18007 |
||
18008 |
# How to hardcode a shared library path into an executable. |
|
18009 |
hardcode_action=$hardcode_action_F77 |
|
18010 |
||
18011 |
# Whether we should hardcode library paths into libraries. |
|
18012 |
hardcode_into_libs=$hardcode_into_libs |
|
18013 |
||
18014 |
# Flag to hardcode \$libdir into a binary during linking. |
|
18015 |
# This must work even if \$libdir does not exist. |
|
18016 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
|
18017 |
||
18018 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
18019 |
# a binary during linking. This must work even if \$libdir does |
|
18020 |
# not exist. |
|
18021 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
|
18022 |
||
18023 |
# Whether we need a single -rpath flag with a separated argument. |
|
18024 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
|
18025 |
||
18026 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
18027 |
# resulting binary. |
|
18028 |
hardcode_direct=$hardcode_direct_F77 |
|
18029 |
||
18030 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
18031 |
# resulting binary. |
|
18032 |
hardcode_minus_L=$hardcode_minus_L_F77 |
|
18033 |
||
18034 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
18035 |
# the resulting binary. |
|
18036 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
|
18037 |
||
18038 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
18039 |
# and all subsequent libraries and executables linked against it. |
|
18040 |
hardcode_automatic=$hardcode_automatic_F77 |
|
18041 |
||
18042 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
18043 |
# restored at relink time. |
|
18044 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
18045 |
||
18046 |
# Whether libtool must link a program against all its dependency libraries. |
|
18047 |
link_all_deplibs=$link_all_deplibs_F77 |
|
18048 |
||
18049 |
# Compile-time system search path for libraries |
|
18050 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
18051 |
||
18052 |
# Run-time system search path for libraries |
|
18053 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
18054 |
||
18055 |
# Fix the shell variable \$srcfile for the compiler. |
|
18056 |
fix_srcfile_path="$fix_srcfile_path_F77" |
|
18057 |
||
18058 |
# Set to yes if exported symbols are required. |
|
18059 |
always_export_symbols=$always_export_symbols_F77 |
|
18060 |
||
18061 |
# The commands to list exported symbols. |
|
18062 |
export_symbols_cmds=$lt_export_symbols_cmds_F77 |
|
18063 |
||
18064 |
# The commands to extract the exported symbol list from a shared archive. |
|
18065 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
18066 |
||
18067 |
# Symbols that should not be listed in the preloaded symbols. |
|
18068 |
exclude_expsyms=$lt_exclude_expsyms_F77 |
|
18069 |
||
18070 |
# Symbols that must always be exported. |
|
18071 |
include_expsyms=$lt_include_expsyms_F77 |
|
18072 |
||
18073 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
18074 |
||
18075 |
__EOF__ |
|
18076 |
||
18077 |
||
18078 |
else |
|
18079 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
18080 |
# `config.status --recheck' to rerun these tests and create the |
|
18081 |
# libtool script then. |
|
18082 |
test -f Makefile && make "$ltmain" |
|
18083 |
fi |
|
18084 |
||
18085 |
||
18086 |
ac_ext=c |
|
18087 |
ac_cpp='$CPP $CPPFLAGS' |
|
18088 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
18089 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
18090 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
18091 |
||
18092 |
CC="$lt_save_CC" |
|
18093 |
||
18094 |
else |
|
18095 |
tagname="" |
|
18096 |
fi |
|
18097 |
;; |
|
18098 |
||
18099 |
GCJ) |
|
18100 |
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
|
18101 |
||
18102 |
||
18103 |
||
18104 |
# Source file extension for Java test sources. |
|
18105 |
ac_ext=java |
|
18106 |
||
18107 |
# Object file extension for compiled Java test sources. |
|
18108 |
objext=o |
|
18109 |
objext_GCJ=$objext |
|
18110 |
||
18111 |
# Code to be used in simple compile tests |
|
18112 |
lt_simple_compile_test_code="class foo {}\n" |
|
18113 |
||
18114 |
# Code to be used in simple link tests |
|
18115 |
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
|
18116 |
||
18117 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
18118 |
||
18119 |
# If no C compiler was specified, use CC. |
|
18120 |
LTCC=${LTCC-"$CC"} |
|
18121 |
||
18122 |
# Allow CC to be a program name with arguments. |
|
18123 |
compiler=$CC |
|
18124 |
||
18125 |
||
18126 |
# Allow CC to be a program name with arguments. |
|
18127 |
lt_save_CC="$CC" |
|
18128 |
CC=${GCJ-"gcj"} |
|
18129 |
compiler=$CC |
|
18130 |
compiler_GCJ=$CC |
|
18131 |
||
18132 |
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
|
18133 |
archive_cmds_need_lc_GCJ=no |
|
18134 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18135 |
## CAVEAT EMPTOR: |
18136 |
## There is no encapsulation within the following macros, do not change |
|
18137 |
## the running order or otherwise move them around unless you know exactly |
|
18138 |
## what you are doing... |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
18139 |
|
18140 |
lt_prog_compiler_no_builtin_flag_GCJ= |
|
18141 |
||
18142 |
if test "$GCC" = yes; then |
|
18143 |
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
|
18144 |
||
18145 |
||
18146 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
18147 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
18148 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
18149 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
18150 |
else |
|
18151 |
lt_cv_prog_compiler_rtti_exceptions=no |
|
18152 |
ac_outfile=conftest.$ac_objext |
|
18153 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
18154 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
18155 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
18156 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
18157 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
18158 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
18159 |
# The option is referenced via a variable to avoid confusing sed. |
|
18160 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
18161 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
18162 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
18163 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18164 |
(eval echo "\"\$as_me:18164: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18165 |
(eval "$lt_compile" 2>conftest.err) |
18166 |
ac_status=$? |
|
18167 |
cat conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18168 |
echo "$as_me:18168: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18169 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
18170 |
# The compiler can only warn and ignore the option if not recognized |
|
18171 |
# So say no if there are warnings |
|
18172 |
if test ! -s conftest.err; then |
|
18173 |
lt_cv_prog_compiler_rtti_exceptions=yes |
|
18174 |
fi |
|
18175 |
fi |
|
18176 |
$rm conftest* |
|
18177 |
||
18178 |
fi |
|
18179 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
18180 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
18181 |
||
18182 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
18183 |
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
|
18184 |
else |
|
18185 |
: |
|
18186 |
fi |
|
18187 |
||
18188 |
fi |
|
18189 |
||
18190 |
lt_prog_compiler_wl_GCJ= |
|
18191 |
lt_prog_compiler_pic_GCJ= |
|
18192 |
lt_prog_compiler_static_GCJ= |
|
18193 |
||
18194 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
18195 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
18196 |
||
18197 |
if test "$GCC" = yes; then |
|
18198 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
18199 |
lt_prog_compiler_static_GCJ='-static' |
|
18200 |
||
18201 |
case $host_os in |
|
18202 |
aix*) |
|
18203 |
# All AIX code is PIC. |
|
18204 |
if test "$host_cpu" = ia64; then |
|
18205 |
# AIX 5 now supports IA64 processor |
|
18206 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
18207 |
fi |
|
18208 |
;; |
|
18209 |
||
18210 |
amigaos*) |
|
18211 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
18212 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
18213 |
# like `-m68040'. |
|
18214 |
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
|
18215 |
;; |
|
18216 |
||
18217 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
18218 |
# PIC is the default for these OSes. |
|
18219 |
;; |
|
18220 |
||
18221 |
mingw* | pw32* | os2*) |
|
18222 |
# This hack is so that the source file can tell whether it is being |
|
18223 |
# built for inclusion in a dll (and should export symbols for example). |
|
18224 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
18225 |
;; |
|
18226 |
||
18227 |
darwin* | rhapsody*) |
|
18228 |
# PIC is the default on this platform |
|
18229 |
# Common symbols not allowed in MH_DYLIB files |
|
18230 |
lt_prog_compiler_pic_GCJ='-fno-common' |
|
18231 |
;; |
|
18232 |
||
18233 |
msdosdjgpp*) |
|
18234 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
18235 |
# on systems that don't support them. |
|
18236 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
18237 |
enable_shared=no |
|
18238 |
;; |
|
18239 |
||
18240 |
sysv4*MP*) |
|
18241 |
if test -d /usr/nec; then |
|
18242 |
lt_prog_compiler_pic_GCJ=-Kconform_pic |
|
18243 |
fi |
|
18244 |
;; |
|
18245 |
||
18246 |
hpux*) |
|
18247 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
18248 |
# not for PA HP-UX. |
|
18249 |
case "$host_cpu" in |
|
18250 |
hppa*64*|ia64*) |
|
18251 |
# +Z the default |
|
18252 |
;; |
|
18253 |
*) |
|
18254 |
lt_prog_compiler_pic_GCJ='-fPIC' |
|
18255 |
;; |
|
18256 |
esac |
|
18257 |
;; |
|
18258 |
||
18259 |
*) |
|
18260 |
lt_prog_compiler_pic_GCJ='-fPIC' |
|
18261 |
;; |
|
18262 |
esac |
|
18263 |
else |
|
18264 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
18265 |
case $host_os in |
|
18266 |
aix*) |
|
18267 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
18268 |
if test "$host_cpu" = ia64; then |
|
18269 |
# AIX 5 now supports IA64 processor |
|
18270 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
18271 |
else |
|
18272 |
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
|
18273 |
fi |
|
18274 |
;; |
|
18275 |
||
18276 |
mingw* | pw32* | os2*) |
|
18277 |
# This hack is so that the source file can tell whether it is being |
|
18278 |
# built for inclusion in a dll (and should export symbols for example). |
|
18279 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
18280 |
;; |
|
18281 |
||
18282 |
hpux9* | hpux10* | hpux11*) |
|
18283 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
18284 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
18285 |
# not for PA HP-UX. |
|
18286 |
case "$host_cpu" in |
|
18287 |
hppa*64*|ia64*) |
|
18288 |
# +Z the default |
|
18289 |
;; |
|
18290 |
*) |
|
18291 |
lt_prog_compiler_pic_GCJ='+Z' |
|
18292 |
;; |
|
18293 |
esac |
|
18294 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
18295 |
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
|
18296 |
;; |
|
18297 |
||
18298 |
irix5* | irix6* | nonstopux*) |
|
18299 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
18300 |
# PIC (with -KPIC) is the default. |
|
18301 |
lt_prog_compiler_static_GCJ='-non_shared' |
|
18302 |
;; |
|
18303 |
||
18304 |
newsos6) |
|
18305 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
18306 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
18307 |
;; |
|
18308 |
||
18309 |
linux*) |
|
18310 |
case $CC in |
|
18311 |
icc* | ecc*) |
|
18312 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
18313 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
18314 |
lt_prog_compiler_static_GCJ='-static' |
|
18315 |
;; |
|
18316 |
ccc*) |
|
18317 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
18318 |
# All Alpha code is PIC. |
|
18319 |
lt_prog_compiler_static_GCJ='-non_shared' |
|
18320 |
;; |
|
18321 |
esac |
|
18322 |
;; |
|
18323 |
||
18324 |
osf3* | osf4* | osf5*) |
|
18325 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
18326 |
# All OSF/1 code is PIC. |
|
18327 |
lt_prog_compiler_static_GCJ='-non_shared' |
|
18328 |
;; |
|
18329 |
||
18330 |
sco3.2v5*) |
|
18331 |
lt_prog_compiler_pic_GCJ='-Kpic' |
|
18332 |
lt_prog_compiler_static_GCJ='-dn' |
|
18333 |
;; |
|
18334 |
||
18335 |
solaris*) |
|
18336 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
18337 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
18338 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
18339 |
;; |
|
18340 |
||
18341 |
sunos4*) |
|
18342 |
lt_prog_compiler_wl_GCJ='-Qoption ld ' |
|
18343 |
lt_prog_compiler_pic_GCJ='-PIC' |
|
18344 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
18345 |
;; |
|
18346 |
||
18347 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
18348 |
lt_prog_compiler_wl_GCJ='-Wl,' |
|
18349 |
lt_prog_compiler_pic_GCJ='-KPIC' |
|
18350 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
18351 |
;; |
|
18352 |
||
18353 |
sysv4*MP*) |
|
18354 |
if test -d /usr/nec ;then |
|
18355 |
lt_prog_compiler_pic_GCJ='-Kconform_pic' |
|
18356 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
18357 |
fi |
|
18358 |
;; |
|
18359 |
||
18360 |
uts4*) |
|
18361 |
lt_prog_compiler_pic_GCJ='-pic' |
|
18362 |
lt_prog_compiler_static_GCJ='-Bstatic' |
|
18363 |
;; |
|
18364 |
||
18365 |
*) |
|
18366 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
18367 |
;; |
|
18368 |
esac |
|
18369 |
fi |
|
18370 |
||
18371 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
|
18372 |
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
|
18373 |
||
18374 |
# |
|
18375 |
# Check to make sure the PIC flag actually works. |
|
18376 |
# |
|
18377 |
if test -n "$lt_prog_compiler_pic_GCJ"; then |
|
18378 |
||
18379 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
|
18380 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
|
18381 |
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
|
18382 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
18383 |
else |
|
18384 |
lt_prog_compiler_pic_works_GCJ=no |
|
18385 |
ac_outfile=conftest.$ac_objext |
|
18386 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
18387 |
lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
|
18388 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
18389 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
18390 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
18391 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
18392 |
# The option is referenced via a variable to avoid confusing sed. |
|
18393 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
18394 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
18395 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
18396 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18397 |
(eval echo "\"\$as_me:18397: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18398 |
(eval "$lt_compile" 2>conftest.err) |
18399 |
ac_status=$? |
|
18400 |
cat conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18401 |
echo "$as_me:18401: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18402 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
18403 |
# The compiler can only warn and ignore the option if not recognized |
|
18404 |
# So say no if there are warnings |
|
18405 |
if test ! -s conftest.err; then |
|
18406 |
lt_prog_compiler_pic_works_GCJ=yes |
|
18407 |
fi |
|
18408 |
fi |
|
18409 |
$rm conftest* |
|
18410 |
||
18411 |
fi |
|
18412 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
|
18413 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
|
18414 |
||
18415 |
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
|
18416 |
case $lt_prog_compiler_pic_GCJ in |
|
18417 |
"" | " "*) ;; |
|
18418 |
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
|
18419 |
esac |
|
18420 |
else |
|
18421 |
lt_prog_compiler_pic_GCJ= |
|
18422 |
lt_prog_compiler_can_build_shared_GCJ=no |
|
18423 |
fi |
|
18424 |
||
18425 |
fi |
|
18426 |
case "$host_os" in |
|
18427 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
18428 |
*djgpp*) |
|
18429 |
lt_prog_compiler_pic_GCJ= |
|
18430 |
;; |
|
18431 |
*) |
|
18432 |
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
|
18433 |
;; |
|
18434 |
esac |
|
18435 |
||
18436 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
18437 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
18438 |
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
|
18439 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
18440 |
else |
|
18441 |
lt_cv_prog_compiler_c_o_GCJ=no |
|
18442 |
$rm -r conftest 2>/dev/null |
|
18443 |
mkdir conftest |
|
18444 |
cd conftest |
|
18445 |
mkdir out |
|
18446 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
18447 |
||
18448 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
18449 |
# that will create temporary files in the current directory regardless of |
|
18450 |
# the output directory. Thus, making CWD read-only will cause this test |
|
18451 |
# to fail, enabling locking or at least warning the user not to do parallel |
|
18452 |
# builds. |
|
18453 |
chmod -w . |
|
18454 |
||
18455 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
18456 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
18457 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
18458 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
18459 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
18460 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
18461 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
18462 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
18463 |
-e 's:$: $lt_compiler_flag:'` |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18464 |
(eval echo "\"\$as_me:18464: $lt_compile\"" >&5) |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18465 |
(eval "$lt_compile" 2>out/conftest.err) |
18466 |
ac_status=$? |
|
18467 |
cat out/conftest.err >&5 |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18468 |
echo "$as_me:18468: \$? = $ac_status" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18469 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
18470 |
then |
|
18471 |
# The compiler can only warn and ignore the option if not recognized |
|
18472 |
# So say no if there are warnings |
|
18473 |
if test ! -s out/conftest.err; then |
|
18474 |
lt_cv_prog_compiler_c_o_GCJ=yes |
|
18475 |
fi |
|
18476 |
fi |
|
18477 |
chmod u+w . |
|
18478 |
$rm conftest* out/* |
|
18479 |
rmdir out |
|
18480 |
cd .. |
|
18481 |
rmdir conftest |
|
18482 |
$rm conftest* |
|
18483 |
||
18484 |
fi |
|
18485 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
|
18486 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
|
18487 |
||
18488 |
||
18489 |
hard_links="nottested" |
|
18490 |
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
|
18491 |
# do not overwrite the value of need_locks provided by the user |
|
18492 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
18493 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
18494 |
hard_links=yes |
|
18495 |
$rm conftest* |
|
18496 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
18497 |
touch conftest.a |
|
18498 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
18499 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
18500 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
18501 |
echo "${ECHO_T}$hard_links" >&6 |
|
18502 |
if test "$hard_links" = no; then |
|
18503 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
18504 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
18505 |
need_locks=warn |
|
18506 |
fi |
|
18507 |
else |
|
18508 |
need_locks=no |
|
18509 |
fi |
|
18510 |
||
18511 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
18512 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
18513 |
||
18514 |
runpath_var= |
|
18515 |
allow_undefined_flag_GCJ= |
|
18516 |
enable_shared_with_static_runtimes_GCJ=no |
|
18517 |
archive_cmds_GCJ= |
|
18518 |
archive_expsym_cmds_GCJ= |
|
18519 |
old_archive_From_new_cmds_GCJ= |
|
18520 |
old_archive_from_expsyms_cmds_GCJ= |
|
18521 |
export_dynamic_flag_spec_GCJ= |
|
18522 |
whole_archive_flag_spec_GCJ= |
|
18523 |
thread_safe_flag_spec_GCJ= |
|
18524 |
hardcode_libdir_flag_spec_GCJ= |
|
18525 |
hardcode_libdir_flag_spec_ld_GCJ= |
|
18526 |
hardcode_libdir_separator_GCJ= |
|
18527 |
hardcode_direct_GCJ=no |
|
18528 |
hardcode_minus_L_GCJ=no |
|
18529 |
hardcode_shlibpath_var_GCJ=unsupported |
|
18530 |
link_all_deplibs_GCJ=unknown |
|
18531 |
hardcode_automatic_GCJ=no |
|
18532 |
module_cmds_GCJ= |
|
18533 |
module_expsym_cmds_GCJ= |
|
18534 |
always_export_symbols_GCJ=no |
|
18535 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
18536 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
18537 |
# included in the symbol list |
|
18538 |
include_expsyms_GCJ= |
|
18539 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
18540 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
18541 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
18542 |
# as well as any symbol that contains `d'. |
|
18543 |
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
|
18544 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
18545 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
18546 |
# the symbol is explicitly referenced. Since portable code cannot |
|
18547 |
# rely on this symbol name, it's probably fine to never include it in |
|
18548 |
# preloaded symbol tables. |
|
18549 |
extract_expsyms_cmds= |
|
18550 |
||
18551 |
case $host_os in |
|
18552 |
cygwin* | mingw* | pw32*) |
|
18553 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
18554 |
# When not using gcc, we currently assume that we are using |
|
18555 |
# Microsoft Visual C++. |
|
18556 |
if test "$GCC" != yes; then |
|
18557 |
with_gnu_ld=no |
|
18558 |
fi |
|
18559 |
;; |
|
18560 |
openbsd*) |
|
18561 |
with_gnu_ld=no |
|
18562 |
;; |
|
18563 |
esac |
|
18564 |
||
18565 |
ld_shlibs_GCJ=yes |
|
18566 |
if test "$with_gnu_ld" = yes; then |
|
18567 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
18568 |
wlarc='${wl}' |
|
18569 |
||
18570 |
# See if GNU ld supports shared libraries. |
|
18571 |
case $host_os in |
|
18572 |
aix3* | aix4* | aix5*) |
|
18573 |
# On AIX/PPC, the GNU linker is very broken |
|
18574 |
if test "$host_cpu" != ia64; then |
|
18575 |
ld_shlibs_GCJ=no |
|
18576 |
cat <<EOF 1>&2 |
|
18577 |
||
18578 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
18579 |
*** to be unable to reliably create shared libraries on AIX. |
|
18580 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
18581 |
*** really care for shared libraries, you may want to modify your PATH |
|
18582 |
*** so that a non-GNU linker is found, and then restart. |
|
18583 |
||
18584 |
EOF |
|
18585 |
fi |
|
18586 |
;; |
|
18587 |
||
18588 |
amigaos*) |
|
18589 |
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
18590 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18591 |
hardcode_minus_L_GCJ=yes |
|
18592 |
||
18593 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
18594 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
18595 |
# to version 4, is to share data among multiple programs linked |
|
18596 |
# with the same dynamic library. Since this doesn't match the |
|
18597 |
# behavior of shared libraries on other platforms, we can't use |
|
18598 |
# them. |
|
18599 |
ld_shlibs_GCJ=no |
|
18600 |
;; |
|
18601 |
||
18602 |
beos*) |
|
18603 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
18604 |
allow_undefined_flag_GCJ=unsupported |
|
18605 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
18606 |
# support --undefined. This deserves some investigation. FIXME |
|
18607 |
archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
18608 |
else |
|
18609 |
ld_shlibs_GCJ=no |
|
18610 |
fi |
|
18611 |
;; |
|
18612 |
||
18613 |
cygwin* | mingw* | pw32*) |
|
18614 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
|
18615 |
# as there is no search path for DLLs. |
|
18616 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18617 |
allow_undefined_flag_GCJ=no |
|
18618 |
always_export_symbols_GCJ=no |
|
18619 |
enable_shared_with_static_runtimes_GCJ=yes |
|
18620 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
18621 |
||
18622 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
18623 |
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
18624 |
# If the export-symbols file already is a .def file (1st line |
|
18625 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
18626 |
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
18627 |
cp $export_symbols $output_objdir/$soname.def; |
|
18628 |
else |
|
18629 |
echo EXPORTS > $output_objdir/$soname.def; |
|
18630 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
18631 |
fi~ |
|
18632 |
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
18633 |
else |
|
18634 |
ld_shlibs=no |
|
18635 |
fi |
|
18636 |
;; |
|
18637 |
||
18638 |
netbsd*) |
|
18639 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
18640 |
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
18641 |
wlarc= |
|
18642 |
else |
|
18643 |
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
18644 |
archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
18645 |
fi |
|
18646 |
;; |
|
18647 |
||
18648 |
solaris* | sysv5*) |
|
18649 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
18650 |
ld_shlibs_GCJ=no |
|
18651 |
cat <<EOF 1>&2 |
|
18652 |
||
18653 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
18654 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
18655 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
18656 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
18657 |
*** your PATH or compiler configuration so that the native linker is |
|
18658 |
*** used, and then restart. |
|
18659 |
||
18660 |
EOF |
|
18661 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
18662 |
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
18663 |
archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
18664 |
else |
|
18665 |
ld_shlibs_GCJ=no |
|
18666 |
fi |
|
18667 |
;; |
|
18668 |
||
18669 |
sunos4*) |
|
18670 |
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
18671 |
wlarc= |
|
18672 |
hardcode_direct_GCJ=yes |
|
18673 |
hardcode_shlibpath_var_GCJ=no |
|
18674 |
;; |
|
18675 |
||
18676 |
*) |
|
18677 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
18678 |
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
|
18679 |
archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
18680 |
else |
|
18681 |
ld_shlibs_GCJ=no |
|
18682 |
fi |
|
18683 |
;; |
|
18684 |
esac |
|
18685 |
||
18686 |
if test "$ld_shlibs_GCJ" = yes; then |
|
18687 |
runpath_var=LD_RUN_PATH |
|
18688 |
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
|
18689 |
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
|
18690 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
18691 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
18692 |
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
18693 |
else |
|
18694 |
whole_archive_flag_spec_GCJ= |
|
18695 |
fi |
|
18696 |
fi |
|
18697 |
else |
|
18698 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
18699 |
case $host_os in |
|
18700 |
aix3*) |
|
18701 |
allow_undefined_flag_GCJ=unsupported |
|
18702 |
always_export_symbols_GCJ=yes |
|
18703 |
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
18704 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
18705 |
# are no directories specified by -L. |
|
18706 |
hardcode_minus_L_GCJ=yes |
|
18707 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
18708 |
# Neither direct hardcoding nor static linking is supported with a |
|
18709 |
# broken collect2. |
|
18710 |
hardcode_direct_GCJ=unsupported |
|
18711 |
fi |
|
18712 |
;; |
|
18713 |
||
18714 |
aix4* | aix5*) |
|
18715 |
if test "$host_cpu" = ia64; then |
|
18716 |
# On IA64, the linker does run time linking by default, so we don't |
|
18717 |
# have to do anything special. |
|
18718 |
aix_use_runtimelinking=no |
|
18719 |
exp_sym_flag='-Bexport' |
|
18720 |
no_entry_flag="" |
|
18721 |
else |
|
18722 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
18723 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
18724 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
18725 |
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
18726 |
else |
|
18727 |
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
18728 |
fi |
|
18729 |
||
18730 |
# KDE requires run time linking. Make it the default. |
|
18731 |
aix_use_runtimelinking=yes |
|
18732 |
exp_sym_flag='-bexport' |
|
18733 |
no_entry_flag='-bnoentry' |
|
18734 |
fi |
|
18735 |
||
18736 |
# When large executables or shared objects are built, AIX ld can |
|
18737 |
# have problems creating the table of contents. If linking a library |
|
18738 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
18739 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
18740 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
18741 |
||
18742 |
archive_cmds_GCJ='' |
|
18743 |
hardcode_direct_GCJ=yes |
|
18744 |
hardcode_libdir_separator_GCJ=':' |
|
18745 |
link_all_deplibs_GCJ=yes |
|
18746 |
||
18747 |
if test "$GCC" = yes; then |
|
18748 |
case $host_os in aix4.012|aix4.012.*) |
|
18749 |
# We only want to do this on AIX 4.2 and lower, the check |
|
18750 |
# below for broken collect2 doesn't work under 4.3+ |
|
18751 |
collect2name=`${CC} -print-prog-name=collect2` |
|
18752 |
if test -f "$collect2name" && \ |
|
18753 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
18754 |
then |
|
18755 |
# We have reworked collect2 |
|
18756 |
hardcode_direct_GCJ=yes |
|
18757 |
else |
|
18758 |
# We have old collect2 |
|
18759 |
hardcode_direct_GCJ=unsupported |
|
18760 |
# It fails to find uninstalled libraries when the uninstalled |
|
18761 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
18762 |
# to unsupported forces relinking |
|
18763 |
hardcode_minus_L_GCJ=yes |
|
18764 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18765 |
hardcode_libdir_separator_GCJ= |
|
18766 |
fi |
|
18767 |
esac |
|
18768 |
shared_flag='-shared' |
|
18769 |
else |
|
18770 |
# not using gcc |
|
18771 |
if test "$host_cpu" = ia64; then |
|
18772 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
18773 |
# chokes on -Wl,-G. The following line is correct: |
|
18774 |
shared_flag='-G' |
|
18775 |
else |
|
18776 |
if test "$aix_use_runtimelinking" = yes; then |
|
18777 |
shared_flag='-qmkshrobj ${wl}-G' |
|
18778 |
else |
|
18779 |
shared_flag='-qmkshrobj' |
|
18780 |
fi |
|
18781 |
fi |
|
18782 |
fi |
|
18783 |
||
18784 |
# Let the compiler handle the export list. |
|
18785 |
always_export_symbols_GCJ=no |
|
18786 |
if test "$aix_use_runtimelinking" = yes; then |
|
18787 |
# Warning - without using the other runtime loading flags (-brtl), |
|
18788 |
# -berok will link without error, but may produce a broken library. |
|
18789 |
allow_undefined_flag_GCJ='-berok' |
|
18790 |
# Determine the default libpath from the value encoded in an empty executable. |
|
18791 |
cat >conftest.$ac_ext <<_ACEOF |
|
18792 |
/* confdefs.h. */ |
|
18793 |
_ACEOF |
|
18794 |
cat confdefs.h >>conftest.$ac_ext |
|
18795 |
cat >>conftest.$ac_ext <<_ACEOF |
|
18796 |
/* end confdefs.h. */ |
|
18797 |
||
18798 |
int |
|
18799 |
main () |
|
18800 |
{ |
|
18801 |
||
18802 |
; |
|
18803 |
return 0; |
|
18804 |
} |
|
18805 |
_ACEOF |
|
18806 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
18807 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
18808 |
(eval $ac_link) 2>conftest.er1 |
|
18809 |
ac_status=$? |
|
18810 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
18811 |
rm -f conftest.er1 |
|
18812 |
cat conftest.err >&5 |
|
18813 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18814 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18815 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18816 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18817 |
(eval $ac_try) 2>&5 |
|
18818 |
ac_status=$? |
|
18819 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18820 |
(exit $ac_status); }; } && |
|
18821 |
{ ac_try='test -s conftest$ac_exeext' |
|
18822 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
18823 |
(eval $ac_try) 2>&5 |
|
18824 |
ac_status=$? |
|
18825 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18826 |
(exit $ac_status); }; }; then |
|
18827 |
||
18828 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
18829 |
}'` |
|
18830 |
# Check for a 64-bit object if we didn't find anything. |
|
18831 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
18832 |
}'`; fi |
|
18833 |
else |
|
18834 |
echo "$as_me: failed program was:" >&5 |
|
18835 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
18836 |
||
18837 |
fi |
|
18838 |
rm -f conftest.err conftest.$ac_objext \ |
|
18839 |
conftest$ac_exeext conftest.$ac_ext |
|
18840 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
18841 |
||
18842 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
18843 |
archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" |
|
18844 |
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
18845 |
else |
|
18846 |
if test "$host_cpu" = ia64; then |
|
18847 |
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
|
18848 |
allow_undefined_flag_GCJ="-z nodefs" |
|
18849 |
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
18850 |
else |
|
18851 |
# Determine the default libpath from the value encoded in an empty executable. |
|
18852 |
cat >conftest.$ac_ext <<_ACEOF |
|
18853 |
/* confdefs.h. */ |
|
18854 |
_ACEOF |
|
18855 |
cat confdefs.h >>conftest.$ac_ext |
|
18856 |
cat >>conftest.$ac_ext <<_ACEOF |
|
18857 |
/* end confdefs.h. */ |
|
18858 |
||
18859 |
int |
|
18860 |
main () |
|
18861 |
{ |
|
18862 |
||
18863 |
; |
|
18864 |
return 0; |
|
18865 |
} |
|
18866 |
_ACEOF |
|
18867 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
18868 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
18869 |
(eval $ac_link) 2>conftest.er1 |
|
18870 |
ac_status=$? |
|
18871 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
18872 |
rm -f conftest.er1 |
|
18873 |
cat conftest.err >&5 |
|
18874 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18875 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18876 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18877 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18878 |
(eval $ac_try) 2>&5 |
|
18879 |
ac_status=$? |
|
18880 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18881 |
(exit $ac_status); }; } && |
|
18882 |
{ ac_try='test -s conftest$ac_exeext' |
|
18883 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
18884 |
(eval $ac_try) 2>&5 |
|
18885 |
ac_status=$? |
|
18886 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18887 |
(exit $ac_status); }; }; then |
|
18888 |
||
18889 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
18890 |
}'` |
|
18891 |
# Check for a 64-bit object if we didn't find anything. |
|
18892 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
18893 |
}'`; fi |
|
18894 |
else |
|
18895 |
echo "$as_me: failed program was:" >&5 |
|
18896 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
18897 |
||
18898 |
fi |
|
18899 |
rm -f conftest.err conftest.$ac_objext \ |
|
18900 |
conftest$ac_exeext conftest.$ac_ext |
|
18901 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
18902 |
||
18903 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
18904 |
# Warning - without using the other run time loading flags, |
|
18905 |
# -berok will link without error, but may produce a broken library. |
|
18906 |
no_undefined_flag_GCJ=' ${wl}-bernotok' |
|
18907 |
allow_undefined_flag_GCJ=' ${wl}-berok' |
|
18908 |
# -bexpall does not export symbols beginning with underscore (_) |
|
18909 |
always_export_symbols_GCJ=yes |
|
18910 |
# Exported symbols can be pulled into shared objects from archives |
|
18911 |
whole_archive_flag_spec_GCJ=' ' |
|
18912 |
archive_cmds_need_lc_GCJ=yes |
|
18913 |
# This is similar to how AIX traditionally builds it's shared libraries. |
|
18914 |
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
18915 |
fi |
|
18916 |
fi |
|
18917 |
;; |
|
18918 |
||
18919 |
amigaos*) |
|
18920 |
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
18921 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18922 |
hardcode_minus_L_GCJ=yes |
|
18923 |
# see comment about different semantics on the GNU ld section |
|
18924 |
ld_shlibs_GCJ=no |
|
18925 |
;; |
|
18926 |
||
18927 |
bsdi4*) |
|
18928 |
export_dynamic_flag_spec_GCJ=-rdynamic |
|
18929 |
;; |
|
18930 |
||
18931 |
cygwin* | mingw* | pw32*) |
|
18932 |
# When not using gcc, we currently assume that we are using |
|
18933 |
# Microsoft Visual C++. |
|
18934 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
18935 |
# no search path for DLLs. |
|
18936 |
hardcode_libdir_flag_spec_GCJ=' ' |
|
18937 |
allow_undefined_flag_GCJ=no |
|
18938 |
# Tell ltmain to make .lib files, not .a files. |
|
18939 |
libext=lib |
|
18940 |
# Tell ltmain to make .dll files, not .so files. |
|
18941 |
shrext=".dll" |
|
18942 |
# FIXME: Setting linknames here is a bad hack. |
|
18943 |
archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
18944 |
# The linker will automatically build a .lib file if we build a DLL. |
|
18945 |
old_archive_From_new_cmds_GCJ='true' |
|
18946 |
# FIXME: Should let the user specify the lib program. |
|
18947 |
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
18948 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
18949 |
enable_shared_with_static_runtimes_GCJ=yes |
|
18950 |
;; |
|
18951 |
||
18952 |
darwin* | rhapsody*) |
|
18953 |
if test "$GXX" = yes ; then |
|
18954 |
archive_cmds_need_lc_GCJ=no |
|
18955 |
case "$host_os" in |
|
18956 |
rhapsody* | darwin1.[012]) |
|
18957 |
allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress' |
|
18958 |
;; |
|
18959 |
*) # Darwin 1.3 on |
|
18960 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18961 |
allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18962 |
else |
18963 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
18964 |
10.012) |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18965 |
allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18966 |
;; |
18967 |
10.*) |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
18968 |
allow_undefined_flag_GCJ='-Wl,-undefined -Wl,dynamic_lookup' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
18969 |
;; |
18970 |
esac |
|
18971 |
fi |
|
18972 |
;; |
|
18973 |
esac |
|
18974 |
lt_int_apple_cc_single_mod=no |
|
18975 |
output_verbose_link_cmd='echo' |
|
18976 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
18977 |
lt_int_apple_cc_single_mod=yes |
|
18978 |
fi |
|
18979 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
18980 |
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
|
18981 |
else |
|
18982 |
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' |
|
18983 |
fi |
|
18984 |
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
|
18985 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
18986 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
18987 |
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
18988 |
else |
|
18989 |
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
18990 |
fi |
|
18991 |
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
18992 |
hardcode_direct_GCJ=no |
|
18993 |
hardcode_automatic_GCJ=yes |
|
18994 |
hardcode_shlibpath_var_GCJ=unsupported |
|
18995 |
whole_archive_flag_spec_GCJ='-all_load $convenience' |
|
18996 |
link_all_deplibs_GCJ=yes |
|
18997 |
else |
|
18998 |
ld_shlibs_GCJ=no |
|
18999 |
fi |
|
19000 |
;; |
|
19001 |
||
19002 |
dgux*) |
|
19003 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19004 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
19005 |
hardcode_shlibpath_var_GCJ=no |
|
19006 |
;; |
|
19007 |
||
19008 |
freebsd1*) |
|
19009 |
ld_shlibs_GCJ=no |
|
19010 |
;; |
|
19011 |
||
19012 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
19013 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
19014 |
# does not break anything, and helps significantly (at the cost of a little |
|
19015 |
# extra space). |
|
19016 |
freebsd2.2*) |
|
19017 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
19018 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
19019 |
hardcode_direct_GCJ=yes |
|
19020 |
hardcode_shlibpath_var_GCJ=no |
|
19021 |
;; |
|
19022 |
||
19023 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
19024 |
freebsd2*) |
|
19025 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
19026 |
hardcode_direct_GCJ=yes |
|
19027 |
hardcode_minus_L_GCJ=yes |
|
19028 |
hardcode_shlibpath_var_GCJ=no |
|
19029 |
;; |
|
19030 |
||
19031 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
19032 |
freebsd*) |
|
19033 |
archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' |
|
19034 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
19035 |
hardcode_direct_GCJ=yes |
|
19036 |
hardcode_shlibpath_var_GCJ=no |
|
19037 |
;; |
|
19038 |
||
19039 |
hpux9*) |
|
19040 |
if test "$GCC" = yes; then |
|
19041 |
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
19042 |
else |
|
19043 |
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
19044 |
fi |
|
19045 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
19046 |
hardcode_libdir_separator_GCJ=: |
|
19047 |
hardcode_direct_GCJ=yes |
|
19048 |
||
19049 |
# hardcode_minus_L: Not really in the search PATH, |
|
19050 |
# but as the default location of the library. |
|
19051 |
hardcode_minus_L_GCJ=yes |
|
19052 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
19053 |
;; |
|
19054 |
||
19055 |
hpux10* | hpux11*) |
|
19056 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
19057 |
case "$host_cpu" in |
|
19058 |
hppa*64*|ia64*) |
|
19059 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
19060 |
;; |
|
19061 |
*) |
|
19062 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' |
|
19063 |
;; |
|
19064 |
esac |
|
19065 |
else |
|
19066 |
case "$host_cpu" in |
|
19067 |
hppa*64*|ia64*) |
|
19068 |
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19069 |
;; |
|
19070 |
*) |
|
19071 |
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
19072 |
;; |
|
19073 |
esac |
|
19074 |
fi |
|
19075 |
if test "$with_gnu_ld" = no; then |
|
19076 |
case "$host_cpu" in |
|
19077 |
hppa*64*) |
|
19078 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
19079 |
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
|
19080 |
hardcode_libdir_separator_GCJ=: |
|
19081 |
hardcode_direct_GCJ=no |
|
19082 |
hardcode_shlibpath_var_GCJ=no |
|
19083 |
;; |
|
19084 |
ia64*) |
|
19085 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
19086 |
hardcode_direct_GCJ=no |
|
19087 |
hardcode_shlibpath_var_GCJ=no |
|
19088 |
||
19089 |
# hardcode_minus_L: Not really in the search PATH, |
|
19090 |
# but as the default location of the library. |
|
19091 |
hardcode_minus_L_GCJ=yes |
|
19092 |
;; |
|
19093 |
*) |
|
19094 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
19095 |
hardcode_libdir_separator_GCJ=: |
|
19096 |
hardcode_direct_GCJ=yes |
|
19097 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
19098 |
||
19099 |
# hardcode_minus_L: Not really in the search PATH, |
|
19100 |
# but as the default location of the library. |
|
19101 |
hardcode_minus_L_GCJ=yes |
|
19102 |
;; |
|
19103 |
esac |
|
19104 |
fi |
|
19105 |
;; |
|
19106 |
||
19107 |
irix5* | irix6* | nonstopux*) |
|
19108 |
if test "$GCC" = yes; then |
|
19109 |
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
19110 |
else |
|
19111 |
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
19112 |
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
|
19113 |
fi |
|
19114 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
19115 |
hardcode_libdir_separator_GCJ=: |
|
19116 |
link_all_deplibs_GCJ=yes |
|
19117 |
;; |
|
19118 |
||
19119 |
netbsd*) |
|
19120 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
19121 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
19122 |
else |
|
19123 |
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
19124 |
fi |
|
19125 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
19126 |
hardcode_direct_GCJ=yes |
|
19127 |
hardcode_shlibpath_var_GCJ=no |
|
19128 |
;; |
|
19129 |
||
19130 |
newsos6) |
|
19131 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19132 |
hardcode_direct_GCJ=yes |
|
19133 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
19134 |
hardcode_libdir_separator_GCJ=: |
|
19135 |
hardcode_shlibpath_var_GCJ=no |
|
19136 |
;; |
|
19137 |
||
19138 |
openbsd*) |
|
19139 |
hardcode_direct_GCJ=yes |
|
19140 |
hardcode_shlibpath_var_GCJ=no |
|
19141 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
19142 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
|
19143 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
19144 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
|
19145 |
else |
|
19146 |
case $host_os in |
|
19147 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
19148 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
19149 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
19150 |
;; |
|
19151 |
*) |
|
19152 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
|
19153 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
19154 |
;; |
|
19155 |
esac |
|
19156 |
fi |
|
19157 |
;; |
|
19158 |
||
19159 |
os2*) |
|
19160 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
19161 |
hardcode_minus_L_GCJ=yes |
|
19162 |
allow_undefined_flag_GCJ=unsupported |
|
19163 |
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' |
|
19164 |
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
19165 |
;; |
|
19166 |
||
19167 |
osf3*) |
|
19168 |
if test "$GCC" = yes; then |
|
19169 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
19170 |
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
19171 |
else |
|
19172 |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
19173 |
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
19174 |
fi |
|
19175 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
19176 |
hardcode_libdir_separator_GCJ=: |
|
19177 |
;; |
|
19178 |
||
19179 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
19180 |
if test "$GCC" = yes; then |
|
19181 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
19182 |
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
19183 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
19184 |
else |
|
19185 |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
19186 |
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
19187 |
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
19188 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
19189 |
||
19190 |
# Both c and cxx compiler support -rpath directly |
|
19191 |
hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
|
19192 |
fi |
|
19193 |
hardcode_libdir_separator_GCJ=: |
|
19194 |
;; |
|
19195 |
||
19196 |
sco3.2v5*) |
|
19197 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19198 |
hardcode_shlibpath_var_GCJ=no |
|
19199 |
export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
|
19200 |
runpath_var=LD_RUN_PATH |
|
19201 |
hardcode_runpath_var=yes |
|
19202 |
;; |
|
19203 |
||
19204 |
solaris*) |
|
19205 |
no_undefined_flag_GCJ=' -z text' |
|
19206 |
if test "$GCC" = yes; then |
|
19207 |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
19208 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
19209 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' |
|
19210 |
else |
|
19211 |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19212 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
19213 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
19214 |
fi |
|
19215 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
19216 |
hardcode_shlibpath_var_GCJ=no |
|
19217 |
case $host_os in |
|
19218 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
19219 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
19220 |
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
|
19221 |
esac |
|
19222 |
link_all_deplibs_GCJ=yes |
|
19223 |
;; |
|
19224 |
||
19225 |
sunos4*) |
|
19226 |
if test "x$host_vendor" = xsequent; then |
|
19227 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
19228 |
# files that make .init and .fini sections work. |
|
19229 |
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' |
|
19230 |
else |
|
19231 |
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
19232 |
fi |
|
19233 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
19234 |
hardcode_direct_GCJ=yes |
|
19235 |
hardcode_minus_L_GCJ=yes |
|
19236 |
hardcode_shlibpath_var_GCJ=no |
|
19237 |
;; |
|
19238 |
||
19239 |
sysv4) |
|
19240 |
case $host_vendor in |
|
19241 |
sni) |
|
19242 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19243 |
hardcode_direct_GCJ=yes # is this really true??? |
|
19244 |
;; |
|
19245 |
siemens) |
|
19246 |
## LD is ld it makes a PLAMLIB |
|
19247 |
## CC just makes a GrossModule. |
|
19248 |
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
19249 |
reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
|
19250 |
hardcode_direct_GCJ=no |
|
19251 |
;; |
|
19252 |
motorola) |
|
19253 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19254 |
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
|
19255 |
;; |
|
19256 |
esac |
|
19257 |
runpath_var='LD_RUN_PATH' |
|
19258 |
hardcode_shlibpath_var_GCJ=no |
|
19259 |
;; |
|
19260 |
||
19261 |
sysv4.3*) |
|
19262 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19263 |
hardcode_shlibpath_var_GCJ=no |
|
19264 |
export_dynamic_flag_spec_GCJ='-Bexport' |
|
19265 |
;; |
|
19266 |
||
19267 |
sysv4*MP*) |
|
19268 |
if test -d /usr/nec; then |
|
19269 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19270 |
hardcode_shlibpath_var_GCJ=no |
|
19271 |
runpath_var=LD_RUN_PATH |
|
19272 |
hardcode_runpath_var=yes |
|
19273 |
ld_shlibs_GCJ=yes |
|
19274 |
fi |
|
19275 |
;; |
|
19276 |
||
19277 |
sysv4.2uw2*) |
|
19278 |
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
19279 |
hardcode_direct_GCJ=yes |
|
19280 |
hardcode_minus_L_GCJ=no |
|
19281 |
hardcode_shlibpath_var_GCJ=no |
|
19282 |
hardcode_runpath_var=yes |
|
19283 |
runpath_var=LD_RUN_PATH |
|
19284 |
;; |
|
19285 |
||
19286 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
19287 |
no_undefined_flag_GCJ='${wl}-z ${wl}text' |
|
19288 |
if test "$GCC" = yes; then |
|
19289 |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
19290 |
else |
|
19291 |
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
|
19292 |
fi |
|
19293 |
runpath_var='LD_RUN_PATH' |
|
19294 |
hardcode_shlibpath_var_GCJ=no |
|
19295 |
;; |
|
19296 |
||
19297 |
sysv5*) |
|
19298 |
no_undefined_flag_GCJ=' -z text' |
|
19299 |
# $CC -shared without GNU ld will not create a library from C++ |
|
19300 |
# object files and a static libstdc++, better avoid it by now |
|
19301 |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19302 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
19303 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
19304 |
hardcode_libdir_flag_spec_GCJ= |
|
19305 |
hardcode_shlibpath_var_GCJ=no |
|
19306 |
runpath_var='LD_RUN_PATH' |
|
19307 |
;; |
|
19308 |
||
19309 |
uts4*) |
|
19310 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
19311 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
19312 |
hardcode_shlibpath_var_GCJ=no |
|
19313 |
;; |
|
19314 |
||
19315 |
*) |
|
19316 |
ld_shlibs_GCJ=no |
|
19317 |
;; |
|
19318 |
esac |
|
19319 |
fi |
|
19320 |
||
19321 |
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
|
19322 |
echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
|
19323 |
test "$ld_shlibs_GCJ" = no && can_build_shared=no |
|
19324 |
||
19325 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
19326 |
if test "$GCC" = yes; then |
|
19327 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
19328 |
fi |
|
19329 |
||
19330 |
# |
|
19331 |
# Do we need to explicitly link libc? |
|
19332 |
# |
|
19333 |
case "x$archive_cmds_need_lc_GCJ" in |
|
19334 |
x|xyes) |
|
19335 |
# Assume -lc should be added |
|
19336 |
archive_cmds_need_lc_GCJ=yes |
|
19337 |
||
19338 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
19339 |
case $archive_cmds_GCJ in |
|
19340 |
*'~'*) |
|
19341 |
# FIXME: we may have to deal with multi-command sequences. |
|
19342 |
;; |
|
19343 |
'$CC '*) |
|
19344 |
# Test whether the compiler implicitly links with -lc since on some |
|
19345 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
19346 |
# to ld, don't add -lc before -lgcc. |
|
19347 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
19348 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
19349 |
$rm conftest* |
|
19350 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
19351 |
||
19352 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
19353 |
(eval $ac_compile) 2>&5 |
|
19354 |
ac_status=$? |
|
19355 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19356 |
(exit $ac_status); } 2>conftest.err; then |
|
19357 |
soname=conftest |
|
19358 |
lib=conftest |
|
19359 |
libobjs=conftest.$ac_objext |
|
19360 |
deplibs= |
|
19361 |
wl=$lt_prog_compiler_wl_GCJ |
|
19362 |
compiler_flags=-v |
|
19363 |
linker_flags=-v |
|
19364 |
verstring= |
|
19365 |
output_objdir=. |
|
19366 |
libname=conftest |
|
19367 |
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
|
19368 |
allow_undefined_flag_GCJ= |
|
19369 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
19370 |
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
19371 |
ac_status=$? |
|
19372 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19373 |
(exit $ac_status); } |
|
19374 |
then |
|
19375 |
archive_cmds_need_lc_GCJ=no |
|
19376 |
else |
|
19377 |
archive_cmds_need_lc_GCJ=yes |
|
19378 |
fi |
|
19379 |
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
|
19380 |
else |
|
19381 |
cat conftest.err 1>&5 |
|
19382 |
fi |
|
19383 |
$rm conftest* |
|
19384 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
|
19385 |
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
|
19386 |
;; |
|
19387 |
esac |
|
19388 |
fi |
|
19389 |
;; |
|
19390 |
esac |
|
19391 |
||
19392 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
19393 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
19394 |
library_names_spec= |
|
19395 |
libname_spec='lib$name' |
|
19396 |
soname_spec= |
|
19397 |
shrext=".so" |
|
19398 |
postinstall_cmds= |
|
19399 |
postuninstall_cmds= |
|
19400 |
finish_cmds= |
|
19401 |
finish_eval= |
|
19402 |
shlibpath_var= |
|
19403 |
shlibpath_overrides_runpath=unknown |
|
19404 |
version_type=none |
|
19405 |
dynamic_linker="$host_os ld.so" |
|
19406 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
19407 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
19408 |
need_lib_prefix=unknown |
|
19409 |
hardcode_into_libs=no |
|
19410 |
||
19411 |
# when you set need_version to no, make sure it does not cause -set_version |
|
19412 |
# flags to be left without arguments |
|
19413 |
need_version=unknown |
|
19414 |
||
19415 |
case $host_os in |
|
19416 |
aix3*) |
|
19417 |
version_type=linux |
|
19418 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
19419 |
shlibpath_var=LIBPATH |
|
19420 |
||
19421 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
19422 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19423 |
;; |
|
19424 |
||
19425 |
aix4* | aix5*) |
|
19426 |
version_type=linux |
|
19427 |
need_lib_prefix=no |
|
19428 |
need_version=no |
|
19429 |
hardcode_into_libs=yes |
|
19430 |
if test "$host_cpu" = ia64; then |
|
19431 |
# AIX 5 supports IA64 |
|
19432 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
19433 |
shlibpath_var=LD_LIBRARY_PATH |
|
19434 |
else |
|
19435 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
19436 |
# for dependence libraries. The import file would start with |
|
19437 |
# the line `#! .'. This would cause the generated library to |
|
19438 |
# depend on `.', always an invalid library. This was fixed in |
|
19439 |
# development snapshots of GCC prior to 3.0. |
|
19440 |
case $host_os in |
|
19441 |
aix4 | aix4.[01] | aix4.[01].*) |
|
19442 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
19443 |
echo ' yes ' |
|
19444 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
19445 |
: |
|
19446 |
else |
|
19447 |
can_build_shared=no |
|
19448 |
fi |
|
19449 |
;; |
|
19450 |
esac |
|
19451 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
19452 |
# soname into executable. Probably we can add versioning support to |
|
19453 |
# collect2, so additional links can be useful in future. |
|
19454 |
if test "$aix_use_runtimelinking" = yes; then |
|
19455 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
19456 |
# instead of lib<name>.a to let people know that these are not |
|
19457 |
# typical AIX shared libraries. |
|
19458 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19459 |
else |
|
19460 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
19461 |
# and later when we are not doing run time linking. |
|
19462 |
library_names_spec='${libname}${release}.a $libname.a' |
|
19463 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19464 |
fi |
|
19465 |
shlibpath_var=LIBPATH |
|
19466 |
fi |
|
19467 |
;; |
|
19468 |
||
19469 |
amigaos*) |
|
19470 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
19471 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
19472 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
|
19473 |
;; |
|
19474 |
||
19475 |
beos*) |
|
19476 |
library_names_spec='${libname}${shared_ext}' |
|
19477 |
dynamic_linker="$host_os ld.so" |
|
19478 |
shlibpath_var=LIBRARY_PATH |
|
19479 |
;; |
|
19480 |
||
19481 |
bsdi4*) |
|
19482 |
version_type=linux |
|
19483 |
need_version=no |
|
19484 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19485 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19486 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
19487 |
shlibpath_var=LD_LIBRARY_PATH |
|
19488 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
19489 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
19490 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
19491 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
19492 |
# libtool to hard-code these into programs |
|
19493 |
;; |
|
19494 |
||
19495 |
cygwin* | mingw* | pw32*) |
|
19496 |
version_type=windows |
|
19497 |
shrext=".dll" |
|
19498 |
need_version=no |
|
19499 |
need_lib_prefix=no |
|
19500 |
||
19501 |
case $GCC,$host_os in |
|
19502 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
|
19503 |
library_names_spec='$libname.dll.a' |
|
19504 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
19505 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
19506 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
19507 |
dldir=$destdir/`dirname \$dlpath`~ |
|
19508 |
test -d \$dldir || mkdir -p \$dldir~ |
|
19509 |
$install_prog $dir/$dlname \$dldir/$dlname' |
|
19510 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
19511 |
dlpath=$dir/\$dldll~ |
|
19512 |
$rm \$dlpath' |
|
19513 |
shlibpath_overrides_runpath=yes |
|
19514 |
||
19515 |
case $host_os in |
|
19516 |
cygwin*) |
|
19517 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
19518 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
19519 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
19520 |
;; |
|
19521 |
mingw*) |
|
19522 |
# MinGW DLLs use traditional 'lib' prefix |
|
19523 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
19524 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
19525 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
19526 |
# It is most probably a Windows format PATH printed by |
|
19527 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
19528 |
# path with ; separators, and with drive letters. We can handle the |
|
19529 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
19530 |
# especially as we might pass files found there to a mingw objdump, |
|
19531 |
# which wouldn't understand a cygwinified path. Ahh. |
|
19532 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
19533 |
else |
|
19534 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
19535 |
fi |
|
19536 |
;; |
|
19537 |
pw32*) |
|
19538 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
19539 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
19540 |
;; |
|
19541 |
esac |
|
19542 |
;; |
|
19543 |
||
19544 |
*) |
|
19545 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
19546 |
;; |
|
19547 |
esac |
|
19548 |
dynamic_linker='Win32 ld.exe' |
|
19549 |
# FIXME: first we should search . and the directory the executable is in |
|
19550 |
shlibpath_var=PATH |
|
19551 |
;; |
|
19552 |
||
19553 |
darwin* | rhapsody*) |
|
19554 |
dynamic_linker="$host_os dyld" |
|
19555 |
version_type=darwin |
|
19556 |
need_lib_prefix=no |
|
19557 |
need_version=no |
|
19558 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
19559 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
19560 |
shlibpath_overrides_runpath=yes |
|
19561 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
19562 |
shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
|
19563 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
19564 |
if test "$GCC" = yes; then |
|
19565 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
19566 |
else |
|
19567 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
19568 |
fi |
|
19569 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
19570 |
;; |
|
19571 |
||
19572 |
dgux*) |
|
19573 |
version_type=linux |
|
19574 |
need_lib_prefix=no |
|
19575 |
need_version=no |
|
19576 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
19577 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19578 |
shlibpath_var=LD_LIBRARY_PATH |
|
19579 |
;; |
|
19580 |
||
19581 |
freebsd1*) |
|
19582 |
dynamic_linker=no |
|
19583 |
;; |
|
19584 |
||
19585 |
freebsd*-gnu*) |
|
19586 |
version_type=linux |
|
19587 |
need_lib_prefix=no |
|
19588 |
need_version=no |
|
19589 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
19590 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19591 |
shlibpath_var=LD_LIBRARY_PATH |
|
19592 |
shlibpath_overrides_runpath=no |
|
19593 |
hardcode_into_libs=yes |
|
19594 |
dynamic_linker='GNU ld.so' |
|
19595 |
;; |
|
19596 |
||
19597 |
freebsd*) |
|
19598 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
19599 |
version_type=freebsd-$objformat |
|
19600 |
case $version_type in |
|
19601 |
freebsd-elf*) |
|
19602 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
19603 |
need_version=no |
|
19604 |
need_lib_prefix=no |
|
19605 |
;; |
|
19606 |
freebsd-*) |
|
19607 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
19608 |
need_version=yes |
|
19609 |
;; |
|
19610 |
esac |
|
19611 |
shlibpath_var=LD_LIBRARY_PATH |
|
19612 |
case $host_os in |
|
19613 |
freebsd2*) |
|
19614 |
shlibpath_overrides_runpath=yes |
|
19615 |
;; |
|
19616 |
freebsd3.01* | freebsdelf3.01*) |
|
19617 |
shlibpath_overrides_runpath=yes |
|
19618 |
hardcode_into_libs=yes |
|
19619 |
;; |
|
19620 |
*) # from 3.2 on |
|
19621 |
shlibpath_overrides_runpath=no |
|
19622 |
hardcode_into_libs=yes |
|
19623 |
;; |
|
19624 |
esac |
|
19625 |
;; |
|
19626 |
||
19627 |
gnu*) |
|
19628 |
version_type=linux |
|
19629 |
need_lib_prefix=no |
|
19630 |
need_version=no |
|
19631 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
19632 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19633 |
shlibpath_var=LD_LIBRARY_PATH |
|
19634 |
hardcode_into_libs=yes |
|
19635 |
;; |
|
19636 |
||
19637 |
hpux9* | hpux10* | hpux11*) |
|
19638 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
19639 |
# link against other versions. |
|
19640 |
version_type=sunos |
|
19641 |
need_lib_prefix=no |
|
19642 |
need_version=no |
|
19643 |
case "$host_cpu" in |
|
19644 |
ia64*) |
|
19645 |
shrext='.so' |
|
19646 |
hardcode_into_libs=yes |
|
19647 |
dynamic_linker="$host_os dld.so" |
|
19648 |
shlibpath_var=LD_LIBRARY_PATH |
|
19649 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
19650 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19651 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19652 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
19653 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
19654 |
else |
|
19655 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
19656 |
fi |
|
19657 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
19658 |
;; |
|
19659 |
hppa*64*) |
|
19660 |
shrext='.sl' |
|
19661 |
hardcode_into_libs=yes |
|
19662 |
dynamic_linker="$host_os dld.sl" |
|
19663 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
19664 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
19665 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19666 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19667 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
19668 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
19669 |
;; |
|
19670 |
*) |
|
19671 |
shrext='.sl' |
|
19672 |
dynamic_linker="$host_os dld.sl" |
|
19673 |
shlibpath_var=SHLIB_PATH |
|
19674 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
19675 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19676 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19677 |
;; |
|
19678 |
esac |
|
19679 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
19680 |
postinstall_cmds='chmod 555 $lib' |
|
19681 |
;; |
|
19682 |
||
19683 |
irix5* | irix6* | nonstopux*) |
|
19684 |
case $host_os in |
|
19685 |
nonstopux*) version_type=nonstopux ;; |
|
19686 |
*) |
|
19687 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
19688 |
version_type=linux |
|
19689 |
else |
|
19690 |
version_type=irix |
|
19691 |
fi ;; |
|
19692 |
esac |
|
19693 |
need_lib_prefix=no |
|
19694 |
need_version=no |
|
19695 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19696 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
19697 |
case $host_os in |
|
19698 |
irix5* | nonstopux*) |
|
19699 |
libsuff= shlibsuff= |
|
19700 |
;; |
|
19701 |
*) |
|
19702 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
19703 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
19704 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
19705 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
19706 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
19707 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
19708 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
19709 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
19710 |
esac |
|
19711 |
;; |
|
19712 |
esac |
|
19713 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
19714 |
shlibpath_overrides_runpath=no |
|
19715 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
19716 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
19717 |
hardcode_into_libs=yes |
|
19718 |
;; |
|
19719 |
||
19720 |
# No shared lib support for Linux oldld, aout, or coff. |
|
19721 |
linux*oldld* | linux*aout* | linux*coff*) |
|
19722 |
dynamic_linker=no |
|
19723 |
;; |
|
19724 |
||
19725 |
# This must be Linux ELF. |
|
19726 |
linux*) |
|
19727 |
version_type=linux |
|
19728 |
need_lib_prefix=no |
|
19729 |
need_version=no |
|
19730 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19731 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19732 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
19733 |
libsuff= |
|
19734 |
if test "x$LINUX_64_MODE" = x64; then |
|
19735 |
# Some platforms are per default 64-bit, so there's no /lib64 |
|
19736 |
if test -d /lib64; then |
|
19737 |
libsuff=64 |
|
19738 |
fi |
|
19739 |
fi |
|
19740 |
shlibpath_var=LD_LIBRARY_PATH |
|
19741 |
shlibpath_overrides_runpath=no |
|
19742 |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
|
19743 |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
|
19744 |
# This implies no fast_install, which is unacceptable. |
|
19745 |
# Some rework will be needed to allow for fast_install |
|
19746 |
# before this can be enabled. |
|
19747 |
hardcode_into_libs=yes |
|
19748 |
||
19749 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
19750 |
# powerpc, because MkLinux only supported shared libraries with the |
|
19751 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
19752 |
# most powerpc-linux boxes support dynamic linking these days and |
|
19753 |
# people can always --disable-shared, the test was removed, and we |
|
19754 |
# assume the GNU/Linux dynamic linker is in use. |
|
19755 |
dynamic_linker='GNU/Linux ld.so' |
|
19756 |
;; |
|
19757 |
||
19758 |
netbsd*) |
|
19759 |
version_type=sunos |
|
19760 |
need_lib_prefix=no |
|
19761 |
need_version=no |
|
19762 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
19763 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
19764 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
19765 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
19766 |
else |
|
19767 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
|
19768 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19769 |
dynamic_linker='NetBSD ld.elf_so' |
|
19770 |
fi |
|
19771 |
shlibpath_var=LD_LIBRARY_PATH |
|
19772 |
shlibpath_overrides_runpath=yes |
|
19773 |
hardcode_into_libs=yes |
|
19774 |
;; |
|
19775 |
||
19776 |
newsos6) |
|
19777 |
version_type=linux |
|
19778 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19779 |
shlibpath_var=LD_LIBRARY_PATH |
|
19780 |
shlibpath_overrides_runpath=yes |
|
19781 |
;; |
|
19782 |
||
19783 |
nto-qnx*) |
|
19784 |
version_type=linux |
|
19785 |
need_lib_prefix=no |
|
19786 |
need_version=no |
|
19787 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19788 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19789 |
shlibpath_var=LD_LIBRARY_PATH |
|
19790 |
shlibpath_overrides_runpath=yes |
|
19791 |
;; |
|
19792 |
||
19793 |
openbsd*) |
|
19794 |
version_type=sunos |
|
19795 |
need_lib_prefix=no |
|
19796 |
need_version=no |
|
19797 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
19798 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
19799 |
shlibpath_var=LD_LIBRARY_PATH |
|
19800 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
19801 |
case $host_os in |
|
19802 |
openbsd2.[89] | openbsd2.[89].*) |
|
19803 |
shlibpath_overrides_runpath=no |
|
19804 |
;; |
|
19805 |
*) |
|
19806 |
shlibpath_overrides_runpath=yes |
|
19807 |
;; |
|
19808 |
esac |
|
19809 |
else |
|
19810 |
shlibpath_overrides_runpath=yes |
|
19811 |
fi |
|
19812 |
;; |
|
19813 |
||
19814 |
os2*) |
|
19815 |
libname_spec='$name' |
|
19816 |
shrext=".dll" |
|
19817 |
need_lib_prefix=no |
|
19818 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
19819 |
dynamic_linker='OS/2 ld.exe' |
|
19820 |
shlibpath_var=LIBPATH |
|
19821 |
;; |
|
19822 |
||
19823 |
osf3* | osf4* | osf5*) |
|
19824 |
version_type=osf |
|
19825 |
need_lib_prefix=no |
|
19826 |
need_version=no |
|
19827 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19828 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19829 |
shlibpath_var=LD_LIBRARY_PATH |
|
19830 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
19831 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
19832 |
;; |
|
19833 |
||
19834 |
sco3.2v5*) |
|
19835 |
version_type=osf |
|
19836 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19837 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19838 |
shlibpath_var=LD_LIBRARY_PATH |
|
19839 |
;; |
|
19840 |
||
19841 |
solaris*) |
|
19842 |
version_type=linux |
|
19843 |
need_lib_prefix=no |
|
19844 |
need_version=no |
|
19845 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19846 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19847 |
shlibpath_var=LD_LIBRARY_PATH |
|
19848 |
shlibpath_overrides_runpath=yes |
|
19849 |
hardcode_into_libs=yes |
|
19850 |
# ldd complains unless libraries are executable |
|
19851 |
postinstall_cmds='chmod +x $lib' |
|
19852 |
;; |
|
19853 |
||
19854 |
sunos4*) |
|
19855 |
version_type=sunos |
|
19856 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
19857 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
19858 |
shlibpath_var=LD_LIBRARY_PATH |
|
19859 |
shlibpath_overrides_runpath=yes |
|
19860 |
if test "$with_gnu_ld" = yes; then |
|
19861 |
need_lib_prefix=no |
|
19862 |
fi |
|
19863 |
need_version=yes |
|
19864 |
;; |
|
19865 |
||
19866 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
19867 |
version_type=linux |
|
19868 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19869 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19870 |
shlibpath_var=LD_LIBRARY_PATH |
|
19871 |
case $host_vendor in |
|
19872 |
sni) |
|
19873 |
shlibpath_overrides_runpath=no |
|
19874 |
need_lib_prefix=no |
|
19875 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
19876 |
runpath_var=LD_RUN_PATH |
|
19877 |
;; |
|
19878 |
siemens) |
|
19879 |
need_lib_prefix=no |
|
19880 |
;; |
|
19881 |
motorola) |
|
19882 |
need_lib_prefix=no |
|
19883 |
need_version=no |
|
19884 |
shlibpath_overrides_runpath=no |
|
19885 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
19886 |
;; |
|
19887 |
esac |
|
19888 |
;; |
|
19889 |
||
19890 |
sysv4*MP*) |
|
19891 |
if test -d /usr/nec ;then |
|
19892 |
version_type=linux |
|
19893 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
19894 |
soname_spec='$libname${shared_ext}.$major' |
|
19895 |
shlibpath_var=LD_LIBRARY_PATH |
|
19896 |
fi |
|
19897 |
;; |
|
19898 |
||
19899 |
uts4*) |
|
19900 |
version_type=linux |
|
19901 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19902 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
19903 |
shlibpath_var=LD_LIBRARY_PATH |
|
19904 |
;; |
|
19905 |
||
19906 |
*) |
|
19907 |
dynamic_linker=no |
|
19908 |
;; |
|
19909 |
esac |
|
19910 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
19911 |
echo "${ECHO_T}$dynamic_linker" >&6 |
|
19912 |
test "$dynamic_linker" = no && can_build_shared=no |
|
19913 |
||
19914 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
19915 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
19916 |
hardcode_action_GCJ= |
|
19917 |
if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
|
19918 |
test -n "$runpath_var GCJ" || \ |
|
19919 |
test "X$hardcode_automatic_GCJ"="Xyes" ; then |
|
19920 |
||
19921 |
# We can hardcode non-existant directories. |
|
19922 |
if test "$hardcode_direct_GCJ" != no && |
|
19923 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
19924 |
# have to relink, otherwise we might link with an installed library |
|
19925 |
# when we should be linking with a yet-to-be-installed one |
|
19926 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
|
19927 |
test "$hardcode_minus_L_GCJ" != no; then |
|
19928 |
# Linking always hardcodes the temporary library directory. |
|
19929 |
hardcode_action_GCJ=relink |
|
19930 |
else |
|
19931 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
19932 |
hardcode_action_GCJ=immediate |
|
19933 |
fi |
|
19934 |
else |
|
19935 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
19936 |
# directories. |
|
19937 |
hardcode_action_GCJ=unsupported |
|
19938 |
fi |
|
19939 |
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
|
19940 |
echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
|
19941 |
||
19942 |
if test "$hardcode_action_GCJ" = relink; then |
|
19943 |
# Fast installation is not supported |
|
19944 |
enable_fast_install=no |
|
19945 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
19946 |
test "$enable_shared" = no; then |
|
19947 |
# Fast installation is not necessary |
|
19948 |
enable_fast_install=needless |
|
19949 |
fi |
|
19950 |
||
19951 |
striplib= |
|
19952 |
old_striplib= |
|
19953 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
19954 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
19955 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
19956 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
19957 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
19958 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
19959 |
echo "${ECHO_T}yes" >&6 |
|
19960 |
else |
|
19961 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
19962 |
case $host_os in |
|
19963 |
darwin*) |
|
19964 |
if test -n "$STRIP" ; then |
|
19965 |
striplib="$STRIP -x" |
|
19966 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
19967 |
echo "${ECHO_T}yes" >&6 |
|
19968 |
else |
|
19969 |
echo "$as_me:$LINENO: result: no" >&5 |
|
19970 |
echo "${ECHO_T}no" >&6 |
|
19971 |
fi |
|
19972 |
;; |
|
19973 |
*) |
|
19974 |
echo "$as_me:$LINENO: result: no" >&5 |
|
19975 |
echo "${ECHO_T}no" >&6 |
|
19976 |
;; |
|
19977 |
esac |
|
19978 |
fi |
|
19979 |
||
19980 |
if test "x$enable_dlopen" != xyes; then |
|
19981 |
enable_dlopen=unknown |
|
19982 |
enable_dlopen_self=unknown |
|
19983 |
enable_dlopen_self_static=unknown |
|
19984 |
else |
|
19985 |
lt_cv_dlopen=no |
|
19986 |
lt_cv_dlopen_libs= |
|
19987 |
||
19988 |
case $host_os in |
|
19989 |
beos*) |
|
19990 |
lt_cv_dlopen="load_add_on" |
|
19991 |
lt_cv_dlopen_libs= |
|
19992 |
lt_cv_dlopen_self=yes |
|
19993 |
;; |
|
19994 |
||
19995 |
mingw* | pw32*) |
|
19996 |
lt_cv_dlopen="LoadLibrary" |
|
19997 |
lt_cv_dlopen_libs= |
|
19998 |
;; |
|
19999 |
||
20000 |
cygwin*) |
|
20001 |
lt_cv_dlopen="dlopen" |
|
20002 |
lt_cv_dlopen_libs= |
|
20003 |
;; |
|
20004 |
||
20005 |
darwin*) |
|
20006 |
# if libdl is installed we need to link against it |
|
20007 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
20008 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
20009 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
20010 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20011 |
else |
|
20012 |
ac_check_lib_save_LIBS=$LIBS |
|
20013 |
LIBS="-ldl $LIBS" |
|
20014 |
cat >conftest.$ac_ext <<_ACEOF |
|
20015 |
/* confdefs.h. */ |
|
20016 |
_ACEOF |
|
20017 |
cat confdefs.h >>conftest.$ac_ext |
|
20018 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20019 |
/* end confdefs.h. */ |
|
20020 |
||
20021 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20022 |
#ifdef __cplusplus |
|
20023 |
extern "C" |
|
20024 |
#endif |
|
20025 |
/* We use char because int might match the return type of a gcc2 |
|
20026 |
builtin and then its argument prototype would still apply. */ |
|
20027 |
char dlopen (); |
|
20028 |
int |
|
20029 |
main () |
|
20030 |
{ |
|
20031 |
dlopen (); |
|
20032 |
; |
|
20033 |
return 0; |
|
20034 |
} |
|
20035 |
_ACEOF |
|
20036 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20037 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20038 |
(eval $ac_link) 2>conftest.er1 |
|
20039 |
ac_status=$? |
|
20040 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20041 |
rm -f conftest.er1 |
|
20042 |
cat conftest.err >&5 |
|
20043 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20044 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
20045 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
20046 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20047 |
(eval $ac_try) 2>&5 |
|
20048 |
ac_status=$? |
|
20049 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20050 |
(exit $ac_status); }; } && |
|
20051 |
{ ac_try='test -s conftest$ac_exeext' |
|
20052 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20053 |
(eval $ac_try) 2>&5 |
|
20054 |
ac_status=$? |
|
20055 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20056 |
(exit $ac_status); }; }; then |
|
20057 |
ac_cv_lib_dl_dlopen=yes |
|
20058 |
else |
|
20059 |
echo "$as_me: failed program was:" >&5 |
|
20060 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20061 |
||
20062 |
ac_cv_lib_dl_dlopen=no |
|
20063 |
fi |
|
20064 |
rm -f conftest.err conftest.$ac_objext \ |
|
20065 |
conftest$ac_exeext conftest.$ac_ext |
|
20066 |
LIBS=$ac_check_lib_save_LIBS |
|
20067 |
fi |
|
20068 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
20069 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
20070 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
20071 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
20072 |
else |
|
20073 |
||
20074 |
lt_cv_dlopen="dyld" |
|
20075 |
lt_cv_dlopen_libs= |
|
20076 |
lt_cv_dlopen_self=yes |
|
20077 |
||
20078 |
fi |
|
20079 |
||
20080 |
;; |
|
20081 |
||
20082 |
*) |
|
20083 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
20084 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
20085 |
if test "${ac_cv_func_shl_load+set}" = set; then |
|
20086 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20087 |
else |
|
20088 |
cat >conftest.$ac_ext <<_ACEOF |
|
20089 |
/* confdefs.h. */ |
|
20090 |
_ACEOF |
|
20091 |
cat confdefs.h >>conftest.$ac_ext |
|
20092 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20093 |
/* end confdefs.h. */ |
|
20094 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
20095 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
20096 |
#define shl_load innocuous_shl_load |
|
20097 |
||
20098 |
/* System header to define __stub macros and hopefully few prototypes, |
|
20099 |
which can conflict with char shl_load (); below. |
|
20100 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
20101 |
<limits.h> exists even on freestanding compilers. */ |
|
20102 |
||
20103 |
#ifdef __STDC__ |
|
20104 |
# include <limits.h> |
|
20105 |
#else |
|
20106 |
# include <assert.h> |
|
20107 |
#endif |
|
20108 |
||
20109 |
#undef shl_load |
|
20110 |
||
20111 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20112 |
#ifdef __cplusplus |
|
20113 |
extern "C" |
|
20114 |
{ |
|
20115 |
#endif |
|
20116 |
/* We use char because int might match the return type of a gcc2 |
|
20117 |
builtin and then its argument prototype would still apply. */ |
|
20118 |
char shl_load (); |
|
20119 |
/* The GNU C library defines this for functions which it implements |
|
20120 |
to always fail with ENOSYS. Some functions are actually named |
|
20121 |
something starting with __ and the normal name is an alias. */ |
|
20122 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
20123 |
choke me |
|
20124 |
#else |
|
20125 |
char (*f) () = shl_load; |
|
20126 |
#endif |
|
20127 |
#ifdef __cplusplus |
|
20128 |
} |
|
20129 |
#endif |
|
20130 |
||
20131 |
int |
|
20132 |
main () |
|
20133 |
{ |
|
20134 |
return f != shl_load; |
|
20135 |
; |
|
20136 |
return 0; |
|
20137 |
} |
|
20138 |
_ACEOF |
|
20139 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20140 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20141 |
(eval $ac_link) 2>conftest.er1 |
|
20142 |
ac_status=$? |
|
20143 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20144 |
rm -f conftest.er1 |
|
20145 |
cat conftest.err >&5 |
|
20146 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20147 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
20148 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
20149 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20150 |
(eval $ac_try) 2>&5 |
|
20151 |
ac_status=$? |
|
20152 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20153 |
(exit $ac_status); }; } && |
|
20154 |
{ ac_try='test -s conftest$ac_exeext' |
|
20155 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20156 |
(eval $ac_try) 2>&5 |
|
20157 |
ac_status=$? |
|
20158 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20159 |
(exit $ac_status); }; }; then |
|
20160 |
ac_cv_func_shl_load=yes |
|
20161 |
else |
|
20162 |
echo "$as_me: failed program was:" >&5 |
|
20163 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20164 |
||
20165 |
ac_cv_func_shl_load=no |
|
20166 |
fi |
|
20167 |
rm -f conftest.err conftest.$ac_objext \ |
|
20168 |
conftest$ac_exeext conftest.$ac_ext |
|
20169 |
fi |
|
20170 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
20171 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
20172 |
if test $ac_cv_func_shl_load = yes; then |
|
20173 |
lt_cv_dlopen="shl_load" |
|
20174 |
else |
|
20175 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
20176 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
20177 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
20178 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20179 |
else |
|
20180 |
ac_check_lib_save_LIBS=$LIBS |
|
20181 |
LIBS="-ldld $LIBS" |
|
20182 |
cat >conftest.$ac_ext <<_ACEOF |
|
20183 |
/* confdefs.h. */ |
|
20184 |
_ACEOF |
|
20185 |
cat confdefs.h >>conftest.$ac_ext |
|
20186 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20187 |
/* end confdefs.h. */ |
|
20188 |
||
20189 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20190 |
#ifdef __cplusplus |
|
20191 |
extern "C" |
|
20192 |
#endif |
|
20193 |
/* We use char because int might match the return type of a gcc2 |
|
20194 |
builtin and then its argument prototype would still apply. */ |
|
20195 |
char shl_load (); |
|
20196 |
int |
|
20197 |
main () |
|
20198 |
{ |
|
20199 |
shl_load (); |
|
20200 |
; |
|
20201 |
return 0; |
|
20202 |
} |
|
20203 |
_ACEOF |
|
20204 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20205 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20206 |
(eval $ac_link) 2>conftest.er1 |
|
20207 |
ac_status=$? |
|
20208 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20209 |
rm -f conftest.er1 |
|
20210 |
cat conftest.err >&5 |
|
20211 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20212 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
20213 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
20214 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20215 |
(eval $ac_try) 2>&5 |
|
20216 |
ac_status=$? |
|
20217 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20218 |
(exit $ac_status); }; } && |
|
20219 |
{ ac_try='test -s conftest$ac_exeext' |
|
20220 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20221 |
(eval $ac_try) 2>&5 |
|
20222 |
ac_status=$? |
|
20223 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20224 |
(exit $ac_status); }; }; then |
|
20225 |
ac_cv_lib_dld_shl_load=yes |
|
20226 |
else |
|
20227 |
echo "$as_me: failed program was:" >&5 |
|
20228 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20229 |
||
20230 |
ac_cv_lib_dld_shl_load=no |
|
20231 |
fi |
|
20232 |
rm -f conftest.err conftest.$ac_objext \ |
|
20233 |
conftest$ac_exeext conftest.$ac_ext |
|
20234 |
LIBS=$ac_check_lib_save_LIBS |
|
20235 |
fi |
|
20236 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
20237 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
20238 |
if test $ac_cv_lib_dld_shl_load = yes; then |
|
20239 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
20240 |
else |
|
20241 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
20242 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
20243 |
if test "${ac_cv_func_dlopen+set}" = set; then |
|
20244 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20245 |
else |
|
20246 |
cat >conftest.$ac_ext <<_ACEOF |
|
20247 |
/* confdefs.h. */ |
|
20248 |
_ACEOF |
|
20249 |
cat confdefs.h >>conftest.$ac_ext |
|
20250 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20251 |
/* end confdefs.h. */ |
|
20252 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
20253 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
20254 |
#define dlopen innocuous_dlopen |
|
20255 |
||
20256 |
/* System header to define __stub macros and hopefully few prototypes, |
|
20257 |
which can conflict with char dlopen (); below. |
|
20258 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
20259 |
<limits.h> exists even on freestanding compilers. */ |
|
20260 |
||
20261 |
#ifdef __STDC__ |
|
20262 |
# include <limits.h> |
|
20263 |
#else |
|
20264 |
# include <assert.h> |
|
20265 |
#endif |
|
20266 |
||
20267 |
#undef dlopen |
|
20268 |
||
20269 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20270 |
#ifdef __cplusplus |
|
20271 |
extern "C" |
|
20272 |
{ |
|
20273 |
#endif |
|
20274 |
/* We use char because int might match the return type of a gcc2 |
|
20275 |
builtin and then its argument prototype would still apply. */ |
|
20276 |
char dlopen (); |
|
20277 |
/* The GNU C library defines this for functions which it implements |
|
20278 |
to always fail with ENOSYS. Some functions are actually named |
|
20279 |
something starting with __ and the normal name is an alias. */ |
|
20280 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
20281 |
choke me |
|
20282 |
#else |
|
20283 |
char (*f) () = dlopen; |
|
20284 |
#endif |
|
20285 |
#ifdef __cplusplus |
|
20286 |
} |
|
20287 |
#endif |
|
20288 |
||
20289 |
int |
|
20290 |
main () |
|
20291 |
{ |
|
20292 |
return f != dlopen; |
|
20293 |
; |
|
20294 |
return 0; |
|
20295 |
} |
|
20296 |
_ACEOF |
|
20297 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20298 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20299 |
(eval $ac_link) 2>conftest.er1 |
|
20300 |
ac_status=$? |
|
20301 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20302 |
rm -f conftest.er1 |
|
20303 |
cat conftest.err >&5 |
|
20304 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20305 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
20306 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
20307 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20308 |
(eval $ac_try) 2>&5 |
|
20309 |
ac_status=$? |
|
20310 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20311 |
(exit $ac_status); }; } && |
|
20312 |
{ ac_try='test -s conftest$ac_exeext' |
|
20313 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20314 |
(eval $ac_try) 2>&5 |
|
20315 |
ac_status=$? |
|
20316 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20317 |
(exit $ac_status); }; }; then |
|
20318 |
ac_cv_func_dlopen=yes |
|
20319 |
else |
|
20320 |
echo "$as_me: failed program was:" >&5 |
|
20321 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20322 |
||
20323 |
ac_cv_func_dlopen=no |
|
20324 |
fi |
|
20325 |
rm -f conftest.err conftest.$ac_objext \ |
|
20326 |
conftest$ac_exeext conftest.$ac_ext |
|
20327 |
fi |
|
20328 |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
20329 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
20330 |
if test $ac_cv_func_dlopen = yes; then |
|
20331 |
lt_cv_dlopen="dlopen" |
|
20332 |
else |
|
20333 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
20334 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
20335 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
20336 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20337 |
else |
|
20338 |
ac_check_lib_save_LIBS=$LIBS |
|
20339 |
LIBS="-ldl $LIBS" |
|
20340 |
cat >conftest.$ac_ext <<_ACEOF |
|
20341 |
/* confdefs.h. */ |
|
20342 |
_ACEOF |
|
20343 |
cat confdefs.h >>conftest.$ac_ext |
|
20344 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20345 |
/* end confdefs.h. */ |
|
20346 |
||
20347 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20348 |
#ifdef __cplusplus |
|
20349 |
extern "C" |
|
20350 |
#endif |
|
20351 |
/* We use char because int might match the return type of a gcc2 |
|
20352 |
builtin and then its argument prototype would still apply. */ |
|
20353 |
char dlopen (); |
|
20354 |
int |
|
20355 |
main () |
|
20356 |
{ |
|
20357 |
dlopen (); |
|
20358 |
; |
|
20359 |
return 0; |
|
20360 |
} |
|
20361 |
_ACEOF |
|
20362 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20363 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20364 |
(eval $ac_link) 2>conftest.er1 |
|
20365 |
ac_status=$? |
|
20366 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20367 |
rm -f conftest.er1 |
|
20368 |
cat conftest.err >&5 |
|
20369 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20370 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
20371 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
20372 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20373 |
(eval $ac_try) 2>&5 |
|
20374 |
ac_status=$? |
|
20375 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20376 |
(exit $ac_status); }; } && |
|
20377 |
{ ac_try='test -s conftest$ac_exeext' |
|
20378 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20379 |
(eval $ac_try) 2>&5 |
|
20380 |
ac_status=$? |
|
20381 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20382 |
(exit $ac_status); }; }; then |
|
20383 |
ac_cv_lib_dl_dlopen=yes |
|
20384 |
else |
|
20385 |
echo "$as_me: failed program was:" >&5 |
|
20386 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20387 |
||
20388 |
ac_cv_lib_dl_dlopen=no |
|
20389 |
fi |
|
20390 |
rm -f conftest.err conftest.$ac_objext \ |
|
20391 |
conftest$ac_exeext conftest.$ac_ext |
|
20392 |
LIBS=$ac_check_lib_save_LIBS |
|
20393 |
fi |
|
20394 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
20395 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
20396 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
20397 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
20398 |
else |
|
20399 |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
20400 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
20401 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
20402 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20403 |
else |
|
20404 |
ac_check_lib_save_LIBS=$LIBS |
|
20405 |
LIBS="-lsvld $LIBS" |
|
20406 |
cat >conftest.$ac_ext <<_ACEOF |
|
20407 |
/* confdefs.h. */ |
|
20408 |
_ACEOF |
|
20409 |
cat confdefs.h >>conftest.$ac_ext |
|
20410 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20411 |
/* end confdefs.h. */ |
|
20412 |
||
20413 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20414 |
#ifdef __cplusplus |
|
20415 |
extern "C" |
|
20416 |
#endif |
|
20417 |
/* We use char because int might match the return type of a gcc2 |
|
20418 |
builtin and then its argument prototype would still apply. */ |
|
20419 |
char dlopen (); |
|
20420 |
int |
|
20421 |
main () |
|
20422 |
{ |
|
20423 |
dlopen (); |
|
20424 |
; |
|
20425 |
return 0; |
|
20426 |
} |
|
20427 |
_ACEOF |
|
20428 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20429 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20430 |
(eval $ac_link) 2>conftest.er1 |
|
20431 |
ac_status=$? |
|
20432 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20433 |
rm -f conftest.er1 |
|
20434 |
cat conftest.err >&5 |
|
20435 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20436 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
20437 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
20438 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20439 |
(eval $ac_try) 2>&5 |
|
20440 |
ac_status=$? |
|
20441 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20442 |
(exit $ac_status); }; } && |
|
20443 |
{ ac_try='test -s conftest$ac_exeext' |
|
20444 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20445 |
(eval $ac_try) 2>&5 |
|
20446 |
ac_status=$? |
|
20447 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20448 |
(exit $ac_status); }; }; then |
|
20449 |
ac_cv_lib_svld_dlopen=yes |
|
20450 |
else |
|
20451 |
echo "$as_me: failed program was:" >&5 |
|
20452 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20453 |
||
20454 |
ac_cv_lib_svld_dlopen=no |
|
20455 |
fi |
|
20456 |
rm -f conftest.err conftest.$ac_objext \ |
|
20457 |
conftest$ac_exeext conftest.$ac_ext |
|
20458 |
LIBS=$ac_check_lib_save_LIBS |
|
20459 |
fi |
|
20460 |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
20461 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
20462 |
if test $ac_cv_lib_svld_dlopen = yes; then |
|
20463 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
20464 |
else |
|
20465 |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
20466 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
20467 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
20468 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20469 |
else |
|
20470 |
ac_check_lib_save_LIBS=$LIBS |
|
20471 |
LIBS="-ldld $LIBS" |
|
20472 |
cat >conftest.$ac_ext <<_ACEOF |
|
20473 |
/* confdefs.h. */ |
|
20474 |
_ACEOF |
|
20475 |
cat confdefs.h >>conftest.$ac_ext |
|
20476 |
cat >>conftest.$ac_ext <<_ACEOF |
|
20477 |
/* end confdefs.h. */ |
|
20478 |
||
20479 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
20480 |
#ifdef __cplusplus |
|
20481 |
extern "C" |
|
20482 |
#endif |
|
20483 |
/* We use char because int might match the return type of a gcc2 |
|
20484 |
builtin and then its argument prototype would still apply. */ |
|
20485 |
char dld_link (); |
|
20486 |
int |
|
20487 |
main () |
|
20488 |
{ |
|
20489 |
dld_link (); |
|
20490 |
; |
|
20491 |
return 0; |
|
20492 |
} |
|
20493 |
_ACEOF |
|
20494 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
20495 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20496 |
(eval $ac_link) 2>conftest.er1 |
|
20497 |
ac_status=$? |
|
20498 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
20499 |
rm -f conftest.er1 |
|
20500 |
cat conftest.err >&5 |
|
20501 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20502 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
20503 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
20504 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20505 |
(eval $ac_try) 2>&5 |
|
20506 |
ac_status=$? |
|
20507 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20508 |
(exit $ac_status); }; } && |
|
20509 |
{ ac_try='test -s conftest$ac_exeext' |
|
20510 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
20511 |
(eval $ac_try) 2>&5 |
|
20512 |
ac_status=$? |
|
20513 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20514 |
(exit $ac_status); }; }; then |
|
20515 |
ac_cv_lib_dld_dld_link=yes |
|
20516 |
else |
|
20517 |
echo "$as_me: failed program was:" >&5 |
|
20518 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
20519 |
||
20520 |
ac_cv_lib_dld_dld_link=no |
|
20521 |
fi |
|
20522 |
rm -f conftest.err conftest.$ac_objext \ |
|
20523 |
conftest$ac_exeext conftest.$ac_ext |
|
20524 |
LIBS=$ac_check_lib_save_LIBS |
|
20525 |
fi |
|
20526 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
20527 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
20528 |
if test $ac_cv_lib_dld_dld_link = yes; then |
|
20529 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
20530 |
fi |
|
20531 |
||
20532 |
||
20533 |
fi |
|
20534 |
||
20535 |
||
20536 |
fi |
|
20537 |
||
20538 |
||
20539 |
fi |
|
20540 |
||
20541 |
||
20542 |
fi |
|
20543 |
||
20544 |
||
20545 |
fi |
|
20546 |
||
20547 |
;; |
|
20548 |
esac |
|
20549 |
||
20550 |
if test "x$lt_cv_dlopen" != xno; then |
|
20551 |
enable_dlopen=yes |
|
20552 |
else |
|
20553 |
enable_dlopen=no |
|
20554 |
fi |
|
20555 |
||
20556 |
case $lt_cv_dlopen in |
|
20557 |
dlopen) |
|
20558 |
save_CPPFLAGS="$CPPFLAGS" |
|
20559 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
20560 |
||
20561 |
save_LDFLAGS="$LDFLAGS" |
|
20562 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
20563 |
||
20564 |
save_LIBS="$LIBS" |
|
20565 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
20566 |
||
20567 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
20568 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
20569 |
if test "${lt_cv_dlopen_self+set}" = set; then |
|
20570 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20571 |
else |
|
20572 |
if test "$cross_compiling" = yes; then : |
|
20573 |
lt_cv_dlopen_self=cross |
|
20574 |
else |
|
20575 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
20576 |
lt_status=$lt_dlunknown |
|
20577 |
cat > conftest.$ac_ext <<EOF |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
20578 |
#line 20578 "configure" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
20579 |
#include "confdefs.h" |
20580 |
||
20581 |
#if HAVE_DLFCN_H |
|
20582 |
#include <dlfcn.h> |
|
20583 |
#endif |
|
20584 |
||
20585 |
#include <stdio.h> |
|
20586 |
||
20587 |
#ifdef RTLD_GLOBAL |
|
20588 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
20589 |
#else |
|
20590 |
# ifdef DL_GLOBAL |
|
20591 |
# define LT_DLGLOBAL DL_GLOBAL |
|
20592 |
# else |
|
20593 |
# define LT_DLGLOBAL 0 |
|
20594 |
# endif |
|
20595 |
#endif |
|
20596 |
||
20597 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
20598 |
find out it does not work in some platform. */ |
|
20599 |
#ifndef LT_DLLAZY_OR_NOW |
|
20600 |
# ifdef RTLD_LAZY |
|
20601 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
20602 |
# else |
|
20603 |
# ifdef DL_LAZY |
|
20604 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
20605 |
# else |
|
20606 |
# ifdef RTLD_NOW |
|
20607 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
20608 |
# else |
|
20609 |
# ifdef DL_NOW |
|
20610 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
20611 |
# else |
|
20612 |
# define LT_DLLAZY_OR_NOW 0 |
|
20613 |
# endif |
|
20614 |
# endif |
|
20615 |
# endif |
|
20616 |
# endif |
|
20617 |
#endif |
|
20618 |
||
20619 |
#ifdef __cplusplus |
|
20620 |
extern "C" void exit (int); |
|
20621 |
#endif |
|
20622 |
||
20623 |
void fnord() { int i=42;} |
|
20624 |
int main () |
|
20625 |
{ |
|
20626 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
20627 |
int status = $lt_dlunknown; |
|
20628 |
||
20629 |
if (self) |
|
20630 |
{ |
|
20631 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
20632 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
20633 |
/* dlclose (self); */ |
|
20634 |
} |
|
20635 |
||
20636 |
exit (status); |
|
20637 |
} |
|
20638 |
EOF |
|
20639 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20640 |
(eval $ac_link) 2>&5 |
|
20641 |
ac_status=$? |
|
20642 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20643 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
20644 |
(./conftest; exit; ) 2>/dev/null |
|
20645 |
lt_status=$? |
|
20646 |
case x$lt_status in |
|
20647 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
20648 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
20649 |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
20650 |
esac |
|
20651 |
else : |
|
20652 |
# compilation failed |
|
20653 |
lt_cv_dlopen_self=no |
|
20654 |
fi |
|
20655 |
fi |
|
20656 |
rm -fr conftest* |
|
20657 |
||
20658 |
||
20659 |
fi |
|
20660 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
20661 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
20662 |
||
20663 |
if test "x$lt_cv_dlopen_self" = xyes; then |
|
20664 |
LDFLAGS="$LDFLAGS $link_static_flag" |
|
20665 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
20666 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
20667 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
20668 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20669 |
else |
|
20670 |
if test "$cross_compiling" = yes; then : |
|
20671 |
lt_cv_dlopen_self_static=cross |
|
20672 |
else |
|
20673 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
20674 |
lt_status=$lt_dlunknown |
|
20675 |
cat > conftest.$ac_ext <<EOF |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
20676 |
#line 20676 "configure" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
20677 |
#include "confdefs.h" |
20678 |
||
20679 |
#if HAVE_DLFCN_H |
|
20680 |
#include <dlfcn.h> |
|
20681 |
#endif |
|
20682 |
||
20683 |
#include <stdio.h> |
|
20684 |
||
20685 |
#ifdef RTLD_GLOBAL |
|
20686 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
20687 |
#else |
|
20688 |
# ifdef DL_GLOBAL |
|
20689 |
# define LT_DLGLOBAL DL_GLOBAL |
|
20690 |
# else |
|
20691 |
# define LT_DLGLOBAL 0 |
|
20692 |
# endif |
|
20693 |
#endif |
|
20694 |
||
20695 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
20696 |
find out it does not work in some platform. */ |
|
20697 |
#ifndef LT_DLLAZY_OR_NOW |
|
20698 |
# ifdef RTLD_LAZY |
|
20699 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
20700 |
# else |
|
20701 |
# ifdef DL_LAZY |
|
20702 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
20703 |
# else |
|
20704 |
# ifdef RTLD_NOW |
|
20705 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
20706 |
# else |
|
20707 |
# ifdef DL_NOW |
|
20708 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
20709 |
# else |
|
20710 |
# define LT_DLLAZY_OR_NOW 0 |
|
20711 |
# endif |
|
20712 |
# endif |
|
20713 |
# endif |
|
20714 |
# endif |
|
20715 |
#endif |
|
20716 |
||
20717 |
#ifdef __cplusplus |
|
20718 |
extern "C" void exit (int); |
|
20719 |
#endif |
|
20720 |
||
20721 |
void fnord() { int i=42;} |
|
20722 |
int main () |
|
20723 |
{ |
|
20724 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
20725 |
int status = $lt_dlunknown; |
|
20726 |
||
20727 |
if (self) |
|
20728 |
{ |
|
20729 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
20730 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
20731 |
/* dlclose (self); */ |
|
20732 |
} |
|
20733 |
||
20734 |
exit (status); |
|
20735 |
} |
|
20736 |
EOF |
|
20737 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
20738 |
(eval $ac_link) 2>&5 |
|
20739 |
ac_status=$? |
|
20740 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20741 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
20742 |
(./conftest; exit; ) 2>/dev/null |
|
20743 |
lt_status=$? |
|
20744 |
case x$lt_status in |
|
20745 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
20746 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
20747 |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
20748 |
esac |
|
20749 |
else : |
|
20750 |
# compilation failed |
|
20751 |
lt_cv_dlopen_self_static=no |
|
20752 |
fi |
|
20753 |
fi |
|
20754 |
rm -fr conftest* |
|
20755 |
||
20756 |
||
20757 |
fi |
|
20758 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
20759 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
20760 |
fi |
|
20761 |
||
20762 |
CPPFLAGS="$save_CPPFLAGS" |
|
20763 |
LDFLAGS="$save_LDFLAGS" |
|
20764 |
LIBS="$save_LIBS" |
|
20765 |
;; |
|
20766 |
esac |
|
20767 |
||
20768 |
case $lt_cv_dlopen_self in |
|
20769 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
20770 |
*) enable_dlopen_self=unknown ;; |
|
20771 |
esac |
|
20772 |
||
20773 |
case $lt_cv_dlopen_self_static in |
|
20774 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
20775 |
*) enable_dlopen_self_static=unknown ;; |
|
20776 |
esac |
|
20777 |
fi |
|
20778 |
||
20779 |
||
20780 |
# The else clause should only fire when bootstrapping the |
|
20781 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
20782 |
# with your package, and you will get complaints that there are |
|
20783 |
# no rules to generate ltmain.sh. |
|
20784 |
if test -f "$ltmain"; then |
|
20785 |
# See if we are running on zsh, and set the options which allow our commands through |
|
20786 |
# without removal of \ escapes. |
|
20787 |
if test -n "${ZSH_VERSION+set}" ; then |
|
20788 |
setopt NO_GLOB_SUBST |
|
20789 |
fi |
|
20790 |
# Now quote all the things that may contain metacharacters while being |
|
20791 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
20792 |
# variables and quote the copies for generation of the libtool script. |
|
20793 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
|
20794 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
20795 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
20796 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
20797 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
20798 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
20799 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
20800 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
20801 |
compiler_GCJ \ |
|
20802 |
CC_GCJ \ |
|
20803 |
LD_GCJ \ |
|
20804 |
lt_prog_compiler_wl_GCJ \ |
|
20805 |
lt_prog_compiler_pic_GCJ \ |
|
20806 |
lt_prog_compiler_static_GCJ \ |
|
20807 |
lt_prog_compiler_no_builtin_flag_GCJ \ |
|
20808 |
export_dynamic_flag_spec_GCJ \ |
|
20809 |
thread_safe_flag_spec_GCJ \ |
|
20810 |
whole_archive_flag_spec_GCJ \ |
|
20811 |
enable_shared_with_static_runtimes_GCJ \ |
|
20812 |
old_archive_cmds_GCJ \ |
|
20813 |
old_archive_from_new_cmds_GCJ \ |
|
20814 |
predep_objects_GCJ \ |
|
20815 |
postdep_objects_GCJ \ |
|
20816 |
predeps_GCJ \ |
|
20817 |
postdeps_GCJ \ |
|
20818 |
compiler_lib_search_path_GCJ \ |
|
20819 |
archive_cmds_GCJ \ |
|
20820 |
archive_expsym_cmds_GCJ \ |
|
20821 |
postinstall_cmds_GCJ \ |
|
20822 |
postuninstall_cmds_GCJ \ |
|
20823 |
old_archive_from_expsyms_cmds_GCJ \ |
|
20824 |
allow_undefined_flag_GCJ \ |
|
20825 |
no_undefined_flag_GCJ \ |
|
20826 |
export_symbols_cmds_GCJ \ |
|
20827 |
hardcode_libdir_flag_spec_GCJ \ |
|
20828 |
hardcode_libdir_flag_spec_ld_GCJ \ |
|
20829 |
hardcode_libdir_separator_GCJ \ |
|
20830 |
hardcode_automatic_GCJ \ |
|
20831 |
module_cmds_GCJ \ |
|
20832 |
module_expsym_cmds_GCJ \ |
|
20833 |
lt_cv_prog_compiler_c_o_GCJ \ |
|
20834 |
exclude_expsyms_GCJ \ |
|
20835 |
include_expsyms_GCJ; do |
|
20836 |
||
20837 |
case $var in |
|
20838 |
old_archive_cmds_GCJ | \ |
|
20839 |
old_archive_from_new_cmds_GCJ | \ |
|
20840 |
archive_cmds_GCJ | \ |
|
20841 |
archive_expsym_cmds_GCJ | \ |
|
20842 |
module_cmds_GCJ | \ |
|
20843 |
module_expsym_cmds_GCJ | \ |
|
20844 |
old_archive_from_expsyms_cmds_GCJ | \ |
|
20845 |
export_symbols_cmds_GCJ | \ |
|
20846 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
20847 |
postinstall_cmds | postuninstall_cmds | \ |
|
20848 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
20849 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
20850 |
# Double-quote double-evaled strings. |
|
20851 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
20852 |
;; |
|
20853 |
*) |
|
20854 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
20855 |
;; |
|
20856 |
esac |
|
20857 |
done |
|
20858 |
||
20859 |
case $lt_echo in |
|
20860 |
*'\$0 --fallback-echo"') |
|
20861 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
20862 |
;; |
|
20863 |
esac |
|
20864 |
||
20865 |
cfgfile="$ofile" |
|
20866 |
||
20867 |
cat <<__EOF__ >> "$cfgfile" |
|
20868 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
20869 |
||
20870 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
20871 |
||
20872 |
# Shell to use when invoking shell scripts. |
|
20873 |
SHELL=$lt_SHELL |
|
20874 |
||
20875 |
# Whether or not to build shared libraries. |
|
20876 |
build_libtool_libs=$enable_shared |
|
20877 |
||
20878 |
# Whether or not to build static libraries. |
|
20879 |
build_old_libs=$enable_static |
|
20880 |
||
20881 |
# Whether or not to add -lc for building shared libraries. |
|
20882 |
build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
|
20883 |
||
20884 |
# Whether or not to disallow shared libs when runtime libs are static |
|
20885 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
|
20886 |
||
20887 |
# Whether or not to optimize for fast installation. |
|
20888 |
fast_install=$enable_fast_install |
|
20889 |
||
20890 |
# The host system. |
|
20891 |
host_alias=$host_alias |
|
20892 |
host=$host |
|
20893 |
||
20894 |
# An echo program that does not interpret backslashes. |
|
20895 |
echo=$lt_echo |
|
20896 |
||
20897 |
# The archiver. |
|
20898 |
AR=$lt_AR |
|
20899 |
AR_FLAGS=$lt_AR_FLAGS |
|
20900 |
||
20901 |
# A C compiler. |
|
20902 |
LTCC=$lt_LTCC |
|
20903 |
||
20904 |
# A language-specific compiler. |
|
20905 |
CC=$lt_compiler_GCJ |
|
20906 |
||
20907 |
# Is the compiler the GNU C compiler? |
|
20908 |
with_gcc=$GCC_GCJ |
|
20909 |
||
20910 |
# An ERE matcher. |
|
20911 |
EGREP=$lt_EGREP |
|
20912 |
||
20913 |
# The linker used to build libraries. |
|
20914 |
LD=$lt_LD_GCJ |
|
20915 |
||
20916 |
# Whether we need hard or soft links. |
|
20917 |
LN_S=$lt_LN_S |
|
20918 |
||
20919 |
# A BSD-compatible nm program. |
|
20920 |
NM=$lt_NM |
|
20921 |
||
20922 |
# A symbol stripping program |
|
20923 |
STRIP=$STRIP |
|
20924 |
||
20925 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
20926 |
MAGIC_CMD=$MAGIC_CMD |
|
20927 |
||
20928 |
# Used on cygwin: DLL creation program. |
|
20929 |
DLLTOOL="$DLLTOOL" |
|
20930 |
||
20931 |
# Used on cygwin: object dumper. |
|
20932 |
OBJDUMP="$OBJDUMP" |
|
20933 |
||
20934 |
# Used on cygwin: assembler. |
|
20935 |
AS="$AS" |
|
20936 |
||
20937 |
# The name of the directory that contains temporary libtool files. |
|
20938 |
objdir=$objdir |
|
20939 |
||
20940 |
# How to create reloadable object files. |
|
20941 |
reload_flag=$lt_reload_flag |
|
20942 |
reload_cmds=$lt_reload_cmds |
|
20943 |
||
20944 |
# How to pass a linker flag through the compiler. |
|
20945 |
wl=$lt_lt_prog_compiler_wl_GCJ |
|
20946 |
||
20947 |
# Object file suffix (normally "o"). |
|
20948 |
objext="$ac_objext" |
|
20949 |
||
20950 |
# Old archive suffix (normally "a"). |
|
20951 |
libext="$libext" |
|
20952 |
||
20953 |
# Shared library suffix (normally ".so"). |
|
20954 |
shrext='$shrext' |
|
20955 |
||
20956 |
# Executable file suffix (normally ""). |
|
20957 |
exeext="$exeext" |
|
20958 |
||
20959 |
# Additional compiler flags for building library objects. |
|
20960 |
pic_flag=$lt_lt_prog_compiler_pic_GCJ |
|
20961 |
pic_mode=$pic_mode |
|
20962 |
||
20963 |
# What is the maximum length of a command? |
|
20964 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
20965 |
||
20966 |
# Does compiler simultaneously support -c and -o options? |
|
20967 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
|
20968 |
||
20969 |
# Must we lock files when doing compilation ? |
|
20970 |
need_locks=$lt_need_locks |
|
20971 |
||
20972 |
# Do we need the lib prefix for modules? |
|
20973 |
need_lib_prefix=$need_lib_prefix |
|
20974 |
||
20975 |
# Do we need a version for libraries? |
|
20976 |
need_version=$need_version |
|
20977 |
||
20978 |
# Whether dlopen is supported. |
|
20979 |
dlopen_support=$enable_dlopen |
|
20980 |
||
20981 |
# Whether dlopen of programs is supported. |
|
20982 |
dlopen_self=$enable_dlopen_self |
|
20983 |
||
20984 |
# Whether dlopen of statically linked programs is supported. |
|
20985 |
dlopen_self_static=$enable_dlopen_self_static |
|
20986 |
||
20987 |
# Compiler flag to prevent dynamic linking. |
|
20988 |
link_static_flag=$lt_lt_prog_compiler_static_GCJ |
|
20989 |
||
20990 |
# Compiler flag to turn off builtin functions. |
|
20991 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
|
20992 |
||
20993 |
# Compiler flag to allow reflexive dlopens. |
|
20994 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
|
20995 |
||
20996 |
# Compiler flag to generate shared objects directly from archives. |
|
20997 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
|
20998 |
||
20999 |
# Compiler flag to generate thread-safe objects. |
|
21000 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
|
21001 |
||
21002 |
# Library versioning type. |
|
21003 |
version_type=$version_type |
|
21004 |
||
21005 |
# Format of library name prefix. |
|
21006 |
libname_spec=$lt_libname_spec |
|
21007 |
||
21008 |
# List of archive names. First name is the real one, the rest are links. |
|
21009 |
# The last name is the one that the linker finds with -lNAME. |
|
21010 |
library_names_spec=$lt_library_names_spec |
|
21011 |
||
21012 |
# The coded name of the library, if different from the real name. |
|
21013 |
soname_spec=$lt_soname_spec |
|
21014 |
||
21015 |
# Commands used to build and install an old-style archive. |
|
21016 |
RANLIB=$lt_RANLIB |
|
21017 |
old_archive_cmds=$lt_old_archive_cmds_GCJ |
|
21018 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
21019 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
21020 |
||
21021 |
# Create an old-style archive from a shared archive. |
|
21022 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
|
21023 |
||
21024 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
21025 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
|
21026 |
||
21027 |
# Commands used to build and install a shared archive. |
|
21028 |
archive_cmds=$lt_archive_cmds_GCJ |
|
21029 |
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
|
21030 |
postinstall_cmds=$lt_postinstall_cmds |
|
21031 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
21032 |
||
21033 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
21034 |
module_cmds=$lt_module_cmds_GCJ |
|
21035 |
module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
|
21036 |
||
21037 |
# Commands to strip libraries. |
|
21038 |
old_striplib=$lt_old_striplib |
|
21039 |
striplib=$lt_striplib |
|
21040 |
||
21041 |
# Dependencies to place before the objects being linked to create a |
|
21042 |
# shared library. |
|
21043 |
predep_objects=$lt_predep_objects_GCJ |
|
21044 |
||
21045 |
# Dependencies to place after the objects being linked to create a |
|
21046 |
# shared library. |
|
21047 |
postdep_objects=$lt_postdep_objects_GCJ |
|
21048 |
||
21049 |
# Dependencies to place before the objects being linked to create a |
|
21050 |
# shared library. |
|
21051 |
predeps=$lt_predeps_GCJ |
|
21052 |
||
21053 |
# Dependencies to place after the objects being linked to create a |
|
21054 |
# shared library. |
|
21055 |
postdeps=$lt_postdeps_GCJ |
|
21056 |
||
21057 |
# The library search path used internally by the compiler when linking |
|
21058 |
# a shared library. |
|
21059 |
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
|
21060 |
||
21061 |
# Method to check whether dependent libraries are shared objects. |
|
21062 |
deplibs_check_method=$lt_deplibs_check_method |
|
21063 |
||
21064 |
# Command to use when deplibs_check_method == file_magic. |
|
21065 |
file_magic_cmd=$lt_file_magic_cmd |
|
21066 |
||
21067 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
21068 |
allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
|
21069 |
||
21070 |
# Flag that forces no undefined symbols. |
|
21071 |
no_undefined_flag=$lt_no_undefined_flag_GCJ |
|
21072 |
||
21073 |
# Commands used to finish a libtool library installation in a directory. |
|
21074 |
finish_cmds=$lt_finish_cmds |
|
21075 |
||
21076 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
21077 |
finish_eval=$lt_finish_eval |
|
21078 |
||
21079 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
21080 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
21081 |
||
21082 |
# Transform the output of nm in a proper C declaration |
|
21083 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
21084 |
||
21085 |
# Transform the output of nm in a C name address pair |
|
21086 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
21087 |
||
21088 |
# This is the shared library runtime path variable. |
|
21089 |
runpath_var=$runpath_var |
|
21090 |
||
21091 |
# This is the shared library path variable. |
|
21092 |
shlibpath_var=$shlibpath_var |
|
21093 |
||
21094 |
# Is shlibpath searched before the hard-coded library search path? |
|
21095 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
21096 |
||
21097 |
# How to hardcode a shared library path into an executable. |
|
21098 |
hardcode_action=$hardcode_action_GCJ |
|
21099 |
||
21100 |
# Whether we should hardcode library paths into libraries. |
|
21101 |
hardcode_into_libs=$hardcode_into_libs |
|
21102 |
||
21103 |
# Flag to hardcode \$libdir into a binary during linking. |
|
21104 |
# This must work even if \$libdir does not exist. |
|
21105 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
|
21106 |
||
21107 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
21108 |
# a binary during linking. This must work even if \$libdir does |
|
21109 |
# not exist. |
|
21110 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
|
21111 |
||
21112 |
# Whether we need a single -rpath flag with a separated argument. |
|
21113 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
|
21114 |
||
21115 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
21116 |
# resulting binary. |
|
21117 |
hardcode_direct=$hardcode_direct_GCJ |
|
21118 |
||
21119 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
21120 |
# resulting binary. |
|
21121 |
hardcode_minus_L=$hardcode_minus_L_GCJ |
|
21122 |
||
21123 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
21124 |
# the resulting binary. |
|
21125 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
21126 |
||
21127 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
21128 |
# and all subsequent libraries and executables linked against it. |
|
21129 |
hardcode_automatic=$hardcode_automatic_GCJ |
|
21130 |
||
21131 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
21132 |
# restored at relink time. |
|
21133 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
21134 |
||
21135 |
# Whether libtool must link a program against all its dependency libraries. |
|
21136 |
link_all_deplibs=$link_all_deplibs_GCJ |
|
21137 |
||
21138 |
# Compile-time system search path for libraries |
|
21139 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
21140 |
||
21141 |
# Run-time system search path for libraries |
|
21142 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
21143 |
||
21144 |
# Fix the shell variable \$srcfile for the compiler. |
|
21145 |
fix_srcfile_path="$fix_srcfile_path_GCJ" |
|
21146 |
||
21147 |
# Set to yes if exported symbols are required. |
|
21148 |
always_export_symbols=$always_export_symbols_GCJ |
|
21149 |
||
21150 |
# The commands to list exported symbols. |
|
21151 |
export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
21152 |
||
21153 |
# The commands to extract the exported symbol list from a shared archive. |
|
21154 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
21155 |
||
21156 |
# Symbols that should not be listed in the preloaded symbols. |
|
21157 |
exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
21158 |
||
21159 |
# Symbols that must always be exported. |
|
21160 |
include_expsyms=$lt_include_expsyms_GCJ |
|
21161 |
||
21162 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
21163 |
||
21164 |
__EOF__ |
|
21165 |
||
21166 |
||
21167 |
else |
|
21168 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
21169 |
# `config.status --recheck' to rerun these tests and create the |
|
21170 |
# libtool script then. |
|
21171 |
test -f Makefile && make "$ltmain" |
|
21172 |
fi |
|
21173 |
||
21174 |
||
21175 |
ac_ext=c |
|
21176 |
ac_cpp='$CPP $CPPFLAGS' |
|
21177 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
21178 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
21179 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
21180 |
||
21181 |
CC="$lt_save_CC" |
|
21182 |
||
21183 |
else |
|
21184 |
tagname="" |
|
21185 |
fi |
|
21186 |
;; |
|
21187 |
||
21188 |
RC) |
|
21189 |
||
21190 |
||
21191 |
||
21192 |
# Source file extension for RC test sources. |
|
21193 |
ac_ext=rc |
|
21194 |
||
21195 |
# Object file extension for compiled RC test sources. |
|
21196 |
objext=o |
|
21197 |
objext_RC=$objext |
|
21198 |
||
21199 |
# Code to be used in simple compile tests |
|
21200 |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
|
21201 |
||
21202 |
# Code to be used in simple link tests |
|
21203 |
lt_simple_link_test_code="$lt_simple_compile_test_code" |
|
21204 |
||
21205 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
21206 |
||
21207 |
# If no C compiler was specified, use CC. |
|
21208 |
LTCC=${LTCC-"$CC"} |
|
21209 |
||
21210 |
# Allow CC to be a program name with arguments. |
|
21211 |
compiler=$CC |
|
21212 |
||
21213 |
||
21214 |
# Allow CC to be a program name with arguments. |
|
21215 |
lt_save_CC="$CC" |
|
21216 |
CC=${RC-"windres"} |
|
21217 |
compiler=$CC |
|
21218 |
compiler_RC=$CC |
|
21219 |
lt_cv_prog_compiler_c_o_RC=yes |
|
21220 |
||
21221 |
# The else clause should only fire when bootstrapping the |
|
21222 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
21223 |
# with your package, and you will get complaints that there are |
|
21224 |
# no rules to generate ltmain.sh. |
|
21225 |
if test -f "$ltmain"; then |
|
21226 |
# See if we are running on zsh, and set the options which allow our commands through |
|
21227 |
# without removal of \ escapes. |
|
21228 |
if test -n "${ZSH_VERSION+set}" ; then |
|
21229 |
setopt NO_GLOB_SUBST |
|
21230 |
fi |
|
21231 |
# Now quote all the things that may contain metacharacters while being |
|
21232 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
21233 |
# variables and quote the copies for generation of the libtool script. |
|
21234 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
|
21235 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
21236 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
21237 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
21238 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
21239 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
21240 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
21241 |
old_postinstall_cmds old_postuninstall_cmds \ |
|
21242 |
compiler_RC \ |
|
21243 |
CC_RC \ |
|
21244 |
LD_RC \ |
|
21245 |
lt_prog_compiler_wl_RC \ |
|
21246 |
lt_prog_compiler_pic_RC \ |
|
21247 |
lt_prog_compiler_static_RC \ |
|
21248 |
lt_prog_compiler_no_builtin_flag_RC \ |
|
21249 |
export_dynamic_flag_spec_RC \ |
|
21250 |
thread_safe_flag_spec_RC \ |
|
21251 |
whole_archive_flag_spec_RC \ |
|
21252 |
enable_shared_with_static_runtimes_RC \ |
|
21253 |
old_archive_cmds_RC \ |
|
21254 |
old_archive_from_new_cmds_RC \ |
|
21255 |
predep_objects_RC \ |
|
21256 |
postdep_objects_RC \ |
|
21257 |
predeps_RC \ |
|
21258 |
postdeps_RC \ |
|
21259 |
compiler_lib_search_path_RC \ |
|
21260 |
archive_cmds_RC \ |
|
21261 |
archive_expsym_cmds_RC \ |
|
21262 |
postinstall_cmds_RC \ |
|
21263 |
postuninstall_cmds_RC \ |
|
21264 |
old_archive_from_expsyms_cmds_RC \ |
|
21265 |
allow_undefined_flag_RC \ |
|
21266 |
no_undefined_flag_RC \ |
|
21267 |
export_symbols_cmds_RC \ |
|
21268 |
hardcode_libdir_flag_spec_RC \ |
|
21269 |
hardcode_libdir_flag_spec_ld_RC \ |
|
21270 |
hardcode_libdir_separator_RC \ |
|
21271 |
hardcode_automatic_RC \ |
|
21272 |
module_cmds_RC \ |
|
21273 |
module_expsym_cmds_RC \ |
|
21274 |
lt_cv_prog_compiler_c_o_RC \ |
|
21275 |
exclude_expsyms_RC \ |
|
21276 |
include_expsyms_RC; do |
|
21277 |
||
21278 |
case $var in |
|
21279 |
old_archive_cmds_RC | \ |
|
21280 |
old_archive_from_new_cmds_RC | \ |
|
21281 |
archive_cmds_RC | \ |
|
21282 |
archive_expsym_cmds_RC | \ |
|
21283 |
module_cmds_RC | \ |
|
21284 |
module_expsym_cmds_RC | \ |
|
21285 |
old_archive_from_expsyms_cmds_RC | \ |
|
21286 |
export_symbols_cmds_RC | \ |
|
21287 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
21288 |
postinstall_cmds | postuninstall_cmds | \ |
|
21289 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
|
21290 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
21291 |
# Double-quote double-evaled strings. |
|
21292 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
21293 |
;; |
|
21294 |
*) |
|
21295 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
21296 |
;; |
|
21297 |
esac |
|
21298 |
done |
|
21299 |
||
21300 |
case $lt_echo in |
|
21301 |
*'\$0 --fallback-echo"') |
|
21302 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
21303 |
;; |
|
21304 |
esac |
|
21305 |
||
21306 |
cfgfile="$ofile" |
|
21307 |
||
21308 |
cat <<__EOF__ >> "$cfgfile" |
|
21309 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
21310 |
||
21311 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
21312 |
||
21313 |
# Shell to use when invoking shell scripts. |
|
21314 |
SHELL=$lt_SHELL |
|
21315 |
||
21316 |
# Whether or not to build shared libraries. |
|
21317 |
build_libtool_libs=$enable_shared |
|
21318 |
||
21319 |
# Whether or not to build static libraries. |
|
21320 |
build_old_libs=$enable_static |
|
21321 |
||
21322 |
# Whether or not to add -lc for building shared libraries. |
|
21323 |
build_libtool_need_lc=$archive_cmds_need_lc_RC |
|
21324 |
||
21325 |
# Whether or not to disallow shared libs when runtime libs are static |
|
21326 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
|
21327 |
||
21328 |
# Whether or not to optimize for fast installation. |
|
21329 |
fast_install=$enable_fast_install |
|
21330 |
||
21331 |
# The host system. |
|
21332 |
host_alias=$host_alias |
|
21333 |
host=$host |
|
21334 |
||
21335 |
# An echo program that does not interpret backslashes. |
|
21336 |
echo=$lt_echo |
|
21337 |
||
21338 |
# The archiver. |
|
21339 |
AR=$lt_AR |
|
21340 |
AR_FLAGS=$lt_AR_FLAGS |
|
21341 |
||
21342 |
# A C compiler. |
|
21343 |
LTCC=$lt_LTCC |
|
21344 |
||
21345 |
# A language-specific compiler. |
|
21346 |
CC=$lt_compiler_RC |
|
21347 |
||
21348 |
# Is the compiler the GNU C compiler? |
|
21349 |
with_gcc=$GCC_RC |
|
21350 |
||
21351 |
# An ERE matcher. |
|
21352 |
EGREP=$lt_EGREP |
|
21353 |
||
21354 |
# The linker used to build libraries. |
|
21355 |
LD=$lt_LD_RC |
|
21356 |
||
21357 |
# Whether we need hard or soft links. |
|
21358 |
LN_S=$lt_LN_S |
|
21359 |
||
21360 |
# A BSD-compatible nm program. |
|
21361 |
NM=$lt_NM |
|
21362 |
||
21363 |
# A symbol stripping program |
|
21364 |
STRIP=$STRIP |
|
21365 |
||
21366 |
# Used to examine libraries when file_magic_cmd begins "file" |
|
21367 |
MAGIC_CMD=$MAGIC_CMD |
|
21368 |
||
21369 |
# Used on cygwin: DLL creation program. |
|
21370 |
DLLTOOL="$DLLTOOL" |
|
21371 |
||
21372 |
# Used on cygwin: object dumper. |
|
21373 |
OBJDUMP="$OBJDUMP" |
|
21374 |
||
21375 |
# Used on cygwin: assembler. |
|
21376 |
AS="$AS" |
|
21377 |
||
21378 |
# The name of the directory that contains temporary libtool files. |
|
21379 |
objdir=$objdir |
|
21380 |
||
21381 |
# How to create reloadable object files. |
|
21382 |
reload_flag=$lt_reload_flag |
|
21383 |
reload_cmds=$lt_reload_cmds |
|
21384 |
||
21385 |
# How to pass a linker flag through the compiler. |
|
21386 |
wl=$lt_lt_prog_compiler_wl_RC |
|
21387 |
||
21388 |
# Object file suffix (normally "o"). |
|
21389 |
objext="$ac_objext" |
|
21390 |
||
21391 |
# Old archive suffix (normally "a"). |
|
21392 |
libext="$libext" |
|
21393 |
||
21394 |
# Shared library suffix (normally ".so"). |
|
21395 |
shrext='$shrext' |
|
21396 |
||
21397 |
# Executable file suffix (normally ""). |
|
21398 |
exeext="$exeext" |
|
21399 |
||
21400 |
# Additional compiler flags for building library objects. |
|
21401 |
pic_flag=$lt_lt_prog_compiler_pic_RC |
|
21402 |
pic_mode=$pic_mode |
|
21403 |
||
21404 |
# What is the maximum length of a command? |
|
21405 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
21406 |
||
21407 |
# Does compiler simultaneously support -c and -o options? |
|
21408 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
|
21409 |
||
21410 |
# Must we lock files when doing compilation ? |
|
21411 |
need_locks=$lt_need_locks |
|
21412 |
||
21413 |
# Do we need the lib prefix for modules? |
|
21414 |
need_lib_prefix=$need_lib_prefix |
|
21415 |
||
21416 |
# Do we need a version for libraries? |
|
21417 |
need_version=$need_version |
|
21418 |
||
21419 |
# Whether dlopen is supported. |
|
21420 |
dlopen_support=$enable_dlopen |
|
21421 |
||
21422 |
# Whether dlopen of programs is supported. |
|
21423 |
dlopen_self=$enable_dlopen_self |
|
21424 |
||
21425 |
# Whether dlopen of statically linked programs is supported. |
|
21426 |
dlopen_self_static=$enable_dlopen_self_static |
|
21427 |
||
21428 |
# Compiler flag to prevent dynamic linking. |
|
21429 |
link_static_flag=$lt_lt_prog_compiler_static_RC |
|
21430 |
||
21431 |
# Compiler flag to turn off builtin functions. |
|
21432 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
|
21433 |
||
21434 |
# Compiler flag to allow reflexive dlopens. |
|
21435 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
|
21436 |
||
21437 |
# Compiler flag to generate shared objects directly from archives. |
|
21438 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
|
21439 |
||
21440 |
# Compiler flag to generate thread-safe objects. |
|
21441 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
|
21442 |
||
21443 |
# Library versioning type. |
|
21444 |
version_type=$version_type |
|
21445 |
||
21446 |
# Format of library name prefix. |
|
21447 |
libname_spec=$lt_libname_spec |
|
21448 |
||
21449 |
# List of archive names. First name is the real one, the rest are links. |
|
21450 |
# The last name is the one that the linker finds with -lNAME. |
|
21451 |
library_names_spec=$lt_library_names_spec |
|
21452 |
||
21453 |
# The coded name of the library, if different from the real name. |
|
21454 |
soname_spec=$lt_soname_spec |
|
21455 |
||
21456 |
# Commands used to build and install an old-style archive. |
|
21457 |
RANLIB=$lt_RANLIB |
|
21458 |
old_archive_cmds=$lt_old_archive_cmds_RC |
|
21459 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
21460 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
21461 |
||
21462 |
# Create an old-style archive from a shared archive. |
|
21463 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
|
21464 |
||
21465 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
21466 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
|
21467 |
||
21468 |
# Commands used to build and install a shared archive. |
|
21469 |
archive_cmds=$lt_archive_cmds_RC |
|
21470 |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
|
21471 |
postinstall_cmds=$lt_postinstall_cmds |
|
21472 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
21473 |
||
21474 |
# Commands used to build a loadable module (assumed same as above if empty) |
|
21475 |
module_cmds=$lt_module_cmds_RC |
|
21476 |
module_expsym_cmds=$lt_module_expsym_cmds_RC |
|
21477 |
||
21478 |
# Commands to strip libraries. |
|
21479 |
old_striplib=$lt_old_striplib |
|
21480 |
striplib=$lt_striplib |
|
21481 |
||
21482 |
# Dependencies to place before the objects being linked to create a |
|
21483 |
# shared library. |
|
21484 |
predep_objects=$lt_predep_objects_RC |
|
21485 |
||
21486 |
# Dependencies to place after the objects being linked to create a |
|
21487 |
# shared library. |
|
21488 |
postdep_objects=$lt_postdep_objects_RC |
|
21489 |
||
21490 |
# Dependencies to place before the objects being linked to create a |
|
21491 |
# shared library. |
|
21492 |
predeps=$lt_predeps_RC |
|
21493 |
||
21494 |
# Dependencies to place after the objects being linked to create a |
|
21495 |
# shared library. |
|
21496 |
postdeps=$lt_postdeps_RC |
|
21497 |
||
21498 |
# The library search path used internally by the compiler when linking |
|
21499 |
# a shared library. |
|
21500 |
compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
|
21501 |
||
21502 |
# Method to check whether dependent libraries are shared objects. |
|
21503 |
deplibs_check_method=$lt_deplibs_check_method |
|
21504 |
||
21505 |
# Command to use when deplibs_check_method == file_magic. |
|
21506 |
file_magic_cmd=$lt_file_magic_cmd |
|
21507 |
||
21508 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
21509 |
allow_undefined_flag=$lt_allow_undefined_flag_RC |
|
21510 |
||
21511 |
# Flag that forces no undefined symbols. |
|
21512 |
no_undefined_flag=$lt_no_undefined_flag_RC |
|
21513 |
||
21514 |
# Commands used to finish a libtool library installation in a directory. |
|
21515 |
finish_cmds=$lt_finish_cmds |
|
21516 |
||
21517 |
# Same as above, but a single script fragment to be evaled but not shown. |
|
21518 |
finish_eval=$lt_finish_eval |
|
21519 |
||
21520 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
21521 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
21522 |
||
21523 |
# Transform the output of nm in a proper C declaration |
|
21524 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
21525 |
||
21526 |
# Transform the output of nm in a C name address pair |
|
21527 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
21528 |
||
21529 |
# This is the shared library runtime path variable. |
|
21530 |
runpath_var=$runpath_var |
|
21531 |
||
21532 |
# This is the shared library path variable. |
|
21533 |
shlibpath_var=$shlibpath_var |
|
21534 |
||
21535 |
# Is shlibpath searched before the hard-coded library search path? |
|
21536 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
21537 |
||
21538 |
# How to hardcode a shared library path into an executable. |
|
21539 |
hardcode_action=$hardcode_action_RC |
|
21540 |
||
21541 |
# Whether we should hardcode library paths into libraries. |
|
21542 |
hardcode_into_libs=$hardcode_into_libs |
|
21543 |
||
21544 |
# Flag to hardcode \$libdir into a binary during linking. |
|
21545 |
# This must work even if \$libdir does not exist. |
|
21546 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
|
21547 |
||
21548 |
# If ld is used when linking, flag to hardcode \$libdir into |
|
21549 |
# a binary during linking. This must work even if \$libdir does |
|
21550 |
# not exist. |
|
21551 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
|
21552 |
||
21553 |
# Whether we need a single -rpath flag with a separated argument. |
|
21554 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
|
21555 |
||
21556 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
21557 |
# resulting binary. |
|
21558 |
hardcode_direct=$hardcode_direct_RC |
|
21559 |
||
21560 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
21561 |
# resulting binary. |
|
21562 |
hardcode_minus_L=$hardcode_minus_L_RC |
|
21563 |
||
21564 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
21565 |
# the resulting binary. |
|
21566 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
|
21567 |
||
21568 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
|
21569 |
# and all subsequent libraries and executables linked against it. |
|
21570 |
hardcode_automatic=$hardcode_automatic_RC |
|
21571 |
||
21572 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
21573 |
# restored at relink time. |
|
21574 |
variables_saved_for_relink="$variables_saved_for_relink" |
|
21575 |
||
21576 |
# Whether libtool must link a program against all its dependency libraries. |
|
21577 |
link_all_deplibs=$link_all_deplibs_RC |
|
21578 |
||
21579 |
# Compile-time system search path for libraries |
|
21580 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
21581 |
||
21582 |
# Run-time system search path for libraries |
|
21583 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
21584 |
||
21585 |
# Fix the shell variable \$srcfile for the compiler. |
|
21586 |
fix_srcfile_path="$fix_srcfile_path_RC" |
|
21587 |
||
21588 |
# Set to yes if exported symbols are required. |
|
21589 |
always_export_symbols=$always_export_symbols_RC |
|
21590 |
||
21591 |
# The commands to list exported symbols. |
|
21592 |
export_symbols_cmds=$lt_export_symbols_cmds_RC |
|
21593 |
||
21594 |
# The commands to extract the exported symbol list from a shared archive. |
|
21595 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
21596 |
||
21597 |
# Symbols that should not be listed in the preloaded symbols. |
|
21598 |
exclude_expsyms=$lt_exclude_expsyms_RC |
|
21599 |
||
21600 |
# Symbols that must always be exported. |
|
21601 |
include_expsyms=$lt_include_expsyms_RC |
|
21602 |
||
21603 |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
21604 |
||
21605 |
__EOF__ |
|
21606 |
||
21607 |
||
21608 |
else |
|
21609 |
# If there is no Makefile yet, we rely on a make rule to execute |
|
21610 |
# `config.status --recheck' to rerun these tests and create the |
|
21611 |
# libtool script then. |
|
21612 |
test -f Makefile && make "$ltmain" |
|
21613 |
fi |
|
21614 |
||
21615 |
||
21616 |
ac_ext=c |
|
21617 |
ac_cpp='$CPP $CPPFLAGS' |
|
21618 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
21619 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
21620 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
21621 |
||
21622 |
CC="$lt_save_CC" |
|
21623 |
||
21624 |
;; |
|
21625 |
||
21626 |
*) |
|
21627 |
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
|
21628 |
echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
|
21629 |
{ (exit 1); exit 1; }; } |
|
21630 |
;; |
|
21631 |
esac |
|
21632 |
||
21633 |
# Append the new tag name to the list of available tags. |
|
21634 |
if test -n "$tagname" ; then |
|
21635 |
available_tags="$available_tags $tagname" |
|
21636 |
fi |
|
21637 |
fi |
|
21638 |
done |
|
21639 |
IFS="$lt_save_ifs" |
|
21640 |
||
21641 |
# Now substitute the updated list of available tags. |
|
21642 |
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
|
21643 |
mv "${ofile}T" "$ofile" |
|
21644 |
chmod +x "$ofile" |
|
21645 |
else |
|
21646 |
rm -f "${ofile}T" |
|
21647 |
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
|
21648 |
echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
|
21649 |
{ (exit 1); exit 1; }; } |
|
21650 |
fi |
|
21651 |
fi |
|
21652 |
||
21653 |
||
21654 |
||
21655 |
# This can be used to rebuild libtool when needed |
|
21656 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
21657 |
||
21658 |
# Always use our own libtool. |
|
21659 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' |
|
21660 |
||
21661 |
# Prevent multiple expansion |
|
21662 |
||
21663 |
||
21664 |
||
21665 |
||
21666 |
||
21667 |
||
21668 |
||
21669 |
||
21670 |
||
21671 |
||
21672 |
||
21673 |
||
21674 |
||
21675 |
||
21676 |
||
21677 |
||
21678 |
||
21679 |
||
21680 |
||
21681 |
||
21682 |
||
21683 |
||
21684 |
||
21685 |
||
21686 |
||
21687 |
||
21688 |
||
21689 |
||
21690 |
||
21691 |
||
21692 |
||
21693 |
||
21694 |
||
21695 |
||
21696 |
LIBTOOL_SHELL="/bin/sh ./libtool" |
|
21697 |
# LIBTOOL="$LIBTOOL --silent" |
|
21698 |
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)" |
|
21699 |
||
21700 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
21701 |
# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs. |
21702 |
KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)" |
|
21703 |
||
21704 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
21705 |
# we patch configure quite some so we better keep that consistent for incremental runs |
21706 |
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure' |
|
21707 |
||
21708 |
||
21709 |
||
21710 |
||
21711 |
||
21712 |
# Extract the first word of "msgfmt", so it can be a program name with args. |
|
21713 |
set dummy msgfmt; ac_word=$2 |
|
21714 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
21715 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
21716 |
if test "${ac_cv_path_MSGFMT+set}" = set; then |
|
21717 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21718 |
else |
|
21719 |
case "$MSGFMT" in |
|
21720 |
/*) |
|
21721 |
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
|
21722 |
;; |
|
21723 |
*) |
|
21724 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
|
21725 |
for ac_dir in $PATH; do |
|
21726 |
test -z "$ac_dir" && ac_dir=. |
|
21727 |
if test -f $ac_dir/$ac_word; then |
|
21728 |
if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then |
|
21729 |
ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
|
21730 |
break |
|
21731 |
fi |
|
21732 |
fi |
|
21733 |
done |
|
21734 |
IFS="$ac_save_ifs" |
|
21735 |
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" |
|
21736 |
;; |
|
21737 |
esac |
|
21738 |
fi |
|
21739 |
MSGFMT="$ac_cv_path_MSGFMT" |
|
21740 |
if test -n "$MSGFMT"; then |
|
21741 |
echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
|
21742 |
echo "${ECHO_T}$MSGFMT" >&6 |
|
21743 |
else |
|
21744 |
echo "$as_me:$LINENO: result: no" >&5 |
|
21745 |
echo "${ECHO_T}no" >&6 |
|
21746 |
fi |
|
21747 |
||
21748 |
# Extract the first word of "gmsgfmt", so it can be a program name with args. |
|
21749 |
set dummy gmsgfmt; ac_word=$2 |
|
21750 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
21751 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
21752 |
if test "${ac_cv_path_GMSGFMT+set}" = set; then |
|
21753 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21754 |
else |
|
21755 |
case $GMSGFMT in |
|
21756 |
[\\/]* | ?:[\\/]*) |
|
21757 |
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
|
21758 |
;; |
|
21759 |
*) |
|
21760 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
21761 |
for as_dir in $PATH |
|
21762 |
do |
|
21763 |
IFS=$as_save_IFS |
|
21764 |
test -z "$as_dir" && as_dir=. |
|
21765 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
21766 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
21767 |
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
|
21768 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
21769 |
break 2 |
|
21770 |
fi |
|
21771 |
done |
|
21772 |
done |
|
21773 |
||
21774 |
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
|
21775 |
;; |
|
21776 |
esac |
|
21777 |
fi |
|
21778 |
GMSGFMT=$ac_cv_path_GMSGFMT |
|
21779 |
||
21780 |
if test -n "$GMSGFMT"; then |
|
21781 |
echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
|
21782 |
echo "${ECHO_T}$GMSGFMT" >&6 |
|
21783 |
else |
|
21784 |
echo "$as_me:$LINENO: result: no" >&5 |
|
21785 |
echo "${ECHO_T}no" >&6 |
|
21786 |
fi |
|
21787 |
||
21788 |
||
21789 |
if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then |
|
21790 |
echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 |
|
21791 |
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6 |
|
21792 |
GMSGFMT=":" |
|
21793 |
fi |
|
21794 |
MSGFMT=$GMSGFMT |
|
21795 |
||
21796 |
||
21797 |
||
21798 |
# Extract the first word of "xgettext", so it can be a program name with args. |
|
21799 |
set dummy xgettext; ac_word=$2 |
|
21800 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
21801 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
21802 |
if test "${ac_cv_path_XGETTEXT+set}" = set; then |
|
21803 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21804 |
else |
|
21805 |
case "$XGETTEXT" in |
|
21806 |
/*) |
|
21807 |
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
|
21808 |
;; |
|
21809 |
*) |
|
21810 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
|
21811 |
for ac_dir in $PATH; do |
|
21812 |
test -z "$ac_dir" && ac_dir=. |
|
21813 |
if test -f $ac_dir/$ac_word; then |
|
21814 |
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
|
21815 |
ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
|
21816 |
break |
|
21817 |
fi |
|
21818 |
fi |
|
21819 |
done |
|
21820 |
IFS="$ac_save_ifs" |
|
21821 |
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
|
21822 |
;; |
|
21823 |
esac |
|
21824 |
fi |
|
21825 |
XGETTEXT="$ac_cv_path_XGETTEXT" |
|
21826 |
if test -n "$XGETTEXT"; then |
|
21827 |
echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
|
21828 |
echo "${ECHO_T}$XGETTEXT" >&6 |
|
21829 |
else |
|
21830 |
echo "$as_me:$LINENO: result: no" >&5 |
|
21831 |
echo "${ECHO_T}no" >&6 |
|
21832 |
fi |
|
21833 |
||
21834 |
||
21835 |
if test "$XGETTEXT" != ":"; then |
|
21836 |
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
|
21837 |
: ; |
|
21838 |
else |
|
21839 |
echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
|
21840 |
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 |
|
21841 |
XGETTEXT=":" |
|
21842 |
fi |
|
21843 |
fi |
|
21844 |
||
21845 |
||
21846 |
||
21847 |
||
21848 |
||
21849 |
if test -z "3.1"; then |
|
21850 |
# Current default Qt version: 3.3 |
|
21851 |
kde_qtver=3 |
|
21852 |
kde_qtsubver=3 |
|
21853 |
else |
|
21854 |
kde_qtsubver=`echo "3.1" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'` |
|
21855 |
# following is the check if subversion isnt found in passed argument |
|
21856 |
if test "$kde_qtsubver" = "3.1"; then |
|
21857 |
kde_qtsubver=1 |
|
21858 |
fi |
|
21859 |
kde_qtver=`echo "3.1" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'` |
|
21860 |
if test "$kde_qtver" = "1"; then |
|
21861 |
kde_qtsubver=42 |
|
21862 |
fi |
|
21863 |
fi |
|
21864 |
||
21865 |
if test -z ""; then |
|
21866 |
if test "$kde_qtver" = "2"; then |
|
21867 |
if test $kde_qtsubver -gt 0; then |
|
21868 |
kde_qt_minversion=">= Qt 2.2.2" |
|
21869 |
else |
|
21870 |
kde_qt_minversion=">= Qt 2.0.2" |
|
21871 |
fi |
|
21872 |
fi |
|
21873 |
if test "$kde_qtver" = "3"; then |
|
21874 |
if test $kde_qtsubver -gt 0; then |
|
21875 |
if test $kde_qtsubver -gt 1; then |
|
21876 |
if test $kde_qtsubver -gt 2; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
21877 |
kde_qt_minversion=">= Qt 3.3 and < 4.0" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
21878 |
else |
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
21879 |
kde_qt_minversion=">= Qt 3.2 and < 4.0" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
21880 |
fi |
21881 |
else |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
21882 |
kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
21883 |
fi |
21884 |
else |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
21885 |
kde_qt_minversion=">= Qt 3.0 and < 4.0" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
21886 |
fi |
21887 |
fi |
|
21888 |
if test "$kde_qtver" = "1"; then |
|
21889 |
kde_qt_minversion=">= 1.42 and < 2.0" |
|
21890 |
fi |
|
21891 |
else |
|
21892 |
kde_qt_minversion="" |
|
21893 |
fi |
|
21894 |
||
21895 |
if test -z ""; then |
|
21896 |
if test $kde_qtver = 3; then |
|
21897 |
if test $kde_qtsubver -gt 0; then |
|
21898 |
kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000" |
|
21899 |
qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'` |
|
21900 |
kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"` |
|
21901 |
else |
|
21902 |
kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000" |
|
21903 |
fi |
|
21904 |
fi |
|
21905 |
if test $kde_qtver = 2; then |
|
21906 |
if test $kde_qtsubver -gt 0; then |
|
21907 |
kde_qt_verstring="QT_VERSION >= 222" |
|
21908 |
else |
|
21909 |
kde_qt_verstring="QT_VERSION >= 200" |
|
21910 |
fi |
|
21911 |
fi |
|
21912 |
if test $kde_qtver = 1; then |
|
21913 |
kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200" |
|
21914 |
fi |
|
21915 |
else |
|
21916 |
kde_qt_verstring="" |
|
21917 |
fi |
|
21918 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
21919 |
if test $kde_qtver = 4; then |
21920 |
kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4" |
|
21921 |
fi |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
21922 |
if test $kde_qtver = 3; then |
21923 |
kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3" |
|
21924 |
fi |
|
21925 |
if test $kde_qtver = 2; then |
|
21926 |
kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt" |
|
21927 |
fi |
|
21928 |
if test $kde_qtver = 1; then |
|
21929 |
kde_qt_dirs="$QTDIR /usr/lib/qt" |
|
21930 |
fi |
|
21931 |
||
21932 |
||
21933 |
||
21934 |
||
21935 |
ac_ext=cc |
|
21936 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
21937 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
21938 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
21939 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
21940 |
||
21941 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
21942 |
||
21943 |
||
21944 |
ac_save_CXXFLAGS="$CXXFLAGS" |
|
21945 |
CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`" |
|
21946 |
||
21947 |
echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5 |
|
21948 |
echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6 |
|
21949 |
if test "${kde_cv_stl_works+set}" = set; then |
|
21950 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21951 |
else |
|
21952 |
||
21953 |
cat >conftest.$ac_ext <<_ACEOF |
|
21954 |
/* confdefs.h. */ |
|
21955 |
_ACEOF |
|
21956 |
cat confdefs.h >>conftest.$ac_ext |
|
21957 |
cat >>conftest.$ac_ext <<_ACEOF |
|
21958 |
/* end confdefs.h. */ |
|
21959 |
||
21960 |
#include <string> |
|
21961 |
using namespace std; |
|
21962 |
||
21963 |
int |
|
21964 |
main () |
|
21965 |
{ |
|
21966 |
||
21967 |
string astring="Hallo Welt."; |
|
21968 |
astring.erase(0, 6); // now astring is "Welt" |
|
21969 |
return 0; |
|
21970 |
||
21971 |
; |
|
21972 |
return 0; |
|
21973 |
} |
|
21974 |
_ACEOF |
|
21975 |
rm -f conftest.$ac_objext |
|
21976 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
21977 |
(eval $ac_compile) 2>conftest.er1 |
|
21978 |
ac_status=$? |
|
21979 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
21980 |
rm -f conftest.er1 |
|
21981 |
cat conftest.err >&5 |
|
21982 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21983 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
21984 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
21985 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21986 |
(eval $ac_try) 2>&5 |
|
21987 |
ac_status=$? |
|
21988 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21989 |
(exit $ac_status); }; } && |
|
21990 |
{ ac_try='test -s conftest.$ac_objext' |
|
21991 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
21992 |
(eval $ac_try) 2>&5 |
|
21993 |
ac_status=$? |
|
21994 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21995 |
(exit $ac_status); }; }; then |
|
21996 |
kde_cv_stl_works=yes |
|
21997 |
else |
|
21998 |
echo "$as_me: failed program was:" >&5 |
|
21999 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22000 |
||
22001 |
kde_cv_stl_works=no |
|
22002 |
fi |
|
22003 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
22004 |
||
22005 |
fi |
|
22006 |
||
22007 |
||
22008 |
echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5 |
|
22009 |
echo "${ECHO_T}$kde_cv_stl_works" >&6 |
|
22010 |
||
22011 |
if test "$kde_cv_stl_works" = "yes"; then |
|
22012 |
# back compatible |
|
22013 |
||
22014 |
cat >>confdefs.h <<_ACEOF |
|
22015 |
#define HAVE_SGI_STL 1 |
|
22016 |
_ACEOF |
|
22017 |
||
22018 |
else |
|
22019 |
{ { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs. |
|
22020 |
Check config.log for details - if you're using a Linux distribution you might miss |
|
22021 |
a package named similar to libstdc++-dev." >&5 |
|
22022 |
echo "$as_me: error: Your Installation isn't able to compile simple C++ programs. |
|
22023 |
Check config.log for details - if you're using a Linux distribution you might miss |
|
22024 |
a package named similar to libstdc++-dev." >&2;} |
|
22025 |
{ (exit 1); exit 1; }; } |
|
22026 |
fi |
|
22027 |
||
22028 |
CXXFLAGS="$ac_save_CXXFLAGS" |
|
22029 |
ac_ext=c |
|
22030 |
ac_cpp='$CPP $CPPFLAGS' |
|
22031 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22032 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22033 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
22034 |
||
22035 |
||
22036 |
||
22037 |
||
22038 |
echo "$as_me:$LINENO: checking for strlcat" >&5 |
|
22039 |
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6 |
|
22040 |
if test "${kde_cv_func_strlcat+set}" = set; then |
|
22041 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22042 |
else |
|
22043 |
||
22044 |
||
22045 |
||
22046 |
ac_ext=cc |
|
22047 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
22048 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22049 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22050 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
22051 |
||
22052 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
22053 |
||
22054 |
||
22055 |
save_CXXFLAGS="$CXXFLAGS" |
|
22056 |
kde_safe_LIBS="$LIBS" |
|
22057 |
LIBS="$LIBS $X_EXTRA_LIBS" |
|
22058 |
if test "$GXX" = "yes"; then |
|
22059 |
CXXFLAGS="$CXXFLAGS -pedantic-errors" |
|
22060 |
fi |
|
22061 |
cat >conftest.$ac_ext <<_ACEOF |
|
22062 |
/* confdefs.h. */ |
|
22063 |
_ACEOF |
|
22064 |
cat confdefs.h >>conftest.$ac_ext |
|
22065 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22066 |
/* end confdefs.h. */ |
|
22067 |
||
22068 |
||
22069 |
#include <string.h> |
|
22070 |
||
22071 |
||
22072 |
int |
|
22073 |
main () |
|
22074 |
{ |
|
22075 |
||
22076 |
char buf[20]; |
|
22077 |
buf[0]='\0'; |
|
22078 |
strlcat(buf, "KDE function test", sizeof(buf)); |
|
22079 |
||
22080 |
||
22081 |
; |
|
22082 |
return 0; |
|
22083 |
} |
|
22084 |
_ACEOF |
|
22085 |
rm -f conftest.$ac_objext |
|
22086 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
22087 |
(eval $ac_compile) 2>conftest.er1 |
|
22088 |
ac_status=$? |
|
22089 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22090 |
rm -f conftest.er1 |
|
22091 |
cat conftest.err >&5 |
|
22092 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22093 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22094 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22095 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22096 |
(eval $ac_try) 2>&5 |
|
22097 |
ac_status=$? |
|
22098 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22099 |
(exit $ac_status); }; } && |
|
22100 |
{ ac_try='test -s conftest.$ac_objext' |
|
22101 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22102 |
(eval $ac_try) 2>&5 |
|
22103 |
ac_status=$? |
|
22104 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22105 |
(exit $ac_status); }; }; then |
|
22106 |
kde_cv_func_strlcat=yes |
|
22107 |
else |
|
22108 |
echo "$as_me: failed program was:" >&5 |
|
22109 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22110 |
||
22111 |
kde_cv_func_strlcat=no |
|
22112 |
fi |
|
22113 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
22114 |
CXXFLAGS="$save_CXXFLAGS" |
|
22115 |
LIBS="$kde_safe_LIBS" |
|
22116 |
ac_ext=c |
|
22117 |
ac_cpp='$CPP $CPPFLAGS' |
|
22118 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22119 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22120 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
22121 |
||
22122 |
||
22123 |
fi |
|
22124 |
||
22125 |
||
22126 |
echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5 |
|
22127 |
echo "${ECHO_T}$kde_cv_func_strlcat" >&6 |
|
22128 |
||
22129 |
echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5 |
|
22130 |
echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6 |
|
22131 |
if test "${kde_cv_proto_strlcat+set}" = set; then |
|
22132 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22133 |
else |
|
22134 |
||
22135 |
if test "x$kde_cv_func_strlcat" = xyes; then |
|
22136 |
kde_cv_proto_strlcat=no |
|
22137 |
else |
|
22138 |
case "strlcat" in |
|
22139 |
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat) |
|
22140 |
kde_cv_proto_strlcat="yes - in libkdefakes" |
|
22141 |
;; |
|
22142 |
*) |
|
22143 |
kde_cv_proto_strlcat=unknown |
|
22144 |
;; |
|
22145 |
esac |
|
22146 |
fi |
|
22147 |
||
22148 |
if test "x$kde_cv_proto_strlcat" = xunknown; then |
|
22149 |
||
22150 |
||
22151 |
||
22152 |
ac_ext=cc |
|
22153 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
22154 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22155 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22156 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
22157 |
||
22158 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
22159 |
||
22160 |
||
22161 |
kde_safe_libs=$LIBS |
|
22162 |
LIBS="$LIBS $X_EXTRA_LIBS" |
|
22163 |
cat >conftest.$ac_ext <<_ACEOF |
|
22164 |
/* confdefs.h. */ |
|
22165 |
_ACEOF |
|
22166 |
cat confdefs.h >>conftest.$ac_ext |
|
22167 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22168 |
/* end confdefs.h. */ |
|
22169 |
||
22170 |
||
22171 |
#include <string.h> |
|
22172 |
||
22173 |
||
22174 |
extern "C" unsigned long strlcat(char*, const char*, unsigned long); |
|
22175 |
||
22176 |
int |
|
22177 |
main () |
|
22178 |
{ |
|
22179 |
||
22180 |
char buf[20]; |
|
22181 |
buf[0]='\0'; |
|
22182 |
strlcat(buf, "KDE function test", sizeof(buf)); |
|
22183 |
||
22184 |
||
22185 |
; |
|
22186 |
return 0; |
|
22187 |
} |
|
22188 |
_ACEOF |
|
22189 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
22190 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
22191 |
(eval $ac_link) 2>conftest.er1 |
|
22192 |
ac_status=$? |
|
22193 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22194 |
rm -f conftest.er1 |
|
22195 |
cat conftest.err >&5 |
|
22196 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22197 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22198 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22199 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22200 |
(eval $ac_try) 2>&5 |
|
22201 |
ac_status=$? |
|
22202 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22203 |
(exit $ac_status); }; } && |
|
22204 |
{ ac_try='test -s conftest$ac_exeext' |
|
22205 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22206 |
(eval $ac_try) 2>&5 |
|
22207 |
ac_status=$? |
|
22208 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22209 |
(exit $ac_status); }; }; then |
|
22210 |
kde_cv_func_strlcat=yes |
|
22211 |
kde_cv_proto_strlcat=yes |
|
22212 |
else |
|
22213 |
echo "$as_me: failed program was:" >&5 |
|
22214 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22215 |
||
22216 |
kde_cv_proto_strlcat="strlcat unavailable" |
|
22217 |
||
22218 |
fi |
|
22219 |
rm -f conftest.err conftest.$ac_objext \ |
|
22220 |
conftest$ac_exeext conftest.$ac_ext |
|
22221 |
LIBS=$kde_safe_libs |
|
22222 |
ac_ext=c |
|
22223 |
ac_cpp='$CPP $CPPFLAGS' |
|
22224 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22225 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22226 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
22227 |
||
22228 |
fi |
|
22229 |
||
22230 |
fi |
|
22231 |
||
22232 |
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5 |
|
22233 |
echo "${ECHO_T}$kde_cv_proto_strlcat" >&6 |
|
22234 |
||
22235 |
if test "x$kde_cv_func_strlcat" = xyes; then |
|
22236 |
||
22237 |
cat >>confdefs.h <<\_ACEOF |
|
22238 |
#define HAVE_STRLCAT 1 |
|
22239 |
_ACEOF |
|
22240 |
||
22241 |
||
22242 |
fi |
|
22243 |
if test "x$kde_cv_proto_strlcat" = xno; then |
|
22244 |
||
22245 |
cat >>confdefs.h <<\_ACEOF |
|
22246 |
#define HAVE_STRLCAT_PROTO 1 |
|
22247 |
_ACEOF |
|
22248 |
||
22249 |
fi |
|
22250 |
||
22251 |
||
22252 |
||
22253 |
||
22254 |
||
22255 |
||
22256 |
||
22257 |
echo "$as_me:$LINENO: checking for strlcpy" >&5 |
|
22258 |
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6 |
|
22259 |
if test "${kde_cv_func_strlcpy+set}" = set; then |
|
22260 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22261 |
else |
|
22262 |
||
22263 |
||
22264 |
||
22265 |
ac_ext=cc |
|
22266 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
22267 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22268 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22269 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
22270 |
||
22271 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
22272 |
||
22273 |
||
22274 |
save_CXXFLAGS="$CXXFLAGS" |
|
22275 |
kde_safe_LIBS="$LIBS" |
|
22276 |
LIBS="$LIBS $X_EXTRA_LIBS" |
|
22277 |
if test "$GXX" = "yes"; then |
|
22278 |
CXXFLAGS="$CXXFLAGS -pedantic-errors" |
|
22279 |
fi |
|
22280 |
cat >conftest.$ac_ext <<_ACEOF |
|
22281 |
/* confdefs.h. */ |
|
22282 |
_ACEOF |
|
22283 |
cat confdefs.h >>conftest.$ac_ext |
|
22284 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22285 |
/* end confdefs.h. */ |
|
22286 |
||
22287 |
||
22288 |
#include <string.h> |
|
22289 |
||
22290 |
||
22291 |
int |
|
22292 |
main () |
|
22293 |
{ |
|
22294 |
||
22295 |
char buf[20]; |
|
22296 |
strlcpy(buf, "KDE function test", sizeof(buf)); |
|
22297 |
||
22298 |
||
22299 |
; |
|
22300 |
return 0; |
|
22301 |
} |
|
22302 |
_ACEOF |
|
22303 |
rm -f conftest.$ac_objext |
|
22304 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
22305 |
(eval $ac_compile) 2>conftest.er1 |
|
22306 |
ac_status=$? |
|
22307 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22308 |
rm -f conftest.er1 |
|
22309 |
cat conftest.err >&5 |
|
22310 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22311 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22312 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22313 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22314 |
(eval $ac_try) 2>&5 |
|
22315 |
ac_status=$? |
|
22316 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22317 |
(exit $ac_status); }; } && |
|
22318 |
{ ac_try='test -s conftest.$ac_objext' |
|
22319 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22320 |
(eval $ac_try) 2>&5 |
|
22321 |
ac_status=$? |
|
22322 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22323 |
(exit $ac_status); }; }; then |
|
22324 |
kde_cv_func_strlcpy=yes |
|
22325 |
else |
|
22326 |
echo "$as_me: failed program was:" >&5 |
|
22327 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22328 |
||
22329 |
kde_cv_func_strlcpy=no |
|
22330 |
fi |
|
22331 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
22332 |
CXXFLAGS="$save_CXXFLAGS" |
|
22333 |
LIBS="$kde_safe_LIBS" |
|
22334 |
ac_ext=c |
|
22335 |
ac_cpp='$CPP $CPPFLAGS' |
|
22336 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22337 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22338 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
22339 |
||
22340 |
||
22341 |
fi |
|
22342 |
||
22343 |
||
22344 |
echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5 |
|
22345 |
echo "${ECHO_T}$kde_cv_func_strlcpy" >&6 |
|
22346 |
||
22347 |
echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5 |
|
22348 |
echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6 |
|
22349 |
if test "${kde_cv_proto_strlcpy+set}" = set; then |
|
22350 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22351 |
else |
|
22352 |
||
22353 |
if test "x$kde_cv_func_strlcpy" = xyes; then |
|
22354 |
kde_cv_proto_strlcpy=no |
|
22355 |
else |
|
22356 |
case "strlcpy" in |
|
22357 |
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat) |
|
22358 |
kde_cv_proto_strlcpy="yes - in libkdefakes" |
|
22359 |
;; |
|
22360 |
*) |
|
22361 |
kde_cv_proto_strlcpy=unknown |
|
22362 |
;; |
|
22363 |
esac |
|
22364 |
fi |
|
22365 |
||
22366 |
if test "x$kde_cv_proto_strlcpy" = xunknown; then |
|
22367 |
||
22368 |
||
22369 |
||
22370 |
ac_ext=cc |
|
22371 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
22372 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22373 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22374 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
22375 |
||
22376 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
22377 |
||
22378 |
||
22379 |
kde_safe_libs=$LIBS |
|
22380 |
LIBS="$LIBS $X_EXTRA_LIBS" |
|
22381 |
cat >conftest.$ac_ext <<_ACEOF |
|
22382 |
/* confdefs.h. */ |
|
22383 |
_ACEOF |
|
22384 |
cat confdefs.h >>conftest.$ac_ext |
|
22385 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22386 |
/* end confdefs.h. */ |
|
22387 |
||
22388 |
||
22389 |
#include <string.h> |
|
22390 |
||
22391 |
||
22392 |
extern "C" unsigned long strlcpy(char*, const char*, unsigned long); |
|
22393 |
||
22394 |
int |
|
22395 |
main () |
|
22396 |
{ |
|
22397 |
||
22398 |
char buf[20]; |
|
22399 |
strlcpy(buf, "KDE function test", sizeof(buf)); |
|
22400 |
||
22401 |
||
22402 |
; |
|
22403 |
return 0; |
|
22404 |
} |
|
22405 |
_ACEOF |
|
22406 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
22407 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
22408 |
(eval $ac_link) 2>conftest.er1 |
|
22409 |
ac_status=$? |
|
22410 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22411 |
rm -f conftest.er1 |
|
22412 |
cat conftest.err >&5 |
|
22413 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22414 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22415 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22416 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22417 |
(eval $ac_try) 2>&5 |
|
22418 |
ac_status=$? |
|
22419 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22420 |
(exit $ac_status); }; } && |
|
22421 |
{ ac_try='test -s conftest$ac_exeext' |
|
22422 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22423 |
(eval $ac_try) 2>&5 |
|
22424 |
ac_status=$? |
|
22425 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22426 |
(exit $ac_status); }; }; then |
|
22427 |
kde_cv_func_strlcpy=yes |
|
22428 |
kde_cv_proto_strlcpy=yes |
|
22429 |
else |
|
22430 |
echo "$as_me: failed program was:" >&5 |
|
22431 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22432 |
||
22433 |
kde_cv_proto_strlcpy="strlcpy unavailable" |
|
22434 |
||
22435 |
fi |
|
22436 |
rm -f conftest.err conftest.$ac_objext \ |
|
22437 |
conftest$ac_exeext conftest.$ac_ext |
|
22438 |
LIBS=$kde_safe_libs |
|
22439 |
ac_ext=c |
|
22440 |
ac_cpp='$CPP $CPPFLAGS' |
|
22441 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22442 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22443 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
22444 |
||
22445 |
fi |
|
22446 |
||
22447 |
fi |
|
22448 |
||
22449 |
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5 |
|
22450 |
echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6 |
|
22451 |
||
22452 |
if test "x$kde_cv_func_strlcpy" = xyes; then |
|
22453 |
||
22454 |
cat >>confdefs.h <<\_ACEOF |
|
22455 |
#define HAVE_STRLCPY 1 |
|
22456 |
_ACEOF |
|
22457 |
||
22458 |
||
22459 |
fi |
|
22460 |
if test "x$kde_cv_proto_strlcpy" = xno; then |
|
22461 |
||
22462 |
cat >>confdefs.h <<\_ACEOF |
|
22463 |
#define HAVE_STRLCPY_PROTO 1 |
|
22464 |
_ACEOF |
|
22465 |
||
22466 |
fi |
|
22467 |
||
22468 |
||
22469 |
||
22470 |
||
22471 |
||
22472 |
||
22473 |
echo "$as_me:$LINENO: checking for main in -lutil" >&5 |
|
22474 |
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6 |
|
22475 |
if test "${ac_cv_lib_util_main+set}" = set; then |
|
22476 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22477 |
else |
|
22478 |
ac_check_lib_save_LIBS=$LIBS |
|
22479 |
LIBS="-lutil $LIBS" |
|
22480 |
cat >conftest.$ac_ext <<_ACEOF |
|
22481 |
/* confdefs.h. */ |
|
22482 |
_ACEOF |
|
22483 |
cat confdefs.h >>conftest.$ac_ext |
|
22484 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22485 |
/* end confdefs.h. */ |
|
22486 |
||
22487 |
||
22488 |
int |
|
22489 |
main () |
|
22490 |
{ |
|
22491 |
main (); |
|
22492 |
; |
|
22493 |
return 0; |
|
22494 |
} |
|
22495 |
_ACEOF |
|
22496 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
22497 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
22498 |
(eval $ac_link) 2>conftest.er1 |
|
22499 |
ac_status=$? |
|
22500 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22501 |
rm -f conftest.er1 |
|
22502 |
cat conftest.err >&5 |
|
22503 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22504 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22505 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22506 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22507 |
(eval $ac_try) 2>&5 |
|
22508 |
ac_status=$? |
|
22509 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22510 |
(exit $ac_status); }; } && |
|
22511 |
{ ac_try='test -s conftest$ac_exeext' |
|
22512 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22513 |
(eval $ac_try) 2>&5 |
|
22514 |
ac_status=$? |
|
22515 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22516 |
(exit $ac_status); }; }; then |
|
22517 |
ac_cv_lib_util_main=yes |
|
22518 |
else |
|
22519 |
echo "$as_me: failed program was:" >&5 |
|
22520 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22521 |
||
22522 |
ac_cv_lib_util_main=no |
|
22523 |
fi |
|
22524 |
rm -f conftest.err conftest.$ac_objext \ |
|
22525 |
conftest$ac_exeext conftest.$ac_ext |
|
22526 |
LIBS=$ac_check_lib_save_LIBS |
|
22527 |
fi |
|
22528 |
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5 |
|
22529 |
echo "${ECHO_T}$ac_cv_lib_util_main" >&6 |
|
22530 |
if test $ac_cv_lib_util_main = yes; then |
|
22531 |
LIBUTIL="-lutil" |
|
22532 |
fi |
|
22533 |
||
22534 |
echo "$as_me:$LINENO: checking for main in -lcompat" >&5 |
|
22535 |
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6 |
|
22536 |
if test "${ac_cv_lib_compat_main+set}" = set; then |
|
22537 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22538 |
else |
|
22539 |
ac_check_lib_save_LIBS=$LIBS |
|
22540 |
LIBS="-lcompat $LIBS" |
|
22541 |
cat >conftest.$ac_ext <<_ACEOF |
|
22542 |
/* confdefs.h. */ |
|
22543 |
_ACEOF |
|
22544 |
cat confdefs.h >>conftest.$ac_ext |
|
22545 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22546 |
/* end confdefs.h. */ |
|
22547 |
||
22548 |
||
22549 |
int |
|
22550 |
main () |
|
22551 |
{ |
|
22552 |
main (); |
|
22553 |
; |
|
22554 |
return 0; |
|
22555 |
} |
|
22556 |
_ACEOF |
|
22557 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
22558 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
22559 |
(eval $ac_link) 2>conftest.er1 |
|
22560 |
ac_status=$? |
|
22561 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22562 |
rm -f conftest.er1 |
|
22563 |
cat conftest.err >&5 |
|
22564 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22565 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22566 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22567 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22568 |
(eval $ac_try) 2>&5 |
|
22569 |
ac_status=$? |
|
22570 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22571 |
(exit $ac_status); }; } && |
|
22572 |
{ ac_try='test -s conftest$ac_exeext' |
|
22573 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22574 |
(eval $ac_try) 2>&5 |
|
22575 |
ac_status=$? |
|
22576 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22577 |
(exit $ac_status); }; }; then |
|
22578 |
ac_cv_lib_compat_main=yes |
|
22579 |
else |
|
22580 |
echo "$as_me: failed program was:" >&5 |
|
22581 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22582 |
||
22583 |
ac_cv_lib_compat_main=no |
|
22584 |
fi |
|
22585 |
rm -f conftest.err conftest.$ac_objext \ |
|
22586 |
conftest$ac_exeext conftest.$ac_ext |
|
22587 |
LIBS=$ac_check_lib_save_LIBS |
|
22588 |
fi |
|
22589 |
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5 |
|
22590 |
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6 |
|
22591 |
if test $ac_cv_lib_compat_main = yes; then |
|
22592 |
LIBCOMPAT="-lcompat" |
|
22593 |
fi |
|
22594 |
||
22595 |
kde_have_crypt= |
|
22596 |
echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
|
22597 |
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 |
|
22598 |
if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
|
22599 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22600 |
else |
|
22601 |
ac_check_lib_save_LIBS=$LIBS |
|
22602 |
LIBS="-lcrypt $LIBS" |
|
22603 |
cat >conftest.$ac_ext <<_ACEOF |
|
22604 |
/* confdefs.h. */ |
|
22605 |
_ACEOF |
|
22606 |
cat confdefs.h >>conftest.$ac_ext |
|
22607 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22608 |
/* end confdefs.h. */ |
|
22609 |
||
22610 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
22611 |
#ifdef __cplusplus |
|
22612 |
extern "C" |
|
22613 |
#endif |
|
22614 |
/* We use char because int might match the return type of a gcc2 |
|
22615 |
builtin and then its argument prototype would still apply. */ |
|
22616 |
char crypt (); |
|
22617 |
int |
|
22618 |
main () |
|
22619 |
{ |
|
22620 |
crypt (); |
|
22621 |
; |
|
22622 |
return 0; |
|
22623 |
} |
|
22624 |
_ACEOF |
|
22625 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
22626 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
22627 |
(eval $ac_link) 2>conftest.er1 |
|
22628 |
ac_status=$? |
|
22629 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22630 |
rm -f conftest.er1 |
|
22631 |
cat conftest.err >&5 |
|
22632 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22633 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22634 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22635 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22636 |
(eval $ac_try) 2>&5 |
|
22637 |
ac_status=$? |
|
22638 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22639 |
(exit $ac_status); }; } && |
|
22640 |
{ ac_try='test -s conftest$ac_exeext' |
|
22641 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22642 |
(eval $ac_try) 2>&5 |
|
22643 |
ac_status=$? |
|
22644 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22645 |
(exit $ac_status); }; }; then |
|
22646 |
ac_cv_lib_crypt_crypt=yes |
|
22647 |
else |
|
22648 |
echo "$as_me: failed program was:" >&5 |
|
22649 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22650 |
||
22651 |
ac_cv_lib_crypt_crypt=no |
|
22652 |
fi |
|
22653 |
rm -f conftest.err conftest.$ac_objext \ |
|
22654 |
conftest$ac_exeext conftest.$ac_ext |
|
22655 |
LIBS=$ac_check_lib_save_LIBS |
|
22656 |
fi |
|
22657 |
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 |
|
22658 |
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 |
|
22659 |
if test $ac_cv_lib_crypt_crypt = yes; then |
|
22660 |
LIBCRYPT="-lcrypt"; kde_have_crypt=yes |
|
22661 |
else |
|
22662 |
echo "$as_me:$LINENO: checking for crypt in -lc" >&5 |
|
22663 |
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6 |
|
22664 |
if test "${ac_cv_lib_c_crypt+set}" = set; then |
|
22665 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22666 |
else |
|
22667 |
ac_check_lib_save_LIBS=$LIBS |
|
22668 |
LIBS="-lc $LIBS" |
|
22669 |
cat >conftest.$ac_ext <<_ACEOF |
|
22670 |
/* confdefs.h. */ |
|
22671 |
_ACEOF |
|
22672 |
cat confdefs.h >>conftest.$ac_ext |
|
22673 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22674 |
/* end confdefs.h. */ |
|
22675 |
||
22676 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
22677 |
#ifdef __cplusplus |
|
22678 |
extern "C" |
|
22679 |
#endif |
|
22680 |
/* We use char because int might match the return type of a gcc2 |
|
22681 |
builtin and then its argument prototype would still apply. */ |
|
22682 |
char crypt (); |
|
22683 |
int |
|
22684 |
main () |
|
22685 |
{ |
|
22686 |
crypt (); |
|
22687 |
; |
|
22688 |
return 0; |
|
22689 |
} |
|
22690 |
_ACEOF |
|
22691 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
22692 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
22693 |
(eval $ac_link) 2>conftest.er1 |
|
22694 |
ac_status=$? |
|
22695 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22696 |
rm -f conftest.er1 |
|
22697 |
cat conftest.err >&5 |
|
22698 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22699 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22700 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22701 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22702 |
(eval $ac_try) 2>&5 |
|
22703 |
ac_status=$? |
|
22704 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22705 |
(exit $ac_status); }; } && |
|
22706 |
{ ac_try='test -s conftest$ac_exeext' |
|
22707 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22708 |
(eval $ac_try) 2>&5 |
|
22709 |
ac_status=$? |
|
22710 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22711 |
(exit $ac_status); }; }; then |
|
22712 |
ac_cv_lib_c_crypt=yes |
|
22713 |
else |
|
22714 |
echo "$as_me: failed program was:" >&5 |
|
22715 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22716 |
||
22717 |
ac_cv_lib_c_crypt=no |
|
22718 |
fi |
|
22719 |
rm -f conftest.err conftest.$ac_objext \ |
|
22720 |
conftest$ac_exeext conftest.$ac_ext |
|
22721 |
LIBS=$ac_check_lib_save_LIBS |
|
22722 |
fi |
|
22723 |
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5 |
|
22724 |
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6 |
|
22725 |
if test $ac_cv_lib_c_crypt = yes; then |
|
22726 |
kde_have_crypt=yes |
|
22727 |
else |
|
22728 |
||
22729 |
{ echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc. |
|
22730 |
You should install libcrypt from another source or configure with PAM |
|
22731 |
support" >&5 |
|
22732 |
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc. |
|
22733 |
You should install libcrypt from another source or configure with PAM |
|
22734 |
support" >&2;} |
|
22735 |
kde_have_crypt=no |
|
22736 |
||
22737 |
fi |
|
22738 |
||
22739 |
fi |
|
22740 |
||
22741 |
||
22742 |
if test $kde_have_crypt = yes; then |
|
22743 |
||
22744 |
cat >>confdefs.h <<_ACEOF |
|
22745 |
#define HAVE_CRYPT 1 |
|
22746 |
_ACEOF |
|
22747 |
||
22748 |
fi |
|
22749 |
||
22750 |
echo "$as_me:$LINENO: checking for socklen_t" >&5 |
|
22751 |
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
|
22752 |
if test "${kde_cv_socklen_t+set}" = set; then |
|
22753 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22754 |
else |
|
22755 |
||
22756 |
ac_ext=cc |
|
22757 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
22758 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22759 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22760 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
22761 |
||
22762 |
kde_cv_socklen_t=no |
|
22763 |
cat >conftest.$ac_ext <<_ACEOF |
|
22764 |
/* confdefs.h. */ |
|
22765 |
_ACEOF |
|
22766 |
cat confdefs.h >>conftest.$ac_ext |
|
22767 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22768 |
/* end confdefs.h. */ |
|
22769 |
||
22770 |
#include <sys/types.h> |
|
22771 |
#include <sys/socket.h> |
|
22772 |
||
22773 |
int |
|
22774 |
main () |
|
22775 |
{ |
|
22776 |
||
22777 |
socklen_t len; |
|
22778 |
getpeername(0,0,&len); |
|
22779 |
||
22780 |
; |
|
22781 |
return 0; |
|
22782 |
} |
|
22783 |
_ACEOF |
|
22784 |
rm -f conftest.$ac_objext |
|
22785 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
22786 |
(eval $ac_compile) 2>conftest.er1 |
|
22787 |
ac_status=$? |
|
22788 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22789 |
rm -f conftest.er1 |
|
22790 |
cat conftest.err >&5 |
|
22791 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22792 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22793 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22794 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22795 |
(eval $ac_try) 2>&5 |
|
22796 |
ac_status=$? |
|
22797 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22798 |
(exit $ac_status); }; } && |
|
22799 |
{ ac_try='test -s conftest.$ac_objext' |
|
22800 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22801 |
(eval $ac_try) 2>&5 |
|
22802 |
ac_status=$? |
|
22803 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22804 |
(exit $ac_status); }; }; then |
|
22805 |
||
22806 |
kde_cv_socklen_t=yes |
|
22807 |
kde_cv_socklen_t_equiv=socklen_t |
|
22808 |
||
22809 |
else |
|
22810 |
echo "$as_me: failed program was:" >&5 |
|
22811 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22812 |
||
22813 |
fi |
|
22814 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
22815 |
ac_ext=c |
|
22816 |
ac_cpp='$CPP $CPPFLAGS' |
|
22817 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22818 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22819 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
22820 |
||
22821 |
||
22822 |
fi |
|
22823 |
||
22824 |
echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5 |
|
22825 |
echo "${ECHO_T}$kde_cv_socklen_t" >&6 |
|
22826 |
if test $kde_cv_socklen_t = no; then |
|
22827 |
echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5 |
|
22828 |
echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6 |
|
22829 |
if test "${kde_cv_socklen_t_equiv+set}" = set; then |
|
22830 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22831 |
else |
|
22832 |
||
22833 |
kde_cv_socklen_t_equiv=int |
|
22834 |
ac_ext=cc |
|
22835 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
22836 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22837 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22838 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
22839 |
||
22840 |
for t in int size_t unsigned long "unsigned long"; do |
|
22841 |
cat >conftest.$ac_ext <<_ACEOF |
|
22842 |
/* confdefs.h. */ |
|
22843 |
_ACEOF |
|
22844 |
cat confdefs.h >>conftest.$ac_ext |
|
22845 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22846 |
/* end confdefs.h. */ |
|
22847 |
||
22848 |
#include <sys/types.h> |
|
22849 |
#include <sys/socket.h> |
|
22850 |
||
22851 |
int |
|
22852 |
main () |
|
22853 |
{ |
|
22854 |
||
22855 |
$t len; |
|
22856 |
getpeername(0,0,&len); |
|
22857 |
||
22858 |
; |
|
22859 |
return 0; |
|
22860 |
} |
|
22861 |
_ACEOF |
|
22862 |
rm -f conftest.$ac_objext |
|
22863 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
22864 |
(eval $ac_compile) 2>conftest.er1 |
|
22865 |
ac_status=$? |
|
22866 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22867 |
rm -f conftest.er1 |
|
22868 |
cat conftest.err >&5 |
|
22869 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22870 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22871 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22872 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22873 |
(eval $ac_try) 2>&5 |
|
22874 |
ac_status=$? |
|
22875 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22876 |
(exit $ac_status); }; } && |
|
22877 |
{ ac_try='test -s conftest.$ac_objext' |
|
22878 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22879 |
(eval $ac_try) 2>&5 |
|
22880 |
ac_status=$? |
|
22881 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22882 |
(exit $ac_status); }; }; then |
|
22883 |
||
22884 |
kde_cv_socklen_t_equiv="$t" |
|
22885 |
break |
|
22886 |
||
22887 |
else |
|
22888 |
echo "$as_me: failed program was:" >&5 |
|
22889 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22890 |
||
22891 |
fi |
|
22892 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
22893 |
done |
|
22894 |
ac_ext=c |
|
22895 |
ac_cpp='$CPP $CPPFLAGS' |
|
22896 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
22897 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
22898 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
22899 |
||
22900 |
||
22901 |
fi |
|
22902 |
||
22903 |
echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5 |
|
22904 |
echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6 |
|
22905 |
fi |
|
22906 |
||
22907 |
cat >>confdefs.h <<_ACEOF |
|
22908 |
#define kde_socklen_t $kde_cv_socklen_t_equiv |
|
22909 |
_ACEOF |
|
22910 |
||
22911 |
||
22912 |
cat >>confdefs.h <<_ACEOF |
|
22913 |
#define ksize_t $kde_cv_socklen_t_equiv |
|
22914 |
_ACEOF |
|
22915 |
||
22916 |
||
22917 |
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
|
22918 |
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
|
22919 |
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
|
22920 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22921 |
else |
|
22922 |
ac_check_lib_save_LIBS=$LIBS |
|
22923 |
LIBS="-ldnet $LIBS" |
|
22924 |
cat >conftest.$ac_ext <<_ACEOF |
|
22925 |
/* confdefs.h. */ |
|
22926 |
_ACEOF |
|
22927 |
cat confdefs.h >>conftest.$ac_ext |
|
22928 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22929 |
/* end confdefs.h. */ |
|
22930 |
||
22931 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
22932 |
#ifdef __cplusplus |
|
22933 |
extern "C" |
|
22934 |
#endif |
|
22935 |
/* We use char because int might match the return type of a gcc2 |
|
22936 |
builtin and then its argument prototype would still apply. */ |
|
22937 |
char dnet_ntoa (); |
|
22938 |
int |
|
22939 |
main () |
|
22940 |
{ |
|
22941 |
dnet_ntoa (); |
|
22942 |
; |
|
22943 |
return 0; |
|
22944 |
} |
|
22945 |
_ACEOF |
|
22946 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
22947 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
22948 |
(eval $ac_link) 2>conftest.er1 |
|
22949 |
ac_status=$? |
|
22950 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
22951 |
rm -f conftest.er1 |
|
22952 |
cat conftest.err >&5 |
|
22953 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22954 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
22955 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
22956 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22957 |
(eval $ac_try) 2>&5 |
|
22958 |
ac_status=$? |
|
22959 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22960 |
(exit $ac_status); }; } && |
|
22961 |
{ ac_try='test -s conftest$ac_exeext' |
|
22962 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
22963 |
(eval $ac_try) 2>&5 |
|
22964 |
ac_status=$? |
|
22965 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22966 |
(exit $ac_status); }; }; then |
|
22967 |
ac_cv_lib_dnet_dnet_ntoa=yes |
|
22968 |
else |
|
22969 |
echo "$as_me: failed program was:" >&5 |
|
22970 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22971 |
||
22972 |
ac_cv_lib_dnet_dnet_ntoa=no |
|
22973 |
fi |
|
22974 |
rm -f conftest.err conftest.$ac_objext \ |
|
22975 |
conftest$ac_exeext conftest.$ac_ext |
|
22976 |
LIBS=$ac_check_lib_save_LIBS |
|
22977 |
fi |
|
22978 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
|
22979 |
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
|
22980 |
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
|
22981 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
|
22982 |
fi |
|
22983 |
||
22984 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
|
22985 |
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
|
22986 |
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
|
22987 |
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
|
22988 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22989 |
else |
|
22990 |
ac_check_lib_save_LIBS=$LIBS |
|
22991 |
LIBS="-ldnet_stub $LIBS" |
|
22992 |
cat >conftest.$ac_ext <<_ACEOF |
|
22993 |
/* confdefs.h. */ |
|
22994 |
_ACEOF |
|
22995 |
cat confdefs.h >>conftest.$ac_ext |
|
22996 |
cat >>conftest.$ac_ext <<_ACEOF |
|
22997 |
/* end confdefs.h. */ |
|
22998 |
||
22999 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
23000 |
#ifdef __cplusplus |
|
23001 |
extern "C" |
|
23002 |
#endif |
|
23003 |
/* We use char because int might match the return type of a gcc2 |
|
23004 |
builtin and then its argument prototype would still apply. */ |
|
23005 |
char dnet_ntoa (); |
|
23006 |
int |
|
23007 |
main () |
|
23008 |
{ |
|
23009 |
dnet_ntoa (); |
|
23010 |
; |
|
23011 |
return 0; |
|
23012 |
} |
|
23013 |
_ACEOF |
|
23014 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
23015 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
23016 |
(eval $ac_link) 2>conftest.er1 |
|
23017 |
ac_status=$? |
|
23018 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23019 |
rm -f conftest.er1 |
|
23020 |
cat conftest.err >&5 |
|
23021 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23022 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23023 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23024 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23025 |
(eval $ac_try) 2>&5 |
|
23026 |
ac_status=$? |
|
23027 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23028 |
(exit $ac_status); }; } && |
|
23029 |
{ ac_try='test -s conftest$ac_exeext' |
|
23030 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23031 |
(eval $ac_try) 2>&5 |
|
23032 |
ac_status=$? |
|
23033 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23034 |
(exit $ac_status); }; }; then |
|
23035 |
ac_cv_lib_dnet_stub_dnet_ntoa=yes |
|
23036 |
else |
|
23037 |
echo "$as_me: failed program was:" >&5 |
|
23038 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23039 |
||
23040 |
ac_cv_lib_dnet_stub_dnet_ntoa=no |
|
23041 |
fi |
|
23042 |
rm -f conftest.err conftest.$ac_objext \ |
|
23043 |
conftest$ac_exeext conftest.$ac_ext |
|
23044 |
LIBS=$ac_check_lib_save_LIBS |
|
23045 |
fi |
|
23046 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
|
23047 |
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
|
23048 |
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
|
23049 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
|
23050 |
fi |
|
23051 |
||
23052 |
fi |
|
23053 |
echo "$as_me:$LINENO: checking for inet_ntoa" >&5 |
|
23054 |
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6 |
|
23055 |
if test "${ac_cv_func_inet_ntoa+set}" = set; then |
|
23056 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23057 |
else |
|
23058 |
cat >conftest.$ac_ext <<_ACEOF |
|
23059 |
/* confdefs.h. */ |
|
23060 |
_ACEOF |
|
23061 |
cat confdefs.h >>conftest.$ac_ext |
|
23062 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23063 |
/* end confdefs.h. */ |
|
23064 |
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa. |
|
23065 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
23066 |
#define inet_ntoa innocuous_inet_ntoa |
|
23067 |
||
23068 |
/* System header to define __stub macros and hopefully few prototypes, |
|
23069 |
which can conflict with char inet_ntoa (); below. |
|
23070 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
23071 |
<limits.h> exists even on freestanding compilers. */ |
|
23072 |
||
23073 |
#ifdef __STDC__ |
|
23074 |
# include <limits.h> |
|
23075 |
#else |
|
23076 |
# include <assert.h> |
|
23077 |
#endif |
|
23078 |
||
23079 |
#undef inet_ntoa |
|
23080 |
||
23081 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
23082 |
#ifdef __cplusplus |
|
23083 |
extern "C" |
|
23084 |
{ |
|
23085 |
#endif |
|
23086 |
/* We use char because int might match the return type of a gcc2 |
|
23087 |
builtin and then its argument prototype would still apply. */ |
|
23088 |
char inet_ntoa (); |
|
23089 |
/* The GNU C library defines this for functions which it implements |
|
23090 |
to always fail with ENOSYS. Some functions are actually named |
|
23091 |
something starting with __ and the normal name is an alias. */ |
|
23092 |
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa) |
|
23093 |
choke me |
|
23094 |
#else |
|
23095 |
char (*f) () = inet_ntoa; |
|
23096 |
#endif |
|
23097 |
#ifdef __cplusplus |
|
23098 |
} |
|
23099 |
#endif |
|
23100 |
||
23101 |
int |
|
23102 |
main () |
|
23103 |
{ |
|
23104 |
return f != inet_ntoa; |
|
23105 |
; |
|
23106 |
return 0; |
|
23107 |
} |
|
23108 |
_ACEOF |
|
23109 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
23110 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
23111 |
(eval $ac_link) 2>conftest.er1 |
|
23112 |
ac_status=$? |
|
23113 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23114 |
rm -f conftest.er1 |
|
23115 |
cat conftest.err >&5 |
|
23116 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23117 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23118 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23119 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23120 |
(eval $ac_try) 2>&5 |
|
23121 |
ac_status=$? |
|
23122 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23123 |
(exit $ac_status); }; } && |
|
23124 |
{ ac_try='test -s conftest$ac_exeext' |
|
23125 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23126 |
(eval $ac_try) 2>&5 |
|
23127 |
ac_status=$? |
|
23128 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23129 |
(exit $ac_status); }; }; then |
|
23130 |
ac_cv_func_inet_ntoa=yes |
|
23131 |
else |
|
23132 |
echo "$as_me: failed program was:" >&5 |
|
23133 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23134 |
||
23135 |
ac_cv_func_inet_ntoa=no |
|
23136 |
fi |
|
23137 |
rm -f conftest.err conftest.$ac_objext \ |
|
23138 |
conftest$ac_exeext conftest.$ac_ext |
|
23139 |
fi |
|
23140 |
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5 |
|
23141 |
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6 |
|
23142 |
||
23143 |
if test $ac_cv_func_inet_ntoa = no; then |
|
23144 |
echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 |
|
23145 |
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6 |
|
23146 |
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then |
|
23147 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23148 |
else |
|
23149 |
ac_check_lib_save_LIBS=$LIBS |
|
23150 |
LIBS="-lnsl $LIBS" |
|
23151 |
cat >conftest.$ac_ext <<_ACEOF |
|
23152 |
/* confdefs.h. */ |
|
23153 |
_ACEOF |
|
23154 |
cat confdefs.h >>conftest.$ac_ext |
|
23155 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23156 |
/* end confdefs.h. */ |
|
23157 |
||
23158 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
23159 |
#ifdef __cplusplus |
|
23160 |
extern "C" |
|
23161 |
#endif |
|
23162 |
/* We use char because int might match the return type of a gcc2 |
|
23163 |
builtin and then its argument prototype would still apply. */ |
|
23164 |
char inet_ntoa (); |
|
23165 |
int |
|
23166 |
main () |
|
23167 |
{ |
|
23168 |
inet_ntoa (); |
|
23169 |
; |
|
23170 |
return 0; |
|
23171 |
} |
|
23172 |
_ACEOF |
|
23173 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
23174 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
23175 |
(eval $ac_link) 2>conftest.er1 |
|
23176 |
ac_status=$? |
|
23177 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23178 |
rm -f conftest.er1 |
|
23179 |
cat conftest.err >&5 |
|
23180 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23181 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23182 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23183 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23184 |
(eval $ac_try) 2>&5 |
|
23185 |
ac_status=$? |
|
23186 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23187 |
(exit $ac_status); }; } && |
|
23188 |
{ ac_try='test -s conftest$ac_exeext' |
|
23189 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23190 |
(eval $ac_try) 2>&5 |
|
23191 |
ac_status=$? |
|
23192 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23193 |
(exit $ac_status); }; }; then |
|
23194 |
ac_cv_lib_nsl_inet_ntoa=yes |
|
23195 |
else |
|
23196 |
echo "$as_me: failed program was:" >&5 |
|
23197 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23198 |
||
23199 |
ac_cv_lib_nsl_inet_ntoa=no |
|
23200 |
fi |
|
23201 |
rm -f conftest.err conftest.$ac_objext \ |
|
23202 |
conftest$ac_exeext conftest.$ac_ext |
|
23203 |
LIBS=$ac_check_lib_save_LIBS |
|
23204 |
fi |
|
23205 |
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 |
|
23206 |
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6 |
|
23207 |
if test $ac_cv_lib_nsl_inet_ntoa = yes; then |
|
23208 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
|
23209 |
fi |
|
23210 |
||
23211 |
fi |
|
23212 |
echo "$as_me:$LINENO: checking for connect" >&5 |
|
23213 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
|
23214 |
if test "${ac_cv_func_connect+set}" = set; then |
|
23215 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23216 |
else |
|
23217 |
cat >conftest.$ac_ext <<_ACEOF |
|
23218 |
/* confdefs.h. */ |
|
23219 |
_ACEOF |
|
23220 |
cat confdefs.h >>conftest.$ac_ext |
|
23221 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23222 |
/* end confdefs.h. */ |
|
23223 |
/* Define connect to an innocuous variant, in case <limits.h> declares connect. |
|
23224 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
23225 |
#define connect innocuous_connect |
|
23226 |
||
23227 |
/* System header to define __stub macros and hopefully few prototypes, |
|
23228 |
which can conflict with char connect (); below. |
|
23229 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
23230 |
<limits.h> exists even on freestanding compilers. */ |
|
23231 |
||
23232 |
#ifdef __STDC__ |
|
23233 |
# include <limits.h> |
|
23234 |
#else |
|
23235 |
# include <assert.h> |
|
23236 |
#endif |
|
23237 |
||
23238 |
#undef connect |
|
23239 |
||
23240 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
23241 |
#ifdef __cplusplus |
|
23242 |
extern "C" |
|
23243 |
{ |
|
23244 |
#endif |
|
23245 |
/* We use char because int might match the return type of a gcc2 |
|
23246 |
builtin and then its argument prototype would still apply. */ |
|
23247 |
char connect (); |
|
23248 |
/* The GNU C library defines this for functions which it implements |
|
23249 |
to always fail with ENOSYS. Some functions are actually named |
|
23250 |
something starting with __ and the normal name is an alias. */ |
|
23251 |
#if defined (__stub_connect) || defined (__stub___connect) |
|
23252 |
choke me |
|
23253 |
#else |
|
23254 |
char (*f) () = connect; |
|
23255 |
#endif |
|
23256 |
#ifdef __cplusplus |
|
23257 |
} |
|
23258 |
#endif |
|
23259 |
||
23260 |
int |
|
23261 |
main () |
|
23262 |
{ |
|
23263 |
return f != connect; |
|
23264 |
; |
|
23265 |
return 0; |
|
23266 |
} |
|
23267 |
_ACEOF |
|
23268 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
23269 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
23270 |
(eval $ac_link) 2>conftest.er1 |
|
23271 |
ac_status=$? |
|
23272 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23273 |
rm -f conftest.er1 |
|
23274 |
cat conftest.err >&5 |
|
23275 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23276 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23277 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23278 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23279 |
(eval $ac_try) 2>&5 |
|
23280 |
ac_status=$? |
|
23281 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23282 |
(exit $ac_status); }; } && |
|
23283 |
{ ac_try='test -s conftest$ac_exeext' |
|
23284 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23285 |
(eval $ac_try) 2>&5 |
|
23286 |
ac_status=$? |
|
23287 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23288 |
(exit $ac_status); }; }; then |
|
23289 |
ac_cv_func_connect=yes |
|
23290 |
else |
|
23291 |
echo "$as_me: failed program was:" >&5 |
|
23292 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23293 |
||
23294 |
ac_cv_func_connect=no |
|
23295 |
fi |
|
23296 |
rm -f conftest.err conftest.$ac_objext \ |
|
23297 |
conftest$ac_exeext conftest.$ac_ext |
|
23298 |
fi |
|
23299 |
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
|
23300 |
echo "${ECHO_T}$ac_cv_func_connect" >&6 |
|
23301 |
||
23302 |
if test $ac_cv_func_connect = no; then |
|
23303 |
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
|
23304 |
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
|
23305 |
if test "${ac_cv_lib_socket_connect+set}" = set; then |
|
23306 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23307 |
else |
|
23308 |
ac_check_lib_save_LIBS=$LIBS |
|
23309 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
|
23310 |
cat >conftest.$ac_ext <<_ACEOF |
|
23311 |
/* confdefs.h. */ |
|
23312 |
_ACEOF |
|
23313 |
cat confdefs.h >>conftest.$ac_ext |
|
23314 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23315 |
/* end confdefs.h. */ |
|
23316 |
||
23317 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
23318 |
#ifdef __cplusplus |
|
23319 |
extern "C" |
|
23320 |
#endif |
|
23321 |
/* We use char because int might match the return type of a gcc2 |
|
23322 |
builtin and then its argument prototype would still apply. */ |
|
23323 |
char connect (); |
|
23324 |
int |
|
23325 |
main () |
|
23326 |
{ |
|
23327 |
connect (); |
|
23328 |
; |
|
23329 |
return 0; |
|
23330 |
} |
|
23331 |
_ACEOF |
|
23332 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
23333 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
23334 |
(eval $ac_link) 2>conftest.er1 |
|
23335 |
ac_status=$? |
|
23336 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23337 |
rm -f conftest.er1 |
|
23338 |
cat conftest.err >&5 |
|
23339 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23340 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23341 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23342 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23343 |
(eval $ac_try) 2>&5 |
|
23344 |
ac_status=$? |
|
23345 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23346 |
(exit $ac_status); }; } && |
|
23347 |
{ ac_try='test -s conftest$ac_exeext' |
|
23348 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23349 |
(eval $ac_try) 2>&5 |
|
23350 |
ac_status=$? |
|
23351 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23352 |
(exit $ac_status); }; }; then |
|
23353 |
ac_cv_lib_socket_connect=yes |
|
23354 |
else |
|
23355 |
echo "$as_me: failed program was:" >&5 |
|
23356 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23357 |
||
23358 |
ac_cv_lib_socket_connect=no |
|
23359 |
fi |
|
23360 |
rm -f conftest.err conftest.$ac_objext \ |
|
23361 |
conftest$ac_exeext conftest.$ac_ext |
|
23362 |
LIBS=$ac_check_lib_save_LIBS |
|
23363 |
fi |
|
23364 |
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
|
23365 |
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
|
23366 |
if test $ac_cv_lib_socket_connect = yes; then |
|
23367 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
|
23368 |
fi |
|
23369 |
||
23370 |
fi |
|
23371 |
||
23372 |
echo "$as_me:$LINENO: checking for remove" >&5 |
|
23373 |
echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
|
23374 |
if test "${ac_cv_func_remove+set}" = set; then |
|
23375 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23376 |
else |
|
23377 |
cat >conftest.$ac_ext <<_ACEOF |
|
23378 |
/* confdefs.h. */ |
|
23379 |
_ACEOF |
|
23380 |
cat confdefs.h >>conftest.$ac_ext |
|
23381 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23382 |
/* end confdefs.h. */ |
|
23383 |
/* Define remove to an innocuous variant, in case <limits.h> declares remove. |
|
23384 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
23385 |
#define remove innocuous_remove |
|
23386 |
||
23387 |
/* System header to define __stub macros and hopefully few prototypes, |
|
23388 |
which can conflict with char remove (); below. |
|
23389 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
23390 |
<limits.h> exists even on freestanding compilers. */ |
|
23391 |
||
23392 |
#ifdef __STDC__ |
|
23393 |
# include <limits.h> |
|
23394 |
#else |
|
23395 |
# include <assert.h> |
|
23396 |
#endif |
|
23397 |
||
23398 |
#undef remove |
|
23399 |
||
23400 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
23401 |
#ifdef __cplusplus |
|
23402 |
extern "C" |
|
23403 |
{ |
|
23404 |
#endif |
|
23405 |
/* We use char because int might match the return type of a gcc2 |
|
23406 |
builtin and then its argument prototype would still apply. */ |
|
23407 |
char remove (); |
|
23408 |
/* The GNU C library defines this for functions which it implements |
|
23409 |
to always fail with ENOSYS. Some functions are actually named |
|
23410 |
something starting with __ and the normal name is an alias. */ |
|
23411 |
#if defined (__stub_remove) || defined (__stub___remove) |
|
23412 |
choke me |
|
23413 |
#else |
|
23414 |
char (*f) () = remove; |
|
23415 |
#endif |
|
23416 |
#ifdef __cplusplus |
|
23417 |
} |
|
23418 |
#endif |
|
23419 |
||
23420 |
int |
|
23421 |
main () |
|
23422 |
{ |
|
23423 |
return f != remove; |
|
23424 |
; |
|
23425 |
return 0; |
|
23426 |
} |
|
23427 |
_ACEOF |
|
23428 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
23429 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
23430 |
(eval $ac_link) 2>conftest.er1 |
|
23431 |
ac_status=$? |
|
23432 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23433 |
rm -f conftest.er1 |
|
23434 |
cat conftest.err >&5 |
|
23435 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23436 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23437 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23438 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23439 |
(eval $ac_try) 2>&5 |
|
23440 |
ac_status=$? |
|
23441 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23442 |
(exit $ac_status); }; } && |
|
23443 |
{ ac_try='test -s conftest$ac_exeext' |
|
23444 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23445 |
(eval $ac_try) 2>&5 |
|
23446 |
ac_status=$? |
|
23447 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23448 |
(exit $ac_status); }; }; then |
|
23449 |
ac_cv_func_remove=yes |
|
23450 |
else |
|
23451 |
echo "$as_me: failed program was:" >&5 |
|
23452 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23453 |
||
23454 |
ac_cv_func_remove=no |
|
23455 |
fi |
|
23456 |
rm -f conftest.err conftest.$ac_objext \ |
|
23457 |
conftest$ac_exeext conftest.$ac_ext |
|
23458 |
fi |
|
23459 |
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
|
23460 |
echo "${ECHO_T}$ac_cv_func_remove" >&6 |
|
23461 |
||
23462 |
if test $ac_cv_func_remove = no; then |
|
23463 |
echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
|
23464 |
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
|
23465 |
if test "${ac_cv_lib_posix_remove+set}" = set; then |
|
23466 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23467 |
else |
|
23468 |
ac_check_lib_save_LIBS=$LIBS |
|
23469 |
LIBS="-lposix $LIBS" |
|
23470 |
cat >conftest.$ac_ext <<_ACEOF |
|
23471 |
/* confdefs.h. */ |
|
23472 |
_ACEOF |
|
23473 |
cat confdefs.h >>conftest.$ac_ext |
|
23474 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23475 |
/* end confdefs.h. */ |
|
23476 |
||
23477 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
23478 |
#ifdef __cplusplus |
|
23479 |
extern "C" |
|
23480 |
#endif |
|
23481 |
/* We use char because int might match the return type of a gcc2 |
|
23482 |
builtin and then its argument prototype would still apply. */ |
|
23483 |
char remove (); |
|
23484 |
int |
|
23485 |
main () |
|
23486 |
{ |
|
23487 |
remove (); |
|
23488 |
; |
|
23489 |
return 0; |
|
23490 |
} |
|
23491 |
_ACEOF |
|
23492 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
23493 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
23494 |
(eval $ac_link) 2>conftest.er1 |
|
23495 |
ac_status=$? |
|
23496 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23497 |
rm -f conftest.er1 |
|
23498 |
cat conftest.err >&5 |
|
23499 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23500 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23501 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23502 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23503 |
(eval $ac_try) 2>&5 |
|
23504 |
ac_status=$? |
|
23505 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23506 |
(exit $ac_status); }; } && |
|
23507 |
{ ac_try='test -s conftest$ac_exeext' |
|
23508 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23509 |
(eval $ac_try) 2>&5 |
|
23510 |
ac_status=$? |
|
23511 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23512 |
(exit $ac_status); }; }; then |
|
23513 |
ac_cv_lib_posix_remove=yes |
|
23514 |
else |
|
23515 |
echo "$as_me: failed program was:" >&5 |
|
23516 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23517 |
||
23518 |
ac_cv_lib_posix_remove=no |
|
23519 |
fi |
|
23520 |
rm -f conftest.err conftest.$ac_objext \ |
|
23521 |
conftest$ac_exeext conftest.$ac_ext |
|
23522 |
LIBS=$ac_check_lib_save_LIBS |
|
23523 |
fi |
|
23524 |
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
|
23525 |
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
|
23526 |
if test $ac_cv_lib_posix_remove = yes; then |
|
23527 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
|
23528 |
fi |
|
23529 |
||
23530 |
fi |
|
23531 |
||
23532 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
|
23533 |
echo "$as_me:$LINENO: checking for shmat" >&5 |
|
23534 |
echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
|
23535 |
if test "${ac_cv_func_shmat+set}" = set; then |
|
23536 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23537 |
else |
|
23538 |
cat >conftest.$ac_ext <<_ACEOF |
|
23539 |
/* confdefs.h. */ |
|
23540 |
_ACEOF |
|
23541 |
cat confdefs.h >>conftest.$ac_ext |
|
23542 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23543 |
/* end confdefs.h. */ |
|
23544 |
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
|
23545 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
23546 |
#define shmat innocuous_shmat |
|
23547 |
||
23548 |
/* System header to define __stub macros and hopefully few prototypes, |
|
23549 |
which can conflict with char shmat (); below. |
|
23550 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
23551 |
<limits.h> exists even on freestanding compilers. */ |
|
23552 |
||
23553 |
#ifdef __STDC__ |
|
23554 |
# include <limits.h> |
|
23555 |
#else |
|
23556 |
# include <assert.h> |
|
23557 |
#endif |
|
23558 |
||
23559 |
#undef shmat |
|
23560 |
||
23561 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
23562 |
#ifdef __cplusplus |
|
23563 |
extern "C" |
|
23564 |
{ |
|
23565 |
#endif |
|
23566 |
/* We use char because int might match the return type of a gcc2 |
|
23567 |
builtin and then its argument prototype would still apply. */ |
|
23568 |
char shmat (); |
|
23569 |
/* The GNU C library defines this for functions which it implements |
|
23570 |
to always fail with ENOSYS. Some functions are actually named |
|
23571 |
something starting with __ and the normal name is an alias. */ |
|
23572 |
#if defined (__stub_shmat) || defined (__stub___shmat) |
|
23573 |
choke me |
|
23574 |
#else |
|
23575 |
char (*f) () = shmat; |
|
23576 |
#endif |
|
23577 |
#ifdef __cplusplus |
|
23578 |
} |
|
23579 |
#endif |
|
23580 |
||
23581 |
int |
|
23582 |
main () |
|
23583 |
{ |
|
23584 |
return f != shmat; |
|
23585 |
; |
|
23586 |
return 0; |
|
23587 |
} |
|
23588 |
_ACEOF |
|
23589 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
23590 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
23591 |
(eval $ac_link) 2>conftest.er1 |
|
23592 |
ac_status=$? |
|
23593 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23594 |
rm -f conftest.er1 |
|
23595 |
cat conftest.err >&5 |
|
23596 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23597 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23598 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23599 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23600 |
(eval $ac_try) 2>&5 |
|
23601 |
ac_status=$? |
|
23602 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23603 |
(exit $ac_status); }; } && |
|
23604 |
{ ac_try='test -s conftest$ac_exeext' |
|
23605 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23606 |
(eval $ac_try) 2>&5 |
|
23607 |
ac_status=$? |
|
23608 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23609 |
(exit $ac_status); }; }; then |
|
23610 |
ac_cv_func_shmat=yes |
|
23611 |
else |
|
23612 |
echo "$as_me: failed program was:" >&5 |
|
23613 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23614 |
||
23615 |
ac_cv_func_shmat=no |
|
23616 |
fi |
|
23617 |
rm -f conftest.err conftest.$ac_objext \ |
|
23618 |
conftest$ac_exeext conftest.$ac_ext |
|
23619 |
fi |
|
23620 |
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
|
23621 |
echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
|
23622 |
if test $ac_cv_func_shmat = yes; then |
|
23623 |
: |
|
23624 |
else |
|
23625 |
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
|
23626 |
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
|
23627 |
if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
|
23628 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23629 |
else |
|
23630 |
ac_check_lib_save_LIBS=$LIBS |
|
23631 |
LIBS="-lipc $LIBS" |
|
23632 |
cat >conftest.$ac_ext <<_ACEOF |
|
23633 |
/* confdefs.h. */ |
|
23634 |
_ACEOF |
|
23635 |
cat confdefs.h >>conftest.$ac_ext |
|
23636 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23637 |
/* end confdefs.h. */ |
|
23638 |
||
23639 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
23640 |
#ifdef __cplusplus |
|
23641 |
extern "C" |
|
23642 |
#endif |
|
23643 |
/* We use char because int might match the return type of a gcc2 |
|
23644 |
builtin and then its argument prototype would still apply. */ |
|
23645 |
char shmat (); |
|
23646 |
int |
|
23647 |
main () |
|
23648 |
{ |
|
23649 |
shmat (); |
|
23650 |
; |
|
23651 |
return 0; |
|
23652 |
} |
|
23653 |
_ACEOF |
|
23654 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
23655 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
23656 |
(eval $ac_link) 2>conftest.er1 |
|
23657 |
ac_status=$? |
|
23658 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23659 |
rm -f conftest.er1 |
|
23660 |
cat conftest.err >&5 |
|
23661 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23662 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23663 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23664 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23665 |
(eval $ac_try) 2>&5 |
|
23666 |
ac_status=$? |
|
23667 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23668 |
(exit $ac_status); }; } && |
|
23669 |
{ ac_try='test -s conftest$ac_exeext' |
|
23670 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23671 |
(eval $ac_try) 2>&5 |
|
23672 |
ac_status=$? |
|
23673 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23674 |
(exit $ac_status); }; }; then |
|
23675 |
ac_cv_lib_ipc_shmat=yes |
|
23676 |
else |
|
23677 |
echo "$as_me: failed program was:" >&5 |
|
23678 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23679 |
||
23680 |
ac_cv_lib_ipc_shmat=no |
|
23681 |
fi |
|
23682 |
rm -f conftest.err conftest.$ac_objext \ |
|
23683 |
conftest$ac_exeext conftest.$ac_ext |
|
23684 |
LIBS=$ac_check_lib_save_LIBS |
|
23685 |
fi |
|
23686 |
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
|
23687 |
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
|
23688 |
if test $ac_cv_lib_ipc_shmat = yes; then |
|
23689 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
|
23690 |
fi |
|
23691 |
||
23692 |
fi |
|
23693 |
||
23694 |
||
23695 |
# more headers that need to be explicitly included on darwin |
|
23696 |
||
23697 |
||
23698 |
for ac_header in sys/types.h stdint.h |
|
23699 |
do |
|
23700 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
23701 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
23702 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
23703 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
23704 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
23705 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23706 |
fi |
|
23707 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
23708 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
23709 |
else |
|
23710 |
# Is the header compilable? |
|
23711 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
23712 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
23713 |
cat >conftest.$ac_ext <<_ACEOF |
|
23714 |
/* confdefs.h. */ |
|
23715 |
_ACEOF |
|
23716 |
cat confdefs.h >>conftest.$ac_ext |
|
23717 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23718 |
/* end confdefs.h. */ |
|
23719 |
$ac_includes_default |
|
23720 |
#include <$ac_header> |
|
23721 |
_ACEOF |
|
23722 |
rm -f conftest.$ac_objext |
|
23723 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
23724 |
(eval $ac_compile) 2>conftest.er1 |
|
23725 |
ac_status=$? |
|
23726 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23727 |
rm -f conftest.er1 |
|
23728 |
cat conftest.err >&5 |
|
23729 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23730 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23731 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23732 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23733 |
(eval $ac_try) 2>&5 |
|
23734 |
ac_status=$? |
|
23735 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23736 |
(exit $ac_status); }; } && |
|
23737 |
{ ac_try='test -s conftest.$ac_objext' |
|
23738 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23739 |
(eval $ac_try) 2>&5 |
|
23740 |
ac_status=$? |
|
23741 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23742 |
(exit $ac_status); }; }; then |
|
23743 |
ac_header_compiler=yes |
|
23744 |
else |
|
23745 |
echo "$as_me: failed program was:" >&5 |
|
23746 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23747 |
||
23748 |
ac_header_compiler=no |
|
23749 |
fi |
|
23750 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
23751 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
23752 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
23753 |
||
23754 |
# Is the header present? |
|
23755 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
23756 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
23757 |
cat >conftest.$ac_ext <<_ACEOF |
|
23758 |
/* confdefs.h. */ |
|
23759 |
_ACEOF |
|
23760 |
cat confdefs.h >>conftest.$ac_ext |
|
23761 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23762 |
/* end confdefs.h. */ |
|
23763 |
#include <$ac_header> |
|
23764 |
_ACEOF |
|
23765 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
23766 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
23767 |
ac_status=$? |
|
23768 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23769 |
rm -f conftest.er1 |
|
23770 |
cat conftest.err >&5 |
|
23771 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23772 |
(exit $ac_status); } >/dev/null; then |
|
23773 |
if test -s conftest.err; then |
|
23774 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
23775 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
23776 |
else |
|
23777 |
ac_cpp_err= |
|
23778 |
fi |
|
23779 |
else |
|
23780 |
ac_cpp_err=yes |
|
23781 |
fi |
|
23782 |
if test -z "$ac_cpp_err"; then |
|
23783 |
ac_header_preproc=yes |
|
23784 |
else |
|
23785 |
echo "$as_me: failed program was:" >&5 |
|
23786 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23787 |
||
23788 |
ac_header_preproc=no |
|
23789 |
fi |
|
23790 |
rm -f conftest.err conftest.$ac_ext |
|
23791 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
23792 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
23793 |
||
23794 |
# So? What about this header? |
|
23795 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
23796 |
yes:no: ) |
|
23797 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
23798 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
23799 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
23800 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
23801 |
ac_header_preproc=yes |
|
23802 |
;; |
|
23803 |
no:yes:* ) |
|
23804 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
23805 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
23806 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
23807 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
23808 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
23809 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
23810 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
23811 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
23812 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
23813 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
23814 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
23815 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
23816 |
( |
|
23817 |
cat <<\_ASBOX |
|
23818 |
## ------------------------------------------ ## |
|
23819 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
23820 |
## ------------------------------------------ ## |
|
23821 |
_ASBOX |
|
23822 |
) | |
|
23823 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
23824 |
;; |
|
23825 |
esac |
|
23826 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
23827 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
23828 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
23829 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23830 |
else |
|
23831 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
23832 |
fi |
|
23833 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
23834 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
23835 |
||
23836 |
fi |
|
23837 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
23838 |
cat >>confdefs.h <<_ACEOF |
|
23839 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
23840 |
_ACEOF |
|
23841 |
||
23842 |
fi |
|
23843 |
||
23844 |
done |
|
23845 |
||
23846 |
||
23847 |
# sys/bitypes.h is needed for uint32_t and friends on Tru64 |
|
23848 |
||
23849 |
for ac_header in sys/bitypes.h |
|
23850 |
do |
|
23851 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
23852 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
23853 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
23854 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
23855 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
23856 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23857 |
fi |
|
23858 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
23859 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
23860 |
else |
|
23861 |
# Is the header compilable? |
|
23862 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
23863 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
23864 |
cat >conftest.$ac_ext <<_ACEOF |
|
23865 |
/* confdefs.h. */ |
|
23866 |
_ACEOF |
|
23867 |
cat confdefs.h >>conftest.$ac_ext |
|
23868 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23869 |
/* end confdefs.h. */ |
|
23870 |
$ac_includes_default |
|
23871 |
#include <$ac_header> |
|
23872 |
_ACEOF |
|
23873 |
rm -f conftest.$ac_objext |
|
23874 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
23875 |
(eval $ac_compile) 2>conftest.er1 |
|
23876 |
ac_status=$? |
|
23877 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23878 |
rm -f conftest.er1 |
|
23879 |
cat conftest.err >&5 |
|
23880 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23881 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
23882 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
23883 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23884 |
(eval $ac_try) 2>&5 |
|
23885 |
ac_status=$? |
|
23886 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23887 |
(exit $ac_status); }; } && |
|
23888 |
{ ac_try='test -s conftest.$ac_objext' |
|
23889 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
23890 |
(eval $ac_try) 2>&5 |
|
23891 |
ac_status=$? |
|
23892 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23893 |
(exit $ac_status); }; }; then |
|
23894 |
ac_header_compiler=yes |
|
23895 |
else |
|
23896 |
echo "$as_me: failed program was:" >&5 |
|
23897 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23898 |
||
23899 |
ac_header_compiler=no |
|
23900 |
fi |
|
23901 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
23902 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
23903 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
23904 |
||
23905 |
# Is the header present? |
|
23906 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
23907 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
23908 |
cat >conftest.$ac_ext <<_ACEOF |
|
23909 |
/* confdefs.h. */ |
|
23910 |
_ACEOF |
|
23911 |
cat confdefs.h >>conftest.$ac_ext |
|
23912 |
cat >>conftest.$ac_ext <<_ACEOF |
|
23913 |
/* end confdefs.h. */ |
|
23914 |
#include <$ac_header> |
|
23915 |
_ACEOF |
|
23916 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
23917 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
23918 |
ac_status=$? |
|
23919 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
23920 |
rm -f conftest.er1 |
|
23921 |
cat conftest.err >&5 |
|
23922 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23923 |
(exit $ac_status); } >/dev/null; then |
|
23924 |
if test -s conftest.err; then |
|
23925 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
23926 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
23927 |
else |
|
23928 |
ac_cpp_err= |
|
23929 |
fi |
|
23930 |
else |
|
23931 |
ac_cpp_err=yes |
|
23932 |
fi |
|
23933 |
if test -z "$ac_cpp_err"; then |
|
23934 |
ac_header_preproc=yes |
|
23935 |
else |
|
23936 |
echo "$as_me: failed program was:" >&5 |
|
23937 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
23938 |
||
23939 |
ac_header_preproc=no |
|
23940 |
fi |
|
23941 |
rm -f conftest.err conftest.$ac_ext |
|
23942 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
23943 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
23944 |
||
23945 |
# So? What about this header? |
|
23946 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
23947 |
yes:no: ) |
|
23948 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
23949 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
23950 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
23951 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
23952 |
ac_header_preproc=yes |
|
23953 |
;; |
|
23954 |
no:yes:* ) |
|
23955 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
23956 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
23957 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
23958 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
23959 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
23960 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
23961 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
23962 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
23963 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
23964 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
23965 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
23966 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
23967 |
( |
|
23968 |
cat <<\_ASBOX |
|
23969 |
## ------------------------------------------ ## |
|
23970 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
23971 |
## ------------------------------------------ ## |
|
23972 |
_ASBOX |
|
23973 |
) | |
|
23974 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
23975 |
;; |
|
23976 |
esac |
|
23977 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
23978 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
23979 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
23980 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
23981 |
else |
|
23982 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
23983 |
fi |
|
23984 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
23985 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
23986 |
||
23987 |
fi |
|
23988 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
23989 |
cat >>confdefs.h <<_ACEOF |
|
23990 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
23991 |
_ACEOF |
|
23992 |
||
23993 |
fi |
|
23994 |
||
23995 |
done |
|
23996 |
||
23997 |
||
23998 |
# darwin requires a poll emulation library |
|
23999 |
echo "$as_me:$LINENO: checking for poll in -lpoll" >&5 |
|
24000 |
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6 |
|
24001 |
if test "${ac_cv_lib_poll_poll+set}" = set; then |
|
24002 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24003 |
else |
|
24004 |
ac_check_lib_save_LIBS=$LIBS |
|
24005 |
LIBS="-lpoll $LIBS" |
|
24006 |
cat >conftest.$ac_ext <<_ACEOF |
|
24007 |
/* confdefs.h. */ |
|
24008 |
_ACEOF |
|
24009 |
cat confdefs.h >>conftest.$ac_ext |
|
24010 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24011 |
/* end confdefs.h. */ |
|
24012 |
||
24013 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
24014 |
#ifdef __cplusplus |
|
24015 |
extern "C" |
|
24016 |
#endif |
|
24017 |
/* We use char because int might match the return type of a gcc2 |
|
24018 |
builtin and then its argument prototype would still apply. */ |
|
24019 |
char poll (); |
|
24020 |
int |
|
24021 |
main () |
|
24022 |
{ |
|
24023 |
poll (); |
|
24024 |
; |
|
24025 |
return 0; |
|
24026 |
} |
|
24027 |
_ACEOF |
|
24028 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
24029 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
24030 |
(eval $ac_link) 2>conftest.er1 |
|
24031 |
ac_status=$? |
|
24032 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24033 |
rm -f conftest.er1 |
|
24034 |
cat conftest.err >&5 |
|
24035 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24036 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24037 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24038 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24039 |
(eval $ac_try) 2>&5 |
|
24040 |
ac_status=$? |
|
24041 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24042 |
(exit $ac_status); }; } && |
|
24043 |
{ ac_try='test -s conftest$ac_exeext' |
|
24044 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24045 |
(eval $ac_try) 2>&5 |
|
24046 |
ac_status=$? |
|
24047 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24048 |
(exit $ac_status); }; }; then |
|
24049 |
ac_cv_lib_poll_poll=yes |
|
24050 |
else |
|
24051 |
echo "$as_me: failed program was:" >&5 |
|
24052 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24053 |
||
24054 |
ac_cv_lib_poll_poll=no |
|
24055 |
fi |
|
24056 |
rm -f conftest.err conftest.$ac_objext \ |
|
24057 |
conftest$ac_exeext conftest.$ac_ext |
|
24058 |
LIBS=$ac_check_lib_save_LIBS |
|
24059 |
fi |
|
24060 |
echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5 |
|
24061 |
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6 |
|
24062 |
if test $ac_cv_lib_poll_poll = yes; then |
|
24063 |
LIB_POLL="-lpoll" |
|
24064 |
fi |
|
24065 |
||
24066 |
||
24067 |
# for some image handling on Mac OS X |
|
24068 |
||
24069 |
for ac_header in Carbon/Carbon.h |
|
24070 |
do |
|
24071 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
24072 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
24073 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
24074 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
24075 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
24076 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24077 |
fi |
|
24078 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
24079 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
24080 |
else |
|
24081 |
# Is the header compilable? |
|
24082 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
24083 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
24084 |
cat >conftest.$ac_ext <<_ACEOF |
|
24085 |
/* confdefs.h. */ |
|
24086 |
_ACEOF |
|
24087 |
cat confdefs.h >>conftest.$ac_ext |
|
24088 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24089 |
/* end confdefs.h. */ |
|
24090 |
$ac_includes_default |
|
24091 |
#include <$ac_header> |
|
24092 |
_ACEOF |
|
24093 |
rm -f conftest.$ac_objext |
|
24094 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
24095 |
(eval $ac_compile) 2>conftest.er1 |
|
24096 |
ac_status=$? |
|
24097 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24098 |
rm -f conftest.er1 |
|
24099 |
cat conftest.err >&5 |
|
24100 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24101 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24102 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24103 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24104 |
(eval $ac_try) 2>&5 |
|
24105 |
ac_status=$? |
|
24106 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24107 |
(exit $ac_status); }; } && |
|
24108 |
{ ac_try='test -s conftest.$ac_objext' |
|
24109 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24110 |
(eval $ac_try) 2>&5 |
|
24111 |
ac_status=$? |
|
24112 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24113 |
(exit $ac_status); }; }; then |
|
24114 |
ac_header_compiler=yes |
|
24115 |
else |
|
24116 |
echo "$as_me: failed program was:" >&5 |
|
24117 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24118 |
||
24119 |
ac_header_compiler=no |
|
24120 |
fi |
|
24121 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
24122 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
24123 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
24124 |
||
24125 |
# Is the header present? |
|
24126 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
24127 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
24128 |
cat >conftest.$ac_ext <<_ACEOF |
|
24129 |
/* confdefs.h. */ |
|
24130 |
_ACEOF |
|
24131 |
cat confdefs.h >>conftest.$ac_ext |
|
24132 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24133 |
/* end confdefs.h. */ |
|
24134 |
#include <$ac_header> |
|
24135 |
_ACEOF |
|
24136 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
24137 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
24138 |
ac_status=$? |
|
24139 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24140 |
rm -f conftest.er1 |
|
24141 |
cat conftest.err >&5 |
|
24142 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24143 |
(exit $ac_status); } >/dev/null; then |
|
24144 |
if test -s conftest.err; then |
|
24145 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
24146 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
24147 |
else |
|
24148 |
ac_cpp_err= |
|
24149 |
fi |
|
24150 |
else |
|
24151 |
ac_cpp_err=yes |
|
24152 |
fi |
|
24153 |
if test -z "$ac_cpp_err"; then |
|
24154 |
ac_header_preproc=yes |
|
24155 |
else |
|
24156 |
echo "$as_me: failed program was:" >&5 |
|
24157 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24158 |
||
24159 |
ac_header_preproc=no |
|
24160 |
fi |
|
24161 |
rm -f conftest.err conftest.$ac_ext |
|
24162 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
24163 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
24164 |
||
24165 |
# So? What about this header? |
|
24166 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
24167 |
yes:no: ) |
|
24168 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
24169 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
24170 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
24171 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
24172 |
ac_header_preproc=yes |
|
24173 |
;; |
|
24174 |
no:yes:* ) |
|
24175 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
24176 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
24177 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
24178 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
24179 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
24180 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
24181 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
24182 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
24183 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
24184 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
24185 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
24186 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
24187 |
( |
|
24188 |
cat <<\_ASBOX |
|
24189 |
## ------------------------------------------ ## |
|
24190 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
24191 |
## ------------------------------------------ ## |
|
24192 |
_ASBOX |
|
24193 |
) | |
|
24194 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
24195 |
;; |
|
24196 |
esac |
|
24197 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
24198 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
24199 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
24200 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24201 |
else |
|
24202 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
24203 |
fi |
|
24204 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
24205 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
24206 |
||
24207 |
fi |
|
24208 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
24209 |
cat >>confdefs.h <<_ACEOF |
|
24210 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
24211 |
_ACEOF |
|
24212 |
||
24213 |
fi |
|
24214 |
||
24215 |
done |
|
24216 |
||
24217 |
||
24218 |
# CoreAudio framework |
|
24219 |
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then |
|
24220 |
echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5 |
|
24221 |
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6 |
|
24222 |
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then |
|
24223 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24224 |
fi |
|
24225 |
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5 |
|
24226 |
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6 |
|
24227 |
else |
|
24228 |
# Is the header compilable? |
|
24229 |
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5 |
|
24230 |
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6 |
|
24231 |
cat >conftest.$ac_ext <<_ACEOF |
|
24232 |
/* confdefs.h. */ |
|
24233 |
_ACEOF |
|
24234 |
cat confdefs.h >>conftest.$ac_ext |
|
24235 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24236 |
/* end confdefs.h. */ |
|
24237 |
$ac_includes_default |
|
24238 |
#include <CoreAudio/CoreAudio.h> |
|
24239 |
_ACEOF |
|
24240 |
rm -f conftest.$ac_objext |
|
24241 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
24242 |
(eval $ac_compile) 2>conftest.er1 |
|
24243 |
ac_status=$? |
|
24244 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24245 |
rm -f conftest.er1 |
|
24246 |
cat conftest.err >&5 |
|
24247 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24248 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24249 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24250 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24251 |
(eval $ac_try) 2>&5 |
|
24252 |
ac_status=$? |
|
24253 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24254 |
(exit $ac_status); }; } && |
|
24255 |
{ ac_try='test -s conftest.$ac_objext' |
|
24256 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24257 |
(eval $ac_try) 2>&5 |
|
24258 |
ac_status=$? |
|
24259 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24260 |
(exit $ac_status); }; }; then |
|
24261 |
ac_header_compiler=yes |
|
24262 |
else |
|
24263 |
echo "$as_me: failed program was:" >&5 |
|
24264 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24265 |
||
24266 |
ac_header_compiler=no |
|
24267 |
fi |
|
24268 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
24269 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
24270 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
24271 |
||
24272 |
# Is the header present? |
|
24273 |
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5 |
|
24274 |
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6 |
|
24275 |
cat >conftest.$ac_ext <<_ACEOF |
|
24276 |
/* confdefs.h. */ |
|
24277 |
_ACEOF |
|
24278 |
cat confdefs.h >>conftest.$ac_ext |
|
24279 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24280 |
/* end confdefs.h. */ |
|
24281 |
#include <CoreAudio/CoreAudio.h> |
|
24282 |
_ACEOF |
|
24283 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
24284 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
24285 |
ac_status=$? |
|
24286 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24287 |
rm -f conftest.er1 |
|
24288 |
cat conftest.err >&5 |
|
24289 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24290 |
(exit $ac_status); } >/dev/null; then |
|
24291 |
if test -s conftest.err; then |
|
24292 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
24293 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
24294 |
else |
|
24295 |
ac_cpp_err= |
|
24296 |
fi |
|
24297 |
else |
|
24298 |
ac_cpp_err=yes |
|
24299 |
fi |
|
24300 |
if test -z "$ac_cpp_err"; then |
|
24301 |
ac_header_preproc=yes |
|
24302 |
else |
|
24303 |
echo "$as_me: failed program was:" >&5 |
|
24304 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24305 |
||
24306 |
ac_header_preproc=no |
|
24307 |
fi |
|
24308 |
rm -f conftest.err conftest.$ac_ext |
|
24309 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
24310 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
24311 |
||
24312 |
# So? What about this header? |
|
24313 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
24314 |
yes:no: ) |
|
24315 |
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
24316 |
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
24317 |
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5 |
|
24318 |
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;} |
|
24319 |
ac_header_preproc=yes |
|
24320 |
;; |
|
24321 |
no:yes:* ) |
|
24322 |
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5 |
|
24323 |
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;} |
|
24324 |
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5 |
|
24325 |
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;} |
|
24326 |
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5 |
|
24327 |
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;} |
|
24328 |
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
24329 |
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
24330 |
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5 |
|
24331 |
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;} |
|
24332 |
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5 |
|
24333 |
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;} |
|
24334 |
( |
|
24335 |
cat <<\_ASBOX |
|
24336 |
## ------------------------------------------ ## |
|
24337 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
24338 |
## ------------------------------------------ ## |
|
24339 |
_ASBOX |
|
24340 |
) | |
|
24341 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
24342 |
;; |
|
24343 |
esac |
|
24344 |
echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5 |
|
24345 |
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6 |
|
24346 |
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then |
|
24347 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24348 |
else |
|
24349 |
ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc |
|
24350 |
fi |
|
24351 |
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5 |
|
24352 |
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6 |
|
24353 |
||
24354 |
fi |
|
24355 |
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then |
|
24356 |
||
24357 |
||
24358 |
cat >>confdefs.h <<\_ACEOF |
|
24359 |
#define HAVE_COREAUDIO 1 |
|
24360 |
_ACEOF |
|
24361 |
||
24362 |
FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio" |
|
24363 |
||
24364 |
fi |
|
24365 |
||
24366 |
||
24367 |
||
24368 |
||
24369 |
echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5 |
|
24370 |
echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6 |
|
24371 |
kde_libs_safe="$LIBS" |
|
24372 |
LIBS="$LIBS $X_EXTRA_LIBS -lresolv" |
|
24373 |
cat >conftest.$ac_ext <<_ACEOF |
|
24374 |
/* confdefs.h. */ |
|
24375 |
_ACEOF |
|
24376 |
cat confdefs.h >>conftest.$ac_ext |
|
24377 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24378 |
/* end confdefs.h. */ |
|
24379 |
||
24380 |
#include <sys/types.h> |
|
24381 |
#include <netinet/in.h> |
|
24382 |
#include <arpa/nameser.h> |
|
24383 |
#include <resolv.h> |
|
24384 |
||
24385 |
int |
|
24386 |
main () |
|
24387 |
{ |
|
24388 |
||
24389 |
res_init(); |
|
24390 |
||
24391 |
; |
|
24392 |
return 0; |
|
24393 |
} |
|
24394 |
_ACEOF |
|
24395 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
24396 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
24397 |
(eval $ac_link) 2>conftest.er1 |
|
24398 |
ac_status=$? |
|
24399 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24400 |
rm -f conftest.er1 |
|
24401 |
cat conftest.err >&5 |
|
24402 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24403 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24404 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24405 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24406 |
(eval $ac_try) 2>&5 |
|
24407 |
ac_status=$? |
|
24408 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24409 |
(exit $ac_status); }; } && |
|
24410 |
{ ac_try='test -s conftest$ac_exeext' |
|
24411 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24412 |
(eval $ac_try) 2>&5 |
|
24413 |
ac_status=$? |
|
24414 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24415 |
(exit $ac_status); }; }; then |
|
24416 |
||
24417 |
LIBRESOLV="-lresolv" |
|
24418 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
24419 |
echo "${ECHO_T}yes" >&6 |
|
24420 |
||
24421 |
cat >>confdefs.h <<\_ACEOF |
|
24422 |
#define HAVE_RES_INIT 1 |
|
24423 |
_ACEOF |
|
24424 |
||
24425 |
||
24426 |
else |
|
24427 |
echo "$as_me: failed program was:" >&5 |
|
24428 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24429 |
||
24430 |
echo "$as_me:$LINENO: result: no" >&5 |
|
24431 |
echo "${ECHO_T}no" >&6 |
|
24432 |
||
24433 |
fi |
|
24434 |
rm -f conftest.err conftest.$ac_objext \ |
|
24435 |
conftest$ac_exeext conftest.$ac_ext |
|
24436 |
LIBS=$kde_libs_safe |
|
24437 |
||
24438 |
||
24439 |
||
24440 |
echo "$as_me:$LINENO: checking for res_init" >&5 |
|
24441 |
echo $ECHO_N "checking for res_init... $ECHO_C" >&6 |
|
24442 |
if test "${kde_cv_func_res_init+set}" = set; then |
|
24443 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24444 |
else |
|
24445 |
||
24446 |
||
24447 |
||
24448 |
ac_ext=cc |
|
24449 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
24450 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
24451 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
24452 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
24453 |
||
24454 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
24455 |
||
24456 |
||
24457 |
save_CXXFLAGS="$CXXFLAGS" |
|
24458 |
kde_safe_LIBS="$LIBS" |
|
24459 |
LIBS="$LIBS $X_EXTRA_LIBS" |
|
24460 |
if test "$GXX" = "yes"; then |
|
24461 |
CXXFLAGS="$CXXFLAGS -pedantic-errors" |
|
24462 |
fi |
|
24463 |
cat >conftest.$ac_ext <<_ACEOF |
|
24464 |
/* confdefs.h. */ |
|
24465 |
_ACEOF |
|
24466 |
cat confdefs.h >>conftest.$ac_ext |
|
24467 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24468 |
/* end confdefs.h. */ |
|
24469 |
||
24470 |
||
24471 |
#include <sys/types.h> |
|
24472 |
#include <netinet/in.h> |
|
24473 |
#include <arpa/nameser.h> |
|
24474 |
#include <resolv.h> |
|
24475 |
||
24476 |
||
24477 |
int |
|
24478 |
main () |
|
24479 |
{ |
|
24480 |
||
24481 |
res_init() |
|
24482 |
||
24483 |
; |
|
24484 |
return 0; |
|
24485 |
} |
|
24486 |
_ACEOF |
|
24487 |
rm -f conftest.$ac_objext |
|
24488 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
24489 |
(eval $ac_compile) 2>conftest.er1 |
|
24490 |
ac_status=$? |
|
24491 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24492 |
rm -f conftest.er1 |
|
24493 |
cat conftest.err >&5 |
|
24494 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24495 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24496 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24497 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24498 |
(eval $ac_try) 2>&5 |
|
24499 |
ac_status=$? |
|
24500 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24501 |
(exit $ac_status); }; } && |
|
24502 |
{ ac_try='test -s conftest.$ac_objext' |
|
24503 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24504 |
(eval $ac_try) 2>&5 |
|
24505 |
ac_status=$? |
|
24506 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24507 |
(exit $ac_status); }; }; then |
|
24508 |
kde_cv_func_res_init=yes |
|
24509 |
else |
|
24510 |
echo "$as_me: failed program was:" >&5 |
|
24511 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24512 |
||
24513 |
kde_cv_func_res_init=no |
|
24514 |
fi |
|
24515 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
24516 |
CXXFLAGS="$save_CXXFLAGS" |
|
24517 |
LIBS="$kde_safe_LIBS" |
|
24518 |
ac_ext=c |
|
24519 |
ac_cpp='$CPP $CPPFLAGS' |
|
24520 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
24521 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
24522 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
24523 |
||
24524 |
||
24525 |
fi |
|
24526 |
||
24527 |
||
24528 |
echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5 |
|
24529 |
echo "${ECHO_T}$kde_cv_func_res_init" >&6 |
|
24530 |
||
24531 |
echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5 |
|
24532 |
echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6 |
|
24533 |
if test "${kde_cv_proto_res_init+set}" = set; then |
|
24534 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24535 |
else |
|
24536 |
||
24537 |
if test "x$kde_cv_func_res_init" = xyes; then |
|
24538 |
kde_cv_proto_res_init=no |
|
24539 |
else |
|
24540 |
case "res_init" in |
|
24541 |
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat) |
|
24542 |
kde_cv_proto_res_init="yes - in libkdefakes" |
|
24543 |
;; |
|
24544 |
*) |
|
24545 |
kde_cv_proto_res_init=unknown |
|
24546 |
;; |
|
24547 |
esac |
|
24548 |
fi |
|
24549 |
||
24550 |
if test "x$kde_cv_proto_res_init" = xunknown; then |
|
24551 |
||
24552 |
||
24553 |
||
24554 |
ac_ext=cc |
|
24555 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
24556 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
24557 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
24558 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
24559 |
||
24560 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
24561 |
||
24562 |
||
24563 |
kde_safe_libs=$LIBS |
|
24564 |
LIBS="$LIBS $X_EXTRA_LIBS" |
|
24565 |
cat >conftest.$ac_ext <<_ACEOF |
|
24566 |
/* confdefs.h. */ |
|
24567 |
_ACEOF |
|
24568 |
cat confdefs.h >>conftest.$ac_ext |
|
24569 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24570 |
/* end confdefs.h. */ |
|
24571 |
||
24572 |
||
24573 |
#include <sys/types.h> |
|
24574 |
#include <netinet/in.h> |
|
24575 |
#include <arpa/nameser.h> |
|
24576 |
#include <resolv.h> |
|
24577 |
||
24578 |
||
24579 |
extern "C" int res_init(void); |
|
24580 |
||
24581 |
int |
|
24582 |
main () |
|
24583 |
{ |
|
24584 |
||
24585 |
res_init() |
|
24586 |
||
24587 |
; |
|
24588 |
return 0; |
|
24589 |
} |
|
24590 |
_ACEOF |
|
24591 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
24592 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
24593 |
(eval $ac_link) 2>conftest.er1 |
|
24594 |
ac_status=$? |
|
24595 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24596 |
rm -f conftest.er1 |
|
24597 |
cat conftest.err >&5 |
|
24598 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24599 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24600 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24601 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24602 |
(eval $ac_try) 2>&5 |
|
24603 |
ac_status=$? |
|
24604 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24605 |
(exit $ac_status); }; } && |
|
24606 |
{ ac_try='test -s conftest$ac_exeext' |
|
24607 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24608 |
(eval $ac_try) 2>&5 |
|
24609 |
ac_status=$? |
|
24610 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24611 |
(exit $ac_status); }; }; then |
|
24612 |
kde_cv_func_res_init=yes |
|
24613 |
kde_cv_proto_res_init=yes |
|
24614 |
else |
|
24615 |
echo "$as_me: failed program was:" >&5 |
|
24616 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24617 |
||
24618 |
kde_cv_proto_res_init="res_init unavailable" |
|
24619 |
||
24620 |
fi |
|
24621 |
rm -f conftest.err conftest.$ac_objext \ |
|
24622 |
conftest$ac_exeext conftest.$ac_ext |
|
24623 |
LIBS=$kde_safe_libs |
|
24624 |
ac_ext=c |
|
24625 |
ac_cpp='$CPP $CPPFLAGS' |
|
24626 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
24627 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
24628 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
24629 |
||
24630 |
fi |
|
24631 |
||
24632 |
fi |
|
24633 |
||
24634 |
echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5 |
|
24635 |
echo "${ECHO_T}$kde_cv_proto_res_init" >&6 |
|
24636 |
||
24637 |
if test "x$kde_cv_func_res_init" = xyes; then |
|
24638 |
||
24639 |
cat >>confdefs.h <<\_ACEOF |
|
24640 |
#define HAVE_RES_INIT 1 |
|
24641 |
_ACEOF |
|
24642 |
||
24643 |
||
24644 |
fi |
|
24645 |
if test "x$kde_cv_proto_res_init" = xno; then |
|
24646 |
||
24647 |
cat >>confdefs.h <<\_ACEOF |
|
24648 |
#define HAVE_RES_INIT_PROTO 1 |
|
24649 |
_ACEOF |
|
24650 |
||
24651 |
fi |
|
24652 |
||
24653 |
||
24654 |
||
24655 |
||
24656 |
||
24657 |
||
24658 |
||
24659 |
LIBSOCKET="$X_EXTRA_LIBS" |
|
24660 |
||
24661 |
||
24662 |
echo "$as_me:$LINENO: checking for killpg in -lucb" >&5 |
|
24663 |
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6 |
|
24664 |
if test "${ac_cv_lib_ucb_killpg+set}" = set; then |
|
24665 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24666 |
else |
|
24667 |
ac_check_lib_save_LIBS=$LIBS |
|
24668 |
LIBS="-lucb $LIBS" |
|
24669 |
cat >conftest.$ac_ext <<_ACEOF |
|
24670 |
/* confdefs.h. */ |
|
24671 |
_ACEOF |
|
24672 |
cat confdefs.h >>conftest.$ac_ext |
|
24673 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24674 |
/* end confdefs.h. */ |
|
24675 |
||
24676 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
24677 |
#ifdef __cplusplus |
|
24678 |
extern "C" |
|
24679 |
#endif |
|
24680 |
/* We use char because int might match the return type of a gcc2 |
|
24681 |
builtin and then its argument prototype would still apply. */ |
|
24682 |
char killpg (); |
|
24683 |
int |
|
24684 |
main () |
|
24685 |
{ |
|
24686 |
killpg (); |
|
24687 |
; |
|
24688 |
return 0; |
|
24689 |
} |
|
24690 |
_ACEOF |
|
24691 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
24692 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
24693 |
(eval $ac_link) 2>conftest.er1 |
|
24694 |
ac_status=$? |
|
24695 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24696 |
rm -f conftest.er1 |
|
24697 |
cat conftest.err >&5 |
|
24698 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24699 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24700 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24701 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24702 |
(eval $ac_try) 2>&5 |
|
24703 |
ac_status=$? |
|
24704 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24705 |
(exit $ac_status); }; } && |
|
24706 |
{ ac_try='test -s conftest$ac_exeext' |
|
24707 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24708 |
(eval $ac_try) 2>&5 |
|
24709 |
ac_status=$? |
|
24710 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24711 |
(exit $ac_status); }; }; then |
|
24712 |
ac_cv_lib_ucb_killpg=yes |
|
24713 |
else |
|
24714 |
echo "$as_me: failed program was:" >&5 |
|
24715 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24716 |
||
24717 |
ac_cv_lib_ucb_killpg=no |
|
24718 |
fi |
|
24719 |
rm -f conftest.err conftest.$ac_objext \ |
|
24720 |
conftest$ac_exeext conftest.$ac_ext |
|
24721 |
LIBS=$ac_check_lib_save_LIBS |
|
24722 |
fi |
|
24723 |
echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5 |
|
24724 |
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6 |
|
24725 |
if test $ac_cv_lib_ucb_killpg = yes; then |
|
24726 |
LIBUCB="-lucb" |
|
24727 |
fi |
|
24728 |
||
24729 |
||
24730 |
case $host in *-*-lynxos* ) |
|
24731 |
echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5 |
|
24732 |
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6 |
|
24733 |
CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" |
|
24734 |
echo "$as_me:$LINENO: result: disabled" >&5 |
|
24735 |
echo "${ECHO_T}disabled" >&6 |
|
24736 |
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
|
24737 |
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
|
24738 |
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
|
24739 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24740 |
else |
|
24741 |
ac_check_lib_save_LIBS=$LIBS |
|
24742 |
LIBS="-lbsd $LIBS" |
|
24743 |
cat >conftest.$ac_ext <<_ACEOF |
|
24744 |
/* confdefs.h. */ |
|
24745 |
_ACEOF |
|
24746 |
cat confdefs.h >>conftest.$ac_ext |
|
24747 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24748 |
/* end confdefs.h. */ |
|
24749 |
||
24750 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
24751 |
#ifdef __cplusplus |
|
24752 |
extern "C" |
|
24753 |
#endif |
|
24754 |
/* We use char because int might match the return type of a gcc2 |
|
24755 |
builtin and then its argument prototype would still apply. */ |
|
24756 |
char gethostbyname (); |
|
24757 |
int |
|
24758 |
main () |
|
24759 |
{ |
|
24760 |
gethostbyname (); |
|
24761 |
; |
|
24762 |
return 0; |
|
24763 |
} |
|
24764 |
_ACEOF |
|
24765 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
24766 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
24767 |
(eval $ac_link) 2>conftest.er1 |
|
24768 |
ac_status=$? |
|
24769 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24770 |
rm -f conftest.er1 |
|
24771 |
cat conftest.err >&5 |
|
24772 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24773 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24774 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24775 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24776 |
(eval $ac_try) 2>&5 |
|
24777 |
ac_status=$? |
|
24778 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24779 |
(exit $ac_status); }; } && |
|
24780 |
{ ac_try='test -s conftest$ac_exeext' |
|
24781 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24782 |
(eval $ac_try) 2>&5 |
|
24783 |
ac_status=$? |
|
24784 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24785 |
(exit $ac_status); }; }; then |
|
24786 |
ac_cv_lib_bsd_gethostbyname=yes |
|
24787 |
else |
|
24788 |
echo "$as_me: failed program was:" >&5 |
|
24789 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24790 |
||
24791 |
ac_cv_lib_bsd_gethostbyname=no |
|
24792 |
fi |
|
24793 |
rm -f conftest.err conftest.$ac_objext \ |
|
24794 |
conftest$ac_exeext conftest.$ac_ext |
|
24795 |
LIBS=$ac_check_lib_save_LIBS |
|
24796 |
fi |
|
24797 |
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
|
24798 |
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
|
24799 |
if test $ac_cv_lib_bsd_gethostbyname = yes; then |
|
24800 |
LIBSOCKET="-lbsd" |
|
24801 |
fi |
|
24802 |
;; |
|
24803 |
esac |
|
24804 |
||
24805 |
echo "$as_me:$LINENO: checking for int" >&5 |
|
24806 |
echo $ECHO_N "checking for int... $ECHO_C" >&6 |
|
24807 |
if test "${ac_cv_type_int+set}" = set; then |
|
24808 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24809 |
else |
|
24810 |
cat >conftest.$ac_ext <<_ACEOF |
|
24811 |
/* confdefs.h. */ |
|
24812 |
_ACEOF |
|
24813 |
cat confdefs.h >>conftest.$ac_ext |
|
24814 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24815 |
/* end confdefs.h. */ |
|
24816 |
$ac_includes_default |
|
24817 |
int |
|
24818 |
main () |
|
24819 |
{ |
|
24820 |
if ((int *) 0) |
|
24821 |
return 0; |
|
24822 |
if (sizeof (int)) |
|
24823 |
return 0; |
|
24824 |
; |
|
24825 |
return 0; |
|
24826 |
} |
|
24827 |
_ACEOF |
|
24828 |
rm -f conftest.$ac_objext |
|
24829 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
24830 |
(eval $ac_compile) 2>conftest.er1 |
|
24831 |
ac_status=$? |
|
24832 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24833 |
rm -f conftest.er1 |
|
24834 |
cat conftest.err >&5 |
|
24835 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24836 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24837 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24838 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24839 |
(eval $ac_try) 2>&5 |
|
24840 |
ac_status=$? |
|
24841 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24842 |
(exit $ac_status); }; } && |
|
24843 |
{ ac_try='test -s conftest.$ac_objext' |
|
24844 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24845 |
(eval $ac_try) 2>&5 |
|
24846 |
ac_status=$? |
|
24847 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24848 |
(exit $ac_status); }; }; then |
|
24849 |
ac_cv_type_int=yes |
|
24850 |
else |
|
24851 |
echo "$as_me: failed program was:" >&5 |
|
24852 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24853 |
||
24854 |
ac_cv_type_int=no |
|
24855 |
fi |
|
24856 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
24857 |
fi |
|
24858 |
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
24859 |
echo "${ECHO_T}$ac_cv_type_int" >&6 |
|
24860 |
||
24861 |
echo "$as_me:$LINENO: checking size of int" >&5 |
|
24862 |
echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
|
24863 |
if test "${ac_cv_sizeof_int+set}" = set; then |
|
24864 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
24865 |
else |
|
24866 |
if test "$ac_cv_type_int" = yes; then |
|
24867 |
# The cast to unsigned long works around a bug in the HP C Compiler |
|
24868 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
24869 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
24870 |
# This bug is HP SR number 8606223364. |
|
24871 |
if test "$cross_compiling" = yes; then |
|
24872 |
# Depending upon the size, compute the lo and hi bounds. |
|
24873 |
cat >conftest.$ac_ext <<_ACEOF |
|
24874 |
/* confdefs.h. */ |
|
24875 |
_ACEOF |
|
24876 |
cat confdefs.h >>conftest.$ac_ext |
|
24877 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24878 |
/* end confdefs.h. */ |
|
24879 |
$ac_includes_default |
|
24880 |
int |
|
24881 |
main () |
|
24882 |
{ |
|
24883 |
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
|
24884 |
test_array [0] = 0 |
|
24885 |
||
24886 |
; |
|
24887 |
return 0; |
|
24888 |
} |
|
24889 |
_ACEOF |
|
24890 |
rm -f conftest.$ac_objext |
|
24891 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
24892 |
(eval $ac_compile) 2>conftest.er1 |
|
24893 |
ac_status=$? |
|
24894 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24895 |
rm -f conftest.er1 |
|
24896 |
cat conftest.err >&5 |
|
24897 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24898 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24899 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24900 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24901 |
(eval $ac_try) 2>&5 |
|
24902 |
ac_status=$? |
|
24903 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24904 |
(exit $ac_status); }; } && |
|
24905 |
{ ac_try='test -s conftest.$ac_objext' |
|
24906 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24907 |
(eval $ac_try) 2>&5 |
|
24908 |
ac_status=$? |
|
24909 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24910 |
(exit $ac_status); }; }; then |
|
24911 |
ac_lo=0 ac_mid=0 |
|
24912 |
while :; do |
|
24913 |
cat >conftest.$ac_ext <<_ACEOF |
|
24914 |
/* confdefs.h. */ |
|
24915 |
_ACEOF |
|
24916 |
cat confdefs.h >>conftest.$ac_ext |
|
24917 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24918 |
/* end confdefs.h. */ |
|
24919 |
$ac_includes_default |
|
24920 |
int |
|
24921 |
main () |
|
24922 |
{ |
|
24923 |
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
|
24924 |
test_array [0] = 0 |
|
24925 |
||
24926 |
; |
|
24927 |
return 0; |
|
24928 |
} |
|
24929 |
_ACEOF |
|
24930 |
rm -f conftest.$ac_objext |
|
24931 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
24932 |
(eval $ac_compile) 2>conftest.er1 |
|
24933 |
ac_status=$? |
|
24934 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24935 |
rm -f conftest.er1 |
|
24936 |
cat conftest.err >&5 |
|
24937 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24938 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24939 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24940 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24941 |
(eval $ac_try) 2>&5 |
|
24942 |
ac_status=$? |
|
24943 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24944 |
(exit $ac_status); }; } && |
|
24945 |
{ ac_try='test -s conftest.$ac_objext' |
|
24946 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
24947 |
(eval $ac_try) 2>&5 |
|
24948 |
ac_status=$? |
|
24949 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24950 |
(exit $ac_status); }; }; then |
|
24951 |
ac_hi=$ac_mid; break |
|
24952 |
else |
|
24953 |
echo "$as_me: failed program was:" >&5 |
|
24954 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24955 |
||
24956 |
ac_lo=`expr $ac_mid + 1` |
|
24957 |
if test $ac_lo -le $ac_mid; then |
|
24958 |
ac_lo= ac_hi= |
|
24959 |
break |
|
24960 |
fi |
|
24961 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
24962 |
fi |
|
24963 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
24964 |
done |
|
24965 |
else |
|
24966 |
echo "$as_me: failed program was:" >&5 |
|
24967 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
24968 |
||
24969 |
cat >conftest.$ac_ext <<_ACEOF |
|
24970 |
/* confdefs.h. */ |
|
24971 |
_ACEOF |
|
24972 |
cat confdefs.h >>conftest.$ac_ext |
|
24973 |
cat >>conftest.$ac_ext <<_ACEOF |
|
24974 |
/* end confdefs.h. */ |
|
24975 |
$ac_includes_default |
|
24976 |
int |
|
24977 |
main () |
|
24978 |
{ |
|
24979 |
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
|
24980 |
test_array [0] = 0 |
|
24981 |
||
24982 |
; |
|
24983 |
return 0; |
|
24984 |
} |
|
24985 |
_ACEOF |
|
24986 |
rm -f conftest.$ac_objext |
|
24987 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
24988 |
(eval $ac_compile) 2>conftest.er1 |
|
24989 |
ac_status=$? |
|
24990 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
24991 |
rm -f conftest.er1 |
|
24992 |
cat conftest.err >&5 |
|
24993 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24994 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
24995 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
24996 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24997 |
(eval $ac_try) 2>&5 |
|
24998 |
ac_status=$? |
|
24999 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25000 |
(exit $ac_status); }; } && |
|
25001 |
{ ac_try='test -s conftest.$ac_objext' |
|
25002 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25003 |
(eval $ac_try) 2>&5 |
|
25004 |
ac_status=$? |
|
25005 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25006 |
(exit $ac_status); }; }; then |
|
25007 |
ac_hi=-1 ac_mid=-1 |
|
25008 |
while :; do |
|
25009 |
cat >conftest.$ac_ext <<_ACEOF |
|
25010 |
/* confdefs.h. */ |
|
25011 |
_ACEOF |
|
25012 |
cat confdefs.h >>conftest.$ac_ext |
|
25013 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25014 |
/* end confdefs.h. */ |
|
25015 |
$ac_includes_default |
|
25016 |
int |
|
25017 |
main () |
|
25018 |
{ |
|
25019 |
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
|
25020 |
test_array [0] = 0 |
|
25021 |
||
25022 |
; |
|
25023 |
return 0; |
|
25024 |
} |
|
25025 |
_ACEOF |
|
25026 |
rm -f conftest.$ac_objext |
|
25027 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25028 |
(eval $ac_compile) 2>conftest.er1 |
|
25029 |
ac_status=$? |
|
25030 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25031 |
rm -f conftest.er1 |
|
25032 |
cat conftest.err >&5 |
|
25033 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25034 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25035 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25036 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25037 |
(eval $ac_try) 2>&5 |
|
25038 |
ac_status=$? |
|
25039 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25040 |
(exit $ac_status); }; } && |
|
25041 |
{ ac_try='test -s conftest.$ac_objext' |
|
25042 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25043 |
(eval $ac_try) 2>&5 |
|
25044 |
ac_status=$? |
|
25045 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25046 |
(exit $ac_status); }; }; then |
|
25047 |
ac_lo=$ac_mid; break |
|
25048 |
else |
|
25049 |
echo "$as_me: failed program was:" >&5 |
|
25050 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25051 |
||
25052 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
25053 |
if test $ac_mid -le $ac_hi; then |
|
25054 |
ac_lo= ac_hi= |
|
25055 |
break |
|
25056 |
fi |
|
25057 |
ac_mid=`expr 2 '*' $ac_mid` |
|
25058 |
fi |
|
25059 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25060 |
done |
|
25061 |
else |
|
25062 |
echo "$as_me: failed program was:" >&5 |
|
25063 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25064 |
||
25065 |
ac_lo= ac_hi= |
|
25066 |
fi |
|
25067 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25068 |
fi |
|
25069 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25070 |
# Binary search between lo and hi bounds. |
|
25071 |
while test "x$ac_lo" != "x$ac_hi"; do |
|
25072 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
25073 |
cat >conftest.$ac_ext <<_ACEOF |
|
25074 |
/* confdefs.h. */ |
|
25075 |
_ACEOF |
|
25076 |
cat confdefs.h >>conftest.$ac_ext |
|
25077 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25078 |
/* end confdefs.h. */ |
|
25079 |
$ac_includes_default |
|
25080 |
int |
|
25081 |
main () |
|
25082 |
{ |
|
25083 |
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
|
25084 |
test_array [0] = 0 |
|
25085 |
||
25086 |
; |
|
25087 |
return 0; |
|
25088 |
} |
|
25089 |
_ACEOF |
|
25090 |
rm -f conftest.$ac_objext |
|
25091 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25092 |
(eval $ac_compile) 2>conftest.er1 |
|
25093 |
ac_status=$? |
|
25094 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25095 |
rm -f conftest.er1 |
|
25096 |
cat conftest.err >&5 |
|
25097 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25098 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25099 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25100 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25101 |
(eval $ac_try) 2>&5 |
|
25102 |
ac_status=$? |
|
25103 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25104 |
(exit $ac_status); }; } && |
|
25105 |
{ ac_try='test -s conftest.$ac_objext' |
|
25106 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25107 |
(eval $ac_try) 2>&5 |
|
25108 |
ac_status=$? |
|
25109 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25110 |
(exit $ac_status); }; }; then |
|
25111 |
ac_hi=$ac_mid |
|
25112 |
else |
|
25113 |
echo "$as_me: failed program was:" >&5 |
|
25114 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25115 |
||
25116 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
25117 |
fi |
|
25118 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25119 |
done |
|
25120 |
case $ac_lo in |
|
25121 |
?*) ac_cv_sizeof_int=$ac_lo;; |
|
25122 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
|
25123 |
See \`config.log' for more details." >&5 |
|
25124 |
echo "$as_me: error: cannot compute sizeof (int), 77 |
|
25125 |
See \`config.log' for more details." >&2;} |
|
25126 |
{ (exit 1); exit 1; }; } ;; |
|
25127 |
esac |
|
25128 |
else |
|
25129 |
if test "$cross_compiling" = yes; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25130 |
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
25131 |
echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
25132 |
{ (exit 1); exit 1; }; } |
25133 |
else |
|
25134 |
cat >conftest.$ac_ext <<_ACEOF |
|
25135 |
/* confdefs.h. */ |
|
25136 |
_ACEOF |
|
25137 |
cat confdefs.h >>conftest.$ac_ext |
|
25138 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25139 |
/* end confdefs.h. */ |
|
25140 |
$ac_includes_default |
|
25141 |
long longval () { return (long) (sizeof (int)); } |
|
25142 |
unsigned long ulongval () { return (long) (sizeof (int)); } |
|
25143 |
#include <stdio.h> |
|
25144 |
#include <stdlib.h> |
|
25145 |
int |
|
25146 |
main () |
|
25147 |
{ |
|
25148 |
||
25149 |
FILE *f = fopen ("conftest.val", "w"); |
|
25150 |
if (! f) |
|
25151 |
exit (1); |
|
25152 |
if (((long) (sizeof (int))) < 0) |
|
25153 |
{ |
|
25154 |
long i = longval (); |
|
25155 |
if (i != ((long) (sizeof (int)))) |
|
25156 |
exit (1); |
|
25157 |
fprintf (f, "%ld\n", i); |
|
25158 |
} |
|
25159 |
else |
|
25160 |
{ |
|
25161 |
unsigned long i = ulongval (); |
|
25162 |
if (i != ((long) (sizeof (int)))) |
|
25163 |
exit (1); |
|
25164 |
fprintf (f, "%lu\n", i); |
|
25165 |
} |
|
25166 |
exit (ferror (f) || fclose (f) != 0); |
|
25167 |
||
25168 |
; |
|
25169 |
return 0; |
|
25170 |
} |
|
25171 |
_ACEOF |
|
25172 |
rm -f conftest$ac_exeext |
|
25173 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
25174 |
(eval $ac_link) 2>&5 |
|
25175 |
ac_status=$? |
|
25176 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25177 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
25178 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25179 |
(eval $ac_try) 2>&5 |
|
25180 |
ac_status=$? |
|
25181 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25182 |
(exit $ac_status); }; }; then |
|
25183 |
ac_cv_sizeof_int=`cat conftest.val` |
|
25184 |
else |
|
25185 |
echo "$as_me: program exited with status $ac_status" >&5 |
|
25186 |
echo "$as_me: failed program was:" >&5 |
|
25187 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25188 |
||
25189 |
( exit $ac_status ) |
|
25190 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
|
25191 |
See \`config.log' for more details." >&5 |
|
25192 |
echo "$as_me: error: cannot compute sizeof (int), 77 |
|
25193 |
See \`config.log' for more details." >&2;} |
|
25194 |
{ (exit 1); exit 1; }; } |
|
25195 |
fi |
|
25196 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
25197 |
fi |
|
25198 |
fi |
|
25199 |
rm -f conftest.val |
|
25200 |
else |
|
25201 |
ac_cv_sizeof_int=0 |
|
25202 |
fi |
|
25203 |
fi |
|
25204 |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
25205 |
echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
|
25206 |
cat >>confdefs.h <<_ACEOF |
|
25207 |
#define SIZEOF_INT $ac_cv_sizeof_int |
|
25208 |
_ACEOF |
|
25209 |
||
25210 |
echo "$as_me:$LINENO: checking for short" >&5 |
|
25211 |
echo $ECHO_N "checking for short... $ECHO_C" >&6 |
|
25212 |
if test "${ac_cv_type_short+set}" = set; then |
|
25213 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
25214 |
else |
|
25215 |
cat >conftest.$ac_ext <<_ACEOF |
|
25216 |
/* confdefs.h. */ |
|
25217 |
_ACEOF |
|
25218 |
cat confdefs.h >>conftest.$ac_ext |
|
25219 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25220 |
/* end confdefs.h. */ |
|
25221 |
$ac_includes_default |
|
25222 |
int |
|
25223 |
main () |
|
25224 |
{ |
|
25225 |
if ((short *) 0) |
|
25226 |
return 0; |
|
25227 |
if (sizeof (short)) |
|
25228 |
return 0; |
|
25229 |
; |
|
25230 |
return 0; |
|
25231 |
} |
|
25232 |
_ACEOF |
|
25233 |
rm -f conftest.$ac_objext |
|
25234 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25235 |
(eval $ac_compile) 2>conftest.er1 |
|
25236 |
ac_status=$? |
|
25237 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25238 |
rm -f conftest.er1 |
|
25239 |
cat conftest.err >&5 |
|
25240 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25241 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25242 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25243 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25244 |
(eval $ac_try) 2>&5 |
|
25245 |
ac_status=$? |
|
25246 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25247 |
(exit $ac_status); }; } && |
|
25248 |
{ ac_try='test -s conftest.$ac_objext' |
|
25249 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25250 |
(eval $ac_try) 2>&5 |
|
25251 |
ac_status=$? |
|
25252 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25253 |
(exit $ac_status); }; }; then |
|
25254 |
ac_cv_type_short=yes |
|
25255 |
else |
|
25256 |
echo "$as_me: failed program was:" >&5 |
|
25257 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25258 |
||
25259 |
ac_cv_type_short=no |
|
25260 |
fi |
|
25261 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25262 |
fi |
|
25263 |
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
25264 |
echo "${ECHO_T}$ac_cv_type_short" >&6 |
|
25265 |
||
25266 |
echo "$as_me:$LINENO: checking size of short" >&5 |
|
25267 |
echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
|
25268 |
if test "${ac_cv_sizeof_short+set}" = set; then |
|
25269 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
25270 |
else |
|
25271 |
if test "$ac_cv_type_short" = yes; then |
|
25272 |
# The cast to unsigned long works around a bug in the HP C Compiler |
|
25273 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
25274 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
25275 |
# This bug is HP SR number 8606223364. |
|
25276 |
if test "$cross_compiling" = yes; then |
|
25277 |
# Depending upon the size, compute the lo and hi bounds. |
|
25278 |
cat >conftest.$ac_ext <<_ACEOF |
|
25279 |
/* confdefs.h. */ |
|
25280 |
_ACEOF |
|
25281 |
cat confdefs.h >>conftest.$ac_ext |
|
25282 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25283 |
/* end confdefs.h. */ |
|
25284 |
$ac_includes_default |
|
25285 |
int |
|
25286 |
main () |
|
25287 |
{ |
|
25288 |
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
|
25289 |
test_array [0] = 0 |
|
25290 |
||
25291 |
; |
|
25292 |
return 0; |
|
25293 |
} |
|
25294 |
_ACEOF |
|
25295 |
rm -f conftest.$ac_objext |
|
25296 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25297 |
(eval $ac_compile) 2>conftest.er1 |
|
25298 |
ac_status=$? |
|
25299 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25300 |
rm -f conftest.er1 |
|
25301 |
cat conftest.err >&5 |
|
25302 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25303 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25304 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25305 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25306 |
(eval $ac_try) 2>&5 |
|
25307 |
ac_status=$? |
|
25308 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25309 |
(exit $ac_status); }; } && |
|
25310 |
{ ac_try='test -s conftest.$ac_objext' |
|
25311 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25312 |
(eval $ac_try) 2>&5 |
|
25313 |
ac_status=$? |
|
25314 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25315 |
(exit $ac_status); }; }; then |
|
25316 |
ac_lo=0 ac_mid=0 |
|
25317 |
while :; do |
|
25318 |
cat >conftest.$ac_ext <<_ACEOF |
|
25319 |
/* confdefs.h. */ |
|
25320 |
_ACEOF |
|
25321 |
cat confdefs.h >>conftest.$ac_ext |
|
25322 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25323 |
/* end confdefs.h. */ |
|
25324 |
$ac_includes_default |
|
25325 |
int |
|
25326 |
main () |
|
25327 |
{ |
|
25328 |
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
|
25329 |
test_array [0] = 0 |
|
25330 |
||
25331 |
; |
|
25332 |
return 0; |
|
25333 |
} |
|
25334 |
_ACEOF |
|
25335 |
rm -f conftest.$ac_objext |
|
25336 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25337 |
(eval $ac_compile) 2>conftest.er1 |
|
25338 |
ac_status=$? |
|
25339 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25340 |
rm -f conftest.er1 |
|
25341 |
cat conftest.err >&5 |
|
25342 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25343 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25344 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25345 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25346 |
(eval $ac_try) 2>&5 |
|
25347 |
ac_status=$? |
|
25348 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25349 |
(exit $ac_status); }; } && |
|
25350 |
{ ac_try='test -s conftest.$ac_objext' |
|
25351 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25352 |
(eval $ac_try) 2>&5 |
|
25353 |
ac_status=$? |
|
25354 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25355 |
(exit $ac_status); }; }; then |
|
25356 |
ac_hi=$ac_mid; break |
|
25357 |
else |
|
25358 |
echo "$as_me: failed program was:" >&5 |
|
25359 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25360 |
||
25361 |
ac_lo=`expr $ac_mid + 1` |
|
25362 |
if test $ac_lo -le $ac_mid; then |
|
25363 |
ac_lo= ac_hi= |
|
25364 |
break |
|
25365 |
fi |
|
25366 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
25367 |
fi |
|
25368 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25369 |
done |
|
25370 |
else |
|
25371 |
echo "$as_me: failed program was:" >&5 |
|
25372 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25373 |
||
25374 |
cat >conftest.$ac_ext <<_ACEOF |
|
25375 |
/* confdefs.h. */ |
|
25376 |
_ACEOF |
|
25377 |
cat confdefs.h >>conftest.$ac_ext |
|
25378 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25379 |
/* end confdefs.h. */ |
|
25380 |
$ac_includes_default |
|
25381 |
int |
|
25382 |
main () |
|
25383 |
{ |
|
25384 |
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
|
25385 |
test_array [0] = 0 |
|
25386 |
||
25387 |
; |
|
25388 |
return 0; |
|
25389 |
} |
|
25390 |
_ACEOF |
|
25391 |
rm -f conftest.$ac_objext |
|
25392 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25393 |
(eval $ac_compile) 2>conftest.er1 |
|
25394 |
ac_status=$? |
|
25395 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25396 |
rm -f conftest.er1 |
|
25397 |
cat conftest.err >&5 |
|
25398 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25399 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25400 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25401 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25402 |
(eval $ac_try) 2>&5 |
|
25403 |
ac_status=$? |
|
25404 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25405 |
(exit $ac_status); }; } && |
|
25406 |
{ ac_try='test -s conftest.$ac_objext' |
|
25407 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25408 |
(eval $ac_try) 2>&5 |
|
25409 |
ac_status=$? |
|
25410 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25411 |
(exit $ac_status); }; }; then |
|
25412 |
ac_hi=-1 ac_mid=-1 |
|
25413 |
while :; do |
|
25414 |
cat >conftest.$ac_ext <<_ACEOF |
|
25415 |
/* confdefs.h. */ |
|
25416 |
_ACEOF |
|
25417 |
cat confdefs.h >>conftest.$ac_ext |
|
25418 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25419 |
/* end confdefs.h. */ |
|
25420 |
$ac_includes_default |
|
25421 |
int |
|
25422 |
main () |
|
25423 |
{ |
|
25424 |
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
|
25425 |
test_array [0] = 0 |
|
25426 |
||
25427 |
; |
|
25428 |
return 0; |
|
25429 |
} |
|
25430 |
_ACEOF |
|
25431 |
rm -f conftest.$ac_objext |
|
25432 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25433 |
(eval $ac_compile) 2>conftest.er1 |
|
25434 |
ac_status=$? |
|
25435 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25436 |
rm -f conftest.er1 |
|
25437 |
cat conftest.err >&5 |
|
25438 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25439 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25440 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25441 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25442 |
(eval $ac_try) 2>&5 |
|
25443 |
ac_status=$? |
|
25444 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25445 |
(exit $ac_status); }; } && |
|
25446 |
{ ac_try='test -s conftest.$ac_objext' |
|
25447 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25448 |
(eval $ac_try) 2>&5 |
|
25449 |
ac_status=$? |
|
25450 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25451 |
(exit $ac_status); }; }; then |
|
25452 |
ac_lo=$ac_mid; break |
|
25453 |
else |
|
25454 |
echo "$as_me: failed program was:" >&5 |
|
25455 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25456 |
||
25457 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
25458 |
if test $ac_mid -le $ac_hi; then |
|
25459 |
ac_lo= ac_hi= |
|
25460 |
break |
|
25461 |
fi |
|
25462 |
ac_mid=`expr 2 '*' $ac_mid` |
|
25463 |
fi |
|
25464 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25465 |
done |
|
25466 |
else |
|
25467 |
echo "$as_me: failed program was:" >&5 |
|
25468 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25469 |
||
25470 |
ac_lo= ac_hi= |
|
25471 |
fi |
|
25472 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25473 |
fi |
|
25474 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25475 |
# Binary search between lo and hi bounds. |
|
25476 |
while test "x$ac_lo" != "x$ac_hi"; do |
|
25477 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
25478 |
cat >conftest.$ac_ext <<_ACEOF |
|
25479 |
/* confdefs.h. */ |
|
25480 |
_ACEOF |
|
25481 |
cat confdefs.h >>conftest.$ac_ext |
|
25482 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25483 |
/* end confdefs.h. */ |
|
25484 |
$ac_includes_default |
|
25485 |
int |
|
25486 |
main () |
|
25487 |
{ |
|
25488 |
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
|
25489 |
test_array [0] = 0 |
|
25490 |
||
25491 |
; |
|
25492 |
return 0; |
|
25493 |
} |
|
25494 |
_ACEOF |
|
25495 |
rm -f conftest.$ac_objext |
|
25496 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25497 |
(eval $ac_compile) 2>conftest.er1 |
|
25498 |
ac_status=$? |
|
25499 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25500 |
rm -f conftest.er1 |
|
25501 |
cat conftest.err >&5 |
|
25502 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25503 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25504 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25505 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25506 |
(eval $ac_try) 2>&5 |
|
25507 |
ac_status=$? |
|
25508 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25509 |
(exit $ac_status); }; } && |
|
25510 |
{ ac_try='test -s conftest.$ac_objext' |
|
25511 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25512 |
(eval $ac_try) 2>&5 |
|
25513 |
ac_status=$? |
|
25514 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25515 |
(exit $ac_status); }; }; then |
|
25516 |
ac_hi=$ac_mid |
|
25517 |
else |
|
25518 |
echo "$as_me: failed program was:" >&5 |
|
25519 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25520 |
||
25521 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
25522 |
fi |
|
25523 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25524 |
done |
|
25525 |
case $ac_lo in |
|
25526 |
?*) ac_cv_sizeof_short=$ac_lo;; |
|
25527 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
|
25528 |
See \`config.log' for more details." >&5 |
|
25529 |
echo "$as_me: error: cannot compute sizeof (short), 77 |
|
25530 |
See \`config.log' for more details." >&2;} |
|
25531 |
{ (exit 1); exit 1; }; } ;; |
|
25532 |
esac |
|
25533 |
else |
|
25534 |
if test "$cross_compiling" = yes; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25535 |
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
25536 |
echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
25537 |
{ (exit 1); exit 1; }; } |
25538 |
else |
|
25539 |
cat >conftest.$ac_ext <<_ACEOF |
|
25540 |
/* confdefs.h. */ |
|
25541 |
_ACEOF |
|
25542 |
cat confdefs.h >>conftest.$ac_ext |
|
25543 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25544 |
/* end confdefs.h. */ |
|
25545 |
$ac_includes_default |
|
25546 |
long longval () { return (long) (sizeof (short)); } |
|
25547 |
unsigned long ulongval () { return (long) (sizeof (short)); } |
|
25548 |
#include <stdio.h> |
|
25549 |
#include <stdlib.h> |
|
25550 |
int |
|
25551 |
main () |
|
25552 |
{ |
|
25553 |
||
25554 |
FILE *f = fopen ("conftest.val", "w"); |
|
25555 |
if (! f) |
|
25556 |
exit (1); |
|
25557 |
if (((long) (sizeof (short))) < 0) |
|
25558 |
{ |
|
25559 |
long i = longval (); |
|
25560 |
if (i != ((long) (sizeof (short)))) |
|
25561 |
exit (1); |
|
25562 |
fprintf (f, "%ld\n", i); |
|
25563 |
} |
|
25564 |
else |
|
25565 |
{ |
|
25566 |
unsigned long i = ulongval (); |
|
25567 |
if (i != ((long) (sizeof (short)))) |
|
25568 |
exit (1); |
|
25569 |
fprintf (f, "%lu\n", i); |
|
25570 |
} |
|
25571 |
exit (ferror (f) || fclose (f) != 0); |
|
25572 |
||
25573 |
; |
|
25574 |
return 0; |
|
25575 |
} |
|
25576 |
_ACEOF |
|
25577 |
rm -f conftest$ac_exeext |
|
25578 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
25579 |
(eval $ac_link) 2>&5 |
|
25580 |
ac_status=$? |
|
25581 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25582 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
25583 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25584 |
(eval $ac_try) 2>&5 |
|
25585 |
ac_status=$? |
|
25586 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25587 |
(exit $ac_status); }; }; then |
|
25588 |
ac_cv_sizeof_short=`cat conftest.val` |
|
25589 |
else |
|
25590 |
echo "$as_me: program exited with status $ac_status" >&5 |
|
25591 |
echo "$as_me: failed program was:" >&5 |
|
25592 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25593 |
||
25594 |
( exit $ac_status ) |
|
25595 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
|
25596 |
See \`config.log' for more details." >&5 |
|
25597 |
echo "$as_me: error: cannot compute sizeof (short), 77 |
|
25598 |
See \`config.log' for more details." >&2;} |
|
25599 |
{ (exit 1); exit 1; }; } |
|
25600 |
fi |
|
25601 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
25602 |
fi |
|
25603 |
fi |
|
25604 |
rm -f conftest.val |
|
25605 |
else |
|
25606 |
ac_cv_sizeof_short=0 |
|
25607 |
fi |
|
25608 |
fi |
|
25609 |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
|
25610 |
echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
|
25611 |
cat >>confdefs.h <<_ACEOF |
|
25612 |
#define SIZEOF_SHORT $ac_cv_sizeof_short |
|
25613 |
_ACEOF |
|
25614 |
||
25615 |
echo "$as_me:$LINENO: checking for long" >&5 |
|
25616 |
echo $ECHO_N "checking for long... $ECHO_C" >&6 |
|
25617 |
if test "${ac_cv_type_long+set}" = set; then |
|
25618 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
25619 |
else |
|
25620 |
cat >conftest.$ac_ext <<_ACEOF |
|
25621 |
/* confdefs.h. */ |
|
25622 |
_ACEOF |
|
25623 |
cat confdefs.h >>conftest.$ac_ext |
|
25624 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25625 |
/* end confdefs.h. */ |
|
25626 |
$ac_includes_default |
|
25627 |
int |
|
25628 |
main () |
|
25629 |
{ |
|
25630 |
if ((long *) 0) |
|
25631 |
return 0; |
|
25632 |
if (sizeof (long)) |
|
25633 |
return 0; |
|
25634 |
; |
|
25635 |
return 0; |
|
25636 |
} |
|
25637 |
_ACEOF |
|
25638 |
rm -f conftest.$ac_objext |
|
25639 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25640 |
(eval $ac_compile) 2>conftest.er1 |
|
25641 |
ac_status=$? |
|
25642 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25643 |
rm -f conftest.er1 |
|
25644 |
cat conftest.err >&5 |
|
25645 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25646 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25647 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25648 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25649 |
(eval $ac_try) 2>&5 |
|
25650 |
ac_status=$? |
|
25651 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25652 |
(exit $ac_status); }; } && |
|
25653 |
{ ac_try='test -s conftest.$ac_objext' |
|
25654 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25655 |
(eval $ac_try) 2>&5 |
|
25656 |
ac_status=$? |
|
25657 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25658 |
(exit $ac_status); }; }; then |
|
25659 |
ac_cv_type_long=yes |
|
25660 |
else |
|
25661 |
echo "$as_me: failed program was:" >&5 |
|
25662 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25663 |
||
25664 |
ac_cv_type_long=no |
|
25665 |
fi |
|
25666 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25667 |
fi |
|
25668 |
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
|
25669 |
echo "${ECHO_T}$ac_cv_type_long" >&6 |
|
25670 |
||
25671 |
echo "$as_me:$LINENO: checking size of long" >&5 |
|
25672 |
echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
|
25673 |
if test "${ac_cv_sizeof_long+set}" = set; then |
|
25674 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
25675 |
else |
|
25676 |
if test "$ac_cv_type_long" = yes; then |
|
25677 |
# The cast to unsigned long works around a bug in the HP C Compiler |
|
25678 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
25679 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
25680 |
# This bug is HP SR number 8606223364. |
|
25681 |
if test "$cross_compiling" = yes; then |
|
25682 |
# Depending upon the size, compute the lo and hi bounds. |
|
25683 |
cat >conftest.$ac_ext <<_ACEOF |
|
25684 |
/* confdefs.h. */ |
|
25685 |
_ACEOF |
|
25686 |
cat confdefs.h >>conftest.$ac_ext |
|
25687 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25688 |
/* end confdefs.h. */ |
|
25689 |
$ac_includes_default |
|
25690 |
int |
|
25691 |
main () |
|
25692 |
{ |
|
25693 |
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
|
25694 |
test_array [0] = 0 |
|
25695 |
||
25696 |
; |
|
25697 |
return 0; |
|
25698 |
} |
|
25699 |
_ACEOF |
|
25700 |
rm -f conftest.$ac_objext |
|
25701 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25702 |
(eval $ac_compile) 2>conftest.er1 |
|
25703 |
ac_status=$? |
|
25704 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25705 |
rm -f conftest.er1 |
|
25706 |
cat conftest.err >&5 |
|
25707 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25708 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25709 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25710 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25711 |
(eval $ac_try) 2>&5 |
|
25712 |
ac_status=$? |
|
25713 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25714 |
(exit $ac_status); }; } && |
|
25715 |
{ ac_try='test -s conftest.$ac_objext' |
|
25716 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25717 |
(eval $ac_try) 2>&5 |
|
25718 |
ac_status=$? |
|
25719 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25720 |
(exit $ac_status); }; }; then |
|
25721 |
ac_lo=0 ac_mid=0 |
|
25722 |
while :; do |
|
25723 |
cat >conftest.$ac_ext <<_ACEOF |
|
25724 |
/* confdefs.h. */ |
|
25725 |
_ACEOF |
|
25726 |
cat confdefs.h >>conftest.$ac_ext |
|
25727 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25728 |
/* end confdefs.h. */ |
|
25729 |
$ac_includes_default |
|
25730 |
int |
|
25731 |
main () |
|
25732 |
{ |
|
25733 |
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
25734 |
test_array [0] = 0 |
|
25735 |
||
25736 |
; |
|
25737 |
return 0; |
|
25738 |
} |
|
25739 |
_ACEOF |
|
25740 |
rm -f conftest.$ac_objext |
|
25741 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25742 |
(eval $ac_compile) 2>conftest.er1 |
|
25743 |
ac_status=$? |
|
25744 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25745 |
rm -f conftest.er1 |
|
25746 |
cat conftest.err >&5 |
|
25747 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25748 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25749 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25750 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25751 |
(eval $ac_try) 2>&5 |
|
25752 |
ac_status=$? |
|
25753 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25754 |
(exit $ac_status); }; } && |
|
25755 |
{ ac_try='test -s conftest.$ac_objext' |
|
25756 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25757 |
(eval $ac_try) 2>&5 |
|
25758 |
ac_status=$? |
|
25759 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25760 |
(exit $ac_status); }; }; then |
|
25761 |
ac_hi=$ac_mid; break |
|
25762 |
else |
|
25763 |
echo "$as_me: failed program was:" >&5 |
|
25764 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25765 |
||
25766 |
ac_lo=`expr $ac_mid + 1` |
|
25767 |
if test $ac_lo -le $ac_mid; then |
|
25768 |
ac_lo= ac_hi= |
|
25769 |
break |
|
25770 |
fi |
|
25771 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
25772 |
fi |
|
25773 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25774 |
done |
|
25775 |
else |
|
25776 |
echo "$as_me: failed program was:" >&5 |
|
25777 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25778 |
||
25779 |
cat >conftest.$ac_ext <<_ACEOF |
|
25780 |
/* confdefs.h. */ |
|
25781 |
_ACEOF |
|
25782 |
cat confdefs.h >>conftest.$ac_ext |
|
25783 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25784 |
/* end confdefs.h. */ |
|
25785 |
$ac_includes_default |
|
25786 |
int |
|
25787 |
main () |
|
25788 |
{ |
|
25789 |
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
|
25790 |
test_array [0] = 0 |
|
25791 |
||
25792 |
; |
|
25793 |
return 0; |
|
25794 |
} |
|
25795 |
_ACEOF |
|
25796 |
rm -f conftest.$ac_objext |
|
25797 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25798 |
(eval $ac_compile) 2>conftest.er1 |
|
25799 |
ac_status=$? |
|
25800 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25801 |
rm -f conftest.er1 |
|
25802 |
cat conftest.err >&5 |
|
25803 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25804 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25805 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25806 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25807 |
(eval $ac_try) 2>&5 |
|
25808 |
ac_status=$? |
|
25809 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25810 |
(exit $ac_status); }; } && |
|
25811 |
{ ac_try='test -s conftest.$ac_objext' |
|
25812 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25813 |
(eval $ac_try) 2>&5 |
|
25814 |
ac_status=$? |
|
25815 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25816 |
(exit $ac_status); }; }; then |
|
25817 |
ac_hi=-1 ac_mid=-1 |
|
25818 |
while :; do |
|
25819 |
cat >conftest.$ac_ext <<_ACEOF |
|
25820 |
/* confdefs.h. */ |
|
25821 |
_ACEOF |
|
25822 |
cat confdefs.h >>conftest.$ac_ext |
|
25823 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25824 |
/* end confdefs.h. */ |
|
25825 |
$ac_includes_default |
|
25826 |
int |
|
25827 |
main () |
|
25828 |
{ |
|
25829 |
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
|
25830 |
test_array [0] = 0 |
|
25831 |
||
25832 |
; |
|
25833 |
return 0; |
|
25834 |
} |
|
25835 |
_ACEOF |
|
25836 |
rm -f conftest.$ac_objext |
|
25837 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25838 |
(eval $ac_compile) 2>conftest.er1 |
|
25839 |
ac_status=$? |
|
25840 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25841 |
rm -f conftest.er1 |
|
25842 |
cat conftest.err >&5 |
|
25843 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25844 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25845 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25846 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25847 |
(eval $ac_try) 2>&5 |
|
25848 |
ac_status=$? |
|
25849 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25850 |
(exit $ac_status); }; } && |
|
25851 |
{ ac_try='test -s conftest.$ac_objext' |
|
25852 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25853 |
(eval $ac_try) 2>&5 |
|
25854 |
ac_status=$? |
|
25855 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25856 |
(exit $ac_status); }; }; then |
|
25857 |
ac_lo=$ac_mid; break |
|
25858 |
else |
|
25859 |
echo "$as_me: failed program was:" >&5 |
|
25860 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25861 |
||
25862 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
25863 |
if test $ac_mid -le $ac_hi; then |
|
25864 |
ac_lo= ac_hi= |
|
25865 |
break |
|
25866 |
fi |
|
25867 |
ac_mid=`expr 2 '*' $ac_mid` |
|
25868 |
fi |
|
25869 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25870 |
done |
|
25871 |
else |
|
25872 |
echo "$as_me: failed program was:" >&5 |
|
25873 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25874 |
||
25875 |
ac_lo= ac_hi= |
|
25876 |
fi |
|
25877 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25878 |
fi |
|
25879 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25880 |
# Binary search between lo and hi bounds. |
|
25881 |
while test "x$ac_lo" != "x$ac_hi"; do |
|
25882 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
25883 |
cat >conftest.$ac_ext <<_ACEOF |
|
25884 |
/* confdefs.h. */ |
|
25885 |
_ACEOF |
|
25886 |
cat confdefs.h >>conftest.$ac_ext |
|
25887 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25888 |
/* end confdefs.h. */ |
|
25889 |
$ac_includes_default |
|
25890 |
int |
|
25891 |
main () |
|
25892 |
{ |
|
25893 |
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
25894 |
test_array [0] = 0 |
|
25895 |
||
25896 |
; |
|
25897 |
return 0; |
|
25898 |
} |
|
25899 |
_ACEOF |
|
25900 |
rm -f conftest.$ac_objext |
|
25901 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
25902 |
(eval $ac_compile) 2>conftest.er1 |
|
25903 |
ac_status=$? |
|
25904 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
25905 |
rm -f conftest.er1 |
|
25906 |
cat conftest.err >&5 |
|
25907 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25908 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25909 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
25910 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25911 |
(eval $ac_try) 2>&5 |
|
25912 |
ac_status=$? |
|
25913 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25914 |
(exit $ac_status); }; } && |
|
25915 |
{ ac_try='test -s conftest.$ac_objext' |
|
25916 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25917 |
(eval $ac_try) 2>&5 |
|
25918 |
ac_status=$? |
|
25919 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25920 |
(exit $ac_status); }; }; then |
|
25921 |
ac_hi=$ac_mid |
|
25922 |
else |
|
25923 |
echo "$as_me: failed program was:" >&5 |
|
25924 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25925 |
||
25926 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
25927 |
fi |
|
25928 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
25929 |
done |
|
25930 |
case $ac_lo in |
|
25931 |
?*) ac_cv_sizeof_long=$ac_lo;; |
|
25932 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
25933 |
See \`config.log' for more details." >&5 |
|
25934 |
echo "$as_me: error: cannot compute sizeof (long), 77 |
|
25935 |
See \`config.log' for more details." >&2;} |
|
25936 |
{ (exit 1); exit 1; }; } ;; |
|
25937 |
esac |
|
25938 |
else |
|
25939 |
if test "$cross_compiling" = yes; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
25940 |
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
25941 |
echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
25942 |
{ (exit 1); exit 1; }; } |
25943 |
else |
|
25944 |
cat >conftest.$ac_ext <<_ACEOF |
|
25945 |
/* confdefs.h. */ |
|
25946 |
_ACEOF |
|
25947 |
cat confdefs.h >>conftest.$ac_ext |
|
25948 |
cat >>conftest.$ac_ext <<_ACEOF |
|
25949 |
/* end confdefs.h. */ |
|
25950 |
$ac_includes_default |
|
25951 |
long longval () { return (long) (sizeof (long)); } |
|
25952 |
unsigned long ulongval () { return (long) (sizeof (long)); } |
|
25953 |
#include <stdio.h> |
|
25954 |
#include <stdlib.h> |
|
25955 |
int |
|
25956 |
main () |
|
25957 |
{ |
|
25958 |
||
25959 |
FILE *f = fopen ("conftest.val", "w"); |
|
25960 |
if (! f) |
|
25961 |
exit (1); |
|
25962 |
if (((long) (sizeof (long))) < 0) |
|
25963 |
{ |
|
25964 |
long i = longval (); |
|
25965 |
if (i != ((long) (sizeof (long)))) |
|
25966 |
exit (1); |
|
25967 |
fprintf (f, "%ld\n", i); |
|
25968 |
} |
|
25969 |
else |
|
25970 |
{ |
|
25971 |
unsigned long i = ulongval (); |
|
25972 |
if (i != ((long) (sizeof (long)))) |
|
25973 |
exit (1); |
|
25974 |
fprintf (f, "%lu\n", i); |
|
25975 |
} |
|
25976 |
exit (ferror (f) || fclose (f) != 0); |
|
25977 |
||
25978 |
; |
|
25979 |
return 0; |
|
25980 |
} |
|
25981 |
_ACEOF |
|
25982 |
rm -f conftest$ac_exeext |
|
25983 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
25984 |
(eval $ac_link) 2>&5 |
|
25985 |
ac_status=$? |
|
25986 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25987 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
25988 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
25989 |
(eval $ac_try) 2>&5 |
|
25990 |
ac_status=$? |
|
25991 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
25992 |
(exit $ac_status); }; }; then |
|
25993 |
ac_cv_sizeof_long=`cat conftest.val` |
|
25994 |
else |
|
25995 |
echo "$as_me: program exited with status $ac_status" >&5 |
|
25996 |
echo "$as_me: failed program was:" >&5 |
|
25997 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
25998 |
||
25999 |
( exit $ac_status ) |
|
26000 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
26001 |
See \`config.log' for more details." >&5 |
|
26002 |
echo "$as_me: error: cannot compute sizeof (long), 77 |
|
26003 |
See \`config.log' for more details." >&2;} |
|
26004 |
{ (exit 1); exit 1; }; } |
|
26005 |
fi |
|
26006 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
26007 |
fi |
|
26008 |
fi |
|
26009 |
rm -f conftest.val |
|
26010 |
else |
|
26011 |
ac_cv_sizeof_long=0 |
|
26012 |
fi |
|
26013 |
fi |
|
26014 |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
|
26015 |
echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
|
26016 |
cat >>confdefs.h <<_ACEOF |
|
26017 |
#define SIZEOF_LONG $ac_cv_sizeof_long |
|
26018 |
_ACEOF |
|
26019 |
||
26020 |
echo "$as_me:$LINENO: checking for char *" >&5 |
|
26021 |
echo $ECHO_N "checking for char *... $ECHO_C" >&6 |
|
26022 |
if test "${ac_cv_type_char_p+set}" = set; then |
|
26023 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
26024 |
else |
|
26025 |
cat >conftest.$ac_ext <<_ACEOF |
|
26026 |
/* confdefs.h. */ |
|
26027 |
_ACEOF |
|
26028 |
cat confdefs.h >>conftest.$ac_ext |
|
26029 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26030 |
/* end confdefs.h. */ |
|
26031 |
$ac_includes_default |
|
26032 |
int |
|
26033 |
main () |
|
26034 |
{ |
|
26035 |
if ((char * *) 0) |
|
26036 |
return 0; |
|
26037 |
if (sizeof (char *)) |
|
26038 |
return 0; |
|
26039 |
; |
|
26040 |
return 0; |
|
26041 |
} |
|
26042 |
_ACEOF |
|
26043 |
rm -f conftest.$ac_objext |
|
26044 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26045 |
(eval $ac_compile) 2>conftest.er1 |
|
26046 |
ac_status=$? |
|
26047 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26048 |
rm -f conftest.er1 |
|
26049 |
cat conftest.err >&5 |
|
26050 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26051 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26052 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26053 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26054 |
(eval $ac_try) 2>&5 |
|
26055 |
ac_status=$? |
|
26056 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26057 |
(exit $ac_status); }; } && |
|
26058 |
{ ac_try='test -s conftest.$ac_objext' |
|
26059 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26060 |
(eval $ac_try) 2>&5 |
|
26061 |
ac_status=$? |
|
26062 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26063 |
(exit $ac_status); }; }; then |
|
26064 |
ac_cv_type_char_p=yes |
|
26065 |
else |
|
26066 |
echo "$as_me: failed program was:" >&5 |
|
26067 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26068 |
||
26069 |
ac_cv_type_char_p=no |
|
26070 |
fi |
|
26071 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26072 |
fi |
|
26073 |
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5 |
|
26074 |
echo "${ECHO_T}$ac_cv_type_char_p" >&6 |
|
26075 |
||
26076 |
echo "$as_me:$LINENO: checking size of char *" >&5 |
|
26077 |
echo $ECHO_N "checking size of char *... $ECHO_C" >&6 |
|
26078 |
if test "${ac_cv_sizeof_char_p+set}" = set; then |
|
26079 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
26080 |
else |
|
26081 |
if test "$ac_cv_type_char_p" = yes; then |
|
26082 |
# The cast to unsigned long works around a bug in the HP C Compiler |
|
26083 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
26084 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
26085 |
# This bug is HP SR number 8606223364. |
|
26086 |
if test "$cross_compiling" = yes; then |
|
26087 |
# Depending upon the size, compute the lo and hi bounds. |
|
26088 |
cat >conftest.$ac_ext <<_ACEOF |
|
26089 |
/* confdefs.h. */ |
|
26090 |
_ACEOF |
|
26091 |
cat confdefs.h >>conftest.$ac_ext |
|
26092 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26093 |
/* end confdefs.h. */ |
|
26094 |
$ac_includes_default |
|
26095 |
int |
|
26096 |
main () |
|
26097 |
{ |
|
26098 |
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)]; |
|
26099 |
test_array [0] = 0 |
|
26100 |
||
26101 |
; |
|
26102 |
return 0; |
|
26103 |
} |
|
26104 |
_ACEOF |
|
26105 |
rm -f conftest.$ac_objext |
|
26106 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26107 |
(eval $ac_compile) 2>conftest.er1 |
|
26108 |
ac_status=$? |
|
26109 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26110 |
rm -f conftest.er1 |
|
26111 |
cat conftest.err >&5 |
|
26112 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26113 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26114 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26115 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26116 |
(eval $ac_try) 2>&5 |
|
26117 |
ac_status=$? |
|
26118 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26119 |
(exit $ac_status); }; } && |
|
26120 |
{ ac_try='test -s conftest.$ac_objext' |
|
26121 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26122 |
(eval $ac_try) 2>&5 |
|
26123 |
ac_status=$? |
|
26124 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26125 |
(exit $ac_status); }; }; then |
|
26126 |
ac_lo=0 ac_mid=0 |
|
26127 |
while :; do |
|
26128 |
cat >conftest.$ac_ext <<_ACEOF |
|
26129 |
/* confdefs.h. */ |
|
26130 |
_ACEOF |
|
26131 |
cat confdefs.h >>conftest.$ac_ext |
|
26132 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26133 |
/* end confdefs.h. */ |
|
26134 |
$ac_includes_default |
|
26135 |
int |
|
26136 |
main () |
|
26137 |
{ |
|
26138 |
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)]; |
|
26139 |
test_array [0] = 0 |
|
26140 |
||
26141 |
; |
|
26142 |
return 0; |
|
26143 |
} |
|
26144 |
_ACEOF |
|
26145 |
rm -f conftest.$ac_objext |
|
26146 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26147 |
(eval $ac_compile) 2>conftest.er1 |
|
26148 |
ac_status=$? |
|
26149 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26150 |
rm -f conftest.er1 |
|
26151 |
cat conftest.err >&5 |
|
26152 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26153 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26154 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26155 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26156 |
(eval $ac_try) 2>&5 |
|
26157 |
ac_status=$? |
|
26158 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26159 |
(exit $ac_status); }; } && |
|
26160 |
{ ac_try='test -s conftest.$ac_objext' |
|
26161 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26162 |
(eval $ac_try) 2>&5 |
|
26163 |
ac_status=$? |
|
26164 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26165 |
(exit $ac_status); }; }; then |
|
26166 |
ac_hi=$ac_mid; break |
|
26167 |
else |
|
26168 |
echo "$as_me: failed program was:" >&5 |
|
26169 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26170 |
||
26171 |
ac_lo=`expr $ac_mid + 1` |
|
26172 |
if test $ac_lo -le $ac_mid; then |
|
26173 |
ac_lo= ac_hi= |
|
26174 |
break |
|
26175 |
fi |
|
26176 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
26177 |
fi |
|
26178 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26179 |
done |
|
26180 |
else |
|
26181 |
echo "$as_me: failed program was:" >&5 |
|
26182 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26183 |
||
26184 |
cat >conftest.$ac_ext <<_ACEOF |
|
26185 |
/* confdefs.h. */ |
|
26186 |
_ACEOF |
|
26187 |
cat confdefs.h >>conftest.$ac_ext |
|
26188 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26189 |
/* end confdefs.h. */ |
|
26190 |
$ac_includes_default |
|
26191 |
int |
|
26192 |
main () |
|
26193 |
{ |
|
26194 |
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)]; |
|
26195 |
test_array [0] = 0 |
|
26196 |
||
26197 |
; |
|
26198 |
return 0; |
|
26199 |
} |
|
26200 |
_ACEOF |
|
26201 |
rm -f conftest.$ac_objext |
|
26202 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26203 |
(eval $ac_compile) 2>conftest.er1 |
|
26204 |
ac_status=$? |
|
26205 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26206 |
rm -f conftest.er1 |
|
26207 |
cat conftest.err >&5 |
|
26208 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26209 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26210 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26211 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26212 |
(eval $ac_try) 2>&5 |
|
26213 |
ac_status=$? |
|
26214 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26215 |
(exit $ac_status); }; } && |
|
26216 |
{ ac_try='test -s conftest.$ac_objext' |
|
26217 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26218 |
(eval $ac_try) 2>&5 |
|
26219 |
ac_status=$? |
|
26220 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26221 |
(exit $ac_status); }; }; then |
|
26222 |
ac_hi=-1 ac_mid=-1 |
|
26223 |
while :; do |
|
26224 |
cat >conftest.$ac_ext <<_ACEOF |
|
26225 |
/* confdefs.h. */ |
|
26226 |
_ACEOF |
|
26227 |
cat confdefs.h >>conftest.$ac_ext |
|
26228 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26229 |
/* end confdefs.h. */ |
|
26230 |
$ac_includes_default |
|
26231 |
int |
|
26232 |
main () |
|
26233 |
{ |
|
26234 |
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)]; |
|
26235 |
test_array [0] = 0 |
|
26236 |
||
26237 |
; |
|
26238 |
return 0; |
|
26239 |
} |
|
26240 |
_ACEOF |
|
26241 |
rm -f conftest.$ac_objext |
|
26242 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26243 |
(eval $ac_compile) 2>conftest.er1 |
|
26244 |
ac_status=$? |
|
26245 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26246 |
rm -f conftest.er1 |
|
26247 |
cat conftest.err >&5 |
|
26248 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26249 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26250 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26251 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26252 |
(eval $ac_try) 2>&5 |
|
26253 |
ac_status=$? |
|
26254 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26255 |
(exit $ac_status); }; } && |
|
26256 |
{ ac_try='test -s conftest.$ac_objext' |
|
26257 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26258 |
(eval $ac_try) 2>&5 |
|
26259 |
ac_status=$? |
|
26260 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26261 |
(exit $ac_status); }; }; then |
|
26262 |
ac_lo=$ac_mid; break |
|
26263 |
else |
|
26264 |
echo "$as_me: failed program was:" >&5 |
|
26265 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26266 |
||
26267 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
26268 |
if test $ac_mid -le $ac_hi; then |
|
26269 |
ac_lo= ac_hi= |
|
26270 |
break |
|
26271 |
fi |
|
26272 |
ac_mid=`expr 2 '*' $ac_mid` |
|
26273 |
fi |
|
26274 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26275 |
done |
|
26276 |
else |
|
26277 |
echo "$as_me: failed program was:" >&5 |
|
26278 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26279 |
||
26280 |
ac_lo= ac_hi= |
|
26281 |
fi |
|
26282 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26283 |
fi |
|
26284 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26285 |
# Binary search between lo and hi bounds. |
|
26286 |
while test "x$ac_lo" != "x$ac_hi"; do |
|
26287 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
26288 |
cat >conftest.$ac_ext <<_ACEOF |
|
26289 |
/* confdefs.h. */ |
|
26290 |
_ACEOF |
|
26291 |
cat confdefs.h >>conftest.$ac_ext |
|
26292 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26293 |
/* end confdefs.h. */ |
|
26294 |
$ac_includes_default |
|
26295 |
int |
|
26296 |
main () |
|
26297 |
{ |
|
26298 |
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)]; |
|
26299 |
test_array [0] = 0 |
|
26300 |
||
26301 |
; |
|
26302 |
return 0; |
|
26303 |
} |
|
26304 |
_ACEOF |
|
26305 |
rm -f conftest.$ac_objext |
|
26306 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26307 |
(eval $ac_compile) 2>conftest.er1 |
|
26308 |
ac_status=$? |
|
26309 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26310 |
rm -f conftest.er1 |
|
26311 |
cat conftest.err >&5 |
|
26312 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26313 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26314 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26315 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26316 |
(eval $ac_try) 2>&5 |
|
26317 |
ac_status=$? |
|
26318 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26319 |
(exit $ac_status); }; } && |
|
26320 |
{ ac_try='test -s conftest.$ac_objext' |
|
26321 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26322 |
(eval $ac_try) 2>&5 |
|
26323 |
ac_status=$? |
|
26324 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26325 |
(exit $ac_status); }; }; then |
|
26326 |
ac_hi=$ac_mid |
|
26327 |
else |
|
26328 |
echo "$as_me: failed program was:" >&5 |
|
26329 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26330 |
||
26331 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
26332 |
fi |
|
26333 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26334 |
done |
|
26335 |
case $ac_lo in |
|
26336 |
?*) ac_cv_sizeof_char_p=$ac_lo;; |
|
26337 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77 |
|
26338 |
See \`config.log' for more details." >&5 |
|
26339 |
echo "$as_me: error: cannot compute sizeof (char *), 77 |
|
26340 |
See \`config.log' for more details." >&2;} |
|
26341 |
{ (exit 1); exit 1; }; } ;; |
|
26342 |
esac |
|
26343 |
else |
|
26344 |
if test "$cross_compiling" = yes; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26345 |
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
26346 |
echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
26347 |
{ (exit 1); exit 1; }; } |
26348 |
else |
|
26349 |
cat >conftest.$ac_ext <<_ACEOF |
|
26350 |
/* confdefs.h. */ |
|
26351 |
_ACEOF |
|
26352 |
cat confdefs.h >>conftest.$ac_ext |
|
26353 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26354 |
/* end confdefs.h. */ |
|
26355 |
$ac_includes_default |
|
26356 |
long longval () { return (long) (sizeof (char *)); } |
|
26357 |
unsigned long ulongval () { return (long) (sizeof (char *)); } |
|
26358 |
#include <stdio.h> |
|
26359 |
#include <stdlib.h> |
|
26360 |
int |
|
26361 |
main () |
|
26362 |
{ |
|
26363 |
||
26364 |
FILE *f = fopen ("conftest.val", "w"); |
|
26365 |
if (! f) |
|
26366 |
exit (1); |
|
26367 |
if (((long) (sizeof (char *))) < 0) |
|
26368 |
{ |
|
26369 |
long i = longval (); |
|
26370 |
if (i != ((long) (sizeof (char *)))) |
|
26371 |
exit (1); |
|
26372 |
fprintf (f, "%ld\n", i); |
|
26373 |
} |
|
26374 |
else |
|
26375 |
{ |
|
26376 |
unsigned long i = ulongval (); |
|
26377 |
if (i != ((long) (sizeof (char *)))) |
|
26378 |
exit (1); |
|
26379 |
fprintf (f, "%lu\n", i); |
|
26380 |
} |
|
26381 |
exit (ferror (f) || fclose (f) != 0); |
|
26382 |
||
26383 |
; |
|
26384 |
return 0; |
|
26385 |
} |
|
26386 |
_ACEOF |
|
26387 |
rm -f conftest$ac_exeext |
|
26388 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
26389 |
(eval $ac_link) 2>&5 |
|
26390 |
ac_status=$? |
|
26391 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26392 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
26393 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26394 |
(eval $ac_try) 2>&5 |
|
26395 |
ac_status=$? |
|
26396 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26397 |
(exit $ac_status); }; }; then |
|
26398 |
ac_cv_sizeof_char_p=`cat conftest.val` |
|
26399 |
else |
|
26400 |
echo "$as_me: program exited with status $ac_status" >&5 |
|
26401 |
echo "$as_me: failed program was:" >&5 |
|
26402 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26403 |
||
26404 |
( exit $ac_status ) |
|
26405 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77 |
|
26406 |
See \`config.log' for more details." >&5 |
|
26407 |
echo "$as_me: error: cannot compute sizeof (char *), 77 |
|
26408 |
See \`config.log' for more details." >&2;} |
|
26409 |
{ (exit 1); exit 1; }; } |
|
26410 |
fi |
|
26411 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
26412 |
fi |
|
26413 |
fi |
|
26414 |
rm -f conftest.val |
|
26415 |
else |
|
26416 |
ac_cv_sizeof_char_p=0 |
|
26417 |
fi |
|
26418 |
fi |
|
26419 |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5 |
|
26420 |
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6 |
|
26421 |
cat >>confdefs.h <<_ACEOF |
|
26422 |
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p |
|
26423 |
_ACEOF |
|
26424 |
||
26425 |
||
26426 |
||
26427 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
26428 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
26429 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
26430 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
26431 |
else |
|
26432 |
ac_check_lib_save_LIBS=$LIBS |
|
26433 |
LIBS="-ldl $LIBS" |
|
26434 |
cat >conftest.$ac_ext <<_ACEOF |
|
26435 |
/* confdefs.h. */ |
|
26436 |
_ACEOF |
|
26437 |
cat confdefs.h >>conftest.$ac_ext |
|
26438 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26439 |
/* end confdefs.h. */ |
|
26440 |
||
26441 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
26442 |
#ifdef __cplusplus |
|
26443 |
extern "C" |
|
26444 |
#endif |
|
26445 |
/* We use char because int might match the return type of a gcc2 |
|
26446 |
builtin and then its argument prototype would still apply. */ |
|
26447 |
char dlopen (); |
|
26448 |
int |
|
26449 |
main () |
|
26450 |
{ |
|
26451 |
dlopen (); |
|
26452 |
; |
|
26453 |
return 0; |
|
26454 |
} |
|
26455 |
_ACEOF |
|
26456 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
26457 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
26458 |
(eval $ac_link) 2>conftest.er1 |
|
26459 |
ac_status=$? |
|
26460 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26461 |
rm -f conftest.er1 |
|
26462 |
cat conftest.err >&5 |
|
26463 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26464 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26465 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26466 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26467 |
(eval $ac_try) 2>&5 |
|
26468 |
ac_status=$? |
|
26469 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26470 |
(exit $ac_status); }; } && |
|
26471 |
{ ac_try='test -s conftest$ac_exeext' |
|
26472 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26473 |
(eval $ac_try) 2>&5 |
|
26474 |
ac_status=$? |
|
26475 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26476 |
(exit $ac_status); }; }; then |
|
26477 |
ac_cv_lib_dl_dlopen=yes |
|
26478 |
else |
|
26479 |
echo "$as_me: failed program was:" >&5 |
|
26480 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26481 |
||
26482 |
ac_cv_lib_dl_dlopen=no |
|
26483 |
fi |
|
26484 |
rm -f conftest.err conftest.$ac_objext \ |
|
26485 |
conftest$ac_exeext conftest.$ac_ext |
|
26486 |
LIBS=$ac_check_lib_save_LIBS |
|
26487 |
fi |
|
26488 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
26489 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
26490 |
if test $ac_cv_lib_dl_dlopen = yes; then |
|
26491 |
||
26492 |
LIBDL="-ldl" |
|
26493 |
ac_cv_have_dlfcn=yes |
|
26494 |
||
26495 |
fi |
|
26496 |
||
26497 |
||
26498 |
echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5 |
|
26499 |
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6 |
|
26500 |
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then |
|
26501 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
26502 |
else |
|
26503 |
ac_check_lib_save_LIBS=$LIBS |
|
26504 |
LIBS="-ldld $LIBS" |
|
26505 |
cat >conftest.$ac_ext <<_ACEOF |
|
26506 |
/* confdefs.h. */ |
|
26507 |
_ACEOF |
|
26508 |
cat confdefs.h >>conftest.$ac_ext |
|
26509 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26510 |
/* end confdefs.h. */ |
|
26511 |
||
26512 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
26513 |
#ifdef __cplusplus |
|
26514 |
extern "C" |
|
26515 |
#endif |
|
26516 |
/* We use char because int might match the return type of a gcc2 |
|
26517 |
builtin and then its argument prototype would still apply. */ |
|
26518 |
char shl_unload (); |
|
26519 |
int |
|
26520 |
main () |
|
26521 |
{ |
|
26522 |
shl_unload (); |
|
26523 |
; |
|
26524 |
return 0; |
|
26525 |
} |
|
26526 |
_ACEOF |
|
26527 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
26528 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
26529 |
(eval $ac_link) 2>conftest.er1 |
|
26530 |
ac_status=$? |
|
26531 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26532 |
rm -f conftest.er1 |
|
26533 |
cat conftest.err >&5 |
|
26534 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26535 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26536 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26537 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26538 |
(eval $ac_try) 2>&5 |
|
26539 |
ac_status=$? |
|
26540 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26541 |
(exit $ac_status); }; } && |
|
26542 |
{ ac_try='test -s conftest$ac_exeext' |
|
26543 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26544 |
(eval $ac_try) 2>&5 |
|
26545 |
ac_status=$? |
|
26546 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26547 |
(exit $ac_status); }; }; then |
|
26548 |
ac_cv_lib_dld_shl_unload=yes |
|
26549 |
else |
|
26550 |
echo "$as_me: failed program was:" >&5 |
|
26551 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26552 |
||
26553 |
ac_cv_lib_dld_shl_unload=no |
|
26554 |
fi |
|
26555 |
rm -f conftest.err conftest.$ac_objext \ |
|
26556 |
conftest$ac_exeext conftest.$ac_ext |
|
26557 |
LIBS=$ac_check_lib_save_LIBS |
|
26558 |
fi |
|
26559 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5 |
|
26560 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6 |
|
26561 |
if test $ac_cv_lib_dld_shl_unload = yes; then |
|
26562 |
||
26563 |
LIBDL="-ldld" |
|
26564 |
ac_cv_have_shload=yes |
|
26565 |
||
26566 |
fi |
|
26567 |
||
26568 |
||
26569 |
||
26570 |
||
26571 |
||
26572 |
||
26573 |
||
26574 |
echo "$as_me:$LINENO: checking for size_t" >&5 |
|
26575 |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
|
26576 |
if test "${ac_cv_type_size_t+set}" = set; then |
|
26577 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
26578 |
else |
|
26579 |
cat >conftest.$ac_ext <<_ACEOF |
|
26580 |
/* confdefs.h. */ |
|
26581 |
_ACEOF |
|
26582 |
cat confdefs.h >>conftest.$ac_ext |
|
26583 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26584 |
/* end confdefs.h. */ |
|
26585 |
$ac_includes_default |
|
26586 |
int |
|
26587 |
main () |
|
26588 |
{ |
|
26589 |
if ((size_t *) 0) |
|
26590 |
return 0; |
|
26591 |
if (sizeof (size_t)) |
|
26592 |
return 0; |
|
26593 |
; |
|
26594 |
return 0; |
|
26595 |
} |
|
26596 |
_ACEOF |
|
26597 |
rm -f conftest.$ac_objext |
|
26598 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26599 |
(eval $ac_compile) 2>conftest.er1 |
|
26600 |
ac_status=$? |
|
26601 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26602 |
rm -f conftest.er1 |
|
26603 |
cat conftest.err >&5 |
|
26604 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26605 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26606 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26607 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26608 |
(eval $ac_try) 2>&5 |
|
26609 |
ac_status=$? |
|
26610 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26611 |
(exit $ac_status); }; } && |
|
26612 |
{ ac_try='test -s conftest.$ac_objext' |
|
26613 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26614 |
(eval $ac_try) 2>&5 |
|
26615 |
ac_status=$? |
|
26616 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26617 |
(exit $ac_status); }; }; then |
|
26618 |
ac_cv_type_size_t=yes |
|
26619 |
else |
|
26620 |
echo "$as_me: failed program was:" >&5 |
|
26621 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26622 |
||
26623 |
ac_cv_type_size_t=no |
|
26624 |
fi |
|
26625 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26626 |
fi |
|
26627 |
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
|
26628 |
echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
|
26629 |
||
26630 |
echo "$as_me:$LINENO: checking size of size_t" >&5 |
|
26631 |
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 |
|
26632 |
if test "${ac_cv_sizeof_size_t+set}" = set; then |
|
26633 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
26634 |
else |
|
26635 |
if test "$ac_cv_type_size_t" = yes; then |
|
26636 |
# The cast to unsigned long works around a bug in the HP C Compiler |
|
26637 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
26638 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
26639 |
# This bug is HP SR number 8606223364. |
|
26640 |
if test "$cross_compiling" = yes; then |
|
26641 |
# Depending upon the size, compute the lo and hi bounds. |
|
26642 |
cat >conftest.$ac_ext <<_ACEOF |
|
26643 |
/* confdefs.h. */ |
|
26644 |
_ACEOF |
|
26645 |
cat confdefs.h >>conftest.$ac_ext |
|
26646 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26647 |
/* end confdefs.h. */ |
|
26648 |
$ac_includes_default |
|
26649 |
int |
|
26650 |
main () |
|
26651 |
{ |
|
26652 |
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; |
|
26653 |
test_array [0] = 0 |
|
26654 |
||
26655 |
; |
|
26656 |
return 0; |
|
26657 |
} |
|
26658 |
_ACEOF |
|
26659 |
rm -f conftest.$ac_objext |
|
26660 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26661 |
(eval $ac_compile) 2>conftest.er1 |
|
26662 |
ac_status=$? |
|
26663 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26664 |
rm -f conftest.er1 |
|
26665 |
cat conftest.err >&5 |
|
26666 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26667 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26668 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26669 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26670 |
(eval $ac_try) 2>&5 |
|
26671 |
ac_status=$? |
|
26672 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26673 |
(exit $ac_status); }; } && |
|
26674 |
{ ac_try='test -s conftest.$ac_objext' |
|
26675 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26676 |
(eval $ac_try) 2>&5 |
|
26677 |
ac_status=$? |
|
26678 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26679 |
(exit $ac_status); }; }; then |
|
26680 |
ac_lo=0 ac_mid=0 |
|
26681 |
while :; do |
|
26682 |
cat >conftest.$ac_ext <<_ACEOF |
|
26683 |
/* confdefs.h. */ |
|
26684 |
_ACEOF |
|
26685 |
cat confdefs.h >>conftest.$ac_ext |
|
26686 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26687 |
/* end confdefs.h. */ |
|
26688 |
$ac_includes_default |
|
26689 |
int |
|
26690 |
main () |
|
26691 |
{ |
|
26692 |
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
|
26693 |
test_array [0] = 0 |
|
26694 |
||
26695 |
; |
|
26696 |
return 0; |
|
26697 |
} |
|
26698 |
_ACEOF |
|
26699 |
rm -f conftest.$ac_objext |
|
26700 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26701 |
(eval $ac_compile) 2>conftest.er1 |
|
26702 |
ac_status=$? |
|
26703 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26704 |
rm -f conftest.er1 |
|
26705 |
cat conftest.err >&5 |
|
26706 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26707 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26708 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26709 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26710 |
(eval $ac_try) 2>&5 |
|
26711 |
ac_status=$? |
|
26712 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26713 |
(exit $ac_status); }; } && |
|
26714 |
{ ac_try='test -s conftest.$ac_objext' |
|
26715 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26716 |
(eval $ac_try) 2>&5 |
|
26717 |
ac_status=$? |
|
26718 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26719 |
(exit $ac_status); }; }; then |
|
26720 |
ac_hi=$ac_mid; break |
|
26721 |
else |
|
26722 |
echo "$as_me: failed program was:" >&5 |
|
26723 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26724 |
||
26725 |
ac_lo=`expr $ac_mid + 1` |
|
26726 |
if test $ac_lo -le $ac_mid; then |
|
26727 |
ac_lo= ac_hi= |
|
26728 |
break |
|
26729 |
fi |
|
26730 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
26731 |
fi |
|
26732 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26733 |
done |
|
26734 |
else |
|
26735 |
echo "$as_me: failed program was:" >&5 |
|
26736 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26737 |
||
26738 |
cat >conftest.$ac_ext <<_ACEOF |
|
26739 |
/* confdefs.h. */ |
|
26740 |
_ACEOF |
|
26741 |
cat confdefs.h >>conftest.$ac_ext |
|
26742 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26743 |
/* end confdefs.h. */ |
|
26744 |
$ac_includes_default |
|
26745 |
int |
|
26746 |
main () |
|
26747 |
{ |
|
26748 |
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; |
|
26749 |
test_array [0] = 0 |
|
26750 |
||
26751 |
; |
|
26752 |
return 0; |
|
26753 |
} |
|
26754 |
_ACEOF |
|
26755 |
rm -f conftest.$ac_objext |
|
26756 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26757 |
(eval $ac_compile) 2>conftest.er1 |
|
26758 |
ac_status=$? |
|
26759 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26760 |
rm -f conftest.er1 |
|
26761 |
cat conftest.err >&5 |
|
26762 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26763 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26764 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26765 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26766 |
(eval $ac_try) 2>&5 |
|
26767 |
ac_status=$? |
|
26768 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26769 |
(exit $ac_status); }; } && |
|
26770 |
{ ac_try='test -s conftest.$ac_objext' |
|
26771 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26772 |
(eval $ac_try) 2>&5 |
|
26773 |
ac_status=$? |
|
26774 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26775 |
(exit $ac_status); }; }; then |
|
26776 |
ac_hi=-1 ac_mid=-1 |
|
26777 |
while :; do |
|
26778 |
cat >conftest.$ac_ext <<_ACEOF |
|
26779 |
/* confdefs.h. */ |
|
26780 |
_ACEOF |
|
26781 |
cat confdefs.h >>conftest.$ac_ext |
|
26782 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26783 |
/* end confdefs.h. */ |
|
26784 |
$ac_includes_default |
|
26785 |
int |
|
26786 |
main () |
|
26787 |
{ |
|
26788 |
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; |
|
26789 |
test_array [0] = 0 |
|
26790 |
||
26791 |
; |
|
26792 |
return 0; |
|
26793 |
} |
|
26794 |
_ACEOF |
|
26795 |
rm -f conftest.$ac_objext |
|
26796 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26797 |
(eval $ac_compile) 2>conftest.er1 |
|
26798 |
ac_status=$? |
|
26799 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26800 |
rm -f conftest.er1 |
|
26801 |
cat conftest.err >&5 |
|
26802 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26803 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26804 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26805 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26806 |
(eval $ac_try) 2>&5 |
|
26807 |
ac_status=$? |
|
26808 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26809 |
(exit $ac_status); }; } && |
|
26810 |
{ ac_try='test -s conftest.$ac_objext' |
|
26811 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26812 |
(eval $ac_try) 2>&5 |
|
26813 |
ac_status=$? |
|
26814 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26815 |
(exit $ac_status); }; }; then |
|
26816 |
ac_lo=$ac_mid; break |
|
26817 |
else |
|
26818 |
echo "$as_me: failed program was:" >&5 |
|
26819 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26820 |
||
26821 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
26822 |
if test $ac_mid -le $ac_hi; then |
|
26823 |
ac_lo= ac_hi= |
|
26824 |
break |
|
26825 |
fi |
|
26826 |
ac_mid=`expr 2 '*' $ac_mid` |
|
26827 |
fi |
|
26828 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26829 |
done |
|
26830 |
else |
|
26831 |
echo "$as_me: failed program was:" >&5 |
|
26832 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26833 |
||
26834 |
ac_lo= ac_hi= |
|
26835 |
fi |
|
26836 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26837 |
fi |
|
26838 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26839 |
# Binary search between lo and hi bounds. |
|
26840 |
while test "x$ac_lo" != "x$ac_hi"; do |
|
26841 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
26842 |
cat >conftest.$ac_ext <<_ACEOF |
|
26843 |
/* confdefs.h. */ |
|
26844 |
_ACEOF |
|
26845 |
cat confdefs.h >>conftest.$ac_ext |
|
26846 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26847 |
/* end confdefs.h. */ |
|
26848 |
$ac_includes_default |
|
26849 |
int |
|
26850 |
main () |
|
26851 |
{ |
|
26852 |
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
|
26853 |
test_array [0] = 0 |
|
26854 |
||
26855 |
; |
|
26856 |
return 0; |
|
26857 |
} |
|
26858 |
_ACEOF |
|
26859 |
rm -f conftest.$ac_objext |
|
26860 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
26861 |
(eval $ac_compile) 2>conftest.er1 |
|
26862 |
ac_status=$? |
|
26863 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
26864 |
rm -f conftest.er1 |
|
26865 |
cat conftest.err >&5 |
|
26866 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26867 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26868 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
26869 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26870 |
(eval $ac_try) 2>&5 |
|
26871 |
ac_status=$? |
|
26872 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26873 |
(exit $ac_status); }; } && |
|
26874 |
{ ac_try='test -s conftest.$ac_objext' |
|
26875 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26876 |
(eval $ac_try) 2>&5 |
|
26877 |
ac_status=$? |
|
26878 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26879 |
(exit $ac_status); }; }; then |
|
26880 |
ac_hi=$ac_mid |
|
26881 |
else |
|
26882 |
echo "$as_me: failed program was:" >&5 |
|
26883 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26884 |
||
26885 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
26886 |
fi |
|
26887 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
26888 |
done |
|
26889 |
case $ac_lo in |
|
26890 |
?*) ac_cv_sizeof_size_t=$ac_lo;; |
|
26891 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
|
26892 |
See \`config.log' for more details." >&5 |
|
26893 |
echo "$as_me: error: cannot compute sizeof (size_t), 77 |
|
26894 |
See \`config.log' for more details." >&2;} |
|
26895 |
{ (exit 1); exit 1; }; } ;; |
|
26896 |
esac |
|
26897 |
else |
|
26898 |
if test "$cross_compiling" = yes; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
26899 |
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
26900 |
echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
26901 |
{ (exit 1); exit 1; }; } |
26902 |
else |
|
26903 |
cat >conftest.$ac_ext <<_ACEOF |
|
26904 |
/* confdefs.h. */ |
|
26905 |
_ACEOF |
|
26906 |
cat confdefs.h >>conftest.$ac_ext |
|
26907 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26908 |
/* end confdefs.h. */ |
|
26909 |
$ac_includes_default |
|
26910 |
long longval () { return (long) (sizeof (size_t)); } |
|
26911 |
unsigned long ulongval () { return (long) (sizeof (size_t)); } |
|
26912 |
#include <stdio.h> |
|
26913 |
#include <stdlib.h> |
|
26914 |
int |
|
26915 |
main () |
|
26916 |
{ |
|
26917 |
||
26918 |
FILE *f = fopen ("conftest.val", "w"); |
|
26919 |
if (! f) |
|
26920 |
exit (1); |
|
26921 |
if (((long) (sizeof (size_t))) < 0) |
|
26922 |
{ |
|
26923 |
long i = longval (); |
|
26924 |
if (i != ((long) (sizeof (size_t)))) |
|
26925 |
exit (1); |
|
26926 |
fprintf (f, "%ld\n", i); |
|
26927 |
} |
|
26928 |
else |
|
26929 |
{ |
|
26930 |
unsigned long i = ulongval (); |
|
26931 |
if (i != ((long) (sizeof (size_t)))) |
|
26932 |
exit (1); |
|
26933 |
fprintf (f, "%lu\n", i); |
|
26934 |
} |
|
26935 |
exit (ferror (f) || fclose (f) != 0); |
|
26936 |
||
26937 |
; |
|
26938 |
return 0; |
|
26939 |
} |
|
26940 |
_ACEOF |
|
26941 |
rm -f conftest$ac_exeext |
|
26942 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
26943 |
(eval $ac_link) 2>&5 |
|
26944 |
ac_status=$? |
|
26945 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26946 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
26947 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
26948 |
(eval $ac_try) 2>&5 |
|
26949 |
ac_status=$? |
|
26950 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
26951 |
(exit $ac_status); }; }; then |
|
26952 |
ac_cv_sizeof_size_t=`cat conftest.val` |
|
26953 |
else |
|
26954 |
echo "$as_me: program exited with status $ac_status" >&5 |
|
26955 |
echo "$as_me: failed program was:" >&5 |
|
26956 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
26957 |
||
26958 |
( exit $ac_status ) |
|
26959 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
|
26960 |
See \`config.log' for more details." >&5 |
|
26961 |
echo "$as_me: error: cannot compute sizeof (size_t), 77 |
|
26962 |
See \`config.log' for more details." >&2;} |
|
26963 |
{ (exit 1); exit 1; }; } |
|
26964 |
fi |
|
26965 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
26966 |
fi |
|
26967 |
fi |
|
26968 |
rm -f conftest.val |
|
26969 |
else |
|
26970 |
ac_cv_sizeof_size_t=0 |
|
26971 |
fi |
|
26972 |
fi |
|
26973 |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
|
26974 |
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 |
|
26975 |
cat >>confdefs.h <<_ACEOF |
|
26976 |
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
|
26977 |
_ACEOF |
|
26978 |
||
26979 |
||
26980 |
echo "$as_me:$LINENO: checking for unsigned long" >&5 |
|
26981 |
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6 |
|
26982 |
if test "${ac_cv_type_unsigned_long+set}" = set; then |
|
26983 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
26984 |
else |
|
26985 |
cat >conftest.$ac_ext <<_ACEOF |
|
26986 |
/* confdefs.h. */ |
|
26987 |
_ACEOF |
|
26988 |
cat confdefs.h >>conftest.$ac_ext |
|
26989 |
cat >>conftest.$ac_ext <<_ACEOF |
|
26990 |
/* end confdefs.h. */ |
|
26991 |
$ac_includes_default |
|
26992 |
int |
|
26993 |
main () |
|
26994 |
{ |
|
26995 |
if ((unsigned long *) 0) |
|
26996 |
return 0; |
|
26997 |
if (sizeof (unsigned long)) |
|
26998 |
return 0; |
|
26999 |
; |
|
27000 |
return 0; |
|
27001 |
} |
|
27002 |
_ACEOF |
|
27003 |
rm -f conftest.$ac_objext |
|
27004 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
27005 |
(eval $ac_compile) 2>conftest.er1 |
|
27006 |
ac_status=$? |
|
27007 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27008 |
rm -f conftest.er1 |
|
27009 |
cat conftest.err >&5 |
|
27010 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27011 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27012 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27013 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27014 |
(eval $ac_try) 2>&5 |
|
27015 |
ac_status=$? |
|
27016 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27017 |
(exit $ac_status); }; } && |
|
27018 |
{ ac_try='test -s conftest.$ac_objext' |
|
27019 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27020 |
(eval $ac_try) 2>&5 |
|
27021 |
ac_status=$? |
|
27022 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27023 |
(exit $ac_status); }; }; then |
|
27024 |
ac_cv_type_unsigned_long=yes |
|
27025 |
else |
|
27026 |
echo "$as_me: failed program was:" >&5 |
|
27027 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27028 |
||
27029 |
ac_cv_type_unsigned_long=no |
|
27030 |
fi |
|
27031 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
27032 |
fi |
|
27033 |
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5 |
|
27034 |
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6 |
|
27035 |
||
27036 |
echo "$as_me:$LINENO: checking size of unsigned long" >&5 |
|
27037 |
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6 |
|
27038 |
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then |
|
27039 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
27040 |
else |
|
27041 |
if test "$ac_cv_type_unsigned_long" = yes; then |
|
27042 |
# The cast to unsigned long works around a bug in the HP C Compiler |
|
27043 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
27044 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
27045 |
# This bug is HP SR number 8606223364. |
|
27046 |
if test "$cross_compiling" = yes; then |
|
27047 |
# Depending upon the size, compute the lo and hi bounds. |
|
27048 |
cat >conftest.$ac_ext <<_ACEOF |
|
27049 |
/* confdefs.h. */ |
|
27050 |
_ACEOF |
|
27051 |
cat confdefs.h >>conftest.$ac_ext |
|
27052 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27053 |
/* end confdefs.h. */ |
|
27054 |
$ac_includes_default |
|
27055 |
int |
|
27056 |
main () |
|
27057 |
{ |
|
27058 |
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)]; |
|
27059 |
test_array [0] = 0 |
|
27060 |
||
27061 |
; |
|
27062 |
return 0; |
|
27063 |
} |
|
27064 |
_ACEOF |
|
27065 |
rm -f conftest.$ac_objext |
|
27066 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
27067 |
(eval $ac_compile) 2>conftest.er1 |
|
27068 |
ac_status=$? |
|
27069 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27070 |
rm -f conftest.er1 |
|
27071 |
cat conftest.err >&5 |
|
27072 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27073 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27074 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27075 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27076 |
(eval $ac_try) 2>&5 |
|
27077 |
ac_status=$? |
|
27078 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27079 |
(exit $ac_status); }; } && |
|
27080 |
{ ac_try='test -s conftest.$ac_objext' |
|
27081 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27082 |
(eval $ac_try) 2>&5 |
|
27083 |
ac_status=$? |
|
27084 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27085 |
(exit $ac_status); }; }; then |
|
27086 |
ac_lo=0 ac_mid=0 |
|
27087 |
while :; do |
|
27088 |
cat >conftest.$ac_ext <<_ACEOF |
|
27089 |
/* confdefs.h. */ |
|
27090 |
_ACEOF |
|
27091 |
cat confdefs.h >>conftest.$ac_ext |
|
27092 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27093 |
/* end confdefs.h. */ |
|
27094 |
$ac_includes_default |
|
27095 |
int |
|
27096 |
main () |
|
27097 |
{ |
|
27098 |
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)]; |
|
27099 |
test_array [0] = 0 |
|
27100 |
||
27101 |
; |
|
27102 |
return 0; |
|
27103 |
} |
|
27104 |
_ACEOF |
|
27105 |
rm -f conftest.$ac_objext |
|
27106 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
27107 |
(eval $ac_compile) 2>conftest.er1 |
|
27108 |
ac_status=$? |
|
27109 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27110 |
rm -f conftest.er1 |
|
27111 |
cat conftest.err >&5 |
|
27112 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27113 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27114 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27115 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27116 |
(eval $ac_try) 2>&5 |
|
27117 |
ac_status=$? |
|
27118 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27119 |
(exit $ac_status); }; } && |
|
27120 |
{ ac_try='test -s conftest.$ac_objext' |
|
27121 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27122 |
(eval $ac_try) 2>&5 |
|
27123 |
ac_status=$? |
|
27124 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27125 |
(exit $ac_status); }; }; then |
|
27126 |
ac_hi=$ac_mid; break |
|
27127 |
else |
|
27128 |
echo "$as_me: failed program was:" >&5 |
|
27129 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27130 |
||
27131 |
ac_lo=`expr $ac_mid + 1` |
|
27132 |
if test $ac_lo -le $ac_mid; then |
|
27133 |
ac_lo= ac_hi= |
|
27134 |
break |
|
27135 |
fi |
|
27136 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
27137 |
fi |
|
27138 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
27139 |
done |
|
27140 |
else |
|
27141 |
echo "$as_me: failed program was:" >&5 |
|
27142 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27143 |
||
27144 |
cat >conftest.$ac_ext <<_ACEOF |
|
27145 |
/* confdefs.h. */ |
|
27146 |
_ACEOF |
|
27147 |
cat confdefs.h >>conftest.$ac_ext |
|
27148 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27149 |
/* end confdefs.h. */ |
|
27150 |
$ac_includes_default |
|
27151 |
int |
|
27152 |
main () |
|
27153 |
{ |
|
27154 |
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)]; |
|
27155 |
test_array [0] = 0 |
|
27156 |
||
27157 |
; |
|
27158 |
return 0; |
|
27159 |
} |
|
27160 |
_ACEOF |
|
27161 |
rm -f conftest.$ac_objext |
|
27162 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
27163 |
(eval $ac_compile) 2>conftest.er1 |
|
27164 |
ac_status=$? |
|
27165 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27166 |
rm -f conftest.er1 |
|
27167 |
cat conftest.err >&5 |
|
27168 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27169 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27170 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27171 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27172 |
(eval $ac_try) 2>&5 |
|
27173 |
ac_status=$? |
|
27174 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27175 |
(exit $ac_status); }; } && |
|
27176 |
{ ac_try='test -s conftest.$ac_objext' |
|
27177 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27178 |
(eval $ac_try) 2>&5 |
|
27179 |
ac_status=$? |
|
27180 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27181 |
(exit $ac_status); }; }; then |
|
27182 |
ac_hi=-1 ac_mid=-1 |
|
27183 |
while :; do |
|
27184 |
cat >conftest.$ac_ext <<_ACEOF |
|
27185 |
/* confdefs.h. */ |
|
27186 |
_ACEOF |
|
27187 |
cat confdefs.h >>conftest.$ac_ext |
|
27188 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27189 |
/* end confdefs.h. */ |
|
27190 |
$ac_includes_default |
|
27191 |
int |
|
27192 |
main () |
|
27193 |
{ |
|
27194 |
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)]; |
|
27195 |
test_array [0] = 0 |
|
27196 |
||
27197 |
; |
|
27198 |
return 0; |
|
27199 |
} |
|
27200 |
_ACEOF |
|
27201 |
rm -f conftest.$ac_objext |
|
27202 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
27203 |
(eval $ac_compile) 2>conftest.er1 |
|
27204 |
ac_status=$? |
|
27205 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27206 |
rm -f conftest.er1 |
|
27207 |
cat conftest.err >&5 |
|
27208 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27209 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27210 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27211 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27212 |
(eval $ac_try) 2>&5 |
|
27213 |
ac_status=$? |
|
27214 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27215 |
(exit $ac_status); }; } && |
|
27216 |
{ ac_try='test -s conftest.$ac_objext' |
|
27217 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27218 |
(eval $ac_try) 2>&5 |
|
27219 |
ac_status=$? |
|
27220 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27221 |
(exit $ac_status); }; }; then |
|
27222 |
ac_lo=$ac_mid; break |
|
27223 |
else |
|
27224 |
echo "$as_me: failed program was:" >&5 |
|
27225 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27226 |
||
27227 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
27228 |
if test $ac_mid -le $ac_hi; then |
|
27229 |
ac_lo= ac_hi= |
|
27230 |
break |
|
27231 |
fi |
|
27232 |
ac_mid=`expr 2 '*' $ac_mid` |
|
27233 |
fi |
|
27234 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
27235 |
done |
|
27236 |
else |
|
27237 |
echo "$as_me: failed program was:" >&5 |
|
27238 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27239 |
||
27240 |
ac_lo= ac_hi= |
|
27241 |
fi |
|
27242 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
27243 |
fi |
|
27244 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
27245 |
# Binary search between lo and hi bounds. |
|
27246 |
while test "x$ac_lo" != "x$ac_hi"; do |
|
27247 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
27248 |
cat >conftest.$ac_ext <<_ACEOF |
|
27249 |
/* confdefs.h. */ |
|
27250 |
_ACEOF |
|
27251 |
cat confdefs.h >>conftest.$ac_ext |
|
27252 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27253 |
/* end confdefs.h. */ |
|
27254 |
$ac_includes_default |
|
27255 |
int |
|
27256 |
main () |
|
27257 |
{ |
|
27258 |
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)]; |
|
27259 |
test_array [0] = 0 |
|
27260 |
||
27261 |
; |
|
27262 |
return 0; |
|
27263 |
} |
|
27264 |
_ACEOF |
|
27265 |
rm -f conftest.$ac_objext |
|
27266 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
27267 |
(eval $ac_compile) 2>conftest.er1 |
|
27268 |
ac_status=$? |
|
27269 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27270 |
rm -f conftest.er1 |
|
27271 |
cat conftest.err >&5 |
|
27272 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27273 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27274 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27275 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27276 |
(eval $ac_try) 2>&5 |
|
27277 |
ac_status=$? |
|
27278 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27279 |
(exit $ac_status); }; } && |
|
27280 |
{ ac_try='test -s conftest.$ac_objext' |
|
27281 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27282 |
(eval $ac_try) 2>&5 |
|
27283 |
ac_status=$? |
|
27284 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27285 |
(exit $ac_status); }; }; then |
|
27286 |
ac_hi=$ac_mid |
|
27287 |
else |
|
27288 |
echo "$as_me: failed program was:" >&5 |
|
27289 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27290 |
||
27291 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
27292 |
fi |
|
27293 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
27294 |
done |
|
27295 |
case $ac_lo in |
|
27296 |
?*) ac_cv_sizeof_unsigned_long=$ac_lo;; |
|
27297 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77 |
|
27298 |
See \`config.log' for more details." >&5 |
|
27299 |
echo "$as_me: error: cannot compute sizeof (unsigned long), 77 |
|
27300 |
See \`config.log' for more details." >&2;} |
|
27301 |
{ (exit 1); exit 1; }; } ;; |
|
27302 |
esac |
|
27303 |
else |
|
27304 |
if test "$cross_compiling" = yes; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27305 |
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
27306 |
echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
27307 |
{ (exit 1); exit 1; }; } |
27308 |
else |
|
27309 |
cat >conftest.$ac_ext <<_ACEOF |
|
27310 |
/* confdefs.h. */ |
|
27311 |
_ACEOF |
|
27312 |
cat confdefs.h >>conftest.$ac_ext |
|
27313 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27314 |
/* end confdefs.h. */ |
|
27315 |
$ac_includes_default |
|
27316 |
long longval () { return (long) (sizeof (unsigned long)); } |
|
27317 |
unsigned long ulongval () { return (long) (sizeof (unsigned long)); } |
|
27318 |
#include <stdio.h> |
|
27319 |
#include <stdlib.h> |
|
27320 |
int |
|
27321 |
main () |
|
27322 |
{ |
|
27323 |
||
27324 |
FILE *f = fopen ("conftest.val", "w"); |
|
27325 |
if (! f) |
|
27326 |
exit (1); |
|
27327 |
if (((long) (sizeof (unsigned long))) < 0) |
|
27328 |
{ |
|
27329 |
long i = longval (); |
|
27330 |
if (i != ((long) (sizeof (unsigned long)))) |
|
27331 |
exit (1); |
|
27332 |
fprintf (f, "%ld\n", i); |
|
27333 |
} |
|
27334 |
else |
|
27335 |
{ |
|
27336 |
unsigned long i = ulongval (); |
|
27337 |
if (i != ((long) (sizeof (unsigned long)))) |
|
27338 |
exit (1); |
|
27339 |
fprintf (f, "%lu\n", i); |
|
27340 |
} |
|
27341 |
exit (ferror (f) || fclose (f) != 0); |
|
27342 |
||
27343 |
; |
|
27344 |
return 0; |
|
27345 |
} |
|
27346 |
_ACEOF |
|
27347 |
rm -f conftest$ac_exeext |
|
27348 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
27349 |
(eval $ac_link) 2>&5 |
|
27350 |
ac_status=$? |
|
27351 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27352 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
27353 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27354 |
(eval $ac_try) 2>&5 |
|
27355 |
ac_status=$? |
|
27356 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27357 |
(exit $ac_status); }; }; then |
|
27358 |
ac_cv_sizeof_unsigned_long=`cat conftest.val` |
|
27359 |
else |
|
27360 |
echo "$as_me: program exited with status $ac_status" >&5 |
|
27361 |
echo "$as_me: failed program was:" >&5 |
|
27362 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27363 |
||
27364 |
( exit $ac_status ) |
|
27365 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77 |
|
27366 |
See \`config.log' for more details." >&5 |
|
27367 |
echo "$as_me: error: cannot compute sizeof (unsigned long), 77 |
|
27368 |
See \`config.log' for more details." >&2;} |
|
27369 |
{ (exit 1); exit 1; }; } |
|
27370 |
fi |
|
27371 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
27372 |
fi |
|
27373 |
fi |
|
27374 |
rm -f conftest.val |
|
27375 |
else |
|
27376 |
ac_cv_sizeof_unsigned_long=0 |
|
27377 |
fi |
|
27378 |
fi |
|
27379 |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 |
|
27380 |
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6 |
|
27381 |
cat >>confdefs.h <<_ACEOF |
|
27382 |
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
|
27383 |
_ACEOF |
|
27384 |
||
27385 |
||
27386 |
||
27387 |
echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5 |
|
27388 |
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6 |
|
27389 |
cat >conftest.$ac_ext <<_ACEOF |
|
27390 |
/* confdefs.h. */ |
|
27391 |
_ACEOF |
|
27392 |
cat confdefs.h >>conftest.$ac_ext |
|
27393 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27394 |
/* end confdefs.h. */ |
|
27395 |
||
27396 |
int |
|
27397 |
main () |
|
27398 |
{ |
|
27399 |
||
27400 |
#if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG |
|
27401 |
choke me |
|
27402 |
#endif |
|
27403 |
||
27404 |
; |
|
27405 |
return 0; |
|
27406 |
} |
|
27407 |
_ACEOF |
|
27408 |
rm -f conftest.$ac_objext |
|
27409 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
27410 |
(eval $ac_compile) 2>conftest.er1 |
|
27411 |
ac_status=$? |
|
27412 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27413 |
rm -f conftest.er1 |
|
27414 |
cat conftest.err >&5 |
|
27415 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27416 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27417 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27418 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27419 |
(eval $ac_try) 2>&5 |
|
27420 |
ac_status=$? |
|
27421 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27422 |
(exit $ac_status); }; } && |
|
27423 |
{ ac_try='test -s conftest.$ac_objext' |
|
27424 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27425 |
(eval $ac_try) 2>&5 |
|
27426 |
ac_status=$? |
|
27427 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27428 |
(exit $ac_status); }; }; then |
|
27429 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
27430 |
echo "${ECHO_T}yes" >&6 |
|
27431 |
else |
|
27432 |
echo "$as_me: failed program was:" >&5 |
|
27433 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27434 |
||
27435 |
||
27436 |
echo "$as_me:$LINENO: result: no" >&5 |
|
27437 |
echo "${ECHO_T}no" >&6 |
|
27438 |
{ { echo "$as_me:$LINENO: error: |
|
27439 |
Apparently on your system our assumption sizeof size_t == sizeof unsigned long |
|
27440 |
does not apply. Please mail kde-devel@kde.org with a description of your system! |
|
27441 |
" >&5 |
|
27442 |
echo "$as_me: error: |
|
27443 |
Apparently on your system our assumption sizeof size_t == sizeof unsigned long |
|
27444 |
does not apply. Please mail kde-devel@kde.org with a description of your system! |
|
27445 |
" >&2;} |
|
27446 |
{ (exit 1); exit 1; }; } |
|
27447 |
||
27448 |
fi |
|
27449 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
27450 |
||
27451 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27452 |
echo "$as_me:$LINENO: checking for PIE support" >&5 |
27453 |
echo $ECHO_N "checking for PIE support... $ECHO_C" >&6 |
|
27454 |
if test "${kde_cv_val_pie_support+set}" = set; then |
|
27455 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
27456 |
else |
|
27457 |
||
27458 |
||
27459 |
||
27460 |
ac_ext=cc |
|
27461 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
27462 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
27463 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
27464 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
27465 |
||
27466 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
27467 |
||
27468 |
||
27469 |
safe_CXXFLAGS=$CXXFLAGS |
|
27470 |
safe_LDFLAGS=$LDFLAGS |
|
27471 |
CXXFLAGS="$CXXFLAGS -fpie" |
|
27472 |
LDFLAGS="$LDFLAGS -pie" |
|
27473 |
||
27474 |
cat >conftest.$ac_ext <<_ACEOF |
|
27475 |
/* confdefs.h. */ |
|
27476 |
_ACEOF |
|
27477 |
cat confdefs.h >>conftest.$ac_ext |
|
27478 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27479 |
/* end confdefs.h. */ |
|
27480 |
int foo; |
|
27481 |
int |
|
27482 |
main () |
|
27483 |
{ |
|
27484 |
||
27485 |
; |
|
27486 |
return 0; |
|
27487 |
} |
|
27488 |
_ACEOF |
|
27489 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
27490 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
27491 |
(eval $ac_link) 2>conftest.er1 |
|
27492 |
ac_status=$? |
|
27493 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27494 |
rm -f conftest.er1 |
|
27495 |
cat conftest.err >&5 |
|
27496 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27497 |
(exit $ac_status); } && |
|
27498 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
27499 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27500 |
(eval $ac_try) 2>&5 |
|
27501 |
ac_status=$? |
|
27502 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27503 |
(exit $ac_status); }; } && |
|
27504 |
{ ac_try='test -s conftest$ac_exeext' |
|
27505 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27506 |
(eval $ac_try) 2>&5 |
|
27507 |
ac_status=$? |
|
27508 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27509 |
(exit $ac_status); }; }; then |
|
27510 |
kde_cv_val_pie_support=yes |
|
27511 |
else |
|
27512 |
echo "$as_me: failed program was:" >&5 |
|
27513 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27514 |
||
27515 |
kde_cv_val_pie_support=no |
|
27516 |
fi |
|
27517 |
rm -f conftest.err conftest.$ac_objext \ |
|
27518 |
conftest$ac_exeext conftest.$ac_ext |
|
27519 |
||
27520 |
CXXFLAGS=$safe_CXXFLAGS |
|
27521 |
LDFLAGS=$safe_LDFLAGS |
|
27522 |
ac_ext=c |
|
27523 |
ac_cpp='$CPP $CPPFLAGS' |
|
27524 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
27525 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
27526 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
27527 |
||
27528 |
||
27529 |
fi |
|
27530 |
echo "$as_me:$LINENO: result: $kde_cv_val_pie_support" >&5 |
|
27531 |
echo "${ECHO_T}$kde_cv_val_pie_support" >&6 |
|
27532 |
||
27533 |
echo "$as_me:$LINENO: checking if enabling -pie/fpie support" >&5 |
|
27534 |
echo $ECHO_N "checking if enabling -pie/fpie support... $ECHO_C" >&6 |
|
27535 |
||
27536 |
# Check whether --enable-pie or --disable-pie was given. |
|
27537 |
if test "${enable_pie+set}" = set; then |
|
27538 |
enableval="$enable_pie" |
|
27539 |
kde_has_pie_support=$enableval |
|
27540 |
else |
|
27541 |
kde_has_pie_support=detect |
|
27542 |
fi; |
|
27543 |
||
27544 |
if test "$kde_has_pie_support" = "detect"; then |
|
27545 |
kde_has_pie_support=$kde_cv_val_pie_support |
|
27546 |
fi |
|
27547 |
||
27548 |
echo "$as_me:$LINENO: result: $kde_has_pie_support" >&5 |
|
27549 |
echo "${ECHO_T}$kde_has_pie_support" >&6 |
|
27550 |
||
27551 |
KDE_USE_FPIE="" |
|
27552 |
KDE_USE_PIE="" |
|
27553 |
||
27554 |
||
27555 |
||
27556 |
||
27557 |
if test "$kde_has_pie_support" = "yes"; then |
|
27558 |
KDE_USE_FPIE="-fpie" |
|
27559 |
KDE_USE_PIE="-pie" |
|
27560 |
fi |
|
27561 |
||
27562 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
27563 |
# darwin needs this to initialize the environment |
27564 |
||
27565 |
for ac_header in crt_externs.h |
|
27566 |
do |
|
27567 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
27568 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
27569 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
27570 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
27571 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
27572 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
27573 |
fi |
|
27574 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
27575 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
27576 |
else |
|
27577 |
# Is the header compilable? |
|
27578 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
27579 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
27580 |
cat >conftest.$ac_ext <<_ACEOF |
|
27581 |
/* confdefs.h. */ |
|
27582 |
_ACEOF |
|
27583 |
cat confdefs.h >>conftest.$ac_ext |
|
27584 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27585 |
/* end confdefs.h. */ |
|
27586 |
$ac_includes_default |
|
27587 |
#include <$ac_header> |
|
27588 |
_ACEOF |
|
27589 |
rm -f conftest.$ac_objext |
|
27590 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
27591 |
(eval $ac_compile) 2>conftest.er1 |
|
27592 |
ac_status=$? |
|
27593 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27594 |
rm -f conftest.er1 |
|
27595 |
cat conftest.err >&5 |
|
27596 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27597 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27598 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27599 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27600 |
(eval $ac_try) 2>&5 |
|
27601 |
ac_status=$? |
|
27602 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27603 |
(exit $ac_status); }; } && |
|
27604 |
{ ac_try='test -s conftest.$ac_objext' |
|
27605 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27606 |
(eval $ac_try) 2>&5 |
|
27607 |
ac_status=$? |
|
27608 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27609 |
(exit $ac_status); }; }; then |
|
27610 |
ac_header_compiler=yes |
|
27611 |
else |
|
27612 |
echo "$as_me: failed program was:" >&5 |
|
27613 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27614 |
||
27615 |
ac_header_compiler=no |
|
27616 |
fi |
|
27617 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
27618 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
27619 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
27620 |
||
27621 |
# Is the header present? |
|
27622 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
27623 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
27624 |
cat >conftest.$ac_ext <<_ACEOF |
|
27625 |
/* confdefs.h. */ |
|
27626 |
_ACEOF |
|
27627 |
cat confdefs.h >>conftest.$ac_ext |
|
27628 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27629 |
/* end confdefs.h. */ |
|
27630 |
#include <$ac_header> |
|
27631 |
_ACEOF |
|
27632 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
27633 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
27634 |
ac_status=$? |
|
27635 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27636 |
rm -f conftest.er1 |
|
27637 |
cat conftest.err >&5 |
|
27638 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27639 |
(exit $ac_status); } >/dev/null; then |
|
27640 |
if test -s conftest.err; then |
|
27641 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
27642 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
27643 |
else |
|
27644 |
ac_cpp_err= |
|
27645 |
fi |
|
27646 |
else |
|
27647 |
ac_cpp_err=yes |
|
27648 |
fi |
|
27649 |
if test -z "$ac_cpp_err"; then |
|
27650 |
ac_header_preproc=yes |
|
27651 |
else |
|
27652 |
echo "$as_me: failed program was:" >&5 |
|
27653 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27654 |
||
27655 |
ac_header_preproc=no |
|
27656 |
fi |
|
27657 |
rm -f conftest.err conftest.$ac_ext |
|
27658 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
27659 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
27660 |
||
27661 |
# So? What about this header? |
|
27662 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
27663 |
yes:no: ) |
|
27664 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
27665 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
27666 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
27667 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
27668 |
ac_header_preproc=yes |
|
27669 |
;; |
|
27670 |
no:yes:* ) |
|
27671 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
27672 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
27673 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
27674 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
27675 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
27676 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
27677 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
27678 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
27679 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
27680 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
27681 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
27682 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
27683 |
( |
|
27684 |
cat <<\_ASBOX |
|
27685 |
## ------------------------------------------ ## |
|
27686 |
## Report this to the AC_PACKAGE_NAME lists. ## |
|
27687 |
## ------------------------------------------ ## |
|
27688 |
_ASBOX |
|
27689 |
) | |
|
27690 |
sed "s/^/$as_me: WARNING: /" >&2 |
|
27691 |
;; |
|
27692 |
esac |
|
27693 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
27694 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
27695 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
27696 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
27697 |
else |
|
27698 |
eval "$as_ac_Header=\$ac_header_preproc" |
|
27699 |
fi |
|
27700 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
27701 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
27702 |
||
27703 |
fi |
|
27704 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
27705 |
cat >>confdefs.h <<_ACEOF |
|
27706 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
27707 |
_ACEOF |
|
27708 |
||
27709 |
fi |
|
27710 |
||
27711 |
done |
|
27712 |
||
27713 |
echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5 |
|
27714 |
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6 |
|
27715 |
if test "${ac_cv_func__NSGetEnviron+set}" = set; then |
|
27716 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
27717 |
else |
|
27718 |
cat >conftest.$ac_ext <<_ACEOF |
|
27719 |
/* confdefs.h. */ |
|
27720 |
_ACEOF |
|
27721 |
cat confdefs.h >>conftest.$ac_ext |
|
27722 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27723 |
/* end confdefs.h. */ |
|
27724 |
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron. |
|
27725 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
27726 |
#define _NSGetEnviron innocuous__NSGetEnviron |
|
27727 |
||
27728 |
/* System header to define __stub macros and hopefully few prototypes, |
|
27729 |
which can conflict with char _NSGetEnviron (); below. |
|
27730 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
27731 |
<limits.h> exists even on freestanding compilers. */ |
|
27732 |
||
27733 |
#ifdef __STDC__ |
|
27734 |
# include <limits.h> |
|
27735 |
#else |
|
27736 |
# include <assert.h> |
|
27737 |
#endif |
|
27738 |
||
27739 |
#undef _NSGetEnviron |
|
27740 |
||
27741 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
27742 |
#ifdef __cplusplus |
|
27743 |
extern "C" |
|
27744 |
{ |
|
27745 |
#endif |
|
27746 |
/* We use char because int might match the return type of a gcc2 |
|
27747 |
builtin and then its argument prototype would still apply. */ |
|
27748 |
char _NSGetEnviron (); |
|
27749 |
/* The GNU C library defines this for functions which it implements |
|
27750 |
to always fail with ENOSYS. Some functions are actually named |
|
27751 |
something starting with __ and the normal name is an alias. */ |
|
27752 |
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron) |
|
27753 |
choke me |
|
27754 |
#else |
|
27755 |
char (*f) () = _NSGetEnviron; |
|
27756 |
#endif |
|
27757 |
#ifdef __cplusplus |
|
27758 |
} |
|
27759 |
#endif |
|
27760 |
||
27761 |
int |
|
27762 |
main () |
|
27763 |
{ |
|
27764 |
return f != _NSGetEnviron; |
|
27765 |
; |
|
27766 |
return 0; |
|
27767 |
} |
|
27768 |
_ACEOF |
|
27769 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
27770 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
27771 |
(eval $ac_link) 2>conftest.er1 |
|
27772 |
ac_status=$? |
|
27773 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27774 |
rm -f conftest.er1 |
|
27775 |
cat conftest.err >&5 |
|
27776 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27777 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27778 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27779 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27780 |
(eval $ac_try) 2>&5 |
|
27781 |
ac_status=$? |
|
27782 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27783 |
(exit $ac_status); }; } && |
|
27784 |
{ ac_try='test -s conftest$ac_exeext' |
|
27785 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27786 |
(eval $ac_try) 2>&5 |
|
27787 |
ac_status=$? |
|
27788 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27789 |
(exit $ac_status); }; }; then |
|
27790 |
ac_cv_func__NSGetEnviron=yes |
|
27791 |
else |
|
27792 |
echo "$as_me: failed program was:" >&5 |
|
27793 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27794 |
||
27795 |
ac_cv_func__NSGetEnviron=no |
|
27796 |
fi |
|
27797 |
rm -f conftest.err conftest.$ac_objext \ |
|
27798 |
conftest$ac_exeext conftest.$ac_ext |
|
27799 |
fi |
|
27800 |
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5 |
|
27801 |
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6 |
|
27802 |
if test $ac_cv_func__NSGetEnviron = yes; then |
|
27803 |
||
27804 |
cat >>confdefs.h <<\_ACEOF |
|
27805 |
#define HAVE_NSGETENVIRON 1 |
|
27806 |
_ACEOF |
|
27807 |
||
27808 |
fi |
|
27809 |
||
27810 |
||
27811 |
||
27812 |
||
27813 |
||
27814 |
||
27815 |
||
27816 |
||
27817 |
||
27818 |
||
27819 |
for ac_func in vsnprintf snprintf |
|
27820 |
do |
|
27821 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
27822 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
27823 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
27824 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
27825 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
27826 |
else |
|
27827 |
cat >conftest.$ac_ext <<_ACEOF |
|
27828 |
/* confdefs.h. */ |
|
27829 |
_ACEOF |
|
27830 |
cat confdefs.h >>conftest.$ac_ext |
|
27831 |
cat >>conftest.$ac_ext <<_ACEOF |
|
27832 |
/* end confdefs.h. */ |
|
27833 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
27834 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
27835 |
#define $ac_func innocuous_$ac_func |
|
27836 |
||
27837 |
/* System header to define __stub macros and hopefully few prototypes, |
|
27838 |
which can conflict with char $ac_func (); below. |
|
27839 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
27840 |
<limits.h> exists even on freestanding compilers. */ |
|
27841 |
||
27842 |
#ifdef __STDC__ |
|
27843 |
# include <limits.h> |
|
27844 |
#else |
|
27845 |
# include <assert.h> |
|
27846 |
#endif |
|
27847 |
||
27848 |
#undef $ac_func |
|
27849 |
||
27850 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
27851 |
#ifdef __cplusplus |
|
27852 |
extern "C" |
|
27853 |
{ |
|
27854 |
#endif |
|
27855 |
/* We use char because int might match the return type of a gcc2 |
|
27856 |
builtin and then its argument prototype would still apply. */ |
|
27857 |
char $ac_func (); |
|
27858 |
/* The GNU C library defines this for functions which it implements |
|
27859 |
to always fail with ENOSYS. Some functions are actually named |
|
27860 |
something starting with __ and the normal name is an alias. */ |
|
27861 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
27862 |
choke me |
|
27863 |
#else |
|
27864 |
char (*f) () = $ac_func; |
|
27865 |
#endif |
|
27866 |
#ifdef __cplusplus |
|
27867 |
} |
|
27868 |
#endif |
|
27869 |
||
27870 |
int |
|
27871 |
main () |
|
27872 |
{ |
|
27873 |
return f != $ac_func; |
|
27874 |
; |
|
27875 |
return 0; |
|
27876 |
} |
|
27877 |
_ACEOF |
|
27878 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
27879 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
27880 |
(eval $ac_link) 2>conftest.er1 |
|
27881 |
ac_status=$? |
|
27882 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
27883 |
rm -f conftest.er1 |
|
27884 |
cat conftest.err >&5 |
|
27885 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27886 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
27887 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
27888 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27889 |
(eval $ac_try) 2>&5 |
|
27890 |
ac_status=$? |
|
27891 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27892 |
(exit $ac_status); }; } && |
|
27893 |
{ ac_try='test -s conftest$ac_exeext' |
|
27894 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
27895 |
(eval $ac_try) 2>&5 |
|
27896 |
ac_status=$? |
|
27897 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
27898 |
(exit $ac_status); }; }; then |
|
27899 |
eval "$as_ac_var=yes" |
|
27900 |
else |
|
27901 |
echo "$as_me: failed program was:" >&5 |
|
27902 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
27903 |
||
27904 |
eval "$as_ac_var=no" |
|
27905 |
fi |
|
27906 |
rm -f conftest.err conftest.$ac_objext \ |
|
27907 |
conftest$ac_exeext conftest.$ac_ext |
|
27908 |
fi |
|
27909 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
27910 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
27911 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
27912 |
cat >>confdefs.h <<_ACEOF |
|
27913 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
27914 |
_ACEOF |
|
27915 |
||
27916 |
fi |
|
27917 |
done |
|
27918 |
||
27919 |
||
27920 |
||
27921 |
||
27922 |
||
27923 |
||
27924 |
||
27925 |
||
27926 |
||
27927 |
# Check whether --enable-embedded or --disable-embedded was given. |
|
27928 |
if test "${enable_embedded+set}" = set; then |
|
27929 |
enableval="$enable_embedded" |
|
27930 |
kde_use_qt_emb=$enableval |
|
27931 |
else |
|
27932 |
kde_use_qt_emb=no |
|
27933 |
||
27934 |
fi; |
|
27935 |
||
27936 |
# Check whether --enable-qtopia or --disable-qtopia was given. |
|
27937 |
if test "${enable_qtopia+set}" = set; then |
|
27938 |
enableval="$enable_qtopia" |
|
27939 |
kde_use_qt_emb_palm=$enableval |
|
27940 |
else |
|
27941 |
kde_use_qt_emb_palm=no |
|
27942 |
||
27943 |
fi; |
|
27944 |
||
27945 |
# Check whether --enable-mac or --disable-mac was given. |
|
27946 |
if test "${enable_mac+set}" = set; then |
|
27947 |
enableval="$enable_mac" |
|
27948 |
kde_use_qt_mac=$enableval |
|
27949 |
else |
|
27950 |
kde_use_qt_mac=no |
|
27951 |
||
27952 |
fi; |
|
27953 |
||
27954 |
# used to disable x11-specific stuff on special platforms |
|
27955 |
||
27956 |
||
27957 |
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then |
|
27958 |
include_x11_TRUE= |
|
27959 |
include_x11_FALSE='#' |
|
27960 |
else |
|
27961 |
include_x11_TRUE='#' |
|
27962 |
include_x11_FALSE= |
|
27963 |
fi |
|
27964 |
||
27965 |
||
27966 |
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then |
|
27967 |
||
27968 |
echo "$as_me:$LINENO: checking for X" >&5 |
|
27969 |
echo $ECHO_N "checking for X... $ECHO_C" >&6 |
|
27970 |
||
27971 |
if test "${kde_cv_have_x+set}" = set; then |
|
27972 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
27973 |
else |
|
27974 |
# One or both of the vars are not set, and there is no cached value. |
|
27975 |
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then |
|
27976 |
kde_x_includes=NO |
|
27977 |
else |
|
27978 |
kde_x_includes=$x_includes |
|
27979 |
fi |
|
27980 |
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then |
|
27981 |
kde_x_libraries=NO |
|
27982 |
else |
|
27983 |
kde_x_libraries=$x_libraries |
|
27984 |
fi |
|
27985 |
||
27986 |
# below we use the standard autoconf calls |
|
27987 |
ac_x_libraries=$kde_x_libraries |
|
27988 |
ac_x_includes=$kde_x_includes |
|
27989 |
||
27990 |
||
27991 |
||
27992 |
||
27993 |
if test "$ac_x_includes" = NO; then |
|
27994 |
# Guess where to find include files, by looking for this one X11 .h file. |
|
27995 |
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
|
27996 |
||
27997 |
# First, try using that file with no special directory specified. |
|
27998 |
cat >conftest.$ac_ext <<_ACEOF |
|
27999 |
/* confdefs.h. */ |
|
28000 |
_ACEOF |
|
28001 |
cat confdefs.h >>conftest.$ac_ext |
|
28002 |
cat >>conftest.$ac_ext <<_ACEOF |
|
28003 |
/* end confdefs.h. */ |
|
28004 |
#include <$x_direct_test_include> |
|
28005 |
_ACEOF |
|
28006 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
28007 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
28008 |
ac_status=$? |
|
28009 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
28010 |
rm -f conftest.er1 |
|
28011 |
cat conftest.err >&5 |
|
28012 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28013 |
(exit $ac_status); } >/dev/null; then |
|
28014 |
if test -s conftest.err; then |
|
28015 |
ac_cpp_err=$ac_c_preproc_warn_flag |
|
28016 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
28017 |
else |
|
28018 |
ac_cpp_err= |
|
28019 |
fi |
|
28020 |
else |
|
28021 |
ac_cpp_err=yes |
|
28022 |
fi |
|
28023 |
if test -z "$ac_cpp_err"; then |
|
28024 |
# We can compile using X headers with no special include directory. |
|
28025 |
ac_x_includes= |
|
28026 |
else |
|
28027 |
echo "$as_me: failed program was:" >&5 |
|
28028 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
28029 |
||
28030 |
# Look for the header file in a standard set of common directories. |
|
28031 |
# Check X11 before X11Rn because it is often a symlink to the current release. |
|
28032 |
for ac_dir in \ |
|
28033 |
/usr/X11/include \ |
|
28034 |
/usr/X11R6/include \ |
|
28035 |
/usr/X11R5/include \ |
|
28036 |
/usr/X11R4/include \ |
|
28037 |
\ |
|
28038 |
/usr/include/X11 \ |
|
28039 |
/usr/include/X11R6 \ |
|
28040 |
/usr/include/X11R5 \ |
|
28041 |
/usr/include/X11R4 \ |
|
28042 |
\ |
|
28043 |
/usr/local/X11/include \ |
|
28044 |
/usr/local/X11R6/include \ |
|
28045 |
/usr/local/X11R5/include \ |
|
28046 |
/usr/local/X11R4/include \ |
|
28047 |
\ |
|
28048 |
/usr/local/include/X11 \ |
|
28049 |
/usr/local/include/X11R6 \ |
|
28050 |
/usr/local/include/X11R5 \ |
|
28051 |
/usr/local/include/X11R4 \ |
|
28052 |
\ |
|
28053 |
/usr/X386/include \ |
|
28054 |
/usr/x386/include \ |
|
28055 |
/usr/XFree86/include/X11 \ |
|
28056 |
\ |
|
28057 |
/usr/include \ |
|
28058 |
/usr/local/include \ |
|
28059 |
/usr/unsupported/include \ |
|
28060 |
/usr/athena/include \ |
|
28061 |
/usr/local/x11r5/include \ |
|
28062 |
/usr/lpp/Xamples/include \ |
|
28063 |
\ |
|
28064 |
/usr/openwin/include \ |
|
28065 |
/usr/openwin/share/include \ |
|
28066 |
; \ |
|
28067 |
do |
|
28068 |
if test -r "$ac_dir/$x_direct_test_include"; then |
|
28069 |
ac_x_includes=$ac_dir |
|
28070 |
break |
|
28071 |
fi |
|
28072 |
done |
|
28073 |
fi |
|
28074 |
rm -f conftest.err conftest.$ac_ext |
|
28075 |
fi # $ac_x_includes = NO |
|
28076 |
||
28077 |
if test "$ac_x_libraries" = NO; then |
|
28078 |
# Check for the libraries. |
|
28079 |
||
28080 |
test -z "$x_direct_test_library" && x_direct_test_library=Xt |
|
28081 |
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
|
28082 |
||
28083 |
# See if we find them without any special options. |
|
28084 |
# Don't add to $LIBS permanently. |
|
28085 |
ac_save_LIBS="$LIBS" |
|
28086 |
LIBS="-l$x_direct_test_library $LIBS" |
|
28087 |
cat >conftest.$ac_ext <<_ACEOF |
|
28088 |
/* confdefs.h. */ |
|
28089 |
_ACEOF |
|
28090 |
cat confdefs.h >>conftest.$ac_ext |
|
28091 |
cat >>conftest.$ac_ext <<_ACEOF |
|
28092 |
/* end confdefs.h. */ |
|
28093 |
#include <X11/Intrinsic.h> |
|
28094 |
int |
|
28095 |
main () |
|
28096 |
{ |
|
28097 |
${x_direct_test_function}(1) |
|
28098 |
; |
|
28099 |
return 0; |
|
28100 |
} |
|
28101 |
_ACEOF |
|
28102 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
28103 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
28104 |
(eval $ac_link) 2>conftest.er1 |
|
28105 |
ac_status=$? |
|
28106 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
28107 |
rm -f conftest.er1 |
|
28108 |
cat conftest.err >&5 |
|
28109 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28110 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
28111 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
28112 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28113 |
(eval $ac_try) 2>&5 |
|
28114 |
ac_status=$? |
|
28115 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28116 |
(exit $ac_status); }; } && |
|
28117 |
{ ac_try='test -s conftest$ac_exeext' |
|
28118 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
28119 |
(eval $ac_try) 2>&5 |
|
28120 |
ac_status=$? |
|
28121 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28122 |
(exit $ac_status); }; }; then |
|
28123 |
LIBS="$ac_save_LIBS" |
|
28124 |
# We can link X programs with no special library path. |
|
28125 |
ac_x_libraries= |
|
28126 |
else |
|
28127 |
echo "$as_me: failed program was:" >&5 |
|
28128 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
28129 |
||
28130 |
LIBS="$ac_save_LIBS" |
|
28131 |
# First see if replacing the include by lib works. |
|
28132 |
# Check X11 before X11Rn because it is often a symlink to the current release. |
|
28133 |
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \ |
|
28134 |
/usr/X11/lib${kdelibsuff} \ |
|
28135 |
/usr/X11R6/lib${kdelibsuff} \ |
|
28136 |
/usr/X11R5/lib${kdelibsuff} \ |
|
28137 |
/usr/X11R4/lib${kdelibsuff} \ |
|
28138 |
\ |
|
28139 |
/usr/lib${kdelibsuff}/X11 \ |
|
28140 |
/usr/lib${kdelibsuff}/X11R6 \ |
|
28141 |
/usr/lib${kdelibsuff}/X11R5 \ |
|
28142 |
/usr/lib${kdelibsuff}/X11R4 \ |
|
28143 |
\ |
|
28144 |
/usr/local/X11/lib${kdelibsuff} \ |
|
28145 |
/usr/local/X11R6/lib${kdelibsuff} \ |
|
28146 |
/usr/local/X11R5/lib${kdelibsuff} \ |
|
28147 |
/usr/local/X11R4/lib${kdelibsuff} \ |
|
28148 |
\ |
|
28149 |
/usr/local/lib${kdelibsuff}/X11 \ |
|
28150 |
/usr/local/lib${kdelibsuff}/X11R6 \ |
|
28151 |
/usr/local/lib${kdelibsuff}/X11R5 \ |
|
28152 |
/usr/local/lib${kdelibsuff}/X11R4 \ |
|
28153 |
\ |
|
28154 |
/usr/X386/lib${kdelibsuff} \ |
|
28155 |
/usr/x386/lib${kdelibsuff} \ |
|
28156 |
/usr/XFree86/lib${kdelibsuff}/X11 \ |
|
28157 |
\ |
|
28158 |
/usr/lib${kdelibsuff} \ |
|
28159 |
/usr/local/lib${kdelibsuff} \ |
|
28160 |
/usr/unsupported/lib${kdelibsuff} \ |
|
28161 |
/usr/athena/lib${kdelibsuff} \ |
|
28162 |
/usr/local/x11r5/lib${kdelibsuff} \ |
|
28163 |
/usr/lpp/Xamples/lib${kdelibsuff} \ |
|
28164 |
/lib/usr/lib${kdelibsuff}/X11 \ |
|
28165 |
\ |
|
28166 |
/usr/openwin/lib${kdelibsuff} \ |
|
28167 |
/usr/openwin/share/lib${kdelibsuff} \ |
|
28168 |
; \ |
|
28169 |
do |
|
28170 |
for ac_extension in a so sl; do |
|
28171 |
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
|
28172 |
ac_x_libraries=$ac_dir |
|
28173 |
break 2 |
|
28174 |
fi |
|
28175 |
done |
|
28176 |
done |
|
28177 |
fi |
|
28178 |
rm -f conftest.err conftest.$ac_objext \ |
|
28179 |
conftest$ac_exeext conftest.$ac_ext |
|
28180 |
fi # $ac_x_libraries = NO |
|
28181 |
||
28182 |
case "$host" in |
|
28183 |
mips-sgi-irix6*) |
|
28184 |
;; |
|
28185 |
*-*-solaris*) |
|
28186 |
;; |
|
28187 |
*) |
|
28188 |
rm -fr conftest.dir |
|
28189 |
if mkdir conftest.dir; then |
|
28190 |
cd conftest.dir |
|
28191 |
# Make sure to not put "make" in the Imakefile rules, since we grep it out. |
|
28192 |
cat >Imakefile <<'_ACEOF' |
|
28193 |
acfindx: |
|
28194 |
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
|
28195 |
_ACEOF |
|
28196 |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
|
28197 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
28198 |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
|
28199 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
|
28200 |
for ac_extension in a so sl; do |
|
28201 |
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
|
28202 |
test -f $ac_im_libdir/libX11.$ac_extension; then |
|
28203 |
ac_im_usrlibdir=$ac_im_libdir; break |
|
28204 |
fi |
|
28205 |
done |
|
28206 |
# Screen out bogus values from the imake configuration. They are |
|
28207 |
# bogus both because they are the default anyway, and because |
|
28208 |
# using them would break gcc on systems where it needs fixed includes. |
|
28209 |
case $ac_im_incroot in |
|
28210 |
/usr/include) ;; |
|
28211 |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
|
28212 |
esac |
|
28213 |
case $ac_im_usrlibdir in |
|
28214 |
/usr/lib | /lib) ;; |
|
28215 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
|
28216 |
esac |
|
28217 |
fi |
|
28218 |
cd .. |
|
28219 |
rm -fr conftest.dir |
|
28220 |
fi |
|
28221 |
||
28222 |
if test -z "$ac_x_includes"; then |
|
28223 |
ac_x_includes="." |
|
28224 |
fi |
|
28225 |
if test -z "$ac_x_libraries"; then |
|
28226 |
ac_x_libraries="/usr/lib${kdelibsuff}" |
|
28227 |
fi |
|
28228 |
esac |
|
28229 |
#from now on we use our own again |
|
28230 |
||
28231 |
# when the user already gave --x-includes, we ignore |
|
28232 |
# what the standard autoconf macros told us. |
|
28233 |
if test "$kde_x_includes" = NO; then |
|
28234 |
kde_x_includes=$ac_x_includes |
|
28235 |
fi |
|
28236 |
||
28237 |
# for --x-libraries too |
|
28238 |
if test "$kde_x_libraries" = NO; then |
|
28239 |
kde_x_libraries=$ac_x_libraries |
|
28240 |
fi |
|
28241 |
||
28242 |
if test "$kde_x_includes" = NO; then |
|
28243 |
{ { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5 |
|
28244 |
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;} |
|
28245 |
{ (exit 1); exit 1; }; } |
|
28246 |
fi |
|
28247 |
||
28248 |
if test "$kde_x_libraries" = NO; then |
|
28249 |
{ { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5 |
|
28250 |
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;} |
|
28251 |
{ (exit 1); exit 1; }; } |
|
28252 |
fi |
|
28253 |
||
28254 |
# Record where we found X for the cache. |
|
28255 |
kde_cv_have_x="have_x=yes \ |
|
28256 |
kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries" |
|
28257 |
||
28258 |
fi |
|
28259 |
||
28260 |
eval "$kde_cv_have_x" |
|
28261 |
||
28262 |
if test "$have_x" != yes; then |
|
28263 |
echo "$as_me:$LINENO: result: $have_x" >&5 |
|
28264 |
echo "${ECHO_T}$have_x" >&6 |
|
28265 |
no_x=yes |
|
28266 |
else |
|
28267 |
echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5 |
|
28268 |
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6 |
|
28269 |
fi |
|
28270 |
||
28271 |
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then |
|
28272 |
X_INCLUDES="" |
|
28273 |
x_includes="."; else |
|
28274 |
x_includes=$kde_x_includes |
|
28275 |
X_INCLUDES="-I$x_includes" |
|
28276 |
fi |
|
28277 |
||
28278 |
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then |
|
28279 |
X_LDFLAGS="" |
|
28280 |
x_libraries="/usr/lib"; else |
|
28281 |
x_libraries=$kde_x_libraries |
|
28282 |
X_LDFLAGS="-L$x_libraries" |
|
28283 |
fi |
|
28284 |
all_includes="$X_INCLUDES" |
|
28285 |
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS" |
|
28286 |
||
28287 |
# Check for libraries that X11R6 Xt/Xaw programs need. |
|
28288 |
ac_save_LDFLAGS="$LDFLAGS" |
|
28289 |
LDFLAGS="$LDFLAGS $X_LDFLAGS" |
|
28290 |
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
|
28291 |
# check for ICE first), but we must link in the order -lSM -lICE or |
|
28292 |
# we get undefined symbols. So assume we have SM if we have ICE. |
|
28293 |
# These have to be linked with before -lX11, unlike the other |
|
28294 |
# libraries we check for below, so use a different variable. |
|
28295 |
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
|
28296 |
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
|
28297 |
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
|
28298 |
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
|
28299 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
28300 |
else |
|
28301 |
ac_check_lib_save_LIBS=$LIBS |
|
28302 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
|
28303 |
cat >conftest.$ac_ext <<_ACEOF |
|
28304 |
/* confdefs.h. */ |
|
28305 |
_ACEOF |
|
28306 |
cat confdefs.h >>conftest.$ac_ext |
|
28307 |
cat >>conftest.$ac_ext <<_ACEOF |
|
28308 |
/* end confdefs.h. */ |
|
28309 |
||
28310 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
28311 |
#ifdef __cplusplus |
|
28312 |
extern "C" |
|
28313 |
#endif |
|
28314 |
/* We use char because int might match the return type of a gcc2 |
|
28315 |
builtin and then its argument prototype would still apply. */ |
|
28316 |
char IceConnectionNumber (); |
|
28317 |
int |
|
28318 |
main () |
|
28319 |
{ |
|
28320 |
IceConnectionNumber (); |
|
28321 |
; |
|
28322 |
return 0; |
|
28323 |
} |
|
28324 |
_ACEOF |
|
28325 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
28326 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
28327 |
(eval $ac_link) 2>conftest.er1 |
|
28328 |
ac_status=$? |
|
28329 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
28330 |
rm -f conftest.er1 |
|
28331 |
cat conftest.err >&5 |
|
28332 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28333 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
28334 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
28335 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28336 |
(eval $ac_try) 2>&5 |
|
28337 |
ac_status=$? |
|
28338 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28339 |
(exit $ac_status); }; } && |
|
28340 |
{ ac_try='test -s conftest$ac_exeext' |
|
28341 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
28342 |
(eval $ac_try) 2>&5 |
|
28343 |
ac_status=$? |
|
28344 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28345 |
(exit $ac_status); }; }; then |
|
28346 |
ac_cv_lib_ICE_IceConnectionNumber=yes |
|
28347 |
else |
|
28348 |
echo "$as_me: failed program was:" >&5 |
|
28349 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
28350 |
||
28351 |
ac_cv_lib_ICE_IceConnectionNumber=no |
|
28352 |
fi |
|
28353 |
rm -f conftest.err conftest.$ac_objext \ |
|
28354 |
conftest$ac_exeext conftest.$ac_ext |
|
28355 |
LIBS=$ac_check_lib_save_LIBS |
|
28356 |
fi |
|
28357 |
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
|
28358 |
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
|
28359 |
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
|
28360 |
LIBSM="-lSM -lICE" |
|
28361 |
fi |
|
28362 |
||
28363 |
LDFLAGS="$ac_save_LDFLAGS" |
|
28364 |
||
28365 |
LIB_X11='-lX11 $(LIBSOCKET)' |
|
28366 |
||
28367 |
echo "$as_me:$LINENO: checking for libXext" >&5 |
|
28368 |
echo $ECHO_N "checking for libXext... $ECHO_C" >&6 |
|
28369 |
if test "${kde_cv_have_libXext+set}" = set; then |
|
28370 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
28371 |
else |
|
28372 |
||
28373 |
kde_ldflags_safe="$LDFLAGS" |
|
28374 |
kde_libs_safe="$LIBS" |
|
28375 |
||
28376 |
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS" |
|
28377 |
LIBS="-lXext -lX11 $LIBSOCKET" |
|
28378 |
||
28379 |
cat >conftest.$ac_ext <<_ACEOF |
|
28380 |
/* confdefs.h. */ |
|
28381 |
_ACEOF |
|
28382 |
cat confdefs.h >>conftest.$ac_ext |
|
28383 |
cat >>conftest.$ac_ext <<_ACEOF |
|
28384 |
/* end confdefs.h. */ |
|
28385 |
||
28386 |
#include <stdio.h> |
|
28387 |
#ifdef STDC_HEADERS |
|
28388 |
# include <stdlib.h> |
|
28389 |
#endif |
|
28390 |
||
28391 |
int |
|
28392 |
main () |
|
28393 |
{ |
|
28394 |
||
28395 |
printf("hello Xext\n"); |
|
28396 |
||
28397 |
; |
|
28398 |
return 0; |
|
28399 |
} |
|
28400 |
_ACEOF |
|
28401 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
28402 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
28403 |
(eval $ac_link) 2>conftest.er1 |
|
28404 |
ac_status=$? |
|
28405 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
28406 |
rm -f conftest.er1 |
|
28407 |
cat conftest.err >&5 |
|
28408 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28409 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
28410 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
28411 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28412 |
(eval $ac_try) 2>&5 |
|
28413 |
ac_status=$? |
|
28414 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28415 |
(exit $ac_status); }; } && |
|
28416 |
{ ac_try='test -s conftest$ac_exeext' |
|
28417 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
28418 |
(eval $ac_try) 2>&5 |
|
28419 |
ac_status=$? |
|
28420 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28421 |
(exit $ac_status); }; }; then |
|
28422 |
kde_cv_have_libXext=yes |
|
28423 |
else |
|
28424 |
echo "$as_me: failed program was:" >&5 |
|
28425 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
28426 |
||
28427 |
kde_cv_have_libXext=no |
|
28428 |
||
28429 |
fi |
|
28430 |
rm -f conftest.err conftest.$ac_objext \ |
|
28431 |
conftest$ac_exeext conftest.$ac_ext |
|
28432 |
||
28433 |
LDFLAGS=$kde_ldflags_safe |
|
28434 |
LIBS=$kde_libs_safe |
|
28435 |
||
28436 |
fi |
|
28437 |
||
28438 |
||
28439 |
echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5 |
|
28440 |
echo "${ECHO_T}$kde_cv_have_libXext" >&6 |
|
28441 |
||
28442 |
if test "$kde_cv_have_libXext" = "no"; then |
|
28443 |
{ { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure |
|
28444 |
can't find it itself, we stop here assuming that make wouldn't find |
|
28445 |
them either." >&5 |
|
28446 |
echo "$as_me: error: We need a working libXext to proceed. Since configure |
|
28447 |
can't find it itself, we stop here assuming that make wouldn't find |
|
28448 |
them either." >&2;} |
|
28449 |
{ (exit 1); exit 1; }; } |
|
28450 |
fi |
|
28451 |
||
28452 |
LIB_XEXT="-lXext" |
|
28453 |
QTE_NORTTI="" |
|
28454 |
||
28455 |
elif test "$kde_use_qt_emb" = "yes"; then |
|
28456 |
CPPFLAGS=-DQWS |
|
28457 |
CXXFLAGS="$CXXFLAGS -fno-rtti" |
|
28458 |
QTE_NORTTI="-fno-rtti -DQWS" |
|
28459 |
X_PRE_LIBS="" |
|
28460 |
LIB_X11="" |
|
28461 |
LIB_XEXT="" |
|
28462 |
LIB_XRENDER="" |
|
28463 |
LIBSM="" |
|
28464 |
X_INCLUDES="" |
|
28465 |
X_LDFLAGS="" |
|
28466 |
x_includes="" |
|
28467 |
x_libraries="" |
|
28468 |
elif test "$kde_use_qt_mac" = "yes"; then |
|
28469 |
CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp" |
|
28470 |
CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp" |
|
28471 |
X_PRE_LIBS="" |
|
28472 |
LIB_X11="" |
|
28473 |
LIB_XEXT="" |
|
28474 |
LIB_XRENDER="" |
|
28475 |
LIBSM="" |
|
28476 |
X_INCLUDES="" |
|
28477 |
X_LDFLAGS="" |
|
28478 |
x_includes="" |
|
28479 |
x_libraries="" |
|
28480 |
fi |
|
28481 |
||
28482 |
||
28483 |
||
28484 |
||
28485 |
||
28486 |
||
28487 |
||
28488 |
||
28489 |
||
28490 |
||
28491 |
||
28492 |
||
28493 |
||
28494 |
LIBPTHREAD="" |
|
28495 |
||
28496 |
if test -n "$PTHREAD_LIBS"; then |
|
28497 |
if test "x$PTHREAD_LIBS" = "x-pthread" ; then |
|
28498 |
LIBPTHREAD="PTHREAD" |
|
28499 |
else |
|
28500 |
PTHREAD_LIBS_save="$PTHREAD_LIBS" |
|
28501 |
PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'` |
|
28502 |
echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5 |
|
28503 |
echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6 |
|
28504 |
||
28505 |
kde_save_LDFLAGS="$LDFLAGS" |
|
28506 |
kde_save_LIBS="$LIBS" |
|
28507 |
LDFLAGS="$LDFLAGS $all_libraries" |
|
28508 |
case $host_os in |
|
28509 |
aix*) LDFLAGS="-brtl $LDFLAGS" |
|
28510 |
test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS" |
|
28511 |
;; |
|
28512 |
esac |
|
28513 |
as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh` |
|
28514 |
echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5 |
|
28515 |
echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6 |
|
28516 |
if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
|
28517 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
28518 |
else |
|
28519 |
ac_check_lib_save_LIBS=$LIBS |
|
28520 |
LIBS="-l$PTHREAD_LIBS $LIBS" |
|
28521 |
cat >conftest.$ac_ext <<_ACEOF |
|
28522 |
/* confdefs.h. */ |
|
28523 |
_ACEOF |
|
28524 |
cat confdefs.h >>conftest.$ac_ext |
|
28525 |
cat >>conftest.$ac_ext <<_ACEOF |
|
28526 |
/* end confdefs.h. */ |
|
28527 |
||
28528 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
28529 |
#ifdef __cplusplus |
|
28530 |
extern "C" |
|
28531 |
#endif |
|
28532 |
/* We use char because int might match the return type of a gcc2 |
|
28533 |
builtin and then its argument prototype would still apply. */ |
|
28534 |
char pthread_create (); |
|
28535 |
int |
|
28536 |
main () |
|
28537 |
{ |
|
28538 |
pthread_create (); |
|
28539 |
; |
|
28540 |
return 0; |
|
28541 |
} |
|
28542 |
_ACEOF |
|
28543 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
28544 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
28545 |
(eval $ac_link) 2>conftest.er1 |
|
28546 |
ac_status=$? |
|
28547 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
28548 |
rm -f conftest.er1 |
|
28549 |
cat conftest.err >&5 |
|
28550 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28551 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
28552 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
28553 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28554 |
(eval $ac_try) 2>&5 |
|
28555 |
ac_status=$? |
|
28556 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28557 |
(exit $ac_status); }; } && |
|
28558 |
{ ac_try='test -s conftest$ac_exeext' |
|
28559 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
28560 |
(eval $ac_try) 2>&5 |
|
28561 |
ac_status=$? |
|
28562 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28563 |
(exit $ac_status); }; }; then |
|
28564 |
eval "$as_ac_Lib=yes" |
|
28565 |
else |
|
28566 |
echo "$as_me: failed program was:" >&5 |
|
28567 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
28568 |
||
28569 |
eval "$as_ac_Lib=no" |
|
28570 |
fi |
|
28571 |
rm -f conftest.err conftest.$ac_objext \ |
|
28572 |
conftest$ac_exeext conftest.$ac_ext |
|
28573 |
LIBS=$ac_check_lib_save_LIBS |
|
28574 |
fi |
|
28575 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
|
28576 |
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
|
28577 |
if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
|
28578 |
LIBPTHREAD="$PTHREAD_LIBS_save" |
|
28579 |
fi |
|
28580 |
||
28581 |
LDFLAGS="$kde_save_LDFLAGS" |
|
28582 |
LIBS="$kde_save_LIBS" |
|
28583 |
||
28584 |
PTHREAD_LIBS="$PTHREAD_LIBS_save" |
|
28585 |
fi |
|
28586 |
fi |
|
28587 |
||
28588 |
if test -z "$LIBPTHREAD"; then |
|
28589 |
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
|
28590 |
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
|
28591 |
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
|
28592 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
28593 |
else |
|
28594 |
ac_check_lib_save_LIBS=$LIBS |
|
28595 |
LIBS="-lpthread $LIBS" |
|
28596 |
cat >conftest.$ac_ext <<_ACEOF |
|
28597 |
/* confdefs.h. */ |
|
28598 |
_ACEOF |
|
28599 |
cat confdefs.h >>conftest.$ac_ext |
|
28600 |
cat >>conftest.$ac_ext <<_ACEOF |
|
28601 |
/* end confdefs.h. */ |
|
28602 |
||
28603 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
28604 |
#ifdef __cplusplus |
|
28605 |
extern "C" |
|
28606 |
#endif |
|
28607 |
/* We use char because int might match the return type of a gcc2 |
|
28608 |
builtin and then its argument prototype would still apply. */ |
|
28609 |
char pthread_create (); |
|
28610 |
int |
|
28611 |
main () |
|
28612 |
{ |
|
28613 |
pthread_create (); |
|
28614 |
; |
|
28615 |
return 0; |
|
28616 |
} |
|
28617 |
_ACEOF |
|
28618 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
28619 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
28620 |
(eval $ac_link) 2>conftest.er1 |
|
28621 |
ac_status=$? |
|
28622 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
28623 |
rm -f conftest.er1 |
|
28624 |
cat conftest.err >&5 |
|
28625 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28626 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
28627 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
28628 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28629 |
(eval $ac_try) 2>&5 |
|
28630 |
ac_status=$? |
|
28631 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28632 |
(exit $ac_status); }; } && |
|
28633 |
{ ac_try='test -s conftest$ac_exeext' |
|
28634 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
28635 |
(eval $ac_try) 2>&5 |
|
28636 |
ac_status=$? |
|
28637 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28638 |
(exit $ac_status); }; }; then |
|
28639 |
ac_cv_lib_pthread_pthread_create=yes |
|
28640 |
else |
|
28641 |
echo "$as_me: failed program was:" >&5 |
|
28642 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
28643 |
||
28644 |
ac_cv_lib_pthread_pthread_create=no |
|
28645 |
fi |
|
28646 |
rm -f conftest.err conftest.$ac_objext \ |
|
28647 |
conftest$ac_exeext conftest.$ac_ext |
|
28648 |
LIBS=$ac_check_lib_save_LIBS |
|
28649 |
fi |
|
28650 |
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
|
28651 |
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
|
28652 |
if test $ac_cv_lib_pthread_pthread_create = yes; then |
|
28653 |
LIBPTHREAD="-lpthread" |
|
28654 |
fi |
|
28655 |
||
28656 |
fi |
|
28657 |
||
28658 |
if test -z "$LIBPTHREAD" ; then |
|
28659 |
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
|
28660 |
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
|
28661 |
kde_safe_libs=$LIBS |
|
28662 |
LIBS="$LIBS -lpthread" |
|
28663 |
cat >conftest.$ac_ext <<_ACEOF |
|
28664 |
/* confdefs.h. */ |
|
28665 |
_ACEOF |
|
28666 |
cat confdefs.h >>conftest.$ac_ext |
|
28667 |
cat >>conftest.$ac_ext <<_ACEOF |
|
28668 |
/* end confdefs.h. */ |
|
28669 |
#include <pthread.h> |
|
28670 |
int |
|
28671 |
main () |
|
28672 |
{ |
|
28673 |
(void)pthread_create(0,0,0,0); |
|
28674 |
; |
|
28675 |
return 0; |
|
28676 |
} |
|
28677 |
_ACEOF |
|
28678 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
28679 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
28680 |
(eval $ac_link) 2>conftest.er1 |
|
28681 |
ac_status=$? |
|
28682 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
28683 |
rm -f conftest.er1 |
|
28684 |
cat conftest.err >&5 |
|
28685 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28686 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
28687 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
28688 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28689 |
(eval $ac_try) 2>&5 |
|
28690 |
ac_status=$? |
|
28691 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28692 |
(exit $ac_status); }; } && |
|
28693 |
{ ac_try='test -s conftest$ac_exeext' |
|
28694 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
28695 |
(eval $ac_try) 2>&5 |
|
28696 |
ac_status=$? |
|
28697 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28698 |
(exit $ac_status); }; }; then |
|
28699 |
||
28700 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
28701 |
echo "${ECHO_T}yes" >&6 |
|
28702 |
LIBPTHREAD="-lpthread" |
|
28703 |
else |
|
28704 |
echo "$as_me: failed program was:" >&5 |
|
28705 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
28706 |
||
28707 |
||
28708 |
echo "$as_me:$LINENO: result: no" >&5 |
|
28709 |
echo "${ECHO_T}no" >&6 |
|
28710 |
fi |
|
28711 |
rm -f conftest.err conftest.$ac_objext \ |
|
28712 |
conftest$ac_exeext conftest.$ac_ext |
|
28713 |
LIBS=$kde_safe_libs |
|
28714 |
fi |
|
28715 |
||
28716 |
if test "x$LIBPTHREAD" = "xPTHREAD" ; then |
|
28717 |
LIBPTHREAD="" |
|
28718 |
fi |
|
28719 |
||
28720 |
||
28721 |
||
28722 |
||
28723 |
USE_THREADS="" |
|
28724 |
if test -z "$LIBPTHREAD"; then |
|
28725 |
||
28726 |
echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5 |
|
28727 |
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6 |
|
28728 |
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'` |
|
28729 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
28730 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
28731 |
else |
|
28732 |
||
28733 |
||
28734 |
||
28735 |
ac_ext=cc |
|
28736 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
28737 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
28738 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
28739 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
28740 |
||
28741 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
28742 |
||
28743 |
||
28744 |
save_CXXFLAGS="$CXXFLAGS" |
|
28745 |
CXXFLAGS="$CXXFLAGS -pthread" |
|
28746 |
cat >conftest.$ac_ext <<_ACEOF |
|
28747 |
/* confdefs.h. */ |
|
28748 |
_ACEOF |
|
28749 |
cat confdefs.h >>conftest.$ac_ext |
|
28750 |
cat >>conftest.$ac_ext <<_ACEOF |
|
28751 |
/* end confdefs.h. */ |
|
28752 |
||
28753 |
int |
|
28754 |
main () |
|
28755 |
{ |
|
28756 |
return 0; |
|
28757 |
; |
|
28758 |
return 0; |
|
28759 |
} |
|
28760 |
_ACEOF |
|
28761 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
28762 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
28763 |
(eval $ac_link) 2>conftest.er1 |
|
28764 |
ac_status=$? |
|
28765 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
28766 |
rm -f conftest.er1 |
|
28767 |
cat conftest.err >&5 |
|
28768 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28769 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
28770 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
28771 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28772 |
(eval $ac_try) 2>&5 |
|
28773 |
ac_status=$? |
|
28774 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28775 |
(exit $ac_status); }; } && |
|
28776 |
{ ac_try='test -s conftest$ac_exeext' |
|
28777 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
28778 |
(eval $ac_try) 2>&5 |
|
28779 |
ac_status=$? |
|
28780 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28781 |
(exit $ac_status); }; }; then |
|
28782 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
28783 |
else |
|
28784 |
echo "$as_me: failed program was:" >&5 |
|
28785 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
28786 |
||
28787 |
fi |
|
28788 |
rm -f conftest.err conftest.$ac_objext \ |
|
28789 |
conftest$ac_exeext conftest.$ac_ext |
|
28790 |
CXXFLAGS="$save_CXXFLAGS" |
|
28791 |
ac_ext=c |
|
28792 |
ac_cpp='$CPP $CPPFLAGS' |
|
28793 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
28794 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
28795 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
28796 |
||
28797 |
||
28798 |
fi |
|
28799 |
||
28800 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
28801 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
28802 |
echo "${ECHO_T}yes" >&6 |
|
28803 |
: |
|
28804 |
USE_THREADS="-D_THREAD_SAFE -pthread" |
|
28805 |
else |
|
28806 |
echo "$as_me:$LINENO: result: no" >&5 |
|
28807 |
echo "${ECHO_T}no" >&6 |
|
28808 |
: |
|
28809 |
||
28810 |
fi |
|
28811 |
||
28812 |
fi |
|
28813 |
||
28814 |
||
28815 |
||
28816 |
case $host_os in |
|
28817 |
solaris*) |
|
28818 |
||
28819 |
echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5 |
|
28820 |
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6 |
|
28821 |
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'` |
|
28822 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
28823 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
28824 |
else |
|
28825 |
||
28826 |
||
28827 |
||
28828 |
ac_ext=cc |
|
28829 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
28830 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
28831 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
28832 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
28833 |
||
28834 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
28835 |
||
28836 |
||
28837 |
save_CXXFLAGS="$CXXFLAGS" |
|
28838 |
CXXFLAGS="$CXXFLAGS -mt" |
|
28839 |
cat >conftest.$ac_ext <<_ACEOF |
|
28840 |
/* confdefs.h. */ |
|
28841 |
_ACEOF |
|
28842 |
cat confdefs.h >>conftest.$ac_ext |
|
28843 |
cat >>conftest.$ac_ext <<_ACEOF |
|
28844 |
/* end confdefs.h. */ |
|
28845 |
||
28846 |
int |
|
28847 |
main () |
|
28848 |
{ |
|
28849 |
return 0; |
|
28850 |
; |
|
28851 |
return 0; |
|
28852 |
} |
|
28853 |
_ACEOF |
|
28854 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
28855 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
28856 |
(eval $ac_link) 2>conftest.er1 |
|
28857 |
ac_status=$? |
|
28858 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
28859 |
rm -f conftest.er1 |
|
28860 |
cat conftest.err >&5 |
|
28861 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28862 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
28863 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
28864 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28865 |
(eval $ac_try) 2>&5 |
|
28866 |
ac_status=$? |
|
28867 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28868 |
(exit $ac_status); }; } && |
|
28869 |
{ ac_try='test -s conftest$ac_exeext' |
|
28870 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
28871 |
(eval $ac_try) 2>&5 |
|
28872 |
ac_status=$? |
|
28873 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
28874 |
(exit $ac_status); }; }; then |
|
28875 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
28876 |
else |
|
28877 |
echo "$as_me: failed program was:" >&5 |
|
28878 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
28879 |
||
28880 |
fi |
|
28881 |
rm -f conftest.err conftest.$ac_objext \ |
|
28882 |
conftest$ac_exeext conftest.$ac_ext |
|
28883 |
CXXFLAGS="$save_CXXFLAGS" |
|
28884 |
ac_ext=c |
|
28885 |
ac_cpp='$CPP $CPPFLAGS' |
|
28886 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
28887 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
28888 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
28889 |
||
28890 |
||
28891 |
fi |
|
28892 |
||
28893 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
28894 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
28895 |
echo "${ECHO_T}yes" >&6 |
|
28896 |
: |
|
28897 |
USE_THREADS="-mt" |
|
28898 |
else |
|
28899 |
echo "$as_me:$LINENO: result: no" >&5 |
|
28900 |
echo "${ECHO_T}no" >&6 |
|
28901 |
: |
|
28902 |
||
28903 |
fi |
|
28904 |
||
28905 |
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4" |
|
28906 |
;; |
|
28907 |
freebsd*) |
|
28908 |
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS" |
|
28909 |
;; |
|
28910 |
aix*) |
|
28911 |
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" |
|
28912 |
LIBPTHREAD="$LIBPTHREAD -lc_r" |
|
28913 |
;; |
|
28914 |
linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
|
28915 |
if test "$CXX" = "KCC"; then |
|
28916 |
CXXFLAGS="$CXXFLAGS --thread_safe" |
|
28917 |
NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe" |
|
28918 |
fi |
|
28919 |
;; |
|
28920 |
*) |
|
28921 |
;; |
|
28922 |
esac |
|
28923 |
||
28924 |
||
28925 |
||
28926 |
||
28927 |
echo "$as_me:$LINENO: checking for extra includes" >&5 |
|
28928 |
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6 |
|
28929 |
||
28930 |
# Check whether --with-extra-includes or --without-extra-includes was given. |
|
28931 |
if test "${with_extra_includes+set}" = set; then |
|
28932 |
withval="$with_extra_includes" |
|
28933 |
kde_use_extra_includes="$withval" |
|
28934 |
else |
|
28935 |
kde_use_extra_includes=NONE |
|
28936 |
||
28937 |
fi; |
|
28938 |
kde_extra_includes= |
|
28939 |
if test -n "$kde_use_extra_includes" && \ |
|
28940 |
test "$kde_use_extra_includes" != "NONE"; then |
|
28941 |
||
28942 |
ac_save_ifs=$IFS |
|
28943 |
IFS=':' |
|
28944 |
for dir in $kde_use_extra_includes; do |
|
28945 |
kde_extra_includes="$kde_extra_includes $dir" |
|
28946 |
USER_INCLUDES="$USER_INCLUDES -I$dir" |
|
28947 |
done |
|
28948 |
IFS=$ac_save_ifs |
|
28949 |
kde_use_extra_includes="added" |
|
28950 |
else |
|
28951 |
kde_use_extra_includes="no" |
|
28952 |
fi |
|
28953 |
||
28954 |
||
28955 |
echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5 |
|
28956 |
echo "${ECHO_T}$kde_use_extra_includes" >&6 |
|
28957 |
||
28958 |
kde_extra_libs= |
|
28959 |
echo "$as_me:$LINENO: checking for extra libs" >&5 |
|
28960 |
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6 |
|
28961 |
||
28962 |
# Check whether --with-extra-libs or --without-extra-libs was given. |
|
28963 |
if test "${with_extra_libs+set}" = set; then |
|
28964 |
withval="$with_extra_libs" |
|
28965 |
kde_use_extra_libs=$withval |
|
28966 |
else |
|
28967 |
kde_use_extra_libs=NONE |
|
28968 |
||
28969 |
fi; |
|
28970 |
if test -n "$kde_use_extra_libs" && \ |
|
28971 |
test "$kde_use_extra_libs" != "NONE"; then |
|
28972 |
||
28973 |
ac_save_ifs=$IFS |
|
28974 |
IFS=':' |
|
28975 |
for dir in $kde_use_extra_libs; do |
|
28976 |
kde_extra_libs="$kde_extra_libs $dir" |
|
28977 |
KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir" |
|
28978 |
USER_LDFLAGS="$USER_LDFLAGS -L$dir" |
|
28979 |
done |
|
28980 |
IFS=$ac_save_ifs |
|
28981 |
kde_use_extra_libs="added" |
|
28982 |
else |
|
28983 |
kde_use_extra_libs="no" |
|
28984 |
fi |
|
28985 |
||
28986 |
||
28987 |
||
28988 |
echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5 |
|
28989 |
echo "${ECHO_T}$kde_use_extra_libs" >&6 |
|
28990 |
||
28991 |
||
28992 |
||
28993 |
||
28994 |
echo "$as_me:$LINENO: checking for libz" >&5 |
|
28995 |
echo $ECHO_N "checking for libz... $ECHO_C" >&6 |
|
28996 |
if test "${ac_cv_lib_z+set}" = set; then |
|
28997 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
28998 |
else |
|
28999 |
||
29000 |
kde_save_LIBS="$LIBS" |
|
29001 |
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET" |
|
29002 |
kde_save_CFLAGS="$CFLAGS" |
|
29003 |
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" |
|
29004 |
cat >conftest.$ac_ext <<_ACEOF |
|
29005 |
/* confdefs.h. */ |
|
29006 |
_ACEOF |
|
29007 |
cat confdefs.h >>conftest.$ac_ext |
|
29008 |
cat >>conftest.$ac_ext <<_ACEOF |
|
29009 |
/* end confdefs.h. */ |
|
29010 |
||
29011 |
#include<zlib.h> |
|
29012 |
||
29013 |
int |
|
29014 |
main () |
|
29015 |
{ |
|
29016 |
||
29017 |
char buf[42]; |
|
29018 |
gzFile f = (gzFile) 0; |
|
29019 |
/* this would segfault.. but we only link, don't run */ |
|
29020 |
(void) gzgets(f, buf, sizeof(buf)); |
|
29021 |
||
29022 |
return (zlibVersion() == ZLIB_VERSION); |
|
29023 |
||
29024 |
; |
|
29025 |
return 0; |
|
29026 |
} |
|
29027 |
_ACEOF |
|
29028 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
29029 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
29030 |
(eval $ac_link) 2>conftest.er1 |
|
29031 |
ac_status=$? |
|
29032 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
29033 |
rm -f conftest.er1 |
|
29034 |
cat conftest.err >&5 |
|
29035 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29036 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29037 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29038 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29039 |
(eval $ac_try) 2>&5 |
|
29040 |
ac_status=$? |
|
29041 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29042 |
(exit $ac_status); }; } && |
|
29043 |
{ ac_try='test -s conftest$ac_exeext' |
|
29044 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
29045 |
(eval $ac_try) 2>&5 |
|
29046 |
ac_status=$? |
|
29047 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29048 |
(exit $ac_status); }; }; then |
|
29049 |
eval "ac_cv_lib_z='-lz'" |
|
29050 |
else |
|
29051 |
echo "$as_me: failed program was:" >&5 |
|
29052 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
29053 |
||
29054 |
eval "ac_cv_lib_z=no" |
|
29055 |
fi |
|
29056 |
rm -f conftest.err conftest.$ac_objext \ |
|
29057 |
conftest$ac_exeext conftest.$ac_ext |
|
29058 |
LIBS="$kde_save_LIBS" |
|
29059 |
CFLAGS="$kde_save_CFLAGS" |
|
29060 |
||
29061 |
fi |
|
29062 |
if test ! "$ac_cv_lib_z" = no; then |
|
29063 |
||
29064 |
cat >>confdefs.h <<_ACEOF |
|
29065 |
#define HAVE_LIBZ 1 |
|
29066 |
_ACEOF |
|
29067 |
||
29068 |
LIBZ="$ac_cv_lib_z" |
|
29069 |
echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5 |
|
29070 |
echo "${ECHO_T}$ac_cv_lib_z" >&6 |
|
29071 |
else |
|
29072 |
{ { echo "$as_me:$LINENO: error: not found. |
|
29073 |
Possibly configure picks up an outdated version |
|
29074 |
installed by XFree86. Remove it from your system. |
|
29075 |
||
29076 |
Check your installation and look into config.log" >&5 |
|
29077 |
echo "$as_me: error: not found. |
|
29078 |
Possibly configure picks up an outdated version |
|
29079 |
installed by XFree86. Remove it from your system. |
|
29080 |
||
29081 |
Check your installation and look into config.log" >&2;} |
|
29082 |
{ (exit 1); exit 1; }; } |
|
29083 |
LIBZ="" |
|
29084 |
fi |
|
29085 |
||
29086 |
||
29087 |
||
29088 |
||
29089 |
||
29090 |
echo "$as_me:$LINENO: checking for libpng" >&5 |
|
29091 |
echo $ECHO_N "checking for libpng... $ECHO_C" >&6 |
|
29092 |
if test "${ac_cv_lib_png+set}" = set; then |
|
29093 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
29094 |
else |
|
29095 |
||
29096 |
kde_save_LIBS="$LIBS" |
|
29097 |
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then |
|
29098 |
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET" |
|
29099 |
else |
|
29100 |
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm" |
|
29101 |
fi |
|
29102 |
kde_save_CFLAGS="$CFLAGS" |
|
29103 |
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" |
|
29104 |
||
29105 |
cat >conftest.$ac_ext <<_ACEOF |
|
29106 |
/* confdefs.h. */ |
|
29107 |
_ACEOF |
|
29108 |
cat confdefs.h >>conftest.$ac_ext |
|
29109 |
cat >>conftest.$ac_ext <<_ACEOF |
|
29110 |
/* end confdefs.h. */ |
|
29111 |
||
29112 |
#include<png.h> |
|
29113 |
||
29114 |
int |
|
29115 |
main () |
|
29116 |
{ |
|
29117 |
||
29118 |
png_structp png_ptr = png_create_read_struct( /* image ptr */ |
|
29119 |
PNG_LIBPNG_VER_STRING, 0, 0, 0 ); |
|
29120 |
return( png_ptr != 0 ); |
|
29121 |
||
29122 |
; |
|
29123 |
return 0; |
|
29124 |
} |
|
29125 |
_ACEOF |
|
29126 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
29127 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
29128 |
(eval $ac_link) 2>conftest.er1 |
|
29129 |
ac_status=$? |
|
29130 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
29131 |
rm -f conftest.er1 |
|
29132 |
cat conftest.err >&5 |
|
29133 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29134 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29135 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29136 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29137 |
(eval $ac_try) 2>&5 |
|
29138 |
ac_status=$? |
|
29139 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29140 |
(exit $ac_status); }; } && |
|
29141 |
{ ac_try='test -s conftest$ac_exeext' |
|
29142 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
29143 |
(eval $ac_try) 2>&5 |
|
29144 |
ac_status=$? |
|
29145 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29146 |
(exit $ac_status); }; }; then |
|
29147 |
eval "ac_cv_lib_png='-lpng $LIBZ -lm'" |
|
29148 |
else |
|
29149 |
echo "$as_me: failed program was:" >&5 |
|
29150 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
29151 |
||
29152 |
eval "ac_cv_lib_png=no" |
|
29153 |
||
29154 |
fi |
|
29155 |
rm -f conftest.err conftest.$ac_objext \ |
|
29156 |
conftest$ac_exeext conftest.$ac_ext |
|
29157 |
LIBS="$kde_save_LIBS" |
|
29158 |
CFLAGS="$kde_save_CFLAGS" |
|
29159 |
||
29160 |
fi |
|
29161 |
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then |
|
29162 |
||
29163 |
cat >>confdefs.h <<_ACEOF |
|
29164 |
#define HAVE_LIBPNG 1 |
|
29165 |
_ACEOF |
|
29166 |
||
29167 |
LIBPNG="$ac_cv_lib_png" |
|
29168 |
||
29169 |
echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5 |
|
29170 |
echo "${ECHO_T}$ac_cv_lib_png" >&6 |
|
29171 |
else |
|
29172 |
echo "$as_me:$LINENO: result: no" >&5 |
|
29173 |
echo "${ECHO_T}no" >&6 |
|
29174 |
LIBPNG="" |
|
29175 |
||
29176 |
fi |
|
29177 |
||
29178 |
||
29179 |
||
29180 |
echo "$as_me:$LINENO: checking for libjpeg6b" >&5 |
|
29181 |
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6 |
|
29182 |
if test "${ac_cv_lib_jpeg_6b+set}" = set; then |
|
29183 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
29184 |
else |
|
29185 |
||
29186 |
ac_save_LIBS="$LIBS" |
|
29187 |
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm" |
|
29188 |
ac_save_CFLAGS="$CFLAGS" |
|
29189 |
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" |
|
29190 |
cat >conftest.$ac_ext <<_ACEOF |
|
29191 |
/* confdefs.h. */ |
|
29192 |
_ACEOF |
|
29193 |
cat confdefs.h >>conftest.$ac_ext |
|
29194 |
cat >>conftest.$ac_ext <<_ACEOF |
|
29195 |
/* end confdefs.h. */ |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29196 |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
29197 |
#ifdef __cplusplus |
29198 |
extern "C" { |
|
29199 |
#endif |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29200 |
void jpeg_CreateDecompress(); |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29201 |
#ifdef __cplusplus |
29202 |
} |
|
29203 |
#endif |
|
29204 |
||
29205 |
int |
|
29206 |
main () |
|
29207 |
{ |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29208 |
jpeg_CreateDecompress(); |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29209 |
; |
29210 |
return 0; |
|
29211 |
} |
|
29212 |
_ACEOF |
|
29213 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
29214 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
29215 |
(eval $ac_link) 2>conftest.er1 |
|
29216 |
ac_status=$? |
|
29217 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
29218 |
rm -f conftest.er1 |
|
29219 |
cat conftest.err >&5 |
|
29220 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29221 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29222 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29223 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29224 |
(eval $ac_try) 2>&5 |
|
29225 |
ac_status=$? |
|
29226 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29227 |
(exit $ac_status); }; } && |
|
29228 |
{ ac_try='test -s conftest$ac_exeext' |
|
29229 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
29230 |
(eval $ac_try) 2>&5 |
|
29231 |
ac_status=$? |
|
29232 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29233 |
(exit $ac_status); }; }; then |
|
29234 |
eval "ac_cv_lib_jpeg_6b=-ljpeg6b" |
|
29235 |
else |
|
29236 |
echo "$as_me: failed program was:" >&5 |
|
29237 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
29238 |
||
29239 |
eval "ac_cv_lib_jpeg_6b=no" |
|
29240 |
fi |
|
29241 |
rm -f conftest.err conftest.$ac_objext \ |
|
29242 |
conftest$ac_exeext conftest.$ac_ext |
|
29243 |
LIBS="$ac_save_LIBS" |
|
29244 |
CFLAGS="$ac_save_CFLAGS" |
|
29245 |
||
29246 |
fi |
|
29247 |
||
29248 |
||
29249 |
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then |
|
29250 |
LIBJPEG="$ac_cv_lib_jpeg_6b" |
|
29251 |
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5 |
|
29252 |
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6 |
|
29253 |
else |
|
29254 |
echo "$as_me:$LINENO: result: no" >&5 |
|
29255 |
echo "${ECHO_T}no" >&6 |
|
29256 |
||
29257 |
echo "$as_me:$LINENO: checking for libjpeg" >&5 |
|
29258 |
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6 |
|
29259 |
if test "${ac_cv_lib_jpeg_normal+set}" = set; then |
|
29260 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
29261 |
else |
|
29262 |
||
29263 |
ac_save_LIBS="$LIBS" |
|
29264 |
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm" |
|
29265 |
ac_save_CFLAGS="$CFLAGS" |
|
29266 |
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" |
|
29267 |
cat >conftest.$ac_ext <<_ACEOF |
|
29268 |
/* confdefs.h. */ |
|
29269 |
_ACEOF |
|
29270 |
cat confdefs.h >>conftest.$ac_ext |
|
29271 |
cat >>conftest.$ac_ext <<_ACEOF |
|
29272 |
/* end confdefs.h. */ |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29273 |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
29274 |
#ifdef __cplusplus |
29275 |
extern "C" { |
|
29276 |
#endif |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29277 |
void jpeg_CreateDecompress(); |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29278 |
#ifdef __cplusplus |
29279 |
} |
|
29280 |
#endif |
|
29281 |
||
29282 |
int |
|
29283 |
main () |
|
29284 |
{ |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29285 |
jpeg_CreateDecompress(); |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29286 |
; |
29287 |
return 0; |
|
29288 |
} |
|
29289 |
_ACEOF |
|
29290 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
29291 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
29292 |
(eval $ac_link) 2>conftest.er1 |
|
29293 |
ac_status=$? |
|
29294 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
29295 |
rm -f conftest.er1 |
|
29296 |
cat conftest.err >&5 |
|
29297 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29298 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29299 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29300 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29301 |
(eval $ac_try) 2>&5 |
|
29302 |
ac_status=$? |
|
29303 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29304 |
(exit $ac_status); }; } && |
|
29305 |
{ ac_try='test -s conftest$ac_exeext' |
|
29306 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
29307 |
(eval $ac_try) 2>&5 |
|
29308 |
ac_status=$? |
|
29309 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29310 |
(exit $ac_status); }; }; then |
|
29311 |
eval "ac_cv_lib_jpeg_normal=-ljpeg" |
|
29312 |
else |
|
29313 |
echo "$as_me: failed program was:" >&5 |
|
29314 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
29315 |
||
29316 |
eval "ac_cv_lib_jpeg_normal=no" |
|
29317 |
fi |
|
29318 |
rm -f conftest.err conftest.$ac_objext \ |
|
29319 |
conftest$ac_exeext conftest.$ac_ext |
|
29320 |
LIBS="$ac_save_LIBS" |
|
29321 |
CFLAGS="$ac_save_CFLAGS" |
|
29322 |
||
29323 |
fi |
|
29324 |
||
29325 |
||
29326 |
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then |
|
29327 |
LIBJPEG="$ac_cv_lib_jpeg_normal" |
|
29328 |
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5 |
|
29329 |
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6 |
|
29330 |
else |
|
29331 |
echo "$as_me:$LINENO: result: no" >&5 |
|
29332 |
echo "${ECHO_T}no" >&6 |
|
29333 |
||
29334 |
LIBJPEG= |
|
29335 |
||
29336 |
||
29337 |
fi |
|
29338 |
||
29339 |
||
29340 |
||
29341 |
fi |
|
29342 |
||
29343 |
||
29344 |
||
29345 |
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes" |
|
29346 |
||
29347 |
jpeg_incdir=NO |
|
29348 |
for i in $jpeg_incdirs; |
|
29349 |
do |
|
29350 |
for j in jpeglib.h; |
|
29351 |
do |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29352 |
echo "configure: 29352: $i/$j" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29353 |
if test -r "$i/$j"; then |
29354 |
echo "taking that" >&5 |
|
29355 |
jpeg_incdir=$i |
|
29356 |
break 2 |
|
29357 |
fi |
|
29358 |
done |
|
29359 |
done |
|
29360 |
||
29361 |
test "x$jpeg_incdir" = xNO && jpeg_incdir= |
|
29362 |
||
29363 |
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then |
|
29364 |
||
29365 |
cat >>confdefs.h <<_ACEOF |
|
29366 |
#define HAVE_LIBJPEG 1 |
|
29367 |
_ACEOF |
|
29368 |
||
29369 |
else |
|
29370 |
if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then |
|
29371 |
{ echo "$as_me:$LINENO: WARNING: |
|
29372 |
There is an installation error in jpeg support. You seem to have only one |
|
29373 |
of either the headers _or_ the libraries installed. You may need to either |
|
29374 |
provide correct --with-extra-... options, or the development package of |
|
29375 |
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/ |
|
29376 |
Disabling JPEG support. |
|
29377 |
" >&5 |
|
29378 |
echo "$as_me: WARNING: |
|
29379 |
There is an installation error in jpeg support. You seem to have only one |
|
29380 |
of either the headers _or_ the libraries installed. You may need to either |
|
29381 |
provide correct --with-extra-... options, or the development package of |
|
29382 |
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/ |
|
29383 |
Disabling JPEG support. |
|
29384 |
" >&2;} |
|
29385 |
else |
|
29386 |
{ echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5 |
|
29387 |
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;} |
|
29388 |
fi |
|
29389 |
jpeg_incdir= |
|
29390 |
LIBJPEG= |
|
29391 |
fi |
|
29392 |
||
29393 |
||
29394 |
||
29395 |
||
29396 |
||
29397 |
||
29398 |
||
29399 |
echo "$as_me:$LINENO: checking for perl" >&5 |
|
29400 |
echo $ECHO_N "checking for perl... $ECHO_C" >&6 |
|
29401 |
if test -n "$PERL"; then |
|
29402 |
kde_cv_path="$PERL"; |
|
29403 |
else |
|
29404 |
kde_cache=`echo perl | sed 'y%./+-%__p_%'` |
|
29405 |
||
29406 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
29407 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
29408 |
else |
|
29409 |
||
29410 |
kde_cv_path="NONE" |
|
29411 |
kde_save_IFS=$IFS |
|
29412 |
IFS=':' |
|
29413 |
dirs="" |
|
29414 |
for dir in $PATH; do |
|
29415 |
dirs="$dirs $dir" |
|
29416 |
done |
|
29417 |
if test -z ""; then dirs="$bindir $exec_prefix/bin $prefix/bin $dirs" |
|
29418 |
else dirs="$dirs $bindir $exec_prefix/bin $prefix/bin" |
|
29419 |
fi |
|
29420 |
IFS=$kde_save_IFS |
|
29421 |
||
29422 |
for dir in $dirs; do |
|
29423 |
if test -x "$dir/perl"; then |
|
29424 |
if test -n "" |
|
29425 |
then |
|
29426 |
evalstr="$dir/perl 2>&1 " |
|
29427 |
if eval $evalstr; then |
|
29428 |
kde_cv_path="$dir/perl" |
|
29429 |
break |
|
29430 |
fi |
|
29431 |
else |
|
29432 |
kde_cv_path="$dir/perl" |
|
29433 |
break |
|
29434 |
fi |
|
29435 |
fi |
|
29436 |
done |
|
29437 |
||
29438 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
29439 |
||
29440 |
||
29441 |
fi |
|
29442 |
||
29443 |
||
29444 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
29445 |
||
29446 |
fi |
|
29447 |
||
29448 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
29449 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
29450 |
echo "${ECHO_T}not found" >&6 |
|
29451 |
||
29452 |
{ { echo "$as_me:$LINENO: error: No Perl found in your $PATH. |
|
29453 |
We need perl to generate some code." >&5 |
|
29454 |
echo "$as_me: error: No Perl found in your $PATH. |
|
29455 |
We need perl to generate some code." >&2;} |
|
29456 |
{ (exit 1); exit 1; }; } |
|
29457 |
||
29458 |
else |
|
29459 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
29460 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
29461 |
PERL=$kde_cv_path |
|
29462 |
||
29463 |
fi |
|
29464 |
||
29465 |
||
29466 |
||
29467 |
||
29468 |
||
29469 |
||
29470 |
||
29471 |
||
29472 |
||
29473 |
||
29474 |
# Check whether --enable-mt or --disable-mt was given. |
|
29475 |
if test "${enable_mt+set}" = set; then |
|
29476 |
enableval="$enable_mt" |
|
29477 |
kde_use_qt_mt=$enableval |
|
29478 |
else |
|
29479 |
||
29480 |
if test $kde_qtver = 3; then |
|
29481 |
kde_use_qt_mt=yes |
|
29482 |
else |
|
29483 |
kde_use_qt_mt=no |
|
29484 |
fi |
|
29485 |
||
29486 |
||
29487 |
fi; |
|
29488 |
||
29489 |
USING_QT_MT="" |
|
29490 |
||
29491 |
||
29492 |
KDE_MT_LDFLAGS= |
|
29493 |
KDE_MT_LIBS= |
|
29494 |
if test "x$kde_use_qt_mt" = "xyes"; then |
|
29495 |
||
29496 |
||
29497 |
||
29498 |
if test -z "$LIBPTHREAD"; then |
|
29499 |
if test -z "$USE_THREADS"; then |
|
29500 |
kde_check_threading_default=no |
|
29501 |
else |
|
29502 |
kde_check_threading_default=yes |
|
29503 |
fi |
|
29504 |
else |
|
29505 |
kde_check_threading_default=yes |
|
29506 |
fi |
|
29507 |
# Check whether --enable-threading or --disable-threading was given. |
|
29508 |
if test "${enable_threading+set}" = set; then |
|
29509 |
enableval="$enable_threading" |
|
29510 |
kde_use_threading=$enableval |
|
29511 |
else |
|
29512 |
kde_use_threading=$kde_check_threading_default |
|
29513 |
fi; |
|
29514 |
if test "x$kde_use_threading" = "xyes"; then |
|
29515 |
||
29516 |
cat >>confdefs.h <<\_ACEOF |
|
29517 |
#define HAVE_LIBPTHREAD 1 |
|
29518 |
_ACEOF |
|
29519 |
||
29520 |
fi |
|
29521 |
||
29522 |
if test "x$kde_use_threading" = "xyes"; then |
|
29523 |
CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS" |
|
29524 |
KDE_MT_LDFLAGS="$USE_THREADS" |
|
29525 |
KDE_MT_LIBS="$LIBPTHREAD" |
|
29526 |
else |
|
29527 |
kde_use_qt_mt=no |
|
29528 |
fi |
|
29529 |
fi |
|
29530 |
||
29531 |
||
29532 |
||
29533 |
kde_qt_was_given=yes |
|
29534 |
||
29535 |
if test -z "$LIBQT_GLOB"; then |
|
29536 |
if test "x$kde_use_qt_emb" = "xyes"; then |
|
29537 |
LIBQT_GLOB="libqte.*" |
|
29538 |
else |
|
29539 |
LIBQT_GLOB="libqt.*" |
|
29540 |
fi |
|
29541 |
fi |
|
29542 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29543 |
if test "x$kde_use_qt_emb" = "xyes"; then |
29544 |
qtlib="qte" |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
29545 |
else |
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29546 |
qtlib="qt" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29547 |
fi |
29548 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29549 |
kde_int_qt="-l$qtlib" |
29550 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
29551 |
if test -z "$LIBQPE"; then |
29552 |
if test "x$kde_use_qt_emb" = "xyes"; then |
|
29553 |
if test "x$kde_use_qt_emb_palm" = "xyes"; then |
|
29554 |
LIB_QPE="-lqpe" |
|
29555 |
else |
|
29556 |
LIB_QPE="" |
|
29557 |
fi |
|
29558 |
else |
|
29559 |
LIB_QPE="" |
|
29560 |
fi |
|
29561 |
fi |
|
29562 |
||
29563 |
||
29564 |
if test "x$kde_use_qt_mt" = "xyes"; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29565 |
LIBQT="-l$qtlib-mt" |
29566 |
kde_int_qt="-l$qtlib-mt" |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
29567 |
LIBQT_GLOB="lib$qtlib-mt.*" |
29568 |
USING_QT_MT="using -mt" |
|
29569 |
else |
|
29570 |
LIBQT="-l$qtlib" |
|
29571 |
fi |
|
29572 |
||
29573 |
if test $kde_qtver != 1; then |
|
29574 |
||
29575 |
||
29576 |
||
29577 |
LIBQT="$LIBQT $LIBPNG $LIBJPEG" |
|
29578 |
fi |
|
29579 |
||
29580 |
if test $kde_qtver = 3; then |
|
29581 |
||
29582 |
LIBQT="$LIBQT $LIBDL" |
|
29583 |
fi |
|
29584 |
||
29585 |
echo "$as_me:$LINENO: checking for Qt" >&5 |
|
29586 |
echo $ECHO_N "checking for Qt... $ECHO_C" >&6 |
|
29587 |
||
29588 |
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then |
|
29589 |
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET" |
|
29590 |
fi |
|
29591 |
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO |
|
29592 |
qt_libraries="" |
|
29593 |
qt_includes="" |
|
29594 |
||
29595 |
# Check whether --with-qt-dir or --without-qt-dir was given. |
|
29596 |
if test "${with_qt_dir+set}" = set; then |
|
29597 |
withval="$with_qt_dir" |
|
29598 |
ac_qt_includes="$withval"/include |
|
29599 |
ac_qt_libraries="$withval"/lib${kdelibsuff} |
|
29600 |
ac_qt_bindir="$withval"/bin |
|
29601 |
||
29602 |
fi; |
|
29603 |
||
29604 |
||
29605 |
# Check whether --with-qt-includes or --without-qt-includes was given. |
|
29606 |
if test "${with_qt_includes+set}" = set; then |
|
29607 |
withval="$with_qt_includes" |
|
29608 |
||
29609 |
ac_qt_includes="$withval" |
|
29610 |
||
29611 |
fi; |
|
29612 |
||
29613 |
kde_qt_libs_given=no |
|
29614 |
||
29615 |
||
29616 |
# Check whether --with-qt-libraries or --without-qt-libraries was given. |
|
29617 |
if test "${with_qt_libraries+set}" = set; then |
|
29618 |
withval="$with_qt_libraries" |
|
29619 |
ac_qt_libraries="$withval" |
|
29620 |
kde_qt_libs_given=yes |
|
29621 |
||
29622 |
fi; |
|
29623 |
||
29624 |
if test "${ac_cv_have_qt+set}" = set; then |
|
29625 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
29626 |
else |
|
29627 |
#try to guess Qt locations |
|
29628 |
||
29629 |
qt_incdirs="" |
|
29630 |
for dir in $kde_qt_dirs; do |
|
29631 |
qt_incdirs="$qt_incdirs $dir/include $dir" |
|
29632 |
done |
|
29633 |
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes" |
|
29634 |
if test ! "$ac_qt_includes" = "NO"; then |
|
29635 |
qt_incdirs="$ac_qt_includes $qt_incdirs" |
|
29636 |
fi |
|
29637 |
||
29638 |
if test "$kde_qtver" != "1"; then |
|
29639 |
kde_qt_header=qstyle.h |
|
29640 |
else |
|
29641 |
kde_qt_header=qglobal.h |
|
29642 |
fi |
|
29643 |
||
29644 |
||
29645 |
qt_incdir=NO |
|
29646 |
for i in $qt_incdirs; |
|
29647 |
do |
|
29648 |
for j in $kde_qt_header; |
|
29649 |
do |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
29650 |
echo "configure: 29650: $i/$j" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
29651 |
if test -r "$i/$j"; then |
29652 |
echo "taking that" >&5 |
|
29653 |
qt_incdir=$i |
|
29654 |
break 2 |
|
29655 |
fi |
|
29656 |
done |
|
29657 |
done |
|
29658 |
||
29659 |
ac_qt_includes="$qt_incdir" |
|
29660 |
||
29661 |
qt_libdirs="" |
|
29662 |
for dir in $kde_qt_dirs; do |
|
29663 |
qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir" |
|
29664 |
done |
|
29665 |
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries" |
|
29666 |
if test ! "$ac_qt_libraries" = "NO"; then |
|
29667 |
qt_libdir=$ac_qt_libraries |
|
29668 |
else |
|
29669 |
qt_libdirs="$ac_qt_libraries $qt_libdirs" |
|
29670 |
# if the Qt was given, the chance is too big that libqt.* doesn't exist |
|
29671 |
qt_libdir=NONE |
|
29672 |
for dir in $qt_libdirs; do |
|
29673 |
try="ls -1 $dir/${LIBQT_GLOB}" |
|
29674 |
if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi |
|
29675 |
done |
|
29676 |
fi |
|
29677 |
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do |
|
29678 |
if test -e "$a"; then |
|
29679 |
LIBQT="$LIBQT ${kde_int_qt}_incremental" |
|
29680 |
break |
|
29681 |
fi |
|
29682 |
done |
|
29683 |
||
29684 |
ac_qt_libraries="$qt_libdir" |
|
29685 |
||
29686 |
||
29687 |
||
29688 |
ac_ext=cc |
|
29689 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
29690 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
29691 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
29692 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
29693 |
||
29694 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
29695 |
||
29696 |
||
29697 |
||
29698 |
ac_cxxflags_safe="$CXXFLAGS" |
|
29699 |
ac_ldflags_safe="$LDFLAGS" |
|
29700 |
ac_libs_safe="$LIBS" |
|
29701 |
||
29702 |
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes" |
|
29703 |
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS" |
|
29704 |
LIBS="$LIBS $LIBQT $KDE_MT_LIBS" |
|
29705 |
||
29706 |
||
29707 |
||
29708 |
cat > conftest.$ac_ext <<EOF |
|
29709 |
#include "confdefs.h" |
|
29710 |
#include <qglobal.h> |
|
29711 |
#include <qapplication.h> |
|
29712 |
EOF |
|
29713 |
if test "$kde_qtver" = "2"; then |
|
29714 |
cat >> conftest.$ac_ext <<EOF |
|
29715 |
#include <qevent.h> |
|
29716 |
#include <qstring.h> |
|
29717 |
#include <qstyle.h> |
|
29718 |
EOF |
|
29719 |
||
29720 |
if test $kde_qtsubver -gt 0; then |
|
29721 |
cat >> conftest.$ac_ext <<EOF |
|
29722 |
#if QT_VERSION < 210 |
|
29723 |
#error 1 |
|
29724 |
#endif |
|
29725 |
EOF |
|
29726 |
fi |
|
29727 |
fi |
|
29728 |
||
29729 |
if test "$kde_qtver" = "3"; then |
|
29730 |
cat >> conftest.$ac_ext <<EOF |
|
29731 |
#include <qcursor.h> |
|
29732 |
#include <qstylefactory.h> |
|
29733 |
#include <private/qucomextra_p.h> |
|
29734 |
EOF |
|
29735 |
fi |
|
29736 |
||
29737 |
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext |
|
29738 |
cat >> conftest.$ac_ext <<EOF |
|
29739 |
#error 1 |
|
29740 |
#endif |
|
29741 |
||
29742 |
int main() { |
|
29743 |
EOF |
|
29744 |
if test "$kde_qtver" = "2"; then |
|
29745 |
cat >> conftest.$ac_ext <<EOF |
|
29746 |
QStringList *t = new QStringList(); |
|
29747 |
Q_UNUSED(t); |
|
29748 |
EOF |
|
29749 |
if test $kde_qtsubver -gt 0; then |
|
29750 |
cat >> conftest.$ac_ext <<EOF |
|
29751 |
QString s; |
|
29752 |
s.setLatin1("Elvis is alive", 14); |
|
29753 |
EOF |
|
29754 |
fi |
|
29755 |
fi |
|
29756 |
if test "$kde_qtver" = "3"; then |
|
29757 |
cat >> conftest.$ac_ext <<EOF |
|
29758 |
(void)QStyleFactory::create(QString::null); |
|
29759 |
QCursor c(Qt::WhatsThisCursor); |
|
29760 |
EOF |
|
29761 |
fi |
|
29762 |
cat >> conftest.$ac_ext <<EOF |
|
29763 |
return 0; |
|
29764 |
} |
|
29765 |
EOF |
|
29766 |
||
29767 |
||
29768 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
29769 |
(eval $ac_link) 2>&5 |
|
29770 |
ac_status=$? |
|
29771 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29772 |
(exit $ac_status); } && test -s conftest; then |
|
29773 |
rm -f conftest* |
|
29774 |
else |
|
29775 |
echo "configure: failed program was:" >&5 |
|
29776 |
cat conftest.$ac_ext >&5 |
|
29777 |
ac_qt_libraries="NO" |
|
29778 |
fi |
|
29779 |
rm -f conftest* |
|
29780 |
CXXFLAGS="$ac_cxxflags_safe" |
|
29781 |
LDFLAGS="$ac_ldflags_safe" |
|
29782 |
LIBS="$ac_libs_safe" |
|
29783 |
||
29784 |
ac_ext=c |
|
29785 |
ac_cpp='$CPP $CPPFLAGS' |
|
29786 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
29787 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
29788 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
29789 |
||
29790 |
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then |
|
29791 |
ac_cv_have_qt="have_qt=no" |
|
29792 |
ac_qt_notfound="" |
|
29793 |
missing_qt_mt="" |
|
29794 |
if test "$ac_qt_includes" = NO; then |
|
29795 |
if test "$ac_qt_libraries" = NO; then |
|
29796 |
ac_qt_notfound="(headers and libraries)"; |
|
29797 |
else |
|
29798 |
ac_qt_notfound="(headers)"; |
|
29799 |
fi |
|
29800 |
else |
|
29801 |
if test "x$kde_use_qt_mt" = "xyes"; then |
|
29802 |
missing_qt_mt=" |
|
29803 |
Make sure that you have compiled Qt with thread support!" |
|
29804 |
ac_qt_notfound="(library $qtlib-mt)"; |
|
29805 |
else |
|
29806 |
ac_qt_notfound="(library $qtlib)"; |
|
29807 |
fi |
|
29808 |
fi |
|
29809 |
||
29810 |
{ { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation! |
|
29811 |
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5 |
|
29812 |
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation! |
|
29813 |
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;} |
|
29814 |
{ (exit 1); exit 1; }; } |
|
29815 |
else |
|
29816 |
have_qt="yes" |
|
29817 |
fi |
|
29818 |
||
29819 |
fi |
|
29820 |
||
29821 |
||
29822 |
eval "$ac_cv_have_qt" |
|
29823 |
||
29824 |
if test "$have_qt" != yes; then |
|
29825 |
echo "$as_me:$LINENO: result: $have_qt" >&5 |
|
29826 |
echo "${ECHO_T}$have_qt" >&6; |
|
29827 |
else |
|
29828 |
ac_cv_have_qt="have_qt=yes \ |
|
29829 |
ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries" |
|
29830 |
echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5 |
|
29831 |
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6 |
|
29832 |
||
29833 |
qt_libraries="$ac_qt_libraries" |
|
29834 |
qt_includes="$ac_qt_includes" |
|
29835 |
fi |
|
29836 |
||
29837 |
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then |
|
29838 |
||
29839 |
||
29840 |
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5 |
|
29841 |
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6 |
|
29842 |
if test "${kde_cv_qt_direct+set}" = set; then |
|
29843 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
29844 |
else |
|
29845 |
||
29846 |
||
29847 |
||
29848 |
ac_ext=cc |
|
29849 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
29850 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
29851 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
29852 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
29853 |
||
29854 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
29855 |
||
29856 |
||
29857 |
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH |
|
29858 |
ac_LIBRARY_PATH="$LIBRARY_PATH" |
|
29859 |
ac_cxxflags_safe="$CXXFLAGS" |
|
29860 |
ac_ldflags_safe="$LDFLAGS" |
|
29861 |
ac_libs_safe="$LIBS" |
|
29862 |
||
29863 |
CXXFLAGS="$CXXFLAGS -I$qt_includes" |
|
29864 |
LDFLAGS="$LDFLAGS $X_LDFLAGS" |
|
29865 |
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then |
|
29866 |
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET" |
|
29867 |
else |
|
29868 |
LIBS="$LIBQT $LIBSOCKET" |
|
29869 |
fi |
|
29870 |
LD_LIBRARY_PATH= |
|
29871 |
export LD_LIBRARY_PATH |
|
29872 |
LIBRARY_PATH= |
|
29873 |
export LIBRARY_PATH |
|
29874 |
||
29875 |
||
29876 |
||
29877 |
cat > conftest.$ac_ext <<EOF |
|
29878 |
#include "confdefs.h" |
|
29879 |
#include <qglobal.h> |
|
29880 |
#include <qapplication.h> |
|
29881 |
EOF |
|
29882 |
if test "$kde_qtver" = "2"; then |
|
29883 |
cat >> conftest.$ac_ext <<EOF |
|
29884 |
#include <qevent.h> |
|
29885 |
#include <qstring.h> |
|
29886 |
#include <qstyle.h> |
|
29887 |
EOF |
|
29888 |
||
29889 |
if test $kde_qtsubver -gt 0; then |
|
29890 |
cat >> conftest.$ac_ext <<EOF |
|
29891 |
#if QT_VERSION < 210 |
|
29892 |
#error 1 |
|
29893 |
#endif |
|
29894 |
EOF |
|
29895 |
fi |
|
29896 |
fi |
|
29897 |
||
29898 |
if test "$kde_qtver" = "3"; then |
|
29899 |
cat >> conftest.$ac_ext <<EOF |
|
29900 |
#include <qcursor.h> |
|
29901 |
#include <qstylefactory.h> |
|
29902 |
#include <private/qucomextra_p.h> |
|
29903 |
EOF |
|
29904 |
fi |
|
29905 |
||
29906 |
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext |
|
29907 |
cat >> conftest.$ac_ext <<EOF |
|
29908 |
#error 1 |
|
29909 |
#endif |
|
29910 |
||
29911 |
int main() { |
|
29912 |
EOF |
|
29913 |
if test "$kde_qtver" = "2"; then |
|
29914 |
cat >> conftest.$ac_ext <<EOF |
|
29915 |
QStringList *t = new QStringList(); |
|
29916 |
Q_UNUSED(t); |
|
29917 |
EOF |
|
29918 |
if test $kde_qtsubver -gt 0; then |
|
29919 |
cat >> conftest.$ac_ext <<EOF |
|
29920 |
QString s; |
|
29921 |
s.setLatin1("Elvis is alive", 14); |
|
29922 |
EOF |
|
29923 |
fi |
|
29924 |
fi |
|
29925 |
if test "$kde_qtver" = "3"; then |
|
29926 |
cat >> conftest.$ac_ext <<EOF |
|
29927 |
(void)QStyleFactory::create(QString::null); |
|
29928 |
QCursor c(Qt::WhatsThisCursor); |
|
29929 |
EOF |
|
29930 |
fi |
|
29931 |
cat >> conftest.$ac_ext <<EOF |
|
29932 |
return 0; |
|
29933 |
} |
|
29934 |
EOF |
|
29935 |
||
29936 |
||
29937 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
29938 |
(eval $ac_link) 2>&5 |
|
29939 |
ac_status=$? |
|
29940 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
29941 |
(exit $ac_status); } && test -s conftest; then |
|
29942 |
kde_cv_qt_direct="yes" |
|
29943 |
else |
|
29944 |
kde_cv_qt_direct="no" |
|
29945 |
echo "configure: failed program was:" >&5 |
|
29946 |
cat conftest.$ac_ext >&5 |
|
29947 |
fi |
|
29948 |
||
29949 |
rm -f conftest* |
|
29950 |
CXXFLAGS="$ac_cxxflags_safe" |
|
29951 |
LDFLAGS="$ac_ldflags_safe" |
|
29952 |
LIBS="$ac_libs_safe" |
|
29953 |
||
29954 |
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe" |
|
29955 |
export LD_LIBRARY_PATH |
|
29956 |
LIBRARY_PATH="$ac_LIBRARY_PATH" |
|
29957 |
export LIBRARY_PATH |
|
29958 |
ac_ext=c |
|
29959 |
ac_cpp='$CPP $CPPFLAGS' |
|
29960 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
29961 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
29962 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
29963 |
||
29964 |
||
29965 |
fi |
|
29966 |
||
29967 |
||
29968 |
if test "$kde_cv_qt_direct" = "yes"; then |
|
29969 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
29970 |
echo "${ECHO_T}yes" >&6 |
|
29971 |
qt_libraries= |
|
29972 |
else |
|
29973 |
echo "$as_me:$LINENO: result: no" >&5 |
|
29974 |
echo "${ECHO_T}no" >&6 |
|
29975 |
||
29976 |
fi |
|
29977 |
||
29978 |
fi |
|
29979 |
||
29980 |
||
29981 |
||
29982 |
||
29983 |
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then |
|
29984 |
QT_INCLUDES="" |
|
29985 |
else |
|
29986 |
QT_INCLUDES="-I$qt_includes" |
|
29987 |
all_includes="$QT_INCLUDES $all_includes" |
|
29988 |
fi |
|
29989 |
||
29990 |
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then |
|
29991 |
QT_LDFLAGS="" |
|
29992 |
else |
|
29993 |
QT_LDFLAGS="-L$qt_libraries" |
|
29994 |
all_libraries="$QT_LDFLAGS $all_libraries" |
|
29995 |
fi |
|
29996 |
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS" |
|
29997 |
||
29998 |
||
29999 |
||
30000 |
||
30001 |
||
30002 |
qt_bindirs="" |
|
30003 |
for dir in $kde_qt_dirs; do |
|
30004 |
qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc" |
|
30005 |
done |
|
30006 |
qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin" |
|
30007 |
if test ! "$ac_qt_bindir" = "NO"; then |
|
30008 |
qt_bindirs="$ac_qt_bindir $qt_bindirs" |
|
30009 |
fi |
|
30010 |
||
30011 |
||
30012 |
echo "$as_me:$LINENO: checking for moc" >&5 |
|
30013 |
echo $ECHO_N "checking for moc... $ECHO_C" >&6 |
|
30014 |
if test -n "$MOC"; then |
|
30015 |
kde_cv_path="$MOC"; |
|
30016 |
else |
|
30017 |
kde_cache=`echo moc | sed 'y%./+-%__p_%'` |
|
30018 |
||
30019 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
30020 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
30021 |
else |
|
30022 |
||
30023 |
kde_cv_path="NONE" |
|
30024 |
kde_save_IFS=$IFS |
|
30025 |
IFS=':' |
|
30026 |
dirs="" |
|
30027 |
for dir in $PATH; do |
|
30028 |
dirs="$dirs $dir" |
|
30029 |
done |
|
30030 |
if test -z ""; then dirs="$qt_bindirs $dirs" |
|
30031 |
else dirs="$dirs $qt_bindirs" |
|
30032 |
fi |
|
30033 |
IFS=$kde_save_IFS |
|
30034 |
||
30035 |
for dir in $dirs; do |
|
30036 |
if test -x "$dir/moc"; then |
|
30037 |
if test -n "" |
|
30038 |
then |
|
30039 |
evalstr="$dir/moc 2>&1 " |
|
30040 |
if eval $evalstr; then |
|
30041 |
kde_cv_path="$dir/moc" |
|
30042 |
break |
|
30043 |
fi |
|
30044 |
else |
|
30045 |
kde_cv_path="$dir/moc" |
|
30046 |
break |
|
30047 |
fi |
|
30048 |
fi |
|
30049 |
done |
|
30050 |
||
30051 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
30052 |
||
30053 |
||
30054 |
fi |
|
30055 |
||
30056 |
||
30057 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
30058 |
||
30059 |
fi |
|
30060 |
||
30061 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
30062 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
30063 |
echo "${ECHO_T}not found" >&6 |
|
30064 |
||
30065 |
{ { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found! |
|
30066 |
Please check whether you installed Qt correctly. |
|
30067 |
You need to have a running moc binary. |
|
30068 |
configure tried to run $ac_cv_path_moc and the test didn't |
|
30069 |
succeed. If configure shouldn't have tried this one, set |
|
30070 |
the environment variable MOC to the right one before running |
|
30071 |
configure. |
|
30072 |
" >&5 |
|
30073 |
echo "$as_me: error: No Qt meta object compiler (moc) found! |
|
30074 |
Please check whether you installed Qt correctly. |
|
30075 |
You need to have a running moc binary. |
|
30076 |
configure tried to run $ac_cv_path_moc and the test didn't |
|
30077 |
succeed. If configure shouldn't have tried this one, set |
|
30078 |
the environment variable MOC to the right one before running |
|
30079 |
configure. |
|
30080 |
" >&2;} |
|
30081 |
{ (exit 1); exit 1; }; } |
|
30082 |
||
30083 |
else |
|
30084 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
30085 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
30086 |
MOC=$kde_cv_path |
|
30087 |
||
30088 |
fi |
|
30089 |
||
30090 |
if test -z "$UIC_NOT_NEEDED"; then |
|
30091 |
||
30092 |
echo "$as_me:$LINENO: checking for uic" >&5 |
|
30093 |
echo $ECHO_N "checking for uic... $ECHO_C" >&6 |
|
30094 |
if test -n "$UIC_PATH"; then |
|
30095 |
kde_cv_path="$UIC_PATH"; |
|
30096 |
else |
|
30097 |
kde_cache=`echo uic | sed 'y%./+-%__p_%'` |
|
30098 |
||
30099 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
30100 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
30101 |
else |
|
30102 |
||
30103 |
kde_cv_path="NONE" |
|
30104 |
kde_save_IFS=$IFS |
|
30105 |
IFS=':' |
|
30106 |
dirs="" |
|
30107 |
for dir in $PATH; do |
|
30108 |
dirs="$dirs $dir" |
|
30109 |
done |
|
30110 |
if test -z ""; then dirs="$qt_bindirs $dirs" |
|
30111 |
else dirs="$dirs $qt_bindirs" |
|
30112 |
fi |
|
30113 |
IFS=$kde_save_IFS |
|
30114 |
||
30115 |
for dir in $dirs; do |
|
30116 |
if test -x "$dir/uic"; then |
|
30117 |
if test -n "" |
|
30118 |
then |
|
30119 |
evalstr="$dir/uic 2>&1 " |
|
30120 |
if eval $evalstr; then |
|
30121 |
kde_cv_path="$dir/uic" |
|
30122 |
break |
|
30123 |
fi |
|
30124 |
else |
|
30125 |
kde_cv_path="$dir/uic" |
|
30126 |
break |
|
30127 |
fi |
|
30128 |
fi |
|
30129 |
done |
|
30130 |
||
30131 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
30132 |
||
30133 |
||
30134 |
fi |
|
30135 |
||
30136 |
||
30137 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
30138 |
||
30139 |
fi |
|
30140 |
||
30141 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
30142 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
30143 |
echo "${ECHO_T}not found" >&6 |
|
30144 |
UIC_PATH="" |
|
30145 |
else |
|
30146 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
30147 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
30148 |
UIC_PATH=$kde_cv_path |
|
30149 |
||
30150 |
fi |
|
30151 |
||
30152 |
if test -z "$UIC_PATH" ; then |
|
30153 |
||
30154 |
{ echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found! |
|
30155 |
Please check whether you installed Qt correctly. |
|
30156 |
You need to have a running uic binary. |
|
30157 |
configure tried to run $ac_cv_path_uic and the test didn't |
|
30158 |
succeed. If configure shouldn't have tried this one, set |
|
30159 |
the environment variable UIC to the right one before running |
|
30160 |
configure. |
|
30161 |
" >&5 |
|
30162 |
echo "$as_me: WARNING: No Qt ui compiler (uic) found! |
|
30163 |
Please check whether you installed Qt correctly. |
|
30164 |
You need to have a running uic binary. |
|
30165 |
configure tried to run $ac_cv_path_uic and the test didn't |
|
30166 |
succeed. If configure shouldn't have tried this one, set |
|
30167 |
the environment variable UIC to the right one before running |
|
30168 |
configure. |
|
30169 |
" >&2;} |
|
30170 |
||
30171 |
exit 1 |
|
30172 |
else |
|
30173 |
UIC=$UIC_PATH |
|
30174 |
||
30175 |
if test $kde_qtver = 3; then |
|
30176 |
||
30177 |
echo "$as_me:$LINENO: checking whether uic supports -L " >&5 |
|
30178 |
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6 |
|
30179 |
kde_cache=`echo L | sed 'y% .=/+-%____p_%'` |
|
30180 |
if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then |
|
30181 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
30182 |
else |
|
30183 |
||
30184 |
cat >conftest.ui <<EOT |
|
30185 |
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI> |
|
30186 |
EOT |
|
30187 |
ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null" |
|
30188 |
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5 |
|
30189 |
(eval $ac_uic_testrun) 2>&5 |
|
30190 |
ac_status=$? |
|
30191 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
30192 |
(exit $ac_status); }; then |
|
30193 |
eval "kde_cv_prog_uic_$kde_cache=yes" |
|
30194 |
else |
|
30195 |
eval "kde_cv_prog_uic_$kde_cache=no" |
|
30196 |
fi |
|
30197 |
rm -f conftest* |
|
30198 |
||
30199 |
fi |
|
30200 |
||
30201 |
||
30202 |
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then |
|
30203 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
30204 |
echo "${ECHO_T}yes" >&6 |
|
30205 |
: |
|
30206 |
ac_uic_supports_libpath=yes |
|
30207 |
else |
|
30208 |
echo "$as_me:$LINENO: result: no" >&5 |
|
30209 |
echo "${ECHO_T}no" >&6 |
|
30210 |
: |
|
30211 |
ac_uic_supports_libpath=no |
|
30212 |
fi |
|
30213 |
||
30214 |
||
30215 |
echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5 |
|
30216 |
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6 |
|
30217 |
kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'` |
|
30218 |
if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then |
|
30219 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
30220 |
else |
|
30221 |
||
30222 |
cat >conftest.ui <<EOT |
|
30223 |
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI> |
|
30224 |
EOT |
|
30225 |
ac_uic_testrun="$UIC_PATH -nounload conftest.ui >/dev/null" |
|
30226 |
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5 |
|
30227 |
(eval $ac_uic_testrun) 2>&5 |
|
30228 |
ac_status=$? |
|
30229 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
30230 |
(exit $ac_status); }; then |
|
30231 |
eval "kde_cv_prog_uic_$kde_cache=yes" |
|
30232 |
else |
|
30233 |
eval "kde_cv_prog_uic_$kde_cache=no" |
|
30234 |
fi |
|
30235 |
rm -f conftest* |
|
30236 |
||
30237 |
fi |
|
30238 |
||
30239 |
||
30240 |
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then |
|
30241 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
30242 |
echo "${ECHO_T}yes" >&6 |
|
30243 |
: |
|
30244 |
ac_uic_supports_nounload=yes |
|
30245 |
else |
|
30246 |
echo "$as_me:$LINENO: result: no" >&5 |
|
30247 |
echo "${ECHO_T}no" >&6 |
|
30248 |
: |
|
30249 |
ac_uic_supports_nounload=no |
|
30250 |
fi |
|
30251 |
||
30252 |
||
30253 |
if test x$ac_uic_supports_libpath = xyes; then |
|
30254 |
UIC="$UIC -L \$(kde_widgetdir)" |
|
30255 |
fi |
|
30256 |
if test x$ac_uic_supports_nounload = xyes; then |
|
30257 |
UIC="$UIC -nounload" |
|
30258 |
fi |
|
30259 |
fi |
|
30260 |
fi |
|
30261 |
else |
|
30262 |
UIC="echo uic not available: " |
|
30263 |
fi |
|
30264 |
||
30265 |
||
30266 |
||
30267 |
||
30268 |
UIC_TR="i18n" |
|
30269 |
if test $kde_qtver = 3; then |
|
30270 |
UIC_TR="tr2i18n" |
|
30271 |
fi |
|
30272 |
||
30273 |
||
30274 |
||
30275 |
||
30276 |
||
30277 |
if test -n "$LIBJPEG"; then |
|
30278 |
echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5 |
|
30279 |
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6 |
|
30280 |
if test "${kde_cv_qt_jpeg+set}" = set; then |
|
30281 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
30282 |
else |
|
30283 |
||
30284 |
||
30285 |
||
30286 |
ac_ext=cc |
|
30287 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
30288 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
30289 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
30290 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
30291 |
||
30292 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
30293 |
||
30294 |
||
30295 |
ac_save_LIBS="$LIBS" |
|
30296 |
LIBS="$all_libraries $USER_LDFLAGS $LIBQT" |
|
30297 |
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"` |
|
30298 |
ac_save_CXXFLAGS="$CXXFLAGS" |
|
30299 |
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES" |
|
30300 |
cat >conftest.$ac_ext <<_ACEOF |
|
30301 |
/* confdefs.h. */ |
|
30302 |
_ACEOF |
|
30303 |
cat confdefs.h >>conftest.$ac_ext |
|
30304 |
cat >>conftest.$ac_ext <<_ACEOF |
|
30305 |
/* end confdefs.h. */ |
|
30306 |
#include <qapplication.h> |
|
30307 |
int |
|
30308 |
main () |
|
30309 |
{ |
|
30310 |
||
30311 |
int argc; |
|
30312 |
char** argv; |
|
30313 |
QApplication app(argc, argv); |
|
30314 |
; |
|
30315 |
return 0; |
|
30316 |
} |
|
30317 |
_ACEOF |
|
30318 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
30319 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
30320 |
(eval $ac_link) 2>conftest.er1 |
|
30321 |
ac_status=$? |
|
30322 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
30323 |
rm -f conftest.er1 |
|
30324 |
cat conftest.err >&5 |
|
30325 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
30326 |
(exit $ac_status); } && |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
30327 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1
by Achim Bohnet
Import upstream version 0.1.1 |
30328 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30329 |
(eval $ac_try) 2>&5 |
|
30330 |
ac_status=$? |
|
30331 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
30332 |
(exit $ac_status); }; } && |
|
30333 |
{ ac_try='test -s conftest$ac_exeext' |
|
30334 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
30335 |
(eval $ac_try) 2>&5 |
|
30336 |
ac_status=$? |
|
30337 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
30338 |
(exit $ac_status); }; }; then |
|
30339 |
eval "kde_cv_qt_jpeg=no" |
|
30340 |
else |
|
30341 |
echo "$as_me: failed program was:" >&5 |
|
30342 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
30343 |
||
30344 |
eval "kde_cv_qt_jpeg=yes" |
|
30345 |
fi |
|
30346 |
rm -f conftest.err conftest.$ac_objext \ |
|
30347 |
conftest$ac_exeext conftest.$ac_ext |
|
30348 |
LIBS="$ac_save_LIBS" |
|
30349 |
CXXFLAGS="$ac_save_CXXFLAGS" |
|
30350 |
ac_ext=c |
|
30351 |
ac_cpp='$CPP $CPPFLAGS' |
|
30352 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
30353 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
30354 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
30355 |
||
30356 |
fi |
|
30357 |
||
30358 |
fi |
|
30359 |
||
30360 |
||
30361 |
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then |
|
30362 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
30363 |
echo "${ECHO_T}yes" >&6 |
|
30364 |
LIBJPEG_QT='$(LIBJPEG)' |
|
30365 |
else |
|
30366 |
echo "$as_me:$LINENO: result: no" >&5 |
|
30367 |
echo "${ECHO_T}no" >&6 |
|
30368 |
LIBJPEG_QT= |
|
30369 |
fi |
|
30370 |
||
30371 |
||
30372 |
||
30373 |
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then |
|
30374 |
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)' |
|
30375 |
else |
|
30376 |
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)' |
|
30377 |
fi |
|
30378 |
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS" |
|
30379 |
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do |
|
30380 |
if test -e "$a"; then |
|
30381 |
LIB_QT="$LIB_QT ${kde_int_qt}_incremental" |
|
30382 |
break |
|
30383 |
fi |
|
30384 |
done |
|
30385 |
||
30386 |
||
30387 |
||
30388 |
||
30389 |
||
30390 |
||
30391 |
||
30392 |
||
30393 |
||
30394 |
||
30395 |
||
30396 |
||
30397 |
||
30398 |
echo "$as_me:$LINENO: checking for rpath" >&5 |
|
30399 |
echo $ECHO_N "checking for rpath... $ECHO_C" >&6 |
|
30400 |
# Check whether --enable-rpath or --disable-rpath was given. |
|
30401 |
if test "${enable_rpath+set}" = set; then |
|
30402 |
enableval="$enable_rpath" |
|
30403 |
USE_RPATH=$enableval |
|
30404 |
else |
|
30405 |
USE_RPATH=yes |
|
30406 |
fi; |
|
30407 |
||
30408 |
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then |
|
30409 |
||
30410 |
KDE_RPATH="-R \$(libdir)" |
|
30411 |
||
30412 |
if test "$kde_libraries" != "$libdir"; then |
|
30413 |
KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)" |
|
30414 |
fi |
|
30415 |
||
30416 |
if test -n "$qt_libraries"; then |
|
30417 |
KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)" |
|
30418 |
fi |
|
30419 |
if test -n "$X_LDFLAGS"; then |
|
30420 |
X_RPATH="-R \$(x_libraries)" |
|
30421 |
KDE_RPATH="$KDE_RPATH $X_RPATH" |
|
30422 |
fi |
|
30423 |
if test -n "$KDE_EXTRA_RPATH"; then |
|
30424 |
KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)" |
|
30425 |
fi |
|
30426 |
fi |
|
30427 |
||
30428 |
||
30429 |
||
30430 |
echo "$as_me:$LINENO: result: $USE_RPATH" >&5 |
|
30431 |
echo "${ECHO_T}$USE_RPATH" >&6 |
|
30432 |
||
30433 |
echo "$as_me:$LINENO: checking for KDE" >&5 |
|
30434 |
echo $ECHO_N "checking for KDE... $ECHO_C" >&6 |
|
30435 |
||
30436 |
if test "${prefix}" != NONE; then |
|
30437 |
kde_includes=${includedir} |
|
30438 |
||
30439 |
savex=$exec_prefix |
|
30440 |
test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
|
30441 |
tmp=$includedir |
|
30442 |
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done |
|
30443 |
exec_prefix=$savex |
|
30444 |
||
30445 |
||
30446 |
kde_libraries=${libdir} |
|
30447 |
||
30448 |
savex=$exec_prefix |
|
30449 |
test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
|
30450 |
tmp=$libdir |
|
30451 |
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done |
|
30452 |
exec_prefix=$savex |
|
30453 |
||
30454 |
||
30455 |
else |
|
30456 |
ac_kde_includes= |
|
30457 |
ac_kde_libraries= |
|
30458 |
kde_libraries="" |
|
30459 |
kde_includes="" |
|
30460 |
fi |
|
30461 |
||
30462 |
if test "${ac_cv_have_kde+set}" = set; then |
|
30463 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
30464 |
else |
|
30465 |
#try to guess kde locations |
|
30466 |
||
30467 |
if test "$kde_qtver" = 1; then |
|
30468 |
kde_check_header="ksock.h" |
|
30469 |
kde_check_lib="libkdecore.la" |
|
30470 |
else |
|
30471 |
kde_check_header="ksharedptr.h" |
|
30472 |
kde_check_lib="libkio.la" |
|
30473 |
fi |
|
30474 |
||
30475 |
if test -z ""; then |
|
30476 |
||
30477 |
kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes" |
|
30478 |
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs" |
|
30479 |
kde_incdirs="$ac_kde_includes $kde_incdirs" |
|
30480 |
||
30481 |
kde_incdir=NO |
|
30482 |
for i in $kde_incdirs; |
|
30483 |
do |
|
30484 |
for j in $kde_check_header; |
|
30485 |
do |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
30486 |
echo "configure: 30486: $i/$j" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
30487 |
if test -r "$i/$j"; then |
30488 |
echo "taking that" >&5 |
|
30489 |
kde_incdir=$i |
|
30490 |
break 2 |
|
30491 |
fi |
|
30492 |
done |
|
30493 |
done |
|
30494 |
||
30495 |
ac_kde_includes="$kde_incdir" |
|
30496 |
||
30497 |
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then |
|
30498 |
{ { echo "$as_me:$LINENO: error: |
|
30499 |
in the prefix, you've chosen, are no KDE headers installed. This will fail. |
|
30500 |
So, check this please and use another prefix!" >&5 |
|
30501 |
echo "$as_me: error: |
|
30502 |
in the prefix, you've chosen, are no KDE headers installed. This will fail. |
|
30503 |
So, check this please and use another prefix!" >&2;} |
|
30504 |
{ (exit 1); exit 1; }; } |
|
30505 |
fi |
|
30506 |
||
30507 |
kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}" |
|
30508 |
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs" |
|
30509 |
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs" |
|
30510 |
||
30511 |
kde_libdir=NO |
|
30512 |
for i in $kde_libdirs; |
|
30513 |
do |
|
30514 |
for j in $kde_check_lib; |
|
30515 |
do |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
30516 |
echo "configure: 30516: $i/$j" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
30517 |
if test -r "$i/$j"; then |
30518 |
echo "taking that" >&5 |
|
30519 |
kde_libdir=$i |
|
30520 |
break 2 |
|
30521 |
fi |
|
30522 |
done |
|
30523 |
done |
|
30524 |
||
30525 |
ac_kde_libraries="$kde_libdir" |
|
30526 |
||
30527 |
kde_widgetdir=NO |
|
30528 |
||
30529 |
kde_widgetdir=NO |
|
30530 |
for i in $kde_libdirs; |
|
30531 |
do |
|
30532 |
for j in "kde3/plugins/designer/kdewidgets.la"; |
|
30533 |
do |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
30534 |
echo "configure: 30534: $i/$j" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
30535 |
if test -r "$i/$j"; then |
30536 |
echo "taking that" >&5 |
|
30537 |
kde_widgetdir=$i |
|
30538 |
break 2 |
|
30539 |
fi |
|
30540 |
done |
|
30541 |
done |
|
30542 |
||
30543 |
||
30544 |
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then |
|
30545 |
{ { echo "$as_me:$LINENO: error: |
|
30546 |
in the prefix, you've chosen, are no KDE libraries installed. This will fail. |
|
30547 |
So, check this please and use another prefix!" >&5 |
|
30548 |
echo "$as_me: error: |
|
30549 |
in the prefix, you've chosen, are no KDE libraries installed. This will fail. |
|
30550 |
So, check this please and use another prefix!" >&2;} |
|
30551 |
{ (exit 1); exit 1; }; } |
|
30552 |
fi |
|
30553 |
||
30554 |
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then |
|
30555 |
{ { echo "$as_me:$LINENO: error: |
|
30556 |
I can't find the designer plugins. These are required and should have been installed |
|
30557 |
by kdelibs" >&5 |
|
30558 |
echo "$as_me: error: |
|
30559 |
I can't find the designer plugins. These are required and should have been installed |
|
30560 |
by kdelibs" >&2;} |
|
30561 |
{ (exit 1); exit 1; }; } |
|
30562 |
fi |
|
30563 |
||
30564 |
if test -n "$kde_widgetdir"; then |
|
30565 |
kde_widgetdir="$kde_widgetdir/kde3/plugins/designer" |
|
30566 |
fi |
|
30567 |
||
30568 |
||
30569 |
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then |
|
30570 |
ac_cv_have_kde="have_kde=no" |
|
30571 |
else |
|
30572 |
ac_cv_have_kde="have_kde=yes \ |
|
30573 |
ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" |
|
30574 |
fi |
|
30575 |
||
30576 |
else |
|
30577 |
ac_cv_have_kde="have_kde=no" |
|
30578 |
||
30579 |
fi |
|
30580 |
||
30581 |
fi |
|
30582 |
||
30583 |
eval "$ac_cv_have_kde" |
|
30584 |
||
30585 |
if test "$have_kde" != "yes"; then |
|
30586 |
if test "${prefix}" = NONE; then |
|
30587 |
ac_kde_prefix="$ac_default_prefix" |
|
30588 |
else |
|
30589 |
ac_kde_prefix="$prefix" |
|
30590 |
fi |
|
30591 |
if test "$exec_prefix" = NONE; then |
|
30592 |
ac_kde_exec_prefix="$ac_kde_prefix" |
|
30593 |
echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5 |
|
30594 |
echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6 |
|
30595 |
else |
|
30596 |
ac_kde_exec_prefix="$exec_prefix" |
|
30597 |
echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5 |
|
30598 |
echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6 |
|
30599 |
fi |
|
30600 |
||
30601 |
kde_libraries="${libdir}" |
|
30602 |
kde_includes="${includedir}" |
|
30603 |
||
30604 |
else |
|
30605 |
ac_cv_have_kde="have_kde=yes \ |
|
30606 |
ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" |
|
30607 |
echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5 |
|
30608 |
echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6 |
|
30609 |
||
30610 |
kde_libraries="$ac_kde_libraries" |
|
30611 |
kde_includes="$ac_kde_includes" |
|
30612 |
fi |
|
30613 |
||
30614 |
||
30615 |
||
30616 |
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then |
|
30617 |
KDE_INCLUDES="" |
|
30618 |
else |
|
30619 |
KDE_INCLUDES="-I$kde_includes" |
|
30620 |
all_includes="$KDE_INCLUDES $all_includes" |
|
30621 |
fi |
|
30622 |
||
30623 |
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION" |
|
30624 |
||
30625 |
KDE_LDFLAGS="-L$kde_libraries" |
|
30626 |
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then |
|
30627 |
all_libraries="$KDE_LDFLAGS $all_libraries" |
|
30628 |
fi |
|
30629 |
||
30630 |
||
30631 |
||
30632 |
||
30633 |
||
30634 |
||
30635 |
all_libraries="$all_libraries $USER_LDFLAGS" |
|
30636 |
all_includes="$all_includes $USER_INCLUDES" |
|
30637 |
||
30638 |
||
30639 |
||
30640 |
if test -z ""; then |
|
30641 |
||
30642 |
||
30643 |
||
30644 |
if test x$ac_uic_supports_libpath = xyes; then |
|
30645 |
||
30646 |
echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5 |
|
30647 |
echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6 |
|
30648 |
if test "${kde_cv_uic_plugins+set}" = set; then |
|
30649 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
30650 |
else |
|
30651 |
||
30652 |
cat > actest.ui << EOF |
|
30653 |
<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> |
|
30654 |
<class>NewConnectionDialog</class> |
|
30655 |
<widget class="QDialog"> |
|
30656 |
<widget class="KLineEdit"> |
|
30657 |
<property name="name"> |
|
30658 |
<cstring>testInput</cstring> |
|
30659 |
</property> |
|
30660 |
</widget> |
|
30661 |
</widget> |
|
30662 |
</UI> |
|
30663 |
EOF |
|
30664 |
||
30665 |
||
30666 |
||
30667 |
kde_cv_uic_plugins=no |
|
30668 |
kde_line="$UIC_PATH -L $kde_widgetdir" |
|
30669 |
if test x$ac_uic_supports_nounload = xyes; then |
|
30670 |
kde_line="$kde_line -nounload" |
|
30671 |
fi |
|
30672 |
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp" |
|
30673 |
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5 |
|
30674 |
(eval $kde_line) 2>&5 |
|
30675 |
ac_status=$? |
|
30676 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
30677 |
(exit $ac_status); }; then |
|
30678 |
# if you're trying to debug this check and think it's incorrect, |
|
30679 |
# better check your installation. The check _is_ correct - your |
|
30680 |
# installation is not. |
|
30681 |
if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then |
|
30682 |
kde_cv_uic_plugins=yes |
|
30683 |
fi |
|
30684 |
fi |
|
30685 |
rm -f actest.ui actest.cpp |
|
30686 |
||
30687 |
fi |
|
30688 |
||
30689 |
||
30690 |
echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5 |
|
30691 |
echo "${ECHO_T}$kde_cv_uic_plugins" >&6 |
|
30692 |
if test "$kde_cv_uic_plugins" != yes; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
30693 |
{ { echo "$as_me:$LINENO: error: |
30694 |
you need to install kdelibs first. |
|
30695 |
||
30696 |
If you did install kdelibs, then the Qt version that is picked up by |
|
30697 |
this configure is not the same version you used to compile kdelibs. |
|
30698 |
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the |
|
30699 |
_same Qt version_, compiled with the _same compiler_ and the same Qt |
|
30700 |
configuration settings. |
|
30701 |
" >&5 |
|
30702 |
echo "$as_me: error: |
|
30703 |
you need to install kdelibs first. |
|
30704 |
||
30705 |
If you did install kdelibs, then the Qt version that is picked up by |
|
30706 |
this configure is not the same version you used to compile kdelibs. |
|
30707 |
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the |
|
30708 |
_same Qt version_, compiled with the _same compiler_ and the same Qt |
|
30709 |
configuration settings. |
|
30710 |
" >&2;} |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
30711 |
{ (exit 1); exit 1; }; } |
30712 |
fi |
|
30713 |
fi |
|
30714 |
||
30715 |
fi |
|
30716 |
||
30717 |
ac_kde_libraries="$kde_libdir" |
|
30718 |
||
30719 |
||
30720 |
||
30721 |
||
30722 |
||
30723 |
# Check whether --enable-path-check or --disable-path-check was given. |
|
30724 |
if test "${enable_path_check+set}" = set; then |
|
30725 |
enableval="$enable_path_check" |
|
30726 |
||
30727 |
if test "$enableval" = "no"; |
|
30728 |
then ac_use_path_checking="default" |
|
30729 |
else ac_use_path_checking="" |
|
30730 |
fi |
|
30731 |
||
30732 |
else |
|
30733 |
||
30734 |
if test "$kde_qtver" = 1; |
|
30735 |
then ac_use_path_checking="" |
|
30736 |
else ac_use_path_checking="default" |
|
30737 |
fi |
|
30738 |
||
30739 |
||
30740 |
fi; |
|
30741 |
||
30742 |
||
30743 |
||
30744 |
||
30745 |
echo "$as_me:$LINENO: checking for KDE paths" >&5 |
|
30746 |
echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6 |
|
30747 |
kde_result="" |
|
30748 |
kde_cached_paths=yes |
|
30749 |
if test "${kde_cv_all_paths+set}" = set; then |
|
30750 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
30751 |
else |
|
30752 |
||
30753 |
||
30754 |
if test "$ac_use_path_checking" = "default"; then |
|
30755 |
||
30756 |
if test -z "$kde_htmldir"; then |
|
30757 |
kde_htmldir='\${datadir}/doc/HTML' |
|
30758 |
fi |
|
30759 |
if test -z "$kde_appsdir"; then |
|
30760 |
kde_appsdir='\${datadir}/applnk' |
|
30761 |
fi |
|
30762 |
if test -z "$kde_icondir"; then |
|
30763 |
kde_icondir='\${datadir}/icons' |
|
30764 |
fi |
|
30765 |
if test -z "$kde_sounddir"; then |
|
30766 |
kde_sounddir='\${datadir}/sounds' |
|
30767 |
fi |
|
30768 |
if test -z "$kde_datadir"; then |
|
30769 |
kde_datadir='\${datadir}/apps' |
|
30770 |
fi |
|
30771 |
if test -z "$kde_locale"; then |
|
30772 |
kde_locale='\${datadir}/locale' |
|
30773 |
fi |
|
30774 |
if test -z "$kde_cgidir"; then |
|
30775 |
kde_cgidir='\${exec_prefix}/cgi-bin' |
|
30776 |
fi |
|
30777 |
if test -z "$kde_confdir"; then |
|
30778 |
kde_confdir='\${datadir}/config' |
|
30779 |
fi |
|
30780 |
if test -z "$kde_kcfgdir"; then |
|
30781 |
kde_kcfgdir='\${datadir}/config.kcfg' |
|
30782 |
fi |
|
30783 |
if test -z "$kde_mimedir"; then |
|
30784 |
kde_mimedir='\${datadir}/mimelnk' |
|
30785 |
fi |
|
30786 |
if test -z "$kde_toolbardir"; then |
|
30787 |
kde_toolbardir='\${datadir}/toolbar' |
|
30788 |
fi |
|
30789 |
if test -z "$kde_wallpaperdir"; then |
|
30790 |
kde_wallpaperdir='\${datadir}/wallpapers' |
|
30791 |
fi |
|
30792 |
if test -z "$kde_templatesdir"; then |
|
30793 |
kde_templatesdir='\${datadir}/templates' |
|
30794 |
fi |
|
30795 |
if test -z "$kde_bindir"; then |
|
30796 |
kde_bindir='\${exec_prefix}/bin' |
|
30797 |
fi |
|
30798 |
if test -z "$kde_servicesdir"; then |
|
30799 |
kde_servicesdir='\${datadir}/services' |
|
30800 |
fi |
|
30801 |
if test -z "$kde_servicetypesdir"; then |
|
30802 |
kde_servicetypesdir='\${datadir}/servicetypes' |
|
30803 |
fi |
|
30804 |
if test -z "$kde_moduledir"; then |
|
30805 |
if test "$kde_qtver" = "2"; then |
|
30806 |
kde_moduledir='\${libdir}/kde2' |
|
30807 |
else |
|
30808 |
kde_moduledir='\${libdir}/kde3' |
|
30809 |
fi |
|
30810 |
fi |
|
30811 |
if test -z "$kde_styledir"; then |
|
30812 |
kde_styledir='\${libdir}/kde3/plugins/styles' |
|
30813 |
fi |
|
30814 |
if test -z "$kde_widgetdir"; then |
|
30815 |
kde_widgetdir='\${libdir}/kde3/plugins/designer' |
|
30816 |
fi |
|
30817 |
if test -z "$xdg_appsdir"; then |
|
30818 |
xdg_appsdir='\${datadir}/applications/kde' |
|
30819 |
fi |
|
30820 |
if test -z "$xdg_menudir"; then |
|
30821 |
xdg_menudir='\${sysconfdir}/xdg/menus' |
|
30822 |
fi |
|
30823 |
if test -z "$xdg_directorydir"; then |
|
30824 |
xdg_directorydir='\${datadir}/desktop-directories' |
|
30825 |
fi |
|
30826 |
||
30827 |
||
30828 |
kde_cv_all_paths="kde_have_all_paths=\"yes\" \ |
|
30829 |
kde_htmldir=\"$kde_htmldir\" \ |
|
30830 |
kde_appsdir=\"$kde_appsdir\" \ |
|
30831 |
kde_icondir=\"$kde_icondir\" \ |
|
30832 |
kde_sounddir=\"$kde_sounddir\" \ |
|
30833 |
kde_datadir=\"$kde_datadir\" \ |
|
30834 |
kde_locale=\"$kde_locale\" \ |
|
30835 |
kde_cgidir=\"$kde_cgidir\" \ |
|
30836 |
kde_confdir=\"$kde_confdir\" \ |
|
30837 |
kde_kcfgdir=\"$kde_kcfgdir\" \ |
|
30838 |
kde_mimedir=\"$kde_mimedir\" \ |
|
30839 |
kde_toolbardir=\"$kde_toolbardir\" \ |
|
30840 |
kde_wallpaperdir=\"$kde_wallpaperdir\" \ |
|
30841 |
kde_templatesdir=\"$kde_templatesdir\" \ |
|
30842 |
kde_bindir=\"$kde_bindir\" \ |
|
30843 |
kde_servicesdir=\"$kde_servicesdir\" \ |
|
30844 |
kde_servicetypesdir=\"$kde_servicetypesdir\" \ |
|
30845 |
kde_moduledir=\"$kde_moduledir\" \ |
|
30846 |
kde_styledir=\"$kde_styledir\" \ |
|
30847 |
kde_widgetdir=\"$kde_widgetdir\" \ |
|
30848 |
xdg_appsdir=\"$xdg_appsdir\" \ |
|
30849 |
xdg_menudir=\"$xdg_menudir\" \ |
|
30850 |
xdg_directorydir=\"$xdg_directorydir\" \ |
|
30851 |
kde_result=defaults" |
|
30852 |
||
30853 |
||
30854 |
else |
|
30855 |
||
30856 |
if test $kde_qtver = 1; then |
|
30857 |
echo "$as_me:$LINENO: result: compiling" >&5 |
|
30858 |
echo "${ECHO_T}compiling" >&6 |
|
30859 |
||
30860 |
||
30861 |
echo "$as_me:$LINENO: checking for KDE headers installed" >&5 |
|
30862 |
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6 |
|
30863 |
||
30864 |
||
30865 |
ac_ext=cc |
|
30866 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
30867 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
30868 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
30869 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
30870 |
||
30871 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
30872 |
||
30873 |
||
30874 |
cat > conftest.$ac_ext <<EOF |
|
30875 |
#ifdef STDC_HEADERS |
|
30876 |
# include <stdlib.h> |
|
30877 |
#endif |
|
30878 |
#include <stdio.h> |
|
30879 |
#include "confdefs.h" |
|
30880 |
#include <kapp.h> |
|
30881 |
||
30882 |
int main() { |
|
30883 |
printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data()); |
|
30884 |
printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data()); |
|
30885 |
printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data()); |
|
30886 |
printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data()); |
|
30887 |
printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data()); |
|
30888 |
printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data()); |
|
30889 |
printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data()); |
|
30890 |
printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data()); |
|
30891 |
printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data()); |
|
30892 |
printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data()); |
|
30893 |
printf("kde_wallpaperdir=\\"%s\\"\n", |
|
30894 |
KApplication::kde_wallpaperdir().data()); |
|
30895 |
printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data()); |
|
30896 |
printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data()); |
|
30897 |
printf("kde_servicesdir=\\"/tmp/dummy\\"\n"); |
|
30898 |
printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n"); |
|
30899 |
printf("kde_moduledir=\\"/tmp/dummy\\"\n"); |
|
30900 |
printf("kde_styledir=\\"/tmp/dummy\\"\n"); |
|
30901 |
printf("kde_widgetdir=\\"/tmp/dummy\\"\n"); |
|
30902 |
printf("xdg_appsdir=\\"/tmp/dummy\\"\n"); |
|
30903 |
printf("xdg_menudir=\\"/tmp/dummy\\"\n"); |
|
30904 |
printf("xdg_directorydir=\\"/tmp/dummy\\"\n"); |
|
30905 |
printf("kde_kcfgdir=\\"/tmp/dummy\\"\n"); |
|
30906 |
return 0; |
|
30907 |
} |
|
30908 |
EOF |
|
30909 |
||
30910 |
ac_save_CPPFLAGS=$CPPFLAGS |
|
30911 |
CPPFLAGS="$all_includes $CPPFLAGS" |
|
30912 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
30913 |
(eval $ac_compile) 2>&5 |
|
30914 |
ac_status=$? |
|
30915 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
30916 |
(exit $ac_status); }; then |
|
30917 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
30918 |
echo "${ECHO_T}yes" >&6 |
|
30919 |
else |
|
30920 |
{ { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application! |
|
30921 |
Check, if you installed the KDE header files correctly. |
|
30922 |
For more details about this problem, look at the end of config.log." >&5 |
|
30923 |
echo "$as_me: error: your system is not able to compile a small KDE application! |
|
30924 |
Check, if you installed the KDE header files correctly. |
|
30925 |
For more details about this problem, look at the end of config.log." >&2;} |
|
30926 |
{ (exit 1); exit 1; }; } |
|
30927 |
fi |
|
30928 |
CPPFLAGS=$ac_save_CPPFLAGS |
|
30929 |
||
30930 |
ac_ext=c |
|
30931 |
ac_cpp='$CPP $CPPFLAGS' |
|
30932 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
30933 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
30934 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
30935 |
||
30936 |
||
30937 |
||
30938 |
KDE_TEST_RPATH= |
|
30939 |
||
30940 |
if test -n "$USE_RPATH"; then |
|
30941 |
||
30942 |
if test -n "$kde_libraries"; then |
|
30943 |
KDE_TEST_RPATH="-R $kde_libraries" |
|
30944 |
fi |
|
30945 |
||
30946 |
if test -n "$qt_libraries"; then |
|
30947 |
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries" |
|
30948 |
fi |
|
30949 |
||
30950 |
if test -n "$x_libraries"; then |
|
30951 |
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries" |
|
30952 |
fi |
|
30953 |
||
30954 |
KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH" |
|
30955 |
fi |
|
30956 |
||
30957 |
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5 |
|
30958 |
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6 |
|
30959 |
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5' |
|
30960 |
||
30961 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
30962 |
(eval $ac_link) 2>&5 |
|
30963 |
ac_status=$? |
|
30964 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
30965 |
(exit $ac_status); } && test -s conftest; then |
|
30966 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
30967 |
echo "${ECHO_T}yes" >&6 |
|
30968 |
else |
|
30969 |
{ { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application! |
|
30970 |
Check, if your compiler is installed correctly and if you have used the |
|
30971 |
same compiler to compile Qt and kdelibs as you did use now. |
|
30972 |
For more details about this problem, look at the end of config.log." >&5 |
|
30973 |
echo "$as_me: error: your system fails at linking a small KDE application! |
|
30974 |
Check, if your compiler is installed correctly and if you have used the |
|
30975 |
same compiler to compile Qt and kdelibs as you did use now. |
|
30976 |
For more details about this problem, look at the end of config.log." >&2;} |
|
30977 |
{ (exit 1); exit 1; }; } |
|
30978 |
fi |
|
30979 |
||
30980 |
if eval `KDEDIR= ./conftest 2>&5`; then |
|
30981 |
kde_result=done |
|
30982 |
else |
|
30983 |
kde_result=problems |
|
30984 |
fi |
|
30985 |
||
30986 |
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log |
|
30987 |
kde_have_all_paths=yes |
|
30988 |
||
30989 |
||
30990 |
kde_cv_all_paths="kde_have_all_paths=\"yes\" \ |
|
30991 |
kde_htmldir=\"$kde_htmldir\" \ |
|
30992 |
kde_appsdir=\"$kde_appsdir\" \ |
|
30993 |
kde_icondir=\"$kde_icondir\" \ |
|
30994 |
kde_sounddir=\"$kde_sounddir\" \ |
|
30995 |
kde_datadir=\"$kde_datadir\" \ |
|
30996 |
kde_locale=\"$kde_locale\" \ |
|
30997 |
kde_cgidir=\"$kde_cgidir\" \ |
|
30998 |
kde_confdir=\"$kde_confdir\" \ |
|
30999 |
kde_kcfgdir=\"$kde_kcfgdir\" \ |
|
31000 |
kde_mimedir=\"$kde_mimedir\" \ |
|
31001 |
kde_toolbardir=\"$kde_toolbardir\" \ |
|
31002 |
kde_wallpaperdir=\"$kde_wallpaperdir\" \ |
|
31003 |
kde_templatesdir=\"$kde_templatesdir\" \ |
|
31004 |
kde_bindir=\"$kde_bindir\" \ |
|
31005 |
kde_servicesdir=\"$kde_servicesdir\" \ |
|
31006 |
kde_servicetypesdir=\"$kde_servicetypesdir\" \ |
|
31007 |
kde_moduledir=\"$kde_moduledir\" \ |
|
31008 |
kde_styledir=\"$kde_styledir\" \ |
|
31009 |
kde_widgetdir=\"$kde_widgetdir\" \ |
|
31010 |
xdg_appsdir=\"$xdg_appsdir\" \ |
|
31011 |
xdg_menudir=\"$xdg_menudir\" \ |
|
31012 |
xdg_directorydir=\"$xdg_directorydir\" \ |
|
31013 |
kde_result=$kde_result" |
|
31014 |
||
31015 |
||
31016 |
||
31017 |
else |
|
31018 |
{ { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5 |
|
31019 |
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;} |
|
31020 |
{ (exit 1); exit 1; }; } |
|
31021 |
fi |
|
31022 |
||
31023 |
fi |
|
31024 |
||
31025 |
kde_cached_paths=no |
|
31026 |
||
31027 |
fi |
|
31028 |
||
31029 |
eval "$kde_cv_all_paths" |
|
31030 |
if test -z "$kde_htmldir" || test -z "$kde_appsdir" || |
|
31031 |
test -z "$kde_icondir" || test -z "$kde_sounddir" || |
|
31032 |
test -z "$kde_datadir" || test -z "$kde_locale" || |
|
31033 |
test -z "$kde_cgidir" || test -z "$kde_confdir" || |
|
31034 |
test -z "$kde_kcfgdir" || |
|
31035 |
test -z "$kde_mimedir" || test -z "$kde_toolbardir" || |
|
31036 |
test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" || |
|
31037 |
test -z "$kde_bindir" || test -z "$kde_servicesdir" || |
|
31038 |
test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" || |
|
31039 |
test -z "$kde_styledir" || test -z "kde_widgetdir" || |
|
31040 |
test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" || |
|
31041 |
test "x$kde_have_all_paths" != "xyes"; then |
|
31042 |
kde_have_all_paths=no |
|
31043 |
fi |
|
31044 |
||
31045 |
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then |
|
31046 |
# wrong values were cached, may be, we can set better ones |
|
31047 |
kde_result= |
|
31048 |
kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir= |
|
31049 |
kde_datadir= kde_locale= kde_cgidir= kde_confdir= kde_kcfgdir= |
|
31050 |
kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir= |
|
31051 |
kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir= |
|
31052 |
kde_have_all_paths= |
|
31053 |
kde_styledir= |
|
31054 |
kde_widgetdir= |
|
31055 |
xdg_appsdir = xdg_menudir= xdg_directorydir= |
|
31056 |
||
31057 |
if test "$ac_use_path_checking" = "default"; then |
|
31058 |
||
31059 |
if test -z "$kde_htmldir"; then |
|
31060 |
kde_htmldir='\${datadir}/doc/HTML' |
|
31061 |
fi |
|
31062 |
if test -z "$kde_appsdir"; then |
|
31063 |
kde_appsdir='\${datadir}/applnk' |
|
31064 |
fi |
|
31065 |
if test -z "$kde_icondir"; then |
|
31066 |
kde_icondir='\${datadir}/icons' |
|
31067 |
fi |
|
31068 |
if test -z "$kde_sounddir"; then |
|
31069 |
kde_sounddir='\${datadir}/sounds' |
|
31070 |
fi |
|
31071 |
if test -z "$kde_datadir"; then |
|
31072 |
kde_datadir='\${datadir}/apps' |
|
31073 |
fi |
|
31074 |
if test -z "$kde_locale"; then |
|
31075 |
kde_locale='\${datadir}/locale' |
|
31076 |
fi |
|
31077 |
if test -z "$kde_cgidir"; then |
|
31078 |
kde_cgidir='\${exec_prefix}/cgi-bin' |
|
31079 |
fi |
|
31080 |
if test -z "$kde_confdir"; then |
|
31081 |
kde_confdir='\${datadir}/config' |
|
31082 |
fi |
|
31083 |
if test -z "$kde_kcfgdir"; then |
|
31084 |
kde_kcfgdir='\${datadir}/config.kcfg' |
|
31085 |
fi |
|
31086 |
if test -z "$kde_mimedir"; then |
|
31087 |
kde_mimedir='\${datadir}/mimelnk' |
|
31088 |
fi |
|
31089 |
if test -z "$kde_toolbardir"; then |
|
31090 |
kde_toolbardir='\${datadir}/toolbar' |
|
31091 |
fi |
|
31092 |
if test -z "$kde_wallpaperdir"; then |
|
31093 |
kde_wallpaperdir='\${datadir}/wallpapers' |
|
31094 |
fi |
|
31095 |
if test -z "$kde_templatesdir"; then |
|
31096 |
kde_templatesdir='\${datadir}/templates' |
|
31097 |
fi |
|
31098 |
if test -z "$kde_bindir"; then |
|
31099 |
kde_bindir='\${exec_prefix}/bin' |
|
31100 |
fi |
|
31101 |
if test -z "$kde_servicesdir"; then |
|
31102 |
kde_servicesdir='\${datadir}/services' |
|
31103 |
fi |
|
31104 |
if test -z "$kde_servicetypesdir"; then |
|
31105 |
kde_servicetypesdir='\${datadir}/servicetypes' |
|
31106 |
fi |
|
31107 |
if test -z "$kde_moduledir"; then |
|
31108 |
if test "$kde_qtver" = "2"; then |
|
31109 |
kde_moduledir='\${libdir}/kde2' |
|
31110 |
else |
|
31111 |
kde_moduledir='\${libdir}/kde3' |
|
31112 |
fi |
|
31113 |
fi |
|
31114 |
if test -z "$kde_styledir"; then |
|
31115 |
kde_styledir='\${libdir}/kde3/plugins/styles' |
|
31116 |
fi |
|
31117 |
if test -z "$kde_widgetdir"; then |
|
31118 |
kde_widgetdir='\${libdir}/kde3/plugins/designer' |
|
31119 |
fi |
|
31120 |
if test -z "$xdg_appsdir"; then |
|
31121 |
xdg_appsdir='\${datadir}/applications/kde' |
|
31122 |
fi |
|
31123 |
if test -z "$xdg_menudir"; then |
|
31124 |
xdg_menudir='\${sysconfdir}/xdg/menus' |
|
31125 |
fi |
|
31126 |
if test -z "$xdg_directorydir"; then |
|
31127 |
xdg_directorydir='\${datadir}/desktop-directories' |
|
31128 |
fi |
|
31129 |
||
31130 |
||
31131 |
kde_cv_all_paths="kde_have_all_paths=\"yes\" \ |
|
31132 |
kde_htmldir=\"$kde_htmldir\" \ |
|
31133 |
kde_appsdir=\"$kde_appsdir\" \ |
|
31134 |
kde_icondir=\"$kde_icondir\" \ |
|
31135 |
kde_sounddir=\"$kde_sounddir\" \ |
|
31136 |
kde_datadir=\"$kde_datadir\" \ |
|
31137 |
kde_locale=\"$kde_locale\" \ |
|
31138 |
kde_cgidir=\"$kde_cgidir\" \ |
|
31139 |
kde_confdir=\"$kde_confdir\" \ |
|
31140 |
kde_kcfgdir=\"$kde_kcfgdir\" \ |
|
31141 |
kde_mimedir=\"$kde_mimedir\" \ |
|
31142 |
kde_toolbardir=\"$kde_toolbardir\" \ |
|
31143 |
kde_wallpaperdir=\"$kde_wallpaperdir\" \ |
|
31144 |
kde_templatesdir=\"$kde_templatesdir\" \ |
|
31145 |
kde_bindir=\"$kde_bindir\" \ |
|
31146 |
kde_servicesdir=\"$kde_servicesdir\" \ |
|
31147 |
kde_servicetypesdir=\"$kde_servicetypesdir\" \ |
|
31148 |
kde_moduledir=\"$kde_moduledir\" \ |
|
31149 |
kde_styledir=\"$kde_styledir\" \ |
|
31150 |
kde_widgetdir=\"$kde_widgetdir\" \ |
|
31151 |
xdg_appsdir=\"$xdg_appsdir\" \ |
|
31152 |
xdg_menudir=\"$xdg_menudir\" \ |
|
31153 |
xdg_directorydir=\"$xdg_directorydir\" \ |
|
31154 |
kde_result=defaults" |
|
31155 |
||
31156 |
||
31157 |
else |
|
31158 |
||
31159 |
if test $kde_qtver = 1; then |
|
31160 |
echo "$as_me:$LINENO: result: compiling" >&5 |
|
31161 |
echo "${ECHO_T}compiling" >&6 |
|
31162 |
||
31163 |
||
31164 |
echo "$as_me:$LINENO: checking for KDE headers installed" >&5 |
|
31165 |
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6 |
|
31166 |
||
31167 |
||
31168 |
ac_ext=cc |
|
31169 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
31170 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
31171 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
31172 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
31173 |
||
31174 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
31175 |
||
31176 |
||
31177 |
cat > conftest.$ac_ext <<EOF |
|
31178 |
#ifdef STDC_HEADERS |
|
31179 |
# include <stdlib.h> |
|
31180 |
#endif |
|
31181 |
#include <stdio.h> |
|
31182 |
#include "confdefs.h" |
|
31183 |
#include <kapp.h> |
|
31184 |
||
31185 |
int main() { |
|
31186 |
printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data()); |
|
31187 |
printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data()); |
|
31188 |
printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data()); |
|
31189 |
printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data()); |
|
31190 |
printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data()); |
|
31191 |
printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data()); |
|
31192 |
printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data()); |
|
31193 |
printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data()); |
|
31194 |
printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data()); |
|
31195 |
printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data()); |
|
31196 |
printf("kde_wallpaperdir=\\"%s\\"\n", |
|
31197 |
KApplication::kde_wallpaperdir().data()); |
|
31198 |
printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data()); |
|
31199 |
printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data()); |
|
31200 |
printf("kde_servicesdir=\\"/tmp/dummy\\"\n"); |
|
31201 |
printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n"); |
|
31202 |
printf("kde_moduledir=\\"/tmp/dummy\\"\n"); |
|
31203 |
printf("kde_styledir=\\"/tmp/dummy\\"\n"); |
|
31204 |
printf("kde_widgetdir=\\"/tmp/dummy\\"\n"); |
|
31205 |
printf("xdg_appsdir=\\"/tmp/dummy\\"\n"); |
|
31206 |
printf("xdg_menudir=\\"/tmp/dummy\\"\n"); |
|
31207 |
printf("xdg_directorydir=\\"/tmp/dummy\\"\n"); |
|
31208 |
printf("kde_kcfgdir=\\"/tmp/dummy\\"\n"); |
|
31209 |
return 0; |
|
31210 |
} |
|
31211 |
EOF |
|
31212 |
||
31213 |
ac_save_CPPFLAGS=$CPPFLAGS |
|
31214 |
CPPFLAGS="$all_includes $CPPFLAGS" |
|
31215 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
31216 |
(eval $ac_compile) 2>&5 |
|
31217 |
ac_status=$? |
|
31218 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
31219 |
(exit $ac_status); }; then |
|
31220 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
31221 |
echo "${ECHO_T}yes" >&6 |
|
31222 |
else |
|
31223 |
{ { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application! |
|
31224 |
Check, if you installed the KDE header files correctly. |
|
31225 |
For more details about this problem, look at the end of config.log." >&5 |
|
31226 |
echo "$as_me: error: your system is not able to compile a small KDE application! |
|
31227 |
Check, if you installed the KDE header files correctly. |
|
31228 |
For more details about this problem, look at the end of config.log." >&2;} |
|
31229 |
{ (exit 1); exit 1; }; } |
|
31230 |
fi |
|
31231 |
CPPFLAGS=$ac_save_CPPFLAGS |
|
31232 |
||
31233 |
ac_ext=c |
|
31234 |
ac_cpp='$CPP $CPPFLAGS' |
|
31235 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
31236 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
31237 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
31238 |
||
31239 |
||
31240 |
||
31241 |
KDE_TEST_RPATH= |
|
31242 |
||
31243 |
if test -n "$USE_RPATH"; then |
|
31244 |
||
31245 |
if test -n "$kde_libraries"; then |
|
31246 |
KDE_TEST_RPATH="-R $kde_libraries" |
|
31247 |
fi |
|
31248 |
||
31249 |
if test -n "$qt_libraries"; then |
|
31250 |
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries" |
|
31251 |
fi |
|
31252 |
||
31253 |
if test -n "$x_libraries"; then |
|
31254 |
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries" |
|
31255 |
fi |
|
31256 |
||
31257 |
KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH" |
|
31258 |
fi |
|
31259 |
||
31260 |
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5 |
|
31261 |
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6 |
|
31262 |
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5' |
|
31263 |
||
31264 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
31265 |
(eval $ac_link) 2>&5 |
|
31266 |
ac_status=$? |
|
31267 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
31268 |
(exit $ac_status); } && test -s conftest; then |
|
31269 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
31270 |
echo "${ECHO_T}yes" >&6 |
|
31271 |
else |
|
31272 |
{ { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application! |
|
31273 |
Check, if your compiler is installed correctly and if you have used the |
|
31274 |
same compiler to compile Qt and kdelibs as you did use now. |
|
31275 |
For more details about this problem, look at the end of config.log." >&5 |
|
31276 |
echo "$as_me: error: your system fails at linking a small KDE application! |
|
31277 |
Check, if your compiler is installed correctly and if you have used the |
|
31278 |
same compiler to compile Qt and kdelibs as you did use now. |
|
31279 |
For more details about this problem, look at the end of config.log." >&2;} |
|
31280 |
{ (exit 1); exit 1; }; } |
|
31281 |
fi |
|
31282 |
||
31283 |
if eval `KDEDIR= ./conftest 2>&5`; then |
|
31284 |
kde_result=done |
|
31285 |
else |
|
31286 |
kde_result=problems |
|
31287 |
fi |
|
31288 |
||
31289 |
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log |
|
31290 |
kde_have_all_paths=yes |
|
31291 |
||
31292 |
||
31293 |
kde_cv_all_paths="kde_have_all_paths=\"yes\" \ |
|
31294 |
kde_htmldir=\"$kde_htmldir\" \ |
|
31295 |
kde_appsdir=\"$kde_appsdir\" \ |
|
31296 |
kde_icondir=\"$kde_icondir\" \ |
|
31297 |
kde_sounddir=\"$kde_sounddir\" \ |
|
31298 |
kde_datadir=\"$kde_datadir\" \ |
|
31299 |
kde_locale=\"$kde_locale\" \ |
|
31300 |
kde_cgidir=\"$kde_cgidir\" \ |
|
31301 |
kde_confdir=\"$kde_confdir\" \ |
|
31302 |
kde_kcfgdir=\"$kde_kcfgdir\" \ |
|
31303 |
kde_mimedir=\"$kde_mimedir\" \ |
|
31304 |
kde_toolbardir=\"$kde_toolbardir\" \ |
|
31305 |
kde_wallpaperdir=\"$kde_wallpaperdir\" \ |
|
31306 |
kde_templatesdir=\"$kde_templatesdir\" \ |
|
31307 |
kde_bindir=\"$kde_bindir\" \ |
|
31308 |
kde_servicesdir=\"$kde_servicesdir\" \ |
|
31309 |
kde_servicetypesdir=\"$kde_servicetypesdir\" \ |
|
31310 |
kde_moduledir=\"$kde_moduledir\" \ |
|
31311 |
kde_styledir=\"$kde_styledir\" \ |
|
31312 |
kde_widgetdir=\"$kde_widgetdir\" \ |
|
31313 |
xdg_appsdir=\"$xdg_appsdir\" \ |
|
31314 |
xdg_menudir=\"$xdg_menudir\" \ |
|
31315 |
xdg_directorydir=\"$xdg_directorydir\" \ |
|
31316 |
kde_result=$kde_result" |
|
31317 |
||
31318 |
||
31319 |
||
31320 |
else |
|
31321 |
{ { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5 |
|
31322 |
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;} |
|
31323 |
{ (exit 1); exit 1; }; } |
|
31324 |
fi |
|
31325 |
||
31326 |
fi |
|
31327 |
||
31328 |
eval "$kde_cv_all_paths" |
|
31329 |
if test -z "$kde_htmldir" || test -z "$kde_appsdir" || |
|
31330 |
test -z "$kde_icondir" || test -z "$kde_sounddir" || |
|
31331 |
test -z "$kde_datadir" || test -z "$kde_locale" || |
|
31332 |
test -z "$kde_cgidir" || test -z "$kde_confdir" || |
|
31333 |
test -z "$kde_kcfgdir" || |
|
31334 |
test -z "$kde_mimedir" || test -z "$kde_toolbardir" || |
|
31335 |
test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" || |
|
31336 |
test -z "$kde_bindir" || test -z "$kde_servicesdir" || |
|
31337 |
test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" || |
|
31338 |
test -z "$kde_styledir" || test -z "kde_widgetdir" || |
|
31339 |
test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" || |
|
31340 |
test "x$kde_have_all_paths" != "xyes"; then |
|
31341 |
kde_have_all_paths=no |
|
31342 |
fi |
|
31343 |
||
31344 |
kde_result="$kde_result (cache overridden)" |
|
31345 |
fi |
|
31346 |
if test "$kde_have_all_paths" = "no"; then |
|
31347 |
{ { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment. |
|
31348 |
Since it had compiled and linked before, it must be a strange problem on your system. |
|
31349 |
Look at config.log for details. If you are not able to fix this, look at |
|
31350 |
http://www.kde.org/faq/installation.html or any www.kde.org mirror. |
|
31351 |
(If you're using an egcs version on Linux, you may update binutils!) |
|
31352 |
" >&5 |
|
31353 |
echo "$as_me: error: configure could not run a little KDE program to test the environment. |
|
31354 |
Since it had compiled and linked before, it must be a strange problem on your system. |
|
31355 |
Look at config.log for details. If you are not able to fix this, look at |
|
31356 |
http://www.kde.org/faq/installation.html or any www.kde.org mirror. |
|
31357 |
(If you're using an egcs version on Linux, you may update binutils!) |
|
31358 |
" >&2;} |
|
31359 |
{ (exit 1); exit 1; }; } |
|
31360 |
else |
|
31361 |
rm -f conftest* |
|
31362 |
echo "$as_me:$LINENO: result: $kde_result" >&5 |
|
31363 |
echo "${ECHO_T}$kde_result" >&6 |
|
31364 |
fi |
|
31365 |
||
31366 |
bindir=$kde_bindir |
|
31367 |
||
31368 |
||
31369 |
||
31370 |
# Check whether --with-arts or --without-arts was given. |
|
31371 |
if test "${with_arts+set}" = set; then |
|
31372 |
withval="$with_arts" |
|
31373 |
build_arts=$withval |
|
31374 |
else |
|
31375 |
build_arts=yes |
|
31376 |
||
31377 |
fi; |
|
31378 |
||
31379 |
||
31380 |
if test "$build_arts" '!=' "no"; then |
|
31381 |
include_ARTS_TRUE= |
|
31382 |
include_ARTS_FALSE='#' |
|
31383 |
else |
|
31384 |
include_ARTS_TRUE='#' |
|
31385 |
include_ARTS_FALSE= |
|
31386 |
fi |
|
31387 |
||
31388 |
if test "$build_arts" = "no"; then |
|
31389 |
||
31390 |
cat >>confdefs.h <<\_ACEOF |
|
31391 |
#define WITHOUT_ARTS 1 |
|
31392 |
_ACEOF |
|
31393 |
||
31394 |
fi |
|
31395 |
||
31396 |
||
31397 |
kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin" |
|
31398 |
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs" |
|
31399 |
if test -n "$KDEDIRS"; then |
|
31400 |
kde_save_IFS=$IFS |
|
31401 |
IFS=: |
|
31402 |
for dir in $KDEDIRS; do |
|
31403 |
kde_default_bindirs="$dir/bin $kde_default_bindirs " |
|
31404 |
done |
|
31405 |
IFS=$kde_save_IFS |
|
31406 |
fi |
|
31407 |
||
31408 |
kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs" |
|
31409 |
||
31410 |
echo "$as_me:$LINENO: checking for dcopidl" >&5 |
|
31411 |
echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6 |
|
31412 |
if test -n "$DCOPIDL"; then |
|
31413 |
kde_cv_path="$DCOPIDL"; |
|
31414 |
else |
|
31415 |
kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'` |
|
31416 |
||
31417 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
31418 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
31419 |
else |
|
31420 |
||
31421 |
kde_cv_path="NONE" |
|
31422 |
kde_save_IFS=$IFS |
|
31423 |
IFS=':' |
|
31424 |
dirs="" |
|
31425 |
for dir in $PATH; do |
|
31426 |
dirs="$dirs $dir" |
|
31427 |
done |
|
31428 |
if test -z ""; then dirs="$kde_default_bindirs $dirs" |
|
31429 |
else dirs="$dirs $kde_default_bindirs" |
|
31430 |
fi |
|
31431 |
IFS=$kde_save_IFS |
|
31432 |
||
31433 |
for dir in $dirs; do |
|
31434 |
if test -x "$dir/dcopidl"; then |
|
31435 |
if test -n "" |
|
31436 |
then |
|
31437 |
evalstr="$dir/dcopidl 2>&1 " |
|
31438 |
if eval $evalstr; then |
|
31439 |
kde_cv_path="$dir/dcopidl" |
|
31440 |
break |
|
31441 |
fi |
|
31442 |
else |
|
31443 |
kde_cv_path="$dir/dcopidl" |
|
31444 |
break |
|
31445 |
fi |
|
31446 |
fi |
|
31447 |
done |
|
31448 |
||
31449 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
31450 |
||
31451 |
||
31452 |
fi |
|
31453 |
||
31454 |
||
31455 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
31456 |
||
31457 |
fi |
|
31458 |
||
31459 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
31460 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
31461 |
echo "${ECHO_T}not found" >&6 |
|
31462 |
||
31463 |
{ { echo "$as_me:$LINENO: error: The important program dcopidl was not found! |
|
31464 |
Please check whether you installed KDE correctly. |
|
31465 |
" >&5 |
|
31466 |
echo "$as_me: error: The important program dcopidl was not found! |
|
31467 |
Please check whether you installed KDE correctly. |
|
31468 |
" >&2;} |
|
31469 |
{ (exit 1); exit 1; }; } |
|
31470 |
||
31471 |
else |
|
31472 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
31473 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
31474 |
DCOPIDL=$kde_cv_path |
|
31475 |
||
31476 |
fi |
|
31477 |
||
31478 |
||
31479 |
echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5 |
|
31480 |
echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6 |
|
31481 |
if test -n "$DCOPIDL2CPP"; then |
|
31482 |
kde_cv_path="$DCOPIDL2CPP"; |
|
31483 |
else |
|
31484 |
kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'` |
|
31485 |
||
31486 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
31487 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
31488 |
else |
|
31489 |
||
31490 |
kde_cv_path="NONE" |
|
31491 |
kde_save_IFS=$IFS |
|
31492 |
IFS=':' |
|
31493 |
dirs="" |
|
31494 |
for dir in $PATH; do |
|
31495 |
dirs="$dirs $dir" |
|
31496 |
done |
|
31497 |
if test -z ""; then dirs="$kde_default_bindirs $dirs" |
|
31498 |
else dirs="$dirs $kde_default_bindirs" |
|
31499 |
fi |
|
31500 |
IFS=$kde_save_IFS |
|
31501 |
||
31502 |
for dir in $dirs; do |
|
31503 |
if test -x "$dir/dcopidl2cpp"; then |
|
31504 |
if test -n "" |
|
31505 |
then |
|
31506 |
evalstr="$dir/dcopidl2cpp 2>&1 " |
|
31507 |
if eval $evalstr; then |
|
31508 |
kde_cv_path="$dir/dcopidl2cpp" |
|
31509 |
break |
|
31510 |
fi |
|
31511 |
else |
|
31512 |
kde_cv_path="$dir/dcopidl2cpp" |
|
31513 |
break |
|
31514 |
fi |
|
31515 |
fi |
|
31516 |
done |
|
31517 |
||
31518 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
31519 |
||
31520 |
||
31521 |
fi |
|
31522 |
||
31523 |
||
31524 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
31525 |
||
31526 |
fi |
|
31527 |
||
31528 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
31529 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
31530 |
echo "${ECHO_T}not found" >&6 |
|
31531 |
||
31532 |
{ { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found! |
|
31533 |
Please check whether you installed KDE correctly. |
|
31534 |
" >&5 |
|
31535 |
echo "$as_me: error: The important program dcopidl2cpp was not found! |
|
31536 |
Please check whether you installed KDE correctly. |
|
31537 |
" >&2;} |
|
31538 |
{ (exit 1); exit 1; }; } |
|
31539 |
||
31540 |
else |
|
31541 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
31542 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
31543 |
DCOPIDL2CPP=$kde_cv_path |
|
31544 |
||
31545 |
fi |
|
31546 |
||
31547 |
if test "$build_arts" '!=' "no"; then |
|
31548 |
||
31549 |
echo "$as_me:$LINENO: checking for mcopidl" >&5 |
|
31550 |
echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6 |
|
31551 |
if test -n "$MCOPIDL"; then |
|
31552 |
kde_cv_path="$MCOPIDL"; |
|
31553 |
else |
|
31554 |
kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'` |
|
31555 |
||
31556 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
31557 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
31558 |
else |
|
31559 |
||
31560 |
kde_cv_path="NONE" |
|
31561 |
kde_save_IFS=$IFS |
|
31562 |
IFS=':' |
|
31563 |
dirs="" |
|
31564 |
for dir in $PATH; do |
|
31565 |
dirs="$dirs $dir" |
|
31566 |
done |
|
31567 |
if test -z ""; then dirs="$kde_default_bindirs $dirs" |
|
31568 |
else dirs="$dirs $kde_default_bindirs" |
|
31569 |
fi |
|
31570 |
IFS=$kde_save_IFS |
|
31571 |
||
31572 |
for dir in $dirs; do |
|
31573 |
if test -x "$dir/mcopidl"; then |
|
31574 |
if test -n "" |
|
31575 |
then |
|
31576 |
evalstr="$dir/mcopidl 2>&1 " |
|
31577 |
if eval $evalstr; then |
|
31578 |
kde_cv_path="$dir/mcopidl" |
|
31579 |
break |
|
31580 |
fi |
|
31581 |
else |
|
31582 |
kde_cv_path="$dir/mcopidl" |
|
31583 |
break |
|
31584 |
fi |
|
31585 |
fi |
|
31586 |
done |
|
31587 |
||
31588 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
31589 |
||
31590 |
||
31591 |
fi |
|
31592 |
||
31593 |
||
31594 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
31595 |
||
31596 |
fi |
|
31597 |
||
31598 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
31599 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
31600 |
echo "${ECHO_T}not found" >&6 |
|
31601 |
||
31602 |
{ { echo "$as_me:$LINENO: error: The important program mcopidl was not found! |
|
31603 |
Please check whether you installed aRts correctly or use |
|
31604 |
--without-arts to compile without aRts support (this will remove functionality). |
|
31605 |
" >&5 |
|
31606 |
echo "$as_me: error: The important program mcopidl was not found! |
|
31607 |
Please check whether you installed aRts correctly or use |
|
31608 |
--without-arts to compile without aRts support (this will remove functionality). |
|
31609 |
" >&2;} |
|
31610 |
{ (exit 1); exit 1; }; } |
|
31611 |
||
31612 |
else |
|
31613 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
31614 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
31615 |
MCOPIDL=$kde_cv_path |
|
31616 |
||
31617 |
fi |
|
31618 |
||
31619 |
||
31620 |
echo "$as_me:$LINENO: checking for artsc-config" >&5 |
|
31621 |
echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6 |
|
31622 |
if test -n "$ARTSCCONFIG"; then |
|
31623 |
kde_cv_path="$ARTSCCONFIG"; |
|
31624 |
else |
|
31625 |
kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'` |
|
31626 |
||
31627 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
31628 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
31629 |
else |
|
31630 |
||
31631 |
kde_cv_path="NONE" |
|
31632 |
kde_save_IFS=$IFS |
|
31633 |
IFS=':' |
|
31634 |
dirs="" |
|
31635 |
for dir in $PATH; do |
|
31636 |
dirs="$dirs $dir" |
|
31637 |
done |
|
31638 |
if test -z ""; then dirs="$kde_default_bindirs $dirs" |
|
31639 |
else dirs="$dirs $kde_default_bindirs" |
|
31640 |
fi |
|
31641 |
IFS=$kde_save_IFS |
|
31642 |
||
31643 |
for dir in $dirs; do |
|
31644 |
if test -x "$dir/artsc-config"; then |
|
31645 |
if test -n "" |
|
31646 |
then |
|
31647 |
evalstr="$dir/artsc-config 2>&1 " |
|
31648 |
if eval $evalstr; then |
|
31649 |
kde_cv_path="$dir/artsc-config" |
|
31650 |
break |
|
31651 |
fi |
|
31652 |
else |
|
31653 |
kde_cv_path="$dir/artsc-config" |
|
31654 |
break |
|
31655 |
fi |
|
31656 |
fi |
|
31657 |
done |
|
31658 |
||
31659 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
31660 |
||
31661 |
||
31662 |
fi |
|
31663 |
||
31664 |
||
31665 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
31666 |
||
31667 |
fi |
|
31668 |
||
31669 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
31670 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
31671 |
echo "${ECHO_T}not found" >&6 |
|
31672 |
||
31673 |
{ { echo "$as_me:$LINENO: error: The important program artsc-config was not found! |
|
31674 |
Please check whether you installed aRts correctly or use |
|
31675 |
--without-arts to compile without aRts support (this will remove functionality). |
|
31676 |
" >&5 |
|
31677 |
echo "$as_me: error: The important program artsc-config was not found! |
|
31678 |
Please check whether you installed aRts correctly or use |
|
31679 |
--without-arts to compile without aRts support (this will remove functionality). |
|
31680 |
" >&2;} |
|
31681 |
{ (exit 1); exit 1; }; } |
|
31682 |
||
31683 |
else |
|
31684 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
31685 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
31686 |
ARTSCCONFIG=$kde_cv_path |
|
31687 |
||
31688 |
fi |
|
31689 |
||
31690 |
fi |
|
31691 |
||
31692 |
echo "$as_me:$LINENO: checking for meinproc" >&5 |
|
31693 |
echo $ECHO_N "checking for meinproc... $ECHO_C" >&6 |
|
31694 |
if test -n "$MEINPROC"; then |
|
31695 |
kde_cv_path="$MEINPROC"; |
|
31696 |
else |
|
31697 |
kde_cache=`echo meinproc | sed 'y%./+-%__p_%'` |
|
31698 |
||
31699 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
31700 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
31701 |
else |
|
31702 |
||
31703 |
kde_cv_path="NONE" |
|
31704 |
kde_save_IFS=$IFS |
|
31705 |
IFS=':' |
|
31706 |
dirs="" |
|
31707 |
for dir in $PATH; do |
|
31708 |
dirs="$dirs $dir" |
|
31709 |
done |
|
31710 |
if test -z ""; then dirs="$kde_default_bindirs $dirs" |
|
31711 |
else dirs="$dirs $kde_default_bindirs" |
|
31712 |
fi |
|
31713 |
IFS=$kde_save_IFS |
|
31714 |
||
31715 |
for dir in $dirs; do |
|
31716 |
if test -x "$dir/meinproc"; then |
|
31717 |
if test -n "" |
|
31718 |
then |
|
31719 |
evalstr="$dir/meinproc 2>&1 " |
|
31720 |
if eval $evalstr; then |
|
31721 |
kde_cv_path="$dir/meinproc" |
|
31722 |
break |
|
31723 |
fi |
|
31724 |
else |
|
31725 |
kde_cv_path="$dir/meinproc" |
|
31726 |
break |
|
31727 |
fi |
|
31728 |
fi |
|
31729 |
done |
|
31730 |
||
31731 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
31732 |
||
31733 |
||
31734 |
fi |
|
31735 |
||
31736 |
||
31737 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
31738 |
||
31739 |
fi |
|
31740 |
||
31741 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
31742 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
31743 |
echo "${ECHO_T}not found" >&6 |
|
31744 |
||
31745 |
else |
|
31746 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
31747 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
31748 |
MEINPROC=$kde_cv_path |
|
31749 |
||
31750 |
fi |
|
31751 |
||
31752 |
||
31753 |
kde32ornewer=1 |
|
31754 |
kde33ornewer=1 |
|
31755 |
if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then |
|
31756 |
kde32ornewer= |
|
31757 |
kde33ornewer= |
|
31758 |
else |
|
31759 |
if test "$kde_qtver" = "3"; then |
|
31760 |
if test "$kde_qtsubver" -le 1; then |
|
31761 |
kde32ornewer= |
|
31762 |
fi |
|
31763 |
if test "$kde_qtsubver" -le 2; then |
|
31764 |
kde33ornewer= |
|
31765 |
fi |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
31766 |
if test "$KDECONFIG" != "compiled"; then |
31767 |
if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then |
|
31768 |
kde33ornewer= |
|
31769 |
fi |
|
31770 |
fi |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
31771 |
fi |
31772 |
fi |
|
31773 |
||
31774 |
if test -n "$kde32ornewer"; then |
|
31775 |
||
31776 |
echo "$as_me:$LINENO: checking for kconfig_compiler" >&5 |
|
31777 |
echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6 |
|
31778 |
if test -n "$KCONFIG_COMPILER"; then |
|
31779 |
kde_cv_path="$KCONFIG_COMPILER"; |
|
31780 |
else |
|
31781 |
kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'` |
|
31782 |
||
31783 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
31784 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
31785 |
else |
|
31786 |
||
31787 |
kde_cv_path="NONE" |
|
31788 |
kde_save_IFS=$IFS |
|
31789 |
IFS=':' |
|
31790 |
dirs="" |
|
31791 |
for dir in $PATH; do |
|
31792 |
dirs="$dirs $dir" |
|
31793 |
done |
|
31794 |
if test -z ""; then dirs="$kde_default_bindirs $dirs" |
|
31795 |
else dirs="$dirs $kde_default_bindirs" |
|
31796 |
fi |
|
31797 |
IFS=$kde_save_IFS |
|
31798 |
||
31799 |
for dir in $dirs; do |
|
31800 |
if test -x "$dir/kconfig_compiler"; then |
|
31801 |
if test -n "" |
|
31802 |
then |
|
31803 |
evalstr="$dir/kconfig_compiler 2>&1 " |
|
31804 |
if eval $evalstr; then |
|
31805 |
kde_cv_path="$dir/kconfig_compiler" |
|
31806 |
break |
|
31807 |
fi |
|
31808 |
else |
|
31809 |
kde_cv_path="$dir/kconfig_compiler" |
|
31810 |
break |
|
31811 |
fi |
|
31812 |
fi |
|
31813 |
done |
|
31814 |
||
31815 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
31816 |
||
31817 |
||
31818 |
fi |
|
31819 |
||
31820 |
||
31821 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
31822 |
||
31823 |
fi |
|
31824 |
||
31825 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
31826 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
31827 |
echo "${ECHO_T}not found" >&6 |
|
31828 |
||
31829 |
{ { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found! |
|
31830 |
Please check whether you installed KDE correctly. |
|
31831 |
" >&5 |
|
31832 |
echo "$as_me: error: The important program kconfig_compiler was not found! |
|
31833 |
Please check whether you installed KDE correctly. |
|
31834 |
" >&2;} |
|
31835 |
{ (exit 1); exit 1; }; } |
|
31836 |
||
31837 |
else |
|
31838 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
31839 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
31840 |
KCONFIG_COMPILER=$kde_cv_path |
|
31841 |
||
31842 |
fi |
|
31843 |
||
31844 |
||
31845 |
echo "$as_me:$LINENO: checking for dcopidlng" >&5 |
|
31846 |
echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6 |
|
31847 |
if test -n "$DCOPIDLNG"; then |
|
31848 |
kde_cv_path="$DCOPIDLNG"; |
|
31849 |
else |
|
31850 |
kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'` |
|
31851 |
||
31852 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
31853 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
31854 |
else |
|
31855 |
||
31856 |
kde_cv_path="NONE" |
|
31857 |
kde_save_IFS=$IFS |
|
31858 |
IFS=':' |
|
31859 |
dirs="" |
|
31860 |
for dir in $PATH; do |
|
31861 |
dirs="$dirs $dir" |
|
31862 |
done |
|
31863 |
if test -z ""; then dirs="$kde_default_bindirs $dirs" |
|
31864 |
else dirs="$dirs $kde_default_bindirs" |
|
31865 |
fi |
|
31866 |
IFS=$kde_save_IFS |
|
31867 |
||
31868 |
for dir in $dirs; do |
|
31869 |
if test -x "$dir/dcopidlng"; then |
|
31870 |
if test -n "" |
|
31871 |
then |
|
31872 |
evalstr="$dir/dcopidlng 2>&1 " |
|
31873 |
if eval $evalstr; then |
|
31874 |
kde_cv_path="$dir/dcopidlng" |
|
31875 |
break |
|
31876 |
fi |
|
31877 |
else |
|
31878 |
kde_cv_path="$dir/dcopidlng" |
|
31879 |
break |
|
31880 |
fi |
|
31881 |
fi |
|
31882 |
done |
|
31883 |
||
31884 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
31885 |
||
31886 |
||
31887 |
fi |
|
31888 |
||
31889 |
||
31890 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
31891 |
||
31892 |
fi |
|
31893 |
||
31894 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
31895 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
31896 |
echo "${ECHO_T}not found" >&6 |
|
31897 |
||
31898 |
{ { echo "$as_me:$LINENO: error: The important program dcopidlng was not found! |
|
31899 |
Please check whether you installed KDE correctly. |
|
31900 |
" >&5 |
|
31901 |
echo "$as_me: error: The important program dcopidlng was not found! |
|
31902 |
Please check whether you installed KDE correctly. |
|
31903 |
" >&2;} |
|
31904 |
{ (exit 1); exit 1; }; } |
|
31905 |
||
31906 |
else |
|
31907 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
31908 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
31909 |
DCOPIDLNG=$kde_cv_path |
|
31910 |
||
31911 |
fi |
|
31912 |
||
31913 |
fi |
|
31914 |
if test -n "$kde33ornewer"; then |
|
31915 |
||
31916 |
echo "$as_me:$LINENO: checking for makekdewidgets" >&5 |
|
31917 |
echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6 |
|
31918 |
if test -n "$MAKEKDEWIDGETS"; then |
|
31919 |
kde_cv_path="$MAKEKDEWIDGETS"; |
|
31920 |
else |
|
31921 |
kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'` |
|
31922 |
||
31923 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
31924 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
31925 |
else |
|
31926 |
||
31927 |
kde_cv_path="NONE" |
|
31928 |
kde_save_IFS=$IFS |
|
31929 |
IFS=':' |
|
31930 |
dirs="" |
|
31931 |
for dir in $PATH; do |
|
31932 |
dirs="$dirs $dir" |
|
31933 |
done |
|
31934 |
if test -z ""; then dirs="$kde_default_bindirs $dirs" |
|
31935 |
else dirs="$dirs $kde_default_bindirs" |
|
31936 |
fi |
|
31937 |
IFS=$kde_save_IFS |
|
31938 |
||
31939 |
for dir in $dirs; do |
|
31940 |
if test -x "$dir/makekdewidgets"; then |
|
31941 |
if test -n "" |
|
31942 |
then |
|
31943 |
evalstr="$dir/makekdewidgets 2>&1 " |
|
31944 |
if eval $evalstr; then |
|
31945 |
kde_cv_path="$dir/makekdewidgets" |
|
31946 |
break |
|
31947 |
fi |
|
31948 |
else |
|
31949 |
kde_cv_path="$dir/makekdewidgets" |
|
31950 |
break |
|
31951 |
fi |
|
31952 |
fi |
|
31953 |
done |
|
31954 |
||
31955 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
31956 |
||
31957 |
||
31958 |
fi |
|
31959 |
||
31960 |
||
31961 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
31962 |
||
31963 |
fi |
|
31964 |
||
31965 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
31966 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
31967 |
echo "${ECHO_T}not found" >&6 |
|
31968 |
||
31969 |
{ { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found! |
|
31970 |
Please check whether you installed KDE correctly. |
|
31971 |
" >&5 |
|
31972 |
echo "$as_me: error: The important program makekdewidgets was not found! |
|
31973 |
Please check whether you installed KDE correctly. |
|
31974 |
" >&2;} |
|
31975 |
{ (exit 1); exit 1; }; } |
|
31976 |
||
31977 |
else |
|
31978 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
31979 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
31980 |
MAKEKDEWIDGETS=$kde_cv_path |
|
31981 |
||
31982 |
fi |
|
31983 |
||
31984 |
||
31985 |
fi |
|
31986 |
||
31987 |
echo "$as_me:$LINENO: checking for xmllint" >&5 |
|
31988 |
echo $ECHO_N "checking for xmllint... $ECHO_C" >&6 |
|
31989 |
if test -n "$XMLLINT"; then |
|
31990 |
kde_cv_path="$XMLLINT"; |
|
31991 |
else |
|
31992 |
kde_cache=`echo xmllint | sed 'y%./+-%__p_%'` |
|
31993 |
||
31994 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
31995 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
31996 |
else |
|
31997 |
||
31998 |
kde_cv_path="NONE" |
|
31999 |
kde_save_IFS=$IFS |
|
32000 |
IFS=':' |
|
32001 |
dirs="" |
|
32002 |
for dir in $PATH; do |
|
32003 |
dirs="$dirs $dir" |
|
32004 |
done |
|
32005 |
if test -z ""; then dirs="${prefix}/bin ${exec_prefix}/bin $dirs" |
|
32006 |
else dirs="$dirs ${prefix}/bin ${exec_prefix}/bin" |
|
32007 |
fi |
|
32008 |
IFS=$kde_save_IFS |
|
32009 |
||
32010 |
for dir in $dirs; do |
|
32011 |
if test -x "$dir/xmllint"; then |
|
32012 |
if test -n "" |
|
32013 |
then |
|
32014 |
evalstr="$dir/xmllint 2>&1 " |
|
32015 |
if eval $evalstr; then |
|
32016 |
kde_cv_path="$dir/xmllint" |
|
32017 |
break |
|
32018 |
fi |
|
32019 |
else |
|
32020 |
kde_cv_path="$dir/xmllint" |
|
32021 |
break |
|
32022 |
fi |
|
32023 |
fi |
|
32024 |
done |
|
32025 |
||
32026 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
32027 |
||
32028 |
||
32029 |
fi |
|
32030 |
||
32031 |
||
32032 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
32033 |
||
32034 |
fi |
|
32035 |
||
32036 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
32037 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
32038 |
echo "${ECHO_T}not found" >&6 |
|
32039 |
XMLLINT="" |
|
32040 |
else |
|
32041 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
32042 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
32043 |
XMLLINT=$kde_cv_path |
|
32044 |
||
32045 |
fi |
|
32046 |
||
32047 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
32048 |
if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then |
1
by Achim Bohnet
Import upstream version 0.1.1 |
32049 |
kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share" |
32050 |
test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs" |
|
32051 |
||
32052 |
KDE_XSL_STYLESHEET=NO |
|
32053 |
for i in $kde_sharedirs; |
|
32054 |
do |
|
32055 |
for j in apps/ksgmltools2/customization/kde-chunk.xsl; |
|
32056 |
do |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
32057 |
echo "configure: 32057: $i/$j" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
32058 |
if test -r "$i/$j"; then |
32059 |
echo "taking that" >&5 |
|
32060 |
KDE_XSL_STYLESHEET=$i |
|
32061 |
break 2 |
|
32062 |
fi |
|
32063 |
done |
|
32064 |
done |
|
32065 |
||
32066 |
if test "$KDE_XSL_STYLESHEET" = "NO"; then |
|
32067 |
KDE_XSL_STYLESHEET="" |
|
32068 |
else |
|
32069 |
KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl" |
|
32070 |
fi |
|
32071 |
fi |
|
32072 |
||
32073 |
DCOP_DEPENDENCIES='$(DCOPIDL)' |
|
32074 |
if test -n "$kde32ornewer"; then |
|
32075 |
KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)' |
|
32076 |
DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)' |
|
32077 |
||
32078 |
||
32079 |
||
32080 |
fi |
|
32081 |
||
32082 |
||
32083 |
||
32084 |
||
32085 |
||
32086 |
||
32087 |
||
32088 |
||
32089 |
||
32090 |
||
32091 |
||
32092 |
||
32093 |
||
32094 |
||
32095 |
||
32096 |
||
32097 |
||
32098 |
||
32099 |
||
32100 |
||
32101 |
||
32102 |
||
32103 |
||
32104 |
||
32105 |
||
32106 |
||
32107 |
||
32108 |
||
32109 |
||
32110 |
||
32111 |
||
32112 |
kdeinitdir='$(kde_moduledir)' |
|
32113 |
||
32114 |
||
32115 |
||
32116 |
if test "$kde_qtver" = 1; then |
|
32117 |
kde_minidir="$kde_icondir/mini" |
|
32118 |
else |
|
32119 |
# for KDE 1 - this breaks KDE2 apps using minidir, but |
|
32120 |
# that's the plan ;-/ |
|
32121 |
kde_minidir="/dev/null" |
|
32122 |
fi |
|
32123 |
||
32124 |
||
32125 |
||
32126 |
||
32127 |
||
32128 |
||
32129 |
if test $kde_qtver = 3; then |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
32130 |
case $host in |
32131 |
*cygwin*) lib_kded="-lkdeinit_kded" ;; |
|
32132 |
*) lib_kded="" ;; |
|
32133 |
esac |
|
32134 |
LIB_KDED=$lib_kded |
|
32135 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
32136 |
LIB_KDECORE="-lkdecore" |
32137 |
||
32138 |
LIB_KDEUI="-lkdeui" |
|
32139 |
||
32140 |
LIB_KIO="-lkio" |
|
32141 |
||
32142 |
LIB_KJS="-lkjs" |
|
32143 |
||
32144 |
LIB_SMB="-lsmb" |
|
32145 |
||
32146 |
LIB_KAB="-lkab" |
|
32147 |
||
32148 |
LIB_KABC="-lkabc" |
|
32149 |
||
32150 |
LIB_KHTML="-lkhtml" |
|
32151 |
||
32152 |
LIB_KSPELL="-lkspell" |
|
32153 |
||
32154 |
LIB_KPARTS="-lkparts" |
|
32155 |
||
32156 |
LIB_KDEPRINT="-lkdeprint" |
|
32157 |
||
32158 |
LIB_KUTILS="-lkutils" |
|
32159 |
||
32160 |
LIB_KDEPIM="-lkdepim" |
|
32161 |
||
32162 |
LIB_KIMPROXY="-lkimproxy" |
|
32163 |
||
32164 |
LIB_KNEWSTUFF="-lknewstuff" |
|
32165 |
||
32166 |
LIB_KDNSSD="-lkdnssd" |
|
32167 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
32168 |
LIB_KUNITTEST="-lkunittest" |
32169 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
32170 |
# these are for backward compatibility |
32171 |
LIB_KSYCOCA="-lkio" |
|
32172 |
||
32173 |
LIB_KFILE="-lkio" |
|
32174 |
||
32175 |
elif test $kde_qtver = 2; then |
|
32176 |
LIB_KDECORE="-lkdecore" |
|
32177 |
||
32178 |
LIB_KDEUI="-lkdeui" |
|
32179 |
||
32180 |
LIB_KIO="-lkio" |
|
32181 |
||
32182 |
LIB_KSYCOCA="-lksycoca" |
|
32183 |
||
32184 |
LIB_SMB="-lsmb" |
|
32185 |
||
32186 |
LIB_KFILE="-lkfile" |
|
32187 |
||
32188 |
LIB_KAB="-lkab" |
|
32189 |
||
32190 |
LIB_KHTML="-lkhtml" |
|
32191 |
||
32192 |
LIB_KSPELL="-lkspell" |
|
32193 |
||
32194 |
LIB_KPARTS="-lkparts" |
|
32195 |
||
32196 |
LIB_KDEPRINT="-lkdeprint" |
|
32197 |
||
32198 |
else |
|
32199 |
LIB_KDECORE="-lkdecore -lXext $(LIB_QT)" |
|
32200 |
||
32201 |
LIB_KDEUI="-lkdeui $(LIB_KDECORE)" |
|
32202 |
||
32203 |
LIB_KFM="-lkfm $(LIB_KDECORE)" |
|
32204 |
||
32205 |
LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)" |
|
32206 |
||
32207 |
LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)" |
|
32208 |
||
32209 |
fi |
|
32210 |
||
32211 |
||
32212 |
||
32213 |
#MIN_CONFIG(3.1) |
|
32214 |
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS" |
|
32215 |
||
32216 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
32217 |
|
32218 |
||
32219 |
if test "x$GXX" = "xyes"; then |
|
32220 |
kde_have_gcc_visibility=no |
|
32221 |
||
32222 |
echo "$as_me:$LINENO: checking whether $CXX supports -fvisibility=hidden" >&5 |
|
32223 |
echo $ECHO_N "checking whether $CXX supports -fvisibility=hidden... $ECHO_C" >&6 |
|
32224 |
kde_cache=`echo fvisibility=hidden | sed 'y% .=/+-,%____p__%'` |
|
32225 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
32226 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
32227 |
else |
|
32228 |
||
32229 |
||
32230 |
||
32231 |
ac_ext=cc |
|
32232 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
32233 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
32234 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
32235 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
32236 |
||
32237 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
32238 |
||
32239 |
||
32240 |
save_CXXFLAGS="$CXXFLAGS" |
|
32241 |
CXXFLAGS="$CXXFLAGS -fvisibility=hidden" |
|
32242 |
cat >conftest.$ac_ext <<_ACEOF |
|
32243 |
/* confdefs.h. */ |
|
32244 |
_ACEOF |
|
32245 |
cat confdefs.h >>conftest.$ac_ext |
|
32246 |
cat >>conftest.$ac_ext <<_ACEOF |
|
32247 |
/* end confdefs.h. */ |
|
32248 |
||
32249 |
int |
|
32250 |
main () |
|
32251 |
{ |
|
32252 |
return 0; |
|
32253 |
; |
|
32254 |
return 0; |
|
32255 |
} |
|
32256 |
_ACEOF |
|
32257 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
32258 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
32259 |
(eval $ac_link) 2>conftest.er1 |
|
32260 |
ac_status=$? |
|
32261 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
32262 |
rm -f conftest.er1 |
|
32263 |
cat conftest.err >&5 |
|
32264 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
32265 |
(exit $ac_status); } && |
|
32266 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
32267 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
32268 |
(eval $ac_try) 2>&5 |
|
32269 |
ac_status=$? |
|
32270 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
32271 |
(exit $ac_status); }; } && |
|
32272 |
{ ac_try='test -s conftest$ac_exeext' |
|
32273 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
32274 |
(eval $ac_try) 2>&5 |
|
32275 |
ac_status=$? |
|
32276 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
32277 |
(exit $ac_status); }; }; then |
|
32278 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
32279 |
else |
|
32280 |
echo "$as_me: failed program was:" >&5 |
|
32281 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
32282 |
||
32283 |
fi |
|
32284 |
rm -f conftest.err conftest.$ac_objext \ |
|
32285 |
conftest$ac_exeext conftest.$ac_ext |
|
32286 |
CXXFLAGS="$save_CXXFLAGS" |
|
32287 |
ac_ext=c |
|
32288 |
ac_cpp='$CPP $CPPFLAGS' |
|
32289 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
32290 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
32291 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
32292 |
||
32293 |
||
32294 |
fi |
|
32295 |
||
32296 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
32297 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
32298 |
echo "${ECHO_T}yes" >&6 |
|
32299 |
: |
|
32300 |
||
32301 |
kde_have_gcc_visibility=yes |
|
32302 |
echo "$as_me:$LINENO: checking if Qt is patched for -fvisibility" >&5 |
|
32303 |
echo $ECHO_N "checking if Qt is patched for -fvisibility... $ECHO_C" >&6 |
|
32304 |
if test "${kde_cv_val_qt_gcc_visibility_patched+set}" = set; then |
|
32305 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
32306 |
else |
|
32307 |
||
32308 |
||
32309 |
||
32310 |
ac_ext=cc |
|
32311 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
32312 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
32313 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
32314 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
32315 |
||
32316 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
32317 |
||
32318 |
||
32319 |
||
32320 |
safe_CXXFLAGS=$CXXFLAGS |
|
32321 |
CXXFLAGS="$CXXFLAGS $all_includes" |
|
32322 |
||
32323 |
cat >conftest.$ac_ext <<_ACEOF |
|
32324 |
/* confdefs.h. */ |
|
32325 |
_ACEOF |
|
32326 |
cat confdefs.h >>conftest.$ac_ext |
|
32327 |
cat >>conftest.$ac_ext <<_ACEOF |
|
32328 |
/* end confdefs.h. */ |
|
32329 |
||
32330 |
#include <qglobal.h> |
|
32331 |
#if Q_EXPORT - 0 != 0 |
|
32332 |
/* if this compiles, then Q_EXPORT is undefined */ |
|
32333 |
/* if Q_EXPORT is nonempty, this will break compilation */ |
|
32334 |
#endif |
|
32335 |
||
32336 |
int |
|
32337 |
main () |
|
32338 |
{ |
|
32339 |
/* elvis is alive */ |
|
32340 |
; |
|
32341 |
return 0; |
|
32342 |
} |
|
32343 |
_ACEOF |
|
32344 |
rm -f conftest.$ac_objext |
|
32345 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
32346 |
(eval $ac_compile) 2>conftest.er1 |
|
32347 |
ac_status=$? |
|
32348 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
32349 |
rm -f conftest.er1 |
|
32350 |
cat conftest.err >&5 |
|
32351 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
32352 |
(exit $ac_status); } && |
|
32353 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
32354 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
32355 |
(eval $ac_try) 2>&5 |
|
32356 |
ac_status=$? |
|
32357 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
32358 |
(exit $ac_status); }; } && |
|
32359 |
{ ac_try='test -s conftest.$ac_objext' |
|
32360 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
32361 |
(eval $ac_try) 2>&5 |
|
32362 |
ac_status=$? |
|
32363 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
32364 |
(exit $ac_status); }; }; then |
|
32365 |
kde_cv_val_qt_gcc_visibility_patched=no |
|
32366 |
else |
|
32367 |
echo "$as_me: failed program was:" >&5 |
|
32368 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
32369 |
||
32370 |
kde_cv_val_qt_gcc_visibility_patched=yes |
|
32371 |
fi |
|
32372 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
32373 |
||
32374 |
CXXFLAGS=$safe_CXXFLAGS |
|
32375 |
ac_ext=c |
|
32376 |
ac_cpp='$CPP $CPPFLAGS' |
|
32377 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
32378 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
32379 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
32380 |
||
32381 |
||
32382 |
||
32383 |
fi |
|
32384 |
echo "$as_me:$LINENO: result: $kde_cv_val_qt_gcc_visibility_patched" >&5 |
|
32385 |
echo "${ECHO_T}$kde_cv_val_qt_gcc_visibility_patched" >&6 |
|
32386 |
||
32387 |
if test x$kde_cv_val_qt_gcc_visibility_patched = "xyes"; then |
|
32388 |
CXXFLAGS="$CXXFLAGS -fvisibility=hidden" |
|
32389 |
||
32390 |
echo "$as_me:$LINENO: checking for gcc -fvisibility-inlines-hidden bug" >&5 |
|
32391 |
echo $ECHO_N "checking for gcc -fvisibility-inlines-hidden bug... $ECHO_C" >&6 |
|
32392 |
if test "${kde_cv_val_gcc_visibility_bug+set}" = set; then |
|
32393 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
32394 |
else |
|
32395 |
||
32396 |
||
32397 |
||
32398 |
ac_ext=cc |
|
32399 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
32400 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
32401 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
32402 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
32403 |
||
32404 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
32405 |
||
32406 |
||
32407 |
||
32408 |
safe_CXXFLAGS=$CXXFLAGS |
|
32409 |
safe_LDFLAGS=$LDFLAGS |
|
32410 |
CXXFLAGS="$CXXFLAGS -fPIC -fvisibility-inlines-hidden -O0" |
|
32411 |
LDFLAGS="$LDFLAGS -shared -fPIC" |
|
32412 |
||
32413 |
cat >conftest.$ac_ext <<_ACEOF |
|
32414 |
/* confdefs.h. */ |
|
32415 |
_ACEOF |
|
32416 |
cat confdefs.h >>conftest.$ac_ext |
|
32417 |
cat >>conftest.$ac_ext <<_ACEOF |
|
32418 |
/* end confdefs.h. */ |
|
32419 |
||
32420 |
/* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */ |
|
32421 |
#include <string> |
|
32422 |
int some_function( void ) __attribute__ ((visibility("default"))); |
|
32423 |
int some_function( void ) |
|
32424 |
{ |
|
32425 |
std::string s("blafasel"); |
|
32426 |
return 0; |
|
32427 |
} |
|
32428 |
||
32429 |
int |
|
32430 |
main () |
|
32431 |
{ |
|
32432 |
/* elvis is alive */ |
|
32433 |
; |
|
32434 |
return 0; |
|
32435 |
} |
|
32436 |
_ACEOF |
|
32437 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
32438 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
32439 |
(eval $ac_link) 2>conftest.er1 |
|
32440 |
ac_status=$? |
|
32441 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
32442 |
rm -f conftest.er1 |
|
32443 |
cat conftest.err >&5 |
|
32444 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
32445 |
(exit $ac_status); } && |
|
32446 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
32447 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
32448 |
(eval $ac_try) 2>&5 |
|
32449 |
ac_status=$? |
|
32450 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
32451 |
(exit $ac_status); }; } && |
|
32452 |
{ ac_try='test -s conftest$ac_exeext' |
|
32453 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
32454 |
(eval $ac_try) 2>&5 |
|
32455 |
ac_status=$? |
|
32456 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
32457 |
(exit $ac_status); }; }; then |
|
32458 |
kde_cv_val_gcc_visibility_bug=no |
|
32459 |
else |
|
32460 |
echo "$as_me: failed program was:" >&5 |
|
32461 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
32462 |
||
32463 |
kde_cv_val_gcc_visibility_bug=yes |
|
32464 |
fi |
|
32465 |
rm -f conftest.err conftest.$ac_objext \ |
|
32466 |
conftest$ac_exeext conftest.$ac_ext |
|
32467 |
||
32468 |
CXXFLAGS=$safe_CXXFLAGS |
|
32469 |
LDFLAGS=$safe_LDFLAGS |
|
32470 |
ac_ext=c |
|
32471 |
ac_cpp='$CPP $CPPFLAGS' |
|
32472 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
32473 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
32474 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
32475 |
||
32476 |
||
32477 |
||
32478 |
fi |
|
32479 |
echo "$as_me:$LINENO: result: $kde_cv_val_gcc_visibility_bug" >&5 |
|
32480 |
echo "${ECHO_T}$kde_cv_val_gcc_visibility_bug" >&6 |
|
32481 |
||
32482 |
if test x$kde_cv_val_gcc_visibility_bug = xno; then |
|
32483 |
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
|
32484 |
fi |
|
32485 |
||
32486 |
||
32487 |
HAVE_GCC_VISIBILITY=1 |
|
32488 |
||
32489 |
cat >>confdefs.h <<_ACEOF |
|
32490 |
#define __KDE_HAVE_GCC_VISIBILITY "$HAVE_GCC_VISIBILITY" |
|
32491 |
_ACEOF |
|
32492 |
||
32493 |
fi |
|
32494 |
||
32495 |
else |
|
32496 |
echo "$as_me:$LINENO: result: no" >&5 |
|
32497 |
echo "${ECHO_T}no" >&6 |
|
32498 |
: |
|
32499 |
||
32500 |
fi |
|
32501 |
||
32502 |
fi |
|
32503 |
||
32504 |
||
32505 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
32506 |
echo "$as_me:$LINENO: checking for Qt docs" >&5 |
32507 |
echo $ECHO_N "checking for Qt docs... $ECHO_C" >&6 |
|
32508 |
kde_qtdir= |
|
32509 |
if test "${with_qt_dir+set}" = set; then |
|
32510 |
kde_qtdir="$with_qt_dir" |
|
32511 |
fi |
|
32512 |
||
32513 |
||
32514 |
QTDOCDIR=NO |
|
32515 |
for i in $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ; |
|
32516 |
do |
|
32517 |
for j in qsql.html; |
|
32518 |
do |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
32519 |
echo "configure: 32519: $i/$j" >&5 |
1
by Achim Bohnet
Import upstream version 0.1.1 |
32520 |
if test -r "$i/$j"; then |
32521 |
echo "taking that" >&5 |
|
32522 |
QTDOCDIR=$i |
|
32523 |
break 2 |
|
32524 |
fi |
|
32525 |
done |
|
32526 |
done |
|
32527 |
||
32528 |
echo "$as_me:$LINENO: result: $QTDOCDIR" >&5 |
|
32529 |
echo "${ECHO_T}$QTDOCDIR" >&6 |
|
32530 |
||
32531 |
||
32532 |
||
32533 |
||
32534 |
echo "$as_me:$LINENO: checking for dot" >&5 |
|
32535 |
echo $ECHO_N "checking for dot... $ECHO_C" >&6 |
|
32536 |
if test -n "$DOT"; then |
|
32537 |
kde_cv_path="$DOT"; |
|
32538 |
else |
|
32539 |
kde_cache=`echo dot | sed 'y%./+-%__p_%'` |
|
32540 |
||
32541 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
32542 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
32543 |
else |
|
32544 |
||
32545 |
kde_cv_path="NONE" |
|
32546 |
kde_save_IFS=$IFS |
|
32547 |
IFS=':' |
|
32548 |
dirs="" |
|
32549 |
for dir in $PATH; do |
|
32550 |
dirs="$dirs $dir" |
|
32551 |
done |
|
32552 |
if test -z ""; then dirs=" $dirs" |
|
32553 |
else dirs="$dirs " |
|
32554 |
fi |
|
32555 |
IFS=$kde_save_IFS |
|
32556 |
||
32557 |
for dir in $dirs; do |
|
32558 |
if test -x "$dir/dot"; then |
|
32559 |
if test -n "" |
|
32560 |
then |
|
32561 |
evalstr="$dir/dot 2>&1 " |
|
32562 |
if eval $evalstr; then |
|
32563 |
kde_cv_path="$dir/dot" |
|
32564 |
break |
|
32565 |
fi |
|
32566 |
else |
|
32567 |
kde_cv_path="$dir/dot" |
|
32568 |
break |
|
32569 |
fi |
|
32570 |
fi |
|
32571 |
done |
|
32572 |
||
32573 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
32574 |
||
32575 |
||
32576 |
fi |
|
32577 |
||
32578 |
||
32579 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
32580 |
||
32581 |
fi |
|
32582 |
||
32583 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
32584 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
32585 |
echo "${ECHO_T}not found" >&6 |
|
32586 |
||
32587 |
else |
|
32588 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
32589 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
32590 |
DOT=$kde_cv_path |
|
32591 |
||
32592 |
fi |
|
32593 |
||
32594 |
if test -n "$DOT"; then |
|
32595 |
KDE_HAVE_DOT="YES" |
|
32596 |
else |
|
32597 |
KDE_HAVE_DOT="NO" |
|
32598 |
fi |
|
32599 |
||
32600 |
||
32601 |
echo "$as_me:$LINENO: checking for doxygen" >&5 |
|
32602 |
echo $ECHO_N "checking for doxygen... $ECHO_C" >&6 |
|
32603 |
if test -n "$DOXYGEN"; then |
|
32604 |
kde_cv_path="$DOXYGEN"; |
|
32605 |
else |
|
32606 |
kde_cache=`echo doxygen | sed 'y%./+-%__p_%'` |
|
32607 |
||
32608 |
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then |
|
32609 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
32610 |
else |
|
32611 |
||
32612 |
kde_cv_path="NONE" |
|
32613 |
kde_save_IFS=$IFS |
|
32614 |
IFS=':' |
|
32615 |
dirs="" |
|
32616 |
for dir in $PATH; do |
|
32617 |
dirs="$dirs $dir" |
|
32618 |
done |
|
32619 |
if test -z ""; then dirs=" $dirs" |
|
32620 |
else dirs="$dirs " |
|
32621 |
fi |
|
32622 |
IFS=$kde_save_IFS |
|
32623 |
||
32624 |
for dir in $dirs; do |
|
32625 |
if test -x "$dir/doxygen"; then |
|
32626 |
if test -n "" |
|
32627 |
then |
|
32628 |
evalstr="$dir/doxygen 2>&1 " |
|
32629 |
if eval $evalstr; then |
|
32630 |
kde_cv_path="$dir/doxygen" |
|
32631 |
break |
|
32632 |
fi |
|
32633 |
else |
|
32634 |
kde_cv_path="$dir/doxygen" |
|
32635 |
break |
|
32636 |
fi |
|
32637 |
fi |
|
32638 |
done |
|
32639 |
||
32640 |
eval "kde_cv_path_$kde_cache=$kde_cv_path" |
|
32641 |
||
32642 |
||
32643 |
fi |
|
32644 |
||
32645 |
||
32646 |
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" |
|
32647 |
||
32648 |
fi |
|
32649 |
||
32650 |
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then |
|
32651 |
echo "$as_me:$LINENO: result: not found" >&5 |
|
32652 |
echo "${ECHO_T}not found" >&6 |
|
32653 |
||
32654 |
else |
|
32655 |
echo "$as_me:$LINENO: result: $kde_cv_path" >&5 |
|
32656 |
echo "${ECHO_T}$kde_cv_path" >&6 |
|
32657 |
DOXYGEN=$kde_cv_path |
|
32658 |
||
32659 |
fi |
|
32660 |
||
32661 |
||
32662 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
32663 |
DOXYGEN_PROJECT_NAME="KEG Libraries API Reference" |
1
by Achim Bohnet
Import upstream version 0.1.1 |
32664 |
DOXYGEN_PROJECT_NUMBER="Version $VERSION" |
32665 |
||
32666 |
||
32667 |
||
32668 |
KDE_HAS_DOXYGEN=no |
|
32669 |
if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/qsql.html; then |
|
32670 |
KDE_HAS_DOXYGEN=yes |
|
32671 |
fi |
|
32672 |
||
32673 |
||
32674 |
||
32675 |
||
32676 |
||
32677 |
ac_config_files="$ac_config_files libkipi/libkipi.pc" |
|
32678 |
cat >confcache <<\_ACEOF |
|
32679 |
# This file is a shell script that caches the results of configure |
|
32680 |
# tests run on this system so they can be shared between configure |
|
32681 |
# scripts and configure runs, see configure's option --config-cache. |
|
32682 |
# It is not useful on other systems. If it contains results you don't |
|
32683 |
# want to keep, you may remove or edit it. |
|
32684 |
# |
|
32685 |
# config.status only pays attention to the cache file if you give it |
|
32686 |
# the --recheck option to rerun configure. |
|
32687 |
# |
|
32688 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
32689 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
32690 |
# following values. |
|
32691 |
||
32692 |
_ACEOF |
|
32693 |
||
32694 |
# The following way of writing the cache mishandles newlines in values, |
|
32695 |
# but we know of no workaround that is simple, portable, and efficient. |
|
32696 |
# So, don't put newlines in cache variables' values. |
|
32697 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
|
32698 |
# and sets the high bit in the cache file unless we assign to the vars. |
|
32699 |
{ |
|
32700 |
(set) 2>&1 | |
|
32701 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
|
32702 |
*ac_space=\ *) |
|
32703 |
# `set' does not quote correctly, so add quotes (double-quote |
|
32704 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
|
32705 |
sed -n \ |
|
32706 |
"s/'/'\\\\''/g; |
|
32707 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
32708 |
;; |
|
32709 |
*) |
|
32710 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
|
32711 |
sed -n \ |
|
32712 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|
32713 |
;; |
|
32714 |
esac; |
|
32715 |
} | |
|
32716 |
sed ' |
|
32717 |
t clear |
|
32718 |
: clear |
|
32719 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
32720 |
t end |
|
32721 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
32722 |
: end' >>confcache |
|
32723 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
|
32724 |
if test -w $cache_file; then |
|
32725 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
|
32726 |
cat confcache >$cache_file |
|
32727 |
else |
|
32728 |
echo "not updating unwritable cache $cache_file" |
|
32729 |
fi |
|
32730 |
fi |
|
32731 |
rm -f confcache |
|
32732 |
||
32733 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
32734 |
# Let make expand exec_prefix. |
|
32735 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
32736 |
||
32737 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
32738 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
32739 |
# trailing colons and then remove the whole line if VPATH becomes empty |
|
32740 |
# (actually we leave an empty line to preserve line numbers). |
|
32741 |
if test "x$srcdir" = x.; then |
|
32742 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
32743 |
s/:*\$(srcdir):*/:/; |
|
32744 |
s/:*\${srcdir}:*/:/; |
|
32745 |
s/:*@srcdir@:*/:/; |
|
32746 |
s/^\([^=]*=[ ]*\):*/\1/; |
|
32747 |
s/:*$//; |
|
32748 |
s/^[^=]*=[ ]*$//; |
|
32749 |
}' |
|
32750 |
fi |
|
32751 |
||
32752 |
DEFS=-DHAVE_CONFIG_H |
|
32753 |
||
32754 |
ac_libobjs= |
|
32755 |
ac_ltlibobjs= |
|
32756 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
32757 |
# 1. Remove the extension, and $U if already installed. |
|
32758 |
ac_i=`echo "$ac_i" | |
|
32759 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
|
32760 |
# 2. Add them. |
|
32761 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
|
32762 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
|
32763 |
done |
|
32764 |
LIBOBJS=$ac_libobjs |
|
32765 |
||
32766 |
LTLIBOBJS=$ac_ltlibobjs |
|
32767 |
||
32768 |
||
32769 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
|
32770 |
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
|
32771 |
Usually this means the macro was only invoked conditionally." >&5 |
|
32772 |
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
|
32773 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
32774 |
{ (exit 1); exit 1; }; } |
|
32775 |
fi |
|
32776 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
32777 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
32778 |
Usually this means the macro was only invoked conditionally." >&5 |
|
32779 |
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
32780 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
32781 |
{ (exit 1); exit 1; }; } |
|
32782 |
fi |
|
32783 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
|
32784 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
|
32785 |
Usually this means the macro was only invoked conditionally." >&5 |
|
32786 |
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
|
32787 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
32788 |
{ (exit 1); exit 1; }; } |
|
32789 |
fi |
|
32790 |
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then |
|
32791 |
{ { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined. |
|
32792 |
Usually this means the macro was only invoked conditionally." >&5 |
|
32793 |
echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined. |
|
32794 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
32795 |
{ (exit 1); exit 1; }; } |
|
32796 |
fi |
|
32797 |
if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then |
|
32798 |
{ { echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined. |
|
32799 |
Usually this means the macro was only invoked conditionally." >&5 |
|
32800 |
echo "$as_me: error: conditional \"include_x11\" was never defined. |
|
32801 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
32802 |
{ (exit 1); exit 1; }; } |
|
32803 |
fi |
|
32804 |
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then |
|
32805 |
{ { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined. |
|
32806 |
Usually this means the macro was only invoked conditionally." >&5 |
|
32807 |
echo "$as_me: error: conditional \"include_ARTS\" was never defined. |
|
32808 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
32809 |
{ (exit 1); exit 1; }; } |
|
32810 |
fi |
|
32811 |
||
32812 |
: ${CONFIG_STATUS=./config.status} |
|
32813 |
ac_clean_files_save=$ac_clean_files |
|
32814 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
32815 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
|
32816 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
32817 |
cat >$CONFIG_STATUS <<_ACEOF |
|
32818 |
#! $SHELL |
|
32819 |
# Generated by $as_me. |
|
32820 |
# Run this file to recreate the current configuration. |
|
32821 |
# Compiler output produced by configure, useful for debugging |
|
32822 |
# configure, is in config.log if it exists. |
|
32823 |
||
32824 |
debug=false |
|
32825 |
ac_cs_recheck=false |
|
32826 |
ac_cs_silent=false |
|
32827 |
SHELL=\${CONFIG_SHELL-$SHELL} |
|
32828 |
_ACEOF |
|
32829 |
||
32830 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
32831 |
## --------------------- ## |
|
32832 |
## M4sh Initialization. ## |
|
32833 |
## --------------------- ## |
|
32834 |
||
32835 |
# Be Bourne compatible |
|
32836 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
32837 |
emulate sh |
|
32838 |
NULLCMD=: |
|
32839 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
32840 |
# is contrary to our usage. Disable this feature. |
|
32841 |
alias -g '${1+"$@"}'='"$@"' |
|
32842 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
32843 |
set -o posix |
|
32844 |
fi |
|
32845 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
32846 |
||
32847 |
# Support unset when possible. |
|
32848 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
32849 |
as_unset=unset |
|
32850 |
else |
|
32851 |
as_unset=false |
|
32852 |
fi |
|
32853 |
||
32854 |
||
32855 |
# Work around bugs in pre-3.0 UWIN ksh. |
|
32856 |
$as_unset ENV MAIL MAILPATH |
|
32857 |
PS1='$ ' |
|
32858 |
PS2='> ' |
|
32859 |
PS4='+ ' |
|
32860 |
||
32861 |
# NLS nuisances. |
|
32862 |
for as_var in \ |
|
32863 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
32864 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
32865 |
LC_TELEPHONE LC_TIME |
|
32866 |
do |
|
32867 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
32868 |
eval $as_var=C; export $as_var |
|
32869 |
else |
|
32870 |
$as_unset $as_var |
|
32871 |
fi |
|
32872 |
done |
|
32873 |
||
32874 |
# Required to use basename. |
|
32875 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
32876 |
as_expr=expr |
|
32877 |
else |
|
32878 |
as_expr=false |
|
32879 |
fi |
|
32880 |
||
32881 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
32882 |
as_basename=basename |
|
32883 |
else |
|
32884 |
as_basename=false |
|
32885 |
fi |
|
32886 |
||
32887 |
||
32888 |
# Name of the executable. |
|
32889 |
as_me=`$as_basename "$0" || |
|
32890 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
32891 |
X"$0" : 'X\(//\)$' \| \ |
|
32892 |
X"$0" : 'X\(/\)$' \| \ |
|
32893 |
. : '\(.\)' 2>/dev/null || |
|
32894 |
echo X/"$0" | |
|
32895 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
32896 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
|
32897 |
/^X\/\(\/\).*/{ s//\1/; q; } |
|
32898 |
s/.*/./; q'` |
|
32899 |
||
32900 |
||
32901 |
# PATH needs CR, and LINENO needs CR and PATH. |
|
32902 |
# Avoid depending upon Character Ranges. |
|
32903 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
32904 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
32905 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
32906 |
as_cr_digits='0123456789' |
|
32907 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
32908 |
||
32909 |
# The user is always right. |
|
32910 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
32911 |
echo "#! /bin/sh" >conf$$.sh |
|
32912 |
echo "exit 0" >>conf$$.sh |
|
32913 |
chmod +x conf$$.sh |
|
32914 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
32915 |
PATH_SEPARATOR=';' |
|
32916 |
else |
|
32917 |
PATH_SEPARATOR=: |
|
32918 |
fi |
|
32919 |
rm -f conf$$.sh |
|
32920 |
fi |
|
32921 |
||
32922 |
||
32923 |
as_lineno_1=$LINENO |
|
32924 |
as_lineno_2=$LINENO |
|
32925 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
32926 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
32927 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
|
32928 |
# Find who we are. Look in the path if we contain no path at all |
|
32929 |
# relative or not. |
|
32930 |
case $0 in |
|
32931 |
*[\\/]* ) as_myself=$0 ;; |
|
32932 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
32933 |
for as_dir in $PATH |
|
32934 |
do |
|
32935 |
IFS=$as_save_IFS |
|
32936 |
test -z "$as_dir" && as_dir=. |
|
32937 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
32938 |
done |
|
32939 |
||
32940 |
;; |
|
32941 |
esac |
|
32942 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
32943 |
# in which case we are not to be found in the path. |
|
32944 |
if test "x$as_myself" = x; then |
|
32945 |
as_myself=$0 |
|
32946 |
fi |
|
32947 |
if test ! -f "$as_myself"; then |
|
32948 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
|
32949 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
|
32950 |
{ (exit 1); exit 1; }; } |
|
32951 |
fi |
|
32952 |
case $CONFIG_SHELL in |
|
32953 |
'') |
|
32954 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
32955 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
32956 |
do |
|
32957 |
IFS=$as_save_IFS |
|
32958 |
test -z "$as_dir" && as_dir=. |
|
32959 |
for as_base in sh bash ksh sh5; do |
|
32960 |
case $as_dir in |
|
32961 |
/*) |
|
32962 |
if ("$as_dir/$as_base" -c ' |
|
32963 |
as_lineno_1=$LINENO |
|
32964 |
as_lineno_2=$LINENO |
|
32965 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
32966 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
32967 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
|
32968 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|
32969 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|
32970 |
CONFIG_SHELL=$as_dir/$as_base |
|
32971 |
export CONFIG_SHELL |
|
32972 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|
32973 |
fi;; |
|
32974 |
esac |
|
32975 |
done |
|
32976 |
done |
|
32977 |
;; |
|
32978 |
esac |
|
32979 |
||
32980 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
32981 |
# uniformly replaced by the line number. The first 'sed' inserts a |
|
32982 |
# line-number line before each line; the second 'sed' does the real |
|
32983 |
# work. The second script uses 'N' to pair each line-number line |
|
32984 |
# with the numbered line, and appends trailing '-' during |
|
32985 |
# substitution so that $LINENO is not a special case at line end. |
|
32986 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
32987 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
|
32988 |
sed '=' <$as_myself | |
|
32989 |
sed ' |
|
32990 |
N |
|
32991 |
s,$,-, |
|
32992 |
: loop |
|
32993 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
|
32994 |
t loop |
|
32995 |
s,-$,, |
|
32996 |
s,^['$as_cr_digits']*\n,, |
|
32997 |
' >$as_me.lineno && |
|
32998 |
chmod +x $as_me.lineno || |
|
32999 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
|
33000 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
|
33001 |
{ (exit 1); exit 1; }; } |
|
33002 |
||
33003 |
# Don't try to exec as it changes $[0], causing all sort of problems |
|
33004 |
# (the dirname of $[0] is not the place where we might find the |
|
33005 |
# original and so on. Autoconf is especially sensible to this). |
|
33006 |
. ./$as_me.lineno |
|
33007 |
# Exit status is that of the last command. |
|
33008 |
exit |
|
33009 |
} |
|
33010 |
||
33011 |
||
33012 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
|
33013 |
*c*,-n*) ECHO_N= ECHO_C=' |
|
33014 |
' ECHO_T=' ' ;; |
|
33015 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
|
33016 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
|
33017 |
esac |
|
33018 |
||
33019 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
33020 |
as_expr=expr |
|
33021 |
else |
|
33022 |
as_expr=false |
|
33023 |
fi |
|
33024 |
||
33025 |
rm -f conf$$ conf$$.exe conf$$.file |
|
33026 |
echo >conf$$.file |
|
33027 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
33028 |
# We could just check for DJGPP; but this test a) works b) is more generic |
|
33029 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
|
33030 |
if test -f conf$$.exe; then |
|
33031 |
# Don't use ln at all; we don't have any links |
|
33032 |
as_ln_s='cp -p' |
|
33033 |
else |
|
33034 |
as_ln_s='ln -s' |
|
33035 |
fi |
|
33036 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
33037 |
as_ln_s=ln |
|
33038 |
else |
|
33039 |
as_ln_s='cp -p' |
|
33040 |
fi |
|
33041 |
rm -f conf$$ conf$$.exe conf$$.file |
|
33042 |
||
33043 |
if mkdir -p . 2>/dev/null; then |
|
33044 |
as_mkdir_p=: |
|
33045 |
else |
|
33046 |
test -d ./-p && rmdir ./-p |
|
33047 |
as_mkdir_p=false |
|
33048 |
fi |
|
33049 |
||
33050 |
as_executable_p="test -f" |
|
33051 |
||
33052 |
# Sed expression to map a string onto a valid CPP name. |
|
33053 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
33054 |
||
33055 |
# Sed expression to map a string onto a valid variable name. |
|
33056 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
33057 |
||
33058 |
||
33059 |
# IFS |
|
33060 |
# We need space, tab and new line, in precisely that order. |
|
33061 |
as_nl=' |
|
33062 |
' |
|
33063 |
IFS=" $as_nl" |
|
33064 |
||
33065 |
# CDPATH. |
|
33066 |
$as_unset CDPATH |
|
33067 |
||
33068 |
exec 6>&1 |
|
33069 |
||
33070 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
|
33071 |
# report actual input values of CONFIG_FILES etc. instead of their |
|
33072 |
# values after options handling. Logging --version etc. is OK. |
|
33073 |
exec 5>>config.log |
|
33074 |
{ |
|
33075 |
echo |
|
33076 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
33077 |
## Running $as_me. ## |
|
33078 |
_ASBOX |
|
33079 |
} >&5 |
|
33080 |
cat >&5 <<_CSEOF |
|
33081 |
||
33082 |
This file was extended by $as_me, which was |
|
33083 |
generated by GNU Autoconf 2.59. Invocation command line was |
|
33084 |
||
33085 |
CONFIG_FILES = $CONFIG_FILES |
|
33086 |
CONFIG_HEADERS = $CONFIG_HEADERS |
|
33087 |
CONFIG_LINKS = $CONFIG_LINKS |
|
33088 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
33089 |
$ $0 $@ |
|
33090 |
||
33091 |
_CSEOF |
|
33092 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
|
33093 |
echo >&5 |
|
33094 |
_ACEOF |
|
33095 |
||
33096 |
# Files that config.status was made for. |
|
33097 |
if test -n "$ac_config_files"; then |
|
33098 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
|
33099 |
fi |
|
33100 |
||
33101 |
if test -n "$ac_config_headers"; then |
|
33102 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
|
33103 |
fi |
|
33104 |
||
33105 |
if test -n "$ac_config_links"; then |
|
33106 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
|
33107 |
fi |
|
33108 |
||
33109 |
if test -n "$ac_config_commands"; then |
|
33110 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
|
33111 |
fi |
|
33112 |
||
33113 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
33114 |
||
33115 |
ac_cs_usage="\ |
|
33116 |
\`$as_me' instantiates files from templates according to the |
|
33117 |
current configuration. |
|
33118 |
||
33119 |
Usage: $0 [OPTIONS] [FILE]... |
|
33120 |
||
33121 |
-h, --help print this help, then exit |
|
33122 |
-V, --version print version number, then exit |
|
33123 |
-q, --quiet do not print progress messages |
|
33124 |
-d, --debug don't remove temporary files |
|
33125 |
--recheck update $as_me by reconfiguring in the same conditions |
|
33126 |
--file=FILE[:TEMPLATE] |
|
33127 |
instantiate the configuration file FILE |
|
33128 |
--header=FILE[:TEMPLATE] |
|
33129 |
instantiate the configuration header FILE |
|
33130 |
||
33131 |
Configuration files: |
|
33132 |
$config_files |
|
33133 |
||
33134 |
Configuration headers: |
|
33135 |
$config_headers |
|
33136 |
||
33137 |
Configuration commands: |
|
33138 |
$config_commands |
|
33139 |
||
33140 |
Report bugs to <bug-autoconf@gnu.org>." |
|
33141 |
_ACEOF |
|
33142 |
||
33143 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
33144 |
ac_cs_version="\\ |
|
33145 |
config.status |
|
33146 |
configured by $0, generated by GNU Autoconf 2.59, |
|
33147 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
|
33148 |
||
33149 |
Copyright (C) 2003 Free Software Foundation, Inc. |
|
33150 |
This config.status script is free software; the Free Software Foundation |
|
33151 |
gives unlimited permission to copy, distribute and modify it." |
|
33152 |
srcdir=$srcdir |
|
33153 |
INSTALL="$INSTALL" |
|
33154 |
_ACEOF |
|
33155 |
||
33156 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
33157 |
# If no file are specified by the user, then we need to provide default |
|
33158 |
# value. By we need to know if files were specified by the user. |
|
33159 |
ac_need_defaults=: |
|
33160 |
while test $# != 0 |
|
33161 |
do |
|
33162 |
case $1 in |
|
33163 |
--*=*) |
|
33164 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
|
33165 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
|
33166 |
ac_shift=: |
|
33167 |
;; |
|
33168 |
-*) |
|
33169 |
ac_option=$1 |
|
33170 |
ac_optarg=$2 |
|
33171 |
ac_shift=shift |
|
33172 |
;; |
|
33173 |
*) # This is not an option, so the user has probably given explicit |
|
33174 |
# arguments. |
|
33175 |
ac_option=$1 |
|
33176 |
ac_need_defaults=false;; |
|
33177 |
esac |
|
33178 |
||
33179 |
case $ac_option in |
|
33180 |
# Handling of the options. |
|
33181 |
_ACEOF |
|
33182 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
33183 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
33184 |
ac_cs_recheck=: ;; |
|
33185 |
--version | --vers* | -V ) |
|
33186 |
echo "$ac_cs_version"; exit 0 ;; |
|
33187 |
--he | --h) |
|
33188 |
# Conflict between --help and --header |
|
33189 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
|
33190 |
Try \`$0 --help' for more information." >&5 |
|
33191 |
echo "$as_me: error: ambiguous option: $1 |
|
33192 |
Try \`$0 --help' for more information." >&2;} |
|
33193 |
{ (exit 1); exit 1; }; };; |
|
33194 |
--help | --hel | -h ) |
|
33195 |
echo "$ac_cs_usage"; exit 0 ;; |
|
33196 |
--debug | --d* | -d ) |
|
33197 |
debug=: ;; |
|
33198 |
--file | --fil | --fi | --f ) |
|
33199 |
$ac_shift |
|
33200 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
33201 |
ac_need_defaults=false;; |
|
33202 |
--header | --heade | --head | --hea ) |
|
33203 |
$ac_shift |
|
33204 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
33205 |
ac_need_defaults=false;; |
|
33206 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
33207 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
33208 |
ac_cs_silent=: ;; |
|
33209 |
||
33210 |
# This is an error. |
|
33211 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
|
33212 |
Try \`$0 --help' for more information." >&5 |
|
33213 |
echo "$as_me: error: unrecognized option: $1 |
|
33214 |
Try \`$0 --help' for more information." >&2;} |
|
33215 |
{ (exit 1); exit 1; }; } ;; |
|
33216 |
||
33217 |
*) ac_config_targets="$ac_config_targets $1" ;; |
|
33218 |
||
33219 |
esac |
|
33220 |
shift |
|
33221 |
done |
|
33222 |
||
33223 |
ac_configure_extra_args= |
|
33224 |
||
33225 |
if $ac_cs_silent; then |
|
33226 |
exec 6>/dev/null |
|
33227 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
33228 |
fi |
|
33229 |
||
33230 |
_ACEOF |
|
33231 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
33232 |
if \$ac_cs_recheck; then |
|
33233 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
33234 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
33235 |
fi |
|
33236 |
||
33237 |
_ACEOF |
|
33238 |
||
33239 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
33240 |
# |
|
33241 |
# INIT-COMMANDS section. |
|
33242 |
# |
|
33243 |
||
33244 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
|
33245 |
||
33246 |
_ACEOF |
|
33247 |
||
33248 |
||
33249 |
||
33250 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
33251 |
for ac_config_target in $ac_config_targets |
|
33252 |
do |
|
33253 |
case "$ac_config_target" in |
|
33254 |
# Handling of arguments. |
|
33255 |
"libkipi/libkipi.pc" ) CONFIG_FILES="$CONFIG_FILES libkipi/libkipi.pc" ;; |
|
33256 |
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
|
33257 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
33258 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
33259 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
33260 |
{ (exit 1); exit 1; }; };; |
|
33261 |
esac |
|
33262 |
done |
|
33263 |
||
33264 |
# If the user did not use the arguments to specify the items to instantiate, |
|
33265 |
# then the envvar interface is used. Set only those that are not. |
|
33266 |
# We use the long form for the default assignment because of an extremely |
|
33267 |
# bizarre bug on SunOS 4.1.3. |
|
33268 |
if $ac_need_defaults; then |
|
33269 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
33270 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
33271 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
33272 |
fi |
|
33273 |
||
33274 |
# Have a temporary directory for convenience. Make it in the build tree |
|
33275 |
# simply because there is no reason to put it here, and in addition, |
|
33276 |
# creating and moving files from /tmp can sometimes cause problems. |
|
33277 |
# Create a temporary directory, and hook for its removal unless debugging. |
|
33278 |
$debug || |
|
33279 |
{ |
|
33280 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
|
33281 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
33282 |
} |
|
33283 |
||
33284 |
# Create a (secure) tmp directory for tmp files. |
|
33285 |
||
33286 |
{ |
|
33287 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
|
33288 |
test -n "$tmp" && test -d "$tmp" |
|
33289 |
} || |
|
33290 |
{ |
|
33291 |
tmp=./confstat$$-$RANDOM |
|
33292 |
(umask 077 && mkdir $tmp) |
|
33293 |
} || |
|
33294 |
{ |
|
33295 |
echo "$me: cannot create a temporary directory in ." >&2 |
|
33296 |
{ (exit 1); exit 1; } |
|
33297 |
} |
|
33298 |
||
33299 |
_ACEOF |
|
33300 |
||
33301 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
33302 |
||
33303 |
# |
|
33304 |
# CONFIG_FILES section. |
|
33305 |
# |
|
33306 |
||
33307 |
# No need to generate the scripts if there are no CONFIG_FILES. |
|
33308 |
# This happens for instance when ./config.status config.h |
|
33309 |
if test -n "\$CONFIG_FILES"; then |
|
33310 |
# Protect against being on the right side of a sed subst in config.status. |
|
33311 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
|
33312 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
|
33313 |
s,@SHELL@,$SHELL,;t t |
|
33314 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
|
33315 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
|
33316 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
|
33317 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
|
33318 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
|
33319 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
|
33320 |
s,@exec_prefix@,$exec_prefix,;t t |
|
33321 |
s,@prefix@,$prefix,;t t |
|
33322 |
s,@program_transform_name@,$program_transform_name,;t t |
|
33323 |
s,@bindir@,$bindir,;t t |
|
33324 |
s,@sbindir@,$sbindir,;t t |
|
33325 |
s,@libexecdir@,$libexecdir,;t t |
|
33326 |
s,@datadir@,$datadir,;t t |
|
33327 |
s,@sysconfdir@,$sysconfdir,;t t |
|
33328 |
s,@sharedstatedir@,$sharedstatedir,;t t |
|
33329 |
s,@localstatedir@,$localstatedir,;t t |
|
33330 |
s,@libdir@,$libdir,;t t |
|
33331 |
s,@includedir@,$includedir,;t t |
|
33332 |
s,@oldincludedir@,$oldincludedir,;t t |
|
33333 |
s,@infodir@,$infodir,;t t |
|
33334 |
s,@mandir@,$mandir,;t t |
|
33335 |
s,@build_alias@,$build_alias,;t t |
|
33336 |
s,@host_alias@,$host_alias,;t t |
|
33337 |
s,@target_alias@,$target_alias,;t t |
|
33338 |
s,@DEFS@,$DEFS,;t t |
|
33339 |
s,@ECHO_C@,$ECHO_C,;t t |
|
33340 |
s,@ECHO_N@,$ECHO_N,;t t |
|
33341 |
s,@ECHO_T@,$ECHO_T,;t t |
|
33342 |
s,@LIBS@,$LIBS,;t t |
|
33343 |
s,@build@,$build,;t t |
|
33344 |
s,@build_cpu@,$build_cpu,;t t |
|
33345 |
s,@build_vendor@,$build_vendor,;t t |
|
33346 |
s,@build_os@,$build_os,;t t |
|
33347 |
s,@host@,$host,;t t |
|
33348 |
s,@host_cpu@,$host_cpu,;t t |
|
33349 |
s,@host_vendor@,$host_vendor,;t t |
|
33350 |
s,@host_os@,$host_os,;t t |
|
33351 |
s,@target@,$target,;t t |
|
33352 |
s,@target_cpu@,$target_cpu,;t t |
|
33353 |
s,@target_vendor@,$target_vendor,;t t |
|
33354 |
s,@target_os@,$target_os,;t t |
|
33355 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
|
33356 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
|
33357 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
|
33358 |
s,@CYGPATH_W@,$CYGPATH_W,;t t |
|
33359 |
s,@PACKAGE@,$PACKAGE,;t t |
|
33360 |
s,@VERSION@,$VERSION,;t t |
|
33361 |
s,@ACLOCAL@,$ACLOCAL,;t t |
|
33362 |
s,@AUTOCONF@,$AUTOCONF,;t t |
|
33363 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
|
33364 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
|
33365 |
s,@MAKEINFO@,$MAKEINFO,;t t |
|
33366 |
s,@install_sh@,$install_sh,;t t |
|
33367 |
s,@STRIP@,$STRIP,;t t |
|
33368 |
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
33369 |
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
33370 |
s,@mkdir_p@,$mkdir_p,;t t |
1
by Achim Bohnet
Import upstream version 0.1.1 |
33371 |
s,@AWK@,$AWK,;t t |
33372 |
s,@SET_MAKE@,$SET_MAKE,;t t |
|
33373 |
s,@am__leading_dot@,$am__leading_dot,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
33374 |
s,@AMTAR@,$AMTAR,;t t |
33375 |
s,@am__tar@,$am__tar,;t t |
|
33376 |
s,@am__untar@,$am__untar,;t t |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
33377 |
s,@KDECONFIG@,$KDECONFIG,;t t |
33378 |
s,@kde_libs_prefix@,$kde_libs_prefix,;t t |
|
33379 |
s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t |
|
33380 |
s,@CONF_FILES@,$CONF_FILES,;t t |
|
33381 |
s,@CC@,$CC,;t t |
|
33382 |
s,@CFLAGS@,$CFLAGS,;t t |
|
33383 |
s,@LDFLAGS@,$LDFLAGS,;t t |
|
33384 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
|
33385 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
|
33386 |
s,@EXEEXT@,$EXEEXT,;t t |
|
33387 |
s,@OBJEXT@,$OBJEXT,;t t |
|
33388 |
s,@DEPDIR@,$DEPDIR,;t t |
|
33389 |
s,@am__include@,$am__include,;t t |
|
33390 |
s,@am__quote@,$am__quote,;t t |
|
33391 |
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
|
33392 |
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
|
33393 |
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
|
33394 |
s,@CCDEPMODE@,$CCDEPMODE,;t t |
|
33395 |
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
|
33396 |
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
|
33397 |
s,@CPP@,$CPP,;t t |
|
33398 |
s,@CXX@,$CXX,;t t |
|
33399 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
|
33400 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
|
33401 |
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
|
33402 |
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
|
33403 |
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
|
33404 |
s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t |
|
33405 |
s,@HAVE_GCC_VISIBILITY@,$HAVE_GCC_VISIBILITY,;t t |
|
33406 |
s,@unsermake_enable_pch_TRUE@,$unsermake_enable_pch_TRUE,;t t |
|
33407 |
s,@unsermake_enable_pch_FALSE@,$unsermake_enable_pch_FALSE,;t t |
|
33408 |
s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t |
|
33409 |
s,@USE_RTTI@,$USE_RTTI,;t t |
|
33410 |
s,@CXXCPP@,$CXXCPP,;t t |
|
33411 |
s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t |
|
33412 |
s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t |
|
33413 |
s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t |
|
33414 |
s,@LDFLAGS_AS_NEEDED@,$LDFLAGS_AS_NEEDED,;t t |
|
33415 |
s,@LDFLAGS_NEW_DTAGS@,$LDFLAGS_NEW_DTAGS,;t t |
|
33416 |
s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t |
|
33417 |
s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t |
|
33418 |
s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t |
|
33419 |
s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t |
|
33420 |
s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t |
|
33421 |
s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t |
|
33422 |
s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t |
|
33423 |
s,@EGREP@,$EGREP,;t t |
|
33424 |
s,@LN_S@,$LN_S,;t t |
|
33425 |
s,@ECHO@,$ECHO,;t t |
|
33426 |
s,@AR@,$AR,;t t |
|
33427 |
s,@ac_ct_AR@,$ac_ct_AR,;t t |
|
33428 |
s,@RANLIB@,$RANLIB,;t t |
|
33429 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
33430 |
s,@F77@,$F77,;t t |
|
33431 |
s,@FFLAGS@,$FFLAGS,;t t |
|
33432 |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
|
33433 |
s,@LIBTOOL@,$LIBTOOL,;t t |
|
33434 |
s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
33435 |
s,@KDE_CHECK_PLUGIN@,$KDE_CHECK_PLUGIN,;t t |
1
by Achim Bohnet
Import upstream version 0.1.1 |
33436 |
s,@MSGFMT@,$MSGFMT,;t t |
33437 |
s,@GMSGFMT@,$GMSGFMT,;t t |
|
33438 |
s,@XGETTEXT@,$XGETTEXT,;t t |
|
33439 |
s,@LIBUTIL@,$LIBUTIL,;t t |
|
33440 |
s,@LIBCOMPAT@,$LIBCOMPAT,;t t |
|
33441 |
s,@LIBCRYPT@,$LIBCRYPT,;t t |
|
33442 |
s,@LIBRESOLV@,$LIBRESOLV,;t t |
|
33443 |
s,@LIB_POLL@,$LIB_POLL,;t t |
|
33444 |
s,@FRAMEWORK_COREAUDIO@,$FRAMEWORK_COREAUDIO,;t t |
|
33445 |
s,@LIBSOCKET@,$LIBSOCKET,;t t |
|
33446 |
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
|
33447 |
s,@LIBUCB@,$LIBUCB,;t t |
|
33448 |
s,@LIBDL@,$LIBDL,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
33449 |
s,@KDE_USE_FPIE@,$KDE_USE_FPIE,;t t |
33450 |
s,@KDE_USE_PIE@,$KDE_USE_PIE,;t t |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
33451 |
s,@include_x11_TRUE@,$include_x11_TRUE,;t t |
33452 |
s,@include_x11_FALSE@,$include_x11_FALSE,;t t |
|
33453 |
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
|
33454 |
s,@LIB_X11@,$LIB_X11,;t t |
|
33455 |
s,@LIB_XRENDER@,$LIB_XRENDER,;t t |
|
33456 |
s,@LIBSM@,$LIBSM,;t t |
|
33457 |
s,@X_INCLUDES@,$X_INCLUDES,;t t |
|
33458 |
s,@X_LDFLAGS@,$X_LDFLAGS,;t t |
|
33459 |
s,@x_includes@,$x_includes,;t t |
|
33460 |
s,@x_libraries@,$x_libraries,;t t |
|
33461 |
s,@QTE_NORTTI@,$QTE_NORTTI,;t t |
|
33462 |
s,@LIB_XEXT@,$LIB_XEXT,;t t |
|
33463 |
s,@LIBPTHREAD@,$LIBPTHREAD,;t t |
|
33464 |
s,@USE_THREADS@,$USE_THREADS,;t t |
|
33465 |
s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t |
|
33466 |
s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t |
|
33467 |
s,@USER_INCLUDES@,$USER_INCLUDES,;t t |
|
33468 |
s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t |
|
33469 |
s,@LIBZ@,$LIBZ,;t t |
|
33470 |
s,@LIBPNG@,$LIBPNG,;t t |
|
33471 |
s,@LIBJPEG@,$LIBJPEG,;t t |
|
33472 |
s,@qt_libraries@,$qt_libraries,;t t |
|
33473 |
s,@qt_includes@,$qt_includes,;t t |
|
33474 |
s,@QT_INCLUDES@,$QT_INCLUDES,;t t |
|
33475 |
s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t |
|
33476 |
s,@PERL@,$PERL,;t t |
|
33477 |
s,@MOC@,$MOC,;t t |
|
33478 |
s,@UIC@,$UIC,;t t |
|
33479 |
s,@UIC_TR@,$UIC_TR,;t t |
|
33480 |
s,@LIB_QT@,$LIB_QT,;t t |
|
33481 |
s,@LIB_QPE@,$LIB_QPE,;t t |
|
33482 |
s,@kde_qtver@,$kde_qtver,;t t |
|
33483 |
s,@KDE_EXTRA_RPATH@,$KDE_EXTRA_RPATH,;t t |
|
33484 |
s,@KDE_RPATH@,$KDE_RPATH,;t t |
|
33485 |
s,@X_RPATH@,$X_RPATH,;t t |
|
33486 |
s,@kde_libraries@,$kde_libraries,;t t |
|
33487 |
s,@kde_includes@,$kde_includes,;t t |
|
33488 |
s,@KDE_LDFLAGS@,$KDE_LDFLAGS,;t t |
|
33489 |
s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t |
|
33490 |
s,@all_includes@,$all_includes,;t t |
|
33491 |
s,@all_libraries@,$all_libraries,;t t |
|
33492 |
s,@AUTODIRS@,$AUTODIRS,;t t |
|
33493 |
s,@include_ARTS_TRUE@,$include_ARTS_TRUE,;t t |
|
33494 |
s,@include_ARTS_FALSE@,$include_ARTS_FALSE,;t t |
|
33495 |
s,@MAKEKDEWIDGETS@,$MAKEKDEWIDGETS,;t t |
|
33496 |
s,@KCONFIG_COMPILER@,$KCONFIG_COMPILER,;t t |
|
33497 |
s,@KCFG_DEPENDENCIES@,$KCFG_DEPENDENCIES,;t t |
|
33498 |
s,@DCOPIDLNG@,$DCOPIDLNG,;t t |
|
33499 |
s,@DCOPIDL@,$DCOPIDL,;t t |
|
33500 |
s,@DCOPIDL2CPP@,$DCOPIDL2CPP,;t t |
|
33501 |
s,@DCOP_DEPENDENCIES@,$DCOP_DEPENDENCIES,;t t |
|
33502 |
s,@MCOPIDL@,$MCOPIDL,;t t |
|
33503 |
s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
|
33504 |
s,@MEINPROC@,$MEINPROC,;t t |
|
33505 |
s,@KDE_XSL_STYLESHEET@,$KDE_XSL_STYLESHEET,;t t |
|
33506 |
s,@XMLLINT@,$XMLLINT,;t t |
|
33507 |
s,@kde_htmldir@,$kde_htmldir,;t t |
|
33508 |
s,@kde_appsdir@,$kde_appsdir,;t t |
|
33509 |
s,@kde_icondir@,$kde_icondir,;t t |
|
33510 |
s,@kde_sounddir@,$kde_sounddir,;t t |
|
33511 |
s,@kde_datadir@,$kde_datadir,;t t |
|
33512 |
s,@kde_locale@,$kde_locale,;t t |
|
33513 |
s,@kde_confdir@,$kde_confdir,;t t |
|
33514 |
s,@kde_kcfgdir@,$kde_kcfgdir,;t t |
|
33515 |
s,@kde_mimedir@,$kde_mimedir,;t t |
|
33516 |
s,@kde_wallpaperdir@,$kde_wallpaperdir,;t t |
|
33517 |
s,@kde_bindir@,$kde_bindir,;t t |
|
33518 |
s,@xdg_appsdir@,$xdg_appsdir,;t t |
|
33519 |
s,@xdg_menudir@,$xdg_menudir,;t t |
|
33520 |
s,@xdg_directorydir@,$xdg_directorydir,;t t |
|
33521 |
s,@kde_templatesdir@,$kde_templatesdir,;t t |
|
33522 |
s,@kde_servicesdir@,$kde_servicesdir,;t t |
|
33523 |
s,@kde_servicetypesdir@,$kde_servicetypesdir,;t t |
|
33524 |
s,@kde_moduledir@,$kde_moduledir,;t t |
|
33525 |
s,@kdeinitdir@,$kdeinitdir,;t t |
|
33526 |
s,@kde_styledir@,$kde_styledir,;t t |
|
33527 |
s,@kde_widgetdir@,$kde_widgetdir,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
33528 |
s,@LIB_KDED@,$LIB_KDED,;t t |
1
by Achim Bohnet
Import upstream version 0.1.1 |
33529 |
s,@LIB_KDECORE@,$LIB_KDECORE,;t t |
33530 |
s,@LIB_KDEUI@,$LIB_KDEUI,;t t |
|
33531 |
s,@LIB_KIO@,$LIB_KIO,;t t |
|
33532 |
s,@LIB_KJS@,$LIB_KJS,;t t |
|
33533 |
s,@LIB_SMB@,$LIB_SMB,;t t |
|
33534 |
s,@LIB_KAB@,$LIB_KAB,;t t |
|
33535 |
s,@LIB_KABC@,$LIB_KABC,;t t |
|
33536 |
s,@LIB_KHTML@,$LIB_KHTML,;t t |
|
33537 |
s,@LIB_KSPELL@,$LIB_KSPELL,;t t |
|
33538 |
s,@LIB_KPARTS@,$LIB_KPARTS,;t t |
|
33539 |
s,@LIB_KDEPRINT@,$LIB_KDEPRINT,;t t |
|
33540 |
s,@LIB_KUTILS@,$LIB_KUTILS,;t t |
|
33541 |
s,@LIB_KDEPIM@,$LIB_KDEPIM,;t t |
|
33542 |
s,@LIB_KIMPROXY@,$LIB_KIMPROXY,;t t |
|
33543 |
s,@LIB_KNEWSTUFF@,$LIB_KNEWSTUFF,;t t |
|
33544 |
s,@LIB_KDNSSD@,$LIB_KDNSSD,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
33545 |
s,@LIB_KUNITTEST@,$LIB_KUNITTEST,;t t |
1
by Achim Bohnet
Import upstream version 0.1.1 |
33546 |
s,@LIB_KSYCOCA@,$LIB_KSYCOCA,;t t |
33547 |
s,@LIB_KFILE@,$LIB_KFILE,;t t |
|
33548 |
s,@LIB_KFM@,$LIB_KFM,;t t |
|
33549 |
s,@QTDOCDIR@,$QTDOCDIR,;t t |
|
33550 |
s,@KDE_HAVE_DOT@,$KDE_HAVE_DOT,;t t |
|
33551 |
s,@DOXYGEN@,$DOXYGEN,;t t |
|
33552 |
s,@DOXYGEN_PROJECT_NAME@,$DOXYGEN_PROJECT_NAME,;t t |
|
33553 |
s,@DOXYGEN_PROJECT_NUMBER@,$DOXYGEN_PROJECT_NUMBER,;t t |
|
33554 |
s,@KDE_HAS_DOXYGEN@,$KDE_HAS_DOXYGEN,;t t |
|
33555 |
s,@LIBOBJS@,$LIBOBJS,;t t |
|
33556 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
|
33557 |
CEOF |
|
33558 |
||
33559 |
_ACEOF |
|
33560 |
||
33561 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
33562 |
# Split the substitutions into bite-sized pieces for seds with |
|
33563 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
|
33564 |
ac_max_sed_lines=48 |
|
33565 |
ac_sed_frag=1 # Number of current file. |
|
33566 |
ac_beg=1 # First line for current file. |
|
33567 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
|
33568 |
ac_more_lines=: |
|
33569 |
ac_sed_cmds= |
|
33570 |
while $ac_more_lines; do |
|
33571 |
if test $ac_beg -gt 1; then |
|
33572 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
|
33573 |
else |
|
33574 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
|
33575 |
fi |
|
33576 |
if test ! -s $tmp/subs.frag; then |
|
33577 |
ac_more_lines=false |
|
33578 |
else |
|
33579 |
# The purpose of the label and of the branching condition is to |
|
33580 |
# speed up the sed processing (if there are no `@' at all, there |
|
33581 |
# is no need to browse any of the substitutions). |
|
33582 |
# These are the two extra sed commands mentioned above. |
|
33583 |
(echo ':t |
|
33584 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
|
33585 |
if test -z "$ac_sed_cmds"; then |
|
33586 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
|
33587 |
else |
|
33588 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
|
33589 |
fi |
|
33590 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
|
33591 |
ac_beg=$ac_end |
|
33592 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
|
33593 |
fi |
|
33594 |
done |
|
33595 |
if test -z "$ac_sed_cmds"; then |
|
33596 |
ac_sed_cmds=cat |
|
33597 |
fi |
|
33598 |
fi # test -n "$CONFIG_FILES" |
|
33599 |
||
33600 |
_ACEOF |
|
33601 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
33602 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
|
33603 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
33604 |
case $ac_file in |
|
33605 |
- | *:- | *:-:* ) # input from stdin |
|
33606 |
cat >$tmp/stdin |
|
33607 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
33608 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
33609 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
33610 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
33611 |
* ) ac_file_in=$ac_file.in ;; |
|
33612 |
esac |
|
33613 |
||
33614 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
|
33615 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
33616 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
33617 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
33618 |
X"$ac_file" : 'X\(//\)$' \| \ |
|
33619 |
X"$ac_file" : 'X\(/\)' \| \ |
|
33620 |
. : '\(.\)' 2>/dev/null || |
|
33621 |
echo X"$ac_file" | |
|
33622 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
33623 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
33624 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
33625 |
/^X\(\/\).*/{ s//\1/; q; } |
|
33626 |
s/.*/./; q'` |
|
33627 |
{ if $as_mkdir_p; then |
|
33628 |
mkdir -p "$ac_dir" |
|
33629 |
else |
|
33630 |
as_dir="$ac_dir" |
|
33631 |
as_dirs= |
|
33632 |
while test ! -d "$as_dir"; do |
|
33633 |
as_dirs="$as_dir $as_dirs" |
|
33634 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
33635 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
33636 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
33637 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
33638 |
X"$as_dir" : 'X\(/\)' \| \ |
|
33639 |
. : '\(.\)' 2>/dev/null || |
|
33640 |
echo X"$as_dir" | |
|
33641 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
33642 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
33643 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
33644 |
/^X\(\/\).*/{ s//\1/; q; } |
|
33645 |
s/.*/./; q'` |
|
33646 |
done |
|
33647 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
33648 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
33649 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
33650 |
{ (exit 1); exit 1; }; }; } |
|
33651 |
||
33652 |
ac_builddir=. |
|
33653 |
||
33654 |
if test "$ac_dir" != .; then |
|
33655 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
33656 |
# A "../" for each directory in $ac_dir_suffix. |
|
33657 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
33658 |
else |
|
33659 |
ac_dir_suffix= ac_top_builddir= |
|
33660 |
fi |
|
33661 |
||
33662 |
case $srcdir in |
|
33663 |
.) # No --srcdir option. We are building in place. |
|
33664 |
ac_srcdir=. |
|
33665 |
if test -z "$ac_top_builddir"; then |
|
33666 |
ac_top_srcdir=. |
|
33667 |
else |
|
33668 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
33669 |
fi ;; |
|
33670 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
33671 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
33672 |
ac_top_srcdir=$srcdir ;; |
|
33673 |
*) # Relative path. |
|
33674 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
33675 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
33676 |
esac |
|
33677 |
||
33678 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
|
33679 |
# the directories may not exist. |
|
33680 |
case `pwd` in |
|
33681 |
.) ac_abs_builddir="$ac_dir";; |
|
33682 |
*) |
|
33683 |
case "$ac_dir" in |
|
33684 |
.) ac_abs_builddir=`pwd`;; |
|
33685 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
33686 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
33687 |
esac;; |
|
33688 |
esac |
|
33689 |
case $ac_abs_builddir in |
|
33690 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
33691 |
*) |
|
33692 |
case ${ac_top_builddir}. in |
|
33693 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
33694 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
33695 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
33696 |
esac;; |
|
33697 |
esac |
|
33698 |
case $ac_abs_builddir in |
|
33699 |
.) ac_abs_srcdir=$ac_srcdir;; |
|
33700 |
*) |
|
33701 |
case $ac_srcdir in |
|
33702 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
33703 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
33704 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
33705 |
esac;; |
|
33706 |
esac |
|
33707 |
case $ac_abs_builddir in |
|
33708 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
33709 |
*) |
|
33710 |
case $ac_top_srcdir in |
|
33711 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
33712 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
33713 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
33714 |
esac;; |
|
33715 |
esac |
|
33716 |
||
33717 |
||
33718 |
case $INSTALL in |
|
33719 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|
33720 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
|
33721 |
esac |
|
33722 |
||
33723 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
33724 |
# use $as_me), people would be surprised to read: |
|
33725 |
# /* config.h. Generated by config.status. */ |
|
33726 |
if test x"$ac_file" = x-; then |
|
33727 |
configure_input= |
|
33728 |
else |
|
33729 |
configure_input="$ac_file. " |
|
33730 |
fi |
|
33731 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
|
33732 |
sed 's,.*/,,'` by configure." |
|
33733 |
||
33734 |
# First look for the input files in the build tree, otherwise in the |
|
33735 |
# src tree. |
|
33736 |
ac_file_inputs=`IFS=: |
|
33737 |
for f in $ac_file_in; do |
|
33738 |
case $f in |
|
33739 |
-) echo $tmp/stdin ;; |
|
33740 |
[\\/$]*) |
|
33741 |
# Absolute (can't be DOS-style, as IFS=:) |
|
33742 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
33743 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
33744 |
{ (exit 1); exit 1; }; } |
|
33745 |
echo "$f";; |
|
33746 |
*) # Relative |
|
33747 |
if test -f "$f"; then |
|
33748 |
# Build tree |
|
33749 |
echo "$f" |
|
33750 |
elif test -f "$srcdir/$f"; then |
|
33751 |
# Source tree |
|
33752 |
echo "$srcdir/$f" |
|
33753 |
else |
|
33754 |
# /dev/null tree |
|
33755 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
33756 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
33757 |
{ (exit 1); exit 1; }; } |
|
33758 |
fi;; |
|
33759 |
esac |
|
33760 |
done` || { (exit 1); exit 1; } |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
33761 |
|
33762 |
if test x"$ac_file" != x-; then |
|
33763 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
33764 |
echo "$as_me: creating $ac_file" >&6;} |
|
33765 |
rm -f "$ac_file" |
|
33766 |
fi |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
33767 |
_ACEOF |
33768 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
33769 |
sed "$ac_vpsub |
|
33770 |
$extrasub |
|
33771 |
_ACEOF |
|
33772 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
33773 |
:t |
|
33774 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
33775 |
s,@configure_input@,$configure_input,;t t |
|
33776 |
s,@srcdir@,$ac_srcdir,;t t |
|
33777 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
|
33778 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
|
33779 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
|
33780 |
s,@builddir@,$ac_builddir,;t t |
|
33781 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
|
33782 |
s,@top_builddir@,$ac_top_builddir,;t t |
|
33783 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
|
33784 |
s,@INSTALL@,$ac_INSTALL,;t t |
|
33785 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
|
33786 |
rm -f $tmp/stdin |
|
33787 |
if test x"$ac_file" != x-; then |
|
33788 |
mv $tmp/out $ac_file |
|
33789 |
else |
|
33790 |
cat $tmp/out |
|
33791 |
rm -f $tmp/out |
|
33792 |
fi |
|
33793 |
||
33794 |
done |
|
33795 |
_ACEOF |
|
33796 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
33797 |
||
33798 |
# |
|
33799 |
# CONFIG_HEADER section. |
|
33800 |
# |
|
33801 |
||
33802 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
|
33803 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
|
33804 |
# |
|
33805 |
# ac_d sets the value in "#define NAME VALUE" lines. |
|
33806 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
|
33807 |
ac_dB='[ ].*$,\1#\2' |
|
33808 |
ac_dC=' ' |
|
33809 |
ac_dD=',;t' |
|
33810 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
|
33811 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
33812 |
ac_uB='$,\1#\2define\3' |
|
33813 |
ac_uC=' ' |
|
33814 |
ac_uD=',;t' |
|
33815 |
||
33816 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
|
33817 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
33818 |
case $ac_file in |
|
33819 |
- | *:- | *:-:* ) # input from stdin |
|
33820 |
cat >$tmp/stdin |
|
33821 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
33822 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
33823 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
33824 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
33825 |
* ) ac_file_in=$ac_file.in ;; |
|
33826 |
esac |
|
33827 |
||
33828 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
33829 |
echo "$as_me: creating $ac_file" >&6;} |
|
33830 |
||
33831 |
# First look for the input files in the build tree, otherwise in the |
|
33832 |
# src tree. |
|
33833 |
ac_file_inputs=`IFS=: |
|
33834 |
for f in $ac_file_in; do |
|
33835 |
case $f in |
|
33836 |
-) echo $tmp/stdin ;; |
|
33837 |
[\\/$]*) |
|
33838 |
# Absolute (can't be DOS-style, as IFS=:) |
|
33839 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
33840 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
33841 |
{ (exit 1); exit 1; }; } |
|
33842 |
# Do quote $f, to prevent DOS paths from being IFS'd. |
|
33843 |
echo "$f";; |
|
33844 |
*) # Relative |
|
33845 |
if test -f "$f"; then |
|
33846 |
# Build tree |
|
33847 |
echo "$f" |
|
33848 |
elif test -f "$srcdir/$f"; then |
|
33849 |
# Source tree |
|
33850 |
echo "$srcdir/$f" |
|
33851 |
else |
|
33852 |
# /dev/null tree |
|
33853 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
33854 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
33855 |
{ (exit 1); exit 1; }; } |
|
33856 |
fi;; |
|
33857 |
esac |
|
33858 |
done` || { (exit 1); exit 1; } |
|
33859 |
# Remove the trailing spaces. |
|
33860 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
|
33861 |
||
33862 |
_ACEOF |
|
33863 |
||
33864 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
|
33865 |
# `conftest.undefs', that substitutes the proper values into |
|
33866 |
# config.h.in to produce config.h. The first handles `#define' |
|
33867 |
# templates, and the second `#undef' templates. |
|
33868 |
# And first: Protect against being on the right side of a sed subst in |
|
33869 |
# config.status. Protect against being in an unquoted here document |
|
33870 |
# in config.status. |
|
33871 |
rm -f conftest.defines conftest.undefs |
|
33872 |
# Using a here document instead of a string reduces the quoting nightmare. |
|
33873 |
# Putting comments in sed scripts is not portable. |
|
33874 |
# |
|
33875 |
# `end' is used to avoid that the second main sed command (meant for |
|
33876 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
|
33877 |
# See the Autoconf documentation for `clear'. |
|
33878 |
cat >confdef2sed.sed <<\_ACEOF |
|
33879 |
s/[\\&,]/\\&/g |
|
33880 |
s,[\\$`],\\&,g |
|
33881 |
t clear |
|
33882 |
: clear |
|
33883 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
|
33884 |
t end |
|
33885 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
|
33886 |
: end |
|
33887 |
_ACEOF |
|
33888 |
# If some macros were called several times there might be several times |
|
33889 |
# the same #defines, which is useless. Nevertheless, we may not want to |
|
33890 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
|
33891 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
|
33892 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
|
33893 |
rm -f confdef2sed.sed |
|
33894 |
||
33895 |
# This sed command replaces #undef with comments. This is necessary, for |
|
33896 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
|
33897 |
# on some systems where configure will not decide to define it. |
|
33898 |
cat >>conftest.undefs <<\_ACEOF |
|
33899 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
|
33900 |
_ACEOF |
|
33901 |
||
33902 |
# Break up conftest.defines because some shells have a limit on the size |
|
33903 |
# of here documents, and old seds have small limits too (100 cmds). |
|
33904 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
|
33905 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
|
33906 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
|
33907 |
echo ' :' >>$CONFIG_STATUS |
|
33908 |
rm -f conftest.tail |
|
33909 |
while grep . conftest.defines >/dev/null |
|
33910 |
do |
|
33911 |
# Write a limited-size here document to $tmp/defines.sed. |
|
33912 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
|
33913 |
# Speed up: don't consider the non `#define' lines. |
|
33914 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
|
33915 |
# Work around the forget-to-reset-the-flag bug. |
|
33916 |
echo 't clr' >>$CONFIG_STATUS |
|
33917 |
echo ': clr' >>$CONFIG_STATUS |
|
33918 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
|
33919 |
echo 'CEOF |
|
33920 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
|
33921 |
rm -f $tmp/in |
|
33922 |
mv $tmp/out $tmp/in |
|
33923 |
' >>$CONFIG_STATUS |
|
33924 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
|
33925 |
rm -f conftest.defines |
|
33926 |
mv conftest.tail conftest.defines |
|
33927 |
done |
|
33928 |
rm -f conftest.defines |
|
33929 |
echo ' fi # grep' >>$CONFIG_STATUS |
|
33930 |
echo >>$CONFIG_STATUS |
|
33931 |
||
33932 |
# Break up conftest.undefs because some shells have a limit on the size |
|
33933 |
# of here documents, and old seds have small limits too (100 cmds). |
|
33934 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
|
33935 |
rm -f conftest.tail |
|
33936 |
while grep . conftest.undefs >/dev/null |
|
33937 |
do |
|
33938 |
# Write a limited-size here document to $tmp/undefs.sed. |
|
33939 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
|
33940 |
# Speed up: don't consider the non `#undef' |
|
33941 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
|
33942 |
# Work around the forget-to-reset-the-flag bug. |
|
33943 |
echo 't clr' >>$CONFIG_STATUS |
|
33944 |
echo ': clr' >>$CONFIG_STATUS |
|
33945 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
|
33946 |
echo 'CEOF |
|
33947 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
|
33948 |
rm -f $tmp/in |
|
33949 |
mv $tmp/out $tmp/in |
|
33950 |
' >>$CONFIG_STATUS |
|
33951 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
|
33952 |
rm -f conftest.undefs |
|
33953 |
mv conftest.tail conftest.undefs |
|
33954 |
done |
|
33955 |
rm -f conftest.undefs |
|
33956 |
||
33957 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
33958 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
33959 |
# use $as_me), people would be surprised to read: |
|
33960 |
# /* config.h. Generated by config.status. */ |
|
33961 |
if test x"$ac_file" = x-; then |
|
33962 |
echo "/* Generated by configure. */" >$tmp/config.h |
|
33963 |
else |
|
33964 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
|
33965 |
fi |
|
33966 |
cat $tmp/in >>$tmp/config.h |
|
33967 |
rm -f $tmp/in |
|
33968 |
if test x"$ac_file" != x-; then |
|
33969 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
|
33970 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
|
33971 |
echo "$as_me: $ac_file is unchanged" >&6;} |
|
33972 |
else |
|
33973 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
33974 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
33975 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
33976 |
X"$ac_file" : 'X\(//\)$' \| \ |
|
33977 |
X"$ac_file" : 'X\(/\)' \| \ |
|
33978 |
. : '\(.\)' 2>/dev/null || |
|
33979 |
echo X"$ac_file" | |
|
33980 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
33981 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
33982 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
33983 |
/^X\(\/\).*/{ s//\1/; q; } |
|
33984 |
s/.*/./; q'` |
|
33985 |
{ if $as_mkdir_p; then |
|
33986 |
mkdir -p "$ac_dir" |
|
33987 |
else |
|
33988 |
as_dir="$ac_dir" |
|
33989 |
as_dirs= |
|
33990 |
while test ! -d "$as_dir"; do |
|
33991 |
as_dirs="$as_dir $as_dirs" |
|
33992 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
33993 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
33994 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
33995 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
33996 |
X"$as_dir" : 'X\(/\)' \| \ |
|
33997 |
. : '\(.\)' 2>/dev/null || |
|
33998 |
echo X"$as_dir" | |
|
33999 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
34000 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
34001 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
34002 |
/^X\(\/\).*/{ s//\1/; q; } |
|
34003 |
s/.*/./; q'` |
|
34004 |
done |
|
34005 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
34006 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
34007 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
34008 |
{ (exit 1); exit 1; }; }; } |
|
34009 |
||
34010 |
rm -f $ac_file |
|
34011 |
mv $tmp/config.h $ac_file |
|
34012 |
fi |
|
34013 |
else |
|
34014 |
cat $tmp/config.h |
|
34015 |
rm -f $tmp/config.h |
|
34016 |
fi |
|
34017 |
# Compute $ac_file's index in $config_headers. |
|
34018 |
_am_stamp_count=1 |
|
34019 |
for _am_header in $config_headers :; do |
|
34020 |
case $_am_header in |
|
34021 |
$ac_file | $ac_file:* ) |
|
34022 |
break ;; |
|
34023 |
* ) |
|
34024 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
34025 |
esac |
|
34026 |
done |
|
34027 |
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
|
34028 |
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
34029 |
X$ac_file : 'X\(//\)[^/]' \| \ |
|
34030 |
X$ac_file : 'X\(//\)$' \| \ |
|
34031 |
X$ac_file : 'X\(/\)' \| \ |
|
34032 |
. : '\(.\)' 2>/dev/null || |
|
34033 |
echo X$ac_file | |
|
34034 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
34035 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
34036 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
34037 |
/^X\(\/\).*/{ s//\1/; q; } |
|
34038 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
|
34039 |
done |
|
34040 |
_ACEOF |
|
34041 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
34042 |
||
34043 |
# |
|
34044 |
# CONFIG_COMMANDS section. |
|
34045 |
# |
|
34046 |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
|
34047 |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
|
34048 |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
34049 |
ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
|
34050 |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
34051 |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
|
34052 |
X"$ac_dest" : 'X\(//\)$' \| \ |
|
34053 |
X"$ac_dest" : 'X\(/\)' \| \ |
|
34054 |
. : '\(.\)' 2>/dev/null || |
|
34055 |
echo X"$ac_dest" | |
|
34056 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
34057 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
34058 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
34059 |
/^X\(\/\).*/{ s//\1/; q; } |
|
34060 |
s/.*/./; q'` |
|
34061 |
{ if $as_mkdir_p; then |
|
34062 |
mkdir -p "$ac_dir" |
|
34063 |
else |
|
34064 |
as_dir="$ac_dir" |
|
34065 |
as_dirs= |
|
34066 |
while test ! -d "$as_dir"; do |
|
34067 |
as_dirs="$as_dir $as_dirs" |
|
34068 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
34069 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
34070 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
34071 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
34072 |
X"$as_dir" : 'X\(/\)' \| \ |
|
34073 |
. : '\(.\)' 2>/dev/null || |
|
34074 |
echo X"$as_dir" | |
|
34075 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
34076 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
34077 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
34078 |
/^X\(\/\).*/{ s//\1/; q; } |
|
34079 |
s/.*/./; q'` |
|
34080 |
done |
|
34081 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
34082 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
34083 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
34084 |
{ (exit 1); exit 1; }; }; } |
|
34085 |
||
34086 |
ac_builddir=. |
|
34087 |
||
34088 |
if test "$ac_dir" != .; then |
|
34089 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
34090 |
# A "../" for each directory in $ac_dir_suffix. |
|
34091 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
34092 |
else |
|
34093 |
ac_dir_suffix= ac_top_builddir= |
|
34094 |
fi |
|
34095 |
||
34096 |
case $srcdir in |
|
34097 |
.) # No --srcdir option. We are building in place. |
|
34098 |
ac_srcdir=. |
|
34099 |
if test -z "$ac_top_builddir"; then |
|
34100 |
ac_top_srcdir=. |
|
34101 |
else |
|
34102 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
34103 |
fi ;; |
|
34104 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
34105 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
34106 |
ac_top_srcdir=$srcdir ;; |
|
34107 |
*) # Relative path. |
|
34108 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
34109 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
34110 |
esac |
|
34111 |
||
34112 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
|
34113 |
# the directories may not exist. |
|
34114 |
case `pwd` in |
|
34115 |
.) ac_abs_builddir="$ac_dir";; |
|
34116 |
*) |
|
34117 |
case "$ac_dir" in |
|
34118 |
.) ac_abs_builddir=`pwd`;; |
|
34119 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
34120 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
34121 |
esac;; |
|
34122 |
esac |
|
34123 |
case $ac_abs_builddir in |
|
34124 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
34125 |
*) |
|
34126 |
case ${ac_top_builddir}. in |
|
34127 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
34128 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
34129 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
34130 |
esac;; |
|
34131 |
esac |
|
34132 |
case $ac_abs_builddir in |
|
34133 |
.) ac_abs_srcdir=$ac_srcdir;; |
|
34134 |
*) |
|
34135 |
case $ac_srcdir in |
|
34136 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
34137 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
34138 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
34139 |
esac;; |
|
34140 |
esac |
|
34141 |
case $ac_abs_builddir in |
|
34142 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
34143 |
*) |
|
34144 |
case $ac_top_srcdir in |
|
34145 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
34146 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
34147 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
34148 |
esac;; |
|
34149 |
esac |
|
34150 |
||
34151 |
||
34152 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
|
34153 |
echo "$as_me: executing $ac_dest commands" >&6;} |
|
34154 |
case $ac_dest in |
|
34155 |
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
|
34156 |
# Strip MF so we end up with the name of the file. |
|
34157 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
34158 |
# Check whether this is an Automake generated Makefile or not. |
|
34159 |
# We used to match only the files named `Makefile.in', but |
|
34160 |
# some people rename them; so instead we look at the file content. |
|
34161 |
# Grep'ing the first line is not enough: some people post-process |
|
34162 |
# each Makefile.in and add a new line on top of each file to say so. |
|
34163 |
# So let's grep whole file. |
|
34164 |
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
|
34165 |
dirpart=`(dirname "$mf") 2>/dev/null || |
|
34166 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
34167 |
X"$mf" : 'X\(//\)[^/]' \| \ |
|
34168 |
X"$mf" : 'X\(//\)$' \| \ |
|
34169 |
X"$mf" : 'X\(/\)' \| \ |
|
34170 |
. : '\(.\)' 2>/dev/null || |
|
34171 |
echo X"$mf" | |
|
34172 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
34173 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
34174 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
34175 |
/^X\(\/\).*/{ s//\1/; q; } |
|
34176 |
s/.*/./; q'` |
|
34177 |
else |
|
34178 |
continue |
|
34179 |
fi |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34180 |
# Extract the definition of DEPDIR, am__include, and am__quote |
34181 |
# from the Makefile without running `make'. |
|
34182 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
34183 |
test -z "$DEPDIR" && continue |
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34184 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
34185 |
test -z "am__include" && continue |
|
34186 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
34187 |
# When using ansi2knr, U may be empty or an underscore; expand it |
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34188 |
U=`sed -n 's/^U = //p' < "$mf"` |
34189 |
# Find all dependency output files, they are included files with |
|
34190 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
|
34191 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
|
34192 |
# expansion. |
|
34193 |
for file in `sed -n " |
|
34194 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
34195 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
34196 |
# Make sure the directory exists. |
|
34197 |
test -f "$dirpart/$file" && continue |
|
34198 |
fdir=`(dirname "$file") 2>/dev/null || |
|
34199 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
34200 |
X"$file" : 'X\(//\)[^/]' \| \ |
|
34201 |
X"$file" : 'X\(//\)$' \| \ |
|
34202 |
X"$file" : 'X\(/\)' \| \ |
|
34203 |
. : '\(.\)' 2>/dev/null || |
|
34204 |
echo X"$file" | |
|
34205 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
34206 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
34207 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
34208 |
/^X\(\/\).*/{ s//\1/; q; } |
|
34209 |
s/.*/./; q'` |
|
34210 |
{ if $as_mkdir_p; then |
|
34211 |
mkdir -p $dirpart/$fdir |
|
34212 |
else |
|
34213 |
as_dir=$dirpart/$fdir |
|
34214 |
as_dirs= |
|
34215 |
while test ! -d "$as_dir"; do |
|
34216 |
as_dirs="$as_dir $as_dirs" |
|
34217 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
34218 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
34219 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
34220 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
34221 |
X"$as_dir" : 'X\(/\)' \| \ |
|
34222 |
. : '\(.\)' 2>/dev/null || |
|
34223 |
echo X"$as_dir" | |
|
34224 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
34225 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
34226 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
34227 |
/^X\(\/\).*/{ s//\1/; q; } |
|
34228 |
s/.*/./; q'` |
|
34229 |
done |
|
34230 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
34231 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
|
34232 |
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
|
34233 |
{ (exit 1); exit 1; }; }; } |
|
34234 |
||
34235 |
# echo "creating $dirpart/$file" |
|
34236 |
echo '# dummy' > "$dirpart/$file" |
|
34237 |
done |
|
34238 |
done |
|
34239 |
;; |
|
34240 |
esac |
|
34241 |
done |
|
34242 |
_ACEOF |
|
34243 |
||
34244 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
34245 |
||
34246 |
{ (exit 0); exit 0; } |
|
34247 |
_ACEOF |
|
34248 |
if test "x$with_fast_perl" = "xyes"; then |
|
34249 |
perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \ |
|
34250 |
|| mv $CONFIG_STATUS.bak $CONFIG_STATUS |
|
34251 |
rm -f $CONFIG_STATUS.bak |
|
34252 |
fi |
|
34253 |
chmod +x $CONFIG_STATUS |
|
34254 |
ac_clean_files=$ac_clean_files_save |
|
34255 |
||
34256 |
||
34257 |
# configure is writing to config.log, and then calls config.status. |
|
34258 |
# config.status does its own redirection, appending to config.log. |
|
34259 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
|
34260 |
# by configure, so config.status won't be able to write to it; its |
|
34261 |
# output is simply discarded. So we exec the FD to /dev/null, |
|
34262 |
# effectively closing config.log, so it can be properly (re)opened and |
|
34263 |
# appended to by config.status. When coming back to configure, we |
|
34264 |
# need to make the FD available again. |
|
34265 |
if test "$no_create" != yes; then |
|
34266 |
ac_cs_success=: |
|
34267 |
ac_config_status_args= |
|
34268 |
test "$silent" = yes && |
|
34269 |
ac_config_status_args="$ac_config_status_args --quiet" |
|
34270 |
exec 5>/dev/null |
|
34271 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
34272 |
exec 5>>config.log |
|
34273 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
34274 |
# would make configure fail if this is the last instruction. |
|
34275 |
$ac_cs_success || { (exit 1); exit 1; } |
|
34276 |
fi |
|
34277 |
||
34278 |
||
34279 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34280 |
|
34281 |
if test "x$GXX" = "xyes"; then |
|
34282 |
kde_have_gcc_visibility=no |
|
34283 |
||
34284 |
echo "$as_me:$LINENO: checking whether $CXX supports -fvisibility=hidden" >&5 |
|
34285 |
echo $ECHO_N "checking whether $CXX supports -fvisibility=hidden... $ECHO_C" >&6 |
|
34286 |
kde_cache=`echo fvisibility=hidden | sed 'y% .=/+-,%____p__%'` |
|
34287 |
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
|
34288 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
34289 |
else |
|
34290 |
||
34291 |
||
34292 |
||
34293 |
ac_ext=cc |
|
34294 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
34295 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
34296 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
34297 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
34298 |
||
34299 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
34300 |
||
34301 |
||
34302 |
save_CXXFLAGS="$CXXFLAGS" |
|
34303 |
CXXFLAGS="$CXXFLAGS -fvisibility=hidden" |
|
34304 |
cat >conftest.$ac_ext <<_ACEOF |
|
34305 |
/* confdefs.h. */ |
|
34306 |
_ACEOF |
|
34307 |
cat confdefs.h >>conftest.$ac_ext |
|
34308 |
cat >>conftest.$ac_ext <<_ACEOF |
|
34309 |
/* end confdefs.h. */ |
|
34310 |
||
34311 |
int |
|
34312 |
main () |
|
34313 |
{ |
|
34314 |
return 0; |
|
34315 |
; |
|
34316 |
return 0; |
|
34317 |
} |
|
34318 |
_ACEOF |
|
34319 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
34320 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
34321 |
(eval $ac_link) 2>conftest.er1 |
|
34322 |
ac_status=$? |
|
34323 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
34324 |
rm -f conftest.er1 |
|
34325 |
cat conftest.err >&5 |
|
34326 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34327 |
(exit $ac_status); } && |
|
34328 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
34329 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
34330 |
(eval $ac_try) 2>&5 |
|
34331 |
ac_status=$? |
|
34332 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34333 |
(exit $ac_status); }; } && |
|
34334 |
{ ac_try='test -s conftest$ac_exeext' |
|
34335 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
34336 |
(eval $ac_try) 2>&5 |
|
34337 |
ac_status=$? |
|
34338 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34339 |
(exit $ac_status); }; }; then |
|
34340 |
eval "kde_cv_prog_cxx_$kde_cache=yes" |
|
34341 |
else |
|
34342 |
echo "$as_me: failed program was:" >&5 |
|
34343 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
34344 |
||
34345 |
fi |
|
34346 |
rm -f conftest.err conftest.$ac_objext \ |
|
34347 |
conftest$ac_exeext conftest.$ac_ext |
|
34348 |
CXXFLAGS="$save_CXXFLAGS" |
|
34349 |
ac_ext=c |
|
34350 |
ac_cpp='$CPP $CPPFLAGS' |
|
34351 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
34352 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
34353 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
34354 |
||
34355 |
||
34356 |
fi |
|
34357 |
||
34358 |
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
|
34359 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
34360 |
echo "${ECHO_T}yes" >&6 |
|
34361 |
: |
|
34362 |
||
34363 |
kde_have_gcc_visibility=yes |
|
34364 |
echo "$as_me:$LINENO: checking if Qt is patched for -fvisibility" >&5 |
|
34365 |
echo $ECHO_N "checking if Qt is patched for -fvisibility... $ECHO_C" >&6 |
|
34366 |
if test "${kde_cv_val_qt_gcc_visibility_patched+set}" = set; then |
|
34367 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
34368 |
else |
|
34369 |
||
34370 |
||
34371 |
||
34372 |
ac_ext=cc |
|
34373 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
34374 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
34375 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
34376 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
34377 |
||
34378 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
34379 |
||
34380 |
||
34381 |
||
34382 |
safe_CXXFLAGS=$CXXFLAGS |
|
34383 |
CXXFLAGS="$CXXFLAGS $all_includes" |
|
34384 |
||
34385 |
cat >conftest.$ac_ext <<_ACEOF |
|
34386 |
/* confdefs.h. */ |
|
34387 |
_ACEOF |
|
34388 |
cat confdefs.h >>conftest.$ac_ext |
|
34389 |
cat >>conftest.$ac_ext <<_ACEOF |
|
34390 |
/* end confdefs.h. */ |
|
34391 |
||
34392 |
#include <qglobal.h> |
|
34393 |
#if Q_EXPORT - 0 != 0 |
|
34394 |
/* if this compiles, then Q_EXPORT is undefined */ |
|
34395 |
/* if Q_EXPORT is nonempty, this will break compilation */ |
|
34396 |
#endif |
|
34397 |
||
34398 |
int |
|
34399 |
main () |
|
34400 |
{ |
|
34401 |
/* elvis is alive */ |
|
34402 |
; |
|
34403 |
return 0; |
|
34404 |
} |
|
34405 |
_ACEOF |
|
34406 |
rm -f conftest.$ac_objext |
|
34407 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
34408 |
(eval $ac_compile) 2>conftest.er1 |
|
34409 |
ac_status=$? |
|
34410 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
34411 |
rm -f conftest.er1 |
|
34412 |
cat conftest.err >&5 |
|
34413 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34414 |
(exit $ac_status); } && |
|
34415 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
34416 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
34417 |
(eval $ac_try) 2>&5 |
|
34418 |
ac_status=$? |
|
34419 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34420 |
(exit $ac_status); }; } && |
|
34421 |
{ ac_try='test -s conftest.$ac_objext' |
|
34422 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
34423 |
(eval $ac_try) 2>&5 |
|
34424 |
ac_status=$? |
|
34425 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34426 |
(exit $ac_status); }; }; then |
|
34427 |
kde_cv_val_qt_gcc_visibility_patched=no |
|
34428 |
else |
|
34429 |
echo "$as_me: failed program was:" >&5 |
|
34430 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
34431 |
||
34432 |
kde_cv_val_qt_gcc_visibility_patched=yes |
|
34433 |
fi |
|
34434 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
34435 |
||
34436 |
CXXFLAGS=$safe_CXXFLAGS |
|
34437 |
ac_ext=c |
|
34438 |
ac_cpp='$CPP $CPPFLAGS' |
|
34439 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
34440 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
34441 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
34442 |
||
34443 |
||
34444 |
||
34445 |
fi |
|
34446 |
echo "$as_me:$LINENO: result: $kde_cv_val_qt_gcc_visibility_patched" >&5 |
|
34447 |
echo "${ECHO_T}$kde_cv_val_qt_gcc_visibility_patched" >&6 |
|
34448 |
||
34449 |
if test x$kde_cv_val_qt_gcc_visibility_patched = "xyes"; then |
|
34450 |
CXXFLAGS="$CXXFLAGS -fvisibility=hidden" |
|
34451 |
||
34452 |
echo "$as_me:$LINENO: checking for gcc -fvisibility-inlines-hidden bug" >&5 |
|
34453 |
echo $ECHO_N "checking for gcc -fvisibility-inlines-hidden bug... $ECHO_C" >&6 |
|
34454 |
if test "${kde_cv_val_gcc_visibility_bug+set}" = set; then |
|
34455 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
34456 |
else |
|
34457 |
||
34458 |
||
34459 |
||
34460 |
ac_ext=cc |
|
34461 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
34462 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
34463 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
34464 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
34465 |
||
34466 |
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
34467 |
||
34468 |
||
34469 |
||
34470 |
safe_CXXFLAGS=$CXXFLAGS |
|
34471 |
safe_LDFLAGS=$LDFLAGS |
|
34472 |
CXXFLAGS="$CXXFLAGS -fPIC -fvisibility-inlines-hidden -O0" |
|
34473 |
LDFLAGS="$LDFLAGS -shared -fPIC" |
|
34474 |
||
34475 |
cat >conftest.$ac_ext <<_ACEOF |
|
34476 |
/* confdefs.h. */ |
|
34477 |
_ACEOF |
|
34478 |
cat confdefs.h >>conftest.$ac_ext |
|
34479 |
cat >>conftest.$ac_ext <<_ACEOF |
|
34480 |
/* end confdefs.h. */ |
|
34481 |
||
34482 |
/* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */ |
|
34483 |
#include <string> |
|
34484 |
int some_function( void ) __attribute__ ((visibility("default"))); |
|
34485 |
int some_function( void ) |
|
34486 |
{ |
|
34487 |
std::string s("blafasel"); |
|
34488 |
return 0; |
|
34489 |
} |
|
34490 |
||
34491 |
int |
|
34492 |
main () |
|
34493 |
{ |
|
34494 |
/* elvis is alive */ |
|
34495 |
; |
|
34496 |
return 0; |
|
34497 |
} |
|
34498 |
_ACEOF |
|
34499 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
34500 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
34501 |
(eval $ac_link) 2>conftest.er1 |
|
34502 |
ac_status=$? |
|
34503 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
34504 |
rm -f conftest.er1 |
|
34505 |
cat conftest.err >&5 |
|
34506 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34507 |
(exit $ac_status); } && |
|
34508 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
34509 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
34510 |
(eval $ac_try) 2>&5 |
|
34511 |
ac_status=$? |
|
34512 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34513 |
(exit $ac_status); }; } && |
|
34514 |
{ ac_try='test -s conftest$ac_exeext' |
|
34515 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
34516 |
(eval $ac_try) 2>&5 |
|
34517 |
ac_status=$? |
|
34518 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34519 |
(exit $ac_status); }; }; then |
|
34520 |
kde_cv_val_gcc_visibility_bug=no |
|
34521 |
else |
|
34522 |
echo "$as_me: failed program was:" >&5 |
|
34523 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
34524 |
||
34525 |
kde_cv_val_gcc_visibility_bug=yes |
|
34526 |
fi |
|
34527 |
rm -f conftest.err conftest.$ac_objext \ |
|
34528 |
conftest$ac_exeext conftest.$ac_ext |
|
34529 |
||
34530 |
CXXFLAGS=$safe_CXXFLAGS |
|
34531 |
LDFLAGS=$safe_LDFLAGS |
|
34532 |
ac_ext=c |
|
34533 |
ac_cpp='$CPP $CPPFLAGS' |
|
34534 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
34535 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
34536 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
34537 |
||
34538 |
||
34539 |
||
34540 |
fi |
|
34541 |
echo "$as_me:$LINENO: result: $kde_cv_val_gcc_visibility_bug" >&5 |
|
34542 |
echo "${ECHO_T}$kde_cv_val_gcc_visibility_bug" >&6 |
|
34543 |
||
34544 |
if test x$kde_cv_val_gcc_visibility_bug = xno; then |
|
34545 |
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
|
34546 |
fi |
|
34547 |
||
34548 |
||
34549 |
HAVE_GCC_VISIBILITY=1 |
|
34550 |
||
34551 |
cat >>confdefs.h <<_ACEOF |
|
34552 |
#define __KDE_HAVE_GCC_VISIBILITY "$HAVE_GCC_VISIBILITY" |
|
34553 |
_ACEOF |
|
34554 |
||
34555 |
fi |
|
34556 |
||
34557 |
else |
|
34558 |
echo "$as_me:$LINENO: result: no" >&5 |
|
34559 |
echo "${ECHO_T}no" >&6 |
|
34560 |
: |
|
34561 |
||
34562 |
fi |
|
34563 |
||
34564 |
fi |
|
34565 |
||
34566 |
||
34567 |
||
34568 |
ac_ext=cc |
|
34569 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
34570 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
34571 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
34572 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
34573 |
||
34574 |
libkipi_kdemacros_cppflags=$CPPFLAGS |
|
34575 |
CPPFLAGS="$CPPFLAGS $all_includes" |
|
34576 |
echo "$as_me:$LINENO: checking if kdemacros.h is usable" >&5 |
|
34577 |
echo $ECHO_N "checking if kdemacros.h is usable... $ECHO_C" >&6 |
|
34578 |
cat >conftest.$ac_ext <<_ACEOF |
|
34579 |
||
34580 |
#include <kdemacros.h> |
|
34581 |
#include <string> |
|
34582 |
int other_func( void ) KDE_EXPORT; |
|
34583 |
int other_func( void ) |
|
34584 |
{ |
|
34585 |
std::string s("KDE_EXPORT"); |
|
34586 |
return 0; |
|
34587 |
} |
|
34588 |
||
34589 |
_ACEOF |
|
34590 |
rm -f conftest.$ac_objext |
|
34591 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
34592 |
(eval $ac_compile) 2>conftest.er1 |
|
34593 |
ac_status=$? |
|
34594 |
grep -v '^ *+' conftest.er1 >conftest.err |
|
34595 |
rm -f conftest.er1 |
|
34596 |
cat conftest.err >&5 |
|
34597 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34598 |
(exit $ac_status); } && |
|
34599 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
34600 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
34601 |
(eval $ac_try) 2>&5 |
|
34602 |
ac_status=$? |
|
34603 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34604 |
(exit $ac_status); }; } && |
|
34605 |
{ ac_try='test -s conftest.$ac_objext' |
|
34606 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
34607 |
(eval $ac_try) 2>&5 |
|
34608 |
ac_status=$? |
|
34609 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
34610 |
(exit $ac_status); }; }; then |
|
34611 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
34612 |
echo "${ECHO_T}yes" >&6 |
|
34613 |
||
34614 |
cat >>confdefs.h <<\_ACEOF |
|
34615 |
#define KDEMACROS_USABLE 1 |
|
34616 |
_ACEOF |
|
34617 |
||
34618 |
else |
|
34619 |
echo "$as_me: failed program was:" >&5 |
|
34620 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
34621 |
||
34622 |
echo "$as_me:$LINENO: result: no" >&5 |
|
34623 |
echo "${ECHO_T}no" >&6 |
|
34624 |
||
34625 |
fi |
|
34626 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
34627 |
CPPFLAGS=$libkipi_kdemacros_cppflags |
|
34628 |
ac_ext=c |
|
34629 |
ac_cpp='$CPP $CPPFLAGS' |
|
34630 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
34631 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
34632 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
34633 |
||
34634 |
||
34635 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34636 |
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin" |
34637 |
TOPSUBDIRS="" |
|
34638 |
||
34639 |
if test ! -s $srcdir/subdirs; then |
|
34640 |
files=`cd $srcdir && ls -1` |
|
34641 |
dirs=`for i in $files; do if test -d $i; then echo $i; fi; done` |
|
34642 |
for i in $dirs; do |
|
34643 |
echo $i >> $srcdir/subdirs |
|
34644 |
done |
|
34645 |
fi |
|
34646 |
||
34647 |
ac_topsubdirs= |
|
34648 |
if test -s $srcdir/inst-apps; then |
|
34649 |
ac_topsubdirs="`cat $srcdir/inst-apps`" |
|
34650 |
elif test -s $srcdir/subdirs; then |
|
34651 |
ac_topsubdirs="`cat $srcdir/subdirs`" |
|
34652 |
fi |
|
34653 |
||
34654 |
for i in $ac_topsubdirs; do |
|
34655 |
echo "$as_me:$LINENO: checking if $i should be compiled" >&5 |
|
34656 |
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6 |
|
34657 |
if test -d $srcdir/$i; then |
|
34658 |
install_it="yes" |
|
34659 |
for j in $DO_NOT_COMPILE; do |
|
34660 |
if test $i = $j; then |
|
34661 |
install_it="no" |
|
34662 |
fi |
|
34663 |
done |
|
34664 |
else |
|
34665 |
install_it="no" |
|
34666 |
fi |
|
34667 |
echo "$as_me:$LINENO: result: $install_it" >&5 |
|
34668 |
echo "${ECHO_T}$install_it" >&6 |
|
34669 |
vari=`echo $i | sed -e 's,[-+.@],_,g'` |
|
34670 |
if test $install_it = "yes"; then |
|
34671 |
TOPSUBDIRS="$TOPSUBDIRS $i" |
|
34672 |
eval "$vari""_SUBDIR_included=yes" |
|
34673 |
else |
|
34674 |
eval "$vari""_SUBDIR_included=no" |
|
34675 |
fi |
|
34676 |
done |
|
34677 |
||
34678 |
||
34679 |
||
34680 |
||
34681 |
||
34682 |
if test "x$libkexif_SUBDIR_included" = xyes; then |
|
34683 |
libkexif_SUBDIR_included_TRUE= |
|
34684 |
libkexif_SUBDIR_included_FALSE='#' |
|
34685 |
else |
|
34686 |
libkexif_SUBDIR_included_TRUE='#' |
|
34687 |
libkexif_SUBDIR_included_FALSE= |
|
34688 |
fi |
|
34689 |
||
34690 |
||
34691 |
||
34692 |
if test "x$libkipi_SUBDIR_included" = xyes; then |
|
34693 |
libkipi_SUBDIR_included_TRUE= |
|
34694 |
libkipi_SUBDIR_included_FALSE='#' |
|
34695 |
else |
|
34696 |
libkipi_SUBDIR_included_TRUE='#' |
|
34697 |
libkipi_SUBDIR_included_FALSE= |
|
34698 |
fi |
|
34699 |
||
34700 |
||
34701 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34702 |
if test "x$doc_SUBDIR_included" = xyes; then |
34703 |
doc_SUBDIR_included_TRUE= |
|
34704 |
doc_SUBDIR_included_FALSE='#' |
|
34705 |
else |
|
34706 |
doc_SUBDIR_included_TRUE='#' |
|
34707 |
doc_SUBDIR_included_FALSE= |
|
34708 |
fi |
|
34709 |
||
34710 |
||
34711 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34712 |
if test "x$po_SUBDIR_included" = xyes; then |
34713 |
po_SUBDIR_included_TRUE= |
|
34714 |
po_SUBDIR_included_FALSE='#' |
|
34715 |
else |
|
34716 |
po_SUBDIR_included_TRUE='#' |
|
34717 |
po_SUBDIR_included_FALSE= |
|
34718 |
fi |
|
34719 |
||
34720 |
ac_config_files="$ac_config_files Makefile" |
|
34721 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34722 |
ac_config_files="$ac_config_files doc/Makefile" |
34723 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34724 |
ac_config_files="$ac_config_files libkipi/Makefile" |
34725 |
||
34726 |
ac_config_files="$ac_config_files libkipi/libkipi/Makefile" |
|
34727 |
||
34728 |
ac_config_files="$ac_config_files po/Makefile" |
|
34729 |
||
34730 |
ac_config_files="$ac_config_files po/br/Makefile" |
|
34731 |
||
34732 |
ac_config_files="$ac_config_files po/ca/Makefile" |
|
34733 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34734 |
ac_config_files="$ac_config_files po/cs/Makefile" |
34735 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34736 |
ac_config_files="$ac_config_files po/cy/Makefile" |
34737 |
||
34738 |
ac_config_files="$ac_config_files po/da/Makefile" |
|
34739 |
||
34740 |
ac_config_files="$ac_config_files po/de/Makefile" |
|
34741 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34742 |
ac_config_files="$ac_config_files po/el/Makefile" |
34743 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34744 |
ac_config_files="$ac_config_files po/en_GB/Makefile" |
34745 |
||
34746 |
ac_config_files="$ac_config_files po/es/Makefile" |
|
34747 |
||
34748 |
ac_config_files="$ac_config_files po/et/Makefile" |
|
34749 |
||
34750 |
ac_config_files="$ac_config_files po/fi/Makefile" |
|
34751 |
||
34752 |
ac_config_files="$ac_config_files po/fr/Makefile" |
|
34753 |
||
34754 |
ac_config_files="$ac_config_files po/ga/Makefile" |
|
34755 |
||
34756 |
ac_config_files="$ac_config_files po/is/Makefile" |
|
34757 |
||
34758 |
ac_config_files="$ac_config_files po/it/Makefile" |
|
34759 |
||
34760 |
ac_config_files="$ac_config_files po/lt/Makefile" |
|
34761 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34762 |
ac_config_files="$ac_config_files po/mt/Makefile" |
34763 |
||
34764 |
ac_config_files="$ac_config_files po/nb/Makefile" |
|
34765 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34766 |
ac_config_files="$ac_config_files po/nl/Makefile" |
34767 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34768 |
ac_config_files="$ac_config_files po/pa/Makefile" |
34769 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34770 |
ac_config_files="$ac_config_files po/pl/Makefile" |
34771 |
||
34772 |
ac_config_files="$ac_config_files po/pt/Makefile" |
|
34773 |
||
34774 |
ac_config_files="$ac_config_files po/pt_BR/Makefile" |
|
34775 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34776 |
ac_config_files="$ac_config_files po/rw/Makefile" |
34777 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34778 |
ac_config_files="$ac_config_files po/sl/Makefile" |
34779 |
||
34780 |
ac_config_files="$ac_config_files po/sr/Makefile" |
|
34781 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34782 |
ac_config_files="$ac_config_files po/sr@Latn/Makefile" |
34783 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34784 |
ac_config_files="$ac_config_files po/sv/Makefile" |
34785 |
||
34786 |
ac_config_files="$ac_config_files po/ta/Makefile" |
|
34787 |
||
34788 |
ac_config_files="$ac_config_files po/tr/Makefile" |
|
34789 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34790 |
ac_config_files="$ac_config_files po/zh_CN/Makefile" |
34791 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
34792 |
cat >confcache <<\_ACEOF |
34793 |
# This file is a shell script that caches the results of configure |
|
34794 |
# tests run on this system so they can be shared between configure |
|
34795 |
# scripts and configure runs, see configure's option --config-cache. |
|
34796 |
# It is not useful on other systems. If it contains results you don't |
|
34797 |
# want to keep, you may remove or edit it. |
|
34798 |
# |
|
34799 |
# config.status only pays attention to the cache file if you give it |
|
34800 |
# the --recheck option to rerun configure. |
|
34801 |
# |
|
34802 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
34803 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
34804 |
# following values. |
|
34805 |
||
34806 |
_ACEOF |
|
34807 |
||
34808 |
# The following way of writing the cache mishandles newlines in values, |
|
34809 |
# but we know of no workaround that is simple, portable, and efficient. |
|
34810 |
# So, don't put newlines in cache variables' values. |
|
34811 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
|
34812 |
# and sets the high bit in the cache file unless we assign to the vars. |
|
34813 |
{ |
|
34814 |
(set) 2>&1 | |
|
34815 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
|
34816 |
*ac_space=\ *) |
|
34817 |
# `set' does not quote correctly, so add quotes (double-quote |
|
34818 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
|
34819 |
sed -n \ |
|
34820 |
"s/'/'\\\\''/g; |
|
34821 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
34822 |
;; |
|
34823 |
*) |
|
34824 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
|
34825 |
sed -n \ |
|
34826 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|
34827 |
;; |
|
34828 |
esac; |
|
34829 |
} | |
|
34830 |
sed ' |
|
34831 |
t clear |
|
34832 |
: clear |
|
34833 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
34834 |
t end |
|
34835 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
34836 |
: end' >>confcache |
|
34837 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
|
34838 |
if test -w $cache_file; then |
|
34839 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
|
34840 |
cat confcache >$cache_file |
|
34841 |
else |
|
34842 |
echo "not updating unwritable cache $cache_file" |
|
34843 |
fi |
|
34844 |
fi |
|
34845 |
rm -f confcache |
|
34846 |
||
34847 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
34848 |
# Let make expand exec_prefix. |
|
34849 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
34850 |
||
34851 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
34852 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
34853 |
# trailing colons and then remove the whole line if VPATH becomes empty |
|
34854 |
# (actually we leave an empty line to preserve line numbers). |
|
34855 |
if test "x$srcdir" = x.; then |
|
34856 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
34857 |
s/:*\$(srcdir):*/:/; |
|
34858 |
s/:*\${srcdir}:*/:/; |
|
34859 |
s/:*@srcdir@:*/:/; |
|
34860 |
s/^\([^=]*=[ ]*\):*/\1/; |
|
34861 |
s/:*$//; |
|
34862 |
s/^[^=]*=[ ]*$//; |
|
34863 |
}' |
|
34864 |
fi |
|
34865 |
||
34866 |
DEFS=-DHAVE_CONFIG_H |
|
34867 |
||
34868 |
ac_libobjs= |
|
34869 |
ac_ltlibobjs= |
|
34870 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
34871 |
# 1. Remove the extension, and $U if already installed. |
|
34872 |
ac_i=`echo "$ac_i" | |
|
34873 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
|
34874 |
# 2. Add them. |
|
34875 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
|
34876 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
|
34877 |
done |
|
34878 |
LIBOBJS=$ac_libobjs |
|
34879 |
||
34880 |
LTLIBOBJS=$ac_ltlibobjs |
|
34881 |
||
34882 |
||
34883 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
|
34884 |
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
|
34885 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34886 |
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
|
34887 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34888 |
{ (exit 1); exit 1; }; } |
|
34889 |
fi |
|
34890 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
34891 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
34892 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34893 |
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
34894 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34895 |
{ (exit 1); exit 1; }; } |
|
34896 |
fi |
|
34897 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
|
34898 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
|
34899 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34900 |
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
|
34901 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34902 |
{ (exit 1); exit 1; }; } |
|
34903 |
fi |
|
34904 |
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then |
|
34905 |
{ { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined. |
|
34906 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34907 |
echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined. |
|
34908 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34909 |
{ (exit 1); exit 1; }; } |
|
34910 |
fi |
|
34911 |
if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then |
|
34912 |
{ { echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined. |
|
34913 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34914 |
echo "$as_me: error: conditional \"include_x11\" was never defined. |
|
34915 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34916 |
{ (exit 1); exit 1; }; } |
|
34917 |
fi |
|
34918 |
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then |
|
34919 |
{ { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined. |
|
34920 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34921 |
echo "$as_me: error: conditional \"include_ARTS\" was never defined. |
|
34922 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34923 |
{ (exit 1); exit 1; }; } |
|
34924 |
fi |
|
34925 |
if test -z "${libkexif_SUBDIR_included_TRUE}" && test -z "${libkexif_SUBDIR_included_FALSE}"; then |
|
34926 |
{ { echo "$as_me:$LINENO: error: conditional \"libkexif_SUBDIR_included\" was never defined. |
|
34927 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34928 |
echo "$as_me: error: conditional \"libkexif_SUBDIR_included\" was never defined. |
|
34929 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34930 |
{ (exit 1); exit 1; }; } |
|
34931 |
fi |
|
34932 |
if test -z "${libkipi_SUBDIR_included_TRUE}" && test -z "${libkipi_SUBDIR_included_FALSE}"; then |
|
34933 |
{ { echo "$as_me:$LINENO: error: conditional \"libkipi_SUBDIR_included\" was never defined. |
|
34934 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34935 |
echo "$as_me: error: conditional \"libkipi_SUBDIR_included\" was never defined. |
|
34936 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34937 |
{ (exit 1); exit 1; }; } |
|
34938 |
fi |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
34939 |
if test -z "${doc_SUBDIR_included_TRUE}" && test -z "${doc_SUBDIR_included_FALSE}"; then |
34940 |
{ { echo "$as_me:$LINENO: error: conditional \"doc_SUBDIR_included\" was never defined. |
|
34941 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34942 |
echo "$as_me: error: conditional \"doc_SUBDIR_included\" was never defined. |
|
34943 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34944 |
{ (exit 1); exit 1; }; } |
|
34945 |
fi |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
34946 |
if test -z "${po_SUBDIR_included_TRUE}" && test -z "${po_SUBDIR_included_FALSE}"; then |
34947 |
{ { echo "$as_me:$LINENO: error: conditional \"po_SUBDIR_included\" was never defined. |
|
34948 |
Usually this means the macro was only invoked conditionally." >&5 |
|
34949 |
echo "$as_me: error: conditional \"po_SUBDIR_included\" was never defined. |
|
34950 |
Usually this means the macro was only invoked conditionally." >&2;} |
|
34951 |
{ (exit 1); exit 1; }; } |
|
34952 |
fi |
|
34953 |
||
34954 |
: ${CONFIG_STATUS=./config.status} |
|
34955 |
ac_clean_files_save=$ac_clean_files |
|
34956 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
34957 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
|
34958 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
34959 |
cat >$CONFIG_STATUS <<_ACEOF |
|
34960 |
#! $SHELL |
|
34961 |
# Generated by $as_me. |
|
34962 |
# Run this file to recreate the current configuration. |
|
34963 |
# Compiler output produced by configure, useful for debugging |
|
34964 |
# configure, is in config.log if it exists. |
|
34965 |
||
34966 |
debug=false |
|
34967 |
ac_cs_recheck=false |
|
34968 |
ac_cs_silent=false |
|
34969 |
SHELL=\${CONFIG_SHELL-$SHELL} |
|
34970 |
_ACEOF |
|
34971 |
||
34972 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
34973 |
## --------------------- ## |
|
34974 |
## M4sh Initialization. ## |
|
34975 |
## --------------------- ## |
|
34976 |
||
34977 |
# Be Bourne compatible |
|
34978 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
34979 |
emulate sh |
|
34980 |
NULLCMD=: |
|
34981 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
34982 |
# is contrary to our usage. Disable this feature. |
|
34983 |
alias -g '${1+"$@"}'='"$@"' |
|
34984 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
34985 |
set -o posix |
|
34986 |
fi |
|
34987 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
34988 |
||
34989 |
# Support unset when possible. |
|
34990 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
34991 |
as_unset=unset |
|
34992 |
else |
|
34993 |
as_unset=false |
|
34994 |
fi |
|
34995 |
||
34996 |
||
34997 |
# Work around bugs in pre-3.0 UWIN ksh. |
|
34998 |
$as_unset ENV MAIL MAILPATH |
|
34999 |
PS1='$ ' |
|
35000 |
PS2='> ' |
|
35001 |
PS4='+ ' |
|
35002 |
||
35003 |
# NLS nuisances. |
|
35004 |
for as_var in \ |
|
35005 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
35006 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
35007 |
LC_TELEPHONE LC_TIME |
|
35008 |
do |
|
35009 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
35010 |
eval $as_var=C; export $as_var |
|
35011 |
else |
|
35012 |
$as_unset $as_var |
|
35013 |
fi |
|
35014 |
done |
|
35015 |
||
35016 |
# Required to use basename. |
|
35017 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
35018 |
as_expr=expr |
|
35019 |
else |
|
35020 |
as_expr=false |
|
35021 |
fi |
|
35022 |
||
35023 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
35024 |
as_basename=basename |
|
35025 |
else |
|
35026 |
as_basename=false |
|
35027 |
fi |
|
35028 |
||
35029 |
||
35030 |
# Name of the executable. |
|
35031 |
as_me=`$as_basename "$0" || |
|
35032 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
35033 |
X"$0" : 'X\(//\)$' \| \ |
|
35034 |
X"$0" : 'X\(/\)$' \| \ |
|
35035 |
. : '\(.\)' 2>/dev/null || |
|
35036 |
echo X/"$0" | |
|
35037 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
35038 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
|
35039 |
/^X\/\(\/\).*/{ s//\1/; q; } |
|
35040 |
s/.*/./; q'` |
|
35041 |
||
35042 |
||
35043 |
# PATH needs CR, and LINENO needs CR and PATH. |
|
35044 |
# Avoid depending upon Character Ranges. |
|
35045 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
35046 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
35047 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
35048 |
as_cr_digits='0123456789' |
|
35049 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
35050 |
||
35051 |
# The user is always right. |
|
35052 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
35053 |
echo "#! /bin/sh" >conf$$.sh |
|
35054 |
echo "exit 0" >>conf$$.sh |
|
35055 |
chmod +x conf$$.sh |
|
35056 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
35057 |
PATH_SEPARATOR=';' |
|
35058 |
else |
|
35059 |
PATH_SEPARATOR=: |
|
35060 |
fi |
|
35061 |
rm -f conf$$.sh |
|
35062 |
fi |
|
35063 |
||
35064 |
||
35065 |
as_lineno_1=$LINENO |
|
35066 |
as_lineno_2=$LINENO |
|
35067 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
35068 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
35069 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
|
35070 |
# Find who we are. Look in the path if we contain no path at all |
|
35071 |
# relative or not. |
|
35072 |
case $0 in |
|
35073 |
*[\\/]* ) as_myself=$0 ;; |
|
35074 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
35075 |
for as_dir in $PATH |
|
35076 |
do |
|
35077 |
IFS=$as_save_IFS |
|
35078 |
test -z "$as_dir" && as_dir=. |
|
35079 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
35080 |
done |
|
35081 |
||
35082 |
;; |
|
35083 |
esac |
|
35084 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
35085 |
# in which case we are not to be found in the path. |
|
35086 |
if test "x$as_myself" = x; then |
|
35087 |
as_myself=$0 |
|
35088 |
fi |
|
35089 |
if test ! -f "$as_myself"; then |
|
35090 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
|
35091 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
|
35092 |
{ (exit 1); exit 1; }; } |
|
35093 |
fi |
|
35094 |
case $CONFIG_SHELL in |
|
35095 |
'') |
|
35096 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
35097 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
35098 |
do |
|
35099 |
IFS=$as_save_IFS |
|
35100 |
test -z "$as_dir" && as_dir=. |
|
35101 |
for as_base in sh bash ksh sh5; do |
|
35102 |
case $as_dir in |
|
35103 |
/*) |
|
35104 |
if ("$as_dir/$as_base" -c ' |
|
35105 |
as_lineno_1=$LINENO |
|
35106 |
as_lineno_2=$LINENO |
|
35107 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
35108 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
35109 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
|
35110 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|
35111 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|
35112 |
CONFIG_SHELL=$as_dir/$as_base |
|
35113 |
export CONFIG_SHELL |
|
35114 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|
35115 |
fi;; |
|
35116 |
esac |
|
35117 |
done |
|
35118 |
done |
|
35119 |
;; |
|
35120 |
esac |
|
35121 |
||
35122 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
35123 |
# uniformly replaced by the line number. The first 'sed' inserts a |
|
35124 |
# line-number line before each line; the second 'sed' does the real |
|
35125 |
# work. The second script uses 'N' to pair each line-number line |
|
35126 |
# with the numbered line, and appends trailing '-' during |
|
35127 |
# substitution so that $LINENO is not a special case at line end. |
|
35128 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
35129 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
|
35130 |
sed '=' <$as_myself | |
|
35131 |
sed ' |
|
35132 |
N |
|
35133 |
s,$,-, |
|
35134 |
: loop |
|
35135 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
|
35136 |
t loop |
|
35137 |
s,-$,, |
|
35138 |
s,^['$as_cr_digits']*\n,, |
|
35139 |
' >$as_me.lineno && |
|
35140 |
chmod +x $as_me.lineno || |
|
35141 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
|
35142 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
|
35143 |
{ (exit 1); exit 1; }; } |
|
35144 |
||
35145 |
# Don't try to exec as it changes $[0], causing all sort of problems |
|
35146 |
# (the dirname of $[0] is not the place where we might find the |
|
35147 |
# original and so on. Autoconf is especially sensible to this). |
|
35148 |
. ./$as_me.lineno |
|
35149 |
# Exit status is that of the last command. |
|
35150 |
exit |
|
35151 |
} |
|
35152 |
||
35153 |
||
35154 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
|
35155 |
*c*,-n*) ECHO_N= ECHO_C=' |
|
35156 |
' ECHO_T=' ' ;; |
|
35157 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
|
35158 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
|
35159 |
esac |
|
35160 |
||
35161 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
35162 |
as_expr=expr |
|
35163 |
else |
|
35164 |
as_expr=false |
|
35165 |
fi |
|
35166 |
||
35167 |
rm -f conf$$ conf$$.exe conf$$.file |
|
35168 |
echo >conf$$.file |
|
35169 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
35170 |
# We could just check for DJGPP; but this test a) works b) is more generic |
|
35171 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
|
35172 |
if test -f conf$$.exe; then |
|
35173 |
# Don't use ln at all; we don't have any links |
|
35174 |
as_ln_s='cp -p' |
|
35175 |
else |
|
35176 |
as_ln_s='ln -s' |
|
35177 |
fi |
|
35178 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
35179 |
as_ln_s=ln |
|
35180 |
else |
|
35181 |
as_ln_s='cp -p' |
|
35182 |
fi |
|
35183 |
rm -f conf$$ conf$$.exe conf$$.file |
|
35184 |
||
35185 |
if mkdir -p . 2>/dev/null; then |
|
35186 |
as_mkdir_p=: |
|
35187 |
else |
|
35188 |
test -d ./-p && rmdir ./-p |
|
35189 |
as_mkdir_p=false |
|
35190 |
fi |
|
35191 |
||
35192 |
as_executable_p="test -f" |
|
35193 |
||
35194 |
# Sed expression to map a string onto a valid CPP name. |
|
35195 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
35196 |
||
35197 |
# Sed expression to map a string onto a valid variable name. |
|
35198 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
35199 |
||
35200 |
||
35201 |
# IFS |
|
35202 |
# We need space, tab and new line, in precisely that order. |
|
35203 |
as_nl=' |
|
35204 |
' |
|
35205 |
IFS=" $as_nl" |
|
35206 |
||
35207 |
# CDPATH. |
|
35208 |
$as_unset CDPATH |
|
35209 |
||
35210 |
exec 6>&1 |
|
35211 |
||
35212 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
|
35213 |
# report actual input values of CONFIG_FILES etc. instead of their |
|
35214 |
# values after options handling. Logging --version etc. is OK. |
|
35215 |
exec 5>>config.log |
|
35216 |
{ |
|
35217 |
echo |
|
35218 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
35219 |
## Running $as_me. ## |
|
35220 |
_ASBOX |
|
35221 |
} >&5 |
|
35222 |
cat >&5 <<_CSEOF |
|
35223 |
||
35224 |
This file was extended by $as_me, which was |
|
35225 |
generated by GNU Autoconf 2.59. Invocation command line was |
|
35226 |
||
35227 |
CONFIG_FILES = $CONFIG_FILES |
|
35228 |
CONFIG_HEADERS = $CONFIG_HEADERS |
|
35229 |
CONFIG_LINKS = $CONFIG_LINKS |
|
35230 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
35231 |
$ $0 $@ |
|
35232 |
||
35233 |
_CSEOF |
|
35234 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
|
35235 |
echo >&5 |
|
35236 |
_ACEOF |
|
35237 |
||
35238 |
# Files that config.status was made for. |
|
35239 |
if test -n "$ac_config_files"; then |
|
35240 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
|
35241 |
fi |
|
35242 |
||
35243 |
if test -n "$ac_config_headers"; then |
|
35244 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
|
35245 |
fi |
|
35246 |
||
35247 |
if test -n "$ac_config_links"; then |
|
35248 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
|
35249 |
fi |
|
35250 |
||
35251 |
if test -n "$ac_config_commands"; then |
|
35252 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
|
35253 |
fi |
|
35254 |
||
35255 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
35256 |
||
35257 |
ac_cs_usage="\ |
|
35258 |
\`$as_me' instantiates files from templates according to the |
|
35259 |
current configuration. |
|
35260 |
||
35261 |
Usage: $0 [OPTIONS] [FILE]... |
|
35262 |
||
35263 |
-h, --help print this help, then exit |
|
35264 |
-V, --version print version number, then exit |
|
35265 |
-q, --quiet do not print progress messages |
|
35266 |
-d, --debug don't remove temporary files |
|
35267 |
--recheck update $as_me by reconfiguring in the same conditions |
|
35268 |
--file=FILE[:TEMPLATE] |
|
35269 |
instantiate the configuration file FILE |
|
35270 |
--header=FILE[:TEMPLATE] |
|
35271 |
instantiate the configuration header FILE |
|
35272 |
||
35273 |
Configuration files: |
|
35274 |
$config_files |
|
35275 |
||
35276 |
Configuration headers: |
|
35277 |
$config_headers |
|
35278 |
||
35279 |
Configuration commands: |
|
35280 |
$config_commands |
|
35281 |
||
35282 |
Report bugs to <bug-autoconf@gnu.org>." |
|
35283 |
_ACEOF |
|
35284 |
||
35285 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
35286 |
ac_cs_version="\\ |
|
35287 |
config.status |
|
35288 |
configured by $0, generated by GNU Autoconf 2.59, |
|
35289 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
|
35290 |
||
35291 |
Copyright (C) 2003 Free Software Foundation, Inc. |
|
35292 |
This config.status script is free software; the Free Software Foundation |
|
35293 |
gives unlimited permission to copy, distribute and modify it." |
|
35294 |
srcdir=$srcdir |
|
35295 |
INSTALL="$INSTALL" |
|
35296 |
_ACEOF |
|
35297 |
||
35298 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
35299 |
# If no file are specified by the user, then we need to provide default |
|
35300 |
# value. By we need to know if files were specified by the user. |
|
35301 |
ac_need_defaults=: |
|
35302 |
while test $# != 0 |
|
35303 |
do |
|
35304 |
case $1 in |
|
35305 |
--*=*) |
|
35306 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
|
35307 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
|
35308 |
ac_shift=: |
|
35309 |
;; |
|
35310 |
-*) |
|
35311 |
ac_option=$1 |
|
35312 |
ac_optarg=$2 |
|
35313 |
ac_shift=shift |
|
35314 |
;; |
|
35315 |
*) # This is not an option, so the user has probably given explicit |
|
35316 |
# arguments. |
|
35317 |
ac_option=$1 |
|
35318 |
ac_need_defaults=false;; |
|
35319 |
esac |
|
35320 |
||
35321 |
case $ac_option in |
|
35322 |
# Handling of the options. |
|
35323 |
_ACEOF |
|
35324 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
35325 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
35326 |
ac_cs_recheck=: ;; |
|
35327 |
--version | --vers* | -V ) |
|
35328 |
echo "$ac_cs_version"; exit 0 ;; |
|
35329 |
--he | --h) |
|
35330 |
# Conflict between --help and --header |
|
35331 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
|
35332 |
Try \`$0 --help' for more information." >&5 |
|
35333 |
echo "$as_me: error: ambiguous option: $1 |
|
35334 |
Try \`$0 --help' for more information." >&2;} |
|
35335 |
{ (exit 1); exit 1; }; };; |
|
35336 |
--help | --hel | -h ) |
|
35337 |
echo "$ac_cs_usage"; exit 0 ;; |
|
35338 |
--debug | --d* | -d ) |
|
35339 |
debug=: ;; |
|
35340 |
--file | --fil | --fi | --f ) |
|
35341 |
$ac_shift |
|
35342 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
35343 |
ac_need_defaults=false;; |
|
35344 |
--header | --heade | --head | --hea ) |
|
35345 |
$ac_shift |
|
35346 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
35347 |
ac_need_defaults=false;; |
|
35348 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
35349 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
35350 |
ac_cs_silent=: ;; |
|
35351 |
||
35352 |
# This is an error. |
|
35353 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
|
35354 |
Try \`$0 --help' for more information." >&5 |
|
35355 |
echo "$as_me: error: unrecognized option: $1 |
|
35356 |
Try \`$0 --help' for more information." >&2;} |
|
35357 |
{ (exit 1); exit 1; }; } ;; |
|
35358 |
||
35359 |
*) ac_config_targets="$ac_config_targets $1" ;; |
|
35360 |
||
35361 |
esac |
|
35362 |
shift |
|
35363 |
done |
|
35364 |
||
35365 |
ac_configure_extra_args= |
|
35366 |
||
35367 |
if $ac_cs_silent; then |
|
35368 |
exec 6>/dev/null |
|
35369 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
35370 |
fi |
|
35371 |
||
35372 |
_ACEOF |
|
35373 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
35374 |
if \$ac_cs_recheck; then |
|
35375 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
35376 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
35377 |
fi |
|
35378 |
||
35379 |
_ACEOF |
|
35380 |
||
35381 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
35382 |
# |
|
35383 |
# INIT-COMMANDS section. |
|
35384 |
# |
|
35385 |
||
35386 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
|
35387 |
||
35388 |
_ACEOF |
|
35389 |
||
35390 |
||
35391 |
||
35392 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
35393 |
for ac_config_target in $ac_config_targets |
|
35394 |
do |
|
35395 |
case "$ac_config_target" in |
|
35396 |
# Handling of arguments. |
|
35397 |
"libkipi/libkipi.pc" ) CONFIG_FILES="$CONFIG_FILES libkipi/libkipi.pc" ;; |
|
35398 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35399 |
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35400 |
"libkipi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libkipi/Makefile" ;; |
35401 |
"libkipi/libkipi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libkipi/libkipi/Makefile" ;; |
|
35402 |
"po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; |
|
35403 |
"po/br/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/br/Makefile" ;; |
|
35404 |
"po/ca/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/ca/Makefile" ;; |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35405 |
"po/cs/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/cs/Makefile" ;; |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35406 |
"po/cy/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/cy/Makefile" ;; |
35407 |
"po/da/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/da/Makefile" ;; |
|
35408 |
"po/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/de/Makefile" ;; |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35409 |
"po/el/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/el/Makefile" ;; |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35410 |
"po/en_GB/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/en_GB/Makefile" ;; |
35411 |
"po/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/es/Makefile" ;; |
|
35412 |
"po/et/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/et/Makefile" ;; |
|
35413 |
"po/fi/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/fi/Makefile" ;; |
|
35414 |
"po/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/fr/Makefile" ;; |
|
35415 |
"po/ga/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/ga/Makefile" ;; |
|
35416 |
"po/is/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/is/Makefile" ;; |
|
35417 |
"po/it/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/it/Makefile" ;; |
|
35418 |
"po/lt/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/lt/Makefile" ;; |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35419 |
"po/mt/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/mt/Makefile" ;; |
35420 |
"po/nb/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/nb/Makefile" ;; |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
35421 |
"po/nl/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/nl/Makefile" ;; |
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35422 |
"po/pa/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/pa/Makefile" ;; |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35423 |
"po/pl/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/pl/Makefile" ;; |
35424 |
"po/pt/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/pt/Makefile" ;; |
|
35425 |
"po/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/pt_BR/Makefile" ;; |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35426 |
"po/rw/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/rw/Makefile" ;; |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35427 |
"po/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/sl/Makefile" ;; |
35428 |
"po/sr/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/sr/Makefile" ;; |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35429 |
"po/sr@Latn/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/sr@Latn/Makefile" ;; |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35430 |
"po/sv/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/sv/Makefile" ;; |
35431 |
"po/ta/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/ta/Makefile" ;; |
|
35432 |
"po/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/tr/Makefile" ;; |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35433 |
"po/zh_CN/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/zh_CN/Makefile" ;; |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35434 |
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
35435 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
35436 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
35437 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
35438 |
{ (exit 1); exit 1; }; };; |
|
35439 |
esac |
|
35440 |
done |
|
35441 |
||
35442 |
# If the user did not use the arguments to specify the items to instantiate, |
|
35443 |
# then the envvar interface is used. Set only those that are not. |
|
35444 |
# We use the long form for the default assignment because of an extremely |
|
35445 |
# bizarre bug on SunOS 4.1.3. |
|
35446 |
if $ac_need_defaults; then |
|
35447 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
35448 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
35449 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
35450 |
fi |
|
35451 |
||
35452 |
# Have a temporary directory for convenience. Make it in the build tree |
|
35453 |
# simply because there is no reason to put it here, and in addition, |
|
35454 |
# creating and moving files from /tmp can sometimes cause problems. |
|
35455 |
# Create a temporary directory, and hook for its removal unless debugging. |
|
35456 |
$debug || |
|
35457 |
{ |
|
35458 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
|
35459 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
35460 |
} |
|
35461 |
||
35462 |
# Create a (secure) tmp directory for tmp files. |
|
35463 |
||
35464 |
{ |
|
35465 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
|
35466 |
test -n "$tmp" && test -d "$tmp" |
|
35467 |
} || |
|
35468 |
{ |
|
35469 |
tmp=./confstat$$-$RANDOM |
|
35470 |
(umask 077 && mkdir $tmp) |
|
35471 |
} || |
|
35472 |
{ |
|
35473 |
echo "$me: cannot create a temporary directory in ." >&2 |
|
35474 |
{ (exit 1); exit 1; } |
|
35475 |
} |
|
35476 |
||
35477 |
_ACEOF |
|
35478 |
||
35479 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
35480 |
||
35481 |
# |
|
35482 |
# CONFIG_FILES section. |
|
35483 |
# |
|
35484 |
||
35485 |
# No need to generate the scripts if there are no CONFIG_FILES. |
|
35486 |
# This happens for instance when ./config.status config.h |
|
35487 |
if test -n "\$CONFIG_FILES"; then |
|
35488 |
# Protect against being on the right side of a sed subst in config.status. |
|
35489 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
|
35490 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
|
35491 |
s,@SHELL@,$SHELL,;t t |
|
35492 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
|
35493 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
|
35494 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
|
35495 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
|
35496 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
|
35497 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
|
35498 |
s,@exec_prefix@,$exec_prefix,;t t |
|
35499 |
s,@prefix@,$prefix,;t t |
|
35500 |
s,@program_transform_name@,$program_transform_name,;t t |
|
35501 |
s,@bindir@,$bindir,;t t |
|
35502 |
s,@sbindir@,$sbindir,;t t |
|
35503 |
s,@libexecdir@,$libexecdir,;t t |
|
35504 |
s,@datadir@,$datadir,;t t |
|
35505 |
s,@sysconfdir@,$sysconfdir,;t t |
|
35506 |
s,@sharedstatedir@,$sharedstatedir,;t t |
|
35507 |
s,@localstatedir@,$localstatedir,;t t |
|
35508 |
s,@libdir@,$libdir,;t t |
|
35509 |
s,@includedir@,$includedir,;t t |
|
35510 |
s,@oldincludedir@,$oldincludedir,;t t |
|
35511 |
s,@infodir@,$infodir,;t t |
|
35512 |
s,@mandir@,$mandir,;t t |
|
35513 |
s,@build_alias@,$build_alias,;t t |
|
35514 |
s,@host_alias@,$host_alias,;t t |
|
35515 |
s,@target_alias@,$target_alias,;t t |
|
35516 |
s,@DEFS@,$DEFS,;t t |
|
35517 |
s,@ECHO_C@,$ECHO_C,;t t |
|
35518 |
s,@ECHO_N@,$ECHO_N,;t t |
|
35519 |
s,@ECHO_T@,$ECHO_T,;t t |
|
35520 |
s,@LIBS@,$LIBS,;t t |
|
35521 |
s,@build@,$build,;t t |
|
35522 |
s,@build_cpu@,$build_cpu,;t t |
|
35523 |
s,@build_vendor@,$build_vendor,;t t |
|
35524 |
s,@build_os@,$build_os,;t t |
|
35525 |
s,@host@,$host,;t t |
|
35526 |
s,@host_cpu@,$host_cpu,;t t |
|
35527 |
s,@host_vendor@,$host_vendor,;t t |
|
35528 |
s,@host_os@,$host_os,;t t |
|
35529 |
s,@target@,$target,;t t |
|
35530 |
s,@target_cpu@,$target_cpu,;t t |
|
35531 |
s,@target_vendor@,$target_vendor,;t t |
|
35532 |
s,@target_os@,$target_os,;t t |
|
35533 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
|
35534 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
|
35535 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
|
35536 |
s,@CYGPATH_W@,$CYGPATH_W,;t t |
|
35537 |
s,@PACKAGE@,$PACKAGE,;t t |
|
35538 |
s,@VERSION@,$VERSION,;t t |
|
35539 |
s,@ACLOCAL@,$ACLOCAL,;t t |
|
35540 |
s,@AUTOCONF@,$AUTOCONF,;t t |
|
35541 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
|
35542 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
|
35543 |
s,@MAKEINFO@,$MAKEINFO,;t t |
|
35544 |
s,@install_sh@,$install_sh,;t t |
|
35545 |
s,@STRIP@,$STRIP,;t t |
|
35546 |
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
35547 |
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35548 |
s,@mkdir_p@,$mkdir_p,;t t |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35549 |
s,@AWK@,$AWK,;t t |
35550 |
s,@SET_MAKE@,$SET_MAKE,;t t |
|
35551 |
s,@am__leading_dot@,$am__leading_dot,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35552 |
s,@AMTAR@,$AMTAR,;t t |
35553 |
s,@am__tar@,$am__tar,;t t |
|
35554 |
s,@am__untar@,$am__untar,;t t |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
35555 |
s,@KDECONFIG@,$KDECONFIG,;t t |
35556 |
s,@kde_libs_prefix@,$kde_libs_prefix,;t t |
|
35557 |
s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t |
|
35558 |
s,@CONF_FILES@,$CONF_FILES,;t t |
|
35559 |
s,@CC@,$CC,;t t |
|
35560 |
s,@CFLAGS@,$CFLAGS,;t t |
|
35561 |
s,@LDFLAGS@,$LDFLAGS,;t t |
|
35562 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
|
35563 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
|
35564 |
s,@EXEEXT@,$EXEEXT,;t t |
|
35565 |
s,@OBJEXT@,$OBJEXT,;t t |
|
35566 |
s,@DEPDIR@,$DEPDIR,;t t |
|
35567 |
s,@am__include@,$am__include,;t t |
|
35568 |
s,@am__quote@,$am__quote,;t t |
|
35569 |
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
|
35570 |
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
|
35571 |
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
|
35572 |
s,@CCDEPMODE@,$CCDEPMODE,;t t |
|
35573 |
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
|
35574 |
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
|
35575 |
s,@CPP@,$CPP,;t t |
|
35576 |
s,@CXX@,$CXX,;t t |
|
35577 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
|
35578 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
|
35579 |
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
|
35580 |
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
|
35581 |
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
|
35582 |
s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t |
|
35583 |
s,@HAVE_GCC_VISIBILITY@,$HAVE_GCC_VISIBILITY,;t t |
|
35584 |
s,@unsermake_enable_pch_TRUE@,$unsermake_enable_pch_TRUE,;t t |
|
35585 |
s,@unsermake_enable_pch_FALSE@,$unsermake_enable_pch_FALSE,;t t |
|
35586 |
s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t |
|
35587 |
s,@USE_RTTI@,$USE_RTTI,;t t |
|
35588 |
s,@CXXCPP@,$CXXCPP,;t t |
|
35589 |
s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t |
|
35590 |
s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t |
|
35591 |
s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t |
|
35592 |
s,@LDFLAGS_AS_NEEDED@,$LDFLAGS_AS_NEEDED,;t t |
|
35593 |
s,@LDFLAGS_NEW_DTAGS@,$LDFLAGS_NEW_DTAGS,;t t |
|
35594 |
s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t |
|
35595 |
s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t |
|
35596 |
s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t |
|
35597 |
s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t |
|
35598 |
s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t |
|
35599 |
s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t |
|
35600 |
s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t |
|
35601 |
s,@EGREP@,$EGREP,;t t |
|
35602 |
s,@LN_S@,$LN_S,;t t |
|
35603 |
s,@ECHO@,$ECHO,;t t |
|
35604 |
s,@AR@,$AR,;t t |
|
35605 |
s,@ac_ct_AR@,$ac_ct_AR,;t t |
|
35606 |
s,@RANLIB@,$RANLIB,;t t |
|
35607 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
35608 |
s,@F77@,$F77,;t t |
|
35609 |
s,@FFLAGS@,$FFLAGS,;t t |
|
35610 |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
|
35611 |
s,@LIBTOOL@,$LIBTOOL,;t t |
|
35612 |
s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35613 |
s,@KDE_CHECK_PLUGIN@,$KDE_CHECK_PLUGIN,;t t |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35614 |
s,@MSGFMT@,$MSGFMT,;t t |
35615 |
s,@GMSGFMT@,$GMSGFMT,;t t |
|
35616 |
s,@XGETTEXT@,$XGETTEXT,;t t |
|
35617 |
s,@LIBUTIL@,$LIBUTIL,;t t |
|
35618 |
s,@LIBCOMPAT@,$LIBCOMPAT,;t t |
|
35619 |
s,@LIBCRYPT@,$LIBCRYPT,;t t |
|
35620 |
s,@LIBRESOLV@,$LIBRESOLV,;t t |
|
35621 |
s,@LIB_POLL@,$LIB_POLL,;t t |
|
35622 |
s,@FRAMEWORK_COREAUDIO@,$FRAMEWORK_COREAUDIO,;t t |
|
35623 |
s,@LIBSOCKET@,$LIBSOCKET,;t t |
|
35624 |
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
|
35625 |
s,@LIBUCB@,$LIBUCB,;t t |
|
35626 |
s,@LIBDL@,$LIBDL,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35627 |
s,@KDE_USE_FPIE@,$KDE_USE_FPIE,;t t |
35628 |
s,@KDE_USE_PIE@,$KDE_USE_PIE,;t t |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
35629 |
s,@include_x11_TRUE@,$include_x11_TRUE,;t t |
35630 |
s,@include_x11_FALSE@,$include_x11_FALSE,;t t |
|
35631 |
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
|
35632 |
s,@LIB_X11@,$LIB_X11,;t t |
|
35633 |
s,@LIB_XRENDER@,$LIB_XRENDER,;t t |
|
35634 |
s,@LIBSM@,$LIBSM,;t t |
|
35635 |
s,@X_INCLUDES@,$X_INCLUDES,;t t |
|
35636 |
s,@X_LDFLAGS@,$X_LDFLAGS,;t t |
|
35637 |
s,@x_includes@,$x_includes,;t t |
|
35638 |
s,@x_libraries@,$x_libraries,;t t |
|
35639 |
s,@QTE_NORTTI@,$QTE_NORTTI,;t t |
|
35640 |
s,@LIB_XEXT@,$LIB_XEXT,;t t |
|
35641 |
s,@LIBPTHREAD@,$LIBPTHREAD,;t t |
|
35642 |
s,@USE_THREADS@,$USE_THREADS,;t t |
|
35643 |
s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t |
|
35644 |
s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t |
|
35645 |
s,@USER_INCLUDES@,$USER_INCLUDES,;t t |
|
35646 |
s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t |
|
35647 |
s,@LIBZ@,$LIBZ,;t t |
|
35648 |
s,@LIBPNG@,$LIBPNG,;t t |
|
35649 |
s,@LIBJPEG@,$LIBJPEG,;t t |
|
35650 |
s,@qt_libraries@,$qt_libraries,;t t |
|
35651 |
s,@qt_includes@,$qt_includes,;t t |
|
35652 |
s,@QT_INCLUDES@,$QT_INCLUDES,;t t |
|
35653 |
s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t |
|
35654 |
s,@PERL@,$PERL,;t t |
|
35655 |
s,@MOC@,$MOC,;t t |
|
35656 |
s,@UIC@,$UIC,;t t |
|
35657 |
s,@UIC_TR@,$UIC_TR,;t t |
|
35658 |
s,@LIB_QT@,$LIB_QT,;t t |
|
35659 |
s,@LIB_QPE@,$LIB_QPE,;t t |
|
35660 |
s,@kde_qtver@,$kde_qtver,;t t |
|
35661 |
s,@KDE_EXTRA_RPATH@,$KDE_EXTRA_RPATH,;t t |
|
35662 |
s,@KDE_RPATH@,$KDE_RPATH,;t t |
|
35663 |
s,@X_RPATH@,$X_RPATH,;t t |
|
35664 |
s,@kde_libraries@,$kde_libraries,;t t |
|
35665 |
s,@kde_includes@,$kde_includes,;t t |
|
35666 |
s,@KDE_LDFLAGS@,$KDE_LDFLAGS,;t t |
|
35667 |
s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t |
|
35668 |
s,@all_includes@,$all_includes,;t t |
|
35669 |
s,@all_libraries@,$all_libraries,;t t |
|
35670 |
s,@AUTODIRS@,$AUTODIRS,;t t |
|
35671 |
s,@include_ARTS_TRUE@,$include_ARTS_TRUE,;t t |
|
35672 |
s,@include_ARTS_FALSE@,$include_ARTS_FALSE,;t t |
|
35673 |
s,@MAKEKDEWIDGETS@,$MAKEKDEWIDGETS,;t t |
|
35674 |
s,@KCONFIG_COMPILER@,$KCONFIG_COMPILER,;t t |
|
35675 |
s,@KCFG_DEPENDENCIES@,$KCFG_DEPENDENCIES,;t t |
|
35676 |
s,@DCOPIDLNG@,$DCOPIDLNG,;t t |
|
35677 |
s,@DCOPIDL@,$DCOPIDL,;t t |
|
35678 |
s,@DCOPIDL2CPP@,$DCOPIDL2CPP,;t t |
|
35679 |
s,@DCOP_DEPENDENCIES@,$DCOP_DEPENDENCIES,;t t |
|
35680 |
s,@MCOPIDL@,$MCOPIDL,;t t |
|
35681 |
s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
|
35682 |
s,@MEINPROC@,$MEINPROC,;t t |
|
35683 |
s,@KDE_XSL_STYLESHEET@,$KDE_XSL_STYLESHEET,;t t |
|
35684 |
s,@XMLLINT@,$XMLLINT,;t t |
|
35685 |
s,@kde_htmldir@,$kde_htmldir,;t t |
|
35686 |
s,@kde_appsdir@,$kde_appsdir,;t t |
|
35687 |
s,@kde_icondir@,$kde_icondir,;t t |
|
35688 |
s,@kde_sounddir@,$kde_sounddir,;t t |
|
35689 |
s,@kde_datadir@,$kde_datadir,;t t |
|
35690 |
s,@kde_locale@,$kde_locale,;t t |
|
35691 |
s,@kde_confdir@,$kde_confdir,;t t |
|
35692 |
s,@kde_kcfgdir@,$kde_kcfgdir,;t t |
|
35693 |
s,@kde_mimedir@,$kde_mimedir,;t t |
|
35694 |
s,@kde_wallpaperdir@,$kde_wallpaperdir,;t t |
|
35695 |
s,@kde_bindir@,$kde_bindir,;t t |
|
35696 |
s,@xdg_appsdir@,$xdg_appsdir,;t t |
|
35697 |
s,@xdg_menudir@,$xdg_menudir,;t t |
|
35698 |
s,@xdg_directorydir@,$xdg_directorydir,;t t |
|
35699 |
s,@kde_templatesdir@,$kde_templatesdir,;t t |
|
35700 |
s,@kde_servicesdir@,$kde_servicesdir,;t t |
|
35701 |
s,@kde_servicetypesdir@,$kde_servicetypesdir,;t t |
|
35702 |
s,@kde_moduledir@,$kde_moduledir,;t t |
|
35703 |
s,@kdeinitdir@,$kdeinitdir,;t t |
|
35704 |
s,@kde_styledir@,$kde_styledir,;t t |
|
35705 |
s,@kde_widgetdir@,$kde_widgetdir,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35706 |
s,@LIB_KDED@,$LIB_KDED,;t t |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35707 |
s,@LIB_KDECORE@,$LIB_KDECORE,;t t |
35708 |
s,@LIB_KDEUI@,$LIB_KDEUI,;t t |
|
35709 |
s,@LIB_KIO@,$LIB_KIO,;t t |
|
35710 |
s,@LIB_KJS@,$LIB_KJS,;t t |
|
35711 |
s,@LIB_SMB@,$LIB_SMB,;t t |
|
35712 |
s,@LIB_KAB@,$LIB_KAB,;t t |
|
35713 |
s,@LIB_KABC@,$LIB_KABC,;t t |
|
35714 |
s,@LIB_KHTML@,$LIB_KHTML,;t t |
|
35715 |
s,@LIB_KSPELL@,$LIB_KSPELL,;t t |
|
35716 |
s,@LIB_KPARTS@,$LIB_KPARTS,;t t |
|
35717 |
s,@LIB_KDEPRINT@,$LIB_KDEPRINT,;t t |
|
35718 |
s,@LIB_KUTILS@,$LIB_KUTILS,;t t |
|
35719 |
s,@LIB_KDEPIM@,$LIB_KDEPIM,;t t |
|
35720 |
s,@LIB_KIMPROXY@,$LIB_KIMPROXY,;t t |
|
35721 |
s,@LIB_KNEWSTUFF@,$LIB_KNEWSTUFF,;t t |
|
35722 |
s,@LIB_KDNSSD@,$LIB_KDNSSD,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35723 |
s,@LIB_KUNITTEST@,$LIB_KUNITTEST,;t t |
1
by Achim Bohnet
Import upstream version 0.1.1 |
35724 |
s,@LIB_KSYCOCA@,$LIB_KSYCOCA,;t t |
35725 |
s,@LIB_KFILE@,$LIB_KFILE,;t t |
|
35726 |
s,@LIB_KFM@,$LIB_KFM,;t t |
|
35727 |
s,@QTDOCDIR@,$QTDOCDIR,;t t |
|
35728 |
s,@KDE_HAVE_DOT@,$KDE_HAVE_DOT,;t t |
|
35729 |
s,@DOXYGEN@,$DOXYGEN,;t t |
|
35730 |
s,@DOXYGEN_PROJECT_NAME@,$DOXYGEN_PROJECT_NAME,;t t |
|
35731 |
s,@DOXYGEN_PROJECT_NUMBER@,$DOXYGEN_PROJECT_NUMBER,;t t |
|
35732 |
s,@KDE_HAS_DOXYGEN@,$KDE_HAS_DOXYGEN,;t t |
|
35733 |
s,@LIBOBJS@,$LIBOBJS,;t t |
|
35734 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
|
35735 |
s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t |
|
35736 |
s,@libkexif_SUBDIR_included_TRUE@,$libkexif_SUBDIR_included_TRUE,;t t |
|
35737 |
s,@libkexif_SUBDIR_included_FALSE@,$libkexif_SUBDIR_included_FALSE,;t t |
|
35738 |
s,@libkipi_SUBDIR_included_TRUE@,$libkipi_SUBDIR_included_TRUE,;t t |
|
35739 |
s,@libkipi_SUBDIR_included_FALSE@,$libkipi_SUBDIR_included_FALSE,;t t |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35740 |
s,@doc_SUBDIR_included_TRUE@,$doc_SUBDIR_included_TRUE,;t t |
35741 |
s,@doc_SUBDIR_included_FALSE@,$doc_SUBDIR_included_FALSE,;t t |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
35742 |
s,@po_SUBDIR_included_TRUE@,$po_SUBDIR_included_TRUE,;t t |
35743 |
s,@po_SUBDIR_included_FALSE@,$po_SUBDIR_included_FALSE,;t t |
|
35744 |
CEOF |
|
35745 |
||
35746 |
_ACEOF |
|
35747 |
||
35748 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
35749 |
# Split the substitutions into bite-sized pieces for seds with |
|
35750 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
|
35751 |
ac_max_sed_lines=48 |
|
35752 |
ac_sed_frag=1 # Number of current file. |
|
35753 |
ac_beg=1 # First line for current file. |
|
35754 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
|
35755 |
ac_more_lines=: |
|
35756 |
ac_sed_cmds= |
|
35757 |
while $ac_more_lines; do |
|
35758 |
if test $ac_beg -gt 1; then |
|
35759 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
|
35760 |
else |
|
35761 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
|
35762 |
fi |
|
35763 |
if test ! -s $tmp/subs.frag; then |
|
35764 |
ac_more_lines=false |
|
35765 |
else |
|
35766 |
# The purpose of the label and of the branching condition is to |
|
35767 |
# speed up the sed processing (if there are no `@' at all, there |
|
35768 |
# is no need to browse any of the substitutions). |
|
35769 |
# These are the two extra sed commands mentioned above. |
|
35770 |
(echo ':t |
|
35771 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
|
35772 |
if test -z "$ac_sed_cmds"; then |
|
35773 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
|
35774 |
else |
|
35775 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
|
35776 |
fi |
|
35777 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
|
35778 |
ac_beg=$ac_end |
|
35779 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
|
35780 |
fi |
|
35781 |
done |
|
35782 |
if test -z "$ac_sed_cmds"; then |
|
35783 |
ac_sed_cmds=cat |
|
35784 |
fi |
|
35785 |
fi # test -n "$CONFIG_FILES" |
|
35786 |
||
35787 |
_ACEOF |
|
35788 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
35789 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
|
35790 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
35791 |
case $ac_file in |
|
35792 |
- | *:- | *:-:* ) # input from stdin |
|
35793 |
cat >$tmp/stdin |
|
35794 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
35795 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
35796 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
35797 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
35798 |
* ) ac_file_in=$ac_file.in ;; |
|
35799 |
esac |
|
35800 |
||
35801 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
|
35802 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
35803 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
35804 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
35805 |
X"$ac_file" : 'X\(//\)$' \| \ |
|
35806 |
X"$ac_file" : 'X\(/\)' \| \ |
|
35807 |
. : '\(.\)' 2>/dev/null || |
|
35808 |
echo X"$ac_file" | |
|
35809 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
35810 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
35811 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
35812 |
/^X\(\/\).*/{ s//\1/; q; } |
|
35813 |
s/.*/./; q'` |
|
35814 |
{ if $as_mkdir_p; then |
|
35815 |
mkdir -p "$ac_dir" |
|
35816 |
else |
|
35817 |
as_dir="$ac_dir" |
|
35818 |
as_dirs= |
|
35819 |
while test ! -d "$as_dir"; do |
|
35820 |
as_dirs="$as_dir $as_dirs" |
|
35821 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
35822 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
35823 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
35824 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
35825 |
X"$as_dir" : 'X\(/\)' \| \ |
|
35826 |
. : '\(.\)' 2>/dev/null || |
|
35827 |
echo X"$as_dir" | |
|
35828 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
35829 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
35830 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
35831 |
/^X\(\/\).*/{ s//\1/; q; } |
|
35832 |
s/.*/./; q'` |
|
35833 |
done |
|
35834 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
35835 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
35836 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
35837 |
{ (exit 1); exit 1; }; }; } |
|
35838 |
||
35839 |
ac_builddir=. |
|
35840 |
||
35841 |
if test "$ac_dir" != .; then |
|
35842 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
35843 |
# A "../" for each directory in $ac_dir_suffix. |
|
35844 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
35845 |
else |
|
35846 |
ac_dir_suffix= ac_top_builddir= |
|
35847 |
fi |
|
35848 |
||
35849 |
case $srcdir in |
|
35850 |
.) # No --srcdir option. We are building in place. |
|
35851 |
ac_srcdir=. |
|
35852 |
if test -z "$ac_top_builddir"; then |
|
35853 |
ac_top_srcdir=. |
|
35854 |
else |
|
35855 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
35856 |
fi ;; |
|
35857 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
35858 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
35859 |
ac_top_srcdir=$srcdir ;; |
|
35860 |
*) # Relative path. |
|
35861 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
35862 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
35863 |
esac |
|
35864 |
||
35865 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
|
35866 |
# the directories may not exist. |
|
35867 |
case `pwd` in |
|
35868 |
.) ac_abs_builddir="$ac_dir";; |
|
35869 |
*) |
|
35870 |
case "$ac_dir" in |
|
35871 |
.) ac_abs_builddir=`pwd`;; |
|
35872 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
35873 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
35874 |
esac;; |
|
35875 |
esac |
|
35876 |
case $ac_abs_builddir in |
|
35877 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
35878 |
*) |
|
35879 |
case ${ac_top_builddir}. in |
|
35880 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
35881 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
35882 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
35883 |
esac;; |
|
35884 |
esac |
|
35885 |
case $ac_abs_builddir in |
|
35886 |
.) ac_abs_srcdir=$ac_srcdir;; |
|
35887 |
*) |
|
35888 |
case $ac_srcdir in |
|
35889 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
35890 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
35891 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
35892 |
esac;; |
|
35893 |
esac |
|
35894 |
case $ac_abs_builddir in |
|
35895 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
35896 |
*) |
|
35897 |
case $ac_top_srcdir in |
|
35898 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
35899 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
35900 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
35901 |
esac;; |
|
35902 |
esac |
|
35903 |
||
35904 |
||
35905 |
case $INSTALL in |
|
35906 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|
35907 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
|
35908 |
esac |
|
35909 |
||
35910 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
35911 |
# use $as_me), people would be surprised to read: |
|
35912 |
# /* config.h. Generated by config.status. */ |
|
35913 |
if test x"$ac_file" = x-; then |
|
35914 |
configure_input= |
|
35915 |
else |
|
35916 |
configure_input="$ac_file. " |
|
35917 |
fi |
|
35918 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
|
35919 |
sed 's,.*/,,'` by configure." |
|
35920 |
||
35921 |
# First look for the input files in the build tree, otherwise in the |
|
35922 |
# src tree. |
|
35923 |
ac_file_inputs=`IFS=: |
|
35924 |
for f in $ac_file_in; do |
|
35925 |
case $f in |
|
35926 |
-) echo $tmp/stdin ;; |
|
35927 |
[\\/$]*) |
|
35928 |
# Absolute (can't be DOS-style, as IFS=:) |
|
35929 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
35930 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
35931 |
{ (exit 1); exit 1; }; } |
|
35932 |
echo "$f";; |
|
35933 |
*) # Relative |
|
35934 |
if test -f "$f"; then |
|
35935 |
# Build tree |
|
35936 |
echo "$f" |
|
35937 |
elif test -f "$srcdir/$f"; then |
|
35938 |
# Source tree |
|
35939 |
echo "$srcdir/$f" |
|
35940 |
else |
|
35941 |
# /dev/null tree |
|
35942 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
35943 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
35944 |
{ (exit 1); exit 1; }; } |
|
35945 |
fi;; |
|
35946 |
esac |
|
35947 |
done` || { (exit 1); exit 1; } |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
35948 |
|
35949 |
if test x"$ac_file" != x-; then |
|
35950 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
35951 |
echo "$as_me: creating $ac_file" >&6;} |
|
35952 |
rm -f "$ac_file" |
|
35953 |
fi |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
35954 |
_ACEOF |
35955 |
cat >>$CONFIG_STATUS <<_ACEOF |
|
35956 |
sed "$ac_vpsub |
|
35957 |
$extrasub |
|
35958 |
_ACEOF |
|
35959 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
35960 |
:t |
|
35961 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
35962 |
s,@configure_input@,$configure_input,;t t |
|
35963 |
s,@srcdir@,$ac_srcdir,;t t |
|
35964 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
|
35965 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
|
35966 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
|
35967 |
s,@builddir@,$ac_builddir,;t t |
|
35968 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
|
35969 |
s,@top_builddir@,$ac_top_builddir,;t t |
|
35970 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
|
35971 |
s,@INSTALL@,$ac_INSTALL,;t t |
|
35972 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
|
35973 |
rm -f $tmp/stdin |
|
35974 |
if test x"$ac_file" != x-; then |
|
35975 |
mv $tmp/out $ac_file |
|
35976 |
else |
|
35977 |
cat $tmp/out |
|
35978 |
rm -f $tmp/out |
|
35979 |
fi |
|
35980 |
||
35981 |
done |
|
35982 |
_ACEOF |
|
35983 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
35984 |
||
35985 |
# |
|
35986 |
# CONFIG_HEADER section. |
|
35987 |
# |
|
35988 |
||
35989 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
|
35990 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
|
35991 |
# |
|
35992 |
# ac_d sets the value in "#define NAME VALUE" lines. |
|
35993 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
|
35994 |
ac_dB='[ ].*$,\1#\2' |
|
35995 |
ac_dC=' ' |
|
35996 |
ac_dD=',;t' |
|
35997 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
|
35998 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
35999 |
ac_uB='$,\1#\2define\3' |
|
36000 |
ac_uC=' ' |
|
36001 |
ac_uD=',;t' |
|
36002 |
||
36003 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
|
36004 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
36005 |
case $ac_file in |
|
36006 |
- | *:- | *:-:* ) # input from stdin |
|
36007 |
cat >$tmp/stdin |
|
36008 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
36009 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
36010 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
36011 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
36012 |
* ) ac_file_in=$ac_file.in ;; |
|
36013 |
esac |
|
36014 |
||
36015 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
36016 |
echo "$as_me: creating $ac_file" >&6;} |
|
36017 |
||
36018 |
# First look for the input files in the build tree, otherwise in the |
|
36019 |
# src tree. |
|
36020 |
ac_file_inputs=`IFS=: |
|
36021 |
for f in $ac_file_in; do |
|
36022 |
case $f in |
|
36023 |
-) echo $tmp/stdin ;; |
|
36024 |
[\\/$]*) |
|
36025 |
# Absolute (can't be DOS-style, as IFS=:) |
|
36026 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
36027 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
36028 |
{ (exit 1); exit 1; }; } |
|
36029 |
# Do quote $f, to prevent DOS paths from being IFS'd. |
|
36030 |
echo "$f";; |
|
36031 |
*) # Relative |
|
36032 |
if test -f "$f"; then |
|
36033 |
# Build tree |
|
36034 |
echo "$f" |
|
36035 |
elif test -f "$srcdir/$f"; then |
|
36036 |
# Source tree |
|
36037 |
echo "$srcdir/$f" |
|
36038 |
else |
|
36039 |
# /dev/null tree |
|
36040 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
36041 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
36042 |
{ (exit 1); exit 1; }; } |
|
36043 |
fi;; |
|
36044 |
esac |
|
36045 |
done` || { (exit 1); exit 1; } |
|
36046 |
# Remove the trailing spaces. |
|
36047 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
|
36048 |
||
36049 |
_ACEOF |
|
36050 |
||
36051 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
|
36052 |
# `conftest.undefs', that substitutes the proper values into |
|
36053 |
# config.h.in to produce config.h. The first handles `#define' |
|
36054 |
# templates, and the second `#undef' templates. |
|
36055 |
# And first: Protect against being on the right side of a sed subst in |
|
36056 |
# config.status. Protect against being in an unquoted here document |
|
36057 |
# in config.status. |
|
36058 |
rm -f conftest.defines conftest.undefs |
|
36059 |
# Using a here document instead of a string reduces the quoting nightmare. |
|
36060 |
# Putting comments in sed scripts is not portable. |
|
36061 |
# |
|
36062 |
# `end' is used to avoid that the second main sed command (meant for |
|
36063 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
|
36064 |
# See the Autoconf documentation for `clear'. |
|
36065 |
cat >confdef2sed.sed <<\_ACEOF |
|
36066 |
s/[\\&,]/\\&/g |
|
36067 |
s,[\\$`],\\&,g |
|
36068 |
t clear |
|
36069 |
: clear |
|
36070 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
|
36071 |
t end |
|
36072 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
|
36073 |
: end |
|
36074 |
_ACEOF |
|
36075 |
# If some macros were called several times there might be several times |
|
36076 |
# the same #defines, which is useless. Nevertheless, we may not want to |
|
36077 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
|
36078 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
|
36079 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
|
36080 |
rm -f confdef2sed.sed |
|
36081 |
||
36082 |
# This sed command replaces #undef with comments. This is necessary, for |
|
36083 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
|
36084 |
# on some systems where configure will not decide to define it. |
|
36085 |
cat >>conftest.undefs <<\_ACEOF |
|
36086 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
|
36087 |
_ACEOF |
|
36088 |
||
36089 |
# Break up conftest.defines because some shells have a limit on the size |
|
36090 |
# of here documents, and old seds have small limits too (100 cmds). |
|
36091 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
|
36092 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
|
36093 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
|
36094 |
echo ' :' >>$CONFIG_STATUS |
|
36095 |
rm -f conftest.tail |
|
36096 |
while grep . conftest.defines >/dev/null |
|
36097 |
do |
|
36098 |
# Write a limited-size here document to $tmp/defines.sed. |
|
36099 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
|
36100 |
# Speed up: don't consider the non `#define' lines. |
|
36101 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
|
36102 |
# Work around the forget-to-reset-the-flag bug. |
|
36103 |
echo 't clr' >>$CONFIG_STATUS |
|
36104 |
echo ': clr' >>$CONFIG_STATUS |
|
36105 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
|
36106 |
echo 'CEOF |
|
36107 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
|
36108 |
rm -f $tmp/in |
|
36109 |
mv $tmp/out $tmp/in |
|
36110 |
' >>$CONFIG_STATUS |
|
36111 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
|
36112 |
rm -f conftest.defines |
|
36113 |
mv conftest.tail conftest.defines |
|
36114 |
done |
|
36115 |
rm -f conftest.defines |
|
36116 |
echo ' fi # grep' >>$CONFIG_STATUS |
|
36117 |
echo >>$CONFIG_STATUS |
|
36118 |
||
36119 |
# Break up conftest.undefs because some shells have a limit on the size |
|
36120 |
# of here documents, and old seds have small limits too (100 cmds). |
|
36121 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
|
36122 |
rm -f conftest.tail |
|
36123 |
while grep . conftest.undefs >/dev/null |
|
36124 |
do |
|
36125 |
# Write a limited-size here document to $tmp/undefs.sed. |
|
36126 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
|
36127 |
# Speed up: don't consider the non `#undef' |
|
36128 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
|
36129 |
# Work around the forget-to-reset-the-flag bug. |
|
36130 |
echo 't clr' >>$CONFIG_STATUS |
|
36131 |
echo ': clr' >>$CONFIG_STATUS |
|
36132 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
|
36133 |
echo 'CEOF |
|
36134 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
|
36135 |
rm -f $tmp/in |
|
36136 |
mv $tmp/out $tmp/in |
|
36137 |
' >>$CONFIG_STATUS |
|
36138 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
|
36139 |
rm -f conftest.undefs |
|
36140 |
mv conftest.tail conftest.undefs |
|
36141 |
done |
|
36142 |
rm -f conftest.undefs |
|
36143 |
||
36144 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
36145 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
36146 |
# use $as_me), people would be surprised to read: |
|
36147 |
# /* config.h. Generated by config.status. */ |
|
36148 |
if test x"$ac_file" = x-; then |
|
36149 |
echo "/* Generated by configure. */" >$tmp/config.h |
|
36150 |
else |
|
36151 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
|
36152 |
fi |
|
36153 |
cat $tmp/in >>$tmp/config.h |
|
36154 |
rm -f $tmp/in |
|
36155 |
if test x"$ac_file" != x-; then |
|
36156 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
|
36157 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
|
36158 |
echo "$as_me: $ac_file is unchanged" >&6;} |
|
36159 |
else |
|
36160 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
36161 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
36162 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
36163 |
X"$ac_file" : 'X\(//\)$' \| \ |
|
36164 |
X"$ac_file" : 'X\(/\)' \| \ |
|
36165 |
. : '\(.\)' 2>/dev/null || |
|
36166 |
echo X"$ac_file" | |
|
36167 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
36168 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
36169 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
36170 |
/^X\(\/\).*/{ s//\1/; q; } |
|
36171 |
s/.*/./; q'` |
|
36172 |
{ if $as_mkdir_p; then |
|
36173 |
mkdir -p "$ac_dir" |
|
36174 |
else |
|
36175 |
as_dir="$ac_dir" |
|
36176 |
as_dirs= |
|
36177 |
while test ! -d "$as_dir"; do |
|
36178 |
as_dirs="$as_dir $as_dirs" |
|
36179 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
36180 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
36181 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
36182 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
36183 |
X"$as_dir" : 'X\(/\)' \| \ |
|
36184 |
. : '\(.\)' 2>/dev/null || |
|
36185 |
echo X"$as_dir" | |
|
36186 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
36187 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
36188 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
36189 |
/^X\(\/\).*/{ s//\1/; q; } |
|
36190 |
s/.*/./; q'` |
|
36191 |
done |
|
36192 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
36193 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
36194 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
36195 |
{ (exit 1); exit 1; }; }; } |
|
36196 |
||
36197 |
rm -f $ac_file |
|
36198 |
mv $tmp/config.h $ac_file |
|
36199 |
fi |
|
36200 |
else |
|
36201 |
cat $tmp/config.h |
|
36202 |
rm -f $tmp/config.h |
|
36203 |
fi |
|
36204 |
# Compute $ac_file's index in $config_headers. |
|
36205 |
_am_stamp_count=1 |
|
36206 |
for _am_header in $config_headers :; do |
|
36207 |
case $_am_header in |
|
36208 |
$ac_file | $ac_file:* ) |
|
36209 |
break ;; |
|
36210 |
* ) |
|
36211 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
36212 |
esac |
|
36213 |
done |
|
36214 |
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
|
36215 |
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
36216 |
X$ac_file : 'X\(//\)[^/]' \| \ |
|
36217 |
X$ac_file : 'X\(//\)$' \| \ |
|
36218 |
X$ac_file : 'X\(/\)' \| \ |
|
36219 |
. : '\(.\)' 2>/dev/null || |
|
36220 |
echo X$ac_file | |
|
36221 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
36222 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
36223 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
36224 |
/^X\(\/\).*/{ s//\1/; q; } |
|
36225 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
|
36226 |
done |
|
36227 |
_ACEOF |
|
36228 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
36229 |
||
36230 |
# |
|
36231 |
# CONFIG_COMMANDS section. |
|
36232 |
# |
|
36233 |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
|
36234 |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
|
36235 |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
36236 |
ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
|
36237 |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
36238 |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
|
36239 |
X"$ac_dest" : 'X\(//\)$' \| \ |
|
36240 |
X"$ac_dest" : 'X\(/\)' \| \ |
|
36241 |
. : '\(.\)' 2>/dev/null || |
|
36242 |
echo X"$ac_dest" | |
|
36243 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
36244 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
36245 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
36246 |
/^X\(\/\).*/{ s//\1/; q; } |
|
36247 |
s/.*/./; q'` |
|
36248 |
{ if $as_mkdir_p; then |
|
36249 |
mkdir -p "$ac_dir" |
|
36250 |
else |
|
36251 |
as_dir="$ac_dir" |
|
36252 |
as_dirs= |
|
36253 |
while test ! -d "$as_dir"; do |
|
36254 |
as_dirs="$as_dir $as_dirs" |
|
36255 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
36256 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
36257 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
36258 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
36259 |
X"$as_dir" : 'X\(/\)' \| \ |
|
36260 |
. : '\(.\)' 2>/dev/null || |
|
36261 |
echo X"$as_dir" | |
|
36262 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
36263 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
36264 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
36265 |
/^X\(\/\).*/{ s//\1/; q; } |
|
36266 |
s/.*/./; q'` |
|
36267 |
done |
|
36268 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
36269 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
36270 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
36271 |
{ (exit 1); exit 1; }; }; } |
|
36272 |
||
36273 |
ac_builddir=. |
|
36274 |
||
36275 |
if test "$ac_dir" != .; then |
|
36276 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
36277 |
# A "../" for each directory in $ac_dir_suffix. |
|
36278 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
36279 |
else |
|
36280 |
ac_dir_suffix= ac_top_builddir= |
|
36281 |
fi |
|
36282 |
||
36283 |
case $srcdir in |
|
36284 |
.) # No --srcdir option. We are building in place. |
|
36285 |
ac_srcdir=. |
|
36286 |
if test -z "$ac_top_builddir"; then |
|
36287 |
ac_top_srcdir=. |
|
36288 |
else |
|
36289 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
36290 |
fi ;; |
|
36291 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
36292 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
36293 |
ac_top_srcdir=$srcdir ;; |
|
36294 |
*) # Relative path. |
|
36295 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
36296 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
36297 |
esac |
|
36298 |
||
36299 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
|
36300 |
# the directories may not exist. |
|
36301 |
case `pwd` in |
|
36302 |
.) ac_abs_builddir="$ac_dir";; |
|
36303 |
*) |
|
36304 |
case "$ac_dir" in |
|
36305 |
.) ac_abs_builddir=`pwd`;; |
|
36306 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
36307 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
36308 |
esac;; |
|
36309 |
esac |
|
36310 |
case $ac_abs_builddir in |
|
36311 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
36312 |
*) |
|
36313 |
case ${ac_top_builddir}. in |
|
36314 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
36315 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
36316 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
36317 |
esac;; |
|
36318 |
esac |
|
36319 |
case $ac_abs_builddir in |
|
36320 |
.) ac_abs_srcdir=$ac_srcdir;; |
|
36321 |
*) |
|
36322 |
case $ac_srcdir in |
|
36323 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
36324 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
36325 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
36326 |
esac;; |
|
36327 |
esac |
|
36328 |
case $ac_abs_builddir in |
|
36329 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
36330 |
*) |
|
36331 |
case $ac_top_srcdir in |
|
36332 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
36333 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
36334 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
36335 |
esac;; |
|
36336 |
esac |
|
36337 |
||
36338 |
||
36339 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
|
36340 |
echo "$as_me: executing $ac_dest commands" >&6;} |
|
36341 |
case $ac_dest in |
|
36342 |
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
|
36343 |
# Strip MF so we end up with the name of the file. |
|
36344 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
36345 |
# Check whether this is an Automake generated Makefile or not. |
|
36346 |
# We used to match only the files named `Makefile.in', but |
|
36347 |
# some people rename them; so instead we look at the file content. |
|
36348 |
# Grep'ing the first line is not enough: some people post-process |
|
36349 |
# each Makefile.in and add a new line on top of each file to say so. |
|
36350 |
# So let's grep whole file. |
|
36351 |
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
|
36352 |
dirpart=`(dirname "$mf") 2>/dev/null || |
|
36353 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
36354 |
X"$mf" : 'X\(//\)[^/]' \| \ |
|
36355 |
X"$mf" : 'X\(//\)$' \| \ |
|
36356 |
X"$mf" : 'X\(/\)' \| \ |
|
36357 |
. : '\(.\)' 2>/dev/null || |
|
36358 |
echo X"$mf" | |
|
36359 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
36360 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
36361 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
36362 |
/^X\(\/\).*/{ s//\1/; q; } |
|
36363 |
s/.*/./; q'` |
|
36364 |
else |
|
36365 |
continue |
|
36366 |
fi |
|
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
36367 |
# Extract the definition of DEPDIR, am__include, and am__quote |
36368 |
# from the Makefile without running `make'. |
|
36369 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
36370 |
test -z "$DEPDIR" && continue |
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
36371 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
36372 |
test -z "am__include" && continue |
|
36373 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
36374 |
# When using ansi2knr, U may be empty or an underscore; expand it |
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
36375 |
U=`sed -n 's/^U = //p' < "$mf"` |
36376 |
# Find all dependency output files, they are included files with |
|
36377 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
|
36378 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
|
36379 |
# expansion. |
|
36380 |
for file in `sed -n " |
|
36381 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
1
by Achim Bohnet
Import upstream version 0.1.1 |
36382 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
36383 |
# Make sure the directory exists. |
|
36384 |
test -f "$dirpart/$file" && continue |
|
36385 |
fdir=`(dirname "$file") 2>/dev/null || |
|
36386 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
36387 |
X"$file" : 'X\(//\)[^/]' \| \ |
|
36388 |
X"$file" : 'X\(//\)$' \| \ |
|
36389 |
X"$file" : 'X\(/\)' \| \ |
|
36390 |
. : '\(.\)' 2>/dev/null || |
|
36391 |
echo X"$file" | |
|
36392 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
36393 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
36394 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
36395 |
/^X\(\/\).*/{ s//\1/; q; } |
|
36396 |
s/.*/./; q'` |
|
36397 |
{ if $as_mkdir_p; then |
|
36398 |
mkdir -p $dirpart/$fdir |
|
36399 |
else |
|
36400 |
as_dir=$dirpart/$fdir |
|
36401 |
as_dirs= |
|
36402 |
while test ! -d "$as_dir"; do |
|
36403 |
as_dirs="$as_dir $as_dirs" |
|
36404 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
36405 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
36406 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
36407 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
36408 |
X"$as_dir" : 'X\(/\)' \| \ |
|
36409 |
. : '\(.\)' 2>/dev/null || |
|
36410 |
echo X"$as_dir" | |
|
36411 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
36412 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
36413 |
/^X\(\/\/\)$/{ s//\1/; q; } |
|
36414 |
/^X\(\/\).*/{ s//\1/; q; } |
|
36415 |
s/.*/./; q'` |
|
36416 |
done |
|
36417 |
test ! -n "$as_dirs" || mkdir $as_dirs |
|
36418 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
|
36419 |
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
|
36420 |
{ (exit 1); exit 1; }; }; } |
|
36421 |
||
36422 |
# echo "creating $dirpart/$file" |
|
36423 |
echo '# dummy' > "$dirpart/$file" |
|
36424 |
done |
|
36425 |
done |
|
36426 |
;; |
|
36427 |
esac |
|
36428 |
done |
|
36429 |
_ACEOF |
|
36430 |
||
36431 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
36432 |
||
36433 |
{ (exit 0); exit 0; } |
|
36434 |
_ACEOF |
|
36435 |
if test "x$with_fast_perl" = "xyes"; then |
|
36436 |
perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \ |
|
36437 |
|| mv $CONFIG_STATUS.bak $CONFIG_STATUS |
|
36438 |
rm -f $CONFIG_STATUS.bak |
|
36439 |
fi |
|
36440 |
chmod +x $CONFIG_STATUS |
|
36441 |
ac_clean_files=$ac_clean_files_save |
|
36442 |
||
36443 |
||
36444 |
# configure is writing to config.log, and then calls config.status. |
|
36445 |
# config.status does its own redirection, appending to config.log. |
|
36446 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
|
36447 |
# by configure, so config.status won't be able to write to it; its |
|
36448 |
# output is simply discarded. So we exec the FD to /dev/null, |
|
36449 |
# effectively closing config.log, so it can be properly (re)opened and |
|
36450 |
# appended to by config.status. When coming back to configure, we |
|
36451 |
# need to make the FD available again. |
|
36452 |
if test "$no_create" != yes; then |
|
36453 |
ac_cs_success=: |
|
36454 |
ac_config_status_args= |
|
36455 |
test "$silent" = yes && |
|
36456 |
ac_config_status_args="$ac_config_status_args --quiet" |
|
36457 |
exec 5>/dev/null |
|
36458 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
36459 |
exec 5>>config.log |
|
36460 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
36461 |
# would make configure fail if this is the last instruction. |
|
36462 |
$ac_cs_success || { (exit 1); exit 1; } |
|
36463 |
fi |
|
36464 |
||
36465 |
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure |
|
36466 |
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then |
|
36467 |
# And if so, warn when they don't match |
|
36468 |
if test "$kde_libs_prefix" != "$given_prefix"; then |
|
36469 |
# And if kde doesn't know about the prefix yet |
|
36470 |
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null |
|
36471 |
if test $? -ne 0; then |
|
36472 |
echo "" |
|
36473 |
echo "Warning: you chose to install this package in $given_prefix," |
|
36474 |
echo "but KDE was found in $kde_libs_prefix." |
|
36475 |
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring" |
|
36476 |
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix" |
|
36477 |
echo "Then restart KDE." |
|
36478 |
echo "" |
|
36479 |
fi |
|
36480 |
fi |
|
36481 |
fi |
|
36482 |
||
1.1.1
by Jonathan Riddell
Import upstream version 0.1.2 |
36483 |
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then |
36484 |
echo "" |
|
36485 |
echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility" |
|
36486 |
echo "was not included. Therefore, GCC symbol visibility support remains disabled." |
|
36487 |
echo "" |
|
36488 |
echo "For better performance, consider including the Qt visibility supporting patch" |
|
36489 |
echo "located at:" |
|
36490 |
echo "" |
|
36491 |
echo "http://bugs.kde.org/show_bug.cgi?id=109386" |
|
36492 |
echo "" |
|
36493 |
echo "and recompile all of Qt and KDE. Note, this is entirely optional and" |
|
36494 |
echo "everything will continue to work just fine without it." |
|
36495 |
echo "" |
|
36496 |
fi |
|
36497 |
||
1
by Achim Bohnet
Import upstream version 0.1.1 |
36498 |
if test "$all_tests" = "bad"; then |
36499 |
if test ! "$cache_file" = "/dev/null"; then |
|
36500 |
echo "" |
|
36501 |
echo "Please remove the file $cache_file after changing your setup" |
|
36502 |
echo "so that configure will find the changes next time." |
|
36503 |
echo "" |
|
36504 |
fi |
|
36505 |
else |
|
36506 |
echo "" |
|
36507 |
echo "Good - your configure finished. Start make now" |
|
36508 |
echo "" |
|
36509 |
fi |