Commit | Line | Data |
---|---|---|
50850385 TJ |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.53. | |
4 | # | |
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
6 | # Free Software Foundation, Inc. | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | ||
11 | # Check that we are running under the correct shell. | |
12 | SHELL=${CONFIG_SHELL-/bin/sh} | |
13 | ||
14 | case X$ECHO in | |
15 | X*--fallback-echo) | |
16 | # Remove one level of quotation (which was required for Make). | |
17 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
18 | ;; | |
19 | esac | |
20 | ||
21 | echo=${ECHO-echo} | |
22 | if test "X$1" = X--no-reexec; then | |
23 | # Discard the --no-reexec flag, and continue. | |
24 | shift | |
25 | elif test "X$1" = X--fallback-echo; then | |
26 | # Avoid inline document here, it may be left over | |
27 | : | |
28 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | |
29 | # Yippee, $echo works! | |
30 | : | |
31 | else | |
32 | # Restart under the correct shell. | |
33 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
34 | fi | |
35 | ||
36 | if test "X$1" = X--fallback-echo; then | |
37 | # used as fallback echo | |
38 | shift | |
39 | cat <<EOF | |
40 | $* | |
41 | EOF | |
42 | exit 0 | |
43 | fi | |
44 | ||
45 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
46 | # if CDPATH is set. | |
47 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
48 | ||
49 | if test -z "$ECHO"; then | |
50 | if test "X${echo_test_string+set}" != Xset; then | |
51 | # find a string as large as possible, as long as the shell can cope with it | |
52 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
53 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
54 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
55 | echo_test_string="`eval $cmd`" && | |
56 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
57 | then | |
58 | break | |
59 | fi | |
60 | done | |
61 | fi | |
62 | ||
63 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
64 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
65 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
66 | : | |
67 | else | |
68 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
69 | # backslashes. This makes it impossible to quote backslashes using | |
70 | # echo "$something" | sed 's/\\/\\\\/g' | |
71 | # | |
72 | # So, first we look for a working echo in the user's PATH. | |
73 | ||
74 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
75 | for dir in $PATH /usr/ucb; do | |
76 | IFS="$lt_save_ifs" | |
77 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
78 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
79 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
80 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
81 | echo="$dir/echo" | |
82 | break | |
83 | fi | |
84 | done | |
85 | IFS="$lt_save_ifs" | |
86 | ||
87 | if test "X$echo" = Xecho; then | |
88 | # We didn't find a better echo, so look for alternatives. | |
89 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
90 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
91 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
92 | # This shell has a builtin print -r that does the trick. | |
93 | echo='print -r' | |
94 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
95 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
96 | # If we have ksh, try running configure again with it. | |
97 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
98 | export ORIGINAL_CONFIG_SHELL | |
99 | CONFIG_SHELL=/bin/ksh | |
100 | export CONFIG_SHELL | |
101 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
102 | else | |
103 | # Try using printf. | |
104 | echo='printf %s\n' | |
105 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
106 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
107 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
108 | # Cool, printf works | |
109 | : | |
110 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
111 | test "X$echo_testing_string" = 'X\t' && | |
112 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
113 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
114 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
115 | export CONFIG_SHELL | |
116 | SHELL="$CONFIG_SHELL" | |
117 | export SHELL | |
118 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
119 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
120 | test "X$echo_testing_string" = 'X\t' && | |
121 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
122 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
123 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
124 | else | |
125 | # maybe with a smaller string... | |
126 | prev=: | |
127 | ||
128 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
129 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
130 | then | |
131 | break | |
132 | fi | |
133 | prev="$cmd" | |
134 | done | |
135 | ||
136 | if test "$prev" != 'sed 50q "$0"'; then | |
137 | echo_test_string=`eval $prev` | |
138 | export echo_test_string | |
139 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
140 | else | |
141 | # Oops. We lost completely, so just stick with echo. | |
142 | echo=echo | |
143 | fi | |
144 | fi | |
145 | fi | |
146 | fi | |
147 | fi | |
148 | fi | |
149 | ||
150 | # Copy echo and quote the copy suitably for passing to libtool from | |
151 | # the Makefile, instead of quoting the original, which is used later. | |
152 | ECHO=$echo | |
153 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
154 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
155 | fi | |
156 | ||
157 | ||
158 | ||
159 | ||
160 | # Check that we are running under the correct shell. | |
161 | SHELL=${CONFIG_SHELL-/bin/sh} | |
162 | ||
163 | case X$ECHO in | |
164 | X*--fallback-echo) | |
165 | # Remove one level of quotation (which was required for Make). | |
166 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
167 | ;; | |
168 | esac | |
169 | ||
170 | echo=${ECHO-echo} | |
171 | if test "X$1" = X--no-reexec; then | |
172 | # Discard the --no-reexec flag, and continue. | |
173 | shift | |
174 | elif test "X$1" = X--fallback-echo; then | |
175 | # Avoid inline document here, it may be left over | |
176 | : | |
177 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | |
178 | # Yippee, $echo works! | |
179 | : | |
180 | else | |
181 | # Restart under the correct shell. | |
182 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
183 | fi | |
184 | ||
185 | if test "X$1" = X--fallback-echo; then | |
186 | # used as fallback echo | |
187 | shift | |
188 | cat <<EOF | |
189 | $* | |
190 | EOF | |
191 | exit 0 | |
192 | fi | |
193 | ||
194 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
195 | # if CDPATH is set. | |
196 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
197 | ||
198 | if test -z "$ECHO"; then | |
199 | if test "X${echo_test_string+set}" != Xset; then | |
200 | # find a string as large as possible, as long as the shell can cope with it | |
201 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
202 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
203 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
204 | echo_test_string="`eval $cmd`" && | |
205 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
206 | then | |
207 | break | |
208 | fi | |
209 | done | |
210 | fi | |
211 | ||
212 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
213 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
214 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
215 | : | |
216 | else | |
217 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
218 | # backslashes. This makes it impossible to quote backslashes using | |
219 | # echo "$something" | sed 's/\\/\\\\/g' | |
220 | # | |
221 | # So, first we look for a working echo in the user's PATH. | |
222 | ||
223 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
224 | for dir in $PATH /usr/ucb; do | |
225 | IFS="$lt_save_ifs" | |
226 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
227 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
228 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
229 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
230 | echo="$dir/echo" | |
231 | break | |
232 | fi | |
233 | done | |
234 | IFS="$lt_save_ifs" | |
235 | ||
236 | if test "X$echo" = Xecho; then | |
237 | # We didn't find a better echo, so look for alternatives. | |
238 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
239 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
240 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
241 | # This shell has a builtin print -r that does the trick. | |
242 | echo='print -r' | |
243 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
244 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
245 | # If we have ksh, try running configure again with it. | |
246 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export ORIGINAL_CONFIG_SHELL | |
248 | CONFIG_SHELL=/bin/ksh | |
249 | export CONFIG_SHELL | |
250 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
251 | else | |
252 | # Try using printf. | |
253 | echo='printf %s\n' | |
254 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
255 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
256 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
257 | # Cool, printf works | |
258 | : | |
259 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
260 | test "X$echo_testing_string" = 'X\t' && | |
261 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
262 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
263 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
264 | export CONFIG_SHELL | |
265 | SHELL="$CONFIG_SHELL" | |
266 | export SHELL | |
267 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
268 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
269 | test "X$echo_testing_string" = 'X\t' && | |
270 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
271 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
272 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
273 | else | |
274 | # maybe with a smaller string... | |
275 | prev=: | |
276 | ||
277 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
278 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
279 | then | |
280 | break | |
281 | fi | |
282 | prev="$cmd" | |
283 | done | |
284 | ||
285 | if test "$prev" != 'sed 50q "$0"'; then | |
286 | echo_test_string=`eval $prev` | |
287 | export echo_test_string | |
288 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
289 | else | |
290 | # Oops. We lost completely, so just stick with echo. | |
291 | echo=echo | |
292 | fi | |
293 | fi | |
294 | fi | |
295 | fi | |
296 | fi | |
297 | fi | |
298 | ||
299 | # Copy echo and quote the copy suitably for passing to libtool from | |
300 | # the Makefile, instead of quoting the original, which is used later. | |
301 | ECHO=$echo | |
302 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
303 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
304 | fi | |
305 | ||
306 | ||
307 | ||
308 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
309 | as_expr=expr | |
310 | else | |
311 | as_expr=false | |
312 | fi | |
313 | ||
314 | ||
315 | ## --------------------- ## | |
316 | ## M4sh Initialization. ## | |
317 | ## --------------------- ## | |
318 | ||
319 | # Be Bourne compatible | |
320 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
321 | emulate sh | |
322 | NULLCMD=: | |
323 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
324 | set -o posix | |
325 | fi | |
326 | ||
327 | # NLS nuisances. | |
328 | # Support unset when possible. | |
329 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
330 | as_unset=unset | |
331 | else | |
332 | as_unset=false | |
333 | fi | |
334 | ||
335 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
336 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
337 | { LANG=C; export LANG; } | |
338 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
339 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
340 | { LC_ALL=C; export LC_ALL; } | |
341 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
342 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
343 | { LC_TIME=C; export LC_TIME; } | |
344 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
345 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
346 | { LC_CTYPE=C; export LC_CTYPE; } | |
347 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
348 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
349 | { LANGUAGE=C; export LANGUAGE; } | |
350 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
351 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
352 | { LC_COLLATE=C; export LC_COLLATE; } | |
353 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
354 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
355 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
356 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
357 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
358 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
359 | ||
360 | ||
361 | # Name of the executable. | |
362 | as_me=`(basename "$0") 2>/dev/null || | |
363 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
364 | X"$0" : 'X\(//\)$' \| \ | |
365 | X"$0" : 'X\(/\)$' \| \ | |
366 | . : '\(.\)' 2>/dev/null || | |
367 | echo X/"$0" | | |
368 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
369 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
370 | /^X\/\(\/\).*/{ s//\1/; q; } | |
371 | s/.*/./; q'` | |
372 | ||
373 | # PATH needs CR, and LINENO needs CR and PATH. | |
374 | # Avoid depending upon Character Ranges. | |
375 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
376 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
377 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
378 | as_cr_digits='0123456789' | |
379 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
380 | ||
381 | # The user is always right. | |
382 | if test "${PATH_SEPARATOR+set}" != set; then | |
383 | echo "#! /bin/sh" >conftest.sh | |
384 | echo "exit 0" >>conftest.sh | |
385 | chmod +x conftest.sh | |
386 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
387 | PATH_SEPARATOR=';' | |
388 | else | |
389 | PATH_SEPARATOR=: | |
390 | fi | |
391 | rm -f conftest.sh | |
392 | fi | |
393 | ||
394 | ||
395 | as_lineno_1=$LINENO | |
396 | as_lineno_2=$LINENO | |
397 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
398 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
399 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
400 | # Find who we are. Look in the path if we contain no path at all | |
401 | # relative or not. | |
402 | case $0 in | |
403 | *[\\/]* ) as_myself=$0 ;; | |
404 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
405 | for as_dir in $PATH | |
406 | do | |
407 | IFS=$as_save_IFS | |
408 | test -z "$as_dir" && as_dir=. | |
409 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
410 | done | |
411 | ||
412 | ;; | |
413 | esac | |
414 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
415 | # in which case we are not to be found in the path. | |
416 | if test "x$as_myself" = x; then | |
417 | as_myself=$0 | |
418 | fi | |
419 | if test ! -f "$as_myself"; then | |
420 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
421 | { (exit 1); exit 1; }; } | |
422 | fi | |
423 | case $CONFIG_SHELL in | |
424 | '') | |
425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
426 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
427 | do | |
428 | IFS=$as_save_IFS | |
429 | test -z "$as_dir" && as_dir=. | |
430 | for as_base in sh bash ksh sh5; do | |
431 | case $as_dir in | |
432 | /*) | |
433 | if ("$as_dir/$as_base" -c ' | |
434 | as_lineno_1=$LINENO | |
435 | as_lineno_2=$LINENO | |
436 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
437 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
438 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
439 | CONFIG_SHELL=$as_dir/$as_base | |
440 | export CONFIG_SHELL | |
441 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
442 | fi;; | |
443 | esac | |
444 | done | |
445 | done | |
446 | ;; | |
447 | esac | |
448 | ||
449 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
450 | # uniformly replaced by the line number. The first 'sed' inserts a | |
451 | # line-number line before each line; the second 'sed' does the real | |
452 | # work. The second script uses 'N' to pair each line-number line | |
453 | # with the numbered line, and appends trailing '-' during | |
454 | # substitution so that $LINENO is not a special case at line end. | |
455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
456 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
457 | sed '=' <$as_myself | | |
458 | sed ' | |
459 | N | |
460 | s,$,-, | |
461 | : loop | |
462 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
463 | t loop | |
464 | s,-$,, | |
465 | s,^['$as_cr_digits']*\n,, | |
466 | ' >$as_me.lineno && | |
467 | chmod +x $as_me.lineno || | |
468 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
469 | { (exit 1); exit 1; }; } | |
470 | ||
471 | # Don't try to exec as it changes $[0], causing all sort of problems | |
472 | # (the dirname of $[0] is not the place where we might find the | |
473 | # original and so on. Autoconf is especially sensible to this). | |
474 | . ./$as_me.lineno | |
475 | # Exit status is that of the last command. | |
476 | exit | |
477 | } | |
478 | ||
479 | ||
480 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
481 | *c*,-n*) ECHO_N= ECHO_C=' | |
482 | ' ECHO_T=' ' ;; | |
483 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
484 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
485 | esac | |
486 | ||
487 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
488 | as_expr=expr | |
489 | else | |
490 | as_expr=false | |
491 | fi | |
492 | ||
493 | rm -f conf$$ conf$$.exe conf$$.file | |
494 | echo >conf$$.file | |
495 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
496 | # We could just check for DJGPP; but this test a) works b) is more generic | |
497 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
498 | if test -f conf$$.exe; then | |
499 | # Don't use ln at all; we don't have any links | |
500 | as_ln_s='cp -p' | |
501 | else | |
502 | as_ln_s='ln -s' | |
503 | fi | |
504 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
505 | as_ln_s=ln | |
506 | else | |
507 | as_ln_s='cp -p' | |
508 | fi | |
509 | rm -f conf$$ conf$$.exe conf$$.file | |
510 | ||
511 | as_executable_p="test -f" | |
512 | ||
513 | # Sed expression to map a string onto a valid CPP name. | |
514 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
515 | ||
516 | # Sed expression to map a string onto a valid variable name. | |
517 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
518 | ||
519 | ||
520 | # IFS | |
521 | # We need space, tab and new line, in precisely that order. | |
522 | as_nl=' | |
523 | ' | |
524 | IFS=" $as_nl" | |
525 | ||
526 | # CDPATH. | |
527 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
528 | ||
529 | ||
530 | # Name of the host. | |
531 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
532 | # so uname gets run too. | |
533 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
534 | ||
535 | exec 6>&1 | |
536 | ||
537 | # | |
538 | # Initializations. | |
539 | # | |
540 | ac_default_prefix=/usr/local | |
541 | cross_compiling=no | |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
545 | SHELL=${CONFIG_SHELL-/bin/sh} | |
546 | ||
547 | # Maximum number of lines to put in a shell here document. | |
548 | # This variable seems obsolete. It should probably be removed, and | |
549 | # only ac_max_sed_lines should be used. | |
550 | : ${ac_max_here_lines=38} | |
551 | ||
552 | # Identity of this package. | |
553 | PACKAGE_NAME= | |
554 | PACKAGE_TARNAME= | |
555 | PACKAGE_VERSION= | |
556 | PACKAGE_STRING= | |
557 | PACKAGE_BUGREPORT= | |
558 | ||
559 | ac_unique_file="acinclude.m4" | |
560 | ac_default_prefix=/usr/local | |
561 | # Factoring default headers for most tests. | |
562 | ac_includes_default="\ | |
563 | #include <stdio.h> | |
564 | #if HAVE_SYS_TYPES_H | |
565 | # include <sys/types.h> | |
566 | #endif | |
567 | #if HAVE_SYS_STAT_H | |
568 | # include <sys/stat.h> | |
569 | #endif | |
570 | #if STDC_HEADERS | |
571 | # include <stdlib.h> | |
572 | # include <stddef.h> | |
573 | #else | |
574 | # if HAVE_STDLIB_H | |
575 | # include <stdlib.h> | |
576 | # endif | |
577 | #endif | |
578 | #if HAVE_STRING_H | |
579 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
580 | # include <memory.h> | |
581 | # endif | |
582 | # include <string.h> | |
583 | #endif | |
584 | #if HAVE_STRINGS_H | |
585 | # include <strings.h> | |
586 | #endif | |
587 | #if HAVE_INTTYPES_H | |
588 | # include <inttypes.h> | |
589 | #else | |
590 | # if HAVE_STDINT_H | |
591 | # include <stdint.h> | |
592 | # endif | |
593 | #endif | |
594 | #if HAVE_UNISTD_H | |
595 | # include <unistd.h> | |
596 | #endif" | |
597 | ||
598 | ||
599 | # Initialize some variables set by options. | |
600 | ac_init_help= | |
601 | ac_init_version=false | |
602 | # The variables have the same names as the options, with | |
603 | # dashes changed to underlines. | |
604 | cache_file=/dev/null | |
605 | exec_prefix=NONE | |
606 | no_create= | |
607 | no_recursion= | |
608 | prefix=NONE | |
609 | program_prefix=NONE | |
610 | program_suffix=NONE | |
611 | program_transform_name=s,x,x, | |
612 | silent= | |
613 | site= | |
614 | srcdir= | |
615 | verbose= | |
616 | x_includes=NONE | |
617 | x_libraries=NONE | |
618 | ||
619 | # Installation directory options. | |
620 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
621 | # and all the variables that are supposed to be based on exec_prefix | |
622 | # by default will actually change. | |
623 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
624 | bindir='${exec_prefix}/bin' | |
625 | sbindir='${exec_prefix}/sbin' | |
626 | libexecdir='${exec_prefix}/libexec' | |
627 | datadir='${prefix}/share' | |
628 | sysconfdir='${prefix}/etc' | |
629 | sharedstatedir='${prefix}/com' | |
630 | localstatedir='${prefix}/var' | |
631 | libdir='${exec_prefix}/lib' | |
632 | includedir='${prefix}/include' | |
633 | oldincludedir='/usr/include' | |
634 | infodir='${prefix}/info' | |
635 | mandir='${prefix}/man' | |
636 | ||
637 | ac_prev= | |
638 | for ac_option | |
639 | do | |
640 | # If the previous option needs an argument, assign it. | |
641 | if test -n "$ac_prev"; then | |
642 | eval "$ac_prev=\$ac_option" | |
643 | ac_prev= | |
644 | continue | |
645 | fi | |
646 | ||
647 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
648 | ||
649 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
650 | ||
651 | case $ac_option in | |
652 | ||
653 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
654 | ac_prev=bindir ;; | |
655 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
656 | bindir=$ac_optarg ;; | |
657 | ||
658 | -build | --build | --buil | --bui | --bu) | |
659 | ac_prev=build_alias ;; | |
660 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
661 | build_alias=$ac_optarg ;; | |
662 | ||
663 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
664 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
665 | ac_prev=cache_file ;; | |
666 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
667 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
668 | cache_file=$ac_optarg ;; | |
669 | ||
670 | --config-cache | -C) | |
671 | cache_file=config.cache ;; | |
672 | ||
673 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
674 | ac_prev=datadir ;; | |
675 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
676 | | --da=*) | |
677 | datadir=$ac_optarg ;; | |
678 | ||
679 | -disable-* | --disable-*) | |
680 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
681 | # Reject names that are not valid shell variable names. | |
682 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
683 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
684 | { (exit 1); exit 1; }; } | |
685 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
686 | eval "enable_$ac_feature=no" ;; | |
687 | ||
688 | -enable-* | --enable-*) | |
689 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
690 | # Reject names that are not valid shell variable names. | |
691 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
692 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
693 | { (exit 1); exit 1; }; } | |
694 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
695 | case $ac_option in | |
696 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
697 | *) ac_optarg=yes ;; | |
698 | esac | |
699 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
700 | ||
701 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
702 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
703 | | --exec | --exe | --ex) | |
704 | ac_prev=exec_prefix ;; | |
705 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
706 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
707 | | --exec=* | --exe=* | --ex=*) | |
708 | exec_prefix=$ac_optarg ;; | |
709 | ||
710 | -gas | --gas | --ga | --g) | |
711 | # Obsolete; use --with-gas. | |
712 | with_gas=yes ;; | |
713 | ||
714 | -help | --help | --hel | --he | -h) | |
715 | ac_init_help=long ;; | |
716 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
717 | ac_init_help=recursive ;; | |
718 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
719 | ac_init_help=short ;; | |
720 | ||
721 | -host | --host | --hos | --ho) | |
722 | ac_prev=host_alias ;; | |
723 | -host=* | --host=* | --hos=* | --ho=*) | |
724 | host_alias=$ac_optarg ;; | |
725 | ||
726 | -includedir | --includedir | --includedi | --included | --include \ | |
727 | | --includ | --inclu | --incl | --inc) | |
728 | ac_prev=includedir ;; | |
729 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
730 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
731 | includedir=$ac_optarg ;; | |
732 | ||
733 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
734 | ac_prev=infodir ;; | |
735 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
736 | infodir=$ac_optarg ;; | |
737 | ||
738 | -libdir | --libdir | --libdi | --libd) | |
739 | ac_prev=libdir ;; | |
740 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
741 | libdir=$ac_optarg ;; | |
742 | ||
743 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
744 | | --libexe | --libex | --libe) | |
745 | ac_prev=libexecdir ;; | |
746 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
747 | | --libexe=* | --libex=* | --libe=*) | |
748 | libexecdir=$ac_optarg ;; | |
749 | ||
750 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
751 | | --localstate | --localstat | --localsta | --localst \ | |
752 | | --locals | --local | --loca | --loc | --lo) | |
753 | ac_prev=localstatedir ;; | |
754 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
755 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
756 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
757 | localstatedir=$ac_optarg ;; | |
758 | ||
759 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
760 | ac_prev=mandir ;; | |
761 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
762 | mandir=$ac_optarg ;; | |
763 | ||
764 | -nfp | --nfp | --nf) | |
765 | # Obsolete; use --without-fp. | |
766 | with_fp=no ;; | |
767 | ||
768 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
769 | | --no-cr | --no-c | -n) | |
770 | no_create=yes ;; | |
771 | ||
772 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
773 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
774 | no_recursion=yes ;; | |
775 | ||
776 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
777 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
778 | | --oldin | --oldi | --old | --ol | --o) | |
779 | ac_prev=oldincludedir ;; | |
780 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
781 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
782 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
783 | oldincludedir=$ac_optarg ;; | |
784 | ||
785 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
786 | ac_prev=prefix ;; | |
787 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
788 | prefix=$ac_optarg ;; | |
789 | ||
790 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
791 | | --program-pre | --program-pr | --program-p) | |
792 | ac_prev=program_prefix ;; | |
793 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
794 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
795 | program_prefix=$ac_optarg ;; | |
796 | ||
797 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
798 | | --program-suf | --program-su | --program-s) | |
799 | ac_prev=program_suffix ;; | |
800 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
801 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
802 | program_suffix=$ac_optarg ;; | |
803 | ||
804 | -program-transform-name | --program-transform-name \ | |
805 | | --program-transform-nam | --program-transform-na \ | |
806 | | --program-transform-n | --program-transform- \ | |
807 | | --program-transform | --program-transfor \ | |
808 | | --program-transfo | --program-transf \ | |
809 | | --program-trans | --program-tran \ | |
810 | | --progr-tra | --program-tr | --program-t) | |
811 | ac_prev=program_transform_name ;; | |
812 | -program-transform-name=* | --program-transform-name=* \ | |
813 | | --program-transform-nam=* | --program-transform-na=* \ | |
814 | | --program-transform-n=* | --program-transform-=* \ | |
815 | | --program-transform=* | --program-transfor=* \ | |
816 | | --program-transfo=* | --program-transf=* \ | |
817 | | --program-trans=* | --program-tran=* \ | |
818 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
819 | program_transform_name=$ac_optarg ;; | |
820 | ||
821 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
822 | | -silent | --silent | --silen | --sile | --sil) | |
823 | silent=yes ;; | |
824 | ||
825 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
826 | ac_prev=sbindir ;; | |
827 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
828 | | --sbi=* | --sb=*) | |
829 | sbindir=$ac_optarg ;; | |
830 | ||
831 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
832 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
833 | | --sharedst | --shareds | --shared | --share | --shar \ | |
834 | | --sha | --sh) | |
835 | ac_prev=sharedstatedir ;; | |
836 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
837 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
838 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
839 | | --sha=* | --sh=*) | |
840 | sharedstatedir=$ac_optarg ;; | |
841 | ||
842 | -site | --site | --sit) | |
843 | ac_prev=site ;; | |
844 | -site=* | --site=* | --sit=*) | |
845 | site=$ac_optarg ;; | |
846 | ||
847 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
848 | ac_prev=srcdir ;; | |
849 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
850 | srcdir=$ac_optarg ;; | |
851 | ||
852 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
853 | | --syscon | --sysco | --sysc | --sys | --sy) | |
854 | ac_prev=sysconfdir ;; | |
855 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
856 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
857 | sysconfdir=$ac_optarg ;; | |
858 | ||
859 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
860 | ac_prev=target_alias ;; | |
861 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
862 | target_alias=$ac_optarg ;; | |
863 | ||
864 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
865 | verbose=yes ;; | |
866 | ||
867 | -version | --version | --versio | --versi | --vers | -V) | |
868 | ac_init_version=: ;; | |
869 | ||
870 | -with-* | --with-*) | |
871 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
872 | # Reject names that are not valid shell variable names. | |
873 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
874 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
875 | { (exit 1); exit 1; }; } | |
876 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
877 | case $ac_option in | |
878 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
879 | *) ac_optarg=yes ;; | |
880 | esac | |
881 | eval "with_$ac_package='$ac_optarg'" ;; | |
882 | ||
883 | -without-* | --without-*) | |
884 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
885 | # Reject names that are not valid shell variable names. | |
886 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
887 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
888 | { (exit 1); exit 1; }; } | |
889 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
890 | eval "with_$ac_package=no" ;; | |
891 | ||
892 | --x) | |
893 | # Obsolete; use --with-x. | |
894 | with_x=yes ;; | |
895 | ||
896 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
897 | | --x-incl | --x-inc | --x-in | --x-i) | |
898 | ac_prev=x_includes ;; | |
899 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
900 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
901 | x_includes=$ac_optarg ;; | |
902 | ||
903 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
904 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
905 | ac_prev=x_libraries ;; | |
906 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
907 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
908 | x_libraries=$ac_optarg ;; | |
909 | ||
910 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
911 | Try \`$0 --help' for more information." >&2 | |
912 | { (exit 1); exit 1; }; } | |
913 | ;; | |
914 | ||
915 | *=*) | |
916 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
917 | # Reject names that are not valid shell variable names. | |
918 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
919 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
920 | { (exit 1); exit 1; }; } | |
921 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
922 | eval "$ac_envvar='$ac_optarg'" | |
923 | export $ac_envvar ;; | |
924 | ||
925 | *) | |
926 | # FIXME: should be removed in autoconf 3.0. | |
927 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
928 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
929 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
930 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
931 | ;; | |
932 | ||
933 | esac | |
934 | done | |
935 | ||
936 | if test -n "$ac_prev"; then | |
937 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
938 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
939 | { (exit 1); exit 1; }; } | |
940 | fi | |
941 | ||
942 | # Be sure to have absolute paths. | |
943 | for ac_var in exec_prefix prefix | |
944 | do | |
945 | eval ac_val=$`echo $ac_var` | |
946 | case $ac_val in | |
947 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
948 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
949 | { (exit 1); exit 1; }; };; | |
950 | esac | |
951 | done | |
952 | ||
953 | # Be sure to have absolute paths. | |
954 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
955 | localstatedir libdir includedir oldincludedir infodir mandir | |
956 | do | |
957 | eval ac_val=$`echo $ac_var` | |
958 | case $ac_val in | |
959 | [\\/$]* | ?:[\\/]* ) ;; | |
960 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
961 | { (exit 1); exit 1; }; };; | |
962 | esac | |
963 | done | |
964 | ||
965 | # There might be people who depend on the old broken behavior: `$host' | |
966 | # used to hold the argument of --host etc. | |
967 | # FIXME: To remove some day. | |
968 | build=$build_alias | |
969 | host=$host_alias | |
970 | target=$target_alias | |
971 | ||
972 | # FIXME: To remove some day. | |
973 | if test "x$host_alias" != x; then | |
974 | if test "x$build_alias" = x; then | |
975 | cross_compiling=maybe | |
976 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
977 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
978 | elif test "x$build_alias" != "x$host_alias"; then | |
979 | cross_compiling=yes | |
980 | fi | |
981 | fi | |
982 | ||
983 | ac_tool_prefix= | |
984 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
985 | ||
986 | test "$silent" = yes && exec 6>/dev/null | |
987 | ||
988 | ||
989 | # Find the source files, if location was not specified. | |
990 | if test -z "$srcdir"; then | |
991 | ac_srcdir_defaulted=yes | |
992 | # Try the directory containing this script, then its parent. | |
993 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
994 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
995 | X"$0" : 'X\(//\)[^/]' \| \ | |
996 | X"$0" : 'X\(//\)$' \| \ | |
997 | X"$0" : 'X\(/\)' \| \ | |
998 | . : '\(.\)' 2>/dev/null || | |
999 | echo X"$0" | | |
1000 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
1001 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
1002 | /^X\(\/\/\)$/{ s//\1/; q; } | |
1003 | /^X\(\/\).*/{ s//\1/; q; } | |
1004 | s/.*/./; q'` | |
1005 | srcdir=$ac_confdir | |
1006 | if test ! -r $srcdir/$ac_unique_file; then | |
1007 | srcdir=.. | |
1008 | fi | |
1009 | else | |
1010 | ac_srcdir_defaulted=no | |
1011 | fi | |
1012 | if test ! -r $srcdir/$ac_unique_file; then | |
1013 | if test "$ac_srcdir_defaulted" = yes; then | |
1014 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
1015 | { (exit 1); exit 1; }; } | |
1016 | else | |
1017 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1018 | { (exit 1); exit 1; }; } | |
1019 | fi | |
1020 | fi | |
1021 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
1022 | ac_env_build_alias_set=${build_alias+set} | |
1023 | ac_env_build_alias_value=$build_alias | |
1024 | ac_cv_env_build_alias_set=${build_alias+set} | |
1025 | ac_cv_env_build_alias_value=$build_alias | |
1026 | ac_env_host_alias_set=${host_alias+set} | |
1027 | ac_env_host_alias_value=$host_alias | |
1028 | ac_cv_env_host_alias_set=${host_alias+set} | |
1029 | ac_cv_env_host_alias_value=$host_alias | |
1030 | ac_env_target_alias_set=${target_alias+set} | |
1031 | ac_env_target_alias_value=$target_alias | |
1032 | ac_cv_env_target_alias_set=${target_alias+set} | |
1033 | ac_cv_env_target_alias_value=$target_alias | |
1034 | ac_env_CC_set=${CC+set} | |
1035 | ac_env_CC_value=$CC | |
1036 | ac_cv_env_CC_set=${CC+set} | |
1037 | ac_cv_env_CC_value=$CC | |
1038 | ac_env_CFLAGS_set=${CFLAGS+set} | |
1039 | ac_env_CFLAGS_value=$CFLAGS | |
1040 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
1041 | ac_cv_env_CFLAGS_value=$CFLAGS | |
1042 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
1043 | ac_env_LDFLAGS_value=$LDFLAGS | |
1044 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
1045 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
1046 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
1047 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
1048 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
1049 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
1050 | ac_env_CXX_set=${CXX+set} | |
1051 | ac_env_CXX_value=$CXX | |
1052 | ac_cv_env_CXX_set=${CXX+set} | |
1053 | ac_cv_env_CXX_value=$CXX | |
1054 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
1055 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
1056 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
1057 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
1058 | ac_env_CPP_set=${CPP+set} | |
1059 | ac_env_CPP_value=$CPP | |
1060 | ac_cv_env_CPP_set=${CPP+set} | |
1061 | ac_cv_env_CPP_value=$CPP | |
1062 | ac_env_CXXCPP_set=${CXXCPP+set} | |
1063 | ac_env_CXXCPP_value=$CXXCPP | |
1064 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
1065 | ac_cv_env_CXXCPP_value=$CXXCPP | |
1066 | ||
1067 | # | |
1068 | # Report the --help message. | |
1069 | # | |
1070 | if test "$ac_init_help" = "long"; then | |
1071 | # Omit some internal or obsolete options to make the list less imposing. | |
1072 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1073 | cat <<_ACEOF | |
1074 | \`configure' configures this package to adapt to many kinds of systems. | |
1075 | ||
1076 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1077 | ||
1078 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1079 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1080 | ||
1081 | Defaults for the options are specified in brackets. | |
1082 | ||
1083 | Configuration: | |
1084 | -h, --help display this help and exit | |
1085 | --help=short display options specific to this package | |
1086 | --help=recursive display the short help of all the included packages | |
1087 | -V, --version display version information and exit | |
1088 | -q, --quiet, --silent do not print \`checking...' messages | |
1089 | --cache-file=FILE cache test results in FILE [disabled] | |
1090 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1091 | -n, --no-create do not create output files | |
1092 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1093 | ||
1094 | _ACEOF | |
1095 | ||
1096 | cat <<_ACEOF | |
1097 | Installation directories: | |
1098 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1099 | [$ac_default_prefix] | |
1100 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1101 | [PREFIX] | |
1102 | ||
1103 | By default, \`make install' will install all the files in | |
1104 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1105 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1106 | for instance \`--prefix=\$HOME'. | |
1107 | ||
1108 | For better control, use the options below. | |
1109 | ||
1110 | Fine tuning of the installation directories: | |
1111 | --bindir=DIR user executables [EPREFIX/bin] | |
1112 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1113 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1114 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
1115 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1116 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1117 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1118 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1119 | --includedir=DIR C header files [PREFIX/include] | |
1120 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1121 | --infodir=DIR info documentation [PREFIX/info] | |
1122 | --mandir=DIR man documentation [PREFIX/man] | |
1123 | _ACEOF | |
1124 | ||
1125 | cat <<\_ACEOF | |
1126 | ||
1127 | Program names: | |
1128 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1129 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1130 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1131 | ||
1132 | System types: | |
1133 | --build=BUILD configure for building on BUILD [guessed] | |
1134 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1135 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1136 | _ACEOF | |
1137 | fi | |
1138 | ||
1139 | if test -n "$ac_init_help"; then | |
1140 | ||
1141 | cat <<\_ACEOF | |
1142 | ||
1143 | Optional Features: | |
1144 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1145 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1146 | --disable-fast-perl disable fast Makefile generation (needs perl) | |
1147 | --enable-debug enables debug symbols default=no | |
1148 | --disable-debug disables debug output and debug symbols default=no | |
1149 | --enable-strict compiles with strict compiler options (may not work!) | |
1150 | --enable-profile creates profiling infos default=no | |
1151 | --disable-dependency-tracking Speeds up one-time builds | |
1152 | --enable-dependency-tracking Do not reject slow dependency extractors | |
1153 | --enable-final build size optimized apps (experimental - needs lots of memory) | |
1154 | --disable-closure don't delay template instantiation | |
1155 | --enable-shared[=PKGS] | |
1156 | build shared libraries [default=yes] | |
1157 | --enable-static[=PKGS] | |
1158 | build static libraries [default=no] | |
1159 | --enable-fast-install[=PKGS] | |
1160 | optimize for fast installation [default=yes] | |
1161 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1162 | ||
1163 | Optional Packages: | |
1164 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1165 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1166 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1167 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1168 | both] | |
1169 | --with-tags=TAGS include additional configurations [CXX,GCJ] | |
1170 | --with-extra-includes=DIR | |
1171 | adds non standard include paths | |
1172 | --with-extra-libs=DIR adds non standard library paths | |
1173 | ||
1174 | Some influential environment variables: | |
1175 | CC C compiler command | |
1176 | CFLAGS C compiler flags | |
1177 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1178 | nonstandard directory <lib dir> | |
1179 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1180 | headers in a nonstandard directory <include dir> | |
1181 | CXX C++ compiler command | |
1182 | CXXFLAGS C++ compiler flags | |
1183 | CPP C preprocessor | |
1184 | CXXCPP C++ preprocessor | |
1185 | ||
1186 | Use these variables to override the choices made by `configure' or to help | |
1187 | it to find libraries and programs with nonstandard names/locations. | |
1188 | ||
1189 | _ACEOF | |
1190 | fi | |
1191 | ||
1192 | if test "$ac_init_help" = "recursive"; then | |
1193 | # If there are subdirs, report their specific --help. | |
1194 | ac_popdir=`pwd` | |
1195 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1196 | test -d $ac_dir || continue | |
1197 | ac_builddir=. | |
1198 | ||
1199 | if test "$ac_dir" != .; then | |
1200 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1201 | # A "../" for each directory in $ac_dir_suffix. | |
1202 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1203 | else | |
1204 | ac_dir_suffix= ac_top_builddir= | |
1205 | fi | |
1206 | ||
1207 | case $srcdir in | |
1208 | .) # No --srcdir option. We are building in place. | |
1209 | ac_srcdir=. | |
1210 | if test -z "$ac_top_builddir"; then | |
1211 | ac_top_srcdir=. | |
1212 | else | |
1213 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1214 | fi ;; | |
1215 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1216 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1217 | ac_top_srcdir=$srcdir ;; | |
1218 | *) # Relative path. | |
1219 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1220 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1221 | esac | |
1222 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1223 | # absolute. | |
1224 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1225 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
1226 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1227 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1228 | ||
1229 | cd $ac_dir | |
1230 | # Check for guested configure; otherwise get Cygnus style configure. | |
1231 | if test -f $ac_srcdir/configure.gnu; then | |
1232 | echo | |
1233 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1234 | elif test -f $ac_srcdir/configure; then | |
1235 | echo | |
1236 | $SHELL $ac_srcdir/configure --help=recursive | |
1237 | elif test -f $ac_srcdir/configure.ac || | |
1238 | test -f $ac_srcdir/configure.in; then | |
1239 | echo | |
1240 | $ac_configure --help | |
1241 | else | |
1242 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1243 | fi | |
1244 | cd $ac_popdir | |
1245 | done | |
1246 | fi | |
1247 | ||
1248 | test -n "$ac_init_help" && exit 0 | |
1249 | if $ac_init_version; then | |
1250 | cat <<\_ACEOF | |
1251 | ||
1252 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
1253 | Free Software Foundation, Inc. | |
1254 | This configure script is free software; the Free Software Foundation | |
1255 | gives unlimited permission to copy, distribute and modify it. | |
1256 | _ACEOF | |
1257 | exit 0 | |
1258 | fi | |
1259 | exec 5>config.log | |
1260 | cat >&5 <<_ACEOF | |
1261 | This file contains any messages produced by compilers while | |
1262 | running configure, to aid debugging if configure makes a mistake. | |
1263 | ||
1264 | It was created by $as_me, which was | |
1265 | generated by GNU Autoconf 2.53. Invocation command line was | |
1266 | ||
1267 | $ $0 $@ | |
1268 | ||
1269 | _ACEOF | |
1270 | { | |
1271 | cat <<_ASUNAME | |
1272 | ## --------- ## | |
1273 | ## Platform. ## | |
1274 | ## --------- ## | |
1275 | ||
1276 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1277 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1278 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1279 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1280 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1281 | ||
1282 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1283 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1284 | ||
1285 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1286 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1287 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1288 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1289 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1290 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1291 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1292 | ||
1293 | _ASUNAME | |
1294 | ||
1295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1296 | for as_dir in $PATH | |
1297 | do | |
1298 | IFS=$as_save_IFS | |
1299 | test -z "$as_dir" && as_dir=. | |
1300 | echo "PATH: $as_dir" | |
1301 | done | |
1302 | ||
1303 | } >&5 | |
1304 | ||
1305 | cat >&5 <<_ACEOF | |
1306 | ||
1307 | ||
1308 | ## ----------- ## | |
1309 | ## Core tests. ## | |
1310 | ## ----------- ## | |
1311 | ||
1312 | _ACEOF | |
1313 | ||
1314 | ||
1315 | # Keep a trace of the command line. | |
1316 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1317 | # Also quote any args containing shell meta-characters. | |
1318 | ac_configure_args= | |
1319 | ac_sep= | |
1320 | for ac_arg | |
1321 | do | |
1322 | case $ac_arg in | |
1323 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1324 | | --no-cr | --no-c | -n ) continue ;; | |
1325 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1326 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1327 | continue ;; | |
1328 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1329 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1330 | esac | |
1331 | case " $ac_configure_args " in | |
1332 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1333 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1334 | ac_sep=" " ;; | |
1335 | esac | |
1336 | # Get rid of the leading space. | |
1337 | done | |
1338 | ||
1339 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1340 | # config.log. We remove comments because anyway the quotes in there | |
1341 | # would cause problems or look ugly. | |
1342 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1343 | # such as our DU 5.0 friend, will then `close' the trap. | |
1344 | trap 'exit_status=$? | |
1345 | # Save into config.log some information that might help in debugging. | |
1346 | { | |
1347 | echo | |
1348 | cat <<\_ASBOX | |
1349 | ## ---------------- ## | |
1350 | ## Cache variables. ## | |
1351 | ## ---------------- ## | |
1352 | _ASBOX | |
1353 | echo | |
1354 | # The following way of writing the cache mishandles newlines in values, | |
1355 | { | |
1356 | (set) 2>&1 | | |
1357 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1358 | *ac_space=\ *) | |
1359 | sed -n \ | |
1360 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1361 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1362 | ;; | |
1363 | *) | |
1364 | sed -n \ | |
1365 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1366 | ;; | |
1367 | esac; | |
1368 | } | |
1369 | echo | |
1370 | if test -s confdefs.h; then | |
1371 | cat <<\_ASBOX | |
1372 | ## ----------- ## | |
1373 | ## confdefs.h. ## | |
1374 | ## ----------- ## | |
1375 | _ASBOX | |
1376 | echo | |
1377 | sed "/^$/d" confdefs.h | |
1378 | echo | |
1379 | fi | |
1380 | test "$ac_signal" != 0 && | |
1381 | echo "$as_me: caught signal $ac_signal" | |
1382 | echo "$as_me: exit $exit_status" | |
1383 | } >&5 | |
1384 | rm -f core core.* *.core && | |
1385 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1386 | exit $exit_status | |
1387 | ' 0 | |
1388 | for ac_signal in 1 2 13 15; do | |
1389 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1390 | done | |
1391 | ac_signal=0 | |
1392 | ||
1393 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1394 | rm -rf conftest* confdefs.h | |
1395 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1396 | echo >confdefs.h | |
1397 | ||
1398 | # Predefined preprocessor variables. | |
1399 | ||
1400 | cat >>confdefs.h <<_ACEOF | |
1401 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1402 | _ACEOF | |
1403 | ||
1404 | ||
1405 | cat >>confdefs.h <<_ACEOF | |
1406 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1407 | _ACEOF | |
1408 | ||
1409 | ||
1410 | cat >>confdefs.h <<_ACEOF | |
1411 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1412 | _ACEOF | |
1413 | ||
1414 | ||
1415 | cat >>confdefs.h <<_ACEOF | |
1416 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1417 | _ACEOF | |
1418 | ||
1419 | ||
1420 | cat >>confdefs.h <<_ACEOF | |
1421 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1422 | _ACEOF | |
1423 | ||
1424 | ||
1425 | # Let the site file select an alternate cache file if it wants to. | |
1426 | # Prefer explicitly selected file to automatically selected ones. | |
1427 | if test -z "$CONFIG_SITE"; then | |
1428 | if test "x$prefix" != xNONE; then | |
1429 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1430 | else | |
1431 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1432 | fi | |
1433 | fi | |
1434 | for ac_site_file in $CONFIG_SITE; do | |
1435 | if test -r "$ac_site_file"; then | |
1436 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1437 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1438 | sed 's/^/| /' "$ac_site_file" >&5 | |
1439 | . "$ac_site_file" | |
1440 | fi | |
1441 | done | |
1442 | ||
1443 | if test -r "$cache_file"; then | |
1444 | # Some versions of bash will fail to source /dev/null (special | |
1445 | # files actually), so we avoid doing that. | |
1446 | if test -f "$cache_file"; then | |
1447 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1448 | echo "$as_me: loading cache $cache_file" >&6;} | |
1449 | case $cache_file in | |
1450 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1451 | *) . ./$cache_file;; | |
1452 | esac | |
1453 | fi | |
1454 | else | |
1455 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1456 | echo "$as_me: creating cache $cache_file" >&6;} | |
1457 | >$cache_file | |
1458 | fi | |
1459 | ||
1460 | # Check that the precious variables saved in the cache have kept the same | |
1461 | # value. | |
1462 | ac_cache_corrupted=false | |
1463 | for ac_var in `(set) 2>&1 | | |
1464 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1465 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1466 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1467 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1468 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1469 | case $ac_old_set,$ac_new_set in | |
1470 | set,) | |
1471 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1472 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1473 | ac_cache_corrupted=: ;; | |
1474 | ,set) | |
1475 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1476 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1477 | ac_cache_corrupted=: ;; | |
1478 | ,);; | |
1479 | *) | |
1480 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1481 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1482 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1483 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1484 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1485 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1486 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1487 | ac_cache_corrupted=: | |
1488 | fi;; | |
1489 | esac | |
1490 | # Pass precious variables to config.status. | |
1491 | if test "$ac_new_set" = set; then | |
1492 | case $ac_new_val in | |
1493 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1494 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1495 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1496 | esac | |
1497 | case " $ac_configure_args " in | |
1498 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1499 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1500 | esac | |
1501 | fi | |
1502 | done | |
1503 | if $ac_cache_corrupted; then | |
1504 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1505 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1506 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1507 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1508 | { (exit 1); exit 1; }; } | |
1509 | fi | |
1510 | ||
1511 | ac_ext=c | |
1512 | ac_cpp='$CPP $CPPFLAGS' | |
1513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ac_aux_dir= | |
1535 | for ac_dir in admin $srcdir/admin; do | |
1536 | if 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/install.sh; then | |
1541 | ac_aux_dir=$ac_dir | |
1542 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1543 | break | |
1544 | elif test -f $ac_dir/shtool; then | |
1545 | ac_aux_dir=$ac_dir | |
1546 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1547 | break | |
1548 | fi | |
1549 | done | |
1550 | if test -z "$ac_aux_dir"; then | |
1551 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5 | |
1552 | echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;} | |
1553 | { (exit 1); exit 1; }; } | |
1554 | fi | |
1555 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1556 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1557 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1558 | ||
1559 | ||
1560 | unset CDPATH | |
1561 | ||
1562 | # Make sure we can run config.sub. | |
1563 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1564 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1565 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1566 | { (exit 1); exit 1; }; } | |
1567 | ||
1568 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1569 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1570 | if test "${ac_cv_build+set}" = set; then | |
1571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1572 | else | |
1573 | ac_cv_build_alias=$build_alias | |
1574 | test -z "$ac_cv_build_alias" && | |
1575 | ac_cv_build_alias=`$ac_config_guess` | |
1576 | test -z "$ac_cv_build_alias" && | |
1577 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1578 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1579 | { (exit 1); exit 1; }; } | |
1580 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1581 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1582 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1583 | { (exit 1); exit 1; }; } | |
1584 | ||
1585 | fi | |
1586 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1587 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1588 | build=$ac_cv_build | |
1589 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1590 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1591 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1592 | ||
1593 | ||
1594 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1595 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1596 | if test "${ac_cv_host+set}" = set; then | |
1597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1598 | else | |
1599 | ac_cv_host_alias=$host_alias | |
1600 | test -z "$ac_cv_host_alias" && | |
1601 | ac_cv_host_alias=$ac_cv_build_alias | |
1602 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1603 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1604 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1605 | { (exit 1); exit 1; }; } | |
1606 | ||
1607 | fi | |
1608 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1609 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1610 | host=$ac_cv_host | |
1611 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1612 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1613 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1614 | ||
1615 | ||
1616 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1617 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1618 | if test "${ac_cv_target+set}" = set; then | |
1619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1620 | else | |
1621 | ac_cv_target_alias=$target_alias | |
1622 | test "x$ac_cv_target_alias" = "x" && | |
1623 | ac_cv_target_alias=$ac_cv_host_alias | |
1624 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1625 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1626 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1627 | { (exit 1); exit 1; }; } | |
1628 | ||
1629 | fi | |
1630 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1631 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1632 | target=$ac_cv_target | |
1633 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1634 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1635 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1636 | ||
1637 | ||
1638 | # The aliases save the names the user supplied, while $host etc. | |
1639 | # will get canonicalized. | |
1640 | test -n "$target_alias" && | |
1641 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1642 | NONENONEs,x,x, && | |
1643 | program_prefix=${target_alias}- | |
1644 | test "$program_prefix" != NONE && | |
1645 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1646 | # Use a double $ so make ignores it. | |
1647 | test "$program_suffix" != NONE && | |
1648 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1649 | # Double any \ or $. echo might interpret backslashes. | |
1650 | # By default was `s,x,x', remove it if useless. | |
1651 | cat <<\_ACEOF >conftest.sed | |
1652 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1653 | _ACEOF | |
1654 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1655 | rm conftest.sed | |
1656 | ||
1657 | ||
1658 | am__api_version="1.6" | |
1659 | ||
1660 | ||
1661 | test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL | |
1662 | test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM | |
1663 | test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT | |
1664 | # Find a good install program. We prefer a C program (faster), | |
1665 | # so one script is as good as another. But avoid the broken or | |
1666 | # incompatible versions: | |
1667 | # SysV /etc/install, /usr/sbin/install | |
1668 | # SunOS /usr/etc/install | |
1669 | # IRIX /sbin/install | |
1670 | # AIX /bin/install | |
1671 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1672 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1673 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1674 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1675 | # ./install, which can be erroneously created by make from ./install.sh. | |
1676 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1677 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1678 | if test -z "$INSTALL"; then | |
1679 | if test "${ac_cv_path_install+set}" = set; then | |
1680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1681 | else | |
1682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1683 | for as_dir in $PATH | |
1684 | do | |
1685 | IFS=$as_save_IFS | |
1686 | test -z "$as_dir" && as_dir=. | |
1687 | # Account for people who put trailing slashes in PATH elements. | |
1688 | case $as_dir/ in | |
1689 | ./ | .// | /cC/* | \ | |
1690 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1691 | /usr/ucb/* ) ;; | |
1692 | *) | |
1693 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1694 | # Don't use installbsd from OSF since it installs stuff as root | |
1695 | # by default. | |
1696 | for ac_prog in ginstall scoinst install; do | |
1697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1698 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1699 | if test $ac_prog = install && | |
1700 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1701 | # AIX install. It has an incompatible calling convention. | |
1702 | : | |
1703 | elif test $ac_prog = install && | |
1704 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1705 | # program-specific install script used by HP pwplus--don't use. | |
1706 | : | |
1707 | else | |
1708 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1709 | break 3 | |
1710 | fi | |
1711 | fi | |
1712 | done | |
1713 | done | |
1714 | ;; | |
1715 | esac | |
1716 | done | |
1717 | ||
1718 | ||
1719 | fi | |
1720 | if test "${ac_cv_path_install+set}" = set; then | |
1721 | INSTALL=$ac_cv_path_install | |
1722 | else | |
1723 | # As a last resort, use the slow shell script. We don't cache a | |
1724 | # path for INSTALL within a source directory, because that will | |
1725 | # break other packages using the cache if that directory is | |
1726 | # removed, or if the path is relative. | |
1727 | INSTALL=$ac_install_sh | |
1728 | fi | |
1729 | fi | |
1730 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1731 | echo "${ECHO_T}$INSTALL" >&6 | |
1732 | ||
1733 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1734 | # It thinks the first close brace ends the variable substitution. | |
1735 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1736 | ||
1737 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1738 | ||
1739 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1740 | ||
1741 | ||
1742 | if test -z "$kde_save_INSTALL_given" ; then | |
1743 | # OK, user hasn't given any INSTALL, autoconf found one for us | |
1744 | # now we test, if it supports the -p flag | |
1745 | echo "$as_me:$LINENO: checking for -p flag to install" >&5 | |
1746 | echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6 | |
1747 | rm -f confinst.$$.* > /dev/null 2>&1 | |
1748 | echo "Testtest" > confinst.$$.orig | |
1749 | ac_res=no | |
1750 | if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then | |
1751 | if test -f confinst.$$.new ; then | |
1752 | # OK, -p seems to do no harm to install | |
1753 | INSTALL="${INSTALL} -p" | |
1754 | ac_res=yes | |
1755 | fi | |
1756 | fi | |
1757 | rm -f confinst.$$.* | |
1758 | echo "$as_me:$LINENO: result: $ac_res" >&5 | |
1759 | echo "${ECHO_T}$ac_res" >&6 | |
1760 | fi | |
1761 | ||
1762 | if test -z "$kde_save_INSTALL_PROGRAM_given" ; then | |
1763 | INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)' | |
1764 | fi | |
1765 | if test -z "$kde_save_INSTALL_SCRIPT_given" ; then | |
1766 | INSTALL_SCRIPT='${INSTALL}' | |
1767 | fi | |
1768 | ||
1769 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1770 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1771 | # Just in case | |
1772 | sleep 1 | |
1773 | echo timestamp > conftest.file | |
1774 | # Do `set' in a subshell so we don't clobber the current shell's | |
1775 | # arguments. Must try -L first in case configure is actually a | |
1776 | # symlink; some systems play weird games with the mod time of symlinks | |
1777 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1778 | # directory). | |
1779 | if ( | |
1780 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1781 | if test "$*" = "X"; then | |
1782 | # -L didn't work. | |
1783 | set X `ls -t $srcdir/configure conftest.file` | |
1784 | fi | |
1785 | rm -f conftest.file | |
1786 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1787 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1788 | ||
1789 | # If neither matched, then we have a broken ls. This can happen | |
1790 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1791 | # broken ls alias from the environment. This has actually | |
1792 | # happened. Such a system could not be considered "sane". | |
1793 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1794 | alias in your environment" >&5 | |
1795 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1796 | alias in your environment" >&2;} | |
1797 | { (exit 1); exit 1; }; } | |
1798 | fi | |
1799 | ||
1800 | test "$2" = conftest.file | |
1801 | ) | |
1802 | then | |
1803 | # Ok. | |
1804 | : | |
1805 | else | |
1806 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1807 | Check your system clock" >&5 | |
1808 | echo "$as_me: error: newly created file is older than distributed files! | |
1809 | Check your system clock" >&2;} | |
1810 | { (exit 1); exit 1; }; } | |
1811 | fi | |
1812 | echo "$as_me:$LINENO: result: yes" >&5 | |
1813 | echo "${ECHO_T}yes" >&6 | |
1814 | ||
1815 | # expand $ac_aux_dir to an absolute path | |
1816 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1817 | ||
1818 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1819 | # Use eval to expand $SHELL | |
1820 | if eval "$MISSING --run true"; then | |
1821 | am_missing_run="$MISSING --run " | |
1822 | else | |
1823 | am_missing_run= | |
1824 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1825 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1826 | fi | |
1827 | ||
1828 | for ac_prog in gawk mawk nawk awk | |
1829 | do | |
1830 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1831 | set dummy $ac_prog; ac_word=$2 | |
1832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1834 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1836 | else | |
1837 | if test -n "$AWK"; then | |
1838 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1839 | else | |
1840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1841 | for as_dir in $PATH | |
1842 | do | |
1843 | IFS=$as_save_IFS | |
1844 | test -z "$as_dir" && as_dir=. | |
1845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1846 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1847 | ac_cv_prog_AWK="$ac_prog" | |
1848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1849 | break 2 | |
1850 | fi | |
1851 | done | |
1852 | done | |
1853 | ||
1854 | fi | |
1855 | fi | |
1856 | AWK=$ac_cv_prog_AWK | |
1857 | if test -n "$AWK"; then | |
1858 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1859 | echo "${ECHO_T}$AWK" >&6 | |
1860 | else | |
1861 | echo "$as_me:$LINENO: result: no" >&5 | |
1862 | echo "${ECHO_T}no" >&6 | |
1863 | fi | |
1864 | ||
1865 | test -n "$AWK" && break | |
1866 | done | |
1867 | ||
1868 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
1869 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
1870 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1871 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1873 | else | |
1874 | cat >conftest.make <<\_ACEOF | |
1875 | all: | |
1876 | @echo 'ac_maketemp="${MAKE}"' | |
1877 | _ACEOF | |
1878 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1879 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1880 | if test -n "$ac_maketemp"; then | |
1881 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1882 | else | |
1883 | eval ac_cv_prog_make_${ac_make}_set=no | |
1884 | fi | |
1885 | rm -f conftest.make | |
1886 | fi | |
1887 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1888 | echo "$as_me:$LINENO: result: yes" >&5 | |
1889 | echo "${ECHO_T}yes" >&6 | |
1890 | SET_MAKE= | |
1891 | else | |
1892 | echo "$as_me:$LINENO: result: no" >&5 | |
1893 | echo "${ECHO_T}no" >&6 | |
1894 | SET_MAKE="MAKE=${MAKE-make}" | |
1895 | fi | |
1896 | ||
1897 | # test to see if srcdir already configured | |
1898 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1899 | test -f $srcdir/config.status; then | |
1900 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1901 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1902 | { (exit 1); exit 1; }; } | |
1903 | fi | |
1904 | ||
1905 | # Define the identity of the package. | |
1906 | PACKAGE=ftdi_eeprom | |
1907 | VERSION=0.1 | |
1908 | ||
1909 | ||
1910 | cat >>confdefs.h <<_ACEOF | |
1911 | #define PACKAGE "$PACKAGE" | |
1912 | _ACEOF | |
1913 | ||
1914 | ||
1915 | cat >>confdefs.h <<_ACEOF | |
1916 | #define VERSION "$VERSION" | |
1917 | _ACEOF | |
1918 | ||
1919 | # Some tools Automake needs. | |
1920 | ||
1921 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1922 | ||
1923 | ||
1924 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1925 | ||
1926 | ||
1927 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1928 | ||
1929 | ||
1930 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1931 | ||
1932 | ||
1933 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1934 | ||
1935 | ||
1936 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1937 | ||
1938 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1939 | ||
1940 | # Installed binaries are usually stripped using `strip' when the user | |
1941 | # run `make install-strip'. However `strip' might not be the right | |
1942 | # tool to use in cross-compilation environments, therefore Automake | |
1943 | # will honor the `STRIP' environment variable to overrule this program. | |
1944 | if test "$cross_compiling" != no; then | |
1945 | if test -n "$ac_tool_prefix"; then | |
1946 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1947 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1950 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1952 | else | |
1953 | if test -n "$STRIP"; then | |
1954 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1955 | else | |
1956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1957 | for as_dir in $PATH | |
1958 | do | |
1959 | IFS=$as_save_IFS | |
1960 | test -z "$as_dir" && as_dir=. | |
1961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1962 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1963 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1965 | break 2 | |
1966 | fi | |
1967 | done | |
1968 | done | |
1969 | ||
1970 | fi | |
1971 | fi | |
1972 | STRIP=$ac_cv_prog_STRIP | |
1973 | if test -n "$STRIP"; then | |
1974 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1975 | echo "${ECHO_T}$STRIP" >&6 | |
1976 | else | |
1977 | echo "$as_me:$LINENO: result: no" >&5 | |
1978 | echo "${ECHO_T}no" >&6 | |
1979 | fi | |
1980 | ||
1981 | fi | |
1982 | if test -z "$ac_cv_prog_STRIP"; then | |
1983 | ac_ct_STRIP=$STRIP | |
1984 | # Extract the first word of "strip", so it can be a program name with args. | |
1985 | set dummy strip; ac_word=$2 | |
1986 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1988 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1990 | else | |
1991 | if test -n "$ac_ct_STRIP"; then | |
1992 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1993 | else | |
1994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1995 | for as_dir in $PATH | |
1996 | do | |
1997 | IFS=$as_save_IFS | |
1998 | test -z "$as_dir" && as_dir=. | |
1999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2001 | ac_cv_prog_ac_ct_STRIP="strip" | |
2002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2003 | break 2 | |
2004 | fi | |
2005 | done | |
2006 | done | |
2007 | ||
2008 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
2009 | fi | |
2010 | fi | |
2011 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2012 | if test -n "$ac_ct_STRIP"; then | |
2013 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2014 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
2015 | else | |
2016 | echo "$as_me:$LINENO: result: no" >&5 | |
2017 | echo "${ECHO_T}no" >&6 | |
2018 | fi | |
2019 | ||
2020 | STRIP=$ac_ct_STRIP | |
2021 | else | |
2022 | STRIP="$ac_cv_prog_STRIP" | |
2023 | fi | |
2024 | ||
2025 | fi | |
2026 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2027 | ||
2028 | # We need awk for the "check" target. The system "awk" is bad on | |
2029 | # some platforms. | |
2030 | ||
2031 | ||
2032 | ||
2033 | unset CDPATH | |
2034 | ||
2035 | ||
2036 | if test "x$prefix" = "xNONE"; then | |
2037 | prefix=$ac_default_prefix | |
2038 | ac_configure_args="$ac_configure_args --prefix $prefix" | |
2039 | fi | |
2040 | ||
2041 | # Check whether --enable-fast-perl or --disable-fast-perl was given. | |
2042 | if test "${enable_fast_perl+set}" = set; then | |
2043 | enableval="$enable_fast_perl" | |
2044 | with_fast_perl=$enableval | |
2045 | else | |
2046 | with_fast_perl=yes | |
2047 | fi; | |
2048 | ||
2049 | ||
2050 | val= | |
2051 | if test -f $srcdir/configure.files ; then | |
2052 | val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files` | |
2053 | fi | |
2054 | CONF_FILES= | |
2055 | if test -n "$val" ; then | |
2056 | for i in $val ; do | |
2057 | CONF_FILES="$CONF_FILES $i" | |
2058 | done | |
2059 | fi | |
2060 | ||
2061 | ||
2062 | ||
2063 | # Add the stamp file to the list of files AC keeps track of, | |
2064 | # along with our hook. | |
2065 | ac_config_headers="$ac_config_headers config.h" | |
2066 | ||
2067 | ||
2068 | ||
2069 | ||
2070 | rm -f .deps 2>/dev/null | |
2071 | mkdir .deps 2>/dev/null | |
2072 | if test -d .deps; then | |
2073 | DEPDIR=.deps | |
2074 | else | |
2075 | # MS-DOS does not allow filenames that begin with a dot. | |
2076 | DEPDIR=_deps | |
2077 | fi | |
2078 | rmdir .deps 2>/dev/null | |
2079 | ||
2080 | ||
2081 | ac_config_commands="$ac_config_commands depfiles" | |
2082 | ||
2083 | ||
2084 | am_make=${MAKE-make} | |
2085 | cat > confinc << 'END' | |
2086 | doit: | |
2087 | @echo done | |
2088 | END | |
2089 | # If we don't find an include directive, just comment out the code. | |
2090 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2091 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2092 | am__include="#" | |
2093 | am__quote= | |
2094 | _am_result=none | |
2095 | # First try GNU make style include. | |
2096 | echo "include confinc" > confmf | |
2097 | # We grep out `Entering directory' and `Leaving directory' | |
2098 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2099 | # In particular we don't look at `^make:' because GNU make might | |
2100 | # be invoked under some other name (usually "gmake"), in which | |
2101 | # case it prints its new name instead of `make'. | |
2102 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
2103 | am__include=include | |
2104 | am__quote= | |
2105 | _am_result=GNU | |
2106 | fi | |
2107 | # Now try BSD make style include. | |
2108 | if test "$am__include" = "#"; then | |
2109 | echo '.include "confinc"' > confmf | |
2110 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2111 | am__include=.include | |
2112 | am__quote="\"" | |
2113 | _am_result=BSD | |
2114 | fi | |
2115 | fi | |
2116 | ||
2117 | ||
2118 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2119 | echo "${ECHO_T}$_am_result" >&6 | |
2120 | rm -f confinc confmf | |
2121 | ||
2122 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2123 | if test "${enable_dependency_tracking+set}" = set; then | |
2124 | enableval="$enable_dependency_tracking" | |
2125 | ||
2126 | fi; | |
2127 | if test "x$enable_dependency_tracking" != xno; then | |
2128 | am_depcomp="$ac_aux_dir/depcomp" | |
2129 | AMDEPBACKSLASH='\' | |
2130 | fi | |
2131 | ||
2132 | ||
2133 | if test "x$enable_dependency_tracking" != xno; then | |
2134 | AMDEP_TRUE= | |
2135 | AMDEP_FALSE='#' | |
2136 | else | |
2137 | AMDEP_TRUE='#' | |
2138 | AMDEP_FALSE= | |
2139 | fi | |
2140 | ||
2141 | ||
2142 | ||
2143 | ac_ext=cc | |
2144 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2145 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2146 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2147 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2148 | if test -n "$ac_tool_prefix"; then | |
2149 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2150 | do | |
2151 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2152 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2153 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2155 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2157 | else | |
2158 | if test -n "$CXX"; then | |
2159 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2160 | else | |
2161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2162 | for as_dir in $PATH | |
2163 | do | |
2164 | IFS=$as_save_IFS | |
2165 | test -z "$as_dir" && as_dir=. | |
2166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2167 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2168 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
2169 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2170 | break 2 | |
2171 | fi | |
2172 | done | |
2173 | done | |
2174 | ||
2175 | fi | |
2176 | fi | |
2177 | CXX=$ac_cv_prog_CXX | |
2178 | if test -n "$CXX"; then | |
2179 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2180 | echo "${ECHO_T}$CXX" >&6 | |
2181 | else | |
2182 | echo "$as_me:$LINENO: result: no" >&5 | |
2183 | echo "${ECHO_T}no" >&6 | |
2184 | fi | |
2185 | ||
2186 | test -n "$CXX" && break | |
2187 | done | |
2188 | fi | |
2189 | if test -z "$CXX"; then | |
2190 | ac_ct_CXX=$CXX | |
2191 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2192 | do | |
2193 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2194 | set dummy $ac_prog; ac_word=$2 | |
2195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2197 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2199 | else | |
2200 | if test -n "$ac_ct_CXX"; then | |
2201 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2202 | else | |
2203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2204 | for as_dir in $PATH | |
2205 | do | |
2206 | IFS=$as_save_IFS | |
2207 | test -z "$as_dir" && as_dir=. | |
2208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2210 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
2211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2212 | break 2 | |
2213 | fi | |
2214 | done | |
2215 | done | |
2216 | ||
2217 | fi | |
2218 | fi | |
2219 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2220 | if test -n "$ac_ct_CXX"; then | |
2221 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2222 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
2223 | else | |
2224 | echo "$as_me:$LINENO: result: no" >&5 | |
2225 | echo "${ECHO_T}no" >&6 | |
2226 | fi | |
2227 | ||
2228 | test -n "$ac_ct_CXX" && break | |
2229 | done | |
2230 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
2231 | ||
2232 | CXX=$ac_ct_CXX | |
2233 | fi | |
2234 | ||
2235 | ||
2236 | # Provide some information about the compiler. | |
2237 | echo "$as_me:$LINENO:" \ | |
2238 | "checking for C++ compiler version" >&5 | |
2239 | ac_compiler=`set X $ac_compile; echo $2` | |
2240 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2241 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2242 | ac_status=$? | |
2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2244 | (exit $ac_status); } | |
2245 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2246 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2247 | ac_status=$? | |
2248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2249 | (exit $ac_status); } | |
2250 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2251 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2252 | ac_status=$? | |
2253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2254 | (exit $ac_status); } | |
2255 | ||
2256 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2257 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
2258 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2260 | else | |
2261 | cat >conftest.$ac_ext <<_ACEOF | |
2262 | #line $LINENO "configure" | |
2263 | #include "confdefs.h" | |
2264 | ||
2265 | #ifdef F77_DUMMY_MAIN | |
2266 | # ifdef __cplusplus | |
2267 | extern "C" | |
2268 | # endif | |
2269 | int F77_DUMMY_MAIN() { return 1; } | |
2270 | #endif | |
2271 | int | |
2272 | main () | |
2273 | { | |
2274 | #ifndef __GNUC__ | |
2275 | choke me | |
2276 | #endif | |
2277 | ||
2278 | ; | |
2279 | return 0; | |
2280 | } | |
2281 | _ACEOF | |
2282 | rm -f conftest.$ac_objext | |
2283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2284 | (eval $ac_compile) 2>&5 | |
2285 | ac_status=$? | |
2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2287 | (exit $ac_status); } && | |
2288 | { ac_try='test -s conftest.$ac_objext' | |
2289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2290 | (eval $ac_try) 2>&5 | |
2291 | ac_status=$? | |
2292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2293 | (exit $ac_status); }; }; then | |
2294 | ac_compiler_gnu=yes | |
2295 | else | |
2296 | echo "$as_me: failed program was:" >&5 | |
2297 | cat conftest.$ac_ext >&5 | |
2298 | ac_compiler_gnu=no | |
2299 | fi | |
2300 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2301 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2302 | ||
2303 | fi | |
2304 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2305 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
2306 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2307 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2308 | ac_save_CXXFLAGS=$CXXFLAGS | |
2309 | CXXFLAGS="-g" | |
2310 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2311 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2312 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2314 | else | |
2315 | cat >conftest.$ac_ext <<_ACEOF | |
2316 | #line $LINENO "configure" | |
2317 | #include "confdefs.h" | |
2318 | ||
2319 | #ifdef F77_DUMMY_MAIN | |
2320 | # ifdef __cplusplus | |
2321 | extern "C" | |
2322 | # endif | |
2323 | int F77_DUMMY_MAIN() { return 1; } | |
2324 | #endif | |
2325 | int | |
2326 | main () | |
2327 | { | |
2328 | ||
2329 | ; | |
2330 | return 0; | |
2331 | } | |
2332 | _ACEOF | |
2333 | rm -f conftest.$ac_objext | |
2334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2335 | (eval $ac_compile) 2>&5 | |
2336 | ac_status=$? | |
2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2338 | (exit $ac_status); } && | |
2339 | { ac_try='test -s conftest.$ac_objext' | |
2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2341 | (eval $ac_try) 2>&5 | |
2342 | ac_status=$? | |
2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2344 | (exit $ac_status); }; }; then | |
2345 | ac_cv_prog_cxx_g=yes | |
2346 | else | |
2347 | echo "$as_me: failed program was:" >&5 | |
2348 | cat conftest.$ac_ext >&5 | |
2349 | ac_cv_prog_cxx_g=no | |
2350 | fi | |
2351 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2352 | fi | |
2353 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2354 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2355 | if test "$ac_test_CXXFLAGS" = set; then | |
2356 | CXXFLAGS=$ac_save_CXXFLAGS | |
2357 | elif test $ac_cv_prog_cxx_g = yes; then | |
2358 | if test "$GXX" = yes; then | |
2359 | CXXFLAGS="-g -O2" | |
2360 | else | |
2361 | CXXFLAGS="-g" | |
2362 | fi | |
2363 | else | |
2364 | if test "$GXX" = yes; then | |
2365 | CXXFLAGS="-O2" | |
2366 | else | |
2367 | CXXFLAGS= | |
2368 | fi | |
2369 | fi | |
2370 | for ac_declaration in \ | |
2371 | ''\ | |
2372 | '#include <stdlib.h>' \ | |
2373 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2374 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2375 | 'extern "C" void exit (int) throw ();' \ | |
2376 | 'extern "C" void exit (int);' \ | |
2377 | 'void exit (int);' | |
2378 | do | |
2379 | cat >conftest.$ac_ext <<_ACEOF | |
2380 | #line $LINENO "configure" | |
2381 | #include "confdefs.h" | |
2382 | #include <stdlib.h> | |
2383 | $ac_declaration | |
2384 | #ifdef F77_DUMMY_MAIN | |
2385 | # ifdef __cplusplus | |
2386 | extern "C" | |
2387 | # endif | |
2388 | int F77_DUMMY_MAIN() { return 1; } | |
2389 | #endif | |
2390 | int | |
2391 | main () | |
2392 | { | |
2393 | exit (42); | |
2394 | ; | |
2395 | return 0; | |
2396 | } | |
2397 | _ACEOF | |
2398 | rm -f conftest.$ac_objext | |
2399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2400 | (eval $ac_compile) 2>&5 | |
2401 | ac_status=$? | |
2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2403 | (exit $ac_status); } && | |
2404 | { ac_try='test -s conftest.$ac_objext' | |
2405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2406 | (eval $ac_try) 2>&5 | |
2407 | ac_status=$? | |
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2409 | (exit $ac_status); }; }; then | |
2410 | : | |
2411 | else | |
2412 | echo "$as_me: failed program was:" >&5 | |
2413 | cat conftest.$ac_ext >&5 | |
2414 | continue | |
2415 | fi | |
2416 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2417 | cat >conftest.$ac_ext <<_ACEOF | |
2418 | #line $LINENO "configure" | |
2419 | #include "confdefs.h" | |
2420 | $ac_declaration | |
2421 | #ifdef F77_DUMMY_MAIN | |
2422 | # ifdef __cplusplus | |
2423 | extern "C" | |
2424 | # endif | |
2425 | int F77_DUMMY_MAIN() { return 1; } | |
2426 | #endif | |
2427 | int | |
2428 | main () | |
2429 | { | |
2430 | exit (42); | |
2431 | ; | |
2432 | return 0; | |
2433 | } | |
2434 | _ACEOF | |
2435 | rm -f conftest.$ac_objext | |
2436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2437 | (eval $ac_compile) 2>&5 | |
2438 | ac_status=$? | |
2439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2440 | (exit $ac_status); } && | |
2441 | { ac_try='test -s conftest.$ac_objext' | |
2442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2443 | (eval $ac_try) 2>&5 | |
2444 | ac_status=$? | |
2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2446 | (exit $ac_status); }; }; then | |
2447 | break | |
2448 | else | |
2449 | echo "$as_me: failed program was:" >&5 | |
2450 | cat conftest.$ac_ext >&5 | |
2451 | fi | |
2452 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2453 | done | |
2454 | rm -f conftest* | |
2455 | if test -n "$ac_declaration"; then | |
2456 | echo '#ifdef __cplusplus' >>confdefs.h | |
2457 | echo $ac_declaration >>confdefs.h | |
2458 | echo '#endif' >>confdefs.h | |
2459 | fi | |
2460 | ||
2461 | ac_ext=cc | |
2462 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2463 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2464 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2465 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2466 | ||
2467 | depcc="$CXX" am_compiler_list= | |
2468 | ||
2469 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2470 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2471 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
2472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2473 | else | |
2474 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2475 | # We make a subdir and do the tests there. Otherwise we can end up | |
2476 | # making bogus files that we don't know about and never remove. For | |
2477 | # instance it was reported that on HP-UX the gcc test will end up | |
2478 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2479 | # in D'. | |
2480 | mkdir conftest.dir | |
2481 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2482 | # using a relative directory. | |
2483 | cp "$am_depcomp" conftest.dir | |
2484 | cd conftest.dir | |
2485 | ||
2486 | am_cv_CXX_dependencies_compiler_type=none | |
2487 | if test "$am_compiler_list" = ""; then | |
2488 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2489 | fi | |
2490 | for depmode in $am_compiler_list; do | |
2491 | # We need to recreate these files for each test, as the compiler may | |
2492 | # overwrite some of them when testing with obscure command lines. | |
2493 | # This happens at least with the AIX C compiler. | |
2494 | echo '#include "conftest.h"' > conftest.c | |
2495 | echo 'int i;' > conftest.h | |
2496 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2497 | ||
2498 | case $depmode in | |
2499 | nosideeffect) | |
2500 | # after this tag, mechanisms are not by side-effect, so they'll | |
2501 | # only be used when explicitly requested | |
2502 | if test "x$enable_dependency_tracking" = xyes; then | |
2503 | continue | |
2504 | else | |
2505 | break | |
2506 | fi | |
2507 | ;; | |
2508 | none) break ;; | |
2509 | esac | |
2510 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2511 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2512 | # handle `-M -o', and we need to detect this. | |
2513 | if depmode=$depmode \ | |
2514 | source=conftest.c object=conftest.o \ | |
2515 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2516 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2517 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2518 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2519 | am_cv_CXX_dependencies_compiler_type=$depmode | |
2520 | break | |
2521 | fi | |
2522 | done | |
2523 | ||
2524 | cd .. | |
2525 | rm -rf conftest.dir | |
2526 | else | |
2527 | am_cv_CXX_dependencies_compiler_type=none | |
2528 | fi | |
2529 | ||
2530 | fi | |
2531 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
2532 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
2533 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
2534 | ||
2535 | ||
2536 | ||
2537 | ||
2538 | # Check whether --enable-debug or --disable-debug was given. | |
2539 | if test "${enable_debug+set}" = set; then | |
2540 | enableval="$enable_debug" | |
2541 | ||
2542 | if test $enableval = "no"; then | |
2543 | kde_use_debug_code="no" | |
2544 | kde_use_debug_define=yes | |
2545 | else | |
2546 | kde_use_debug_code="yes" | |
2547 | kde_use_debug_define=no | |
2548 | fi | |
2549 | ||
2550 | else | |
2551 | kde_use_debug_code="no" | |
2552 | kde_use_debug_define=no | |
2553 | ||
2554 | fi; | |
2555 | ||
2556 | # Check whether --enable-dummyoption or --disable-dummyoption was given. | |
2557 | if test "${enable_dummyoption+set}" = set; then | |
2558 | enableval="$enable_dummyoption" | |
2559 | ||
2560 | fi; | |
2561 | ||
2562 | # Check whether --enable-strict or --disable-strict was given. | |
2563 | if test "${enable_strict+set}" = set; then | |
2564 | enableval="$enable_strict" | |
2565 | ||
2566 | if test $enableval = "no"; then | |
2567 | kde_use_strict_options="no" | |
2568 | else | |
2569 | kde_use_strict_options="yes" | |
2570 | fi | |
2571 | ||
2572 | else | |
2573 | kde_use_strict_options="no" | |
2574 | fi; | |
2575 | ||
2576 | # Check whether --enable-profile or --disable-profile was given. | |
2577 | if test "${enable_profile+set}" = set; then | |
2578 | enableval="$enable_profile" | |
2579 | kde_use_profiling=$enableval | |
2580 | else | |
2581 | kde_use_profiling="no" | |
2582 | ||
2583 | fi; | |
2584 | ||
2585 | CFLAGS=" $CFLAGS" | |
2586 | ||
2587 | ac_ext=c | |
2588 | ac_cpp='$CPP $CPPFLAGS' | |
2589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2592 | if test -n "$ac_tool_prefix"; then | |
2593 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2594 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2597 | if test "${ac_cv_prog_CC+set}" = set; then | |
2598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2599 | else | |
2600 | if test -n "$CC"; then | |
2601 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2602 | else | |
2603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2604 | for as_dir in $PATH | |
2605 | do | |
2606 | IFS=$as_save_IFS | |
2607 | test -z "$as_dir" && as_dir=. | |
2608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2610 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2612 | break 2 | |
2613 | fi | |
2614 | done | |
2615 | done | |
2616 | ||
2617 | fi | |
2618 | fi | |
2619 | CC=$ac_cv_prog_CC | |
2620 | if test -n "$CC"; then | |
2621 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2622 | echo "${ECHO_T}$CC" >&6 | |
2623 | else | |
2624 | echo "$as_me:$LINENO: result: no" >&5 | |
2625 | echo "${ECHO_T}no" >&6 | |
2626 | fi | |
2627 | ||
2628 | fi | |
2629 | if test -z "$ac_cv_prog_CC"; then | |
2630 | ac_ct_CC=$CC | |
2631 | # Extract the first word of "gcc", so it can be a program name with args. | |
2632 | set dummy gcc; ac_word=$2 | |
2633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2635 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2637 | else | |
2638 | if test -n "$ac_ct_CC"; then | |
2639 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2640 | else | |
2641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2642 | for as_dir in $PATH | |
2643 | do | |
2644 | IFS=$as_save_IFS | |
2645 | test -z "$as_dir" && as_dir=. | |
2646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2648 | ac_cv_prog_ac_ct_CC="gcc" | |
2649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2650 | break 2 | |
2651 | fi | |
2652 | done | |
2653 | done | |
2654 | ||
2655 | fi | |
2656 | fi | |
2657 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2658 | if test -n "$ac_ct_CC"; then | |
2659 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2660 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2661 | else | |
2662 | echo "$as_me:$LINENO: result: no" >&5 | |
2663 | echo "${ECHO_T}no" >&6 | |
2664 | fi | |
2665 | ||
2666 | CC=$ac_ct_CC | |
2667 | else | |
2668 | CC="$ac_cv_prog_CC" | |
2669 | fi | |
2670 | ||
2671 | if test -z "$CC"; then | |
2672 | if test -n "$ac_tool_prefix"; then | |
2673 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2674 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2675 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2677 | if test "${ac_cv_prog_CC+set}" = set; then | |
2678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2679 | else | |
2680 | if test -n "$CC"; then | |
2681 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2682 | else | |
2683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2684 | for as_dir in $PATH | |
2685 | do | |
2686 | IFS=$as_save_IFS | |
2687 | test -z "$as_dir" && as_dir=. | |
2688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2690 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2692 | break 2 | |
2693 | fi | |
2694 | done | |
2695 | done | |
2696 | ||
2697 | fi | |
2698 | fi | |
2699 | CC=$ac_cv_prog_CC | |
2700 | if test -n "$CC"; then | |
2701 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2702 | echo "${ECHO_T}$CC" >&6 | |
2703 | else | |
2704 | echo "$as_me:$LINENO: result: no" >&5 | |
2705 | echo "${ECHO_T}no" >&6 | |
2706 | fi | |
2707 | ||
2708 | fi | |
2709 | if test -z "$ac_cv_prog_CC"; then | |
2710 | ac_ct_CC=$CC | |
2711 | # Extract the first word of "cc", so it can be a program name with args. | |
2712 | set dummy cc; ac_word=$2 | |
2713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2715 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2717 | else | |
2718 | if test -n "$ac_ct_CC"; then | |
2719 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2720 | else | |
2721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2722 | for as_dir in $PATH | |
2723 | do | |
2724 | IFS=$as_save_IFS | |
2725 | test -z "$as_dir" && as_dir=. | |
2726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2728 | ac_cv_prog_ac_ct_CC="cc" | |
2729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2730 | break 2 | |
2731 | fi | |
2732 | done | |
2733 | done | |
2734 | ||
2735 | fi | |
2736 | fi | |
2737 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2738 | if test -n "$ac_ct_CC"; then | |
2739 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2740 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2741 | else | |
2742 | echo "$as_me:$LINENO: result: no" >&5 | |
2743 | echo "${ECHO_T}no" >&6 | |
2744 | fi | |
2745 | ||
2746 | CC=$ac_ct_CC | |
2747 | else | |
2748 | CC="$ac_cv_prog_CC" | |
2749 | fi | |
2750 | ||
2751 | fi | |
2752 | if test -z "$CC"; then | |
2753 | # Extract the first word of "cc", so it can be a program name with args. | |
2754 | set dummy cc; ac_word=$2 | |
2755 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2757 | if test "${ac_cv_prog_CC+set}" = set; then | |
2758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2759 | else | |
2760 | if test -n "$CC"; then | |
2761 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2762 | else | |
2763 | ac_prog_rejected=no | |
2764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2765 | for as_dir in $PATH | |
2766 | do | |
2767 | IFS=$as_save_IFS | |
2768 | test -z "$as_dir" && as_dir=. | |
2769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2771 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2772 | ac_prog_rejected=yes | |
2773 | continue | |
2774 | fi | |
2775 | ac_cv_prog_CC="cc" | |
2776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2777 | break 2 | |
2778 | fi | |
2779 | done | |
2780 | done | |
2781 | ||
2782 | if test $ac_prog_rejected = yes; then | |
2783 | # We found a bogon in the path, so make sure we never use it. | |
2784 | set dummy $ac_cv_prog_CC | |
2785 | shift | |
2786 | if test $# != 0; then | |
2787 | # We chose a different compiler from the bogus one. | |
2788 | # However, it has the same basename, so the bogon will be chosen | |
2789 | # first if we set CC to just the basename; use the full file name. | |
2790 | shift | |
2791 | set dummy "$as_dir/$ac_word" ${1+"$@"} | |
2792 | shift | |
2793 | ac_cv_prog_CC="$@" | |
2794 | fi | |
2795 | fi | |
2796 | fi | |
2797 | fi | |
2798 | CC=$ac_cv_prog_CC | |
2799 | if test -n "$CC"; then | |
2800 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2801 | echo "${ECHO_T}$CC" >&6 | |
2802 | else | |
2803 | echo "$as_me:$LINENO: result: no" >&5 | |
2804 | echo "${ECHO_T}no" >&6 | |
2805 | fi | |
2806 | ||
2807 | fi | |
2808 | if test -z "$CC"; then | |
2809 | if test -n "$ac_tool_prefix"; then | |
2810 | for ac_prog in cl | |
2811 | do | |
2812 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2813 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2814 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2816 | if test "${ac_cv_prog_CC+set}" = set; then | |
2817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2818 | else | |
2819 | if test -n "$CC"; then | |
2820 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2821 | else | |
2822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2823 | for as_dir in $PATH | |
2824 | do | |
2825 | IFS=$as_save_IFS | |
2826 | test -z "$as_dir" && as_dir=. | |
2827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2829 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2831 | break 2 | |
2832 | fi | |
2833 | done | |
2834 | done | |
2835 | ||
2836 | fi | |
2837 | fi | |
2838 | CC=$ac_cv_prog_CC | |
2839 | if test -n "$CC"; then | |
2840 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2841 | echo "${ECHO_T}$CC" >&6 | |
2842 | else | |
2843 | echo "$as_me:$LINENO: result: no" >&5 | |
2844 | echo "${ECHO_T}no" >&6 | |
2845 | fi | |
2846 | ||
2847 | test -n "$CC" && break | |
2848 | done | |
2849 | fi | |
2850 | if test -z "$CC"; then | |
2851 | ac_ct_CC=$CC | |
2852 | for ac_prog in cl | |
2853 | do | |
2854 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2855 | set dummy $ac_prog; ac_word=$2 | |
2856 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2858 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2860 | else | |
2861 | if test -n "$ac_ct_CC"; then | |
2862 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2863 | else | |
2864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2865 | for as_dir in $PATH | |
2866 | do | |
2867 | IFS=$as_save_IFS | |
2868 | test -z "$as_dir" && as_dir=. | |
2869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2871 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2873 | break 2 | |
2874 | fi | |
2875 | done | |
2876 | done | |
2877 | ||
2878 | fi | |
2879 | fi | |
2880 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2881 | if test -n "$ac_ct_CC"; then | |
2882 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2883 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2884 | else | |
2885 | echo "$as_me:$LINENO: result: no" >&5 | |
2886 | echo "${ECHO_T}no" >&6 | |
2887 | fi | |
2888 | ||
2889 | test -n "$ac_ct_CC" && break | |
2890 | done | |
2891 | ||
2892 | CC=$ac_ct_CC | |
2893 | fi | |
2894 | ||
2895 | fi | |
2896 | ||
2897 | ||
2898 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
2899 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
2900 | { (exit 1); exit 1; }; } | |
2901 | ||
2902 | # Provide some information about the compiler. | |
2903 | echo "$as_me:$LINENO:" \ | |
2904 | "checking for C compiler version" >&5 | |
2905 | ac_compiler=`set X $ac_compile; echo $2` | |
2906 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2907 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2908 | ac_status=$? | |
2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2910 | (exit $ac_status); } | |
2911 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2912 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2913 | ac_status=$? | |
2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2915 | (exit $ac_status); } | |
2916 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2917 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2918 | ac_status=$? | |
2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2920 | (exit $ac_status); } | |
2921 | ||
2922 | cat >conftest.$ac_ext <<_ACEOF | |
2923 | #line $LINENO "configure" | |
2924 | #include "confdefs.h" | |
2925 | ||
2926 | #ifdef F77_DUMMY_MAIN | |
2927 | # ifdef __cplusplus | |
2928 | extern "C" | |
2929 | # endif | |
2930 | int F77_DUMMY_MAIN() { return 1; } | |
2931 | #endif | |
2932 | int | |
2933 | main () | |
2934 | { | |
2935 | ||
2936 | ; | |
2937 | return 0; | |
2938 | } | |
2939 | _ACEOF | |
2940 | ac_clean_files_save=$ac_clean_files | |
2941 | ac_clean_files="$ac_clean_files a.out a.exe" | |
2942 | # Try to create an executable without -o first, disregard a.out. | |
2943 | # It will help us diagnose broken compilers, and finding out an intuition | |
2944 | # of exeext. | |
2945 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
2946 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
2947 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2948 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2949 | (eval $ac_link_default) 2>&5 | |
2950 | ac_status=$? | |
2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2952 | (exit $ac_status); }; then | |
2953 | # Find the output, starting from the most likely. This scheme is | |
2954 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2955 | # resort. | |
2956 | ||
2957 | # Be careful to initialize this variable, since it used to be cached. | |
2958 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2959 | ac_cv_exeext= | |
2960 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
2961 | ls a.out conftest 2>/dev/null; | |
2962 | ls a.* conftest.* 2>/dev/null`; do | |
2963 | case $ac_file in | |
2964 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | |
2965 | a.out ) # We found the default executable, but exeext='' is most | |
2966 | # certainly right. | |
2967 | break;; | |
2968 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2969 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2970 | export ac_cv_exeext | |
2971 | break;; | |
2972 | * ) break;; | |
2973 | esac | |
2974 | done | |
2975 | else | |
2976 | echo "$as_me: failed program was:" >&5 | |
2977 | cat conftest.$ac_ext >&5 | |
2978 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 | |
2979 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
2980 | { (exit 77); exit 77; }; } | |
2981 | fi | |
2982 | ||
2983 | ac_exeext=$ac_cv_exeext | |
2984 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2985 | echo "${ECHO_T}$ac_file" >&6 | |
2986 | ||
2987 | # Check the compiler produces executables we can run. If not, either | |
2988 | # the compiler is broken, or we cross compile. | |
2989 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2990 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2991 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2992 | # If not cross compiling, check that we can run a simple program. | |
2993 | if test "$cross_compiling" != yes; then | |
2994 | if { ac_try='./$ac_file' | |
2995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2996 | (eval $ac_try) 2>&5 | |
2997 | ac_status=$? | |
2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2999 | (exit $ac_status); }; }; then | |
3000 | cross_compiling=no | |
3001 | else | |
3002 | if test "$cross_compiling" = maybe; then | |
3003 | cross_compiling=yes | |
3004 | else | |
3005 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3006 | If you meant to cross compile, use \`--host'." >&5 | |
3007 | echo "$as_me: error: cannot run C compiled programs. | |
3008 | If you meant to cross compile, use \`--host'." >&2;} | |
3009 | { (exit 1); exit 1; }; } | |
3010 | fi | |
3011 | fi | |
3012 | fi | |
3013 | echo "$as_me:$LINENO: result: yes" >&5 | |
3014 | echo "${ECHO_T}yes" >&6 | |
3015 | ||
3016 | rm -f a.out a.exe conftest$ac_cv_exeext | |
3017 | ac_clean_files=$ac_clean_files_save | |
3018 | # Check the compiler produces executables we can run. If not, either | |
3019 | # the compiler is broken, or we cross compile. | |
3020 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3021 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
3022 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3023 | echo "${ECHO_T}$cross_compiling" >&6 | |
3024 | ||
3025 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3026 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3028 | (eval $ac_link) 2>&5 | |
3029 | ac_status=$? | |
3030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3031 | (exit $ac_status); }; then | |
3032 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3033 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3034 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3035 | # `rm'. | |
3036 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
3037 | case $ac_file in | |
3038 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
3039 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3040 | export ac_cv_exeext | |
3041 | break;; | |
3042 | * ) break;; | |
3043 | esac | |
3044 | done | |
3045 | else | |
3046 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 | |
3047 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
3048 | { (exit 1); exit 1; }; } | |
3049 | fi | |
3050 | ||
3051 | rm -f conftest$ac_cv_exeext | |
3052 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3053 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
3054 | ||
3055 | rm -f conftest.$ac_ext | |
3056 | EXEEXT=$ac_cv_exeext | |
3057 | ac_exeext=$EXEEXT | |
3058 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3059 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
3060 | if test "${ac_cv_objext+set}" = set; then | |
3061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3062 | else | |
3063 | cat >conftest.$ac_ext <<_ACEOF | |
3064 | #line $LINENO "configure" | |
3065 | #include "confdefs.h" | |
3066 | ||
3067 | #ifdef F77_DUMMY_MAIN | |
3068 | # ifdef __cplusplus | |
3069 | extern "C" | |
3070 | # endif | |
3071 | int F77_DUMMY_MAIN() { return 1; } | |
3072 | #endif | |
3073 | int | |
3074 | main () | |
3075 | { | |
3076 | ||
3077 | ; | |
3078 | return 0; | |
3079 | } | |
3080 | _ACEOF | |
3081 | rm -f conftest.o conftest.obj | |
3082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3083 | (eval $ac_compile) 2>&5 | |
3084 | ac_status=$? | |
3085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3086 | (exit $ac_status); }; then | |
3087 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3088 | case $ac_file in | |
3089 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
3090 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3091 | break;; | |
3092 | esac | |
3093 | done | |
3094 | else | |
3095 | echo "$as_me: failed program was:" >&5 | |
3096 | cat conftest.$ac_ext >&5 | |
3097 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | |
3098 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
3099 | { (exit 1); exit 1; }; } | |
3100 | fi | |
3101 | ||
3102 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3103 | fi | |
3104 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3105 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
3106 | OBJEXT=$ac_cv_objext | |
3107 | ac_objext=$OBJEXT | |
3108 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3109 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3110 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3112 | else | |
3113 | cat >conftest.$ac_ext <<_ACEOF | |
3114 | #line $LINENO "configure" | |
3115 | #include "confdefs.h" | |
3116 | ||
3117 | #ifdef F77_DUMMY_MAIN | |
3118 | # ifdef __cplusplus | |
3119 | extern "C" | |
3120 | # endif | |
3121 | int F77_DUMMY_MAIN() { return 1; } | |
3122 | #endif | |
3123 | int | |
3124 | main () | |
3125 | { | |
3126 | #ifndef __GNUC__ | |
3127 | choke me | |
3128 | #endif | |
3129 | ||
3130 | ; | |
3131 | return 0; | |
3132 | } | |
3133 | _ACEOF | |
3134 | rm -f conftest.$ac_objext | |
3135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3136 | (eval $ac_compile) 2>&5 | |
3137 | ac_status=$? | |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3139 | (exit $ac_status); } && | |
3140 | { ac_try='test -s conftest.$ac_objext' | |
3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3142 | (eval $ac_try) 2>&5 | |
3143 | ac_status=$? | |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3145 | (exit $ac_status); }; }; then | |
3146 | ac_compiler_gnu=yes | |
3147 | else | |
3148 | echo "$as_me: failed program was:" >&5 | |
3149 | cat conftest.$ac_ext >&5 | |
3150 | ac_compiler_gnu=no | |
3151 | fi | |
3152 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3153 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3154 | ||
3155 | fi | |
3156 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3157 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3158 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3159 | ac_test_CFLAGS=${CFLAGS+set} | |
3160 | ac_save_CFLAGS=$CFLAGS | |
3161 | CFLAGS="-g" | |
3162 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3163 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3164 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3166 | else | |
3167 | cat >conftest.$ac_ext <<_ACEOF | |
3168 | #line $LINENO "configure" | |
3169 | #include "confdefs.h" | |
3170 | ||
3171 | #ifdef F77_DUMMY_MAIN | |
3172 | # ifdef __cplusplus | |
3173 | extern "C" | |
3174 | # endif | |
3175 | int F77_DUMMY_MAIN() { return 1; } | |
3176 | #endif | |
3177 | int | |
3178 | main () | |
3179 | { | |
3180 | ||
3181 | ; | |
3182 | return 0; | |
3183 | } | |
3184 | _ACEOF | |
3185 | rm -f conftest.$ac_objext | |
3186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3187 | (eval $ac_compile) 2>&5 | |
3188 | ac_status=$? | |
3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3190 | (exit $ac_status); } && | |
3191 | { ac_try='test -s conftest.$ac_objext' | |
3192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3193 | (eval $ac_try) 2>&5 | |
3194 | ac_status=$? | |
3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3196 | (exit $ac_status); }; }; then | |
3197 | ac_cv_prog_cc_g=yes | |
3198 | else | |
3199 | echo "$as_me: failed program was:" >&5 | |
3200 | cat conftest.$ac_ext >&5 | |
3201 | ac_cv_prog_cc_g=no | |
3202 | fi | |
3203 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3204 | fi | |
3205 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3206 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3207 | if test "$ac_test_CFLAGS" = set; then | |
3208 | CFLAGS=$ac_save_CFLAGS | |
3209 | elif test $ac_cv_prog_cc_g = yes; then | |
3210 | if test "$GCC" = yes; then | |
3211 | CFLAGS="-g -O2" | |
3212 | else | |
3213 | CFLAGS="-g" | |
3214 | fi | |
3215 | else | |
3216 | if test "$GCC" = yes; then | |
3217 | CFLAGS="-O2" | |
3218 | else | |
3219 | CFLAGS= | |
3220 | fi | |
3221 | fi | |
3222 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3223 | # in C++ we need to declare it. In case someone uses the same compiler | |
3224 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3225 | # the declaration of exit, since it's the most demanding environment. | |
3226 | cat >conftest.$ac_ext <<_ACEOF | |
3227 | #ifndef __cplusplus | |
3228 | choke me | |
3229 | #endif | |
3230 | _ACEOF | |
3231 | rm -f conftest.$ac_objext | |
3232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3233 | (eval $ac_compile) 2>&5 | |
3234 | ac_status=$? | |
3235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3236 | (exit $ac_status); } && | |
3237 | { ac_try='test -s conftest.$ac_objext' | |
3238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3239 | (eval $ac_try) 2>&5 | |
3240 | ac_status=$? | |
3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3242 | (exit $ac_status); }; }; then | |
3243 | for ac_declaration in \ | |
3244 | ''\ | |
3245 | '#include <stdlib.h>' \ | |
3246 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3247 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3248 | 'extern "C" void exit (int) throw ();' \ | |
3249 | 'extern "C" void exit (int);' \ | |
3250 | 'void exit (int);' | |
3251 | do | |
3252 | cat >conftest.$ac_ext <<_ACEOF | |
3253 | #line $LINENO "configure" | |
3254 | #include "confdefs.h" | |
3255 | #include <stdlib.h> | |
3256 | $ac_declaration | |
3257 | #ifdef F77_DUMMY_MAIN | |
3258 | # ifdef __cplusplus | |
3259 | extern "C" | |
3260 | # endif | |
3261 | int F77_DUMMY_MAIN() { return 1; } | |
3262 | #endif | |
3263 | int | |
3264 | main () | |
3265 | { | |
3266 | exit (42); | |
3267 | ; | |
3268 | return 0; | |
3269 | } | |
3270 | _ACEOF | |
3271 | rm -f conftest.$ac_objext | |
3272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3273 | (eval $ac_compile) 2>&5 | |
3274 | ac_status=$? | |
3275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3276 | (exit $ac_status); } && | |
3277 | { ac_try='test -s conftest.$ac_objext' | |
3278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3279 | (eval $ac_try) 2>&5 | |
3280 | ac_status=$? | |
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3282 | (exit $ac_status); }; }; then | |
3283 | : | |
3284 | else | |
3285 | echo "$as_me: failed program was:" >&5 | |
3286 | cat conftest.$ac_ext >&5 | |
3287 | continue | |
3288 | fi | |
3289 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3290 | cat >conftest.$ac_ext <<_ACEOF | |
3291 | #line $LINENO "configure" | |
3292 | #include "confdefs.h" | |
3293 | $ac_declaration | |
3294 | #ifdef F77_DUMMY_MAIN | |
3295 | # ifdef __cplusplus | |
3296 | extern "C" | |
3297 | # endif | |
3298 | int F77_DUMMY_MAIN() { return 1; } | |
3299 | #endif | |
3300 | int | |
3301 | main () | |
3302 | { | |
3303 | exit (42); | |
3304 | ; | |
3305 | return 0; | |
3306 | } | |
3307 | _ACEOF | |
3308 | rm -f conftest.$ac_objext | |
3309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3310 | (eval $ac_compile) 2>&5 | |
3311 | ac_status=$? | |
3312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3313 | (exit $ac_status); } && | |
3314 | { ac_try='test -s conftest.$ac_objext' | |
3315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3316 | (eval $ac_try) 2>&5 | |
3317 | ac_status=$? | |
3318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3319 | (exit $ac_status); }; }; then | |
3320 | break | |
3321 | else | |
3322 | echo "$as_me: failed program was:" >&5 | |
3323 | cat conftest.$ac_ext >&5 | |
3324 | fi | |
3325 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3326 | done | |
3327 | rm -f conftest* | |
3328 | if test -n "$ac_declaration"; then | |
3329 | echo '#ifdef __cplusplus' >>confdefs.h | |
3330 | echo $ac_declaration >>confdefs.h | |
3331 | echo '#endif' >>confdefs.h | |
3332 | fi | |
3333 | ||
3334 | else | |
3335 | echo "$as_me: failed program was:" >&5 | |
3336 | cat conftest.$ac_ext >&5 | |
3337 | fi | |
3338 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3339 | ac_ext=c | |
3340 | ac_cpp='$CPP $CPPFLAGS' | |
3341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3344 | ||
3345 | depcc="$CC" am_compiler_list= | |
3346 | ||
3347 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3348 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3349 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3351 | else | |
3352 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3353 | # We make a subdir and do the tests there. Otherwise we can end up | |
3354 | # making bogus files that we don't know about and never remove. For | |
3355 | # instance it was reported that on HP-UX the gcc test will end up | |
3356 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3357 | # in D'. | |
3358 | mkdir conftest.dir | |
3359 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3360 | # using a relative directory. | |
3361 | cp "$am_depcomp" conftest.dir | |
3362 | cd conftest.dir | |
3363 | ||
3364 | am_cv_CC_dependencies_compiler_type=none | |
3365 | if test "$am_compiler_list" = ""; then | |
3366 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3367 | fi | |
3368 | for depmode in $am_compiler_list; do | |
3369 | # We need to recreate these files for each test, as the compiler may | |
3370 | # overwrite some of them when testing with obscure command lines. | |
3371 | # This happens at least with the AIX C compiler. | |
3372 | echo '#include "conftest.h"' > conftest.c | |
3373 | echo 'int i;' > conftest.h | |
3374 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
3375 | ||
3376 | case $depmode in | |
3377 | nosideeffect) | |
3378 | # after this tag, mechanisms are not by side-effect, so they'll | |
3379 | # only be used when explicitly requested | |
3380 | if test "x$enable_dependency_tracking" = xyes; then | |
3381 | continue | |
3382 | else | |
3383 | break | |
3384 | fi | |
3385 | ;; | |
3386 | none) break ;; | |
3387 | esac | |
3388 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3389 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3390 | # handle `-M -o', and we need to detect this. | |
3391 | if depmode=$depmode \ | |
3392 | source=conftest.c object=conftest.o \ | |
3393 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
3394 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
3395 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
3396 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3397 | am_cv_CC_dependencies_compiler_type=$depmode | |
3398 | break | |
3399 | fi | |
3400 | done | |
3401 | ||
3402 | cd .. | |
3403 | rm -rf conftest.dir | |
3404 | else | |
3405 | am_cv_CC_dependencies_compiler_type=none | |
3406 | fi | |
3407 | ||
3408 | fi | |
3409 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3410 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3411 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3412 | ||
3413 | ||
3414 | ||
3415 | if test "$GCC" = "yes"; then | |
3416 | if test "$kde_use_debug_code" = "yes"; then | |
3417 | CFLAGS="-g -O2 $CFLAGS" | |
3418 | case $host in | |
3419 | *-*-linux-gnu) | |
3420 | CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" | |
3421 | ;; | |
3422 | esac | |
3423 | else | |
3424 | CFLAGS="-O2 $CFLAGS" | |
3425 | fi | |
3426 | fi | |
3427 | ||
3428 | if test "$kde_use_debug_define" = "yes"; then | |
3429 | CFLAGS="-DNDEBUG $CFLAGS" | |
3430 | fi | |
3431 | ||
3432 | case "$host" in | |
3433 | *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";; | |
3434 | *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";; | |
3435 | esac | |
3436 | ||
3437 | if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then | |
3438 | LDFLAGS="" | |
3439 | fi | |
3440 | ||
3441 | if test "$kde_use_profiling" = "yes"; then | |
3442 | ||
3443 | echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5 | |
3444 | echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6 | |
3445 | kde_cache=`echo pg | sed 'y% .=/+-%____p_%'` | |
3446 | if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then | |
3447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3448 | else | |
3449 | ||
3450 | ||
3451 | ||
3452 | ||
3453 | ac_ext=cc | |
3454 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3455 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3456 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3457 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3458 | ||
3459 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3460 | ||
3461 | ||
3462 | ||
3463 | save_CXXFLAGS="$CXXFLAGS" | |
3464 | CXXFLAGS="$CXXFLAGS -pg" | |
3465 | cat >conftest.$ac_ext <<_ACEOF | |
3466 | #line $LINENO "configure" | |
3467 | #include "confdefs.h" | |
3468 | ||
3469 | #ifdef F77_DUMMY_MAIN | |
3470 | # ifdef __cplusplus | |
3471 | extern "C" | |
3472 | # endif | |
3473 | int F77_DUMMY_MAIN() { return 1; } | |
3474 | #endif | |
3475 | int | |
3476 | main () | |
3477 | { | |
3478 | return 0; | |
3479 | ; | |
3480 | return 0; | |
3481 | } | |
3482 | _ACEOF | |
3483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3485 | (eval $ac_link) 2>&5 | |
3486 | ac_status=$? | |
3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3488 | (exit $ac_status); } && | |
3489 | { ac_try='test -s conftest$ac_exeext' | |
3490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3491 | (eval $ac_try) 2>&5 | |
3492 | ac_status=$? | |
3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3494 | (exit $ac_status); }; }; then | |
3495 | eval "kde_cv_prog_cxx_$kde_cache=yes" | |
3496 | else | |
3497 | echo "$as_me: failed program was:" >&5 | |
3498 | cat conftest.$ac_ext >&5 | |
3499 | fi | |
3500 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3501 | CXXFLAGS="$save_CXXFLAGS" | |
3502 | ac_ext=c | |
3503 | ac_cpp='$CPP $CPPFLAGS' | |
3504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3507 | ||
3508 | ||
3509 | fi | |
3510 | ||
3511 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then | |
3512 | echo "$as_me:$LINENO: result: yes" >&5 | |
3513 | echo "${ECHO_T}yes" >&6 | |
3514 | : | |
3515 | ||
3516 | CFLAGS="-pg $CFLAGS" | |
3517 | ||
3518 | else | |
3519 | echo "$as_me:$LINENO: result: no" >&5 | |
3520 | echo "${ECHO_T}no" >&6 | |
3521 | : | |
3522 | ||
3523 | fi | |
3524 | ||
3525 | fi | |
3526 | ||
3527 | USE_EXCEPTIONS= | |
3528 | ||
3529 | USE_RTTI= | |
3530 | ||
3531 | ||
3532 | ac_ext=c | |
3533 | ac_cpp='$CPP $CPPFLAGS' | |
3534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3537 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3538 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3539 | # On Suns, sometimes $CPP names a directory. | |
3540 | if test -n "$CPP" && test -d "$CPP"; then | |
3541 | CPP= | |
3542 | fi | |
3543 | if test -z "$CPP"; then | |
3544 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3546 | else | |
3547 | # Double quotes because CPP needs to be expanded | |
3548 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3549 | do | |
3550 | ac_preproc_ok=false | |
3551 | for ac_c_preproc_warn_flag in '' yes | |
3552 | do | |
3553 | # Use a header file that comes with gcc, so configuring glibc | |
3554 | # with a fresh cross-compiler works. | |
3555 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3556 | # not just through cpp. "Syntax error" is here to catch this case. | |
3557 | cat >conftest.$ac_ext <<_ACEOF | |
3558 | #line $LINENO "configure" | |
3559 | #include "confdefs.h" | |
3560 | #include <assert.h> | |
3561 | Syntax error | |
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 | egrep -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 | else | |
3574 | ac_cpp_err= | |
3575 | fi | |
3576 | else | |
3577 | ac_cpp_err=yes | |
3578 | fi | |
3579 | if test -z "$ac_cpp_err"; then | |
3580 | : | |
3581 | else | |
3582 | echo "$as_me: failed program was:" >&5 | |
3583 | cat conftest.$ac_ext >&5 | |
3584 | # Broken: fails on valid input. | |
3585 | continue | |
3586 | fi | |
3587 | rm -f conftest.err conftest.$ac_ext | |
3588 | ||
3589 | # OK, works on sane cases. Now check whether non-existent headers | |
3590 | # can be detected and how. | |
3591 | cat >conftest.$ac_ext <<_ACEOF | |
3592 | #line $LINENO "configure" | |
3593 | #include "confdefs.h" | |
3594 | #include <ac_nonexistent.h> | |
3595 | _ACEOF | |
3596 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3597 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3598 | ac_status=$? | |
3599 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3600 | rm -f conftest.er1 | |
3601 | cat conftest.err >&5 | |
3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3603 | (exit $ac_status); } >/dev/null; then | |
3604 | if test -s conftest.err; then | |
3605 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3606 | else | |
3607 | ac_cpp_err= | |
3608 | fi | |
3609 | else | |
3610 | ac_cpp_err=yes | |
3611 | fi | |
3612 | if test -z "$ac_cpp_err"; then | |
3613 | # Broken: success on invalid input. | |
3614 | continue | |
3615 | else | |
3616 | echo "$as_me: failed program was:" >&5 | |
3617 | cat conftest.$ac_ext >&5 | |
3618 | # Passes both tests. | |
3619 | ac_preproc_ok=: | |
3620 | break | |
3621 | fi | |
3622 | rm -f conftest.err conftest.$ac_ext | |
3623 | ||
3624 | done | |
3625 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3626 | rm -f conftest.err conftest.$ac_ext | |
3627 | if $ac_preproc_ok; then | |
3628 | break | |
3629 | fi | |
3630 | ||
3631 | done | |
3632 | ac_cv_prog_CPP=$CPP | |
3633 | ||
3634 | fi | |
3635 | CPP=$ac_cv_prog_CPP | |
3636 | else | |
3637 | ac_cv_prog_CPP=$CPP | |
3638 | fi | |
3639 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3640 | echo "${ECHO_T}$CPP" >&6 | |
3641 | ac_preproc_ok=false | |
3642 | for ac_c_preproc_warn_flag in '' yes | |
3643 | do | |
3644 | # Use a header file that comes with gcc, so configuring glibc | |
3645 | # with a fresh cross-compiler works. | |
3646 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3647 | # not just through cpp. "Syntax error" is here to catch this case. | |
3648 | cat >conftest.$ac_ext <<_ACEOF | |
3649 | #line $LINENO "configure" | |
3650 | #include "confdefs.h" | |
3651 | #include <assert.h> | |
3652 | Syntax error | |
3653 | _ACEOF | |
3654 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3655 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3656 | ac_status=$? | |
3657 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3658 | rm -f conftest.er1 | |
3659 | cat conftest.err >&5 | |
3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3661 | (exit $ac_status); } >/dev/null; then | |
3662 | if test -s conftest.err; then | |
3663 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3664 | else | |
3665 | ac_cpp_err= | |
3666 | fi | |
3667 | else | |
3668 | ac_cpp_err=yes | |
3669 | fi | |
3670 | if test -z "$ac_cpp_err"; then | |
3671 | : | |
3672 | else | |
3673 | echo "$as_me: failed program was:" >&5 | |
3674 | cat conftest.$ac_ext >&5 | |
3675 | # Broken: fails on valid input. | |
3676 | continue | |
3677 | fi | |
3678 | rm -f conftest.err conftest.$ac_ext | |
3679 | ||
3680 | # OK, works on sane cases. Now check whether non-existent headers | |
3681 | # can be detected and how. | |
3682 | cat >conftest.$ac_ext <<_ACEOF | |
3683 | #line $LINENO "configure" | |
3684 | #include "confdefs.h" | |
3685 | #include <ac_nonexistent.h> | |
3686 | _ACEOF | |
3687 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3688 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3689 | ac_status=$? | |
3690 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3691 | rm -f conftest.er1 | |
3692 | cat conftest.err >&5 | |
3693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3694 | (exit $ac_status); } >/dev/null; then | |
3695 | if test -s conftest.err; then | |
3696 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3697 | else | |
3698 | ac_cpp_err= | |
3699 | fi | |
3700 | else | |
3701 | ac_cpp_err=yes | |
3702 | fi | |
3703 | if test -z "$ac_cpp_err"; then | |
3704 | # Broken: success on invalid input. | |
3705 | continue | |
3706 | else | |
3707 | echo "$as_me: failed program was:" >&5 | |
3708 | cat conftest.$ac_ext >&5 | |
3709 | # Passes both tests. | |
3710 | ac_preproc_ok=: | |
3711 | break | |
3712 | fi | |
3713 | rm -f conftest.err conftest.$ac_ext | |
3714 | ||
3715 | done | |
3716 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3717 | rm -f conftest.err conftest.$ac_ext | |
3718 | if $ac_preproc_ok; then | |
3719 | : | |
3720 | else | |
3721 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
3722 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
3723 | { (exit 1); exit 1; }; } | |
3724 | fi | |
3725 | ||
3726 | ac_ext=c | |
3727 | ac_cpp='$CPP $CPPFLAGS' | |
3728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3731 | ||
3732 | ||
3733 | # the following is to allow programs, that are known to | |
3734 | # have problems when compiled with -O2 | |
3735 | if test -n "$CFLAGS"; then | |
3736 | kde_safe_IFS=$IFS | |
3737 | IFS=" " | |
3738 | NOOPT_CFLAGS="" | |
3739 | for i in $CFLAGS; do | |
3740 | case $i in | |
3741 | -O*) | |
3742 | ;; | |
3743 | *) | |
3744 | NOOPT_CFLAGS="$NOOPT_CFLAGS $i" | |
3745 | ;; | |
3746 | esac | |
3747 | done | |
3748 | IFS=$kde_safe_IFS | |
3749 | fi | |
3750 | ||
3751 | ||
3752 | ||
3753 | ||
3754 | # Check whether --enable-final or --disable-final was given. | |
3755 | if test "${enable_final+set}" = set; then | |
3756 | enableval="$enable_final" | |
3757 | kde_use_final=$enableval | |
3758 | else | |
3759 | kde_use_final=no | |
3760 | fi; | |
3761 | ||
3762 | ||
3763 | REPO="" | |
3764 | NOREPO="" | |
3765 | ||
3766 | ||
3767 | echo "$as_me:$LINENO: checking whether $CXX supports -frepo" >&5 | |
3768 | echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6 | |
3769 | kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'` | |
3770 | if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then | |
3771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3772 | else | |
3773 | ||
3774 | ||
3775 | ||
3776 | ac_ext=cc | |
3777 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3778 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3779 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3780 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3781 | ||
3782 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3783 | ||
3784 | ||
3785 | save_CXXFLAGS="$CXXFLAGS" | |
3786 | CXXFLAGS="$CXXFLAGS -frepo" | |
3787 | cat >conftest.$ac_ext <<_ACEOF | |
3788 | #line $LINENO "configure" | |
3789 | #include "confdefs.h" | |
3790 | ||
3791 | #ifdef F77_DUMMY_MAIN | |
3792 | # ifdef __cplusplus | |
3793 | extern "C" | |
3794 | # endif | |
3795 | int F77_DUMMY_MAIN() { return 1; } | |
3796 | #endif | |
3797 | int | |
3798 | main () | |
3799 | { | |
3800 | return 0; | |
3801 | ; | |
3802 | return 0; | |
3803 | } | |
3804 | _ACEOF | |
3805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3807 | (eval $ac_link) 2>&5 | |
3808 | ac_status=$? | |
3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3810 | (exit $ac_status); } && | |
3811 | { ac_try='test -s conftest$ac_exeext' | |
3812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3813 | (eval $ac_try) 2>&5 | |
3814 | ac_status=$? | |
3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3816 | (exit $ac_status); }; }; then | |
3817 | eval "kde_cv_prog_cxx_$kde_cache=yes" | |
3818 | else | |
3819 | echo "$as_me: failed program was:" >&5 | |
3820 | cat conftest.$ac_ext >&5 | |
3821 | fi | |
3822 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3823 | CXXFLAGS="$save_CXXFLAGS" | |
3824 | ac_ext=c | |
3825 | ac_cpp='$CPP $CPPFLAGS' | |
3826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3829 | ||
3830 | ||
3831 | fi | |
3832 | ||
3833 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then | |
3834 | echo "$as_me:$LINENO: result: yes" >&5 | |
3835 | echo "${ECHO_T}yes" >&6 | |
3836 | : | |
3837 | ||
3838 | REPO="-frepo" | |
3839 | NOREPO="-fno-repo" | |
3840 | ||
3841 | else | |
3842 | echo "$as_me:$LINENO: result: no" >&5 | |
3843 | echo "${ECHO_T}no" >&6 | |
3844 | : | |
3845 | ||
3846 | fi | |
3847 | ||
3848 | ||
3849 | if test -z "$REPO"; then | |
3850 | ||
3851 | echo "$as_me:$LINENO: checking whether $CXX supports -instances=explicit" >&5 | |
3852 | echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6 | |
3853 | kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'` | |
3854 | if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then | |
3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3856 | else | |
3857 | ||
3858 | ||
3859 | ||
3860 | ac_ext=cc | |
3861 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3862 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3863 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3864 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3865 | ||
3866 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3867 | ||
3868 | ||
3869 | save_CXXFLAGS="$CXXFLAGS" | |
3870 | CXXFLAGS="$CXXFLAGS -instances=explicit" | |
3871 | cat >conftest.$ac_ext <<_ACEOF | |
3872 | #line $LINENO "configure" | |
3873 | #include "confdefs.h" | |
3874 | ||
3875 | #ifdef F77_DUMMY_MAIN | |
3876 | # ifdef __cplusplus | |
3877 | extern "C" | |
3878 | # endif | |
3879 | int F77_DUMMY_MAIN() { return 1; } | |
3880 | #endif | |
3881 | int | |
3882 | main () | |
3883 | { | |
3884 | return 0; | |
3885 | ; | |
3886 | return 0; | |
3887 | } | |
3888 | _ACEOF | |
3889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3891 | (eval $ac_link) 2>&5 | |
3892 | ac_status=$? | |
3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3894 | (exit $ac_status); } && | |
3895 | { ac_try='test -s conftest$ac_exeext' | |
3896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3897 | (eval $ac_try) 2>&5 | |
3898 | ac_status=$? | |
3899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3900 | (exit $ac_status); }; }; then | |
3901 | eval "kde_cv_prog_cxx_$kde_cache=yes" | |
3902 | else | |
3903 | echo "$as_me: failed program was:" >&5 | |
3904 | cat conftest.$ac_ext >&5 | |
3905 | fi | |
3906 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3907 | CXXFLAGS="$save_CXXFLAGS" | |
3908 | ac_ext=c | |
3909 | ac_cpp='$CPP $CPPFLAGS' | |
3910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3913 | ||
3914 | ||
3915 | fi | |
3916 | ||
3917 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then | |
3918 | echo "$as_me:$LINENO: result: yes" >&5 | |
3919 | echo "${ECHO_T}yes" >&6 | |
3920 | : | |
3921 | ||
3922 | REPO="-instances=explicit" | |
3923 | NOREPO="-instances=extern" | |
3924 | ||
3925 | else | |
3926 | echo "$as_me:$LINENO: result: no" >&5 | |
3927 | echo "${ECHO_T}no" >&6 | |
3928 | : | |
3929 | ||
3930 | fi | |
3931 | ||
3932 | fi | |
3933 | ||
3934 | if test -n "$REPO"; then | |
3935 | ||
3936 | cat >>confdefs.h <<_ACEOF | |
3937 | #define HAVE_TEMPLATE_REPOSITORY 1 | |
3938 | _ACEOF | |
3939 | ||
3940 | ||
3941 | fi | |
3942 | ||
3943 | ||
3944 | ||
3945 | ||
3946 | if test "x$kde_use_final" = "xyes"; then | |
3947 | KDE_USE_FINAL_TRUE="" | |
3948 | KDE_USE_FINAL_FALSE="#" | |
3949 | else | |
3950 | KDE_USE_FINAL_TRUE="#" | |
3951 | KDE_USE_FINAL_FALSE="" | |
3952 | fi | |
3953 | ||
3954 | ||
3955 | ||
3956 | # Check whether --enable-closure or --disable-closure was given. | |
3957 | if test "${enable_closure+set}" = set; then | |
3958 | enableval="$enable_closure" | |
3959 | kde_use_closure=$enableval | |
3960 | else | |
3961 | kde_use_closure=yes | |
3962 | fi; | |
3963 | ||
3964 | if test "x$kde_use_closure" = "xyes"; then | |
3965 | KDE_USE_CLOSURE_TRUE="" | |
3966 | KDE_USE_CLOSURE_FALSE="#" | |
3967 | # CXXFLAGS="$CXXFLAGS $REPO" | |
3968 | else | |
3969 | KDE_USE_CLOSURE_TRUE="#" | |
3970 | KDE_USE_CLOSURE_FALSE="" | |
3971 | fi | |
3972 | ||
3973 | ||
3974 | ||
3975 | ||
3976 | ||
3977 | ||
3978 | KDE_CXXFLAGS= | |
3979 | ||
3980 | ||
3981 | ||
3982 | ||
3983 | # Check whether --enable-shared or --disable-shared was given. | |
3984 | if test "${enable_shared+set}" = set; then | |
3985 | enableval="$enable_shared" | |
3986 | p=${PACKAGE-default} | |
3987 | case $enableval in | |
3988 | yes) enable_shared=yes ;; | |
3989 | no) enable_shared=no ;; | |
3990 | *) | |
3991 | enable_shared=no | |
3992 | # Look at the argument we got. We use all the common list separators. | |
3993 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3994 | for pkg in $enableval; do | |
3995 | IFS="$lt_save_ifs" | |
3996 | if test "X$pkg" = "X$p"; then | |
3997 | enable_shared=yes | |
3998 | fi | |
3999 | done | |
4000 | IFS="$lt_save_ifs" | |
4001 | ;; | |
4002 | esac | |
4003 | else | |
4004 | enable_shared=yes | |
4005 | fi; | |
4006 | ||
4007 | ||
4008 | # Check whether --enable-static or --disable-static was given. | |
4009 | if test "${enable_static+set}" = set; then | |
4010 | enableval="$enable_static" | |
4011 | p=${PACKAGE-default} | |
4012 | case $enableval in | |
4013 | yes) enable_static=yes ;; | |
4014 | no) enable_static=no ;; | |
4015 | *) | |
4016 | enable_static=no | |
4017 | # Look at the argument we got. We use all the common list separators. | |
4018 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4019 | for pkg in $enableval; do | |
4020 | IFS="$lt_save_ifs" | |
4021 | if test "X$pkg" = "X$p"; then | |
4022 | enable_static=yes | |
4023 | fi | |
4024 | done | |
4025 | IFS="$lt_save_ifs" | |
4026 | ;; | |
4027 | esac | |
4028 | else | |
4029 | enable_static=no | |
4030 | fi; | |
4031 | ||
4032 | ||
4033 | ||
4034 | ||
4035 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
4036 | if test "${enable_fast_install+set}" = set; then | |
4037 | enableval="$enable_fast_install" | |
4038 | p=${PACKAGE-default} | |
4039 | case $enableval in | |
4040 | yes) enable_fast_install=yes ;; | |
4041 | no) enable_fast_install=no ;; | |
4042 | *) | |
4043 | enable_fast_install=no | |
4044 | # Look at the argument we got. We use all the common list separators. | |
4045 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4046 | for pkg in $enableval; do | |
4047 | IFS="$lt_save_ifs" | |
4048 | if test "X$pkg" = "X$p"; then | |
4049 | enable_fast_install=yes | |
4050 | fi | |
4051 | done | |
4052 | IFS="$lt_save_ifs" | |
4053 | ;; | |
4054 | esac | |
4055 | else | |
4056 | enable_fast_install=yes | |
4057 | fi; | |
4058 | ||
4059 | ||
4060 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
4061 | if test "${with_gnu_ld+set}" = set; then | |
4062 | withval="$with_gnu_ld" | |
4063 | test "$withval" = no || with_gnu_ld=yes | |
4064 | else | |
4065 | with_gnu_ld=no | |
4066 | fi; | |
4067 | ac_prog=ld | |
4068 | if test "$GCC" = yes; then | |
4069 | # Check if gcc -print-prog-name=ld gives a path. | |
4070 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
4071 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
4072 | case $host in | |
4073 | *-*-mingw*) | |
4074 | # gcc leaves a trailing carriage return which upsets mingw | |
4075 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4076 | *) | |
4077 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4078 | esac | |
4079 | case $ac_prog in | |
4080 | # Accept absolute paths. | |
4081 | [\\/]* | ?:[\\/]*) | |
4082 | re_direlt='/[^/][^/]*/\.\./' | |
4083 | # Canonicalize the path of ld | |
4084 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
4085 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
4086 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
4087 | done | |
4088 | test -z "$LD" && LD="$ac_prog" | |
4089 | ;; | |
4090 | "") | |
4091 | # If it fails, then pretend we aren't using GCC. | |
4092 | ac_prog=ld | |
4093 | ;; | |
4094 | *) | |
4095 | # If it is relative, then search for the first ld in PATH. | |
4096 | with_gnu_ld=unknown | |
4097 | ;; | |
4098 | esac | |
4099 | elif test "$with_gnu_ld" = yes; then | |
4100 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4101 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
4102 | else | |
4103 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4104 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
4105 | fi | |
4106 | if test "${lt_cv_path_LD+set}" = set; then | |
4107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4108 | else | |
4109 | if test -z "$LD"; then | |
4110 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4111 | for ac_dir in $PATH; do | |
4112 | IFS="$lt_save_ifs" | |
4113 | test -z "$ac_dir" && ac_dir=. | |
4114 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4115 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4116 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4117 | # but apparently some GNU ld's only accept -v. | |
4118 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4119 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
4120 | test "$with_gnu_ld" != no && break | |
4121 | else | |
4122 | test "$with_gnu_ld" != yes && break | |
4123 | fi | |
4124 | fi | |
4125 | done | |
4126 | IFS="$lt_save_ifs" | |
4127 | else | |
4128 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4129 | fi | |
4130 | fi | |
4131 | ||
4132 | LD="$lt_cv_path_LD" | |
4133 | if test -n "$LD"; then | |
4134 | echo "$as_me:$LINENO: result: $LD" >&5 | |
4135 | echo "${ECHO_T}$LD" >&6 | |
4136 | else | |
4137 | echo "$as_me:$LINENO: result: no" >&5 | |
4138 | echo "${ECHO_T}no" >&6 | |
4139 | fi | |
4140 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4141 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4142 | { (exit 1); exit 1; }; } | |
4143 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4144 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4145 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4147 | else | |
4148 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
4149 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
4150 | lt_cv_prog_gnu_ld=yes | |
4151 | else | |
4152 | lt_cv_prog_gnu_ld=no | |
4153 | fi | |
4154 | fi | |
4155 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4156 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
4157 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4158 | ||
4159 | ||
4160 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4161 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4162 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4164 | else | |
4165 | lt_cv_ld_reload_flag='-r' | |
4166 | fi | |
4167 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4168 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4169 | reload_flag=$lt_cv_ld_reload_flag | |
4170 | case $reload_flag in | |
4171 | "" | " "*) ;; | |
4172 | *) reload_flag=" $reload_flag" ;; | |
4173 | esac | |
4174 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4175 | ||
4176 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
4177 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
4178 | if test "${lt_cv_path_NM+set}" = set; then | |
4179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4180 | else | |
4181 | if test -n "$NM"; then | |
4182 | # Let the user override the test. | |
4183 | lt_cv_path_NM="$NM" | |
4184 | else | |
4185 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4186 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
4187 | IFS="$lt_save_ifs" | |
4188 | test -z "$ac_dir" && ac_dir=. | |
4189 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | |
4190 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4191 | # Check to see if the nm accepts a BSD-compat flag. | |
4192 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4193 | # nm: unknown option "B" ignored | |
4194 | # Tru64's nm complains that /dev/null is an invalid object file | |
4195 | if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
4196 | lt_cv_path_NM="$tmp_nm -B" | |
4197 | break | |
4198 | elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
4199 | lt_cv_path_NM="$tmp_nm -p" | |
4200 | break | |
4201 | else | |
4202 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4203 | continue # so that we can try to find one that supports BSD flags | |
4204 | fi | |
4205 | fi | |
4206 | done | |
4207 | IFS="$lt_save_ifs" | |
4208 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
4209 | fi | |
4210 | fi | |
4211 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4212 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4213 | NM="$lt_cv_path_NM" | |
4214 | ||
4215 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4216 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
4217 | if test "${lt_cv_path_SED+set}" = set; then | |
4218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4219 | else | |
4220 | # Loop through the user's path and test for sed and gsed. | |
4221 | # Then use that list of sed's as ones to test for truncation. | |
4222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4223 | for as_dir in $PATH | |
4224 | do | |
4225 | IFS=$as_save_IFS | |
4226 | test -z "$as_dir" && as_dir=. | |
4227 | for ac_prog in sed gsed; do | |
4228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4229 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4230 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" | |
4231 | fi | |
4232 | done | |
4233 | done | |
4234 | done | |
4235 | ||
4236 | # Create a temporary directory, and hook for its removal unless debugging. | |
4237 | $debug || | |
4238 | { | |
4239 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
4240 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
4241 | } | |
4242 | ||
4243 | # Create a (secure) tmp directory for tmp files. | |
4244 | : ${TMPDIR=/tmp} | |
4245 | { | |
4246 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && | |
4247 | test -n "$tmp" && test -d "$tmp" | |
4248 | } || | |
4249 | { | |
4250 | tmp=$TMPDIR/sed$$-$RANDOM | |
4251 | (umask 077 && mkdir $tmp) | |
4252 | } || | |
4253 | { | |
4254 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
4255 | { (exit 1); exit 1; } | |
4256 | } | |
4257 | _max=0 | |
4258 | _count=0 | |
4259 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
4260 | # along with /bin/sed that truncates output. | |
4261 | for _sed in $_sed_list /usr/xpg4/bin/sed; do | |
4262 | test ! -f ${_sed} && break | |
4263 | cat /dev/null > "$tmp/sed.in" | |
4264 | _count=0 | |
4265 | echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in" | |
4266 | # Check for GNU sed and select it if it is found. | |
4267 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then | |
4268 | lt_cv_path_SED=${_sed} | |
4269 | break; | |
4270 | fi | |
4271 | while true; do | |
4272 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" | |
4273 | mv "$tmp/sed.tmp" "$tmp/sed.in" | |
4274 | cp "$tmp/sed.in" "$tmp/sed.nl" | |
4275 | echo >>"$tmp/sed.nl" | |
4276 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break | |
4277 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break | |
4278 | # 10000 chars as input seems more than enough | |
4279 | test $_count -gt 10 && break | |
4280 | _count=`expr $_count + 1` | |
4281 | if test $_count -gt $_max; then | |
4282 | _max=$_count | |
4283 | lt_cv_path_SED=$_sed | |
4284 | fi | |
4285 | done | |
4286 | done | |
4287 | rm -rf "$tmp" | |
4288 | ||
4289 | fi | |
4290 | ||
4291 | echo "$as_me:$LINENO: result: $SED" >&5 | |
4292 | echo "${ECHO_T}$SED" >&6 | |
4293 | ||
4294 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4295 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4296 | LN_S=$as_ln_s | |
4297 | if test "$LN_S" = "ln -s"; then | |
4298 | echo "$as_me:$LINENO: result: yes" >&5 | |
4299 | echo "${ECHO_T}yes" >&6 | |
4300 | else | |
4301 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4302 | echo "${ECHO_T}no, using $LN_S" >&6 | |
4303 | fi | |
4304 | ||
4305 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
4306 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
4307 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4309 | else | |
4310 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4311 | lt_cv_file_magic_test_file= | |
4312 | lt_cv_deplibs_check_method='unknown' | |
4313 | # Need to set the preceding variable on all platforms that support | |
4314 | # interlibrary dependencies. | |
4315 | # 'none' -- dependencies not supported. | |
4316 | # `unknown' -- same as none, but documents that we really don't know. | |
4317 | # 'pass_all' -- all dependencies passed with no checks. | |
4318 | # 'test_compile' -- check by making test program. | |
4319 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4320 | # which responds to the $file_magic_cmd with a given egrep regex. | |
4321 | # If you have `file' or equivalent on your system and you're not sure | |
4322 | # whether `pass_all' will *always* work, you probably want this one. | |
4323 | ||
4324 | case $host_os in | |
4325 | aix4* | aix5*) | |
4326 | lt_cv_deplibs_check_method=pass_all | |
4327 | ;; | |
4328 | ||
4329 | beos*) | |
4330 | lt_cv_deplibs_check_method=pass_all | |
4331 | ;; | |
4332 | ||
4333 | bsdi4*) | |
4334 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4335 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4336 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4337 | ;; | |
4338 | ||
4339 | cygwin* | mingw* | pw32*) | |
4340 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4341 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4342 | ;; | |
4343 | ||
4344 | darwin* | rhapsody*) | |
4345 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
4346 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4347 | case "$host_os" in | |
4348 | rhapsody* | darwin1.[012]) | |
4349 | lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` | |
4350 | ;; | |
4351 | *) # Darwin 1.3 on | |
4352 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
4353 | ;; | |
4354 | esac | |
4355 | ;; | |
4356 | ||
4357 | freebsd*) | |
4358 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
4359 | case $host_cpu in | |
4360 | i*86 ) | |
4361 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4362 | # Let's accept both of them until this is cleared up. | |
4363 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
4364 | lt_cv_file_magic_cmd=/usr/bin/file | |
4365 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4366 | ;; | |
4367 | esac | |
4368 | else | |
4369 | lt_cv_deplibs_check_method=pass_all | |
4370 | fi | |
4371 | ;; | |
4372 | ||
4373 | gnu*) | |
4374 | lt_cv_deplibs_check_method=pass_all | |
4375 | ;; | |
4376 | ||
4377 | hpux10.20* | hpux11*) | |
4378 | lt_cv_file_magic_cmd=/usr/bin/file | |
4379 | if test "$host_cpu" = ia64; then | |
4380 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4381 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4382 | else | |
4383 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4384 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4385 | fi | |
4386 | ;; | |
4387 | ||
4388 | irix5* | irix6* | nonstopux*) | |
4389 | case $host_os in | |
4390 | irix5* | nonstopux*) | |
4391 | # this will be overridden with pass_all, but let us keep it just in case | |
4392 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
4393 | ;; | |
4394 | *) | |
4395 | case $LD in | |
4396 | *-32|*"-32 ") libmagic=32-bit;; | |
4397 | *-n32|*"-n32 ") libmagic=N32;; | |
4398 | *-64|*"-64 ") libmagic=64-bit;; | |
4399 | *) libmagic=never-match;; | |
4400 | esac | |
4401 | # this will be overridden with pass_all, but let us keep it just in case | |
4402 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
4403 | ;; | |
4404 | esac | |
4405 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
4406 | lt_cv_deplibs_check_method=pass_all | |
4407 | ;; | |
4408 | ||
4409 | # This must be Linux ELF. | |
4410 | linux*) | |
4411 | case $host_cpu in | |
4412 | alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* ) | |
4413 | lt_cv_deplibs_check_method=pass_all ;; | |
4414 | *) | |
4415 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
4416 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
4417 | esac | |
4418 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
4419 | ;; | |
4420 | ||
4421 | netbsd*) | |
4422 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
4423 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
4424 | else | |
4425 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
4426 | fi | |
4427 | ;; | |
4428 | ||
4429 | newos6*) | |
4430 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4431 | lt_cv_file_magic_cmd=/usr/bin/file | |
4432 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4433 | ;; | |
4434 | ||
4435 | nto-qnx) | |
4436 | lt_cv_deplibs_check_method=unknown | |
4437 | ;; | |
4438 | ||
4439 | openbsd*) | |
4440 | lt_cv_file_magic_cmd=/usr/bin/file | |
4441 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4442 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4443 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | |
4444 | else | |
4445 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | |
4446 | fi | |
4447 | ;; | |
4448 | ||
4449 | osf3* | osf4* | osf5*) | |
4450 | # this will be overridden with pass_all, but let us keep it just in case | |
4451 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
4452 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4453 | lt_cv_deplibs_check_method=pass_all | |
4454 | ;; | |
4455 | ||
4456 | sco3.2v5*) | |
4457 | lt_cv_deplibs_check_method=pass_all | |
4458 | ;; | |
4459 | ||
4460 | solaris*) | |
4461 | lt_cv_deplibs_check_method=pass_all | |
4462 | lt_cv_file_magic_test_file=/lib/libc.so | |
4463 | ;; | |
4464 | ||
4465 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
4466 | case $host_vendor in | |
4467 | motorola) | |
4468 | 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]' | |
4469 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4470 | ;; | |
4471 | ncr) | |
4472 | lt_cv_deplibs_check_method=pass_all | |
4473 | ;; | |
4474 | sequent) | |
4475 | lt_cv_file_magic_cmd='/bin/file' | |
4476 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4477 | ;; | |
4478 | sni) | |
4479 | lt_cv_file_magic_cmd='/bin/file' | |
4480 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4481 | lt_cv_file_magic_test_file=/lib/libc.so | |
4482 | ;; | |
4483 | esac | |
4484 | ;; | |
4485 | ||
4486 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | |
4487 | lt_cv_deplibs_check_method=pass_all | |
4488 | ;; | |
4489 | esac | |
4490 | ||
4491 | fi | |
4492 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
4493 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
4494 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4495 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4496 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4497 | ||
4498 | ||
4499 | # If no C compiler was specified, use CC. | |
4500 | LTCC=${LTCC-"$CC"} | |
4501 | ||
4502 | # Allow CC to be a program name with arguments. | |
4503 | set dummy $CC | |
4504 | compiler="$2" | |
4505 | ||
4506 | ||
4507 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4508 | if test "${enable_libtool_lock+set}" = set; then | |
4509 | enableval="$enable_libtool_lock" | |
4510 | ||
4511 | fi; | |
4512 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
4513 | ||
4514 | # Some flags need to be propagated to the compiler or linker for good | |
4515 | # libtool support. | |
4516 | case $host in | |
4517 | ia64-*-hpux*) | |
4518 | # Find out which ABI we are using. | |
4519 | echo 'int i;' > conftest.$ac_ext | |
4520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4521 | (eval $ac_compile) 2>&5 | |
4522 | ac_status=$? | |
4523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4524 | (exit $ac_status); }; then | |
4525 | case `/usr/bin/file conftest.$ac_objext` in | |
4526 | *ELF-32*) | |
4527 | HPUX_IA64_MODE="32" | |
4528 | ;; | |
4529 | *ELF-64*) | |
4530 | HPUX_IA64_MODE="64" | |
4531 | ;; | |
4532 | esac | |
4533 | fi | |
4534 | rm -rf conftest* | |
4535 | ;; | |
4536 | *-*-irix6*) | |
4537 | # Find out which ABI we are using. | |
4538 | echo '#line 4538 "configure"' > conftest.$ac_ext | |
4539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4540 | (eval $ac_compile) 2>&5 | |
4541 | ac_status=$? | |
4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4543 | (exit $ac_status); }; then | |
4544 | case `/usr/bin/file conftest.$ac_objext` in | |
4545 | *32-bit*) | |
4546 | LD="${LD-ld} -32" | |
4547 | ;; | |
4548 | *N32*) | |
4549 | LD="${LD-ld} -n32" | |
4550 | ;; | |
4551 | *64-bit*) | |
4552 | LD="${LD-ld} -64" | |
4553 | ;; | |
4554 | esac | |
4555 | fi | |
4556 | rm -rf conftest* | |
4557 | ;; | |
4558 | ||
4559 | *-*-linux*) | |
4560 | # Test if the compiler is 64bit | |
4561 | echo 'int i;' > conftest.$ac_ext | |
4562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4563 | (eval $ac_compile) 2>&5 | |
4564 | ac_status=$? | |
4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4566 | (exit $ac_status); }; then | |
4567 | case `/usr/bin/file conftest.$ac_objext` in | |
4568 | *"ELF 32"*) | |
4569 | LINUX_64_MODE="32" | |
4570 | ;; | |
4571 | *"ELF 64"*) | |
4572 | LINUX_64_MODE="64" | |
4573 | ;; | |
4574 | esac | |
4575 | fi | |
4576 | rm -rf conftest* | |
4577 | ;; | |
4578 | ||
4579 | *-*-sco3.2v5*) | |
4580 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4581 | SAVE_CFLAGS="$CFLAGS" | |
4582 | CFLAGS="$CFLAGS -belf" | |
4583 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4584 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4585 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4587 | else | |
4588 | ac_ext=c | |
4589 | ac_cpp='$CPP $CPPFLAGS' | |
4590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4593 | ||
4594 | cat >conftest.$ac_ext <<_ACEOF | |
4595 | #line $LINENO "configure" | |
4596 | #include "confdefs.h" | |
4597 | ||
4598 | #ifdef F77_DUMMY_MAIN | |
4599 | # ifdef __cplusplus | |
4600 | extern "C" | |
4601 | # endif | |
4602 | int F77_DUMMY_MAIN() { return 1; } | |
4603 | #endif | |
4604 | int | |
4605 | main () | |
4606 | { | |
4607 | ||
4608 | ; | |
4609 | return 0; | |
4610 | } | |
4611 | _ACEOF | |
4612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4614 | (eval $ac_link) 2>&5 | |
4615 | ac_status=$? | |
4616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4617 | (exit $ac_status); } && | |
4618 | { ac_try='test -s conftest$ac_exeext' | |
4619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4620 | (eval $ac_try) 2>&5 | |
4621 | ac_status=$? | |
4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4623 | (exit $ac_status); }; }; then | |
4624 | lt_cv_cc_needs_belf=yes | |
4625 | else | |
4626 | echo "$as_me: failed program was:" >&5 | |
4627 | cat conftest.$ac_ext >&5 | |
4628 | lt_cv_cc_needs_belf=no | |
4629 | fi | |
4630 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4631 | ac_ext=c | |
4632 | ac_cpp='$CPP $CPPFLAGS' | |
4633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4636 | ||
4637 | fi | |
4638 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4639 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4640 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4641 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4642 | CFLAGS="$SAVE_CFLAGS" | |
4643 | fi | |
4644 | ;; | |
4645 | ||
4646 | esac | |
4647 | ||
4648 | need_locks="$enable_libtool_lock" | |
4649 | ||
4650 | ||
4651 | ||
4652 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4653 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4654 | if test "${ac_cv_header_stdc+set}" = set; then | |
4655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4656 | else | |
4657 | cat >conftest.$ac_ext <<_ACEOF | |
4658 | #line $LINENO "configure" | |
4659 | #include "confdefs.h" | |
4660 | #include <stdlib.h> | |
4661 | #include <stdarg.h> | |
4662 | #include <string.h> | |
4663 | #include <float.h> | |
4664 | ||
4665 | _ACEOF | |
4666 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4667 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4668 | ac_status=$? | |
4669 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4670 | rm -f conftest.er1 | |
4671 | cat conftest.err >&5 | |
4672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4673 | (exit $ac_status); } >/dev/null; then | |
4674 | if test -s conftest.err; then | |
4675 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4676 | else | |
4677 | ac_cpp_err= | |
4678 | fi | |
4679 | else | |
4680 | ac_cpp_err=yes | |
4681 | fi | |
4682 | if test -z "$ac_cpp_err"; then | |
4683 | ac_cv_header_stdc=yes | |
4684 | else | |
4685 | echo "$as_me: failed program was:" >&5 | |
4686 | cat conftest.$ac_ext >&5 | |
4687 | ac_cv_header_stdc=no | |
4688 | fi | |
4689 | rm -f conftest.err conftest.$ac_ext | |
4690 | ||
4691 | if test $ac_cv_header_stdc = yes; then | |
4692 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4693 | cat >conftest.$ac_ext <<_ACEOF | |
4694 | #line $LINENO "configure" | |
4695 | #include "confdefs.h" | |
4696 | #include <string.h> | |
4697 | ||
4698 | _ACEOF | |
4699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4700 | egrep "memchr" >/dev/null 2>&1; then | |
4701 | : | |
4702 | else | |
4703 | ac_cv_header_stdc=no | |
4704 | fi | |
4705 | rm -f conftest* | |
4706 | ||
4707 | fi | |
4708 | ||
4709 | if test $ac_cv_header_stdc = yes; then | |
4710 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4711 | cat >conftest.$ac_ext <<_ACEOF | |
4712 | #line $LINENO "configure" | |
4713 | #include "confdefs.h" | |
4714 | #include <stdlib.h> | |
4715 | ||
4716 | _ACEOF | |
4717 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4718 | egrep "free" >/dev/null 2>&1; then | |
4719 | : | |
4720 | else | |
4721 | ac_cv_header_stdc=no | |
4722 | fi | |
4723 | rm -f conftest* | |
4724 | ||
4725 | fi | |
4726 | ||
4727 | if test $ac_cv_header_stdc = yes; then | |
4728 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4729 | if test "$cross_compiling" = yes; then | |
4730 | : | |
4731 | else | |
4732 | cat >conftest.$ac_ext <<_ACEOF | |
4733 | #line $LINENO "configure" | |
4734 | #include "confdefs.h" | |
4735 | #include <ctype.h> | |
4736 | #if ((' ' & 0x0FF) == 0x020) | |
4737 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4738 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4739 | #else | |
4740 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4741 | || ('j' <= (c) && (c) <= 'r') \ | |
4742 | || ('s' <= (c) && (c) <= 'z')) | |
4743 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4744 | #endif | |
4745 | ||
4746 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4747 | int | |
4748 | main () | |
4749 | { | |
4750 | int i; | |
4751 | for (i = 0; i < 256; i++) | |
4752 | if (XOR (islower (i), ISLOWER (i)) | |
4753 | || toupper (i) != TOUPPER (i)) | |
4754 | exit(2); | |
4755 | exit (0); | |
4756 | } | |
4757 | _ACEOF | |
4758 | rm -f conftest$ac_exeext | |
4759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4760 | (eval $ac_link) 2>&5 | |
4761 | ac_status=$? | |
4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4763 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4765 | (eval $ac_try) 2>&5 | |
4766 | ac_status=$? | |
4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4768 | (exit $ac_status); }; }; then | |
4769 | : | |
4770 | else | |
4771 | echo "$as_me: program exited with status $ac_status" >&5 | |
4772 | echo "$as_me: failed program was:" >&5 | |
4773 | cat conftest.$ac_ext >&5 | |
4774 | ( exit $ac_status ) | |
4775 | ac_cv_header_stdc=no | |
4776 | fi | |
4777 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4778 | fi | |
4779 | fi | |
4780 | fi | |
4781 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4782 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4783 | if test $ac_cv_header_stdc = yes; then | |
4784 | ||
4785 | cat >>confdefs.h <<\_ACEOF | |
4786 | #define STDC_HEADERS 1 | |
4787 | _ACEOF | |
4788 | ||
4789 | fi | |
4790 | ||
4791 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4792 | ||
4793 | ||
4794 | ||
4795 | ||
4796 | ||
4797 | ||
4798 | ||
4799 | ||
4800 | ||
4801 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4802 | inttypes.h stdint.h unistd.h | |
4803 | do | |
4804 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4809 | else | |
4810 | cat >conftest.$ac_ext <<_ACEOF | |
4811 | #line $LINENO "configure" | |
4812 | #include "confdefs.h" | |
4813 | $ac_includes_default | |
4814 | ||
4815 | #include <$ac_header> | |
4816 | _ACEOF | |
4817 | rm -f conftest.$ac_objext | |
4818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4819 | (eval $ac_compile) 2>&5 | |
4820 | ac_status=$? | |
4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4822 | (exit $ac_status); } && | |
4823 | { ac_try='test -s conftest.$ac_objext' | |
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 "$as_ac_Header=yes" | |
4830 | else | |
4831 | echo "$as_me: failed program was:" >&5 | |
4832 | cat conftest.$ac_ext >&5 | |
4833 | eval "$as_ac_Header=no" | |
4834 | fi | |
4835 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4836 | fi | |
4837 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4838 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4839 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4840 | cat >>confdefs.h <<_ACEOF | |
4841 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4842 | _ACEOF | |
4843 | ||
4844 | fi | |
4845 | ||
4846 | done | |
4847 | ||
4848 | ||
4849 | ||
4850 | for ac_header in dlfcn.h | |
4851 | do | |
4852 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4853 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4854 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4855 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4858 | fi | |
4859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4860 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4861 | else | |
4862 | # Is the header compilable? | |
4863 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4864 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4865 | cat >conftest.$ac_ext <<_ACEOF | |
4866 | #line $LINENO "configure" | |
4867 | #include "confdefs.h" | |
4868 | $ac_includes_default | |
4869 | #include <$ac_header> | |
4870 | _ACEOF | |
4871 | rm -f conftest.$ac_objext | |
4872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4873 | (eval $ac_compile) 2>&5 | |
4874 | ac_status=$? | |
4875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4876 | (exit $ac_status); } && | |
4877 | { ac_try='test -s conftest.$ac_objext' | |
4878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4879 | (eval $ac_try) 2>&5 | |
4880 | ac_status=$? | |
4881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4882 | (exit $ac_status); }; }; then | |
4883 | ac_header_compiler=yes | |
4884 | else | |
4885 | echo "$as_me: failed program was:" >&5 | |
4886 | cat conftest.$ac_ext >&5 | |
4887 | ac_header_compiler=no | |
4888 | fi | |
4889 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4890 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4891 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4892 | ||
4893 | # Is the header present? | |
4894 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4895 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4896 | cat >conftest.$ac_ext <<_ACEOF | |
4897 | #line $LINENO "configure" | |
4898 | #include "confdefs.h" | |
4899 | #include <$ac_header> | |
4900 | _ACEOF | |
4901 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4902 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4903 | ac_status=$? | |
4904 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4905 | rm -f conftest.er1 | |
4906 | cat conftest.err >&5 | |
4907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4908 | (exit $ac_status); } >/dev/null; then | |
4909 | if test -s conftest.err; then | |
4910 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4911 | else | |
4912 | ac_cpp_err= | |
4913 | fi | |
4914 | else | |
4915 | ac_cpp_err=yes | |
4916 | fi | |
4917 | if test -z "$ac_cpp_err"; then | |
4918 | ac_header_preproc=yes | |
4919 | else | |
4920 | echo "$as_me: failed program was:" >&5 | |
4921 | cat conftest.$ac_ext >&5 | |
4922 | ac_header_preproc=no | |
4923 | fi | |
4924 | rm -f conftest.err conftest.$ac_ext | |
4925 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4926 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4927 | ||
4928 | # So? What about this header? | |
4929 | case $ac_header_compiler:$ac_header_preproc in | |
4930 | yes:no ) | |
4931 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4932 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4934 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4935 | no:yes ) | |
4936 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4937 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4938 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4939 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4940 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4941 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4942 | esac | |
4943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4947 | else | |
4948 | eval "$as_ac_Header=$ac_header_preproc" | |
4949 | fi | |
4950 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4951 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4952 | ||
4953 | fi | |
4954 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4955 | cat >>confdefs.h <<_ACEOF | |
4956 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4957 | _ACEOF | |
4958 | ||
4959 | fi | |
4960 | ||
4961 | done | |
4962 | ||
4963 | ac_ext=cc | |
4964 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4965 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4966 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4967 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4968 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4969 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4970 | if test -z "$CXXCPP"; then | |
4971 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4973 | else | |
4974 | # Double quotes because CXXCPP needs to be expanded | |
4975 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
4976 | do | |
4977 | ac_preproc_ok=false | |
4978 | for ac_cxx_preproc_warn_flag in '' yes | |
4979 | do | |
4980 | # Use a header file that comes with gcc, so configuring glibc | |
4981 | # with a fresh cross-compiler works. | |
4982 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4983 | # not just through cpp. "Syntax error" is here to catch this case. | |
4984 | cat >conftest.$ac_ext <<_ACEOF | |
4985 | #line $LINENO "configure" | |
4986 | #include "confdefs.h" | |
4987 | #include <assert.h> | |
4988 | Syntax error | |
4989 | _ACEOF | |
4990 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4992 | ac_status=$? | |
4993 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4994 | rm -f conftest.er1 | |
4995 | cat conftest.err >&5 | |
4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4997 | (exit $ac_status); } >/dev/null; then | |
4998 | if test -s conftest.err; then | |
4999 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5000 | else | |
5001 | ac_cpp_err= | |
5002 | fi | |
5003 | else | |
5004 | ac_cpp_err=yes | |
5005 | fi | |
5006 | if test -z "$ac_cpp_err"; then | |
5007 | : | |
5008 | else | |
5009 | echo "$as_me: failed program was:" >&5 | |
5010 | cat conftest.$ac_ext >&5 | |
5011 | # Broken: fails on valid input. | |
5012 | continue | |
5013 | fi | |
5014 | rm -f conftest.err conftest.$ac_ext | |
5015 | ||
5016 | # OK, works on sane cases. Now check whether non-existent headers | |
5017 | # can be detected and how. | |
5018 | cat >conftest.$ac_ext <<_ACEOF | |
5019 | #line $LINENO "configure" | |
5020 | #include "confdefs.h" | |
5021 | #include <ac_nonexistent.h> | |
5022 | _ACEOF | |
5023 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5025 | ac_status=$? | |
5026 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5027 | rm -f conftest.er1 | |
5028 | cat conftest.err >&5 | |
5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5030 | (exit $ac_status); } >/dev/null; then | |
5031 | if test -s conftest.err; then | |
5032 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5033 | else | |
5034 | ac_cpp_err= | |
5035 | fi | |
5036 | else | |
5037 | ac_cpp_err=yes | |
5038 | fi | |
5039 | if test -z "$ac_cpp_err"; then | |
5040 | # Broken: success on invalid input. | |
5041 | continue | |
5042 | else | |
5043 | echo "$as_me: failed program was:" >&5 | |
5044 | cat conftest.$ac_ext >&5 | |
5045 | # Passes both tests. | |
5046 | ac_preproc_ok=: | |
5047 | break | |
5048 | fi | |
5049 | rm -f conftest.err conftest.$ac_ext | |
5050 | ||
5051 | done | |
5052 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5053 | rm -f conftest.err conftest.$ac_ext | |
5054 | if $ac_preproc_ok; then | |
5055 | break | |
5056 | fi | |
5057 | ||
5058 | done | |
5059 | ac_cv_prog_CXXCPP=$CXXCPP | |
5060 | ||
5061 | fi | |
5062 | CXXCPP=$ac_cv_prog_CXXCPP | |
5063 | else | |
5064 | ac_cv_prog_CXXCPP=$CXXCPP | |
5065 | fi | |
5066 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5067 | echo "${ECHO_T}$CXXCPP" >&6 | |
5068 | ac_preproc_ok=false | |
5069 | for ac_cxx_preproc_warn_flag in '' yes | |
5070 | do | |
5071 | # Use a header file that comes with gcc, so configuring glibc | |
5072 | # with a fresh cross-compiler works. | |
5073 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5074 | # not just through cpp. "Syntax error" is here to catch this case. | |
5075 | cat >conftest.$ac_ext <<_ACEOF | |
5076 | #line $LINENO "configure" | |
5077 | #include "confdefs.h" | |
5078 | #include <assert.h> | |
5079 | Syntax error | |
5080 | _ACEOF | |
5081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5083 | ac_status=$? | |
5084 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5085 | rm -f conftest.er1 | |
5086 | cat conftest.err >&5 | |
5087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5088 | (exit $ac_status); } >/dev/null; then | |
5089 | if test -s conftest.err; then | |
5090 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5091 | else | |
5092 | ac_cpp_err= | |
5093 | fi | |
5094 | else | |
5095 | ac_cpp_err=yes | |
5096 | fi | |
5097 | if test -z "$ac_cpp_err"; then | |
5098 | : | |
5099 | else | |
5100 | echo "$as_me: failed program was:" >&5 | |
5101 | cat conftest.$ac_ext >&5 | |
5102 | # Broken: fails on valid input. | |
5103 | continue | |
5104 | fi | |
5105 | rm -f conftest.err conftest.$ac_ext | |
5106 | ||
5107 | # OK, works on sane cases. Now check whether non-existent headers | |
5108 | # can be detected and how. | |
5109 | cat >conftest.$ac_ext <<_ACEOF | |
5110 | #line $LINENO "configure" | |
5111 | #include "confdefs.h" | |
5112 | #include <ac_nonexistent.h> | |
5113 | _ACEOF | |
5114 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5115 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5116 | ac_status=$? | |
5117 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5118 | rm -f conftest.er1 | |
5119 | cat conftest.err >&5 | |
5120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5121 | (exit $ac_status); } >/dev/null; then | |
5122 | if test -s conftest.err; then | |
5123 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5124 | else | |
5125 | ac_cpp_err= | |
5126 | fi | |
5127 | else | |
5128 | ac_cpp_err=yes | |
5129 | fi | |
5130 | if test -z "$ac_cpp_err"; then | |
5131 | # Broken: success on invalid input. | |
5132 | continue | |
5133 | else | |
5134 | echo "$as_me: failed program was:" >&5 | |
5135 | cat conftest.$ac_ext >&5 | |
5136 | # Passes both tests. | |
5137 | ac_preproc_ok=: | |
5138 | break | |
5139 | fi | |
5140 | rm -f conftest.err conftest.$ac_ext | |
5141 | ||
5142 | done | |
5143 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5144 | rm -f conftest.err conftest.$ac_ext | |
5145 | if $ac_preproc_ok; then | |
5146 | : | |
5147 | else | |
5148 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 | |
5149 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} | |
5150 | { (exit 1); exit 1; }; } | |
5151 | fi | |
5152 | ||
5153 | ac_ext=cc | |
5154 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5155 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5156 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5157 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5158 | ||
5159 | ||
5160 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5161 | ||
5162 | # find the maximum length of command line arguments | |
5163 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5164 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5165 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5167 | else | |
5168 | i=0 | |
5169 | testring="ABCD" | |
5170 | ||
5171 | case $host_os in | |
5172 | msdosdjgpp*) | |
5173 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5174 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5175 | # during glob expansion). Even if it were fixed, the result of this | |
5176 | # check would be larger than it should be. | |
5177 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5178 | ;; | |
5179 | ||
5180 | gnu*) | |
5181 | # Under GNU Hurd, this test is not required because there is | |
5182 | # no limit to the length of command line arguments. | |
5183 | # Libtool will interpret -1 as no limit whatsoever | |
5184 | lt_cv_sys_max_cmd_len=-1; | |
5185 | ;; | |
5186 | ||
5187 | *) | |
5188 | # If test is not a shell built-in, we'll probably end up computing a | |
5189 | # maximum length that is only half of the actual maximum length, but | |
5190 | # we can't tell. | |
5191 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | |
5192 | = "XX$testring") >/dev/null 2>&1 && | |
5193 | new_result=`expr "X$testring" : ".*" 2>&1` && | |
5194 | lt_cv_sys_max_cmd_len=$new_result && | |
5195 | test $i != 17 # 1/2 MB should be enough | |
5196 | do | |
5197 | i=`expr $i + 1` | |
5198 | testring=$testring$testring | |
5199 | done | |
5200 | testring= | |
5201 | # Add a significant safety factor because C++ compilers can tack on massive | |
5202 | # amounts of additional arguments before passing them to the linker. | |
5203 | # It appears as though 1/2 is a usable value. | |
5204 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5205 | ;; | |
5206 | esac | |
5207 | ||
5208 | fi | |
5209 | ||
5210 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5211 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5212 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5213 | else | |
5214 | echo "$as_me:$LINENO: result: none" >&5 | |
5215 | echo "${ECHO_T}none" >&6 | |
5216 | fi | |
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5222 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5223 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5224 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5226 | else | |
5227 | ||
5228 | # These are sane defaults that work on at least a few old systems. | |
5229 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5230 | ||
5231 | # Character class describing NM global symbol codes. | |
5232 | symcode='[BCDEGRST]' | |
5233 | ||
5234 | # Regexp to match symbols that can be accessed directly from C. | |
5235 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5236 | ||
5237 | # Transform the above into a raw symbol and a C symbol. | |
5238 | symxfrm='\1 \2\3 \3' | |
5239 | ||
5240 | # Transform an extracted symbol line into a proper C declaration | |
5241 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
5242 | ||
5243 | # Transform an extracted symbol line into symbol name and symbol address | |
5244 | 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'" | |
5245 | ||
5246 | # Define system-specific variables. | |
5247 | case $host_os in | |
5248 | aix*) | |
5249 | symcode='[BCDT]' | |
5250 | ;; | |
5251 | cygwin* | mingw* | pw32*) | |
5252 | symcode='[ABCDGISTW]' | |
5253 | ;; | |
5254 | hpux*) # Its linker distinguishes data from code symbols | |
5255 | if test "$host_cpu" = ia64; then | |
5256 | symcode='[ABCDEGRST]' | |
5257 | fi | |
5258 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5259 | 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'" | |
5260 | ;; | |
5261 | irix* | nonstopux*) | |
5262 | symcode='[BCDEGRST]' | |
5263 | ;; | |
5264 | solaris* | sysv5*) | |
5265 | symcode='[BDT]' | |
5266 | ;; | |
5267 | sysv4) | |
5268 | symcode='[DFNSTU]' | |
5269 | ;; | |
5270 | esac | |
5271 | ||
5272 | # Handle CRLF in mingw tool chain | |
5273 | opt_cr= | |
5274 | case $host_os in | |
5275 | mingw*) | |
5276 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5277 | ;; | |
5278 | esac | |
5279 | ||
5280 | # If we're using GNU nm, then use its standard symbol codes. | |
5281 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
5282 | symcode='[ABCDGISTW]' | |
5283 | fi | |
5284 | ||
5285 | # Try without a prefix undercore, then with it. | |
5286 | for ac_symprfx in "" "_"; do | |
5287 | ||
5288 | # Write the raw and C identifiers. | |
5289 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
5290 | ||
5291 | # Check to see that the pipe works correctly. | |
5292 | pipe_works=no | |
5293 | ||
5294 | rm -f conftest* | |
5295 | cat > conftest.$ac_ext <<EOF | |
5296 | #ifdef __cplusplus | |
5297 | extern "C" { | |
5298 | #endif | |
5299 | char nm_test_var; | |
5300 | void nm_test_func(){} | |
5301 | #ifdef __cplusplus | |
5302 | } | |
5303 | #endif | |
5304 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5305 | EOF | |
5306 | ||
5307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5308 | (eval $ac_compile) 2>&5 | |
5309 | ac_status=$? | |
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5311 | (exit $ac_status); }; then | |
5312 | # Now try to grab the symbols. | |
5313 | nlist=conftest.nm | |
5314 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5315 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5316 | ac_status=$? | |
5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5318 | (exit $ac_status); } && test -s "$nlist"; then | |
5319 | # Try sorting and uniquifying the output. | |
5320 | if sort "$nlist" | uniq > "$nlist"T; then | |
5321 | mv -f "$nlist"T "$nlist" | |
5322 | else | |
5323 | rm -f "$nlist"T | |
5324 | fi | |
5325 | ||
5326 | # Make sure that we snagged all the symbols we need. | |
5327 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | |
5328 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | |
5329 | cat <<EOF > conftest.$ac_ext | |
5330 | #ifdef __cplusplus | |
5331 | extern "C" { | |
5332 | #endif | |
5333 | ||
5334 | EOF | |
5335 | # Now generate the symbol file. | |
5336 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
5337 | ||
5338 | cat <<EOF >> conftest.$ac_ext | |
5339 | #if defined (__STDC__) && __STDC__ | |
5340 | # define lt_ptr_t void * | |
5341 | #else | |
5342 | # define lt_ptr_t char * | |
5343 | # define const | |
5344 | #endif | |
5345 | ||
5346 | /* The mapping between symbol names and symbols. */ | |
5347 | const struct { | |
5348 | const char *name; | |
5349 | lt_ptr_t address; | |
5350 | } | |
5351 | lt_preloaded_symbols[] = | |
5352 | { | |
5353 | EOF | |
5354 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
5355 | cat <<\EOF >> conftest.$ac_ext | |
5356 | {0, (lt_ptr_t) 0} | |
5357 | }; | |
5358 | ||
5359 | #ifdef __cplusplus | |
5360 | } | |
5361 | #endif | |
5362 | EOF | |
5363 | # Now try linking the two files. | |
5364 | mv conftest.$ac_objext conftstm.$ac_objext | |
5365 | lt_save_LIBS="$LIBS" | |
5366 | lt_save_CFLAGS="$CFLAGS" | |
5367 | LIBS="conftstm.$ac_objext" | |
5368 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5370 | (eval $ac_link) 2>&5 | |
5371 | ac_status=$? | |
5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5373 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5374 | pipe_works=yes | |
5375 | fi | |
5376 | LIBS="$lt_save_LIBS" | |
5377 | CFLAGS="$lt_save_CFLAGS" | |
5378 | else | |
5379 | echo "cannot find nm_test_func in $nlist" >&5 | |
5380 | fi | |
5381 | else | |
5382 | echo "cannot find nm_test_var in $nlist" >&5 | |
5383 | fi | |
5384 | else | |
5385 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5386 | fi | |
5387 | else | |
5388 | echo "$progname: failed program was:" >&5 | |
5389 | cat conftest.$ac_ext >&5 | |
5390 | fi | |
5391 | rm -f conftest* conftst* | |
5392 | ||
5393 | # Do not use the global_symbol_pipe unless it works. | |
5394 | if test "$pipe_works" = yes; then | |
5395 | break | |
5396 | else | |
5397 | lt_cv_sys_global_symbol_pipe= | |
5398 | fi | |
5399 | done | |
5400 | ||
5401 | fi | |
5402 | ||
5403 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5404 | lt_cv_sys_global_symbol_to_cdecl= | |
5405 | fi | |
5406 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5407 | echo "$as_me:$LINENO: result: failed" >&5 | |
5408 | echo "${ECHO_T}failed" >&6 | |
5409 | else | |
5410 | echo "$as_me:$LINENO: result: ok" >&5 | |
5411 | echo "${ECHO_T}ok" >&6 | |
5412 | fi | |
5413 | ||
5414 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
5415 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
5416 | if test "${lt_cv_objdir+set}" = set; then | |
5417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5418 | else | |
5419 | rm -f .libs 2>/dev/null | |
5420 | mkdir .libs 2>/dev/null | |
5421 | if test -d .libs; then | |
5422 | lt_cv_objdir=.libs | |
5423 | else | |
5424 | # MS-DOS does not allow filenames that begin with a dot. | |
5425 | lt_cv_objdir=_libs | |
5426 | fi | |
5427 | rmdir .libs 2>/dev/null | |
5428 | fi | |
5429 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
5430 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
5431 | objdir=$lt_cv_objdir | |
5432 | ||
5433 | ||
5434 | ||
5435 | ||
5436 | ||
5437 | case $host_os in | |
5438 | aix3*) | |
5439 | # AIX sometimes has problems with the GCC collect2 program. For some | |
5440 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
5441 | # vanish in a puff of smoke. | |
5442 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
5443 | COLLECT_NAMES= | |
5444 | export COLLECT_NAMES | |
5445 | fi | |
5446 | ;; | |
5447 | esac | |
5448 | ||
5449 | # Sed substitution that helps us do robust quoting. It backslashifies | |
5450 | # metacharacters that are still active within double-quoted strings. | |
5451 | Xsed='sed -e s/^X//' | |
5452 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
5453 | ||
5454 | # Same as above, but do not quote variable references. | |
5455 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
5456 | ||
5457 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5458 | # double_quote_subst'ed string. | |
5459 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5460 | ||
5461 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5462 | no_glob_subst='s/\*/\\\*/g' | |
5463 | ||
5464 | # Constants: | |
5465 | rm="rm -f" | |
5466 | ||
5467 | # Global variables: | |
5468 | default_ofile=libtool | |
5469 | can_build_shared=yes | |
5470 | ||
5471 | # All known linkers require a `.a' archive for static linking (except M$VC, | |
5472 | # which needs '.lib'). | |
5473 | libext=a | |
5474 | ltmain="$ac_aux_dir/ltmain.sh" | |
5475 | ofile="$default_ofile" | |
5476 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
5477 | ||
5478 | if test -n "$ac_tool_prefix"; then | |
5479 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5480 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5483 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5485 | else | |
5486 | if test -n "$RANLIB"; then | |
5487 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5488 | else | |
5489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5490 | for as_dir in $PATH | |
5491 | do | |
5492 | IFS=$as_save_IFS | |
5493 | test -z "$as_dir" && as_dir=. | |
5494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5496 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5498 | break 2 | |
5499 | fi | |
5500 | done | |
5501 | done | |
5502 | ||
5503 | fi | |
5504 | fi | |
5505 | RANLIB=$ac_cv_prog_RANLIB | |
5506 | if test -n "$RANLIB"; then | |
5507 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5508 | echo "${ECHO_T}$RANLIB" >&6 | |
5509 | else | |
5510 | echo "$as_me:$LINENO: result: no" >&5 | |
5511 | echo "${ECHO_T}no" >&6 | |
5512 | fi | |
5513 | ||
5514 | fi | |
5515 | if test -z "$ac_cv_prog_RANLIB"; then | |
5516 | ac_ct_RANLIB=$RANLIB | |
5517 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5518 | set dummy ranlib; ac_word=$2 | |
5519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5521 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5523 | else | |
5524 | if test -n "$ac_ct_RANLIB"; then | |
5525 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5526 | else | |
5527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5528 | for as_dir in $PATH | |
5529 | do | |
5530 | IFS=$as_save_IFS | |
5531 | test -z "$as_dir" && as_dir=. | |
5532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5534 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5536 | break 2 | |
5537 | fi | |
5538 | done | |
5539 | done | |
5540 | ||
5541 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5542 | fi | |
5543 | fi | |
5544 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5545 | if test -n "$ac_ct_RANLIB"; then | |
5546 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5547 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5548 | else | |
5549 | echo "$as_me:$LINENO: result: no" >&5 | |
5550 | echo "${ECHO_T}no" >&6 | |
5551 | fi | |
5552 | ||
5553 | RANLIB=$ac_ct_RANLIB | |
5554 | else | |
5555 | RANLIB="$ac_cv_prog_RANLIB" | |
5556 | fi | |
5557 | ||
5558 | if test -n "$ac_tool_prefix"; then | |
5559 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5560 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5563 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5565 | else | |
5566 | if test -n "$STRIP"; then | |
5567 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5568 | else | |
5569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5570 | for as_dir in $PATH | |
5571 | do | |
5572 | IFS=$as_save_IFS | |
5573 | test -z "$as_dir" && as_dir=. | |
5574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5576 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5578 | break 2 | |
5579 | fi | |
5580 | done | |
5581 | done | |
5582 | ||
5583 | fi | |
5584 | fi | |
5585 | STRIP=$ac_cv_prog_STRIP | |
5586 | if test -n "$STRIP"; then | |
5587 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5588 | echo "${ECHO_T}$STRIP" >&6 | |
5589 | else | |
5590 | echo "$as_me:$LINENO: result: no" >&5 | |
5591 | echo "${ECHO_T}no" >&6 | |
5592 | fi | |
5593 | ||
5594 | fi | |
5595 | if test -z "$ac_cv_prog_STRIP"; then | |
5596 | ac_ct_STRIP=$STRIP | |
5597 | # Extract the first word of "strip", so it can be a program name with args. | |
5598 | set dummy strip; ac_word=$2 | |
5599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5601 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5603 | else | |
5604 | if test -n "$ac_ct_STRIP"; then | |
5605 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5606 | else | |
5607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5608 | for as_dir in $PATH | |
5609 | do | |
5610 | IFS=$as_save_IFS | |
5611 | test -z "$as_dir" && as_dir=. | |
5612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5614 | ac_cv_prog_ac_ct_STRIP="strip" | |
5615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5616 | break 2 | |
5617 | fi | |
5618 | done | |
5619 | done | |
5620 | ||
5621 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
5622 | fi | |
5623 | fi | |
5624 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5625 | if test -n "$ac_ct_STRIP"; then | |
5626 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5627 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5628 | else | |
5629 | echo "$as_me:$LINENO: result: no" >&5 | |
5630 | echo "${ECHO_T}no" >&6 | |
5631 | fi | |
5632 | ||
5633 | STRIP=$ac_ct_STRIP | |
5634 | else | |
5635 | STRIP="$ac_cv_prog_STRIP" | |
5636 | fi | |
5637 | ||
5638 | ||
5639 | old_CC="$CC" | |
5640 | old_CFLAGS="$CFLAGS" | |
5641 | ||
5642 | # Set sane defaults for various variables | |
5643 | test -z "$AR" && AR=ar | |
5644 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5645 | test -z "$AS" && AS=as | |
5646 | test -z "$CC" && CC=cc | |
5647 | test -z "$LTCC" && LTCC=$CC | |
5648 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5649 | test -z "$LD" && LD=ld | |
5650 | test -z "$LN_S" && LN_S="ln -s" | |
5651 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
5652 | test -z "$NM" && NM=nm | |
5653 | test -z "$SED" && SED=sed | |
5654 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5655 | test -z "$RANLIB" && RANLIB=: | |
5656 | test -z "$STRIP" && STRIP=: | |
5657 | test -z "$ac_objext" && ac_objext=o | |
5658 | ||
5659 | # Determine commands to create old-style static archives. | |
5660 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5661 | old_postinstall_cmds='chmod 644 $oldlib' | |
5662 | old_postuninstall_cmds= | |
5663 | ||
5664 | if test -n "$RANLIB"; then | |
5665 | case $host_os in | |
5666 | openbsd*) | |
5667 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
5668 | ;; | |
5669 | *) | |
5670 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
5671 | ;; | |
5672 | esac | |
5673 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5674 | fi | |
5675 | ||
5676 | # Only perform the check for file, if the check method requires it | |
5677 | case $deplibs_check_method in | |
5678 | file_magic*) | |
5679 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5680 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
5681 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
5682 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
5683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5684 | else | |
5685 | case $MAGIC_CMD in | |
5686 | [\\/*] | ?:[\\/]*) | |
5687 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
5688 | ;; | |
5689 | *) | |
5690 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
5691 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5692 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
5693 | for ac_dir in $ac_dummy; do | |
5694 | IFS="$lt_save_ifs" | |
5695 | test -z "$ac_dir" && ac_dir=. | |
5696 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
5697 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
5698 | if test -n "$file_magic_test_file"; then | |
5699 | case $deplibs_check_method in | |
5700 | "file_magic "*) | |
5701 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5702 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5703 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
5704 | egrep "$file_magic_regex" > /dev/null; then | |
5705 | : | |
5706 | else | |
5707 | cat <<EOF 1>&2 | |
5708 | ||
5709 | *** Warning: the command libtool uses to detect shared libraries, | |
5710 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
5711 | *** The result is that libtool may fail to recognize shared libraries | |
5712 | *** as such. This will affect the creation of libtool libraries that | |
5713 | *** depend on shared libraries, but programs linked with such libtool | |
5714 | *** libraries will work regardless of this problem. Nevertheless, you | |
5715 | *** may want to report the problem to your system manager and/or to | |
5716 | *** bug-libtool@gnu.org | |
5717 | ||
5718 | EOF | |
5719 | fi ;; | |
5720 | esac | |
5721 | fi | |
5722 | break | |
5723 | fi | |
5724 | done | |
5725 | IFS="$lt_save_ifs" | |
5726 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
5727 | ;; | |
5728 | esac | |
5729 | fi | |
5730 | ||
5731 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5732 | if test -n "$MAGIC_CMD"; then | |
5733 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
5734 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
5735 | else | |
5736 | echo "$as_me:$LINENO: result: no" >&5 | |
5737 | echo "${ECHO_T}no" >&6 | |
5738 | fi | |
5739 | ||
5740 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
5741 | if test -n "$ac_tool_prefix"; then | |
5742 | echo "$as_me:$LINENO: checking for file" >&5 | |
5743 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
5744 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
5745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5746 | else | |
5747 | case $MAGIC_CMD in | |
5748 | [\\/*] | ?:[\\/]*) | |
5749 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
5750 | ;; | |
5751 | *) | |
5752 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
5753 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5754 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
5755 | for ac_dir in $ac_dummy; do | |
5756 | IFS="$lt_save_ifs" | |
5757 | test -z "$ac_dir" && ac_dir=. | |
5758 | if test -f $ac_dir/file; then | |
5759 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
5760 | if test -n "$file_magic_test_file"; then | |
5761 | case $deplibs_check_method in | |
5762 | "file_magic "*) | |
5763 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5764 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5765 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
5766 | egrep "$file_magic_regex" > /dev/null; then | |
5767 | : | |
5768 | else | |
5769 | cat <<EOF 1>&2 | |
5770 | ||
5771 | *** Warning: the command libtool uses to detect shared libraries, | |
5772 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
5773 | *** The result is that libtool may fail to recognize shared libraries | |
5774 | *** as such. This will affect the creation of libtool libraries that | |
5775 | *** depend on shared libraries, but programs linked with such libtool | |
5776 | *** libraries will work regardless of this problem. Nevertheless, you | |
5777 | *** may want to report the problem to your system manager and/or to | |
5778 | *** bug-libtool@gnu.org | |
5779 | ||
5780 | EOF | |
5781 | fi ;; | |
5782 | esac | |
5783 | fi | |
5784 | break | |
5785 | fi | |
5786 | done | |
5787 | IFS="$lt_save_ifs" | |
5788 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
5789 | ;; | |
5790 | esac | |
5791 | fi | |
5792 | ||
5793 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5794 | if test -n "$MAGIC_CMD"; then | |
5795 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
5796 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
5797 | else | |
5798 | echo "$as_me:$LINENO: result: no" >&5 | |
5799 | echo "${ECHO_T}no" >&6 | |
5800 | fi | |
5801 | ||
5802 | else | |
5803 | MAGIC_CMD=: | |
5804 | fi | |
5805 | fi | |
5806 | ||
5807 | fi | |
5808 | ;; | |
5809 | esac | |
5810 | ||
5811 | enable_dlopen=no | |
5812 | enable_win32_dll=no | |
5813 | ||
5814 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
5815 | if test "${enable_libtool_lock+set}" = set; then | |
5816 | enableval="$enable_libtool_lock" | |
5817 | ||
5818 | fi; | |
5819 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5820 | ||
5821 | ||
5822 | # Check whether --with-pic or --without-pic was given. | |
5823 | if test "${with_pic+set}" = set; then | |
5824 | withval="$with_pic" | |
5825 | pic_mode="$withval" | |
5826 | else | |
5827 | pic_mode=default | |
5828 | fi; | |
5829 | test -z "$pic_mode" && pic_mode=default | |
5830 | ||
5831 | # Use C for the default configuration in the libtool script | |
5832 | tagname= | |
5833 | lt_save_CC="$CC" | |
5834 | ac_ext=c | |
5835 | ac_cpp='$CPP $CPPFLAGS' | |
5836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5839 | ||
5840 | ||
5841 | # Source file extension for C test sources. | |
5842 | ac_ext=c | |
5843 | ||
5844 | # Object file extension for compiled C test sources. | |
5845 | objext=o | |
5846 | objext=$objext | |
5847 | ||
5848 | # Code to be used in simple compile tests | |
5849 | lt_simple_compile_test_code="int some_variable = 0;" | |
5850 | ||
5851 | # Code to be used in simple link tests | |
5852 | lt_simple_link_test_code='main(){return(0);}' | |
5853 | ||
5854 | ||
5855 | # If no C compiler was specified, use CC. | |
5856 | LTCC=${LTCC-"$CC"} | |
5857 | ||
5858 | # Allow CC to be a program name with arguments. | |
5859 | set dummy $CC | |
5860 | compiler="$2" | |
5861 | ||
5862 | ||
5863 | # | |
5864 | # Check for any special shared library compilation flags. | |
5865 | # | |
5866 | lt_prog_cc_shlib= | |
5867 | if test "$GCC" = no; then | |
5868 | case $host_os in | |
5869 | sco3.2v5*) | |
5870 | lt_prog_cc_shlib='-belf' | |
5871 | ;; | |
5872 | esac | |
5873 | fi | |
5874 | if test -n "$lt_prog_cc_shlib"; then | |
5875 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | |
5876 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | |
5877 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
5878 | else | |
5879 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | |
5880 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | |
5881 | lt_cv_prog_cc_can_build_shared=no | |
5882 | fi | |
5883 | fi | |
5884 | ||
5885 | ||
5886 | # | |
5887 | # Check to make sure the static flag actually works. | |
5888 | # | |
5889 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | |
5890 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | |
5891 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
5892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5893 | else | |
5894 | lt_prog_compiler_static_works=no | |
5895 | save_LDFLAGS="$LDFLAGS" | |
5896 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
5897 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
5898 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
5899 | # The compiler can only warn and ignore the option if not recognized | |
5900 | # So say no if there are warnings | |
5901 | if test -s conftest.err; then | |
5902 | # Append any errors to the config.log. | |
5903 | cat conftest.err 1>&5 | |
5904 | else | |
5905 | lt_prog_compiler_static_works=yes | |
5906 | fi | |
5907 | fi | |
5908 | $rm conftest* | |
5909 | LDFLAGS="$save_LDFLAGS" | |
5910 | ||
5911 | fi | |
5912 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
5913 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
5914 | ||
5915 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
5916 | : | |
5917 | else | |
5918 | lt_prog_compiler_static= | |
5919 | fi | |
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | lt_prog_compiler_no_builtin_flag= | |
5925 | ||
5926 | if test "$GCC" = yes; then | |
5927 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
5928 | ||
5929 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
5930 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
5931 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
5932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5933 | else | |
5934 | lt_cv_prog_compiler_rtti_exceptions=no | |
5935 | ac_outfile=conftest.$ac_objext | |
5936 | save_CFLAGS="$CFLAGS" | |
5937 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
5938 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5939 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
5940 | # The compiler can only warn and ignore the option if not recognized | |
5941 | # So say no if there are warnings | |
5942 | if test -s conftest.err; then | |
5943 | # Append any errors to the config.log. | |
5944 | cat conftest.err 1>&5 | |
5945 | else | |
5946 | lt_cv_prog_compiler_rtti_exceptions=yes | |
5947 | fi | |
5948 | fi | |
5949 | $rm conftest* | |
5950 | CFLAGS="$save_CFLAGS" | |
5951 | ||
5952 | fi | |
5953 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
5954 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
5955 | ||
5956 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
5957 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
5958 | else | |
5959 | : | |
5960 | fi | |
5961 | ||
5962 | fi | |
5963 | ||
5964 | lt_prog_compiler_wl= | |
5965 | lt_prog_compiler_pic= | |
5966 | lt_prog_compiler_static= | |
5967 | ||
5968 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
5969 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
5970 | ||
5971 | if test "$GCC" = yes; then | |
5972 | lt_prog_compiler_wl='-Wl,' | |
5973 | lt_prog_compiler_static='-static' | |
5974 | ||
5975 | case $host_os in | |
5976 | aix*) | |
5977 | # All AIX code is PIC. | |
5978 | if test "$host_cpu" = ia64; then | |
5979 | # AIX 5 now supports IA64 processor | |
5980 | lt_prog_compiler_static='-Bstatic' | |
5981 | fi | |
5982 | ;; | |
5983 | ||
5984 | amigaos*) | |
5985 | # FIXME: we need at least 68020 code to build shared libraries, but | |
5986 | # adding the `-m68020' flag to GCC prevents building anything better, | |
5987 | # like `-m68040'. | |
5988 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
5989 | ;; | |
5990 | ||
5991 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
5992 | # PIC is the default for these OSes. | |
5993 | ;; | |
5994 | ||
5995 | cygwin* | mingw* | pw32* | os2*) | |
5996 | # This hack is so that the source file can tell whether it is being | |
5997 | # built for inclusion in a dll (and should export symbols for example). | |
5998 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
5999 | ;; | |
6000 | ||
6001 | darwin* | rhapsody*) | |
6002 | # PIC is the default on this platform | |
6003 | # Common symbols not allowed in MH_DYLIB files | |
6004 | lt_prog_compiler_pic='-fno-common' | |
6005 | ;; | |
6006 | ||
6007 | msdosdjgpp*) | |
6008 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6009 | # on systems that don't support them. | |
6010 | lt_prog_compiler_can_build_shared=no | |
6011 | enable_shared=no | |
6012 | ;; | |
6013 | ||
6014 | sysv4*MP*) | |
6015 | if test -d /usr/nec; then | |
6016 | lt_prog_compiler_pic=-Kconform_pic | |
6017 | fi | |
6018 | ;; | |
6019 | ||
6020 | hpux*) | |
6021 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
6022 | if test "$host_cpu" != ia64; then | |
6023 | lt_prog_compiler_pic='-fPIC' | |
6024 | fi | |
6025 | ;; | |
6026 | ||
6027 | *) | |
6028 | lt_prog_compiler_pic='-fPIC' | |
6029 | ;; | |
6030 | esac | |
6031 | else | |
6032 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6033 | case $host_os in | |
6034 | aix*) | |
6035 | lt_prog_compiler_wl='-Wl,' | |
6036 | if test "$host_cpu" = ia64; then | |
6037 | # AIX 5 now supports IA64 processor | |
6038 | lt_prog_compiler_static='-Bstatic' | |
6039 | else | |
6040 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6041 | fi | |
6042 | ;; | |
6043 | ||
6044 | cygwin* | mingw* | pw32* | os2*) | |
6045 | # This hack is so that the source file can tell whether it is being | |
6046 | # built for inclusion in a dll (and should export symbols for example). | |
6047 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6048 | ;; | |
6049 | ||
6050 | hpux9* | hpux10* | hpux11*) | |
6051 | lt_prog_compiler_wl='-Wl,' | |
6052 | if test "$host_cpu" != ia64; then | |
6053 | lt_prog_compiler_pic='+Z' | |
6054 | fi | |
6055 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6056 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6057 | ;; | |
6058 | ||
6059 | irix5* | irix6* | nonstopux*) | |
6060 | lt_prog_compiler_wl='-Wl,' | |
6061 | # PIC (with -KPIC) is the default. | |
6062 | lt_prog_compiler_static='-non_shared' | |
6063 | ;; | |
6064 | ||
6065 | newsos6) | |
6066 | lt_prog_compiler_pic='-KPIC' | |
6067 | lt_prog_compiler_static='-Bstatic' | |
6068 | ;; | |
6069 | ||
6070 | osf3* | osf4* | osf5*) | |
6071 | lt_prog_compiler_wl='-Wl,' | |
6072 | # All OSF/1 code is PIC. | |
6073 | lt_prog_compiler_static='-non_shared' | |
6074 | ;; | |
6075 | ||
6076 | sco3.2v5*) | |
6077 | lt_prog_compiler_pic='-Kpic' | |
6078 | lt_prog_compiler_static='-dn' | |
6079 | ;; | |
6080 | ||
6081 | solaris*) | |
6082 | lt_prog_compiler_wl='-Wl,' | |
6083 | lt_prog_compiler_pic='-KPIC' | |
6084 | lt_prog_compiler_static='-Bstatic' | |
6085 | ;; | |
6086 | ||
6087 | sunos4*) | |
6088 | lt_prog_compiler_wl='-Qoption ld ' | |
6089 | lt_prog_compiler_pic='-PIC' | |
6090 | lt_prog_compiler_static='-Bstatic' | |
6091 | ;; | |
6092 | ||
6093 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
6094 | if test "x$host_vendor" = xsni; then | |
6095 | lt_prog_compiler_wl='-LD' | |
6096 | else | |
6097 | lt_prog_compiler_wl='-Wl,' | |
6098 | fi | |
6099 | lt_prog_compiler_pic='-KPIC' | |
6100 | lt_prog_compiler_static='-Bstatic' | |
6101 | ;; | |
6102 | ||
6103 | sysv4*MP*) | |
6104 | if test -d /usr/nec ;then | |
6105 | lt_prog_compiler_pic='-Kconform_pic' | |
6106 | lt_prog_compiler_static='-Bstatic' | |
6107 | fi | |
6108 | ;; | |
6109 | ||
6110 | uts4*) | |
6111 | lt_prog_compiler_pic='-pic' | |
6112 | lt_prog_compiler_static='-Bstatic' | |
6113 | ;; | |
6114 | ||
6115 | *) | |
6116 | lt_prog_compiler_can_build_shared=no | |
6117 | ;; | |
6118 | esac | |
6119 | fi | |
6120 | ||
6121 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
6122 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
6123 | ||
6124 | # | |
6125 | # Check to make sure the PIC flag actually works. | |
6126 | # | |
6127 | if test -n "$lt_prog_compiler_pic"; then | |
6128 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
6129 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
6130 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
6131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6132 | else | |
6133 | lt_prog_compiler_pic_works=no | |
6134 | ac_outfile=conftest.$ac_objext | |
6135 | save_CFLAGS="$CFLAGS" | |
6136 | CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC" | |
6137 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6138 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
6139 | # The compiler can only warn and ignore the option if not recognized | |
6140 | # So say no if there are warnings | |
6141 | if test -s conftest.err; then | |
6142 | # Append any errors to the config.log. | |
6143 | cat conftest.err 1>&5 | |
6144 | else | |
6145 | lt_prog_compiler_pic_works=yes | |
6146 | fi | |
6147 | fi | |
6148 | $rm conftest* | |
6149 | CFLAGS="$save_CFLAGS" | |
6150 | ||
6151 | fi | |
6152 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
6153 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
6154 | ||
6155 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
6156 | case $lt_prog_compiler_pic in | |
6157 | "" | " "*) ;; | |
6158 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
6159 | esac | |
6160 | else | |
6161 | lt_prog_compiler_pic= | |
6162 | lt_prog_compiler_can_build_shared=no | |
6163 | fi | |
6164 | ||
6165 | fi | |
6166 | case "$host_os" in | |
6167 | # For platforms which do not support PIC, -DPIC is meaningless: | |
6168 | *djgpp*) | |
6169 | lt_prog_compiler_pic= | |
6170 | ;; | |
6171 | *) | |
6172 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
6173 | ;; | |
6174 | esac | |
6175 | ||
6176 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
6177 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
6178 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
6179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6180 | else | |
6181 | lt_cv_prog_compiler_c_o=no | |
6182 | $rm -r conftest 2>/dev/null | |
6183 | mkdir conftest | |
6184 | cd conftest | |
6185 | mkdir out | |
6186 | save_CFLAGS="$CFLAGS" | |
6187 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | |
6188 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6189 | ||
6190 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
6191 | # that will create temporary files in the current directory regardless of | |
6192 | # the output directory. Thus, making CWD read-only will cause this test | |
6193 | # to fail, enabling locking or at least warning the user not to do parallel | |
6194 | # builds. | |
6195 | chmod -w . | |
6196 | ||
6197 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
6198 | then | |
6199 | # The compiler can only warn and ignore the option if not recognized | |
6200 | # So say no if there are warnings | |
6201 | if test -s out/conftest.err; then | |
6202 | # Append any errors to the config.log. | |
6203 | cat out/conftest.err 1>&5 | |
6204 | else | |
6205 | lt_cv_prog_compiler_c_o=yes | |
6206 | fi | |
6207 | fi | |
6208 | CFLAGS="$save_CFLAGS" | |
6209 | chmod u+w . | |
6210 | $rm conftest* out/* | |
6211 | rmdir out | |
6212 | cd .. | |
6213 | rmdir conftest | |
6214 | $rm conftest* | |
6215 | ||
6216 | fi | |
6217 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
6218 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
6219 | ||
6220 | ||
6221 | hard_links="nottested" | |
6222 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
6223 | # do not overwrite the value of need_locks provided by the user | |
6224 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
6225 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
6226 | hard_links=yes | |
6227 | $rm conftest* | |
6228 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6229 | touch conftest.a | |
6230 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
6231 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6232 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
6233 | echo "${ECHO_T}$hard_links" >&6 | |
6234 | if test "$hard_links" = no; then | |
6235 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
6236 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
6237 | need_locks=warn | |
6238 | fi | |
6239 | else | |
6240 | need_locks=no | |
6241 | fi | |
6242 | ||
6243 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
6244 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
6245 | ||
6246 | runpath_var= | |
6247 | allow_undefined_flag= | |
6248 | ||
6249 | archive_cmds= | |
6250 | archive_cmds_need_lc= | |
6251 | archive_expsym_cmds= | |
6252 | old_archive_From_new_cmds= | |
6253 | old_archive_from_expsyms_cmds= | |
6254 | export_dynamic_flag_spec= | |
6255 | whole_archive_flag_spec= | |
6256 | thread_safe_flag_spec= | |
6257 | hardcode_libdir_flag_spec= | |
6258 | hardcode_libdir_separator= | |
6259 | hardcode_direct=no | |
6260 | hardcode_minus_L=no | |
6261 | hardcode_shlibpath_var=unsupported | |
6262 | link_all_deplibs=unknown | |
6263 | always_export_symbols=no | |
6264 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
6265 | # include_expsyms should be a list of space-separated symbols to be *always* | |
6266 | # included in the symbol list | |
6267 | include_expsyms= | |
6268 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
6269 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
6270 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
6271 | # as well as any symbol that contains `d'. | |
6272 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
6273 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
6274 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
6275 | # the symbol is explicitly referenced. Since portable code cannot | |
6276 | # rely on this symbol name, it's probably fine to never include it in | |
6277 | # preloaded symbol tables. | |
6278 | extract_expsyms_cmds= | |
6279 | ||
6280 | case $host_os in | |
6281 | cygwin* | mingw* | pw32*) | |
6282 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
6283 | # When not using gcc, we currently assume that we are using | |
6284 | # Microsoft Visual C++. | |
6285 | if test "$GCC" != yes; then | |
6286 | with_gnu_ld=no | |
6287 | fi | |
6288 | ;; | |
6289 | openbsd*) | |
6290 | with_gnu_ld=no | |
6291 | ;; | |
6292 | esac | |
6293 | ||
6294 | ld_shlibs=yes | |
6295 | if test "$with_gnu_ld" = yes; then | |
6296 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
6297 | wlarc='${wl}' | |
6298 | ||
6299 | # See if GNU ld supports shared libraries. | |
6300 | case $host_os in | |
6301 | aix3* | aix4* | aix5*) | |
6302 | # On AIX/PPC, the GNU linker is very broken | |
6303 | if test "$host_cpu" != ia64; then | |
6304 | ld_shlibs=no | |
6305 | cat <<EOF 1>&2 | |
6306 | ||
6307 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
6308 | *** to be unable to reliably create shared libraries on AIX. | |
6309 | *** Therefore, libtool is disabling shared libraries support. If you | |
6310 | *** really care for shared libraries, you may want to modify your PATH | |
6311 | *** so that a non-GNU linker is found, and then restart. | |
6312 | ||
6313 | EOF | |
6314 | fi | |
6315 | ;; | |
6316 | ||
6317 | amigaos*) | |
6318 | 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)' | |
6319 | hardcode_libdir_flag_spec='-L$libdir' | |
6320 | hardcode_minus_L=yes | |
6321 | ||
6322 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
6323 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
6324 | # to version 4, is to share data among multiple programs linked | |
6325 | # with the same dynamic library. Since this doesn't match the | |
6326 | # behavior of shared libraries on other platforms, we can't use | |
6327 | # them. | |
6328 | ld_shlibs=no | |
6329 | ;; | |
6330 | ||
6331 | beos*) | |
6332 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6333 | allow_undefined_flag=unsupported | |
6334 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
6335 | # support --undefined. This deserves some investigation. FIXME | |
6336 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6337 | else | |
6338 | ld_shlibs=no | |
6339 | fi | |
6340 | ;; | |
6341 | ||
6342 | cygwin* | mingw* | pw32*) | |
6343 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is | |
6344 | # no search path for DLLs. | |
6345 | hardcode_libdir_flag_spec='-L$libdir' | |
6346 | allow_undefined_flag=unsupported | |
6347 | always_export_symbols=yes | |
6348 | ||
6349 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
6350 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
6351 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
6352 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
6353 | else $CC -o impgen impgen.c ; fi)~ | |
6354 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
6355 | ||
6356 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
6357 | ||
6358 | # cygwin and mingw dlls have different entry points and sets of symbols | |
6359 | # to exclude. | |
6360 | # FIXME: what about values for MSVC? | |
6361 | dll_entry=__cygwin_dll_entry@12 | |
6362 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
6363 | case $host_os in | |
6364 | mingw*) | |
6365 | # mingw values | |
6366 | dll_entry=_DllMainCRTStartup@12 | |
6367 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
6368 | ;; | |
6369 | esac | |
6370 | ||
6371 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
6372 | # of the two symbol sets. | |
6373 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
6374 | ||
6375 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
6376 | # can override, but on older systems we have to supply one (in ltdll.c) | |
6377 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
6378 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
6379 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
6380 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
6381 | else | |
6382 | ltdll_obj= | |
6383 | ltdll_cmds= | |
6384 | fi | |
6385 | ||
6386 | # Extract the symbol export list from an `--export-all' def file, | |
6387 | # then regenerate the def file from the symbol export list, so that | |
6388 | # the compiled dll only exports the symbol export list. | |
6389 | # Be careful not to strip the DATA tag left by newer dlltools. | |
6390 | export_symbols_cmds="$ltdll_cmds"' | |
6391 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
6392 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
6393 | ||
6394 | # If the export-symbols file already is a .def file (1st line | |
6395 | # is EXPORTS), use it as is. | |
6396 | # If DATA tags from a recent dlltool are present, honour them! | |
6397 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
6398 | cp $export_symbols $output_objdir/$soname-def; | |
6399 | else | |
6400 | echo EXPORTS > $output_objdir/$soname-def; | |
6401 | _lt_hint=1; | |
6402 | cat $export_symbols | while read symbol; do | |
6403 | set dummy \$symbol; | |
6404 | case \$# in | |
6405 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
6406 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
6407 | esac; | |
6408 | _lt_hint=`expr 1 + \$_lt_hint`; | |
6409 | done; | |
6410 | fi~ | |
6411 | '"$ltdll_cmds"' | |
6412 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
6413 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
6414 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
6415 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
6416 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
6417 | ;; | |
6418 | ||
6419 | netbsd*) | |
6420 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6421 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
6422 | wlarc= | |
6423 | else | |
6424 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6425 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6426 | fi | |
6427 | ;; | |
6428 | ||
6429 | solaris* | sysv5*) | |
6430 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
6431 | ld_shlibs=no | |
6432 | cat <<EOF 1>&2 | |
6433 | ||
6434 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
6435 | *** create shared libraries on Solaris systems. Therefore, libtool | |
6436 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
6437 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
6438 | *** your PATH or compiler configuration so that the native linker is | |
6439 | *** used, and then restart. | |
6440 | ||
6441 | EOF | |
6442 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6443 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6444 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6445 | else | |
6446 | ld_shlibs=no | |
6447 | fi | |
6448 | ;; | |
6449 | ||
6450 | sunos4*) | |
6451 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6452 | wlarc= | |
6453 | hardcode_direct=yes | |
6454 | hardcode_shlibpath_var=no | |
6455 | ;; | |
6456 | ||
6457 | *) | |
6458 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6459 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6460 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6461 | else | |
6462 | ld_shlibs=no | |
6463 | fi | |
6464 | ;; | |
6465 | esac | |
6466 | ||
6467 | if test "$ld_shlibs" = yes; then | |
6468 | runpath_var=LD_RUN_PATH | |
6469 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
6470 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
6471 | case $host_os in | |
6472 | cygwin* | mingw* | pw32*) | |
6473 | # dlltool doesn't understand --whole-archive et. al. | |
6474 | whole_archive_flag_spec= | |
6475 | ;; | |
6476 | *) | |
6477 | # ancient GNU ld didn't support --whole-archive et. al. | |
6478 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
6479 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6480 | else | |
6481 | whole_archive_flag_spec= | |
6482 | fi | |
6483 | ;; | |
6484 | esac | |
6485 | fi | |
6486 | else | |
6487 | # PORTME fill in a description of your system's linker (not GNU ld) | |
6488 | case $host_os in | |
6489 | aix3*) | |
6490 | allow_undefined_flag=unsupported | |
6491 | always_export_symbols=yes | |
6492 | 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' | |
6493 | # Note: this linker hardcodes the directories in LIBPATH if there | |
6494 | # are no directories specified by -L. | |
6495 | hardcode_minus_L=yes | |
6496 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
6497 | # Neither direct hardcoding nor static linking is supported with a | |
6498 | # broken collect2. | |
6499 | hardcode_direct=unsupported | |
6500 | fi | |
6501 | ;; | |
6502 | ||
6503 | aix4* | aix5*) | |
6504 | if test "$host_cpu" = ia64; then | |
6505 | # On IA64, the linker does run time linking by default, so we don't | |
6506 | # have to do anything special. | |
6507 | aix_use_runtimelinking=no | |
6508 | exp_sym_flag='-Bexport' | |
6509 | no_entry_flag="" | |
6510 | else | |
6511 | # If we're using GNU nm, then we don't want the "-C" option. | |
6512 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
6513 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
6514 | 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' | |
6515 | else | |
6516 | 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' | |
6517 | fi | |
6518 | ||
6519 | # KDE requires run time linking. Make it the default. | |
6520 | aix_use_runtimelinking=yes | |
6521 | exp_sym_flag='-bexport' | |
6522 | no_entry_flag='-bnoentry' | |
6523 | fi | |
6524 | ||
6525 | # When large executables or shared objects are built, AIX ld can | |
6526 | # have problems creating the table of contents. If linking a library | |
6527 | # or program results in "error TOC overflow" add -mminimal-toc to | |
6528 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
6529 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
6530 | ||
6531 | archive_cmds='' | |
6532 | hardcode_direct=yes | |
6533 | hardcode_libdir_separator=':' | |
6534 | link_all_deplibs=yes | |
6535 | ||
6536 | if test "$GCC" = yes; then | |
6537 | case $host_os in aix4.012|aix4.012.*) | |
6538 | # We only want to do this on AIX 4.2 and lower, the check | |
6539 | # below for broken collect2 doesn't work under 4.3+ | |
6540 | collect2name=`${CC} -print-prog-name=collect2` | |
6541 | if test -f "$collect2name" && \ | |
6542 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
6543 | then | |
6544 | # We have reworked collect2 | |
6545 | hardcode_direct=yes | |
6546 | else | |
6547 | # We have old collect2 | |
6548 | hardcode_direct=unsupported | |
6549 | # It fails to find uninstalled libraries when the uninstalled | |
6550 | # path is not listed in the libpath. Setting hardcode_minus_L | |
6551 | # to unsupported forces relinking | |
6552 | hardcode_minus_L=yes | |
6553 | hardcode_libdir_flag_spec='-L$libdir' | |
6554 | hardcode_libdir_separator= | |
6555 | fi | |
6556 | esac | |
6557 | shared_flag='-shared' | |
6558 | else | |
6559 | # not using gcc | |
6560 | if test "$host_cpu" = ia64; then | |
6561 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
6562 | # chokes on -Wl,-G. The following line is correct: | |
6563 | shared_flag='-G' | |
6564 | else | |
6565 | if test "$aix_use_runtimelinking" = yes; then | |
6566 | shared_flag='-qmkshrobj ${wl}-G' | |
6567 | else | |
6568 | shared_flag='-qmkshrobj' | |
6569 | fi | |
6570 | fi | |
6571 | fi | |
6572 | ||
6573 | # Let the compiler handle the export list. | |
6574 | always_export_symbols=no | |
6575 | if test "$aix_use_runtimelinking" = yes; then | |
6576 | # Warning - without using the other runtime loading flags (-brtl), | |
6577 | # -berok will link without error, but may produce a broken library. | |
6578 | allow_undefined_flag='-berok' | |
6579 | # Determine the default libpath from the value encoded in an empty executable. | |
6580 | cat >conftest.$ac_ext <<_ACEOF | |
6581 | #line $LINENO "configure" | |
6582 | #include "confdefs.h" | |
6583 | ||
6584 | #ifdef F77_DUMMY_MAIN | |
6585 | # ifdef __cplusplus | |
6586 | extern "C" | |
6587 | # endif | |
6588 | int F77_DUMMY_MAIN() { return 1; } | |
6589 | #endif | |
6590 | int | |
6591 | main () | |
6592 | { | |
6593 | ||
6594 | ; | |
6595 | return 0; | |
6596 | } | |
6597 | _ACEOF | |
6598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6600 | (eval $ac_link) 2>&5 | |
6601 | ac_status=$? | |
6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6603 | (exit $ac_status); } && | |
6604 | { ac_try='test -s conftest$ac_exeext' | |
6605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6606 | (eval $ac_try) 2>&5 | |
6607 | ac_status=$? | |
6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6609 | (exit $ac_status); }; }; then | |
6610 | ||
6611 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
6612 | }'` | |
6613 | # Check for a 64-bit object if we didn't find anything. | |
6614 | 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; } | |
6615 | }'`; fi | |
6616 | else | |
6617 | echo "$as_me: failed program was:" >&5 | |
6618 | cat conftest.$ac_ext >&5 | |
6619 | fi | |
6620 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6621 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
6622 | ||
6623 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6624 | archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
6625 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
6626 | else | |
6627 | if test "$host_cpu" = ia64; then | |
6628 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
6629 | allow_undefined_flag="-z nodefs" | |
6630 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
6631 | else | |
6632 | # Determine the default libpath from the value encoded in an empty executable. | |
6633 | cat >conftest.$ac_ext <<_ACEOF | |
6634 | #line $LINENO "configure" | |
6635 | #include "confdefs.h" | |
6636 | ||
6637 | #ifdef F77_DUMMY_MAIN | |
6638 | # ifdef __cplusplus | |
6639 | extern "C" | |
6640 | # endif | |
6641 | int F77_DUMMY_MAIN() { return 1; } | |
6642 | #endif | |
6643 | int | |
6644 | main () | |
6645 | { | |
6646 | ||
6647 | ; | |
6648 | return 0; | |
6649 | } | |
6650 | _ACEOF | |
6651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6653 | (eval $ac_link) 2>&5 | |
6654 | ac_status=$? | |
6655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6656 | (exit $ac_status); } && | |
6657 | { ac_try='test -s conftest$ac_exeext' | |
6658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6659 | (eval $ac_try) 2>&5 | |
6660 | ac_status=$? | |
6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6662 | (exit $ac_status); }; }; then | |
6663 | ||
6664 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
6665 | }'` | |
6666 | # Check for a 64-bit object if we didn't find anything. | |
6667 | 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; } | |
6668 | }'`; fi | |
6669 | else | |
6670 | echo "$as_me: failed program was:" >&5 | |
6671 | cat conftest.$ac_ext >&5 | |
6672 | fi | |
6673 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6674 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
6675 | ||
6676 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6677 | # Warning - without using the other run time loading flags, | |
6678 | # -berok will link without error, but may produce a broken library. | |
6679 | no_undefined_flag=' ${wl}-bernotok' | |
6680 | allow_undefined_flag=' ${wl}-berok' | |
6681 | # -bexpall does not export symbols beginning with underscore (_) | |
6682 | always_export_symbols=yes | |
6683 | # Exported symbols can be pulled into shared objects from archives | |
6684 | whole_archive_flag_spec=' ' | |
6685 | archive_cmds_need_lc=yes | |
6686 | # This is similar to how AIX traditionally builds it's shared libraries. | |
6687 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
6688 | fi | |
6689 | fi | |
6690 | ;; | |
6691 | ||
6692 | amigaos*) | |
6693 | 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)' | |
6694 | hardcode_libdir_flag_spec='-L$libdir' | |
6695 | hardcode_minus_L=yes | |
6696 | # see comment about different semantics on the GNU ld section | |
6697 | ld_shlibs=no | |
6698 | ;; | |
6699 | ||
6700 | bsdi4*) | |
6701 | export_dynamic_flag_spec=-rdynamic | |
6702 | ;; | |
6703 | ||
6704 | cygwin* | mingw* | pw32*) | |
6705 | # When not using gcc, we currently assume that we are using | |
6706 | # Microsoft Visual C++. | |
6707 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
6708 | # no search path for DLLs. | |
6709 | hardcode_libdir_flag_spec=' ' | |
6710 | allow_undefined_flag=unsupported | |
6711 | # Tell ltmain to make .lib files, not .a files. | |
6712 | libext=lib | |
6713 | # FIXME: Setting linknames here is a bad hack. | |
6714 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
6715 | # The linker will automatically build a .lib file if we build a DLL. | |
6716 | old_archive_From_new_cmds='true' | |
6717 | # FIXME: Should let the user specify the lib program. | |
6718 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
6719 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
6720 | ;; | |
6721 | ||
6722 | darwin* | rhapsody*) | |
6723 | case "$host_os" in | |
6724 | rhapsody* | darwin1.[012]) | |
6725 | allow_undefined_flag='-undefined suppress' | |
6726 | ;; | |
6727 | *) # Darwin 1.3 on | |
6728 | allow_undefined_flag='-flat_namespace -undefined suppress' | |
6729 | ;; | |
6730 | esac | |
6731 | ||
6732 | # FIXME: Relying on posixy $() will cause problems for | |
6733 | # cross-compilation, but unfortunately the echo tests do not | |
6734 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
6735 | # `"' quotes if we put them in here... so don't! | |
6736 | archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
6737 | # We need to add '_' to the symbols in $export_symbols first | |
6738 | #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' | |
6739 | hardcode_direct=yes | |
6740 | hardcode_shlibpath_var=no | |
6741 | whole_archive_flag_spec='-all_load $convenience' | |
6742 | ;; | |
6743 | ||
6744 | dgux*) | |
6745 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6746 | hardcode_libdir_flag_spec='-L$libdir' | |
6747 | hardcode_shlibpath_var=no | |
6748 | ;; | |
6749 | ||
6750 | freebsd1*) | |
6751 | ld_shlibs=no | |
6752 | ;; | |
6753 | ||
6754 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
6755 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
6756 | # does not break anything, and helps significantly (at the cost of a little | |
6757 | # extra space). | |
6758 | freebsd2.2*) | |
6759 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
6760 | hardcode_libdir_flag_spec='-R$libdir' | |
6761 | hardcode_direct=yes | |
6762 | hardcode_shlibpath_var=no | |
6763 | ;; | |
6764 | ||
6765 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
6766 | freebsd2*) | |
6767 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6768 | hardcode_direct=yes | |
6769 | hardcode_minus_L=yes | |
6770 | hardcode_shlibpath_var=no | |
6771 | ;; | |
6772 | ||
6773 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
6774 | freebsd*) | |
6775 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
6776 | hardcode_libdir_flag_spec='-R$libdir' | |
6777 | hardcode_direct=yes | |
6778 | hardcode_shlibpath_var=no | |
6779 | ;; | |
6780 | ||
6781 | hpux9* | hpux10* | hpux11*) | |
6782 | if test "$GCC" = yes; then | |
6783 | case $host_os in | |
6784 | hpux9*) | |
6785 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
6786 | ;; | |
6787 | *) | |
6788 | if test "$host_cpu" = ia64; then | |
6789 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6790 | else | |
6791 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6792 | fi | |
6793 | ;; | |
6794 | esac | |
6795 | else | |
6796 | case $host_os in | |
6797 | hpux9*) | |
6798 | 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' | |
6799 | ;; | |
6800 | *) | |
6801 | if test "$host_cpu" = ia64; then | |
6802 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6803 | else | |
6804 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
6805 | fi | |
6806 | ;; | |
6807 | esac | |
6808 | fi | |
6809 | if test "$host_cpu" = ia64; then | |
6810 | hardcode_libdir_flag_spec='-L$libdir' | |
6811 | hardcode_direct=no | |
6812 | hardcode_shlibpath_var=no | |
6813 | else | |
6814 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
6815 | hardcode_libdir_separator=: | |
6816 | hardcode_direct=yes | |
6817 | fi | |
6818 | # hardcode_minus_L: Not really in the search PATH, | |
6819 | # but as the default location of the library. | |
6820 | hardcode_minus_L=yes | |
6821 | export_dynamic_flag_spec='${wl}-E' | |
6822 | ;; | |
6823 | ||
6824 | irix5* | irix6* | nonstopux*) | |
6825 | if test "$GCC" = yes; then | |
6826 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
6827 | else | |
6828 | 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' | |
6829 | fi | |
6830 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6831 | hardcode_libdir_separator=: | |
6832 | link_all_deplibs=yes | |
6833 | ;; | |
6834 | ||
6835 | netbsd*) | |
6836 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6837 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
6838 | else | |
6839 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
6840 | fi | |
6841 | hardcode_libdir_flag_spec='-R$libdir' | |
6842 | hardcode_direct=yes | |
6843 | hardcode_shlibpath_var=no | |
6844 | ;; | |
6845 | ||
6846 | newsos6) | |
6847 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6848 | hardcode_direct=yes | |
6849 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6850 | hardcode_libdir_separator=: | |
6851 | hardcode_shlibpath_var=no | |
6852 | ;; | |
6853 | ||
6854 | openbsd*) | |
6855 | hardcode_direct=yes | |
6856 | hardcode_shlibpath_var=no | |
6857 | ||
6858 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6859 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
6860 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
6861 | export_dynamic_flag_spec='${wl}-E' | |
6862 | else | |
6863 | case $host_os in | |
6864 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
6865 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6866 | hardcode_libdir_flag_spec='-R$libdir' | |
6867 | ;; | |
6868 | *) | |
6869 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
6870 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
6871 | ;; | |
6872 | esac | |
6873 | fi | |
6874 | ;; | |
6875 | ||
6876 | os2*) | |
6877 | hardcode_libdir_flag_spec='-L$libdir' | |
6878 | hardcode_minus_L=yes | |
6879 | allow_undefined_flag=unsupported | |
6880 | 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 $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
6881 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
6882 | ;; | |
6883 | ||
6884 | osf3*) | |
6885 | if test "$GCC" = yes; then | |
6886 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
6887 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
6888 | else | |
6889 | allow_undefined_flag=' -expect_unresolved \*' | |
6890 | 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' | |
6891 | fi | |
6892 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6893 | hardcode_libdir_separator=: | |
6894 | ;; | |
6895 | ||
6896 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
6897 | if test "$GCC" = yes; then | |
6898 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
6899 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${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' | |
6900 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6901 | else | |
6902 | allow_undefined_flag=' -expect_unresolved \*' | |
6903 | 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' | |
6904 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
6905 | $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' | |
6906 | ||
6907 | # Both c and cxx compiler support -rpath directly | |
6908 | hardcode_libdir_flag_spec='-rpath $libdir' | |
6909 | fi | |
6910 | hardcode_libdir_separator=: | |
6911 | ;; | |
6912 | ||
6913 | sco3.2v5*) | |
6914 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6915 | hardcode_shlibpath_var=no | |
6916 | export_dynamic_flag_spec='${wl}-Bexport' | |
6917 | runpath_var=LD_RUN_PATH | |
6918 | hardcode_runpath_var=yes | |
6919 | ;; | |
6920 | ||
6921 | solaris*) | |
6922 | no_undefined_flag=' -z text' | |
6923 | if test "$GCC" = yes; then | |
6924 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6925 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6926 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
6927 | else | |
6928 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6929 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6930 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
6931 | fi | |
6932 | hardcode_libdir_flag_spec='-R$libdir' | |
6933 | hardcode_shlibpath_var=no | |
6934 | case $host_os in | |
6935 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
6936 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
6937 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
6938 | esac | |
6939 | link_all_deplibs=yes | |
6940 | ;; | |
6941 | ||
6942 | sunos4*) | |
6943 | if test "x$host_vendor" = xsequent; then | |
6944 | # Use $CC to link under sequent, because it throws in some extra .o | |
6945 | # files that make .init and .fini sections work. | |
6946 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
6947 | else | |
6948 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
6949 | fi | |
6950 | hardcode_libdir_flag_spec='-L$libdir' | |
6951 | hardcode_direct=yes | |
6952 | hardcode_minus_L=yes | |
6953 | hardcode_shlibpath_var=no | |
6954 | ;; | |
6955 | ||
6956 | sysv4) | |
6957 | if test "x$host_vendor" = xsni; then | |
6958 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6959 | hardcode_direct=yes # is this really true??? | |
6960 | else | |
6961 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6962 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
6963 | fi | |
6964 | runpath_var='LD_RUN_PATH' | |
6965 | hardcode_shlibpath_var=no | |
6966 | ;; | |
6967 | ||
6968 | sysv4.3*) | |
6969 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6970 | hardcode_shlibpath_var=no | |
6971 | export_dynamic_flag_spec='-Bexport' | |
6972 | ;; | |
6973 | ||
6974 | sysv4*MP*) | |
6975 | if test -d /usr/nec; then | |
6976 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6977 | hardcode_shlibpath_var=no | |
6978 | runpath_var=LD_RUN_PATH | |
6979 | hardcode_runpath_var=yes | |
6980 | ld_shlibs=yes | |
6981 | fi | |
6982 | ;; | |
6983 | ||
6984 | sysv4.2uw2*) | |
6985 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
6986 | hardcode_direct=yes | |
6987 | hardcode_minus_L=no | |
6988 | hardcode_shlibpath_var=no | |
6989 | hardcode_runpath_var=yes | |
6990 | runpath_var=LD_RUN_PATH | |
6991 | ;; | |
6992 | ||
6993 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
6994 | no_undefined_flag='${wl}-z ${wl}text' | |
6995 | if test "$GCC" = yes; then | |
6996 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6997 | else | |
6998 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6999 | fi | |
7000 | runpath_var='LD_RUN_PATH' | |
7001 | hardcode_shlibpath_var=no | |
7002 | ;; | |
7003 | ||
7004 | sysv5*) | |
7005 | no_undefined_flag=' -z text' | |
7006 | # $CC -shared without GNU ld will not create a library from C++ | |
7007 | # object files and a static libstdc++, better avoid it by now | |
7008 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7009 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7010 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7011 | hardcode_libdir_flag_spec= | |
7012 | hardcode_shlibpath_var=no | |
7013 | runpath_var='LD_RUN_PATH' | |
7014 | ;; | |
7015 | ||
7016 | uts4*) | |
7017 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7018 | hardcode_libdir_flag_spec='-L$libdir' | |
7019 | hardcode_shlibpath_var=no | |
7020 | ;; | |
7021 | ||
7022 | *) | |
7023 | ld_shlibs=no | |
7024 | ;; | |
7025 | esac | |
7026 | fi | |
7027 | ||
7028 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
7029 | echo "${ECHO_T}$ld_shlibs" >&6 | |
7030 | test "$ld_shlibs" = no && can_build_shared=no | |
7031 | ||
7032 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
7033 | if test "$GCC" = yes; then | |
7034 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
7035 | fi | |
7036 | ||
7037 | # | |
7038 | # Do we need to explicitly link libc? | |
7039 | # | |
7040 | archive_cmds_need_lc=yes | |
7041 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
7042 | case $archive_cmds in | |
7043 | *'~'*) | |
7044 | # FIXME: we may have to deal with multi-command sequences. | |
7045 | ;; | |
7046 | '$CC '*) | |
7047 | # Test whether the compiler implicitly links with -lc since on some | |
7048 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
7049 | # to ld, don't add -lc before -lgcc. | |
7050 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
7051 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
7052 | $rm conftest* | |
7053 | echo 'static int dummy;' > conftest.$ac_ext | |
7054 | ||
7055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7056 | (eval $ac_compile) 2>&5 | |
7057 | ac_status=$? | |
7058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7059 | (exit $ac_status); } 2>conftest.err; then | |
7060 | soname=conftest | |
7061 | lib=conftest | |
7062 | libobjs=conftest.$ac_objext | |
7063 | deplibs= | |
7064 | wl=$lt_prog_compiler_wl | |
7065 | compiler_flags=-v | |
7066 | linker_flags=-v | |
7067 | verstring= | |
7068 | output_objdir=. | |
7069 | libname=conftest | |
7070 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
7071 | allow_undefined_flag= | |
7072 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
7073 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
7074 | ac_status=$? | |
7075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7076 | (exit $ac_status); } | |
7077 | then | |
7078 | archive_cmds_need_lc=no | |
7079 | else | |
7080 | archive_cmds_need_lc=yes | |
7081 | fi | |
7082 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
7083 | else | |
7084 | cat conftest.err 1>&5 | |
7085 | fi | |
7086 | $rm conftest* | |
7087 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
7088 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
7089 | ;; | |
7090 | esac | |
7091 | fi | |
7092 | ||
7093 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
7094 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
7095 | hardcode_action= | |
7096 | if test -n "$hardcode_libdir_flag_spec" || \ | |
7097 | test -n "$runpath_var "; then | |
7098 | ||
7099 | # We can hardcode non-existant directories. | |
7100 | if test "$hardcode_direct" != no && | |
7101 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
7102 | # have to relink, otherwise we might link with an installed library | |
7103 | # when we should be linking with a yet-to-be-installed one | |
7104 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
7105 | test "$hardcode_minus_L" != no; then | |
7106 | # Linking always hardcodes the temporary library directory. | |
7107 | hardcode_action=relink | |
7108 | else | |
7109 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
7110 | hardcode_action=immediate | |
7111 | fi | |
7112 | else | |
7113 | # We cannot hardcode anything, or else we can only hardcode existing | |
7114 | # directories. | |
7115 | hardcode_action=unsupported | |
7116 | fi | |
7117 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
7118 | echo "${ECHO_T}$hardcode_action" >&6 | |
7119 | ||
7120 | if test "$hardcode_action" = relink; then | |
7121 | # Fast installation is not supported | |
7122 | enable_fast_install=no | |
7123 | elif test "$shlibpath_overrides_runpath" = yes || | |
7124 | test "$enable_shared" = no; then | |
7125 | # Fast installation is not necessary | |
7126 | enable_fast_install=needless | |
7127 | fi | |
7128 | ||
7129 | striplib= | |
7130 | old_striplib= | |
7131 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
7132 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
7133 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
7134 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
7135 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
7136 | echo "$as_me:$LINENO: result: yes" >&5 | |
7137 | echo "${ECHO_T}yes" >&6 | |
7138 | else | |
7139 | echo "$as_me:$LINENO: result: no" >&5 | |
7140 | echo "${ECHO_T}no" >&6 | |
7141 | fi | |
7142 | ||
7143 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
7144 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
7145 | library_names_spec= | |
7146 | libname_spec='lib$name' | |
7147 | soname_spec= | |
7148 | postinstall_cmds= | |
7149 | postuninstall_cmds= | |
7150 | finish_cmds= | |
7151 | finish_eval= | |
7152 | shlibpath_var= | |
7153 | shlibpath_overrides_runpath=unknown | |
7154 | version_type=none | |
7155 | dynamic_linker="$host_os ld.so" | |
7156 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
7157 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
7158 | need_lib_prefix=unknown | |
7159 | hardcode_into_libs=no | |
7160 | ||
7161 | # when you set need_version to no, make sure it does not cause -set_version | |
7162 | # flags to be left without arguments | |
7163 | need_version=unknown | |
7164 | ||
7165 | case $host_os in | |
7166 | aix3*) | |
7167 | version_type=linux | |
7168 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
7169 | shlibpath_var=LIBPATH | |
7170 | ||
7171 | # AIX 3 has no versioning support, so we append a major version to the name. | |
7172 | soname_spec='${libname}${release}.so$major' | |
7173 | ;; | |
7174 | ||
7175 | aix4* | aix5*) | |
7176 | version_type=linux | |
7177 | if test "$host_cpu" = ia64; then | |
7178 | # AIX 5 supports IA64 | |
7179 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
7180 | shlibpath_var=LD_LIBRARY_PATH | |
7181 | else | |
7182 | # With GCC up to 2.95.x, collect2 would create an import file | |
7183 | # for dependence libraries. The import file would start with | |
7184 | # the line `#! .'. This would cause the generated library to | |
7185 | # depend on `.', always an invalid library. This was fixed in | |
7186 | # development snapshots of GCC prior to 3.0. | |
7187 | case $host_os in | |
7188 | aix4 | aix4.[01] | aix4.[01].*) | |
7189 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
7190 | echo ' yes ' | |
7191 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
7192 | : | |
7193 | else | |
7194 | can_build_shared=no | |
7195 | fi | |
7196 | ;; | |
7197 | esac | |
7198 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
7199 | # soname into executable. Probably we can add versioning support to | |
7200 | # collect2, so additional links can be useful in future. | |
7201 | if test "$aix_use_runtimelinking" = yes; then | |
7202 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
7203 | # instead of lib<name>.a to let people know that these are not | |
7204 | # typical AIX shared libraries. | |
7205 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7206 | else | |
7207 | # We preserve .a as extension for shared libraries through AIX4.2 | |
7208 | # and later when we are not doing run time linking. | |
7209 | library_names_spec='${libname}${release}.a $libname.a' | |
7210 | soname_spec='${libname}${release}.so$major' | |
7211 | fi | |
7212 | shlibpath_var=LIBPATH | |
7213 | fi | |
7214 | ;; | |
7215 | ||
7216 | amigaos*) | |
7217 | library_names_spec='$libname.ixlibrary $libname.a' | |
7218 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
7219 | 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' | |
7220 | ;; | |
7221 | ||
7222 | beos*) | |
7223 | library_names_spec='${libname}.so' | |
7224 | dynamic_linker="$host_os ld.so" | |
7225 | shlibpath_var=LIBRARY_PATH | |
7226 | ;; | |
7227 | ||
7228 | bsdi4*) | |
7229 | version_type=linux | |
7230 | need_version=no | |
7231 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7232 | soname_spec='${libname}${release}.so$major' | |
7233 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
7234 | shlibpath_var=LD_LIBRARY_PATH | |
7235 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
7236 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
7237 | # the default ld.so.conf also contains /usr/contrib/lib and | |
7238 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
7239 | # libtool to hard-code these into programs | |
7240 | ;; | |
7241 | ||
7242 | cygwin* | mingw* | pw32*) | |
7243 | version_type=windows | |
7244 | need_version=no | |
7245 | need_lib_prefix=no | |
7246 | case $GCC,$host_os in | |
7247 | yes,cygwin*) | |
7248 | library_names_spec='$libname.dll.a' | |
7249 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
7250 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
7251 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
7252 | dldir=$destdir/`dirname \$dlpath`~ | |
7253 | test -d \$dldir || mkdir -p \$dldir~ | |
7254 | $install_prog .libs/$dlname \$dldir/$dlname' | |
7255 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
7256 | dlpath=$dir/\$dldll~ | |
7257 | $rm \$dlpath' | |
7258 | ;; | |
7259 | yes,mingw*) | |
7260 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
7261 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
7262 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
7263 | # It is most probably a Windows format PATH printed by | |
7264 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
7265 | # path with ; separators, and with drive letters. We can handle the | |
7266 | # drive letters (cygwin fileutils understands them), so leave them, | |
7267 | # especially as we might pass files found there to a mingw objdump, | |
7268 | # which wouldn't understand a cygwinified path. Ahh. | |
7269 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
7270 | else | |
7271 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
7272 | fi | |
7273 | ;; | |
7274 | yes,pw32*) | |
7275 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
7276 | ;; | |
7277 | *) | |
7278 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
7279 | ;; | |
7280 | esac | |
7281 | dynamic_linker='Win32 ld.exe' | |
7282 | # FIXME: first we should search . and the directory the executable is in | |
7283 | shlibpath_var=PATH | |
7284 | ;; | |
7285 | ||
7286 | darwin* | rhapsody*) | |
7287 | dynamic_linker="$host_os dyld" | |
7288 | version_type=darwin | |
7289 | need_lib_prefix=no | |
7290 | need_version=no | |
7291 | # FIXME: Relying on posixy $() will cause problems for | |
7292 | # cross-compilation, but unfortunately the echo tests do not | |
7293 | # yet detect zsh echo's removal of \ escapes. | |
7294 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
7295 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
7296 | shlibpath_overrides_runpath=yes | |
7297 | shlibpath_var=DYLD_LIBRARY_PATH | |
7298 | ;; | |
7299 | ||
7300 | dgux*) | |
7301 | version_type=linux | |
7302 | need_lib_prefix=no | |
7303 | need_version=no | |
7304 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7305 | soname_spec='${libname}${release}.so$major' | |
7306 | shlibpath_var=LD_LIBRARY_PATH | |
7307 | ;; | |
7308 | ||
7309 | freebsd1*) | |
7310 | dynamic_linker=no | |
7311 | ;; | |
7312 | ||
7313 | freebsd*) | |
7314 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
7315 | version_type=freebsd-$objformat | |
7316 | case $version_type in | |
7317 | freebsd-elf*) | |
7318 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
7319 | need_version=no | |
7320 | need_lib_prefix=no | |
7321 | ;; | |
7322 | freebsd-*) | |
7323 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
7324 | need_version=yes | |
7325 | ;; | |
7326 | esac | |
7327 | shlibpath_var=LD_LIBRARY_PATH | |
7328 | case $host_os in | |
7329 | freebsd2*) | |
7330 | shlibpath_overrides_runpath=yes | |
7331 | ;; | |
7332 | freebsd3.01* | freebsdelf3.01*) | |
7333 | shlibpath_overrides_runpath=yes | |
7334 | hardcode_into_libs=yes | |
7335 | ;; | |
7336 | *) # from 3.2 on | |
7337 | shlibpath_overrides_runpath=no | |
7338 | hardcode_into_libs=yes | |
7339 | ;; | |
7340 | esac | |
7341 | ;; | |
7342 | ||
7343 | gnu*) | |
7344 | version_type=linux | |
7345 | need_lib_prefix=no | |
7346 | need_version=no | |
7347 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
7348 | soname_spec='${libname}${release}.so$major' | |
7349 | shlibpath_var=LD_LIBRARY_PATH | |
7350 | hardcode_into_libs=yes | |
7351 | ;; | |
7352 | ||
7353 | hpux9* | hpux10* | hpux11*) | |
7354 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
7355 | # link against other versions. | |
7356 | version_type=sunos | |
7357 | need_lib_prefix=no | |
7358 | need_version=no | |
7359 | if test "$host_cpu" = ia64; then | |
7360 | hardcode_into_libs=yes | |
7361 | dynamic_linker="$host_os dld.so" | |
7362 | shlibpath_var=LD_LIBRARY_PATH | |
7363 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
7364 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7365 | soname_spec='${libname}${release}.so$major' | |
7366 | if test "X$HPUX_IA64_MODE" = X32; then | |
7367 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
7368 | else | |
7369 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
7370 | fi | |
7371 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7372 | else | |
7373 | dynamic_linker="$host_os dld.sl" | |
7374 | shlibpath_var=SHLIB_PATH | |
7375 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
7376 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
7377 | soname_spec='${libname}${release}.sl$major' | |
7378 | fi | |
7379 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
7380 | postinstall_cmds='chmod 555 $lib' | |
7381 | ;; | |
7382 | ||
7383 | irix5* | irix6* | nonstopux*) | |
7384 | case $host_os in | |
7385 | nonstopux*) version_type=nonstopux ;; | |
7386 | *) version_type=irix ;; | |
7387 | esac | |
7388 | need_lib_prefix=no | |
7389 | need_version=no | |
7390 | soname_spec='${libname}${release}.so$major' | |
7391 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
7392 | case $host_os in | |
7393 | irix5* | nonstopux*) | |
7394 | libsuff= shlibsuff= | |
7395 | ;; | |
7396 | *) | |
7397 | case $LD in # libtool.m4 will add one of these switches to LD | |
7398 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
7399 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
7400 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
7401 | *) libsuff= shlibsuff= libmagic=never-match;; | |
7402 | esac | |
7403 | ;; | |
7404 | esac | |
7405 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
7406 | shlibpath_overrides_runpath=no | |
7407 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
7408 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
7409 | ;; | |
7410 | ||
7411 | # No shared lib support for Linux oldld, aout, or coff. | |
7412 | linux*oldld* | linux*aout* | linux*coff*) | |
7413 | dynamic_linker=no | |
7414 | ;; | |
7415 | ||
7416 | # This must be Linux ELF. | |
7417 | linux*) | |
7418 | version_type=linux | |
7419 | need_lib_prefix=no | |
7420 | need_version=no | |
7421 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7422 | soname_spec='${libname}${release}.so$major' | |
7423 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
7424 | libsuff= | |
7425 | if test "x$LINUX_64_MODE" = x64; then | |
7426 | # Some platforms are per default 64-bit, so there's no /lib64 | |
7427 | if test -d /lib64; then | |
7428 | libsuff=64 | |
7429 | fi | |
7430 | fi | |
7431 | shlibpath_var=LD_LIBRARY_PATH | |
7432 | shlibpath_overrides_runpath=no | |
7433 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
7434 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
7435 | # This implies no fast_install, which is unacceptable. | |
7436 | # Some rework will be needed to allow for fast_install | |
7437 | # before this can be enabled. | |
7438 | hardcode_into_libs=yes | |
7439 | ||
7440 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
7441 | # powerpc, because MkLinux only supported shared libraries with the | |
7442 | # GNU dynamic linker. Since this was broken with cross compilers, | |
7443 | # most powerpc-linux boxes support dynamic linking these days and | |
7444 | # people can always --disable-shared, the test was removed, and we | |
7445 | # assume the GNU/Linux dynamic linker is in use. | |
7446 | dynamic_linker='GNU/Linux ld.so' | |
7447 | ;; | |
7448 | ||
7449 | netbsd*) | |
7450 | version_type=sunos | |
7451 | need_lib_prefix=no | |
7452 | need_version=no | |
7453 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7454 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
7455 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7456 | dynamic_linker='NetBSD (a.out) ld.so' | |
7457 | else | |
7458 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
7459 | soname_spec='${libname}${release}.so$major' | |
7460 | dynamic_linker='NetBSD ld.elf_so' | |
7461 | fi | |
7462 | shlibpath_var=LD_LIBRARY_PATH | |
7463 | shlibpath_overrides_runpath=yes | |
7464 | hardcode_into_libs=yes | |
7465 | ;; | |
7466 | ||
7467 | newsos6) | |
7468 | version_type=linux | |
7469 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7470 | shlibpath_var=LD_LIBRARY_PATH | |
7471 | shlibpath_overrides_runpath=yes | |
7472 | ;; | |
7473 | ||
7474 | nto-qnx) | |
7475 | version_type=linux | |
7476 | need_lib_prefix=no | |
7477 | need_version=no | |
7478 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7479 | soname_spec='${libname}${release}.so$major' | |
7480 | shlibpath_var=LD_LIBRARY_PATH | |
7481 | shlibpath_overrides_runpath=yes | |
7482 | ;; | |
7483 | ||
7484 | openbsd*) | |
7485 | version_type=sunos | |
7486 | need_lib_prefix=no | |
7487 | need_version=no | |
7488 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
7489 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7490 | shlibpath_var=LD_LIBRARY_PATH | |
7491 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7492 | case $host_os in | |
7493 | openbsd2.[89] | openbsd2.[89].*) | |
7494 | shlibpath_overrides_runpath=no | |
7495 | ;; | |
7496 | *) | |
7497 | shlibpath_overrides_runpath=yes | |
7498 | ;; | |
7499 | esac | |
7500 | else | |
7501 | shlibpath_overrides_runpath=yes | |
7502 | fi | |
7503 | ;; | |
7504 | ||
7505 | os2*) | |
7506 | libname_spec='$name' | |
7507 | need_lib_prefix=no | |
7508 | library_names_spec='$libname.dll $libname.a' | |
7509 | dynamic_linker='OS/2 ld.exe' | |
7510 | shlibpath_var=LIBPATH | |
7511 | ;; | |
7512 | ||
7513 | osf3* | osf4* | osf5*) | |
7514 | version_type=osf | |
7515 | need_lib_prefix=no | |
7516 | need_version=no | |
7517 | soname_spec='${libname}${release}.so' | |
7518 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
7519 | shlibpath_var=LD_LIBRARY_PATH | |
7520 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
7521 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
7522 | ;; | |
7523 | ||
7524 | sco3.2v5*) | |
7525 | version_type=osf | |
7526 | soname_spec='${libname}${release}.so$major' | |
7527 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7528 | shlibpath_var=LD_LIBRARY_PATH | |
7529 | ;; | |
7530 | ||
7531 | solaris*) | |
7532 | version_type=linux | |
7533 | need_lib_prefix=no | |
7534 | need_version=no | |
7535 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7536 | soname_spec='${libname}${release}.so$major' | |
7537 | shlibpath_var=LD_LIBRARY_PATH | |
7538 | shlibpath_overrides_runpath=yes | |
7539 | hardcode_into_libs=yes | |
7540 | # ldd complains unless libraries are executable | |
7541 | postinstall_cmds='chmod +x $lib' | |
7542 | ;; | |
7543 | ||
7544 | sunos4*) | |
7545 | version_type=sunos | |
7546 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
7547 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
7548 | shlibpath_var=LD_LIBRARY_PATH | |
7549 | shlibpath_overrides_runpath=yes | |
7550 | if test "$with_gnu_ld" = yes; then | |
7551 | need_lib_prefix=no | |
7552 | fi | |
7553 | need_version=yes | |
7554 | ;; | |
7555 | ||
7556 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
7557 | version_type=linux | |
7558 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7559 | soname_spec='${libname}${release}.so$major' | |
7560 | shlibpath_var=LD_LIBRARY_PATH | |
7561 | case $host_vendor in | |
7562 | sni) | |
7563 | shlibpath_overrides_runpath=no | |
7564 | ;; | |
7565 | motorola) | |
7566 | need_lib_prefix=no | |
7567 | need_version=no | |
7568 | shlibpath_overrides_runpath=no | |
7569 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
7570 | ;; | |
7571 | esac | |
7572 | ;; | |
7573 | ||
7574 | sysv4*MP*) | |
7575 | if test -d /usr/nec ;then | |
7576 | version_type=linux | |
7577 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
7578 | soname_spec='$libname.so.$major' | |
7579 | shlibpath_var=LD_LIBRARY_PATH | |
7580 | fi | |
7581 | ;; | |
7582 | ||
7583 | uts4*) | |
7584 | version_type=linux | |
7585 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7586 | soname_spec='${libname}${release}.so$major' | |
7587 | shlibpath_var=LD_LIBRARY_PATH | |
7588 | ;; | |
7589 | ||
7590 | *) | |
7591 | dynamic_linker=no | |
7592 | ;; | |
7593 | esac | |
7594 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
7595 | echo "${ECHO_T}$dynamic_linker" >&6 | |
7596 | test "$dynamic_linker" = no && can_build_shared=no | |
7597 | ||
7598 | if test "x$enable_dlopen" != xyes; then | |
7599 | enable_dlopen=unknown | |
7600 | enable_dlopen_self=unknown | |
7601 | enable_dlopen_self_static=unknown | |
7602 | else | |
7603 | lt_cv_dlopen=no | |
7604 | lt_cv_dlopen_libs= | |
7605 | ||
7606 | case $host_os in | |
7607 | beos*) | |
7608 | lt_cv_dlopen="load_add_on" | |
7609 | lt_cv_dlopen_libs= | |
7610 | lt_cv_dlopen_self=yes | |
7611 | ;; | |
7612 | ||
7613 | cygwin* | mingw* | pw32*) | |
7614 | lt_cv_dlopen="LoadLibrary" | |
7615 | lt_cv_dlopen_libs= | |
7616 | ;; | |
7617 | ||
7618 | *) | |
7619 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
7620 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
7621 | if test "${ac_cv_func_shl_load+set}" = set; then | |
7622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7623 | else | |
7624 | cat >conftest.$ac_ext <<_ACEOF | |
7625 | #line $LINENO "configure" | |
7626 | #include "confdefs.h" | |
7627 | /* System header to define __stub macros and hopefully few prototypes, | |
7628 | which can conflict with char shl_load (); below. */ | |
7629 | #include <assert.h> | |
7630 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7631 | #ifdef __cplusplus | |
7632 | extern "C" | |
7633 | #endif | |
7634 | /* We use char because int might match the return type of a gcc2 | |
7635 | builtin and then its argument prototype would still apply. */ | |
7636 | char shl_load (); | |
7637 | char (*f) (); | |
7638 | ||
7639 | #ifdef F77_DUMMY_MAIN | |
7640 | # ifdef __cplusplus | |
7641 | extern "C" | |
7642 | # endif | |
7643 | int F77_DUMMY_MAIN() { return 1; } | |
7644 | #endif | |
7645 | int | |
7646 | main () | |
7647 | { | |
7648 | /* The GNU C library defines this for functions which it implements | |
7649 | to always fail with ENOSYS. Some functions are actually named | |
7650 | something starting with __ and the normal name is an alias. */ | |
7651 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
7652 | choke me | |
7653 | #else | |
7654 | f = shl_load; | |
7655 | #endif | |
7656 | ||
7657 | ; | |
7658 | return 0; | |
7659 | } | |
7660 | _ACEOF | |
7661 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7663 | (eval $ac_link) 2>&5 | |
7664 | ac_status=$? | |
7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7666 | (exit $ac_status); } && | |
7667 | { ac_try='test -s conftest$ac_exeext' | |
7668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7669 | (eval $ac_try) 2>&5 | |
7670 | ac_status=$? | |
7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7672 | (exit $ac_status); }; }; then | |
7673 | ac_cv_func_shl_load=yes | |
7674 | else | |
7675 | echo "$as_me: failed program was:" >&5 | |
7676 | cat conftest.$ac_ext >&5 | |
7677 | ac_cv_func_shl_load=no | |
7678 | fi | |
7679 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7680 | fi | |
7681 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
7682 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
7683 | if test $ac_cv_func_shl_load = yes; then | |
7684 | lt_cv_dlopen="shl_load" | |
7685 | else | |
7686 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
7687 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
7688 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
7689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7690 | else | |
7691 | ac_check_lib_save_LIBS=$LIBS | |
7692 | LIBS="-ldld $LIBS" | |
7693 | cat >conftest.$ac_ext <<_ACEOF | |
7694 | #line $LINENO "configure" | |
7695 | #include "confdefs.h" | |
7696 | ||
7697 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7698 | #ifdef __cplusplus | |
7699 | extern "C" | |
7700 | #endif | |
7701 | /* We use char because int might match the return type of a gcc2 | |
7702 | builtin and then its argument prototype would still apply. */ | |
7703 | char shl_load (); | |
7704 | #ifdef F77_DUMMY_MAIN | |
7705 | # ifdef __cplusplus | |
7706 | extern "C" | |
7707 | # endif | |
7708 | int F77_DUMMY_MAIN() { return 1; } | |
7709 | #endif | |
7710 | int | |
7711 | main () | |
7712 | { | |
7713 | shl_load (); | |
7714 | ; | |
7715 | return 0; | |
7716 | } | |
7717 | _ACEOF | |
7718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7720 | (eval $ac_link) 2>&5 | |
7721 | ac_status=$? | |
7722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7723 | (exit $ac_status); } && | |
7724 | { ac_try='test -s conftest$ac_exeext' | |
7725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7726 | (eval $ac_try) 2>&5 | |
7727 | ac_status=$? | |
7728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7729 | (exit $ac_status); }; }; then | |
7730 | ac_cv_lib_dld_shl_load=yes | |
7731 | else | |
7732 | echo "$as_me: failed program was:" >&5 | |
7733 | cat conftest.$ac_ext >&5 | |
7734 | ac_cv_lib_dld_shl_load=no | |
7735 | fi | |
7736 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7737 | LIBS=$ac_check_lib_save_LIBS | |
7738 | fi | |
7739 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
7740 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
7741 | if test $ac_cv_lib_dld_shl_load = yes; then | |
7742 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
7743 | else | |
7744 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
7745 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
7746 | if test "${ac_cv_func_dlopen+set}" = set; then | |
7747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7748 | else | |
7749 | cat >conftest.$ac_ext <<_ACEOF | |
7750 | #line $LINENO "configure" | |
7751 | #include "confdefs.h" | |
7752 | /* System header to define __stub macros and hopefully few prototypes, | |
7753 | which can conflict with char dlopen (); below. */ | |
7754 | #include <assert.h> | |
7755 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7756 | #ifdef __cplusplus | |
7757 | extern "C" | |
7758 | #endif | |
7759 | /* We use char because int might match the return type of a gcc2 | |
7760 | builtin and then its argument prototype would still apply. */ | |
7761 | char dlopen (); | |
7762 | char (*f) (); | |
7763 | ||
7764 | #ifdef F77_DUMMY_MAIN | |
7765 | # ifdef __cplusplus | |
7766 | extern "C" | |
7767 | # endif | |
7768 | int F77_DUMMY_MAIN() { return 1; } | |
7769 | #endif | |
7770 | int | |
7771 | main () | |
7772 | { | |
7773 | /* The GNU C library defines this for functions which it implements | |
7774 | to always fail with ENOSYS. Some functions are actually named | |
7775 | something starting with __ and the normal name is an alias. */ | |
7776 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
7777 | choke me | |
7778 | #else | |
7779 | f = dlopen; | |
7780 | #endif | |
7781 | ||
7782 | ; | |
7783 | return 0; | |
7784 | } | |
7785 | _ACEOF | |
7786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7788 | (eval $ac_link) 2>&5 | |
7789 | ac_status=$? | |
7790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7791 | (exit $ac_status); } && | |
7792 | { ac_try='test -s conftest$ac_exeext' | |
7793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7794 | (eval $ac_try) 2>&5 | |
7795 | ac_status=$? | |
7796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7797 | (exit $ac_status); }; }; then | |
7798 | ac_cv_func_dlopen=yes | |
7799 | else | |
7800 | echo "$as_me: failed program was:" >&5 | |
7801 | cat conftest.$ac_ext >&5 | |
7802 | ac_cv_func_dlopen=no | |
7803 | fi | |
7804 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7805 | fi | |
7806 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
7807 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
7808 | if test $ac_cv_func_dlopen = yes; then | |
7809 | lt_cv_dlopen="dlopen" | |
7810 | else | |
7811 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
7812 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
7813 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
7814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7815 | else | |
7816 | ac_check_lib_save_LIBS=$LIBS | |
7817 | LIBS="-ldl $LIBS" | |
7818 | cat >conftest.$ac_ext <<_ACEOF | |
7819 | #line $LINENO "configure" | |
7820 | #include "confdefs.h" | |
7821 | ||
7822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7823 | #ifdef __cplusplus | |
7824 | extern "C" | |
7825 | #endif | |
7826 | /* We use char because int might match the return type of a gcc2 | |
7827 | builtin and then its argument prototype would still apply. */ | |
7828 | char dlopen (); | |
7829 | #ifdef F77_DUMMY_MAIN | |
7830 | # ifdef __cplusplus | |
7831 | extern "C" | |
7832 | # endif | |
7833 | int F77_DUMMY_MAIN() { return 1; } | |
7834 | #endif | |
7835 | int | |
7836 | main () | |
7837 | { | |
7838 | dlopen (); | |
7839 | ; | |
7840 | return 0; | |
7841 | } | |
7842 | _ACEOF | |
7843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7845 | (eval $ac_link) 2>&5 | |
7846 | ac_status=$? | |
7847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7848 | (exit $ac_status); } && | |
7849 | { ac_try='test -s conftest$ac_exeext' | |
7850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7851 | (eval $ac_try) 2>&5 | |
7852 | ac_status=$? | |
7853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7854 | (exit $ac_status); }; }; then | |
7855 | ac_cv_lib_dl_dlopen=yes | |
7856 | else | |
7857 | echo "$as_me: failed program was:" >&5 | |
7858 | cat conftest.$ac_ext >&5 | |
7859 | ac_cv_lib_dl_dlopen=no | |
7860 | fi | |
7861 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7862 | LIBS=$ac_check_lib_save_LIBS | |
7863 | fi | |
7864 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
7865 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
7866 | if test $ac_cv_lib_dl_dlopen = yes; then | |
7867 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
7868 | else | |
7869 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
7870 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
7871 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
7872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7873 | else | |
7874 | ac_check_lib_save_LIBS=$LIBS | |
7875 | LIBS="-lsvld $LIBS" | |
7876 | cat >conftest.$ac_ext <<_ACEOF | |
7877 | #line $LINENO "configure" | |
7878 | #include "confdefs.h" | |
7879 | ||
7880 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7881 | #ifdef __cplusplus | |
7882 | extern "C" | |
7883 | #endif | |
7884 | /* We use char because int might match the return type of a gcc2 | |
7885 | builtin and then its argument prototype would still apply. */ | |
7886 | char dlopen (); | |
7887 | #ifdef F77_DUMMY_MAIN | |
7888 | # ifdef __cplusplus | |
7889 | extern "C" | |
7890 | # endif | |
7891 | int F77_DUMMY_MAIN() { return 1; } | |
7892 | #endif | |
7893 | int | |
7894 | main () | |
7895 | { | |
7896 | dlopen (); | |
7897 | ; | |
7898 | return 0; | |
7899 | } | |
7900 | _ACEOF | |
7901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7903 | (eval $ac_link) 2>&5 | |
7904 | ac_status=$? | |
7905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7906 | (exit $ac_status); } && | |
7907 | { ac_try='test -s conftest$ac_exeext' | |
7908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7909 | (eval $ac_try) 2>&5 | |
7910 | ac_status=$? | |
7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7912 | (exit $ac_status); }; }; then | |
7913 | ac_cv_lib_svld_dlopen=yes | |
7914 | else | |
7915 | echo "$as_me: failed program was:" >&5 | |
7916 | cat conftest.$ac_ext >&5 | |
7917 | ac_cv_lib_svld_dlopen=no | |
7918 | fi | |
7919 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7920 | LIBS=$ac_check_lib_save_LIBS | |
7921 | fi | |
7922 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
7923 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
7924 | if test $ac_cv_lib_svld_dlopen = yes; then | |
7925 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
7926 | else | |
7927 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
7928 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
7929 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
7930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7931 | else | |
7932 | ac_check_lib_save_LIBS=$LIBS | |
7933 | LIBS="-ldld $LIBS" | |
7934 | cat >conftest.$ac_ext <<_ACEOF | |
7935 | #line $LINENO "configure" | |
7936 | #include "confdefs.h" | |
7937 | ||
7938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7939 | #ifdef __cplusplus | |
7940 | extern "C" | |
7941 | #endif | |
7942 | /* We use char because int might match the return type of a gcc2 | |
7943 | builtin and then its argument prototype would still apply. */ | |
7944 | char dld_link (); | |
7945 | #ifdef F77_DUMMY_MAIN | |
7946 | # ifdef __cplusplus | |
7947 | extern "C" | |
7948 | # endif | |
7949 | int F77_DUMMY_MAIN() { return 1; } | |
7950 | #endif | |
7951 | int | |
7952 | main () | |
7953 | { | |
7954 | dld_link (); | |
7955 | ; | |
7956 | return 0; | |
7957 | } | |
7958 | _ACEOF | |
7959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7961 | (eval $ac_link) 2>&5 | |
7962 | ac_status=$? | |
7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7964 | (exit $ac_status); } && | |
7965 | { ac_try='test -s conftest$ac_exeext' | |
7966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7967 | (eval $ac_try) 2>&5 | |
7968 | ac_status=$? | |
7969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7970 | (exit $ac_status); }; }; then | |
7971 | ac_cv_lib_dld_dld_link=yes | |
7972 | else | |
7973 | echo "$as_me: failed program was:" >&5 | |
7974 | cat conftest.$ac_ext >&5 | |
7975 | ac_cv_lib_dld_dld_link=no | |
7976 | fi | |
7977 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7978 | LIBS=$ac_check_lib_save_LIBS | |
7979 | fi | |
7980 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
7981 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
7982 | if test $ac_cv_lib_dld_dld_link = yes; then | |
7983 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
7984 | fi | |
7985 | ||
7986 | ||
7987 | fi | |
7988 | ||
7989 | ||
7990 | fi | |
7991 | ||
7992 | ||
7993 | fi | |
7994 | ||
7995 | ||
7996 | fi | |
7997 | ||
7998 | ||
7999 | fi | |
8000 | ||
8001 | ;; | |
8002 | esac | |
8003 | ||
8004 | if test "x$lt_cv_dlopen" != xno; then | |
8005 | enable_dlopen=yes | |
8006 | else | |
8007 | enable_dlopen=no | |
8008 | fi | |
8009 | ||
8010 | case $lt_cv_dlopen in | |
8011 | dlopen) | |
8012 | save_CPPFLAGS="$CPPFLAGS" | |
8013 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
8014 | ||
8015 | save_LDFLAGS="$LDFLAGS" | |
8016 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
8017 | ||
8018 | save_LIBS="$LIBS" | |
8019 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
8020 | ||
8021 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
8022 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
8023 | if test "${lt_cv_dlopen_self+set}" = set; then | |
8024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8025 | else | |
8026 | if test "$cross_compiling" = yes; then : | |
8027 | lt_cv_dlopen_self=cross | |
8028 | else | |
8029 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
8030 | lt_status=$lt_dlunknown | |
8031 | cat > conftest.$ac_ext <<EOF | |
8032 | #line 8032 "configure" | |
8033 | #include "confdefs.h" | |
8034 | ||
8035 | #if HAVE_DLFCN_H | |
8036 | #include <dlfcn.h> | |
8037 | #endif | |
8038 | ||
8039 | #include <stdio.h> | |
8040 | ||
8041 | #ifdef RTLD_GLOBAL | |
8042 | # define LT_DLGLOBAL RTLD_GLOBAL | |
8043 | #else | |
8044 | # ifdef DL_GLOBAL | |
8045 | # define LT_DLGLOBAL DL_GLOBAL | |
8046 | # else | |
8047 | # define LT_DLGLOBAL 0 | |
8048 | # endif | |
8049 | #endif | |
8050 | ||
8051 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
8052 | find out it does not work in some platform. */ | |
8053 | #ifndef LT_DLLAZY_OR_NOW | |
8054 | # ifdef RTLD_LAZY | |
8055 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
8056 | # else | |
8057 | # ifdef DL_LAZY | |
8058 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
8059 | # else | |
8060 | # ifdef RTLD_NOW | |
8061 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
8062 | # else | |
8063 | # ifdef DL_NOW | |
8064 | # define LT_DLLAZY_OR_NOW DL_NOW | |
8065 | # else | |
8066 | # define LT_DLLAZY_OR_NOW 0 | |
8067 | # endif | |
8068 | # endif | |
8069 | # endif | |
8070 | # endif | |
8071 | #endif | |
8072 | ||
8073 | #ifdef __cplusplus | |
8074 | extern "C" void exit (int); | |
8075 | #endif | |
8076 | ||
8077 | void fnord() { int i=42;} | |
8078 | int main () | |
8079 | { | |
8080 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
8081 | int status = $lt_dlunknown; | |
8082 | ||
8083 | if (self) | |
8084 | { | |
8085 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
8086 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
8087 | /* dlclose (self); */ | |
8088 | } | |
8089 | ||
8090 | exit (status); | |
8091 | } | |
8092 | EOF | |
8093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8094 | (eval $ac_link) 2>&5 | |
8095 | ac_status=$? | |
8096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8097 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8098 | (./conftest; exit; ) 2>/dev/null | |
8099 | lt_status=$? | |
8100 | case x$lt_status in | |
8101 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
8102 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
8103 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
8104 | esac | |
8105 | else : | |
8106 | # compilation failed | |
8107 | lt_cv_dlopen_self=no | |
8108 | fi | |
8109 | fi | |
8110 | rm -fr conftest* | |
8111 | ||
8112 | ||
8113 | fi | |
8114 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
8115 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
8116 | ||
8117 | if test "x$lt_cv_dlopen_self" = xyes; then | |
8118 | LDFLAGS="$LDFLAGS $link_static_flag" | |
8119 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
8120 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
8121 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
8122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8123 | else | |
8124 | if test "$cross_compiling" = yes; then : | |
8125 | lt_cv_dlopen_self_static=cross | |
8126 | else | |
8127 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
8128 | lt_status=$lt_dlunknown | |
8129 | cat > conftest.$ac_ext <<EOF | |
8130 | #line 8130 "configure" | |
8131 | #include "confdefs.h" | |
8132 | ||
8133 | #if HAVE_DLFCN_H | |
8134 | #include <dlfcn.h> | |
8135 | #endif | |
8136 | ||
8137 | #include <stdio.h> | |
8138 | ||
8139 | #ifdef RTLD_GLOBAL | |
8140 | # define LT_DLGLOBAL RTLD_GLOBAL | |
8141 | #else | |
8142 | # ifdef DL_GLOBAL | |
8143 | # define LT_DLGLOBAL DL_GLOBAL | |
8144 | # else | |
8145 | # define LT_DLGLOBAL 0 | |
8146 | # endif | |
8147 | #endif | |
8148 | ||
8149 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
8150 | find out it does not work in some platform. */ | |
8151 | #ifndef LT_DLLAZY_OR_NOW | |
8152 | # ifdef RTLD_LAZY | |
8153 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
8154 | # else | |
8155 | # ifdef DL_LAZY | |
8156 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
8157 | # else | |
8158 | # ifdef RTLD_NOW | |
8159 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
8160 | # else | |
8161 | # ifdef DL_NOW | |
8162 | # define LT_DLLAZY_OR_NOW DL_NOW | |
8163 | # else | |
8164 | # define LT_DLLAZY_OR_NOW 0 | |
8165 | # endif | |
8166 | # endif | |
8167 | # endif | |
8168 | # endif | |
8169 | #endif | |
8170 | ||
8171 | #ifdef __cplusplus | |
8172 | extern "C" void exit (int); | |
8173 | #endif | |
8174 | ||
8175 | void fnord() { int i=42;} | |
8176 | int main () | |
8177 | { | |
8178 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
8179 | int status = $lt_dlunknown; | |
8180 | ||
8181 | if (self) | |
8182 | { | |
8183 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
8184 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
8185 | /* dlclose (self); */ | |
8186 | } | |
8187 | ||
8188 | exit (status); | |
8189 | } | |
8190 | EOF | |
8191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8192 | (eval $ac_link) 2>&5 | |
8193 | ac_status=$? | |
8194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8195 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8196 | (./conftest; exit; ) 2>/dev/null | |
8197 | lt_status=$? | |
8198 | case x$lt_status in | |
8199 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
8200 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
8201 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
8202 | esac | |
8203 | else : | |
8204 | # compilation failed | |
8205 | lt_cv_dlopen_self_static=no | |
8206 | fi | |
8207 | fi | |
8208 | rm -fr conftest* | |
8209 | ||
8210 | ||
8211 | fi | |
8212 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
8213 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
8214 | fi | |
8215 | ||
8216 | CPPFLAGS="$save_CPPFLAGS" | |
8217 | LDFLAGS="$save_LDFLAGS" | |
8218 | LIBS="$save_LIBS" | |
8219 | ;; | |
8220 | esac | |
8221 | ||
8222 | case $lt_cv_dlopen_self in | |
8223 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
8224 | *) enable_dlopen_self=unknown ;; | |
8225 | esac | |
8226 | ||
8227 | case $lt_cv_dlopen_self_static in | |
8228 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
8229 | *) enable_dlopen_self_static=unknown ;; | |
8230 | esac | |
8231 | fi | |
8232 | ||
8233 | ||
8234 | # Report which librarie types wil actually be built | |
8235 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
8236 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
8237 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
8238 | echo "${ECHO_T}$can_build_shared" >&6 | |
8239 | ||
8240 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
8241 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
8242 | test "$can_build_shared" = "no" && enable_shared=no | |
8243 | ||
8244 | # On AIX, shared libraries and static libraries use the same namespace, and | |
8245 | # are all built from PIC. | |
8246 | case "$host_os" in | |
8247 | aix3*) | |
8248 | test "$enable_shared" = yes && enable_static=no | |
8249 | if test -n "$RANLIB"; then | |
8250 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
8251 | postinstall_cmds='$RANLIB $lib' | |
8252 | fi | |
8253 | ;; | |
8254 | ||
8255 | aix4*) | |
8256 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
8257 | test "$enable_shared" = yes && enable_static=no | |
8258 | fi | |
8259 | ;; | |
8260 | esac | |
8261 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
8262 | echo "${ECHO_T}$enable_shared" >&6 | |
8263 | ||
8264 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
8265 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
8266 | # Make sure either enable_shared or enable_static is yes. | |
8267 | test "$enable_shared" = yes || enable_static=yes | |
8268 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
8269 | echo "${ECHO_T}$enable_static" >&6 | |
8270 | ||
8271 | # The else clause should only fire when bootstrapping the | |
8272 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
8273 | # with your package, and you will get complaints that there are | |
8274 | # no rules to generate ltmain.sh. | |
8275 | if test -f "$ltmain"; then | |
8276 | # Now quote all the things that may contain metacharacters while being | |
8277 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
8278 | # variables and quote the copies for generation of the libtool script. | |
8279 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
8280 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
8281 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
8282 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
8283 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
8284 | lt_cv_sys_global_symbol_to_c_name_address \ | |
8285 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
8286 | old_postinstall_cmds old_postuninstall_cmds \ | |
8287 | compiler \ | |
8288 | CC \ | |
8289 | LD \ | |
8290 | lt_prog_compiler_wl \ | |
8291 | lt_prog_compiler_pic \ | |
8292 | lt_prog_compiler_static \ | |
8293 | lt_prog_compiler_no_builtin_flag \ | |
8294 | export_dynamic_flag_spec \ | |
8295 | thread_safe_flag_spec \ | |
8296 | whole_archive_flag_spec \ | |
8297 | old_archive_cmds \ | |
8298 | old_archive_from_new_cmds \ | |
8299 | predep_objects \ | |
8300 | postdep_objects \ | |
8301 | predeps \ | |
8302 | postdeps \ | |
8303 | compiler_lib_search_path \ | |
8304 | archive_cmds \ | |
8305 | archive_expsym_cmds \ | |
8306 | postinstall_cmds \ | |
8307 | postuninstall_cmds \ | |
8308 | old_archive_from_expsyms_cmds \ | |
8309 | allow_undefined_flag \ | |
8310 | no_undefined_flag \ | |
8311 | export_symbols_cmds \ | |
8312 | hardcode_libdir_flag_spec \ | |
8313 | hardcode_libdir_separator \ | |
8314 | lt_cv_prog_compiler_c_o \ | |
8315 | exclude_expsyms \ | |
8316 | include_expsyms; do | |
8317 | ||
8318 | case $var in | |
8319 | old_archive_cmds | \ | |
8320 | old_archive_from_new_cmds | \ | |
8321 | archive_cmds | \ | |
8322 | archive_expsym_cmds | \ | |
8323 | old_archive_from_expsyms_cmds | \ | |
8324 | export_symbols_cmds | \ | |
8325 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
8326 | postinstall_cmds | postuninstall_cmds | \ | |
8327 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
8328 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
8329 | # Double-quote double-evaled strings. | |
8330 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
8331 | ;; | |
8332 | *) | |
8333 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
8334 | ;; | |
8335 | esac | |
8336 | done | |
8337 | ||
8338 | case $lt_echo in | |
8339 | *'\$0 --fallback-echo"') | |
8340 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
8341 | ;; | |
8342 | esac | |
8343 | ||
8344 | cfgfile="${ofile}T" | |
8345 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
8346 | $rm -f "$cfgfile" | |
8347 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
8348 | echo "$as_me: creating $ofile" >&6;} | |
8349 | ||
8350 | cat <<__EOF__ >> "$cfgfile" | |
8351 | #! $SHELL | |
8352 | ||
8353 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
8354 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
8355 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
8356 | # | |
8357 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
8358 | # Free Software Foundation, Inc. | |
8359 | # | |
8360 | # This file is part of GNU Libtool: | |
8361 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
8362 | # | |
8363 | # This program is free software; you can redistribute it and/or modify | |
8364 | # it under the terms of the GNU General Public License as published by | |
8365 | # the Free Software Foundation; either version 2 of the License, or | |
8366 | # (at your option) any later version. | |
8367 | # | |
8368 | # This program is distributed in the hope that it will be useful, but | |
8369 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8370 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
8371 | # General Public License for more details. | |
8372 | # | |
8373 | # You should have received a copy of the GNU General Public License | |
8374 | # along with this program; if not, write to the Free Software | |
8375 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
8376 | # | |
8377 | # As a special exception to the GNU General Public License, if you | |
8378 | # distribute this file as part of a program that contains a | |
8379 | # configuration script generated by Autoconf, you may include it under | |
8380 | # the same distribution terms that you use for the rest of that program. | |
8381 | ||
8382 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
8383 | Xsed="sed -e s/^X//" | |
8384 | ||
8385 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
8386 | # if CDPATH is set. | |
8387 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
8388 | ||
8389 | # The names of the tagged configurations supported by this script. | |
8390 | available_tags= | |
8391 | ||
8392 | # ### BEGIN LIBTOOL CONFIG | |
8393 | ||
8394 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8395 | ||
8396 | # Shell to use when invoking shell scripts. | |
8397 | SHELL=$lt_SHELL | |
8398 | ||
8399 | # Whether or not to build shared libraries. | |
8400 | build_libtool_libs=$enable_shared | |
8401 | ||
8402 | # Whether or not to build static libraries. | |
8403 | build_old_libs=$enable_static | |
8404 | ||
8405 | # Whether or not to add -lc for building shared libraries. | |
8406 | build_libtool_need_lc=$archive_cmds_need_lc | |
8407 | ||
8408 | # Whether or not to optimize for fast installation. | |
8409 | fast_install=$enable_fast_install | |
8410 | ||
8411 | # The host system. | |
8412 | host_alias=$host_alias | |
8413 | host=$host | |
8414 | ||
8415 | # An echo program that does not interpret backslashes. | |
8416 | echo=$lt_echo | |
8417 | ||
8418 | # The archiver. | |
8419 | AR=$lt_AR | |
8420 | AR_FLAGS=$lt_AR_FLAGS | |
8421 | ||
8422 | # A C compiler. | |
8423 | LTCC=$lt_LTCC | |
8424 | ||
8425 | # A language-specific compiler. | |
8426 | CC=$lt_compiler | |
8427 | ||
8428 | # Is the compiler the GNU C compiler? | |
8429 | with_gcc=$GCC | |
8430 | ||
8431 | # The linker used to build libraries. | |
8432 | LD=$lt_LD | |
8433 | ||
8434 | # Whether we need hard or soft links. | |
8435 | LN_S=$lt_LN_S | |
8436 | ||
8437 | # A BSD-compatible nm program. | |
8438 | NM=$lt_NM | |
8439 | ||
8440 | # A sed program that does not truncate output. | |
8441 | SED=$lt_SED | |
8442 | ||
8443 | # A symbol stripping program | |
8444 | STRIP=$STRIP | |
8445 | ||
8446 | # Used to examine libraries when file_magic_cmd begins "file" | |
8447 | MAGIC_CMD=$MAGIC_CMD | |
8448 | ||
8449 | # Used on cygwin: DLL creation program. | |
8450 | DLLTOOL="$DLLTOOL" | |
8451 | ||
8452 | # Used on cygwin: object dumper. | |
8453 | OBJDUMP="$OBJDUMP" | |
8454 | ||
8455 | # Used on cygwin: assembler. | |
8456 | AS="$AS" | |
8457 | ||
8458 | # The name of the directory that contains temporary libtool files. | |
8459 | objdir=$objdir | |
8460 | ||
8461 | # How to create reloadable object files. | |
8462 | reload_flag=$lt_reload_flag | |
8463 | reload_cmds=$lt_reload_cmds | |
8464 | ||
8465 | # How to pass a linker flag through the compiler. | |
8466 | wl=$lt_lt_prog_compiler_wl | |
8467 | ||
8468 | # Object file suffix (normally "o"). | |
8469 | objext="$ac_objext" | |
8470 | ||
8471 | # Old archive suffix (normally "a"). | |
8472 | libext="$libext" | |
8473 | ||
8474 | # Executable file suffix (normally ""). | |
8475 | exeext="$exeext" | |
8476 | ||
8477 | # Additional compiler flags for building library objects. | |
8478 | pic_flag=$lt_lt_prog_compiler_pic | |
8479 | pic_mode=$pic_mode | |
8480 | ||
8481 | # What is the maximum length of a command? | |
8482 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
8483 | ||
8484 | # Does compiler simultaneously support -c and -o options? | |
8485 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
8486 | ||
8487 | # Must we lock files when doing compilation ? | |
8488 | need_locks=$lt_need_locks | |
8489 | ||
8490 | # Do we need the lib prefix for modules? | |
8491 | need_lib_prefix=$need_lib_prefix | |
8492 | ||
8493 | # Do we need a version for libraries? | |
8494 | need_version=$need_version | |
8495 | ||
8496 | # Whether dlopen is supported. | |
8497 | dlopen_support=$enable_dlopen | |
8498 | ||
8499 | # Whether dlopen of programs is supported. | |
8500 | dlopen_self=$enable_dlopen_self | |
8501 | ||
8502 | # Whether dlopen of statically linked programs is supported. | |
8503 | dlopen_self_static=$enable_dlopen_self_static | |
8504 | ||
8505 | # Compiler flag to prevent dynamic linking. | |
8506 | link_static_flag=$lt_lt_prog_compiler_static | |
8507 | ||
8508 | # Compiler flag to turn off builtin functions. | |
8509 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
8510 | ||
8511 | # Compiler flag to allow reflexive dlopens. | |
8512 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
8513 | ||
8514 | # Compiler flag to generate shared objects directly from archives. | |
8515 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
8516 | ||
8517 | # Compiler flag to generate thread-safe objects. | |
8518 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
8519 | ||
8520 | # Library versioning type. | |
8521 | version_type=$version_type | |
8522 | ||
8523 | # Format of library name prefix. | |
8524 | libname_spec=$lt_libname_spec | |
8525 | ||
8526 | # List of archive names. First name is the real one, the rest are links. | |
8527 | # The last name is the one that the linker finds with -lNAME. | |
8528 | library_names_spec=$lt_library_names_spec | |
8529 | ||
8530 | # The coded name of the library, if different from the real name. | |
8531 | soname_spec=$lt_soname_spec | |
8532 | ||
8533 | # Commands used to build and install an old-style archive. | |
8534 | RANLIB=$lt_RANLIB | |
8535 | old_archive_cmds=$lt_old_archive_cmds | |
8536 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
8537 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
8538 | ||
8539 | # Create an old-style archive from a shared archive. | |
8540 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
8541 | ||
8542 | # Create a temporary old-style archive to link instead of a shared archive. | |
8543 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
8544 | ||
8545 | # Commands used to build and install a shared archive. | |
8546 | archive_cmds=$lt_archive_cmds | |
8547 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
8548 | postinstall_cmds=$lt_postinstall_cmds | |
8549 | postuninstall_cmds=$lt_postuninstall_cmds | |
8550 | ||
8551 | # Commands to strip libraries. | |
8552 | old_striplib=$lt_old_striplib | |
8553 | striplib=$lt_striplib | |
8554 | ||
8555 | # Dependencies to place before the objects being linked to create a | |
8556 | # shared library. | |
8557 | predep_objects=$lt_predep_objects | |
8558 | ||
8559 | # Dependencies to place after the objects being linked to create a | |
8560 | # shared library. | |
8561 | postdep_objects=$lt_postdep_objects | |
8562 | ||
8563 | # Dependencies to place before the objects being linked to create a | |
8564 | # shared library. | |
8565 | predeps=$lt_predeps | |
8566 | ||
8567 | # Dependencies to place after the objects being linked to create a | |
8568 | # shared library. | |
8569 | postdeps=$lt_postdeps | |
8570 | ||
8571 | # The library search path used internally by the compiler when linking | |
8572 | # a shared library. | |
8573 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
8574 | ||
8575 | # Method to check whether dependent libraries are shared objects. | |
8576 | deplibs_check_method=$lt_deplibs_check_method | |
8577 | ||
8578 | # Command to use when deplibs_check_method == file_magic. | |
8579 | file_magic_cmd=$lt_file_magic_cmd | |
8580 | ||
8581 | # Flag that allows shared libraries with undefined symbols to be built. | |
8582 | allow_undefined_flag=$lt_allow_undefined_flag | |
8583 | ||
8584 | # Flag that forces no undefined symbols. | |
8585 | no_undefined_flag=$lt_no_undefined_flag | |
8586 | ||
8587 | # Commands used to finish a libtool library installation in a directory. | |
8588 | finish_cmds=$lt_finish_cmds | |
8589 | ||
8590 | # Same as above, but a single script fragment to be evaled but not shown. | |
8591 | finish_eval=$lt_finish_eval | |
8592 | ||
8593 | # Take the output of nm and produce a listing of raw symbols and C names. | |
8594 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
8595 | ||
8596 | # Transform the output of nm in a proper C declaration | |
8597 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
8598 | ||
8599 | # Transform the output of nm in a C name address pair | |
8600 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
8601 | ||
8602 | # This is the shared library runtime path variable. | |
8603 | runpath_var=$runpath_var | |
8604 | ||
8605 | # This is the shared library path variable. | |
8606 | shlibpath_var=$shlibpath_var | |
8607 | ||
8608 | # Is shlibpath searched before the hard-coded library search path? | |
8609 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
8610 | ||
8611 | # How to hardcode a shared library path into an executable. | |
8612 | hardcode_action=$hardcode_action | |
8613 | ||
8614 | # Whether we should hardcode library paths into libraries. | |
8615 | hardcode_into_libs=$hardcode_into_libs | |
8616 | ||
8617 | # Flag to hardcode \$libdir into a binary during linking. | |
8618 | # This must work even if \$libdir does not exist. | |
8619 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
8620 | ||
8621 | # Whether we need a single -rpath flag with a separated argument. | |
8622 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
8623 | ||
8624 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
8625 | # resulting binary. | |
8626 | hardcode_direct=$hardcode_direct | |
8627 | ||
8628 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
8629 | # resulting binary. | |
8630 | hardcode_minus_L=$hardcode_minus_L | |
8631 | ||
8632 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
8633 | # the resulting binary. | |
8634 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
8635 | ||
8636 | # Variables whose values should be saved in libtool wrapper scripts and | |
8637 | # restored at relink time. | |
8638 | variables_saved_for_relink="$variables_saved_for_relink" | |
8639 | ||
8640 | # Whether libtool must link a program against all its dependency libraries. | |
8641 | link_all_deplibs=$link_all_deplibs | |
8642 | ||
8643 | # Compile-time system search path for libraries | |
8644 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
8645 | ||
8646 | # Run-time system search path for libraries | |
8647 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
8648 | ||
8649 | # Fix the shell variable \$srcfile for the compiler. | |
8650 | fix_srcfile_path="$fix_srcfile_path" | |
8651 | ||
8652 | # Set to yes if exported symbols are required. | |
8653 | always_export_symbols=$always_export_symbols | |
8654 | ||
8655 | # The commands to list exported symbols. | |
8656 | export_symbols_cmds=$lt_export_symbols_cmds | |
8657 | ||
8658 | # The commands to extract the exported symbol list from a shared archive. | |
8659 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
8660 | ||
8661 | # Symbols that should not be listed in the preloaded symbols. | |
8662 | exclude_expsyms=$lt_exclude_expsyms | |
8663 | ||
8664 | # Symbols that must always be exported. | |
8665 | include_expsyms=$lt_include_expsyms | |
8666 | ||
8667 | # ### END LIBTOOL CONFIG | |
8668 | ||
8669 | __EOF__ | |
8670 | ||
8671 | ||
8672 | case $host_os in | |
8673 | aix3*) | |
8674 | cat <<\EOF >> "$cfgfile" | |
8675 | ||
8676 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8677 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8678 | # vanish in a puff of smoke. | |
8679 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8680 | COLLECT_NAMES= | |
8681 | export COLLECT_NAMES | |
8682 | fi | |
8683 | EOF | |
8684 | ;; | |
8685 | ||
8686 | cygwin* | mingw* | pw32* | os2*) | |
8687 | cat <<'EOF' >> "$cfgfile" | |
8688 | # This is a source program that is used to create dlls on Windows | |
8689 | # Don't remove nor modify the starting and closing comments | |
8690 | ||
8691 | # /* ltdll.c starts here */ | |
8692 | # #define WIN32_LEAN_AND_MEAN | |
8693 | # #include <windows.h> | |
8694 | # #undef WIN32_LEAN_AND_MEAN | |
8695 | # #include <stdio.h> | |
8696 | # | |
8697 | # #ifndef __CYGWIN__ | |
8698 | # # ifdef __CYGWIN32__ | |
8699 | # # define __CYGWIN__ __CYGWIN32__ | |
8700 | # # endif | |
8701 | # #endif | |
8702 | # | |
8703 | # #ifdef __cplusplus | |
8704 | # extern "C" { | |
8705 | # #endif | |
8706 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | |
8707 | # #ifdef __cplusplus | |
8708 | # } | |
8709 | # #endif | |
8710 | # | |
8711 | # #ifdef __CYGWIN__ | |
8712 | # #include <cygwin/cygwin_dll.h> | |
8713 | # DECLARE_CYGWIN_DLL( DllMain ); | |
8714 | # #endif | |
8715 | # HINSTANCE __hDllInstance_base; | |
8716 | # | |
8717 | # BOOL APIENTRY | |
8718 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | |
8719 | # { | |
8720 | # __hDllInstance_base = hInst; | |
8721 | # return TRUE; | |
8722 | # } | |
8723 | # /* ltdll.c ends here */ | |
8724 | ||
8725 | # This is a source program that is used to create import libraries | |
8726 | # on Windows for dlls which lack them. Don't remove nor modify the | |
8727 | # starting and closing comments | |
8728 | ||
8729 | # /* impgen.c starts here */ | |
8730 | # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | |
8731 | # | |
8732 | # This file is part of GNU libtool. | |
8733 | # | |
8734 | # This program is free software; you can redistribute it and/or modify | |
8735 | # it under the terms of the GNU General Public License as published by | |
8736 | # the Free Software Foundation; either version 2 of the License, or | |
8737 | # (at your option) any later version. | |
8738 | # | |
8739 | # This program is distributed in the hope that it will be useful, | |
8740 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
8741 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
8742 | # GNU General Public License for more details. | |
8743 | # | |
8744 | # You should have received a copy of the GNU General Public License | |
8745 | # along with this program; if not, write to the Free Software | |
8746 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
8747 | # */ | |
8748 | # | |
8749 | # #include <stdio.h> /* for printf() */ | |
8750 | # #include <unistd.h> /* for open(), lseek(), read() */ | |
8751 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ | |
8752 | # #include <string.h> /* for strdup() */ | |
8753 | # | |
8754 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | |
8755 | # #ifndef O_BINARY | |
8756 | # #define O_BINARY 0 | |
8757 | # #endif | |
8758 | # | |
8759 | # static unsigned int | |
8760 | # pe_get16 (fd, offset) | |
8761 | # int fd; | |
8762 | # int offset; | |
8763 | # { | |
8764 | # unsigned char b[2]; | |
8765 | # lseek (fd, offset, SEEK_SET); | |
8766 | # read (fd, b, 2); | |
8767 | # return b[0] + (b[1]<<8); | |
8768 | # } | |
8769 | # | |
8770 | # static unsigned int | |
8771 | # pe_get32 (fd, offset) | |
8772 | # int fd; | |
8773 | # int offset; | |
8774 | # { | |
8775 | # unsigned char b[4]; | |
8776 | # lseek (fd, offset, SEEK_SET); | |
8777 | # read (fd, b, 4); | |
8778 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
8779 | # } | |
8780 | # | |
8781 | # static unsigned int | |
8782 | # pe_as32 (ptr) | |
8783 | # void *ptr; | |
8784 | # { | |
8785 | # unsigned char *b = ptr; | |
8786 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
8787 | # } | |
8788 | # | |
8789 | # int | |
8790 | # main (argc, argv) | |
8791 | # int argc; | |
8792 | # char *argv[]; | |
8793 | # { | |
8794 | # int dll; | |
8795 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | |
8796 | # unsigned long export_rva, export_size, nsections, secptr, expptr; | |
8797 | # unsigned long name_rvas, nexp; | |
8798 | # unsigned char *expdata, *erva; | |
8799 | # char *filename, *dll_name; | |
8800 | # | |
8801 | # filename = argv[1]; | |
8802 | # | |
8803 | # dll = open(filename, O_RDONLY|O_BINARY); | |
8804 | # if (dll < 1) | |
8805 | # return 1; | |
8806 | # | |
8807 | # dll_name = filename; | |
8808 | # | |
8809 | # for (i=0; filename[i]; i++) | |
8810 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') | |
8811 | # dll_name = filename + i +1; | |
8812 | # | |
8813 | # pe_header_offset = pe_get32 (dll, 0x3c); | |
8814 | # opthdr_ofs = pe_header_offset + 4 + 20; | |
8815 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); | |
8816 | # | |
8817 | # if (num_entries < 1) /* no exports */ | |
8818 | # return 1; | |
8819 | # | |
8820 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); | |
8821 | # export_size = pe_get32 (dll, opthdr_ofs + 100); | |
8822 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); | |
8823 | # secptr = (pe_header_offset + 4 + 20 + | |
8824 | # pe_get16 (dll, pe_header_offset + 4 + 16)); | |
8825 | # | |
8826 | # expptr = 0; | |
8827 | # for (i = 0; i < nsections; i++) | |
8828 | # { | |
8829 | # char sname[8]; | |
8830 | # unsigned long secptr1 = secptr + 40 * i; | |
8831 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | |
8832 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); | |
8833 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); | |
8834 | # lseek(dll, secptr1, SEEK_SET); | |
8835 | # read(dll, sname, 8); | |
8836 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) | |
8837 | # { | |
8838 | # expptr = fptr + (export_rva - vaddr); | |
8839 | # if (export_rva + export_size > vaddr + vsize) | |
8840 | # export_size = vsize - (export_rva - vaddr); | |
8841 | # break; | |
8842 | # } | |
8843 | # } | |
8844 | # | |
8845 | # expdata = (unsigned char*)malloc(export_size); | |
8846 | # lseek (dll, expptr, SEEK_SET); | |
8847 | # read (dll, expdata, export_size); | |
8848 | # erva = expdata - export_rva; | |
8849 | # | |
8850 | # nexp = pe_as32 (expdata+24); | |
8851 | # name_rvas = pe_as32 (expdata+32); | |
8852 | # | |
8853 | # printf ("EXPORTS\n"); | |
8854 | # for (i = 0; i<nexp; i++) | |
8855 | # { | |
8856 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | |
8857 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | |
8858 | # } | |
8859 | # | |
8860 | # return 0; | |
8861 | # } | |
8862 | # /* impgen.c ends here */ | |
8863 | ||
8864 | EOF | |
8865 | ;; | |
8866 | esac | |
8867 | ||
8868 | # We use sed instead of cat because bash on DJGPP gets confused if | |
8869 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
8870 | # text mode, it properly converts lines to CR/LF. This bash problem | |
8871 | # is reportedly fixed, but why not run on old versions too? | |
8872 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
8873 | ||
8874 | mv -f "$cfgfile" "$ofile" || \ | |
8875 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
8876 | chmod +x "$ofile" | |
8877 | ||
8878 | else | |
8879 | # If there is no Makefile yet, we rely on a make rule to execute | |
8880 | # `config.status --recheck' to rerun these tests and create the | |
8881 | # libtool script then. | |
8882 | test -f Makefile && make "$ltmain" | |
8883 | fi | |
8884 | ||
8885 | ||
8886 | ac_ext=c | |
8887 | ac_cpp='$CPP $CPPFLAGS' | |
8888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8891 | ||
8892 | CC="$lt_save_CC" | |
8893 | ||
8894 | ||
8895 | # Check whether --with-tags or --without-tags was given. | |
8896 | if test "${with_tags+set}" = set; then | |
8897 | withval="$with_tags" | |
8898 | tagnames="$withval" | |
8899 | else | |
8900 | tagnames="CXX,GCJ" | |
8901 | case $host_os in | |
8902 | mingw*|cygwin*) tagnames="$tagnames,RC" ;; | |
8903 | esac | |
8904 | fi; | |
8905 | ||
8906 | if test -f "$ltmain" && test -n "$tagnames"; then | |
8907 | if test ! -f "${ofile}"; then | |
8908 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
8909 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
8910 | fi | |
8911 | ||
8912 | if test -z "$LTCC"; then | |
8913 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
8914 | if test -z "$LTCC"; then | |
8915 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
8916 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
8917 | else | |
8918 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
8919 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
8920 | fi | |
8921 | fi | |
8922 | ||
8923 | # Extract list of available tagged configurations in $ofile. | |
8924 | # Note that this assumes the entire list is on one line. | |
8925 | available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
8926 | ||
8927 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8928 | for tagname in $tagnames; do | |
8929 | IFS="$lt_save_ifs" | |
8930 | # Check whether tagname contains only valid characters | |
8931 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
8932 | "") ;; | |
8933 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
8934 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
8935 | { (exit 1); exit 1; }; } | |
8936 | ;; | |
8937 | esac | |
8938 | ||
8939 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
8940 | then | |
8941 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
8942 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
8943 | { (exit 1); exit 1; }; } | |
8944 | fi | |
8945 | ||
8946 | # Update the list of available tags. | |
8947 | if test -n "$tagname"; then | |
8948 | echo appending configuration tag \"$tagname\" to $ofile | |
8949 | ||
8950 | case $tagname in | |
8951 | CXX) | |
8952 | ac_ext=cc | |
8953 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8954 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8955 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8956 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8957 | ||
8958 | ||
8959 | ||
8960 | ||
8961 | archive_cmds_need_lc_CXX=no | |
8962 | allow_undefined_flag_CXX= | |
8963 | always_export_symbols_CXX=no | |
8964 | archive_expsym_cmds_CXX= | |
8965 | export_dynamic_flag_spec_CXX= | |
8966 | hardcode_direct_CXX=no | |
8967 | hardcode_libdir_flag_spec_CXX= | |
8968 | hardcode_libdir_separator_CXX= | |
8969 | hardcode_minus_L_CXX=no | |
8970 | link_all_deplibs_CXX=unknown | |
8971 | old_archive_cmds_CXX=$old_archive_cmds | |
8972 | no_undefined_flag_CXX= | |
8973 | whole_archive_flag_spec_CXX= | |
8974 | ||
8975 | # Dependencies to place before and after the object being linked: | |
8976 | predep_objects_CXX= | |
8977 | postdep_objects_CXX= | |
8978 | predeps_CXX= | |
8979 | postdeps_CXX= | |
8980 | compiler_lib_search_path_CXX= | |
8981 | ||
8982 | # Source file extension for C test sources. | |
8983 | ac_ext=cc | |
8984 | ||
8985 | # Object file extension for compiled C test sources. | |
8986 | objext=o | |
8987 | objext_CXX=$objext | |
8988 | ||
8989 | # Code to be used in simple compile tests | |
8990 | lt_simple_compile_test_code="int some_variable = 0;" | |
8991 | ||
8992 | # Code to be used in simple link tests | |
8993 | lt_simple_link_test_code='int main(int char *) { return(0); }' | |
8994 | ||
8995 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
8996 | ||
8997 | # If no C compiler was specified, use CC. | |
8998 | LTCC=${LTCC-"$CC"} | |
8999 | ||
9000 | # Allow CC to be a program name with arguments. | |
9001 | set dummy $CC | |
9002 | compiler="$2" | |
9003 | ||
9004 | ||
9005 | # Allow CC to be a program name with arguments. | |
9006 | lt_save_CC="$CC" | |
9007 | CC=${CXX-"c++"} | |
9008 | set dummy $CC | |
9009 | compiler="$2" | |
9010 | compiler_CXX=$CC | |
9011 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
9012 | ||
9013 | # We don't want -fno-exception wen compiling C++ code, so set the | |
9014 | # no_builtin_flag separately | |
9015 | if test "$GXX" = yes; then | |
9016 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
9017 | else | |
9018 | lt_prog_compiler_no_builtin_flag_CXX= | |
9019 | fi | |
9020 | ||
9021 | if test "$GXX" = yes; then | |
9022 | # Set up default GNU C++ configuration | |
9023 | ||
9024 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
9025 | # archiving commands below assume that GNU ld is being used. | |
9026 | if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ | |
9027 | egrep 'GNU ld' > /dev/null; then | |
9028 | with_gnu_ld=yes | |
9029 | ||
9030 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9031 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9032 | ||
9033 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
9034 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9035 | ||
9036 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9037 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
9038 | # investigate it a little bit more. (MM) | |
9039 | wlarc='${wl}' | |
9040 | ||
9041 | # ancient GNU ld didn't support --whole-archive et. al. | |
9042 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
9043 | egrep 'no-whole-archive' > /dev/null; then | |
9044 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9045 | else | |
9046 | whole_archive_flag_spec_CXX= | |
9047 | fi | |
9048 | else | |
9049 | with_gnu_ld=no | |
9050 | wlarc= | |
9051 | ||
9052 | # A generic and very simple default shared library creation | |
9053 | # command for GNU C++ for the case where it uses the native | |
9054 | # linker, instead of GNU ld. If possible, this setting should | |
9055 | # overridden to take advantage of the native linker features on | |
9056 | # the platform it is being used on. | |
9057 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
9058 | fi | |
9059 | ||
9060 | # Commands to make compiler produce verbose output that lists | |
9061 | # what "hidden" libraries, object files and flags are used when | |
9062 | # linking a shared library. | |
9063 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
9064 | ||
9065 | else | |
9066 | GXX=no | |
9067 | with_gnu_ld=no | |
9068 | wlarc= | |
9069 | fi | |
9070 | ||
9071 | # PORTME: fill in a description of your system's C++ link characteristics | |
9072 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9073 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
9074 | ld_shlibs_CXX=yes | |
9075 | case $host_os in | |
9076 | aix3*) | |
9077 | # FIXME: insert proper C++ library support | |
9078 | ld_shlibs_CXX=no | |
9079 | ;; | |
9080 | aix4* | aix5*) | |
9081 | if test "$host_cpu" = ia64; then | |
9082 | # On IA64, the linker does run time linking by default, so we don't | |
9083 | # have to do anything special. | |
9084 | aix_use_runtimelinking=no | |
9085 | exp_sym_flag='-Bexport' | |
9086 | no_entry_flag="" | |
9087 | else | |
9088 | # KDE requires run time linking. Make it the default. | |
9089 | aix_use_runtimelinking=yes | |
9090 | exp_sym_flag='-bexport' | |
9091 | no_entry_flag='-bnoentry' | |
9092 | fi | |
9093 | ||
9094 | # When large executables or shared objects are built, AIX ld can | |
9095 | # have problems creating the table of contents. If linking a library | |
9096 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9097 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9098 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9099 | ||
9100 | archive_cmds_CXX='' | |
9101 | hardcode_direct_CXX=yes | |
9102 | hardcode_libdir_separator_CXX=':' | |
9103 | link_all_deplibs_CXX=yes | |
9104 | ||
9105 | if test "$GXX" = yes; then | |
9106 | case $host_os in aix4.012|aix4.012.*) | |
9107 | # We only want to do this on AIX 4.2 and lower, the check | |
9108 | # below for broken collect2 doesn't work under 4.3+ | |
9109 | collect2name=`${CC} -print-prog-name=collect2` | |
9110 | if test -f "$collect2name" && \ | |
9111 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
9112 | then | |
9113 | # We have reworked collect2 | |
9114 | hardcode_direct_CXX=yes | |
9115 | else | |
9116 | # We have old collect2 | |
9117 | hardcode_direct_CXX=unsupported | |
9118 | # It fails to find uninstalled libraries when the uninstalled | |
9119 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9120 | # to unsupported forces relinking | |
9121 | hardcode_minus_L_CXX=yes | |
9122 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9123 | hardcode_libdir_separator_CXX= | |
9124 | fi | |
9125 | esac | |
9126 | shared_flag='-shared' | |
9127 | else | |
9128 | # not using gcc | |
9129 | if test "$host_cpu" = ia64; then | |
9130 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9131 | # chokes on -Wl,-G. The following line is correct: | |
9132 | shared_flag='-G' | |
9133 | else | |
9134 | if test "$aix_use_runtimelinking" = yes; then | |
9135 | shared_flag='-qmkshrobj ${wl}-G' | |
9136 | else | |
9137 | shared_flag='-qmkshrobj' | |
9138 | fi | |
9139 | fi | |
9140 | fi | |
9141 | ||
9142 | # Let the compiler handle the export list. | |
9143 | always_export_symbols_CXX=no | |
9144 | if test "$aix_use_runtimelinking" = yes; then | |
9145 | # Warning - without using the other runtime loading flags (-brtl), | |
9146 | # -berok will link without error, but may produce a broken library. | |
9147 | allow_undefined_flag_CXX='-berok' | |
9148 | # Determine the default libpath from the value encoded in an empty executable. | |
9149 | cat >conftest.$ac_ext <<_ACEOF | |
9150 | #line $LINENO "configure" | |
9151 | #include "confdefs.h" | |
9152 | ||
9153 | #ifdef F77_DUMMY_MAIN | |
9154 | # ifdef __cplusplus | |
9155 | extern "C" | |
9156 | # endif | |
9157 | int F77_DUMMY_MAIN() { return 1; } | |
9158 | #endif | |
9159 | int | |
9160 | main () | |
9161 | { | |
9162 | ||
9163 | ; | |
9164 | return 0; | |
9165 | } | |
9166 | _ACEOF | |
9167 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9169 | (eval $ac_link) 2>&5 | |
9170 | ac_status=$? | |
9171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9172 | (exit $ac_status); } && | |
9173 | { ac_try='test -s conftest$ac_exeext' | |
9174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9175 | (eval $ac_try) 2>&5 | |
9176 | ac_status=$? | |
9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9178 | (exit $ac_status); }; }; then | |
9179 | ||
9180 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9181 | }'` | |
9182 | # Check for a 64-bit object if we didn't find anything. | |
9183 | 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; } | |
9184 | }'`; fi | |
9185 | else | |
9186 | echo "$as_me: failed program was:" >&5 | |
9187 | cat conftest.$ac_ext >&5 | |
9188 | fi | |
9189 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9190 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9191 | ||
9192 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9193 | ||
9194 | archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
9195 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9196 | else | |
9197 | if test "$host_cpu" = ia64; then | |
9198 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
9199 | allow_undefined_flag_CXX="-z nodefs" | |
9200 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
9201 | else | |
9202 | # Determine the default libpath from the value encoded in an empty executable. | |
9203 | cat >conftest.$ac_ext <<_ACEOF | |
9204 | #line $LINENO "configure" | |
9205 | #include "confdefs.h" | |
9206 | ||
9207 | #ifdef F77_DUMMY_MAIN | |
9208 | # ifdef __cplusplus | |
9209 | extern "C" | |
9210 | # endif | |
9211 | int F77_DUMMY_MAIN() { return 1; } | |
9212 | #endif | |
9213 | int | |
9214 | main () | |
9215 | { | |
9216 | ||
9217 | ; | |
9218 | return 0; | |
9219 | } | |
9220 | _ACEOF | |
9221 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9223 | (eval $ac_link) 2>&5 | |
9224 | ac_status=$? | |
9225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9226 | (exit $ac_status); } && | |
9227 | { ac_try='test -s conftest$ac_exeext' | |
9228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9229 | (eval $ac_try) 2>&5 | |
9230 | ac_status=$? | |
9231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9232 | (exit $ac_status); }; }; then | |
9233 | ||
9234 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9235 | }'` | |
9236 | # Check for a 64-bit object if we didn't find anything. | |
9237 | 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; } | |
9238 | }'`; fi | |
9239 | else | |
9240 | echo "$as_me: failed program was:" >&5 | |
9241 | cat conftest.$ac_ext >&5 | |
9242 | fi | |
9243 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9244 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9245 | ||
9246 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9247 | # Warning - without using the other run time loading flags, | |
9248 | # -berok will link without error, but may produce a broken library. | |
9249 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
9250 | allow_undefined_flag_CXX=' ${wl}-berok' | |
9251 | # -bexpall does not export symbols beginning with underscore (_) | |
9252 | always_export_symbols_CXX=yes | |
9253 | # Exported symbols can be pulled into shared objects from archives | |
9254 | whole_archive_flag_spec_CXX=' ' | |
9255 | archive_cmds_need_lc_CXX=yes | |
9256 | # This is similar to how AIX traditionally builds it's shared libraries. | |
9257 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
9258 | fi | |
9259 | fi | |
9260 | ;; | |
9261 | chorus*) | |
9262 | case $cc_basename in | |
9263 | *) | |
9264 | # FIXME: insert proper C++ library support | |
9265 | ld_shlibs_CXX=no | |
9266 | ;; | |
9267 | esac | |
9268 | ;; | |
9269 | dgux*) | |
9270 | case $cc_basename in | |
9271 | ec++) | |
9272 | # FIXME: insert proper C++ library support | |
9273 | ld_shlibs_CXX=no | |
9274 | ;; | |
9275 | ghcx) | |
9276 | # Green Hills C++ Compiler | |
9277 | # FIXME: insert proper C++ library support | |
9278 | ld_shlibs_CXX=no | |
9279 | ;; | |
9280 | *) | |
9281 | # FIXME: insert proper C++ library support | |
9282 | ld_shlibs_CXX=no | |
9283 | ;; | |
9284 | esac | |
9285 | ;; | |
9286 | freebsd12*) | |
9287 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
9288 | ld_shlibs_CXX=no | |
9289 | ;; | |
9290 | freebsd-elf*) | |
9291 | archive_cmds_need_lc_CXX=no | |
9292 | ;; | |
9293 | freebsd*) | |
9294 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
9295 | # conventions | |
9296 | ld_shlibs_CXX=yes | |
9297 | ;; | |
9298 | gnu*) | |
9299 | ;; | |
9300 | hpux*) | |
9301 | if test $with_gnu_ld = no; then | |
9302 | if test "$host_cpu" = ia64; then | |
9303 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9304 | else | |
9305 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
9306 | hardcode_libdir_separator_CXX=: | |
9307 | export_dynamic_flag_spec_CXX='${wl}-E' | |
9308 | fi | |
9309 | fi | |
9310 | if test "$host_cpu" = ia64; then | |
9311 | hardcode_direct_CXX=no | |
9312 | hardcode_shlibpath_var_CXX=no | |
9313 | else | |
9314 | hardcode_direct_CXX=yes | |
9315 | fi | |
9316 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
9317 | # but as the default | |
9318 | # location of the library. | |
9319 | ||
9320 | case $cc_basename in | |
9321 | CC) | |
9322 | # FIXME: insert proper C++ library support | |
9323 | ld_shlibs_CXX=no | |
9324 | ;; | |
9325 | aCC) | |
9326 | case $host_os in | |
9327 | hpux9*) | |
9328 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9329 | ;; | |
9330 | *) | |
9331 | if test "$host_cpu" = ia64; then | |
9332 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
9333 | else | |
9334 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
9335 | fi | |
9336 | ;; | |
9337 | esac | |
9338 | # Commands to make compiler produce verbose output that lists | |
9339 | # what "hidden" libraries, object files and flags are used when | |
9340 | # linking a shared library. | |
9341 | # | |
9342 | # There doesn't appear to be a way to prevent this compiler from | |
9343 | # explicitly linking system object files so we need to strip them | |
9344 | # from the output so that they don't get included in the library | |
9345 | # dependencies. | |
9346 | 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' | |
9347 | ;; | |
9348 | *) | |
9349 | if test "$GXX" = yes; then | |
9350 | if test $with_gnu_ld = no; then | |
9351 | case $host_os in | |
9352 | hpux9*) | |
9353 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9354 | ;; | |
9355 | *) | |
9356 | if test "$host_cpu" = ia64; then | |
9357 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
9358 | else | |
9359 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
9360 | fi | |
9361 | ;; | |
9362 | esac | |
9363 | fi | |
9364 | else | |
9365 | # FIXME: insert proper C++ library support | |
9366 | ld_shlibs_CXX=no | |
9367 | fi | |
9368 | ;; | |
9369 | esac | |
9370 | ;; | |
9371 | irix5* | irix6*) | |
9372 | case $cc_basename in | |
9373 | CC) | |
9374 | # SGI C++ | |
9375 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
9376 | ||
9377 | # Archives containing C++ object files must be created using | |
9378 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
9379 | # necessary to make sure instantiated templates are included | |
9380 | # in the archive. | |
9381 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
9382 | ;; | |
9383 | *) | |
9384 | if test "$GXX" = yes; then | |
9385 | if test "$with_gnu_ld" = no; then | |
9386 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
9387 | else | |
9388 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib' | |
9389 | fi | |
9390 | fi | |
9391 | link_all_deplibs_CXX=yes | |
9392 | ;; | |
9393 | esac | |
9394 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9395 | hardcode_libdir_separator_CXX=: | |
9396 | ;; | |
9397 | linux*) | |
9398 | case $cc_basename in | |
9399 | KCC) | |
9400 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9401 | ||
9402 | # KCC will only create a shared library if the output file | |
9403 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
9404 | # to its proper name (with version) after linking. | |
9405 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
9406 | archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
9407 | ||
9408 | # Commands to make compiler produce verbose output that lists | |
9409 | # what "hidden" libraries, object files and flags are used when | |
9410 | # linking a shared library. | |
9411 | # | |
9412 | # There doesn't appear to be a way to prevent this compiler from | |
9413 | # explicitly linking system object files so we need to strip them | |
9414 | # from the output so that they don't get included in the library | |
9415 | # dependencies. | |
9416 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
9417 | ||
9418 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
9419 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9420 | ||
9421 | # Archives containing C++ object files must be created using | |
9422 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
9423 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
9424 | ;; | |
9425 | cxx) | |
9426 | # Compaq C++ | |
9427 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9428 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
9429 | ||
9430 | runpath_var=LD_RUN_PATH | |
9431 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
9432 | hardcode_libdir_separator_CXX=: | |
9433 | ||
9434 | # Commands to make compiler produce verbose output that lists | |
9435 | # what "hidden" libraries, object files and flags are used when | |
9436 | # linking a shared library. | |
9437 | # | |
9438 | # There doesn't appear to be a way to prevent this compiler from | |
9439 | # explicitly linking system object files so we need to strip them | |
9440 | # from the output so that they don't get included in the library | |
9441 | # dependencies. | |
9442 | 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' | |
9443 | ;; | |
9444 | esac | |
9445 | ;; | |
9446 | lynxos*) | |
9447 | # FIXME: insert proper C++ library support | |
9448 | ld_shlibs_CXX=no | |
9449 | ;; | |
9450 | m88k*) | |
9451 | # FIXME: insert proper C++ library support | |
9452 | ld_shlibs_CXX=no | |
9453 | ;; | |
9454 | mvs*) | |
9455 | case $cc_basename in | |
9456 | cxx) | |
9457 | # FIXME: insert proper C++ library support | |
9458 | ld_shlibs_CXX=no | |
9459 | ;; | |
9460 | *) | |
9461 | # FIXME: insert proper C++ library support | |
9462 | ld_shlibs_CXX=no | |
9463 | ;; | |
9464 | esac | |
9465 | ;; | |
9466 | netbsd*) | |
9467 | # NetBSD uses g++ - do we need to do anything? | |
9468 | ;; | |
9469 | osf3*) | |
9470 | case $cc_basename in | |
9471 | KCC) | |
9472 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9473 | ||
9474 | # KCC will only create a shared library if the output file | |
9475 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
9476 | # to its proper name (with version) after linking. | |
9477 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
9478 | ||
9479 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
9480 | hardcode_libdir_separator_CXX=: | |
9481 | ||
9482 | # Archives containing C++ object files must be created using | |
9483 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
9484 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
9485 | ||
9486 | ;; | |
9487 | RCC) | |
9488 | # Rational C++ 2.4.1 | |
9489 | # FIXME: insert proper C++ library support | |
9490 | ld_shlibs_CXX=no | |
9491 | ;; | |
9492 | cxx) | |
9493 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
9494 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
9495 | ||
9496 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9497 | hardcode_libdir_separator_CXX=: | |
9498 | ||
9499 | # Commands to make compiler produce verbose output that lists | |
9500 | # what "hidden" libraries, object files and flags are used when | |
9501 | # linking a shared library. | |
9502 | # | |
9503 | # There doesn't appear to be a way to prevent this compiler from | |
9504 | # explicitly linking system object files so we need to strip them | |
9505 | # from the output so that they don't get included in the library | |
9506 | # dependencies. | |
9507 | 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' | |
9508 | ;; | |
9509 | *) | |
9510 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
9511 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
9512 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
9513 | ||
9514 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9515 | hardcode_libdir_separator_CXX=: | |
9516 | ||
9517 | # Commands to make compiler produce verbose output that lists | |
9518 | # what "hidden" libraries, object files and flags are used when | |
9519 | # linking a shared library. | |
9520 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
9521 | ||
9522 | else | |
9523 | # FIXME: insert proper C++ library support | |
9524 | ld_shlibs_CXX=no | |
9525 | fi | |
9526 | ;; | |
9527 | esac | |
9528 | ;; | |
9529 | osf4* | osf5*) | |
9530 | case $cc_basename in | |
9531 | KCC) | |
9532 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9533 | ||
9534 | # KCC will only create a shared library if the output file | |
9535 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
9536 | # to its proper name (with version) after linking. | |
9537 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
9538 | ||
9539 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
9540 | hardcode_libdir_separator_CXX=: | |
9541 | ||
9542 | # Archives containing C++ object files must be created using | |
9543 | # the KAI C++ compiler. | |
9544 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
9545 | ;; | |
9546 | RCC) | |
9547 | # Rational C++ 2.4.1 | |
9548 | # FIXME: insert proper C++ library support | |
9549 | ld_shlibs_CXX=no | |
9550 | ;; | |
9551 | cxx) | |
9552 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
9553 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
9554 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ | |
9555 | echo "-hidden">> $lib.exp~ | |
9556 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ | |
9557 | $rm $lib.exp' | |
9558 | ||
9559 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
9560 | hardcode_libdir_separator_CXX=: | |
9561 | ||
9562 | # Commands to make compiler produce verbose output that lists | |
9563 | # what "hidden" libraries, object files and flags are used when | |
9564 | # linking a shared library. | |
9565 | # | |
9566 | # There doesn't appear to be a way to prevent this compiler from | |
9567 | # explicitly linking system object files so we need to strip them | |
9568 | # from the output so that they don't get included in the library | |
9569 | # dependencies. | |
9570 | 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' | |
9571 | ;; | |
9572 | *) | |
9573 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
9574 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
9575 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
9576 | ||
9577 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9578 | hardcode_libdir_separator_CXX=: | |
9579 | ||
9580 | # Commands to make compiler produce verbose output that lists | |
9581 | # what "hidden" libraries, object files and flags are used when | |
9582 | # linking a shared library. | |
9583 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
9584 | ||
9585 | else | |
9586 | # FIXME: insert proper C++ library support | |
9587 | ld_shlibs_CXX=no | |
9588 | fi | |
9589 | ;; | |
9590 | esac | |
9591 | ;; | |
9592 | psos*) | |
9593 | # FIXME: insert proper C++ library support | |
9594 | ld_shlibs_CXX=no | |
9595 | ;; | |
9596 | sco*) | |
9597 | archive_cmds_need_lc_CXX=no | |
9598 | case $cc_basename in | |
9599 | CC) | |
9600 | # FIXME: insert proper C++ library support | |
9601 | ld_shlibs_CXX=no | |
9602 | ;; | |
9603 | *) | |
9604 | # FIXME: insert proper C++ library support | |
9605 | ld_shlibs_CXX=no | |
9606 | ;; | |
9607 | esac | |
9608 | ;; | |
9609 | sunos4*) | |
9610 | case $cc_basename in | |
9611 | CC) | |
9612 | # Sun C++ 4.x | |
9613 | # FIXME: insert proper C++ library support | |
9614 | ld_shlibs_CXX=no | |
9615 | ;; | |
9616 | lcc) | |
9617 | # Lucid | |
9618 | # FIXME: insert proper C++ library support | |
9619 | ld_shlibs_CXX=no | |
9620 | ;; | |
9621 | *) | |
9622 | # FIXME: insert proper C++ library support | |
9623 | ld_shlibs_CXX=no | |
9624 | ;; | |
9625 | esac | |
9626 | ;; | |
9627 | solaris*) | |
9628 | case $cc_basename in | |
9629 | CC) | |
9630 | # Sun C++ 4.2, 5.x and Centerline C++ | |
9631 | no_undefined_flag_CXX=' -zdefs' | |
9632 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
9633 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9634 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
9635 | ||
9636 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
9637 | hardcode_shlibpath_var_CXX=no | |
9638 | case $host_os in | |
9639 | solaris2.0-5 | solaris2.0-5.*) ;; | |
9640 | *) | |
9641 | # The C++ compiler is used as linker so we must use $wl | |
9642 | # flag to pass the commands to the underlying system | |
9643 | # linker. | |
9644 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9645 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9646 | ;; | |
9647 | esac | |
9648 | link_all_deplibs_CXX=yes | |
9649 | ||
9650 | # Commands to make compiler produce verbose output that lists | |
9651 | # what "hidden" libraries, object files and flags are used when | |
9652 | # linking a shared library. | |
9653 | # | |
9654 | # There doesn't appear to be a way to prevent this compiler from | |
9655 | # explicitly linking system object files so we need to strip them | |
9656 | # from the output so that they don't get included in the library | |
9657 | # dependencies. | |
9658 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
9659 | ||
9660 | # Archives containing C++ object files must be created using | |
9661 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
9662 | # necessary to make sure instantiated templates are included | |
9663 | # in the archive. | |
9664 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
9665 | ;; | |
9666 | gcx) | |
9667 | # Green Hills C++ Compiler | |
9668 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9669 | ||
9670 | # The C++ compiler must be used to create the archive. | |
9671 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
9672 | ;; | |
9673 | *) | |
9674 | # GNU C++ compiler with Solaris linker | |
9675 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
9676 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
9677 | if $CC --version | egrep -v '^2\.7' > /dev/null; then | |
9678 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
9679 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9680 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
9681 | ||
9682 | # Commands to make compiler produce verbose output that lists | |
9683 | # what "hidden" libraries, object files and flags are used when | |
9684 | # linking a shared library. | |
9685 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
9686 | else | |
9687 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
9688 | # platform. | |
9689 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
9690 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9691 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
9692 | ||
9693 | # Commands to make compiler produce verbose output that lists | |
9694 | # what "hidden" libraries, object files and flags are used when | |
9695 | # linking a shared library. | |
9696 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
9697 | fi | |
9698 | ||
9699 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
9700 | fi | |
9701 | ;; | |
9702 | esac | |
9703 | ;; | |
9704 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
9705 | archive_cmds_need_lc_CXX=no | |
9706 | ;; | |
9707 | tandem*) | |
9708 | case $cc_basename in | |
9709 | NCC) | |
9710 | # NonStop-UX NCC 3.20 | |
9711 | # FIXME: insert proper C++ library support | |
9712 | ld_shlibs_CXX=no | |
9713 | ;; | |
9714 | *) | |
9715 | # FIXME: insert proper C++ library support | |
9716 | ld_shlibs_CXX=no | |
9717 | ;; | |
9718 | esac | |
9719 | ;; | |
9720 | vxworks*) | |
9721 | # FIXME: insert proper C++ library support | |
9722 | ld_shlibs_CXX=no | |
9723 | ;; | |
9724 | *) | |
9725 | # FIXME: insert proper C++ library support | |
9726 | ld_shlibs_CXX=no | |
9727 | ;; | |
9728 | esac | |
9729 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
9730 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
9731 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9732 | ||
9733 | # Figure out "hidden" C++ library dependencies from verbose | |
9734 | # compiler output whening linking a shared library. | |
9735 | cat > conftest.$ac_ext <<EOF | |
9736 | class Foo | |
9737 | { | |
9738 | public: | |
9739 | Foo (void) { a = 0; } | |
9740 | private: | |
9741 | int a; | |
9742 | }; | |
9743 | EOF | |
9744 | ||
9745 | ||
9746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9747 | (eval $ac_compile) 2>&5 | |
9748 | ac_status=$? | |
9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9750 | (exit $ac_status); }; then | |
9751 | # Parse the compiler output and extract the necessary | |
9752 | # objects, libraries and library flags. | |
9753 | ||
9754 | # Sentinel used to keep track of whether or not we are before | |
9755 | # the conftest object file. | |
9756 | pre_test_object_deps_done=no | |
9757 | ||
9758 | # The `*' in the case matches for architectures that use `case' in | |
9759 | # $output_verbose_cmd can trigger glob expansion during the loop | |
9760 | # eval without this substitution. | |
9761 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
9762 | ||
9763 | for p in `eval $output_verbose_link_cmd`; do | |
9764 | case $p in | |
9765 | ||
9766 | -L* | -R* | -l*) | |
9767 | # Some compilers place space between "-{L,R}" and the path. | |
9768 | # Remove the space. | |
9769 | if test $p = "-L" \ | |
9770 | || test $p = "-R"; then | |
9771 | prev=$p | |
9772 | continue | |
9773 | else | |
9774 | prev= | |
9775 | fi | |
9776 | ||
9777 | if test "$pre_test_object_deps_done" = no; then | |
9778 | case $p in | |
9779 | -L* | -R*) | |
9780 | # Internal compiler library paths should come after those | |
9781 | # provided the user. The postdeps already come after the | |
9782 | # user supplied libs so there is no need to process them. | |
9783 | if test -z "$compiler_lib_search_path_CXX"; then | |
9784 | compiler_lib_search_path_CXX="${prev}${p}" | |
9785 | else | |
9786 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
9787 | fi | |
9788 | ;; | |
9789 | # The "-l" case would never come before the object being | |
9790 | # linked, so don't bother handling this case. | |
9791 | esac | |
9792 | else | |
9793 | if test -z "$postdeps_CXX"; then | |
9794 | postdeps_CXX="${prev}${p}" | |
9795 | else | |
9796 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
9797 | fi | |
9798 | fi | |
9799 | ;; | |
9800 | ||
9801 | *.$objext|*.$libext) | |
9802 | # This assumes that the test object file only shows up | |
9803 | # once in the compiler output. | |
9804 | if test "$p" = "conftest.$objext"; then | |
9805 | pre_test_object_deps_done=yes | |
9806 | continue | |
9807 | fi | |
9808 | ||
9809 | if test "$pre_test_object_deps_done" = no; then | |
9810 | if test -z "$predep_objects_CXX"; then | |
9811 | predep_objects_CXX="$p" | |
9812 | else | |
9813 | predep_objects_CXX="$predep_objects_CXX $p" | |
9814 | fi | |
9815 | else | |
9816 | if test -z "$postdep_objects_CXX"; then | |
9817 | postdep_objects_CXX="$p" | |
9818 | else | |
9819 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
9820 | fi | |
9821 | fi | |
9822 | ;; | |
9823 | ||
9824 | *) ;; # Ignore the rest. | |
9825 | ||
9826 | esac | |
9827 | done | |
9828 | ||
9829 | # Clean up. | |
9830 | rm -f a.out | |
9831 | else | |
9832 | echo "libtool.m4: error: problem compiling C++ test program" | |
9833 | fi | |
9834 | ||
9835 | $rm -f confest.$objext | |
9836 | ||
9837 | case " $postdeps_CXX " in | |
9838 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
9839 | *) archive_cmds_need_lc_CXX=yes ;; | |
9840 | esac | |
9841 | ||
9842 | GCC_CXX="$GXX" | |
9843 | LD_CXX="$LD" | |
9844 | ||
9845 | lt_prog_compiler_wl_CXX= | |
9846 | lt_prog_compiler_pic_CXX= | |
9847 | lt_prog_compiler_static_CXX= | |
9848 | ||
9849 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
9850 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
9851 | ||
9852 | # C++ specific cases for pic, static, wl, etc. | |
9853 | if test "$GXX" = yes; then | |
9854 | lt_prog_compiler_wl_CXX='-Wl,' | |
9855 | lt_prog_compiler_static_CXX='-static' | |
9856 | ||
9857 | case $host_os in | |
9858 | aix*) | |
9859 | # All AIX code is PIC. | |
9860 | if test "$host_cpu" = ia64; then | |
9861 | # AIX 5 now supports IA64 processor | |
9862 | lt_prog_compiler_static_CXX='-Bstatic' | |
9863 | fi | |
9864 | ;; | |
9865 | amigaos*) | |
9866 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9867 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9868 | # like `-m68040'. | |
9869 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
9870 | ;; | |
9871 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9872 | # PIC is the default for these OSes. | |
9873 | ;; | |
9874 | cygwin* | mingw* | os2*) | |
9875 | # This hack is so that the source file can tell whether it is being | |
9876 | # built for inclusion in a dll (and should export symbols for example). | |
9877 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
9878 | ;; | |
9879 | darwin* | rhapsody*) | |
9880 | # PIC is the default on this platform | |
9881 | # Common symbols not allowed in MH_DYLIB files | |
9882 | lt_prog_compiler_pic_CXX='-fno-common' | |
9883 | ;; | |
9884 | *djgpp*) | |
9885 | # DJGPP does not support shared libraries at all | |
9886 | lt_prog_compiler_pic_CXX= | |
9887 | ;; | |
9888 | sysv4*MP*) | |
9889 | if test -d /usr/nec; then | |
9890 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
9891 | fi | |
9892 | ;; | |
9893 | hpux*) | |
9894 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
9895 | if test "$host_cpu" != ia64; then | |
9896 | lt_prog_compiler_pic_CXX='-fPIC' | |
9897 | fi | |
9898 | ;; | |
9899 | *) | |
9900 | lt_prog_compiler_pic_CXX='-fPIC' | |
9901 | ;; | |
9902 | esac | |
9903 | else | |
9904 | case $host_os in | |
9905 | aix4* | aix5*) | |
9906 | # All AIX code is PIC. | |
9907 | if test "$host_cpu" = ia64; then | |
9908 | # AIX 5 now supports IA64 processor | |
9909 | lt_prog_compiler_static_CXX='-Bstatic' | |
9910 | else | |
9911 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
9912 | fi | |
9913 | ;; | |
9914 | chorus*) | |
9915 | case $cc_basename in | |
9916 | cxch68) | |
9917 | # Green Hills C++ Compiler | |
9918 | # _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" | |
9919 | ;; | |
9920 | esac | |
9921 | ;; | |
9922 | dgux*) | |
9923 | case $cc_basename in | |
9924 | ec++) | |
9925 | lt_prog_compiler_pic_CXX='-KPIC' | |
9926 | ;; | |
9927 | ghcx) | |
9928 | # Green Hills C++ Compiler | |
9929 | lt_prog_compiler_pic_CXX='-pic' | |
9930 | ;; | |
9931 | *) | |
9932 | ;; | |
9933 | esac | |
9934 | ;; | |
9935 | freebsd*) | |
9936 | # FreeBSD uses GNU C++ | |
9937 | ;; | |
9938 | hpux9* | hpux10* | hpux11*) | |
9939 | case $cc_basename in | |
9940 | CC) | |
9941 | lt_prog_compiler_wl_CXX='-Wl,' | |
9942 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
9943 | if test "$host_cpu" != ia64; then | |
9944 | lt_prog_compiler_pic_CXX='+Z' | |
9945 | fi | |
9946 | ;; | |
9947 | aCC) | |
9948 | lt_prog_compiler_wl_CXX='-Wl,' | |
9949 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
9950 | if test "$host_cpu" != ia64; then | |
9951 | lt_prog_compiler_pic_CXX='+Z' | |
9952 | fi | |
9953 | ;; | |
9954 | *) | |
9955 | ;; | |
9956 | esac | |
9957 | ;; | |
9958 | irix5* | irix6* | nonstopux*) | |
9959 | case $cc_basename in | |
9960 | CC) | |
9961 | lt_prog_compiler_wl_CXX='-Wl,' | |
9962 | lt_prog_compiler_static_CXX='-non_shared' | |
9963 | # CC pic flag -KPIC is the default. | |
9964 | ;; | |
9965 | *) | |
9966 | ;; | |
9967 | esac | |
9968 | ;; | |
9969 | linux*) | |
9970 | case $cc_basename in | |
9971 | KCC) | |
9972 | # KAI C++ Compiler | |
9973 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
9974 | lt_prog_compiler_pic_CXX='-fPIC' | |
9975 | ;; | |
9976 | cxx) | |
9977 | # Compaq C++ | |
9978 | # Make sure the PIC flag is empty. It appears that all Alpha | |
9979 | # Linux and Compaq Tru64 Unix objects are PIC. | |
9980 | lt_prog_compiler_pic_CXX= | |
9981 | lt_prog_compiler_static_CXX='-non_shared' | |
9982 | ;; | |
9983 | *) | |
9984 | ;; | |
9985 | esac | |
9986 | ;; | |
9987 | lynxos*) | |
9988 | ;; | |
9989 | m88k*) | |
9990 | ;; | |
9991 | mvs*) | |
9992 | case $cc_basename in | |
9993 | cxx) | |
9994 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
9995 | ;; | |
9996 | *) | |
9997 | ;; | |
9998 | esac | |
9999 | ;; | |
10000 | netbsd*) | |
10001 | ;; | |
10002 | osf3* | osf4* | osf5*) | |
10003 | case $cc_basename in | |
10004 | KCC) | |
10005 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
10006 | ;; | |
10007 | RCC) | |
10008 | # Rational C++ 2.4.1 | |
10009 | lt_prog_compiler_pic_CXX='-pic' | |
10010 | ;; | |
10011 | cxx) | |
10012 | # Digital/Compaq C++ | |
10013 | lt_prog_compiler_wl_CXX='-Wl,' | |
10014 | # Make sure the PIC flag is empty. It appears that all Alpha | |
10015 | # Linux and Compaq Tru64 Unix objects are PIC. | |
10016 | lt_prog_compiler_pic_CXX= | |
10017 | lt_prog_compiler_static_CXX='-non_shared' | |
10018 | ;; | |
10019 | *) | |
10020 | ;; | |
10021 | esac | |
10022 | ;; | |
10023 | psos*) | |
10024 | ;; | |
10025 | sco*) | |
10026 | case $cc_basename in | |
10027 | CC) | |
10028 | lt_prog_compiler_pic_CXX='-fPIC' | |
10029 | ;; | |
10030 | *) | |
10031 | ;; | |
10032 | esac | |
10033 | ;; | |
10034 | solaris*) | |
10035 | case $cc_basename in | |
10036 | CC) | |
10037 | # Sun C++ 4.2, 5.x and Centerline C++ | |
10038 | lt_prog_compiler_pic_CXX='-KPIC' | |
10039 | lt_prog_compiler_static_CXX='-Bstatic' | |
10040 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
10041 | ;; | |
10042 | gcx) | |
10043 | # Green Hills C++ Compiler | |
10044 | lt_prog_compiler_pic_CXX='-PIC' | |
10045 | ;; | |
10046 | *) | |
10047 | ;; | |
10048 | esac | |
10049 | ;; | |
10050 | sunos4*) | |
10051 | case $cc_basename in | |
10052 | CC) | |
10053 | # Sun C++ 4.x | |
10054 | lt_prog_compiler_pic_CXX='-pic' | |
10055 | lt_prog_compiler_static_CXX='-Bstatic' | |
10056 | ;; | |
10057 | lcc) | |
10058 | # Lucid | |
10059 | lt_prog_compiler_pic_CXX='-pic' | |
10060 | ;; | |
10061 | *) | |
10062 | ;; | |
10063 | esac | |
10064 | ;; | |
10065 | tandem*) | |
10066 | case $cc_basename in | |
10067 | NCC) | |
10068 | # NonStop-UX NCC 3.20 | |
10069 | lt_prog_compiler_pic_CXX='-KPIC' | |
10070 | ;; | |
10071 | *) | |
10072 | ;; | |
10073 | esac | |
10074 | ;; | |
10075 | unixware*) | |
10076 | ;; | |
10077 | vxworks*) | |
10078 | ;; | |
10079 | *) | |
10080 | lt_prog_compiler_can_build_shared_CXX=no | |
10081 | ;; | |
10082 | esac | |
10083 | fi | |
10084 | ||
10085 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
10086 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
10087 | ||
10088 | # | |
10089 | # Check to make sure the PIC flag actually works. | |
10090 | # | |
10091 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
10092 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
10093 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
10094 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
10095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10096 | else | |
10097 | lt_prog_compiler_pic_works_CXX=no | |
10098 | ac_outfile=conftest.$ac_objext | |
10099 | save_CFLAGS="$CFLAGS" | |
10100 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC" | |
10101 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10102 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
10103 | # The compiler can only warn and ignore the option if not recognized | |
10104 | # So say no if there are warnings | |
10105 | if test -s conftest.err; then | |
10106 | # Append any errors to the config.log. | |
10107 | cat conftest.err 1>&5 | |
10108 | else | |
10109 | lt_prog_compiler_pic_works_CXX=yes | |
10110 | fi | |
10111 | fi | |
10112 | $rm conftest* | |
10113 | CFLAGS="$save_CFLAGS" | |
10114 | ||
10115 | fi | |
10116 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
10117 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
10118 | ||
10119 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
10120 | case $lt_prog_compiler_pic_CXX in | |
10121 | "" | " "*) ;; | |
10122 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
10123 | esac | |
10124 | else | |
10125 | lt_prog_compiler_pic_CXX= | |
10126 | lt_prog_compiler_can_build_shared_CXX=no | |
10127 | fi | |
10128 | ||
10129 | fi | |
10130 | case "$host_os" in | |
10131 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10132 | *djgpp*) | |
10133 | lt_prog_compiler_pic_CXX= | |
10134 | ;; | |
10135 | *) | |
10136 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
10137 | ;; | |
10138 | esac | |
10139 | ||
10140 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10141 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
10142 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
10143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10144 | else | |
10145 | lt_cv_prog_compiler_c_o_CXX=no | |
10146 | $rm -r conftest 2>/dev/null | |
10147 | mkdir conftest | |
10148 | cd conftest | |
10149 | mkdir out | |
10150 | save_CXXFLAGS="$CXXFLAGS" | |
10151 | CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext" | |
10152 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10153 | ||
10154 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
10155 | # that will create temporary files in the current directory regardless of | |
10156 | # the output directory. Thus, making CWD read-only will cause this test | |
10157 | # to fail, enabling locking or at least warning the user not to do parallel | |
10158 | # builds. | |
10159 | chmod -w . | |
10160 | ||
10161 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
10162 | then | |
10163 | # The compiler can only warn and ignore the option if not recognized | |
10164 | # So say no if there are warnings | |
10165 | if test -s out/conftest.err; then | |
10166 | # Append any errors to the config.log. | |
10167 | cat out/conftest.err 1>&5 | |
10168 | else | |
10169 | lt_cv_prog_compiler_c_o_CXX=yes | |
10170 | fi | |
10171 | fi | |
10172 | CXXFLAGS="$save_CXXFLAGS" | |
10173 | chmod u+w . | |
10174 | $rm conftest* out/* | |
10175 | rmdir out | |
10176 | cd .. | |
10177 | rmdir conftest | |
10178 | $rm conftest* | |
10179 | ||
10180 | fi | |
10181 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
10182 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
10183 | ||
10184 | ||
10185 | hard_links="nottested" | |
10186 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
10187 | # do not overwrite the value of need_locks provided by the user | |
10188 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
10189 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
10190 | hard_links=yes | |
10191 | $rm conftest* | |
10192 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10193 | touch conftest.a | |
10194 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10195 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10196 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
10197 | echo "${ECHO_T}$hard_links" >&6 | |
10198 | if test "$hard_links" = no; then | |
10199 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10200 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10201 | need_locks=warn | |
10202 | fi | |
10203 | else | |
10204 | need_locks=no | |
10205 | fi | |
10206 | ||
10207 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10208 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
10209 | ||
10210 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10211 | case $host_os in | |
10212 | aix4* | aix5*) | |
10213 | # If we're using GNU nm, then we don't want the "-C" option. | |
10214 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10215 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
10216 | 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' | |
10217 | else | |
10218 | 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' | |
10219 | fi | |
10220 | ;; | |
10221 | cygwin* | mingw* | pw32*) | |
10222 | export_symbols_cmds_CXX="$ltdll_cmds" | |
10223 | ;; | |
10224 | *) | |
10225 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10226 | ;; | |
10227 | esac | |
10228 | ||
10229 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
10230 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
10231 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
10232 | ||
10233 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10234 | if test "$GCC" = yes; then | |
10235 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10236 | fi | |
10237 | ||
10238 | # | |
10239 | # Do we need to explicitly link libc? | |
10240 | # | |
10241 | archive_cmds_need_lc_CXX=yes | |
10242 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10243 | case $archive_cmds_CXX in | |
10244 | *'~'*) | |
10245 | # FIXME: we may have to deal with multi-command sequences. | |
10246 | ;; | |
10247 | '$CC '*) | |
10248 | # Test whether the compiler implicitly links with -lc since on some | |
10249 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10250 | # to ld, don't add -lc before -lgcc. | |
10251 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
10252 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
10253 | $rm conftest* | |
10254 | echo 'static int dummy;' > conftest.$ac_ext | |
10255 | ||
10256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10257 | (eval $ac_compile) 2>&5 | |
10258 | ac_status=$? | |
10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10260 | (exit $ac_status); } 2>conftest.err; then | |
10261 | soname=conftest | |
10262 | lib=conftest | |
10263 | libobjs=conftest.$ac_objext | |
10264 | deplibs= | |
10265 | wl=$lt_prog_compiler_wl_CXX | |
10266 | compiler_flags=-v | |
10267 | linker_flags=-v | |
10268 | verstring= | |
10269 | output_objdir=. | |
10270 | libname=conftest | |
10271 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
10272 | allow_undefined_flag_CXX= | |
10273 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
10274 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10275 | ac_status=$? | |
10276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10277 | (exit $ac_status); } | |
10278 | then | |
10279 | archive_cmds_need_lc_CXX=no | |
10280 | else | |
10281 | archive_cmds_need_lc_CXX=yes | |
10282 | fi | |
10283 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
10284 | else | |
10285 | cat conftest.err 1>&5 | |
10286 | fi | |
10287 | $rm conftest* | |
10288 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
10289 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
10290 | ;; | |
10291 | esac | |
10292 | fi | |
10293 | ||
10294 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10295 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
10296 | hardcode_action_CXX= | |
10297 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
10298 | test -n "$runpath_var CXX"; then | |
10299 | ||
10300 | # We can hardcode non-existant directories. | |
10301 | if test "$hardcode_direct_CXX" != no && | |
10302 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10303 | # have to relink, otherwise we might link with an installed library | |
10304 | # when we should be linking with a yet-to-be-installed one | |
10305 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
10306 | test "$hardcode_minus_L_CXX" != no; then | |
10307 | # Linking always hardcodes the temporary library directory. | |
10308 | hardcode_action_CXX=relink | |
10309 | else | |
10310 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10311 | hardcode_action_CXX=immediate | |
10312 | fi | |
10313 | else | |
10314 | # We cannot hardcode anything, or else we can only hardcode existing | |
10315 | # directories. | |
10316 | hardcode_action_CXX=unsupported | |
10317 | fi | |
10318 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
10319 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
10320 | ||
10321 | if test "$hardcode_action_CXX" = relink; then | |
10322 | # Fast installation is not supported | |
10323 | enable_fast_install=no | |
10324 | elif test "$shlibpath_overrides_runpath" = yes || | |
10325 | test "$enable_shared" = no; then | |
10326 | # Fast installation is not necessary | |
10327 | enable_fast_install=needless | |
10328 | fi | |
10329 | ||
10330 | striplib= | |
10331 | old_striplib= | |
10332 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10333 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10334 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
10335 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10336 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10337 | echo "$as_me:$LINENO: result: yes" >&5 | |
10338 | echo "${ECHO_T}yes" >&6 | |
10339 | else | |
10340 | echo "$as_me:$LINENO: result: no" >&5 | |
10341 | echo "${ECHO_T}no" >&6 | |
10342 | fi | |
10343 | ||
10344 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
10345 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
10346 | library_names_spec= | |
10347 | libname_spec='lib$name' | |
10348 | soname_spec= | |
10349 | postinstall_cmds= | |
10350 | postuninstall_cmds= | |
10351 | finish_cmds= | |
10352 | finish_eval= | |
10353 | shlibpath_var= | |
10354 | shlibpath_overrides_runpath=unknown | |
10355 | version_type=none | |
10356 | dynamic_linker="$host_os ld.so" | |
10357 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10358 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10359 | need_lib_prefix=unknown | |
10360 | hardcode_into_libs=no | |
10361 | ||
10362 | # when you set need_version to no, make sure it does not cause -set_version | |
10363 | # flags to be left without arguments | |
10364 | need_version=unknown | |
10365 | ||
10366 | case $host_os in | |
10367 | aix3*) | |
10368 | version_type=linux | |
10369 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
10370 | shlibpath_var=LIBPATH | |
10371 | ||
10372 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10373 | soname_spec='${libname}${release}.so$major' | |
10374 | ;; | |
10375 | ||
10376 | aix4* | aix5*) | |
10377 | version_type=linux | |
10378 | if test "$host_cpu" = ia64; then | |
10379 | # AIX 5 supports IA64 | |
10380 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
10381 | shlibpath_var=LD_LIBRARY_PATH | |
10382 | else | |
10383 | # With GCC up to 2.95.x, collect2 would create an import file | |
10384 | # for dependence libraries. The import file would start with | |
10385 | # the line `#! .'. This would cause the generated library to | |
10386 | # depend on `.', always an invalid library. This was fixed in | |
10387 | # development snapshots of GCC prior to 3.0. | |
10388 | case $host_os in | |
10389 | aix4 | aix4.[01] | aix4.[01].*) | |
10390 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10391 | echo ' yes ' | |
10392 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
10393 | : | |
10394 | else | |
10395 | can_build_shared=no | |
10396 | fi | |
10397 | ;; | |
10398 | esac | |
10399 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10400 | # soname into executable. Probably we can add versioning support to | |
10401 | # collect2, so additional links can be useful in future. | |
10402 | if test "$aix_use_runtimelinking" = yes; then | |
10403 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10404 | # instead of lib<name>.a to let people know that these are not | |
10405 | # typical AIX shared libraries. | |
10406 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10407 | else | |
10408 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10409 | # and later when we are not doing run time linking. | |
10410 | library_names_spec='${libname}${release}.a $libname.a' | |
10411 | soname_spec='${libname}${release}.so$major' | |
10412 | fi | |
10413 | shlibpath_var=LIBPATH | |
10414 | fi | |
10415 | ;; | |
10416 | ||
10417 | amigaos*) | |
10418 | library_names_spec='$libname.ixlibrary $libname.a' | |
10419 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10420 | 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' | |
10421 | ;; | |
10422 | ||
10423 | beos*) | |
10424 | library_names_spec='${libname}.so' | |
10425 | dynamic_linker="$host_os ld.so" | |
10426 | shlibpath_var=LIBRARY_PATH | |
10427 | ;; | |
10428 | ||
10429 | bsdi4*) | |
10430 | version_type=linux | |
10431 | need_version=no | |
10432 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10433 | soname_spec='${libname}${release}.so$major' | |
10434 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10435 | shlibpath_var=LD_LIBRARY_PATH | |
10436 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10437 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10438 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10439 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10440 | # libtool to hard-code these into programs | |
10441 | ;; | |
10442 | ||
10443 | cygwin* | mingw* | pw32*) | |
10444 | version_type=windows | |
10445 | need_version=no | |
10446 | need_lib_prefix=no | |
10447 | case $GCC,$host_os in | |
10448 | yes,cygwin*) | |
10449 | library_names_spec='$libname.dll.a' | |
10450 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
10451 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
10452 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
10453 | dldir=$destdir/`dirname \$dlpath`~ | |
10454 | test -d \$dldir || mkdir -p \$dldir~ | |
10455 | $install_prog .libs/$dlname \$dldir/$dlname' | |
10456 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10457 | dlpath=$dir/\$dldll~ | |
10458 | $rm \$dlpath' | |
10459 | ;; | |
10460 | yes,mingw*) | |
10461 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
10462 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
10463 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
10464 | # It is most probably a Windows format PATH printed by | |
10465 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10466 | # path with ; separators, and with drive letters. We can handle the | |
10467 | # drive letters (cygwin fileutils understands them), so leave them, | |
10468 | # especially as we might pass files found there to a mingw objdump, | |
10469 | # which wouldn't understand a cygwinified path. Ahh. | |
10470 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
10471 | else | |
10472 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
10473 | fi | |
10474 | ;; | |
10475 | yes,pw32*) | |
10476 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
10477 | ;; | |
10478 | *) | |
10479 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
10480 | ;; | |
10481 | esac | |
10482 | dynamic_linker='Win32 ld.exe' | |
10483 | # FIXME: first we should search . and the directory the executable is in | |
10484 | shlibpath_var=PATH | |
10485 | ;; | |
10486 | ||
10487 | darwin* | rhapsody*) | |
10488 | dynamic_linker="$host_os dyld" | |
10489 | version_type=darwin | |
10490 | need_lib_prefix=no | |
10491 | need_version=no | |
10492 | # FIXME: Relying on posixy $() will cause problems for | |
10493 | # cross-compilation, but unfortunately the echo tests do not | |
10494 | # yet detect zsh echo's removal of \ escapes. | |
10495 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
10496 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
10497 | shlibpath_overrides_runpath=yes | |
10498 | shlibpath_var=DYLD_LIBRARY_PATH | |
10499 | ;; | |
10500 | ||
10501 | dgux*) | |
10502 | version_type=linux | |
10503 | need_lib_prefix=no | |
10504 | need_version=no | |
10505 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10506 | soname_spec='${libname}${release}.so$major' | |
10507 | shlibpath_var=LD_LIBRARY_PATH | |
10508 | ;; | |
10509 | ||
10510 | freebsd1*) | |
10511 | dynamic_linker=no | |
10512 | ;; | |
10513 | ||
10514 | freebsd*) | |
10515 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
10516 | version_type=freebsd-$objformat | |
10517 | case $version_type in | |
10518 | freebsd-elf*) | |
10519 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
10520 | need_version=no | |
10521 | need_lib_prefix=no | |
10522 | ;; | |
10523 | freebsd-*) | |
10524 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
10525 | need_version=yes | |
10526 | ;; | |
10527 | esac | |
10528 | shlibpath_var=LD_LIBRARY_PATH | |
10529 | case $host_os in | |
10530 | freebsd2*) | |
10531 | shlibpath_overrides_runpath=yes | |
10532 | ;; | |
10533 | freebsd3.01* | freebsdelf3.01*) | |
10534 | shlibpath_overrides_runpath=yes | |
10535 | hardcode_into_libs=yes | |
10536 | ;; | |
10537 | *) # from 3.2 on | |
10538 | shlibpath_overrides_runpath=no | |
10539 | hardcode_into_libs=yes | |
10540 | ;; | |
10541 | esac | |
10542 | ;; | |
10543 | ||
10544 | gnu*) | |
10545 | version_type=linux | |
10546 | need_lib_prefix=no | |
10547 | need_version=no | |
10548 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
10549 | soname_spec='${libname}${release}.so$major' | |
10550 | shlibpath_var=LD_LIBRARY_PATH | |
10551 | hardcode_into_libs=yes | |
10552 | ;; | |
10553 | ||
10554 | hpux9* | hpux10* | hpux11*) | |
10555 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10556 | # link against other versions. | |
10557 | version_type=sunos | |
10558 | need_lib_prefix=no | |
10559 | need_version=no | |
10560 | if test "$host_cpu" = ia64; then | |
10561 | hardcode_into_libs=yes | |
10562 | dynamic_linker="$host_os dld.so" | |
10563 | shlibpath_var=LD_LIBRARY_PATH | |
10564 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10565 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10566 | soname_spec='${libname}${release}.so$major' | |
10567 | if test "X$HPUX_IA64_MODE" = X32; then | |
10568 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10569 | else | |
10570 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10571 | fi | |
10572 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10573 | else | |
10574 | dynamic_linker="$host_os dld.sl" | |
10575 | shlibpath_var=SHLIB_PATH | |
10576 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10577 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
10578 | soname_spec='${libname}${release}.sl$major' | |
10579 | fi | |
10580 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10581 | postinstall_cmds='chmod 555 $lib' | |
10582 | ;; | |
10583 | ||
10584 | irix5* | irix6* | nonstopux*) | |
10585 | case $host_os in | |
10586 | nonstopux*) version_type=nonstopux ;; | |
10587 | *) version_type=irix ;; | |
10588 | esac | |
10589 | need_lib_prefix=no | |
10590 | need_version=no | |
10591 | soname_spec='${libname}${release}.so$major' | |
10592 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
10593 | case $host_os in | |
10594 | irix5* | nonstopux*) | |
10595 | libsuff= shlibsuff= | |
10596 | ;; | |
10597 | *) | |
10598 | case $LD in # libtool.m4 will add one of these switches to LD | |
10599 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
10600 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10601 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10602 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10603 | esac | |
10604 | ;; | |
10605 | esac | |
10606 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10607 | shlibpath_overrides_runpath=no | |
10608 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10609 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10610 | ;; | |
10611 | ||
10612 | # No shared lib support for Linux oldld, aout, or coff. | |
10613 | linux*oldld* | linux*aout* | linux*coff*) | |
10614 | dynamic_linker=no | |
10615 | ;; | |
10616 | ||
10617 | # This must be Linux ELF. | |
10618 | linux*) | |
10619 | version_type=linux | |
10620 | need_lib_prefix=no | |
10621 | need_version=no | |
10622 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10623 | soname_spec='${libname}${release}.so$major' | |
10624 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10625 | libsuff= | |
10626 | if test "x$LINUX_64_MODE" = x64; then | |
10627 | # Some platforms are per default 64-bit, so there's no /lib64 | |
10628 | if test -d /lib64; then | |
10629 | libsuff=64 | |
10630 | fi | |
10631 | fi | |
10632 | shlibpath_var=LD_LIBRARY_PATH | |
10633 | shlibpath_overrides_runpath=no | |
10634 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
10635 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
10636 | # This implies no fast_install, which is unacceptable. | |
10637 | # Some rework will be needed to allow for fast_install | |
10638 | # before this can be enabled. | |
10639 | hardcode_into_libs=yes | |
10640 | ||
10641 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10642 | # powerpc, because MkLinux only supported shared libraries with the | |
10643 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10644 | # most powerpc-linux boxes support dynamic linking these days and | |
10645 | # people can always --disable-shared, the test was removed, and we | |
10646 | # assume the GNU/Linux dynamic linker is in use. | |
10647 | dynamic_linker='GNU/Linux ld.so' | |
10648 | ;; | |
10649 | ||
10650 | netbsd*) | |
10651 | version_type=sunos | |
10652 | need_lib_prefix=no | |
10653 | need_version=no | |
10654 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10655 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
10656 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10657 | dynamic_linker='NetBSD (a.out) ld.so' | |
10658 | else | |
10659 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
10660 | soname_spec='${libname}${release}.so$major' | |
10661 | dynamic_linker='NetBSD ld.elf_so' | |
10662 | fi | |
10663 | shlibpath_var=LD_LIBRARY_PATH | |
10664 | shlibpath_overrides_runpath=yes | |
10665 | hardcode_into_libs=yes | |
10666 | ;; | |
10667 | ||
10668 | newsos6) | |
10669 | version_type=linux | |
10670 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10671 | shlibpath_var=LD_LIBRARY_PATH | |
10672 | shlibpath_overrides_runpath=yes | |
10673 | ;; | |
10674 | ||
10675 | nto-qnx) | |
10676 | version_type=linux | |
10677 | need_lib_prefix=no | |
10678 | need_version=no | |
10679 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10680 | soname_spec='${libname}${release}.so$major' | |
10681 | shlibpath_var=LD_LIBRARY_PATH | |
10682 | shlibpath_overrides_runpath=yes | |
10683 | ;; | |
10684 | ||
10685 | openbsd*) | |
10686 | version_type=sunos | |
10687 | need_lib_prefix=no | |
10688 | need_version=no | |
10689 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
10690 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10691 | shlibpath_var=LD_LIBRARY_PATH | |
10692 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10693 | case $host_os in | |
10694 | openbsd2.[89] | openbsd2.[89].*) | |
10695 | shlibpath_overrides_runpath=no | |
10696 | ;; | |
10697 | *) | |
10698 | shlibpath_overrides_runpath=yes | |
10699 | ;; | |
10700 | esac | |
10701 | else | |
10702 | shlibpath_overrides_runpath=yes | |
10703 | fi | |
10704 | ;; | |
10705 | ||
10706 | os2*) | |
10707 | libname_spec='$name' | |
10708 | need_lib_prefix=no | |
10709 | library_names_spec='$libname.dll $libname.a' | |
10710 | dynamic_linker='OS/2 ld.exe' | |
10711 | shlibpath_var=LIBPATH | |
10712 | ;; | |
10713 | ||
10714 | osf3* | osf4* | osf5*) | |
10715 | version_type=osf | |
10716 | need_lib_prefix=no | |
10717 | need_version=no | |
10718 | soname_spec='${libname}${release}.so' | |
10719 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
10720 | shlibpath_var=LD_LIBRARY_PATH | |
10721 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10722 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10723 | ;; | |
10724 | ||
10725 | sco3.2v5*) | |
10726 | version_type=osf | |
10727 | soname_spec='${libname}${release}.so$major' | |
10728 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10729 | shlibpath_var=LD_LIBRARY_PATH | |
10730 | ;; | |
10731 | ||
10732 | solaris*) | |
10733 | version_type=linux | |
10734 | need_lib_prefix=no | |
10735 | need_version=no | |
10736 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10737 | soname_spec='${libname}${release}.so$major' | |
10738 | shlibpath_var=LD_LIBRARY_PATH | |
10739 | shlibpath_overrides_runpath=yes | |
10740 | hardcode_into_libs=yes | |
10741 | # ldd complains unless libraries are executable | |
10742 | postinstall_cmds='chmod +x $lib' | |
10743 | ;; | |
10744 | ||
10745 | sunos4*) | |
10746 | version_type=sunos | |
10747 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
10748 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10749 | shlibpath_var=LD_LIBRARY_PATH | |
10750 | shlibpath_overrides_runpath=yes | |
10751 | if test "$with_gnu_ld" = yes; then | |
10752 | need_lib_prefix=no | |
10753 | fi | |
10754 | need_version=yes | |
10755 | ;; | |
10756 | ||
10757 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10758 | version_type=linux | |
10759 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10760 | soname_spec='${libname}${release}.so$major' | |
10761 | shlibpath_var=LD_LIBRARY_PATH | |
10762 | case $host_vendor in | |
10763 | sni) | |
10764 | shlibpath_overrides_runpath=no | |
10765 | ;; | |
10766 | motorola) | |
10767 | need_lib_prefix=no | |
10768 | need_version=no | |
10769 | shlibpath_overrides_runpath=no | |
10770 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10771 | ;; | |
10772 | esac | |
10773 | ;; | |
10774 | ||
10775 | sysv4*MP*) | |
10776 | if test -d /usr/nec ;then | |
10777 | version_type=linux | |
10778 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
10779 | soname_spec='$libname.so.$major' | |
10780 | shlibpath_var=LD_LIBRARY_PATH | |
10781 | fi | |
10782 | ;; | |
10783 | ||
10784 | uts4*) | |
10785 | version_type=linux | |
10786 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10787 | soname_spec='${libname}${release}.so$major' | |
10788 | shlibpath_var=LD_LIBRARY_PATH | |
10789 | ;; | |
10790 | ||
10791 | *) | |
10792 | dynamic_linker=no | |
10793 | ;; | |
10794 | esac | |
10795 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10796 | echo "${ECHO_T}$dynamic_linker" >&6 | |
10797 | test "$dynamic_linker" = no && can_build_shared=no | |
10798 | ||
10799 | if test "x$enable_dlopen" != xyes; then | |
10800 | enable_dlopen=unknown | |
10801 | enable_dlopen_self=unknown | |
10802 | enable_dlopen_self_static=unknown | |
10803 | else | |
10804 | lt_cv_dlopen=no | |
10805 | lt_cv_dlopen_libs= | |
10806 | ||
10807 | case $host_os in | |
10808 | beos*) | |
10809 | lt_cv_dlopen="load_add_on" | |
10810 | lt_cv_dlopen_libs= | |
10811 | lt_cv_dlopen_self=yes | |
10812 | ;; | |
10813 | ||
10814 | cygwin* | mingw* | pw32*) | |
10815 | lt_cv_dlopen="LoadLibrary" | |
10816 | lt_cv_dlopen_libs= | |
10817 | ;; | |
10818 | ||
10819 | *) | |
10820 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10821 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
10822 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10824 | else | |
10825 | cat >conftest.$ac_ext <<_ACEOF | |
10826 | #line $LINENO "configure" | |
10827 | #include "confdefs.h" | |
10828 | /* System header to define __stub macros and hopefully few prototypes, | |
10829 | which can conflict with char shl_load (); below. */ | |
10830 | #include <assert.h> | |
10831 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10832 | #ifdef __cplusplus | |
10833 | extern "C" | |
10834 | #endif | |
10835 | /* We use char because int might match the return type of a gcc2 | |
10836 | builtin and then its argument prototype would still apply. */ | |
10837 | char shl_load (); | |
10838 | char (*f) (); | |
10839 | ||
10840 | #ifdef F77_DUMMY_MAIN | |
10841 | # ifdef __cplusplus | |
10842 | extern "C" | |
10843 | # endif | |
10844 | int F77_DUMMY_MAIN() { return 1; } | |
10845 | #endif | |
10846 | int | |
10847 | main () | |
10848 | { | |
10849 | /* The GNU C library defines this for functions which it implements | |
10850 | to always fail with ENOSYS. Some functions are actually named | |
10851 | something starting with __ and the normal name is an alias. */ | |
10852 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
10853 | choke me | |
10854 | #else | |
10855 | f = shl_load; | |
10856 | #endif | |
10857 | ||
10858 | ; | |
10859 | return 0; | |
10860 | } | |
10861 | _ACEOF | |
10862 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10864 | (eval $ac_link) 2>&5 | |
10865 | ac_status=$? | |
10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10867 | (exit $ac_status); } && | |
10868 | { ac_try='test -s conftest$ac_exeext' | |
10869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10870 | (eval $ac_try) 2>&5 | |
10871 | ac_status=$? | |
10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10873 | (exit $ac_status); }; }; then | |
10874 | ac_cv_func_shl_load=yes | |
10875 | else | |
10876 | echo "$as_me: failed program was:" >&5 | |
10877 | cat conftest.$ac_ext >&5 | |
10878 | ac_cv_func_shl_load=no | |
10879 | fi | |
10880 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10881 | fi | |
10882 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10883 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
10884 | if test $ac_cv_func_shl_load = yes; then | |
10885 | lt_cv_dlopen="shl_load" | |
10886 | else | |
10887 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10888 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
10889 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10891 | else | |
10892 | ac_check_lib_save_LIBS=$LIBS | |
10893 | LIBS="-ldld $LIBS" | |
10894 | cat >conftest.$ac_ext <<_ACEOF | |
10895 | #line $LINENO "configure" | |
10896 | #include "confdefs.h" | |
10897 | ||
10898 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10899 | #ifdef __cplusplus | |
10900 | extern "C" | |
10901 | #endif | |
10902 | /* We use char because int might match the return type of a gcc2 | |
10903 | builtin and then its argument prototype would still apply. */ | |
10904 | char shl_load (); | |
10905 | #ifdef F77_DUMMY_MAIN | |
10906 | # ifdef __cplusplus | |
10907 | extern "C" | |
10908 | # endif | |
10909 | int F77_DUMMY_MAIN() { return 1; } | |
10910 | #endif | |
10911 | int | |
10912 | main () | |
10913 | { | |
10914 | shl_load (); | |
10915 | ; | |
10916 | return 0; | |
10917 | } | |
10918 | _ACEOF | |
10919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10921 | (eval $ac_link) 2>&5 | |
10922 | ac_status=$? | |
10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10924 | (exit $ac_status); } && | |
10925 | { ac_try='test -s conftest$ac_exeext' | |
10926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10927 | (eval $ac_try) 2>&5 | |
10928 | ac_status=$? | |
10929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10930 | (exit $ac_status); }; }; then | |
10931 | ac_cv_lib_dld_shl_load=yes | |
10932 | else | |
10933 | echo "$as_me: failed program was:" >&5 | |
10934 | cat conftest.$ac_ext >&5 | |
10935 | ac_cv_lib_dld_shl_load=no | |
10936 | fi | |
10937 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10938 | LIBS=$ac_check_lib_save_LIBS | |
10939 | fi | |
10940 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10941 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
10942 | if test $ac_cv_lib_dld_shl_load = yes; then | |
10943 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
10944 | else | |
10945 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10946 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
10947 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10949 | else | |
10950 | cat >conftest.$ac_ext <<_ACEOF | |
10951 | #line $LINENO "configure" | |
10952 | #include "confdefs.h" | |
10953 | /* System header to define __stub macros and hopefully few prototypes, | |
10954 | which can conflict with char dlopen (); below. */ | |
10955 | #include <assert.h> | |
10956 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10957 | #ifdef __cplusplus | |
10958 | extern "C" | |
10959 | #endif | |
10960 | /* We use char because int might match the return type of a gcc2 | |
10961 | builtin and then its argument prototype would still apply. */ | |
10962 | char dlopen (); | |
10963 | char (*f) (); | |
10964 | ||
10965 | #ifdef F77_DUMMY_MAIN | |
10966 | # ifdef __cplusplus | |
10967 | extern "C" | |
10968 | # endif | |
10969 | int F77_DUMMY_MAIN() { return 1; } | |
10970 | #endif | |
10971 | int | |
10972 | main () | |
10973 | { | |
10974 | /* The GNU C library defines this for functions which it implements | |
10975 | to always fail with ENOSYS. Some functions are actually named | |
10976 | something starting with __ and the normal name is an alias. */ | |
10977 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10978 | choke me | |
10979 | #else | |
10980 | f = dlopen; | |
10981 | #endif | |
10982 | ||
10983 | ; | |
10984 | return 0; | |
10985 | } | |
10986 | _ACEOF | |
10987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10989 | (eval $ac_link) 2>&5 | |
10990 | ac_status=$? | |
10991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10992 | (exit $ac_status); } && | |
10993 | { ac_try='test -s conftest$ac_exeext' | |
10994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10995 | (eval $ac_try) 2>&5 | |
10996 | ac_status=$? | |
10997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10998 | (exit $ac_status); }; }; then | |
10999 | ac_cv_func_dlopen=yes | |
11000 | else | |
11001 | echo "$as_me: failed program was:" >&5 | |
11002 | cat conftest.$ac_ext >&5 | |
11003 | ac_cv_func_dlopen=no | |
11004 | fi | |
11005 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11006 | fi | |
11007 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
11008 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
11009 | if test $ac_cv_func_dlopen = yes; then | |
11010 | lt_cv_dlopen="dlopen" | |
11011 | else | |
11012 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11013 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
11014 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11016 | else | |
11017 | ac_check_lib_save_LIBS=$LIBS | |
11018 | LIBS="-ldl $LIBS" | |
11019 | cat >conftest.$ac_ext <<_ACEOF | |
11020 | #line $LINENO "configure" | |
11021 | #include "confdefs.h" | |
11022 | ||
11023 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11024 | #ifdef __cplusplus | |
11025 | extern "C" | |
11026 | #endif | |
11027 | /* We use char because int might match the return type of a gcc2 | |
11028 | builtin and then its argument prototype would still apply. */ | |
11029 | char dlopen (); | |
11030 | #ifdef F77_DUMMY_MAIN | |
11031 | # ifdef __cplusplus | |
11032 | extern "C" | |
11033 | # endif | |
11034 | int F77_DUMMY_MAIN() { return 1; } | |
11035 | #endif | |
11036 | int | |
11037 | main () | |
11038 | { | |
11039 | dlopen (); | |
11040 | ; | |
11041 | return 0; | |
11042 | } | |
11043 | _ACEOF | |
11044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11046 | (eval $ac_link) 2>&5 | |
11047 | ac_status=$? | |
11048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11049 | (exit $ac_status); } && | |
11050 | { ac_try='test -s conftest$ac_exeext' | |
11051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11052 | (eval $ac_try) 2>&5 | |
11053 | ac_status=$? | |
11054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11055 | (exit $ac_status); }; }; then | |
11056 | ac_cv_lib_dl_dlopen=yes | |
11057 | else | |
11058 | echo "$as_me: failed program was:" >&5 | |
11059 | cat conftest.$ac_ext >&5 | |
11060 | ac_cv_lib_dl_dlopen=no | |
11061 | fi | |
11062 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11063 | LIBS=$ac_check_lib_save_LIBS | |
11064 | fi | |
11065 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11066 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
11067 | if test $ac_cv_lib_dl_dlopen = yes; then | |
11068 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11069 | else | |
11070 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
11071 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
11072 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11074 | else | |
11075 | ac_check_lib_save_LIBS=$LIBS | |
11076 | LIBS="-lsvld $LIBS" | |
11077 | cat >conftest.$ac_ext <<_ACEOF | |
11078 | #line $LINENO "configure" | |
11079 | #include "confdefs.h" | |
11080 | ||
11081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11082 | #ifdef __cplusplus | |
11083 | extern "C" | |
11084 | #endif | |
11085 | /* We use char because int might match the return type of a gcc2 | |
11086 | builtin and then its argument prototype would still apply. */ | |
11087 | char dlopen (); | |
11088 | #ifdef F77_DUMMY_MAIN | |
11089 | # ifdef __cplusplus | |
11090 | extern "C" | |
11091 | # endif | |
11092 | int F77_DUMMY_MAIN() { return 1; } | |
11093 | #endif | |
11094 | int | |
11095 | main () | |
11096 | { | |
11097 | dlopen (); | |
11098 | ; | |
11099 | return 0; | |
11100 | } | |
11101 | _ACEOF | |
11102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11104 | (eval $ac_link) 2>&5 | |
11105 | ac_status=$? | |
11106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11107 | (exit $ac_status); } && | |
11108 | { ac_try='test -s conftest$ac_exeext' | |
11109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11110 | (eval $ac_try) 2>&5 | |
11111 | ac_status=$? | |
11112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11113 | (exit $ac_status); }; }; then | |
11114 | ac_cv_lib_svld_dlopen=yes | |
11115 | else | |
11116 | echo "$as_me: failed program was:" >&5 | |
11117 | cat conftest.$ac_ext >&5 | |
11118 | ac_cv_lib_svld_dlopen=no | |
11119 | fi | |
11120 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11121 | LIBS=$ac_check_lib_save_LIBS | |
11122 | fi | |
11123 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11124 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
11125 | if test $ac_cv_lib_svld_dlopen = yes; then | |
11126 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11127 | else | |
11128 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11129 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
11130 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11132 | else | |
11133 | ac_check_lib_save_LIBS=$LIBS | |
11134 | LIBS="-ldld $LIBS" | |
11135 | cat >conftest.$ac_ext <<_ACEOF | |
11136 | #line $LINENO "configure" | |
11137 | #include "confdefs.h" | |
11138 | ||
11139 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11140 | #ifdef __cplusplus | |
11141 | extern "C" | |
11142 | #endif | |
11143 | /* We use char because int might match the return type of a gcc2 | |
11144 | builtin and then its argument prototype would still apply. */ | |
11145 | char dld_link (); | |
11146 | #ifdef F77_DUMMY_MAIN | |
11147 | # ifdef __cplusplus | |
11148 | extern "C" | |
11149 | # endif | |
11150 | int F77_DUMMY_MAIN() { return 1; } | |
11151 | #endif | |
11152 | int | |
11153 | main () | |
11154 | { | |
11155 | dld_link (); | |
11156 | ; | |
11157 | return 0; | |
11158 | } | |
11159 | _ACEOF | |
11160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11162 | (eval $ac_link) 2>&5 | |
11163 | ac_status=$? | |
11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11165 | (exit $ac_status); } && | |
11166 | { ac_try='test -s conftest$ac_exeext' | |
11167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11168 | (eval $ac_try) 2>&5 | |
11169 | ac_status=$? | |
11170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11171 | (exit $ac_status); }; }; then | |
11172 | ac_cv_lib_dld_dld_link=yes | |
11173 | else | |
11174 | echo "$as_me: failed program was:" >&5 | |
11175 | cat conftest.$ac_ext >&5 | |
11176 | ac_cv_lib_dld_dld_link=no | |
11177 | fi | |
11178 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11179 | LIBS=$ac_check_lib_save_LIBS | |
11180 | fi | |
11181 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11182 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
11183 | if test $ac_cv_lib_dld_dld_link = yes; then | |
11184 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
11185 | fi | |
11186 | ||
11187 | ||
11188 | fi | |
11189 | ||
11190 | ||
11191 | fi | |
11192 | ||
11193 | ||
11194 | fi | |
11195 | ||
11196 | ||
11197 | fi | |
11198 | ||
11199 | ||
11200 | fi | |
11201 | ||
11202 | ;; | |
11203 | esac | |
11204 | ||
11205 | if test "x$lt_cv_dlopen" != xno; then | |
11206 | enable_dlopen=yes | |
11207 | else | |
11208 | enable_dlopen=no | |
11209 | fi | |
11210 | ||
11211 | case $lt_cv_dlopen in | |
11212 | dlopen) | |
11213 | save_CPPFLAGS="$CPPFLAGS" | |
11214 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11215 | ||
11216 | save_LDFLAGS="$LDFLAGS" | |
11217 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11218 | ||
11219 | save_LIBS="$LIBS" | |
11220 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11221 | ||
11222 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11223 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
11224 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11226 | else | |
11227 | if test "$cross_compiling" = yes; then : | |
11228 | lt_cv_dlopen_self=cross | |
11229 | else | |
11230 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11231 | lt_status=$lt_dlunknown | |
11232 | cat > conftest.$ac_ext <<EOF | |
11233 | #line 11233 "configure" | |
11234 | #include "confdefs.h" | |
11235 | ||
11236 | #if HAVE_DLFCN_H | |
11237 | #include <dlfcn.h> | |
11238 | #endif | |
11239 | ||
11240 | #include <stdio.h> | |
11241 | ||
11242 | #ifdef RTLD_GLOBAL | |
11243 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11244 | #else | |
11245 | # ifdef DL_GLOBAL | |
11246 | # define LT_DLGLOBAL DL_GLOBAL | |
11247 | # else | |
11248 | # define LT_DLGLOBAL 0 | |
11249 | # endif | |
11250 | #endif | |
11251 | ||
11252 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11253 | find out it does not work in some platform. */ | |
11254 | #ifndef LT_DLLAZY_OR_NOW | |
11255 | # ifdef RTLD_LAZY | |
11256 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11257 | # else | |
11258 | # ifdef DL_LAZY | |
11259 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11260 | # else | |
11261 | # ifdef RTLD_NOW | |
11262 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11263 | # else | |
11264 | # ifdef DL_NOW | |
11265 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11266 | # else | |
11267 | # define LT_DLLAZY_OR_NOW 0 | |
11268 | # endif | |
11269 | # endif | |
11270 | # endif | |
11271 | # endif | |
11272 | #endif | |
11273 | ||
11274 | #ifdef __cplusplus | |
11275 | extern "C" void exit (int); | |
11276 | #endif | |
11277 | ||
11278 | void fnord() { int i=42;} | |
11279 | int main () | |
11280 | { | |
11281 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11282 | int status = $lt_dlunknown; | |
11283 | ||
11284 | if (self) | |
11285 | { | |
11286 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11287 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11288 | /* dlclose (self); */ | |
11289 | } | |
11290 | ||
11291 | exit (status); | |
11292 | } | |
11293 | EOF | |
11294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11295 | (eval $ac_link) 2>&5 | |
11296 | ac_status=$? | |
11297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11298 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11299 | (./conftest; exit; ) 2>/dev/null | |
11300 | lt_status=$? | |
11301 | case x$lt_status in | |
11302 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11303 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11304 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
11305 | esac | |
11306 | else : | |
11307 | # compilation failed | |
11308 | lt_cv_dlopen_self=no | |
11309 | fi | |
11310 | fi | |
11311 | rm -fr conftest* | |
11312 | ||
11313 | ||
11314 | fi | |
11315 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11316 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
11317 | ||
11318 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11319 | LDFLAGS="$LDFLAGS $link_static_flag" | |
11320 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11321 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
11322 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11324 | else | |
11325 | if test "$cross_compiling" = yes; then : | |
11326 | lt_cv_dlopen_self_static=cross | |
11327 | else | |
11328 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11329 | lt_status=$lt_dlunknown | |
11330 | cat > conftest.$ac_ext <<EOF | |
11331 | #line 11331 "configure" | |
11332 | #include "confdefs.h" | |
11333 | ||
11334 | #if HAVE_DLFCN_H | |
11335 | #include <dlfcn.h> | |
11336 | #endif | |
11337 | ||
11338 | #include <stdio.h> | |
11339 | ||
11340 | #ifdef RTLD_GLOBAL | |
11341 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11342 | #else | |
11343 | # ifdef DL_GLOBAL | |
11344 | # define LT_DLGLOBAL DL_GLOBAL | |
11345 | # else | |
11346 | # define LT_DLGLOBAL 0 | |
11347 | # endif | |
11348 | #endif | |
11349 | ||
11350 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11351 | find out it does not work in some platform. */ | |
11352 | #ifndef LT_DLLAZY_OR_NOW | |
11353 | # ifdef RTLD_LAZY | |
11354 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11355 | # else | |
11356 | # ifdef DL_LAZY | |
11357 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11358 | # else | |
11359 | # ifdef RTLD_NOW | |
11360 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11361 | # else | |
11362 | # ifdef DL_NOW | |
11363 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11364 | # else | |
11365 | # define LT_DLLAZY_OR_NOW 0 | |
11366 | # endif | |
11367 | # endif | |
11368 | # endif | |
11369 | # endif | |
11370 | #endif | |
11371 | ||
11372 | #ifdef __cplusplus | |
11373 | extern "C" void exit (int); | |
11374 | #endif | |
11375 | ||
11376 | void fnord() { int i=42;} | |
11377 | int main () | |
11378 | { | |
11379 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11380 | int status = $lt_dlunknown; | |
11381 | ||
11382 | if (self) | |
11383 | { | |
11384 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11385 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11386 | /* dlclose (self); */ | |
11387 | } | |
11388 | ||
11389 | exit (status); | |
11390 | } | |
11391 | EOF | |
11392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11393 | (eval $ac_link) 2>&5 | |
11394 | ac_status=$? | |
11395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11396 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11397 | (./conftest; exit; ) 2>/dev/null | |
11398 | lt_status=$? | |
11399 | case x$lt_status in | |
11400 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11401 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11402 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
11403 | esac | |
11404 | else : | |
11405 | # compilation failed | |
11406 | lt_cv_dlopen_self_static=no | |
11407 | fi | |
11408 | fi | |
11409 | rm -fr conftest* | |
11410 | ||
11411 | ||
11412 | fi | |
11413 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11414 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
11415 | fi | |
11416 | ||
11417 | CPPFLAGS="$save_CPPFLAGS" | |
11418 | LDFLAGS="$save_LDFLAGS" | |
11419 | LIBS="$save_LIBS" | |
11420 | ;; | |
11421 | esac | |
11422 | ||
11423 | case $lt_cv_dlopen_self in | |
11424 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11425 | *) enable_dlopen_self=unknown ;; | |
11426 | esac | |
11427 | ||
11428 | case $lt_cv_dlopen_self_static in | |
11429 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11430 | *) enable_dlopen_self_static=unknown ;; | |
11431 | esac | |
11432 | fi | |
11433 | ||
11434 | ||
11435 | # The else clause should only fire when bootstrapping the | |
11436 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
11437 | # with your package, and you will get complaints that there are | |
11438 | # no rules to generate ltmain.sh. | |
11439 | if test -f "$ltmain"; then | |
11440 | # Now quote all the things that may contain metacharacters while being | |
11441 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
11442 | # variables and quote the copies for generation of the libtool script. | |
11443 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
11444 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
11445 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
11446 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
11447 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
11448 | lt_cv_sys_global_symbol_to_c_name_address \ | |
11449 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
11450 | old_postinstall_cmds old_postuninstall_cmds \ | |
11451 | compiler_CXX \ | |
11452 | CC_CXX \ | |
11453 | LD_CXX \ | |
11454 | lt_prog_compiler_wl_CXX \ | |
11455 | lt_prog_compiler_pic_CXX \ | |
11456 | lt_prog_compiler_static_CXX \ | |
11457 | lt_prog_compiler_no_builtin_flag_CXX \ | |
11458 | export_dynamic_flag_spec_CXX \ | |
11459 | thread_safe_flag_spec_CXX \ | |
11460 | whole_archive_flag_spec_CXX \ | |
11461 | old_archive_cmds_CXX \ | |
11462 | old_archive_from_new_cmds_CXX \ | |
11463 | predep_objects_CXX \ | |
11464 | postdep_objects_CXX \ | |
11465 | predeps_CXX \ | |
11466 | postdeps_CXX \ | |
11467 | compiler_lib_search_path_CXX \ | |
11468 | archive_cmds_CXX \ | |
11469 | archive_expsym_cmds_CXX \ | |
11470 | postinstall_cmds_CXX \ | |
11471 | postuninstall_cmds_CXX \ | |
11472 | old_archive_from_expsyms_cmds_CXX \ | |
11473 | allow_undefined_flag_CXX \ | |
11474 | no_undefined_flag_CXX \ | |
11475 | export_symbols_cmds_CXX \ | |
11476 | hardcode_libdir_flag_spec_CXX \ | |
11477 | hardcode_libdir_separator_CXX \ | |
11478 | lt_cv_prog_compiler_c_o_CXX \ | |
11479 | exclude_expsyms_CXX \ | |
11480 | include_expsyms_CXX; do | |
11481 | ||
11482 | case $var in | |
11483 | old_archive_cmds_CXX | \ | |
11484 | old_archive_from_new_cmds_CXX | \ | |
11485 | archive_cmds_CXX | \ | |
11486 | archive_expsym_cmds_CXX | \ | |
11487 | old_archive_from_expsyms_cmds_CXX | \ | |
11488 | export_symbols_cmds_CXX | \ | |
11489 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
11490 | postinstall_cmds | postuninstall_cmds | \ | |
11491 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
11492 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
11493 | # Double-quote double-evaled strings. | |
11494 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
11495 | ;; | |
11496 | *) | |
11497 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
11498 | ;; | |
11499 | esac | |
11500 | done | |
11501 | ||
11502 | case $lt_echo in | |
11503 | *'\$0 --fallback-echo"') | |
11504 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
11505 | ;; | |
11506 | esac | |
11507 | ||
11508 | cfgfile="$ofile" | |
11509 | ||
11510 | cat <<__EOF__ >> "$cfgfile" | |
11511 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
11512 | ||
11513 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
11514 | ||
11515 | # Shell to use when invoking shell scripts. | |
11516 | SHELL=$lt_SHELL | |
11517 | ||
11518 | # Whether or not to build shared libraries. | |
11519 | build_libtool_libs=$enable_shared | |
11520 | ||
11521 | # Whether or not to build static libraries. | |
11522 | build_old_libs=$enable_static | |
11523 | ||
11524 | # Whether or not to add -lc for building shared libraries. | |
11525 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
11526 | ||
11527 | # Whether or not to optimize for fast installation. | |
11528 | fast_install=$enable_fast_install | |
11529 | ||
11530 | # The host system. | |
11531 | host_alias=$host_alias | |
11532 | host=$host | |
11533 | ||
11534 | # An echo program that does not interpret backslashes. | |
11535 | echo=$lt_echo | |
11536 | ||
11537 | # The archiver. | |
11538 | AR=$lt_AR | |
11539 | AR_FLAGS=$lt_AR_FLAGS | |
11540 | ||
11541 | # A C compiler. | |
11542 | LTCC=$lt_LTCC | |
11543 | ||
11544 | # A language-specific compiler. | |
11545 | CC=$lt_compiler_CXX | |
11546 | ||
11547 | # Is the compiler the GNU C compiler? | |
11548 | with_gcc=$GCC_CXX | |
11549 | ||
11550 | # The linker used to build libraries. | |
11551 | LD=$lt_LD_CXX | |
11552 | ||
11553 | # Whether we need hard or soft links. | |
11554 | LN_S=$lt_LN_S | |
11555 | ||
11556 | # A BSD-compatible nm program. | |
11557 | NM=$lt_NM | |
11558 | ||
11559 | # A sed program that does not truncate output. | |
11560 | SED=$lt_SED | |
11561 | ||
11562 | # A symbol stripping program | |
11563 | STRIP=$STRIP | |
11564 | ||
11565 | # Used to examine libraries when file_magic_cmd begins "file" | |
11566 | MAGIC_CMD=$MAGIC_CMD | |
11567 | ||
11568 | # Used on cygwin: DLL creation program. | |
11569 | DLLTOOL="$DLLTOOL" | |
11570 | ||
11571 | # Used on cygwin: object dumper. | |
11572 | OBJDUMP="$OBJDUMP" | |
11573 | ||
11574 | # Used on cygwin: assembler. | |
11575 | AS="$AS" | |
11576 | ||
11577 | # The name of the directory that contains temporary libtool files. | |
11578 | objdir=$objdir | |
11579 | ||
11580 | # How to create reloadable object files. | |
11581 | reload_flag=$lt_reload_flag | |
11582 | reload_cmds=$lt_reload_cmds | |
11583 | ||
11584 | # How to pass a linker flag through the compiler. | |
11585 | wl=$lt_lt_prog_compiler_wl_CXX | |
11586 | ||
11587 | # Object file suffix (normally "o"). | |
11588 | objext="$ac_objext" | |
11589 | ||
11590 | # Old archive suffix (normally "a"). | |
11591 | libext="$libext" | |
11592 | ||
11593 | # Executable file suffix (normally ""). | |
11594 | exeext="$exeext" | |
11595 | ||
11596 | # Additional compiler flags for building library objects. | |
11597 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
11598 | pic_mode=$pic_mode | |
11599 | ||
11600 | # What is the maximum length of a command? | |
11601 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
11602 | ||
11603 | # Does compiler simultaneously support -c and -o options? | |
11604 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
11605 | ||
11606 | # Must we lock files when doing compilation ? | |
11607 | need_locks=$lt_need_locks | |
11608 | ||
11609 | # Do we need the lib prefix for modules? | |
11610 | need_lib_prefix=$need_lib_prefix | |
11611 | ||
11612 | # Do we need a version for libraries? | |
11613 | need_version=$need_version | |
11614 | ||
11615 | # Whether dlopen is supported. | |
11616 | dlopen_support=$enable_dlopen | |
11617 | ||
11618 | # Whether dlopen of programs is supported. | |
11619 | dlopen_self=$enable_dlopen_self | |
11620 | ||
11621 | # Whether dlopen of statically linked programs is supported. | |
11622 | dlopen_self_static=$enable_dlopen_self_static | |
11623 | ||
11624 | # Compiler flag to prevent dynamic linking. | |
11625 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
11626 | ||
11627 | # Compiler flag to turn off builtin functions. | |
11628 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
11629 | ||
11630 | # Compiler flag to allow reflexive dlopens. | |
11631 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
11632 | ||
11633 | # Compiler flag to generate shared objects directly from archives. | |
11634 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
11635 | ||
11636 | # Compiler flag to generate thread-safe objects. | |
11637 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
11638 | ||
11639 | # Library versioning type. | |
11640 | version_type=$version_type | |
11641 | ||
11642 | # Format of library name prefix. | |
11643 | libname_spec=$lt_libname_spec | |
11644 | ||
11645 | # List of archive names. First name is the real one, the rest are links. | |
11646 | # The last name is the one that the linker finds with -lNAME. | |
11647 | library_names_spec=$lt_library_names_spec | |
11648 | ||
11649 | # The coded name of the library, if different from the real name. | |
11650 | soname_spec=$lt_soname_spec | |
11651 | ||
11652 | # Commands used to build and install an old-style archive. | |
11653 | RANLIB=$lt_RANLIB | |
11654 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
11655 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
11656 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
11657 | ||
11658 | # Create an old-style archive from a shared archive. | |
11659 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
11660 | ||
11661 | # Create a temporary old-style archive to link instead of a shared archive. | |
11662 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
11663 | ||
11664 | # Commands used to build and install a shared archive. | |
11665 | archive_cmds=$lt_archive_cmds_CXX | |
11666 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
11667 | postinstall_cmds=$lt_postinstall_cmds | |
11668 | postuninstall_cmds=$lt_postuninstall_cmds | |
11669 | ||
11670 | # Commands to strip libraries. | |
11671 | old_striplib=$lt_old_striplib | |
11672 | striplib=$lt_striplib | |
11673 | ||
11674 | # Dependencies to place before the objects being linked to create a | |
11675 | # shared library. | |
11676 | predep_objects=$lt_predep_objects_CXX | |
11677 | ||
11678 | # Dependencies to place after the objects being linked to create a | |
11679 | # shared library. | |
11680 | postdep_objects=$lt_postdep_objects_CXX | |
11681 | ||
11682 | # Dependencies to place before the objects being linked to create a | |
11683 | # shared library. | |
11684 | predeps=$lt_predeps_CXX | |
11685 | ||
11686 | # Dependencies to place after the objects being linked to create a | |
11687 | # shared library. | |
11688 | postdeps=$lt_postdeps_CXX | |
11689 | ||
11690 | # The library search path used internally by the compiler when linking | |
11691 | # a shared library. | |
11692 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
11693 | ||
11694 | # Method to check whether dependent libraries are shared objects. | |
11695 | deplibs_check_method=$lt_deplibs_check_method | |
11696 | ||
11697 | # Command to use when deplibs_check_method == file_magic. | |
11698 | file_magic_cmd=$lt_file_magic_cmd | |
11699 | ||
11700 | # Flag that allows shared libraries with undefined symbols to be built. | |
11701 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
11702 | ||
11703 | # Flag that forces no undefined symbols. | |
11704 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
11705 | ||
11706 | # Commands used to finish a libtool library installation in a directory. | |
11707 | finish_cmds=$lt_finish_cmds | |
11708 | ||
11709 | # Same as above, but a single script fragment to be evaled but not shown. | |
11710 | finish_eval=$lt_finish_eval | |
11711 | ||
11712 | # Take the output of nm and produce a listing of raw symbols and C names. | |
11713 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
11714 | ||
11715 | # Transform the output of nm in a proper C declaration | |
11716 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
11717 | ||
11718 | # Transform the output of nm in a C name address pair | |
11719 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
11720 | ||
11721 | # This is the shared library runtime path variable. | |
11722 | runpath_var=$runpath_var | |
11723 | ||
11724 | # This is the shared library path variable. | |
11725 | shlibpath_var=$shlibpath_var | |
11726 | ||
11727 | # Is shlibpath searched before the hard-coded library search path? | |
11728 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
11729 | ||
11730 | # How to hardcode a shared library path into an executable. | |
11731 | hardcode_action=$hardcode_action_CXX | |
11732 | ||
11733 | # Whether we should hardcode library paths into libraries. | |
11734 | hardcode_into_libs=$hardcode_into_libs | |
11735 | ||
11736 | # Flag to hardcode \$libdir into a binary during linking. | |
11737 | # This must work even if \$libdir does not exist. | |
11738 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
11739 | ||
11740 | # Whether we need a single -rpath flag with a separated argument. | |
11741 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
11742 | ||
11743 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
11744 | # resulting binary. | |
11745 | hardcode_direct=$hardcode_direct_CXX | |
11746 | ||
11747 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
11748 | # resulting binary. | |
11749 | hardcode_minus_L=$hardcode_minus_L_CXX | |
11750 | ||
11751 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
11752 | # the resulting binary. | |
11753 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
11754 | ||
11755 | # Variables whose values should be saved in libtool wrapper scripts and | |
11756 | # restored at relink time. | |
11757 | variables_saved_for_relink="$variables_saved_for_relink" | |
11758 | ||
11759 | # Whether libtool must link a program against all its dependency libraries. | |
11760 | link_all_deplibs=$link_all_deplibs_CXX | |
11761 | ||
11762 | # Compile-time system search path for libraries | |
11763 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
11764 | ||
11765 | # Run-time system search path for libraries | |
11766 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
11767 | ||
11768 | # Fix the shell variable \$srcfile for the compiler. | |
11769 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
11770 | ||
11771 | # Set to yes if exported symbols are required. | |
11772 | always_export_symbols=$always_export_symbols_CXX | |
11773 | ||
11774 | # The commands to list exported symbols. | |
11775 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
11776 | ||
11777 | # The commands to extract the exported symbol list from a shared archive. | |
11778 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
11779 | ||
11780 | # Symbols that should not be listed in the preloaded symbols. | |
11781 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
11782 | ||
11783 | # Symbols that must always be exported. | |
11784 | include_expsyms=$lt_include_expsyms_CXX | |
11785 | ||
11786 | # ### END LIBTOOL TAG CONFIG: $tagname | |
11787 | ||
11788 | __EOF__ | |
11789 | ||
11790 | ||
11791 | else | |
11792 | # If there is no Makefile yet, we rely on a make rule to execute | |
11793 | # `config.status --recheck' to rerun these tests and create the | |
11794 | # libtool script then. | |
11795 | test -f Makefile && make "$ltmain" | |
11796 | fi | |
11797 | ||
11798 | ||
11799 | ac_ext=c | |
11800 | ac_cpp='$CPP $CPPFLAGS' | |
11801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11804 | ||
11805 | CC="$lt_save_CC" | |
11806 | ||
11807 | ;; | |
11808 | ||
11809 | GCJ) | |
11810 | ||
11811 | ||
11812 | ||
11813 | # Source file extension for C test sources. | |
11814 | ac_ext=java | |
11815 | ||
11816 | # Object file extension for compiled C test sources. | |
11817 | objext=o | |
11818 | objext_GCJ=$objext | |
11819 | ||
11820 | # Code to be used in simple compile tests | |
11821 | lt_simple_compile_test_code="class foo {}" | |
11822 | ||
11823 | # Code to be used in simple link tests | |
11824 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }' | |
11825 | ||
11826 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11827 | ||
11828 | # If no C compiler was specified, use CC. | |
11829 | LTCC=${LTCC-"$CC"} | |
11830 | ||
11831 | # Allow CC to be a program name with arguments. | |
11832 | set dummy $CC | |
11833 | compiler="$2" | |
11834 | ||
11835 | ||
11836 | # Allow CC to be a program name with arguments. | |
11837 | lt_save_CC="$CC" | |
11838 | CC=${GCJ-"gcj"} | |
11839 | set dummy $CC | |
11840 | compiler="$2" | |
11841 | compiler_GCJ=$CC | |
11842 | ||
11843 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
11844 | archive_cmds_need_lc_GCJ=no | |
11845 | ||
11846 | ||
11847 | lt_prog_compiler_no_builtin_flag_GCJ= | |
11848 | ||
11849 | if test "$GCC" = yes; then | |
11850 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
11851 | ||
11852 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
11853 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
11854 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
11855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11856 | else | |
11857 | lt_cv_prog_compiler_rtti_exceptions=no | |
11858 | ac_outfile=conftest.$ac_objext | |
11859 | save_CFLAGS="$CFLAGS" | |
11860 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
11861 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11862 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
11863 | # The compiler can only warn and ignore the option if not recognized | |
11864 | # So say no if there are warnings | |
11865 | if test -s conftest.err; then | |
11866 | # Append any errors to the config.log. | |
11867 | cat conftest.err 1>&5 | |
11868 | else | |
11869 | lt_cv_prog_compiler_rtti_exceptions=yes | |
11870 | fi | |
11871 | fi | |
11872 | $rm conftest* | |
11873 | CFLAGS="$save_CFLAGS" | |
11874 | ||
11875 | fi | |
11876 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
11877 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
11878 | ||
11879 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
11880 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
11881 | else | |
11882 | : | |
11883 | fi | |
11884 | ||
11885 | fi | |
11886 | ||
11887 | lt_prog_compiler_wl_GCJ= | |
11888 | lt_prog_compiler_pic_GCJ= | |
11889 | lt_prog_compiler_static_GCJ= | |
11890 | ||
11891 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
11892 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
11893 | ||
11894 | if test "$GCC" = yes; then | |
11895 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11896 | lt_prog_compiler_static_GCJ='-static' | |
11897 | ||
11898 | case $host_os in | |
11899 | aix*) | |
11900 | # All AIX code is PIC. | |
11901 | if test "$host_cpu" = ia64; then | |
11902 | # AIX 5 now supports IA64 processor | |
11903 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11904 | fi | |
11905 | ;; | |
11906 | ||
11907 | amigaos*) | |
11908 | # FIXME: we need at least 68020 code to build shared libraries, but | |
11909 | # adding the `-m68020' flag to GCC prevents building anything better, | |
11910 | # like `-m68040'. | |
11911 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
11912 | ;; | |
11913 | ||
11914 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11915 | # PIC is the default for these OSes. | |
11916 | ;; | |
11917 | ||
11918 | cygwin* | mingw* | pw32* | os2*) | |
11919 | # This hack is so that the source file can tell whether it is being | |
11920 | # built for inclusion in a dll (and should export symbols for example). | |
11921 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
11922 | ;; | |
11923 | ||
11924 | darwin* | rhapsody*) | |
11925 | # PIC is the default on this platform | |
11926 | # Common symbols not allowed in MH_DYLIB files | |
11927 | lt_prog_compiler_pic_GCJ='-fno-common' | |
11928 | ;; | |
11929 | ||
11930 | msdosdjgpp*) | |
11931 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
11932 | # on systems that don't support them. | |
11933 | lt_prog_compiler_can_build_shared_GCJ=no | |
11934 | enable_shared=no | |
11935 | ;; | |
11936 | ||
11937 | sysv4*MP*) | |
11938 | if test -d /usr/nec; then | |
11939 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
11940 | fi | |
11941 | ;; | |
11942 | ||
11943 | hpux*) | |
11944 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
11945 | if test "$host_cpu" != ia64; then | |
11946 | lt_prog_compiler_pic_GCJ='-fPIC' | |
11947 | fi | |
11948 | ;; | |
11949 | ||
11950 | *) | |
11951 | lt_prog_compiler_pic_GCJ='-fPIC' | |
11952 | ;; | |
11953 | esac | |
11954 | else | |
11955 | # PORTME Check for flag to pass linker flags through the system compiler. | |
11956 | case $host_os in | |
11957 | aix*) | |
11958 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11959 | if test "$host_cpu" = ia64; then | |
11960 | # AIX 5 now supports IA64 processor | |
11961 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11962 | else | |
11963 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
11964 | fi | |
11965 | ;; | |
11966 | ||
11967 | cygwin* | mingw* | pw32* | os2*) | |
11968 | # This hack is so that the source file can tell whether it is being | |
11969 | # built for inclusion in a dll (and should export symbols for example). | |
11970 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
11971 | ;; | |
11972 | ||
11973 | hpux9* | hpux10* | hpux11*) | |
11974 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11975 | if test "$host_cpu" != ia64; then | |
11976 | lt_prog_compiler_pic_GCJ='+Z' | |
11977 | fi | |
11978 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
11979 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
11980 | ;; | |
11981 | ||
11982 | irix5* | irix6* | nonstopux*) | |
11983 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11984 | # PIC (with -KPIC) is the default. | |
11985 | lt_prog_compiler_static_GCJ='-non_shared' | |
11986 | ;; | |
11987 | ||
11988 | newsos6) | |
11989 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11990 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11991 | ;; | |
11992 | ||
11993 | osf3* | osf4* | osf5*) | |
11994 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11995 | # All OSF/1 code is PIC. | |
11996 | lt_prog_compiler_static_GCJ='-non_shared' | |
11997 | ;; | |
11998 | ||
11999 | sco3.2v5*) | |
12000 | lt_prog_compiler_pic_GCJ='-Kpic' | |
12001 | lt_prog_compiler_static_GCJ='-dn' | |
12002 | ;; | |
12003 | ||
12004 | solaris*) | |
12005 | lt_prog_compiler_wl_GCJ='-Wl,' | |
12006 | lt_prog_compiler_pic_GCJ='-KPIC' | |
12007 | lt_prog_compiler_static_GCJ='-Bstatic' | |
12008 | ;; | |
12009 | ||
12010 | sunos4*) | |
12011 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
12012 | lt_prog_compiler_pic_GCJ='-PIC' | |
12013 | lt_prog_compiler_static_GCJ='-Bstatic' | |
12014 | ;; | |
12015 | ||
12016 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
12017 | if test "x$host_vendor" = xsni; then | |
12018 | lt_prog_compiler_wl_GCJ='-LD' | |
12019 | else | |
12020 | lt_prog_compiler_wl_GCJ='-Wl,' | |
12021 | fi | |
12022 | lt_prog_compiler_pic_GCJ='-KPIC' | |
12023 | lt_prog_compiler_static_GCJ='-Bstatic' | |
12024 | ;; | |
12025 | ||
12026 | sysv4*MP*) | |
12027 | if test -d /usr/nec ;then | |
12028 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
12029 | lt_prog_compiler_static_GCJ='-Bstatic' | |
12030 | fi | |
12031 | ;; | |
12032 | ||
12033 | uts4*) | |
12034 | lt_prog_compiler_pic_GCJ='-pic' | |
12035 | lt_prog_compiler_static_GCJ='-Bstatic' | |
12036 | ;; | |
12037 | ||
12038 | *) | |
12039 | lt_prog_compiler_can_build_shared_GCJ=no | |
12040 | ;; | |
12041 | esac | |
12042 | fi | |
12043 | ||
12044 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
12045 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
12046 | ||
12047 | # | |
12048 | # Check to make sure the PIC flag actually works. | |
12049 | # | |
12050 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
12051 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
12052 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
12053 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
12054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12055 | else | |
12056 | lt_prog_compiler_pic_works_GCJ=no | |
12057 | ac_outfile=conftest.$ac_objext | |
12058 | save_CFLAGS="$CFLAGS" | |
12059 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC" | |
12060 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12061 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
12062 | # The compiler can only warn and ignore the option if not recognized | |
12063 | # So say no if there are warnings | |
12064 | if test -s conftest.err; then | |
12065 | # Append any errors to the config.log. | |
12066 | cat conftest.err 1>&5 | |
12067 | else | |
12068 | lt_prog_compiler_pic_works_GCJ=yes | |
12069 | fi | |
12070 | fi | |
12071 | $rm conftest* | |
12072 | CFLAGS="$save_CFLAGS" | |
12073 | ||
12074 | fi | |
12075 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
12076 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
12077 | ||
12078 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
12079 | case $lt_prog_compiler_pic_GCJ in | |
12080 | "" | " "*) ;; | |
12081 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
12082 | esac | |
12083 | else | |
12084 | lt_prog_compiler_pic_GCJ= | |
12085 | lt_prog_compiler_can_build_shared_GCJ=no | |
12086 | fi | |
12087 | ||
12088 | fi | |
12089 | case "$host_os" in | |
12090 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12091 | *djgpp*) | |
12092 | lt_prog_compiler_pic_GCJ= | |
12093 | ;; | |
12094 | *) | |
12095 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC" | |
12096 | ;; | |
12097 | esac | |
12098 | ||
12099 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12100 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
12101 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
12102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12103 | else | |
12104 | lt_cv_prog_compiler_c_o_GCJ=no | |
12105 | $rm -r conftest 2>/dev/null | |
12106 | mkdir conftest | |
12107 | cd conftest | |
12108 | mkdir out | |
12109 | save_GCJFLAGS="$GCJFLAGS" | |
12110 | GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext" | |
12111 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12112 | ||
12113 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
12114 | # that will create temporary files in the current directory regardless of | |
12115 | # the output directory. Thus, making CWD read-only will cause this test | |
12116 | # to fail, enabling locking or at least warning the user not to do parallel | |
12117 | # builds. | |
12118 | chmod -w . | |
12119 | ||
12120 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
12121 | then | |
12122 | # The compiler can only warn and ignore the option if not recognized | |
12123 | # So say no if there are warnings | |
12124 | if test -s out/conftest.err; then | |
12125 | # Append any errors to the config.log. | |
12126 | cat out/conftest.err 1>&5 | |
12127 | else | |
12128 | lt_cv_prog_compiler_c_o_GCJ=yes | |
12129 | fi | |
12130 | fi | |
12131 | GCJFLAGS="$save_GCJFLAGS" | |
12132 | chmod u+w . | |
12133 | $rm conftest* out/* | |
12134 | rmdir out | |
12135 | cd .. | |
12136 | rmdir conftest | |
12137 | $rm conftest* | |
12138 | ||
12139 | fi | |
12140 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
12141 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
12142 | ||
12143 | ||
12144 | hard_links="nottested" | |
12145 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
12146 | # do not overwrite the value of need_locks provided by the user | |
12147 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
12148 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
12149 | hard_links=yes | |
12150 | $rm conftest* | |
12151 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12152 | touch conftest.a | |
12153 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12154 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12155 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
12156 | echo "${ECHO_T}$hard_links" >&6 | |
12157 | if test "$hard_links" = no; then | |
12158 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12159 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12160 | need_locks=warn | |
12161 | fi | |
12162 | else | |
12163 | need_locks=no | |
12164 | fi | |
12165 | ||
12166 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12167 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
12168 | ||
12169 | runpath_var= | |
12170 | allow_undefined_flag_GCJ= | |
12171 | ||
12172 | archive_cmds_GCJ= | |
12173 | archive_cmds_need_lc_GCJ= | |
12174 | archive_expsym_cmds_GCJ= | |
12175 | old_archive_From_new_cmds_GCJ= | |
12176 | old_archive_from_expsyms_cmds_GCJ= | |
12177 | export_dynamic_flag_spec_GCJ= | |
12178 | whole_archive_flag_spec_GCJ= | |
12179 | thread_safe_flag_spec_GCJ= | |
12180 | hardcode_libdir_flag_spec_GCJ= | |
12181 | hardcode_libdir_separator_GCJ= | |
12182 | hardcode_direct_GCJ=no | |
12183 | hardcode_minus_L_GCJ=no | |
12184 | hardcode_shlibpath_var_GCJ=unsupported | |
12185 | link_all_deplibs_GCJ=unknown | |
12186 | always_export_symbols_GCJ=no | |
12187 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12188 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12189 | # included in the symbol list | |
12190 | include_expsyms_GCJ= | |
12191 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
12192 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12193 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12194 | # as well as any symbol that contains `d'. | |
12195 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
12196 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
12197 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12198 | # the symbol is explicitly referenced. Since portable code cannot | |
12199 | # rely on this symbol name, it's probably fine to never include it in | |
12200 | # preloaded symbol tables. | |
12201 | extract_expsyms_cmds= | |
12202 | ||
12203 | case $host_os in | |
12204 | cygwin* | mingw* | pw32*) | |
12205 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
12206 | # When not using gcc, we currently assume that we are using | |
12207 | # Microsoft Visual C++. | |
12208 | if test "$GCC" != yes; then | |
12209 | with_gnu_ld=no | |
12210 | fi | |
12211 | ;; | |
12212 | openbsd*) | |
12213 | with_gnu_ld=no | |
12214 | ;; | |
12215 | esac | |
12216 | ||
12217 | ld_shlibs_GCJ=yes | |
12218 | if test "$with_gnu_ld" = yes; then | |
12219 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12220 | wlarc='${wl}' | |
12221 | ||
12222 | # See if GNU ld supports shared libraries. | |
12223 | case $host_os in | |
12224 | aix3* | aix4* | aix5*) | |
12225 | # On AIX/PPC, the GNU linker is very broken | |
12226 | if test "$host_cpu" != ia64; then | |
12227 | ld_shlibs_GCJ=no | |
12228 | cat <<EOF 1>&2 | |
12229 | ||
12230 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
12231 | *** to be unable to reliably create shared libraries on AIX. | |
12232 | *** Therefore, libtool is disabling shared libraries support. If you | |
12233 | *** really care for shared libraries, you may want to modify your PATH | |
12234 | *** so that a non-GNU linker is found, and then restart. | |
12235 | ||
12236 | EOF | |
12237 | fi | |
12238 | ;; | |
12239 | ||
12240 | amigaos*) | |
12241 | 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)' | |
12242 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12243 | hardcode_minus_L_GCJ=yes | |
12244 | ||
12245 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
12246 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
12247 | # to version 4, is to share data among multiple programs linked | |
12248 | # with the same dynamic library. Since this doesn't match the | |
12249 | # behavior of shared libraries on other platforms, we can't use | |
12250 | # them. | |
12251 | ld_shlibs_GCJ=no | |
12252 | ;; | |
12253 | ||
12254 | beos*) | |
12255 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
12256 | allow_undefined_flag_GCJ=unsupported | |
12257 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12258 | # support --undefined. This deserves some investigation. FIXME | |
12259 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12260 | else | |
12261 | ld_shlibs_GCJ=no | |
12262 | fi | |
12263 | ;; | |
12264 | ||
12265 | cygwin* | mingw* | pw32*) | |
12266 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is | |
12267 | # no search path for DLLs. | |
12268 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12269 | allow_undefined_flag_GCJ=unsupported | |
12270 | always_export_symbols_GCJ=yes | |
12271 | ||
12272 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
12273 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
12274 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
12275 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
12276 | else $CC -o impgen impgen.c ; fi)~ | |
12277 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
12278 | ||
12279 | old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
12280 | ||
12281 | # cygwin and mingw dlls have different entry points and sets of symbols | |
12282 | # to exclude. | |
12283 | # FIXME: what about values for MSVC? | |
12284 | dll_entry=__cygwin_dll_entry@12 | |
12285 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
12286 | case $host_os in | |
12287 | mingw*) | |
12288 | # mingw values | |
12289 | dll_entry=_DllMainCRTStartup@12 | |
12290 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
12291 | ;; | |
12292 | esac | |
12293 | ||
12294 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
12295 | # of the two symbol sets. | |
12296 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
12297 | ||
12298 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
12299 | # can override, but on older systems we have to supply one (in ltdll.c) | |
12300 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
12301 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
12302 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
12303 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
12304 | else | |
12305 | ltdll_obj= | |
12306 | ltdll_cmds= | |
12307 | fi | |
12308 | ||
12309 | # Extract the symbol export list from an `--export-all' def file, | |
12310 | # then regenerate the def file from the symbol export list, so that | |
12311 | # the compiled dll only exports the symbol export list. | |
12312 | # Be careful not to strip the DATA tag left by newer dlltools. | |
12313 | export_symbols_cmds_GCJ="$ltdll_cmds"' | |
12314 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
12315 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
12316 | ||
12317 | # If the export-symbols file already is a .def file (1st line | |
12318 | # is EXPORTS), use it as is. | |
12319 | # If DATA tags from a recent dlltool are present, honour them! | |
12320 | archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
12321 | cp $export_symbols $output_objdir/$soname-def; | |
12322 | else | |
12323 | echo EXPORTS > $output_objdir/$soname-def; | |
12324 | _lt_hint=1; | |
12325 | cat $export_symbols | while read symbol; do | |
12326 | set dummy \$symbol; | |
12327 | case \$# in | |
12328 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
12329 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
12330 | esac; | |
12331 | _lt_hint=`expr 1 + \$_lt_hint`; | |
12332 | done; | |
12333 | fi~ | |
12334 | '"$ltdll_cmds"' | |
12335 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
12336 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
12337 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
12338 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
12339 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
12340 | ;; | |
12341 | ||
12342 | netbsd*) | |
12343 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12344 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
12345 | wlarc= | |
12346 | else | |
12347 | archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12348 | archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12349 | fi | |
12350 | ;; | |
12351 | ||
12352 | solaris* | sysv5*) | |
12353 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
12354 | ld_shlibs_GCJ=no | |
12355 | cat <<EOF 1>&2 | |
12356 | ||
12357 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
12358 | *** create shared libraries on Solaris systems. Therefore, libtool | |
12359 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12360 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
12361 | *** your PATH or compiler configuration so that the native linker is | |
12362 | *** used, and then restart. | |
12363 | ||
12364 | EOF | |
12365 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
12366 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12367 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12368 | else | |
12369 | ld_shlibs_GCJ=no | |
12370 | fi | |
12371 | ;; | |
12372 | ||
12373 | sunos4*) | |
12374 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12375 | wlarc= | |
12376 | hardcode_direct_GCJ=yes | |
12377 | hardcode_shlibpath_var_GCJ=no | |
12378 | ;; | |
12379 | ||
12380 | *) | |
12381 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
12382 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12383 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12384 | else | |
12385 | ld_shlibs_GCJ=no | |
12386 | fi | |
12387 | ;; | |
12388 | esac | |
12389 | ||
12390 | if test "$ld_shlibs_GCJ" = yes; then | |
12391 | runpath_var=LD_RUN_PATH | |
12392 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
12393 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
12394 | case $host_os in | |
12395 | cygwin* | mingw* | pw32*) | |
12396 | # dlltool doesn't understand --whole-archive et. al. | |
12397 | whole_archive_flag_spec_GCJ= | |
12398 | ;; | |
12399 | *) | |
12400 | # ancient GNU ld didn't support --whole-archive et. al. | |
12401 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
12402 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12403 | else | |
12404 | whole_archive_flag_spec_GCJ= | |
12405 | fi | |
12406 | ;; | |
12407 | esac | |
12408 | fi | |
12409 | else | |
12410 | # PORTME fill in a description of your system's linker (not GNU ld) | |
12411 | case $host_os in | |
12412 | aix3*) | |
12413 | allow_undefined_flag_GCJ=unsupported | |
12414 | always_export_symbols_GCJ=yes | |
12415 | 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' | |
12416 | # Note: this linker hardcodes the directories in LIBPATH if there | |
12417 | # are no directories specified by -L. | |
12418 | hardcode_minus_L_GCJ=yes | |
12419 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
12420 | # Neither direct hardcoding nor static linking is supported with a | |
12421 | # broken collect2. | |
12422 | hardcode_direct_GCJ=unsupported | |
12423 | fi | |
12424 | ;; | |
12425 | ||
12426 | aix4* | aix5*) | |
12427 | if test "$host_cpu" = ia64; then | |
12428 | # On IA64, the linker does run time linking by default, so we don't | |
12429 | # have to do anything special. | |
12430 | aix_use_runtimelinking=no | |
12431 | exp_sym_flag='-Bexport' | |
12432 | no_entry_flag="" | |
12433 | else | |
12434 | # If we're using GNU nm, then we don't want the "-C" option. | |
12435 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12436 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
12437 | 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' | |
12438 | else | |
12439 | 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' | |
12440 | fi | |
12441 | ||
12442 | # KDE requires run time linking. Make it the default. | |
12443 | aix_use_runtimelinking=yes | |
12444 | exp_sym_flag='-bexport' | |
12445 | no_entry_flag='-bnoentry' | |
12446 | fi | |
12447 | ||
12448 | # When large executables or shared objects are built, AIX ld can | |
12449 | # have problems creating the table of contents. If linking a library | |
12450 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12451 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12452 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12453 | ||
12454 | archive_cmds_GCJ='' | |
12455 | hardcode_direct_GCJ=yes | |
12456 | hardcode_libdir_separator_GCJ=':' | |
12457 | link_all_deplibs_GCJ=yes | |
12458 | ||
12459 | if test "$GCC" = yes; then | |
12460 | case $host_os in aix4.012|aix4.012.*) | |
12461 | # We only want to do this on AIX 4.2 and lower, the check | |
12462 | # below for broken collect2 doesn't work under 4.3+ | |
12463 | collect2name=`${CC} -print-prog-name=collect2` | |
12464 | if test -f "$collect2name" && \ | |
12465 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
12466 | then | |
12467 | # We have reworked collect2 | |
12468 | hardcode_direct_GCJ=yes | |
12469 | else | |
12470 | # We have old collect2 | |
12471 | hardcode_direct_GCJ=unsupported | |
12472 | # It fails to find uninstalled libraries when the uninstalled | |
12473 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12474 | # to unsupported forces relinking | |
12475 | hardcode_minus_L_GCJ=yes | |
12476 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12477 | hardcode_libdir_separator_GCJ= | |
12478 | fi | |
12479 | esac | |
12480 | shared_flag='-shared' | |
12481 | else | |
12482 | # not using gcc | |
12483 | if test "$host_cpu" = ia64; then | |
12484 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12485 | # chokes on -Wl,-G. The following line is correct: | |
12486 | shared_flag='-G' | |
12487 | else | |
12488 | if test "$aix_use_runtimelinking" = yes; then | |
12489 | shared_flag='-qmkshrobj ${wl}-G' | |
12490 | else | |
12491 | shared_flag='-qmkshrobj' | |
12492 | fi | |
12493 | fi | |
12494 | fi | |
12495 | ||
12496 | # Let the compiler handle the export list. | |
12497 | always_export_symbols_GCJ=no | |
12498 | if test "$aix_use_runtimelinking" = yes; then | |
12499 | # Warning - without using the other runtime loading flags (-brtl), | |
12500 | # -berok will link without error, but may produce a broken library. | |
12501 | allow_undefined_flag_GCJ='-berok' | |
12502 | # Determine the default libpath from the value encoded in an empty executable. | |
12503 | cat >conftest.$ac_ext <<_ACEOF | |
12504 | #line $LINENO "configure" | |
12505 | #include "confdefs.h" | |
12506 | ||
12507 | #ifdef F77_DUMMY_MAIN | |
12508 | # ifdef __cplusplus | |
12509 | extern "C" | |
12510 | # endif | |
12511 | int F77_DUMMY_MAIN() { return 1; } | |
12512 | #endif | |
12513 | int | |
12514 | main () | |
12515 | { | |
12516 | ||
12517 | ; | |
12518 | return 0; | |
12519 | } | |
12520 | _ACEOF | |
12521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12523 | (eval $ac_link) 2>&5 | |
12524 | ac_status=$? | |
12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12526 | (exit $ac_status); } && | |
12527 | { ac_try='test -s conftest$ac_exeext' | |
12528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12529 | (eval $ac_try) 2>&5 | |
12530 | ac_status=$? | |
12531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12532 | (exit $ac_status); }; }; then | |
12533 | ||
12534 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
12535 | }'` | |
12536 | # Check for a 64-bit object if we didn't find anything. | |
12537 | 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; } | |
12538 | }'`; fi | |
12539 | else | |
12540 | echo "$as_me: failed program was:" >&5 | |
12541 | cat conftest.$ac_ext >&5 | |
12542 | fi | |
12543 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12544 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12545 | ||
12546 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12547 | archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
12548 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
12549 | else | |
12550 | if test "$host_cpu" = ia64; then | |
12551 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
12552 | allow_undefined_flag_GCJ="-z nodefs" | |
12553 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
12554 | else | |
12555 | # Determine the default libpath from the value encoded in an empty executable. | |
12556 | cat >conftest.$ac_ext <<_ACEOF | |
12557 | #line $LINENO "configure" | |
12558 | #include "confdefs.h" | |
12559 | ||
12560 | #ifdef F77_DUMMY_MAIN | |
12561 | # ifdef __cplusplus | |
12562 | extern "C" | |
12563 | # endif | |
12564 | int F77_DUMMY_MAIN() { return 1; } | |
12565 | #endif | |
12566 | int | |
12567 | main () | |
12568 | { | |
12569 | ||
12570 | ; | |
12571 | return 0; | |
12572 | } | |
12573 | _ACEOF | |
12574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12576 | (eval $ac_link) 2>&5 | |
12577 | ac_status=$? | |
12578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12579 | (exit $ac_status); } && | |
12580 | { ac_try='test -s conftest$ac_exeext' | |
12581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12582 | (eval $ac_try) 2>&5 | |
12583 | ac_status=$? | |
12584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12585 | (exit $ac_status); }; }; then | |
12586 | ||
12587 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
12588 | }'` | |
12589 | # Check for a 64-bit object if we didn't find anything. | |
12590 | 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; } | |
12591 | }'`; fi | |
12592 | else | |
12593 | echo "$as_me: failed program was:" >&5 | |
12594 | cat conftest.$ac_ext >&5 | |
12595 | fi | |
12596 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12597 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12598 | ||
12599 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12600 | # Warning - without using the other run time loading flags, | |
12601 | # -berok will link without error, but may produce a broken library. | |
12602 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
12603 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
12604 | # -bexpall does not export symbols beginning with underscore (_) | |
12605 | always_export_symbols_GCJ=yes | |
12606 | # Exported symbols can be pulled into shared objects from archives | |
12607 | whole_archive_flag_spec_GCJ=' ' | |
12608 | archive_cmds_need_lc_GCJ=yes | |
12609 | # This is similar to how AIX traditionally builds it's shared libraries. | |
12610 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
12611 | fi | |
12612 | fi | |
12613 | ;; | |
12614 | ||
12615 | amigaos*) | |
12616 | 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)' | |
12617 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12618 | hardcode_minus_L_GCJ=yes | |
12619 | # see comment about different semantics on the GNU ld section | |
12620 | ld_shlibs_GCJ=no | |
12621 | ;; | |
12622 | ||
12623 | bsdi4*) | |
12624 | export_dynamic_flag_spec_GCJ=-rdynamic | |
12625 | ;; | |
12626 | ||
12627 | cygwin* | mingw* | pw32*) | |
12628 | # When not using gcc, we currently assume that we are using | |
12629 | # Microsoft Visual C++. | |
12630 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
12631 | # no search path for DLLs. | |
12632 | hardcode_libdir_flag_spec_GCJ=' ' | |
12633 | allow_undefined_flag_GCJ=unsupported | |
12634 | # Tell ltmain to make .lib files, not .a files. | |
12635 | libext=lib | |
12636 | # FIXME: Setting linknames here is a bad hack. | |
12637 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
12638 | # The linker will automatically build a .lib file if we build a DLL. | |
12639 | old_archive_From_new_cmds_GCJ='true' | |
12640 | # FIXME: Should let the user specify the lib program. | |
12641 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
12642 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
12643 | ;; | |
12644 | ||
12645 | darwin* | rhapsody*) | |
12646 | case "$host_os" in | |
12647 | rhapsody* | darwin1.[012]) | |
12648 | allow_undefined_flag_GCJ='-undefined suppress' | |
12649 | ;; | |
12650 | *) # Darwin 1.3 on | |
12651 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
12652 | ;; | |
12653 | esac | |
12654 | ||
12655 | # FIXME: Relying on posixy $() will cause problems for | |
12656 | # cross-compilation, but unfortunately the echo tests do not | |
12657 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
12658 | # `"' quotes if we put them in here... so don't! | |
12659 | archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
12660 | # We need to add '_' to the symbols in $export_symbols first | |
12661 | #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols' | |
12662 | hardcode_direct_GCJ=yes | |
12663 | hardcode_shlibpath_var_GCJ=no | |
12664 | whole_archive_flag_spec_GCJ='-all_load $convenience' | |
12665 | ;; | |
12666 | ||
12667 | dgux*) | |
12668 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12669 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12670 | hardcode_shlibpath_var_GCJ=no | |
12671 | ;; | |
12672 | ||
12673 | freebsd1*) | |
12674 | ld_shlibs_GCJ=no | |
12675 | ;; | |
12676 | ||
12677 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
12678 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
12679 | # does not break anything, and helps significantly (at the cost of a little | |
12680 | # extra space). | |
12681 | freebsd2.2*) | |
12682 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
12683 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12684 | hardcode_direct_GCJ=yes | |
12685 | hardcode_shlibpath_var_GCJ=no | |
12686 | ;; | |
12687 | ||
12688 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
12689 | freebsd2*) | |
12690 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12691 | hardcode_direct_GCJ=yes | |
12692 | hardcode_minus_L_GCJ=yes | |
12693 | hardcode_shlibpath_var_GCJ=no | |
12694 | ;; | |
12695 | ||
12696 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
12697 | freebsd*) | |
12698 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
12699 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12700 | hardcode_direct_GCJ=yes | |
12701 | hardcode_shlibpath_var_GCJ=no | |
12702 | ;; | |
12703 | ||
12704 | hpux9* | hpux10* | hpux11*) | |
12705 | if test "$GCC" = yes; then | |
12706 | case $host_os in | |
12707 | hpux9*) | |
12708 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12709 | ;; | |
12710 | *) | |
12711 | if test "$host_cpu" = ia64; then | |
12712 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12713 | else | |
12714 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12715 | fi | |
12716 | ;; | |
12717 | esac | |
12718 | else | |
12719 | case $host_os in | |
12720 | hpux9*) | |
12721 | 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' | |
12722 | ;; | |
12723 | *) | |
12724 | if test "$host_cpu" = ia64; then | |
12725 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12726 | else | |
12727 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12728 | fi | |
12729 | ;; | |
12730 | esac | |
12731 | fi | |
12732 | if test "$host_cpu" = ia64; then | |
12733 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12734 | hardcode_direct_GCJ=no | |
12735 | hardcode_shlibpath_var_GCJ=no | |
12736 | else | |
12737 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
12738 | hardcode_libdir_separator_GCJ=: | |
12739 | hardcode_direct_GCJ=yes | |
12740 | fi | |
12741 | # hardcode_minus_L: Not really in the search PATH, | |
12742 | # but as the default location of the library. | |
12743 | hardcode_minus_L_GCJ=yes | |
12744 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
12745 | ;; | |
12746 | ||
12747 | irix5* | irix6* | nonstopux*) | |
12748 | if test "$GCC" = yes; then | |
12749 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12750 | else | |
12751 | 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' | |
12752 | fi | |
12753 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12754 | hardcode_libdir_separator_GCJ=: | |
12755 | link_all_deplibs_GCJ=yes | |
12756 | ;; | |
12757 | ||
12758 | netbsd*) | |
12759 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12760 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
12761 | else | |
12762 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
12763 | fi | |
12764 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12765 | hardcode_direct_GCJ=yes | |
12766 | hardcode_shlibpath_var_GCJ=no | |
12767 | ;; | |
12768 | ||
12769 | newsos6) | |
12770 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12771 | hardcode_direct_GCJ=yes | |
12772 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12773 | hardcode_libdir_separator_GCJ=: | |
12774 | hardcode_shlibpath_var_GCJ=no | |
12775 | ;; | |
12776 | ||
12777 | openbsd*) | |
12778 | hardcode_direct_GCJ=yes | |
12779 | hardcode_shlibpath_var_GCJ=no | |
12780 | ||
12781 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12782 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
12783 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
12784 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
12785 | else | |
12786 | case $host_os in | |
12787 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
12788 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12789 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12790 | ;; | |
12791 | *) | |
12792 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
12793 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
12794 | ;; | |
12795 | esac | |
12796 | fi | |
12797 | ;; | |
12798 | ||
12799 | os2*) | |
12800 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12801 | hardcode_minus_L_GCJ=yes | |
12802 | allow_undefined_flag_GCJ=unsupported | |
12803 | 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 $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
12804 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
12805 | ;; | |
12806 | ||
12807 | osf3*) | |
12808 | if test "$GCC" = yes; then | |
12809 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
12810 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12811 | else | |
12812 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
12813 | 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' | |
12814 | fi | |
12815 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12816 | hardcode_libdir_separator_GCJ=: | |
12817 | ;; | |
12818 | ||
12819 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
12820 | if test "$GCC" = yes; then | |
12821 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
12822 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${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' | |
12823 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12824 | else | |
12825 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
12826 | 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' | |
12827 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
12828 | $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' | |
12829 | ||
12830 | # Both c and cxx compiler support -rpath directly | |
12831 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
12832 | fi | |
12833 | hardcode_libdir_separator_GCJ=: | |
12834 | ;; | |
12835 | ||
12836 | sco3.2v5*) | |
12837 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12838 | hardcode_shlibpath_var_GCJ=no | |
12839 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
12840 | runpath_var=LD_RUN_PATH | |
12841 | hardcode_runpath_var=yes | |
12842 | ;; | |
12843 | ||
12844 | solaris*) | |
12845 | no_undefined_flag_GCJ=' -z text' | |
12846 | if test "$GCC" = yes; then | |
12847 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12848 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12849 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
12850 | else | |
12851 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12852 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12853 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
12854 | fi | |
12855 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12856 | hardcode_shlibpath_var_GCJ=no | |
12857 | case $host_os in | |
12858 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12859 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12860 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
12861 | esac | |
12862 | link_all_deplibs_GCJ=yes | |
12863 | ;; | |
12864 | ||
12865 | sunos4*) | |
12866 | if test "x$host_vendor" = xsequent; then | |
12867 | # Use $CC to link under sequent, because it throws in some extra .o | |
12868 | # files that make .init and .fini sections work. | |
12869 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
12870 | else | |
12871 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
12872 | fi | |
12873 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12874 | hardcode_direct_GCJ=yes | |
12875 | hardcode_minus_L_GCJ=yes | |
12876 | hardcode_shlibpath_var_GCJ=no | |
12877 | ;; | |
12878 | ||
12879 | sysv4) | |
12880 | if test "x$host_vendor" = xsni; then | |
12881 | archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12882 | hardcode_direct_GCJ=yes # is this really true??? | |
12883 | else | |
12884 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12885 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
12886 | fi | |
12887 | runpath_var='LD_RUN_PATH' | |
12888 | hardcode_shlibpath_var_GCJ=no | |
12889 | ;; | |
12890 | ||
12891 | sysv4.3*) | |
12892 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12893 | hardcode_shlibpath_var_GCJ=no | |
12894 | export_dynamic_flag_spec_GCJ='-Bexport' | |
12895 | ;; | |
12896 | ||
12897 | sysv4*MP*) | |
12898 | if test -d /usr/nec; then | |
12899 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12900 | hardcode_shlibpath_var_GCJ=no | |
12901 | runpath_var=LD_RUN_PATH | |
12902 | hardcode_runpath_var=yes | |
12903 | ld_shlibs_GCJ=yes | |
12904 | fi | |
12905 | ;; | |
12906 | ||
12907 | sysv4.2uw2*) | |
12908 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
12909 | hardcode_direct_GCJ=yes | |
12910 | hardcode_minus_L_GCJ=no | |
12911 | hardcode_shlibpath_var_GCJ=no | |
12912 | hardcode_runpath_var=yes | |
12913 | runpath_var=LD_RUN_PATH | |
12914 | ;; | |
12915 | ||
12916 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
12917 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
12918 | if test "$GCC" = yes; then | |
12919 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12920 | else | |
12921 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12922 | fi | |
12923 | runpath_var='LD_RUN_PATH' | |
12924 | hardcode_shlibpath_var_GCJ=no | |
12925 | ;; | |
12926 | ||
12927 | sysv5*) | |
12928 | no_undefined_flag_GCJ=' -z text' | |
12929 | # $CC -shared without GNU ld will not create a library from C++ | |
12930 | # object files and a static libstdc++, better avoid it by now | |
12931 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12932 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12933 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
12934 | hardcode_libdir_flag_spec_GCJ= | |
12935 | hardcode_shlibpath_var_GCJ=no | |
12936 | runpath_var='LD_RUN_PATH' | |
12937 | ;; | |
12938 | ||
12939 | uts4*) | |
12940 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12941 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12942 | hardcode_shlibpath_var_GCJ=no | |
12943 | ;; | |
12944 | ||
12945 | *) | |
12946 | ld_shlibs_GCJ=no | |
12947 | ;; | |
12948 | esac | |
12949 | fi | |
12950 | ||
12951 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
12952 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
12953 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
12954 | ||
12955 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12956 | if test "$GCC" = yes; then | |
12957 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12958 | fi | |
12959 | ||
12960 | # | |
12961 | # Do we need to explicitly link libc? | |
12962 | # | |
12963 | archive_cmds_need_lc_GCJ=yes | |
12964 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12965 | case $archive_cmds_GCJ in | |
12966 | *'~'*) | |
12967 | # FIXME: we may have to deal with multi-command sequences. | |
12968 | ;; | |
12969 | '$CC '*) | |
12970 | # Test whether the compiler implicitly links with -lc since on some | |
12971 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12972 | # to ld, don't add -lc before -lgcc. | |
12973 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12974 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
12975 | $rm conftest* | |
12976 | echo 'static int dummy;' > conftest.$ac_ext | |
12977 | ||
12978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12979 | (eval $ac_compile) 2>&5 | |
12980 | ac_status=$? | |
12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12982 | (exit $ac_status); } 2>conftest.err; then | |
12983 | soname=conftest | |
12984 | lib=conftest | |
12985 | libobjs=conftest.$ac_objext | |
12986 | deplibs= | |
12987 | wl=$lt_prog_compiler_wl_GCJ | |
12988 | compiler_flags=-v | |
12989 | linker_flags=-v | |
12990 | verstring= | |
12991 | output_objdir=. | |
12992 | libname=conftest | |
12993 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
12994 | allow_undefined_flag_GCJ= | |
12995 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12996 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12997 | ac_status=$? | |
12998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12999 | (exit $ac_status); } | |
13000 | then | |
13001 | archive_cmds_need_lc_GCJ=no | |
13002 | else | |
13003 | archive_cmds_need_lc_GCJ=yes | |
13004 | fi | |
13005 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
13006 | else | |
13007 | cat conftest.err 1>&5 | |
13008 | fi | |
13009 | $rm conftest* | |
13010 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
13011 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
13012 | ;; | |
13013 | esac | |
13014 | fi | |
13015 | ||
13016 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
13017 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
13018 | hardcode_action_GCJ= | |
13019 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
13020 | test -n "$runpath_var GCJ"; then | |
13021 | ||
13022 | # We can hardcode non-existant directories. | |
13023 | if test "$hardcode_direct_GCJ" != no && | |
13024 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13025 | # have to relink, otherwise we might link with an installed library | |
13026 | # when we should be linking with a yet-to-be-installed one | |
13027 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
13028 | test "$hardcode_minus_L_GCJ" != no; then | |
13029 | # Linking always hardcodes the temporary library directory. | |
13030 | hardcode_action_GCJ=relink | |
13031 | else | |
13032 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13033 | hardcode_action_GCJ=immediate | |
13034 | fi | |
13035 | else | |
13036 | # We cannot hardcode anything, or else we can only hardcode existing | |
13037 | # directories. | |
13038 | hardcode_action_GCJ=unsupported | |
13039 | fi | |
13040 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
13041 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
13042 | ||
13043 | if test "$hardcode_action_GCJ" = relink; then | |
13044 | # Fast installation is not supported | |
13045 | enable_fast_install=no | |
13046 | elif test "$shlibpath_overrides_runpath" = yes || | |
13047 | test "$enable_shared" = no; then | |
13048 | # Fast installation is not necessary | |
13049 | enable_fast_install=needless | |
13050 | fi | |
13051 | ||
13052 | striplib= | |
13053 | old_striplib= | |
13054 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
13055 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
13056 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
13057 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13058 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13059 | echo "$as_me:$LINENO: result: yes" >&5 | |
13060 | echo "${ECHO_T}yes" >&6 | |
13061 | else | |
13062 | echo "$as_me:$LINENO: result: no" >&5 | |
13063 | echo "${ECHO_T}no" >&6 | |
13064 | fi | |
13065 | ||
13066 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
13067 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
13068 | library_names_spec= | |
13069 | libname_spec='lib$name' | |
13070 | soname_spec= | |
13071 | postinstall_cmds= | |
13072 | postuninstall_cmds= | |
13073 | finish_cmds= | |
13074 | finish_eval= | |
13075 | shlibpath_var= | |
13076 | shlibpath_overrides_runpath=unknown | |
13077 | version_type=none | |
13078 | dynamic_linker="$host_os ld.so" | |
13079 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13080 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
13081 | need_lib_prefix=unknown | |
13082 | hardcode_into_libs=no | |
13083 | ||
13084 | # when you set need_version to no, make sure it does not cause -set_version | |
13085 | # flags to be left without arguments | |
13086 | need_version=unknown | |
13087 | ||
13088 | case $host_os in | |
13089 | aix3*) | |
13090 | version_type=linux | |
13091 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
13092 | shlibpath_var=LIBPATH | |
13093 | ||
13094 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13095 | soname_spec='${libname}${release}.so$major' | |
13096 | ;; | |
13097 | ||
13098 | aix4* | aix5*) | |
13099 | version_type=linux | |
13100 | if test "$host_cpu" = ia64; then | |
13101 | # AIX 5 supports IA64 | |
13102 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
13103 | shlibpath_var=LD_LIBRARY_PATH | |
13104 | else | |
13105 | # With GCC up to 2.95.x, collect2 would create an import file | |
13106 | # for dependence libraries. The import file would start with | |
13107 | # the line `#! .'. This would cause the generated library to | |
13108 | # depend on `.', always an invalid library. This was fixed in | |
13109 | # development snapshots of GCC prior to 3.0. | |
13110 | case $host_os in | |
13111 | aix4 | aix4.[01] | aix4.[01].*) | |
13112 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13113 | echo ' yes ' | |
13114 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
13115 | : | |
13116 | else | |
13117 | can_build_shared=no | |
13118 | fi | |
13119 | ;; | |
13120 | esac | |
13121 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13122 | # soname into executable. Probably we can add versioning support to | |
13123 | # collect2, so additional links can be useful in future. | |
13124 | if test "$aix_use_runtimelinking" = yes; then | |
13125 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13126 | # instead of lib<name>.a to let people know that these are not | |
13127 | # typical AIX shared libraries. | |
13128 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13129 | else | |
13130 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13131 | # and later when we are not doing run time linking. | |
13132 | library_names_spec='${libname}${release}.a $libname.a' | |
13133 | soname_spec='${libname}${release}.so$major' | |
13134 | fi | |
13135 | shlibpath_var=LIBPATH | |
13136 | fi | |
13137 | ;; | |
13138 | ||
13139 | amigaos*) | |
13140 | library_names_spec='$libname.ixlibrary $libname.a' | |
13141 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13142 | 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' | |
13143 | ;; | |
13144 | ||
13145 | beos*) | |
13146 | library_names_spec='${libname}.so' | |
13147 | dynamic_linker="$host_os ld.so" | |
13148 | shlibpath_var=LIBRARY_PATH | |
13149 | ;; | |
13150 | ||
13151 | bsdi4*) | |
13152 | version_type=linux | |
13153 | need_version=no | |
13154 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13155 | soname_spec='${libname}${release}.so$major' | |
13156 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13157 | shlibpath_var=LD_LIBRARY_PATH | |
13158 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13159 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13160 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13161 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13162 | # libtool to hard-code these into programs | |
13163 | ;; | |
13164 | ||
13165 | cygwin* | mingw* | pw32*) | |
13166 | version_type=windows | |
13167 | need_version=no | |
13168 | need_lib_prefix=no | |
13169 | case $GCC,$host_os in | |
13170 | yes,cygwin*) | |
13171 | library_names_spec='$libname.dll.a' | |
13172 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
13173 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
13174 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
13175 | dldir=$destdir/`dirname \$dlpath`~ | |
13176 | test -d \$dldir || mkdir -p \$dldir~ | |
13177 | $install_prog .libs/$dlname \$dldir/$dlname' | |
13178 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13179 | dlpath=$dir/\$dldll~ | |
13180 | $rm \$dlpath' | |
13181 | ;; | |
13182 | yes,mingw*) | |
13183 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
13184 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
13185 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
13186 | # It is most probably a Windows format PATH printed by | |
13187 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13188 | # path with ; separators, and with drive letters. We can handle the | |
13189 | # drive letters (cygwin fileutils understands them), so leave them, | |
13190 | # especially as we might pass files found there to a mingw objdump, | |
13191 | # which wouldn't understand a cygwinified path. Ahh. | |
13192 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
13193 | else | |
13194 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
13195 | fi | |
13196 | ;; | |
13197 | yes,pw32*) | |
13198 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
13199 | ;; | |
13200 | *) | |
13201 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
13202 | ;; | |
13203 | esac | |
13204 | dynamic_linker='Win32 ld.exe' | |
13205 | # FIXME: first we should search . and the directory the executable is in | |
13206 | shlibpath_var=PATH | |
13207 | ;; | |
13208 | ||
13209 | darwin* | rhapsody*) | |
13210 | dynamic_linker="$host_os dyld" | |
13211 | version_type=darwin | |
13212 | need_lib_prefix=no | |
13213 | need_version=no | |
13214 | # FIXME: Relying on posixy $() will cause problems for | |
13215 | # cross-compilation, but unfortunately the echo tests do not | |
13216 | # yet detect zsh echo's removal of \ escapes. | |
13217 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
13218 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
13219 | shlibpath_overrides_runpath=yes | |
13220 | shlibpath_var=DYLD_LIBRARY_PATH | |
13221 | ;; | |
13222 | ||
13223 | dgux*) | |
13224 | version_type=linux | |
13225 | need_lib_prefix=no | |
13226 | need_version=no | |
13227 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13228 | soname_spec='${libname}${release}.so$major' | |
13229 | shlibpath_var=LD_LIBRARY_PATH | |
13230 | ;; | |
13231 | ||
13232 | freebsd1*) | |
13233 | dynamic_linker=no | |
13234 | ;; | |
13235 | ||
13236 | freebsd*) | |
13237 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
13238 | version_type=freebsd-$objformat | |
13239 | case $version_type in | |
13240 | freebsd-elf*) | |
13241 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
13242 | need_version=no | |
13243 | need_lib_prefix=no | |
13244 | ;; | |
13245 | freebsd-*) | |
13246 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
13247 | need_version=yes | |
13248 | ;; | |
13249 | esac | |
13250 | shlibpath_var=LD_LIBRARY_PATH | |
13251 | case $host_os in | |
13252 | freebsd2*) | |
13253 | shlibpath_overrides_runpath=yes | |
13254 | ;; | |
13255 | freebsd3.01* | freebsdelf3.01*) | |
13256 | shlibpath_overrides_runpath=yes | |
13257 | hardcode_into_libs=yes | |
13258 | ;; | |
13259 | *) # from 3.2 on | |
13260 | shlibpath_overrides_runpath=no | |
13261 | hardcode_into_libs=yes | |
13262 | ;; | |
13263 | esac | |
13264 | ;; | |
13265 | ||
13266 | gnu*) | |
13267 | version_type=linux | |
13268 | need_lib_prefix=no | |
13269 | need_version=no | |
13270 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
13271 | soname_spec='${libname}${release}.so$major' | |
13272 | shlibpath_var=LD_LIBRARY_PATH | |
13273 | hardcode_into_libs=yes | |
13274 | ;; | |
13275 | ||
13276 | hpux9* | hpux10* | hpux11*) | |
13277 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13278 | # link against other versions. | |
13279 | version_type=sunos | |
13280 | need_lib_prefix=no | |
13281 | need_version=no | |
13282 | if test "$host_cpu" = ia64; then | |
13283 | hardcode_into_libs=yes | |
13284 | dynamic_linker="$host_os dld.so" | |
13285 | shlibpath_var=LD_LIBRARY_PATH | |
13286 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13287 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13288 | soname_spec='${libname}${release}.so$major' | |
13289 | if test "X$HPUX_IA64_MODE" = X32; then | |
13290 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13291 | else | |
13292 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13293 | fi | |
13294 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13295 | else | |
13296 | dynamic_linker="$host_os dld.sl" | |
13297 | shlibpath_var=SHLIB_PATH | |
13298 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13299 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
13300 | soname_spec='${libname}${release}.sl$major' | |
13301 | fi | |
13302 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13303 | postinstall_cmds='chmod 555 $lib' | |
13304 | ;; | |
13305 | ||
13306 | irix5* | irix6* | nonstopux*) | |
13307 | case $host_os in | |
13308 | nonstopux*) version_type=nonstopux ;; | |
13309 | *) version_type=irix ;; | |
13310 | esac | |
13311 | need_lib_prefix=no | |
13312 | need_version=no | |
13313 | soname_spec='${libname}${release}.so$major' | |
13314 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
13315 | case $host_os in | |
13316 | irix5* | nonstopux*) | |
13317 | libsuff= shlibsuff= | |
13318 | ;; | |
13319 | *) | |
13320 | case $LD in # libtool.m4 will add one of these switches to LD | |
13321 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
13322 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13323 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13324 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13325 | esac | |
13326 | ;; | |
13327 | esac | |
13328 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13329 | shlibpath_overrides_runpath=no | |
13330 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13331 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13332 | ;; | |
13333 | ||
13334 | # No shared lib support for Linux oldld, aout, or coff. | |
13335 | linux*oldld* | linux*aout* | linux*coff*) | |
13336 | dynamic_linker=no | |
13337 | ;; | |
13338 | ||
13339 | # This must be Linux ELF. | |
13340 | linux*) | |
13341 | version_type=linux | |
13342 | need_lib_prefix=no | |
13343 | need_version=no | |
13344 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13345 | soname_spec='${libname}${release}.so$major' | |
13346 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13347 | libsuff= | |
13348 | if test "x$LINUX_64_MODE" = x64; then | |
13349 | # Some platforms are per default 64-bit, so there's no /lib64 | |
13350 | if test -d /lib64; then | |
13351 | libsuff=64 | |
13352 | fi | |
13353 | fi | |
13354 | shlibpath_var=LD_LIBRARY_PATH | |
13355 | shlibpath_overrides_runpath=no | |
13356 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
13357 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
13358 | # This implies no fast_install, which is unacceptable. | |
13359 | # Some rework will be needed to allow for fast_install | |
13360 | # before this can be enabled. | |
13361 | hardcode_into_libs=yes | |
13362 | ||
13363 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
13364 | # powerpc, because MkLinux only supported shared libraries with the | |
13365 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13366 | # most powerpc-linux boxes support dynamic linking these days and | |
13367 | # people can always --disable-shared, the test was removed, and we | |
13368 | # assume the GNU/Linux dynamic linker is in use. | |
13369 | dynamic_linker='GNU/Linux ld.so' | |
13370 | ;; | |
13371 | ||
13372 | netbsd*) | |
13373 | version_type=sunos | |
13374 | need_lib_prefix=no | |
13375 | need_version=no | |
13376 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13377 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
13378 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13379 | dynamic_linker='NetBSD (a.out) ld.so' | |
13380 | else | |
13381 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
13382 | soname_spec='${libname}${release}.so$major' | |
13383 | dynamic_linker='NetBSD ld.elf_so' | |
13384 | fi | |
13385 | shlibpath_var=LD_LIBRARY_PATH | |
13386 | shlibpath_overrides_runpath=yes | |
13387 | hardcode_into_libs=yes | |
13388 | ;; | |
13389 | ||
13390 | newsos6) | |
13391 | version_type=linux | |
13392 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13393 | shlibpath_var=LD_LIBRARY_PATH | |
13394 | shlibpath_overrides_runpath=yes | |
13395 | ;; | |
13396 | ||
13397 | nto-qnx) | |
13398 | version_type=linux | |
13399 | need_lib_prefix=no | |
13400 | need_version=no | |
13401 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13402 | soname_spec='${libname}${release}.so$major' | |
13403 | shlibpath_var=LD_LIBRARY_PATH | |
13404 | shlibpath_overrides_runpath=yes | |
13405 | ;; | |
13406 | ||
13407 | openbsd*) | |
13408 | version_type=sunos | |
13409 | need_lib_prefix=no | |
13410 | need_version=no | |
13411 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
13412 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13413 | shlibpath_var=LD_LIBRARY_PATH | |
13414 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13415 | case $host_os in | |
13416 | openbsd2.[89] | openbsd2.[89].*) | |
13417 | shlibpath_overrides_runpath=no | |
13418 | ;; | |
13419 | *) | |
13420 | shlibpath_overrides_runpath=yes | |
13421 | ;; | |
13422 | esac | |
13423 | else | |
13424 | shlibpath_overrides_runpath=yes | |
13425 | fi | |
13426 | ;; | |
13427 | ||
13428 | os2*) | |
13429 | libname_spec='$name' | |
13430 | need_lib_prefix=no | |
13431 | library_names_spec='$libname.dll $libname.a' | |
13432 | dynamic_linker='OS/2 ld.exe' | |
13433 | shlibpath_var=LIBPATH | |
13434 | ;; | |
13435 | ||
13436 | osf3* | osf4* | osf5*) | |
13437 | version_type=osf | |
13438 | need_lib_prefix=no | |
13439 | need_version=no | |
13440 | soname_spec='${libname}${release}.so' | |
13441 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
13442 | shlibpath_var=LD_LIBRARY_PATH | |
13443 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13444 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13445 | ;; | |
13446 | ||
13447 | sco3.2v5*) | |
13448 | version_type=osf | |
13449 | soname_spec='${libname}${release}.so$major' | |
13450 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13451 | shlibpath_var=LD_LIBRARY_PATH | |
13452 | ;; | |
13453 | ||
13454 | solaris*) | |
13455 | version_type=linux | |
13456 | need_lib_prefix=no | |
13457 | need_version=no | |
13458 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13459 | soname_spec='${libname}${release}.so$major' | |
13460 | shlibpath_var=LD_LIBRARY_PATH | |
13461 | shlibpath_overrides_runpath=yes | |
13462 | hardcode_into_libs=yes | |
13463 | # ldd complains unless libraries are executable | |
13464 | postinstall_cmds='chmod +x $lib' | |
13465 | ;; | |
13466 | ||
13467 | sunos4*) | |
13468 | version_type=sunos | |
13469 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
13470 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13471 | shlibpath_var=LD_LIBRARY_PATH | |
13472 | shlibpath_overrides_runpath=yes | |
13473 | if test "$with_gnu_ld" = yes; then | |
13474 | need_lib_prefix=no | |
13475 | fi | |
13476 | need_version=yes | |
13477 | ;; | |
13478 | ||
13479 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
13480 | version_type=linux | |
13481 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13482 | soname_spec='${libname}${release}.so$major' | |
13483 | shlibpath_var=LD_LIBRARY_PATH | |
13484 | case $host_vendor in | |
13485 | sni) | |
13486 | shlibpath_overrides_runpath=no | |
13487 | ;; | |
13488 | motorola) | |
13489 | need_lib_prefix=no | |
13490 | need_version=no | |
13491 | shlibpath_overrides_runpath=no | |
13492 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13493 | ;; | |
13494 | esac | |
13495 | ;; | |
13496 | ||
13497 | sysv4*MP*) | |
13498 | if test -d /usr/nec ;then | |
13499 | version_type=linux | |
13500 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
13501 | soname_spec='$libname.so.$major' | |
13502 | shlibpath_var=LD_LIBRARY_PATH | |
13503 | fi | |
13504 | ;; | |
13505 | ||
13506 | uts4*) | |
13507 | version_type=linux | |
13508 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13509 | soname_spec='${libname}${release}.so$major' | |
13510 | shlibpath_var=LD_LIBRARY_PATH | |
13511 | ;; | |
13512 | ||
13513 | *) | |
13514 | dynamic_linker=no | |
13515 | ;; | |
13516 | esac | |
13517 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
13518 | echo "${ECHO_T}$dynamic_linker" >&6 | |
13519 | test "$dynamic_linker" = no && can_build_shared=no | |
13520 | ||
13521 | if test "x$enable_dlopen" != xyes; then | |
13522 | enable_dlopen=unknown | |
13523 | enable_dlopen_self=unknown | |
13524 | enable_dlopen_self_static=unknown | |
13525 | else | |
13526 | lt_cv_dlopen=no | |
13527 | lt_cv_dlopen_libs= | |
13528 | ||
13529 | case $host_os in | |
13530 | beos*) | |
13531 | lt_cv_dlopen="load_add_on" | |
13532 | lt_cv_dlopen_libs= | |
13533 | lt_cv_dlopen_self=yes | |
13534 | ;; | |
13535 | ||
13536 | cygwin* | mingw* | pw32*) | |
13537 | lt_cv_dlopen="LoadLibrary" | |
13538 | lt_cv_dlopen_libs= | |
13539 | ;; | |
13540 | ||
13541 | *) | |
13542 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
13543 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
13544 | if test "${ac_cv_func_shl_load+set}" = set; then | |
13545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13546 | else | |
13547 | cat >conftest.$ac_ext <<_ACEOF | |
13548 | #line $LINENO "configure" | |
13549 | #include "confdefs.h" | |
13550 | /* System header to define __stub macros and hopefully few prototypes, | |
13551 | which can conflict with char shl_load (); below. */ | |
13552 | #include <assert.h> | |
13553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13554 | #ifdef __cplusplus | |
13555 | extern "C" | |
13556 | #endif | |
13557 | /* We use char because int might match the return type of a gcc2 | |
13558 | builtin and then its argument prototype would still apply. */ | |
13559 | char shl_load (); | |
13560 | char (*f) (); | |
13561 | ||
13562 | #ifdef F77_DUMMY_MAIN | |
13563 | # ifdef __cplusplus | |
13564 | extern "C" | |
13565 | # endif | |
13566 | int F77_DUMMY_MAIN() { return 1; } | |
13567 | #endif | |
13568 | int | |
13569 | main () | |
13570 | { | |
13571 | /* The GNU C library defines this for functions which it implements | |
13572 | to always fail with ENOSYS. Some functions are actually named | |
13573 | something starting with __ and the normal name is an alias. */ | |
13574 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
13575 | choke me | |
13576 | #else | |
13577 | f = shl_load; | |
13578 | #endif | |
13579 | ||
13580 | ; | |
13581 | return 0; | |
13582 | } | |
13583 | _ACEOF | |
13584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13586 | (eval $ac_link) 2>&5 | |
13587 | ac_status=$? | |
13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13589 | (exit $ac_status); } && | |
13590 | { ac_try='test -s conftest$ac_exeext' | |
13591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13592 | (eval $ac_try) 2>&5 | |
13593 | ac_status=$? | |
13594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13595 | (exit $ac_status); }; }; then | |
13596 | ac_cv_func_shl_load=yes | |
13597 | else | |
13598 | echo "$as_me: failed program was:" >&5 | |
13599 | cat conftest.$ac_ext >&5 | |
13600 | ac_cv_func_shl_load=no | |
13601 | fi | |
13602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13603 | fi | |
13604 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
13605 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
13606 | if test $ac_cv_func_shl_load = yes; then | |
13607 | lt_cv_dlopen="shl_load" | |
13608 | else | |
13609 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
13610 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
13611 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
13612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13613 | else | |
13614 | ac_check_lib_save_LIBS=$LIBS | |
13615 | LIBS="-ldld $LIBS" | |
13616 | cat >conftest.$ac_ext <<_ACEOF | |
13617 | #line $LINENO "configure" | |
13618 | #include "confdefs.h" | |
13619 | ||
13620 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13621 | #ifdef __cplusplus | |
13622 | extern "C" | |
13623 | #endif | |
13624 | /* We use char because int might match the return type of a gcc2 | |
13625 | builtin and then its argument prototype would still apply. */ | |
13626 | char shl_load (); | |
13627 | #ifdef F77_DUMMY_MAIN | |
13628 | # ifdef __cplusplus | |
13629 | extern "C" | |
13630 | # endif | |
13631 | int F77_DUMMY_MAIN() { return 1; } | |
13632 | #endif | |
13633 | int | |
13634 | main () | |
13635 | { | |
13636 | shl_load (); | |
13637 | ; | |
13638 | return 0; | |
13639 | } | |
13640 | _ACEOF | |
13641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13643 | (eval $ac_link) 2>&5 | |
13644 | ac_status=$? | |
13645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13646 | (exit $ac_status); } && | |
13647 | { ac_try='test -s conftest$ac_exeext' | |
13648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13649 | (eval $ac_try) 2>&5 | |
13650 | ac_status=$? | |
13651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13652 | (exit $ac_status); }; }; then | |
13653 | ac_cv_lib_dld_shl_load=yes | |
13654 | else | |
13655 | echo "$as_me: failed program was:" >&5 | |
13656 | cat conftest.$ac_ext >&5 | |
13657 | ac_cv_lib_dld_shl_load=no | |
13658 | fi | |
13659 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13660 | LIBS=$ac_check_lib_save_LIBS | |
13661 | fi | |
13662 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
13663 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
13664 | if test $ac_cv_lib_dld_shl_load = yes; then | |
13665 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
13666 | else | |
13667 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
13668 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
13669 | if test "${ac_cv_func_dlopen+set}" = set; then | |
13670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13671 | else | |
13672 | cat >conftest.$ac_ext <<_ACEOF | |
13673 | #line $LINENO "configure" | |
13674 | #include "confdefs.h" | |
13675 | /* System header to define __stub macros and hopefully few prototypes, | |
13676 | which can conflict with char dlopen (); below. */ | |
13677 | #include <assert.h> | |
13678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13679 | #ifdef __cplusplus | |
13680 | extern "C" | |
13681 | #endif | |
13682 | /* We use char because int might match the return type of a gcc2 | |
13683 | builtin and then its argument prototype would still apply. */ | |
13684 | char dlopen (); | |
13685 | char (*f) (); | |
13686 | ||
13687 | #ifdef F77_DUMMY_MAIN | |
13688 | # ifdef __cplusplus | |
13689 | extern "C" | |
13690 | # endif | |
13691 | int F77_DUMMY_MAIN() { return 1; } | |
13692 | #endif | |
13693 | int | |
13694 | main () | |
13695 | { | |
13696 | /* The GNU C library defines this for functions which it implements | |
13697 | to always fail with ENOSYS. Some functions are actually named | |
13698 | something starting with __ and the normal name is an alias. */ | |
13699 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
13700 | choke me | |
13701 | #else | |
13702 | f = dlopen; | |
13703 | #endif | |
13704 | ||
13705 | ; | |
13706 | return 0; | |
13707 | } | |
13708 | _ACEOF | |
13709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13711 | (eval $ac_link) 2>&5 | |
13712 | ac_status=$? | |
13713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13714 | (exit $ac_status); } && | |
13715 | { ac_try='test -s conftest$ac_exeext' | |
13716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13717 | (eval $ac_try) 2>&5 | |
13718 | ac_status=$? | |
13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13720 | (exit $ac_status); }; }; then | |
13721 | ac_cv_func_dlopen=yes | |
13722 | else | |
13723 | echo "$as_me: failed program was:" >&5 | |
13724 | cat conftest.$ac_ext >&5 | |
13725 | ac_cv_func_dlopen=no | |
13726 | fi | |
13727 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13728 | fi | |
13729 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
13730 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
13731 | if test $ac_cv_func_dlopen = yes; then | |
13732 | lt_cv_dlopen="dlopen" | |
13733 | else | |
13734 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
13735 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
13736 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
13737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13738 | else | |
13739 | ac_check_lib_save_LIBS=$LIBS | |
13740 | LIBS="-ldl $LIBS" | |
13741 | cat >conftest.$ac_ext <<_ACEOF | |
13742 | #line $LINENO "configure" | |
13743 | #include "confdefs.h" | |
13744 | ||
13745 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13746 | #ifdef __cplusplus | |
13747 | extern "C" | |
13748 | #endif | |
13749 | /* We use char because int might match the return type of a gcc2 | |
13750 | builtin and then its argument prototype would still apply. */ | |
13751 | char dlopen (); | |
13752 | #ifdef F77_DUMMY_MAIN | |
13753 | # ifdef __cplusplus | |
13754 | extern "C" | |
13755 | # endif | |
13756 | int F77_DUMMY_MAIN() { return 1; } | |
13757 | #endif | |
13758 | int | |
13759 | main () | |
13760 | { | |
13761 | dlopen (); | |
13762 | ; | |
13763 | return 0; | |
13764 | } | |
13765 | _ACEOF | |
13766 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13768 | (eval $ac_link) 2>&5 | |
13769 | ac_status=$? | |
13770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13771 | (exit $ac_status); } && | |
13772 | { ac_try='test -s conftest$ac_exeext' | |
13773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13774 | (eval $ac_try) 2>&5 | |
13775 | ac_status=$? | |
13776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13777 | (exit $ac_status); }; }; then | |
13778 | ac_cv_lib_dl_dlopen=yes | |
13779 | else | |
13780 | echo "$as_me: failed program was:" >&5 | |
13781 | cat conftest.$ac_ext >&5 | |
13782 | ac_cv_lib_dl_dlopen=no | |
13783 | fi | |
13784 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13785 | LIBS=$ac_check_lib_save_LIBS | |
13786 | fi | |
13787 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
13788 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
13789 | if test $ac_cv_lib_dl_dlopen = yes; then | |
13790 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
13791 | else | |
13792 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
13793 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
13794 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
13795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13796 | else | |
13797 | ac_check_lib_save_LIBS=$LIBS | |
13798 | LIBS="-lsvld $LIBS" | |
13799 | cat >conftest.$ac_ext <<_ACEOF | |
13800 | #line $LINENO "configure" | |
13801 | #include "confdefs.h" | |
13802 | ||
13803 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13804 | #ifdef __cplusplus | |
13805 | extern "C" | |
13806 | #endif | |
13807 | /* We use char because int might match the return type of a gcc2 | |
13808 | builtin and then its argument prototype would still apply. */ | |
13809 | char dlopen (); | |
13810 | #ifdef F77_DUMMY_MAIN | |
13811 | # ifdef __cplusplus | |
13812 | extern "C" | |
13813 | # endif | |
13814 | int F77_DUMMY_MAIN() { return 1; } | |
13815 | #endif | |
13816 | int | |
13817 | main () | |
13818 | { | |
13819 | dlopen (); | |
13820 | ; | |
13821 | return 0; | |
13822 | } | |
13823 | _ACEOF | |
13824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13826 | (eval $ac_link) 2>&5 | |
13827 | ac_status=$? | |
13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13829 | (exit $ac_status); } && | |
13830 | { ac_try='test -s conftest$ac_exeext' | |
13831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13832 | (eval $ac_try) 2>&5 | |
13833 | ac_status=$? | |
13834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13835 | (exit $ac_status); }; }; then | |
13836 | ac_cv_lib_svld_dlopen=yes | |
13837 | else | |
13838 | echo "$as_me: failed program was:" >&5 | |
13839 | cat conftest.$ac_ext >&5 | |
13840 | ac_cv_lib_svld_dlopen=no | |
13841 | fi | |
13842 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13843 | LIBS=$ac_check_lib_save_LIBS | |
13844 | fi | |
13845 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
13846 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
13847 | if test $ac_cv_lib_svld_dlopen = yes; then | |
13848 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
13849 | else | |
13850 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
13851 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
13852 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
13853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13854 | else | |
13855 | ac_check_lib_save_LIBS=$LIBS | |
13856 | LIBS="-ldld $LIBS" | |
13857 | cat >conftest.$ac_ext <<_ACEOF | |
13858 | #line $LINENO "configure" | |
13859 | #include "confdefs.h" | |
13860 | ||
13861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13862 | #ifdef __cplusplus | |
13863 | extern "C" | |
13864 | #endif | |
13865 | /* We use char because int might match the return type of a gcc2 | |
13866 | builtin and then its argument prototype would still apply. */ | |
13867 | char dld_link (); | |
13868 | #ifdef F77_DUMMY_MAIN | |
13869 | # ifdef __cplusplus | |
13870 | extern "C" | |
13871 | # endif | |
13872 | int F77_DUMMY_MAIN() { return 1; } | |
13873 | #endif | |
13874 | int | |
13875 | main () | |
13876 | { | |
13877 | dld_link (); | |
13878 | ; | |
13879 | return 0; | |
13880 | } | |
13881 | _ACEOF | |
13882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13884 | (eval $ac_link) 2>&5 | |
13885 | ac_status=$? | |
13886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13887 | (exit $ac_status); } && | |
13888 | { ac_try='test -s conftest$ac_exeext' | |
13889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13890 | (eval $ac_try) 2>&5 | |
13891 | ac_status=$? | |
13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13893 | (exit $ac_status); }; }; then | |
13894 | ac_cv_lib_dld_dld_link=yes | |
13895 | else | |
13896 | echo "$as_me: failed program was:" >&5 | |
13897 | cat conftest.$ac_ext >&5 | |
13898 | ac_cv_lib_dld_dld_link=no | |
13899 | fi | |
13900 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13901 | LIBS=$ac_check_lib_save_LIBS | |
13902 | fi | |
13903 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
13904 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
13905 | if test $ac_cv_lib_dld_dld_link = yes; then | |
13906 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
13907 | fi | |
13908 | ||
13909 | ||
13910 | fi | |
13911 | ||
13912 | ||
13913 | fi | |
13914 | ||
13915 | ||
13916 | fi | |
13917 | ||
13918 | ||
13919 | fi | |
13920 | ||
13921 | ||
13922 | fi | |
13923 | ||
13924 | ;; | |
13925 | esac | |
13926 | ||
13927 | if test "x$lt_cv_dlopen" != xno; then | |
13928 | enable_dlopen=yes | |
13929 | else | |
13930 | enable_dlopen=no | |
13931 | fi | |
13932 | ||
13933 | case $lt_cv_dlopen in | |
13934 | dlopen) | |
13935 | save_CPPFLAGS="$CPPFLAGS" | |
13936 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
13937 | ||
13938 | save_LDFLAGS="$LDFLAGS" | |
13939 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
13940 | ||
13941 | save_LIBS="$LIBS" | |
13942 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
13943 | ||
13944 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
13945 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
13946 | if test "${lt_cv_dlopen_self+set}" = set; then | |
13947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13948 | else | |
13949 | if test "$cross_compiling" = yes; then : | |
13950 | lt_cv_dlopen_self=cross | |
13951 | else | |
13952 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13953 | lt_status=$lt_dlunknown | |
13954 | cat > conftest.$ac_ext <<EOF | |
13955 | #line 13955 "configure" | |
13956 | #include "confdefs.h" | |
13957 | ||
13958 | #if HAVE_DLFCN_H | |
13959 | #include <dlfcn.h> | |
13960 | #endif | |
13961 | ||
13962 | #include <stdio.h> | |
13963 | ||
13964 | #ifdef RTLD_GLOBAL | |
13965 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13966 | #else | |
13967 | # ifdef DL_GLOBAL | |
13968 | # define LT_DLGLOBAL DL_GLOBAL | |
13969 | # else | |
13970 | # define LT_DLGLOBAL 0 | |
13971 | # endif | |
13972 | #endif | |
13973 | ||
13974 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13975 | find out it does not work in some platform. */ | |
13976 | #ifndef LT_DLLAZY_OR_NOW | |
13977 | # ifdef RTLD_LAZY | |
13978 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13979 | # else | |
13980 | # ifdef DL_LAZY | |
13981 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13982 | # else | |
13983 | # ifdef RTLD_NOW | |
13984 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13985 | # else | |
13986 | # ifdef DL_NOW | |
13987 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13988 | # else | |
13989 | # define LT_DLLAZY_OR_NOW 0 | |
13990 | # endif | |
13991 | # endif | |
13992 | # endif | |
13993 | # endif | |
13994 | #endif | |
13995 | ||
13996 | #ifdef __cplusplus | |
13997 | extern "C" void exit (int); | |
13998 | #endif | |
13999 | ||
14000 | void fnord() { int i=42;} | |
14001 | int main () | |
14002 | { | |
14003 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
14004 | int status = $lt_dlunknown; | |
14005 | ||
14006 | if (self) | |
14007 | { | |
14008 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
14009 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
14010 | /* dlclose (self); */ | |
14011 | } | |
14012 | ||
14013 | exit (status); | |
14014 | } | |
14015 | EOF | |
14016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14017 | (eval $ac_link) 2>&5 | |
14018 | ac_status=$? | |
14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14020 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
14021 | (./conftest; exit; ) 2>/dev/null | |
14022 | lt_status=$? | |
14023 | case x$lt_status in | |
14024 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
14025 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
14026 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
14027 | esac | |
14028 | else : | |
14029 | # compilation failed | |
14030 | lt_cv_dlopen_self=no | |
14031 | fi | |
14032 | fi | |
14033 | rm -fr conftest* | |
14034 | ||
14035 | ||
14036 | fi | |
14037 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
14038 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
14039 | ||
14040 | if test "x$lt_cv_dlopen_self" = xyes; then | |
14041 | LDFLAGS="$LDFLAGS $link_static_flag" | |
14042 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
14043 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
14044 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
14045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14046 | else | |
14047 | if test "$cross_compiling" = yes; then : | |
14048 | lt_cv_dlopen_self_static=cross | |
14049 | else | |
14050 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
14051 | lt_status=$lt_dlunknown | |
14052 | cat > conftest.$ac_ext <<EOF | |
14053 | #line 14053 "configure" | |
14054 | #include "confdefs.h" | |
14055 | ||
14056 | #if HAVE_DLFCN_H | |
14057 | #include <dlfcn.h> | |
14058 | #endif | |
14059 | ||
14060 | #include <stdio.h> | |
14061 | ||
14062 | #ifdef RTLD_GLOBAL | |
14063 | # define LT_DLGLOBAL RTLD_GLOBAL | |
14064 | #else | |
14065 | # ifdef DL_GLOBAL | |
14066 | # define LT_DLGLOBAL DL_GLOBAL | |
14067 | # else | |
14068 | # define LT_DLGLOBAL 0 | |
14069 | # endif | |
14070 | #endif | |
14071 | ||
14072 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
14073 | find out it does not work in some platform. */ | |
14074 | #ifndef LT_DLLAZY_OR_NOW | |
14075 | # ifdef RTLD_LAZY | |
14076 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
14077 | # else | |
14078 | # ifdef DL_LAZY | |
14079 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
14080 | # else | |
14081 | # ifdef RTLD_NOW | |
14082 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
14083 | # else | |
14084 | # ifdef DL_NOW | |
14085 | # define LT_DLLAZY_OR_NOW DL_NOW | |
14086 | # else | |
14087 | # define LT_DLLAZY_OR_NOW 0 | |
14088 | # endif | |
14089 | # endif | |
14090 | # endif | |
14091 | # endif | |
14092 | #endif | |
14093 | ||
14094 | #ifdef __cplusplus | |
14095 | extern "C" void exit (int); | |
14096 | #endif | |
14097 | ||
14098 | void fnord() { int i=42;} | |
14099 | int main () | |
14100 | { | |
14101 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
14102 | int status = $lt_dlunknown; | |
14103 | ||
14104 | if (self) | |
14105 | { | |
14106 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
14107 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
14108 | /* dlclose (self); */ | |
14109 | } | |
14110 | ||
14111 | exit (status); | |
14112 | } | |
14113 | EOF | |
14114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14115 | (eval $ac_link) 2>&5 | |
14116 | ac_status=$? | |
14117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14118 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
14119 | (./conftest; exit; ) 2>/dev/null | |
14120 | lt_status=$? | |
14121 | case x$lt_status in | |
14122 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
14123 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
14124 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
14125 | esac | |
14126 | else : | |
14127 | # compilation failed | |
14128 | lt_cv_dlopen_self_static=no | |
14129 | fi | |
14130 | fi | |
14131 | rm -fr conftest* | |
14132 | ||
14133 | ||
14134 | fi | |
14135 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
14136 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
14137 | fi | |
14138 | ||
14139 | CPPFLAGS="$save_CPPFLAGS" | |
14140 | LDFLAGS="$save_LDFLAGS" | |
14141 | LIBS="$save_LIBS" | |
14142 | ;; | |
14143 | esac | |
14144 | ||
14145 | case $lt_cv_dlopen_self in | |
14146 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
14147 | *) enable_dlopen_self=unknown ;; | |
14148 | esac | |
14149 | ||
14150 | case $lt_cv_dlopen_self_static in | |
14151 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
14152 | *) enable_dlopen_self_static=unknown ;; | |
14153 | esac | |
14154 | fi | |
14155 | ||
14156 | ||
14157 | # The else clause should only fire when bootstrapping the | |
14158 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
14159 | # with your package, and you will get complaints that there are | |
14160 | # no rules to generate ltmain.sh. | |
14161 | if test -f "$ltmain"; then | |
14162 | # Now quote all the things that may contain metacharacters while being | |
14163 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
14164 | # variables and quote the copies for generation of the libtool script. | |
14165 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
14166 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
14167 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
14168 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
14169 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
14170 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14171 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
14172 | old_postinstall_cmds old_postuninstall_cmds \ | |
14173 | compiler_GCJ \ | |
14174 | CC_GCJ \ | |
14175 | LD_GCJ \ | |
14176 | lt_prog_compiler_wl_GCJ \ | |
14177 | lt_prog_compiler_pic_GCJ \ | |
14178 | lt_prog_compiler_static_GCJ \ | |
14179 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
14180 | export_dynamic_flag_spec_GCJ \ | |
14181 | thread_safe_flag_spec_GCJ \ | |
14182 | whole_archive_flag_spec_GCJ \ | |
14183 | old_archive_cmds_GCJ \ | |
14184 | old_archive_from_new_cmds_GCJ \ | |
14185 | predep_objects_GCJ \ | |
14186 | postdep_objects_GCJ \ | |
14187 | predeps_GCJ \ | |
14188 | postdeps_GCJ \ | |
14189 | compiler_lib_search_path_GCJ \ | |
14190 | archive_cmds_GCJ \ | |
14191 | archive_expsym_cmds_GCJ \ | |
14192 | postinstall_cmds_GCJ \ | |
14193 | postuninstall_cmds_GCJ \ | |
14194 | old_archive_from_expsyms_cmds_GCJ \ | |
14195 | allow_undefined_flag_GCJ \ | |
14196 | no_undefined_flag_GCJ \ | |
14197 | export_symbols_cmds_GCJ \ | |
14198 | hardcode_libdir_flag_spec_GCJ \ | |
14199 | hardcode_libdir_separator_GCJ \ | |
14200 | lt_cv_prog_compiler_c_o_GCJ \ | |
14201 | exclude_expsyms_GCJ \ | |
14202 | include_expsyms_GCJ; do | |
14203 | ||
14204 | case $var in | |
14205 | old_archive_cmds_GCJ | \ | |
14206 | old_archive_from_new_cmds_GCJ | \ | |
14207 | archive_cmds_GCJ | \ | |
14208 | archive_expsym_cmds_GCJ | \ | |
14209 | old_archive_from_expsyms_cmds_GCJ | \ | |
14210 | export_symbols_cmds_GCJ | \ | |
14211 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
14212 | postinstall_cmds | postuninstall_cmds | \ | |
14213 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
14214 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
14215 | # Double-quote double-evaled strings. | |
14216 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
14217 | ;; | |
14218 | *) | |
14219 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
14220 | ;; | |
14221 | esac | |
14222 | done | |
14223 | ||
14224 | case $lt_echo in | |
14225 | *'\$0 --fallback-echo"') | |
14226 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
14227 | ;; | |
14228 | esac | |
14229 | ||
14230 | cfgfile="$ofile" | |
14231 | ||
14232 | cat <<__EOF__ >> "$cfgfile" | |
14233 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
14234 | ||
14235 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14236 | ||
14237 | # Shell to use when invoking shell scripts. | |
14238 | SHELL=$lt_SHELL | |
14239 | ||
14240 | # Whether or not to build shared libraries. | |
14241 | build_libtool_libs=$enable_shared | |
14242 | ||
14243 | # Whether or not to build static libraries. | |
14244 | build_old_libs=$enable_static | |
14245 | ||
14246 | # Whether or not to add -lc for building shared libraries. | |
14247 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
14248 | ||
14249 | # Whether or not to optimize for fast installation. | |
14250 | fast_install=$enable_fast_install | |
14251 | ||
14252 | # The host system. | |
14253 | host_alias=$host_alias | |
14254 | host=$host | |
14255 | ||
14256 | # An echo program that does not interpret backslashes. | |
14257 | echo=$lt_echo | |
14258 | ||
14259 | # The archiver. | |
14260 | AR=$lt_AR | |
14261 | AR_FLAGS=$lt_AR_FLAGS | |
14262 | ||
14263 | # A C compiler. | |
14264 | LTCC=$lt_LTCC | |
14265 | ||
14266 | # A language-specific compiler. | |
14267 | CC=$lt_compiler_GCJ | |
14268 | ||
14269 | # Is the compiler the GNU C compiler? | |
14270 | with_gcc=$GCC_GCJ | |
14271 | ||
14272 | # The linker used to build libraries. | |
14273 | LD=$lt_LD_GCJ | |
14274 | ||
14275 | # Whether we need hard or soft links. | |
14276 | LN_S=$lt_LN_S | |
14277 | ||
14278 | # A BSD-compatible nm program. | |
14279 | NM=$lt_NM | |
14280 | ||
14281 | # A sed program that does not truncate output. | |
14282 | SED=$lt_SED | |
14283 | ||
14284 | # A symbol stripping program | |
14285 | STRIP=$STRIP | |
14286 | ||
14287 | # Used to examine libraries when file_magic_cmd begins "file" | |
14288 | MAGIC_CMD=$MAGIC_CMD | |
14289 | ||
14290 | # Used on cygwin: DLL creation program. | |
14291 | DLLTOOL="$DLLTOOL" | |
14292 | ||
14293 | # Used on cygwin: object dumper. | |
14294 | OBJDUMP="$OBJDUMP" | |
14295 | ||
14296 | # Used on cygwin: assembler. | |
14297 | AS="$AS" | |
14298 | ||
14299 | # The name of the directory that contains temporary libtool files. | |
14300 | objdir=$objdir | |
14301 | ||
14302 | # How to create reloadable object files. | |
14303 | reload_flag=$lt_reload_flag | |
14304 | reload_cmds=$lt_reload_cmds | |
14305 | ||
14306 | # How to pass a linker flag through the compiler. | |
14307 | wl=$lt_lt_prog_compiler_wl_GCJ | |
14308 | ||
14309 | # Object file suffix (normally "o"). | |
14310 | objext="$ac_objext" | |
14311 | ||
14312 | # Old archive suffix (normally "a"). | |
14313 | libext="$libext" | |
14314 | ||
14315 | # Executable file suffix (normally ""). | |
14316 | exeext="$exeext" | |
14317 | ||
14318 | # Additional compiler flags for building library objects. | |
14319 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
14320 | pic_mode=$pic_mode | |
14321 | ||
14322 | # What is the maximum length of a command? | |
14323 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
14324 | ||
14325 | # Does compiler simultaneously support -c and -o options? | |
14326 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
14327 | ||
14328 | # Must we lock files when doing compilation ? | |
14329 | need_locks=$lt_need_locks | |
14330 | ||
14331 | # Do we need the lib prefix for modules? | |
14332 | need_lib_prefix=$need_lib_prefix | |
14333 | ||
14334 | # Do we need a version for libraries? | |
14335 | need_version=$need_version | |
14336 | ||
14337 | # Whether dlopen is supported. | |
14338 | dlopen_support=$enable_dlopen | |
14339 | ||
14340 | # Whether dlopen of programs is supported. | |
14341 | dlopen_self=$enable_dlopen_self | |
14342 | ||
14343 | # Whether dlopen of statically linked programs is supported. | |
14344 | dlopen_self_static=$enable_dlopen_self_static | |
14345 | ||
14346 | # Compiler flag to prevent dynamic linking. | |
14347 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
14348 | ||
14349 | # Compiler flag to turn off builtin functions. | |
14350 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
14351 | ||
14352 | # Compiler flag to allow reflexive dlopens. | |
14353 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
14354 | ||
14355 | # Compiler flag to generate shared objects directly from archives. | |
14356 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
14357 | ||
14358 | # Compiler flag to generate thread-safe objects. | |
14359 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
14360 | ||
14361 | # Library versioning type. | |
14362 | version_type=$version_type | |
14363 | ||
14364 | # Format of library name prefix. | |
14365 | libname_spec=$lt_libname_spec | |
14366 | ||
14367 | # List of archive names. First name is the real one, the rest are links. | |
14368 | # The last name is the one that the linker finds with -lNAME. | |
14369 | library_names_spec=$lt_library_names_spec | |
14370 | ||
14371 | # The coded name of the library, if different from the real name. | |
14372 | soname_spec=$lt_soname_spec | |
14373 | ||
14374 | # Commands used to build and install an old-style archive. | |
14375 | RANLIB=$lt_RANLIB | |
14376 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
14377 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14378 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14379 | ||
14380 | # Create an old-style archive from a shared archive. | |
14381 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
14382 | ||
14383 | # Create a temporary old-style archive to link instead of a shared archive. | |
14384 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
14385 | ||
14386 | # Commands used to build and install a shared archive. | |
14387 | archive_cmds=$lt_archive_cmds_GCJ | |
14388 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
14389 | postinstall_cmds=$lt_postinstall_cmds | |
14390 | postuninstall_cmds=$lt_postuninstall_cmds | |
14391 | ||
14392 | # Commands to strip libraries. | |
14393 | old_striplib=$lt_old_striplib | |
14394 | striplib=$lt_striplib | |
14395 | ||
14396 | # Dependencies to place before the objects being linked to create a | |
14397 | # shared library. | |
14398 | predep_objects=$lt_predep_objects_GCJ | |
14399 | ||
14400 | # Dependencies to place after the objects being linked to create a | |
14401 | # shared library. | |
14402 | postdep_objects=$lt_postdep_objects_GCJ | |
14403 | ||
14404 | # Dependencies to place before the objects being linked to create a | |
14405 | # shared library. | |
14406 | predeps=$lt_predeps_GCJ | |
14407 | ||
14408 | # Dependencies to place after the objects being linked to create a | |
14409 | # shared library. | |
14410 | postdeps=$lt_postdeps_GCJ | |
14411 | ||
14412 | # The library search path used internally by the compiler when linking | |
14413 | # a shared library. | |
14414 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
14415 | ||
14416 | # Method to check whether dependent libraries are shared objects. | |
14417 | deplibs_check_method=$lt_deplibs_check_method | |
14418 | ||
14419 | # Command to use when deplibs_check_method == file_magic. | |
14420 | file_magic_cmd=$lt_file_magic_cmd | |
14421 | ||
14422 | # Flag that allows shared libraries with undefined symbols to be built. | |
14423 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
14424 | ||
14425 | # Flag that forces no undefined symbols. | |
14426 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
14427 | ||
14428 | # Commands used to finish a libtool library installation in a directory. | |
14429 | finish_cmds=$lt_finish_cmds | |
14430 | ||
14431 | # Same as above, but a single script fragment to be evaled but not shown. | |
14432 | finish_eval=$lt_finish_eval | |
14433 | ||
14434 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14435 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14436 | ||
14437 | # Transform the output of nm in a proper C declaration | |
14438 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14439 | ||
14440 | # Transform the output of nm in a C name address pair | |
14441 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14442 | ||
14443 | # This is the shared library runtime path variable. | |
14444 | runpath_var=$runpath_var | |
14445 | ||
14446 | # This is the shared library path variable. | |
14447 | shlibpath_var=$shlibpath_var | |
14448 | ||
14449 | # Is shlibpath searched before the hard-coded library search path? | |
14450 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14451 | ||
14452 | # How to hardcode a shared library path into an executable. | |
14453 | hardcode_action=$hardcode_action_GCJ | |
14454 | ||
14455 | # Whether we should hardcode library paths into libraries. | |
14456 | hardcode_into_libs=$hardcode_into_libs | |
14457 | ||
14458 | # Flag to hardcode \$libdir into a binary during linking. | |
14459 | # This must work even if \$libdir does not exist. | |
14460 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
14461 | ||
14462 | # Whether we need a single -rpath flag with a separated argument. | |
14463 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
14464 | ||
14465 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
14466 | # resulting binary. | |
14467 | hardcode_direct=$hardcode_direct_GCJ | |
14468 | ||
14469 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
14470 | # resulting binary. | |
14471 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
14472 | ||
14473 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
14474 | # the resulting binary. | |
14475 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
14476 | ||
14477 | # Variables whose values should be saved in libtool wrapper scripts and | |
14478 | # restored at relink time. | |
14479 | variables_saved_for_relink="$variables_saved_for_relink" | |
14480 | ||
14481 | # Whether libtool must link a program against all its dependency libraries. | |
14482 | link_all_deplibs=$link_all_deplibs_GCJ | |
14483 | ||
14484 | # Compile-time system search path for libraries | |
14485 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14486 | ||
14487 | # Run-time system search path for libraries | |
14488 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14489 | ||
14490 | # Fix the shell variable \$srcfile for the compiler. | |
14491 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
14492 | ||
14493 | # Set to yes if exported symbols are required. | |
14494 | always_export_symbols=$always_export_symbols_GCJ | |
14495 | ||
14496 | # The commands to list exported symbols. | |
14497 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
14498 | ||
14499 | # The commands to extract the exported symbol list from a shared archive. | |
14500 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14501 | ||
14502 | # Symbols that should not be listed in the preloaded symbols. | |
14503 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
14504 | ||
14505 | # Symbols that must always be exported. | |
14506 | include_expsyms=$lt_include_expsyms_GCJ | |
14507 | ||
14508 | # ### END LIBTOOL TAG CONFIG: $tagname | |
14509 | ||
14510 | __EOF__ | |
14511 | ||
14512 | ||
14513 | else | |
14514 | # If there is no Makefile yet, we rely on a make rule to execute | |
14515 | # `config.status --recheck' to rerun these tests and create the | |
14516 | # libtool script then. | |
14517 | test -f Makefile && make "$ltmain" | |
14518 | fi | |
14519 | ||
14520 | ||
14521 | ac_ext=c | |
14522 | ac_cpp='$CPP $CPPFLAGS' | |
14523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14526 | ||
14527 | CC="$lt_save_CC" | |
14528 | ||
14529 | ;; | |
14530 | ||
14531 | RC) | |
14532 | ||
14533 | ||
14534 | ||
14535 | # Source file extension for RC test sources. | |
14536 | ac_ext=rc | |
14537 | ||
14538 | # Object file extension for compiled RC test sources. | |
14539 | objext=o | |
14540 | objext_RC=$objext | |
14541 | ||
14542 | # Code to be used in simple compile tests | |
14543 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
14544 | ||
14545 | # Code to be used in simple link tests | |
14546 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
14547 | ||
14548 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
14549 | ||
14550 | # If no C compiler was specified, use CC. | |
14551 | LTCC=${LTCC-"$CC"} | |
14552 | ||
14553 | # Allow CC to be a program name with arguments. | |
14554 | set dummy $CC | |
14555 | compiler="$2" | |
14556 | ||
14557 | ||
14558 | # Allow CC to be a program name with arguments. | |
14559 | lt_save_CC="$CC" | |
14560 | CC=${RC-"windres"} | |
14561 | set dummy $CC | |
14562 | compiler="$2" | |
14563 | compiler_RC=$CC | |
14564 | lt_cv_prog_compiler_c_o_RC=yes | |
14565 | ||
14566 | # The else clause should only fire when bootstrapping the | |
14567 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
14568 | # with your package, and you will get complaints that there are | |
14569 | # no rules to generate ltmain.sh. | |
14570 | if test -f "$ltmain"; then | |
14571 | # Now quote all the things that may contain metacharacters while being | |
14572 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
14573 | # variables and quote the copies for generation of the libtool script. | |
14574 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
14575 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
14576 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
14577 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
14578 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
14579 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14580 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
14581 | old_postinstall_cmds old_postuninstall_cmds \ | |
14582 | compiler_RC \ | |
14583 | CC_RC \ | |
14584 | LD_RC \ | |
14585 | lt_prog_compiler_wl_RC \ | |
14586 | lt_prog_compiler_pic_RC \ | |
14587 | lt_prog_compiler_static_RC \ | |
14588 | lt_prog_compiler_no_builtin_flag_RC \ | |
14589 | export_dynamic_flag_spec_RC \ | |
14590 | thread_safe_flag_spec_RC \ | |
14591 | whole_archive_flag_spec_RC \ | |
14592 | old_archive_cmds_RC \ | |
14593 | old_archive_from_new_cmds_RC \ | |
14594 | predep_objects_RC \ | |
14595 | postdep_objects_RC \ | |
14596 | predeps_RC \ | |
14597 | postdeps_RC \ | |
14598 | compiler_lib_search_path_RC \ | |
14599 | archive_cmds_RC \ | |
14600 | archive_expsym_cmds_RC \ | |
14601 | postinstall_cmds_RC \ | |
14602 | postuninstall_cmds_RC \ | |
14603 | old_archive_from_expsyms_cmds_RC \ | |
14604 | allow_undefined_flag_RC \ | |
14605 | no_undefined_flag_RC \ | |
14606 | export_symbols_cmds_RC \ | |
14607 | hardcode_libdir_flag_spec_RC \ | |
14608 | hardcode_libdir_separator_RC \ | |
14609 | lt_cv_prog_compiler_c_o_RC \ | |
14610 | exclude_expsyms_RC \ | |
14611 | include_expsyms_RC; do | |
14612 | ||
14613 | case $var in | |
14614 | old_archive_cmds_RC | \ | |
14615 | old_archive_from_new_cmds_RC | \ | |
14616 | archive_cmds_RC | \ | |
14617 | archive_expsym_cmds_RC | \ | |
14618 | old_archive_from_expsyms_cmds_RC | \ | |
14619 | export_symbols_cmds_RC | \ | |
14620 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
14621 | postinstall_cmds | postuninstall_cmds | \ | |
14622 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
14623 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
14624 | # Double-quote double-evaled strings. | |
14625 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
14626 | ;; | |
14627 | *) | |
14628 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
14629 | ;; | |
14630 | esac | |
14631 | done | |
14632 | ||
14633 | case $lt_echo in | |
14634 | *'\$0 --fallback-echo"') | |
14635 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
14636 | ;; | |
14637 | esac | |
14638 | ||
14639 | cfgfile="$ofile" | |
14640 | ||
14641 | cat <<__EOF__ >> "$cfgfile" | |
14642 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
14643 | ||
14644 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14645 | ||
14646 | # Shell to use when invoking shell scripts. | |
14647 | SHELL=$lt_SHELL | |
14648 | ||
14649 | # Whether or not to build shared libraries. | |
14650 | build_libtool_libs=$enable_shared | |
14651 | ||
14652 | # Whether or not to build static libraries. | |
14653 | build_old_libs=$enable_static | |
14654 | ||
14655 | # Whether or not to add -lc for building shared libraries. | |
14656 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
14657 | ||
14658 | # Whether or not to optimize for fast installation. | |
14659 | fast_install=$enable_fast_install | |
14660 | ||
14661 | # The host system. | |
14662 | host_alias=$host_alias | |
14663 | host=$host | |
14664 | ||
14665 | # An echo program that does not interpret backslashes. | |
14666 | echo=$lt_echo | |
14667 | ||
14668 | # The archiver. | |
14669 | AR=$lt_AR | |
14670 | AR_FLAGS=$lt_AR_FLAGS | |
14671 | ||
14672 | # A C compiler. | |
14673 | LTCC=$lt_LTCC | |
14674 | ||
14675 | # A language-specific compiler. | |
14676 | CC=$lt_compiler_RC | |
14677 | ||
14678 | # Is the compiler the GNU C compiler? | |
14679 | with_gcc=$GCC_RC | |
14680 | ||
14681 | # The linker used to build libraries. | |
14682 | LD=$lt_LD_RC | |
14683 | ||
14684 | # Whether we need hard or soft links. | |
14685 | LN_S=$lt_LN_S | |
14686 | ||
14687 | # A BSD-compatible nm program. | |
14688 | NM=$lt_NM | |
14689 | ||
14690 | # A sed program that does not truncate output. | |
14691 | SED=$lt_SED | |
14692 | ||
14693 | # A symbol stripping program | |
14694 | STRIP=$STRIP | |
14695 | ||
14696 | # Used to examine libraries when file_magic_cmd begins "file" | |
14697 | MAGIC_CMD=$MAGIC_CMD | |
14698 | ||
14699 | # Used on cygwin: DLL creation program. | |
14700 | DLLTOOL="$DLLTOOL" | |
14701 | ||
14702 | # Used on cygwin: object dumper. | |
14703 | OBJDUMP="$OBJDUMP" | |
14704 | ||
14705 | # Used on cygwin: assembler. | |
14706 | AS="$AS" | |
14707 | ||
14708 | # The name of the directory that contains temporary libtool files. | |
14709 | objdir=$objdir | |
14710 | ||
14711 | # How to create reloadable object files. | |
14712 | reload_flag=$lt_reload_flag | |
14713 | reload_cmds=$lt_reload_cmds | |
14714 | ||
14715 | # How to pass a linker flag through the compiler. | |
14716 | wl=$lt_lt_prog_compiler_wl_RC | |
14717 | ||
14718 | # Object file suffix (normally "o"). | |
14719 | objext="$ac_objext" | |
14720 | ||
14721 | # Old archive suffix (normally "a"). | |
14722 | libext="$libext" | |
14723 | ||
14724 | # Executable file suffix (normally ""). | |
14725 | exeext="$exeext" | |
14726 | ||
14727 | # Additional compiler flags for building library objects. | |
14728 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
14729 | pic_mode=$pic_mode | |
14730 | ||
14731 | # What is the maximum length of a command? | |
14732 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
14733 | ||
14734 | # Does compiler simultaneously support -c and -o options? | |
14735 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
14736 | ||
14737 | # Must we lock files when doing compilation ? | |
14738 | need_locks=$lt_need_locks | |
14739 | ||
14740 | # Do we need the lib prefix for modules? | |
14741 | need_lib_prefix=$need_lib_prefix | |
14742 | ||
14743 | # Do we need a version for libraries? | |
14744 | need_version=$need_version | |
14745 | ||
14746 | # Whether dlopen is supported. | |
14747 | dlopen_support=$enable_dlopen | |
14748 | ||
14749 | # Whether dlopen of programs is supported. | |
14750 | dlopen_self=$enable_dlopen_self | |
14751 | ||
14752 | # Whether dlopen of statically linked programs is supported. | |
14753 | dlopen_self_static=$enable_dlopen_self_static | |
14754 | ||
14755 | # Compiler flag to prevent dynamic linking. | |
14756 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
14757 | ||
14758 | # Compiler flag to turn off builtin functions. | |
14759 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
14760 | ||
14761 | # Compiler flag to allow reflexive dlopens. | |
14762 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
14763 | ||
14764 | # Compiler flag to generate shared objects directly from archives. | |
14765 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
14766 | ||
14767 | # Compiler flag to generate thread-safe objects. | |
14768 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
14769 | ||
14770 | # Library versioning type. | |
14771 | version_type=$version_type | |
14772 | ||
14773 | # Format of library name prefix. | |
14774 | libname_spec=$lt_libname_spec | |
14775 | ||
14776 | # List of archive names. First name is the real one, the rest are links. | |
14777 | # The last name is the one that the linker finds with -lNAME. | |
14778 | library_names_spec=$lt_library_names_spec | |
14779 | ||
14780 | # The coded name of the library, if different from the real name. | |
14781 | soname_spec=$lt_soname_spec | |
14782 | ||
14783 | # Commands used to build and install an old-style archive. | |
14784 | RANLIB=$lt_RANLIB | |
14785 | old_archive_cmds=$lt_old_archive_cmds_RC | |
14786 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14787 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14788 | ||
14789 | # Create an old-style archive from a shared archive. | |
14790 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
14791 | ||
14792 | # Create a temporary old-style archive to link instead of a shared archive. | |
14793 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
14794 | ||
14795 | # Commands used to build and install a shared archive. | |
14796 | archive_cmds=$lt_archive_cmds_RC | |
14797 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
14798 | postinstall_cmds=$lt_postinstall_cmds | |
14799 | postuninstall_cmds=$lt_postuninstall_cmds | |
14800 | ||
14801 | # Commands to strip libraries. | |
14802 | old_striplib=$lt_old_striplib | |
14803 | striplib=$lt_striplib | |
14804 | ||
14805 | # Dependencies to place before the objects being linked to create a | |
14806 | # shared library. | |
14807 | predep_objects=$lt_predep_objects_RC | |
14808 | ||
14809 | # Dependencies to place after the objects being linked to create a | |
14810 | # shared library. | |
14811 | postdep_objects=$lt_postdep_objects_RC | |
14812 | ||
14813 | # Dependencies to place before the objects being linked to create a | |
14814 | # shared library. | |
14815 | predeps=$lt_predeps_RC | |
14816 | ||
14817 | # Dependencies to place after the objects being linked to create a | |
14818 | # shared library. | |
14819 | postdeps=$lt_postdeps_RC | |
14820 | ||
14821 | # The library search path used internally by the compiler when linking | |
14822 | # a shared library. | |
14823 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
14824 | ||
14825 | # Method to check whether dependent libraries are shared objects. | |
14826 | deplibs_check_method=$lt_deplibs_check_method | |
14827 | ||
14828 | # Command to use when deplibs_check_method == file_magic. | |
14829 | file_magic_cmd=$lt_file_magic_cmd | |
14830 | ||
14831 | # Flag that allows shared libraries with undefined symbols to be built. | |
14832 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
14833 | ||
14834 | # Flag that forces no undefined symbols. | |
14835 | no_undefined_flag=$lt_no_undefined_flag_RC | |
14836 | ||
14837 | # Commands used to finish a libtool library installation in a directory. | |
14838 | finish_cmds=$lt_finish_cmds | |
14839 | ||
14840 | # Same as above, but a single script fragment to be evaled but not shown. | |
14841 | finish_eval=$lt_finish_eval | |
14842 | ||
14843 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14844 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14845 | ||
14846 | # Transform the output of nm in a proper C declaration | |
14847 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14848 | ||
14849 | # Transform the output of nm in a C name address pair | |
14850 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14851 | ||
14852 | # This is the shared library runtime path variable. | |
14853 | runpath_var=$runpath_var | |
14854 | ||
14855 | # This is the shared library path variable. | |
14856 | shlibpath_var=$shlibpath_var | |
14857 | ||
14858 | # Is shlibpath searched before the hard-coded library search path? | |
14859 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14860 | ||
14861 | # How to hardcode a shared library path into an executable. | |
14862 | hardcode_action=$hardcode_action_RC | |
14863 | ||
14864 | # Whether we should hardcode library paths into libraries. | |
14865 | hardcode_into_libs=$hardcode_into_libs | |
14866 | ||
14867 | # Flag to hardcode \$libdir into a binary during linking. | |
14868 | # This must work even if \$libdir does not exist. | |
14869 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
14870 | ||
14871 | # Whether we need a single -rpath flag with a separated argument. | |
14872 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
14873 | ||
14874 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
14875 | # resulting binary. | |
14876 | hardcode_direct=$hardcode_direct_RC | |
14877 | ||
14878 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
14879 | # resulting binary. | |
14880 | hardcode_minus_L=$hardcode_minus_L_RC | |
14881 | ||
14882 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
14883 | # the resulting binary. | |
14884 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
14885 | ||
14886 | # Variables whose values should be saved in libtool wrapper scripts and | |
14887 | # restored at relink time. | |
14888 | variables_saved_for_relink="$variables_saved_for_relink" | |
14889 | ||
14890 | # Whether libtool must link a program against all its dependency libraries. | |
14891 | link_all_deplibs=$link_all_deplibs_RC | |
14892 | ||
14893 | # Compile-time system search path for libraries | |
14894 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14895 | ||
14896 | # Run-time system search path for libraries | |
14897 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14898 | ||
14899 | # Fix the shell variable \$srcfile for the compiler. | |
14900 | fix_srcfile_path="$fix_srcfile_path_RC" | |
14901 | ||
14902 | # Set to yes if exported symbols are required. | |
14903 | always_export_symbols=$always_export_symbols_RC | |
14904 | ||
14905 | # The commands to list exported symbols. | |
14906 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
14907 | ||
14908 | # The commands to extract the exported symbol list from a shared archive. | |
14909 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14910 | ||
14911 | # Symbols that should not be listed in the preloaded symbols. | |
14912 | exclude_expsyms=$lt_exclude_expsyms_RC | |
14913 | ||
14914 | # Symbols that must always be exported. | |
14915 | include_expsyms=$lt_include_expsyms_RC | |
14916 | ||
14917 | # ### END LIBTOOL TAG CONFIG: $tagname | |
14918 | ||
14919 | __EOF__ | |
14920 | ||
14921 | ||
14922 | else | |
14923 | # If there is no Makefile yet, we rely on a make rule to execute | |
14924 | # `config.status --recheck' to rerun these tests and create the | |
14925 | # libtool script then. | |
14926 | test -f Makefile && make "$ltmain" | |
14927 | fi | |
14928 | ||
14929 | ||
14930 | ac_ext=c | |
14931 | ac_cpp='$CPP $CPPFLAGS' | |
14932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14935 | ||
14936 | CC="$lt_save_CC" | |
14937 | ||
14938 | ;; | |
14939 | ||
14940 | *) | |
14941 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
14942 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
14943 | { (exit 1); exit 1; }; } | |
14944 | ;; | |
14945 | esac | |
14946 | ||
14947 | # Append the new tag name to the list of available tags. | |
14948 | available_tags="$available_tags $tagname" | |
14949 | fi | |
14950 | done | |
14951 | IFS="$lt_save_ifs" | |
14952 | ||
14953 | # Now substitute the updated list of available tags. | |
14954 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
14955 | mv "${ofile}T" "$ofile" | |
14956 | chmod +x "$ofile" | |
14957 | else | |
14958 | rm -f "${ofile}T" | |
14959 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
14960 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
14961 | { (exit 1); exit 1; }; } | |
14962 | fi | |
14963 | fi | |
14964 | ||
14965 | ||
14966 | ||
14967 | # This can be used to rebuild libtool when needed | |
14968 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
14969 | ||
14970 | # Always use our own libtool. | |
14971 | LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' | |
14972 | ||
14973 | # Prevent multiple expansion | |
14974 | ||
14975 | ||
14976 | ||
14977 | ||
14978 | ||
14979 | ||
14980 | ||
14981 | ||
14982 | ||
14983 | ||
14984 | ||
14985 | ||
14986 | ||
14987 | ||
14988 | ac_ext=c | |
14989 | ac_cpp='$CPP $CPPFLAGS' | |
14990 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14991 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14992 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14993 | ||
14994 | ||
14995 | ||
14996 | ac_ext=c | |
14997 | ac_cpp='$CPP $CPPFLAGS' | |
14998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15001 | ||
15002 | ||
15003 | ||
15004 | ||
15005 | ||
15006 | ||
15007 | ||
15008 | ||
15009 | ||
15010 | ||
15011 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
15012 | ||
15013 | # find the maximum length of command line arguments | |
15014 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
15015 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
15016 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
15017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15018 | else | |
15019 | i=0 | |
15020 | testring="ABCD" | |
15021 | ||
15022 | case $host_os in | |
15023 | msdosdjgpp*) | |
15024 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
15025 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
15026 | # during glob expansion). Even if it were fixed, the result of this | |
15027 | # check would be larger than it should be. | |
15028 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
15029 | ;; | |
15030 | ||
15031 | gnu*) | |
15032 | # Under GNU Hurd, this test is not required because there is | |
15033 | # no limit to the length of command line arguments. | |
15034 | # Libtool will interpret -1 as no limit whatsoever | |
15035 | lt_cv_sys_max_cmd_len=-1; | |
15036 | ;; | |
15037 | ||
15038 | *) | |
15039 | # If test is not a shell built-in, we'll probably end up computing a | |
15040 | # maximum length that is only half of the actual maximum length, but | |
15041 | # we can't tell. | |
15042 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | |
15043 | = "XX$testring") >/dev/null 2>&1 && | |
15044 | new_result=`expr "X$testring" : ".*" 2>&1` && | |
15045 | lt_cv_sys_max_cmd_len=$new_result && | |
15046 | test $i != 17 # 1/2 MB should be enough | |
15047 | do | |
15048 | i=`expr $i + 1` | |
15049 | testring=$testring$testring | |
15050 | done | |
15051 | testring= | |
15052 | # Add a significant safety factor because C++ compilers can tack on massive | |
15053 | # amounts of additional arguments before passing them to the linker. | |
15054 | # It appears as though 1/2 is a usable value. | |
15055 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
15056 | ;; | |
15057 | esac | |
15058 | ||
15059 | fi | |
15060 | ||
15061 | if test -n $lt_cv_sys_max_cmd_len ; then | |
15062 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
15063 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
15064 | else | |
15065 | echo "$as_me:$LINENO: result: none" >&5 | |
15066 | echo "${ECHO_T}none" >&6 | |
15067 | fi | |
15068 | ||
15069 | ||
15070 | ||
15071 | ||
15072 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
15073 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
15074 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
15075 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
15076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15077 | else | |
15078 | ||
15079 | # These are sane defaults that work on at least a few old systems. | |
15080 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
15081 | ||
15082 | # Character class describing NM global symbol codes. | |
15083 | symcode='[BCDEGRST]' | |
15084 | ||
15085 | # Regexp to match symbols that can be accessed directly from C. | |
15086 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
15087 | ||
15088 | # Transform the above into a raw symbol and a C symbol. | |
15089 | symxfrm='\1 \2\3 \3' | |
15090 | ||
15091 | # Transform an extracted symbol line into a proper C declaration | |
15092 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
15093 | ||
15094 | # Transform an extracted symbol line into symbol name and symbol address | |
15095 | 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'" | |
15096 | ||
15097 | # Define system-specific variables. | |
15098 | case $host_os in | |
15099 | aix*) | |
15100 | symcode='[BCDT]' | |
15101 | ;; | |
15102 | cygwin* | mingw* | pw32*) | |
15103 | symcode='[ABCDGISTW]' | |
15104 | ;; | |
15105 | hpux*) # Its linker distinguishes data from code symbols | |
15106 | if test "$host_cpu" = ia64; then | |
15107 | symcode='[ABCDEGRST]' | |
15108 | fi | |
15109 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
15110 | 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'" | |
15111 | ;; | |
15112 | irix* | nonstopux*) | |
15113 | symcode='[BCDEGRST]' | |
15114 | ;; | |
15115 | solaris* | sysv5*) | |
15116 | symcode='[BDT]' | |
15117 | ;; | |
15118 | sysv4) | |
15119 | symcode='[DFNSTU]' | |
15120 | ;; | |
15121 | esac | |
15122 | ||
15123 | # Handle CRLF in mingw tool chain | |
15124 | opt_cr= | |
15125 | case $host_os in | |
15126 | mingw*) | |
15127 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
15128 | ;; | |
15129 | esac | |
15130 | ||
15131 | # If we're using GNU nm, then use its standard symbol codes. | |
15132 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
15133 | symcode='[ABCDGISTW]' | |
15134 | fi | |
15135 | ||
15136 | # Try without a prefix undercore, then with it. | |
15137 | for ac_symprfx in "" "_"; do | |
15138 | ||
15139 | # Write the raw and C identifiers. | |
15140 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
15141 | ||
15142 | # Check to see that the pipe works correctly. | |
15143 | pipe_works=no | |
15144 | ||
15145 | rm -f conftest* | |
15146 | cat > conftest.$ac_ext <<EOF | |
15147 | #ifdef __cplusplus | |
15148 | extern "C" { | |
15149 | #endif | |
15150 | char nm_test_var; | |
15151 | void nm_test_func(){} | |
15152 | #ifdef __cplusplus | |
15153 | } | |
15154 | #endif | |
15155 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
15156 | EOF | |
15157 | ||
15158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15159 | (eval $ac_compile) 2>&5 | |
15160 | ac_status=$? | |
15161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15162 | (exit $ac_status); }; then | |
15163 | # Now try to grab the symbols. | |
15164 | nlist=conftest.nm | |
15165 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
15166 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
15167 | ac_status=$? | |
15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15169 | (exit $ac_status); } && test -s "$nlist"; then | |
15170 | # Try sorting and uniquifying the output. | |
15171 | if sort "$nlist" | uniq > "$nlist"T; then | |
15172 | mv -f "$nlist"T "$nlist" | |
15173 | else | |
15174 | rm -f "$nlist"T | |
15175 | fi | |
15176 | ||
15177 | # Make sure that we snagged all the symbols we need. | |
15178 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | |
15179 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | |
15180 | cat <<EOF > conftest.$ac_ext | |
15181 | #ifdef __cplusplus | |
15182 | extern "C" { | |
15183 | #endif | |
15184 | ||
15185 | EOF | |
15186 | # Now generate the symbol file. | |
15187 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
15188 | ||
15189 | cat <<EOF >> conftest.$ac_ext | |
15190 | #if defined (__STDC__) && __STDC__ | |
15191 | # define lt_ptr_t void * | |
15192 | #else | |
15193 | # define lt_ptr_t char * | |
15194 | # define const | |
15195 | #endif | |
15196 | ||
15197 | /* The mapping between symbol names and symbols. */ | |
15198 | const struct { | |
15199 | const char *name; | |
15200 | lt_ptr_t address; | |
15201 | } | |
15202 | lt_preloaded_symbols[] = | |
15203 | { | |
15204 | EOF | |
15205 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
15206 | cat <<\EOF >> conftest.$ac_ext | |
15207 | {0, (lt_ptr_t) 0} | |
15208 | }; | |
15209 | ||
15210 | #ifdef __cplusplus | |
15211 | } | |
15212 | #endif | |
15213 | EOF | |
15214 | # Now try linking the two files. | |
15215 | mv conftest.$ac_objext conftstm.$ac_objext | |
15216 | lt_save_LIBS="$LIBS" | |
15217 | lt_save_CFLAGS="$CFLAGS" | |
15218 | LIBS="conftstm.$ac_objext" | |
15219 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
15220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15221 | (eval $ac_link) 2>&5 | |
15222 | ac_status=$? | |
15223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15224 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
15225 | pipe_works=yes | |
15226 | fi | |
15227 | LIBS="$lt_save_LIBS" | |
15228 | CFLAGS="$lt_save_CFLAGS" | |
15229 | else | |
15230 | echo "cannot find nm_test_func in $nlist" >&5 | |
15231 | fi | |
15232 | else | |
15233 | echo "cannot find nm_test_var in $nlist" >&5 | |
15234 | fi | |
15235 | else | |
15236 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
15237 | fi | |
15238 | else | |
15239 | echo "$progname: failed program was:" >&5 | |
15240 | cat conftest.$ac_ext >&5 | |
15241 | fi | |
15242 | rm -f conftest* conftst* | |
15243 | ||
15244 | # Do not use the global_symbol_pipe unless it works. | |
15245 | if test "$pipe_works" = yes; then | |
15246 | break | |
15247 | else | |
15248 | lt_cv_sys_global_symbol_pipe= | |
15249 | fi | |
15250 | done | |
15251 | ||
15252 | fi | |
15253 | ||
15254 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
15255 | lt_cv_sys_global_symbol_to_cdecl= | |
15256 | fi | |
15257 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
15258 | echo "$as_me:$LINENO: result: failed" >&5 | |
15259 | echo "${ECHO_T}failed" >&6 | |
15260 | else | |
15261 | echo "$as_me:$LINENO: result: ok" >&5 | |
15262 | echo "${ECHO_T}ok" >&6 | |
15263 | fi | |
15264 | ||
15265 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
15266 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
15267 | if test "${lt_cv_objdir+set}" = set; then | |
15268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15269 | else | |
15270 | rm -f .libs 2>/dev/null | |
15271 | mkdir .libs 2>/dev/null | |
15272 | if test -d .libs; then | |
15273 | lt_cv_objdir=.libs | |
15274 | else | |
15275 | # MS-DOS does not allow filenames that begin with a dot. | |
15276 | lt_cv_objdir=_libs | |
15277 | fi | |
15278 | rmdir .libs 2>/dev/null | |
15279 | fi | |
15280 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
15281 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
15282 | objdir=$lt_cv_objdir | |
15283 | ||
15284 | ||
15285 | ||
15286 | ||
15287 | ||
15288 | case $host_os in | |
15289 | aix3*) | |
15290 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15291 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15292 | # vanish in a puff of smoke. | |
15293 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
15294 | COLLECT_NAMES= | |
15295 | export COLLECT_NAMES | |
15296 | fi | |
15297 | ;; | |
15298 | esac | |
15299 | ||
15300 | # Sed substitution that helps us do robust quoting. It backslashifies | |
15301 | # metacharacters that are still active within double-quoted strings. | |
15302 | Xsed='sed -e s/^X//' | |
15303 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
15304 | ||
15305 | # Same as above, but do not quote variable references. | |
15306 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
15307 | ||
15308 | # Sed substitution to delay expansion of an escaped shell variable in a | |
15309 | # double_quote_subst'ed string. | |
15310 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
15311 | ||
15312 | # Sed substitution to avoid accidental globbing in evaled expressions | |
15313 | no_glob_subst='s/\*/\\\*/g' | |
15314 | ||
15315 | # Constants: | |
15316 | rm="rm -f" | |
15317 | ||
15318 | # Global variables: | |
15319 | default_ofile=libtool | |
15320 | can_build_shared=yes | |
15321 | ||
15322 | # All known linkers require a `.a' archive for static linking (except M$VC, | |
15323 | # which needs '.lib'). | |
15324 | libext=a | |
15325 | ltmain="$ac_aux_dir/ltmain.sh" | |
15326 | ofile="$default_ofile" | |
15327 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
15328 | ||
15329 | if test -n "$ac_tool_prefix"; then | |
15330 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
15331 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
15332 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15333 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15334 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
15335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15336 | else | |
15337 | if test -n "$RANLIB"; then | |
15338 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
15339 | else | |
15340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15341 | for as_dir in $PATH | |
15342 | do | |
15343 | IFS=$as_save_IFS | |
15344 | test -z "$as_dir" && as_dir=. | |
15345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15346 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15347 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
15348 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15349 | break 2 | |
15350 | fi | |
15351 | done | |
15352 | done | |
15353 | ||
15354 | fi | |
15355 | fi | |
15356 | RANLIB=$ac_cv_prog_RANLIB | |
15357 | if test -n "$RANLIB"; then | |
15358 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
15359 | echo "${ECHO_T}$RANLIB" >&6 | |
15360 | else | |
15361 | echo "$as_me:$LINENO: result: no" >&5 | |
15362 | echo "${ECHO_T}no" >&6 | |
15363 | fi | |
15364 | ||
15365 | fi | |
15366 | if test -z "$ac_cv_prog_RANLIB"; then | |
15367 | ac_ct_RANLIB=$RANLIB | |
15368 | # Extract the first word of "ranlib", so it can be a program name with args. | |
15369 | set dummy ranlib; ac_word=$2 | |
15370 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15372 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
15373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15374 | else | |
15375 | if test -n "$ac_ct_RANLIB"; then | |
15376 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
15377 | else | |
15378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15379 | for as_dir in $PATH | |
15380 | do | |
15381 | IFS=$as_save_IFS | |
15382 | test -z "$as_dir" && as_dir=. | |
15383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15384 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15385 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
15386 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15387 | break 2 | |
15388 | fi | |
15389 | done | |
15390 | done | |
15391 | ||
15392 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
15393 | fi | |
15394 | fi | |
15395 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
15396 | if test -n "$ac_ct_RANLIB"; then | |
15397 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
15398 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
15399 | else | |
15400 | echo "$as_me:$LINENO: result: no" >&5 | |
15401 | echo "${ECHO_T}no" >&6 | |
15402 | fi | |
15403 | ||
15404 | RANLIB=$ac_ct_RANLIB | |
15405 | else | |
15406 | RANLIB="$ac_cv_prog_RANLIB" | |
15407 | fi | |
15408 | ||
15409 | if test -n "$ac_tool_prefix"; then | |
15410 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
15411 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
15412 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15414 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
15415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15416 | else | |
15417 | if test -n "$STRIP"; then | |
15418 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
15419 | else | |
15420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15421 | for as_dir in $PATH | |
15422 | do | |
15423 | IFS=$as_save_IFS | |
15424 | test -z "$as_dir" && as_dir=. | |
15425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15426 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15427 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
15428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15429 | break 2 | |
15430 | fi | |
15431 | done | |
15432 | done | |
15433 | ||
15434 | fi | |
15435 | fi | |
15436 | STRIP=$ac_cv_prog_STRIP | |
15437 | if test -n "$STRIP"; then | |
15438 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
15439 | echo "${ECHO_T}$STRIP" >&6 | |
15440 | else | |
15441 | echo "$as_me:$LINENO: result: no" >&5 | |
15442 | echo "${ECHO_T}no" >&6 | |
15443 | fi | |
15444 | ||
15445 | fi | |
15446 | if test -z "$ac_cv_prog_STRIP"; then | |
15447 | ac_ct_STRIP=$STRIP | |
15448 | # Extract the first word of "strip", so it can be a program name with args. | |
15449 | set dummy strip; ac_word=$2 | |
15450 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15451 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15452 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
15453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15454 | else | |
15455 | if test -n "$ac_ct_STRIP"; then | |
15456 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
15457 | else | |
15458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15459 | for as_dir in $PATH | |
15460 | do | |
15461 | IFS=$as_save_IFS | |
15462 | test -z "$as_dir" && as_dir=. | |
15463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15464 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15465 | ac_cv_prog_ac_ct_STRIP="strip" | |
15466 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15467 | break 2 | |
15468 | fi | |
15469 | done | |
15470 | done | |
15471 | ||
15472 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
15473 | fi | |
15474 | fi | |
15475 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
15476 | if test -n "$ac_ct_STRIP"; then | |
15477 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
15478 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
15479 | else | |
15480 | echo "$as_me:$LINENO: result: no" >&5 | |
15481 | echo "${ECHO_T}no" >&6 | |
15482 | fi | |
15483 | ||
15484 | STRIP=$ac_ct_STRIP | |
15485 | else | |
15486 | STRIP="$ac_cv_prog_STRIP" | |
15487 | fi | |
15488 | ||
15489 | ||
15490 | old_CC="$CC" | |
15491 | old_CFLAGS="$CFLAGS" | |
15492 | ||
15493 | # Set sane defaults for various variables | |
15494 | test -z "$AR" && AR=ar | |
15495 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
15496 | test -z "$AS" && AS=as | |
15497 | test -z "$CC" && CC=cc | |
15498 | test -z "$LTCC" && LTCC=$CC | |
15499 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
15500 | test -z "$LD" && LD=ld | |
15501 | test -z "$LN_S" && LN_S="ln -s" | |
15502 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
15503 | test -z "$NM" && NM=nm | |
15504 | test -z "$SED" && SED=sed | |
15505 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
15506 | test -z "$RANLIB" && RANLIB=: | |
15507 | test -z "$STRIP" && STRIP=: | |
15508 | test -z "$ac_objext" && ac_objext=o | |
15509 | ||
15510 | # Determine commands to create old-style static archives. | |
15511 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
15512 | old_postinstall_cmds='chmod 644 $oldlib' | |
15513 | old_postuninstall_cmds= | |
15514 | ||
15515 | if test -n "$RANLIB"; then | |
15516 | case $host_os in | |
15517 | openbsd*) | |
15518 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
15519 | ;; | |
15520 | *) | |
15521 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
15522 | ;; | |
15523 | esac | |
15524 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
15525 | fi | |
15526 | ||
15527 | # Only perform the check for file, if the check method requires it | |
15528 | case $deplibs_check_method in | |
15529 | file_magic*) | |
15530 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
15531 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
15532 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
15533 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
15534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15535 | else | |
15536 | case $MAGIC_CMD in | |
15537 | [\\/*] | ?:[\\/]*) | |
15538 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
15539 | ;; | |
15540 | *) | |
15541 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
15542 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
15543 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
15544 | for ac_dir in $ac_dummy; do | |
15545 | IFS="$lt_save_ifs" | |
15546 | test -z "$ac_dir" && ac_dir=. | |
15547 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
15548 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
15549 | if test -n "$file_magic_test_file"; then | |
15550 | case $deplibs_check_method in | |
15551 | "file_magic "*) | |
15552 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
15553 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
15554 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
15555 | egrep "$file_magic_regex" > /dev/null; then | |
15556 | : | |
15557 | else | |
15558 | cat <<EOF 1>&2 | |
15559 | ||
15560 | *** Warning: the command libtool uses to detect shared libraries, | |
15561 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
15562 | *** The result is that libtool may fail to recognize shared libraries | |
15563 | *** as such. This will affect the creation of libtool libraries that | |
15564 | *** depend on shared libraries, but programs linked with such libtool | |
15565 | *** libraries will work regardless of this problem. Nevertheless, you | |
15566 | *** may want to report the problem to your system manager and/or to | |
15567 | *** bug-libtool@gnu.org | |
15568 | ||
15569 | EOF | |
15570 | fi ;; | |
15571 | esac | |
15572 | fi | |
15573 | break | |
15574 | fi | |
15575 | done | |
15576 | IFS="$lt_save_ifs" | |
15577 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
15578 | ;; | |
15579 | esac | |
15580 | fi | |
15581 | ||
15582 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
15583 | if test -n "$MAGIC_CMD"; then | |
15584 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
15585 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
15586 | else | |
15587 | echo "$as_me:$LINENO: result: no" >&5 | |
15588 | echo "${ECHO_T}no" >&6 | |
15589 | fi | |
15590 | ||
15591 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
15592 | if test -n "$ac_tool_prefix"; then | |
15593 | echo "$as_me:$LINENO: checking for file" >&5 | |
15594 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
15595 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
15596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15597 | else | |
15598 | case $MAGIC_CMD in | |
15599 | [\\/*] | ?:[\\/]*) | |
15600 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
15601 | ;; | |
15602 | *) | |
15603 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
15604 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
15605 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
15606 | for ac_dir in $ac_dummy; do | |
15607 | IFS="$lt_save_ifs" | |
15608 | test -z "$ac_dir" && ac_dir=. | |
15609 | if test -f $ac_dir/file; then | |
15610 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
15611 | if test -n "$file_magic_test_file"; then | |
15612 | case $deplibs_check_method in | |
15613 | "file_magic "*) | |
15614 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
15615 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
15616 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
15617 | egrep "$file_magic_regex" > /dev/null; then | |
15618 | : | |
15619 | else | |
15620 | cat <<EOF 1>&2 | |
15621 | ||
15622 | *** Warning: the command libtool uses to detect shared libraries, | |
15623 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
15624 | *** The result is that libtool may fail to recognize shared libraries | |
15625 | *** as such. This will affect the creation of libtool libraries that | |
15626 | *** depend on shared libraries, but programs linked with such libtool | |
15627 | *** libraries will work regardless of this problem. Nevertheless, you | |
15628 | *** may want to report the problem to your system manager and/or to | |
15629 | *** bug-libtool@gnu.org | |
15630 | ||
15631 | EOF | |
15632 | fi ;; | |
15633 | esac | |
15634 | fi | |
15635 | break | |
15636 | fi | |
15637 | done | |
15638 | IFS="$lt_save_ifs" | |
15639 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
15640 | ;; | |
15641 | esac | |
15642 | fi | |
15643 | ||
15644 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
15645 | if test -n "$MAGIC_CMD"; then | |
15646 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
15647 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
15648 | else | |
15649 | echo "$as_me:$LINENO: result: no" >&5 | |
15650 | echo "${ECHO_T}no" >&6 | |
15651 | fi | |
15652 | ||
15653 | else | |
15654 | MAGIC_CMD=: | |
15655 | fi | |
15656 | fi | |
15657 | ||
15658 | fi | |
15659 | ;; | |
15660 | esac | |
15661 | ||
15662 | enable_dlopen=no | |
15663 | enable_win32_dll=no | |
15664 | ||
15665 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
15666 | if test "${enable_libtool_lock+set}" = set; then | |
15667 | enableval="$enable_libtool_lock" | |
15668 | ||
15669 | fi; | |
15670 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
15671 | ||
15672 | ||
15673 | # Check whether --with-pic or --without-pic was given. | |
15674 | if test "${with_pic+set}" = set; then | |
15675 | withval="$with_pic" | |
15676 | pic_mode="$withval" | |
15677 | else | |
15678 | pic_mode=default | |
15679 | fi; | |
15680 | test -z "$pic_mode" && pic_mode=default | |
15681 | ||
15682 | # Use C for the default configuration in the libtool script | |
15683 | tagname= | |
15684 | lt_save_CC="$CC" | |
15685 | ac_ext=c | |
15686 | ac_cpp='$CPP $CPPFLAGS' | |
15687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15690 | ||
15691 | ||
15692 | # Source file extension for C test sources. | |
15693 | ac_ext=c | |
15694 | ||
15695 | # Object file extension for compiled C test sources. | |
15696 | objext=o | |
15697 | objext=$objext | |
15698 | ||
15699 | # Code to be used in simple compile tests | |
15700 | lt_simple_compile_test_code="int some_variable = 0;" | |
15701 | ||
15702 | # Code to be used in simple link tests | |
15703 | lt_simple_link_test_code='main(){return(0);}' | |
15704 | ||
15705 | ||
15706 | # If no C compiler was specified, use CC. | |
15707 | LTCC=${LTCC-"$CC"} | |
15708 | ||
15709 | # Allow CC to be a program name with arguments. | |
15710 | set dummy $CC | |
15711 | compiler="$2" | |
15712 | ||
15713 | ||
15714 | # | |
15715 | # Check for any special shared library compilation flags. | |
15716 | # | |
15717 | lt_prog_cc_shlib= | |
15718 | if test "$GCC" = no; then | |
15719 | case $host_os in | |
15720 | sco3.2v5*) | |
15721 | lt_prog_cc_shlib='-belf' | |
15722 | ;; | |
15723 | esac | |
15724 | fi | |
15725 | if test -n "$lt_prog_cc_shlib"; then | |
15726 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | |
15727 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | |
15728 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
15729 | else | |
15730 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | |
15731 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | |
15732 | lt_cv_prog_cc_can_build_shared=no | |
15733 | fi | |
15734 | fi | |
15735 | ||
15736 | ||
15737 | # | |
15738 | # Check to make sure the static flag actually works. | |
15739 | # | |
15740 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | |
15741 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | |
15742 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
15743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15744 | else | |
15745 | lt_prog_compiler_static_works=no | |
15746 | save_LDFLAGS="$LDFLAGS" | |
15747 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
15748 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
15749 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
15750 | # The compiler can only warn and ignore the option if not recognized | |
15751 | # So say no if there are warnings | |
15752 | if test -s conftest.err; then | |
15753 | # Append any errors to the config.log. | |
15754 | cat conftest.err 1>&5 | |
15755 | else | |
15756 | lt_prog_compiler_static_works=yes | |
15757 | fi | |
15758 | fi | |
15759 | $rm conftest* | |
15760 | LDFLAGS="$save_LDFLAGS" | |
15761 | ||
15762 | fi | |
15763 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
15764 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
15765 | ||
15766 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
15767 | : | |
15768 | else | |
15769 | lt_prog_compiler_static= | |
15770 | fi | |
15771 | ||
15772 | ||
15773 | ||
15774 | ||
15775 | lt_prog_compiler_no_builtin_flag= | |
15776 | ||
15777 | if test "$GCC" = yes; then | |
15778 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
15779 | ||
15780 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
15781 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
15782 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
15783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15784 | else | |
15785 | lt_cv_prog_compiler_rtti_exceptions=no | |
15786 | ac_outfile=conftest.$ac_objext | |
15787 | save_CFLAGS="$CFLAGS" | |
15788 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
15789 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15790 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
15791 | # The compiler can only warn and ignore the option if not recognized | |
15792 | # So say no if there are warnings | |
15793 | if test -s conftest.err; then | |
15794 | # Append any errors to the config.log. | |
15795 | cat conftest.err 1>&5 | |
15796 | else | |
15797 | lt_cv_prog_compiler_rtti_exceptions=yes | |
15798 | fi | |
15799 | fi | |
15800 | $rm conftest* | |
15801 | CFLAGS="$save_CFLAGS" | |
15802 | ||
15803 | fi | |
15804 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
15805 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
15806 | ||
15807 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
15808 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
15809 | else | |
15810 | : | |
15811 | fi | |
15812 | ||
15813 | fi | |
15814 | ||
15815 | lt_prog_compiler_wl= | |
15816 | lt_prog_compiler_pic= | |
15817 | lt_prog_compiler_static= | |
15818 | ||
15819 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15820 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
15821 | ||
15822 | if test "$GCC" = yes; then | |
15823 | lt_prog_compiler_wl='-Wl,' | |
15824 | lt_prog_compiler_static='-static' | |
15825 | ||
15826 | case $host_os in | |
15827 | aix*) | |
15828 | # All AIX code is PIC. | |
15829 | if test "$host_cpu" = ia64; then | |
15830 | # AIX 5 now supports IA64 processor | |
15831 | lt_prog_compiler_static='-Bstatic' | |
15832 | fi | |
15833 | ;; | |
15834 | ||
15835 | amigaos*) | |
15836 | # FIXME: we need at least 68020 code to build shared libraries, but | |
15837 | # adding the `-m68020' flag to GCC prevents building anything better, | |
15838 | # like `-m68040'. | |
15839 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
15840 | ;; | |
15841 | ||
15842 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15843 | # PIC is the default for these OSes. | |
15844 | ;; | |
15845 | ||
15846 | cygwin* | mingw* | pw32* | os2*) | |
15847 | # This hack is so that the source file can tell whether it is being | |
15848 | # built for inclusion in a dll (and should export symbols for example). | |
15849 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
15850 | ;; | |
15851 | ||
15852 | darwin* | rhapsody*) | |
15853 | # PIC is the default on this platform | |
15854 | # Common symbols not allowed in MH_DYLIB files | |
15855 | lt_prog_compiler_pic='-fno-common' | |
15856 | ;; | |
15857 | ||
15858 | msdosdjgpp*) | |
15859 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15860 | # on systems that don't support them. | |
15861 | lt_prog_compiler_can_build_shared=no | |
15862 | enable_shared=no | |
15863 | ;; | |
15864 | ||
15865 | sysv4*MP*) | |
15866 | if test -d /usr/nec; then | |
15867 | lt_prog_compiler_pic=-Kconform_pic | |
15868 | fi | |
15869 | ;; | |
15870 | ||
15871 | hpux*) | |
15872 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
15873 | if test "$host_cpu" != ia64; then | |
15874 | lt_prog_compiler_pic='-fPIC' | |
15875 | fi | |
15876 | ;; | |
15877 | ||
15878 | *) | |
15879 | lt_prog_compiler_pic='-fPIC' | |
15880 | ;; | |
15881 | esac | |
15882 | else | |
15883 | # PORTME Check for flag to pass linker flags through the system compiler. | |
15884 | case $host_os in | |
15885 | aix*) | |
15886 | lt_prog_compiler_wl='-Wl,' | |
15887 | if test "$host_cpu" = ia64; then | |
15888 | # AIX 5 now supports IA64 processor | |
15889 | lt_prog_compiler_static='-Bstatic' | |
15890 | else | |
15891 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
15892 | fi | |
15893 | ;; | |
15894 | ||
15895 | cygwin* | mingw* | pw32* | os2*) | |
15896 | # This hack is so that the source file can tell whether it is being | |
15897 | # built for inclusion in a dll (and should export symbols for example). | |
15898 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
15899 | ;; | |
15900 | ||
15901 | hpux9* | hpux10* | hpux11*) | |
15902 | lt_prog_compiler_wl='-Wl,' | |
15903 | if test "$host_cpu" != ia64; then | |
15904 | lt_prog_compiler_pic='+Z' | |
15905 | fi | |
15906 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
15907 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
15908 | ;; | |
15909 | ||
15910 | irix5* | irix6* | nonstopux*) | |
15911 | lt_prog_compiler_wl='-Wl,' | |
15912 | # PIC (with -KPIC) is the default. | |
15913 | lt_prog_compiler_static='-non_shared' | |
15914 | ;; | |
15915 | ||
15916 | newsos6) | |
15917 | lt_prog_compiler_pic='-KPIC' | |
15918 | lt_prog_compiler_static='-Bstatic' | |
15919 | ;; | |
15920 | ||
15921 | osf3* | osf4* | osf5*) | |
15922 | lt_prog_compiler_wl='-Wl,' | |
15923 | # All OSF/1 code is PIC. | |
15924 | lt_prog_compiler_static='-non_shared' | |
15925 | ;; | |
15926 | ||
15927 | sco3.2v5*) | |
15928 | lt_prog_compiler_pic='-Kpic' | |
15929 | lt_prog_compiler_static='-dn' | |
15930 | ;; | |
15931 | ||
15932 | solaris*) | |
15933 | lt_prog_compiler_wl='-Wl,' | |
15934 | lt_prog_compiler_pic='-KPIC' | |
15935 | lt_prog_compiler_static='-Bstatic' | |
15936 | ;; | |
15937 | ||
15938 | sunos4*) | |
15939 | lt_prog_compiler_wl='-Qoption ld ' | |
15940 | lt_prog_compiler_pic='-PIC' | |
15941 | lt_prog_compiler_static='-Bstatic' | |
15942 | ;; | |
15943 | ||
15944 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15945 | if test "x$host_vendor" = xsni; then | |
15946 | lt_prog_compiler_wl='-LD' | |
15947 | else | |
15948 | lt_prog_compiler_wl='-Wl,' | |
15949 | fi | |
15950 | lt_prog_compiler_pic='-KPIC' | |
15951 | lt_prog_compiler_static='-Bstatic' | |
15952 | ;; | |
15953 | ||
15954 | sysv4*MP*) | |
15955 | if test -d /usr/nec ;then | |
15956 | lt_prog_compiler_pic='-Kconform_pic' | |
15957 | lt_prog_compiler_static='-Bstatic' | |
15958 | fi | |
15959 | ;; | |
15960 | ||
15961 | uts4*) | |
15962 | lt_prog_compiler_pic='-pic' | |
15963 | lt_prog_compiler_static='-Bstatic' | |
15964 | ;; | |
15965 | ||
15966 | *) | |
15967 | lt_prog_compiler_can_build_shared=no | |
15968 | ;; | |
15969 | esac | |
15970 | fi | |
15971 | ||
15972 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
15973 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
15974 | ||
15975 | # | |
15976 | # Check to make sure the PIC flag actually works. | |
15977 | # | |
15978 | if test -n "$lt_prog_compiler_pic"; then | |
15979 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
15980 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
15981 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
15982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15983 | else | |
15984 | lt_prog_compiler_pic_works=no | |
15985 | ac_outfile=conftest.$ac_objext | |
15986 | save_CFLAGS="$CFLAGS" | |
15987 | CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC" | |
15988 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15989 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
15990 | # The compiler can only warn and ignore the option if not recognized | |
15991 | # So say no if there are warnings | |
15992 | if test -s conftest.err; then | |
15993 | # Append any errors to the config.log. | |
15994 | cat conftest.err 1>&5 | |
15995 | else | |
15996 | lt_prog_compiler_pic_works=yes | |
15997 | fi | |
15998 | fi | |
15999 | $rm conftest* | |
16000 | CFLAGS="$save_CFLAGS" | |
16001 | ||
16002 | fi | |
16003 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
16004 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
16005 | ||
16006 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
16007 | case $lt_prog_compiler_pic in | |
16008 | "" | " "*) ;; | |
16009 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
16010 | esac | |
16011 | else | |
16012 | lt_prog_compiler_pic= | |
16013 | lt_prog_compiler_can_build_shared=no | |
16014 | fi | |
16015 | ||
16016 | fi | |
16017 | case "$host_os" in | |
16018 | # For platforms which do not support PIC, -DPIC is meaningless: | |
16019 | *djgpp*) | |
16020 | lt_prog_compiler_pic= | |
16021 | ;; | |
16022 | *) | |
16023 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
16024 | ;; | |
16025 | esac | |
16026 | ||
16027 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16028 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
16029 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
16030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16031 | else | |
16032 | lt_cv_prog_compiler_c_o=no | |
16033 | $rm -r conftest 2>/dev/null | |
16034 | mkdir conftest | |
16035 | cd conftest | |
16036 | mkdir out | |
16037 | save_CFLAGS="$CFLAGS" | |
16038 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | |
16039 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16040 | ||
16041 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
16042 | # that will create temporary files in the current directory regardless of | |
16043 | # the output directory. Thus, making CWD read-only will cause this test | |
16044 | # to fail, enabling locking or at least warning the user not to do parallel | |
16045 | # builds. | |
16046 | chmod -w . | |
16047 | ||
16048 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
16049 | then | |
16050 | # The compiler can only warn and ignore the option if not recognized | |
16051 | # So say no if there are warnings | |
16052 | if test -s out/conftest.err; then | |
16053 | # Append any errors to the config.log. | |
16054 | cat out/conftest.err 1>&5 | |
16055 | else | |
16056 | lt_cv_prog_compiler_c_o=yes | |
16057 | fi | |
16058 | fi | |
16059 | CFLAGS="$save_CFLAGS" | |
16060 | chmod u+w . | |
16061 | $rm conftest* out/* | |
16062 | rmdir out | |
16063 | cd .. | |
16064 | rmdir conftest | |
16065 | $rm conftest* | |
16066 | ||
16067 | fi | |
16068 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
16069 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
16070 | ||
16071 | ||
16072 | hard_links="nottested" | |
16073 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
16074 | # do not overwrite the value of need_locks provided by the user | |
16075 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
16076 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
16077 | hard_links=yes | |
16078 | $rm conftest* | |
16079 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16080 | touch conftest.a | |
16081 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
16082 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16083 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
16084 | echo "${ECHO_T}$hard_links" >&6 | |
16085 | if test "$hard_links" = no; then | |
16086 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
16087 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
16088 | need_locks=warn | |
16089 | fi | |
16090 | else | |
16091 | need_locks=no | |
16092 | fi | |
16093 | ||
16094 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
16095 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
16096 | ||
16097 | runpath_var= | |
16098 | allow_undefined_flag= | |
16099 | ||
16100 | archive_cmds= | |
16101 | archive_cmds_need_lc= | |
16102 | archive_expsym_cmds= | |
16103 | old_archive_From_new_cmds= | |
16104 | old_archive_from_expsyms_cmds= | |
16105 | export_dynamic_flag_spec= | |
16106 | whole_archive_flag_spec= | |
16107 | thread_safe_flag_spec= | |
16108 | hardcode_libdir_flag_spec= | |
16109 | hardcode_libdir_separator= | |
16110 | hardcode_direct=no | |
16111 | hardcode_minus_L=no | |
16112 | hardcode_shlibpath_var=unsupported | |
16113 | link_all_deplibs=unknown | |
16114 | always_export_symbols=no | |
16115 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16116 | # include_expsyms should be a list of space-separated symbols to be *always* | |
16117 | # included in the symbol list | |
16118 | include_expsyms= | |
16119 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
16120 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16121 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16122 | # as well as any symbol that contains `d'. | |
16123 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
16124 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16125 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
16126 | # the symbol is explicitly referenced. Since portable code cannot | |
16127 | # rely on this symbol name, it's probably fine to never include it in | |
16128 | # preloaded symbol tables. | |
16129 | extract_expsyms_cmds= | |
16130 | ||
16131 | case $host_os in | |
16132 | cygwin* | mingw* | pw32*) | |
16133 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16134 | # When not using gcc, we currently assume that we are using | |
16135 | # Microsoft Visual C++. | |
16136 | if test "$GCC" != yes; then | |
16137 | with_gnu_ld=no | |
16138 | fi | |
16139 | ;; | |
16140 | openbsd*) | |
16141 | with_gnu_ld=no | |
16142 | ;; | |
16143 | esac | |
16144 | ||
16145 | ld_shlibs=yes | |
16146 | if test "$with_gnu_ld" = yes; then | |
16147 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
16148 | wlarc='${wl}' | |
16149 | ||
16150 | # See if GNU ld supports shared libraries. | |
16151 | case $host_os in | |
16152 | aix3* | aix4* | aix5*) | |
16153 | # On AIX/PPC, the GNU linker is very broken | |
16154 | if test "$host_cpu" != ia64; then | |
16155 | ld_shlibs=no | |
16156 | cat <<EOF 1>&2 | |
16157 | ||
16158 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16159 | *** to be unable to reliably create shared libraries on AIX. | |
16160 | *** Therefore, libtool is disabling shared libraries support. If you | |
16161 | *** really care for shared libraries, you may want to modify your PATH | |
16162 | *** so that a non-GNU linker is found, and then restart. | |
16163 | ||
16164 | EOF | |
16165 | fi | |
16166 | ;; | |
16167 | ||
16168 | amigaos*) | |
16169 | 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)' | |
16170 | hardcode_libdir_flag_spec='-L$libdir' | |
16171 | hardcode_minus_L=yes | |
16172 | ||
16173 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16174 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
16175 | # to version 4, is to share data among multiple programs linked | |
16176 | # with the same dynamic library. Since this doesn't match the | |
16177 | # behavior of shared libraries on other platforms, we can't use | |
16178 | # them. | |
16179 | ld_shlibs=no | |
16180 | ;; | |
16181 | ||
16182 | beos*) | |
16183 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
16184 | allow_undefined_flag=unsupported | |
16185 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16186 | # support --undefined. This deserves some investigation. FIXME | |
16187 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16188 | else | |
16189 | ld_shlibs=no | |
16190 | fi | |
16191 | ;; | |
16192 | ||
16193 | cygwin* | mingw* | pw32*) | |
16194 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is | |
16195 | # no search path for DLLs. | |
16196 | hardcode_libdir_flag_spec='-L$libdir' | |
16197 | allow_undefined_flag=unsupported | |
16198 | always_export_symbols=yes | |
16199 | ||
16200 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
16201 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
16202 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
16203 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
16204 | else $CC -o impgen impgen.c ; fi)~ | |
16205 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
16206 | ||
16207 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
16208 | ||
16209 | # cygwin and mingw dlls have different entry points and sets of symbols | |
16210 | # to exclude. | |
16211 | # FIXME: what about values for MSVC? | |
16212 | dll_entry=__cygwin_dll_entry@12 | |
16213 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
16214 | case $host_os in | |
16215 | mingw*) | |
16216 | # mingw values | |
16217 | dll_entry=_DllMainCRTStartup@12 | |
16218 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
16219 | ;; | |
16220 | esac | |
16221 | ||
16222 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
16223 | # of the two symbol sets. | |
16224 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
16225 | ||
16226 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
16227 | # can override, but on older systems we have to supply one (in ltdll.c) | |
16228 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
16229 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
16230 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
16231 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
16232 | else | |
16233 | ltdll_obj= | |
16234 | ltdll_cmds= | |
16235 | fi | |
16236 | ||
16237 | # Extract the symbol export list from an `--export-all' def file, | |
16238 | # then regenerate the def file from the symbol export list, so that | |
16239 | # the compiled dll only exports the symbol export list. | |
16240 | # Be careful not to strip the DATA tag left by newer dlltools. | |
16241 | export_symbols_cmds="$ltdll_cmds"' | |
16242 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
16243 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
16244 | ||
16245 | # If the export-symbols file already is a .def file (1st line | |
16246 | # is EXPORTS), use it as is. | |
16247 | # If DATA tags from a recent dlltool are present, honour them! | |
16248 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
16249 | cp $export_symbols $output_objdir/$soname-def; | |
16250 | else | |
16251 | echo EXPORTS > $output_objdir/$soname-def; | |
16252 | _lt_hint=1; | |
16253 | cat $export_symbols | while read symbol; do | |
16254 | set dummy \$symbol; | |
16255 | case \$# in | |
16256 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
16257 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
16258 | esac; | |
16259 | _lt_hint=`expr 1 + \$_lt_hint`; | |
16260 | done; | |
16261 | fi~ | |
16262 | '"$ltdll_cmds"' | |
16263 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
16264 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
16265 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
16266 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
16267 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
16268 | ;; | |
16269 | ||
16270 | netbsd*) | |
16271 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16272 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16273 | wlarc= | |
16274 | else | |
16275 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16276 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16277 | fi | |
16278 | ;; | |
16279 | ||
16280 | solaris* | sysv5*) | |
16281 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
16282 | ld_shlibs=no | |
16283 | cat <<EOF 1>&2 | |
16284 | ||
16285 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16286 | *** create shared libraries on Solaris systems. Therefore, libtool | |
16287 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16288 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
16289 | *** your PATH or compiler configuration so that the native linker is | |
16290 | *** used, and then restart. | |
16291 | ||
16292 | EOF | |
16293 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
16294 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16295 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16296 | else | |
16297 | ld_shlibs=no | |
16298 | fi | |
16299 | ;; | |
16300 | ||
16301 | sunos4*) | |
16302 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16303 | wlarc= | |
16304 | hardcode_direct=yes | |
16305 | hardcode_shlibpath_var=no | |
16306 | ;; | |
16307 | ||
16308 | *) | |
16309 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
16310 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16311 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16312 | else | |
16313 | ld_shlibs=no | |
16314 | fi | |
16315 | ;; | |
16316 | esac | |
16317 | ||
16318 | if test "$ld_shlibs" = yes; then | |
16319 | runpath_var=LD_RUN_PATH | |
16320 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
16321 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
16322 | case $host_os in | |
16323 | cygwin* | mingw* | pw32*) | |
16324 | # dlltool doesn't understand --whole-archive et. al. | |
16325 | whole_archive_flag_spec= | |
16326 | ;; | |
16327 | *) | |
16328 | # ancient GNU ld didn't support --whole-archive et. al. | |
16329 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
16330 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16331 | else | |
16332 | whole_archive_flag_spec= | |
16333 | fi | |
16334 | ;; | |
16335 | esac | |
16336 | fi | |
16337 | else | |
16338 | # PORTME fill in a description of your system's linker (not GNU ld) | |
16339 | case $host_os in | |
16340 | aix3*) | |
16341 | allow_undefined_flag=unsupported | |
16342 | always_export_symbols=yes | |
16343 | 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' | |
16344 | # Note: this linker hardcodes the directories in LIBPATH if there | |
16345 | # are no directories specified by -L. | |
16346 | hardcode_minus_L=yes | |
16347 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
16348 | # Neither direct hardcoding nor static linking is supported with a | |
16349 | # broken collect2. | |
16350 | hardcode_direct=unsupported | |
16351 | fi | |
16352 | ;; | |
16353 | ||
16354 | aix4* | aix5*) | |
16355 | if test "$host_cpu" = ia64; then | |
16356 | # On IA64, the linker does run time linking by default, so we don't | |
16357 | # have to do anything special. | |
16358 | aix_use_runtimelinking=no | |
16359 | exp_sym_flag='-Bexport' | |
16360 | no_entry_flag="" | |
16361 | else | |
16362 | # If we're using GNU nm, then we don't want the "-C" option. | |
16363 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16364 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
16365 | 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' | |
16366 | else | |
16367 | 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' | |
16368 | fi | |
16369 | ||
16370 | # KDE requires run time linking. Make it the default. | |
16371 | aix_use_runtimelinking=yes | |
16372 | exp_sym_flag='-bexport' | |
16373 | no_entry_flag='-bnoentry' | |
16374 | fi | |
16375 | ||
16376 | # When large executables or shared objects are built, AIX ld can | |
16377 | # have problems creating the table of contents. If linking a library | |
16378 | # or program results in "error TOC overflow" add -mminimal-toc to | |
16379 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16380 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16381 | ||
16382 | archive_cmds='' | |
16383 | hardcode_direct=yes | |
16384 | hardcode_libdir_separator=':' | |
16385 | link_all_deplibs=yes | |
16386 | ||
16387 | if test "$GCC" = yes; then | |
16388 | case $host_os in aix4.012|aix4.012.*) | |
16389 | # We only want to do this on AIX 4.2 and lower, the check | |
16390 | # below for broken collect2 doesn't work under 4.3+ | |
16391 | collect2name=`${CC} -print-prog-name=collect2` | |
16392 | if test -f "$collect2name" && \ | |
16393 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16394 | then | |
16395 | # We have reworked collect2 | |
16396 | hardcode_direct=yes | |
16397 | else | |
16398 | # We have old collect2 | |
16399 | hardcode_direct=unsupported | |
16400 | # It fails to find uninstalled libraries when the uninstalled | |
16401 | # path is not listed in the libpath. Setting hardcode_minus_L | |
16402 | # to unsupported forces relinking | |
16403 | hardcode_minus_L=yes | |
16404 | hardcode_libdir_flag_spec='-L$libdir' | |
16405 | hardcode_libdir_separator= | |
16406 | fi | |
16407 | esac | |
16408 | shared_flag='-shared' | |
16409 | else | |
16410 | # not using gcc | |
16411 | if test "$host_cpu" = ia64; then | |
16412 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16413 | # chokes on -Wl,-G. The following line is correct: | |
16414 | shared_flag='-G' | |
16415 | else | |
16416 | if test "$aix_use_runtimelinking" = yes; then | |
16417 | shared_flag='-qmkshrobj ${wl}-G' | |
16418 | else | |
16419 | shared_flag='-qmkshrobj' | |
16420 | fi | |
16421 | fi | |
16422 | fi | |
16423 | ||
16424 | # Let the compiler handle the export list. | |
16425 | always_export_symbols=no | |
16426 | if test "$aix_use_runtimelinking" = yes; then | |
16427 | # Warning - without using the other runtime loading flags (-brtl), | |
16428 | # -berok will link without error, but may produce a broken library. | |
16429 | allow_undefined_flag='-berok' | |
16430 | # Determine the default libpath from the value encoded in an empty executable. | |
16431 | cat >conftest.$ac_ext <<_ACEOF | |
16432 | #line $LINENO "configure" | |
16433 | #include "confdefs.h" | |
16434 | ||
16435 | #ifdef F77_DUMMY_MAIN | |
16436 | # ifdef __cplusplus | |
16437 | extern "C" | |
16438 | # endif | |
16439 | int F77_DUMMY_MAIN() { return 1; } | |
16440 | #endif | |
16441 | int | |
16442 | main () | |
16443 | { | |
16444 | ||
16445 | ; | |
16446 | return 0; | |
16447 | } | |
16448 | _ACEOF | |
16449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16451 | (eval $ac_link) 2>&5 | |
16452 | ac_status=$? | |
16453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16454 | (exit $ac_status); } && | |
16455 | { ac_try='test -s conftest$ac_exeext' | |
16456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16457 | (eval $ac_try) 2>&5 | |
16458 | ac_status=$? | |
16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16460 | (exit $ac_status); }; }; then | |
16461 | ||
16462 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16463 | }'` | |
16464 | # Check for a 64-bit object if we didn't find anything. | |
16465 | 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; } | |
16466 | }'`; fi | |
16467 | else | |
16468 | echo "$as_me: failed program was:" >&5 | |
16469 | cat conftest.$ac_ext >&5 | |
16470 | fi | |
16471 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16472 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16473 | ||
16474 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16475 | archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
16476 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
16477 | else | |
16478 | if test "$host_cpu" = ia64; then | |
16479 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
16480 | allow_undefined_flag="-z nodefs" | |
16481 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
16482 | else | |
16483 | # Determine the default libpath from the value encoded in an empty executable. | |
16484 | cat >conftest.$ac_ext <<_ACEOF | |
16485 | #line $LINENO "configure" | |
16486 | #include "confdefs.h" | |
16487 | ||
16488 | #ifdef F77_DUMMY_MAIN | |
16489 | # ifdef __cplusplus | |
16490 | extern "C" | |
16491 | # endif | |
16492 | int F77_DUMMY_MAIN() { return 1; } | |
16493 | #endif | |
16494 | int | |
16495 | main () | |
16496 | { | |
16497 | ||
16498 | ; | |
16499 | return 0; | |
16500 | } | |
16501 | _ACEOF | |
16502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16504 | (eval $ac_link) 2>&5 | |
16505 | ac_status=$? | |
16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16507 | (exit $ac_status); } && | |
16508 | { ac_try='test -s conftest$ac_exeext' | |
16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16510 | (eval $ac_try) 2>&5 | |
16511 | ac_status=$? | |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16513 | (exit $ac_status); }; }; then | |
16514 | ||
16515 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16516 | }'` | |
16517 | # Check for a 64-bit object if we didn't find anything. | |
16518 | 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; } | |
16519 | }'`; fi | |
16520 | else | |
16521 | echo "$as_me: failed program was:" >&5 | |
16522 | cat conftest.$ac_ext >&5 | |
16523 | fi | |
16524 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16525 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16526 | ||
16527 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16528 | # Warning - without using the other run time loading flags, | |
16529 | # -berok will link without error, but may produce a broken library. | |
16530 | no_undefined_flag=' ${wl}-bernotok' | |
16531 | allow_undefined_flag=' ${wl}-berok' | |
16532 | # -bexpall does not export symbols beginning with underscore (_) | |
16533 | always_export_symbols=yes | |
16534 | # Exported symbols can be pulled into shared objects from archives | |
16535 | whole_archive_flag_spec=' ' | |
16536 | archive_cmds_need_lc=yes | |
16537 | # This is similar to how AIX traditionally builds it's shared libraries. | |
16538 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
16539 | fi | |
16540 | fi | |
16541 | ;; | |
16542 | ||
16543 | amigaos*) | |
16544 | 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)' | |
16545 | hardcode_libdir_flag_spec='-L$libdir' | |
16546 | hardcode_minus_L=yes | |
16547 | # see comment about different semantics on the GNU ld section | |
16548 | ld_shlibs=no | |
16549 | ;; | |
16550 | ||
16551 | bsdi4*) | |
16552 | export_dynamic_flag_spec=-rdynamic | |
16553 | ;; | |
16554 | ||
16555 | cygwin* | mingw* | pw32*) | |
16556 | # When not using gcc, we currently assume that we are using | |
16557 | # Microsoft Visual C++. | |
16558 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16559 | # no search path for DLLs. | |
16560 | hardcode_libdir_flag_spec=' ' | |
16561 | allow_undefined_flag=unsupported | |
16562 | # Tell ltmain to make .lib files, not .a files. | |
16563 | libext=lib | |
16564 | # FIXME: Setting linknames here is a bad hack. | |
16565 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16566 | # The linker will automatically build a .lib file if we build a DLL. | |
16567 | old_archive_From_new_cmds='true' | |
16568 | # FIXME: Should let the user specify the lib program. | |
16569 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
16570 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
16571 | ;; | |
16572 | ||
16573 | darwin* | rhapsody*) | |
16574 | case "$host_os" in | |
16575 | rhapsody* | darwin1.[012]) | |
16576 | allow_undefined_flag='-undefined suppress' | |
16577 | ;; | |
16578 | *) # Darwin 1.3 on | |
16579 | allow_undefined_flag='-flat_namespace -undefined suppress' | |
16580 | ;; | |
16581 | esac | |
16582 | ||
16583 | # FIXME: Relying on posixy $() will cause problems for | |
16584 | # cross-compilation, but unfortunately the echo tests do not | |
16585 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
16586 | # `"' quotes if we put them in here... so don't! | |
16587 | archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
16588 | # We need to add '_' to the symbols in $export_symbols first | |
16589 | #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' | |
16590 | hardcode_direct=yes | |
16591 | hardcode_shlibpath_var=no | |
16592 | whole_archive_flag_spec='-all_load $convenience' | |
16593 | ;; | |
16594 | ||
16595 | dgux*) | |
16596 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16597 | hardcode_libdir_flag_spec='-L$libdir' | |
16598 | hardcode_shlibpath_var=no | |
16599 | ;; | |
16600 | ||
16601 | freebsd1*) | |
16602 | ld_shlibs=no | |
16603 | ;; | |
16604 | ||
16605 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16606 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
16607 | # does not break anything, and helps significantly (at the cost of a little | |
16608 | # extra space). | |
16609 | freebsd2.2*) | |
16610 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16611 | hardcode_libdir_flag_spec='-R$libdir' | |
16612 | hardcode_direct=yes | |
16613 | hardcode_shlibpath_var=no | |
16614 | ;; | |
16615 | ||
16616 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16617 | freebsd2*) | |
16618 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16619 | hardcode_direct=yes | |
16620 | hardcode_minus_L=yes | |
16621 | hardcode_shlibpath_var=no | |
16622 | ;; | |
16623 | ||
16624 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16625 | freebsd*) | |
16626 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16627 | hardcode_libdir_flag_spec='-R$libdir' | |
16628 | hardcode_direct=yes | |
16629 | hardcode_shlibpath_var=no | |
16630 | ;; | |
16631 | ||
16632 | hpux9* | hpux10* | hpux11*) | |
16633 | if test "$GCC" = yes; then | |
16634 | case $host_os in | |
16635 | hpux9*) | |
16636 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
16637 | ;; | |
16638 | *) | |
16639 | if test "$host_cpu" = ia64; then | |
16640 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16641 | else | |
16642 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16643 | fi | |
16644 | ;; | |
16645 | esac | |
16646 | else | |
16647 | case $host_os in | |
16648 | hpux9*) | |
16649 | 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' | |
16650 | ;; | |
16651 | *) | |
16652 | if test "$host_cpu" = ia64; then | |
16653 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16654 | else | |
16655 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16656 | fi | |
16657 | ;; | |
16658 | esac | |
16659 | fi | |
16660 | if test "$host_cpu" = ia64; then | |
16661 | hardcode_libdir_flag_spec='-L$libdir' | |
16662 | hardcode_direct=no | |
16663 | hardcode_shlibpath_var=no | |
16664 | else | |
16665 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
16666 | hardcode_libdir_separator=: | |
16667 | hardcode_direct=yes | |
16668 | fi | |
16669 | # hardcode_minus_L: Not really in the search PATH, | |
16670 | # but as the default location of the library. | |
16671 | hardcode_minus_L=yes | |
16672 | export_dynamic_flag_spec='${wl}-E' | |
16673 | ;; | |
16674 | ||
16675 | irix5* | irix6* | nonstopux*) | |
16676 | if test "$GCC" = yes; then | |
16677 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16678 | else | |
16679 | 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' | |
16680 | fi | |
16681 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
16682 | hardcode_libdir_separator=: | |
16683 | link_all_deplibs=yes | |
16684 | ;; | |
16685 | ||
16686 | netbsd*) | |
16687 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16688 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
16689 | else | |
16690 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
16691 | fi | |
16692 | hardcode_libdir_flag_spec='-R$libdir' | |
16693 | hardcode_direct=yes | |
16694 | hardcode_shlibpath_var=no | |
16695 | ;; | |
16696 | ||
16697 | newsos6) | |
16698 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16699 | hardcode_direct=yes | |
16700 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
16701 | hardcode_libdir_separator=: | |
16702 | hardcode_shlibpath_var=no | |
16703 | ;; | |
16704 | ||
16705 | openbsd*) | |
16706 | hardcode_direct=yes | |
16707 | hardcode_shlibpath_var=no | |
16708 | ||
16709 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16710 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
16711 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
16712 | export_dynamic_flag_spec='${wl}-E' | |
16713 | else | |
16714 | case $host_os in | |
16715 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
16716 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16717 | hardcode_libdir_flag_spec='-R$libdir' | |
16718 | ;; | |
16719 | *) | |
16720 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
16721 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
16722 | ;; | |
16723 | esac | |
16724 | fi | |
16725 | ;; | |
16726 | ||
16727 | os2*) | |
16728 | hardcode_libdir_flag_spec='-L$libdir' | |
16729 | hardcode_minus_L=yes | |
16730 | allow_undefined_flag=unsupported | |
16731 | 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 $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
16732 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
16733 | ;; | |
16734 | ||
16735 | osf3*) | |
16736 | if test "$GCC" = yes; then | |
16737 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
16738 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16739 | else | |
16740 | allow_undefined_flag=' -expect_unresolved \*' | |
16741 | 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' | |
16742 | fi | |
16743 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
16744 | hardcode_libdir_separator=: | |
16745 | ;; | |
16746 | ||
16747 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
16748 | if test "$GCC" = yes; then | |
16749 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
16750 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${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' | |
16751 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
16752 | else | |
16753 | allow_undefined_flag=' -expect_unresolved \*' | |
16754 | 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' | |
16755 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
16756 | $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' | |
16757 | ||
16758 | # Both c and cxx compiler support -rpath directly | |
16759 | hardcode_libdir_flag_spec='-rpath $libdir' | |
16760 | fi | |
16761 | hardcode_libdir_separator=: | |
16762 | ;; | |
16763 | ||
16764 | sco3.2v5*) | |
16765 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16766 | hardcode_shlibpath_var=no | |
16767 | export_dynamic_flag_spec='${wl}-Bexport' | |
16768 | runpath_var=LD_RUN_PATH | |
16769 | hardcode_runpath_var=yes | |
16770 | ;; | |
16771 | ||
16772 | solaris*) | |
16773 | no_undefined_flag=' -z text' | |
16774 | if test "$GCC" = yes; then | |
16775 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16776 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16777 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
16778 | else | |
16779 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16780 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16781 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16782 | fi | |
16783 | hardcode_libdir_flag_spec='-R$libdir' | |
16784 | hardcode_shlibpath_var=no | |
16785 | case $host_os in | |
16786 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16787 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
16788 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
16789 | esac | |
16790 | link_all_deplibs=yes | |
16791 | ;; | |
16792 | ||
16793 | sunos4*) | |
16794 | if test "x$host_vendor" = xsequent; then | |
16795 | # Use $CC to link under sequent, because it throws in some extra .o | |
16796 | # files that make .init and .fini sections work. | |
16797 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
16798 | else | |
16799 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
16800 | fi | |
16801 | hardcode_libdir_flag_spec='-L$libdir' | |
16802 | hardcode_direct=yes | |
16803 | hardcode_minus_L=yes | |
16804 | hardcode_shlibpath_var=no | |
16805 | ;; | |
16806 | ||
16807 | sysv4) | |
16808 | if test "x$host_vendor" = xsni; then | |
16809 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16810 | hardcode_direct=yes # is this really true??? | |
16811 | else | |
16812 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16813 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
16814 | fi | |
16815 | runpath_var='LD_RUN_PATH' | |
16816 | hardcode_shlibpath_var=no | |
16817 | ;; | |
16818 | ||
16819 | sysv4.3*) | |
16820 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16821 | hardcode_shlibpath_var=no | |
16822 | export_dynamic_flag_spec='-Bexport' | |
16823 | ;; | |
16824 | ||
16825 | sysv4*MP*) | |
16826 | if test -d /usr/nec; then | |
16827 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16828 | hardcode_shlibpath_var=no | |
16829 | runpath_var=LD_RUN_PATH | |
16830 | hardcode_runpath_var=yes | |
16831 | ld_shlibs=yes | |
16832 | fi | |
16833 | ;; | |
16834 | ||
16835 | sysv4.2uw2*) | |
16836 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
16837 | hardcode_direct=yes | |
16838 | hardcode_minus_L=no | |
16839 | hardcode_shlibpath_var=no | |
16840 | hardcode_runpath_var=yes | |
16841 | runpath_var=LD_RUN_PATH | |
16842 | ;; | |
16843 | ||
16844 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
16845 | no_undefined_flag='${wl}-z ${wl}text' | |
16846 | if test "$GCC" = yes; then | |
16847 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16848 | else | |
16849 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16850 | fi | |
16851 | runpath_var='LD_RUN_PATH' | |
16852 | hardcode_shlibpath_var=no | |
16853 | ;; | |
16854 | ||
16855 | sysv5*) | |
16856 | no_undefined_flag=' -z text' | |
16857 | # $CC -shared without GNU ld will not create a library from C++ | |
16858 | # object files and a static libstdc++, better avoid it by now | |
16859 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16860 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16861 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16862 | hardcode_libdir_flag_spec= | |
16863 | hardcode_shlibpath_var=no | |
16864 | runpath_var='LD_RUN_PATH' | |
16865 | ;; | |
16866 | ||
16867 | uts4*) | |
16868 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16869 | hardcode_libdir_flag_spec='-L$libdir' | |
16870 | hardcode_shlibpath_var=no | |
16871 | ;; | |
16872 | ||
16873 | *) | |
16874 | ld_shlibs=no | |
16875 | ;; | |
16876 | esac | |
16877 | fi | |
16878 | ||
16879 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
16880 | echo "${ECHO_T}$ld_shlibs" >&6 | |
16881 | test "$ld_shlibs" = no && can_build_shared=no | |
16882 | ||
16883 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16884 | if test "$GCC" = yes; then | |
16885 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
16886 | fi | |
16887 | ||
16888 | # | |
16889 | # Do we need to explicitly link libc? | |
16890 | # | |
16891 | archive_cmds_need_lc=yes | |
16892 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
16893 | case $archive_cmds in | |
16894 | *'~'*) | |
16895 | # FIXME: we may have to deal with multi-command sequences. | |
16896 | ;; | |
16897 | '$CC '*) | |
16898 | # Test whether the compiler implicitly links with -lc since on some | |
16899 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
16900 | # to ld, don't add -lc before -lgcc. | |
16901 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
16902 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
16903 | $rm conftest* | |
16904 | echo 'static int dummy;' > conftest.$ac_ext | |
16905 | ||
16906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16907 | (eval $ac_compile) 2>&5 | |
16908 | ac_status=$? | |
16909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16910 | (exit $ac_status); } 2>conftest.err; then | |
16911 | soname=conftest | |
16912 | lib=conftest | |
16913 | libobjs=conftest.$ac_objext | |
16914 | deplibs= | |
16915 | wl=$lt_prog_compiler_wl | |
16916 | compiler_flags=-v | |
16917 | linker_flags=-v | |
16918 | verstring= | |
16919 | output_objdir=. | |
16920 | libname=conftest | |
16921 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
16922 | allow_undefined_flag= | |
16923 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
16924 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
16925 | ac_status=$? | |
16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16927 | (exit $ac_status); } | |
16928 | then | |
16929 | archive_cmds_need_lc=no | |
16930 | else | |
16931 | archive_cmds_need_lc=yes | |
16932 | fi | |
16933 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
16934 | else | |
16935 | cat conftest.err 1>&5 | |
16936 | fi | |
16937 | $rm conftest* | |
16938 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
16939 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
16940 | ;; | |
16941 | esac | |
16942 | fi | |
16943 | ||
16944 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
16945 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
16946 | hardcode_action= | |
16947 | if test -n "$hardcode_libdir_flag_spec" || \ | |
16948 | test -n "$runpath_var "; then | |
16949 | ||
16950 | # We can hardcode non-existant directories. | |
16951 | if test "$hardcode_direct" != no && | |
16952 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16953 | # have to relink, otherwise we might link with an installed library | |
16954 | # when we should be linking with a yet-to-be-installed one | |
16955 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
16956 | test "$hardcode_minus_L" != no; then | |
16957 | # Linking always hardcodes the temporary library directory. | |
16958 | hardcode_action=relink | |
16959 | else | |
16960 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16961 | hardcode_action=immediate | |
16962 | fi | |
16963 | else | |
16964 | # We cannot hardcode anything, or else we can only hardcode existing | |
16965 | # directories. | |
16966 | hardcode_action=unsupported | |
16967 | fi | |
16968 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
16969 | echo "${ECHO_T}$hardcode_action" >&6 | |
16970 | ||
16971 | if test "$hardcode_action" = relink; then | |
16972 | # Fast installation is not supported | |
16973 | enable_fast_install=no | |
16974 | elif test "$shlibpath_overrides_runpath" = yes || | |
16975 | test "$enable_shared" = no; then | |
16976 | # Fast installation is not necessary | |
16977 | enable_fast_install=needless | |
16978 | fi | |
16979 | ||
16980 | striplib= | |
16981 | old_striplib= | |
16982 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
16983 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
16984 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
16985 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
16986 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
16987 | echo "$as_me:$LINENO: result: yes" >&5 | |
16988 | echo "${ECHO_T}yes" >&6 | |
16989 | else | |
16990 | echo "$as_me:$LINENO: result: no" >&5 | |
16991 | echo "${ECHO_T}no" >&6 | |
16992 | fi | |
16993 | ||
16994 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
16995 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
16996 | library_names_spec= | |
16997 | libname_spec='lib$name' | |
16998 | soname_spec= | |
16999 | postinstall_cmds= | |
17000 | postuninstall_cmds= | |
17001 | finish_cmds= | |
17002 | finish_eval= | |
17003 | shlibpath_var= | |
17004 | shlibpath_overrides_runpath=unknown | |
17005 | version_type=none | |
17006 | dynamic_linker="$host_os ld.so" | |
17007 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17008 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17009 | need_lib_prefix=unknown | |
17010 | hardcode_into_libs=no | |
17011 | ||
17012 | # when you set need_version to no, make sure it does not cause -set_version | |
17013 | # flags to be left without arguments | |
17014 | need_version=unknown | |
17015 | ||
17016 | case $host_os in | |
17017 | aix3*) | |
17018 | version_type=linux | |
17019 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
17020 | shlibpath_var=LIBPATH | |
17021 | ||
17022 | # AIX 3 has no versioning support, so we append a major version to the name. | |
17023 | soname_spec='${libname}${release}.so$major' | |
17024 | ;; | |
17025 | ||
17026 | aix4* | aix5*) | |
17027 | version_type=linux | |
17028 | if test "$host_cpu" = ia64; then | |
17029 | # AIX 5 supports IA64 | |
17030 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
17031 | shlibpath_var=LD_LIBRARY_PATH | |
17032 | else | |
17033 | # With GCC up to 2.95.x, collect2 would create an import file | |
17034 | # for dependence libraries. The import file would start with | |
17035 | # the line `#! .'. This would cause the generated library to | |
17036 | # depend on `.', always an invalid library. This was fixed in | |
17037 | # development snapshots of GCC prior to 3.0. | |
17038 | case $host_os in | |
17039 | aix4 | aix4.[01] | aix4.[01].*) | |
17040 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17041 | echo ' yes ' | |
17042 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17043 | : | |
17044 | else | |
17045 | can_build_shared=no | |
17046 | fi | |
17047 | ;; | |
17048 | esac | |
17049 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17050 | # soname into executable. Probably we can add versioning support to | |
17051 | # collect2, so additional links can be useful in future. | |
17052 | if test "$aix_use_runtimelinking" = yes; then | |
17053 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17054 | # instead of lib<name>.a to let people know that these are not | |
17055 | # typical AIX shared libraries. | |
17056 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17057 | else | |
17058 | # We preserve .a as extension for shared libraries through AIX4.2 | |
17059 | # and later when we are not doing run time linking. | |
17060 | library_names_spec='${libname}${release}.a $libname.a' | |
17061 | soname_spec='${libname}${release}.so$major' | |
17062 | fi | |
17063 | shlibpath_var=LIBPATH | |
17064 | fi | |
17065 | ;; | |
17066 | ||
17067 | amigaos*) | |
17068 | library_names_spec='$libname.ixlibrary $libname.a' | |
17069 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17070 | 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' | |
17071 | ;; | |
17072 | ||
17073 | beos*) | |
17074 | library_names_spec='${libname}.so' | |
17075 | dynamic_linker="$host_os ld.so" | |
17076 | shlibpath_var=LIBRARY_PATH | |
17077 | ;; | |
17078 | ||
17079 | bsdi4*) | |
17080 | version_type=linux | |
17081 | need_version=no | |
17082 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17083 | soname_spec='${libname}${release}.so$major' | |
17084 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17085 | shlibpath_var=LD_LIBRARY_PATH | |
17086 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17087 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17088 | # the default ld.so.conf also contains /usr/contrib/lib and | |
17089 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17090 | # libtool to hard-code these into programs | |
17091 | ;; | |
17092 | ||
17093 | cygwin* | mingw* | pw32*) | |
17094 | version_type=windows | |
17095 | need_version=no | |
17096 | need_lib_prefix=no | |
17097 | case $GCC,$host_os in | |
17098 | yes,cygwin*) | |
17099 | library_names_spec='$libname.dll.a' | |
17100 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
17101 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
17102 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
17103 | dldir=$destdir/`dirname \$dlpath`~ | |
17104 | test -d \$dldir || mkdir -p \$dldir~ | |
17105 | $install_prog .libs/$dlname \$dldir/$dlname' | |
17106 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17107 | dlpath=$dir/\$dldll~ | |
17108 | $rm \$dlpath' | |
17109 | ;; | |
17110 | yes,mingw*) | |
17111 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
17112 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
17113 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
17114 | # It is most probably a Windows format PATH printed by | |
17115 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17116 | # path with ; separators, and with drive letters. We can handle the | |
17117 | # drive letters (cygwin fileutils understands them), so leave them, | |
17118 | # especially as we might pass files found there to a mingw objdump, | |
17119 | # which wouldn't understand a cygwinified path. Ahh. | |
17120 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
17121 | else | |
17122 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
17123 | fi | |
17124 | ;; | |
17125 | yes,pw32*) | |
17126 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
17127 | ;; | |
17128 | *) | |
17129 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
17130 | ;; | |
17131 | esac | |
17132 | dynamic_linker='Win32 ld.exe' | |
17133 | # FIXME: first we should search . and the directory the executable is in | |
17134 | shlibpath_var=PATH | |
17135 | ;; | |
17136 | ||
17137 | darwin* | rhapsody*) | |
17138 | dynamic_linker="$host_os dyld" | |
17139 | version_type=darwin | |
17140 | need_lib_prefix=no | |
17141 | need_version=no | |
17142 | # FIXME: Relying on posixy $() will cause problems for | |
17143 | # cross-compilation, but unfortunately the echo tests do not | |
17144 | # yet detect zsh echo's removal of \ escapes. | |
17145 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
17146 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
17147 | shlibpath_overrides_runpath=yes | |
17148 | shlibpath_var=DYLD_LIBRARY_PATH | |
17149 | ;; | |
17150 | ||
17151 | dgux*) | |
17152 | version_type=linux | |
17153 | need_lib_prefix=no | |
17154 | need_version=no | |
17155 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17156 | soname_spec='${libname}${release}.so$major' | |
17157 | shlibpath_var=LD_LIBRARY_PATH | |
17158 | ;; | |
17159 | ||
17160 | freebsd1*) | |
17161 | dynamic_linker=no | |
17162 | ;; | |
17163 | ||
17164 | freebsd*) | |
17165 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
17166 | version_type=freebsd-$objformat | |
17167 | case $version_type in | |
17168 | freebsd-elf*) | |
17169 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
17170 | need_version=no | |
17171 | need_lib_prefix=no | |
17172 | ;; | |
17173 | freebsd-*) | |
17174 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
17175 | need_version=yes | |
17176 | ;; | |
17177 | esac | |
17178 | shlibpath_var=LD_LIBRARY_PATH | |
17179 | case $host_os in | |
17180 | freebsd2*) | |
17181 | shlibpath_overrides_runpath=yes | |
17182 | ;; | |
17183 | freebsd3.01* | freebsdelf3.01*) | |
17184 | shlibpath_overrides_runpath=yes | |
17185 | hardcode_into_libs=yes | |
17186 | ;; | |
17187 | *) # from 3.2 on | |
17188 | shlibpath_overrides_runpath=no | |
17189 | hardcode_into_libs=yes | |
17190 | ;; | |
17191 | esac | |
17192 | ;; | |
17193 | ||
17194 | gnu*) | |
17195 | version_type=linux | |
17196 | need_lib_prefix=no | |
17197 | need_version=no | |
17198 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
17199 | soname_spec='${libname}${release}.so$major' | |
17200 | shlibpath_var=LD_LIBRARY_PATH | |
17201 | hardcode_into_libs=yes | |
17202 | ;; | |
17203 | ||
17204 | hpux9* | hpux10* | hpux11*) | |
17205 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
17206 | # link against other versions. | |
17207 | version_type=sunos | |
17208 | need_lib_prefix=no | |
17209 | need_version=no | |
17210 | if test "$host_cpu" = ia64; then | |
17211 | hardcode_into_libs=yes | |
17212 | dynamic_linker="$host_os dld.so" | |
17213 | shlibpath_var=LD_LIBRARY_PATH | |
17214 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17215 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17216 | soname_spec='${libname}${release}.so$major' | |
17217 | if test "X$HPUX_IA64_MODE" = X32; then | |
17218 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
17219 | else | |
17220 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17221 | fi | |
17222 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17223 | else | |
17224 | dynamic_linker="$host_os dld.sl" | |
17225 | shlibpath_var=SHLIB_PATH | |
17226 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17227 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
17228 | soname_spec='${libname}${release}.sl$major' | |
17229 | fi | |
17230 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17231 | postinstall_cmds='chmod 555 $lib' | |
17232 | ;; | |
17233 | ||
17234 | irix5* | irix6* | nonstopux*) | |
17235 | case $host_os in | |
17236 | nonstopux*) version_type=nonstopux ;; | |
17237 | *) version_type=irix ;; | |
17238 | esac | |
17239 | need_lib_prefix=no | |
17240 | need_version=no | |
17241 | soname_spec='${libname}${release}.so$major' | |
17242 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
17243 | case $host_os in | |
17244 | irix5* | nonstopux*) | |
17245 | libsuff= shlibsuff= | |
17246 | ;; | |
17247 | *) | |
17248 | case $LD in # libtool.m4 will add one of these switches to LD | |
17249 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
17250 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17251 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17252 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17253 | esac | |
17254 | ;; | |
17255 | esac | |
17256 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17257 | shlibpath_overrides_runpath=no | |
17258 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17259 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17260 | ;; | |
17261 | ||
17262 | # No shared lib support for Linux oldld, aout, or coff. | |
17263 | linux*oldld* | linux*aout* | linux*coff*) | |
17264 | dynamic_linker=no | |
17265 | ;; | |
17266 | ||
17267 | # This must be Linux ELF. | |
17268 | linux*) | |
17269 | version_type=linux | |
17270 | need_lib_prefix=no | |
17271 | need_version=no | |
17272 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17273 | soname_spec='${libname}${release}.so$major' | |
17274 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17275 | libsuff= | |
17276 | if test "x$LINUX_64_MODE" = x64; then | |
17277 | # Some platforms are per default 64-bit, so there's no /lib64 | |
17278 | if test -d /lib64; then | |
17279 | libsuff=64 | |
17280 | fi | |
17281 | fi | |
17282 | shlibpath_var=LD_LIBRARY_PATH | |
17283 | shlibpath_overrides_runpath=no | |
17284 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
17285 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
17286 | # This implies no fast_install, which is unacceptable. | |
17287 | # Some rework will be needed to allow for fast_install | |
17288 | # before this can be enabled. | |
17289 | hardcode_into_libs=yes | |
17290 | ||
17291 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17292 | # powerpc, because MkLinux only supported shared libraries with the | |
17293 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17294 | # most powerpc-linux boxes support dynamic linking these days and | |
17295 | # people can always --disable-shared, the test was removed, and we | |
17296 | # assume the GNU/Linux dynamic linker is in use. | |
17297 | dynamic_linker='GNU/Linux ld.so' | |
17298 | ;; | |
17299 | ||
17300 | netbsd*) | |
17301 | version_type=sunos | |
17302 | need_lib_prefix=no | |
17303 | need_version=no | |
17304 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17305 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
17306 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17307 | dynamic_linker='NetBSD (a.out) ld.so' | |
17308 | else | |
17309 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
17310 | soname_spec='${libname}${release}.so$major' | |
17311 | dynamic_linker='NetBSD ld.elf_so' | |
17312 | fi | |
17313 | shlibpath_var=LD_LIBRARY_PATH | |
17314 | shlibpath_overrides_runpath=yes | |
17315 | hardcode_into_libs=yes | |
17316 | ;; | |
17317 | ||
17318 | newsos6) | |
17319 | version_type=linux | |
17320 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17321 | shlibpath_var=LD_LIBRARY_PATH | |
17322 | shlibpath_overrides_runpath=yes | |
17323 | ;; | |
17324 | ||
17325 | nto-qnx) | |
17326 | version_type=linux | |
17327 | need_lib_prefix=no | |
17328 | need_version=no | |
17329 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17330 | soname_spec='${libname}${release}.so$major' | |
17331 | shlibpath_var=LD_LIBRARY_PATH | |
17332 | shlibpath_overrides_runpath=yes | |
17333 | ;; | |
17334 | ||
17335 | openbsd*) | |
17336 | version_type=sunos | |
17337 | need_lib_prefix=no | |
17338 | need_version=no | |
17339 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
17340 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17341 | shlibpath_var=LD_LIBRARY_PATH | |
17342 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17343 | case $host_os in | |
17344 | openbsd2.[89] | openbsd2.[89].*) | |
17345 | shlibpath_overrides_runpath=no | |
17346 | ;; | |
17347 | *) | |
17348 | shlibpath_overrides_runpath=yes | |
17349 | ;; | |
17350 | esac | |
17351 | else | |
17352 | shlibpath_overrides_runpath=yes | |
17353 | fi | |
17354 | ;; | |
17355 | ||
17356 | os2*) | |
17357 | libname_spec='$name' | |
17358 | need_lib_prefix=no | |
17359 | library_names_spec='$libname.dll $libname.a' | |
17360 | dynamic_linker='OS/2 ld.exe' | |
17361 | shlibpath_var=LIBPATH | |
17362 | ;; | |
17363 | ||
17364 | osf3* | osf4* | osf5*) | |
17365 | version_type=osf | |
17366 | need_lib_prefix=no | |
17367 | need_version=no | |
17368 | soname_spec='${libname}${release}.so' | |
17369 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
17370 | shlibpath_var=LD_LIBRARY_PATH | |
17371 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17372 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17373 | ;; | |
17374 | ||
17375 | sco3.2v5*) | |
17376 | version_type=osf | |
17377 | soname_spec='${libname}${release}.so$major' | |
17378 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17379 | shlibpath_var=LD_LIBRARY_PATH | |
17380 | ;; | |
17381 | ||
17382 | solaris*) | |
17383 | version_type=linux | |
17384 | need_lib_prefix=no | |
17385 | need_version=no | |
17386 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17387 | soname_spec='${libname}${release}.so$major' | |
17388 | shlibpath_var=LD_LIBRARY_PATH | |
17389 | shlibpath_overrides_runpath=yes | |
17390 | hardcode_into_libs=yes | |
17391 | # ldd complains unless libraries are executable | |
17392 | postinstall_cmds='chmod +x $lib' | |
17393 | ;; | |
17394 | ||
17395 | sunos4*) | |
17396 | version_type=sunos | |
17397 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
17398 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17399 | shlibpath_var=LD_LIBRARY_PATH | |
17400 | shlibpath_overrides_runpath=yes | |
17401 | if test "$with_gnu_ld" = yes; then | |
17402 | need_lib_prefix=no | |
17403 | fi | |
17404 | need_version=yes | |
17405 | ;; | |
17406 | ||
17407 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
17408 | version_type=linux | |
17409 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17410 | soname_spec='${libname}${release}.so$major' | |
17411 | shlibpath_var=LD_LIBRARY_PATH | |
17412 | case $host_vendor in | |
17413 | sni) | |
17414 | shlibpath_overrides_runpath=no | |
17415 | ;; | |
17416 | motorola) | |
17417 | need_lib_prefix=no | |
17418 | need_version=no | |
17419 | shlibpath_overrides_runpath=no | |
17420 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17421 | ;; | |
17422 | esac | |
17423 | ;; | |
17424 | ||
17425 | sysv4*MP*) | |
17426 | if test -d /usr/nec ;then | |
17427 | version_type=linux | |
17428 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
17429 | soname_spec='$libname.so.$major' | |
17430 | shlibpath_var=LD_LIBRARY_PATH | |
17431 | fi | |
17432 | ;; | |
17433 | ||
17434 | uts4*) | |
17435 | version_type=linux | |
17436 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17437 | soname_spec='${libname}${release}.so$major' | |
17438 | shlibpath_var=LD_LIBRARY_PATH | |
17439 | ;; | |
17440 | ||
17441 | *) | |
17442 | dynamic_linker=no | |
17443 | ;; | |
17444 | esac | |
17445 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17446 | echo "${ECHO_T}$dynamic_linker" >&6 | |
17447 | test "$dynamic_linker" = no && can_build_shared=no | |
17448 | ||
17449 | if test "x$enable_dlopen" != xyes; then | |
17450 | enable_dlopen=unknown | |
17451 | enable_dlopen_self=unknown | |
17452 | enable_dlopen_self_static=unknown | |
17453 | else | |
17454 | lt_cv_dlopen=no | |
17455 | lt_cv_dlopen_libs= | |
17456 | ||
17457 | case $host_os in | |
17458 | beos*) | |
17459 | lt_cv_dlopen="load_add_on" | |
17460 | lt_cv_dlopen_libs= | |
17461 | lt_cv_dlopen_self=yes | |
17462 | ;; | |
17463 | ||
17464 | cygwin* | mingw* | pw32*) | |
17465 | lt_cv_dlopen="LoadLibrary" | |
17466 | lt_cv_dlopen_libs= | |
17467 | ;; | |
17468 | ||
17469 | *) | |
17470 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
17471 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
17472 | if test "${ac_cv_func_shl_load+set}" = set; then | |
17473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17474 | else | |
17475 | cat >conftest.$ac_ext <<_ACEOF | |
17476 | #line $LINENO "configure" | |
17477 | #include "confdefs.h" | |
17478 | /* System header to define __stub macros and hopefully few prototypes, | |
17479 | which can conflict with char shl_load (); below. */ | |
17480 | #include <assert.h> | |
17481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17482 | #ifdef __cplusplus | |
17483 | extern "C" | |
17484 | #endif | |
17485 | /* We use char because int might match the return type of a gcc2 | |
17486 | builtin and then its argument prototype would still apply. */ | |
17487 | char shl_load (); | |
17488 | char (*f) (); | |
17489 | ||
17490 | #ifdef F77_DUMMY_MAIN | |
17491 | # ifdef __cplusplus | |
17492 | extern "C" | |
17493 | # endif | |
17494 | int F77_DUMMY_MAIN() { return 1; } | |
17495 | #endif | |
17496 | int | |
17497 | main () | |
17498 | { | |
17499 | /* The GNU C library defines this for functions which it implements | |
17500 | to always fail with ENOSYS. Some functions are actually named | |
17501 | something starting with __ and the normal name is an alias. */ | |
17502 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
17503 | choke me | |
17504 | #else | |
17505 | f = shl_load; | |
17506 | #endif | |
17507 | ||
17508 | ; | |
17509 | return 0; | |
17510 | } | |
17511 | _ACEOF | |
17512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17514 | (eval $ac_link) 2>&5 | |
17515 | ac_status=$? | |
17516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17517 | (exit $ac_status); } && | |
17518 | { ac_try='test -s conftest$ac_exeext' | |
17519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17520 | (eval $ac_try) 2>&5 | |
17521 | ac_status=$? | |
17522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17523 | (exit $ac_status); }; }; then | |
17524 | ac_cv_func_shl_load=yes | |
17525 | else | |
17526 | echo "$as_me: failed program was:" >&5 | |
17527 | cat conftest.$ac_ext >&5 | |
17528 | ac_cv_func_shl_load=no | |
17529 | fi | |
17530 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17531 | fi | |
17532 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
17533 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
17534 | if test $ac_cv_func_shl_load = yes; then | |
17535 | lt_cv_dlopen="shl_load" | |
17536 | else | |
17537 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
17538 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
17539 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
17540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17541 | else | |
17542 | ac_check_lib_save_LIBS=$LIBS | |
17543 | LIBS="-ldld $LIBS" | |
17544 | cat >conftest.$ac_ext <<_ACEOF | |
17545 | #line $LINENO "configure" | |
17546 | #include "confdefs.h" | |
17547 | ||
17548 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17549 | #ifdef __cplusplus | |
17550 | extern "C" | |
17551 | #endif | |
17552 | /* We use char because int might match the return type of a gcc2 | |
17553 | builtin and then its argument prototype would still apply. */ | |
17554 | char shl_load (); | |
17555 | #ifdef F77_DUMMY_MAIN | |
17556 | # ifdef __cplusplus | |
17557 | extern "C" | |
17558 | # endif | |
17559 | int F77_DUMMY_MAIN() { return 1; } | |
17560 | #endif | |
17561 | int | |
17562 | main () | |
17563 | { | |
17564 | shl_load (); | |
17565 | ; | |
17566 | return 0; | |
17567 | } | |
17568 | _ACEOF | |
17569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17571 | (eval $ac_link) 2>&5 | |
17572 | ac_status=$? | |
17573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17574 | (exit $ac_status); } && | |
17575 | { ac_try='test -s conftest$ac_exeext' | |
17576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17577 | (eval $ac_try) 2>&5 | |
17578 | ac_status=$? | |
17579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17580 | (exit $ac_status); }; }; then | |
17581 | ac_cv_lib_dld_shl_load=yes | |
17582 | else | |
17583 | echo "$as_me: failed program was:" >&5 | |
17584 | cat conftest.$ac_ext >&5 | |
17585 | ac_cv_lib_dld_shl_load=no | |
17586 | fi | |
17587 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17588 | LIBS=$ac_check_lib_save_LIBS | |
17589 | fi | |
17590 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
17591 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
17592 | if test $ac_cv_lib_dld_shl_load = yes; then | |
17593 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
17594 | else | |
17595 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
17596 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
17597 | if test "${ac_cv_func_dlopen+set}" = set; then | |
17598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17599 | else | |
17600 | cat >conftest.$ac_ext <<_ACEOF | |
17601 | #line $LINENO "configure" | |
17602 | #include "confdefs.h" | |
17603 | /* System header to define __stub macros and hopefully few prototypes, | |
17604 | which can conflict with char dlopen (); below. */ | |
17605 | #include <assert.h> | |
17606 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17607 | #ifdef __cplusplus | |
17608 | extern "C" | |
17609 | #endif | |
17610 | /* We use char because int might match the return type of a gcc2 | |
17611 | builtin and then its argument prototype would still apply. */ | |
17612 | char dlopen (); | |
17613 | char (*f) (); | |
17614 | ||
17615 | #ifdef F77_DUMMY_MAIN | |
17616 | # ifdef __cplusplus | |
17617 | extern "C" | |
17618 | # endif | |
17619 | int F77_DUMMY_MAIN() { return 1; } | |
17620 | #endif | |
17621 | int | |
17622 | main () | |
17623 | { | |
17624 | /* The GNU C library defines this for functions which it implements | |
17625 | to always fail with ENOSYS. Some functions are actually named | |
17626 | something starting with __ and the normal name is an alias. */ | |
17627 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
17628 | choke me | |
17629 | #else | |
17630 | f = dlopen; | |
17631 | #endif | |
17632 | ||
17633 | ; | |
17634 | return 0; | |
17635 | } | |
17636 | _ACEOF | |
17637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17639 | (eval $ac_link) 2>&5 | |
17640 | ac_status=$? | |
17641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17642 | (exit $ac_status); } && | |
17643 | { ac_try='test -s conftest$ac_exeext' | |
17644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17645 | (eval $ac_try) 2>&5 | |
17646 | ac_status=$? | |
17647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17648 | (exit $ac_status); }; }; then | |
17649 | ac_cv_func_dlopen=yes | |
17650 | else | |
17651 | echo "$as_me: failed program was:" >&5 | |
17652 | cat conftest.$ac_ext >&5 | |
17653 | ac_cv_func_dlopen=no | |
17654 | fi | |
17655 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17656 | fi | |
17657 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
17658 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
17659 | if test $ac_cv_func_dlopen = yes; then | |
17660 | lt_cv_dlopen="dlopen" | |
17661 | else | |
17662 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
17663 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
17664 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
17665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17666 | else | |
17667 | ac_check_lib_save_LIBS=$LIBS | |
17668 | LIBS="-ldl $LIBS" | |
17669 | cat >conftest.$ac_ext <<_ACEOF | |
17670 | #line $LINENO "configure" | |
17671 | #include "confdefs.h" | |
17672 | ||
17673 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17674 | #ifdef __cplusplus | |
17675 | extern "C" | |
17676 | #endif | |
17677 | /* We use char because int might match the return type of a gcc2 | |
17678 | builtin and then its argument prototype would still apply. */ | |
17679 | char dlopen (); | |
17680 | #ifdef F77_DUMMY_MAIN | |
17681 | # ifdef __cplusplus | |
17682 | extern "C" | |
17683 | # endif | |
17684 | int F77_DUMMY_MAIN() { return 1; } | |
17685 | #endif | |
17686 | int | |
17687 | main () | |
17688 | { | |
17689 | dlopen (); | |
17690 | ; | |
17691 | return 0; | |
17692 | } | |
17693 | _ACEOF | |
17694 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17696 | (eval $ac_link) 2>&5 | |
17697 | ac_status=$? | |
17698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17699 | (exit $ac_status); } && | |
17700 | { ac_try='test -s conftest$ac_exeext' | |
17701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17702 | (eval $ac_try) 2>&5 | |
17703 | ac_status=$? | |
17704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17705 | (exit $ac_status); }; }; then | |
17706 | ac_cv_lib_dl_dlopen=yes | |
17707 | else | |
17708 | echo "$as_me: failed program was:" >&5 | |
17709 | cat conftest.$ac_ext >&5 | |
17710 | ac_cv_lib_dl_dlopen=no | |
17711 | fi | |
17712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17713 | LIBS=$ac_check_lib_save_LIBS | |
17714 | fi | |
17715 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
17716 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
17717 | if test $ac_cv_lib_dl_dlopen = yes; then | |
17718 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
17719 | else | |
17720 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
17721 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
17722 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
17723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17724 | else | |
17725 | ac_check_lib_save_LIBS=$LIBS | |
17726 | LIBS="-lsvld $LIBS" | |
17727 | cat >conftest.$ac_ext <<_ACEOF | |
17728 | #line $LINENO "configure" | |
17729 | #include "confdefs.h" | |
17730 | ||
17731 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17732 | #ifdef __cplusplus | |
17733 | extern "C" | |
17734 | #endif | |
17735 | /* We use char because int might match the return type of a gcc2 | |
17736 | builtin and then its argument prototype would still apply. */ | |
17737 | char dlopen (); | |
17738 | #ifdef F77_DUMMY_MAIN | |
17739 | # ifdef __cplusplus | |
17740 | extern "C" | |
17741 | # endif | |
17742 | int F77_DUMMY_MAIN() { return 1; } | |
17743 | #endif | |
17744 | int | |
17745 | main () | |
17746 | { | |
17747 | dlopen (); | |
17748 | ; | |
17749 | return 0; | |
17750 | } | |
17751 | _ACEOF | |
17752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17754 | (eval $ac_link) 2>&5 | |
17755 | ac_status=$? | |
17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17757 | (exit $ac_status); } && | |
17758 | { ac_try='test -s conftest$ac_exeext' | |
17759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17760 | (eval $ac_try) 2>&5 | |
17761 | ac_status=$? | |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17763 | (exit $ac_status); }; }; then | |
17764 | ac_cv_lib_svld_dlopen=yes | |
17765 | else | |
17766 | echo "$as_me: failed program was:" >&5 | |
17767 | cat conftest.$ac_ext >&5 | |
17768 | ac_cv_lib_svld_dlopen=no | |
17769 | fi | |
17770 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17771 | LIBS=$ac_check_lib_save_LIBS | |
17772 | fi | |
17773 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
17774 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
17775 | if test $ac_cv_lib_svld_dlopen = yes; then | |
17776 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
17777 | else | |
17778 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
17779 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
17780 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
17781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17782 | else | |
17783 | ac_check_lib_save_LIBS=$LIBS | |
17784 | LIBS="-ldld $LIBS" | |
17785 | cat >conftest.$ac_ext <<_ACEOF | |
17786 | #line $LINENO "configure" | |
17787 | #include "confdefs.h" | |
17788 | ||
17789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17790 | #ifdef __cplusplus | |
17791 | extern "C" | |
17792 | #endif | |
17793 | /* We use char because int might match the return type of a gcc2 | |
17794 | builtin and then its argument prototype would still apply. */ | |
17795 | char dld_link (); | |
17796 | #ifdef F77_DUMMY_MAIN | |
17797 | # ifdef __cplusplus | |
17798 | extern "C" | |
17799 | # endif | |
17800 | int F77_DUMMY_MAIN() { return 1; } | |
17801 | #endif | |
17802 | int | |
17803 | main () | |
17804 | { | |
17805 | dld_link (); | |
17806 | ; | |
17807 | return 0; | |
17808 | } | |
17809 | _ACEOF | |
17810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17812 | (eval $ac_link) 2>&5 | |
17813 | ac_status=$? | |
17814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17815 | (exit $ac_status); } && | |
17816 | { ac_try='test -s conftest$ac_exeext' | |
17817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17818 | (eval $ac_try) 2>&5 | |
17819 | ac_status=$? | |
17820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17821 | (exit $ac_status); }; }; then | |
17822 | ac_cv_lib_dld_dld_link=yes | |
17823 | else | |
17824 | echo "$as_me: failed program was:" >&5 | |
17825 | cat conftest.$ac_ext >&5 | |
17826 | ac_cv_lib_dld_dld_link=no | |
17827 | fi | |
17828 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17829 | LIBS=$ac_check_lib_save_LIBS | |
17830 | fi | |
17831 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
17832 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
17833 | if test $ac_cv_lib_dld_dld_link = yes; then | |
17834 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
17835 | fi | |
17836 | ||
17837 | ||
17838 | fi | |
17839 | ||
17840 | ||
17841 | fi | |
17842 | ||
17843 | ||
17844 | fi | |
17845 | ||
17846 | ||
17847 | fi | |
17848 | ||
17849 | ||
17850 | fi | |
17851 | ||
17852 | ;; | |
17853 | esac | |
17854 | ||
17855 | if test "x$lt_cv_dlopen" != xno; then | |
17856 | enable_dlopen=yes | |
17857 | else | |
17858 | enable_dlopen=no | |
17859 | fi | |
17860 | ||
17861 | case $lt_cv_dlopen in | |
17862 | dlopen) | |
17863 | save_CPPFLAGS="$CPPFLAGS" | |
17864 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
17865 | ||
17866 | save_LDFLAGS="$LDFLAGS" | |
17867 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
17868 | ||
17869 | save_LIBS="$LIBS" | |
17870 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
17871 | ||
17872 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
17873 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
17874 | if test "${lt_cv_dlopen_self+set}" = set; then | |
17875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17876 | else | |
17877 | if test "$cross_compiling" = yes; then : | |
17878 | lt_cv_dlopen_self=cross | |
17879 | else | |
17880 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
17881 | lt_status=$lt_dlunknown | |
17882 | cat > conftest.$ac_ext <<EOF | |
17883 | #line 17883 "configure" | |
17884 | #include "confdefs.h" | |
17885 | ||
17886 | #if HAVE_DLFCN_H | |
17887 | #include <dlfcn.h> | |
17888 | #endif | |
17889 | ||
17890 | #include <stdio.h> | |
17891 | ||
17892 | #ifdef RTLD_GLOBAL | |
17893 | # define LT_DLGLOBAL RTLD_GLOBAL | |
17894 | #else | |
17895 | # ifdef DL_GLOBAL | |
17896 | # define LT_DLGLOBAL DL_GLOBAL | |
17897 | # else | |
17898 | # define LT_DLGLOBAL 0 | |
17899 | # endif | |
17900 | #endif | |
17901 | ||
17902 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
17903 | find out it does not work in some platform. */ | |
17904 | #ifndef LT_DLLAZY_OR_NOW | |
17905 | # ifdef RTLD_LAZY | |
17906 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
17907 | # else | |
17908 | # ifdef DL_LAZY | |
17909 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
17910 | # else | |
17911 | # ifdef RTLD_NOW | |
17912 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
17913 | # else | |
17914 | # ifdef DL_NOW | |
17915 | # define LT_DLLAZY_OR_NOW DL_NOW | |
17916 | # else | |
17917 | # define LT_DLLAZY_OR_NOW 0 | |
17918 | # endif | |
17919 | # endif | |
17920 | # endif | |
17921 | # endif | |
17922 | #endif | |
17923 | ||
17924 | #ifdef __cplusplus | |
17925 | extern "C" void exit (int); | |
17926 | #endif | |
17927 | ||
17928 | void fnord() { int i=42;} | |
17929 | int main () | |
17930 | { | |
17931 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
17932 | int status = $lt_dlunknown; | |
17933 | ||
17934 | if (self) | |
17935 | { | |
17936 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
17937 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
17938 | /* dlclose (self); */ | |
17939 | } | |
17940 | ||
17941 | exit (status); | |
17942 | } | |
17943 | EOF | |
17944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17945 | (eval $ac_link) 2>&5 | |
17946 | ac_status=$? | |
17947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17948 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
17949 | (./conftest; exit; ) 2>/dev/null | |
17950 | lt_status=$? | |
17951 | case x$lt_status in | |
17952 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
17953 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
17954 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
17955 | esac | |
17956 | else : | |
17957 | # compilation failed | |
17958 | lt_cv_dlopen_self=no | |
17959 | fi | |
17960 | fi | |
17961 | rm -fr conftest* | |
17962 | ||
17963 | ||
17964 | fi | |
17965 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
17966 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
17967 | ||
17968 | if test "x$lt_cv_dlopen_self" = xyes; then | |
17969 | LDFLAGS="$LDFLAGS $link_static_flag" | |
17970 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
17971 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
17972 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
17973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17974 | else | |
17975 | if test "$cross_compiling" = yes; then : | |
17976 | lt_cv_dlopen_self_static=cross | |
17977 | else | |
17978 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
17979 | lt_status=$lt_dlunknown | |
17980 | cat > conftest.$ac_ext <<EOF | |
17981 | #line 17981 "configure" | |
17982 | #include "confdefs.h" | |
17983 | ||
17984 | #if HAVE_DLFCN_H | |
17985 | #include <dlfcn.h> | |
17986 | #endif | |
17987 | ||
17988 | #include <stdio.h> | |
17989 | ||
17990 | #ifdef RTLD_GLOBAL | |
17991 | # define LT_DLGLOBAL RTLD_GLOBAL | |
17992 | #else | |
17993 | # ifdef DL_GLOBAL | |
17994 | # define LT_DLGLOBAL DL_GLOBAL | |
17995 | # else | |
17996 | # define LT_DLGLOBAL 0 | |
17997 | # endif | |
17998 | #endif | |
17999 | ||
18000 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
18001 | find out it does not work in some platform. */ | |
18002 | #ifndef LT_DLLAZY_OR_NOW | |
18003 | # ifdef RTLD_LAZY | |
18004 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
18005 | # else | |
18006 | # ifdef DL_LAZY | |
18007 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
18008 | # else | |
18009 | # ifdef RTLD_NOW | |
18010 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
18011 | # else | |
18012 | # ifdef DL_NOW | |
18013 | # define LT_DLLAZY_OR_NOW DL_NOW | |
18014 | # else | |
18015 | # define LT_DLLAZY_OR_NOW 0 | |
18016 | # endif | |
18017 | # endif | |
18018 | # endif | |
18019 | # endif | |
18020 | #endif | |
18021 | ||
18022 | #ifdef __cplusplus | |
18023 | extern "C" void exit (int); | |
18024 | #endif | |
18025 | ||
18026 | void fnord() { int i=42;} | |
18027 | int main () | |
18028 | { | |
18029 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
18030 | int status = $lt_dlunknown; | |
18031 | ||
18032 | if (self) | |
18033 | { | |
18034 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
18035 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
18036 | /* dlclose (self); */ | |
18037 | } | |
18038 | ||
18039 | exit (status); | |
18040 | } | |
18041 | EOF | |
18042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18043 | (eval $ac_link) 2>&5 | |
18044 | ac_status=$? | |
18045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18046 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
18047 | (./conftest; exit; ) 2>/dev/null | |
18048 | lt_status=$? | |
18049 | case x$lt_status in | |
18050 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
18051 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
18052 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
18053 | esac | |
18054 | else : | |
18055 | # compilation failed | |
18056 | lt_cv_dlopen_self_static=no | |
18057 | fi | |
18058 | fi | |
18059 | rm -fr conftest* | |
18060 | ||
18061 | ||
18062 | fi | |
18063 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
18064 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
18065 | fi | |
18066 | ||
18067 | CPPFLAGS="$save_CPPFLAGS" | |
18068 | LDFLAGS="$save_LDFLAGS" | |
18069 | LIBS="$save_LIBS" | |
18070 | ;; | |
18071 | esac | |
18072 | ||
18073 | case $lt_cv_dlopen_self in | |
18074 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
18075 | *) enable_dlopen_self=unknown ;; | |
18076 | esac | |
18077 | ||
18078 | case $lt_cv_dlopen_self_static in | |
18079 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
18080 | *) enable_dlopen_self_static=unknown ;; | |
18081 | esac | |
18082 | fi | |
18083 | ||
18084 | ||
18085 | # Report which librarie types wil actually be built | |
18086 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
18087 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
18088 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
18089 | echo "${ECHO_T}$can_build_shared" >&6 | |
18090 | ||
18091 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
18092 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
18093 | test "$can_build_shared" = "no" && enable_shared=no | |
18094 | ||
18095 | # On AIX, shared libraries and static libraries use the same namespace, and | |
18096 | # are all built from PIC. | |
18097 | case "$host_os" in | |
18098 | aix3*) | |
18099 | test "$enable_shared" = yes && enable_static=no | |
18100 | if test -n "$RANLIB"; then | |
18101 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
18102 | postinstall_cmds='$RANLIB $lib' | |
18103 | fi | |
18104 | ;; | |
18105 | ||
18106 | aix4*) | |
18107 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
18108 | test "$enable_shared" = yes && enable_static=no | |
18109 | fi | |
18110 | ;; | |
18111 | esac | |
18112 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
18113 | echo "${ECHO_T}$enable_shared" >&6 | |
18114 | ||
18115 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
18116 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
18117 | # Make sure either enable_shared or enable_static is yes. | |
18118 | test "$enable_shared" = yes || enable_static=yes | |
18119 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
18120 | echo "${ECHO_T}$enable_static" >&6 | |
18121 | ||
18122 | # The else clause should only fire when bootstrapping the | |
18123 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18124 | # with your package, and you will get complaints that there are | |
18125 | # no rules to generate ltmain.sh. | |
18126 | if test -f "$ltmain"; then | |
18127 | # Now quote all the things that may contain metacharacters while being | |
18128 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18129 | # variables and quote the copies for generation of the libtool script. | |
18130 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
18131 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18132 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18133 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
18134 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18135 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18136 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18137 | old_postinstall_cmds old_postuninstall_cmds \ | |
18138 | compiler \ | |
18139 | CC \ | |
18140 | LD \ | |
18141 | lt_prog_compiler_wl \ | |
18142 | lt_prog_compiler_pic \ | |
18143 | lt_prog_compiler_static \ | |
18144 | lt_prog_compiler_no_builtin_flag \ | |
18145 | export_dynamic_flag_spec \ | |
18146 | thread_safe_flag_spec \ | |
18147 | whole_archive_flag_spec \ | |
18148 | old_archive_cmds \ | |
18149 | old_archive_from_new_cmds \ | |
18150 | predep_objects \ | |
18151 | postdep_objects \ | |
18152 | predeps \ | |
18153 | postdeps \ | |
18154 | compiler_lib_search_path \ | |
18155 | archive_cmds \ | |
18156 | archive_expsym_cmds \ | |
18157 | postinstall_cmds \ | |
18158 | postuninstall_cmds \ | |
18159 | old_archive_from_expsyms_cmds \ | |
18160 | allow_undefined_flag \ | |
18161 | no_undefined_flag \ | |
18162 | export_symbols_cmds \ | |
18163 | hardcode_libdir_flag_spec \ | |
18164 | hardcode_libdir_separator \ | |
18165 | lt_cv_prog_compiler_c_o \ | |
18166 | exclude_expsyms \ | |
18167 | include_expsyms; do | |
18168 | ||
18169 | case $var in | |
18170 | old_archive_cmds | \ | |
18171 | old_archive_from_new_cmds | \ | |
18172 | archive_cmds | \ | |
18173 | archive_expsym_cmds | \ | |
18174 | old_archive_from_expsyms_cmds | \ | |
18175 | export_symbols_cmds | \ | |
18176 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18177 | postinstall_cmds | postuninstall_cmds | \ | |
18178 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
18179 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18180 | # Double-quote double-evaled strings. | |
18181 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18182 | ;; | |
18183 | *) | |
18184 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18185 | ;; | |
18186 | esac | |
18187 | done | |
18188 | ||
18189 | case $lt_echo in | |
18190 | *'\$0 --fallback-echo"') | |
18191 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18192 | ;; | |
18193 | esac | |
18194 | ||
18195 | cfgfile="${ofile}T" | |
18196 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
18197 | $rm -f "$cfgfile" | |
18198 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
18199 | echo "$as_me: creating $ofile" >&6;} | |
18200 | ||
18201 | cat <<__EOF__ >> "$cfgfile" | |
18202 | #! $SHELL | |
18203 | ||
18204 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
18205 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
18206 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18207 | # | |
18208 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
18209 | # Free Software Foundation, Inc. | |
18210 | # | |
18211 | # This file is part of GNU Libtool: | |
18212 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
18213 | # | |
18214 | # This program is free software; you can redistribute it and/or modify | |
18215 | # it under the terms of the GNU General Public License as published by | |
18216 | # the Free Software Foundation; either version 2 of the License, or | |
18217 | # (at your option) any later version. | |
18218 | # | |
18219 | # This program is distributed in the hope that it will be useful, but | |
18220 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
18221 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18222 | # General Public License for more details. | |
18223 | # | |
18224 | # You should have received a copy of the GNU General Public License | |
18225 | # along with this program; if not, write to the Free Software | |
18226 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
18227 | # | |
18228 | # As a special exception to the GNU General Public License, if you | |
18229 | # distribute this file as part of a program that contains a | |
18230 | # configuration script generated by Autoconf, you may include it under | |
18231 | # the same distribution terms that you use for the rest of that program. | |
18232 | ||
18233 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18234 | Xsed="sed -e s/^X//" | |
18235 | ||
18236 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18237 | # if CDPATH is set. | |
18238 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
18239 | ||
18240 | # The names of the tagged configurations supported by this script. | |
18241 | available_tags= | |
18242 | ||
18243 | # ### BEGIN LIBTOOL CONFIG | |
18244 | ||
18245 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18246 | ||
18247 | # Shell to use when invoking shell scripts. | |
18248 | SHELL=$lt_SHELL | |
18249 | ||
18250 | # Whether or not to build shared libraries. | |
18251 | build_libtool_libs=$enable_shared | |
18252 | ||
18253 | # Whether or not to build static libraries. | |
18254 | build_old_libs=$enable_static | |
18255 | ||
18256 | # Whether or not to add -lc for building shared libraries. | |
18257 | build_libtool_need_lc=$archive_cmds_need_lc | |
18258 | ||
18259 | # Whether or not to optimize for fast installation. | |
18260 | fast_install=$enable_fast_install | |
18261 | ||
18262 | # The host system. | |
18263 | host_alias=$host_alias | |
18264 | host=$host | |
18265 | ||
18266 | # An echo program that does not interpret backslashes. | |
18267 | echo=$lt_echo | |
18268 | ||
18269 | # The archiver. | |
18270 | AR=$lt_AR | |
18271 | AR_FLAGS=$lt_AR_FLAGS | |
18272 | ||
18273 | # A C compiler. | |
18274 | LTCC=$lt_LTCC | |
18275 | ||
18276 | # A language-specific compiler. | |
18277 | CC=$lt_compiler | |
18278 | ||
18279 | # Is the compiler the GNU C compiler? | |
18280 | with_gcc=$GCC | |
18281 | ||
18282 | # The linker used to build libraries. | |
18283 | LD=$lt_LD | |
18284 | ||
18285 | # Whether we need hard or soft links. | |
18286 | LN_S=$lt_LN_S | |
18287 | ||
18288 | # A BSD-compatible nm program. | |
18289 | NM=$lt_NM | |
18290 | ||
18291 | # A sed program that does not truncate output. | |
18292 | SED=$lt_SED | |
18293 | ||
18294 | # A symbol stripping program | |
18295 | STRIP=$STRIP | |
18296 | ||
18297 | # Used to examine libraries when file_magic_cmd begins "file" | |
18298 | MAGIC_CMD=$MAGIC_CMD | |
18299 | ||
18300 | # Used on cygwin: DLL creation program. | |
18301 | DLLTOOL="$DLLTOOL" | |
18302 | ||
18303 | # Used on cygwin: object dumper. | |
18304 | OBJDUMP="$OBJDUMP" | |
18305 | ||
18306 | # Used on cygwin: assembler. | |
18307 | AS="$AS" | |
18308 | ||
18309 | # The name of the directory that contains temporary libtool files. | |
18310 | objdir=$objdir | |
18311 | ||
18312 | # How to create reloadable object files. | |
18313 | reload_flag=$lt_reload_flag | |
18314 | reload_cmds=$lt_reload_cmds | |
18315 | ||
18316 | # How to pass a linker flag through the compiler. | |
18317 | wl=$lt_lt_prog_compiler_wl | |
18318 | ||
18319 | # Object file suffix (normally "o"). | |
18320 | objext="$ac_objext" | |
18321 | ||
18322 | # Old archive suffix (normally "a"). | |
18323 | libext="$libext" | |
18324 | ||
18325 | # Executable file suffix (normally ""). | |
18326 | exeext="$exeext" | |
18327 | ||
18328 | # Additional compiler flags for building library objects. | |
18329 | pic_flag=$lt_lt_prog_compiler_pic | |
18330 | pic_mode=$pic_mode | |
18331 | ||
18332 | # What is the maximum length of a command? | |
18333 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
18334 | ||
18335 | # Does compiler simultaneously support -c and -o options? | |
18336 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18337 | ||
18338 | # Must we lock files when doing compilation ? | |
18339 | need_locks=$lt_need_locks | |
18340 | ||
18341 | # Do we need the lib prefix for modules? | |
18342 | need_lib_prefix=$need_lib_prefix | |
18343 | ||
18344 | # Do we need a version for libraries? | |
18345 | need_version=$need_version | |
18346 | ||
18347 | # Whether dlopen is supported. | |
18348 | dlopen_support=$enable_dlopen | |
18349 | ||
18350 | # Whether dlopen of programs is supported. | |
18351 | dlopen_self=$enable_dlopen_self | |
18352 | ||
18353 | # Whether dlopen of statically linked programs is supported. | |
18354 | dlopen_self_static=$enable_dlopen_self_static | |
18355 | ||
18356 | # Compiler flag to prevent dynamic linking. | |
18357 | link_static_flag=$lt_lt_prog_compiler_static | |
18358 | ||
18359 | # Compiler flag to turn off builtin functions. | |
18360 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18361 | ||
18362 | # Compiler flag to allow reflexive dlopens. | |
18363 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18364 | ||
18365 | # Compiler flag to generate shared objects directly from archives. | |
18366 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18367 | ||
18368 | # Compiler flag to generate thread-safe objects. | |
18369 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
18370 | ||
18371 | # Library versioning type. | |
18372 | version_type=$version_type | |
18373 | ||
18374 | # Format of library name prefix. | |
18375 | libname_spec=$lt_libname_spec | |
18376 | ||
18377 | # List of archive names. First name is the real one, the rest are links. | |
18378 | # The last name is the one that the linker finds with -lNAME. | |
18379 | library_names_spec=$lt_library_names_spec | |
18380 | ||
18381 | # The coded name of the library, if different from the real name. | |
18382 | soname_spec=$lt_soname_spec | |
18383 | ||
18384 | # Commands used to build and install an old-style archive. | |
18385 | RANLIB=$lt_RANLIB | |
18386 | old_archive_cmds=$lt_old_archive_cmds | |
18387 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18388 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18389 | ||
18390 | # Create an old-style archive from a shared archive. | |
18391 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18392 | ||
18393 | # Create a temporary old-style archive to link instead of a shared archive. | |
18394 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18395 | ||
18396 | # Commands used to build and install a shared archive. | |
18397 | archive_cmds=$lt_archive_cmds | |
18398 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
18399 | postinstall_cmds=$lt_postinstall_cmds | |
18400 | postuninstall_cmds=$lt_postuninstall_cmds | |
18401 | ||
18402 | # Commands to strip libraries. | |
18403 | old_striplib=$lt_old_striplib | |
18404 | striplib=$lt_striplib | |
18405 | ||
18406 | # Dependencies to place before the objects being linked to create a | |
18407 | # shared library. | |
18408 | predep_objects=$lt_predep_objects | |
18409 | ||
18410 | # Dependencies to place after the objects being linked to create a | |
18411 | # shared library. | |
18412 | postdep_objects=$lt_postdep_objects | |
18413 | ||
18414 | # Dependencies to place before the objects being linked to create a | |
18415 | # shared library. | |
18416 | predeps=$lt_predeps | |
18417 | ||
18418 | # Dependencies to place after the objects being linked to create a | |
18419 | # shared library. | |
18420 | postdeps=$lt_postdeps | |
18421 | ||
18422 | # The library search path used internally by the compiler when linking | |
18423 | # a shared library. | |
18424 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
18425 | ||
18426 | # Method to check whether dependent libraries are shared objects. | |
18427 | deplibs_check_method=$lt_deplibs_check_method | |
18428 | ||
18429 | # Command to use when deplibs_check_method == file_magic. | |
18430 | file_magic_cmd=$lt_file_magic_cmd | |
18431 | ||
18432 | # Flag that allows shared libraries with undefined symbols to be built. | |
18433 | allow_undefined_flag=$lt_allow_undefined_flag | |
18434 | ||
18435 | # Flag that forces no undefined symbols. | |
18436 | no_undefined_flag=$lt_no_undefined_flag | |
18437 | ||
18438 | # Commands used to finish a libtool library installation in a directory. | |
18439 | finish_cmds=$lt_finish_cmds | |
18440 | ||
18441 | # Same as above, but a single script fragment to be evaled but not shown. | |
18442 | finish_eval=$lt_finish_eval | |
18443 | ||
18444 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18445 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18446 | ||
18447 | # Transform the output of nm in a proper C declaration | |
18448 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18449 | ||
18450 | # Transform the output of nm in a C name address pair | |
18451 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18452 | ||
18453 | # This is the shared library runtime path variable. | |
18454 | runpath_var=$runpath_var | |
18455 | ||
18456 | # This is the shared library path variable. | |
18457 | shlibpath_var=$shlibpath_var | |
18458 | ||
18459 | # Is shlibpath searched before the hard-coded library search path? | |
18460 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18461 | ||
18462 | # How to hardcode a shared library path into an executable. | |
18463 | hardcode_action=$hardcode_action | |
18464 | ||
18465 | # Whether we should hardcode library paths into libraries. | |
18466 | hardcode_into_libs=$hardcode_into_libs | |
18467 | ||
18468 | # Flag to hardcode \$libdir into a binary during linking. | |
18469 | # This must work even if \$libdir does not exist. | |
18470 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
18471 | ||
18472 | # Whether we need a single -rpath flag with a separated argument. | |
18473 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
18474 | ||
18475 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
18476 | # resulting binary. | |
18477 | hardcode_direct=$hardcode_direct | |
18478 | ||
18479 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18480 | # resulting binary. | |
18481 | hardcode_minus_L=$hardcode_minus_L | |
18482 | ||
18483 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18484 | # the resulting binary. | |
18485 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
18486 | ||
18487 | # Variables whose values should be saved in libtool wrapper scripts and | |
18488 | # restored at relink time. | |
18489 | variables_saved_for_relink="$variables_saved_for_relink" | |
18490 | ||
18491 | # Whether libtool must link a program against all its dependency libraries. | |
18492 | link_all_deplibs=$link_all_deplibs | |
18493 | ||
18494 | # Compile-time system search path for libraries | |
18495 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18496 | ||
18497 | # Run-time system search path for libraries | |
18498 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18499 | ||
18500 | # Fix the shell variable \$srcfile for the compiler. | |
18501 | fix_srcfile_path="$fix_srcfile_path" | |
18502 | ||
18503 | # Set to yes if exported symbols are required. | |
18504 | always_export_symbols=$always_export_symbols | |
18505 | ||
18506 | # The commands to list exported symbols. | |
18507 | export_symbols_cmds=$lt_export_symbols_cmds | |
18508 | ||
18509 | # The commands to extract the exported symbol list from a shared archive. | |
18510 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18511 | ||
18512 | # Symbols that should not be listed in the preloaded symbols. | |
18513 | exclude_expsyms=$lt_exclude_expsyms | |
18514 | ||
18515 | # Symbols that must always be exported. | |
18516 | include_expsyms=$lt_include_expsyms | |
18517 | ||
18518 | # ### END LIBTOOL CONFIG | |
18519 | ||
18520 | __EOF__ | |
18521 | ||
18522 | ||
18523 | case $host_os in | |
18524 | aix3*) | |
18525 | cat <<\EOF >> "$cfgfile" | |
18526 | ||
18527 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18528 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18529 | # vanish in a puff of smoke. | |
18530 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18531 | COLLECT_NAMES= | |
18532 | export COLLECT_NAMES | |
18533 | fi | |
18534 | EOF | |
18535 | ;; | |
18536 | ||
18537 | cygwin* | mingw* | pw32* | os2*) | |
18538 | cat <<'EOF' >> "$cfgfile" | |
18539 | # This is a source program that is used to create dlls on Windows | |
18540 | # Don't remove nor modify the starting and closing comments | |
18541 | ||
18542 | # /* ltdll.c starts here */ | |
18543 | # #define WIN32_LEAN_AND_MEAN | |
18544 | # #include <windows.h> | |
18545 | # #undef WIN32_LEAN_AND_MEAN | |
18546 | # #include <stdio.h> | |
18547 | # | |
18548 | # #ifndef __CYGWIN__ | |
18549 | # # ifdef __CYGWIN32__ | |
18550 | # # define __CYGWIN__ __CYGWIN32__ | |
18551 | # # endif | |
18552 | # #endif | |
18553 | # | |
18554 | # #ifdef __cplusplus | |
18555 | # extern "C" { | |
18556 | # #endif | |
18557 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | |
18558 | # #ifdef __cplusplus | |
18559 | # } | |
18560 | # #endif | |
18561 | # | |
18562 | # #ifdef __CYGWIN__ | |
18563 | # #include <cygwin/cygwin_dll.h> | |
18564 | # DECLARE_CYGWIN_DLL( DllMain ); | |
18565 | # #endif | |
18566 | # HINSTANCE __hDllInstance_base; | |
18567 | # | |
18568 | # BOOL APIENTRY | |
18569 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | |
18570 | # { | |
18571 | # __hDllInstance_base = hInst; | |
18572 | # return TRUE; | |
18573 | # } | |
18574 | # /* ltdll.c ends here */ | |
18575 | ||
18576 | # This is a source program that is used to create import libraries | |
18577 | # on Windows for dlls which lack them. Don't remove nor modify the | |
18578 | # starting and closing comments | |
18579 | ||
18580 | # /* impgen.c starts here */ | |
18581 | # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | |
18582 | # | |
18583 | # This file is part of GNU libtool. | |
18584 | # | |
18585 | # This program is free software; you can redistribute it and/or modify | |
18586 | # it under the terms of the GNU General Public License as published by | |
18587 | # the Free Software Foundation; either version 2 of the License, or | |
18588 | # (at your option) any later version. | |
18589 | # | |
18590 | # This program is distributed in the hope that it will be useful, | |
18591 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18592 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18593 | # GNU General Public License for more details. | |
18594 | # | |
18595 | # You should have received a copy of the GNU General Public License | |
18596 | # along with this program; if not, write to the Free Software | |
18597 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
18598 | # */ | |
18599 | # | |
18600 | # #include <stdio.h> /* for printf() */ | |
18601 | # #include <unistd.h> /* for open(), lseek(), read() */ | |
18602 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ | |
18603 | # #include <string.h> /* for strdup() */ | |
18604 | # | |
18605 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | |
18606 | # #ifndef O_BINARY | |
18607 | # #define O_BINARY 0 | |
18608 | # #endif | |
18609 | # | |
18610 | # static unsigned int | |
18611 | # pe_get16 (fd, offset) | |
18612 | # int fd; | |
18613 | # int offset; | |
18614 | # { | |
18615 | # unsigned char b[2]; | |
18616 | # lseek (fd, offset, SEEK_SET); | |
18617 | # read (fd, b, 2); | |
18618 | # return b[0] + (b[1]<<8); | |
18619 | # } | |
18620 | # | |
18621 | # static unsigned int | |
18622 | # pe_get32 (fd, offset) | |
18623 | # int fd; | |
18624 | # int offset; | |
18625 | # { | |
18626 | # unsigned char b[4]; | |
18627 | # lseek (fd, offset, SEEK_SET); | |
18628 | # read (fd, b, 4); | |
18629 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
18630 | # } | |
18631 | # | |
18632 | # static unsigned int | |
18633 | # pe_as32 (ptr) | |
18634 | # void *ptr; | |
18635 | # { | |
18636 | # unsigned char *b = ptr; | |
18637 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
18638 | # } | |
18639 | # | |
18640 | # int | |
18641 | # main (argc, argv) | |
18642 | # int argc; | |
18643 | # char *argv[]; | |
18644 | # { | |
18645 | # int dll; | |
18646 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | |
18647 | # unsigned long export_rva, export_size, nsections, secptr, expptr; | |
18648 | # unsigned long name_rvas, nexp; | |
18649 | # unsigned char *expdata, *erva; | |
18650 | # char *filename, *dll_name; | |
18651 | # | |
18652 | # filename = argv[1]; | |
18653 | # | |
18654 | # dll = open(filename, O_RDONLY|O_BINARY); | |
18655 | # if (dll < 1) | |
18656 | # return 1; | |
18657 | # | |
18658 | # dll_name = filename; | |
18659 | # | |
18660 | # for (i=0; filename[i]; i++) | |
18661 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') | |
18662 | # dll_name = filename + i +1; | |
18663 | # | |
18664 | # pe_header_offset = pe_get32 (dll, 0x3c); | |
18665 | # opthdr_ofs = pe_header_offset + 4 + 20; | |
18666 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); | |
18667 | # | |
18668 | # if (num_entries < 1) /* no exports */ | |
18669 | # return 1; | |
18670 | # | |
18671 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); | |
18672 | # export_size = pe_get32 (dll, opthdr_ofs + 100); | |
18673 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); | |
18674 | # secptr = (pe_header_offset + 4 + 20 + | |
18675 | # pe_get16 (dll, pe_header_offset + 4 + 16)); | |
18676 | # | |
18677 | # expptr = 0; | |
18678 | # for (i = 0; i < nsections; i++) | |
18679 | # { | |
18680 | # char sname[8]; | |
18681 | # unsigned long secptr1 = secptr + 40 * i; | |
18682 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | |
18683 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); | |
18684 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); | |
18685 | # lseek(dll, secptr1, SEEK_SET); | |
18686 | # read(dll, sname, 8); | |
18687 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) | |
18688 | # { | |
18689 | # expptr = fptr + (export_rva - vaddr); | |
18690 | # if (export_rva + export_size > vaddr + vsize) | |
18691 | # export_size = vsize - (export_rva - vaddr); | |
18692 | # break; | |
18693 | # } | |
18694 | # } | |
18695 | # | |
18696 | # expdata = (unsigned char*)malloc(export_size); | |
18697 | # lseek (dll, expptr, SEEK_SET); | |
18698 | # read (dll, expdata, export_size); | |
18699 | # erva = expdata - export_rva; | |
18700 | # | |
18701 | # nexp = pe_as32 (expdata+24); | |
18702 | # name_rvas = pe_as32 (expdata+32); | |
18703 | # | |
18704 | # printf ("EXPORTS\n"); | |
18705 | # for (i = 0; i<nexp; i++) | |
18706 | # { | |
18707 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | |
18708 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | |
18709 | # } | |
18710 | # | |
18711 | # return 0; | |
18712 | # } | |
18713 | # /* impgen.c ends here */ | |
18714 | ||
18715 | EOF | |
18716 | ;; | |
18717 | esac | |
18718 | ||
18719 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18720 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18721 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18722 | # is reportedly fixed, but why not run on old versions too? | |
18723 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
18724 | ||
18725 | mv -f "$cfgfile" "$ofile" || \ | |
18726 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18727 | chmod +x "$ofile" | |
18728 | ||
18729 | else | |
18730 | # If there is no Makefile yet, we rely on a make rule to execute | |
18731 | # `config.status --recheck' to rerun these tests and create the | |
18732 | # libtool script then. | |
18733 | test -f Makefile && make "$ltmain" | |
18734 | fi | |
18735 | ||
18736 | ||
18737 | ac_ext=c | |
18738 | ac_cpp='$CPP $CPPFLAGS' | |
18739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18742 | ||
18743 | CC="$lt_save_CC" | |
18744 | ||
18745 | ||
18746 | # Check whether --with-tags or --without-tags was given. | |
18747 | if test "${with_tags+set}" = set; then | |
18748 | withval="$with_tags" | |
18749 | tagnames="$withval" | |
18750 | else | |
18751 | tagnames="CXX,GCJ" | |
18752 | case $host_os in | |
18753 | mingw*|cygwin*) tagnames="$tagnames,RC" ;; | |
18754 | esac | |
18755 | fi; | |
18756 | ||
18757 | if test -f "$ltmain" && test -n "$tagnames"; then | |
18758 | if test ! -f "${ofile}"; then | |
18759 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
18760 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
18761 | fi | |
18762 | ||
18763 | if test -z "$LTCC"; then | |
18764 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
18765 | if test -z "$LTCC"; then | |
18766 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
18767 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
18768 | else | |
18769 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
18770 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
18771 | fi | |
18772 | fi | |
18773 | ||
18774 | # Extract list of available tagged configurations in $ofile. | |
18775 | # Note that this assumes the entire list is on one line. | |
18776 | available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
18777 | ||
18778 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
18779 | for tagname in $tagnames; do | |
18780 | IFS="$lt_save_ifs" | |
18781 | # Check whether tagname contains only valid characters | |
18782 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
18783 | "") ;; | |
18784 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
18785 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
18786 | { (exit 1); exit 1; }; } | |
18787 | ;; | |
18788 | esac | |
18789 | ||
18790 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
18791 | then | |
18792 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
18793 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
18794 | { (exit 1); exit 1; }; } | |
18795 | fi | |
18796 | ||
18797 | # Update the list of available tags. | |
18798 | if test -n "$tagname"; then | |
18799 | echo appending configuration tag \"$tagname\" to $ofile | |
18800 | ||
18801 | case $tagname in | |
18802 | CXX) | |
18803 | ac_ext=cc | |
18804 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18805 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18806 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18807 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18808 | ||
18809 | ||
18810 | ||
18811 | ||
18812 | archive_cmds_need_lc_CXX=no | |
18813 | allow_undefined_flag_CXX= | |
18814 | always_export_symbols_CXX=no | |
18815 | archive_expsym_cmds_CXX= | |
18816 | export_dynamic_flag_spec_CXX= | |
18817 | hardcode_direct_CXX=no | |
18818 | hardcode_libdir_flag_spec_CXX= | |
18819 | hardcode_libdir_separator_CXX= | |
18820 | hardcode_minus_L_CXX=no | |
18821 | link_all_deplibs_CXX=unknown | |
18822 | old_archive_cmds_CXX=$old_archive_cmds | |
18823 | no_undefined_flag_CXX= | |
18824 | whole_archive_flag_spec_CXX= | |
18825 | ||
18826 | # Dependencies to place before and after the object being linked: | |
18827 | predep_objects_CXX= | |
18828 | postdep_objects_CXX= | |
18829 | predeps_CXX= | |
18830 | postdeps_CXX= | |
18831 | compiler_lib_search_path_CXX= | |
18832 | ||
18833 | # Source file extension for C test sources. | |
18834 | ac_ext=cc | |
18835 | ||
18836 | # Object file extension for compiled C test sources. | |
18837 | objext=o | |
18838 | objext_CXX=$objext | |
18839 | ||
18840 | # Code to be used in simple compile tests | |
18841 | lt_simple_compile_test_code="int some_variable = 0;" | |
18842 | ||
18843 | # Code to be used in simple link tests | |
18844 | lt_simple_link_test_code='int main(int char *) { return(0); }' | |
18845 | ||
18846 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18847 | ||
18848 | # If no C compiler was specified, use CC. | |
18849 | LTCC=${LTCC-"$CC"} | |
18850 | ||
18851 | # Allow CC to be a program name with arguments. | |
18852 | set dummy $CC | |
18853 | compiler="$2" | |
18854 | ||
18855 | ||
18856 | # Allow CC to be a program name with arguments. | |
18857 | lt_save_CC="$CC" | |
18858 | CC=${CXX-"c++"} | |
18859 | set dummy $CC | |
18860 | compiler="$2" | |
18861 | compiler_CXX=$CC | |
18862 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
18863 | ||
18864 | # We don't want -fno-exception wen compiling C++ code, so set the | |
18865 | # no_builtin_flag separately | |
18866 | if test "$GXX" = yes; then | |
18867 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
18868 | else | |
18869 | lt_prog_compiler_no_builtin_flag_CXX= | |
18870 | fi | |
18871 | ||
18872 | if test "$GXX" = yes; then | |
18873 | # Set up default GNU C++ configuration | |
18874 | ||
18875 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
18876 | # archiving commands below assume that GNU ld is being used. | |
18877 | if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ | |
18878 | egrep 'GNU ld' > /dev/null; then | |
18879 | with_gnu_ld=yes | |
18880 | ||
18881 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18882 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18883 | ||
18884 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
18885 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
18886 | ||
18887 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
18888 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
18889 | # investigate it a little bit more. (MM) | |
18890 | wlarc='${wl}' | |
18891 | ||
18892 | # ancient GNU ld didn't support --whole-archive et. al. | |
18893 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
18894 | egrep 'no-whole-archive' > /dev/null; then | |
18895 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
18896 | else | |
18897 | whole_archive_flag_spec_CXX= | |
18898 | fi | |
18899 | else | |
18900 | with_gnu_ld=no | |
18901 | wlarc= | |
18902 | ||
18903 | # A generic and very simple default shared library creation | |
18904 | # command for GNU C++ for the case where it uses the native | |
18905 | # linker, instead of GNU ld. If possible, this setting should | |
18906 | # overridden to take advantage of the native linker features on | |
18907 | # the platform it is being used on. | |
18908 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
18909 | fi | |
18910 | ||
18911 | # Commands to make compiler produce verbose output that lists | |
18912 | # what "hidden" libraries, object files and flags are used when | |
18913 | # linking a shared library. | |
18914 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
18915 | ||
18916 | else | |
18917 | GXX=no | |
18918 | with_gnu_ld=no | |
18919 | wlarc= | |
18920 | fi | |
18921 | ||
18922 | # PORTME: fill in a description of your system's C++ link characteristics | |
18923 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
18924 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
18925 | ld_shlibs_CXX=yes | |
18926 | case $host_os in | |
18927 | aix3*) | |
18928 | # FIXME: insert proper C++ library support | |
18929 | ld_shlibs_CXX=no | |
18930 | ;; | |
18931 | aix4* | aix5*) | |
18932 | if test "$host_cpu" = ia64; then | |
18933 | # On IA64, the linker does run time linking by default, so we don't | |
18934 | # have to do anything special. | |
18935 | aix_use_runtimelinking=no | |
18936 | exp_sym_flag='-Bexport' | |
18937 | no_entry_flag="" | |
18938 | else | |
18939 | # KDE requires run time linking. Make it the default. | |
18940 | aix_use_runtimelinking=yes | |
18941 | exp_sym_flag='-bexport' | |
18942 | no_entry_flag='-bnoentry' | |
18943 | fi | |
18944 | ||
18945 | # When large executables or shared objects are built, AIX ld can | |
18946 | # have problems creating the table of contents. If linking a library | |
18947 | # or program results in "error TOC overflow" add -mminimal-toc to | |
18948 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
18949 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
18950 | ||
18951 | archive_cmds_CXX='' | |
18952 | hardcode_direct_CXX=yes | |
18953 | hardcode_libdir_separator_CXX=':' | |
18954 | link_all_deplibs_CXX=yes | |
18955 | ||
18956 | if test "$GXX" = yes; then | |
18957 | case $host_os in aix4.012|aix4.012.*) | |
18958 | # We only want to do this on AIX 4.2 and lower, the check | |
18959 | # below for broken collect2 doesn't work under 4.3+ | |
18960 | collect2name=`${CC} -print-prog-name=collect2` | |
18961 | if test -f "$collect2name" && \ | |
18962 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
18963 | then | |
18964 | # We have reworked collect2 | |
18965 | hardcode_direct_CXX=yes | |
18966 | else | |
18967 | # We have old collect2 | |
18968 | hardcode_direct_CXX=unsupported | |
18969 | # It fails to find uninstalled libraries when the uninstalled | |
18970 | # path is not listed in the libpath. Setting hardcode_minus_L | |
18971 | # to unsupported forces relinking | |
18972 | hardcode_minus_L_CXX=yes | |
18973 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
18974 | hardcode_libdir_separator_CXX= | |
18975 | fi | |
18976 | esac | |
18977 | shared_flag='-shared' | |
18978 | else | |
18979 | # not using gcc | |
18980 | if test "$host_cpu" = ia64; then | |
18981 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
18982 | # chokes on -Wl,-G. The following line is correct: | |
18983 | shared_flag='-G' | |
18984 | else | |
18985 | if test "$aix_use_runtimelinking" = yes; then | |
18986 | shared_flag='-qmkshrobj ${wl}-G' | |
18987 | else | |
18988 | shared_flag='-qmkshrobj' | |
18989 | fi | |
18990 | fi | |
18991 | fi | |
18992 | ||
18993 | # Let the compiler handle the export list. | |
18994 | always_export_symbols_CXX=no | |
18995 | if test "$aix_use_runtimelinking" = yes; then | |
18996 | # Warning - without using the other runtime loading flags (-brtl), | |
18997 | # -berok will link without error, but may produce a broken library. | |
18998 | allow_undefined_flag_CXX='-berok' | |
18999 | # Determine the default libpath from the value encoded in an empty executable. | |
19000 | cat >conftest.$ac_ext <<_ACEOF | |
19001 | #line $LINENO "configure" | |
19002 | #include "confdefs.h" | |
19003 | ||
19004 | #ifdef F77_DUMMY_MAIN | |
19005 | # ifdef __cplusplus | |
19006 | extern "C" | |
19007 | # endif | |
19008 | int F77_DUMMY_MAIN() { return 1; } | |
19009 | #endif | |
19010 | int | |
19011 | main () | |
19012 | { | |
19013 | ||
19014 | ; | |
19015 | return 0; | |
19016 | } | |
19017 | _ACEOF | |
19018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19020 | (eval $ac_link) 2>&5 | |
19021 | ac_status=$? | |
19022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19023 | (exit $ac_status); } && | |
19024 | { ac_try='test -s conftest$ac_exeext' | |
19025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19026 | (eval $ac_try) 2>&5 | |
19027 | ac_status=$? | |
19028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19029 | (exit $ac_status); }; }; then | |
19030 | ||
19031 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
19032 | }'` | |
19033 | # Check for a 64-bit object if we didn't find anything. | |
19034 | 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; } | |
19035 | }'`; fi | |
19036 | else | |
19037 | echo "$as_me: failed program was:" >&5 | |
19038 | cat conftest.$ac_ext >&5 | |
19039 | fi | |
19040 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19041 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
19042 | ||
19043 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
19044 | ||
19045 | archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
19046 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
19047 | else | |
19048 | if test "$host_cpu" = ia64; then | |
19049 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
19050 | allow_undefined_flag_CXX="-z nodefs" | |
19051 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
19052 | else | |
19053 | # Determine the default libpath from the value encoded in an empty executable. | |
19054 | cat >conftest.$ac_ext <<_ACEOF | |
19055 | #line $LINENO "configure" | |
19056 | #include "confdefs.h" | |
19057 | ||
19058 | #ifdef F77_DUMMY_MAIN | |
19059 | # ifdef __cplusplus | |
19060 | extern "C" | |
19061 | # endif | |
19062 | int F77_DUMMY_MAIN() { return 1; } | |
19063 | #endif | |
19064 | int | |
19065 | main () | |
19066 | { | |
19067 | ||
19068 | ; | |
19069 | return 0; | |
19070 | } | |
19071 | _ACEOF | |
19072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19074 | (eval $ac_link) 2>&5 | |
19075 | ac_status=$? | |
19076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19077 | (exit $ac_status); } && | |
19078 | { ac_try='test -s conftest$ac_exeext' | |
19079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19080 | (eval $ac_try) 2>&5 | |
19081 | ac_status=$? | |
19082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19083 | (exit $ac_status); }; }; then | |
19084 | ||
19085 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
19086 | }'` | |
19087 | # Check for a 64-bit object if we didn't find anything. | |
19088 | 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; } | |
19089 | }'`; fi | |
19090 | else | |
19091 | echo "$as_me: failed program was:" >&5 | |
19092 | cat conftest.$ac_ext >&5 | |
19093 | fi | |
19094 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19095 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
19096 | ||
19097 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
19098 | # Warning - without using the other run time loading flags, | |
19099 | # -berok will link without error, but may produce a broken library. | |
19100 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
19101 | allow_undefined_flag_CXX=' ${wl}-berok' | |
19102 | # -bexpall does not export symbols beginning with underscore (_) | |
19103 | always_export_symbols_CXX=yes | |
19104 | # Exported symbols can be pulled into shared objects from archives | |
19105 | whole_archive_flag_spec_CXX=' ' | |
19106 | archive_cmds_need_lc_CXX=yes | |
19107 | # This is similar to how AIX traditionally builds it's shared libraries. | |
19108 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
19109 | fi | |
19110 | fi | |
19111 | ;; | |
19112 | chorus*) | |
19113 | case $cc_basename in | |
19114 | *) | |
19115 | # FIXME: insert proper C++ library support | |
19116 | ld_shlibs_CXX=no | |
19117 | ;; | |
19118 | esac | |
19119 | ;; | |
19120 | dgux*) | |
19121 | case $cc_basename in | |
19122 | ec++) | |
19123 | # FIXME: insert proper C++ library support | |
19124 | ld_shlibs_CXX=no | |
19125 | ;; | |
19126 | ghcx) | |
19127 | # Green Hills C++ Compiler | |
19128 | # FIXME: insert proper C++ library support | |
19129 | ld_shlibs_CXX=no | |
19130 | ;; | |
19131 | *) | |
19132 | # FIXME: insert proper C++ library support | |
19133 | ld_shlibs_CXX=no | |
19134 | ;; | |
19135 | esac | |
19136 | ;; | |
19137 | freebsd12*) | |
19138 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
19139 | ld_shlibs_CXX=no | |
19140 | ;; | |
19141 | freebsd-elf*) | |
19142 | archive_cmds_need_lc_CXX=no | |
19143 | ;; | |
19144 | freebsd*) | |
19145 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
19146 | # conventions | |
19147 | ld_shlibs_CXX=yes | |
19148 | ;; | |
19149 | gnu*) | |
19150 | ;; | |
19151 | hpux*) | |
19152 | if test $with_gnu_ld = no; then | |
19153 | if test "$host_cpu" = ia64; then | |
19154 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
19155 | else | |
19156 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
19157 | hardcode_libdir_separator_CXX=: | |
19158 | export_dynamic_flag_spec_CXX='${wl}-E' | |
19159 | fi | |
19160 | fi | |
19161 | if test "$host_cpu" = ia64; then | |
19162 | hardcode_direct_CXX=no | |
19163 | hardcode_shlibpath_var_CXX=no | |
19164 | else | |
19165 | hardcode_direct_CXX=yes | |
19166 | fi | |
19167 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
19168 | # but as the default | |
19169 | # location of the library. | |
19170 | ||
19171 | case $cc_basename in | |
19172 | CC) | |
19173 | # FIXME: insert proper C++ library support | |
19174 | ld_shlibs_CXX=no | |
19175 | ;; | |
19176 | aCC) | |
19177 | case $host_os in | |
19178 | hpux9*) | |
19179 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
19180 | ;; | |
19181 | *) | |
19182 | if test "$host_cpu" = ia64; then | |
19183 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
19184 | else | |
19185 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
19186 | fi | |
19187 | ;; | |
19188 | esac | |
19189 | # Commands to make compiler produce verbose output that lists | |
19190 | # what "hidden" libraries, object files and flags are used when | |
19191 | # linking a shared library. | |
19192 | # | |
19193 | # There doesn't appear to be a way to prevent this compiler from | |
19194 | # explicitly linking system object files so we need to strip them | |
19195 | # from the output so that they don't get included in the library | |
19196 | # dependencies. | |
19197 | 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' | |
19198 | ;; | |
19199 | *) | |
19200 | if test "$GXX" = yes; then | |
19201 | if test $with_gnu_ld = no; then | |
19202 | case $host_os in | |
19203 | hpux9*) | |
19204 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
19205 | ;; | |
19206 | *) | |
19207 | if test "$host_cpu" = ia64; then | |
19208 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
19209 | else | |
19210 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
19211 | fi | |
19212 | ;; | |
19213 | esac | |
19214 | fi | |
19215 | else | |
19216 | # FIXME: insert proper C++ library support | |
19217 | ld_shlibs_CXX=no | |
19218 | fi | |
19219 | ;; | |
19220 | esac | |
19221 | ;; | |
19222 | irix5* | irix6*) | |
19223 | case $cc_basename in | |
19224 | CC) | |
19225 | # SGI C++ | |
19226 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
19227 | ||
19228 | # Archives containing C++ object files must be created using | |
19229 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
19230 | # necessary to make sure instantiated templates are included | |
19231 | # in the archive. | |
19232 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
19233 | ;; | |
19234 | *) | |
19235 | if test "$GXX" = yes; then | |
19236 | if test "$with_gnu_ld" = no; then | |
19237 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
19238 | else | |
19239 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib' | |
19240 | fi | |
19241 | fi | |
19242 | link_all_deplibs_CXX=yes | |
19243 | ;; | |
19244 | esac | |
19245 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
19246 | hardcode_libdir_separator_CXX=: | |
19247 | ;; | |
19248 | linux*) | |
19249 | case $cc_basename in | |
19250 | KCC) | |
19251 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
19252 | ||
19253 | # KCC will only create a shared library if the output file | |
19254 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
19255 | # to its proper name (with version) after linking. | |
19256 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
19257 | archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
19258 | ||
19259 | # Commands to make compiler produce verbose output that lists | |
19260 | # what "hidden" libraries, object files and flags are used when | |
19261 | # linking a shared library. | |
19262 | # | |
19263 | # There doesn't appear to be a way to prevent this compiler from | |
19264 | # explicitly linking system object files so we need to strip them | |
19265 | # from the output so that they don't get included in the library | |
19266 | # dependencies. | |
19267 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
19268 | ||
19269 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
19270 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
19271 | ||
19272 | # Archives containing C++ object files must be created using | |
19273 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
19274 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
19275 | ;; | |
19276 | cxx) | |
19277 | # Compaq C++ | |
19278 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
19279 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
19280 | ||
19281 | runpath_var=LD_RUN_PATH | |
19282 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
19283 | hardcode_libdir_separator_CXX=: | |
19284 | ||
19285 | # Commands to make compiler produce verbose output that lists | |
19286 | # what "hidden" libraries, object files and flags are used when | |
19287 | # linking a shared library. | |
19288 | # | |
19289 | # There doesn't appear to be a way to prevent this compiler from | |
19290 | # explicitly linking system object files so we need to strip them | |
19291 | # from the output so that they don't get included in the library | |
19292 | # dependencies. | |
19293 | 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' | |
19294 | ;; | |
19295 | esac | |
19296 | ;; | |
19297 | lynxos*) | |
19298 | # FIXME: insert proper C++ library support | |
19299 | ld_shlibs_CXX=no | |
19300 | ;; | |
19301 | m88k*) | |
19302 | # FIXME: insert proper C++ library support | |
19303 | ld_shlibs_CXX=no | |
19304 | ;; | |
19305 | mvs*) | |
19306 | case $cc_basename in | |
19307 | cxx) | |
19308 | # FIXME: insert proper C++ library support | |
19309 | ld_shlibs_CXX=no | |
19310 | ;; | |
19311 | *) | |
19312 | # FIXME: insert proper C++ library support | |
19313 | ld_shlibs_CXX=no | |
19314 | ;; | |
19315 | esac | |
19316 | ;; | |
19317 | netbsd*) | |
19318 | # NetBSD uses g++ - do we need to do anything? | |
19319 | ;; | |
19320 | osf3*) | |
19321 | case $cc_basename in | |
19322 | KCC) | |
19323 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
19324 | ||
19325 | # KCC will only create a shared library if the output file | |
19326 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
19327 | # to its proper name (with version) after linking. | |
19328 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
19329 | ||
19330 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
19331 | hardcode_libdir_separator_CXX=: | |
19332 | ||
19333 | # Archives containing C++ object files must be created using | |
19334 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
19335 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
19336 | ||
19337 | ;; | |
19338 | RCC) | |
19339 | # Rational C++ 2.4.1 | |
19340 | # FIXME: insert proper C++ library support | |
19341 | ld_shlibs_CXX=no | |
19342 | ;; | |
19343 | cxx) | |
19344 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
19345 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
19346 | ||
19347 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
19348 | hardcode_libdir_separator_CXX=: | |
19349 | ||
19350 | # Commands to make compiler produce verbose output that lists | |
19351 | # what "hidden" libraries, object files and flags are used when | |
19352 | # linking a shared library. | |
19353 | # | |
19354 | # There doesn't appear to be a way to prevent this compiler from | |
19355 | # explicitly linking system object files so we need to strip them | |
19356 | # from the output so that they don't get included in the library | |
19357 | # dependencies. | |
19358 | 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' | |
19359 | ;; | |
19360 | *) | |
19361 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
19362 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
19363 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
19364 | ||
19365 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
19366 | hardcode_libdir_separator_CXX=: | |
19367 | ||
19368 | # Commands to make compiler produce verbose output that lists | |
19369 | # what "hidden" libraries, object files and flags are used when | |
19370 | # linking a shared library. | |
19371 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
19372 | ||
19373 | else | |
19374 | # FIXME: insert proper C++ library support | |
19375 | ld_shlibs_CXX=no | |
19376 | fi | |
19377 | ;; | |
19378 | esac | |
19379 | ;; | |
19380 | osf4* | osf5*) | |
19381 | case $cc_basename in | |
19382 | KCC) | |
19383 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
19384 | ||
19385 | # KCC will only create a shared library if the output file | |
19386 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
19387 | # to its proper name (with version) after linking. | |
19388 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
19389 | ||
19390 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
19391 | hardcode_libdir_separator_CXX=: | |
19392 | ||
19393 | # Archives containing C++ object files must be created using | |
19394 | # the KAI C++ compiler. | |
19395 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
19396 | ;; | |
19397 | RCC) | |
19398 | # Rational C++ 2.4.1 | |
19399 | # FIXME: insert proper C++ library support | |
19400 | ld_shlibs_CXX=no | |
19401 | ;; | |
19402 | cxx) | |
19403 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
19404 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
19405 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ | |
19406 | echo "-hidden">> $lib.exp~ | |
19407 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ | |
19408 | $rm $lib.exp' | |
19409 | ||
19410 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
19411 | hardcode_libdir_separator_CXX=: | |
19412 | ||
19413 | # Commands to make compiler produce verbose output that lists | |
19414 | # what "hidden" libraries, object files and flags are used when | |
19415 | # linking a shared library. | |
19416 | # | |
19417 | # There doesn't appear to be a way to prevent this compiler from | |
19418 | # explicitly linking system object files so we need to strip them | |
19419 | # from the output so that they don't get included in the library | |
19420 | # dependencies. | |
19421 | 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' | |
19422 | ;; | |
19423 | *) | |
19424 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
19425 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
19426 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
19427 | ||
19428 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
19429 | hardcode_libdir_separator_CXX=: | |
19430 | ||
19431 | # Commands to make compiler produce verbose output that lists | |
19432 | # what "hidden" libraries, object files and flags are used when | |
19433 | # linking a shared library. | |
19434 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
19435 | ||
19436 | else | |
19437 | # FIXME: insert proper C++ library support | |
19438 | ld_shlibs_CXX=no | |
19439 | fi | |
19440 | ;; | |
19441 | esac | |
19442 | ;; | |
19443 | psos*) | |
19444 | # FIXME: insert proper C++ library support | |
19445 | ld_shlibs_CXX=no | |
19446 | ;; | |
19447 | sco*) | |
19448 | archive_cmds_need_lc_CXX=no | |
19449 | case $cc_basename in | |
19450 | CC) | |
19451 | # FIXME: insert proper C++ library support | |
19452 | ld_shlibs_CXX=no | |
19453 | ;; | |
19454 | *) | |
19455 | # FIXME: insert proper C++ library support | |
19456 | ld_shlibs_CXX=no | |
19457 | ;; | |
19458 | esac | |
19459 | ;; | |
19460 | sunos4*) | |
19461 | case $cc_basename in | |
19462 | CC) | |
19463 | # Sun C++ 4.x | |
19464 | # FIXME: insert proper C++ library support | |
19465 | ld_shlibs_CXX=no | |
19466 | ;; | |
19467 | lcc) | |
19468 | # Lucid | |
19469 | # FIXME: insert proper C++ library support | |
19470 | ld_shlibs_CXX=no | |
19471 | ;; | |
19472 | *) | |
19473 | # FIXME: insert proper C++ library support | |
19474 | ld_shlibs_CXX=no | |
19475 | ;; | |
19476 | esac | |
19477 | ;; | |
19478 | solaris*) | |
19479 | case $cc_basename in | |
19480 | CC) | |
19481 | # Sun C++ 4.2, 5.x and Centerline C++ | |
19482 | no_undefined_flag_CXX=' -zdefs' | |
19483 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
19484 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19485 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
19486 | ||
19487 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
19488 | hardcode_shlibpath_var_CXX=no | |
19489 | case $host_os in | |
19490 | solaris2.0-5 | solaris2.0-5.*) ;; | |
19491 | *) | |
19492 | # The C++ compiler is used as linker so we must use $wl | |
19493 | # flag to pass the commands to the underlying system | |
19494 | # linker. | |
19495 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
19496 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
19497 | ;; | |
19498 | esac | |
19499 | link_all_deplibs_CXX=yes | |
19500 | ||
19501 | # Commands to make compiler produce verbose output that lists | |
19502 | # what "hidden" libraries, object files and flags are used when | |
19503 | # linking a shared library. | |
19504 | # | |
19505 | # There doesn't appear to be a way to prevent this compiler from | |
19506 | # explicitly linking system object files so we need to strip them | |
19507 | # from the output so that they don't get included in the library | |
19508 | # dependencies. | |
19509 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
19510 | ||
19511 | # Archives containing C++ object files must be created using | |
19512 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
19513 | # necessary to make sure instantiated templates are included | |
19514 | # in the archive. | |
19515 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
19516 | ;; | |
19517 | gcx) | |
19518 | # Green Hills C++ Compiler | |
19519 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
19520 | ||
19521 | # The C++ compiler must be used to create the archive. | |
19522 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
19523 | ;; | |
19524 | *) | |
19525 | # GNU C++ compiler with Solaris linker | |
19526 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
19527 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
19528 | if $CC --version | egrep -v '^2\.7' > /dev/null; then | |
19529 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
19530 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19531 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
19532 | ||
19533 | # Commands to make compiler produce verbose output that lists | |
19534 | # what "hidden" libraries, object files and flags are used when | |
19535 | # linking a shared library. | |
19536 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
19537 | else | |
19538 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
19539 | # platform. | |
19540 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
19541 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19542 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
19543 | ||
19544 | # Commands to make compiler produce verbose output that lists | |
19545 | # what "hidden" libraries, object files and flags are used when | |
19546 | # linking a shared library. | |
19547 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
19548 | fi | |
19549 | ||
19550 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
19551 | fi | |
19552 | ;; | |
19553 | esac | |
19554 | ;; | |
19555 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
19556 | archive_cmds_need_lc_CXX=no | |
19557 | ;; | |
19558 | tandem*) | |
19559 | case $cc_basename in | |
19560 | NCC) | |
19561 | # NonStop-UX NCC 3.20 | |
19562 | # FIXME: insert proper C++ library support | |
19563 | ld_shlibs_CXX=no | |
19564 | ;; | |
19565 | *) | |
19566 | # FIXME: insert proper C++ library support | |
19567 | ld_shlibs_CXX=no | |
19568 | ;; | |
19569 | esac | |
19570 | ;; | |
19571 | vxworks*) | |
19572 | # FIXME: insert proper C++ library support | |
19573 | ld_shlibs_CXX=no | |
19574 | ;; | |
19575 | *) | |
19576 | # FIXME: insert proper C++ library support | |
19577 | ld_shlibs_CXX=no | |
19578 | ;; | |
19579 | esac | |
19580 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
19581 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
19582 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
19583 | ||
19584 | # Figure out "hidden" C++ library dependencies from verbose | |
19585 | # compiler output whening linking a shared library. | |
19586 | cat > conftest.$ac_ext <<EOF | |
19587 | class Foo | |
19588 | { | |
19589 | public: | |
19590 | Foo (void) { a = 0; } | |
19591 | private: | |
19592 | int a; | |
19593 | }; | |
19594 | EOF | |
19595 | ||
19596 | ||
19597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19598 | (eval $ac_compile) 2>&5 | |
19599 | ac_status=$? | |
19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19601 | (exit $ac_status); }; then | |
19602 | # Parse the compiler output and extract the necessary | |
19603 | # objects, libraries and library flags. | |
19604 | ||
19605 | # Sentinel used to keep track of whether or not we are before | |
19606 | # the conftest object file. | |
19607 | pre_test_object_deps_done=no | |
19608 | ||
19609 | # The `*' in the case matches for architectures that use `case' in | |
19610 | # $output_verbose_cmd can trigger glob expansion during the loop | |
19611 | # eval without this substitution. | |
19612 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
19613 | ||
19614 | for p in `eval $output_verbose_link_cmd`; do | |
19615 | case $p in | |
19616 | ||
19617 | -L* | -R* | -l*) | |
19618 | # Some compilers place space between "-{L,R}" and the path. | |
19619 | # Remove the space. | |
19620 | if test $p = "-L" \ | |
19621 | || test $p = "-R"; then | |
19622 | prev=$p | |
19623 | continue | |
19624 | else | |
19625 | prev= | |
19626 | fi | |
19627 | ||
19628 | if test "$pre_test_object_deps_done" = no; then | |
19629 | case $p in | |
19630 | -L* | -R*) | |
19631 | # Internal compiler library paths should come after those | |
19632 | # provided the user. The postdeps already come after the | |
19633 | # user supplied libs so there is no need to process them. | |
19634 | if test -z "$compiler_lib_search_path_CXX"; then | |
19635 | compiler_lib_search_path_CXX="${prev}${p}" | |
19636 | else | |
19637 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
19638 | fi | |
19639 | ;; | |
19640 | # The "-l" case would never come before the object being | |
19641 | # linked, so don't bother handling this case. | |
19642 | esac | |
19643 | else | |
19644 | if test -z "$postdeps_CXX"; then | |
19645 | postdeps_CXX="${prev}${p}" | |
19646 | else | |
19647 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
19648 | fi | |
19649 | fi | |
19650 | ;; | |
19651 | ||
19652 | *.$objext|*.$libext) | |
19653 | # This assumes that the test object file only shows up | |
19654 | # once in the compiler output. | |
19655 | if test "$p" = "conftest.$objext"; then | |
19656 | pre_test_object_deps_done=yes | |
19657 | continue | |
19658 | fi | |
19659 | ||
19660 | if test "$pre_test_object_deps_done" = no; then | |
19661 | if test -z "$predep_objects_CXX"; then | |
19662 | predep_objects_CXX="$p" | |
19663 | else | |
19664 | predep_objects_CXX="$predep_objects_CXX $p" | |
19665 | fi | |
19666 | else | |
19667 | if test -z "$postdep_objects_CXX"; then | |
19668 | postdep_objects_CXX="$p" | |
19669 | else | |
19670 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
19671 | fi | |
19672 | fi | |
19673 | ;; | |
19674 | ||
19675 | *) ;; # Ignore the rest. | |
19676 | ||
19677 | esac | |
19678 | done | |
19679 | ||
19680 | # Clean up. | |
19681 | rm -f a.out | |
19682 | else | |
19683 | echo "libtool.m4: error: problem compiling C++ test program" | |
19684 | fi | |
19685 | ||
19686 | $rm -f confest.$objext | |
19687 | ||
19688 | case " $postdeps_CXX " in | |
19689 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
19690 | *) archive_cmds_need_lc_CXX=yes ;; | |
19691 | esac | |
19692 | ||
19693 | GCC_CXX="$GXX" | |
19694 | LD_CXX="$LD" | |
19695 | ||
19696 | lt_prog_compiler_wl_CXX= | |
19697 | lt_prog_compiler_pic_CXX= | |
19698 | lt_prog_compiler_static_CXX= | |
19699 | ||
19700 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
19701 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
19702 | ||
19703 | # C++ specific cases for pic, static, wl, etc. | |
19704 | if test "$GXX" = yes; then | |
19705 | lt_prog_compiler_wl_CXX='-Wl,' | |
19706 | lt_prog_compiler_static_CXX='-static' | |
19707 | ||
19708 | case $host_os in | |
19709 | aix*) | |
19710 | # All AIX code is PIC. | |
19711 | if test "$host_cpu" = ia64; then | |
19712 | # AIX 5 now supports IA64 processor | |
19713 | lt_prog_compiler_static_CXX='-Bstatic' | |
19714 | fi | |
19715 | ;; | |
19716 | amigaos*) | |
19717 | # FIXME: we need at least 68020 code to build shared libraries, but | |
19718 | # adding the `-m68020' flag to GCC prevents building anything better, | |
19719 | # like `-m68040'. | |
19720 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
19721 | ;; | |
19722 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
19723 | # PIC is the default for these OSes. | |
19724 | ;; | |
19725 | cygwin* | mingw* | os2*) | |
19726 | # This hack is so that the source file can tell whether it is being | |
19727 | # built for inclusion in a dll (and should export symbols for example). | |
19728 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
19729 | ;; | |
19730 | darwin* | rhapsody*) | |
19731 | # PIC is the default on this platform | |
19732 | # Common symbols not allowed in MH_DYLIB files | |
19733 | lt_prog_compiler_pic_CXX='-fno-common' | |
19734 | ;; | |
19735 | *djgpp*) | |
19736 | # DJGPP does not support shared libraries at all | |
19737 | lt_prog_compiler_pic_CXX= | |
19738 | ;; | |
19739 | sysv4*MP*) | |
19740 | if test -d /usr/nec; then | |
19741 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
19742 | fi | |
19743 | ;; | |
19744 | hpux*) | |
19745 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
19746 | if test "$host_cpu" != ia64; then | |
19747 | lt_prog_compiler_pic_CXX='-fPIC' | |
19748 | fi | |
19749 | ;; | |
19750 | *) | |
19751 | lt_prog_compiler_pic_CXX='-fPIC' | |
19752 | ;; | |
19753 | esac | |
19754 | else | |
19755 | case $host_os in | |
19756 | aix4* | aix5*) | |
19757 | # All AIX code is PIC. | |
19758 | if test "$host_cpu" = ia64; then | |
19759 | # AIX 5 now supports IA64 processor | |
19760 | lt_prog_compiler_static_CXX='-Bstatic' | |
19761 | else | |
19762 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
19763 | fi | |
19764 | ;; | |
19765 | chorus*) | |
19766 | case $cc_basename in | |
19767 | cxch68) | |
19768 | # Green Hills C++ Compiler | |
19769 | # _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" | |
19770 | ;; | |
19771 | esac | |
19772 | ;; | |
19773 | dgux*) | |
19774 | case $cc_basename in | |
19775 | ec++) | |
19776 | lt_prog_compiler_pic_CXX='-KPIC' | |
19777 | ;; | |
19778 | ghcx) | |
19779 | # Green Hills C++ Compiler | |
19780 | lt_prog_compiler_pic_CXX='-pic' | |
19781 | ;; | |
19782 | *) | |
19783 | ;; | |
19784 | esac | |
19785 | ;; | |
19786 | freebsd*) | |
19787 | # FreeBSD uses GNU C++ | |
19788 | ;; | |
19789 | hpux9* | hpux10* | hpux11*) | |
19790 | case $cc_basename in | |
19791 | CC) | |
19792 | lt_prog_compiler_wl_CXX='-Wl,' | |
19793 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
19794 | if test "$host_cpu" != ia64; then | |
19795 | lt_prog_compiler_pic_CXX='+Z' | |
19796 | fi | |
19797 | ;; | |
19798 | aCC) | |
19799 | lt_prog_compiler_wl_CXX='-Wl,' | |
19800 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
19801 | if test "$host_cpu" != ia64; then | |
19802 | lt_prog_compiler_pic_CXX='+Z' | |
19803 | fi | |
19804 | ;; | |
19805 | *) | |
19806 | ;; | |
19807 | esac | |
19808 | ;; | |
19809 | irix5* | irix6* | nonstopux*) | |
19810 | case $cc_basename in | |
19811 | CC) | |
19812 | lt_prog_compiler_wl_CXX='-Wl,' | |
19813 | lt_prog_compiler_static_CXX='-non_shared' | |
19814 | # CC pic flag -KPIC is the default. | |
19815 | ;; | |
19816 | *) | |
19817 | ;; | |
19818 | esac | |
19819 | ;; | |
19820 | linux*) | |
19821 | case $cc_basename in | |
19822 | KCC) | |
19823 | # KAI C++ Compiler | |
19824 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
19825 | lt_prog_compiler_pic_CXX='-fPIC' | |
19826 | ;; | |
19827 | cxx) | |
19828 | # Compaq C++ | |
19829 | # Make sure the PIC flag is empty. It appears that all Alpha | |
19830 | # Linux and Compaq Tru64 Unix objects are PIC. | |
19831 | lt_prog_compiler_pic_CXX= | |
19832 | lt_prog_compiler_static_CXX='-non_shared' | |
19833 | ;; | |
19834 | *) | |
19835 | ;; | |
19836 | esac | |
19837 | ;; | |
19838 | lynxos*) | |
19839 | ;; | |
19840 | m88k*) | |
19841 | ;; | |
19842 | mvs*) | |
19843 | case $cc_basename in | |
19844 | cxx) | |
19845 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
19846 | ;; | |
19847 | *) | |
19848 | ;; | |
19849 | esac | |
19850 | ;; | |
19851 | netbsd*) | |
19852 | ;; | |
19853 | osf3* | osf4* | osf5*) | |
19854 | case $cc_basename in | |
19855 | KCC) | |
19856 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
19857 | ;; | |
19858 | RCC) | |
19859 | # Rational C++ 2.4.1 | |
19860 | lt_prog_compiler_pic_CXX='-pic' | |
19861 | ;; | |
19862 | cxx) | |
19863 | # Digital/Compaq C++ | |
19864 | lt_prog_compiler_wl_CXX='-Wl,' | |
19865 | # Make sure the PIC flag is empty. It appears that all Alpha | |
19866 | # Linux and Compaq Tru64 Unix objects are PIC. | |
19867 | lt_prog_compiler_pic_CXX= | |
19868 | lt_prog_compiler_static_CXX='-non_shared' | |
19869 | ;; | |
19870 | *) | |
19871 | ;; | |
19872 | esac | |
19873 | ;; | |
19874 | psos*) | |
19875 | ;; | |
19876 | sco*) | |
19877 | case $cc_basename in | |
19878 | CC) | |
19879 | lt_prog_compiler_pic_CXX='-fPIC' | |
19880 | ;; | |
19881 | *) | |
19882 | ;; | |
19883 | esac | |
19884 | ;; | |
19885 | solaris*) | |
19886 | case $cc_basename in | |
19887 | CC) | |
19888 | # Sun C++ 4.2, 5.x and Centerline C++ | |
19889 | lt_prog_compiler_pic_CXX='-KPIC' | |
19890 | lt_prog_compiler_static_CXX='-Bstatic' | |
19891 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
19892 | ;; | |
19893 | gcx) | |
19894 | # Green Hills C++ Compiler | |
19895 | lt_prog_compiler_pic_CXX='-PIC' | |
19896 | ;; | |
19897 | *) | |
19898 | ;; | |
19899 | esac | |
19900 | ;; | |
19901 | sunos4*) | |
19902 | case $cc_basename in | |
19903 | CC) | |
19904 | # Sun C++ 4.x | |
19905 | lt_prog_compiler_pic_CXX='-pic' | |
19906 | lt_prog_compiler_static_CXX='-Bstatic' | |
19907 | ;; | |
19908 | lcc) | |
19909 | # Lucid | |
19910 | lt_prog_compiler_pic_CXX='-pic' | |
19911 | ;; | |
19912 | *) | |
19913 | ;; | |
19914 | esac | |
19915 | ;; | |
19916 | tandem*) | |
19917 | case $cc_basename in | |
19918 | NCC) | |
19919 | # NonStop-UX NCC 3.20 | |
19920 | lt_prog_compiler_pic_CXX='-KPIC' | |
19921 | ;; | |
19922 | *) | |
19923 | ;; | |
19924 | esac | |
19925 | ;; | |
19926 | unixware*) | |
19927 | ;; | |
19928 | vxworks*) | |
19929 | ;; | |
19930 | *) | |
19931 | lt_prog_compiler_can_build_shared_CXX=no | |
19932 | ;; | |
19933 | esac | |
19934 | fi | |
19935 | ||
19936 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
19937 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
19938 | ||
19939 | # | |
19940 | # Check to make sure the PIC flag actually works. | |
19941 | # | |
19942 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
19943 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
19944 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
19945 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
19946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19947 | else | |
19948 | lt_prog_compiler_pic_works_CXX=no | |
19949 | ac_outfile=conftest.$ac_objext | |
19950 | save_CFLAGS="$CFLAGS" | |
19951 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC" | |
19952 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19953 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
19954 | # The compiler can only warn and ignore the option if not recognized | |
19955 | # So say no if there are warnings | |
19956 | if test -s conftest.err; then | |
19957 | # Append any errors to the config.log. | |
19958 | cat conftest.err 1>&5 | |
19959 | else | |
19960 | lt_prog_compiler_pic_works_CXX=yes | |
19961 | fi | |
19962 | fi | |
19963 | $rm conftest* | |
19964 | CFLAGS="$save_CFLAGS" | |
19965 | ||
19966 | fi | |
19967 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
19968 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
19969 | ||
19970 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
19971 | case $lt_prog_compiler_pic_CXX in | |
19972 | "" | " "*) ;; | |
19973 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
19974 | esac | |
19975 | else | |
19976 | lt_prog_compiler_pic_CXX= | |
19977 | lt_prog_compiler_can_build_shared_CXX=no | |
19978 | fi | |
19979 | ||
19980 | fi | |
19981 | case "$host_os" in | |
19982 | # For platforms which do not support PIC, -DPIC is meaningless: | |
19983 | *djgpp*) | |
19984 | lt_prog_compiler_pic_CXX= | |
19985 | ;; | |
19986 | *) | |
19987 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
19988 | ;; | |
19989 | esac | |
19990 | ||
19991 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
19992 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
19993 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
19994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19995 | else | |
19996 | lt_cv_prog_compiler_c_o_CXX=no | |
19997 | $rm -r conftest 2>/dev/null | |
19998 | mkdir conftest | |
19999 | cd conftest | |
20000 | mkdir out | |
20001 | save_CXXFLAGS="$CXXFLAGS" | |
20002 | CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext" | |
20003 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
20004 | ||
20005 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
20006 | # that will create temporary files in the current directory regardless of | |
20007 | # the output directory. Thus, making CWD read-only will cause this test | |
20008 | # to fail, enabling locking or at least warning the user not to do parallel | |
20009 | # builds. | |
20010 | chmod -w . | |
20011 | ||
20012 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
20013 | then | |
20014 | # The compiler can only warn and ignore the option if not recognized | |
20015 | # So say no if there are warnings | |
20016 | if test -s out/conftest.err; then | |
20017 | # Append any errors to the config.log. | |
20018 | cat out/conftest.err 1>&5 | |
20019 | else | |
20020 | lt_cv_prog_compiler_c_o_CXX=yes | |
20021 | fi | |
20022 | fi | |
20023 | CXXFLAGS="$save_CXXFLAGS" | |
20024 | chmod u+w . | |
20025 | $rm conftest* out/* | |
20026 | rmdir out | |
20027 | cd .. | |
20028 | rmdir conftest | |
20029 | $rm conftest* | |
20030 | ||
20031 | fi | |
20032 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
20033 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
20034 | ||
20035 | ||
20036 | hard_links="nottested" | |
20037 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
20038 | # do not overwrite the value of need_locks provided by the user | |
20039 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
20040 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
20041 | hard_links=yes | |
20042 | $rm conftest* | |
20043 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
20044 | touch conftest.a | |
20045 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
20046 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
20047 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
20048 | echo "${ECHO_T}$hard_links" >&6 | |
20049 | if test "$hard_links" = no; then | |
20050 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
20051 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
20052 | need_locks=warn | |
20053 | fi | |
20054 | else | |
20055 | need_locks=no | |
20056 | fi | |
20057 | ||
20058 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
20059 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
20060 | ||
20061 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
20062 | case $host_os in | |
20063 | aix4* | aix5*) | |
20064 | # If we're using GNU nm, then we don't want the "-C" option. | |
20065 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
20066 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
20067 | 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' | |
20068 | else | |
20069 | 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' | |
20070 | fi | |
20071 | ;; | |
20072 | cygwin* | mingw* | pw32*) | |
20073 | export_symbols_cmds_CXX="$ltdll_cmds" | |
20074 | ;; | |
20075 | *) | |
20076 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
20077 | ;; | |
20078 | esac | |
20079 | ||
20080 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
20081 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
20082 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
20083 | ||
20084 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
20085 | if test "$GCC" = yes; then | |
20086 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
20087 | fi | |
20088 | ||
20089 | # | |
20090 | # Do we need to explicitly link libc? | |
20091 | # | |
20092 | archive_cmds_need_lc_CXX=yes | |
20093 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
20094 | case $archive_cmds_CXX in | |
20095 | *'~'*) | |
20096 | # FIXME: we may have to deal with multi-command sequences. | |
20097 | ;; | |
20098 | '$CC '*) | |
20099 | # Test whether the compiler implicitly links with -lc since on some | |
20100 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
20101 | # to ld, don't add -lc before -lgcc. | |
20102 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
20103 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
20104 | $rm conftest* | |
20105 | echo 'static int dummy;' > conftest.$ac_ext | |
20106 | ||
20107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20108 | (eval $ac_compile) 2>&5 | |
20109 | ac_status=$? | |
20110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20111 | (exit $ac_status); } 2>conftest.err; then | |
20112 | soname=conftest | |
20113 | lib=conftest | |
20114 | libobjs=conftest.$ac_objext | |
20115 | deplibs= | |
20116 | wl=$lt_prog_compiler_wl_CXX | |
20117 | compiler_flags=-v | |
20118 | linker_flags=-v | |
20119 | verstring= | |
20120 | output_objdir=. | |
20121 | libname=conftest | |
20122 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
20123 | allow_undefined_flag_CXX= | |
20124 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
20125 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
20126 | ac_status=$? | |
20127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20128 | (exit $ac_status); } | |
20129 | then | |
20130 | archive_cmds_need_lc_CXX=no | |
20131 | else | |
20132 | archive_cmds_need_lc_CXX=yes | |
20133 | fi | |
20134 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
20135 | else | |
20136 | cat conftest.err 1>&5 | |
20137 | fi | |
20138 | $rm conftest* | |
20139 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
20140 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
20141 | ;; | |
20142 | esac | |
20143 | fi | |
20144 | ||
20145 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
20146 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
20147 | hardcode_action_CXX= | |
20148 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
20149 | test -n "$runpath_var CXX"; then | |
20150 | ||
20151 | # We can hardcode non-existant directories. | |
20152 | if test "$hardcode_direct_CXX" != no && | |
20153 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
20154 | # have to relink, otherwise we might link with an installed library | |
20155 | # when we should be linking with a yet-to-be-installed one | |
20156 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
20157 | test "$hardcode_minus_L_CXX" != no; then | |
20158 | # Linking always hardcodes the temporary library directory. | |
20159 | hardcode_action_CXX=relink | |
20160 | else | |
20161 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
20162 | hardcode_action_CXX=immediate | |
20163 | fi | |
20164 | else | |
20165 | # We cannot hardcode anything, or else we can only hardcode existing | |
20166 | # directories. | |
20167 | hardcode_action_CXX=unsupported | |
20168 | fi | |
20169 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
20170 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
20171 | ||
20172 | if test "$hardcode_action_CXX" = relink; then | |
20173 | # Fast installation is not supported | |
20174 | enable_fast_install=no | |
20175 | elif test "$shlibpath_overrides_runpath" = yes || | |
20176 | test "$enable_shared" = no; then | |
20177 | # Fast installation is not necessary | |
20178 | enable_fast_install=needless | |
20179 | fi | |
20180 | ||
20181 | striplib= | |
20182 | old_striplib= | |
20183 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
20184 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
20185 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
20186 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
20187 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
20188 | echo "$as_me:$LINENO: result: yes" >&5 | |
20189 | echo "${ECHO_T}yes" >&6 | |
20190 | else | |
20191 | echo "$as_me:$LINENO: result: no" >&5 | |
20192 | echo "${ECHO_T}no" >&6 | |
20193 | fi | |
20194 | ||
20195 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
20196 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
20197 | library_names_spec= | |
20198 | libname_spec='lib$name' | |
20199 | soname_spec= | |
20200 | postinstall_cmds= | |
20201 | postuninstall_cmds= | |
20202 | finish_cmds= | |
20203 | finish_eval= | |
20204 | shlibpath_var= | |
20205 | shlibpath_overrides_runpath=unknown | |
20206 | version_type=none | |
20207 | dynamic_linker="$host_os ld.so" | |
20208 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
20209 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
20210 | need_lib_prefix=unknown | |
20211 | hardcode_into_libs=no | |
20212 | ||
20213 | # when you set need_version to no, make sure it does not cause -set_version | |
20214 | # flags to be left without arguments | |
20215 | need_version=unknown | |
20216 | ||
20217 | case $host_os in | |
20218 | aix3*) | |
20219 | version_type=linux | |
20220 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
20221 | shlibpath_var=LIBPATH | |
20222 | ||
20223 | # AIX 3 has no versioning support, so we append a major version to the name. | |
20224 | soname_spec='${libname}${release}.so$major' | |
20225 | ;; | |
20226 | ||
20227 | aix4* | aix5*) | |
20228 | version_type=linux | |
20229 | if test "$host_cpu" = ia64; then | |
20230 | # AIX 5 supports IA64 | |
20231 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
20232 | shlibpath_var=LD_LIBRARY_PATH | |
20233 | else | |
20234 | # With GCC up to 2.95.x, collect2 would create an import file | |
20235 | # for dependence libraries. The import file would start with | |
20236 | # the line `#! .'. This would cause the generated library to | |
20237 | # depend on `.', always an invalid library. This was fixed in | |
20238 | # development snapshots of GCC prior to 3.0. | |
20239 | case $host_os in | |
20240 | aix4 | aix4.[01] | aix4.[01].*) | |
20241 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
20242 | echo ' yes ' | |
20243 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
20244 | : | |
20245 | else | |
20246 | can_build_shared=no | |
20247 | fi | |
20248 | ;; | |
20249 | esac | |
20250 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
20251 | # soname into executable. Probably we can add versioning support to | |
20252 | # collect2, so additional links can be useful in future. | |
20253 | if test "$aix_use_runtimelinking" = yes; then | |
20254 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
20255 | # instead of lib<name>.a to let people know that these are not | |
20256 | # typical AIX shared libraries. | |
20257 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20258 | else | |
20259 | # We preserve .a as extension for shared libraries through AIX4.2 | |
20260 | # and later when we are not doing run time linking. | |
20261 | library_names_spec='${libname}${release}.a $libname.a' | |
20262 | soname_spec='${libname}${release}.so$major' | |
20263 | fi | |
20264 | shlibpath_var=LIBPATH | |
20265 | fi | |
20266 | ;; | |
20267 | ||
20268 | amigaos*) | |
20269 | library_names_spec='$libname.ixlibrary $libname.a' | |
20270 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
20271 | 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' | |
20272 | ;; | |
20273 | ||
20274 | beos*) | |
20275 | library_names_spec='${libname}.so' | |
20276 | dynamic_linker="$host_os ld.so" | |
20277 | shlibpath_var=LIBRARY_PATH | |
20278 | ;; | |
20279 | ||
20280 | bsdi4*) | |
20281 | version_type=linux | |
20282 | need_version=no | |
20283 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20284 | soname_spec='${libname}${release}.so$major' | |
20285 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
20286 | shlibpath_var=LD_LIBRARY_PATH | |
20287 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
20288 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
20289 | # the default ld.so.conf also contains /usr/contrib/lib and | |
20290 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
20291 | # libtool to hard-code these into programs | |
20292 | ;; | |
20293 | ||
20294 | cygwin* | mingw* | pw32*) | |
20295 | version_type=windows | |
20296 | need_version=no | |
20297 | need_lib_prefix=no | |
20298 | case $GCC,$host_os in | |
20299 | yes,cygwin*) | |
20300 | library_names_spec='$libname.dll.a' | |
20301 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
20302 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
20303 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
20304 | dldir=$destdir/`dirname \$dlpath`~ | |
20305 | test -d \$dldir || mkdir -p \$dldir~ | |
20306 | $install_prog .libs/$dlname \$dldir/$dlname' | |
20307 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
20308 | dlpath=$dir/\$dldll~ | |
20309 | $rm \$dlpath' | |
20310 | ;; | |
20311 | yes,mingw*) | |
20312 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
20313 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
20314 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
20315 | # It is most probably a Windows format PATH printed by | |
20316 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
20317 | # path with ; separators, and with drive letters. We can handle the | |
20318 | # drive letters (cygwin fileutils understands them), so leave them, | |
20319 | # especially as we might pass files found there to a mingw objdump, | |
20320 | # which wouldn't understand a cygwinified path. Ahh. | |
20321 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
20322 | else | |
20323 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
20324 | fi | |
20325 | ;; | |
20326 | yes,pw32*) | |
20327 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
20328 | ;; | |
20329 | *) | |
20330 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
20331 | ;; | |
20332 | esac | |
20333 | dynamic_linker='Win32 ld.exe' | |
20334 | # FIXME: first we should search . and the directory the executable is in | |
20335 | shlibpath_var=PATH | |
20336 | ;; | |
20337 | ||
20338 | darwin* | rhapsody*) | |
20339 | dynamic_linker="$host_os dyld" | |
20340 | version_type=darwin | |
20341 | need_lib_prefix=no | |
20342 | need_version=no | |
20343 | # FIXME: Relying on posixy $() will cause problems for | |
20344 | # cross-compilation, but unfortunately the echo tests do not | |
20345 | # yet detect zsh echo's removal of \ escapes. | |
20346 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
20347 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
20348 | shlibpath_overrides_runpath=yes | |
20349 | shlibpath_var=DYLD_LIBRARY_PATH | |
20350 | ;; | |
20351 | ||
20352 | dgux*) | |
20353 | version_type=linux | |
20354 | need_lib_prefix=no | |
20355 | need_version=no | |
20356 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20357 | soname_spec='${libname}${release}.so$major' | |
20358 | shlibpath_var=LD_LIBRARY_PATH | |
20359 | ;; | |
20360 | ||
20361 | freebsd1*) | |
20362 | dynamic_linker=no | |
20363 | ;; | |
20364 | ||
20365 | freebsd*) | |
20366 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
20367 | version_type=freebsd-$objformat | |
20368 | case $version_type in | |
20369 | freebsd-elf*) | |
20370 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
20371 | need_version=no | |
20372 | need_lib_prefix=no | |
20373 | ;; | |
20374 | freebsd-*) | |
20375 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
20376 | need_version=yes | |
20377 | ;; | |
20378 | esac | |
20379 | shlibpath_var=LD_LIBRARY_PATH | |
20380 | case $host_os in | |
20381 | freebsd2*) | |
20382 | shlibpath_overrides_runpath=yes | |
20383 | ;; | |
20384 | freebsd3.01* | freebsdelf3.01*) | |
20385 | shlibpath_overrides_runpath=yes | |
20386 | hardcode_into_libs=yes | |
20387 | ;; | |
20388 | *) # from 3.2 on | |
20389 | shlibpath_overrides_runpath=no | |
20390 | hardcode_into_libs=yes | |
20391 | ;; | |
20392 | esac | |
20393 | ;; | |
20394 | ||
20395 | gnu*) | |
20396 | version_type=linux | |
20397 | need_lib_prefix=no | |
20398 | need_version=no | |
20399 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
20400 | soname_spec='${libname}${release}.so$major' | |
20401 | shlibpath_var=LD_LIBRARY_PATH | |
20402 | hardcode_into_libs=yes | |
20403 | ;; | |
20404 | ||
20405 | hpux9* | hpux10* | hpux11*) | |
20406 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
20407 | # link against other versions. | |
20408 | version_type=sunos | |
20409 | need_lib_prefix=no | |
20410 | need_version=no | |
20411 | if test "$host_cpu" = ia64; then | |
20412 | hardcode_into_libs=yes | |
20413 | dynamic_linker="$host_os dld.so" | |
20414 | shlibpath_var=LD_LIBRARY_PATH | |
20415 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
20416 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20417 | soname_spec='${libname}${release}.so$major' | |
20418 | if test "X$HPUX_IA64_MODE" = X32; then | |
20419 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
20420 | else | |
20421 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
20422 | fi | |
20423 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
20424 | else | |
20425 | dynamic_linker="$host_os dld.sl" | |
20426 | shlibpath_var=SHLIB_PATH | |
20427 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
20428 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
20429 | soname_spec='${libname}${release}.sl$major' | |
20430 | fi | |
20431 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
20432 | postinstall_cmds='chmod 555 $lib' | |
20433 | ;; | |
20434 | ||
20435 | irix5* | irix6* | nonstopux*) | |
20436 | case $host_os in | |
20437 | nonstopux*) version_type=nonstopux ;; | |
20438 | *) version_type=irix ;; | |
20439 | esac | |
20440 | need_lib_prefix=no | |
20441 | need_version=no | |
20442 | soname_spec='${libname}${release}.so$major' | |
20443 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
20444 | case $host_os in | |
20445 | irix5* | nonstopux*) | |
20446 | libsuff= shlibsuff= | |
20447 | ;; | |
20448 | *) | |
20449 | case $LD in # libtool.m4 will add one of these switches to LD | |
20450 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
20451 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
20452 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
20453 | *) libsuff= shlibsuff= libmagic=never-match;; | |
20454 | esac | |
20455 | ;; | |
20456 | esac | |
20457 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
20458 | shlibpath_overrides_runpath=no | |
20459 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
20460 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
20461 | ;; | |
20462 | ||
20463 | # No shared lib support for Linux oldld, aout, or coff. | |
20464 | linux*oldld* | linux*aout* | linux*coff*) | |
20465 | dynamic_linker=no | |
20466 | ;; | |
20467 | ||
20468 | # This must be Linux ELF. | |
20469 | linux*) | |
20470 | version_type=linux | |
20471 | need_lib_prefix=no | |
20472 | need_version=no | |
20473 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20474 | soname_spec='${libname}${release}.so$major' | |
20475 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
20476 | libsuff= | |
20477 | if test "x$LINUX_64_MODE" = x64; then | |
20478 | # Some platforms are per default 64-bit, so there's no /lib64 | |
20479 | if test -d /lib64; then | |
20480 | libsuff=64 | |
20481 | fi | |
20482 | fi | |
20483 | shlibpath_var=LD_LIBRARY_PATH | |
20484 | shlibpath_overrides_runpath=no | |
20485 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
20486 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
20487 | # This implies no fast_install, which is unacceptable. | |
20488 | # Some rework will be needed to allow for fast_install | |
20489 | # before this can be enabled. | |
20490 | hardcode_into_libs=yes | |
20491 | ||
20492 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
20493 | # powerpc, because MkLinux only supported shared libraries with the | |
20494 | # GNU dynamic linker. Since this was broken with cross compilers, | |
20495 | # most powerpc-linux boxes support dynamic linking these days and | |
20496 | # people can always --disable-shared, the test was removed, and we | |
20497 | # assume the GNU/Linux dynamic linker is in use. | |
20498 | dynamic_linker='GNU/Linux ld.so' | |
20499 | ;; | |
20500 | ||
20501 | netbsd*) | |
20502 | version_type=sunos | |
20503 | need_lib_prefix=no | |
20504 | need_version=no | |
20505 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
20506 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
20507 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20508 | dynamic_linker='NetBSD (a.out) ld.so' | |
20509 | else | |
20510 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
20511 | soname_spec='${libname}${release}.so$major' | |
20512 | dynamic_linker='NetBSD ld.elf_so' | |
20513 | fi | |
20514 | shlibpath_var=LD_LIBRARY_PATH | |
20515 | shlibpath_overrides_runpath=yes | |
20516 | hardcode_into_libs=yes | |
20517 | ;; | |
20518 | ||
20519 | newsos6) | |
20520 | version_type=linux | |
20521 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20522 | shlibpath_var=LD_LIBRARY_PATH | |
20523 | shlibpath_overrides_runpath=yes | |
20524 | ;; | |
20525 | ||
20526 | nto-qnx) | |
20527 | version_type=linux | |
20528 | need_lib_prefix=no | |
20529 | need_version=no | |
20530 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20531 | soname_spec='${libname}${release}.so$major' | |
20532 | shlibpath_var=LD_LIBRARY_PATH | |
20533 | shlibpath_overrides_runpath=yes | |
20534 | ;; | |
20535 | ||
20536 | openbsd*) | |
20537 | version_type=sunos | |
20538 | need_lib_prefix=no | |
20539 | need_version=no | |
20540 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
20541 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20542 | shlibpath_var=LD_LIBRARY_PATH | |
20543 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
20544 | case $host_os in | |
20545 | openbsd2.[89] | openbsd2.[89].*) | |
20546 | shlibpath_overrides_runpath=no | |
20547 | ;; | |
20548 | *) | |
20549 | shlibpath_overrides_runpath=yes | |
20550 | ;; | |
20551 | esac | |
20552 | else | |
20553 | shlibpath_overrides_runpath=yes | |
20554 | fi | |
20555 | ;; | |
20556 | ||
20557 | os2*) | |
20558 | libname_spec='$name' | |
20559 | need_lib_prefix=no | |
20560 | library_names_spec='$libname.dll $libname.a' | |
20561 | dynamic_linker='OS/2 ld.exe' | |
20562 | shlibpath_var=LIBPATH | |
20563 | ;; | |
20564 | ||
20565 | osf3* | osf4* | osf5*) | |
20566 | version_type=osf | |
20567 | need_lib_prefix=no | |
20568 | need_version=no | |
20569 | soname_spec='${libname}${release}.so' | |
20570 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
20571 | shlibpath_var=LD_LIBRARY_PATH | |
20572 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
20573 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
20574 | ;; | |
20575 | ||
20576 | sco3.2v5*) | |
20577 | version_type=osf | |
20578 | soname_spec='${libname}${release}.so$major' | |
20579 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20580 | shlibpath_var=LD_LIBRARY_PATH | |
20581 | ;; | |
20582 | ||
20583 | solaris*) | |
20584 | version_type=linux | |
20585 | need_lib_prefix=no | |
20586 | need_version=no | |
20587 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20588 | soname_spec='${libname}${release}.so$major' | |
20589 | shlibpath_var=LD_LIBRARY_PATH | |
20590 | shlibpath_overrides_runpath=yes | |
20591 | hardcode_into_libs=yes | |
20592 | # ldd complains unless libraries are executable | |
20593 | postinstall_cmds='chmod +x $lib' | |
20594 | ;; | |
20595 | ||
20596 | sunos4*) | |
20597 | version_type=sunos | |
20598 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
20599 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
20600 | shlibpath_var=LD_LIBRARY_PATH | |
20601 | shlibpath_overrides_runpath=yes | |
20602 | if test "$with_gnu_ld" = yes; then | |
20603 | need_lib_prefix=no | |
20604 | fi | |
20605 | need_version=yes | |
20606 | ;; | |
20607 | ||
20608 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
20609 | version_type=linux | |
20610 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20611 | soname_spec='${libname}${release}.so$major' | |
20612 | shlibpath_var=LD_LIBRARY_PATH | |
20613 | case $host_vendor in | |
20614 | sni) | |
20615 | shlibpath_overrides_runpath=no | |
20616 | ;; | |
20617 | motorola) | |
20618 | need_lib_prefix=no | |
20619 | need_version=no | |
20620 | shlibpath_overrides_runpath=no | |
20621 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
20622 | ;; | |
20623 | esac | |
20624 | ;; | |
20625 | ||
20626 | sysv4*MP*) | |
20627 | if test -d /usr/nec ;then | |
20628 | version_type=linux | |
20629 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
20630 | soname_spec='$libname.so.$major' | |
20631 | shlibpath_var=LD_LIBRARY_PATH | |
20632 | fi | |
20633 | ;; | |
20634 | ||
20635 | uts4*) | |
20636 | version_type=linux | |
20637 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20638 | soname_spec='${libname}${release}.so$major' | |
20639 | shlibpath_var=LD_LIBRARY_PATH | |
20640 | ;; | |
20641 | ||
20642 | *) | |
20643 | dynamic_linker=no | |
20644 | ;; | |
20645 | esac | |
20646 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
20647 | echo "${ECHO_T}$dynamic_linker" >&6 | |
20648 | test "$dynamic_linker" = no && can_build_shared=no | |
20649 | ||
20650 | if test "x$enable_dlopen" != xyes; then | |
20651 | enable_dlopen=unknown | |
20652 | enable_dlopen_self=unknown | |
20653 | enable_dlopen_self_static=unknown | |
20654 | else | |
20655 | lt_cv_dlopen=no | |
20656 | lt_cv_dlopen_libs= | |
20657 | ||
20658 | case $host_os in | |
20659 | beos*) | |
20660 | lt_cv_dlopen="load_add_on" | |
20661 | lt_cv_dlopen_libs= | |
20662 | lt_cv_dlopen_self=yes | |
20663 | ;; | |
20664 | ||
20665 | cygwin* | mingw* | pw32*) | |
20666 | lt_cv_dlopen="LoadLibrary" | |
20667 | lt_cv_dlopen_libs= | |
20668 | ;; | |
20669 | ||
20670 | *) | |
20671 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
20672 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
20673 | if test "${ac_cv_func_shl_load+set}" = set; then | |
20674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20675 | else | |
20676 | cat >conftest.$ac_ext <<_ACEOF | |
20677 | #line $LINENO "configure" | |
20678 | #include "confdefs.h" | |
20679 | /* System header to define __stub macros and hopefully few prototypes, | |
20680 | which can conflict with char shl_load (); below. */ | |
20681 | #include <assert.h> | |
20682 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20683 | #ifdef __cplusplus | |
20684 | extern "C" | |
20685 | #endif | |
20686 | /* We use char because int might match the return type of a gcc2 | |
20687 | builtin and then its argument prototype would still apply. */ | |
20688 | char shl_load (); | |
20689 | char (*f) (); | |
20690 | ||
20691 | #ifdef F77_DUMMY_MAIN | |
20692 | # ifdef __cplusplus | |
20693 | extern "C" | |
20694 | # endif | |
20695 | int F77_DUMMY_MAIN() { return 1; } | |
20696 | #endif | |
20697 | int | |
20698 | main () | |
20699 | { | |
20700 | /* The GNU C library defines this for functions which it implements | |
20701 | to always fail with ENOSYS. Some functions are actually named | |
20702 | something starting with __ and the normal name is an alias. */ | |
20703 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
20704 | choke me | |
20705 | #else | |
20706 | f = shl_load; | |
20707 | #endif | |
20708 | ||
20709 | ; | |
20710 | return 0; | |
20711 | } | |
20712 | _ACEOF | |
20713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20715 | (eval $ac_link) 2>&5 | |
20716 | ac_status=$? | |
20717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20718 | (exit $ac_status); } && | |
20719 | { ac_try='test -s conftest$ac_exeext' | |
20720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20721 | (eval $ac_try) 2>&5 | |
20722 | ac_status=$? | |
20723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20724 | (exit $ac_status); }; }; then | |
20725 | ac_cv_func_shl_load=yes | |
20726 | else | |
20727 | echo "$as_me: failed program was:" >&5 | |
20728 | cat conftest.$ac_ext >&5 | |
20729 | ac_cv_func_shl_load=no | |
20730 | fi | |
20731 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20732 | fi | |
20733 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
20734 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
20735 | if test $ac_cv_func_shl_load = yes; then | |
20736 | lt_cv_dlopen="shl_load" | |
20737 | else | |
20738 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
20739 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
20740 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
20741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20742 | else | |
20743 | ac_check_lib_save_LIBS=$LIBS | |
20744 | LIBS="-ldld $LIBS" | |
20745 | cat >conftest.$ac_ext <<_ACEOF | |
20746 | #line $LINENO "configure" | |
20747 | #include "confdefs.h" | |
20748 | ||
20749 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20750 | #ifdef __cplusplus | |
20751 | extern "C" | |
20752 | #endif | |
20753 | /* We use char because int might match the return type of a gcc2 | |
20754 | builtin and then its argument prototype would still apply. */ | |
20755 | char shl_load (); | |
20756 | #ifdef F77_DUMMY_MAIN | |
20757 | # ifdef __cplusplus | |
20758 | extern "C" | |
20759 | # endif | |
20760 | int F77_DUMMY_MAIN() { return 1; } | |
20761 | #endif | |
20762 | int | |
20763 | main () | |
20764 | { | |
20765 | shl_load (); | |
20766 | ; | |
20767 | return 0; | |
20768 | } | |
20769 | _ACEOF | |
20770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20772 | (eval $ac_link) 2>&5 | |
20773 | ac_status=$? | |
20774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20775 | (exit $ac_status); } && | |
20776 | { ac_try='test -s conftest$ac_exeext' | |
20777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20778 | (eval $ac_try) 2>&5 | |
20779 | ac_status=$? | |
20780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20781 | (exit $ac_status); }; }; then | |
20782 | ac_cv_lib_dld_shl_load=yes | |
20783 | else | |
20784 | echo "$as_me: failed program was:" >&5 | |
20785 | cat conftest.$ac_ext >&5 | |
20786 | ac_cv_lib_dld_shl_load=no | |
20787 | fi | |
20788 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20789 | LIBS=$ac_check_lib_save_LIBS | |
20790 | fi | |
20791 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
20792 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
20793 | if test $ac_cv_lib_dld_shl_load = yes; then | |
20794 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
20795 | else | |
20796 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
20797 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
20798 | if test "${ac_cv_func_dlopen+set}" = set; then | |
20799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20800 | else | |
20801 | cat >conftest.$ac_ext <<_ACEOF | |
20802 | #line $LINENO "configure" | |
20803 | #include "confdefs.h" | |
20804 | /* System header to define __stub macros and hopefully few prototypes, | |
20805 | which can conflict with char dlopen (); below. */ | |
20806 | #include <assert.h> | |
20807 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20808 | #ifdef __cplusplus | |
20809 | extern "C" | |
20810 | #endif | |
20811 | /* We use char because int might match the return type of a gcc2 | |
20812 | builtin and then its argument prototype would still apply. */ | |
20813 | char dlopen (); | |
20814 | char (*f) (); | |
20815 | ||
20816 | #ifdef F77_DUMMY_MAIN | |
20817 | # ifdef __cplusplus | |
20818 | extern "C" | |
20819 | # endif | |
20820 | int F77_DUMMY_MAIN() { return 1; } | |
20821 | #endif | |
20822 | int | |
20823 | main () | |
20824 | { | |
20825 | /* The GNU C library defines this for functions which it implements | |
20826 | to always fail with ENOSYS. Some functions are actually named | |
20827 | something starting with __ and the normal name is an alias. */ | |
20828 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
20829 | choke me | |
20830 | #else | |
20831 | f = dlopen; | |
20832 | #endif | |
20833 | ||
20834 | ; | |
20835 | return 0; | |
20836 | } | |
20837 | _ACEOF | |
20838 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20840 | (eval $ac_link) 2>&5 | |
20841 | ac_status=$? | |
20842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20843 | (exit $ac_status); } && | |
20844 | { ac_try='test -s conftest$ac_exeext' | |
20845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20846 | (eval $ac_try) 2>&5 | |
20847 | ac_status=$? | |
20848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20849 | (exit $ac_status); }; }; then | |
20850 | ac_cv_func_dlopen=yes | |
20851 | else | |
20852 | echo "$as_me: failed program was:" >&5 | |
20853 | cat conftest.$ac_ext >&5 | |
20854 | ac_cv_func_dlopen=no | |
20855 | fi | |
20856 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20857 | fi | |
20858 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
20859 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
20860 | if test $ac_cv_func_dlopen = yes; then | |
20861 | lt_cv_dlopen="dlopen" | |
20862 | else | |
20863 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
20864 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
20865 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
20866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20867 | else | |
20868 | ac_check_lib_save_LIBS=$LIBS | |
20869 | LIBS="-ldl $LIBS" | |
20870 | cat >conftest.$ac_ext <<_ACEOF | |
20871 | #line $LINENO "configure" | |
20872 | #include "confdefs.h" | |
20873 | ||
20874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20875 | #ifdef __cplusplus | |
20876 | extern "C" | |
20877 | #endif | |
20878 | /* We use char because int might match the return type of a gcc2 | |
20879 | builtin and then its argument prototype would still apply. */ | |
20880 | char dlopen (); | |
20881 | #ifdef F77_DUMMY_MAIN | |
20882 | # ifdef __cplusplus | |
20883 | extern "C" | |
20884 | # endif | |
20885 | int F77_DUMMY_MAIN() { return 1; } | |
20886 | #endif | |
20887 | int | |
20888 | main () | |
20889 | { | |
20890 | dlopen (); | |
20891 | ; | |
20892 | return 0; | |
20893 | } | |
20894 | _ACEOF | |
20895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20897 | (eval $ac_link) 2>&5 | |
20898 | ac_status=$? | |
20899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20900 | (exit $ac_status); } && | |
20901 | { ac_try='test -s conftest$ac_exeext' | |
20902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20903 | (eval $ac_try) 2>&5 | |
20904 | ac_status=$? | |
20905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20906 | (exit $ac_status); }; }; then | |
20907 | ac_cv_lib_dl_dlopen=yes | |
20908 | else | |
20909 | echo "$as_me: failed program was:" >&5 | |
20910 | cat conftest.$ac_ext >&5 | |
20911 | ac_cv_lib_dl_dlopen=no | |
20912 | fi | |
20913 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20914 | LIBS=$ac_check_lib_save_LIBS | |
20915 | fi | |
20916 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
20917 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
20918 | if test $ac_cv_lib_dl_dlopen = yes; then | |
20919 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
20920 | else | |
20921 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
20922 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
20923 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
20924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20925 | else | |
20926 | ac_check_lib_save_LIBS=$LIBS | |
20927 | LIBS="-lsvld $LIBS" | |
20928 | cat >conftest.$ac_ext <<_ACEOF | |
20929 | #line $LINENO "configure" | |
20930 | #include "confdefs.h" | |
20931 | ||
20932 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20933 | #ifdef __cplusplus | |
20934 | extern "C" | |
20935 | #endif | |
20936 | /* We use char because int might match the return type of a gcc2 | |
20937 | builtin and then its argument prototype would still apply. */ | |
20938 | char dlopen (); | |
20939 | #ifdef F77_DUMMY_MAIN | |
20940 | # ifdef __cplusplus | |
20941 | extern "C" | |
20942 | # endif | |
20943 | int F77_DUMMY_MAIN() { return 1; } | |
20944 | #endif | |
20945 | int | |
20946 | main () | |
20947 | { | |
20948 | dlopen (); | |
20949 | ; | |
20950 | return 0; | |
20951 | } | |
20952 | _ACEOF | |
20953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20955 | (eval $ac_link) 2>&5 | |
20956 | ac_status=$? | |
20957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20958 | (exit $ac_status); } && | |
20959 | { ac_try='test -s conftest$ac_exeext' | |
20960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20961 | (eval $ac_try) 2>&5 | |
20962 | ac_status=$? | |
20963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20964 | (exit $ac_status); }; }; then | |
20965 | ac_cv_lib_svld_dlopen=yes | |
20966 | else | |
20967 | echo "$as_me: failed program was:" >&5 | |
20968 | cat conftest.$ac_ext >&5 | |
20969 | ac_cv_lib_svld_dlopen=no | |
20970 | fi | |
20971 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20972 | LIBS=$ac_check_lib_save_LIBS | |
20973 | fi | |
20974 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
20975 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
20976 | if test $ac_cv_lib_svld_dlopen = yes; then | |
20977 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
20978 | else | |
20979 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
20980 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
20981 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
20982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20983 | else | |
20984 | ac_check_lib_save_LIBS=$LIBS | |
20985 | LIBS="-ldld $LIBS" | |
20986 | cat >conftest.$ac_ext <<_ACEOF | |
20987 | #line $LINENO "configure" | |
20988 | #include "confdefs.h" | |
20989 | ||
20990 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20991 | #ifdef __cplusplus | |
20992 | extern "C" | |
20993 | #endif | |
20994 | /* We use char because int might match the return type of a gcc2 | |
20995 | builtin and then its argument prototype would still apply. */ | |
20996 | char dld_link (); | |
20997 | #ifdef F77_DUMMY_MAIN | |
20998 | # ifdef __cplusplus | |
20999 | extern "C" | |
21000 | # endif | |
21001 | int F77_DUMMY_MAIN() { return 1; } | |
21002 | #endif | |
21003 | int | |
21004 | main () | |
21005 | { | |
21006 | dld_link (); | |
21007 | ; | |
21008 | return 0; | |
21009 | } | |
21010 | _ACEOF | |
21011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21013 | (eval $ac_link) 2>&5 | |
21014 | ac_status=$? | |
21015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21016 | (exit $ac_status); } && | |
21017 | { ac_try='test -s conftest$ac_exeext' | |
21018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21019 | (eval $ac_try) 2>&5 | |
21020 | ac_status=$? | |
21021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21022 | (exit $ac_status); }; }; then | |
21023 | ac_cv_lib_dld_dld_link=yes | |
21024 | else | |
21025 | echo "$as_me: failed program was:" >&5 | |
21026 | cat conftest.$ac_ext >&5 | |
21027 | ac_cv_lib_dld_dld_link=no | |
21028 | fi | |
21029 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21030 | LIBS=$ac_check_lib_save_LIBS | |
21031 | fi | |
21032 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
21033 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
21034 | if test $ac_cv_lib_dld_dld_link = yes; then | |
21035 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
21036 | fi | |
21037 | ||
21038 | ||
21039 | fi | |
21040 | ||
21041 | ||
21042 | fi | |
21043 | ||
21044 | ||
21045 | fi | |
21046 | ||
21047 | ||
21048 | fi | |
21049 | ||
21050 | ||
21051 | fi | |
21052 | ||
21053 | ;; | |
21054 | esac | |
21055 | ||
21056 | if test "x$lt_cv_dlopen" != xno; then | |
21057 | enable_dlopen=yes | |
21058 | else | |
21059 | enable_dlopen=no | |
21060 | fi | |
21061 | ||
21062 | case $lt_cv_dlopen in | |
21063 | dlopen) | |
21064 | save_CPPFLAGS="$CPPFLAGS" | |
21065 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
21066 | ||
21067 | save_LDFLAGS="$LDFLAGS" | |
21068 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
21069 | ||
21070 | save_LIBS="$LIBS" | |
21071 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
21072 | ||
21073 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
21074 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
21075 | if test "${lt_cv_dlopen_self+set}" = set; then | |
21076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21077 | else | |
21078 | if test "$cross_compiling" = yes; then : | |
21079 | lt_cv_dlopen_self=cross | |
21080 | else | |
21081 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
21082 | lt_status=$lt_dlunknown | |
21083 | cat > conftest.$ac_ext <<EOF | |
21084 | #line 21084 "configure" | |
21085 | #include "confdefs.h" | |
21086 | ||
21087 | #if HAVE_DLFCN_H | |
21088 | #include <dlfcn.h> | |
21089 | #endif | |
21090 | ||
21091 | #include <stdio.h> | |
21092 | ||
21093 | #ifdef RTLD_GLOBAL | |
21094 | # define LT_DLGLOBAL RTLD_GLOBAL | |
21095 | #else | |
21096 | # ifdef DL_GLOBAL | |
21097 | # define LT_DLGLOBAL DL_GLOBAL | |
21098 | # else | |
21099 | # define LT_DLGLOBAL 0 | |
21100 | # endif | |
21101 | #endif | |
21102 | ||
21103 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
21104 | find out it does not work in some platform. */ | |
21105 | #ifndef LT_DLLAZY_OR_NOW | |
21106 | # ifdef RTLD_LAZY | |
21107 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
21108 | # else | |
21109 | # ifdef DL_LAZY | |
21110 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
21111 | # else | |
21112 | # ifdef RTLD_NOW | |
21113 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
21114 | # else | |
21115 | # ifdef DL_NOW | |
21116 | # define LT_DLLAZY_OR_NOW DL_NOW | |
21117 | # else | |
21118 | # define LT_DLLAZY_OR_NOW 0 | |
21119 | # endif | |
21120 | # endif | |
21121 | # endif | |
21122 | # endif | |
21123 | #endif | |
21124 | ||
21125 | #ifdef __cplusplus | |
21126 | extern "C" void exit (int); | |
21127 | #endif | |
21128 | ||
21129 | void fnord() { int i=42;} | |
21130 | int main () | |
21131 | { | |
21132 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
21133 | int status = $lt_dlunknown; | |
21134 | ||
21135 | if (self) | |
21136 | { | |
21137 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
21138 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
21139 | /* dlclose (self); */ | |
21140 | } | |
21141 | ||
21142 | exit (status); | |
21143 | } | |
21144 | EOF | |
21145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21146 | (eval $ac_link) 2>&5 | |
21147 | ac_status=$? | |
21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21149 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
21150 | (./conftest; exit; ) 2>/dev/null | |
21151 | lt_status=$? | |
21152 | case x$lt_status in | |
21153 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
21154 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
21155 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
21156 | esac | |
21157 | else : | |
21158 | # compilation failed | |
21159 | lt_cv_dlopen_self=no | |
21160 | fi | |
21161 | fi | |
21162 | rm -fr conftest* | |
21163 | ||
21164 | ||
21165 | fi | |
21166 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
21167 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
21168 | ||
21169 | if test "x$lt_cv_dlopen_self" = xyes; then | |
21170 | LDFLAGS="$LDFLAGS $link_static_flag" | |
21171 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
21172 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
21173 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
21174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21175 | else | |
21176 | if test "$cross_compiling" = yes; then : | |
21177 | lt_cv_dlopen_self_static=cross | |
21178 | else | |
21179 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
21180 | lt_status=$lt_dlunknown | |
21181 | cat > conftest.$ac_ext <<EOF | |
21182 | #line 21182 "configure" | |
21183 | #include "confdefs.h" | |
21184 | ||
21185 | #if HAVE_DLFCN_H | |
21186 | #include <dlfcn.h> | |
21187 | #endif | |
21188 | ||
21189 | #include <stdio.h> | |
21190 | ||
21191 | #ifdef RTLD_GLOBAL | |
21192 | # define LT_DLGLOBAL RTLD_GLOBAL | |
21193 | #else | |
21194 | # ifdef DL_GLOBAL | |
21195 | # define LT_DLGLOBAL DL_GLOBAL | |
21196 | # else | |
21197 | # define LT_DLGLOBAL 0 | |
21198 | # endif | |
21199 | #endif | |
21200 | ||
21201 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
21202 | find out it does not work in some platform. */ | |
21203 | #ifndef LT_DLLAZY_OR_NOW | |
21204 | # ifdef RTLD_LAZY | |
21205 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
21206 | # else | |
21207 | # ifdef DL_LAZY | |
21208 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
21209 | # else | |
21210 | # ifdef RTLD_NOW | |
21211 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
21212 | # else | |
21213 | # ifdef DL_NOW | |
21214 | # define LT_DLLAZY_OR_NOW DL_NOW | |
21215 | # else | |
21216 | # define LT_DLLAZY_OR_NOW 0 | |
21217 | # endif | |
21218 | # endif | |
21219 | # endif | |
21220 | # endif | |
21221 | #endif | |
21222 | ||
21223 | #ifdef __cplusplus | |
21224 | extern "C" void exit (int); | |
21225 | #endif | |
21226 | ||
21227 | void fnord() { int i=42;} | |
21228 | int main () | |
21229 | { | |
21230 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
21231 | int status = $lt_dlunknown; | |
21232 | ||
21233 | if (self) | |
21234 | { | |
21235 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
21236 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
21237 | /* dlclose (self); */ | |
21238 | } | |
21239 | ||
21240 | exit (status); | |
21241 | } | |
21242 | EOF | |
21243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21244 | (eval $ac_link) 2>&5 | |
21245 | ac_status=$? | |
21246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21247 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
21248 | (./conftest; exit; ) 2>/dev/null | |
21249 | lt_status=$? | |
21250 | case x$lt_status in | |
21251 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
21252 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
21253 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
21254 | esac | |
21255 | else : | |
21256 | # compilation failed | |
21257 | lt_cv_dlopen_self_static=no | |
21258 | fi | |
21259 | fi | |
21260 | rm -fr conftest* | |
21261 | ||
21262 | ||
21263 | fi | |
21264 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
21265 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
21266 | fi | |
21267 | ||
21268 | CPPFLAGS="$save_CPPFLAGS" | |
21269 | LDFLAGS="$save_LDFLAGS" | |
21270 | LIBS="$save_LIBS" | |
21271 | ;; | |
21272 | esac | |
21273 | ||
21274 | case $lt_cv_dlopen_self in | |
21275 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
21276 | *) enable_dlopen_self=unknown ;; | |
21277 | esac | |
21278 | ||
21279 | case $lt_cv_dlopen_self_static in | |
21280 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
21281 | *) enable_dlopen_self_static=unknown ;; | |
21282 | esac | |
21283 | fi | |
21284 | ||
21285 | ||
21286 | # The else clause should only fire when bootstrapping the | |
21287 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
21288 | # with your package, and you will get complaints that there are | |
21289 | # no rules to generate ltmain.sh. | |
21290 | if test -f "$ltmain"; then | |
21291 | # Now quote all the things that may contain metacharacters while being | |
21292 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
21293 | # variables and quote the copies for generation of the libtool script. | |
21294 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
21295 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
21296 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
21297 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
21298 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
21299 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21300 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
21301 | old_postinstall_cmds old_postuninstall_cmds \ | |
21302 | compiler_CXX \ | |
21303 | CC_CXX \ | |
21304 | LD_CXX \ | |
21305 | lt_prog_compiler_wl_CXX \ | |
21306 | lt_prog_compiler_pic_CXX \ | |
21307 | lt_prog_compiler_static_CXX \ | |
21308 | lt_prog_compiler_no_builtin_flag_CXX \ | |
21309 | export_dynamic_flag_spec_CXX \ | |
21310 | thread_safe_flag_spec_CXX \ | |
21311 | whole_archive_flag_spec_CXX \ | |
21312 | old_archive_cmds_CXX \ | |
21313 | old_archive_from_new_cmds_CXX \ | |
21314 | predep_objects_CXX \ | |
21315 | postdep_objects_CXX \ | |
21316 | predeps_CXX \ | |
21317 | postdeps_CXX \ | |
21318 | compiler_lib_search_path_CXX \ | |
21319 | archive_cmds_CXX \ | |
21320 | archive_expsym_cmds_CXX \ | |
21321 | postinstall_cmds_CXX \ | |
21322 | postuninstall_cmds_CXX \ | |
21323 | old_archive_from_expsyms_cmds_CXX \ | |
21324 | allow_undefined_flag_CXX \ | |
21325 | no_undefined_flag_CXX \ | |
21326 | export_symbols_cmds_CXX \ | |
21327 | hardcode_libdir_flag_spec_CXX \ | |
21328 | hardcode_libdir_separator_CXX \ | |
21329 | lt_cv_prog_compiler_c_o_CXX \ | |
21330 | exclude_expsyms_CXX \ | |
21331 | include_expsyms_CXX; do | |
21332 | ||
21333 | case $var in | |
21334 | old_archive_cmds_CXX | \ | |
21335 | old_archive_from_new_cmds_CXX | \ | |
21336 | archive_cmds_CXX | \ | |
21337 | archive_expsym_cmds_CXX | \ | |
21338 | old_archive_from_expsyms_cmds_CXX | \ | |
21339 | export_symbols_cmds_CXX | \ | |
21340 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
21341 | postinstall_cmds | postuninstall_cmds | \ | |
21342 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
21343 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
21344 | # Double-quote double-evaled strings. | |
21345 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
21346 | ;; | |
21347 | *) | |
21348 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
21349 | ;; | |
21350 | esac | |
21351 | done | |
21352 | ||
21353 | case $lt_echo in | |
21354 | *'\$0 --fallback-echo"') | |
21355 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
21356 | ;; | |
21357 | esac | |
21358 | ||
21359 | cfgfile="$ofile" | |
21360 | ||
21361 | cat <<__EOF__ >> "$cfgfile" | |
21362 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
21363 | ||
21364 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21365 | ||
21366 | # Shell to use when invoking shell scripts. | |
21367 | SHELL=$lt_SHELL | |
21368 | ||
21369 | # Whether or not to build shared libraries. | |
21370 | build_libtool_libs=$enable_shared | |
21371 | ||
21372 | # Whether or not to build static libraries. | |
21373 | build_old_libs=$enable_static | |
21374 | ||
21375 | # Whether or not to add -lc for building shared libraries. | |
21376 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
21377 | ||
21378 | # Whether or not to optimize for fast installation. | |
21379 | fast_install=$enable_fast_install | |
21380 | ||
21381 | # The host system. | |
21382 | host_alias=$host_alias | |
21383 | host=$host | |
21384 | ||
21385 | # An echo program that does not interpret backslashes. | |
21386 | echo=$lt_echo | |
21387 | ||
21388 | # The archiver. | |
21389 | AR=$lt_AR | |
21390 | AR_FLAGS=$lt_AR_FLAGS | |
21391 | ||
21392 | # A C compiler. | |
21393 | LTCC=$lt_LTCC | |
21394 | ||
21395 | # A language-specific compiler. | |
21396 | CC=$lt_compiler_CXX | |
21397 | ||
21398 | # Is the compiler the GNU C compiler? | |
21399 | with_gcc=$GCC_CXX | |
21400 | ||
21401 | # The linker used to build libraries. | |
21402 | LD=$lt_LD_CXX | |
21403 | ||
21404 | # Whether we need hard or soft links. | |
21405 | LN_S=$lt_LN_S | |
21406 | ||
21407 | # A BSD-compatible nm program. | |
21408 | NM=$lt_NM | |
21409 | ||
21410 | # A sed program that does not truncate output. | |
21411 | SED=$lt_SED | |
21412 | ||
21413 | # A symbol stripping program | |
21414 | STRIP=$STRIP | |
21415 | ||
21416 | # Used to examine libraries when file_magic_cmd begins "file" | |
21417 | MAGIC_CMD=$MAGIC_CMD | |
21418 | ||
21419 | # Used on cygwin: DLL creation program. | |
21420 | DLLTOOL="$DLLTOOL" | |
21421 | ||
21422 | # Used on cygwin: object dumper. | |
21423 | OBJDUMP="$OBJDUMP" | |
21424 | ||
21425 | # Used on cygwin: assembler. | |
21426 | AS="$AS" | |
21427 | ||
21428 | # The name of the directory that contains temporary libtool files. | |
21429 | objdir=$objdir | |
21430 | ||
21431 | # How to create reloadable object files. | |
21432 | reload_flag=$lt_reload_flag | |
21433 | reload_cmds=$lt_reload_cmds | |
21434 | ||
21435 | # How to pass a linker flag through the compiler. | |
21436 | wl=$lt_lt_prog_compiler_wl_CXX | |
21437 | ||
21438 | # Object file suffix (normally "o"). | |
21439 | objext="$ac_objext" | |
21440 | ||
21441 | # Old archive suffix (normally "a"). | |
21442 | libext="$libext" | |
21443 | ||
21444 | # Executable file suffix (normally ""). | |
21445 | exeext="$exeext" | |
21446 | ||
21447 | # Additional compiler flags for building library objects. | |
21448 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
21449 | pic_mode=$pic_mode | |
21450 | ||
21451 | # What is the maximum length of a command? | |
21452 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
21453 | ||
21454 | # Does compiler simultaneously support -c and -o options? | |
21455 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
21456 | ||
21457 | # Must we lock files when doing compilation ? | |
21458 | need_locks=$lt_need_locks | |
21459 | ||
21460 | # Do we need the lib prefix for modules? | |
21461 | need_lib_prefix=$need_lib_prefix | |
21462 | ||
21463 | # Do we need a version for libraries? | |
21464 | need_version=$need_version | |
21465 | ||
21466 | # Whether dlopen is supported. | |
21467 | dlopen_support=$enable_dlopen | |
21468 | ||
21469 | # Whether dlopen of programs is supported. | |
21470 | dlopen_self=$enable_dlopen_self | |
21471 | ||
21472 | # Whether dlopen of statically linked programs is supported. | |
21473 | dlopen_self_static=$enable_dlopen_self_static | |
21474 | ||
21475 | # Compiler flag to prevent dynamic linking. | |
21476 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
21477 | ||
21478 | # Compiler flag to turn off builtin functions. | |
21479 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
21480 | ||
21481 | # Compiler flag to allow reflexive dlopens. | |
21482 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
21483 | ||
21484 | # Compiler flag to generate shared objects directly from archives. | |
21485 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
21486 | ||
21487 | # Compiler flag to generate thread-safe objects. | |
21488 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
21489 | ||
21490 | # Library versioning type. | |
21491 | version_type=$version_type | |
21492 | ||
21493 | # Format of library name prefix. | |
21494 | libname_spec=$lt_libname_spec | |
21495 | ||
21496 | # List of archive names. First name is the real one, the rest are links. | |
21497 | # The last name is the one that the linker finds with -lNAME. | |
21498 | library_names_spec=$lt_library_names_spec | |
21499 | ||
21500 | # The coded name of the library, if different from the real name. | |
21501 | soname_spec=$lt_soname_spec | |
21502 | ||
21503 | # Commands used to build and install an old-style archive. | |
21504 | RANLIB=$lt_RANLIB | |
21505 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
21506 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
21507 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
21508 | ||
21509 | # Create an old-style archive from a shared archive. | |
21510 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
21511 | ||
21512 | # Create a temporary old-style archive to link instead of a shared archive. | |
21513 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
21514 | ||
21515 | # Commands used to build and install a shared archive. | |
21516 | archive_cmds=$lt_archive_cmds_CXX | |
21517 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
21518 | postinstall_cmds=$lt_postinstall_cmds | |
21519 | postuninstall_cmds=$lt_postuninstall_cmds | |
21520 | ||
21521 | # Commands to strip libraries. | |
21522 | old_striplib=$lt_old_striplib | |
21523 | striplib=$lt_striplib | |
21524 | ||
21525 | # Dependencies to place before the objects being linked to create a | |
21526 | # shared library. | |
21527 | predep_objects=$lt_predep_objects_CXX | |
21528 | ||
21529 | # Dependencies to place after the objects being linked to create a | |
21530 | # shared library. | |
21531 | postdep_objects=$lt_postdep_objects_CXX | |
21532 | ||
21533 | # Dependencies to place before the objects being linked to create a | |
21534 | # shared library. | |
21535 | predeps=$lt_predeps_CXX | |
21536 | ||
21537 | # Dependencies to place after the objects being linked to create a | |
21538 | # shared library. | |
21539 | postdeps=$lt_postdeps_CXX | |
21540 | ||
21541 | # The library search path used internally by the compiler when linking | |
21542 | # a shared library. | |
21543 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
21544 | ||
21545 | # Method to check whether dependent libraries are shared objects. | |
21546 | deplibs_check_method=$lt_deplibs_check_method | |
21547 | ||
21548 | # Command to use when deplibs_check_method == file_magic. | |
21549 | file_magic_cmd=$lt_file_magic_cmd | |
21550 | ||
21551 | # Flag that allows shared libraries with undefined symbols to be built. | |
21552 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
21553 | ||
21554 | # Flag that forces no undefined symbols. | |
21555 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
21556 | ||
21557 | # Commands used to finish a libtool library installation in a directory. | |
21558 | finish_cmds=$lt_finish_cmds | |
21559 | ||
21560 | # Same as above, but a single script fragment to be evaled but not shown. | |
21561 | finish_eval=$lt_finish_eval | |
21562 | ||
21563 | # Take the output of nm and produce a listing of raw symbols and C names. | |
21564 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
21565 | ||
21566 | # Transform the output of nm in a proper C declaration | |
21567 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
21568 | ||
21569 | # Transform the output of nm in a C name address pair | |
21570 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
21571 | ||
21572 | # This is the shared library runtime path variable. | |
21573 | runpath_var=$runpath_var | |
21574 | ||
21575 | # This is the shared library path variable. | |
21576 | shlibpath_var=$shlibpath_var | |
21577 | ||
21578 | # Is shlibpath searched before the hard-coded library search path? | |
21579 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
21580 | ||
21581 | # How to hardcode a shared library path into an executable. | |
21582 | hardcode_action=$hardcode_action_CXX | |
21583 | ||
21584 | # Whether we should hardcode library paths into libraries. | |
21585 | hardcode_into_libs=$hardcode_into_libs | |
21586 | ||
21587 | # Flag to hardcode \$libdir into a binary during linking. | |
21588 | # This must work even if \$libdir does not exist. | |
21589 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
21590 | ||
21591 | # Whether we need a single -rpath flag with a separated argument. | |
21592 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
21593 | ||
21594 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
21595 | # resulting binary. | |
21596 | hardcode_direct=$hardcode_direct_CXX | |
21597 | ||
21598 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
21599 | # resulting binary. | |
21600 | hardcode_minus_L=$hardcode_minus_L_CXX | |
21601 | ||
21602 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
21603 | # the resulting binary. | |
21604 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
21605 | ||
21606 | # Variables whose values should be saved in libtool wrapper scripts and | |
21607 | # restored at relink time. | |
21608 | variables_saved_for_relink="$variables_saved_for_relink" | |
21609 | ||
21610 | # Whether libtool must link a program against all its dependency libraries. | |
21611 | link_all_deplibs=$link_all_deplibs_CXX | |
21612 | ||
21613 | # Compile-time system search path for libraries | |
21614 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
21615 | ||
21616 | # Run-time system search path for libraries | |
21617 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
21618 | ||
21619 | # Fix the shell variable \$srcfile for the compiler. | |
21620 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
21621 | ||
21622 | # Set to yes if exported symbols are required. | |
21623 | always_export_symbols=$always_export_symbols_CXX | |
21624 | ||
21625 | # The commands to list exported symbols. | |
21626 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
21627 | ||
21628 | # The commands to extract the exported symbol list from a shared archive. | |
21629 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
21630 | ||
21631 | # Symbols that should not be listed in the preloaded symbols. | |
21632 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
21633 | ||
21634 | # Symbols that must always be exported. | |
21635 | include_expsyms=$lt_include_expsyms_CXX | |
21636 | ||
21637 | # ### END LIBTOOL TAG CONFIG: $tagname | |
21638 | ||
21639 | __EOF__ | |
21640 | ||
21641 | ||
21642 | else | |
21643 | # If there is no Makefile yet, we rely on a make rule to execute | |
21644 | # `config.status --recheck' to rerun these tests and create the | |
21645 | # libtool script then. | |
21646 | test -f Makefile && make "$ltmain" | |
21647 | fi | |
21648 | ||
21649 | ||
21650 | ac_ext=c | |
21651 | ac_cpp='$CPP $CPPFLAGS' | |
21652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21655 | ||
21656 | CC="$lt_save_CC" | |
21657 | ||
21658 | ;; | |
21659 | ||
21660 | GCJ) | |
21661 | ||
21662 | ||
21663 | ||
21664 | # Source file extension for C test sources. | |
21665 | ac_ext=java | |
21666 | ||
21667 | # Object file extension for compiled C test sources. | |
21668 | objext=o | |
21669 | objext_GCJ=$objext | |
21670 | ||
21671 | # Code to be used in simple compile tests | |
21672 | lt_simple_compile_test_code="class foo {}" | |
21673 | ||
21674 | # Code to be used in simple link tests | |
21675 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }' | |
21676 | ||
21677 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
21678 | ||
21679 | # If no C compiler was specified, use CC. | |
21680 | LTCC=${LTCC-"$CC"} | |
21681 | ||
21682 | # Allow CC to be a program name with arguments. | |
21683 | set dummy $CC | |
21684 | compiler="$2" | |
21685 | ||
21686 | ||
21687 | # Allow CC to be a program name with arguments. | |
21688 | lt_save_CC="$CC" | |
21689 | CC=${GCJ-"gcj"} | |
21690 | set dummy $CC | |
21691 | compiler="$2" | |
21692 | compiler_GCJ=$CC | |
21693 | ||
21694 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
21695 | archive_cmds_need_lc_GCJ=no | |
21696 | ||
21697 | ||
21698 | lt_prog_compiler_no_builtin_flag_GCJ= | |
21699 | ||
21700 | if test "$GCC" = yes; then | |
21701 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
21702 | ||
21703 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
21704 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
21705 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
21706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21707 | else | |
21708 | lt_cv_prog_compiler_rtti_exceptions=no | |
21709 | ac_outfile=conftest.$ac_objext | |
21710 | save_CFLAGS="$CFLAGS" | |
21711 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
21712 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
21713 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
21714 | # The compiler can only warn and ignore the option if not recognized | |
21715 | # So say no if there are warnings | |
21716 | if test -s conftest.err; then | |
21717 | # Append any errors to the config.log. | |
21718 | cat conftest.err 1>&5 | |
21719 | else | |
21720 | lt_cv_prog_compiler_rtti_exceptions=yes | |
21721 | fi | |
21722 | fi | |
21723 | $rm conftest* | |
21724 | CFLAGS="$save_CFLAGS" | |
21725 | ||
21726 | fi | |
21727 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
21728 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
21729 | ||
21730 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
21731 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
21732 | else | |
21733 | : | |
21734 | fi | |
21735 | ||
21736 | fi | |
21737 | ||
21738 | lt_prog_compiler_wl_GCJ= | |
21739 | lt_prog_compiler_pic_GCJ= | |
21740 | lt_prog_compiler_static_GCJ= | |
21741 | ||
21742 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
21743 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
21744 | ||
21745 | if test "$GCC" = yes; then | |
21746 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21747 | lt_prog_compiler_static_GCJ='-static' | |
21748 | ||
21749 | case $host_os in | |
21750 | aix*) | |
21751 | # All AIX code is PIC. | |
21752 | if test "$host_cpu" = ia64; then | |
21753 | # AIX 5 now supports IA64 processor | |
21754 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21755 | fi | |
21756 | ;; | |
21757 | ||
21758 | amigaos*) | |
21759 | # FIXME: we need at least 68020 code to build shared libraries, but | |
21760 | # adding the `-m68020' flag to GCC prevents building anything better, | |
21761 | # like `-m68040'. | |
21762 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
21763 | ;; | |
21764 | ||
21765 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
21766 | # PIC is the default for these OSes. | |
21767 | ;; | |
21768 | ||
21769 | cygwin* | mingw* | pw32* | os2*) | |
21770 | # This hack is so that the source file can tell whether it is being | |
21771 | # built for inclusion in a dll (and should export symbols for example). | |
21772 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
21773 | ;; | |
21774 | ||
21775 | darwin* | rhapsody*) | |
21776 | # PIC is the default on this platform | |
21777 | # Common symbols not allowed in MH_DYLIB files | |
21778 | lt_prog_compiler_pic_GCJ='-fno-common' | |
21779 | ;; | |
21780 | ||
21781 | msdosdjgpp*) | |
21782 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
21783 | # on systems that don't support them. | |
21784 | lt_prog_compiler_can_build_shared_GCJ=no | |
21785 | enable_shared=no | |
21786 | ;; | |
21787 | ||
21788 | sysv4*MP*) | |
21789 | if test -d /usr/nec; then | |
21790 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
21791 | fi | |
21792 | ;; | |
21793 | ||
21794 | hpux*) | |
21795 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
21796 | if test "$host_cpu" != ia64; then | |
21797 | lt_prog_compiler_pic_GCJ='-fPIC' | |
21798 | fi | |
21799 | ;; | |
21800 | ||
21801 | *) | |
21802 | lt_prog_compiler_pic_GCJ='-fPIC' | |
21803 | ;; | |
21804 | esac | |
21805 | else | |
21806 | # PORTME Check for flag to pass linker flags through the system compiler. | |
21807 | case $host_os in | |
21808 | aix*) | |
21809 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21810 | if test "$host_cpu" = ia64; then | |
21811 | # AIX 5 now supports IA64 processor | |
21812 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21813 | else | |
21814 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
21815 | fi | |
21816 | ;; | |
21817 | ||
21818 | cygwin* | mingw* | pw32* | os2*) | |
21819 | # This hack is so that the source file can tell whether it is being | |
21820 | # built for inclusion in a dll (and should export symbols for example). | |
21821 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
21822 | ;; | |
21823 | ||
21824 | hpux9* | hpux10* | hpux11*) | |
21825 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21826 | if test "$host_cpu" != ia64; then | |
21827 | lt_prog_compiler_pic_GCJ='+Z' | |
21828 | fi | |
21829 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
21830 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
21831 | ;; | |
21832 | ||
21833 | irix5* | irix6* | nonstopux*) | |
21834 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21835 | # PIC (with -KPIC) is the default. | |
21836 | lt_prog_compiler_static_GCJ='-non_shared' | |
21837 | ;; | |
21838 | ||
21839 | newsos6) | |
21840 | lt_prog_compiler_pic_GCJ='-KPIC' | |
21841 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21842 | ;; | |
21843 | ||
21844 | osf3* | osf4* | osf5*) | |
21845 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21846 | # All OSF/1 code is PIC. | |
21847 | lt_prog_compiler_static_GCJ='-non_shared' | |
21848 | ;; | |
21849 | ||
21850 | sco3.2v5*) | |
21851 | lt_prog_compiler_pic_GCJ='-Kpic' | |
21852 | lt_prog_compiler_static_GCJ='-dn' | |
21853 | ;; | |
21854 | ||
21855 | solaris*) | |
21856 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21857 | lt_prog_compiler_pic_GCJ='-KPIC' | |
21858 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21859 | ;; | |
21860 | ||
21861 | sunos4*) | |
21862 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
21863 | lt_prog_compiler_pic_GCJ='-PIC' | |
21864 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21865 | ;; | |
21866 | ||
21867 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
21868 | if test "x$host_vendor" = xsni; then | |
21869 | lt_prog_compiler_wl_GCJ='-LD' | |
21870 | else | |
21871 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21872 | fi | |
21873 | lt_prog_compiler_pic_GCJ='-KPIC' | |
21874 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21875 | ;; | |
21876 | ||
21877 | sysv4*MP*) | |
21878 | if test -d /usr/nec ;then | |
21879 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
21880 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21881 | fi | |
21882 | ;; | |
21883 | ||
21884 | uts4*) | |
21885 | lt_prog_compiler_pic_GCJ='-pic' | |
21886 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21887 | ;; | |
21888 | ||
21889 | *) | |
21890 | lt_prog_compiler_can_build_shared_GCJ=no | |
21891 | ;; | |
21892 | esac | |
21893 | fi | |
21894 | ||
21895 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
21896 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
21897 | ||
21898 | # | |
21899 | # Check to make sure the PIC flag actually works. | |
21900 | # | |
21901 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
21902 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
21903 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
21904 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
21905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21906 | else | |
21907 | lt_prog_compiler_pic_works_GCJ=no | |
21908 | ac_outfile=conftest.$ac_objext | |
21909 | save_CFLAGS="$CFLAGS" | |
21910 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC" | |
21911 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
21912 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
21913 | # The compiler can only warn and ignore the option if not recognized | |
21914 | # So say no if there are warnings | |
21915 | if test -s conftest.err; then | |
21916 | # Append any errors to the config.log. | |
21917 | cat conftest.err 1>&5 | |
21918 | else | |
21919 | lt_prog_compiler_pic_works_GCJ=yes | |
21920 | fi | |
21921 | fi | |
21922 | $rm conftest* | |
21923 | CFLAGS="$save_CFLAGS" | |
21924 | ||
21925 | fi | |
21926 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
21927 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
21928 | ||
21929 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
21930 | case $lt_prog_compiler_pic_GCJ in | |
21931 | "" | " "*) ;; | |
21932 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
21933 | esac | |
21934 | else | |
21935 | lt_prog_compiler_pic_GCJ= | |
21936 | lt_prog_compiler_can_build_shared_GCJ=no | |
21937 | fi | |
21938 | ||
21939 | fi | |
21940 | case "$host_os" in | |
21941 | # For platforms which do not support PIC, -DPIC is meaningless: | |
21942 | *djgpp*) | |
21943 | lt_prog_compiler_pic_GCJ= | |
21944 | ;; | |
21945 | *) | |
21946 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC" | |
21947 | ;; | |
21948 | esac | |
21949 | ||
21950 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
21951 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
21952 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
21953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21954 | else | |
21955 | lt_cv_prog_compiler_c_o_GCJ=no | |
21956 | $rm -r conftest 2>/dev/null | |
21957 | mkdir conftest | |
21958 | cd conftest | |
21959 | mkdir out | |
21960 | save_GCJFLAGS="$GCJFLAGS" | |
21961 | GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext" | |
21962 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
21963 | ||
21964 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
21965 | # that will create temporary files in the current directory regardless of | |
21966 | # the output directory. Thus, making CWD read-only will cause this test | |
21967 | # to fail, enabling locking or at least warning the user not to do parallel | |
21968 | # builds. | |
21969 | chmod -w . | |
21970 | ||
21971 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
21972 | then | |
21973 | # The compiler can only warn and ignore the option if not recognized | |
21974 | # So say no if there are warnings | |
21975 | if test -s out/conftest.err; then | |
21976 | # Append any errors to the config.log. | |
21977 | cat out/conftest.err 1>&5 | |
21978 | else | |
21979 | lt_cv_prog_compiler_c_o_GCJ=yes | |
21980 | fi | |
21981 | fi | |
21982 | GCJFLAGS="$save_GCJFLAGS" | |
21983 | chmod u+w . | |
21984 | $rm conftest* out/* | |
21985 | rmdir out | |
21986 | cd .. | |
21987 | rmdir conftest | |
21988 | $rm conftest* | |
21989 | ||
21990 | fi | |
21991 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
21992 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
21993 | ||
21994 | ||
21995 | hard_links="nottested" | |
21996 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
21997 | # do not overwrite the value of need_locks provided by the user | |
21998 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
21999 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
22000 | hard_links=yes | |
22001 | $rm conftest* | |
22002 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
22003 | touch conftest.a | |
22004 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
22005 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
22006 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
22007 | echo "${ECHO_T}$hard_links" >&6 | |
22008 | if test "$hard_links" = no; then | |
22009 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
22010 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
22011 | need_locks=warn | |
22012 | fi | |
22013 | else | |
22014 | need_locks=no | |
22015 | fi | |
22016 | ||
22017 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
22018 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
22019 | ||
22020 | runpath_var= | |
22021 | allow_undefined_flag_GCJ= | |
22022 | ||
22023 | archive_cmds_GCJ= | |
22024 | archive_cmds_need_lc_GCJ= | |
22025 | archive_expsym_cmds_GCJ= | |
22026 | old_archive_From_new_cmds_GCJ= | |
22027 | old_archive_from_expsyms_cmds_GCJ= | |
22028 | export_dynamic_flag_spec_GCJ= | |
22029 | whole_archive_flag_spec_GCJ= | |
22030 | thread_safe_flag_spec_GCJ= | |
22031 | hardcode_libdir_flag_spec_GCJ= | |
22032 | hardcode_libdir_separator_GCJ= | |
22033 | hardcode_direct_GCJ=no | |
22034 | hardcode_minus_L_GCJ=no | |
22035 | hardcode_shlibpath_var_GCJ=unsupported | |
22036 | link_all_deplibs_GCJ=unknown | |
22037 | always_export_symbols_GCJ=no | |
22038 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
22039 | # include_expsyms should be a list of space-separated symbols to be *always* | |
22040 | # included in the symbol list | |
22041 | include_expsyms_GCJ= | |
22042 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
22043 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
22044 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
22045 | # as well as any symbol that contains `d'. | |
22046 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
22047 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
22048 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
22049 | # the symbol is explicitly referenced. Since portable code cannot | |
22050 | # rely on this symbol name, it's probably fine to never include it in | |
22051 | # preloaded symbol tables. | |
22052 | extract_expsyms_cmds= | |
22053 | ||
22054 | case $host_os in | |
22055 | cygwin* | mingw* | pw32*) | |
22056 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
22057 | # When not using gcc, we currently assume that we are using | |
22058 | # Microsoft Visual C++. | |
22059 | if test "$GCC" != yes; then | |
22060 | with_gnu_ld=no | |
22061 | fi | |
22062 | ;; | |
22063 | openbsd*) | |
22064 | with_gnu_ld=no | |
22065 | ;; | |
22066 | esac | |
22067 | ||
22068 | ld_shlibs_GCJ=yes | |
22069 | if test "$with_gnu_ld" = yes; then | |
22070 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
22071 | wlarc='${wl}' | |
22072 | ||
22073 | # See if GNU ld supports shared libraries. | |
22074 | case $host_os in | |
22075 | aix3* | aix4* | aix5*) | |
22076 | # On AIX/PPC, the GNU linker is very broken | |
22077 | if test "$host_cpu" != ia64; then | |
22078 | ld_shlibs_GCJ=no | |
22079 | cat <<EOF 1>&2 | |
22080 | ||
22081 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
22082 | *** to be unable to reliably create shared libraries on AIX. | |
22083 | *** Therefore, libtool is disabling shared libraries support. If you | |
22084 | *** really care for shared libraries, you may want to modify your PATH | |
22085 | *** so that a non-GNU linker is found, and then restart. | |
22086 | ||
22087 | EOF | |
22088 | fi | |
22089 | ;; | |
22090 | ||
22091 | amigaos*) | |
22092 | 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)' | |
22093 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22094 | hardcode_minus_L_GCJ=yes | |
22095 | ||
22096 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
22097 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
22098 | # to version 4, is to share data among multiple programs linked | |
22099 | # with the same dynamic library. Since this doesn't match the | |
22100 | # behavior of shared libraries on other platforms, we can't use | |
22101 | # them. | |
22102 | ld_shlibs_GCJ=no | |
22103 | ;; | |
22104 | ||
22105 | beos*) | |
22106 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
22107 | allow_undefined_flag_GCJ=unsupported | |
22108 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
22109 | # support --undefined. This deserves some investigation. FIXME | |
22110 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
22111 | else | |
22112 | ld_shlibs_GCJ=no | |
22113 | fi | |
22114 | ;; | |
22115 | ||
22116 | cygwin* | mingw* | pw32*) | |
22117 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is | |
22118 | # no search path for DLLs. | |
22119 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22120 | allow_undefined_flag_GCJ=unsupported | |
22121 | always_export_symbols_GCJ=yes | |
22122 | ||
22123 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
22124 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
22125 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
22126 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
22127 | else $CC -o impgen impgen.c ; fi)~ | |
22128 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
22129 | ||
22130 | old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
22131 | ||
22132 | # cygwin and mingw dlls have different entry points and sets of symbols | |
22133 | # to exclude. | |
22134 | # FIXME: what about values for MSVC? | |
22135 | dll_entry=__cygwin_dll_entry@12 | |
22136 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
22137 | case $host_os in | |
22138 | mingw*) | |
22139 | # mingw values | |
22140 | dll_entry=_DllMainCRTStartup@12 | |
22141 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
22142 | ;; | |
22143 | esac | |
22144 | ||
22145 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
22146 | # of the two symbol sets. | |
22147 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
22148 | ||
22149 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
22150 | # can override, but on older systems we have to supply one (in ltdll.c) | |
22151 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
22152 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
22153 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
22154 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
22155 | else | |
22156 | ltdll_obj= | |
22157 | ltdll_cmds= | |
22158 | fi | |
22159 | ||
22160 | # Extract the symbol export list from an `--export-all' def file, | |
22161 | # then regenerate the def file from the symbol export list, so that | |
22162 | # the compiled dll only exports the symbol export list. | |
22163 | # Be careful not to strip the DATA tag left by newer dlltools. | |
22164 | export_symbols_cmds_GCJ="$ltdll_cmds"' | |
22165 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
22166 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
22167 | ||
22168 | # If the export-symbols file already is a .def file (1st line | |
22169 | # is EXPORTS), use it as is. | |
22170 | # If DATA tags from a recent dlltool are present, honour them! | |
22171 | archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
22172 | cp $export_symbols $output_objdir/$soname-def; | |
22173 | else | |
22174 | echo EXPORTS > $output_objdir/$soname-def; | |
22175 | _lt_hint=1; | |
22176 | cat $export_symbols | while read symbol; do | |
22177 | set dummy \$symbol; | |
22178 | case \$# in | |
22179 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
22180 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
22181 | esac; | |
22182 | _lt_hint=`expr 1 + \$_lt_hint`; | |
22183 | done; | |
22184 | fi~ | |
22185 | '"$ltdll_cmds"' | |
22186 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
22187 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
22188 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
22189 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
22190 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
22191 | ;; | |
22192 | ||
22193 | netbsd*) | |
22194 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
22195 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
22196 | wlarc= | |
22197 | else | |
22198 | archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
22199 | archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
22200 | fi | |
22201 | ;; | |
22202 | ||
22203 | solaris* | sysv5*) | |
22204 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
22205 | ld_shlibs_GCJ=no | |
22206 | cat <<EOF 1>&2 | |
22207 | ||
22208 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
22209 | *** create shared libraries on Solaris systems. Therefore, libtool | |
22210 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
22211 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
22212 | *** your PATH or compiler configuration so that the native linker is | |
22213 | *** used, and then restart. | |
22214 | ||
22215 | EOF | |
22216 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
22217 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
22218 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
22219 | else | |
22220 | ld_shlibs_GCJ=no | |
22221 | fi | |
22222 | ;; | |
22223 | ||
22224 | sunos4*) | |
22225 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
22226 | wlarc= | |
22227 | hardcode_direct_GCJ=yes | |
22228 | hardcode_shlibpath_var_GCJ=no | |
22229 | ;; | |
22230 | ||
22231 | *) | |
22232 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
22233 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
22234 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
22235 | else | |
22236 | ld_shlibs_GCJ=no | |
22237 | fi | |
22238 | ;; | |
22239 | esac | |
22240 | ||
22241 | if test "$ld_shlibs_GCJ" = yes; then | |
22242 | runpath_var=LD_RUN_PATH | |
22243 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
22244 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
22245 | case $host_os in | |
22246 | cygwin* | mingw* | pw32*) | |
22247 | # dlltool doesn't understand --whole-archive et. al. | |
22248 | whole_archive_flag_spec_GCJ= | |
22249 | ;; | |
22250 | *) | |
22251 | # ancient GNU ld didn't support --whole-archive et. al. | |
22252 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
22253 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
22254 | else | |
22255 | whole_archive_flag_spec_GCJ= | |
22256 | fi | |
22257 | ;; | |
22258 | esac | |
22259 | fi | |
22260 | else | |
22261 | # PORTME fill in a description of your system's linker (not GNU ld) | |
22262 | case $host_os in | |
22263 | aix3*) | |
22264 | allow_undefined_flag_GCJ=unsupported | |
22265 | always_export_symbols_GCJ=yes | |
22266 | 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' | |
22267 | # Note: this linker hardcodes the directories in LIBPATH if there | |
22268 | # are no directories specified by -L. | |
22269 | hardcode_minus_L_GCJ=yes | |
22270 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
22271 | # Neither direct hardcoding nor static linking is supported with a | |
22272 | # broken collect2. | |
22273 | hardcode_direct_GCJ=unsupported | |
22274 | fi | |
22275 | ;; | |
22276 | ||
22277 | aix4* | aix5*) | |
22278 | if test "$host_cpu" = ia64; then | |
22279 | # On IA64, the linker does run time linking by default, so we don't | |
22280 | # have to do anything special. | |
22281 | aix_use_runtimelinking=no | |
22282 | exp_sym_flag='-Bexport' | |
22283 | no_entry_flag="" | |
22284 | else | |
22285 | # If we're using GNU nm, then we don't want the "-C" option. | |
22286 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
22287 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
22288 | 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' | |
22289 | else | |
22290 | 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' | |
22291 | fi | |
22292 | ||
22293 | # KDE requires run time linking. Make it the default. | |
22294 | aix_use_runtimelinking=yes | |
22295 | exp_sym_flag='-bexport' | |
22296 | no_entry_flag='-bnoentry' | |
22297 | fi | |
22298 | ||
22299 | # When large executables or shared objects are built, AIX ld can | |
22300 | # have problems creating the table of contents. If linking a library | |
22301 | # or program results in "error TOC overflow" add -mminimal-toc to | |
22302 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
22303 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
22304 | ||
22305 | archive_cmds_GCJ='' | |
22306 | hardcode_direct_GCJ=yes | |
22307 | hardcode_libdir_separator_GCJ=':' | |
22308 | link_all_deplibs_GCJ=yes | |
22309 | ||
22310 | if test "$GCC" = yes; then | |
22311 | case $host_os in aix4.012|aix4.012.*) | |
22312 | # We only want to do this on AIX 4.2 and lower, the check | |
22313 | # below for broken collect2 doesn't work under 4.3+ | |
22314 | collect2name=`${CC} -print-prog-name=collect2` | |
22315 | if test -f "$collect2name" && \ | |
22316 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
22317 | then | |
22318 | # We have reworked collect2 | |
22319 | hardcode_direct_GCJ=yes | |
22320 | else | |
22321 | # We have old collect2 | |
22322 | hardcode_direct_GCJ=unsupported | |
22323 | # It fails to find uninstalled libraries when the uninstalled | |
22324 | # path is not listed in the libpath. Setting hardcode_minus_L | |
22325 | # to unsupported forces relinking | |
22326 | hardcode_minus_L_GCJ=yes | |
22327 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22328 | hardcode_libdir_separator_GCJ= | |
22329 | fi | |
22330 | esac | |
22331 | shared_flag='-shared' | |
22332 | else | |
22333 | # not using gcc | |
22334 | if test "$host_cpu" = ia64; then | |
22335 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
22336 | # chokes on -Wl,-G. The following line is correct: | |
22337 | shared_flag='-G' | |
22338 | else | |
22339 | if test "$aix_use_runtimelinking" = yes; then | |
22340 | shared_flag='-qmkshrobj ${wl}-G' | |
22341 | else | |
22342 | shared_flag='-qmkshrobj' | |
22343 | fi | |
22344 | fi | |
22345 | fi | |
22346 | ||
22347 | # Let the compiler handle the export list. | |
22348 | always_export_symbols_GCJ=no | |
22349 | if test "$aix_use_runtimelinking" = yes; then | |
22350 | # Warning - without using the other runtime loading flags (-brtl), | |
22351 | # -berok will link without error, but may produce a broken library. | |
22352 | allow_undefined_flag_GCJ='-berok' | |
22353 | # Determine the default libpath from the value encoded in an empty executable. | |
22354 | cat >conftest.$ac_ext <<_ACEOF | |
22355 | #line $LINENO "configure" | |
22356 | #include "confdefs.h" | |
22357 | ||
22358 | #ifdef F77_DUMMY_MAIN | |
22359 | # ifdef __cplusplus | |
22360 | extern "C" | |
22361 | # endif | |
22362 | int F77_DUMMY_MAIN() { return 1; } | |
22363 | #endif | |
22364 | int | |
22365 | main () | |
22366 | { | |
22367 | ||
22368 | ; | |
22369 | return 0; | |
22370 | } | |
22371 | _ACEOF | |
22372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22374 | (eval $ac_link) 2>&5 | |
22375 | ac_status=$? | |
22376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22377 | (exit $ac_status); } && | |
22378 | { ac_try='test -s conftest$ac_exeext' | |
22379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22380 | (eval $ac_try) 2>&5 | |
22381 | ac_status=$? | |
22382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22383 | (exit $ac_status); }; }; then | |
22384 | ||
22385 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
22386 | }'` | |
22387 | # Check for a 64-bit object if we didn't find anything. | |
22388 | 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; } | |
22389 | }'`; fi | |
22390 | else | |
22391 | echo "$as_me: failed program was:" >&5 | |
22392 | cat conftest.$ac_ext >&5 | |
22393 | fi | |
22394 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22395 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
22396 | ||
22397 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
22398 | archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
22399 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
22400 | else | |
22401 | if test "$host_cpu" = ia64; then | |
22402 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
22403 | allow_undefined_flag_GCJ="-z nodefs" | |
22404 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
22405 | else | |
22406 | # Determine the default libpath from the value encoded in an empty executable. | |
22407 | cat >conftest.$ac_ext <<_ACEOF | |
22408 | #line $LINENO "configure" | |
22409 | #include "confdefs.h" | |
22410 | ||
22411 | #ifdef F77_DUMMY_MAIN | |
22412 | # ifdef __cplusplus | |
22413 | extern "C" | |
22414 | # endif | |
22415 | int F77_DUMMY_MAIN() { return 1; } | |
22416 | #endif | |
22417 | int | |
22418 | main () | |
22419 | { | |
22420 | ||
22421 | ; | |
22422 | return 0; | |
22423 | } | |
22424 | _ACEOF | |
22425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22427 | (eval $ac_link) 2>&5 | |
22428 | ac_status=$? | |
22429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22430 | (exit $ac_status); } && | |
22431 | { ac_try='test -s conftest$ac_exeext' | |
22432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22433 | (eval $ac_try) 2>&5 | |
22434 | ac_status=$? | |
22435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22436 | (exit $ac_status); }; }; then | |
22437 | ||
22438 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
22439 | }'` | |
22440 | # Check for a 64-bit object if we didn't find anything. | |
22441 | 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; } | |
22442 | }'`; fi | |
22443 | else | |
22444 | echo "$as_me: failed program was:" >&5 | |
22445 | cat conftest.$ac_ext >&5 | |
22446 | fi | |
22447 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22448 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
22449 | ||
22450 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
22451 | # Warning - without using the other run time loading flags, | |
22452 | # -berok will link without error, but may produce a broken library. | |
22453 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
22454 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
22455 | # -bexpall does not export symbols beginning with underscore (_) | |
22456 | always_export_symbols_GCJ=yes | |
22457 | # Exported symbols can be pulled into shared objects from archives | |
22458 | whole_archive_flag_spec_GCJ=' ' | |
22459 | archive_cmds_need_lc_GCJ=yes | |
22460 | # This is similar to how AIX traditionally builds it's shared libraries. | |
22461 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
22462 | fi | |
22463 | fi | |
22464 | ;; | |
22465 | ||
22466 | amigaos*) | |
22467 | 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)' | |
22468 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22469 | hardcode_minus_L_GCJ=yes | |
22470 | # see comment about different semantics on the GNU ld section | |
22471 | ld_shlibs_GCJ=no | |
22472 | ;; | |
22473 | ||
22474 | bsdi4*) | |
22475 | export_dynamic_flag_spec_GCJ=-rdynamic | |
22476 | ;; | |
22477 | ||
22478 | cygwin* | mingw* | pw32*) | |
22479 | # When not using gcc, we currently assume that we are using | |
22480 | # Microsoft Visual C++. | |
22481 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
22482 | # no search path for DLLs. | |
22483 | hardcode_libdir_flag_spec_GCJ=' ' | |
22484 | allow_undefined_flag_GCJ=unsupported | |
22485 | # Tell ltmain to make .lib files, not .a files. | |
22486 | libext=lib | |
22487 | # FIXME: Setting linknames here is a bad hack. | |
22488 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
22489 | # The linker will automatically build a .lib file if we build a DLL. | |
22490 | old_archive_From_new_cmds_GCJ='true' | |
22491 | # FIXME: Should let the user specify the lib program. | |
22492 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
22493 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
22494 | ;; | |
22495 | ||
22496 | darwin* | rhapsody*) | |
22497 | case "$host_os" in | |
22498 | rhapsody* | darwin1.[012]) | |
22499 | allow_undefined_flag_GCJ='-undefined suppress' | |
22500 | ;; | |
22501 | *) # Darwin 1.3 on | |
22502 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
22503 | ;; | |
22504 | esac | |
22505 | ||
22506 | # FIXME: Relying on posixy $() will cause problems for | |
22507 | # cross-compilation, but unfortunately the echo tests do not | |
22508 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
22509 | # `"' quotes if we put them in here... so don't! | |
22510 | archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
22511 | # We need to add '_' to the symbols in $export_symbols first | |
22512 | #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols' | |
22513 | hardcode_direct_GCJ=yes | |
22514 | hardcode_shlibpath_var_GCJ=no | |
22515 | whole_archive_flag_spec_GCJ='-all_load $convenience' | |
22516 | ;; | |
22517 | ||
22518 | dgux*) | |
22519 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22520 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22521 | hardcode_shlibpath_var_GCJ=no | |
22522 | ;; | |
22523 | ||
22524 | freebsd1*) | |
22525 | ld_shlibs_GCJ=no | |
22526 | ;; | |
22527 | ||
22528 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
22529 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
22530 | # does not break anything, and helps significantly (at the cost of a little | |
22531 | # extra space). | |
22532 | freebsd2.2*) | |
22533 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
22534 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22535 | hardcode_direct_GCJ=yes | |
22536 | hardcode_shlibpath_var_GCJ=no | |
22537 | ;; | |
22538 | ||
22539 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
22540 | freebsd2*) | |
22541 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
22542 | hardcode_direct_GCJ=yes | |
22543 | hardcode_minus_L_GCJ=yes | |
22544 | hardcode_shlibpath_var_GCJ=no | |
22545 | ;; | |
22546 | ||
22547 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
22548 | freebsd*) | |
22549 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
22550 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22551 | hardcode_direct_GCJ=yes | |
22552 | hardcode_shlibpath_var_GCJ=no | |
22553 | ;; | |
22554 | ||
22555 | hpux9* | hpux10* | hpux11*) | |
22556 | if test "$GCC" = yes; then | |
22557 | case $host_os in | |
22558 | hpux9*) | |
22559 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
22560 | ;; | |
22561 | *) | |
22562 | if test "$host_cpu" = ia64; then | |
22563 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
22564 | else | |
22565 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
22566 | fi | |
22567 | ;; | |
22568 | esac | |
22569 | else | |
22570 | case $host_os in | |
22571 | hpux9*) | |
22572 | 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' | |
22573 | ;; | |
22574 | *) | |
22575 | if test "$host_cpu" = ia64; then | |
22576 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22577 | else | |
22578 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
22579 | fi | |
22580 | ;; | |
22581 | esac | |
22582 | fi | |
22583 | if test "$host_cpu" = ia64; then | |
22584 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22585 | hardcode_direct_GCJ=no | |
22586 | hardcode_shlibpath_var_GCJ=no | |
22587 | else | |
22588 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
22589 | hardcode_libdir_separator_GCJ=: | |
22590 | hardcode_direct_GCJ=yes | |
22591 | fi | |
22592 | # hardcode_minus_L: Not really in the search PATH, | |
22593 | # but as the default location of the library. | |
22594 | hardcode_minus_L_GCJ=yes | |
22595 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
22596 | ;; | |
22597 | ||
22598 | irix5* | irix6* | nonstopux*) | |
22599 | if test "$GCC" = yes; then | |
22600 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
22601 | else | |
22602 | 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' | |
22603 | fi | |
22604 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
22605 | hardcode_libdir_separator_GCJ=: | |
22606 | link_all_deplibs_GCJ=yes | |
22607 | ;; | |
22608 | ||
22609 | netbsd*) | |
22610 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
22611 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
22612 | else | |
22613 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
22614 | fi | |
22615 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22616 | hardcode_direct_GCJ=yes | |
22617 | hardcode_shlibpath_var_GCJ=no | |
22618 | ;; | |
22619 | ||
22620 | newsos6) | |
22621 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22622 | hardcode_direct_GCJ=yes | |
22623 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
22624 | hardcode_libdir_separator_GCJ=: | |
22625 | hardcode_shlibpath_var_GCJ=no | |
22626 | ;; | |
22627 | ||
22628 | openbsd*) | |
22629 | hardcode_direct_GCJ=yes | |
22630 | hardcode_shlibpath_var_GCJ=no | |
22631 | ||
22632 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
22633 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
22634 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
22635 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
22636 | else | |
22637 | case $host_os in | |
22638 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
22639 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
22640 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22641 | ;; | |
22642 | *) | |
22643 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
22644 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
22645 | ;; | |
22646 | esac | |
22647 | fi | |
22648 | ;; | |
22649 | ||
22650 | os2*) | |
22651 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22652 | hardcode_minus_L_GCJ=yes | |
22653 | allow_undefined_flag_GCJ=unsupported | |
22654 | 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 $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
22655 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
22656 | ;; | |
22657 | ||
22658 | osf3*) | |
22659 | if test "$GCC" = yes; then | |
22660 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
22661 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
22662 | else | |
22663 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
22664 | 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' | |
22665 | fi | |
22666 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
22667 | hardcode_libdir_separator_GCJ=: | |
22668 | ;; | |
22669 | ||
22670 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
22671 | if test "$GCC" = yes; then | |
22672 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
22673 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${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' | |
22674 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
22675 | else | |
22676 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
22677 | 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' | |
22678 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
22679 | $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' | |
22680 | ||
22681 | # Both c and cxx compiler support -rpath directly | |
22682 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
22683 | fi | |
22684 | hardcode_libdir_separator_GCJ=: | |
22685 | ;; | |
22686 | ||
22687 | sco3.2v5*) | |
22688 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22689 | hardcode_shlibpath_var_GCJ=no | |
22690 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
22691 | runpath_var=LD_RUN_PATH | |
22692 | hardcode_runpath_var=yes | |
22693 | ;; | |
22694 | ||
22695 | solaris*) | |
22696 | no_undefined_flag_GCJ=' -z text' | |
22697 | if test "$GCC" = yes; then | |
22698 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
22699 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
22700 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
22701 | else | |
22702 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22703 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
22704 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
22705 | fi | |
22706 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22707 | hardcode_shlibpath_var_GCJ=no | |
22708 | case $host_os in | |
22709 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
22710 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
22711 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
22712 | esac | |
22713 | link_all_deplibs_GCJ=yes | |
22714 | ;; | |
22715 | ||
22716 | sunos4*) | |
22717 | if test "x$host_vendor" = xsequent; then | |
22718 | # Use $CC to link under sequent, because it throws in some extra .o | |
22719 | # files that make .init and .fini sections work. | |
22720 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
22721 | else | |
22722 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
22723 | fi | |
22724 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22725 | hardcode_direct_GCJ=yes | |
22726 | hardcode_minus_L_GCJ=yes | |
22727 | hardcode_shlibpath_var_GCJ=no | |
22728 | ;; | |
22729 | ||
22730 | sysv4) | |
22731 | if test "x$host_vendor" = xsni; then | |
22732 | archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22733 | hardcode_direct_GCJ=yes # is this really true??? | |
22734 | else | |
22735 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22736 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
22737 | fi | |
22738 | runpath_var='LD_RUN_PATH' | |
22739 | hardcode_shlibpath_var_GCJ=no | |
22740 | ;; | |
22741 | ||
22742 | sysv4.3*) | |
22743 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22744 | hardcode_shlibpath_var_GCJ=no | |
22745 | export_dynamic_flag_spec_GCJ='-Bexport' | |
22746 | ;; | |
22747 | ||
22748 | sysv4*MP*) | |
22749 | if test -d /usr/nec; then | |
22750 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22751 | hardcode_shlibpath_var_GCJ=no | |
22752 | runpath_var=LD_RUN_PATH | |
22753 | hardcode_runpath_var=yes | |
22754 | ld_shlibs_GCJ=yes | |
22755 | fi | |
22756 | ;; | |
22757 | ||
22758 | sysv4.2uw2*) | |
22759 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
22760 | hardcode_direct_GCJ=yes | |
22761 | hardcode_minus_L_GCJ=no | |
22762 | hardcode_shlibpath_var_GCJ=no | |
22763 | hardcode_runpath_var=yes | |
22764 | runpath_var=LD_RUN_PATH | |
22765 | ;; | |
22766 | ||
22767 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
22768 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
22769 | if test "$GCC" = yes; then | |
22770 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
22771 | else | |
22772 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
22773 | fi | |
22774 | runpath_var='LD_RUN_PATH' | |
22775 | hardcode_shlibpath_var_GCJ=no | |
22776 | ;; | |
22777 | ||
22778 | sysv5*) | |
22779 | no_undefined_flag_GCJ=' -z text' | |
22780 | # $CC -shared without GNU ld will not create a library from C++ | |
22781 | # object files and a static libstdc++, better avoid it by now | |
22782 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22783 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
22784 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
22785 | hardcode_libdir_flag_spec_GCJ= | |
22786 | hardcode_shlibpath_var_GCJ=no | |
22787 | runpath_var='LD_RUN_PATH' | |
22788 | ;; | |
22789 | ||
22790 | uts4*) | |
22791 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22792 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22793 | hardcode_shlibpath_var_GCJ=no | |
22794 | ;; | |
22795 | ||
22796 | *) | |
22797 | ld_shlibs_GCJ=no | |
22798 | ;; | |
22799 | esac | |
22800 | fi | |
22801 | ||
22802 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
22803 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
22804 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
22805 | ||
22806 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
22807 | if test "$GCC" = yes; then | |
22808 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
22809 | fi | |
22810 | ||
22811 | # | |
22812 | # Do we need to explicitly link libc? | |
22813 | # | |
22814 | archive_cmds_need_lc_GCJ=yes | |
22815 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
22816 | case $archive_cmds_GCJ in | |
22817 | *'~'*) | |
22818 | # FIXME: we may have to deal with multi-command sequences. | |
22819 | ;; | |
22820 | '$CC '*) | |
22821 | # Test whether the compiler implicitly links with -lc since on some | |
22822 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
22823 | # to ld, don't add -lc before -lgcc. | |
22824 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
22825 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
22826 | $rm conftest* | |
22827 | echo 'static int dummy;' > conftest.$ac_ext | |
22828 | ||
22829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22830 | (eval $ac_compile) 2>&5 | |
22831 | ac_status=$? | |
22832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22833 | (exit $ac_status); } 2>conftest.err; then | |
22834 | soname=conftest | |
22835 | lib=conftest | |
22836 | libobjs=conftest.$ac_objext | |
22837 | deplibs= | |
22838 | wl=$lt_prog_compiler_wl_GCJ | |
22839 | compiler_flags=-v | |
22840 | linker_flags=-v | |
22841 | verstring= | |
22842 | output_objdir=. | |
22843 | libname=conftest | |
22844 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
22845 | allow_undefined_flag_GCJ= | |
22846 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
22847 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
22848 | ac_status=$? | |
22849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22850 | (exit $ac_status); } | |
22851 | then | |
22852 | archive_cmds_need_lc_GCJ=no | |
22853 | else | |
22854 | archive_cmds_need_lc_GCJ=yes | |
22855 | fi | |
22856 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
22857 | else | |
22858 | cat conftest.err 1>&5 | |
22859 | fi | |
22860 | $rm conftest* | |
22861 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
22862 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
22863 | ;; | |
22864 | esac | |
22865 | fi | |
22866 | ||
22867 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
22868 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
22869 | hardcode_action_GCJ= | |
22870 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
22871 | test -n "$runpath_var GCJ"; then | |
22872 | ||
22873 | # We can hardcode non-existant directories. | |
22874 | if test "$hardcode_direct_GCJ" != no && | |
22875 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
22876 | # have to relink, otherwise we might link with an installed library | |
22877 | # when we should be linking with a yet-to-be-installed one | |
22878 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
22879 | test "$hardcode_minus_L_GCJ" != no; then | |
22880 | # Linking always hardcodes the temporary library directory. | |
22881 | hardcode_action_GCJ=relink | |
22882 | else | |
22883 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
22884 | hardcode_action_GCJ=immediate | |
22885 | fi | |
22886 | else | |
22887 | # We cannot hardcode anything, or else we can only hardcode existing | |
22888 | # directories. | |
22889 | hardcode_action_GCJ=unsupported | |
22890 | fi | |
22891 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
22892 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
22893 | ||
22894 | if test "$hardcode_action_GCJ" = relink; then | |
22895 | # Fast installation is not supported | |
22896 | enable_fast_install=no | |
22897 | elif test "$shlibpath_overrides_runpath" = yes || | |
22898 | test "$enable_shared" = no; then | |
22899 | # Fast installation is not necessary | |
22900 | enable_fast_install=needless | |
22901 | fi | |
22902 | ||
22903 | striplib= | |
22904 | old_striplib= | |
22905 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
22906 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
22907 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
22908 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
22909 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
22910 | echo "$as_me:$LINENO: result: yes" >&5 | |
22911 | echo "${ECHO_T}yes" >&6 | |
22912 | else | |
22913 | echo "$as_me:$LINENO: result: no" >&5 | |
22914 | echo "${ECHO_T}no" >&6 | |
22915 | fi | |
22916 | ||
22917 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
22918 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
22919 | library_names_spec= | |
22920 | libname_spec='lib$name' | |
22921 | soname_spec= | |
22922 | postinstall_cmds= | |
22923 | postuninstall_cmds= | |
22924 | finish_cmds= | |
22925 | finish_eval= | |
22926 | shlibpath_var= | |
22927 | shlibpath_overrides_runpath=unknown | |
22928 | version_type=none | |
22929 | dynamic_linker="$host_os ld.so" | |
22930 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
22931 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
22932 | need_lib_prefix=unknown | |
22933 | hardcode_into_libs=no | |
22934 | ||
22935 | # when you set need_version to no, make sure it does not cause -set_version | |
22936 | # flags to be left without arguments | |
22937 | need_version=unknown | |
22938 | ||
22939 | case $host_os in | |
22940 | aix3*) | |
22941 | version_type=linux | |
22942 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
22943 | shlibpath_var=LIBPATH | |
22944 | ||
22945 | # AIX 3 has no versioning support, so we append a major version to the name. | |
22946 | soname_spec='${libname}${release}.so$major' | |
22947 | ;; | |
22948 | ||
22949 | aix4* | aix5*) | |
22950 | version_type=linux | |
22951 | if test "$host_cpu" = ia64; then | |
22952 | # AIX 5 supports IA64 | |
22953 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
22954 | shlibpath_var=LD_LIBRARY_PATH | |
22955 | else | |
22956 | # With GCC up to 2.95.x, collect2 would create an import file | |
22957 | # for dependence libraries. The import file would start with | |
22958 | # the line `#! .'. This would cause the generated library to | |
22959 | # depend on `.', always an invalid library. This was fixed in | |
22960 | # development snapshots of GCC prior to 3.0. | |
22961 | case $host_os in | |
22962 | aix4 | aix4.[01] | aix4.[01].*) | |
22963 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
22964 | echo ' yes ' | |
22965 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
22966 | : | |
22967 | else | |
22968 | can_build_shared=no | |
22969 | fi | |
22970 | ;; | |
22971 | esac | |
22972 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
22973 | # soname into executable. Probably we can add versioning support to | |
22974 | # collect2, so additional links can be useful in future. | |
22975 | if test "$aix_use_runtimelinking" = yes; then | |
22976 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
22977 | # instead of lib<name>.a to let people know that these are not | |
22978 | # typical AIX shared libraries. | |
22979 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22980 | else | |
22981 | # We preserve .a as extension for shared libraries through AIX4.2 | |
22982 | # and later when we are not doing run time linking. | |
22983 | library_names_spec='${libname}${release}.a $libname.a' | |
22984 | soname_spec='${libname}${release}.so$major' | |
22985 | fi | |
22986 | shlibpath_var=LIBPATH | |
22987 | fi | |
22988 | ;; | |
22989 | ||
22990 | amigaos*) | |
22991 | library_names_spec='$libname.ixlibrary $libname.a' | |
22992 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
22993 | 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' | |
22994 | ;; | |
22995 | ||
22996 | beos*) | |
22997 | library_names_spec='${libname}.so' | |
22998 | dynamic_linker="$host_os ld.so" | |
22999 | shlibpath_var=LIBRARY_PATH | |
23000 | ;; | |
23001 | ||
23002 | bsdi4*) | |
23003 | version_type=linux | |
23004 | need_version=no | |
23005 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23006 | soname_spec='${libname}${release}.so$major' | |
23007 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
23008 | shlibpath_var=LD_LIBRARY_PATH | |
23009 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
23010 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
23011 | # the default ld.so.conf also contains /usr/contrib/lib and | |
23012 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
23013 | # libtool to hard-code these into programs | |
23014 | ;; | |
23015 | ||
23016 | cygwin* | mingw* | pw32*) | |
23017 | version_type=windows | |
23018 | need_version=no | |
23019 | need_lib_prefix=no | |
23020 | case $GCC,$host_os in | |
23021 | yes,cygwin*) | |
23022 | library_names_spec='$libname.dll.a' | |
23023 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
23024 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
23025 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
23026 | dldir=$destdir/`dirname \$dlpath`~ | |
23027 | test -d \$dldir || mkdir -p \$dldir~ | |
23028 | $install_prog .libs/$dlname \$dldir/$dlname' | |
23029 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
23030 | dlpath=$dir/\$dldll~ | |
23031 | $rm \$dlpath' | |
23032 | ;; | |
23033 | yes,mingw*) | |
23034 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
23035 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
23036 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
23037 | # It is most probably a Windows format PATH printed by | |
23038 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
23039 | # path with ; separators, and with drive letters. We can handle the | |
23040 | # drive letters (cygwin fileutils understands them), so leave them, | |
23041 | # especially as we might pass files found there to a mingw objdump, | |
23042 | # which wouldn't understand a cygwinified path. Ahh. | |
23043 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
23044 | else | |
23045 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
23046 | fi | |
23047 | ;; | |
23048 | yes,pw32*) | |
23049 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
23050 | ;; | |
23051 | *) | |
23052 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
23053 | ;; | |
23054 | esac | |
23055 | dynamic_linker='Win32 ld.exe' | |
23056 | # FIXME: first we should search . and the directory the executable is in | |
23057 | shlibpath_var=PATH | |
23058 | ;; | |
23059 | ||
23060 | darwin* | rhapsody*) | |
23061 | dynamic_linker="$host_os dyld" | |
23062 | version_type=darwin | |
23063 | need_lib_prefix=no | |
23064 | need_version=no | |
23065 | # FIXME: Relying on posixy $() will cause problems for | |
23066 | # cross-compilation, but unfortunately the echo tests do not | |
23067 | # yet detect zsh echo's removal of \ escapes. | |
23068 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
23069 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
23070 | shlibpath_overrides_runpath=yes | |
23071 | shlibpath_var=DYLD_LIBRARY_PATH | |
23072 | ;; | |
23073 | ||
23074 | dgux*) | |
23075 | version_type=linux | |
23076 | need_lib_prefix=no | |
23077 | need_version=no | |
23078 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23079 | soname_spec='${libname}${release}.so$major' | |
23080 | shlibpath_var=LD_LIBRARY_PATH | |
23081 | ;; | |
23082 | ||
23083 | freebsd1*) | |
23084 | dynamic_linker=no | |
23085 | ;; | |
23086 | ||
23087 | freebsd*) | |
23088 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
23089 | version_type=freebsd-$objformat | |
23090 | case $version_type in | |
23091 | freebsd-elf*) | |
23092 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
23093 | need_version=no | |
23094 | need_lib_prefix=no | |
23095 | ;; | |
23096 | freebsd-*) | |
23097 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
23098 | need_version=yes | |
23099 | ;; | |
23100 | esac | |
23101 | shlibpath_var=LD_LIBRARY_PATH | |
23102 | case $host_os in | |
23103 | freebsd2*) | |
23104 | shlibpath_overrides_runpath=yes | |
23105 | ;; | |
23106 | freebsd3.01* | freebsdelf3.01*) | |
23107 | shlibpath_overrides_runpath=yes | |
23108 | hardcode_into_libs=yes | |
23109 | ;; | |
23110 | *) # from 3.2 on | |
23111 | shlibpath_overrides_runpath=no | |
23112 | hardcode_into_libs=yes | |
23113 | ;; | |
23114 | esac | |
23115 | ;; | |
23116 | ||
23117 | gnu*) | |
23118 | version_type=linux | |
23119 | need_lib_prefix=no | |
23120 | need_version=no | |
23121 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
23122 | soname_spec='${libname}${release}.so$major' | |
23123 | shlibpath_var=LD_LIBRARY_PATH | |
23124 | hardcode_into_libs=yes | |
23125 | ;; | |
23126 | ||
23127 | hpux9* | hpux10* | hpux11*) | |
23128 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
23129 | # link against other versions. | |
23130 | version_type=sunos | |
23131 | need_lib_prefix=no | |
23132 | need_version=no | |
23133 | if test "$host_cpu" = ia64; then | |
23134 | hardcode_into_libs=yes | |
23135 | dynamic_linker="$host_os dld.so" | |
23136 | shlibpath_var=LD_LIBRARY_PATH | |
23137 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
23138 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23139 | soname_spec='${libname}${release}.so$major' | |
23140 | if test "X$HPUX_IA64_MODE" = X32; then | |
23141 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
23142 | else | |
23143 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
23144 | fi | |
23145 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
23146 | else | |
23147 | dynamic_linker="$host_os dld.sl" | |
23148 | shlibpath_var=SHLIB_PATH | |
23149 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
23150 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
23151 | soname_spec='${libname}${release}.sl$major' | |
23152 | fi | |
23153 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
23154 | postinstall_cmds='chmod 555 $lib' | |
23155 | ;; | |
23156 | ||
23157 | irix5* | irix6* | nonstopux*) | |
23158 | case $host_os in | |
23159 | nonstopux*) version_type=nonstopux ;; | |
23160 | *) version_type=irix ;; | |
23161 | esac | |
23162 | need_lib_prefix=no | |
23163 | need_version=no | |
23164 | soname_spec='${libname}${release}.so$major' | |
23165 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
23166 | case $host_os in | |
23167 | irix5* | nonstopux*) | |
23168 | libsuff= shlibsuff= | |
23169 | ;; | |
23170 | *) | |
23171 | case $LD in # libtool.m4 will add one of these switches to LD | |
23172 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
23173 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
23174 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
23175 | *) libsuff= shlibsuff= libmagic=never-match;; | |
23176 | esac | |
23177 | ;; | |
23178 | esac | |
23179 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
23180 | shlibpath_overrides_runpath=no | |
23181 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
23182 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
23183 | ;; | |
23184 | ||
23185 | # No shared lib support for Linux oldld, aout, or coff. | |
23186 | linux*oldld* | linux*aout* | linux*coff*) | |
23187 | dynamic_linker=no | |
23188 | ;; | |
23189 | ||
23190 | # This must be Linux ELF. | |
23191 | linux*) | |
23192 | version_type=linux | |
23193 | need_lib_prefix=no | |
23194 | need_version=no | |
23195 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23196 | soname_spec='${libname}${release}.so$major' | |
23197 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
23198 | libsuff= | |
23199 | if test "x$LINUX_64_MODE" = x64; then | |
23200 | # Some platforms are per default 64-bit, so there's no /lib64 | |
23201 | if test -d /lib64; then | |
23202 | libsuff=64 | |
23203 | fi | |
23204 | fi | |
23205 | shlibpath_var=LD_LIBRARY_PATH | |
23206 | shlibpath_overrides_runpath=no | |
23207 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
23208 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
23209 | # This implies no fast_install, which is unacceptable. | |
23210 | # Some rework will be needed to allow for fast_install | |
23211 | # before this can be enabled. | |
23212 | hardcode_into_libs=yes | |
23213 | ||
23214 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
23215 | # powerpc, because MkLinux only supported shared libraries with the | |
23216 | # GNU dynamic linker. Since this was broken with cross compilers, | |
23217 | # most powerpc-linux boxes support dynamic linking these days and | |
23218 | # people can always --disable-shared, the test was removed, and we | |
23219 | # assume the GNU/Linux dynamic linker is in use. | |
23220 | dynamic_linker='GNU/Linux ld.so' | |
23221 | ;; | |
23222 | ||
23223 | netbsd*) | |
23224 | version_type=sunos | |
23225 | need_lib_prefix=no | |
23226 | need_version=no | |
23227 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
23228 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
23229 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
23230 | dynamic_linker='NetBSD (a.out) ld.so' | |
23231 | else | |
23232 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
23233 | soname_spec='${libname}${release}.so$major' | |
23234 | dynamic_linker='NetBSD ld.elf_so' | |
23235 | fi | |
23236 | shlibpath_var=LD_LIBRARY_PATH | |
23237 | shlibpath_overrides_runpath=yes | |
23238 | hardcode_into_libs=yes | |
23239 | ;; | |
23240 | ||
23241 | newsos6) | |
23242 | version_type=linux | |
23243 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23244 | shlibpath_var=LD_LIBRARY_PATH | |
23245 | shlibpath_overrides_runpath=yes | |
23246 | ;; | |
23247 | ||
23248 | nto-qnx) | |
23249 | version_type=linux | |
23250 | need_lib_prefix=no | |
23251 | need_version=no | |
23252 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23253 | soname_spec='${libname}${release}.so$major' | |
23254 | shlibpath_var=LD_LIBRARY_PATH | |
23255 | shlibpath_overrides_runpath=yes | |
23256 | ;; | |
23257 | ||
23258 | openbsd*) | |
23259 | version_type=sunos | |
23260 | need_lib_prefix=no | |
23261 | need_version=no | |
23262 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
23263 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
23264 | shlibpath_var=LD_LIBRARY_PATH | |
23265 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
23266 | case $host_os in | |
23267 | openbsd2.[89] | openbsd2.[89].*) | |
23268 | shlibpath_overrides_runpath=no | |
23269 | ;; | |
23270 | *) | |
23271 | shlibpath_overrides_runpath=yes | |
23272 | ;; | |
23273 | esac | |
23274 | else | |
23275 | shlibpath_overrides_runpath=yes | |
23276 | fi | |
23277 | ;; | |
23278 | ||
23279 | os2*) | |
23280 | libname_spec='$name' | |
23281 | need_lib_prefix=no | |
23282 | library_names_spec='$libname.dll $libname.a' | |
23283 | dynamic_linker='OS/2 ld.exe' | |
23284 | shlibpath_var=LIBPATH | |
23285 | ;; | |
23286 | ||
23287 | osf3* | osf4* | osf5*) | |
23288 | version_type=osf | |
23289 | need_lib_prefix=no | |
23290 | need_version=no | |
23291 | soname_spec='${libname}${release}.so' | |
23292 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
23293 | shlibpath_var=LD_LIBRARY_PATH | |
23294 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
23295 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
23296 | ;; | |
23297 | ||
23298 | sco3.2v5*) | |
23299 | version_type=osf | |
23300 | soname_spec='${libname}${release}.so$major' | |
23301 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23302 | shlibpath_var=LD_LIBRARY_PATH | |
23303 | ;; | |
23304 | ||
23305 | solaris*) | |
23306 | version_type=linux | |
23307 | need_lib_prefix=no | |
23308 | need_version=no | |
23309 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23310 | soname_spec='${libname}${release}.so$major' | |
23311 | shlibpath_var=LD_LIBRARY_PATH | |
23312 | shlibpath_overrides_runpath=yes | |
23313 | hardcode_into_libs=yes | |
23314 | # ldd complains unless libraries are executable | |
23315 | postinstall_cmds='chmod +x $lib' | |
23316 | ;; | |
23317 | ||
23318 | sunos4*) | |
23319 | version_type=sunos | |
23320 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
23321 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
23322 | shlibpath_var=LD_LIBRARY_PATH | |
23323 | shlibpath_overrides_runpath=yes | |
23324 | if test "$with_gnu_ld" = yes; then | |
23325 | need_lib_prefix=no | |
23326 | fi | |
23327 | need_version=yes | |
23328 | ;; | |
23329 | ||
23330 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
23331 | version_type=linux | |
23332 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23333 | soname_spec='${libname}${release}.so$major' | |
23334 | shlibpath_var=LD_LIBRARY_PATH | |
23335 | case $host_vendor in | |
23336 | sni) | |
23337 | shlibpath_overrides_runpath=no | |
23338 | ;; | |
23339 | motorola) | |
23340 | need_lib_prefix=no | |
23341 | need_version=no | |
23342 | shlibpath_overrides_runpath=no | |
23343 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
23344 | ;; | |
23345 | esac | |
23346 | ;; | |
23347 | ||
23348 | sysv4*MP*) | |
23349 | if test -d /usr/nec ;then | |
23350 | version_type=linux | |
23351 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
23352 | soname_spec='$libname.so.$major' | |
23353 | shlibpath_var=LD_LIBRARY_PATH | |
23354 | fi | |
23355 | ;; | |
23356 | ||
23357 | uts4*) | |
23358 | version_type=linux | |
23359 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23360 | soname_spec='${libname}${release}.so$major' | |
23361 | shlibpath_var=LD_LIBRARY_PATH | |
23362 | ;; | |
23363 | ||
23364 | *) | |
23365 | dynamic_linker=no | |
23366 | ;; | |
23367 | esac | |
23368 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
23369 | echo "${ECHO_T}$dynamic_linker" >&6 | |
23370 | test "$dynamic_linker" = no && can_build_shared=no | |
23371 | ||
23372 | if test "x$enable_dlopen" != xyes; then | |
23373 | enable_dlopen=unknown | |
23374 | enable_dlopen_self=unknown | |
23375 | enable_dlopen_self_static=unknown | |
23376 | else | |
23377 | lt_cv_dlopen=no | |
23378 | lt_cv_dlopen_libs= | |
23379 | ||
23380 | case $host_os in | |
23381 | beos*) | |
23382 | lt_cv_dlopen="load_add_on" | |
23383 | lt_cv_dlopen_libs= | |
23384 | lt_cv_dlopen_self=yes | |
23385 | ;; | |
23386 | ||
23387 | cygwin* | mingw* | pw32*) | |
23388 | lt_cv_dlopen="LoadLibrary" | |
23389 | lt_cv_dlopen_libs= | |
23390 | ;; | |
23391 | ||
23392 | *) | |
23393 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
23394 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
23395 | if test "${ac_cv_func_shl_load+set}" = set; then | |
23396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23397 | else | |
23398 | cat >conftest.$ac_ext <<_ACEOF | |
23399 | #line $LINENO "configure" | |
23400 | #include "confdefs.h" | |
23401 | /* System header to define __stub macros and hopefully few prototypes, | |
23402 | which can conflict with char shl_load (); below. */ | |
23403 | #include <assert.h> | |
23404 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23405 | #ifdef __cplusplus | |
23406 | extern "C" | |
23407 | #endif | |
23408 | /* We use char because int might match the return type of a gcc2 | |
23409 | builtin and then its argument prototype would still apply. */ | |
23410 | char shl_load (); | |
23411 | char (*f) (); | |
23412 | ||
23413 | #ifdef F77_DUMMY_MAIN | |
23414 | # ifdef __cplusplus | |
23415 | extern "C" | |
23416 | # endif | |
23417 | int F77_DUMMY_MAIN() { return 1; } | |
23418 | #endif | |
23419 | int | |
23420 | main () | |
23421 | { | |
23422 | /* The GNU C library defines this for functions which it implements | |
23423 | to always fail with ENOSYS. Some functions are actually named | |
23424 | something starting with __ and the normal name is an alias. */ | |
23425 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
23426 | choke me | |
23427 | #else | |
23428 | f = shl_load; | |
23429 | #endif | |
23430 | ||
23431 | ; | |
23432 | return 0; | |
23433 | } | |
23434 | _ACEOF | |
23435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23437 | (eval $ac_link) 2>&5 | |
23438 | ac_status=$? | |
23439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23440 | (exit $ac_status); } && | |
23441 | { ac_try='test -s conftest$ac_exeext' | |
23442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23443 | (eval $ac_try) 2>&5 | |
23444 | ac_status=$? | |
23445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23446 | (exit $ac_status); }; }; then | |
23447 | ac_cv_func_shl_load=yes | |
23448 | else | |
23449 | echo "$as_me: failed program was:" >&5 | |
23450 | cat conftest.$ac_ext >&5 | |
23451 | ac_cv_func_shl_load=no | |
23452 | fi | |
23453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23454 | fi | |
23455 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
23456 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
23457 | if test $ac_cv_func_shl_load = yes; then | |
23458 | lt_cv_dlopen="shl_load" | |
23459 | else | |
23460 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
23461 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
23462 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
23463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23464 | else | |
23465 | ac_check_lib_save_LIBS=$LIBS | |
23466 | LIBS="-ldld $LIBS" | |
23467 | cat >conftest.$ac_ext <<_ACEOF | |
23468 | #line $LINENO "configure" | |
23469 | #include "confdefs.h" | |
23470 | ||
23471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23472 | #ifdef __cplusplus | |
23473 | extern "C" | |
23474 | #endif | |
23475 | /* We use char because int might match the return type of a gcc2 | |
23476 | builtin and then its argument prototype would still apply. */ | |
23477 | char shl_load (); | |
23478 | #ifdef F77_DUMMY_MAIN | |
23479 | # ifdef __cplusplus | |
23480 | extern "C" | |
23481 | # endif | |
23482 | int F77_DUMMY_MAIN() { return 1; } | |
23483 | #endif | |
23484 | int | |
23485 | main () | |
23486 | { | |
23487 | shl_load (); | |
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>&5 | |
23495 | ac_status=$? | |
23496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23497 | (exit $ac_status); } && | |
23498 | { ac_try='test -s conftest$ac_exeext' | |
23499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23500 | (eval $ac_try) 2>&5 | |
23501 | ac_status=$? | |
23502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23503 | (exit $ac_status); }; }; then | |
23504 | ac_cv_lib_dld_shl_load=yes | |
23505 | else | |
23506 | echo "$as_me: failed program was:" >&5 | |
23507 | cat conftest.$ac_ext >&5 | |
23508 | ac_cv_lib_dld_shl_load=no | |
23509 | fi | |
23510 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23511 | LIBS=$ac_check_lib_save_LIBS | |
23512 | fi | |
23513 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
23514 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
23515 | if test $ac_cv_lib_dld_shl_load = yes; then | |
23516 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
23517 | else | |
23518 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
23519 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
23520 | if test "${ac_cv_func_dlopen+set}" = set; then | |
23521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23522 | else | |
23523 | cat >conftest.$ac_ext <<_ACEOF | |
23524 | #line $LINENO "configure" | |
23525 | #include "confdefs.h" | |
23526 | /* System header to define __stub macros and hopefully few prototypes, | |
23527 | which can conflict with char dlopen (); below. */ | |
23528 | #include <assert.h> | |
23529 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23530 | #ifdef __cplusplus | |
23531 | extern "C" | |
23532 | #endif | |
23533 | /* We use char because int might match the return type of a gcc2 | |
23534 | builtin and then its argument prototype would still apply. */ | |
23535 | char dlopen (); | |
23536 | char (*f) (); | |
23537 | ||
23538 | #ifdef F77_DUMMY_MAIN | |
23539 | # ifdef __cplusplus | |
23540 | extern "C" | |
23541 | # endif | |
23542 | int F77_DUMMY_MAIN() { return 1; } | |
23543 | #endif | |
23544 | int | |
23545 | main () | |
23546 | { | |
23547 | /* The GNU C library defines this for functions which it implements | |
23548 | to always fail with ENOSYS. Some functions are actually named | |
23549 | something starting with __ and the normal name is an alias. */ | |
23550 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
23551 | choke me | |
23552 | #else | |
23553 | f = dlopen; | |
23554 | #endif | |
23555 | ||
23556 | ; | |
23557 | return 0; | |
23558 | } | |
23559 | _ACEOF | |
23560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23562 | (eval $ac_link) 2>&5 | |
23563 | ac_status=$? | |
23564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23565 | (exit $ac_status); } && | |
23566 | { ac_try='test -s conftest$ac_exeext' | |
23567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23568 | (eval $ac_try) 2>&5 | |
23569 | ac_status=$? | |
23570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23571 | (exit $ac_status); }; }; then | |
23572 | ac_cv_func_dlopen=yes | |
23573 | else | |
23574 | echo "$as_me: failed program was:" >&5 | |
23575 | cat conftest.$ac_ext >&5 | |
23576 | ac_cv_func_dlopen=no | |
23577 | fi | |
23578 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23579 | fi | |
23580 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
23581 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
23582 | if test $ac_cv_func_dlopen = yes; then | |
23583 | lt_cv_dlopen="dlopen" | |
23584 | else | |
23585 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
23586 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
23587 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
23588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23589 | else | |
23590 | ac_check_lib_save_LIBS=$LIBS | |
23591 | LIBS="-ldl $LIBS" | |
23592 | cat >conftest.$ac_ext <<_ACEOF | |
23593 | #line $LINENO "configure" | |
23594 | #include "confdefs.h" | |
23595 | ||
23596 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23597 | #ifdef __cplusplus | |
23598 | extern "C" | |
23599 | #endif | |
23600 | /* We use char because int might match the return type of a gcc2 | |
23601 | builtin and then its argument prototype would still apply. */ | |
23602 | char dlopen (); | |
23603 | #ifdef F77_DUMMY_MAIN | |
23604 | # ifdef __cplusplus | |
23605 | extern "C" | |
23606 | # endif | |
23607 | int F77_DUMMY_MAIN() { return 1; } | |
23608 | #endif | |
23609 | int | |
23610 | main () | |
23611 | { | |
23612 | dlopen (); | |
23613 | ; | |
23614 | return 0; | |
23615 | } | |
23616 | _ACEOF | |
23617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23619 | (eval $ac_link) 2>&5 | |
23620 | ac_status=$? | |
23621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23622 | (exit $ac_status); } && | |
23623 | { ac_try='test -s conftest$ac_exeext' | |
23624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23625 | (eval $ac_try) 2>&5 | |
23626 | ac_status=$? | |
23627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23628 | (exit $ac_status); }; }; then | |
23629 | ac_cv_lib_dl_dlopen=yes | |
23630 | else | |
23631 | echo "$as_me: failed program was:" >&5 | |
23632 | cat conftest.$ac_ext >&5 | |
23633 | ac_cv_lib_dl_dlopen=no | |
23634 | fi | |
23635 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23636 | LIBS=$ac_check_lib_save_LIBS | |
23637 | fi | |
23638 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
23639 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
23640 | if test $ac_cv_lib_dl_dlopen = yes; then | |
23641 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
23642 | else | |
23643 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
23644 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
23645 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
23646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23647 | else | |
23648 | ac_check_lib_save_LIBS=$LIBS | |
23649 | LIBS="-lsvld $LIBS" | |
23650 | cat >conftest.$ac_ext <<_ACEOF | |
23651 | #line $LINENO "configure" | |
23652 | #include "confdefs.h" | |
23653 | ||
23654 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23655 | #ifdef __cplusplus | |
23656 | extern "C" | |
23657 | #endif | |
23658 | /* We use char because int might match the return type of a gcc2 | |
23659 | builtin and then its argument prototype would still apply. */ | |
23660 | char dlopen (); | |
23661 | #ifdef F77_DUMMY_MAIN | |
23662 | # ifdef __cplusplus | |
23663 | extern "C" | |
23664 | # endif | |
23665 | int F77_DUMMY_MAIN() { return 1; } | |
23666 | #endif | |
23667 | int | |
23668 | main () | |
23669 | { | |
23670 | dlopen (); | |
23671 | ; | |
23672 | return 0; | |
23673 | } | |
23674 | _ACEOF | |
23675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23677 | (eval $ac_link) 2>&5 | |
23678 | ac_status=$? | |
23679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23680 | (exit $ac_status); } && | |
23681 | { ac_try='test -s conftest$ac_exeext' | |
23682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23683 | (eval $ac_try) 2>&5 | |
23684 | ac_status=$? | |
23685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23686 | (exit $ac_status); }; }; then | |
23687 | ac_cv_lib_svld_dlopen=yes | |
23688 | else | |
23689 | echo "$as_me: failed program was:" >&5 | |
23690 | cat conftest.$ac_ext >&5 | |
23691 | ac_cv_lib_svld_dlopen=no | |
23692 | fi | |
23693 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23694 | LIBS=$ac_check_lib_save_LIBS | |
23695 | fi | |
23696 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
23697 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
23698 | if test $ac_cv_lib_svld_dlopen = yes; then | |
23699 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
23700 | else | |
23701 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
23702 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
23703 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
23704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23705 | else | |
23706 | ac_check_lib_save_LIBS=$LIBS | |
23707 | LIBS="-ldld $LIBS" | |
23708 | cat >conftest.$ac_ext <<_ACEOF | |
23709 | #line $LINENO "configure" | |
23710 | #include "confdefs.h" | |
23711 | ||
23712 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23713 | #ifdef __cplusplus | |
23714 | extern "C" | |
23715 | #endif | |
23716 | /* We use char because int might match the return type of a gcc2 | |
23717 | builtin and then its argument prototype would still apply. */ | |
23718 | char dld_link (); | |
23719 | #ifdef F77_DUMMY_MAIN | |
23720 | # ifdef __cplusplus | |
23721 | extern "C" | |
23722 | # endif | |
23723 | int F77_DUMMY_MAIN() { return 1; } | |
23724 | #endif | |
23725 | int | |
23726 | main () | |
23727 | { | |
23728 | dld_link (); | |
23729 | ; | |
23730 | return 0; | |
23731 | } | |
23732 | _ACEOF | |
23733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23735 | (eval $ac_link) 2>&5 | |
23736 | ac_status=$? | |
23737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23738 | (exit $ac_status); } && | |
23739 | { ac_try='test -s conftest$ac_exeext' | |
23740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23741 | (eval $ac_try) 2>&5 | |
23742 | ac_status=$? | |
23743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23744 | (exit $ac_status); }; }; then | |
23745 | ac_cv_lib_dld_dld_link=yes | |
23746 | else | |
23747 | echo "$as_me: failed program was:" >&5 | |
23748 | cat conftest.$ac_ext >&5 | |
23749 | ac_cv_lib_dld_dld_link=no | |
23750 | fi | |
23751 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23752 | LIBS=$ac_check_lib_save_LIBS | |
23753 | fi | |
23754 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
23755 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
23756 | if test $ac_cv_lib_dld_dld_link = yes; then | |
23757 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
23758 | fi | |
23759 | ||
23760 | ||
23761 | fi | |
23762 | ||
23763 | ||
23764 | fi | |
23765 | ||
23766 | ||
23767 | fi | |
23768 | ||
23769 | ||
23770 | fi | |
23771 | ||
23772 | ||
23773 | fi | |
23774 | ||
23775 | ;; | |
23776 | esac | |
23777 | ||
23778 | if test "x$lt_cv_dlopen" != xno; then | |
23779 | enable_dlopen=yes | |
23780 | else | |
23781 | enable_dlopen=no | |
23782 | fi | |
23783 | ||
23784 | case $lt_cv_dlopen in | |
23785 | dlopen) | |
23786 | save_CPPFLAGS="$CPPFLAGS" | |
23787 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
23788 | ||
23789 | save_LDFLAGS="$LDFLAGS" | |
23790 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
23791 | ||
23792 | save_LIBS="$LIBS" | |
23793 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
23794 | ||
23795 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
23796 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
23797 | if test "${lt_cv_dlopen_self+set}" = set; then | |
23798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23799 | else | |
23800 | if test "$cross_compiling" = yes; then : | |
23801 | lt_cv_dlopen_self=cross | |
23802 | else | |
23803 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
23804 | lt_status=$lt_dlunknown | |
23805 | cat > conftest.$ac_ext <<EOF | |
23806 | #line 23806 "configure" | |
23807 | #include "confdefs.h" | |
23808 | ||
23809 | #if HAVE_DLFCN_H | |
23810 | #include <dlfcn.h> | |
23811 | #endif | |
23812 | ||
23813 | #include <stdio.h> | |
23814 | ||
23815 | #ifdef RTLD_GLOBAL | |
23816 | # define LT_DLGLOBAL RTLD_GLOBAL | |
23817 | #else | |
23818 | # ifdef DL_GLOBAL | |
23819 | # define LT_DLGLOBAL DL_GLOBAL | |
23820 | # else | |
23821 | # define LT_DLGLOBAL 0 | |
23822 | # endif | |
23823 | #endif | |
23824 | ||
23825 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
23826 | find out it does not work in some platform. */ | |
23827 | #ifndef LT_DLLAZY_OR_NOW | |
23828 | # ifdef RTLD_LAZY | |
23829 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
23830 | # else | |
23831 | # ifdef DL_LAZY | |
23832 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
23833 | # else | |
23834 | # ifdef RTLD_NOW | |
23835 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
23836 | # else | |
23837 | # ifdef DL_NOW | |
23838 | # define LT_DLLAZY_OR_NOW DL_NOW | |
23839 | # else | |
23840 | # define LT_DLLAZY_OR_NOW 0 | |
23841 | # endif | |
23842 | # endif | |
23843 | # endif | |
23844 | # endif | |
23845 | #endif | |
23846 | ||
23847 | #ifdef __cplusplus | |
23848 | extern "C" void exit (int); | |
23849 | #endif | |
23850 | ||
23851 | void fnord() { int i=42;} | |
23852 | int main () | |
23853 | { | |
23854 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
23855 | int status = $lt_dlunknown; | |
23856 | ||
23857 | if (self) | |
23858 | { | |
23859 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
23860 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
23861 | /* dlclose (self); */ | |
23862 | } | |
23863 | ||
23864 | exit (status); | |
23865 | } | |
23866 | EOF | |
23867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23868 | (eval $ac_link) 2>&5 | |
23869 | ac_status=$? | |
23870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23871 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
23872 | (./conftest; exit; ) 2>/dev/null | |
23873 | lt_status=$? | |
23874 | case x$lt_status in | |
23875 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
23876 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
23877 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
23878 | esac | |
23879 | else : | |
23880 | # compilation failed | |
23881 | lt_cv_dlopen_self=no | |
23882 | fi | |
23883 | fi | |
23884 | rm -fr conftest* | |
23885 | ||
23886 | ||
23887 | fi | |
23888 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
23889 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
23890 | ||
23891 | if test "x$lt_cv_dlopen_self" = xyes; then | |
23892 | LDFLAGS="$LDFLAGS $link_static_flag" | |
23893 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
23894 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
23895 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
23896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23897 | else | |
23898 | if test "$cross_compiling" = yes; then : | |
23899 | lt_cv_dlopen_self_static=cross | |
23900 | else | |
23901 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
23902 | lt_status=$lt_dlunknown | |
23903 | cat > conftest.$ac_ext <<EOF | |
23904 | #line 23904 "configure" | |
23905 | #include "confdefs.h" | |
23906 | ||
23907 | #if HAVE_DLFCN_H | |
23908 | #include <dlfcn.h> | |
23909 | #endif | |
23910 | ||
23911 | #include <stdio.h> | |
23912 | ||
23913 | #ifdef RTLD_GLOBAL | |
23914 | # define LT_DLGLOBAL RTLD_GLOBAL | |
23915 | #else | |
23916 | # ifdef DL_GLOBAL | |
23917 | # define LT_DLGLOBAL DL_GLOBAL | |
23918 | # else | |
23919 | # define LT_DLGLOBAL 0 | |
23920 | # endif | |
23921 | #endif | |
23922 | ||
23923 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
23924 | find out it does not work in some platform. */ | |
23925 | #ifndef LT_DLLAZY_OR_NOW | |
23926 | # ifdef RTLD_LAZY | |
23927 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
23928 | # else | |
23929 | # ifdef DL_LAZY | |
23930 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
23931 | # else | |
23932 | # ifdef RTLD_NOW | |
23933 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
23934 | # else | |
23935 | # ifdef DL_NOW | |
23936 | # define LT_DLLAZY_OR_NOW DL_NOW | |
23937 | # else | |
23938 | # define LT_DLLAZY_OR_NOW 0 | |
23939 | # endif | |
23940 | # endif | |
23941 | # endif | |
23942 | # endif | |
23943 | #endif | |
23944 | ||
23945 | #ifdef __cplusplus | |
23946 | extern "C" void exit (int); | |
23947 | #endif | |
23948 | ||
23949 | void fnord() { int i=42;} | |
23950 | int main () | |
23951 | { | |
23952 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
23953 | int status = $lt_dlunknown; | |
23954 | ||
23955 | if (self) | |
23956 | { | |
23957 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
23958 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
23959 | /* dlclose (self); */ | |
23960 | } | |
23961 | ||
23962 | exit (status); | |
23963 | } | |
23964 | EOF | |
23965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23966 | (eval $ac_link) 2>&5 | |
23967 | ac_status=$? | |
23968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23969 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
23970 | (./conftest; exit; ) 2>/dev/null | |
23971 | lt_status=$? | |
23972 | case x$lt_status in | |
23973 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
23974 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
23975 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
23976 | esac | |
23977 | else : | |
23978 | # compilation failed | |
23979 | lt_cv_dlopen_self_static=no | |
23980 | fi | |
23981 | fi | |
23982 | rm -fr conftest* | |
23983 | ||
23984 | ||
23985 | fi | |
23986 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
23987 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
23988 | fi | |
23989 | ||
23990 | CPPFLAGS="$save_CPPFLAGS" | |
23991 | LDFLAGS="$save_LDFLAGS" | |
23992 | LIBS="$save_LIBS" | |
23993 | ;; | |
23994 | esac | |
23995 | ||
23996 | case $lt_cv_dlopen_self in | |
23997 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
23998 | *) enable_dlopen_self=unknown ;; | |
23999 | esac | |
24000 | ||
24001 | case $lt_cv_dlopen_self_static in | |
24002 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
24003 | *) enable_dlopen_self_static=unknown ;; | |
24004 | esac | |
24005 | fi | |
24006 | ||
24007 | ||
24008 | # The else clause should only fire when bootstrapping the | |
24009 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
24010 | # with your package, and you will get complaints that there are | |
24011 | # no rules to generate ltmain.sh. | |
24012 | if test -f "$ltmain"; then | |
24013 | # Now quote all the things that may contain metacharacters while being | |
24014 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
24015 | # variables and quote the copies for generation of the libtool script. | |
24016 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
24017 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
24018 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
24019 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
24020 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
24021 | lt_cv_sys_global_symbol_to_c_name_address \ | |
24022 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
24023 | old_postinstall_cmds old_postuninstall_cmds \ | |
24024 | compiler_GCJ \ | |
24025 | CC_GCJ \ | |
24026 | LD_GCJ \ | |
24027 | lt_prog_compiler_wl_GCJ \ | |
24028 | lt_prog_compiler_pic_GCJ \ | |
24029 | lt_prog_compiler_static_GCJ \ | |
24030 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
24031 | export_dynamic_flag_spec_GCJ \ | |
24032 | thread_safe_flag_spec_GCJ \ | |
24033 | whole_archive_flag_spec_GCJ \ | |
24034 | old_archive_cmds_GCJ \ | |
24035 | old_archive_from_new_cmds_GCJ \ | |
24036 | predep_objects_GCJ \ | |
24037 | postdep_objects_GCJ \ | |
24038 | predeps_GCJ \ | |
24039 | postdeps_GCJ \ | |
24040 | compiler_lib_search_path_GCJ \ | |
24041 | archive_cmds_GCJ \ | |
24042 | archive_expsym_cmds_GCJ \ | |
24043 | postinstall_cmds_GCJ \ | |
24044 | postuninstall_cmds_GCJ \ | |
24045 | old_archive_from_expsyms_cmds_GCJ \ | |
24046 | allow_undefined_flag_GCJ \ | |
24047 | no_undefined_flag_GCJ \ | |
24048 | export_symbols_cmds_GCJ \ | |
24049 | hardcode_libdir_flag_spec_GCJ \ | |
24050 | hardcode_libdir_separator_GCJ \ | |
24051 | lt_cv_prog_compiler_c_o_GCJ \ | |
24052 | exclude_expsyms_GCJ \ | |
24053 | include_expsyms_GCJ; do | |
24054 | ||
24055 | case $var in | |
24056 | old_archive_cmds_GCJ | \ | |
24057 | old_archive_from_new_cmds_GCJ | \ | |
24058 | archive_cmds_GCJ | \ | |
24059 | archive_expsym_cmds_GCJ | \ | |
24060 | old_archive_from_expsyms_cmds_GCJ | \ | |
24061 | export_symbols_cmds_GCJ | \ | |
24062 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
24063 | postinstall_cmds | postuninstall_cmds | \ | |
24064 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
24065 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
24066 | # Double-quote double-evaled strings. | |
24067 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
24068 | ;; | |
24069 | *) | |
24070 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
24071 | ;; | |
24072 | esac | |
24073 | done | |
24074 | ||
24075 | case $lt_echo in | |
24076 | *'\$0 --fallback-echo"') | |
24077 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
24078 | ;; | |
24079 | esac | |
24080 | ||
24081 | cfgfile="$ofile" | |
24082 | ||
24083 | cat <<__EOF__ >> "$cfgfile" | |
24084 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
24085 | ||
24086 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
24087 | ||
24088 | # Shell to use when invoking shell scripts. | |
24089 | SHELL=$lt_SHELL | |
24090 | ||
24091 | # Whether or not to build shared libraries. | |
24092 | build_libtool_libs=$enable_shared | |
24093 | ||
24094 | # Whether or not to build static libraries. | |
24095 | build_old_libs=$enable_static | |
24096 | ||
24097 | # Whether or not to add -lc for building shared libraries. | |
24098 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
24099 | ||
24100 | # Whether or not to optimize for fast installation. | |
24101 | fast_install=$enable_fast_install | |
24102 | ||
24103 | # The host system. | |
24104 | host_alias=$host_alias | |
24105 | host=$host | |
24106 | ||
24107 | # An echo program that does not interpret backslashes. | |
24108 | echo=$lt_echo | |
24109 | ||
24110 | # The archiver. | |
24111 | AR=$lt_AR | |
24112 | AR_FLAGS=$lt_AR_FLAGS | |
24113 | ||
24114 | # A C compiler. | |
24115 | LTCC=$lt_LTCC | |
24116 | ||
24117 | # A language-specific compiler. | |
24118 | CC=$lt_compiler_GCJ | |
24119 | ||
24120 | # Is the compiler the GNU C compiler? | |
24121 | with_gcc=$GCC_GCJ | |
24122 | ||
24123 | # The linker used to build libraries. | |
24124 | LD=$lt_LD_GCJ | |
24125 | ||
24126 | # Whether we need hard or soft links. | |
24127 | LN_S=$lt_LN_S | |
24128 | ||
24129 | # A BSD-compatible nm program. | |
24130 | NM=$lt_NM | |
24131 | ||
24132 | # A sed program that does not truncate output. | |
24133 | SED=$lt_SED | |
24134 | ||
24135 | # A symbol stripping program | |
24136 | STRIP=$STRIP | |
24137 | ||
24138 | # Used to examine libraries when file_magic_cmd begins "file" | |
24139 | MAGIC_CMD=$MAGIC_CMD | |
24140 | ||
24141 | # Used on cygwin: DLL creation program. | |
24142 | DLLTOOL="$DLLTOOL" | |
24143 | ||
24144 | # Used on cygwin: object dumper. | |
24145 | OBJDUMP="$OBJDUMP" | |
24146 | ||
24147 | # Used on cygwin: assembler. | |
24148 | AS="$AS" | |
24149 | ||
24150 | # The name of the directory that contains temporary libtool files. | |
24151 | objdir=$objdir | |
24152 | ||
24153 | # How to create reloadable object files. | |
24154 | reload_flag=$lt_reload_flag | |
24155 | reload_cmds=$lt_reload_cmds | |
24156 | ||
24157 | # How to pass a linker flag through the compiler. | |
24158 | wl=$lt_lt_prog_compiler_wl_GCJ | |
24159 | ||
24160 | # Object file suffix (normally "o"). | |
24161 | objext="$ac_objext" | |
24162 | ||
24163 | # Old archive suffix (normally "a"). | |
24164 | libext="$libext" | |
24165 | ||
24166 | # Executable file suffix (normally ""). | |
24167 | exeext="$exeext" | |
24168 | ||
24169 | # Additional compiler flags for building library objects. | |
24170 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
24171 | pic_mode=$pic_mode | |
24172 | ||
24173 | # What is the maximum length of a command? | |
24174 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
24175 | ||
24176 | # Does compiler simultaneously support -c and -o options? | |
24177 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
24178 | ||
24179 | # Must we lock files when doing compilation ? | |
24180 | need_locks=$lt_need_locks | |
24181 | ||
24182 | # Do we need the lib prefix for modules? | |
24183 | need_lib_prefix=$need_lib_prefix | |
24184 | ||
24185 | # Do we need a version for libraries? | |
24186 | need_version=$need_version | |
24187 | ||
24188 | # Whether dlopen is supported. | |
24189 | dlopen_support=$enable_dlopen | |
24190 | ||
24191 | # Whether dlopen of programs is supported. | |
24192 | dlopen_self=$enable_dlopen_self | |
24193 | ||
24194 | # Whether dlopen of statically linked programs is supported. | |
24195 | dlopen_self_static=$enable_dlopen_self_static | |
24196 | ||
24197 | # Compiler flag to prevent dynamic linking. | |
24198 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
24199 | ||
24200 | # Compiler flag to turn off builtin functions. | |
24201 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
24202 | ||
24203 | # Compiler flag to allow reflexive dlopens. | |
24204 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
24205 | ||
24206 | # Compiler flag to generate shared objects directly from archives. | |
24207 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
24208 | ||
24209 | # Compiler flag to generate thread-safe objects. | |
24210 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
24211 | ||
24212 | # Library versioning type. | |
24213 | version_type=$version_type | |
24214 | ||
24215 | # Format of library name prefix. | |
24216 | libname_spec=$lt_libname_spec | |
24217 | ||
24218 | # List of archive names. First name is the real one, the rest are links. | |
24219 | # The last name is the one that the linker finds with -lNAME. | |
24220 | library_names_spec=$lt_library_names_spec | |
24221 | ||
24222 | # The coded name of the library, if different from the real name. | |
24223 | soname_spec=$lt_soname_spec | |
24224 | ||
24225 | # Commands used to build and install an old-style archive. | |
24226 | RANLIB=$lt_RANLIB | |
24227 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
24228 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
24229 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
24230 | ||
24231 | # Create an old-style archive from a shared archive. | |
24232 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
24233 | ||
24234 | # Create a temporary old-style archive to link instead of a shared archive. | |
24235 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
24236 | ||
24237 | # Commands used to build and install a shared archive. | |
24238 | archive_cmds=$lt_archive_cmds_GCJ | |
24239 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
24240 | postinstall_cmds=$lt_postinstall_cmds | |
24241 | postuninstall_cmds=$lt_postuninstall_cmds | |
24242 | ||
24243 | # Commands to strip libraries. | |
24244 | old_striplib=$lt_old_striplib | |
24245 | striplib=$lt_striplib | |
24246 | ||
24247 | # Dependencies to place before the objects being linked to create a | |
24248 | # shared library. | |
24249 | predep_objects=$lt_predep_objects_GCJ | |
24250 | ||
24251 | # Dependencies to place after the objects being linked to create a | |
24252 | # shared library. | |
24253 | postdep_objects=$lt_postdep_objects_GCJ | |
24254 | ||
24255 | # Dependencies to place before the objects being linked to create a | |
24256 | # shared library. | |
24257 | predeps=$lt_predeps_GCJ | |
24258 | ||
24259 | # Dependencies to place after the objects being linked to create a | |
24260 | # shared library. | |
24261 | postdeps=$lt_postdeps_GCJ | |
24262 | ||
24263 | # The library search path used internally by the compiler when linking | |
24264 | # a shared library. | |
24265 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
24266 | ||
24267 | # Method to check whether dependent libraries are shared objects. | |
24268 | deplibs_check_method=$lt_deplibs_check_method | |
24269 | ||
24270 | # Command to use when deplibs_check_method == file_magic. | |
24271 | file_magic_cmd=$lt_file_magic_cmd | |
24272 | ||
24273 | # Flag that allows shared libraries with undefined symbols to be built. | |
24274 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
24275 | ||
24276 | # Flag that forces no undefined symbols. | |
24277 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
24278 | ||
24279 | # Commands used to finish a libtool library installation in a directory. | |
24280 | finish_cmds=$lt_finish_cmds | |
24281 | ||
24282 | # Same as above, but a single script fragment to be evaled but not shown. | |
24283 | finish_eval=$lt_finish_eval | |
24284 | ||
24285 | # Take the output of nm and produce a listing of raw symbols and C names. | |
24286 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
24287 | ||
24288 | # Transform the output of nm in a proper C declaration | |
24289 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
24290 | ||
24291 | # Transform the output of nm in a C name address pair | |
24292 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
24293 | ||
24294 | # This is the shared library runtime path variable. | |
24295 | runpath_var=$runpath_var | |
24296 | ||
24297 | # This is the shared library path variable. | |
24298 | shlibpath_var=$shlibpath_var | |
24299 | ||
24300 | # Is shlibpath searched before the hard-coded library search path? | |
24301 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
24302 | ||
24303 | # How to hardcode a shared library path into an executable. | |
24304 | hardcode_action=$hardcode_action_GCJ | |
24305 | ||
24306 | # Whether we should hardcode library paths into libraries. | |
24307 | hardcode_into_libs=$hardcode_into_libs | |
24308 | ||
24309 | # Flag to hardcode \$libdir into a binary during linking. | |
24310 | # This must work even if \$libdir does not exist. | |
24311 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
24312 | ||
24313 | # Whether we need a single -rpath flag with a separated argument. | |
24314 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
24315 | ||
24316 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
24317 | # resulting binary. | |
24318 | hardcode_direct=$hardcode_direct_GCJ | |
24319 | ||
24320 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
24321 | # resulting binary. | |
24322 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
24323 | ||
24324 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
24325 | # the resulting binary. | |
24326 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
24327 | ||
24328 | # Variables whose values should be saved in libtool wrapper scripts and | |
24329 | # restored at relink time. | |
24330 | variables_saved_for_relink="$variables_saved_for_relink" | |
24331 | ||
24332 | # Whether libtool must link a program against all its dependency libraries. | |
24333 | link_all_deplibs=$link_all_deplibs_GCJ | |
24334 | ||
24335 | # Compile-time system search path for libraries | |
24336 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
24337 | ||
24338 | # Run-time system search path for libraries | |
24339 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
24340 | ||
24341 | # Fix the shell variable \$srcfile for the compiler. | |
24342 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
24343 | ||
24344 | # Set to yes if exported symbols are required. | |
24345 | always_export_symbols=$always_export_symbols_GCJ | |
24346 | ||
24347 | # The commands to list exported symbols. | |
24348 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
24349 | ||
24350 | # The commands to extract the exported symbol list from a shared archive. | |
24351 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
24352 | ||
24353 | # Symbols that should not be listed in the preloaded symbols. | |
24354 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
24355 | ||
24356 | # Symbols that must always be exported. | |
24357 | include_expsyms=$lt_include_expsyms_GCJ | |
24358 | ||
24359 | # ### END LIBTOOL TAG CONFIG: $tagname | |
24360 | ||
24361 | __EOF__ | |
24362 | ||
24363 | ||
24364 | else | |
24365 | # If there is no Makefile yet, we rely on a make rule to execute | |
24366 | # `config.status --recheck' to rerun these tests and create the | |
24367 | # libtool script then. | |
24368 | test -f Makefile && make "$ltmain" | |
24369 | fi | |
24370 | ||
24371 | ||
24372 | ac_ext=c | |
24373 | ac_cpp='$CPP $CPPFLAGS' | |
24374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24377 | ||
24378 | CC="$lt_save_CC" | |
24379 | ||
24380 | ;; | |
24381 | ||
24382 | RC) | |
24383 | ||
24384 | ||
24385 | ||
24386 | # Source file extension for RC test sources. | |
24387 | ac_ext=rc | |
24388 | ||
24389 | # Object file extension for compiled RC test sources. | |
24390 | objext=o | |
24391 | objext_RC=$objext | |
24392 | ||
24393 | # Code to be used in simple compile tests | |
24394 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
24395 | ||
24396 | # Code to be used in simple link tests | |
24397 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
24398 | ||
24399 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
24400 | ||
24401 | # If no C compiler was specified, use CC. | |
24402 | LTCC=${LTCC-"$CC"} | |
24403 | ||
24404 | # Allow CC to be a program name with arguments. | |
24405 | set dummy $CC | |
24406 | compiler="$2" | |
24407 | ||
24408 | ||
24409 | # Allow CC to be a program name with arguments. | |
24410 | lt_save_CC="$CC" | |
24411 | CC=${RC-"windres"} | |
24412 | set dummy $CC | |
24413 | compiler="$2" | |
24414 | compiler_RC=$CC | |
24415 | lt_cv_prog_compiler_c_o_RC=yes | |
24416 | ||
24417 | # The else clause should only fire when bootstrapping the | |
24418 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
24419 | # with your package, and you will get complaints that there are | |
24420 | # no rules to generate ltmain.sh. | |
24421 | if test -f "$ltmain"; then | |
24422 | # Now quote all the things that may contain metacharacters while being | |
24423 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
24424 | # variables and quote the copies for generation of the libtool script. | |
24425 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
24426 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
24427 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
24428 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
24429 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
24430 | lt_cv_sys_global_symbol_to_c_name_address \ | |
24431 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
24432 | old_postinstall_cmds old_postuninstall_cmds \ | |
24433 | compiler_RC \ | |
24434 | CC_RC \ | |
24435 | LD_RC \ | |
24436 | lt_prog_compiler_wl_RC \ | |
24437 | lt_prog_compiler_pic_RC \ | |
24438 | lt_prog_compiler_static_RC \ | |
24439 | lt_prog_compiler_no_builtin_flag_RC \ | |
24440 | export_dynamic_flag_spec_RC \ | |
24441 | thread_safe_flag_spec_RC \ | |
24442 | whole_archive_flag_spec_RC \ | |
24443 | old_archive_cmds_RC \ | |
24444 | old_archive_from_new_cmds_RC \ | |
24445 | predep_objects_RC \ | |
24446 | postdep_objects_RC \ | |
24447 | predeps_RC \ | |
24448 | postdeps_RC \ | |
24449 | compiler_lib_search_path_RC \ | |
24450 | archive_cmds_RC \ | |
24451 | archive_expsym_cmds_RC \ | |
24452 | postinstall_cmds_RC \ | |
24453 | postuninstall_cmds_RC \ | |
24454 | old_archive_from_expsyms_cmds_RC \ | |
24455 | allow_undefined_flag_RC \ | |
24456 | no_undefined_flag_RC \ | |
24457 | export_symbols_cmds_RC \ | |
24458 | hardcode_libdir_flag_spec_RC \ | |
24459 | hardcode_libdir_separator_RC \ | |
24460 | lt_cv_prog_compiler_c_o_RC \ | |
24461 | exclude_expsyms_RC \ | |
24462 | include_expsyms_RC; do | |
24463 | ||
24464 | case $var in | |
24465 | old_archive_cmds_RC | \ | |
24466 | old_archive_from_new_cmds_RC | \ | |
24467 | archive_cmds_RC | \ | |
24468 | archive_expsym_cmds_RC | \ | |
24469 | old_archive_from_expsyms_cmds_RC | \ | |
24470 | export_symbols_cmds_RC | \ | |
24471 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
24472 | postinstall_cmds | postuninstall_cmds | \ | |
24473 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
24474 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
24475 | # Double-quote double-evaled strings. | |
24476 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
24477 | ;; | |
24478 | *) | |
24479 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
24480 | ;; | |
24481 | esac | |
24482 | done | |
24483 | ||
24484 | case $lt_echo in | |
24485 | *'\$0 --fallback-echo"') | |
24486 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
24487 | ;; | |
24488 | esac | |
24489 | ||
24490 | cfgfile="$ofile" | |
24491 | ||
24492 | cat <<__EOF__ >> "$cfgfile" | |
24493 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
24494 | ||
24495 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
24496 | ||
24497 | # Shell to use when invoking shell scripts. | |
24498 | SHELL=$lt_SHELL | |
24499 | ||
24500 | # Whether or not to build shared libraries. | |
24501 | build_libtool_libs=$enable_shared | |
24502 | ||
24503 | # Whether or not to build static libraries. | |
24504 | build_old_libs=$enable_static | |
24505 | ||
24506 | # Whether or not to add -lc for building shared libraries. | |
24507 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
24508 | ||
24509 | # Whether or not to optimize for fast installation. | |
24510 | fast_install=$enable_fast_install | |
24511 | ||
24512 | # The host system. | |
24513 | host_alias=$host_alias | |
24514 | host=$host | |
24515 | ||
24516 | # An echo program that does not interpret backslashes. | |
24517 | echo=$lt_echo | |
24518 | ||
24519 | # The archiver. | |
24520 | AR=$lt_AR | |
24521 | AR_FLAGS=$lt_AR_FLAGS | |
24522 | ||
24523 | # A C compiler. | |
24524 | LTCC=$lt_LTCC | |
24525 | ||
24526 | # A language-specific compiler. | |
24527 | CC=$lt_compiler_RC | |
24528 | ||
24529 | # Is the compiler the GNU C compiler? | |
24530 | with_gcc=$GCC_RC | |
24531 | ||
24532 | # The linker used to build libraries. | |
24533 | LD=$lt_LD_RC | |
24534 | ||
24535 | # Whether we need hard or soft links. | |
24536 | LN_S=$lt_LN_S | |
24537 | ||
24538 | # A BSD-compatible nm program. | |
24539 | NM=$lt_NM | |
24540 | ||
24541 | # A sed program that does not truncate output. | |
24542 | SED=$lt_SED | |
24543 | ||
24544 | # A symbol stripping program | |
24545 | STRIP=$STRIP | |
24546 | ||
24547 | # Used to examine libraries when file_magic_cmd begins "file" | |
24548 | MAGIC_CMD=$MAGIC_CMD | |
24549 | ||
24550 | # Used on cygwin: DLL creation program. | |
24551 | DLLTOOL="$DLLTOOL" | |
24552 | ||
24553 | # Used on cygwin: object dumper. | |
24554 | OBJDUMP="$OBJDUMP" | |
24555 | ||
24556 | # Used on cygwin: assembler. | |
24557 | AS="$AS" | |
24558 | ||
24559 | # The name of the directory that contains temporary libtool files. | |
24560 | objdir=$objdir | |
24561 | ||
24562 | # How to create reloadable object files. | |
24563 | reload_flag=$lt_reload_flag | |
24564 | reload_cmds=$lt_reload_cmds | |
24565 | ||
24566 | # How to pass a linker flag through the compiler. | |
24567 | wl=$lt_lt_prog_compiler_wl_RC | |
24568 | ||
24569 | # Object file suffix (normally "o"). | |
24570 | objext="$ac_objext" | |
24571 | ||
24572 | # Old archive suffix (normally "a"). | |
24573 | libext="$libext" | |
24574 | ||
24575 | # Executable file suffix (normally ""). | |
24576 | exeext="$exeext" | |
24577 | ||
24578 | # Additional compiler flags for building library objects. | |
24579 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
24580 | pic_mode=$pic_mode | |
24581 | ||
24582 | # What is the maximum length of a command? | |
24583 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
24584 | ||
24585 | # Does compiler simultaneously support -c and -o options? | |
24586 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
24587 | ||
24588 | # Must we lock files when doing compilation ? | |
24589 | need_locks=$lt_need_locks | |
24590 | ||
24591 | # Do we need the lib prefix for modules? | |
24592 | need_lib_prefix=$need_lib_prefix | |
24593 | ||
24594 | # Do we need a version for libraries? | |
24595 | need_version=$need_version | |
24596 | ||
24597 | # Whether dlopen is supported. | |
24598 | dlopen_support=$enable_dlopen | |
24599 | ||
24600 | # Whether dlopen of programs is supported. | |
24601 | dlopen_self=$enable_dlopen_self | |
24602 | ||
24603 | # Whether dlopen of statically linked programs is supported. | |
24604 | dlopen_self_static=$enable_dlopen_self_static | |
24605 | ||
24606 | # Compiler flag to prevent dynamic linking. | |
24607 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
24608 | ||
24609 | # Compiler flag to turn off builtin functions. | |
24610 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
24611 | ||
24612 | # Compiler flag to allow reflexive dlopens. | |
24613 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
24614 | ||
24615 | # Compiler flag to generate shared objects directly from archives. | |
24616 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
24617 | ||
24618 | # Compiler flag to generate thread-safe objects. | |
24619 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
24620 | ||
24621 | # Library versioning type. | |
24622 | version_type=$version_type | |
24623 | ||
24624 | # Format of library name prefix. | |
24625 | libname_spec=$lt_libname_spec | |
24626 | ||
24627 | # List of archive names. First name is the real one, the rest are links. | |
24628 | # The last name is the one that the linker finds with -lNAME. | |
24629 | library_names_spec=$lt_library_names_spec | |
24630 | ||
24631 | # The coded name of the library, if different from the real name. | |
24632 | soname_spec=$lt_soname_spec | |
24633 | ||
24634 | # Commands used to build and install an old-style archive. | |
24635 | RANLIB=$lt_RANLIB | |
24636 | old_archive_cmds=$lt_old_archive_cmds_RC | |
24637 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
24638 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
24639 | ||
24640 | # Create an old-style archive from a shared archive. | |
24641 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
24642 | ||
24643 | # Create a temporary old-style archive to link instead of a shared archive. | |
24644 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
24645 | ||
24646 | # Commands used to build and install a shared archive. | |
24647 | archive_cmds=$lt_archive_cmds_RC | |
24648 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
24649 | postinstall_cmds=$lt_postinstall_cmds | |
24650 | postuninstall_cmds=$lt_postuninstall_cmds | |
24651 | ||
24652 | # Commands to strip libraries. | |
24653 | old_striplib=$lt_old_striplib | |
24654 | striplib=$lt_striplib | |
24655 | ||
24656 | # Dependencies to place before the objects being linked to create a | |
24657 | # shared library. | |
24658 | predep_objects=$lt_predep_objects_RC | |
24659 | ||
24660 | # Dependencies to place after the objects being linked to create a | |
24661 | # shared library. | |
24662 | postdep_objects=$lt_postdep_objects_RC | |
24663 | ||
24664 | # Dependencies to place before the objects being linked to create a | |
24665 | # shared library. | |
24666 | predeps=$lt_predeps_RC | |
24667 | ||
24668 | # Dependencies to place after the objects being linked to create a | |
24669 | # shared library. | |
24670 | postdeps=$lt_postdeps_RC | |
24671 | ||
24672 | # The library search path used internally by the compiler when linking | |
24673 | # a shared library. | |
24674 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
24675 | ||
24676 | # Method to check whether dependent libraries are shared objects. | |
24677 | deplibs_check_method=$lt_deplibs_check_method | |
24678 | ||
24679 | # Command to use when deplibs_check_method == file_magic. | |
24680 | file_magic_cmd=$lt_file_magic_cmd | |
24681 | ||
24682 | # Flag that allows shared libraries with undefined symbols to be built. | |
24683 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
24684 | ||
24685 | # Flag that forces no undefined symbols. | |
24686 | no_undefined_flag=$lt_no_undefined_flag_RC | |
24687 | ||
24688 | # Commands used to finish a libtool library installation in a directory. | |
24689 | finish_cmds=$lt_finish_cmds | |
24690 | ||
24691 | # Same as above, but a single script fragment to be evaled but not shown. | |
24692 | finish_eval=$lt_finish_eval | |
24693 | ||
24694 | # Take the output of nm and produce a listing of raw symbols and C names. | |
24695 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
24696 | ||
24697 | # Transform the output of nm in a proper C declaration | |
24698 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
24699 | ||
24700 | # Transform the output of nm in a C name address pair | |
24701 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
24702 | ||
24703 | # This is the shared library runtime path variable. | |
24704 | runpath_var=$runpath_var | |
24705 | ||
24706 | # This is the shared library path variable. | |
24707 | shlibpath_var=$shlibpath_var | |
24708 | ||
24709 | # Is shlibpath searched before the hard-coded library search path? | |
24710 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
24711 | ||
24712 | # How to hardcode a shared library path into an executable. | |
24713 | hardcode_action=$hardcode_action_RC | |
24714 | ||
24715 | # Whether we should hardcode library paths into libraries. | |
24716 | hardcode_into_libs=$hardcode_into_libs | |
24717 | ||
24718 | # Flag to hardcode \$libdir into a binary during linking. | |
24719 | # This must work even if \$libdir does not exist. | |
24720 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
24721 | ||
24722 | # Whether we need a single -rpath flag with a separated argument. | |
24723 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
24724 | ||
24725 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
24726 | # resulting binary. | |
24727 | hardcode_direct=$hardcode_direct_RC | |
24728 | ||
24729 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
24730 | # resulting binary. | |
24731 | hardcode_minus_L=$hardcode_minus_L_RC | |
24732 | ||
24733 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
24734 | # the resulting binary. | |
24735 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
24736 | ||
24737 | # Variables whose values should be saved in libtool wrapper scripts and | |
24738 | # restored at relink time. | |
24739 | variables_saved_for_relink="$variables_saved_for_relink" | |
24740 | ||
24741 | # Whether libtool must link a program against all its dependency libraries. | |
24742 | link_all_deplibs=$link_all_deplibs_RC | |
24743 | ||
24744 | # Compile-time system search path for libraries | |
24745 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
24746 | ||
24747 | # Run-time system search path for libraries | |
24748 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
24749 | ||
24750 | # Fix the shell variable \$srcfile for the compiler. | |
24751 | fix_srcfile_path="$fix_srcfile_path_RC" | |
24752 | ||
24753 | # Set to yes if exported symbols are required. | |
24754 | always_export_symbols=$always_export_symbols_RC | |
24755 | ||
24756 | # The commands to list exported symbols. | |
24757 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
24758 | ||
24759 | # The commands to extract the exported symbol list from a shared archive. | |
24760 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
24761 | ||
24762 | # Symbols that should not be listed in the preloaded symbols. | |
24763 | exclude_expsyms=$lt_exclude_expsyms_RC | |
24764 | ||
24765 | # Symbols that must always be exported. | |
24766 | include_expsyms=$lt_include_expsyms_RC | |
24767 | ||
24768 | # ### END LIBTOOL TAG CONFIG: $tagname | |
24769 | ||
24770 | __EOF__ | |
24771 | ||
24772 | ||
24773 | else | |
24774 | # If there is no Makefile yet, we rely on a make rule to execute | |
24775 | # `config.status --recheck' to rerun these tests and create the | |
24776 | # libtool script then. | |
24777 | test -f Makefile && make "$ltmain" | |
24778 | fi | |
24779 | ||
24780 | ||
24781 | ac_ext=c | |
24782 | ac_cpp='$CPP $CPPFLAGS' | |
24783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24786 | ||
24787 | CC="$lt_save_CC" | |
24788 | ||
24789 | ;; | |
24790 | ||
24791 | *) | |
24792 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
24793 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
24794 | { (exit 1); exit 1; }; } | |
24795 | ;; | |
24796 | esac | |
24797 | ||
24798 | # Append the new tag name to the list of available tags. | |
24799 | available_tags="$available_tags $tagname" | |
24800 | fi | |
24801 | done | |
24802 | IFS="$lt_save_ifs" | |
24803 | ||
24804 | # Now substitute the updated list of available tags. | |
24805 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
24806 | mv "${ofile}T" "$ofile" | |
24807 | chmod +x "$ofile" | |
24808 | else | |
24809 | rm -f "${ofile}T" | |
24810 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
24811 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
24812 | { (exit 1); exit 1; }; } | |
24813 | fi | |
24814 | fi | |
24815 | ||
24816 | ||
24817 | ||
24818 | LIBTOOL_SHELL="/bin/sh ./libtool" | |
24819 | # LIBTOOL="$LIBTOOL --silent" | |
24820 | ||
24821 | ||
24822 | ||
24823 | ||
24824 | ||
24825 | ||
24826 | ||
24827 | echo "$as_me:$LINENO: checking for cfg_getstr in -lconfuse" >&5 | |
24828 | echo $ECHO_N "checking for cfg_getstr in -lconfuse... $ECHO_C" >&6 | |
24829 | if test "${ac_cv_lib_confuse_cfg_getstr+set}" = set; then | |
24830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24831 | else | |
24832 | ac_check_lib_save_LIBS=$LIBS | |
24833 | LIBS="-lconfuse $LIBS" | |
24834 | cat >conftest.$ac_ext <<_ACEOF | |
24835 | #line $LINENO "configure" | |
24836 | #include "confdefs.h" | |
24837 | ||
24838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24839 | #ifdef __cplusplus | |
24840 | extern "C" | |
24841 | #endif | |
24842 | /* We use char because int might match the return type of a gcc2 | |
24843 | builtin and then its argument prototype would still apply. */ | |
24844 | char cfg_getstr (); | |
24845 | #ifdef F77_DUMMY_MAIN | |
24846 | # ifdef __cplusplus | |
24847 | extern "C" | |
24848 | # endif | |
24849 | int F77_DUMMY_MAIN() { return 1; } | |
24850 | #endif | |
24851 | int | |
24852 | main () | |
24853 | { | |
24854 | cfg_getstr (); | |
24855 | ; | |
24856 | return 0; | |
24857 | } | |
24858 | _ACEOF | |
24859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24861 | (eval $ac_link) 2>&5 | |
24862 | ac_status=$? | |
24863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24864 | (exit $ac_status); } && | |
24865 | { ac_try='test -s conftest$ac_exeext' | |
24866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24867 | (eval $ac_try) 2>&5 | |
24868 | ac_status=$? | |
24869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24870 | (exit $ac_status); }; }; then | |
24871 | ac_cv_lib_confuse_cfg_getstr=yes | |
24872 | else | |
24873 | echo "$as_me: failed program was:" >&5 | |
24874 | cat conftest.$ac_ext >&5 | |
24875 | ac_cv_lib_confuse_cfg_getstr=no | |
24876 | fi | |
24877 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24878 | LIBS=$ac_check_lib_save_LIBS | |
24879 | fi | |
24880 | echo "$as_me:$LINENO: result: $ac_cv_lib_confuse_cfg_getstr" >&5 | |
24881 | echo "${ECHO_T}$ac_cv_lib_confuse_cfg_getstr" >&6 | |
24882 | if test $ac_cv_lib_confuse_cfg_getstr = yes; then | |
24883 | cat >>confdefs.h <<_ACEOF | |
24884 | #define HAVE_LIBCONFUSE 1 | |
24885 | _ACEOF | |
24886 | ||
24887 | LIBS="-lconfuse $LIBS" | |
24888 | ||
24889 | else | |
24890 | { { echo "$as_me:$LINENO: error: can't find confuse library" >&5 | |
24891 | echo "$as_me: error: can't find confuse library" >&2;} | |
24892 | { (exit 1); exit 1; }; } | |
24893 | fi | |
24894 | ||
24895 | ||
24896 | # Extract the first word of "libftdi-config", so it can be a program name with args. | |
24897 | set dummy libftdi-config; ac_word=$2 | |
24898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24900 | if test "${ac_cv_path_HAVELIBFTDI+set}" = set; then | |
24901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24902 | else | |
24903 | case $HAVELIBFTDI in | |
24904 | [\\/]* | ?:[\\/]*) | |
24905 | ac_cv_path_HAVELIBFTDI="$HAVELIBFTDI" # Let the user override the test with a path. | |
24906 | ;; | |
24907 | *) | |
24908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24909 | for as_dir in $PATH | |
24910 | do | |
24911 | IFS=$as_save_IFS | |
24912 | test -z "$as_dir" && as_dir=. | |
24913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24915 | ac_cv_path_HAVELIBFTDI="$as_dir/$ac_word$ac_exec_ext" | |
24916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24917 | break 2 | |
24918 | fi | |
24919 | done | |
24920 | done | |
24921 | ||
24922 | test -z "$ac_cv_path_HAVELIBFTDI" && ac_cv_path_HAVELIBFTDI="$PATH" | |
24923 | ;; | |
24924 | esac | |
24925 | fi | |
24926 | HAVELIBFTDI=$ac_cv_path_HAVELIBFTDI | |
24927 | ||
24928 | if test -n "$HAVELIBFTDI"; then | |
24929 | echo "$as_me:$LINENO: result: $HAVELIBFTDI" >&5 | |
24930 | echo "${ECHO_T}$HAVELIBFTDI" >&6 | |
24931 | else | |
24932 | echo "$as_me:$LINENO: result: no" >&5 | |
24933 | echo "${ECHO_T}no" >&6 | |
24934 | fi | |
24935 | ||
24936 | ||
24937 | if test ! -z "$HAVELIBFTDI"; then | |
24938 | LIBFTDI_LIBS=`$HAVELIBFTDI --libs` | |
24939 | ||
24940 | CFLAGS="$CFLAGS $LIBFTDI_CFLAGS" | |
24941 | LIBS="$LIBS $LIBFTDI_LIBS" | |
24942 | else | |
24943 | { { echo "$as_me:$LINENO: error: *** libftdi-config not found. You need a working libftdi installation." >&5 | |
24944 | echo "$as_me: error: *** libftdi-config not found. You need a working libftdi installation." >&2;} | |
24945 | { (exit 1); exit 1; }; } | |
24946 | fi | |
24947 | ||
24948 | ||
24949 | ||
24950 | echo "$as_me:$LINENO: checking for extra includes" >&5 | |
24951 | echo $ECHO_N "checking for extra includes... $ECHO_C" >&6 | |
24952 | ||
24953 | # Check whether --with-extra-includes or --without-extra-includes was given. | |
24954 | if test "${with_extra_includes+set}" = set; then | |
24955 | withval="$with_extra_includes" | |
24956 | kde_use_extra_includes="$withval" | |
24957 | else | |
24958 | kde_use_extra_includes=NONE | |
24959 | ||
24960 | fi; | |
24961 | kde_extra_includes= | |
24962 | if test -n "$kde_use_extra_includes" && \ | |
24963 | test "$kde_use_extra_includes" != "NONE"; then | |
24964 | ||
24965 | ac_save_ifs=$IFS | |
24966 | IFS=':' | |
24967 | for dir in $kde_use_extra_includes; do | |
24968 | kde_extra_includes="$kde_extra_includes $dir" | |
24969 | USER_INCLUDES="$USER_INCLUDES -I$dir" | |
24970 | done | |
24971 | IFS=$ac_save_ifs | |
24972 | kde_use_extra_includes="added" | |
24973 | else | |
24974 | kde_use_extra_includes="no" | |
24975 | fi | |
24976 | ||
24977 | ||
24978 | echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5 | |
24979 | echo "${ECHO_T}$kde_use_extra_includes" >&6 | |
24980 | ||
24981 | kde_extra_libs= | |
24982 | echo "$as_me:$LINENO: checking for extra libs" >&5 | |
24983 | echo $ECHO_N "checking for extra libs... $ECHO_C" >&6 | |
24984 | ||
24985 | # Check whether --with-extra-libs or --without-extra-libs was given. | |
24986 | if test "${with_extra_libs+set}" = set; then | |
24987 | withval="$with_extra_libs" | |
24988 | kde_use_extra_libs=$withval | |
24989 | else | |
24990 | kde_use_extra_libs=NONE | |
24991 | ||
24992 | fi; | |
24993 | if test -n "$kde_use_extra_libs" && \ | |
24994 | test "$kde_use_extra_libs" != "NONE"; then | |
24995 | ||
24996 | ac_save_ifs=$IFS | |
24997 | IFS=':' | |
24998 | for dir in $kde_use_extra_libs; do | |
24999 | kde_extra_libs="$kde_extra_libs $dir" | |
25000 | KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir" | |
25001 | USER_LDFLAGS="$USER_LDFLAGS -L$dir" | |
25002 | done | |
25003 | IFS=$ac_save_ifs | |
25004 | kde_use_extra_libs="added" | |
25005 | else | |
25006 | kde_use_extra_libs="no" | |
25007 | fi | |
25008 | ||
25009 | ||
25010 | ||
25011 | echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5 | |
25012 | echo "${ECHO_T}$kde_use_extra_libs" >&6 | |
25013 | ||
25014 | ||
25015 | all_libraries="$all_libraries $USER_LDFLAGS" | |
25016 | all_includes="$all_includes $USER_INCLUDES" | |
25017 | ||
25018 | ||
25019 | ||
25020 | ||
25021 | ||
25022 | ||
25023 | DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin" | |
25024 | ||
25025 | if test ! -s $srcdir/subdirs; then | |
25026 | TOPSUBDIRS="" | |
25027 | files=`cd $srcdir && ls -1` | |
25028 | dirs=`for i in $files; do if test -d $i; then echo $i; fi; done` | |
25029 | for i in $dirs; do | |
25030 | echo $i >> $srcdir/subdirs | |
25031 | done | |
25032 | fi | |
25033 | ||
25034 | if test -s $srcdir/inst-apps; then | |
25035 | ac_topsubdirs="`cat $srcdir/inst-apps`" | |
25036 | else | |
25037 | ac_topsubdirs="`cat $srcdir/subdirs`" | |
25038 | fi | |
25039 | ||
25040 | for i in $ac_topsubdirs; do | |
25041 | echo "$as_me:$LINENO: checking if $i should be compiled" >&5 | |
25042 | echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6 | |
25043 | if test -d $srcdir/$i; then | |
25044 | install_it="yes" | |
25045 | for j in $DO_NOT_COMPILE; do | |
25046 | if test $i = $j; then | |
25047 | install_it="no" | |
25048 | fi | |
25049 | done | |
25050 | else | |
25051 | install_it="no" | |
25052 | fi | |
25053 | echo "$as_me:$LINENO: result: $install_it" >&5 | |
25054 | echo "${ECHO_T}$install_it" >&6 | |
25055 | vari=`echo $i | sed -e 's,[-+.],_,g'` | |
25056 | if test $install_it = "yes"; then | |
25057 | TOPSUBDIRS="$TOPSUBDIRS $i" | |
25058 | eval "$vari""_SUBDIR_included=yes" | |
25059 | else | |
25060 | eval "$vari""_SUBDIR_included=no" | |
25061 | fi | |
25062 | done | |
25063 | ||
25064 | ||
25065 | ||
25066 | ac_config_files="$ac_config_files Makefile" | |
25067 | ||
25068 | ac_config_files="$ac_config_files ftdi_eeprom/Makefile" | |
25069 | ||
25070 | cat >confcache <<\_ACEOF | |
25071 | # This file is a shell script that caches the results of configure | |
25072 | # tests run on this system so they can be shared between configure | |
25073 | # scripts and configure runs, see configure's option --config-cache. | |
25074 | # It is not useful on other systems. If it contains results you don't | |
25075 | # want to keep, you may remove or edit it. | |
25076 | # | |
25077 | # config.status only pays attention to the cache file if you give it | |
25078 | # the --recheck option to rerun configure. | |
25079 | # | |
25080 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
25081 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
25082 | # following values. | |
25083 | ||
25084 | _ACEOF | |
25085 | ||
25086 | # The following way of writing the cache mishandles newlines in values, | |
25087 | # but we know of no workaround that is simple, portable, and efficient. | |
25088 | # So, don't put newlines in cache variables' values. | |
25089 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
25090 | # and sets the high bit in the cache file unless we assign to the vars. | |
25091 | { | |
25092 | (set) 2>&1 | | |
25093 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
25094 | *ac_space=\ *) | |
25095 | # `set' does not quote correctly, so add quotes (double-quote | |
25096 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
25097 | sed -n \ | |
25098 | "s/'/'\\\\''/g; | |
25099 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
25100 | ;; | |
25101 | *) | |
25102 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
25103 | sed -n \ | |
25104 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
25105 | ;; | |
25106 | esac; | |
25107 | } | | |
25108 | sed ' | |
25109 | t clear | |
25110 | : clear | |
25111 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
25112 | t end | |
25113 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
25114 | : end' >>confcache | |
25115 | if cmp -s $cache_file confcache; then :; else | |
25116 | if test -w $cache_file; then | |
25117 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
25118 | cat confcache >$cache_file | |
25119 | else | |
25120 | echo "not updating unwritable cache $cache_file" | |
25121 | fi | |
25122 | fi | |
25123 | rm -f confcache | |
25124 | ||
25125 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
25126 | # Let make expand exec_prefix. | |
25127 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
25128 | ||
25129 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
25130 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
25131 | # trailing colons and then remove the whole line if VPATH becomes empty | |
25132 | # (actually we leave an empty line to preserve line numbers). | |
25133 | if test "x$srcdir" = x.; then | |
25134 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
25135 | s/:*\$(srcdir):*/:/; | |
25136 | s/:*\${srcdir}:*/:/; | |
25137 | s/:*@srcdir@:*/:/; | |
25138 | s/^\([^=]*=[ ]*\):*/\1/; | |
25139 | s/:*$//; | |
25140 | s/^[^=]*=[ ]*$//; | |
25141 | }' | |
25142 | fi | |
25143 | ||
25144 | DEFS=-DHAVE_CONFIG_H | |
25145 | ||
25146 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
25147 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
25148 | Usually this means the macro was only invoked conditionally." >&5 | |
25149 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
25150 | Usually this means the macro was only invoked conditionally." >&2;} | |
25151 | { (exit 1); exit 1; }; } | |
25152 | fi | |
25153 | ||
25154 | : ${CONFIG_STATUS=./config.status} | |
25155 | ac_clean_files_save=$ac_clean_files | |
25156 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
25157 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
25158 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
25159 | cat >$CONFIG_STATUS <<_ACEOF | |
25160 | #! $SHELL | |
25161 | # Generated by $as_me. | |
25162 | # Run this file to recreate the current configuration. | |
25163 | # Compiler output produced by configure, useful for debugging | |
25164 | # configure, is in config.log if it exists. | |
25165 | ||
25166 | debug=false | |
25167 | SHELL=\${CONFIG_SHELL-$SHELL} | |
25168 | _ACEOF | |
25169 | ||
25170 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25171 | ||
25172 | ## --------------------- ## | |
25173 | ## M4sh Initialization. ## | |
25174 | ## --------------------- ## | |
25175 | ||
25176 | # Be Bourne compatible | |
25177 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25178 | emulate sh | |
25179 | NULLCMD=: | |
25180 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
25181 | set -o posix | |
25182 | fi | |
25183 | ||
25184 | # NLS nuisances. | |
25185 | # Support unset when possible. | |
25186 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
25187 | as_unset=unset | |
25188 | else | |
25189 | as_unset=false | |
25190 | fi | |
25191 | ||
25192 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
25193 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
25194 | { LANG=C; export LANG; } | |
25195 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
25196 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
25197 | { LC_ALL=C; export LC_ALL; } | |
25198 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
25199 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
25200 | { LC_TIME=C; export LC_TIME; } | |
25201 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
25202 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
25203 | { LC_CTYPE=C; export LC_CTYPE; } | |
25204 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
25205 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
25206 | { LANGUAGE=C; export LANGUAGE; } | |
25207 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
25208 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
25209 | { LC_COLLATE=C; export LC_COLLATE; } | |
25210 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
25211 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
25212 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
25213 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
25214 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
25215 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
25216 | ||
25217 | ||
25218 | # Name of the executable. | |
25219 | as_me=`(basename "$0") 2>/dev/null || | |
25220 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
25221 | X"$0" : 'X\(//\)$' \| \ | |
25222 | X"$0" : 'X\(/\)$' \| \ | |
25223 | . : '\(.\)' 2>/dev/null || | |
25224 | echo X/"$0" | | |
25225 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
25226 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
25227 | /^X\/\(\/\).*/{ s//\1/; q; } | |
25228 | s/.*/./; q'` | |
25229 | ||
25230 | # PATH needs CR, and LINENO needs CR and PATH. | |
25231 | # Avoid depending upon Character Ranges. | |
25232 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
25233 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
25234 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
25235 | as_cr_digits='0123456789' | |
25236 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
25237 | ||
25238 | # The user is always right. | |
25239 | if test "${PATH_SEPARATOR+set}" != set; then | |
25240 | echo "#! /bin/sh" >conftest.sh | |
25241 | echo "exit 0" >>conftest.sh | |
25242 | chmod +x conftest.sh | |
25243 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
25244 | PATH_SEPARATOR=';' | |
25245 | else | |
25246 | PATH_SEPARATOR=: | |
25247 | fi | |
25248 | rm -f conftest.sh | |
25249 | fi | |
25250 | ||
25251 | ||
25252 | as_lineno_1=$LINENO | |
25253 | as_lineno_2=$LINENO | |
25254 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
25255 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
25256 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
25257 | # Find who we are. Look in the path if we contain no path at all | |
25258 | # relative or not. | |
25259 | case $0 in | |
25260 | *[\\/]* ) as_myself=$0 ;; | |
25261 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25262 | for as_dir in $PATH | |
25263 | do | |
25264 | IFS=$as_save_IFS | |
25265 | test -z "$as_dir" && as_dir=. | |
25266 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
25267 | done | |
25268 | ||
25269 | ;; | |
25270 | esac | |
25271 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
25272 | # in which case we are not to be found in the path. | |
25273 | if test "x$as_myself" = x; then | |
25274 | as_myself=$0 | |
25275 | fi | |
25276 | if test ! -f "$as_myself"; then | |
25277 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
25278 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
25279 | { (exit 1); exit 1; }; } | |
25280 | fi | |
25281 | case $CONFIG_SHELL in | |
25282 | '') | |
25283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25284 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
25285 | do | |
25286 | IFS=$as_save_IFS | |
25287 | test -z "$as_dir" && as_dir=. | |
25288 | for as_base in sh bash ksh sh5; do | |
25289 | case $as_dir in | |
25290 | /*) | |
25291 | if ("$as_dir/$as_base" -c ' | |
25292 | as_lineno_1=$LINENO | |
25293 | as_lineno_2=$LINENO | |
25294 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
25295 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
25296 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
25297 | CONFIG_SHELL=$as_dir/$as_base | |
25298 | export CONFIG_SHELL | |
25299 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
25300 | fi;; | |
25301 | esac | |
25302 | done | |
25303 | done | |
25304 | ;; | |
25305 | esac | |
25306 | ||
25307 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
25308 | # uniformly replaced by the line number. The first 'sed' inserts a | |
25309 | # line-number line before each line; the second 'sed' does the real | |
25310 | # work. The second script uses 'N' to pair each line-number line | |
25311 | # with the numbered line, and appends trailing '-' during | |
25312 | # substitution so that $LINENO is not a special case at line end. | |
25313 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
25314 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
25315 | sed '=' <$as_myself | | |
25316 | sed ' | |
25317 | N | |
25318 | s,$,-, | |
25319 | : loop | |
25320 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
25321 | t loop | |
25322 | s,-$,, | |
25323 | s,^['$as_cr_digits']*\n,, | |
25324 | ' >$as_me.lineno && | |
25325 | chmod +x $as_me.lineno || | |
25326 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
25327 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
25328 | { (exit 1); exit 1; }; } | |
25329 | ||
25330 | # Don't try to exec as it changes $[0], causing all sort of problems | |
25331 | # (the dirname of $[0] is not the place where we might find the | |
25332 | # original and so on. Autoconf is especially sensible to this). | |
25333 | . ./$as_me.lineno | |
25334 | # Exit status is that of the last command. | |
25335 | exit | |
25336 | } | |
25337 | ||
25338 | ||
25339 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
25340 | *c*,-n*) ECHO_N= ECHO_C=' | |
25341 | ' ECHO_T=' ' ;; | |
25342 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
25343 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
25344 | esac | |
25345 | ||
25346 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
25347 | as_expr=expr | |
25348 | else | |
25349 | as_expr=false | |
25350 | fi | |
25351 | ||
25352 | rm -f conf$$ conf$$.exe conf$$.file | |
25353 | echo >conf$$.file | |
25354 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
25355 | # We could just check for DJGPP; but this test a) works b) is more generic | |
25356 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
25357 | if test -f conf$$.exe; then | |
25358 | # Don't use ln at all; we don't have any links | |
25359 | as_ln_s='cp -p' | |
25360 | else | |
25361 | as_ln_s='ln -s' | |
25362 | fi | |
25363 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
25364 | as_ln_s=ln | |
25365 | else | |
25366 | as_ln_s='cp -p' | |
25367 | fi | |
25368 | rm -f conf$$ conf$$.exe conf$$.file | |
25369 | ||
25370 | as_executable_p="test -f" | |
25371 | ||
25372 | # Sed expression to map a string onto a valid CPP name. | |
25373 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
25374 | ||
25375 | # Sed expression to map a string onto a valid variable name. | |
25376 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
25377 | ||
25378 | ||
25379 | # IFS | |
25380 | # We need space, tab and new line, in precisely that order. | |
25381 | as_nl=' | |
25382 | ' | |
25383 | IFS=" $as_nl" | |
25384 | ||
25385 | # CDPATH. | |
25386 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
25387 | ||
25388 | exec 6>&1 | |
25389 | ||
25390 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
25391 | # report actual input values of CONFIG_FILES etc. instead of their | |
25392 | # values after options handling. Logging --version etc. is OK. | |
25393 | exec 5>>config.log | |
25394 | { | |
25395 | echo | |
25396 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
25397 | ## Running $as_me. ## | |
25398 | _ASBOX | |
25399 | } >&5 | |
25400 | cat >&5 <<_CSEOF | |
25401 | ||
25402 | This file was extended by $as_me, which was | |
25403 | generated by GNU Autoconf 2.53. Invocation command line was | |
25404 | ||
25405 | CONFIG_FILES = $CONFIG_FILES | |
25406 | CONFIG_HEADERS = $CONFIG_HEADERS | |
25407 | CONFIG_LINKS = $CONFIG_LINKS | |
25408 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
25409 | $ $0 $@ | |
25410 | ||
25411 | _CSEOF | |
25412 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
25413 | echo >&5 | |
25414 | _ACEOF | |
25415 | ||
25416 | # Files that config.status was made for. | |
25417 | if test -n "$ac_config_files"; then | |
25418 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
25419 | fi | |
25420 | ||
25421 | if test -n "$ac_config_headers"; then | |
25422 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
25423 | fi | |
25424 | ||
25425 | if test -n "$ac_config_links"; then | |
25426 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
25427 | fi | |
25428 | ||
25429 | if test -n "$ac_config_commands"; then | |
25430 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
25431 | fi | |
25432 | ||
25433 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25434 | ||
25435 | ac_cs_usage="\ | |
25436 | \`$as_me' instantiates files from templates according to the | |
25437 | current configuration. | |
25438 | ||
25439 | Usage: $0 [OPTIONS] [FILE]... | |
25440 | ||
25441 | -h, --help print this help, then exit | |
25442 | -V, --version print version number, then exit | |
25443 | -d, --debug don't remove temporary files | |
25444 | --recheck update $as_me by reconfiguring in the same conditions | |
25445 | --file=FILE[:TEMPLATE] | |
25446 | instantiate the configuration file FILE | |
25447 | --header=FILE[:TEMPLATE] | |
25448 | instantiate the configuration header FILE | |
25449 | ||
25450 | Configuration files: | |
25451 | $config_files | |
25452 | ||
25453 | Configuration headers: | |
25454 | $config_headers | |
25455 | ||
25456 | Configuration commands: | |
25457 | $config_commands | |
25458 | ||
25459 | Report bugs to <bug-autoconf@gnu.org>." | |
25460 | _ACEOF | |
25461 | ||
25462 | cat >>$CONFIG_STATUS <<_ACEOF | |
25463 | ac_cs_version="\\ | |
25464 | config.status | |
25465 | configured by $0, generated by GNU Autoconf 2.53, | |
25466 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
25467 | ||
25468 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
25469 | Free Software Foundation, Inc. | |
25470 | This config.status script is free software; the Free Software Foundation | |
25471 | gives unlimited permission to copy, distribute and modify it." | |
25472 | srcdir=$srcdir | |
25473 | INSTALL="$INSTALL" | |
25474 | _ACEOF | |
25475 | ||
25476 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25477 | # If no file are specified by the user, then we need to provide default | |
25478 | # value. By we need to know if files were specified by the user. | |
25479 | ac_need_defaults=: | |
25480 | while test $# != 0 | |
25481 | do | |
25482 | case $1 in | |
25483 | --*=*) | |
25484 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
25485 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
25486 | shift | |
25487 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
25488 | shift | |
25489 | ;; | |
25490 | -*);; | |
25491 | *) # This is not an option, so the user has probably given explicit | |
25492 | # arguments. | |
25493 | ac_need_defaults=false;; | |
25494 | esac | |
25495 | ||
25496 | case $1 in | |
25497 | # Handling of the options. | |
25498 | _ACEOF | |
25499 | cat >>$CONFIG_STATUS <<_ACEOF | |
25500 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
25501 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
25502 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
25503 | _ACEOF | |
25504 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25505 | --version | --vers* | -V ) | |
25506 | echo "$ac_cs_version"; exit 0 ;; | |
25507 | --he | --h) | |
25508 | # Conflict between --help and --header | |
25509 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
25510 | Try \`$0 --help' for more information." >&5 | |
25511 | echo "$as_me: error: ambiguous option: $1 | |
25512 | Try \`$0 --help' for more information." >&2;} | |
25513 | { (exit 1); exit 1; }; };; | |
25514 | --help | --hel | -h ) | |
25515 | echo "$ac_cs_usage"; exit 0 ;; | |
25516 | --debug | --d* | -d ) | |
25517 | debug=: ;; | |
25518 | --file | --fil | --fi | --f ) | |
25519 | shift | |
25520 | CONFIG_FILES="$CONFIG_FILES $1" | |
25521 | ac_need_defaults=false;; | |
25522 | --header | --heade | --head | --hea ) | |
25523 | shift | |
25524 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
25525 | ac_need_defaults=false;; | |
25526 | ||
25527 | # This is an error. | |
25528 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
25529 | Try \`$0 --help' for more information." >&5 | |
25530 | echo "$as_me: error: unrecognized option: $1 | |
25531 | Try \`$0 --help' for more information." >&2;} | |
25532 | { (exit 1); exit 1; }; } ;; | |
25533 | ||
25534 | *) ac_config_targets="$ac_config_targets $1" ;; | |
25535 | ||
25536 | esac | |
25537 | shift | |
25538 | done | |
25539 | ||
25540 | _ACEOF | |
25541 | ||
25542 | cat >>$CONFIG_STATUS <<_ACEOF | |
25543 | # | |
25544 | # INIT-COMMANDS section. | |
25545 | # | |
25546 | ||
25547 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
25548 | ||
25549 | _ACEOF | |
25550 | ||
25551 | ||
25552 | ||
25553 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25554 | for ac_config_target in $ac_config_targets | |
25555 | do | |
25556 | case "$ac_config_target" in | |
25557 | # Handling of arguments. | |
25558 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
25559 | "ftdi_eeprom/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftdi_eeprom/Makefile" ;; | |
25560 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
25561 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
25562 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
25563 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
25564 | { (exit 1); exit 1; }; };; | |
25565 | esac | |
25566 | done | |
25567 | ||
25568 | # If the user did not use the arguments to specify the items to instantiate, | |
25569 | # then the envvar interface is used. Set only those that are not. | |
25570 | # We use the long form for the default assignment because of an extremely | |
25571 | # bizarre bug on SunOS 4.1.3. | |
25572 | if $ac_need_defaults; then | |
25573 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
25574 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
25575 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
25576 | fi | |
25577 | ||
25578 | # Create a temporary directory, and hook for its removal unless debugging. | |
25579 | $debug || | |
25580 | { | |
25581 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
25582 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
25583 | } | |
25584 | ||
25585 | # Create a (secure) tmp directory for tmp files. | |
25586 | : ${TMPDIR=/tmp} | |
25587 | { | |
25588 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
25589 | test -n "$tmp" && test -d "$tmp" | |
25590 | } || | |
25591 | { | |
25592 | tmp=$TMPDIR/cs$$-$RANDOM | |
25593 | (umask 077 && mkdir $tmp) | |
25594 | } || | |
25595 | { | |
25596 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
25597 | { (exit 1); exit 1; } | |
25598 | } | |
25599 | ||
25600 | _ACEOF | |
25601 | ||
25602 | cat >>$CONFIG_STATUS <<_ACEOF | |
25603 | ||
25604 | # | |
25605 | # CONFIG_FILES section. | |
25606 | # | |
25607 | ||
25608 | # No need to generate the scripts if there are no CONFIG_FILES. | |
25609 | # This happens for instance when ./config.status config.h | |
25610 | if test -n "\$CONFIG_FILES"; then | |
25611 | # Protect against being on the right side of a sed subst in config.status. | |
25612 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
25613 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
25614 | s,@SHELL@,$SHELL,;t t | |
25615 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
25616 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
25617 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
25618 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
25619 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
25620 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
25621 | s,@exec_prefix@,$exec_prefix,;t t | |
25622 | s,@prefix@,$prefix,;t t | |
25623 | s,@program_transform_name@,$program_transform_name,;t t | |
25624 | s,@bindir@,$bindir,;t t | |
25625 | s,@sbindir@,$sbindir,;t t | |
25626 | s,@libexecdir@,$libexecdir,;t t | |
25627 | s,@datadir@,$datadir,;t t | |
25628 | s,@sysconfdir@,$sysconfdir,;t t | |
25629 | s,@sharedstatedir@,$sharedstatedir,;t t | |
25630 | s,@localstatedir@,$localstatedir,;t t | |
25631 | s,@libdir@,$libdir,;t t | |
25632 | s,@includedir@,$includedir,;t t | |
25633 | s,@oldincludedir@,$oldincludedir,;t t | |
25634 | s,@infodir@,$infodir,;t t | |
25635 | s,@mandir@,$mandir,;t t | |
25636 | s,@build_alias@,$build_alias,;t t | |
25637 | s,@host_alias@,$host_alias,;t t | |
25638 | s,@target_alias@,$target_alias,;t t | |
25639 | s,@DEFS@,$DEFS,;t t | |
25640 | s,@ECHO_C@,$ECHO_C,;t t | |
25641 | s,@ECHO_N@,$ECHO_N,;t t | |
25642 | s,@ECHO_T@,$ECHO_T,;t t | |
25643 | s,@LIBS@,$LIBS,;t t | |
25644 | s,@build@,$build,;t t | |
25645 | s,@build_cpu@,$build_cpu,;t t | |
25646 | s,@build_vendor@,$build_vendor,;t t | |
25647 | s,@build_os@,$build_os,;t t | |
25648 | s,@host@,$host,;t t | |
25649 | s,@host_cpu@,$host_cpu,;t t | |
25650 | s,@host_vendor@,$host_vendor,;t t | |
25651 | s,@host_os@,$host_os,;t t | |
25652 | s,@target@,$target,;t t | |
25653 | s,@target_cpu@,$target_cpu,;t t | |
25654 | s,@target_vendor@,$target_vendor,;t t | |
25655 | s,@target_os@,$target_os,;t t | |
25656 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
25657 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
25658 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
25659 | s,@PACKAGE@,$PACKAGE,;t t | |
25660 | s,@VERSION@,$VERSION,;t t | |
25661 | s,@ACLOCAL@,$ACLOCAL,;t t | |
25662 | s,@AUTOCONF@,$AUTOCONF,;t t | |
25663 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
25664 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
25665 | s,@MAKEINFO@,$MAKEINFO,;t t | |
25666 | s,@AMTAR@,$AMTAR,;t t | |
25667 | s,@install_sh@,$install_sh,;t t | |
25668 | s,@STRIP@,$STRIP,;t t | |
25669 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
25670 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
25671 | s,@AWK@,$AWK,;t t | |
25672 | s,@SET_MAKE@,$SET_MAKE,;t t | |
25673 | s,@CONF_FILES@,$CONF_FILES,;t t | |
25674 | s,@CC@,$CC,;t t | |
25675 | s,@CFLAGS@,$CFLAGS,;t t | |
25676 | s,@LDFLAGS@,$LDFLAGS,;t t | |
25677 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
25678 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
25679 | s,@EXEEXT@,$EXEEXT,;t t | |
25680 | s,@OBJEXT@,$OBJEXT,;t t | |
25681 | s,@DEPDIR@,$DEPDIR,;t t | |
25682 | s,@am__include@,$am__include,;t t | |
25683 | s,@am__quote@,$am__quote,;t t | |
25684 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
25685 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
25686 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
25687 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
25688 | s,@CXX@,$CXX,;t t | |
25689 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
25690 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
25691 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
25692 | s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t | |
25693 | s,@USE_RTTI@,$USE_RTTI,;t t | |
25694 | s,@CPP@,$CPP,;t t | |
25695 | s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t | |
25696 | s,@REPO@,$REPO,;t t | |
25697 | s,@NOREPO@,$NOREPO,;t t | |
25698 | s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t | |
25699 | s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t | |
25700 | s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t | |
25701 | s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t | |
25702 | s,@KDE_CXXFLAGS@,$KDE_CXXFLAGS,;t t | |
25703 | s,@LN_S@,$LN_S,;t t | |
25704 | s,@ECHO@,$ECHO,;t t | |
25705 | s,@RANLIB@,$RANLIB,;t t | |
25706 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
25707 | s,@CXXCPP@,$CXXCPP,;t t | |
25708 | s,@LIBTOOL@,$LIBTOOL,;t t | |
25709 | s,@HAVELIBFTDI@,$HAVELIBFTDI,;t t | |
25710 | s,@USER_INCLUDES@,$USER_INCLUDES,;t t | |
25711 | s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t | |
25712 | s,@all_includes@,$all_includes,;t t | |
25713 | s,@all_libraries@,$all_libraries,;t t | |
25714 | s,@AUTODIRS@,$AUTODIRS,;t t | |
25715 | s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t | |
25716 | CEOF | |
25717 | ||
25718 | _ACEOF | |
25719 | ||
25720 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25721 | # Split the substitutions into bite-sized pieces for seds with | |
25722 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
25723 | ac_max_sed_lines=48 | |
25724 | ac_sed_frag=1 # Number of current file. | |
25725 | ac_beg=1 # First line for current file. | |
25726 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
25727 | ac_more_lines=: | |
25728 | ac_sed_cmds= | |
25729 | while $ac_more_lines; do | |
25730 | if test $ac_beg -gt 1; then | |
25731 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25732 | else | |
25733 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25734 | fi | |
25735 | if test ! -s $tmp/subs.frag; then | |
25736 | ac_more_lines=false | |
25737 | else | |
25738 | # The purpose of the label and of the branching condition is to | |
25739 | # speed up the sed processing (if there are no `@' at all, there | |
25740 | # is no need to browse any of the substitutions). | |
25741 | # These are the two extra sed commands mentioned above. | |
25742 | (echo ':t | |
25743 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
25744 | if test -z "$ac_sed_cmds"; then | |
25745 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
25746 | else | |
25747 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
25748 | fi | |
25749 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
25750 | ac_beg=$ac_end | |
25751 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25752 | fi | |
25753 | done | |
25754 | if test -z "$ac_sed_cmds"; then | |
25755 | ac_sed_cmds=cat | |
25756 | fi | |
25757 | fi # test -n "$CONFIG_FILES" | |
25758 | ||
25759 | _ACEOF | |
25760 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25761 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
25762 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
25763 | case $ac_file in | |
25764 | - | *:- | *:-:* ) # input from stdin | |
25765 | cat >$tmp/stdin | |
25766 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25767 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25768 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25769 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25770 | * ) ac_file_in=$ac_file.in ;; | |
25771 | esac | |
25772 | ||
25773 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
25774 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
25775 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25776 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25777 | X"$ac_file" : 'X\(//\)$' \| \ | |
25778 | X"$ac_file" : 'X\(/\)' \| \ | |
25779 | . : '\(.\)' 2>/dev/null || | |
25780 | echo X"$ac_file" | | |
25781 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25782 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25783 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25784 | /^X\(\/\).*/{ s//\1/; q; } | |
25785 | s/.*/./; q'` | |
25786 | { case "$ac_dir" in | |
25787 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
25788 | *) as_incr_dir=.;; | |
25789 | esac | |
25790 | as_dummy="$ac_dir" | |
25791 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
25792 | case $as_mkdir_dir in | |
25793 | # Skip DOS drivespec | |
25794 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
25795 | *) | |
25796 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
25797 | test -d "$as_incr_dir" || | |
25798 | mkdir "$as_incr_dir" || | |
25799 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
25800 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
25801 | { (exit 1); exit 1; }; } | |
25802 | ;; | |
25803 | esac | |
25804 | done; } | |
25805 | ||
25806 | ac_builddir=. | |
25807 | ||
25808 | if test "$ac_dir" != .; then | |
25809 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25810 | # A "../" for each directory in $ac_dir_suffix. | |
25811 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25812 | else | |
25813 | ac_dir_suffix= ac_top_builddir= | |
25814 | fi | |
25815 | ||
25816 | case $srcdir in | |
25817 | .) # No --srcdir option. We are building in place. | |
25818 | ac_srcdir=. | |
25819 | if test -z "$ac_top_builddir"; then | |
25820 | ac_top_srcdir=. | |
25821 | else | |
25822 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25823 | fi ;; | |
25824 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25825 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25826 | ac_top_srcdir=$srcdir ;; | |
25827 | *) # Relative path. | |
25828 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25829 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25830 | esac | |
25831 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
25832 | # absolute. | |
25833 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
25834 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
25835 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
25836 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
25837 | ||
25838 | ||
25839 | case $INSTALL in | |
25840 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
25841 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
25842 | esac | |
25843 | ||
25844 | if test x"$ac_file" != x-; then | |
25845 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25846 | echo "$as_me: creating $ac_file" >&6;} | |
25847 | rm -f "$ac_file" | |
25848 | fi | |
25849 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25850 | # use $as_me), people would be surprised to read: | |
25851 | # /* config.h. Generated by config.status. */ | |
25852 | if test x"$ac_file" = x-; then | |
25853 | configure_input= | |
25854 | else | |
25855 | configure_input="$ac_file. " | |
25856 | fi | |
25857 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
25858 | sed 's,.*/,,'` by configure." | |
25859 | ||
25860 | # First look for the input files in the build tree, otherwise in the | |
25861 | # src tree. | |
25862 | ac_file_inputs=`IFS=: | |
25863 | for f in $ac_file_in; do | |
25864 | case $f in | |
25865 | -) echo $tmp/stdin ;; | |
25866 | [\\/$]*) | |
25867 | # Absolute (can't be DOS-style, as IFS=:) | |
25868 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25869 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25870 | { (exit 1); exit 1; }; } | |
25871 | echo $f;; | |
25872 | *) # Relative | |
25873 | if test -f "$f"; then | |
25874 | # Build tree | |
25875 | echo $f | |
25876 | elif test -f "$srcdir/$f"; then | |
25877 | # Source tree | |
25878 | echo $srcdir/$f | |
25879 | else | |
25880 | # /dev/null tree | |
25881 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25882 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25883 | { (exit 1); exit 1; }; } | |
25884 | fi;; | |
25885 | esac | |
25886 | done` || { (exit 1); exit 1; } | |
25887 | _ACEOF | |
25888 | cat >>$CONFIG_STATUS <<_ACEOF | |
25889 | sed "$ac_vpsub | |
25890 | $extrasub | |
25891 | _ACEOF | |
25892 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25893 | :t | |
25894 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
25895 | s,@configure_input@,$configure_input,;t t | |
25896 | s,@srcdir@,$ac_srcdir,;t t | |
25897 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
25898 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
25899 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
25900 | s,@builddir@,$ac_builddir,;t t | |
25901 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
25902 | s,@top_builddir@,$ac_top_builddir,;t t | |
25903 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
25904 | s,@INSTALL@,$ac_INSTALL,;t t | |
25905 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
25906 | rm -f $tmp/stdin | |
25907 | if test x"$ac_file" != x-; then | |
25908 | mv $tmp/out $ac_file | |
25909 | else | |
25910 | cat $tmp/out | |
25911 | rm -f $tmp/out | |
25912 | fi | |
25913 | ||
25914 | done | |
25915 | _ACEOF | |
25916 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25917 | ||
25918 | # | |
25919 | # CONFIG_HEADER section. | |
25920 | # | |
25921 | ||
25922 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
25923 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
25924 | # | |
25925 | # ac_d sets the value in "#define NAME VALUE" lines. | |
25926 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
25927 | ac_dB='[ ].*$,\1#\2' | |
25928 | ac_dC=' ' | |
25929 | ac_dD=',;t' | |
25930 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
25931 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
25932 | ac_uB='$,\1#\2define\3' | |
25933 | ac_uC=' ' | |
25934 | ac_uD=',;t' | |
25935 | ||
25936 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25937 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
25938 | case $ac_file in | |
25939 | - | *:- | *:-:* ) # input from stdin | |
25940 | cat >$tmp/stdin | |
25941 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25942 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25943 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25944 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25945 | * ) ac_file_in=$ac_file.in ;; | |
25946 | esac | |
25947 | ||
25948 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25949 | echo "$as_me: creating $ac_file" >&6;} | |
25950 | ||
25951 | # First look for the input files in the build tree, otherwise in the | |
25952 | # src tree. | |
25953 | ac_file_inputs=`IFS=: | |
25954 | for f in $ac_file_in; do | |
25955 | case $f in | |
25956 | -) echo $tmp/stdin ;; | |
25957 | [\\/$]*) | |
25958 | # Absolute (can't be DOS-style, as IFS=:) | |
25959 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25960 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25961 | { (exit 1); exit 1; }; } | |
25962 | echo $f;; | |
25963 | *) # Relative | |
25964 | if test -f "$f"; then | |
25965 | # Build tree | |
25966 | echo $f | |
25967 | elif test -f "$srcdir/$f"; then | |
25968 | # Source tree | |
25969 | echo $srcdir/$f | |
25970 | else | |
25971 | # /dev/null tree | |
25972 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25973 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25974 | { (exit 1); exit 1; }; } | |
25975 | fi;; | |
25976 | esac | |
25977 | done` || { (exit 1); exit 1; } | |
25978 | # Remove the trailing spaces. | |
25979 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
25980 | ||
25981 | _ACEOF | |
25982 | ||
25983 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
25984 | # `conftest.undefs', that substitutes the proper values into | |
25985 | # config.h.in to produce config.h. The first handles `#define' | |
25986 | # templates, and the second `#undef' templates. | |
25987 | # And first: Protect against being on the right side of a sed subst in | |
25988 | # config.status. Protect against being in an unquoted here document | |
25989 | # in config.status. | |
25990 | rm -f conftest.defines conftest.undefs | |
25991 | # Using a here document instead of a string reduces the quoting nightmare. | |
25992 | # Putting comments in sed scripts is not portable. | |
25993 | # | |
25994 | # `end' is used to avoid that the second main sed command (meant for | |
25995 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
25996 | # See the Autoconf documentation for `clear'. | |
25997 | cat >confdef2sed.sed <<\_ACEOF | |
25998 | s/[\\&,]/\\&/g | |
25999 | s,[\\$`],\\&,g | |
26000 | t clear | |
26001 | : clear | |
26002 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
26003 | t end | |
26004 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
26005 | : end | |
26006 | _ACEOF | |
26007 | # If some macros were called several times there might be several times | |
26008 | # the same #defines, which is useless. Nevertheless, we may not want to | |
26009 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
26010 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
26011 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
26012 | rm -f confdef2sed.sed | |
26013 | ||
26014 | # This sed command replaces #undef with comments. This is necessary, for | |
26015 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
26016 | # on some systems where configure will not decide to define it. | |
26017 | cat >>conftest.undefs <<\_ACEOF | |
26018 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
26019 | _ACEOF | |
26020 | ||
26021 | # Break up conftest.defines because some shells have a limit on the size | |
26022 | # of here documents, and old seds have small limits too (100 cmds). | |
26023 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
26024 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
26025 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
26026 | echo ' :' >>$CONFIG_STATUS | |
26027 | rm -f conftest.tail | |
26028 | while grep . conftest.defines >/dev/null | |
26029 | do | |
26030 | # Write a limited-size here document to $tmp/defines.sed. | |
26031 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
26032 | # Speed up: don't consider the non `#define' lines. | |
26033 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
26034 | # Work around the forget-to-reset-the-flag bug. | |
26035 | echo 't clr' >>$CONFIG_STATUS | |
26036 | echo ': clr' >>$CONFIG_STATUS | |
26037 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
26038 | echo 'CEOF | |
26039 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
26040 | rm -f $tmp/in | |
26041 | mv $tmp/out $tmp/in | |
26042 | ' >>$CONFIG_STATUS | |
26043 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
26044 | rm -f conftest.defines | |
26045 | mv conftest.tail conftest.defines | |
26046 | done | |
26047 | rm -f conftest.defines | |
26048 | echo ' fi # egrep' >>$CONFIG_STATUS | |
26049 | echo >>$CONFIG_STATUS | |
26050 | ||
26051 | # Break up conftest.undefs because some shells have a limit on the size | |
26052 | # of here documents, and old seds have small limits too (100 cmds). | |
26053 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
26054 | rm -f conftest.tail | |
26055 | while grep . conftest.undefs >/dev/null | |
26056 | do | |
26057 | # Write a limited-size here document to $tmp/undefs.sed. | |
26058 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
26059 | # Speed up: don't consider the non `#undef' | |
26060 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
26061 | # Work around the forget-to-reset-the-flag bug. | |
26062 | echo 't clr' >>$CONFIG_STATUS | |
26063 | echo ': clr' >>$CONFIG_STATUS | |
26064 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
26065 | echo 'CEOF | |
26066 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
26067 | rm -f $tmp/in | |
26068 | mv $tmp/out $tmp/in | |
26069 | ' >>$CONFIG_STATUS | |
26070 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
26071 | rm -f conftest.undefs | |
26072 | mv conftest.tail conftest.undefs | |
26073 | done | |
26074 | rm -f conftest.undefs | |
26075 | ||
26076 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26077 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
26078 | # use $as_me), people would be surprised to read: | |
26079 | # /* config.h. Generated by config.status. */ | |
26080 | if test x"$ac_file" = x-; then | |
26081 | echo "/* Generated by configure. */" >$tmp/config.h | |
26082 | else | |
26083 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
26084 | fi | |
26085 | cat $tmp/in >>$tmp/config.h | |
26086 | rm -f $tmp/in | |
26087 | if test x"$ac_file" != x-; then | |
26088 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
26089 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
26090 | echo "$as_me: $ac_file is unchanged" >&6;} | |
26091 | else | |
26092 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
26093 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26094 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
26095 | X"$ac_file" : 'X\(//\)$' \| \ | |
26096 | X"$ac_file" : 'X\(/\)' \| \ | |
26097 | . : '\(.\)' 2>/dev/null || | |
26098 | echo X"$ac_file" | | |
26099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26100 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26101 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26102 | /^X\(\/\).*/{ s//\1/; q; } | |
26103 | s/.*/./; q'` | |
26104 | { case "$ac_dir" in | |
26105 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
26106 | *) as_incr_dir=.;; | |
26107 | esac | |
26108 | as_dummy="$ac_dir" | |
26109 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
26110 | case $as_mkdir_dir in | |
26111 | # Skip DOS drivespec | |
26112 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
26113 | *) | |
26114 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
26115 | test -d "$as_incr_dir" || | |
26116 | mkdir "$as_incr_dir" || | |
26117 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
26118 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
26119 | { (exit 1); exit 1; }; } | |
26120 | ;; | |
26121 | esac | |
26122 | done; } | |
26123 | ||
26124 | rm -f $ac_file | |
26125 | mv $tmp/config.h $ac_file | |
26126 | fi | |
26127 | else | |
26128 | cat $tmp/config.h | |
26129 | rm -f $tmp/config.h | |
26130 | fi | |
26131 | # Run the commands associated with the file. | |
26132 | case $ac_file in | |
26133 | config.h ) # update the timestamp | |
26134 | echo 'timestamp for config.h' >"./stamp-h1" | |
26135 | ;; | |
26136 | esac | |
26137 | done | |
26138 | _ACEOF | |
26139 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26140 | ||
26141 | # | |
26142 | # CONFIG_COMMANDS section. | |
26143 | # | |
26144 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
26145 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
26146 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26147 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
26148 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26149 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
26150 | X"$ac_dest" : 'X\(//\)$' \| \ | |
26151 | X"$ac_dest" : 'X\(/\)' \| \ | |
26152 | . : '\(.\)' 2>/dev/null || | |
26153 | echo X"$ac_dest" | | |
26154 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26155 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26156 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26157 | /^X\(\/\).*/{ s//\1/; q; } | |
26158 | s/.*/./; q'` | |
26159 | ac_builddir=. | |
26160 | ||
26161 | if test "$ac_dir" != .; then | |
26162 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
26163 | # A "../" for each directory in $ac_dir_suffix. | |
26164 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
26165 | else | |
26166 | ac_dir_suffix= ac_top_builddir= | |
26167 | fi | |
26168 | ||
26169 | case $srcdir in | |
26170 | .) # No --srcdir option. We are building in place. | |
26171 | ac_srcdir=. | |
26172 | if test -z "$ac_top_builddir"; then | |
26173 | ac_top_srcdir=. | |
26174 | else | |
26175 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
26176 | fi ;; | |
26177 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
26178 | ac_srcdir=$srcdir$ac_dir_suffix; | |
26179 | ac_top_srcdir=$srcdir ;; | |
26180 | *) # Relative path. | |
26181 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
26182 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
26183 | esac | |
26184 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
26185 | # absolute. | |
26186 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
26187 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
26188 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
26189 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
26190 | ||
26191 | ||
26192 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
26193 | echo "$as_me: executing $ac_dest commands" >&6;} | |
26194 | case $ac_dest in | |
26195 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
26196 | # Strip MF so we end up with the name of the file. | |
26197 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
26198 | # Check whether this is an Automake generated Makefile or not. | |
26199 | # We used to match only the files named `Makefile.in', but | |
26200 | # some people rename them; so instead we look at the file content. | |
26201 | # Grep'ing the first line is not enough: some people post-process | |
26202 | # each Makefile.in and add a new line on top of each file to say so. | |
26203 | # So let's grep whole file. | |
26204 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
26205 | dirpart=`(dirname "$mf") 2>/dev/null || | |
26206 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26207 | X"$mf" : 'X\(//\)[^/]' \| \ | |
26208 | X"$mf" : 'X\(//\)$' \| \ | |
26209 | X"$mf" : 'X\(/\)' \| \ | |
26210 | . : '\(.\)' 2>/dev/null || | |
26211 | echo X"$mf" | | |
26212 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26213 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26214 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26215 | /^X\(\/\).*/{ s//\1/; q; } | |
26216 | s/.*/./; q'` | |
26217 | else | |
26218 | continue | |
26219 | fi | |
26220 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
26221 | # Extract the definition of DEP_FILES from the Makefile without | |
26222 | # running `make'. | |
26223 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
26224 | test -z "$DEPDIR" && continue | |
26225 | # When using ansi2knr, U may be empty or an underscore; expand it | |
26226 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
26227 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
26228 | # We invoke sed twice because it is the simplest approach to | |
26229 | # changing $(DEPDIR) to its actual value in the expansion. | |
26230 | for file in `sed -n -e ' | |
26231 | /^DEP_FILES = .*\\\\$/ { | |
26232 | s/^DEP_FILES = // | |
26233 | :loop | |
26234 | s/\\\\$// | |
26235 | p | |
26236 | n | |
26237 | /\\\\$/ b loop | |
26238 | p | |
26239 | } | |
26240 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
26241 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
26242 | # Make sure the directory exists. | |
26243 | test -f "$dirpart/$file" && continue | |
26244 | fdir=`(dirname "$file") 2>/dev/null || | |
26245 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26246 | X"$file" : 'X\(//\)[^/]' \| \ | |
26247 | X"$file" : 'X\(//\)$' \| \ | |
26248 | X"$file" : 'X\(/\)' \| \ | |
26249 | . : '\(.\)' 2>/dev/null || | |
26250 | echo X"$file" | | |
26251 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26252 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26253 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26254 | /^X\(\/\).*/{ s//\1/; q; } | |
26255 | s/.*/./; q'` | |
26256 | { case $dirpart/$fdir in | |
26257 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
26258 | *) as_incr_dir=.;; | |
26259 | esac | |
26260 | as_dummy=$dirpart/$fdir | |
26261 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
26262 | case $as_mkdir_dir in | |
26263 | # Skip DOS drivespec | |
26264 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
26265 | *) | |
26266 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
26267 | test -d "$as_incr_dir" || | |
26268 | mkdir "$as_incr_dir" || | |
26269 | { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 | |
26270 | echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} | |
26271 | { (exit 1); exit 1; }; } | |
26272 | ;; | |
26273 | esac | |
26274 | done; } | |
26275 | ||
26276 | # echo "creating $dirpart/$file" | |
26277 | echo '# dummy' > "$dirpart/$file" | |
26278 | done | |
26279 | done | |
26280 | ;; | |
26281 | esac | |
26282 | done | |
26283 | _ACEOF | |
26284 | ||
26285 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26286 | ||
26287 | { (exit 0); exit 0; } | |
26288 | _ACEOF | |
26289 | chmod +x $CONFIG_STATUS | |
26290 | ac_clean_files=$ac_clean_files_save | |
26291 | ||
26292 | ||
26293 | # configure is writing to config.log, and then calls config.status. | |
26294 | # config.status does its own redirection, appending to config.log. | |
26295 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
26296 | # by configure, so config.status won't be able to write to it; its | |
26297 | # output is simply discarded. So we exec the FD to /dev/null, | |
26298 | # effectively closing config.log, so it can be properly (re)opened and | |
26299 | # appended to by config.status. When coming back to configure, we | |
26300 | # need to make the FD available again. | |
26301 | if test "$no_create" != yes; then | |
26302 | ac_cs_success=: | |
26303 | exec 5>/dev/null | |
26304 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
26305 | exec 5>>config.log | |
26306 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
26307 | # would make configure fail if this is the last instruction. | |
26308 | $ac_cs_success || { (exit 1); exit 1; } | |
26309 | fi | |
26310 | ||
26311 | if test "$all_tests" = "bad"; then | |
26312 | if test ! "$cache_file" = "/dev/null"; then | |
26313 | echo "" | |
26314 | echo "Please remove the file $cache_file after changing your setup" | |
26315 | echo "so that configure will find the changes next time." | |
26316 | echo "" | |
26317 | fi | |
26318 | else | |
26319 | echo "" | |
26320 | echo "Good - your configure finished. Start make now" | |
26321 | echo "" | |
26322 | fi |