1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for freealut library 1.1.0. |
---|
4 | # |
---|
5 | # Report bugs to <openal-devel@opensource.creative.com>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | ## --------------------- ## |
---|
11 | ## M4sh Initialization. ## |
---|
12 | ## --------------------- ## |
---|
13 | |
---|
14 | # Be Bourne compatible |
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
16 | emulate sh |
---|
17 | NULLCMD=: |
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
19 | # is contrary to our usage. Disable this feature. |
---|
20 | alias -g '${1+"$@"}'='"$@"' |
---|
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
22 | set -o posix |
---|
23 | fi |
---|
24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
25 | |
---|
26 | # Support unset when possible. |
---|
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
28 | as_unset=unset |
---|
29 | else |
---|
30 | as_unset=false |
---|
31 | fi |
---|
32 | |
---|
33 | |
---|
34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
35 | $as_unset ENV MAIL MAILPATH |
---|
36 | PS1='$ ' |
---|
37 | PS2='> ' |
---|
38 | PS4='+ ' |
---|
39 | |
---|
40 | # NLS nuisances. |
---|
41 | for as_var in \ |
---|
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
44 | LC_TELEPHONE LC_TIME |
---|
45 | do |
---|
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
47 | eval $as_var=C; export $as_var |
---|
48 | else |
---|
49 | $as_unset $as_var |
---|
50 | fi |
---|
51 | done |
---|
52 | |
---|
53 | # Required to use basename. |
---|
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
55 | as_expr=expr |
---|
56 | else |
---|
57 | as_expr=false |
---|
58 | fi |
---|
59 | |
---|
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
61 | as_basename=basename |
---|
62 | else |
---|
63 | as_basename=false |
---|
64 | fi |
---|
65 | |
---|
66 | |
---|
67 | # Name of the executable. |
---|
68 | as_me=`$as_basename "$0" || |
---|
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
70 | X"$0" : 'X\(//\)$' \| \ |
---|
71 | X"$0" : 'X\(/\)$' \| \ |
---|
72 | . : '\(.\)' 2>/dev/null || |
---|
73 | echo X/"$0" | |
---|
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
77 | s/.*/./; q'` |
---|
78 | |
---|
79 | |
---|
80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
81 | # Avoid depending upon Character Ranges. |
---|
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
85 | as_cr_digits='0123456789' |
---|
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
87 | |
---|
88 | # The user is always right. |
---|
89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
90 | echo "#! /bin/sh" >conf$$.sh |
---|
91 | echo "exit 0" >>conf$$.sh |
---|
92 | chmod +x conf$$.sh |
---|
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
94 | PATH_SEPARATOR=';' |
---|
95 | else |
---|
96 | PATH_SEPARATOR=: |
---|
97 | fi |
---|
98 | rm -f conf$$.sh |
---|
99 | fi |
---|
100 | |
---|
101 | |
---|
102 | as_lineno_1=$LINENO |
---|
103 | as_lineno_2=$LINENO |
---|
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
107 | # Find who we are. Look in the path if we contain no path at all |
---|
108 | # relative or not. |
---|
109 | case $0 in |
---|
110 | *[\\/]* ) as_myself=$0 ;; |
---|
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
112 | for as_dir in $PATH |
---|
113 | do |
---|
114 | IFS=$as_save_IFS |
---|
115 | test -z "$as_dir" && as_dir=. |
---|
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
117 | done |
---|
118 | |
---|
119 | ;; |
---|
120 | esac |
---|
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
122 | # in which case we are not to be found in the path. |
---|
123 | if test "x$as_myself" = x; then |
---|
124 | as_myself=$0 |
---|
125 | fi |
---|
126 | if test ! -f "$as_myself"; then |
---|
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
128 | { (exit 1); exit 1; }; } |
---|
129 | fi |
---|
130 | case $CONFIG_SHELL in |
---|
131 | '') |
---|
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
134 | do |
---|
135 | IFS=$as_save_IFS |
---|
136 | test -z "$as_dir" && as_dir=. |
---|
137 | for as_base in sh bash ksh sh5; do |
---|
138 | case $as_dir in |
---|
139 | /*) |
---|
140 | if ("$as_dir/$as_base" -c ' |
---|
141 | as_lineno_1=$LINENO |
---|
142 | as_lineno_2=$LINENO |
---|
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
148 | CONFIG_SHELL=$as_dir/$as_base |
---|
149 | export CONFIG_SHELL |
---|
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
151 | fi;; |
---|
152 | esac |
---|
153 | done |
---|
154 | done |
---|
155 | ;; |
---|
156 | esac |
---|
157 | |
---|
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
160 | # line-number line before each line; the second 'sed' does the real |
---|
161 | # work. The second script uses 'N' to pair each line-number line |
---|
162 | # with the numbered line, and appends trailing '-' during |
---|
163 | # substitution so that $LINENO is not a special case at line end. |
---|
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
166 | sed '=' <$as_myself | |
---|
167 | sed ' |
---|
168 | N |
---|
169 | s,$,-, |
---|
170 | : loop |
---|
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
172 | t loop |
---|
173 | s,-$,, |
---|
174 | s,^['$as_cr_digits']*\n,, |
---|
175 | ' >$as_me.lineno && |
---|
176 | chmod +x $as_me.lineno || |
---|
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
178 | { (exit 1); exit 1; }; } |
---|
179 | |
---|
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
181 | # (the dirname of $[0] is not the place where we might find the |
---|
182 | # original and so on. Autoconf is especially sensible to this). |
---|
183 | . ./$as_me.lineno |
---|
184 | # Exit status is that of the last command. |
---|
185 | exit |
---|
186 | } |
---|
187 | |
---|
188 | |
---|
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
191 | ' ECHO_T=' ' ;; |
---|
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
194 | esac |
---|
195 | |
---|
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
197 | as_expr=expr |
---|
198 | else |
---|
199 | as_expr=false |
---|
200 | fi |
---|
201 | |
---|
202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
203 | echo >conf$$.file |
---|
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
207 | if test -f conf$$.exe; then |
---|
208 | # Don't use ln at all; we don't have any links |
---|
209 | as_ln_s='cp -p' |
---|
210 | else |
---|
211 | as_ln_s='ln -s' |
---|
212 | fi |
---|
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
214 | as_ln_s=ln |
---|
215 | else |
---|
216 | as_ln_s='cp -p' |
---|
217 | fi |
---|
218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
219 | |
---|
220 | if mkdir -p . 2>/dev/null; then |
---|
221 | as_mkdir_p=: |
---|
222 | else |
---|
223 | test -d ./-p && rmdir ./-p |
---|
224 | as_mkdir_p=false |
---|
225 | fi |
---|
226 | |
---|
227 | as_executable_p="test -f" |
---|
228 | |
---|
229 | # Sed expression to map a string onto a valid CPP name. |
---|
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
231 | |
---|
232 | # Sed expression to map a string onto a valid variable name. |
---|
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
234 | |
---|
235 | |
---|
236 | # IFS |
---|
237 | # We need space, tab and new line, in precisely that order. |
---|
238 | as_nl=' |
---|
239 | ' |
---|
240 | IFS=" $as_nl" |
---|
241 | |
---|
242 | # CDPATH. |
---|
243 | $as_unset CDPATH |
---|
244 | |
---|
245 | |
---|
246 | |
---|
247 | # Check that we are running under the correct shell. |
---|
248 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
249 | |
---|
250 | case X$ECHO in |
---|
251 | X*--fallback-echo) |
---|
252 | # Remove one level of quotation (which was required for Make). |
---|
253 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
254 | ;; |
---|
255 | esac |
---|
256 | |
---|
257 | echo=${ECHO-echo} |
---|
258 | if test "X$1" = X--no-reexec; then |
---|
259 | # Discard the --no-reexec flag, and continue. |
---|
260 | shift |
---|
261 | elif test "X$1" = X--fallback-echo; then |
---|
262 | # Avoid inline document here, it may be left over |
---|
263 | : |
---|
264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
---|
265 | # Yippee, $echo works! |
---|
266 | : |
---|
267 | else |
---|
268 | # Restart under the correct shell. |
---|
269 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
270 | fi |
---|
271 | |
---|
272 | if test "X$1" = X--fallback-echo; then |
---|
273 | # used as fallback echo |
---|
274 | shift |
---|
275 | cat <<EOF |
---|
276 | $* |
---|
277 | EOF |
---|
278 | exit 0 |
---|
279 | fi |
---|
280 | |
---|
281 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
282 | # if CDPATH is set. |
---|
283 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
284 | |
---|
285 | if test -z "$ECHO"; then |
---|
286 | if test "X${echo_test_string+set}" != Xset; then |
---|
287 | # find a string as large as possible, as long as the shell can cope with it |
---|
288 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
289 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
290 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
---|
291 | echo_test_string="`eval $cmd`" && |
---|
292 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
293 | then |
---|
294 | break |
---|
295 | fi |
---|
296 | done |
---|
297 | fi |
---|
298 | |
---|
299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
300 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
301 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
302 | : |
---|
303 | else |
---|
304 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
305 | # backslashes. This makes it impossible to quote backslashes using |
---|
306 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
307 | # |
---|
308 | # So, first we look for a working echo in the user's PATH. |
---|
309 | |
---|
310 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
311 | for dir in $PATH /usr/ucb; do |
---|
312 | IFS="$lt_save_ifs" |
---|
313 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
314 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
315 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
316 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
317 | echo="$dir/echo" |
---|
318 | break |
---|
319 | fi |
---|
320 | done |
---|
321 | IFS="$lt_save_ifs" |
---|
322 | |
---|
323 | if test "X$echo" = Xecho; then |
---|
324 | # We didn't find a better echo, so look for alternatives. |
---|
325 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
326 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
327 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
328 | # This shell has a builtin print -r that does the trick. |
---|
329 | echo='print -r' |
---|
330 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
331 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
332 | # If we have ksh, try running configure again with it. |
---|
333 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
334 | export ORIGINAL_CONFIG_SHELL |
---|
335 | CONFIG_SHELL=/bin/ksh |
---|
336 | export CONFIG_SHELL |
---|
337 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
338 | else |
---|
339 | # Try using printf. |
---|
340 | echo='printf %s\n' |
---|
341 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
342 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
343 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
344 | # Cool, printf works |
---|
345 | : |
---|
346 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
347 | test "X$echo_testing_string" = 'X\t' && |
---|
348 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
350 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
351 | export CONFIG_SHELL |
---|
352 | SHELL="$CONFIG_SHELL" |
---|
353 | export SHELL |
---|
354 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
355 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
356 | test "X$echo_testing_string" = 'X\t' && |
---|
357 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
359 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
360 | else |
---|
361 | # maybe with a smaller string... |
---|
362 | prev=: |
---|
363 | |
---|
364 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
365 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
366 | then |
---|
367 | break |
---|
368 | fi |
---|
369 | prev="$cmd" |
---|
370 | done |
---|
371 | |
---|
372 | if test "$prev" != 'sed 50q "$0"'; then |
---|
373 | echo_test_string=`eval $prev` |
---|
374 | export echo_test_string |
---|
375 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
376 | else |
---|
377 | # Oops. We lost completely, so just stick with echo. |
---|
378 | echo=echo |
---|
379 | fi |
---|
380 | fi |
---|
381 | fi |
---|
382 | fi |
---|
383 | fi |
---|
384 | fi |
---|
385 | |
---|
386 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
387 | # the Makefile, instead of quoting the original, which is used later. |
---|
388 | ECHO=$echo |
---|
389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
390 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
391 | fi |
---|
392 | |
---|
393 | |
---|
394 | |
---|
395 | |
---|
396 | tagnames=${tagnames+${tagnames},}CXX |
---|
397 | |
---|
398 | tagnames=${tagnames+${tagnames},}F77 |
---|
399 | |
---|
400 | # Name of the host. |
---|
401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
402 | # so uname gets run too. |
---|
403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
404 | |
---|
405 | exec 6>&1 |
---|
406 | |
---|
407 | # |
---|
408 | # Initializations. |
---|
409 | # |
---|
410 | ac_default_prefix=/usr/local |
---|
411 | ac_config_libobj_dir=. |
---|
412 | cross_compiling=no |
---|
413 | subdirs= |
---|
414 | MFLAGS= |
---|
415 | MAKEFLAGS= |
---|
416 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
417 | |
---|
418 | # Maximum number of lines to put in a shell here document. |
---|
419 | # This variable seems obsolete. It should probably be removed, and |
---|
420 | # only ac_max_sed_lines should be used. |
---|
421 | : ${ac_max_here_lines=38} |
---|
422 | |
---|
423 | # Identity of this package. |
---|
424 | PACKAGE_NAME='freealut library' |
---|
425 | PACKAGE_TARNAME='freealut' |
---|
426 | PACKAGE_VERSION='1.1.0' |
---|
427 | PACKAGE_STRING='freealut library 1.1.0' |
---|
428 | PACKAGE_BUGREPORT='openal-devel@opensource.creative.com' |
---|
429 | |
---|
430 | ac_unique_file="AUTHORS" |
---|
431 | # Factoring default headers for most tests. |
---|
432 | ac_includes_default="\ |
---|
433 | #include <stdio.h> |
---|
434 | #if HAVE_SYS_TYPES_H |
---|
435 | # include <sys/types.h> |
---|
436 | #endif |
---|
437 | #if HAVE_SYS_STAT_H |
---|
438 | # include <sys/stat.h> |
---|
439 | #endif |
---|
440 | #if STDC_HEADERS |
---|
441 | # include <stdlib.h> |
---|
442 | # include <stddef.h> |
---|
443 | #else |
---|
444 | # if HAVE_STDLIB_H |
---|
445 | # include <stdlib.h> |
---|
446 | # endif |
---|
447 | #endif |
---|
448 | #if HAVE_STRING_H |
---|
449 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
450 | # include <memory.h> |
---|
451 | # endif |
---|
452 | # include <string.h> |
---|
453 | #endif |
---|
454 | #if HAVE_STRINGS_H |
---|
455 | # include <strings.h> |
---|
456 | #endif |
---|
457 | #if HAVE_INTTYPES_H |
---|
458 | # include <inttypes.h> |
---|
459 | #else |
---|
460 | # if HAVE_STDINT_H |
---|
461 | # include <stdint.h> |
---|
462 | # endif |
---|
463 | #endif |
---|
464 | #if HAVE_UNISTD_H |
---|
465 | # include <unistd.h> |
---|
466 | #endif" |
---|
467 | |
---|
468 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar VERSIONINFO CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE WNO_DEPRECATED_DECLARATIONS_TRUE WNO_DEPRECATED_DECLARATIONS_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LIBM AM_CFLAGS LIBOBJS LTLIBOBJS' |
---|
469 | ac_subst_files='' |
---|
470 | |
---|
471 | # Initialize some variables set by options. |
---|
472 | ac_init_help= |
---|
473 | ac_init_version=false |
---|
474 | # The variables have the same names as the options, with |
---|
475 | # dashes changed to underlines. |
---|
476 | cache_file=/dev/null |
---|
477 | exec_prefix=NONE |
---|
478 | no_create= |
---|
479 | no_recursion= |
---|
480 | prefix=NONE |
---|
481 | program_prefix=NONE |
---|
482 | program_suffix=NONE |
---|
483 | program_transform_name=s,x,x, |
---|
484 | silent= |
---|
485 | site= |
---|
486 | srcdir= |
---|
487 | verbose= |
---|
488 | x_includes=NONE |
---|
489 | x_libraries=NONE |
---|
490 | |
---|
491 | # Installation directory options. |
---|
492 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
493 | # and all the variables that are supposed to be based on exec_prefix |
---|
494 | # by default will actually change. |
---|
495 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
496 | bindir='${exec_prefix}/bin' |
---|
497 | sbindir='${exec_prefix}/sbin' |
---|
498 | libexecdir='${exec_prefix}/libexec' |
---|
499 | datadir='${prefix}/share' |
---|
500 | sysconfdir='${prefix}/etc' |
---|
501 | sharedstatedir='${prefix}/com' |
---|
502 | localstatedir='${prefix}/var' |
---|
503 | libdir='${exec_prefix}/lib' |
---|
504 | includedir='${prefix}/include' |
---|
505 | oldincludedir='/usr/include' |
---|
506 | infodir='${prefix}/info' |
---|
507 | mandir='${prefix}/man' |
---|
508 | |
---|
509 | ac_prev= |
---|
510 | for ac_option |
---|
511 | do |
---|
512 | # If the previous option needs an argument, assign it. |
---|
513 | if test -n "$ac_prev"; then |
---|
514 | eval "$ac_prev=\$ac_option" |
---|
515 | ac_prev= |
---|
516 | continue |
---|
517 | fi |
---|
518 | |
---|
519 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
520 | |
---|
521 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
522 | |
---|
523 | case $ac_option in |
---|
524 | |
---|
525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
526 | ac_prev=bindir ;; |
---|
527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
528 | bindir=$ac_optarg ;; |
---|
529 | |
---|
530 | -build | --build | --buil | --bui | --bu) |
---|
531 | ac_prev=build_alias ;; |
---|
532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
533 | build_alias=$ac_optarg ;; |
---|
534 | |
---|
535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
537 | ac_prev=cache_file ;; |
---|
538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
540 | cache_file=$ac_optarg ;; |
---|
541 | |
---|
542 | --config-cache | -C) |
---|
543 | cache_file=config.cache ;; |
---|
544 | |
---|
545 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
546 | ac_prev=datadir ;; |
---|
547 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
548 | | --da=*) |
---|
549 | datadir=$ac_optarg ;; |
---|
550 | |
---|
551 | -disable-* | --disable-*) |
---|
552 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
553 | # Reject names that are not valid shell variable names. |
---|
554 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
555 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
556 | { (exit 1); exit 1; }; } |
---|
557 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
558 | eval "enable_$ac_feature=no" ;; |
---|
559 | |
---|
560 | -enable-* | --enable-*) |
---|
561 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
562 | # Reject names that are not valid shell variable names. |
---|
563 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
564 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
565 | { (exit 1); exit 1; }; } |
---|
566 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
567 | case $ac_option in |
---|
568 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
569 | *) ac_optarg=yes ;; |
---|
570 | esac |
---|
571 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
572 | |
---|
573 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
574 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
575 | | --exec | --exe | --ex) |
---|
576 | ac_prev=exec_prefix ;; |
---|
577 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
578 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
579 | | --exec=* | --exe=* | --ex=*) |
---|
580 | exec_prefix=$ac_optarg ;; |
---|
581 | |
---|
582 | -gas | --gas | --ga | --g) |
---|
583 | # Obsolete; use --with-gas. |
---|
584 | with_gas=yes ;; |
---|
585 | |
---|
586 | -help | --help | --hel | --he | -h) |
---|
587 | ac_init_help=long ;; |
---|
588 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
589 | ac_init_help=recursive ;; |
---|
590 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
591 | ac_init_help=short ;; |
---|
592 | |
---|
593 | -host | --host | --hos | --ho) |
---|
594 | ac_prev=host_alias ;; |
---|
595 | -host=* | --host=* | --hos=* | --ho=*) |
---|
596 | host_alias=$ac_optarg ;; |
---|
597 | |
---|
598 | -includedir | --includedir | --includedi | --included | --include \ |
---|
599 | | --includ | --inclu | --incl | --inc) |
---|
600 | ac_prev=includedir ;; |
---|
601 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
602 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
603 | includedir=$ac_optarg ;; |
---|
604 | |
---|
605 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
606 | ac_prev=infodir ;; |
---|
607 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
608 | infodir=$ac_optarg ;; |
---|
609 | |
---|
610 | -libdir | --libdir | --libdi | --libd) |
---|
611 | ac_prev=libdir ;; |
---|
612 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
613 | libdir=$ac_optarg ;; |
---|
614 | |
---|
615 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
616 | | --libexe | --libex | --libe) |
---|
617 | ac_prev=libexecdir ;; |
---|
618 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
619 | | --libexe=* | --libex=* | --libe=*) |
---|
620 | libexecdir=$ac_optarg ;; |
---|
621 | |
---|
622 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
623 | | --localstate | --localstat | --localsta | --localst \ |
---|
624 | | --locals | --local | --loca | --loc | --lo) |
---|
625 | ac_prev=localstatedir ;; |
---|
626 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
627 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
628 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
629 | localstatedir=$ac_optarg ;; |
---|
630 | |
---|
631 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
632 | ac_prev=mandir ;; |
---|
633 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
634 | mandir=$ac_optarg ;; |
---|
635 | |
---|
636 | -nfp | --nfp | --nf) |
---|
637 | # Obsolete; use --without-fp. |
---|
638 | with_fp=no ;; |
---|
639 | |
---|
640 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
641 | | --no-cr | --no-c | -n) |
---|
642 | no_create=yes ;; |
---|
643 | |
---|
644 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
645 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
646 | no_recursion=yes ;; |
---|
647 | |
---|
648 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
649 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
650 | | --oldin | --oldi | --old | --ol | --o) |
---|
651 | ac_prev=oldincludedir ;; |
---|
652 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
653 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
654 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
655 | oldincludedir=$ac_optarg ;; |
---|
656 | |
---|
657 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
658 | ac_prev=prefix ;; |
---|
659 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
660 | prefix=$ac_optarg ;; |
---|
661 | |
---|
662 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
663 | | --program-pre | --program-pr | --program-p) |
---|
664 | ac_prev=program_prefix ;; |
---|
665 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
666 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
667 | program_prefix=$ac_optarg ;; |
---|
668 | |
---|
669 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
670 | | --program-suf | --program-su | --program-s) |
---|
671 | ac_prev=program_suffix ;; |
---|
672 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
673 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
674 | program_suffix=$ac_optarg ;; |
---|
675 | |
---|
676 | -program-transform-name | --program-transform-name \ |
---|
677 | | --program-transform-nam | --program-transform-na \ |
---|
678 | | --program-transform-n | --program-transform- \ |
---|
679 | | --program-transform | --program-transfor \ |
---|
680 | | --program-transfo | --program-transf \ |
---|
681 | | --program-trans | --program-tran \ |
---|
682 | | --progr-tra | --program-tr | --program-t) |
---|
683 | ac_prev=program_transform_name ;; |
---|
684 | -program-transform-name=* | --program-transform-name=* \ |
---|
685 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
686 | | --program-transform-n=* | --program-transform-=* \ |
---|
687 | | --program-transform=* | --program-transfor=* \ |
---|
688 | | --program-transfo=* | --program-transf=* \ |
---|
689 | | --program-trans=* | --program-tran=* \ |
---|
690 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
691 | program_transform_name=$ac_optarg ;; |
---|
692 | |
---|
693 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
694 | | -silent | --silent | --silen | --sile | --sil) |
---|
695 | silent=yes ;; |
---|
696 | |
---|
697 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
698 | ac_prev=sbindir ;; |
---|
699 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
700 | | --sbi=* | --sb=*) |
---|
701 | sbindir=$ac_optarg ;; |
---|
702 | |
---|
703 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
704 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
705 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
706 | | --sha | --sh) |
---|
707 | ac_prev=sharedstatedir ;; |
---|
708 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
709 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
710 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
711 | | --sha=* | --sh=*) |
---|
712 | sharedstatedir=$ac_optarg ;; |
---|
713 | |
---|
714 | -site | --site | --sit) |
---|
715 | ac_prev=site ;; |
---|
716 | -site=* | --site=* | --sit=*) |
---|
717 | site=$ac_optarg ;; |
---|
718 | |
---|
719 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
720 | ac_prev=srcdir ;; |
---|
721 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
722 | srcdir=$ac_optarg ;; |
---|
723 | |
---|
724 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
725 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
726 | ac_prev=sysconfdir ;; |
---|
727 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
728 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
729 | sysconfdir=$ac_optarg ;; |
---|
730 | |
---|
731 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
732 | ac_prev=target_alias ;; |
---|
733 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
734 | target_alias=$ac_optarg ;; |
---|
735 | |
---|
736 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
737 | verbose=yes ;; |
---|
738 | |
---|
739 | -version | --version | --versio | --versi | --vers | -V) |
---|
740 | ac_init_version=: ;; |
---|
741 | |
---|
742 | -with-* | --with-*) |
---|
743 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
744 | # Reject names that are not valid shell variable names. |
---|
745 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
746 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
747 | { (exit 1); exit 1; }; } |
---|
748 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
749 | case $ac_option in |
---|
750 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
751 | *) ac_optarg=yes ;; |
---|
752 | esac |
---|
753 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
754 | |
---|
755 | -without-* | --without-*) |
---|
756 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
757 | # Reject names that are not valid shell variable names. |
---|
758 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
759 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
760 | { (exit 1); exit 1; }; } |
---|
761 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
762 | eval "with_$ac_package=no" ;; |
---|
763 | |
---|
764 | --x) |
---|
765 | # Obsolete; use --with-x. |
---|
766 | with_x=yes ;; |
---|
767 | |
---|
768 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
769 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
770 | ac_prev=x_includes ;; |
---|
771 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
772 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
773 | x_includes=$ac_optarg ;; |
---|
774 | |
---|
775 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
776 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
777 | ac_prev=x_libraries ;; |
---|
778 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
779 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
780 | x_libraries=$ac_optarg ;; |
---|
781 | |
---|
782 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
783 | Try \`$0 --help' for more information." >&2 |
---|
784 | { (exit 1); exit 1; }; } |
---|
785 | ;; |
---|
786 | |
---|
787 | *=*) |
---|
788 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
789 | # Reject names that are not valid shell variable names. |
---|
790 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
791 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
792 | { (exit 1); exit 1; }; } |
---|
793 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
794 | eval "$ac_envvar='$ac_optarg'" |
---|
795 | export $ac_envvar ;; |
---|
796 | |
---|
797 | *) |
---|
798 | # FIXME: should be removed in autoconf 3.0. |
---|
799 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
800 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
801 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
802 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
803 | ;; |
---|
804 | |
---|
805 | esac |
---|
806 | done |
---|
807 | |
---|
808 | if test -n "$ac_prev"; then |
---|
809 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
810 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
811 | { (exit 1); exit 1; }; } |
---|
812 | fi |
---|
813 | |
---|
814 | # Be sure to have absolute paths. |
---|
815 | for ac_var in exec_prefix prefix |
---|
816 | do |
---|
817 | eval ac_val=$`echo $ac_var` |
---|
818 | case $ac_val in |
---|
819 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
820 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
821 | { (exit 1); exit 1; }; };; |
---|
822 | esac |
---|
823 | done |
---|
824 | |
---|
825 | # Be sure to have absolute paths. |
---|
826 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
827 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
828 | do |
---|
829 | eval ac_val=$`echo $ac_var` |
---|
830 | case $ac_val in |
---|
831 | [\\/$]* | ?:[\\/]* ) ;; |
---|
832 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
833 | { (exit 1); exit 1; }; };; |
---|
834 | esac |
---|
835 | done |
---|
836 | |
---|
837 | # There might be people who depend on the old broken behavior: `$host' |
---|
838 | # used to hold the argument of --host etc. |
---|
839 | # FIXME: To remove some day. |
---|
840 | build=$build_alias |
---|
841 | host=$host_alias |
---|
842 | target=$target_alias |
---|
843 | |
---|
844 | # FIXME: To remove some day. |
---|
845 | if test "x$host_alias" != x; then |
---|
846 | if test "x$build_alias" = x; then |
---|
847 | cross_compiling=maybe |
---|
848 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
849 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
850 | elif test "x$build_alias" != "x$host_alias"; then |
---|
851 | cross_compiling=yes |
---|
852 | fi |
---|
853 | fi |
---|
854 | |
---|
855 | ac_tool_prefix= |
---|
856 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
857 | |
---|
858 | test "$silent" = yes && exec 6>/dev/null |
---|
859 | |
---|
860 | |
---|
861 | # Find the source files, if location was not specified. |
---|
862 | if test -z "$srcdir"; then |
---|
863 | ac_srcdir_defaulted=yes |
---|
864 | # Try the directory containing this script, then its parent. |
---|
865 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
866 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
867 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
868 | X"$0" : 'X\(//\)$' \| \ |
---|
869 | X"$0" : 'X\(/\)' \| \ |
---|
870 | . : '\(.\)' 2>/dev/null || |
---|
871 | echo X"$0" | |
---|
872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
873 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
874 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
875 | /^X\(\/\).*/{ s//\1/; q; } |
---|
876 | s/.*/./; q'` |
---|
877 | srcdir=$ac_confdir |
---|
878 | if test ! -r $srcdir/$ac_unique_file; then |
---|
879 | srcdir=.. |
---|
880 | fi |
---|
881 | else |
---|
882 | ac_srcdir_defaulted=no |
---|
883 | fi |
---|
884 | if test ! -r $srcdir/$ac_unique_file; then |
---|
885 | if test "$ac_srcdir_defaulted" = yes; then |
---|
886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
887 | { (exit 1); exit 1; }; } |
---|
888 | else |
---|
889 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
890 | { (exit 1); exit 1; }; } |
---|
891 | fi |
---|
892 | fi |
---|
893 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
894 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
895 | { (exit 1); exit 1; }; } |
---|
896 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
897 | ac_env_build_alias_set=${build_alias+set} |
---|
898 | ac_env_build_alias_value=$build_alias |
---|
899 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
900 | ac_cv_env_build_alias_value=$build_alias |
---|
901 | ac_env_host_alias_set=${host_alias+set} |
---|
902 | ac_env_host_alias_value=$host_alias |
---|
903 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
904 | ac_cv_env_host_alias_value=$host_alias |
---|
905 | ac_env_target_alias_set=${target_alias+set} |
---|
906 | ac_env_target_alias_value=$target_alias |
---|
907 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
908 | ac_cv_env_target_alias_value=$target_alias |
---|
909 | ac_env_CC_set=${CC+set} |
---|
910 | ac_env_CC_value=$CC |
---|
911 | ac_cv_env_CC_set=${CC+set} |
---|
912 | ac_cv_env_CC_value=$CC |
---|
913 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
914 | ac_env_CFLAGS_value=$CFLAGS |
---|
915 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
916 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
917 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
918 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
920 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
921 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
922 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
923 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
924 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
925 | ac_env_CPP_set=${CPP+set} |
---|
926 | ac_env_CPP_value=$CPP |
---|
927 | ac_cv_env_CPP_set=${CPP+set} |
---|
928 | ac_cv_env_CPP_value=$CPP |
---|
929 | ac_env_CXX_set=${CXX+set} |
---|
930 | ac_env_CXX_value=$CXX |
---|
931 | ac_cv_env_CXX_set=${CXX+set} |
---|
932 | ac_cv_env_CXX_value=$CXX |
---|
933 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
934 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
935 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
936 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
937 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
938 | ac_env_CXXCPP_value=$CXXCPP |
---|
939 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
940 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
941 | ac_env_F77_set=${F77+set} |
---|
942 | ac_env_F77_value=$F77 |
---|
943 | ac_cv_env_F77_set=${F77+set} |
---|
944 | ac_cv_env_F77_value=$F77 |
---|
945 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
946 | ac_env_FFLAGS_value=$FFLAGS |
---|
947 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
948 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
949 | |
---|
950 | # |
---|
951 | # Report the --help message. |
---|
952 | # |
---|
953 | if test "$ac_init_help" = "long"; then |
---|
954 | # Omit some internal or obsolete options to make the list less imposing. |
---|
955 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
956 | cat <<_ACEOF |
---|
957 | \`configure' configures freealut library 1.1.0 to adapt to many kinds of systems. |
---|
958 | |
---|
959 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
960 | |
---|
961 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
962 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
963 | |
---|
964 | Defaults for the options are specified in brackets. |
---|
965 | |
---|
966 | Configuration: |
---|
967 | -h, --help display this help and exit |
---|
968 | --help=short display options specific to this package |
---|
969 | --help=recursive display the short help of all the included packages |
---|
970 | -V, --version display version information and exit |
---|
971 | -q, --quiet, --silent do not print \`checking...' messages |
---|
972 | --cache-file=FILE cache test results in FILE [disabled] |
---|
973 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
974 | -n, --no-create do not create output files |
---|
975 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
976 | |
---|
977 | _ACEOF |
---|
978 | |
---|
979 | cat <<_ACEOF |
---|
980 | Installation directories: |
---|
981 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
982 | [$ac_default_prefix] |
---|
983 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
984 | [PREFIX] |
---|
985 | |
---|
986 | By default, \`make install' will install all the files in |
---|
987 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
988 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
989 | for instance \`--prefix=\$HOME'. |
---|
990 | |
---|
991 | For better control, use the options below. |
---|
992 | |
---|
993 | Fine tuning of the installation directories: |
---|
994 | --bindir=DIR user executables [EPREFIX/bin] |
---|
995 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
996 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
997 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
998 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
999 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1000 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1001 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1002 | --includedir=DIR C header files [PREFIX/include] |
---|
1003 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1004 | --infodir=DIR info documentation [PREFIX/info] |
---|
1005 | --mandir=DIR man documentation [PREFIX/man] |
---|
1006 | _ACEOF |
---|
1007 | |
---|
1008 | cat <<\_ACEOF |
---|
1009 | |
---|
1010 | Program names: |
---|
1011 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1012 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1013 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1014 | |
---|
1015 | System types: |
---|
1016 | --build=BUILD configure for building on BUILD [guessed] |
---|
1017 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1018 | _ACEOF |
---|
1019 | fi |
---|
1020 | |
---|
1021 | if test -n "$ac_init_help"; then |
---|
1022 | case $ac_init_help in |
---|
1023 | short | recursive ) echo "Configuration of freealut library 1.1.0:";; |
---|
1024 | esac |
---|
1025 | cat <<\_ACEOF |
---|
1026 | |
---|
1027 | Optional Features: |
---|
1028 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1029 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1030 | --disable-dependency-tracking speeds up one-time build |
---|
1031 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1032 | --enable-shared[=PKGS] |
---|
1033 | build shared libraries [default=yes] |
---|
1034 | --enable-static[=PKGS] |
---|
1035 | build static libraries [default=yes] |
---|
1036 | --enable-fast-install[=PKGS] |
---|
1037 | optimize for fast installation [default=yes] |
---|
1038 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1039 | --enable-warnings enable pedantic compiler warnings |
---|
1040 | [default=yes] |
---|
1041 | --enable-more-warnings enable even more compiler warnings |
---|
1042 | [default=no] |
---|
1043 | --enable-werror enable failure on all warnings [default=no] |
---|
1044 | --enable-efence enable Electric Fence support [default=no] |
---|
1045 | |
---|
1046 | Optional Packages: |
---|
1047 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1048 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1049 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1050 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1051 | both] |
---|
1052 | --with-tags[=TAGS] |
---|
1053 | include additional configurations [automatic] |
---|
1054 | |
---|
1055 | Some influential environment variables: |
---|
1056 | CC C compiler command |
---|
1057 | CFLAGS C compiler flags |
---|
1058 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1059 | nonstandard directory <lib dir> |
---|
1060 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1061 | headers in a nonstandard directory <include dir> |
---|
1062 | CPP C preprocessor |
---|
1063 | CXX C++ compiler command |
---|
1064 | CXXFLAGS C++ compiler flags |
---|
1065 | CXXCPP C++ preprocessor |
---|
1066 | F77 Fortran 77 compiler command |
---|
1067 | FFLAGS Fortran 77 compiler flags |
---|
1068 | |
---|
1069 | Use these variables to override the choices made by `configure' or to help |
---|
1070 | it to find libraries and programs with nonstandard names/locations. |
---|
1071 | |
---|
1072 | Report bugs to <openal-devel@opensource.creative.com>. |
---|
1073 | _ACEOF |
---|
1074 | fi |
---|
1075 | |
---|
1076 | if test "$ac_init_help" = "recursive"; then |
---|
1077 | # If there are subdirs, report their specific --help. |
---|
1078 | ac_popdir=`pwd` |
---|
1079 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1080 | test -d $ac_dir || continue |
---|
1081 | ac_builddir=. |
---|
1082 | |
---|
1083 | if test "$ac_dir" != .; then |
---|
1084 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1085 | # A "../" for each directory in $ac_dir_suffix. |
---|
1086 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1087 | else |
---|
1088 | ac_dir_suffix= ac_top_builddir= |
---|
1089 | fi |
---|
1090 | |
---|
1091 | case $srcdir in |
---|
1092 | .) # No --srcdir option. We are building in place. |
---|
1093 | ac_srcdir=. |
---|
1094 | if test -z "$ac_top_builddir"; then |
---|
1095 | ac_top_srcdir=. |
---|
1096 | else |
---|
1097 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1098 | fi ;; |
---|
1099 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1100 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1101 | ac_top_srcdir=$srcdir ;; |
---|
1102 | *) # Relative path. |
---|
1103 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1104 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1105 | esac |
---|
1106 | |
---|
1107 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1108 | # the directories may not exist. |
---|
1109 | case `pwd` in |
---|
1110 | .) ac_abs_builddir="$ac_dir";; |
---|
1111 | *) |
---|
1112 | case "$ac_dir" in |
---|
1113 | .) ac_abs_builddir=`pwd`;; |
---|
1114 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1115 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1116 | esac;; |
---|
1117 | esac |
---|
1118 | case $ac_abs_builddir in |
---|
1119 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1120 | *) |
---|
1121 | case ${ac_top_builddir}. in |
---|
1122 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1123 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1124 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1125 | esac;; |
---|
1126 | esac |
---|
1127 | case $ac_abs_builddir in |
---|
1128 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1129 | *) |
---|
1130 | case $ac_srcdir in |
---|
1131 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1132 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1133 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1134 | esac;; |
---|
1135 | esac |
---|
1136 | case $ac_abs_builddir in |
---|
1137 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1138 | *) |
---|
1139 | case $ac_top_srcdir in |
---|
1140 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1141 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1142 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1143 | esac;; |
---|
1144 | esac |
---|
1145 | |
---|
1146 | cd $ac_dir |
---|
1147 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1148 | if test -f $ac_srcdir/configure.gnu; then |
---|
1149 | echo |
---|
1150 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1151 | elif test -f $ac_srcdir/configure; then |
---|
1152 | echo |
---|
1153 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1154 | elif test -f $ac_srcdir/configure.ac || |
---|
1155 | test -f $ac_srcdir/configure.in; then |
---|
1156 | echo |
---|
1157 | $ac_configure --help |
---|
1158 | else |
---|
1159 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1160 | fi |
---|
1161 | cd $ac_popdir |
---|
1162 | done |
---|
1163 | fi |
---|
1164 | |
---|
1165 | test -n "$ac_init_help" && exit 0 |
---|
1166 | if $ac_init_version; then |
---|
1167 | cat <<\_ACEOF |
---|
1168 | freealut library configure 1.1.0 |
---|
1169 | generated by GNU Autoconf 2.59 |
---|
1170 | |
---|
1171 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1172 | This configure script is free software; the Free Software Foundation |
---|
1173 | gives unlimited permission to copy, distribute and modify it. |
---|
1174 | _ACEOF |
---|
1175 | exit 0 |
---|
1176 | fi |
---|
1177 | exec 5>config.log |
---|
1178 | cat >&5 <<_ACEOF |
---|
1179 | This file contains any messages produced by compilers while |
---|
1180 | running configure, to aid debugging if configure makes a mistake. |
---|
1181 | |
---|
1182 | It was created by freealut library $as_me 1.1.0, which was |
---|
1183 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1184 | |
---|
1185 | $ $0 $@ |
---|
1186 | |
---|
1187 | _ACEOF |
---|
1188 | { |
---|
1189 | cat <<_ASUNAME |
---|
1190 | ## --------- ## |
---|
1191 | ## Platform. ## |
---|
1192 | ## --------- ## |
---|
1193 | |
---|
1194 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1195 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1196 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1197 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1198 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1199 | |
---|
1200 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1201 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1202 | |
---|
1203 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1204 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1205 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1206 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1207 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1208 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1209 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1210 | |
---|
1211 | _ASUNAME |
---|
1212 | |
---|
1213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1214 | for as_dir in $PATH |
---|
1215 | do |
---|
1216 | IFS=$as_save_IFS |
---|
1217 | test -z "$as_dir" && as_dir=. |
---|
1218 | echo "PATH: $as_dir" |
---|
1219 | done |
---|
1220 | |
---|
1221 | } >&5 |
---|
1222 | |
---|
1223 | cat >&5 <<_ACEOF |
---|
1224 | |
---|
1225 | |
---|
1226 | ## ----------- ## |
---|
1227 | ## Core tests. ## |
---|
1228 | ## ----------- ## |
---|
1229 | |
---|
1230 | _ACEOF |
---|
1231 | |
---|
1232 | |
---|
1233 | # Keep a trace of the command line. |
---|
1234 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1235 | # Strip out --silent because we don't want to record it for future runs. |
---|
1236 | # Also quote any args containing shell meta-characters. |
---|
1237 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1238 | ac_configure_args= |
---|
1239 | ac_configure_args0= |
---|
1240 | ac_configure_args1= |
---|
1241 | ac_sep= |
---|
1242 | ac_must_keep_next=false |
---|
1243 | for ac_pass in 1 2 |
---|
1244 | do |
---|
1245 | for ac_arg |
---|
1246 | do |
---|
1247 | case $ac_arg in |
---|
1248 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1249 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1250 | | -silent | --silent | --silen | --sile | --sil) |
---|
1251 | continue ;; |
---|
1252 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1253 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1254 | esac |
---|
1255 | case $ac_pass in |
---|
1256 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1257 | 2) |
---|
1258 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1259 | if test $ac_must_keep_next = true; then |
---|
1260 | ac_must_keep_next=false # Got value, back to normal. |
---|
1261 | else |
---|
1262 | case $ac_arg in |
---|
1263 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1264 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1265 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1266 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1267 | case "$ac_configure_args0 " in |
---|
1268 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1269 | esac |
---|
1270 | ;; |
---|
1271 | -* ) ac_must_keep_next=true ;; |
---|
1272 | esac |
---|
1273 | fi |
---|
1274 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1275 | # Get rid of the leading space. |
---|
1276 | ac_sep=" " |
---|
1277 | ;; |
---|
1278 | esac |
---|
1279 | done |
---|
1280 | done |
---|
1281 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1282 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1283 | |
---|
1284 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1285 | # config.log. We remove comments because anyway the quotes in there |
---|
1286 | # would cause problems or look ugly. |
---|
1287 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1288 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1289 | trap 'exit_status=$? |
---|
1290 | # Save into config.log some information that might help in debugging. |
---|
1291 | { |
---|
1292 | echo |
---|
1293 | |
---|
1294 | cat <<\_ASBOX |
---|
1295 | ## ---------------- ## |
---|
1296 | ## Cache variables. ## |
---|
1297 | ## ---------------- ## |
---|
1298 | _ASBOX |
---|
1299 | echo |
---|
1300 | # The following way of writing the cache mishandles newlines in values, |
---|
1301 | { |
---|
1302 | (set) 2>&1 | |
---|
1303 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1304 | *ac_space=\ *) |
---|
1305 | sed -n \ |
---|
1306 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1307 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1308 | ;; |
---|
1309 | *) |
---|
1310 | sed -n \ |
---|
1311 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1312 | ;; |
---|
1313 | esac; |
---|
1314 | } |
---|
1315 | echo |
---|
1316 | |
---|
1317 | cat <<\_ASBOX |
---|
1318 | ## ----------------- ## |
---|
1319 | ## Output variables. ## |
---|
1320 | ## ----------------- ## |
---|
1321 | _ASBOX |
---|
1322 | echo |
---|
1323 | for ac_var in $ac_subst_vars |
---|
1324 | do |
---|
1325 | eval ac_val=$`echo $ac_var` |
---|
1326 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1327 | done | sort |
---|
1328 | echo |
---|
1329 | |
---|
1330 | if test -n "$ac_subst_files"; then |
---|
1331 | cat <<\_ASBOX |
---|
1332 | ## ------------- ## |
---|
1333 | ## Output files. ## |
---|
1334 | ## ------------- ## |
---|
1335 | _ASBOX |
---|
1336 | echo |
---|
1337 | for ac_var in $ac_subst_files |
---|
1338 | do |
---|
1339 | eval ac_val=$`echo $ac_var` |
---|
1340 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1341 | done | sort |
---|
1342 | echo |
---|
1343 | fi |
---|
1344 | |
---|
1345 | if test -s confdefs.h; then |
---|
1346 | cat <<\_ASBOX |
---|
1347 | ## ----------- ## |
---|
1348 | ## confdefs.h. ## |
---|
1349 | ## ----------- ## |
---|
1350 | _ASBOX |
---|
1351 | echo |
---|
1352 | sed "/^$/d" confdefs.h | sort |
---|
1353 | echo |
---|
1354 | fi |
---|
1355 | test "$ac_signal" != 0 && |
---|
1356 | echo "$as_me: caught signal $ac_signal" |
---|
1357 | echo "$as_me: exit $exit_status" |
---|
1358 | } >&5 |
---|
1359 | rm -f core *.core && |
---|
1360 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1361 | exit $exit_status |
---|
1362 | ' 0 |
---|
1363 | for ac_signal in 1 2 13 15; do |
---|
1364 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1365 | done |
---|
1366 | ac_signal=0 |
---|
1367 | |
---|
1368 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1369 | rm -rf conftest* confdefs.h |
---|
1370 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1371 | echo >confdefs.h |
---|
1372 | |
---|
1373 | # Predefined preprocessor variables. |
---|
1374 | |
---|
1375 | cat >>confdefs.h <<_ACEOF |
---|
1376 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1377 | _ACEOF |
---|
1378 | |
---|
1379 | |
---|
1380 | cat >>confdefs.h <<_ACEOF |
---|
1381 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1382 | _ACEOF |
---|
1383 | |
---|
1384 | |
---|
1385 | cat >>confdefs.h <<_ACEOF |
---|
1386 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1387 | _ACEOF |
---|
1388 | |
---|
1389 | |
---|
1390 | cat >>confdefs.h <<_ACEOF |
---|
1391 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1392 | _ACEOF |
---|
1393 | |
---|
1394 | |
---|
1395 | cat >>confdefs.h <<_ACEOF |
---|
1396 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1397 | _ACEOF |
---|
1398 | |
---|
1399 | |
---|
1400 | # Let the site file select an alternate cache file if it wants to. |
---|
1401 | # Prefer explicitly selected file to automatically selected ones. |
---|
1402 | if test -z "$CONFIG_SITE"; then |
---|
1403 | if test "x$prefix" != xNONE; then |
---|
1404 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1405 | else |
---|
1406 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1407 | fi |
---|
1408 | fi |
---|
1409 | for ac_site_file in $CONFIG_SITE; do |
---|
1410 | if test -r "$ac_site_file"; then |
---|
1411 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1412 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1413 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1414 | . "$ac_site_file" |
---|
1415 | fi |
---|
1416 | done |
---|
1417 | |
---|
1418 | if test -r "$cache_file"; then |
---|
1419 | # Some versions of bash will fail to source /dev/null (special |
---|
1420 | # files actually), so we avoid doing that. |
---|
1421 | if test -f "$cache_file"; then |
---|
1422 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1423 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1424 | case $cache_file in |
---|
1425 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1426 | *) . ./$cache_file;; |
---|
1427 | esac |
---|
1428 | fi |
---|
1429 | else |
---|
1430 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1431 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1432 | >$cache_file |
---|
1433 | fi |
---|
1434 | |
---|
1435 | # Check that the precious variables saved in the cache have kept the same |
---|
1436 | # value. |
---|
1437 | ac_cache_corrupted=false |
---|
1438 | for ac_var in `(set) 2>&1 | |
---|
1439 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1440 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1441 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1442 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1443 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1444 | case $ac_old_set,$ac_new_set in |
---|
1445 | set,) |
---|
1446 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1447 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1448 | ac_cache_corrupted=: ;; |
---|
1449 | ,set) |
---|
1450 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1451 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1452 | ac_cache_corrupted=: ;; |
---|
1453 | ,);; |
---|
1454 | *) |
---|
1455 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1456 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1457 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1458 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1459 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1460 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1461 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1462 | ac_cache_corrupted=: |
---|
1463 | fi;; |
---|
1464 | esac |
---|
1465 | # Pass precious variables to config.status. |
---|
1466 | if test "$ac_new_set" = set; then |
---|
1467 | case $ac_new_val in |
---|
1468 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1469 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1470 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1471 | esac |
---|
1472 | case " $ac_configure_args " in |
---|
1473 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1474 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1475 | esac |
---|
1476 | fi |
---|
1477 | done |
---|
1478 | if $ac_cache_corrupted; then |
---|
1479 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1480 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1481 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1482 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1483 | { (exit 1); exit 1; }; } |
---|
1484 | fi |
---|
1485 | |
---|
1486 | ac_ext=c |
---|
1487 | ac_cpp='$CPP $CPPFLAGS' |
---|
1488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1491 | |
---|
1492 | |
---|
1493 | |
---|
1494 | |
---|
1495 | |
---|
1496 | |
---|
1497 | |
---|
1498 | |
---|
1499 | |
---|
1500 | |
---|
1501 | |
---|
1502 | |
---|
1503 | |
---|
1504 | |
---|
1505 | |
---|
1506 | |
---|
1507 | |
---|
1508 | |
---|
1509 | |
---|
1510 | |
---|
1511 | |
---|
1512 | |
---|
1513 | |
---|
1514 | |
---|
1515 | |
---|
1516 | |
---|
1517 | |
---|
1518 | ac_aux_dir= |
---|
1519 | for ac_dir in admin/autotools $srcdir/admin/autotools; do |
---|
1520 | if test -f $ac_dir/install-sh; then |
---|
1521 | ac_aux_dir=$ac_dir |
---|
1522 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1523 | break |
---|
1524 | elif test -f $ac_dir/install.sh; then |
---|
1525 | ac_aux_dir=$ac_dir |
---|
1526 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1527 | break |
---|
1528 | elif test -f $ac_dir/shtool; then |
---|
1529 | ac_aux_dir=$ac_dir |
---|
1530 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1531 | break |
---|
1532 | fi |
---|
1533 | done |
---|
1534 | if test -z "$ac_aux_dir"; then |
---|
1535 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin/autotools $srcdir/admin/autotools" >&5 |
---|
1536 | echo "$as_me: error: cannot find install-sh or install.sh in admin/autotools $srcdir/admin/autotools" >&2;} |
---|
1537 | { (exit 1); exit 1; }; } |
---|
1538 | fi |
---|
1539 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1540 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1541 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1542 | |
---|
1543 | am__api_version="1.9" |
---|
1544 | # Find a good install program. We prefer a C program (faster), |
---|
1545 | # so one script is as good as another. But avoid the broken or |
---|
1546 | # incompatible versions: |
---|
1547 | # SysV /etc/install, /usr/sbin/install |
---|
1548 | # SunOS /usr/etc/install |
---|
1549 | # IRIX /sbin/install |
---|
1550 | # AIX /bin/install |
---|
1551 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1552 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1553 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1554 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1555 | # OS/2's system install, which has a completely different semantic |
---|
1556 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1557 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1558 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1559 | if test -z "$INSTALL"; then |
---|
1560 | if test "${ac_cv_path_install+set}" = set; then |
---|
1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1562 | else |
---|
1563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1564 | for as_dir in $PATH |
---|
1565 | do |
---|
1566 | IFS=$as_save_IFS |
---|
1567 | test -z "$as_dir" && as_dir=. |
---|
1568 | # Account for people who put trailing slashes in PATH elements. |
---|
1569 | case $as_dir/ in |
---|
1570 | ./ | .// | /cC/* | \ |
---|
1571 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1572 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1573 | /usr/ucb/* ) ;; |
---|
1574 | *) |
---|
1575 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1576 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1577 | # by default. |
---|
1578 | for ac_prog in ginstall scoinst install; do |
---|
1579 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1580 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1581 | if test $ac_prog = install && |
---|
1582 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1583 | # AIX install. It has an incompatible calling convention. |
---|
1584 | : |
---|
1585 | elif test $ac_prog = install && |
---|
1586 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1587 | # program-specific install script used by HP pwplus--don't use. |
---|
1588 | : |
---|
1589 | else |
---|
1590 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1591 | break 3 |
---|
1592 | fi |
---|
1593 | fi |
---|
1594 | done |
---|
1595 | done |
---|
1596 | ;; |
---|
1597 | esac |
---|
1598 | done |
---|
1599 | |
---|
1600 | |
---|
1601 | fi |
---|
1602 | if test "${ac_cv_path_install+set}" = set; then |
---|
1603 | INSTALL=$ac_cv_path_install |
---|
1604 | else |
---|
1605 | # As a last resort, use the slow shell script. We don't cache a |
---|
1606 | # path for INSTALL within a source directory, because that will |
---|
1607 | # break other packages using the cache if that directory is |
---|
1608 | # removed, or if the path is relative. |
---|
1609 | INSTALL=$ac_install_sh |
---|
1610 | fi |
---|
1611 | fi |
---|
1612 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1613 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1614 | |
---|
1615 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1616 | # It thinks the first close brace ends the variable substitution. |
---|
1617 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1618 | |
---|
1619 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1620 | |
---|
1621 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1622 | |
---|
1623 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1624 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1625 | # Just in case |
---|
1626 | sleep 1 |
---|
1627 | echo timestamp > conftest.file |
---|
1628 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1629 | # arguments. Must try -L first in case configure is actually a |
---|
1630 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1631 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1632 | # directory). |
---|
1633 | if ( |
---|
1634 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1635 | if test "$*" = "X"; then |
---|
1636 | # -L didn't work. |
---|
1637 | set X `ls -t $srcdir/configure conftest.file` |
---|
1638 | fi |
---|
1639 | rm -f conftest.file |
---|
1640 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1641 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1642 | |
---|
1643 | # If neither matched, then we have a broken ls. This can happen |
---|
1644 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1645 | # broken ls alias from the environment. This has actually |
---|
1646 | # happened. Such a system could not be considered "sane". |
---|
1647 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1648 | alias in your environment" >&5 |
---|
1649 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1650 | alias in your environment" >&2;} |
---|
1651 | { (exit 1); exit 1; }; } |
---|
1652 | fi |
---|
1653 | |
---|
1654 | test "$2" = conftest.file |
---|
1655 | ) |
---|
1656 | then |
---|
1657 | # Ok. |
---|
1658 | : |
---|
1659 | else |
---|
1660 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1661 | Check your system clock" >&5 |
---|
1662 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1663 | Check your system clock" >&2;} |
---|
1664 | { (exit 1); exit 1; }; } |
---|
1665 | fi |
---|
1666 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1667 | echo "${ECHO_T}yes" >&6 |
---|
1668 | test "$program_prefix" != NONE && |
---|
1669 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1670 | # Use a double $ so make ignores it. |
---|
1671 | test "$program_suffix" != NONE && |
---|
1672 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1673 | # Double any \ or $. echo might interpret backslashes. |
---|
1674 | # By default was `s,x,x', remove it if useless. |
---|
1675 | cat <<\_ACEOF >conftest.sed |
---|
1676 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1677 | _ACEOF |
---|
1678 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1679 | rm conftest.sed |
---|
1680 | |
---|
1681 | # expand $ac_aux_dir to an absolute path |
---|
1682 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1683 | |
---|
1684 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1685 | # Use eval to expand $SHELL |
---|
1686 | if eval "$MISSING --run true"; then |
---|
1687 | am_missing_run="$MISSING --run " |
---|
1688 | else |
---|
1689 | am_missing_run= |
---|
1690 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1691 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1692 | fi |
---|
1693 | |
---|
1694 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1695 | # We used to keeping the `.' as first argument, in order to |
---|
1696 | # allow $(mkdir_p) to be used without argument. As in |
---|
1697 | # $(mkdir_p) $(somedir) |
---|
1698 | # where $(somedir) is conditionally defined. However this is wrong |
---|
1699 | # for two reasons: |
---|
1700 | # 1. if the package is installed by a user who cannot write `.' |
---|
1701 | # make install will fail, |
---|
1702 | # 2. the above comment should most certainly read |
---|
1703 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
1704 | # so it does not work when $(somedir) is undefined and |
---|
1705 | # $(DESTDIR) is not. |
---|
1706 | # To support the latter case, we have to write |
---|
1707 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
1708 | # so the `.' trick is pointless. |
---|
1709 | mkdir_p='mkdir -p --' |
---|
1710 | else |
---|
1711 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1712 | # recognize any option. It will interpret all options as |
---|
1713 | # directories to create, and then abort because `.' already |
---|
1714 | # exists. |
---|
1715 | for d in ./-p ./--version; |
---|
1716 | do |
---|
1717 | test -d $d && rmdir $d |
---|
1718 | done |
---|
1719 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1720 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1721 | mkdir_p='$(mkinstalldirs)' |
---|
1722 | else |
---|
1723 | mkdir_p='$(install_sh) -d' |
---|
1724 | fi |
---|
1725 | fi |
---|
1726 | |
---|
1727 | for ac_prog in gawk mawk nawk awk |
---|
1728 | do |
---|
1729 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1730 | set dummy $ac_prog; ac_word=$2 |
---|
1731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1733 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1735 | else |
---|
1736 | if test -n "$AWK"; then |
---|
1737 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1738 | else |
---|
1739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1740 | for as_dir in $PATH |
---|
1741 | do |
---|
1742 | IFS=$as_save_IFS |
---|
1743 | test -z "$as_dir" && as_dir=. |
---|
1744 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1746 | ac_cv_prog_AWK="$ac_prog" |
---|
1747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1748 | break 2 |
---|
1749 | fi |
---|
1750 | done |
---|
1751 | done |
---|
1752 | |
---|
1753 | fi |
---|
1754 | fi |
---|
1755 | AWK=$ac_cv_prog_AWK |
---|
1756 | if test -n "$AWK"; then |
---|
1757 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1758 | echo "${ECHO_T}$AWK" >&6 |
---|
1759 | else |
---|
1760 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1761 | echo "${ECHO_T}no" >&6 |
---|
1762 | fi |
---|
1763 | |
---|
1764 | test -n "$AWK" && break |
---|
1765 | done |
---|
1766 | |
---|
1767 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1768 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1769 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1770 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1772 | else |
---|
1773 | cat >conftest.make <<\_ACEOF |
---|
1774 | all: |
---|
1775 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1776 | _ACEOF |
---|
1777 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1778 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1779 | if test -n "$ac_maketemp"; then |
---|
1780 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1781 | else |
---|
1782 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1783 | fi |
---|
1784 | rm -f conftest.make |
---|
1785 | fi |
---|
1786 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1787 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1788 | echo "${ECHO_T}yes" >&6 |
---|
1789 | SET_MAKE= |
---|
1790 | else |
---|
1791 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1792 | echo "${ECHO_T}no" >&6 |
---|
1793 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1794 | fi |
---|
1795 | |
---|
1796 | rm -rf .tst 2>/dev/null |
---|
1797 | mkdir .tst 2>/dev/null |
---|
1798 | if test -d .tst; then |
---|
1799 | am__leading_dot=. |
---|
1800 | else |
---|
1801 | am__leading_dot=_ |
---|
1802 | fi |
---|
1803 | rmdir .tst 2>/dev/null |
---|
1804 | |
---|
1805 | # test to see if srcdir already configured |
---|
1806 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1807 | test -f $srcdir/config.status; then |
---|
1808 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1809 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1810 | { (exit 1); exit 1; }; } |
---|
1811 | fi |
---|
1812 | |
---|
1813 | # test whether we have cygpath |
---|
1814 | if test -z "$CYGPATH_W"; then |
---|
1815 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1816 | CYGPATH_W='cygpath -w' |
---|
1817 | else |
---|
1818 | CYGPATH_W=echo |
---|
1819 | fi |
---|
1820 | fi |
---|
1821 | |
---|
1822 | |
---|
1823 | # Define the identity of the package. |
---|
1824 | PACKAGE='freealut' |
---|
1825 | VERSION='1.1.0' |
---|
1826 | |
---|
1827 | |
---|
1828 | cat >>confdefs.h <<_ACEOF |
---|
1829 | #define PACKAGE "$PACKAGE" |
---|
1830 | _ACEOF |
---|
1831 | |
---|
1832 | |
---|
1833 | cat >>confdefs.h <<_ACEOF |
---|
1834 | #define VERSION "$VERSION" |
---|
1835 | _ACEOF |
---|
1836 | |
---|
1837 | # Some tools Automake needs. |
---|
1838 | |
---|
1839 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1840 | |
---|
1841 | |
---|
1842 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1843 | |
---|
1844 | |
---|
1845 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1846 | |
---|
1847 | |
---|
1848 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1849 | |
---|
1850 | |
---|
1851 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1852 | |
---|
1853 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1854 | |
---|
1855 | # Installed binaries are usually stripped using `strip' when the user |
---|
1856 | # run `make install-strip'. However `strip' might not be the right |
---|
1857 | # tool to use in cross-compilation environments, therefore Automake |
---|
1858 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1859 | if test "$cross_compiling" != no; then |
---|
1860 | if test -n "$ac_tool_prefix"; then |
---|
1861 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1862 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1865 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1867 | else |
---|
1868 | if test -n "$STRIP"; then |
---|
1869 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1870 | else |
---|
1871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1872 | for as_dir in $PATH |
---|
1873 | do |
---|
1874 | IFS=$as_save_IFS |
---|
1875 | test -z "$as_dir" && as_dir=. |
---|
1876 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1878 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1880 | break 2 |
---|
1881 | fi |
---|
1882 | done |
---|
1883 | done |
---|
1884 | |
---|
1885 | fi |
---|
1886 | fi |
---|
1887 | STRIP=$ac_cv_prog_STRIP |
---|
1888 | if test -n "$STRIP"; then |
---|
1889 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1890 | echo "${ECHO_T}$STRIP" >&6 |
---|
1891 | else |
---|
1892 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1893 | echo "${ECHO_T}no" >&6 |
---|
1894 | fi |
---|
1895 | |
---|
1896 | fi |
---|
1897 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1898 | ac_ct_STRIP=$STRIP |
---|
1899 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1900 | set dummy strip; ac_word=$2 |
---|
1901 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1903 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1905 | else |
---|
1906 | if test -n "$ac_ct_STRIP"; then |
---|
1907 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1908 | else |
---|
1909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1910 | for as_dir in $PATH |
---|
1911 | do |
---|
1912 | IFS=$as_save_IFS |
---|
1913 | test -z "$as_dir" && as_dir=. |
---|
1914 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1915 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1916 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1918 | break 2 |
---|
1919 | fi |
---|
1920 | done |
---|
1921 | done |
---|
1922 | |
---|
1923 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1924 | fi |
---|
1925 | fi |
---|
1926 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1927 | if test -n "$ac_ct_STRIP"; then |
---|
1928 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1929 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1930 | else |
---|
1931 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1932 | echo "${ECHO_T}no" >&6 |
---|
1933 | fi |
---|
1934 | |
---|
1935 | STRIP=$ac_ct_STRIP |
---|
1936 | else |
---|
1937 | STRIP="$ac_cv_prog_STRIP" |
---|
1938 | fi |
---|
1939 | |
---|
1940 | fi |
---|
1941 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1942 | |
---|
1943 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1944 | # some platforms. |
---|
1945 | # Always define AMTAR for backward compatibility. |
---|
1946 | |
---|
1947 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1948 | |
---|
1949 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
1950 | |
---|
1951 | |
---|
1952 | |
---|
1953 | |
---|
1954 | |
---|
1955 | |
---|
1956 | |
---|
1957 | ac_config_headers="$ac_config_headers config.h" |
---|
1958 | |
---|
1959 | |
---|
1960 | # Compatibility hack for older autoconf versions |
---|
1961 | |
---|
1962 | |
---|
1963 | ################################################################################ |
---|
1964 | ## libtool shared library version. |
---|
1965 | ################################################################################ |
---|
1966 | |
---|
1967 | # Some information from the libtool info pages and the autobook regarding how to |
---|
1968 | # handle the library version info: |
---|
1969 | # |
---|
1970 | # 1. Start with version information of `0:0:0' for each libtool library. |
---|
1971 | # |
---|
1972 | # 2. Update the version information only immediately before a public release of |
---|
1973 | # your software. More frequent updates are unnecessary, and only guarantee |
---|
1974 | # that the current interface number gets larger faster. |
---|
1975 | # |
---|
1976 | # 3. If the library source code has changed at all since the last update, then |
---|
1977 | # increment REVISION (`C:R:A' becomes `C:r+1:A'). This is a new revision of |
---|
1978 | # the current interface. |
---|
1979 | # |
---|
1980 | # 4. If any interfaces have been added, removed, or changed since the last |
---|
1981 | # update, increment CURRENT, and set REVISION to 0. This is the first |
---|
1982 | # revision of a new interface. |
---|
1983 | # |
---|
1984 | # 5. If any interfaces have been added since the last public release, then |
---|
1985 | # increment AGE. This release is backwards compatible with the previous |
---|
1986 | # release. |
---|
1987 | # |
---|
1988 | # 6. If any interfaces have been removed since the last public release, then set |
---|
1989 | # AGE to 0. This release has a new, but backwards incompatible interface. |
---|
1990 | # |
---|
1991 | # NEVER try to set the interface numbers so that they correspond to the release |
---|
1992 | # number of your package. This is an abuse that only fosters misunderstanding of |
---|
1993 | # the purpose of library versions. Furthermore, do not confuse those versions |
---|
1994 | # with the version of the specification which is implemented. |
---|
1995 | |
---|
1996 | CURRENT=1 |
---|
1997 | REVISION=0 |
---|
1998 | AGE=1 |
---|
1999 | |
---|
2000 | VERSIONINFO="$CURRENT:$REVISION:$AGE" |
---|
2001 | |
---|
2002 | |
---|
2003 | ################################################################################ |
---|
2004 | # Checks for programs. |
---|
2005 | ################################################################################ |
---|
2006 | |
---|
2007 | ac_ext=c |
---|
2008 | ac_cpp='$CPP $CPPFLAGS' |
---|
2009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2012 | if test -n "$ac_tool_prefix"; then |
---|
2013 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2014 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2015 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2017 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2019 | else |
---|
2020 | if test -n "$CC"; then |
---|
2021 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2022 | else |
---|
2023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2024 | for as_dir in $PATH |
---|
2025 | do |
---|
2026 | IFS=$as_save_IFS |
---|
2027 | test -z "$as_dir" && as_dir=. |
---|
2028 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2029 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2030 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2031 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2032 | break 2 |
---|
2033 | fi |
---|
2034 | done |
---|
2035 | done |
---|
2036 | |
---|
2037 | fi |
---|
2038 | fi |
---|
2039 | CC=$ac_cv_prog_CC |
---|
2040 | if test -n "$CC"; then |
---|
2041 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2042 | echo "${ECHO_T}$CC" >&6 |
---|
2043 | else |
---|
2044 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2045 | echo "${ECHO_T}no" >&6 |
---|
2046 | fi |
---|
2047 | |
---|
2048 | fi |
---|
2049 | if test -z "$ac_cv_prog_CC"; then |
---|
2050 | ac_ct_CC=$CC |
---|
2051 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2052 | set dummy gcc; ac_word=$2 |
---|
2053 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2055 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2057 | else |
---|
2058 | if test -n "$ac_ct_CC"; then |
---|
2059 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2060 | else |
---|
2061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2062 | for as_dir in $PATH |
---|
2063 | do |
---|
2064 | IFS=$as_save_IFS |
---|
2065 | test -z "$as_dir" && as_dir=. |
---|
2066 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2067 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2068 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2070 | break 2 |
---|
2071 | fi |
---|
2072 | done |
---|
2073 | done |
---|
2074 | |
---|
2075 | fi |
---|
2076 | fi |
---|
2077 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2078 | if test -n "$ac_ct_CC"; then |
---|
2079 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2080 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2081 | else |
---|
2082 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2083 | echo "${ECHO_T}no" >&6 |
---|
2084 | fi |
---|
2085 | |
---|
2086 | CC=$ac_ct_CC |
---|
2087 | else |
---|
2088 | CC="$ac_cv_prog_CC" |
---|
2089 | fi |
---|
2090 | |
---|
2091 | if test -z "$CC"; then |
---|
2092 | if test -n "$ac_tool_prefix"; then |
---|
2093 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2094 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2095 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2097 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2099 | else |
---|
2100 | if test -n "$CC"; then |
---|
2101 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2102 | else |
---|
2103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2104 | for as_dir in $PATH |
---|
2105 | do |
---|
2106 | IFS=$as_save_IFS |
---|
2107 | test -z "$as_dir" && as_dir=. |
---|
2108 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2109 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2110 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2112 | break 2 |
---|
2113 | fi |
---|
2114 | done |
---|
2115 | done |
---|
2116 | |
---|
2117 | fi |
---|
2118 | fi |
---|
2119 | CC=$ac_cv_prog_CC |
---|
2120 | if test -n "$CC"; then |
---|
2121 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2122 | echo "${ECHO_T}$CC" >&6 |
---|
2123 | else |
---|
2124 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2125 | echo "${ECHO_T}no" >&6 |
---|
2126 | fi |
---|
2127 | |
---|
2128 | fi |
---|
2129 | if test -z "$ac_cv_prog_CC"; then |
---|
2130 | ac_ct_CC=$CC |
---|
2131 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2132 | set dummy cc; ac_word=$2 |
---|
2133 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2135 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2137 | else |
---|
2138 | if test -n "$ac_ct_CC"; then |
---|
2139 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2140 | else |
---|
2141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2142 | for as_dir in $PATH |
---|
2143 | do |
---|
2144 | IFS=$as_save_IFS |
---|
2145 | test -z "$as_dir" && as_dir=. |
---|
2146 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2147 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2148 | ac_cv_prog_ac_ct_CC="cc" |
---|
2149 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2150 | break 2 |
---|
2151 | fi |
---|
2152 | done |
---|
2153 | done |
---|
2154 | |
---|
2155 | fi |
---|
2156 | fi |
---|
2157 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2158 | if test -n "$ac_ct_CC"; then |
---|
2159 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2160 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2161 | else |
---|
2162 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2163 | echo "${ECHO_T}no" >&6 |
---|
2164 | fi |
---|
2165 | |
---|
2166 | CC=$ac_ct_CC |
---|
2167 | else |
---|
2168 | CC="$ac_cv_prog_CC" |
---|
2169 | fi |
---|
2170 | |
---|
2171 | fi |
---|
2172 | if test -z "$CC"; then |
---|
2173 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2174 | set dummy cc; ac_word=$2 |
---|
2175 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2177 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2179 | else |
---|
2180 | if test -n "$CC"; then |
---|
2181 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2182 | else |
---|
2183 | ac_prog_rejected=no |
---|
2184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2185 | for as_dir in $PATH |
---|
2186 | do |
---|
2187 | IFS=$as_save_IFS |
---|
2188 | test -z "$as_dir" && as_dir=. |
---|
2189 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2190 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2191 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2192 | ac_prog_rejected=yes |
---|
2193 | continue |
---|
2194 | fi |
---|
2195 | ac_cv_prog_CC="cc" |
---|
2196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2197 | break 2 |
---|
2198 | fi |
---|
2199 | done |
---|
2200 | done |
---|
2201 | |
---|
2202 | if test $ac_prog_rejected = yes; then |
---|
2203 | # We found a bogon in the path, so make sure we never use it. |
---|
2204 | set dummy $ac_cv_prog_CC |
---|
2205 | shift |
---|
2206 | if test $# != 0; then |
---|
2207 | # We chose a different compiler from the bogus one. |
---|
2208 | # However, it has the same basename, so the bogon will be chosen |
---|
2209 | # first if we set CC to just the basename; use the full file name. |
---|
2210 | shift |
---|
2211 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2212 | fi |
---|
2213 | fi |
---|
2214 | fi |
---|
2215 | fi |
---|
2216 | CC=$ac_cv_prog_CC |
---|
2217 | if test -n "$CC"; then |
---|
2218 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2219 | echo "${ECHO_T}$CC" >&6 |
---|
2220 | else |
---|
2221 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2222 | echo "${ECHO_T}no" >&6 |
---|
2223 | fi |
---|
2224 | |
---|
2225 | fi |
---|
2226 | if test -z "$CC"; then |
---|
2227 | if test -n "$ac_tool_prefix"; then |
---|
2228 | for ac_prog in cl |
---|
2229 | do |
---|
2230 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2231 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2232 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2234 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2236 | else |
---|
2237 | if test -n "$CC"; then |
---|
2238 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2239 | else |
---|
2240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2241 | for as_dir in $PATH |
---|
2242 | do |
---|
2243 | IFS=$as_save_IFS |
---|
2244 | test -z "$as_dir" && as_dir=. |
---|
2245 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2246 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2247 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2248 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2249 | break 2 |
---|
2250 | fi |
---|
2251 | done |
---|
2252 | done |
---|
2253 | |
---|
2254 | fi |
---|
2255 | fi |
---|
2256 | CC=$ac_cv_prog_CC |
---|
2257 | if test -n "$CC"; then |
---|
2258 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2259 | echo "${ECHO_T}$CC" >&6 |
---|
2260 | else |
---|
2261 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2262 | echo "${ECHO_T}no" >&6 |
---|
2263 | fi |
---|
2264 | |
---|
2265 | test -n "$CC" && break |
---|
2266 | done |
---|
2267 | fi |
---|
2268 | if test -z "$CC"; then |
---|
2269 | ac_ct_CC=$CC |
---|
2270 | for ac_prog in cl |
---|
2271 | do |
---|
2272 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2273 | set dummy $ac_prog; ac_word=$2 |
---|
2274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2276 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2278 | else |
---|
2279 | if test -n "$ac_ct_CC"; then |
---|
2280 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2281 | else |
---|
2282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2283 | for as_dir in $PATH |
---|
2284 | do |
---|
2285 | IFS=$as_save_IFS |
---|
2286 | test -z "$as_dir" && as_dir=. |
---|
2287 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2289 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2291 | break 2 |
---|
2292 | fi |
---|
2293 | done |
---|
2294 | done |
---|
2295 | |
---|
2296 | fi |
---|
2297 | fi |
---|
2298 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2299 | if test -n "$ac_ct_CC"; then |
---|
2300 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2301 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2302 | else |
---|
2303 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2304 | echo "${ECHO_T}no" >&6 |
---|
2305 | fi |
---|
2306 | |
---|
2307 | test -n "$ac_ct_CC" && break |
---|
2308 | done |
---|
2309 | |
---|
2310 | CC=$ac_ct_CC |
---|
2311 | fi |
---|
2312 | |
---|
2313 | fi |
---|
2314 | |
---|
2315 | |
---|
2316 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2317 | See \`config.log' for more details." >&5 |
---|
2318 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2319 | See \`config.log' for more details." >&2;} |
---|
2320 | { (exit 1); exit 1; }; } |
---|
2321 | |
---|
2322 | # Provide some information about the compiler. |
---|
2323 | echo "$as_me:$LINENO:" \ |
---|
2324 | "checking for C compiler version" >&5 |
---|
2325 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2326 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2327 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2328 | ac_status=$? |
---|
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2330 | (exit $ac_status); } |
---|
2331 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2332 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2333 | ac_status=$? |
---|
2334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2335 | (exit $ac_status); } |
---|
2336 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2337 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2338 | ac_status=$? |
---|
2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2340 | (exit $ac_status); } |
---|
2341 | |
---|
2342 | cat >conftest.$ac_ext <<_ACEOF |
---|
2343 | /* confdefs.h. */ |
---|
2344 | _ACEOF |
---|
2345 | cat confdefs.h >>conftest.$ac_ext |
---|
2346 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2347 | /* end confdefs.h. */ |
---|
2348 | |
---|
2349 | int |
---|
2350 | main () |
---|
2351 | { |
---|
2352 | |
---|
2353 | ; |
---|
2354 | return 0; |
---|
2355 | } |
---|
2356 | _ACEOF |
---|
2357 | ac_clean_files_save=$ac_clean_files |
---|
2358 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2359 | # Try to create an executable without -o first, disregard a.out. |
---|
2360 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2361 | # of exeext. |
---|
2362 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2363 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2364 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2365 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2366 | (eval $ac_link_default) 2>&5 |
---|
2367 | ac_status=$? |
---|
2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2369 | (exit $ac_status); }; then |
---|
2370 | # Find the output, starting from the most likely. This scheme is |
---|
2371 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2372 | # resort. |
---|
2373 | |
---|
2374 | # Be careful to initialize this variable, since it used to be cached. |
---|
2375 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2376 | ac_cv_exeext= |
---|
2377 | # b.out is created by i960 compilers. |
---|
2378 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2379 | do |
---|
2380 | test -f "$ac_file" || continue |
---|
2381 | case $ac_file in |
---|
2382 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2383 | ;; |
---|
2384 | conftest.$ac_ext ) |
---|
2385 | # This is the source file. |
---|
2386 | ;; |
---|
2387 | [ab].out ) |
---|
2388 | # We found the default executable, but exeext='' is most |
---|
2389 | # certainly right. |
---|
2390 | break;; |
---|
2391 | *.* ) |
---|
2392 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2393 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2394 | # but it would be cool to find out if it's true. Does anybody |
---|
2395 | # maintain Libtool? --akim. |
---|
2396 | export ac_cv_exeext |
---|
2397 | break;; |
---|
2398 | * ) |
---|
2399 | break;; |
---|
2400 | esac |
---|
2401 | done |
---|
2402 | else |
---|
2403 | echo "$as_me: failed program was:" >&5 |
---|
2404 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2405 | |
---|
2406 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2407 | See \`config.log' for more details." >&5 |
---|
2408 | echo "$as_me: error: C compiler cannot create executables |
---|
2409 | See \`config.log' for more details." >&2;} |
---|
2410 | { (exit 77); exit 77; }; } |
---|
2411 | fi |
---|
2412 | |
---|
2413 | ac_exeext=$ac_cv_exeext |
---|
2414 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2415 | echo "${ECHO_T}$ac_file" >&6 |
---|
2416 | |
---|
2417 | # Check the compiler produces executables we can run. If not, either |
---|
2418 | # the compiler is broken, or we cross compile. |
---|
2419 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2420 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2421 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2422 | # If not cross compiling, check that we can run a simple program. |
---|
2423 | if test "$cross_compiling" != yes; then |
---|
2424 | if { ac_try='./$ac_file' |
---|
2425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2426 | (eval $ac_try) 2>&5 |
---|
2427 | ac_status=$? |
---|
2428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2429 | (exit $ac_status); }; }; then |
---|
2430 | cross_compiling=no |
---|
2431 | else |
---|
2432 | if test "$cross_compiling" = maybe; then |
---|
2433 | cross_compiling=yes |
---|
2434 | else |
---|
2435 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2436 | If you meant to cross compile, use \`--host'. |
---|
2437 | See \`config.log' for more details." >&5 |
---|
2438 | echo "$as_me: error: cannot run C compiled programs. |
---|
2439 | If you meant to cross compile, use \`--host'. |
---|
2440 | See \`config.log' for more details." >&2;} |
---|
2441 | { (exit 1); exit 1; }; } |
---|
2442 | fi |
---|
2443 | fi |
---|
2444 | fi |
---|
2445 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2446 | echo "${ECHO_T}yes" >&6 |
---|
2447 | |
---|
2448 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2449 | ac_clean_files=$ac_clean_files_save |
---|
2450 | # Check the compiler produces executables we can run. If not, either |
---|
2451 | # the compiler is broken, or we cross compile. |
---|
2452 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2453 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2454 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2455 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2456 | |
---|
2457 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2458 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2460 | (eval $ac_link) 2>&5 |
---|
2461 | ac_status=$? |
---|
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2463 | (exit $ac_status); }; then |
---|
2464 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2465 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2466 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2467 | # `rm'. |
---|
2468 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2469 | test -f "$ac_file" || continue |
---|
2470 | case $ac_file in |
---|
2471 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2472 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2473 | export ac_cv_exeext |
---|
2474 | break;; |
---|
2475 | * ) break;; |
---|
2476 | esac |
---|
2477 | done |
---|
2478 | else |
---|
2479 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2480 | See \`config.log' for more details." >&5 |
---|
2481 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2482 | See \`config.log' for more details." >&2;} |
---|
2483 | { (exit 1); exit 1; }; } |
---|
2484 | fi |
---|
2485 | |
---|
2486 | rm -f conftest$ac_cv_exeext |
---|
2487 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2488 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2489 | |
---|
2490 | rm -f conftest.$ac_ext |
---|
2491 | EXEEXT=$ac_cv_exeext |
---|
2492 | ac_exeext=$EXEEXT |
---|
2493 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2494 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2495 | if test "${ac_cv_objext+set}" = set; then |
---|
2496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2497 | else |
---|
2498 | cat >conftest.$ac_ext <<_ACEOF |
---|
2499 | /* confdefs.h. */ |
---|
2500 | _ACEOF |
---|
2501 | cat confdefs.h >>conftest.$ac_ext |
---|
2502 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2503 | /* end confdefs.h. */ |
---|
2504 | |
---|
2505 | int |
---|
2506 | main () |
---|
2507 | { |
---|
2508 | |
---|
2509 | ; |
---|
2510 | return 0; |
---|
2511 | } |
---|
2512 | _ACEOF |
---|
2513 | rm -f conftest.o conftest.obj |
---|
2514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2515 | (eval $ac_compile) 2>&5 |
---|
2516 | ac_status=$? |
---|
2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2518 | (exit $ac_status); }; then |
---|
2519 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2520 | case $ac_file in |
---|
2521 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2522 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2523 | break;; |
---|
2524 | esac |
---|
2525 | done |
---|
2526 | else |
---|
2527 | echo "$as_me: failed program was:" >&5 |
---|
2528 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2529 | |
---|
2530 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2531 | See \`config.log' for more details." >&5 |
---|
2532 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2533 | See \`config.log' for more details." >&2;} |
---|
2534 | { (exit 1); exit 1; }; } |
---|
2535 | fi |
---|
2536 | |
---|
2537 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2538 | fi |
---|
2539 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2540 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2541 | OBJEXT=$ac_cv_objext |
---|
2542 | ac_objext=$OBJEXT |
---|
2543 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2544 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2545 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2547 | else |
---|
2548 | cat >conftest.$ac_ext <<_ACEOF |
---|
2549 | /* confdefs.h. */ |
---|
2550 | _ACEOF |
---|
2551 | cat confdefs.h >>conftest.$ac_ext |
---|
2552 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2553 | /* end confdefs.h. */ |
---|
2554 | |
---|
2555 | int |
---|
2556 | main () |
---|
2557 | { |
---|
2558 | #ifndef __GNUC__ |
---|
2559 | choke me |
---|
2560 | #endif |
---|
2561 | |
---|
2562 | ; |
---|
2563 | return 0; |
---|
2564 | } |
---|
2565 | _ACEOF |
---|
2566 | rm -f conftest.$ac_objext |
---|
2567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2568 | (eval $ac_compile) 2>conftest.er1 |
---|
2569 | ac_status=$? |
---|
2570 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2571 | rm -f conftest.er1 |
---|
2572 | cat conftest.err >&5 |
---|
2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2574 | (exit $ac_status); } && |
---|
2575 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2576 | || test ! -s conftest.err' |
---|
2577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2578 | (eval $ac_try) 2>&5 |
---|
2579 | ac_status=$? |
---|
2580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2581 | (exit $ac_status); }; } && |
---|
2582 | { ac_try='test -s conftest.$ac_objext' |
---|
2583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2584 | (eval $ac_try) 2>&5 |
---|
2585 | ac_status=$? |
---|
2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2587 | (exit $ac_status); }; }; then |
---|
2588 | ac_compiler_gnu=yes |
---|
2589 | else |
---|
2590 | echo "$as_me: failed program was:" >&5 |
---|
2591 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2592 | |
---|
2593 | ac_compiler_gnu=no |
---|
2594 | fi |
---|
2595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2596 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2597 | |
---|
2598 | fi |
---|
2599 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2600 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2601 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2602 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2603 | ac_save_CFLAGS=$CFLAGS |
---|
2604 | CFLAGS="-g" |
---|
2605 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2606 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2607 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2609 | else |
---|
2610 | cat >conftest.$ac_ext <<_ACEOF |
---|
2611 | /* confdefs.h. */ |
---|
2612 | _ACEOF |
---|
2613 | cat confdefs.h >>conftest.$ac_ext |
---|
2614 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2615 | /* end confdefs.h. */ |
---|
2616 | |
---|
2617 | int |
---|
2618 | main () |
---|
2619 | { |
---|
2620 | |
---|
2621 | ; |
---|
2622 | return 0; |
---|
2623 | } |
---|
2624 | _ACEOF |
---|
2625 | rm -f conftest.$ac_objext |
---|
2626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2627 | (eval $ac_compile) 2>conftest.er1 |
---|
2628 | ac_status=$? |
---|
2629 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2630 | rm -f conftest.er1 |
---|
2631 | cat conftest.err >&5 |
---|
2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2633 | (exit $ac_status); } && |
---|
2634 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2635 | || test ! -s conftest.err' |
---|
2636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2637 | (eval $ac_try) 2>&5 |
---|
2638 | ac_status=$? |
---|
2639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2640 | (exit $ac_status); }; } && |
---|
2641 | { ac_try='test -s conftest.$ac_objext' |
---|
2642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2643 | (eval $ac_try) 2>&5 |
---|
2644 | ac_status=$? |
---|
2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2646 | (exit $ac_status); }; }; then |
---|
2647 | ac_cv_prog_cc_g=yes |
---|
2648 | else |
---|
2649 | echo "$as_me: failed program was:" >&5 |
---|
2650 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2651 | |
---|
2652 | ac_cv_prog_cc_g=no |
---|
2653 | fi |
---|
2654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2655 | fi |
---|
2656 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2657 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2658 | if test "$ac_test_CFLAGS" = set; then |
---|
2659 | CFLAGS=$ac_save_CFLAGS |
---|
2660 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2661 | if test "$GCC" = yes; then |
---|
2662 | CFLAGS="-g -O2" |
---|
2663 | else |
---|
2664 | CFLAGS="-g" |
---|
2665 | fi |
---|
2666 | else |
---|
2667 | if test "$GCC" = yes; then |
---|
2668 | CFLAGS="-O2" |
---|
2669 | else |
---|
2670 | CFLAGS= |
---|
2671 | fi |
---|
2672 | fi |
---|
2673 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2674 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2675 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2677 | else |
---|
2678 | ac_cv_prog_cc_stdc=no |
---|
2679 | ac_save_CC=$CC |
---|
2680 | cat >conftest.$ac_ext <<_ACEOF |
---|
2681 | /* confdefs.h. */ |
---|
2682 | _ACEOF |
---|
2683 | cat confdefs.h >>conftest.$ac_ext |
---|
2684 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2685 | /* end confdefs.h. */ |
---|
2686 | #include <stdarg.h> |
---|
2687 | #include <stdio.h> |
---|
2688 | #include <sys/types.h> |
---|
2689 | #include <sys/stat.h> |
---|
2690 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2691 | struct buf { int x; }; |
---|
2692 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2693 | static char *e (p, i) |
---|
2694 | char **p; |
---|
2695 | int i; |
---|
2696 | { |
---|
2697 | return p[i]; |
---|
2698 | } |
---|
2699 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2700 | { |
---|
2701 | char *s; |
---|
2702 | va_list v; |
---|
2703 | va_start (v,p); |
---|
2704 | s = g (p, va_arg (v,int)); |
---|
2705 | va_end (v); |
---|
2706 | return s; |
---|
2707 | } |
---|
2708 | |
---|
2709 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2710 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2711 | These don't provoke an error unfortunately, instead are silently treated |
---|
2712 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2713 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2714 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2715 | that's true only with -std1. */ |
---|
2716 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2717 | |
---|
2718 | int test (int i, double x); |
---|
2719 | struct s1 {int (*f) (int a);}; |
---|
2720 | struct s2 {int (*f) (double a);}; |
---|
2721 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2722 | int argc; |
---|
2723 | char **argv; |
---|
2724 | int |
---|
2725 | main () |
---|
2726 | { |
---|
2727 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2728 | ; |
---|
2729 | return 0; |
---|
2730 | } |
---|
2731 | _ACEOF |
---|
2732 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2733 | # breaks some systems' header files. |
---|
2734 | # AIX -qlanglvl=ansi |
---|
2735 | # Ultrix and OSF/1 -std1 |
---|
2736 | # HP-UX 10.20 and later -Ae |
---|
2737 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2738 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2739 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2740 | do |
---|
2741 | CC="$ac_save_CC $ac_arg" |
---|
2742 | rm -f conftest.$ac_objext |
---|
2743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2744 | (eval $ac_compile) 2>conftest.er1 |
---|
2745 | ac_status=$? |
---|
2746 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2747 | rm -f conftest.er1 |
---|
2748 | cat conftest.err >&5 |
---|
2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2750 | (exit $ac_status); } && |
---|
2751 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2752 | || test ! -s conftest.err' |
---|
2753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2754 | (eval $ac_try) 2>&5 |
---|
2755 | ac_status=$? |
---|
2756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2757 | (exit $ac_status); }; } && |
---|
2758 | { ac_try='test -s conftest.$ac_objext' |
---|
2759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2760 | (eval $ac_try) 2>&5 |
---|
2761 | ac_status=$? |
---|
2762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2763 | (exit $ac_status); }; }; then |
---|
2764 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2765 | break |
---|
2766 | else |
---|
2767 | echo "$as_me: failed program was:" >&5 |
---|
2768 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2769 | |
---|
2770 | fi |
---|
2771 | rm -f conftest.err conftest.$ac_objext |
---|
2772 | done |
---|
2773 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2774 | CC=$ac_save_CC |
---|
2775 | |
---|
2776 | fi |
---|
2777 | |
---|
2778 | case "x$ac_cv_prog_cc_stdc" in |
---|
2779 | x|xno) |
---|
2780 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2781 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2782 | *) |
---|
2783 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2784 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2785 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2786 | esac |
---|
2787 | |
---|
2788 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2789 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2790 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2791 | # the declaration of exit, since it's the most demanding environment. |
---|
2792 | cat >conftest.$ac_ext <<_ACEOF |
---|
2793 | #ifndef __cplusplus |
---|
2794 | choke me |
---|
2795 | #endif |
---|
2796 | _ACEOF |
---|
2797 | rm -f conftest.$ac_objext |
---|
2798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2799 | (eval $ac_compile) 2>conftest.er1 |
---|
2800 | ac_status=$? |
---|
2801 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2802 | rm -f conftest.er1 |
---|
2803 | cat conftest.err >&5 |
---|
2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2805 | (exit $ac_status); } && |
---|
2806 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2807 | || test ! -s conftest.err' |
---|
2808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2809 | (eval $ac_try) 2>&5 |
---|
2810 | ac_status=$? |
---|
2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2812 | (exit $ac_status); }; } && |
---|
2813 | { ac_try='test -s conftest.$ac_objext' |
---|
2814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2815 | (eval $ac_try) 2>&5 |
---|
2816 | ac_status=$? |
---|
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2818 | (exit $ac_status); }; }; then |
---|
2819 | for ac_declaration in \ |
---|
2820 | '' \ |
---|
2821 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2822 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2823 | 'extern "C" void exit (int) throw ();' \ |
---|
2824 | 'extern "C" void exit (int);' \ |
---|
2825 | 'void exit (int);' |
---|
2826 | do |
---|
2827 | cat >conftest.$ac_ext <<_ACEOF |
---|
2828 | /* confdefs.h. */ |
---|
2829 | _ACEOF |
---|
2830 | cat confdefs.h >>conftest.$ac_ext |
---|
2831 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2832 | /* end confdefs.h. */ |
---|
2833 | $ac_declaration |
---|
2834 | #include <stdlib.h> |
---|
2835 | int |
---|
2836 | main () |
---|
2837 | { |
---|
2838 | exit (42); |
---|
2839 | ; |
---|
2840 | return 0; |
---|
2841 | } |
---|
2842 | _ACEOF |
---|
2843 | rm -f conftest.$ac_objext |
---|
2844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2845 | (eval $ac_compile) 2>conftest.er1 |
---|
2846 | ac_status=$? |
---|
2847 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2848 | rm -f conftest.er1 |
---|
2849 | cat conftest.err >&5 |
---|
2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2851 | (exit $ac_status); } && |
---|
2852 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2853 | || test ! -s conftest.err' |
---|
2854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2855 | (eval $ac_try) 2>&5 |
---|
2856 | ac_status=$? |
---|
2857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2858 | (exit $ac_status); }; } && |
---|
2859 | { ac_try='test -s conftest.$ac_objext' |
---|
2860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2861 | (eval $ac_try) 2>&5 |
---|
2862 | ac_status=$? |
---|
2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2864 | (exit $ac_status); }; }; then |
---|
2865 | : |
---|
2866 | else |
---|
2867 | echo "$as_me: failed program was:" >&5 |
---|
2868 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2869 | |
---|
2870 | continue |
---|
2871 | fi |
---|
2872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2873 | cat >conftest.$ac_ext <<_ACEOF |
---|
2874 | /* confdefs.h. */ |
---|
2875 | _ACEOF |
---|
2876 | cat confdefs.h >>conftest.$ac_ext |
---|
2877 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2878 | /* end confdefs.h. */ |
---|
2879 | $ac_declaration |
---|
2880 | int |
---|
2881 | main () |
---|
2882 | { |
---|
2883 | exit (42); |
---|
2884 | ; |
---|
2885 | return 0; |
---|
2886 | } |
---|
2887 | _ACEOF |
---|
2888 | rm -f conftest.$ac_objext |
---|
2889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2890 | (eval $ac_compile) 2>conftest.er1 |
---|
2891 | ac_status=$? |
---|
2892 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2893 | rm -f conftest.er1 |
---|
2894 | cat conftest.err >&5 |
---|
2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2896 | (exit $ac_status); } && |
---|
2897 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2898 | || test ! -s conftest.err' |
---|
2899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2900 | (eval $ac_try) 2>&5 |
---|
2901 | ac_status=$? |
---|
2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2903 | (exit $ac_status); }; } && |
---|
2904 | { ac_try='test -s conftest.$ac_objext' |
---|
2905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2906 | (eval $ac_try) 2>&5 |
---|
2907 | ac_status=$? |
---|
2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2909 | (exit $ac_status); }; }; then |
---|
2910 | break |
---|
2911 | else |
---|
2912 | echo "$as_me: failed program was:" >&5 |
---|
2913 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2914 | |
---|
2915 | fi |
---|
2916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2917 | done |
---|
2918 | rm -f conftest* |
---|
2919 | if test -n "$ac_declaration"; then |
---|
2920 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2921 | echo $ac_declaration >>confdefs.h |
---|
2922 | echo '#endif' >>confdefs.h |
---|
2923 | fi |
---|
2924 | |
---|
2925 | else |
---|
2926 | echo "$as_me: failed program was:" >&5 |
---|
2927 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2928 | |
---|
2929 | fi |
---|
2930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2931 | ac_ext=c |
---|
2932 | ac_cpp='$CPP $CPPFLAGS' |
---|
2933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2936 | DEPDIR="${am__leading_dot}deps" |
---|
2937 | |
---|
2938 | ac_config_commands="$ac_config_commands depfiles" |
---|
2939 | |
---|
2940 | |
---|
2941 | am_make=${MAKE-make} |
---|
2942 | cat > confinc << 'END' |
---|
2943 | am__doit: |
---|
2944 | @echo done |
---|
2945 | .PHONY: am__doit |
---|
2946 | END |
---|
2947 | # If we don't find an include directive, just comment out the code. |
---|
2948 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2949 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2950 | am__include="#" |
---|
2951 | am__quote= |
---|
2952 | _am_result=none |
---|
2953 | # First try GNU make style include. |
---|
2954 | echo "include confinc" > confmf |
---|
2955 | # We grep out `Entering directory' and `Leaving directory' |
---|
2956 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2957 | # In particular we don't look at `^make:' because GNU make might |
---|
2958 | # be invoked under some other name (usually "gmake"), in which |
---|
2959 | # case it prints its new name instead of `make'. |
---|
2960 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2961 | am__include=include |
---|
2962 | am__quote= |
---|
2963 | _am_result=GNU |
---|
2964 | fi |
---|
2965 | # Now try BSD make style include. |
---|
2966 | if test "$am__include" = "#"; then |
---|
2967 | echo '.include "confinc"' > confmf |
---|
2968 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2969 | am__include=.include |
---|
2970 | am__quote="\"" |
---|
2971 | _am_result=BSD |
---|
2972 | fi |
---|
2973 | fi |
---|
2974 | |
---|
2975 | |
---|
2976 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2977 | echo "${ECHO_T}$_am_result" >&6 |
---|
2978 | rm -f confinc confmf |
---|
2979 | |
---|
2980 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2981 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2982 | enableval="$enable_dependency_tracking" |
---|
2983 | |
---|
2984 | fi; |
---|
2985 | if test "x$enable_dependency_tracking" != xno; then |
---|
2986 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2987 | AMDEPBACKSLASH='\' |
---|
2988 | fi |
---|
2989 | |
---|
2990 | |
---|
2991 | if test "x$enable_dependency_tracking" != xno; then |
---|
2992 | AMDEP_TRUE= |
---|
2993 | AMDEP_FALSE='#' |
---|
2994 | else |
---|
2995 | AMDEP_TRUE='#' |
---|
2996 | AMDEP_FALSE= |
---|
2997 | fi |
---|
2998 | |
---|
2999 | |
---|
3000 | |
---|
3001 | |
---|
3002 | depcc="$CC" am_compiler_list= |
---|
3003 | |
---|
3004 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3005 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3006 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3008 | else |
---|
3009 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3010 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3011 | # making bogus files that we don't know about and never remove. For |
---|
3012 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3013 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3014 | # in D'. |
---|
3015 | mkdir conftest.dir |
---|
3016 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3017 | # using a relative directory. |
---|
3018 | cp "$am_depcomp" conftest.dir |
---|
3019 | cd conftest.dir |
---|
3020 | # We will build objects and dependencies in a subdirectory because |
---|
3021 | # it helps to detect inapplicable dependency modes. For instance |
---|
3022 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3023 | # side effect of compilation, but ICC will put the dependencies in |
---|
3024 | # the current directory while Tru64 will put them in the object |
---|
3025 | # directory. |
---|
3026 | mkdir sub |
---|
3027 | |
---|
3028 | am_cv_CC_dependencies_compiler_type=none |
---|
3029 | if test "$am_compiler_list" = ""; then |
---|
3030 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3031 | fi |
---|
3032 | for depmode in $am_compiler_list; do |
---|
3033 | # Setup a source with many dependencies, because some compilers |
---|
3034 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3035 | # we should not choose a depcomp mode which is confused by this. |
---|
3036 | # |
---|
3037 | # We need to recreate these files for each test, as the compiler may |
---|
3038 | # overwrite some of them when testing with obscure command lines. |
---|
3039 | # This happens at least with the AIX C compiler. |
---|
3040 | : > sub/conftest.c |
---|
3041 | for i in 1 2 3 4 5 6; do |
---|
3042 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3043 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3044 | # Solaris 8's {/usr,}/bin/sh. |
---|
3045 | touch sub/conftst$i.h |
---|
3046 | done |
---|
3047 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3048 | |
---|
3049 | case $depmode in |
---|
3050 | nosideeffect) |
---|
3051 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3052 | # only be used when explicitly requested |
---|
3053 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3054 | continue |
---|
3055 | else |
---|
3056 | break |
---|
3057 | fi |
---|
3058 | ;; |
---|
3059 | none) break ;; |
---|
3060 | esac |
---|
3061 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3062 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3063 | # handle `-M -o', and we need to detect this. |
---|
3064 | if depmode=$depmode \ |
---|
3065 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3066 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3067 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3068 | >/dev/null 2>conftest.err && |
---|
3069 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3070 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3071 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3072 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3073 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3074 | # that says an option was ignored or not supported. |
---|
3075 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3076 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3077 | # The diagnosis changed in icc 8.0: |
---|
3078 | # icc: Command line remark: option '-MP' not supported |
---|
3079 | if (grep 'ignoring option' conftest.err || |
---|
3080 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3081 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3082 | break |
---|
3083 | fi |
---|
3084 | fi |
---|
3085 | done |
---|
3086 | |
---|
3087 | cd .. |
---|
3088 | rm -rf conftest.dir |
---|
3089 | else |
---|
3090 | am_cv_CC_dependencies_compiler_type=none |
---|
3091 | fi |
---|
3092 | |
---|
3093 | fi |
---|
3094 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3095 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3096 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3097 | |
---|
3098 | |
---|
3099 | |
---|
3100 | if |
---|
3101 | test "x$enable_dependency_tracking" != xno \ |
---|
3102 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3103 | am__fastdepCC_TRUE= |
---|
3104 | am__fastdepCC_FALSE='#' |
---|
3105 | else |
---|
3106 | am__fastdepCC_TRUE='#' |
---|
3107 | am__fastdepCC_FALSE= |
---|
3108 | fi |
---|
3109 | |
---|
3110 | |
---|
3111 | |
---|
3112 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
3113 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
3114 | if test "${ac_cv_c_const+set}" = set; then |
---|
3115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3116 | else |
---|
3117 | cat >conftest.$ac_ext <<_ACEOF |
---|
3118 | /* confdefs.h. */ |
---|
3119 | _ACEOF |
---|
3120 | cat confdefs.h >>conftest.$ac_ext |
---|
3121 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3122 | /* end confdefs.h. */ |
---|
3123 | |
---|
3124 | int |
---|
3125 | main () |
---|
3126 | { |
---|
3127 | /* FIXME: Include the comments suggested by Paul. */ |
---|
3128 | #ifndef __cplusplus |
---|
3129 | /* Ultrix mips cc rejects this. */ |
---|
3130 | typedef int charset[2]; |
---|
3131 | const charset x; |
---|
3132 | /* SunOS 4.1.1 cc rejects this. */ |
---|
3133 | char const *const *ccp; |
---|
3134 | char **p; |
---|
3135 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
3136 | struct point {int x, y;}; |
---|
3137 | static struct point const zero = {0,0}; |
---|
3138 | /* AIX XL C 1.02.0.0 rejects this. |
---|
3139 | It does not let you subtract one const X* pointer from another in |
---|
3140 | an arm of an if-expression whose if-part is not a constant |
---|
3141 | expression */ |
---|
3142 | const char *g = "string"; |
---|
3143 | ccp = &g + (g ? g-g : 0); |
---|
3144 | /* HPUX 7.0 cc rejects these. */ |
---|
3145 | ++ccp; |
---|
3146 | p = (char**) ccp; |
---|
3147 | ccp = (char const *const *) p; |
---|
3148 | { /* SCO 3.2v4 cc rejects this. */ |
---|
3149 | char *t; |
---|
3150 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
3151 | |
---|
3152 | *t++ = 0; |
---|
3153 | } |
---|
3154 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
3155 | int x[] = {25, 17}; |
---|
3156 | const int *foo = &x[0]; |
---|
3157 | ++foo; |
---|
3158 | } |
---|
3159 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
3160 | typedef const int *iptr; |
---|
3161 | iptr p = 0; |
---|
3162 | ++p; |
---|
3163 | } |
---|
3164 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
3165 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
3166 | struct s { int j; const int *ap[3]; }; |
---|
3167 | struct s *b; b->j = 5; |
---|
3168 | } |
---|
3169 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
3170 | const int foo = 10; |
---|
3171 | } |
---|
3172 | #endif |
---|
3173 | |
---|
3174 | ; |
---|
3175 | return 0; |
---|
3176 | } |
---|
3177 | _ACEOF |
---|
3178 | rm -f conftest.$ac_objext |
---|
3179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3180 | (eval $ac_compile) 2>conftest.er1 |
---|
3181 | ac_status=$? |
---|
3182 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3183 | rm -f conftest.er1 |
---|
3184 | cat conftest.err >&5 |
---|
3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3186 | (exit $ac_status); } && |
---|
3187 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3188 | || test ! -s conftest.err' |
---|
3189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3190 | (eval $ac_try) 2>&5 |
---|
3191 | ac_status=$? |
---|
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3193 | (exit $ac_status); }; } && |
---|
3194 | { ac_try='test -s conftest.$ac_objext' |
---|
3195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3196 | (eval $ac_try) 2>&5 |
---|
3197 | ac_status=$? |
---|
3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3199 | (exit $ac_status); }; }; then |
---|
3200 | ac_cv_c_const=yes |
---|
3201 | else |
---|
3202 | echo "$as_me: failed program was:" >&5 |
---|
3203 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3204 | |
---|
3205 | ac_cv_c_const=no |
---|
3206 | fi |
---|
3207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3208 | fi |
---|
3209 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
3210 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
3211 | if test $ac_cv_c_const = no; then |
---|
3212 | |
---|
3213 | cat >>confdefs.h <<\_ACEOF |
---|
3214 | #define const |
---|
3215 | _ACEOF |
---|
3216 | |
---|
3217 | fi |
---|
3218 | |
---|
3219 | echo "$as_me:$LINENO: checking whether the C compiler supports __attribute__" >&5 |
---|
3220 | echo $ECHO_N "checking whether the C compiler supports __attribute__... $ECHO_C" >&6 |
---|
3221 | if test "${alut_cv___attribute__+set}" = set; then |
---|
3222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3223 | else |
---|
3224 | cat >conftest.$ac_ext <<_ACEOF |
---|
3225 | /* confdefs.h. */ |
---|
3226 | _ACEOF |
---|
3227 | cat confdefs.h >>conftest.$ac_ext |
---|
3228 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3229 | /* end confdefs.h. */ |
---|
3230 | |
---|
3231 | void foo (int bar __attribute__((unused)) ) { } |
---|
3232 | static void baz (void) __attribute__((unused)); |
---|
3233 | static void baz (void) { } |
---|
3234 | _ACEOF |
---|
3235 | rm -f conftest.$ac_objext |
---|
3236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3237 | (eval $ac_compile) 2>conftest.er1 |
---|
3238 | ac_status=$? |
---|
3239 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3240 | rm -f conftest.er1 |
---|
3241 | cat conftest.err >&5 |
---|
3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3243 | (exit $ac_status); } && |
---|
3244 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3245 | || test ! -s conftest.err' |
---|
3246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3247 | (eval $ac_try) 2>&5 |
---|
3248 | ac_status=$? |
---|
3249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3250 | (exit $ac_status); }; } && |
---|
3251 | { ac_try='test -s conftest.$ac_objext' |
---|
3252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3253 | (eval $ac_try) 2>&5 |
---|
3254 | ac_status=$? |
---|
3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3256 | (exit $ac_status); }; }; then |
---|
3257 | alut_cv___attribute__=yes |
---|
3258 | else |
---|
3259 | echo "$as_me: failed program was:" >&5 |
---|
3260 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3261 | |
---|
3262 | alut_cv___attribute__=no |
---|
3263 | fi |
---|
3264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3265 | fi |
---|
3266 | echo "$as_me:$LINENO: result: $alut_cv___attribute__" >&5 |
---|
3267 | echo "${ECHO_T}$alut_cv___attribute__" >&6 |
---|
3268 | if test "$alut_cv___attribute__" = yes; then |
---|
3269 | |
---|
3270 | cat >>confdefs.h <<\_ACEOF |
---|
3271 | #define HAVE___ATTRIBUTE__ 1 |
---|
3272 | _ACEOF |
---|
3273 | |
---|
3274 | fi |
---|
3275 | |
---|
3276 | |
---|
3277 | # Note that -fvisibility=... support implies __attribute__((visibility(...))) |
---|
3278 | # support. |
---|
3279 | alut_compiler="$CC" |
---|
3280 | echo "$as_me:$LINENO: checking whether $alut_compiler accepts -fvisibility=hidden" >&5 |
---|
3281 | echo $ECHO_N "checking whether $alut_compiler accepts -fvisibility=hidden... $ECHO_C" >&6 |
---|
3282 | if test "${alut_cv_CFLAGS_fvisibility_hidden+set}" = set; then |
---|
3283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3284 | else |
---|
3285 | cat >conftest.$ac_ext <<_ACEOF |
---|
3286 | /* confdefs.h. */ |
---|
3287 | _ACEOF |
---|
3288 | cat confdefs.h >>conftest.$ac_ext |
---|
3289 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3290 | /* end confdefs.h. */ |
---|
3291 | |
---|
3292 | int |
---|
3293 | main () |
---|
3294 | { |
---|
3295 | |
---|
3296 | ; |
---|
3297 | return 0; |
---|
3298 | } |
---|
3299 | _ACEOF |
---|
3300 | alut_save_flags="$CFLAGS" |
---|
3301 | CFLAGS="$CFLAGS -fvisibility=hidden" |
---|
3302 | alut_cv_CFLAGS_fvisibility_hidden=no |
---|
3303 | if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1 |
---|
3304 | alut_status=$? |
---|
3305 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3306 | rm -f conftest.er1 |
---|
3307 | (exit $alut_status); } >/dev/null; then |
---|
3308 | test -s conftest.err || alut_cv_CFLAGS_fvisibility_hidden=yes |
---|
3309 | fi |
---|
3310 | CFLAGS="$alut_save_flags" |
---|
3311 | rm -f conftest.err conftest.$ac_ext |
---|
3312 | fi |
---|
3313 | echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_fvisibility_hidden" >&5 |
---|
3314 | echo "${ECHO_T}$alut_cv_CFLAGS_fvisibility_hidden" >&6 |
---|
3315 | if test $alut_cv_CFLAGS_fvisibility_hidden = yes; then |
---|
3316 | AM_CFLAGS="$AM_CFLAGS -fvisibility=hidden" |
---|
3317 | |
---|
3318 | cat >>confdefs.h <<\_ACEOF |
---|
3319 | #define HAVE_GCC_VISIBILITY 1 |
---|
3320 | _ACEOF |
---|
3321 | |
---|
3322 | fi |
---|
3323 | |
---|
3324 | |
---|
3325 | # test_suite/test_retrostuff tests deprecated functions, but we don't want to |
---|
3326 | # get compiler warnings because of that. |
---|
3327 | alut_compiler="$CC" |
---|
3328 | echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Wno-deprecated-declarations" >&5 |
---|
3329 | echo $ECHO_N "checking whether $alut_compiler accepts -Wno-deprecated-declarations... $ECHO_C" >&6 |
---|
3330 | if test "${alut_cv_CFLAGS_Wno_deprecated_declarations+set}" = set; then |
---|
3331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3332 | else |
---|
3333 | cat >conftest.$ac_ext <<_ACEOF |
---|
3334 | /* confdefs.h. */ |
---|
3335 | _ACEOF |
---|
3336 | cat confdefs.h >>conftest.$ac_ext |
---|
3337 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3338 | /* end confdefs.h. */ |
---|
3339 | |
---|
3340 | int |
---|
3341 | main () |
---|
3342 | { |
---|
3343 | |
---|
3344 | ; |
---|
3345 | return 0; |
---|
3346 | } |
---|
3347 | _ACEOF |
---|
3348 | alut_save_flags="$CFLAGS" |
---|
3349 | CFLAGS="$CFLAGS -Wno-deprecated-declarations" |
---|
3350 | alut_cv_CFLAGS_Wno_deprecated_declarations=no |
---|
3351 | if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1 |
---|
3352 | alut_status=$? |
---|
3353 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3354 | rm -f conftest.er1 |
---|
3355 | (exit $alut_status); } >/dev/null; then |
---|
3356 | test -s conftest.err || alut_cv_CFLAGS_Wno_deprecated_declarations=yes |
---|
3357 | fi |
---|
3358 | CFLAGS="$alut_save_flags" |
---|
3359 | rm -f conftest.err conftest.$ac_ext |
---|
3360 | fi |
---|
3361 | echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Wno_deprecated_declarations" >&5 |
---|
3362 | echo "${ECHO_T}$alut_cv_CFLAGS_Wno_deprecated_declarations" >&6 |
---|
3363 | if test $alut_cv_CFLAGS_Wno_deprecated_declarations = yes; then |
---|
3364 | alut_wno_deprecated_declarations=yes |
---|
3365 | else |
---|
3366 | alut_wno_deprecated_declarations=no |
---|
3367 | fi |
---|
3368 | |
---|
3369 | |
---|
3370 | |
---|
3371 | if test x"$alut_wno_deprecated_declarations" = xyes; then |
---|
3372 | WNO_DEPRECATED_DECLARATIONS_TRUE= |
---|
3373 | WNO_DEPRECATED_DECLARATIONS_FALSE='#' |
---|
3374 | else |
---|
3375 | WNO_DEPRECATED_DECLARATIONS_TRUE='#' |
---|
3376 | WNO_DEPRECATED_DECLARATIONS_FALSE= |
---|
3377 | fi |
---|
3378 | |
---|
3379 | |
---|
3380 | |
---|
3381 | |
---|
3382 | |
---|
3383 | # Check whether --enable-shared or --disable-shared was given. |
---|
3384 | if test "${enable_shared+set}" = set; then |
---|
3385 | enableval="$enable_shared" |
---|
3386 | p=${PACKAGE-default} |
---|
3387 | case $enableval in |
---|
3388 | yes) enable_shared=yes ;; |
---|
3389 | no) enable_shared=no ;; |
---|
3390 | *) |
---|
3391 | enable_shared=no |
---|
3392 | # Look at the argument we got. We use all the common list separators. |
---|
3393 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3394 | for pkg in $enableval; do |
---|
3395 | IFS="$lt_save_ifs" |
---|
3396 | if test "X$pkg" = "X$p"; then |
---|
3397 | enable_shared=yes |
---|
3398 | fi |
---|
3399 | done |
---|
3400 | IFS="$lt_save_ifs" |
---|
3401 | ;; |
---|
3402 | esac |
---|
3403 | else |
---|
3404 | enable_shared=yes |
---|
3405 | fi; |
---|
3406 | |
---|
3407 | # Check whether --enable-static or --disable-static was given. |
---|
3408 | if test "${enable_static+set}" = set; then |
---|
3409 | enableval="$enable_static" |
---|
3410 | p=${PACKAGE-default} |
---|
3411 | case $enableval in |
---|
3412 | yes) enable_static=yes ;; |
---|
3413 | no) enable_static=no ;; |
---|
3414 | *) |
---|
3415 | enable_static=no |
---|
3416 | # Look at the argument we got. We use all the common list separators. |
---|
3417 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3418 | for pkg in $enableval; do |
---|
3419 | IFS="$lt_save_ifs" |
---|
3420 | if test "X$pkg" = "X$p"; then |
---|
3421 | enable_static=yes |
---|
3422 | fi |
---|
3423 | done |
---|
3424 | IFS="$lt_save_ifs" |
---|
3425 | ;; |
---|
3426 | esac |
---|
3427 | else |
---|
3428 | enable_static=yes |
---|
3429 | fi; |
---|
3430 | |
---|
3431 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
3432 | if test "${enable_fast_install+set}" = set; then |
---|
3433 | enableval="$enable_fast_install" |
---|
3434 | p=${PACKAGE-default} |
---|
3435 | case $enableval in |
---|
3436 | yes) enable_fast_install=yes ;; |
---|
3437 | no) enable_fast_install=no ;; |
---|
3438 | *) |
---|
3439 | enable_fast_install=no |
---|
3440 | # Look at the argument we got. We use all the common list separators. |
---|
3441 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3442 | for pkg in $enableval; do |
---|
3443 | IFS="$lt_save_ifs" |
---|
3444 | if test "X$pkg" = "X$p"; then |
---|
3445 | enable_fast_install=yes |
---|
3446 | fi |
---|
3447 | done |
---|
3448 | IFS="$lt_save_ifs" |
---|
3449 | ;; |
---|
3450 | esac |
---|
3451 | else |
---|
3452 | enable_fast_install=yes |
---|
3453 | fi; |
---|
3454 | |
---|
3455 | # Make sure we can run config.sub. |
---|
3456 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
3457 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
3458 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
3459 | { (exit 1); exit 1; }; } |
---|
3460 | |
---|
3461 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
3462 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
3463 | if test "${ac_cv_build+set}" = set; then |
---|
3464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3465 | else |
---|
3466 | ac_cv_build_alias=$build_alias |
---|
3467 | test -z "$ac_cv_build_alias" && |
---|
3468 | ac_cv_build_alias=`$ac_config_guess` |
---|
3469 | test -z "$ac_cv_build_alias" && |
---|
3470 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
3471 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
3472 | { (exit 1); exit 1; }; } |
---|
3473 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
3474 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
3475 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
3476 | { (exit 1); exit 1; }; } |
---|
3477 | |
---|
3478 | fi |
---|
3479 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
3480 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
3481 | build=$ac_cv_build |
---|
3482 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
3483 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
3484 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
3485 | |
---|
3486 | |
---|
3487 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
3488 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
3489 | if test "${ac_cv_host+set}" = set; then |
---|
3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3491 | else |
---|
3492 | ac_cv_host_alias=$host_alias |
---|
3493 | test -z "$ac_cv_host_alias" && |
---|
3494 | ac_cv_host_alias=$ac_cv_build_alias |
---|
3495 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
3496 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
3497 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
3498 | { (exit 1); exit 1; }; } |
---|
3499 | |
---|
3500 | fi |
---|
3501 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
3502 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
3503 | host=$ac_cv_host |
---|
3504 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
3505 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
3506 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
3507 | |
---|
3508 | |
---|
3509 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
3510 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
3511 | if test "${lt_cv_path_SED+set}" = set; then |
---|
3512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3513 | else |
---|
3514 | # Loop through the user's path and test for sed and gsed. |
---|
3515 | # Then use that list of sed's as ones to test for truncation. |
---|
3516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3517 | for as_dir in $PATH |
---|
3518 | do |
---|
3519 | IFS=$as_save_IFS |
---|
3520 | test -z "$as_dir" && as_dir=. |
---|
3521 | for lt_ac_prog in sed gsed; do |
---|
3522 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3523 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
3524 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
3525 | fi |
---|
3526 | done |
---|
3527 | done |
---|
3528 | done |
---|
3529 | lt_ac_max=0 |
---|
3530 | lt_ac_count=0 |
---|
3531 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
3532 | # along with /bin/sed that truncates output. |
---|
3533 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
3534 | test ! -f $lt_ac_sed && continue |
---|
3535 | cat /dev/null > conftest.in |
---|
3536 | lt_ac_count=0 |
---|
3537 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
3538 | # Check for GNU sed and select it if it is found. |
---|
3539 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
3540 | lt_cv_path_SED=$lt_ac_sed |
---|
3541 | break |
---|
3542 | fi |
---|
3543 | while true; do |
---|
3544 | cat conftest.in conftest.in >conftest.tmp |
---|
3545 | mv conftest.tmp conftest.in |
---|
3546 | cp conftest.in conftest.nl |
---|
3547 | echo >>conftest.nl |
---|
3548 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
3549 | cmp -s conftest.out conftest.nl || break |
---|
3550 | # 10000 chars as input seems more than enough |
---|
3551 | test $lt_ac_count -gt 10 && break |
---|
3552 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
3553 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
3554 | lt_ac_max=$lt_ac_count |
---|
3555 | lt_cv_path_SED=$lt_ac_sed |
---|
3556 | fi |
---|
3557 | done |
---|
3558 | done |
---|
3559 | |
---|
3560 | fi |
---|
3561 | |
---|
3562 | SED=$lt_cv_path_SED |
---|
3563 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
3564 | echo "${ECHO_T}$SED" >&6 |
---|
3565 | |
---|
3566 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3567 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3568 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3570 | else |
---|
3571 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3572 | then ac_cv_prog_egrep='grep -E' |
---|
3573 | else ac_cv_prog_egrep='egrep' |
---|
3574 | fi |
---|
3575 | fi |
---|
3576 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3577 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3578 | EGREP=$ac_cv_prog_egrep |
---|
3579 | |
---|
3580 | |
---|
3581 | |
---|
3582 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
3583 | if test "${with_gnu_ld+set}" = set; then |
---|
3584 | withval="$with_gnu_ld" |
---|
3585 | test "$withval" = no || with_gnu_ld=yes |
---|
3586 | else |
---|
3587 | with_gnu_ld=no |
---|
3588 | fi; |
---|
3589 | ac_prog=ld |
---|
3590 | if test "$GCC" = yes; then |
---|
3591 | # Check if gcc -print-prog-name=ld gives a path. |
---|
3592 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
3593 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
3594 | case $host in |
---|
3595 | *-*-mingw*) |
---|
3596 | # gcc leaves a trailing carriage return which upsets mingw |
---|
3597 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
3598 | *) |
---|
3599 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
3600 | esac |
---|
3601 | case $ac_prog in |
---|
3602 | # Accept absolute paths. |
---|
3603 | [\\/]* | ?:[\\/]*) |
---|
3604 | re_direlt='/[^/][^/]*/\.\./' |
---|
3605 | # Canonicalize the pathname of ld |
---|
3606 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
3607 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
3608 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
3609 | done |
---|
3610 | test -z "$LD" && LD="$ac_prog" |
---|
3611 | ;; |
---|
3612 | "") |
---|
3613 | # If it fails, then pretend we aren't using GCC. |
---|
3614 | ac_prog=ld |
---|
3615 | ;; |
---|
3616 | *) |
---|
3617 | # If it is relative, then search for the first ld in PATH. |
---|
3618 | with_gnu_ld=unknown |
---|
3619 | ;; |
---|
3620 | esac |
---|
3621 | elif test "$with_gnu_ld" = yes; then |
---|
3622 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
3623 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
3624 | else |
---|
3625 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
3626 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
3627 | fi |
---|
3628 | if test "${lt_cv_path_LD+set}" = set; then |
---|
3629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3630 | else |
---|
3631 | if test -z "$LD"; then |
---|
3632 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
3633 | for ac_dir in $PATH; do |
---|
3634 | IFS="$lt_save_ifs" |
---|
3635 | test -z "$ac_dir" && ac_dir=. |
---|
3636 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
3637 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
3638 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
3639 | # but apparently some GNU ld's only accept -v. |
---|
3640 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
3641 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
3642 | *GNU* | *'with BFD'*) |
---|
3643 | test "$with_gnu_ld" != no && break |
---|
3644 | ;; |
---|
3645 | *) |
---|
3646 | test "$with_gnu_ld" != yes && break |
---|
3647 | ;; |
---|
3648 | esac |
---|
3649 | fi |
---|
3650 | done |
---|
3651 | IFS="$lt_save_ifs" |
---|
3652 | else |
---|
3653 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
3654 | fi |
---|
3655 | fi |
---|
3656 | |
---|
3657 | LD="$lt_cv_path_LD" |
---|
3658 | if test -n "$LD"; then |
---|
3659 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
3660 | echo "${ECHO_T}$LD" >&6 |
---|
3661 | else |
---|
3662 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3663 | echo "${ECHO_T}no" >&6 |
---|
3664 | fi |
---|
3665 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
3666 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
3667 | { (exit 1); exit 1; }; } |
---|
3668 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
3669 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
3670 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
3671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3672 | else |
---|
3673 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
3674 | case `$LD -v 2>&1 </dev/null` in |
---|
3675 | *GNU* | *'with BFD'*) |
---|
3676 | lt_cv_prog_gnu_ld=yes |
---|
3677 | ;; |
---|
3678 | *) |
---|
3679 | lt_cv_prog_gnu_ld=no |
---|
3680 | ;; |
---|
3681 | esac |
---|
3682 | fi |
---|
3683 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
3684 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
3685 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
3686 | |
---|
3687 | |
---|
3688 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
3689 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
3690 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
3691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3692 | else |
---|
3693 | lt_cv_ld_reload_flag='-r' |
---|
3694 | fi |
---|
3695 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
3696 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
3697 | reload_flag=$lt_cv_ld_reload_flag |
---|
3698 | case $reload_flag in |
---|
3699 | "" | " "*) ;; |
---|
3700 | *) reload_flag=" $reload_flag" ;; |
---|
3701 | esac |
---|
3702 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
3703 | case $host_os in |
---|
3704 | darwin*) |
---|
3705 | if test "$GCC" = yes; then |
---|
3706 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
---|
3707 | else |
---|
3708 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
3709 | fi |
---|
3710 | ;; |
---|
3711 | esac |
---|
3712 | |
---|
3713 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
3714 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
3715 | if test "${lt_cv_path_NM+set}" = set; then |
---|
3716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3717 | else |
---|
3718 | if test -n "$NM"; then |
---|
3719 | # Let the user override the test. |
---|
3720 | lt_cv_path_NM="$NM" |
---|
3721 | else |
---|
3722 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
3723 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
3724 | IFS="$lt_save_ifs" |
---|
3725 | test -z "$ac_dir" && ac_dir=. |
---|
3726 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
---|
3727 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
3728 | # Check to see if the nm accepts a BSD-compat flag. |
---|
3729 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
3730 | # nm: unknown option "B" ignored |
---|
3731 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
3732 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
3733 | */dev/null* | *'Invalid file or object type'*) |
---|
3734 | lt_cv_path_NM="$tmp_nm -B" |
---|
3735 | break |
---|
3736 | ;; |
---|
3737 | *) |
---|
3738 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
3739 | */dev/null*) |
---|
3740 | lt_cv_path_NM="$tmp_nm -p" |
---|
3741 | break |
---|
3742 | ;; |
---|
3743 | *) |
---|
3744 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
3745 | continue # so that we can try to find one that supports BSD flags |
---|
3746 | ;; |
---|
3747 | esac |
---|
3748 | esac |
---|
3749 | fi |
---|
3750 | done |
---|
3751 | IFS="$lt_save_ifs" |
---|
3752 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
3753 | fi |
---|
3754 | fi |
---|
3755 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
3756 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
3757 | NM="$lt_cv_path_NM" |
---|
3758 | |
---|
3759 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
3760 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
3761 | LN_S=$as_ln_s |
---|
3762 | if test "$LN_S" = "ln -s"; then |
---|
3763 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3764 | echo "${ECHO_T}yes" >&6 |
---|
3765 | else |
---|
3766 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
3767 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
3768 | fi |
---|
3769 | |
---|
3770 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
3771 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
3772 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
3773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3774 | else |
---|
3775 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
3776 | lt_cv_file_magic_test_file= |
---|
3777 | lt_cv_deplibs_check_method='unknown' |
---|
3778 | # Need to set the preceding variable on all platforms that support |
---|
3779 | # interlibrary dependencies. |
---|
3780 | # 'none' -- dependencies not supported. |
---|
3781 | # `unknown' -- same as none, but documents that we really don't know. |
---|
3782 | # 'pass_all' -- all dependencies passed with no checks. |
---|
3783 | # 'test_compile' -- check by making test program. |
---|
3784 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
3785 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
3786 | # If you have `file' or equivalent on your system and you're not sure |
---|
3787 | # whether `pass_all' will *always* work, you probably want this one. |
---|
3788 | |
---|
3789 | case $host_os in |
---|
3790 | aix4* | aix5*) |
---|
3791 | lt_cv_deplibs_check_method=pass_all |
---|
3792 | ;; |
---|
3793 | |
---|
3794 | beos*) |
---|
3795 | lt_cv_deplibs_check_method=pass_all |
---|
3796 | ;; |
---|
3797 | |
---|
3798 | bsdi[45]*) |
---|
3799 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
3800 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
3801 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
3802 | ;; |
---|
3803 | |
---|
3804 | cygwin*) |
---|
3805 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
3806 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
3807 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
3808 | ;; |
---|
3809 | |
---|
3810 | mingw* | pw32*) |
---|
3811 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
3812 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
3813 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
3814 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
3815 | ;; |
---|
3816 | |
---|
3817 | darwin* | rhapsody*) |
---|
3818 | lt_cv_deplibs_check_method=pass_all |
---|
3819 | ;; |
---|
3820 | |
---|
3821 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
3822 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
3823 | case $host_cpu in |
---|
3824 | i*86 ) |
---|
3825 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
3826 | # Let's accept both of them until this is cleared up. |
---|
3827 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
3828 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
3829 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
3830 | ;; |
---|
3831 | esac |
---|
3832 | else |
---|
3833 | lt_cv_deplibs_check_method=pass_all |
---|
3834 | fi |
---|
3835 | ;; |
---|
3836 | |
---|
3837 | gnu*) |
---|
3838 | lt_cv_deplibs_check_method=pass_all |
---|
3839 | ;; |
---|
3840 | |
---|
3841 | hpux10.20* | hpux11*) |
---|
3842 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
3843 | case "$host_cpu" in |
---|
3844 | ia64*) |
---|
3845 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
3846 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
3847 | ;; |
---|
3848 | hppa*64*) |
---|
3849 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
---|
3850 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
3851 | ;; |
---|
3852 | *) |
---|
3853 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
3854 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
3855 | ;; |
---|
3856 | esac |
---|
3857 | ;; |
---|
3858 | |
---|
3859 | irix5* | irix6* | nonstopux*) |
---|
3860 | case $LD in |
---|
3861 | *-32|*"-32 ") libmagic=32-bit;; |
---|
3862 | *-n32|*"-n32 ") libmagic=N32;; |
---|
3863 | *-64|*"-64 ") libmagic=64-bit;; |
---|
3864 | *) libmagic=never-match;; |
---|
3865 | esac |
---|
3866 | lt_cv_deplibs_check_method=pass_all |
---|
3867 | ;; |
---|
3868 | |
---|
3869 | # This must be Linux ELF. |
---|
3870 | linux*) |
---|
3871 | lt_cv_deplibs_check_method=pass_all |
---|
3872 | ;; |
---|
3873 | |
---|
3874 | netbsd*) |
---|
3875 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
3876 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
3877 | else |
---|
3878 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
3879 | fi |
---|
3880 | ;; |
---|
3881 | |
---|
3882 | newos6*) |
---|
3883 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
3884 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
3885 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
3886 | ;; |
---|
3887 | |
---|
3888 | nto-qnx*) |
---|
3889 | lt_cv_deplibs_check_method=unknown |
---|
3890 | ;; |
---|
3891 | |
---|
3892 | openbsd*) |
---|
3893 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
3894 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
3895 | else |
---|
3896 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
3897 | fi |
---|
3898 | ;; |
---|
3899 | |
---|
3900 | osf3* | osf4* | osf5*) |
---|
3901 | lt_cv_deplibs_check_method=pass_all |
---|
3902 | ;; |
---|
3903 | |
---|
3904 | sco3.2v5*) |
---|
3905 | lt_cv_deplibs_check_method=pass_all |
---|
3906 | ;; |
---|
3907 | |
---|
3908 | solaris*) |
---|
3909 | lt_cv_deplibs_check_method=pass_all |
---|
3910 | ;; |
---|
3911 | |
---|
3912 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
3913 | case $host_vendor in |
---|
3914 | motorola) |
---|
3915 | 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]' |
---|
3916 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
3917 | ;; |
---|
3918 | ncr) |
---|
3919 | lt_cv_deplibs_check_method=pass_all |
---|
3920 | ;; |
---|
3921 | sequent) |
---|
3922 | lt_cv_file_magic_cmd='/bin/file' |
---|
3923 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
3924 | ;; |
---|
3925 | sni) |
---|
3926 | lt_cv_file_magic_cmd='/bin/file' |
---|
3927 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
3928 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
3929 | ;; |
---|
3930 | siemens) |
---|
3931 | lt_cv_deplibs_check_method=pass_all |
---|
3932 | ;; |
---|
3933 | esac |
---|
3934 | ;; |
---|
3935 | |
---|
3936 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
---|
3937 | lt_cv_deplibs_check_method=pass_all |
---|
3938 | ;; |
---|
3939 | esac |
---|
3940 | |
---|
3941 | fi |
---|
3942 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
3943 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
3944 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
3945 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
3946 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
3947 | |
---|
3948 | |
---|
3949 | |
---|
3950 | # If no C compiler was specified, use CC. |
---|
3951 | LTCC=${LTCC-"$CC"} |
---|
3952 | |
---|
3953 | # Allow CC to be a program name with arguments. |
---|
3954 | compiler=$CC |
---|
3955 | |
---|
3956 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
3957 | if test "${enable_libtool_lock+set}" = set; then |
---|
3958 | enableval="$enable_libtool_lock" |
---|
3959 | |
---|
3960 | fi; |
---|
3961 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
3962 | |
---|
3963 | # Some flags need to be propagated to the compiler or linker for good |
---|
3964 | # libtool support. |
---|
3965 | case $host in |
---|
3966 | ia64-*-hpux*) |
---|
3967 | # Find out which ABI we are using. |
---|
3968 | echo 'int i;' > conftest.$ac_ext |
---|
3969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3970 | (eval $ac_compile) 2>&5 |
---|
3971 | ac_status=$? |
---|
3972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3973 | (exit $ac_status); }; then |
---|
3974 | case `/usr/bin/file conftest.$ac_objext` in |
---|
3975 | *ELF-32*) |
---|
3976 | HPUX_IA64_MODE="32" |
---|
3977 | ;; |
---|
3978 | *ELF-64*) |
---|
3979 | HPUX_IA64_MODE="64" |
---|
3980 | ;; |
---|
3981 | esac |
---|
3982 | fi |
---|
3983 | rm -rf conftest* |
---|
3984 | ;; |
---|
3985 | *-*-irix6*) |
---|
3986 | # Find out which ABI we are using. |
---|
3987 | echo '#line 3987 "configure"' > conftest.$ac_ext |
---|
3988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3989 | (eval $ac_compile) 2>&5 |
---|
3990 | ac_status=$? |
---|
3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3992 | (exit $ac_status); }; then |
---|
3993 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
3994 | case `/usr/bin/file conftest.$ac_objext` in |
---|
3995 | *32-bit*) |
---|
3996 | LD="${LD-ld} -melf32bsmip" |
---|
3997 | ;; |
---|
3998 | *N32*) |
---|
3999 | LD="${LD-ld} -melf32bmipn32" |
---|
4000 | ;; |
---|
4001 | *64-bit*) |
---|
4002 | LD="${LD-ld} -melf64bmip" |
---|
4003 | ;; |
---|
4004 | esac |
---|
4005 | else |
---|
4006 | case `/usr/bin/file conftest.$ac_objext` in |
---|
4007 | *32-bit*) |
---|
4008 | LD="${LD-ld} -32" |
---|
4009 | ;; |
---|
4010 | *N32*) |
---|
4011 | LD="${LD-ld} -n32" |
---|
4012 | ;; |
---|
4013 | *64-bit*) |
---|
4014 | LD="${LD-ld} -64" |
---|
4015 | ;; |
---|
4016 | esac |
---|
4017 | fi |
---|
4018 | fi |
---|
4019 | rm -rf conftest* |
---|
4020 | ;; |
---|
4021 | |
---|
4022 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
4023 | # Find out which ABI we are using. |
---|
4024 | echo 'int i;' > conftest.$ac_ext |
---|
4025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4026 | (eval $ac_compile) 2>&5 |
---|
4027 | ac_status=$? |
---|
4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4029 | (exit $ac_status); }; then |
---|
4030 | case "`/usr/bin/file conftest.o`" in |
---|
4031 | *32-bit*) |
---|
4032 | case $host in |
---|
4033 | x86_64-*linux*) |
---|
4034 | LD="${LD-ld} -m elf_i386" |
---|
4035 | ;; |
---|
4036 | ppc64-*linux*|powerpc64-*linux*) |
---|
4037 | LD="${LD-ld} -m elf32ppclinux" |
---|
4038 | ;; |
---|
4039 | s390x-*linux*) |
---|
4040 | LD="${LD-ld} -m elf_s390" |
---|
4041 | ;; |
---|
4042 | sparc64-*linux*) |
---|
4043 | LD="${LD-ld} -m elf32_sparc" |
---|
4044 | ;; |
---|
4045 | esac |
---|
4046 | ;; |
---|
4047 | *64-bit*) |
---|
4048 | case $host in |
---|
4049 | x86_64-*linux*) |
---|
4050 | LD="${LD-ld} -m elf_x86_64" |
---|
4051 | ;; |
---|
4052 | ppc*-*linux*|powerpc*-*linux*) |
---|
4053 | LD="${LD-ld} -m elf64ppc" |
---|
4054 | ;; |
---|
4055 | s390*-*linux*) |
---|
4056 | LD="${LD-ld} -m elf64_s390" |
---|
4057 | ;; |
---|
4058 | sparc*-*linux*) |
---|
4059 | LD="${LD-ld} -m elf64_sparc" |
---|
4060 | ;; |
---|
4061 | esac |
---|
4062 | ;; |
---|
4063 | esac |
---|
4064 | fi |
---|
4065 | rm -rf conftest* |
---|
4066 | ;; |
---|
4067 | |
---|
4068 | *-*-sco3.2v5*) |
---|
4069 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
4070 | SAVE_CFLAGS="$CFLAGS" |
---|
4071 | CFLAGS="$CFLAGS -belf" |
---|
4072 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
4073 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
4074 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
4075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4076 | else |
---|
4077 | ac_ext=c |
---|
4078 | ac_cpp='$CPP $CPPFLAGS' |
---|
4079 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4080 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4081 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4082 | |
---|
4083 | cat >conftest.$ac_ext <<_ACEOF |
---|
4084 | /* confdefs.h. */ |
---|
4085 | _ACEOF |
---|
4086 | cat confdefs.h >>conftest.$ac_ext |
---|
4087 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4088 | /* end confdefs.h. */ |
---|
4089 | |
---|
4090 | int |
---|
4091 | main () |
---|
4092 | { |
---|
4093 | |
---|
4094 | ; |
---|
4095 | return 0; |
---|
4096 | } |
---|
4097 | _ACEOF |
---|
4098 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4100 | (eval $ac_link) 2>conftest.er1 |
---|
4101 | ac_status=$? |
---|
4102 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4103 | rm -f conftest.er1 |
---|
4104 | cat conftest.err >&5 |
---|
4105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4106 | (exit $ac_status); } && |
---|
4107 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4108 | || test ! -s conftest.err' |
---|
4109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4110 | (eval $ac_try) 2>&5 |
---|
4111 | ac_status=$? |
---|
4112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4113 | (exit $ac_status); }; } && |
---|
4114 | { ac_try='test -s conftest$ac_exeext' |
---|
4115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4116 | (eval $ac_try) 2>&5 |
---|
4117 | ac_status=$? |
---|
4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4119 | (exit $ac_status); }; }; then |
---|
4120 | lt_cv_cc_needs_belf=yes |
---|
4121 | else |
---|
4122 | echo "$as_me: failed program was:" >&5 |
---|
4123 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4124 | |
---|
4125 | lt_cv_cc_needs_belf=no |
---|
4126 | fi |
---|
4127 | rm -f conftest.err conftest.$ac_objext \ |
---|
4128 | conftest$ac_exeext conftest.$ac_ext |
---|
4129 | ac_ext=c |
---|
4130 | ac_cpp='$CPP $CPPFLAGS' |
---|
4131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4134 | |
---|
4135 | fi |
---|
4136 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
4137 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
4138 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
4139 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
4140 | CFLAGS="$SAVE_CFLAGS" |
---|
4141 | fi |
---|
4142 | ;; |
---|
4143 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
---|
4144 | if test -n "$ac_tool_prefix"; then |
---|
4145 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
---|
4146 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
---|
4147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4149 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
---|
4150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4151 | else |
---|
4152 | if test -n "$DLLTOOL"; then |
---|
4153 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
---|
4154 | else |
---|
4155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4156 | for as_dir in $PATH |
---|
4157 | do |
---|
4158 | IFS=$as_save_IFS |
---|
4159 | test -z "$as_dir" && as_dir=. |
---|
4160 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4162 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
---|
4163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4164 | break 2 |
---|
4165 | fi |
---|
4166 | done |
---|
4167 | done |
---|
4168 | |
---|
4169 | fi |
---|
4170 | fi |
---|
4171 | DLLTOOL=$ac_cv_prog_DLLTOOL |
---|
4172 | if test -n "$DLLTOOL"; then |
---|
4173 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
---|
4174 | echo "${ECHO_T}$DLLTOOL" >&6 |
---|
4175 | else |
---|
4176 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4177 | echo "${ECHO_T}no" >&6 |
---|
4178 | fi |
---|
4179 | |
---|
4180 | fi |
---|
4181 | if test -z "$ac_cv_prog_DLLTOOL"; then |
---|
4182 | ac_ct_DLLTOOL=$DLLTOOL |
---|
4183 | # Extract the first word of "dlltool", so it can be a program name with args. |
---|
4184 | set dummy dlltool; ac_word=$2 |
---|
4185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4187 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
---|
4188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4189 | else |
---|
4190 | if test -n "$ac_ct_DLLTOOL"; then |
---|
4191 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
---|
4192 | else |
---|
4193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4194 | for as_dir in $PATH |
---|
4195 | do |
---|
4196 | IFS=$as_save_IFS |
---|
4197 | test -z "$as_dir" && as_dir=. |
---|
4198 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4200 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
---|
4201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4202 | break 2 |
---|
4203 | fi |
---|
4204 | done |
---|
4205 | done |
---|
4206 | |
---|
4207 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
---|
4208 | fi |
---|
4209 | fi |
---|
4210 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
---|
4211 | if test -n "$ac_ct_DLLTOOL"; then |
---|
4212 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
---|
4213 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
---|
4214 | else |
---|
4215 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4216 | echo "${ECHO_T}no" >&6 |
---|
4217 | fi |
---|
4218 | |
---|
4219 | DLLTOOL=$ac_ct_DLLTOOL |
---|
4220 | else |
---|
4221 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
---|
4222 | fi |
---|
4223 | |
---|
4224 | if test -n "$ac_tool_prefix"; then |
---|
4225 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
---|
4226 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
---|
4227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4229 | if test "${ac_cv_prog_AS+set}" = set; then |
---|
4230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4231 | else |
---|
4232 | if test -n "$AS"; then |
---|
4233 | ac_cv_prog_AS="$AS" # Let the user override the test. |
---|
4234 | else |
---|
4235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4236 | for as_dir in $PATH |
---|
4237 | do |
---|
4238 | IFS=$as_save_IFS |
---|
4239 | test -z "$as_dir" && as_dir=. |
---|
4240 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4242 | ac_cv_prog_AS="${ac_tool_prefix}as" |
---|
4243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4244 | break 2 |
---|
4245 | fi |
---|
4246 | done |
---|
4247 | done |
---|
4248 | |
---|
4249 | fi |
---|
4250 | fi |
---|
4251 | AS=$ac_cv_prog_AS |
---|
4252 | if test -n "$AS"; then |
---|
4253 | echo "$as_me:$LINENO: result: $AS" >&5 |
---|
4254 | echo "${ECHO_T}$AS" >&6 |
---|
4255 | else |
---|
4256 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4257 | echo "${ECHO_T}no" >&6 |
---|
4258 | fi |
---|
4259 | |
---|
4260 | fi |
---|
4261 | if test -z "$ac_cv_prog_AS"; then |
---|
4262 | ac_ct_AS=$AS |
---|
4263 | # Extract the first word of "as", so it can be a program name with args. |
---|
4264 | set dummy as; ac_word=$2 |
---|
4265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4267 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
---|
4268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4269 | else |
---|
4270 | if test -n "$ac_ct_AS"; then |
---|
4271 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
---|
4272 | else |
---|
4273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4274 | for as_dir in $PATH |
---|
4275 | do |
---|
4276 | IFS=$as_save_IFS |
---|
4277 | test -z "$as_dir" && as_dir=. |
---|
4278 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4280 | ac_cv_prog_ac_ct_AS="as" |
---|
4281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4282 | break 2 |
---|
4283 | fi |
---|
4284 | done |
---|
4285 | done |
---|
4286 | |
---|
4287 | test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" |
---|
4288 | fi |
---|
4289 | fi |
---|
4290 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
---|
4291 | if test -n "$ac_ct_AS"; then |
---|
4292 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
---|
4293 | echo "${ECHO_T}$ac_ct_AS" >&6 |
---|
4294 | else |
---|
4295 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4296 | echo "${ECHO_T}no" >&6 |
---|
4297 | fi |
---|
4298 | |
---|
4299 | AS=$ac_ct_AS |
---|
4300 | else |
---|
4301 | AS="$ac_cv_prog_AS" |
---|
4302 | fi |
---|
4303 | |
---|
4304 | if test -n "$ac_tool_prefix"; then |
---|
4305 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
---|
4306 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
---|
4307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4309 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
---|
4310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4311 | else |
---|
4312 | if test -n "$OBJDUMP"; then |
---|
4313 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
---|
4314 | else |
---|
4315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4316 | for as_dir in $PATH |
---|
4317 | do |
---|
4318 | IFS=$as_save_IFS |
---|
4319 | test -z "$as_dir" && as_dir=. |
---|
4320 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4322 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
---|
4323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4324 | break 2 |
---|
4325 | fi |
---|
4326 | done |
---|
4327 | done |
---|
4328 | |
---|
4329 | fi |
---|
4330 | fi |
---|
4331 | OBJDUMP=$ac_cv_prog_OBJDUMP |
---|
4332 | if test -n "$OBJDUMP"; then |
---|
4333 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
---|
4334 | echo "${ECHO_T}$OBJDUMP" >&6 |
---|
4335 | else |
---|
4336 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4337 | echo "${ECHO_T}no" >&6 |
---|
4338 | fi |
---|
4339 | |
---|
4340 | fi |
---|
4341 | if test -z "$ac_cv_prog_OBJDUMP"; then |
---|
4342 | ac_ct_OBJDUMP=$OBJDUMP |
---|
4343 | # Extract the first word of "objdump", so it can be a program name with args. |
---|
4344 | set dummy objdump; ac_word=$2 |
---|
4345 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4347 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
---|
4348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4349 | else |
---|
4350 | if test -n "$ac_ct_OBJDUMP"; then |
---|
4351 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
---|
4352 | else |
---|
4353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4354 | for as_dir in $PATH |
---|
4355 | do |
---|
4356 | IFS=$as_save_IFS |
---|
4357 | test -z "$as_dir" && as_dir=. |
---|
4358 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4359 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4360 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
---|
4361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4362 | break 2 |
---|
4363 | fi |
---|
4364 | done |
---|
4365 | done |
---|
4366 | |
---|
4367 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" |
---|
4368 | fi |
---|
4369 | fi |
---|
4370 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
---|
4371 | if test -n "$ac_ct_OBJDUMP"; then |
---|
4372 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
---|
4373 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 |
---|
4374 | else |
---|
4375 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4376 | echo "${ECHO_T}no" >&6 |
---|
4377 | fi |
---|
4378 | |
---|
4379 | OBJDUMP=$ac_ct_OBJDUMP |
---|
4380 | else |
---|
4381 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
---|
4382 | fi |
---|
4383 | |
---|
4384 | ;; |
---|
4385 | |
---|
4386 | esac |
---|
4387 | |
---|
4388 | need_locks="$enable_libtool_lock" |
---|
4389 | |
---|
4390 | |
---|
4391 | ac_ext=c |
---|
4392 | ac_cpp='$CPP $CPPFLAGS' |
---|
4393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4396 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
4397 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
4398 | # On Suns, sometimes $CPP names a directory. |
---|
4399 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4400 | CPP= |
---|
4401 | fi |
---|
4402 | if test -z "$CPP"; then |
---|
4403 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
4404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4405 | else |
---|
4406 | # Double quotes because CPP needs to be expanded |
---|
4407 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4408 | do |
---|
4409 | ac_preproc_ok=false |
---|
4410 | for ac_c_preproc_warn_flag in '' yes |
---|
4411 | do |
---|
4412 | # Use a header file that comes with gcc, so configuring glibc |
---|
4413 | # with a fresh cross-compiler works. |
---|
4414 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4415 | # <limits.h> exists even on freestanding compilers. |
---|
4416 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4417 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4418 | cat >conftest.$ac_ext <<_ACEOF |
---|
4419 | /* confdefs.h. */ |
---|
4420 | _ACEOF |
---|
4421 | cat confdefs.h >>conftest.$ac_ext |
---|
4422 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4423 | /* end confdefs.h. */ |
---|
4424 | #ifdef __STDC__ |
---|
4425 | # include <limits.h> |
---|
4426 | #else |
---|
4427 | # include <assert.h> |
---|
4428 | #endif |
---|
4429 | Syntax error |
---|
4430 | _ACEOF |
---|
4431 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4432 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4433 | ac_status=$? |
---|
4434 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4435 | rm -f conftest.er1 |
---|
4436 | cat conftest.err >&5 |
---|
4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4438 | (exit $ac_status); } >/dev/null; then |
---|
4439 | if test -s conftest.err; then |
---|
4440 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4442 | else |
---|
4443 | ac_cpp_err= |
---|
4444 | fi |
---|
4445 | else |
---|
4446 | ac_cpp_err=yes |
---|
4447 | fi |
---|
4448 | if test -z "$ac_cpp_err"; then |
---|
4449 | : |
---|
4450 | else |
---|
4451 | echo "$as_me: failed program was:" >&5 |
---|
4452 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4453 | |
---|
4454 | # Broken: fails on valid input. |
---|
4455 | continue |
---|
4456 | fi |
---|
4457 | rm -f conftest.err conftest.$ac_ext |
---|
4458 | |
---|
4459 | # OK, works on sane cases. Now check whether non-existent headers |
---|
4460 | # can be detected and how. |
---|
4461 | cat >conftest.$ac_ext <<_ACEOF |
---|
4462 | /* confdefs.h. */ |
---|
4463 | _ACEOF |
---|
4464 | cat confdefs.h >>conftest.$ac_ext |
---|
4465 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4466 | /* end confdefs.h. */ |
---|
4467 | #include <ac_nonexistent.h> |
---|
4468 | _ACEOF |
---|
4469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4471 | ac_status=$? |
---|
4472 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4473 | rm -f conftest.er1 |
---|
4474 | cat conftest.err >&5 |
---|
4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4476 | (exit $ac_status); } >/dev/null; then |
---|
4477 | if test -s conftest.err; then |
---|
4478 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4480 | else |
---|
4481 | ac_cpp_err= |
---|
4482 | fi |
---|
4483 | else |
---|
4484 | ac_cpp_err=yes |
---|
4485 | fi |
---|
4486 | if test -z "$ac_cpp_err"; then |
---|
4487 | # Broken: success on invalid input. |
---|
4488 | continue |
---|
4489 | else |
---|
4490 | echo "$as_me: failed program was:" >&5 |
---|
4491 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4492 | |
---|
4493 | # Passes both tests. |
---|
4494 | ac_preproc_ok=: |
---|
4495 | break |
---|
4496 | fi |
---|
4497 | rm -f conftest.err conftest.$ac_ext |
---|
4498 | |
---|
4499 | done |
---|
4500 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4501 | rm -f conftest.err conftest.$ac_ext |
---|
4502 | if $ac_preproc_ok; then |
---|
4503 | break |
---|
4504 | fi |
---|
4505 | |
---|
4506 | done |
---|
4507 | ac_cv_prog_CPP=$CPP |
---|
4508 | |
---|
4509 | fi |
---|
4510 | CPP=$ac_cv_prog_CPP |
---|
4511 | else |
---|
4512 | ac_cv_prog_CPP=$CPP |
---|
4513 | fi |
---|
4514 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
4515 | echo "${ECHO_T}$CPP" >&6 |
---|
4516 | ac_preproc_ok=false |
---|
4517 | for ac_c_preproc_warn_flag in '' yes |
---|
4518 | do |
---|
4519 | # Use a header file that comes with gcc, so configuring glibc |
---|
4520 | # with a fresh cross-compiler works. |
---|
4521 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4522 | # <limits.h> exists even on freestanding compilers. |
---|
4523 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4524 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4525 | cat >conftest.$ac_ext <<_ACEOF |
---|
4526 | /* confdefs.h. */ |
---|
4527 | _ACEOF |
---|
4528 | cat confdefs.h >>conftest.$ac_ext |
---|
4529 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4530 | /* end confdefs.h. */ |
---|
4531 | #ifdef __STDC__ |
---|
4532 | # include <limits.h> |
---|
4533 | #else |
---|
4534 | # include <assert.h> |
---|
4535 | #endif |
---|
4536 | Syntax error |
---|
4537 | _ACEOF |
---|
4538 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4539 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4540 | ac_status=$? |
---|
4541 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4542 | rm -f conftest.er1 |
---|
4543 | cat conftest.err >&5 |
---|
4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4545 | (exit $ac_status); } >/dev/null; then |
---|
4546 | if test -s conftest.err; then |
---|
4547 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4548 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4549 | else |
---|
4550 | ac_cpp_err= |
---|
4551 | fi |
---|
4552 | else |
---|
4553 | ac_cpp_err=yes |
---|
4554 | fi |
---|
4555 | if test -z "$ac_cpp_err"; then |
---|
4556 | : |
---|
4557 | else |
---|
4558 | echo "$as_me: failed program was:" >&5 |
---|
4559 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4560 | |
---|
4561 | # Broken: fails on valid input. |
---|
4562 | continue |
---|
4563 | fi |
---|
4564 | rm -f conftest.err conftest.$ac_ext |
---|
4565 | |
---|
4566 | # OK, works on sane cases. Now check whether non-existent headers |
---|
4567 | # can be detected and how. |
---|
4568 | cat >conftest.$ac_ext <<_ACEOF |
---|
4569 | /* confdefs.h. */ |
---|
4570 | _ACEOF |
---|
4571 | cat confdefs.h >>conftest.$ac_ext |
---|
4572 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4573 | /* end confdefs.h. */ |
---|
4574 | #include <ac_nonexistent.h> |
---|
4575 | _ACEOF |
---|
4576 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4577 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4578 | ac_status=$? |
---|
4579 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4580 | rm -f conftest.er1 |
---|
4581 | cat conftest.err >&5 |
---|
4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4583 | (exit $ac_status); } >/dev/null; then |
---|
4584 | if test -s conftest.err; then |
---|
4585 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4586 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4587 | else |
---|
4588 | ac_cpp_err= |
---|
4589 | fi |
---|
4590 | else |
---|
4591 | ac_cpp_err=yes |
---|
4592 | fi |
---|
4593 | if test -z "$ac_cpp_err"; then |
---|
4594 | # Broken: success on invalid input. |
---|
4595 | continue |
---|
4596 | else |
---|
4597 | echo "$as_me: failed program was:" >&5 |
---|
4598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4599 | |
---|
4600 | # Passes both tests. |
---|
4601 | ac_preproc_ok=: |
---|
4602 | break |
---|
4603 | fi |
---|
4604 | rm -f conftest.err conftest.$ac_ext |
---|
4605 | |
---|
4606 | done |
---|
4607 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4608 | rm -f conftest.err conftest.$ac_ext |
---|
4609 | if $ac_preproc_ok; then |
---|
4610 | : |
---|
4611 | else |
---|
4612 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
4613 | See \`config.log' for more details." >&5 |
---|
4614 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
4615 | See \`config.log' for more details." >&2;} |
---|
4616 | { (exit 1); exit 1; }; } |
---|
4617 | fi |
---|
4618 | |
---|
4619 | ac_ext=c |
---|
4620 | ac_cpp='$CPP $CPPFLAGS' |
---|
4621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4624 | |
---|
4625 | |
---|
4626 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
4627 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
4628 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
4629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4630 | else |
---|
4631 | cat >conftest.$ac_ext <<_ACEOF |
---|
4632 | /* confdefs.h. */ |
---|
4633 | _ACEOF |
---|
4634 | cat confdefs.h >>conftest.$ac_ext |
---|
4635 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4636 | /* end confdefs.h. */ |
---|
4637 | #include <stdlib.h> |
---|
4638 | #include <stdarg.h> |
---|
4639 | #include <string.h> |
---|
4640 | #include <float.h> |
---|
4641 | |
---|
4642 | int |
---|
4643 | main () |
---|
4644 | { |
---|
4645 | |
---|
4646 | ; |
---|
4647 | return 0; |
---|
4648 | } |
---|
4649 | _ACEOF |
---|
4650 | rm -f conftest.$ac_objext |
---|
4651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4652 | (eval $ac_compile) 2>conftest.er1 |
---|
4653 | ac_status=$? |
---|
4654 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4655 | rm -f conftest.er1 |
---|
4656 | cat conftest.err >&5 |
---|
4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4658 | (exit $ac_status); } && |
---|
4659 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4660 | || test ! -s conftest.err' |
---|
4661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4662 | (eval $ac_try) 2>&5 |
---|
4663 | ac_status=$? |
---|
4664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4665 | (exit $ac_status); }; } && |
---|
4666 | { ac_try='test -s conftest.$ac_objext' |
---|
4667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4668 | (eval $ac_try) 2>&5 |
---|
4669 | ac_status=$? |
---|
4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4671 | (exit $ac_status); }; }; then |
---|
4672 | ac_cv_header_stdc=yes |
---|
4673 | else |
---|
4674 | echo "$as_me: failed program was:" >&5 |
---|
4675 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4676 | |
---|
4677 | ac_cv_header_stdc=no |
---|
4678 | fi |
---|
4679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4680 | |
---|
4681 | if test $ac_cv_header_stdc = yes; then |
---|
4682 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4683 | cat >conftest.$ac_ext <<_ACEOF |
---|
4684 | /* confdefs.h. */ |
---|
4685 | _ACEOF |
---|
4686 | cat confdefs.h >>conftest.$ac_ext |
---|
4687 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4688 | /* end confdefs.h. */ |
---|
4689 | #include <string.h> |
---|
4690 | |
---|
4691 | _ACEOF |
---|
4692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4693 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
4694 | : |
---|
4695 | else |
---|
4696 | ac_cv_header_stdc=no |
---|
4697 | fi |
---|
4698 | rm -f conftest* |
---|
4699 | |
---|
4700 | fi |
---|
4701 | |
---|
4702 | if test $ac_cv_header_stdc = yes; then |
---|
4703 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4704 | cat >conftest.$ac_ext <<_ACEOF |
---|
4705 | /* confdefs.h. */ |
---|
4706 | _ACEOF |
---|
4707 | cat confdefs.h >>conftest.$ac_ext |
---|
4708 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4709 | /* end confdefs.h. */ |
---|
4710 | #include <stdlib.h> |
---|
4711 | |
---|
4712 | _ACEOF |
---|
4713 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4714 | $EGREP "free" >/dev/null 2>&1; then |
---|
4715 | : |
---|
4716 | else |
---|
4717 | ac_cv_header_stdc=no |
---|
4718 | fi |
---|
4719 | rm -f conftest* |
---|
4720 | |
---|
4721 | fi |
---|
4722 | |
---|
4723 | if test $ac_cv_header_stdc = yes; then |
---|
4724 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4725 | if test "$cross_compiling" = yes; then |
---|
4726 | : |
---|
4727 | else |
---|
4728 | cat >conftest.$ac_ext <<_ACEOF |
---|
4729 | /* confdefs.h. */ |
---|
4730 | _ACEOF |
---|
4731 | cat confdefs.h >>conftest.$ac_ext |
---|
4732 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4733 | /* end confdefs.h. */ |
---|
4734 | #include <ctype.h> |
---|
4735 | #if ((' ' & 0x0FF) == 0x020) |
---|
4736 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4737 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4738 | #else |
---|
4739 | # define ISLOWER(c) \ |
---|
4740 | (('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 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4774 | |
---|
4775 | ( exit $ac_status ) |
---|
4776 | ac_cv_header_stdc=no |
---|
4777 | fi |
---|
4778 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4779 | fi |
---|
4780 | fi |
---|
4781 | fi |
---|
4782 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
4783 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
4784 | if test $ac_cv_header_stdc = yes; then |
---|
4785 | |
---|
4786 | cat >>confdefs.h <<\_ACEOF |
---|
4787 | #define STDC_HEADERS 1 |
---|
4788 | _ACEOF |
---|
4789 | |
---|
4790 | fi |
---|
4791 | |
---|
4792 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4793 | |
---|
4794 | |
---|
4795 | |
---|
4796 | |
---|
4797 | |
---|
4798 | |
---|
4799 | |
---|
4800 | |
---|
4801 | |
---|
4802 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4803 | inttypes.h stdint.h unistd.h |
---|
4804 | do |
---|
4805 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4810 | else |
---|
4811 | cat >conftest.$ac_ext <<_ACEOF |
---|
4812 | /* confdefs.h. */ |
---|
4813 | _ACEOF |
---|
4814 | cat confdefs.h >>conftest.$ac_ext |
---|
4815 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4816 | /* end confdefs.h. */ |
---|
4817 | $ac_includes_default |
---|
4818 | |
---|
4819 | #include <$ac_header> |
---|
4820 | _ACEOF |
---|
4821 | rm -f conftest.$ac_objext |
---|
4822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4823 | (eval $ac_compile) 2>conftest.er1 |
---|
4824 | ac_status=$? |
---|
4825 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4826 | rm -f conftest.er1 |
---|
4827 | cat conftest.err >&5 |
---|
4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4829 | (exit $ac_status); } && |
---|
4830 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4831 | || test ! -s conftest.err' |
---|
4832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4833 | (eval $ac_try) 2>&5 |
---|
4834 | ac_status=$? |
---|
4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4836 | (exit $ac_status); }; } && |
---|
4837 | { ac_try='test -s conftest.$ac_objext' |
---|
4838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4839 | (eval $ac_try) 2>&5 |
---|
4840 | ac_status=$? |
---|
4841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4842 | (exit $ac_status); }; }; then |
---|
4843 | eval "$as_ac_Header=yes" |
---|
4844 | else |
---|
4845 | echo "$as_me: failed program was:" >&5 |
---|
4846 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4847 | |
---|
4848 | eval "$as_ac_Header=no" |
---|
4849 | fi |
---|
4850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4851 | fi |
---|
4852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4853 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4854 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4855 | cat >>confdefs.h <<_ACEOF |
---|
4856 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4857 | _ACEOF |
---|
4858 | |
---|
4859 | fi |
---|
4860 | |
---|
4861 | done |
---|
4862 | |
---|
4863 | |
---|
4864 | |
---|
4865 | for ac_header in dlfcn.h |
---|
4866 | do |
---|
4867 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4873 | fi |
---|
4874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4876 | else |
---|
4877 | # Is the header compilable? |
---|
4878 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4879 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4880 | cat >conftest.$ac_ext <<_ACEOF |
---|
4881 | /* confdefs.h. */ |
---|
4882 | _ACEOF |
---|
4883 | cat confdefs.h >>conftest.$ac_ext |
---|
4884 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4885 | /* end confdefs.h. */ |
---|
4886 | $ac_includes_default |
---|
4887 | #include <$ac_header> |
---|
4888 | _ACEOF |
---|
4889 | rm -f conftest.$ac_objext |
---|
4890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4891 | (eval $ac_compile) 2>conftest.er1 |
---|
4892 | ac_status=$? |
---|
4893 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4894 | rm -f conftest.er1 |
---|
4895 | cat conftest.err >&5 |
---|
4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4897 | (exit $ac_status); } && |
---|
4898 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4899 | || test ! -s conftest.err' |
---|
4900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4901 | (eval $ac_try) 2>&5 |
---|
4902 | ac_status=$? |
---|
4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4904 | (exit $ac_status); }; } && |
---|
4905 | { ac_try='test -s conftest.$ac_objext' |
---|
4906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4907 | (eval $ac_try) 2>&5 |
---|
4908 | ac_status=$? |
---|
4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4910 | (exit $ac_status); }; }; then |
---|
4911 | ac_header_compiler=yes |
---|
4912 | else |
---|
4913 | echo "$as_me: failed program was:" >&5 |
---|
4914 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4915 | |
---|
4916 | ac_header_compiler=no |
---|
4917 | fi |
---|
4918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4919 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4920 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4921 | |
---|
4922 | # Is the header present? |
---|
4923 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4925 | cat >conftest.$ac_ext <<_ACEOF |
---|
4926 | /* confdefs.h. */ |
---|
4927 | _ACEOF |
---|
4928 | cat confdefs.h >>conftest.$ac_ext |
---|
4929 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4930 | /* end confdefs.h. */ |
---|
4931 | #include <$ac_header> |
---|
4932 | _ACEOF |
---|
4933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4935 | ac_status=$? |
---|
4936 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4937 | rm -f conftest.er1 |
---|
4938 | cat conftest.err >&5 |
---|
4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4940 | (exit $ac_status); } >/dev/null; then |
---|
4941 | if test -s conftest.err; then |
---|
4942 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4943 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4944 | else |
---|
4945 | ac_cpp_err= |
---|
4946 | fi |
---|
4947 | else |
---|
4948 | ac_cpp_err=yes |
---|
4949 | fi |
---|
4950 | if test -z "$ac_cpp_err"; then |
---|
4951 | ac_header_preproc=yes |
---|
4952 | else |
---|
4953 | echo "$as_me: failed program was:" >&5 |
---|
4954 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4955 | |
---|
4956 | ac_header_preproc=no |
---|
4957 | fi |
---|
4958 | rm -f conftest.err conftest.$ac_ext |
---|
4959 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4960 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4961 | |
---|
4962 | # So? What about this header? |
---|
4963 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4964 | yes:no: ) |
---|
4965 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4966 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4968 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4969 | ac_header_preproc=yes |
---|
4970 | ;; |
---|
4971 | no:yes:* ) |
---|
4972 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4973 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4974 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4975 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4976 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4977 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4978 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4979 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4981 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4982 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4983 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4984 | ( |
---|
4985 | cat <<\_ASBOX |
---|
4986 | ## --------------------------------------------------- ## |
---|
4987 | ## Report this to openal-devel@opensource.creative.com ## |
---|
4988 | ## --------------------------------------------------- ## |
---|
4989 | _ASBOX |
---|
4990 | ) | |
---|
4991 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4992 | ;; |
---|
4993 | esac |
---|
4994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4998 | else |
---|
4999 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5000 | fi |
---|
5001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5003 | |
---|
5004 | fi |
---|
5005 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5006 | cat >>confdefs.h <<_ACEOF |
---|
5007 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5008 | _ACEOF |
---|
5009 | |
---|
5010 | fi |
---|
5011 | |
---|
5012 | done |
---|
5013 | |
---|
5014 | ac_ext=cc |
---|
5015 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5016 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5017 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5018 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5019 | if test -n "$ac_tool_prefix"; then |
---|
5020 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
5021 | do |
---|
5022 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
5023 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
5024 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5026 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
5027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5028 | else |
---|
5029 | if test -n "$CXX"; then |
---|
5030 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
5031 | else |
---|
5032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5033 | for as_dir in $PATH |
---|
5034 | do |
---|
5035 | IFS=$as_save_IFS |
---|
5036 | test -z "$as_dir" && as_dir=. |
---|
5037 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5038 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5039 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
5040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5041 | break 2 |
---|
5042 | fi |
---|
5043 | done |
---|
5044 | done |
---|
5045 | |
---|
5046 | fi |
---|
5047 | fi |
---|
5048 | CXX=$ac_cv_prog_CXX |
---|
5049 | if test -n "$CXX"; then |
---|
5050 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
5051 | echo "${ECHO_T}$CXX" >&6 |
---|
5052 | else |
---|
5053 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5054 | echo "${ECHO_T}no" >&6 |
---|
5055 | fi |
---|
5056 | |
---|
5057 | test -n "$CXX" && break |
---|
5058 | done |
---|
5059 | fi |
---|
5060 | if test -z "$CXX"; then |
---|
5061 | ac_ct_CXX=$CXX |
---|
5062 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
5063 | do |
---|
5064 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5065 | set dummy $ac_prog; ac_word=$2 |
---|
5066 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5068 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
5069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5070 | else |
---|
5071 | if test -n "$ac_ct_CXX"; then |
---|
5072 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
5073 | else |
---|
5074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5075 | for as_dir in $PATH |
---|
5076 | do |
---|
5077 | IFS=$as_save_IFS |
---|
5078 | test -z "$as_dir" && as_dir=. |
---|
5079 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5080 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5081 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
5082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5083 | break 2 |
---|
5084 | fi |
---|
5085 | done |
---|
5086 | done |
---|
5087 | |
---|
5088 | fi |
---|
5089 | fi |
---|
5090 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
5091 | if test -n "$ac_ct_CXX"; then |
---|
5092 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
5093 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
5094 | else |
---|
5095 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5096 | echo "${ECHO_T}no" >&6 |
---|
5097 | fi |
---|
5098 | |
---|
5099 | test -n "$ac_ct_CXX" && break |
---|
5100 | done |
---|
5101 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
5102 | |
---|
5103 | CXX=$ac_ct_CXX |
---|
5104 | fi |
---|
5105 | |
---|
5106 | |
---|
5107 | # Provide some information about the compiler. |
---|
5108 | echo "$as_me:$LINENO:" \ |
---|
5109 | "checking for C++ compiler version" >&5 |
---|
5110 | ac_compiler=`set X $ac_compile; echo $2` |
---|
5111 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
5112 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
5113 | ac_status=$? |
---|
5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5115 | (exit $ac_status); } |
---|
5116 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
5117 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
5118 | ac_status=$? |
---|
5119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5120 | (exit $ac_status); } |
---|
5121 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
5122 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
5123 | ac_status=$? |
---|
5124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5125 | (exit $ac_status); } |
---|
5126 | |
---|
5127 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
5128 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
5129 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
5130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5131 | else |
---|
5132 | cat >conftest.$ac_ext <<_ACEOF |
---|
5133 | /* confdefs.h. */ |
---|
5134 | _ACEOF |
---|
5135 | cat confdefs.h >>conftest.$ac_ext |
---|
5136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5137 | /* end confdefs.h. */ |
---|
5138 | |
---|
5139 | int |
---|
5140 | main () |
---|
5141 | { |
---|
5142 | #ifndef __GNUC__ |
---|
5143 | choke me |
---|
5144 | #endif |
---|
5145 | |
---|
5146 | ; |
---|
5147 | return 0; |
---|
5148 | } |
---|
5149 | _ACEOF |
---|
5150 | rm -f conftest.$ac_objext |
---|
5151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5152 | (eval $ac_compile) 2>conftest.er1 |
---|
5153 | ac_status=$? |
---|
5154 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5155 | rm -f conftest.er1 |
---|
5156 | cat conftest.err >&5 |
---|
5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5158 | (exit $ac_status); } && |
---|
5159 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
5160 | || test ! -s conftest.err' |
---|
5161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5162 | (eval $ac_try) 2>&5 |
---|
5163 | ac_status=$? |
---|
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5165 | (exit $ac_status); }; } && |
---|
5166 | { ac_try='test -s conftest.$ac_objext' |
---|
5167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5168 | (eval $ac_try) 2>&5 |
---|
5169 | ac_status=$? |
---|
5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5171 | (exit $ac_status); }; }; then |
---|
5172 | ac_compiler_gnu=yes |
---|
5173 | else |
---|
5174 | echo "$as_me: failed program was:" >&5 |
---|
5175 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5176 | |
---|
5177 | ac_compiler_gnu=no |
---|
5178 | fi |
---|
5179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5180 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
5181 | |
---|
5182 | fi |
---|
5183 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
5184 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
5185 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
5186 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
5187 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
5188 | CXXFLAGS="-g" |
---|
5189 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
5190 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
5191 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
5192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5193 | else |
---|
5194 | cat >conftest.$ac_ext <<_ACEOF |
---|
5195 | /* confdefs.h. */ |
---|
5196 | _ACEOF |
---|
5197 | cat confdefs.h >>conftest.$ac_ext |
---|
5198 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5199 | /* end confdefs.h. */ |
---|
5200 | |
---|
5201 | int |
---|
5202 | main () |
---|
5203 | { |
---|
5204 | |
---|
5205 | ; |
---|
5206 | return 0; |
---|
5207 | } |
---|
5208 | _ACEOF |
---|
5209 | rm -f conftest.$ac_objext |
---|
5210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5211 | (eval $ac_compile) 2>conftest.er1 |
---|
5212 | ac_status=$? |
---|
5213 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5214 | rm -f conftest.er1 |
---|
5215 | cat conftest.err >&5 |
---|
5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5217 | (exit $ac_status); } && |
---|
5218 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
5219 | || test ! -s conftest.err' |
---|
5220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5221 | (eval $ac_try) 2>&5 |
---|
5222 | ac_status=$? |
---|
5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5224 | (exit $ac_status); }; } && |
---|
5225 | { ac_try='test -s conftest.$ac_objext' |
---|
5226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5227 | (eval $ac_try) 2>&5 |
---|
5228 | ac_status=$? |
---|
5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5230 | (exit $ac_status); }; }; then |
---|
5231 | ac_cv_prog_cxx_g=yes |
---|
5232 | else |
---|
5233 | echo "$as_me: failed program was:" >&5 |
---|
5234 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5235 | |
---|
5236 | ac_cv_prog_cxx_g=no |
---|
5237 | fi |
---|
5238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5239 | fi |
---|
5240 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
5241 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
5242 | if test "$ac_test_CXXFLAGS" = set; then |
---|
5243 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
5244 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
5245 | if test "$GXX" = yes; then |
---|
5246 | CXXFLAGS="-g -O2" |
---|
5247 | else |
---|
5248 | CXXFLAGS="-g" |
---|
5249 | fi |
---|
5250 | else |
---|
5251 | if test "$GXX" = yes; then |
---|
5252 | CXXFLAGS="-O2" |
---|
5253 | else |
---|
5254 | CXXFLAGS= |
---|
5255 | fi |
---|
5256 | fi |
---|
5257 | for ac_declaration in \ |
---|
5258 | '' \ |
---|
5259 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
5260 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
5261 | 'extern "C" void exit (int) throw ();' \ |
---|
5262 | 'extern "C" void exit (int);' \ |
---|
5263 | 'void exit (int);' |
---|
5264 | do |
---|
5265 | cat >conftest.$ac_ext <<_ACEOF |
---|
5266 | /* confdefs.h. */ |
---|
5267 | _ACEOF |
---|
5268 | cat confdefs.h >>conftest.$ac_ext |
---|
5269 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5270 | /* end confdefs.h. */ |
---|
5271 | $ac_declaration |
---|
5272 | #include <stdlib.h> |
---|
5273 | int |
---|
5274 | main () |
---|
5275 | { |
---|
5276 | exit (42); |
---|
5277 | ; |
---|
5278 | return 0; |
---|
5279 | } |
---|
5280 | _ACEOF |
---|
5281 | rm -f conftest.$ac_objext |
---|
5282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5283 | (eval $ac_compile) 2>conftest.er1 |
---|
5284 | ac_status=$? |
---|
5285 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5286 | rm -f conftest.er1 |
---|
5287 | cat conftest.err >&5 |
---|
5288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5289 | (exit $ac_status); } && |
---|
5290 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
5291 | || test ! -s conftest.err' |
---|
5292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5293 | (eval $ac_try) 2>&5 |
---|
5294 | ac_status=$? |
---|
5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5296 | (exit $ac_status); }; } && |
---|
5297 | { ac_try='test -s conftest.$ac_objext' |
---|
5298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5299 | (eval $ac_try) 2>&5 |
---|
5300 | ac_status=$? |
---|
5301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5302 | (exit $ac_status); }; }; then |
---|
5303 | : |
---|
5304 | else |
---|
5305 | echo "$as_me: failed program was:" >&5 |
---|
5306 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5307 | |
---|
5308 | continue |
---|
5309 | fi |
---|
5310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5311 | cat >conftest.$ac_ext <<_ACEOF |
---|
5312 | /* confdefs.h. */ |
---|
5313 | _ACEOF |
---|
5314 | cat confdefs.h >>conftest.$ac_ext |
---|
5315 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5316 | /* end confdefs.h. */ |
---|
5317 | $ac_declaration |
---|
5318 | int |
---|
5319 | main () |
---|
5320 | { |
---|
5321 | exit (42); |
---|
5322 | ; |
---|
5323 | return 0; |
---|
5324 | } |
---|
5325 | _ACEOF |
---|
5326 | rm -f conftest.$ac_objext |
---|
5327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5328 | (eval $ac_compile) 2>conftest.er1 |
---|
5329 | ac_status=$? |
---|
5330 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5331 | rm -f conftest.er1 |
---|
5332 | cat conftest.err >&5 |
---|
5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5334 | (exit $ac_status); } && |
---|
5335 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
5336 | || test ! -s conftest.err' |
---|
5337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5338 | (eval $ac_try) 2>&5 |
---|
5339 | ac_status=$? |
---|
5340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5341 | (exit $ac_status); }; } && |
---|
5342 | { ac_try='test -s conftest.$ac_objext' |
---|
5343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5344 | (eval $ac_try) 2>&5 |
---|
5345 | ac_status=$? |
---|
5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5347 | (exit $ac_status); }; }; then |
---|
5348 | break |
---|
5349 | else |
---|
5350 | echo "$as_me: failed program was:" >&5 |
---|
5351 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5352 | |
---|
5353 | fi |
---|
5354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5355 | done |
---|
5356 | rm -f conftest* |
---|
5357 | if test -n "$ac_declaration"; then |
---|
5358 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
5359 | echo $ac_declaration >>confdefs.h |
---|
5360 | echo '#endif' >>confdefs.h |
---|
5361 | fi |
---|
5362 | |
---|
5363 | ac_ext=cc |
---|
5364 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5365 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5366 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5367 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5368 | |
---|
5369 | depcc="$CXX" am_compiler_list= |
---|
5370 | |
---|
5371 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
5372 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
5373 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
5374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5375 | else |
---|
5376 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
5377 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
5378 | # making bogus files that we don't know about and never remove. For |
---|
5379 | # instance it was reported that on HP-UX the gcc test will end up |
---|
5380 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
5381 | # in D'. |
---|
5382 | mkdir conftest.dir |
---|
5383 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
5384 | # using a relative directory. |
---|
5385 | cp "$am_depcomp" conftest.dir |
---|
5386 | cd conftest.dir |
---|
5387 | # We will build objects and dependencies in a subdirectory because |
---|
5388 | # it helps to detect inapplicable dependency modes. For instance |
---|
5389 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
5390 | # side effect of compilation, but ICC will put the dependencies in |
---|
5391 | # the current directory while Tru64 will put them in the object |
---|
5392 | # directory. |
---|
5393 | mkdir sub |
---|
5394 | |
---|
5395 | am_cv_CXX_dependencies_compiler_type=none |
---|
5396 | if test "$am_compiler_list" = ""; then |
---|
5397 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
5398 | fi |
---|
5399 | for depmode in $am_compiler_list; do |
---|
5400 | # Setup a source with many dependencies, because some compilers |
---|
5401 | # like to wrap large dependency lists on column 80 (with \), and |
---|
5402 | # we should not choose a depcomp mode which is confused by this. |
---|
5403 | # |
---|
5404 | # We need to recreate these files for each test, as the compiler may |
---|
5405 | # overwrite some of them when testing with obscure command lines. |
---|
5406 | # This happens at least with the AIX C compiler. |
---|
5407 | : > sub/conftest.c |
---|
5408 | for i in 1 2 3 4 5 6; do |
---|
5409 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
5410 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
5411 | # Solaris 8's {/usr,}/bin/sh. |
---|
5412 | touch sub/conftst$i.h |
---|
5413 | done |
---|
5414 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
5415 | |
---|
5416 | case $depmode in |
---|
5417 | nosideeffect) |
---|
5418 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
5419 | # only be used when explicitly requested |
---|
5420 | if test "x$enable_dependency_tracking" = xyes; then |
---|
5421 | continue |
---|
5422 | else |
---|
5423 | break |
---|
5424 | fi |
---|
5425 | ;; |
---|
5426 | none) break ;; |
---|
5427 | esac |
---|
5428 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
5429 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
5430 | # handle `-M -o', and we need to detect this. |
---|
5431 | if depmode=$depmode \ |
---|
5432 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
5433 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
5434 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
5435 | >/dev/null 2>conftest.err && |
---|
5436 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5437 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
5438 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
5439 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
5440 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
5441 | # that says an option was ignored or not supported. |
---|
5442 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
5443 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
5444 | # The diagnosis changed in icc 8.0: |
---|
5445 | # icc: Command line remark: option '-MP' not supported |
---|
5446 | if (grep 'ignoring option' conftest.err || |
---|
5447 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
5448 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
5449 | break |
---|
5450 | fi |
---|
5451 | fi |
---|
5452 | done |
---|
5453 | |
---|
5454 | cd .. |
---|
5455 | rm -rf conftest.dir |
---|
5456 | else |
---|
5457 | am_cv_CXX_dependencies_compiler_type=none |
---|
5458 | fi |
---|
5459 | |
---|
5460 | fi |
---|
5461 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
5462 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
5463 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
5464 | |
---|
5465 | |
---|
5466 | |
---|
5467 | if |
---|
5468 | test "x$enable_dependency_tracking" != xno \ |
---|
5469 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
5470 | am__fastdepCXX_TRUE= |
---|
5471 | am__fastdepCXX_FALSE='#' |
---|
5472 | else |
---|
5473 | am__fastdepCXX_TRUE='#' |
---|
5474 | am__fastdepCXX_FALSE= |
---|
5475 | fi |
---|
5476 | |
---|
5477 | |
---|
5478 | |
---|
5479 | |
---|
5480 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
5481 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
5482 | (test "X$CXX" != "Xg++"))) ; then |
---|
5483 | ac_ext=cc |
---|
5484 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5485 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5486 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5487 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5488 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
5489 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
5490 | if test -z "$CXXCPP"; then |
---|
5491 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
5492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5493 | else |
---|
5494 | # Double quotes because CXXCPP needs to be expanded |
---|
5495 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
5496 | do |
---|
5497 | ac_preproc_ok=false |
---|
5498 | for ac_cxx_preproc_warn_flag in '' yes |
---|
5499 | do |
---|
5500 | # Use a header file that comes with gcc, so configuring glibc |
---|
5501 | # with a fresh cross-compiler works. |
---|
5502 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5503 | # <limits.h> exists even on freestanding compilers. |
---|
5504 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5505 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5506 | cat >conftest.$ac_ext <<_ACEOF |
---|
5507 | /* confdefs.h. */ |
---|
5508 | _ACEOF |
---|
5509 | cat confdefs.h >>conftest.$ac_ext |
---|
5510 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5511 | /* end confdefs.h. */ |
---|
5512 | #ifdef __STDC__ |
---|
5513 | # include <limits.h> |
---|
5514 | #else |
---|
5515 | # include <assert.h> |
---|
5516 | #endif |
---|
5517 | Syntax error |
---|
5518 | _ACEOF |
---|
5519 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5520 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5521 | ac_status=$? |
---|
5522 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5523 | rm -f conftest.er1 |
---|
5524 | cat conftest.err >&5 |
---|
5525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5526 | (exit $ac_status); } >/dev/null; then |
---|
5527 | if test -s conftest.err; then |
---|
5528 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5529 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5530 | else |
---|
5531 | ac_cpp_err= |
---|
5532 | fi |
---|
5533 | else |
---|
5534 | ac_cpp_err=yes |
---|
5535 | fi |
---|
5536 | if test -z "$ac_cpp_err"; then |
---|
5537 | : |
---|
5538 | else |
---|
5539 | echo "$as_me: failed program was:" >&5 |
---|
5540 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5541 | |
---|
5542 | # Broken: fails on valid input. |
---|
5543 | continue |
---|
5544 | fi |
---|
5545 | rm -f conftest.err conftest.$ac_ext |
---|
5546 | |
---|
5547 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5548 | # can be detected and how. |
---|
5549 | cat >conftest.$ac_ext <<_ACEOF |
---|
5550 | /* confdefs.h. */ |
---|
5551 | _ACEOF |
---|
5552 | cat confdefs.h >>conftest.$ac_ext |
---|
5553 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5554 | /* end confdefs.h. */ |
---|
5555 | #include <ac_nonexistent.h> |
---|
5556 | _ACEOF |
---|
5557 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5558 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5559 | ac_status=$? |
---|
5560 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5561 | rm -f conftest.er1 |
---|
5562 | cat conftest.err >&5 |
---|
5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5564 | (exit $ac_status); } >/dev/null; then |
---|
5565 | if test -s conftest.err; then |
---|
5566 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5567 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5568 | else |
---|
5569 | ac_cpp_err= |
---|
5570 | fi |
---|
5571 | else |
---|
5572 | ac_cpp_err=yes |
---|
5573 | fi |
---|
5574 | if test -z "$ac_cpp_err"; then |
---|
5575 | # Broken: success on invalid input. |
---|
5576 | continue |
---|
5577 | else |
---|
5578 | echo "$as_me: failed program was:" >&5 |
---|
5579 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5580 | |
---|
5581 | # Passes both tests. |
---|
5582 | ac_preproc_ok=: |
---|
5583 | break |
---|
5584 | fi |
---|
5585 | rm -f conftest.err conftest.$ac_ext |
---|
5586 | |
---|
5587 | done |
---|
5588 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5589 | rm -f conftest.err conftest.$ac_ext |
---|
5590 | if $ac_preproc_ok; then |
---|
5591 | break |
---|
5592 | fi |
---|
5593 | |
---|
5594 | done |
---|
5595 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
5596 | |
---|
5597 | fi |
---|
5598 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
5599 | else |
---|
5600 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
5601 | fi |
---|
5602 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
5603 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
5604 | ac_preproc_ok=false |
---|
5605 | for ac_cxx_preproc_warn_flag in '' yes |
---|
5606 | do |
---|
5607 | # Use a header file that comes with gcc, so configuring glibc |
---|
5608 | # with a fresh cross-compiler works. |
---|
5609 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5610 | # <limits.h> exists even on freestanding compilers. |
---|
5611 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5612 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5613 | cat >conftest.$ac_ext <<_ACEOF |
---|
5614 | /* confdefs.h. */ |
---|
5615 | _ACEOF |
---|
5616 | cat confdefs.h >>conftest.$ac_ext |
---|
5617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5618 | /* end confdefs.h. */ |
---|
5619 | #ifdef __STDC__ |
---|
5620 | # include <limits.h> |
---|
5621 | #else |
---|
5622 | # include <assert.h> |
---|
5623 | #endif |
---|
5624 | Syntax error |
---|
5625 | _ACEOF |
---|
5626 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5627 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5628 | ac_status=$? |
---|
5629 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5630 | rm -f conftest.er1 |
---|
5631 | cat conftest.err >&5 |
---|
5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5633 | (exit $ac_status); } >/dev/null; then |
---|
5634 | if test -s conftest.err; then |
---|
5635 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5636 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5637 | else |
---|
5638 | ac_cpp_err= |
---|
5639 | fi |
---|
5640 | else |
---|
5641 | ac_cpp_err=yes |
---|
5642 | fi |
---|
5643 | if test -z "$ac_cpp_err"; then |
---|
5644 | : |
---|
5645 | else |
---|
5646 | echo "$as_me: failed program was:" >&5 |
---|
5647 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5648 | |
---|
5649 | # Broken: fails on valid input. |
---|
5650 | continue |
---|
5651 | fi |
---|
5652 | rm -f conftest.err conftest.$ac_ext |
---|
5653 | |
---|
5654 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5655 | # can be detected and how. |
---|
5656 | cat >conftest.$ac_ext <<_ACEOF |
---|
5657 | /* confdefs.h. */ |
---|
5658 | _ACEOF |
---|
5659 | cat confdefs.h >>conftest.$ac_ext |
---|
5660 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5661 | /* end confdefs.h. */ |
---|
5662 | #include <ac_nonexistent.h> |
---|
5663 | _ACEOF |
---|
5664 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5665 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5666 | ac_status=$? |
---|
5667 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5668 | rm -f conftest.er1 |
---|
5669 | cat conftest.err >&5 |
---|
5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5671 | (exit $ac_status); } >/dev/null; then |
---|
5672 | if test -s conftest.err; then |
---|
5673 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5674 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5675 | else |
---|
5676 | ac_cpp_err= |
---|
5677 | fi |
---|
5678 | else |
---|
5679 | ac_cpp_err=yes |
---|
5680 | fi |
---|
5681 | if test -z "$ac_cpp_err"; then |
---|
5682 | # Broken: success on invalid input. |
---|
5683 | continue |
---|
5684 | else |
---|
5685 | echo "$as_me: failed program was:" >&5 |
---|
5686 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5687 | |
---|
5688 | # Passes both tests. |
---|
5689 | ac_preproc_ok=: |
---|
5690 | break |
---|
5691 | fi |
---|
5692 | rm -f conftest.err conftest.$ac_ext |
---|
5693 | |
---|
5694 | done |
---|
5695 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5696 | rm -f conftest.err conftest.$ac_ext |
---|
5697 | if $ac_preproc_ok; then |
---|
5698 | : |
---|
5699 | else |
---|
5700 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
5701 | See \`config.log' for more details." >&5 |
---|
5702 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
5703 | See \`config.log' for more details." >&2;} |
---|
5704 | { (exit 1); exit 1; }; } |
---|
5705 | fi |
---|
5706 | |
---|
5707 | ac_ext=cc |
---|
5708 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5709 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5710 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5711 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5712 | |
---|
5713 | fi |
---|
5714 | |
---|
5715 | |
---|
5716 | ac_ext=f |
---|
5717 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5718 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5719 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5720 | if test -n "$ac_tool_prefix"; then |
---|
5721 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
5722 | do |
---|
5723 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
5724 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
5725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5727 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
5728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5729 | else |
---|
5730 | if test -n "$F77"; then |
---|
5731 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
5732 | else |
---|
5733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5734 | for as_dir in $PATH |
---|
5735 | do |
---|
5736 | IFS=$as_save_IFS |
---|
5737 | test -z "$as_dir" && as_dir=. |
---|
5738 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5740 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
5741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5742 | break 2 |
---|
5743 | fi |
---|
5744 | done |
---|
5745 | done |
---|
5746 | |
---|
5747 | fi |
---|
5748 | fi |
---|
5749 | F77=$ac_cv_prog_F77 |
---|
5750 | if test -n "$F77"; then |
---|
5751 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
5752 | echo "${ECHO_T}$F77" >&6 |
---|
5753 | else |
---|
5754 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5755 | echo "${ECHO_T}no" >&6 |
---|
5756 | fi |
---|
5757 | |
---|
5758 | test -n "$F77" && break |
---|
5759 | done |
---|
5760 | fi |
---|
5761 | if test -z "$F77"; then |
---|
5762 | ac_ct_F77=$F77 |
---|
5763 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
5764 | do |
---|
5765 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5766 | set dummy $ac_prog; ac_word=$2 |
---|
5767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5769 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
5770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5771 | else |
---|
5772 | if test -n "$ac_ct_F77"; then |
---|
5773 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
5774 | else |
---|
5775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5776 | for as_dir in $PATH |
---|
5777 | do |
---|
5778 | IFS=$as_save_IFS |
---|
5779 | test -z "$as_dir" && as_dir=. |
---|
5780 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5782 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
5783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5784 | break 2 |
---|
5785 | fi |
---|
5786 | done |
---|
5787 | done |
---|
5788 | |
---|
5789 | fi |
---|
5790 | fi |
---|
5791 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
5792 | if test -n "$ac_ct_F77"; then |
---|
5793 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
5794 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
5795 | else |
---|
5796 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5797 | echo "${ECHO_T}no" >&6 |
---|
5798 | fi |
---|
5799 | |
---|
5800 | test -n "$ac_ct_F77" && break |
---|
5801 | done |
---|
5802 | |
---|
5803 | F77=$ac_ct_F77 |
---|
5804 | fi |
---|
5805 | |
---|
5806 | |
---|
5807 | # Provide some information about the compiler. |
---|
5808 | echo "$as_me:5808:" \ |
---|
5809 | "checking for Fortran 77 compiler version" >&5 |
---|
5810 | ac_compiler=`set X $ac_compile; echo $2` |
---|
5811 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
5812 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
5813 | ac_status=$? |
---|
5814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5815 | (exit $ac_status); } |
---|
5816 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
5817 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
5818 | ac_status=$? |
---|
5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5820 | (exit $ac_status); } |
---|
5821 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
5822 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
5823 | ac_status=$? |
---|
5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5825 | (exit $ac_status); } |
---|
5826 | rm -f a.out |
---|
5827 | |
---|
5828 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
5829 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
5830 | ac_save_ext=$ac_ext |
---|
5831 | ac_ext=F |
---|
5832 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
5833 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
5834 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
5835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5836 | else |
---|
5837 | cat >conftest.$ac_ext <<_ACEOF |
---|
5838 | program main |
---|
5839 | #ifndef __GNUC__ |
---|
5840 | choke me |
---|
5841 | #endif |
---|
5842 | |
---|
5843 | end |
---|
5844 | _ACEOF |
---|
5845 | rm -f conftest.$ac_objext |
---|
5846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5847 | (eval $ac_compile) 2>conftest.er1 |
---|
5848 | ac_status=$? |
---|
5849 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5850 | rm -f conftest.er1 |
---|
5851 | cat conftest.err >&5 |
---|
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5853 | (exit $ac_status); } && |
---|
5854 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
5855 | || test ! -s conftest.err' |
---|
5856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5857 | (eval $ac_try) 2>&5 |
---|
5858 | ac_status=$? |
---|
5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5860 | (exit $ac_status); }; } && |
---|
5861 | { ac_try='test -s conftest.$ac_objext' |
---|
5862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5863 | (eval $ac_try) 2>&5 |
---|
5864 | ac_status=$? |
---|
5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5866 | (exit $ac_status); }; }; then |
---|
5867 | ac_compiler_gnu=yes |
---|
5868 | else |
---|
5869 | echo "$as_me: failed program was:" >&5 |
---|
5870 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5871 | |
---|
5872 | ac_compiler_gnu=no |
---|
5873 | fi |
---|
5874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5875 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
5876 | |
---|
5877 | fi |
---|
5878 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
5879 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
5880 | ac_ext=$ac_save_ext |
---|
5881 | ac_test_FFLAGS=${FFLAGS+set} |
---|
5882 | ac_save_FFLAGS=$FFLAGS |
---|
5883 | FFLAGS= |
---|
5884 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
5885 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
5886 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
5887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5888 | else |
---|
5889 | FFLAGS=-g |
---|
5890 | cat >conftest.$ac_ext <<_ACEOF |
---|
5891 | program main |
---|
5892 | |
---|
5893 | end |
---|
5894 | _ACEOF |
---|
5895 | rm -f conftest.$ac_objext |
---|
5896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5897 | (eval $ac_compile) 2>conftest.er1 |
---|
5898 | ac_status=$? |
---|
5899 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5900 | rm -f conftest.er1 |
---|
5901 | cat conftest.err >&5 |
---|
5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5903 | (exit $ac_status); } && |
---|
5904 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
5905 | || test ! -s conftest.err' |
---|
5906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5907 | (eval $ac_try) 2>&5 |
---|
5908 | ac_status=$? |
---|
5909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5910 | (exit $ac_status); }; } && |
---|
5911 | { ac_try='test -s conftest.$ac_objext' |
---|
5912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5913 | (eval $ac_try) 2>&5 |
---|
5914 | ac_status=$? |
---|
5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5916 | (exit $ac_status); }; }; then |
---|
5917 | ac_cv_prog_f77_g=yes |
---|
5918 | else |
---|
5919 | echo "$as_me: failed program was:" >&5 |
---|
5920 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5921 | |
---|
5922 | ac_cv_prog_f77_g=no |
---|
5923 | fi |
---|
5924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5925 | |
---|
5926 | fi |
---|
5927 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
5928 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
5929 | if test "$ac_test_FFLAGS" = set; then |
---|
5930 | FFLAGS=$ac_save_FFLAGS |
---|
5931 | elif test $ac_cv_prog_f77_g = yes; then |
---|
5932 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
5933 | FFLAGS="-g -O2" |
---|
5934 | else |
---|
5935 | FFLAGS="-g" |
---|
5936 | fi |
---|
5937 | else |
---|
5938 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
5939 | FFLAGS="-O2" |
---|
5940 | else |
---|
5941 | FFLAGS= |
---|
5942 | fi |
---|
5943 | fi |
---|
5944 | |
---|
5945 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
5946 | ac_ext=c |
---|
5947 | ac_cpp='$CPP $CPPFLAGS' |
---|
5948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5951 | |
---|
5952 | |
---|
5953 | |
---|
5954 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
5955 | |
---|
5956 | # find the maximum length of command line arguments |
---|
5957 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
5958 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
---|
5959 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5961 | else |
---|
5962 | i=0 |
---|
5963 | teststring="ABCD" |
---|
5964 | |
---|
5965 | case $build_os in |
---|
5966 | msdosdjgpp*) |
---|
5967 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
5968 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
5969 | # during glob expansion). Even if it were fixed, the result of this |
---|
5970 | # check would be larger than it should be. |
---|
5971 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
5972 | ;; |
---|
5973 | |
---|
5974 | gnu*) |
---|
5975 | # Under GNU Hurd, this test is not required because there is |
---|
5976 | # no limit to the length of command line arguments. |
---|
5977 | # Libtool will interpret -1 as no limit whatsoever |
---|
5978 | lt_cv_sys_max_cmd_len=-1; |
---|
5979 | ;; |
---|
5980 | |
---|
5981 | cygwin* | mingw*) |
---|
5982 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
5983 | # about 5 minutes as the teststring grows exponentially. |
---|
5984 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
5985 | # you end up with a "frozen" computer, even though with patience |
---|
5986 | # the test eventually succeeds (with a max line length of 256k). |
---|
5987 | # Instead, let's just punt: use the minimum linelength reported by |
---|
5988 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
5989 | lt_cv_sys_max_cmd_len=8192; |
---|
5990 | ;; |
---|
5991 | |
---|
5992 | amigaos*) |
---|
5993 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
5994 | # So we just punt and use a minimum line length of 8192. |
---|
5995 | lt_cv_sys_max_cmd_len=8192; |
---|
5996 | ;; |
---|
5997 | |
---|
5998 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
5999 | # This has been around since 386BSD, at least. Likely further. |
---|
6000 | if test -x /sbin/sysctl; then |
---|
6001 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
6002 | elif test -x /usr/sbin/sysctl; then |
---|
6003 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
6004 | else |
---|
6005 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
---|
6006 | fi |
---|
6007 | # And add a safety zone |
---|
6008 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6009 | ;; |
---|
6010 | osf*) |
---|
6011 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
6012 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
6013 | # nice to cause kernel panics so lets avoid the loop below. |
---|
6014 | # First set a reasonable default. |
---|
6015 | lt_cv_sys_max_cmd_len=16384 |
---|
6016 | # |
---|
6017 | if test -x /sbin/sysconfig; then |
---|
6018 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
6019 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
6020 | esac |
---|
6021 | fi |
---|
6022 | ;; |
---|
6023 | *) |
---|
6024 | # If test is not a shell built-in, we'll probably end up computing a |
---|
6025 | # maximum length that is only half of the actual maximum length, but |
---|
6026 | # we can't tell. |
---|
6027 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
6028 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
6029 | = "XX$teststring") >/dev/null 2>&1 && |
---|
6030 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
6031 | lt_cv_sys_max_cmd_len=$new_result && |
---|
6032 | test $i != 17 # 1/2 MB should be enough |
---|
6033 | do |
---|
6034 | i=`expr $i + 1` |
---|
6035 | teststring=$teststring$teststring |
---|
6036 | done |
---|
6037 | teststring= |
---|
6038 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
6039 | # amounts of additional arguments before passing them to the linker. |
---|
6040 | # It appears as though 1/2 is a usable value. |
---|
6041 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
6042 | ;; |
---|
6043 | esac |
---|
6044 | |
---|
6045 | fi |
---|
6046 | |
---|
6047 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
6048 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
6049 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
---|
6050 | else |
---|
6051 | echo "$as_me:$LINENO: result: none" >&5 |
---|
6052 | echo "${ECHO_T}none" >&6 |
---|
6053 | fi |
---|
6054 | |
---|
6055 | |
---|
6056 | |
---|
6057 | |
---|
6058 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
6059 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
6060 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
---|
6061 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
6062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6063 | else |
---|
6064 | |
---|
6065 | # These are sane defaults that work on at least a few old systems. |
---|
6066 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
6067 | |
---|
6068 | # Character class describing NM global symbol codes. |
---|
6069 | symcode='[BCDEGRST]' |
---|
6070 | |
---|
6071 | # Regexp to match symbols that can be accessed directly from C. |
---|
6072 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
6073 | |
---|
6074 | # Transform an extracted symbol line into a proper C declaration |
---|
6075 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
6076 | |
---|
6077 | # Transform an extracted symbol line into symbol name and symbol address |
---|
6078 | 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'" |
---|
6079 | |
---|
6080 | # Define system-specific variables. |
---|
6081 | case $host_os in |
---|
6082 | aix*) |
---|
6083 | symcode='[BCDT]' |
---|
6084 | ;; |
---|
6085 | cygwin* | mingw* | pw32*) |
---|
6086 | symcode='[ABCDGISTW]' |
---|
6087 | ;; |
---|
6088 | hpux*) # Its linker distinguishes data from code symbols |
---|
6089 | if test "$host_cpu" = ia64; then |
---|
6090 | symcode='[ABCDEGRST]' |
---|
6091 | fi |
---|
6092 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
6093 | 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'" |
---|
6094 | ;; |
---|
6095 | linux*) |
---|
6096 | if test "$host_cpu" = ia64; then |
---|
6097 | symcode='[ABCDGIRSTW]' |
---|
6098 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
6099 | 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'" |
---|
6100 | fi |
---|
6101 | ;; |
---|
6102 | irix* | nonstopux*) |
---|
6103 | symcode='[BCDEGRST]' |
---|
6104 | ;; |
---|
6105 | osf*) |
---|
6106 | symcode='[BCDEGQRST]' |
---|
6107 | ;; |
---|
6108 | solaris* | sysv5*) |
---|
6109 | symcode='[BDRT]' |
---|
6110 | ;; |
---|
6111 | sysv4) |
---|
6112 | symcode='[DFNSTU]' |
---|
6113 | ;; |
---|
6114 | esac |
---|
6115 | |
---|
6116 | # Handle CRLF in mingw tool chain |
---|
6117 | opt_cr= |
---|
6118 | case $build_os in |
---|
6119 | mingw*) |
---|
6120 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
6121 | ;; |
---|
6122 | esac |
---|
6123 | |
---|
6124 | # If we're using GNU nm, then use its standard symbol codes. |
---|
6125 | case `$NM -V 2>&1` in |
---|
6126 | *GNU* | *'with BFD'*) |
---|
6127 | symcode='[ABCDGIRSTW]' ;; |
---|
6128 | esac |
---|
6129 | |
---|
6130 | # Try without a prefix undercore, then with it. |
---|
6131 | for ac_symprfx in "" "_"; do |
---|
6132 | |
---|
6133 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
6134 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
6135 | |
---|
6136 | # Write the raw and C identifiers. |
---|
6137 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
6138 | |
---|
6139 | # Check to see that the pipe works correctly. |
---|
6140 | pipe_works=no |
---|
6141 | |
---|
6142 | rm -f conftest* |
---|
6143 | cat > conftest.$ac_ext <<EOF |
---|
6144 | #ifdef __cplusplus |
---|
6145 | extern "C" { |
---|
6146 | #endif |
---|
6147 | char nm_test_var; |
---|
6148 | void nm_test_func(){} |
---|
6149 | #ifdef __cplusplus |
---|
6150 | } |
---|
6151 | #endif |
---|
6152 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
6153 | EOF |
---|
6154 | |
---|
6155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6156 | (eval $ac_compile) 2>&5 |
---|
6157 | ac_status=$? |
---|
6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6159 | (exit $ac_status); }; then |
---|
6160 | # Now try to grab the symbols. |
---|
6161 | nlist=conftest.nm |
---|
6162 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
6163 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
6164 | ac_status=$? |
---|
6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6166 | (exit $ac_status); } && test -s "$nlist"; then |
---|
6167 | # Try sorting and uniquifying the output. |
---|
6168 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
6169 | mv -f "$nlist"T "$nlist" |
---|
6170 | else |
---|
6171 | rm -f "$nlist"T |
---|
6172 | fi |
---|
6173 | |
---|
6174 | # Make sure that we snagged all the symbols we need. |
---|
6175 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
6176 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
6177 | cat <<EOF > conftest.$ac_ext |
---|
6178 | #ifdef __cplusplus |
---|
6179 | extern "C" { |
---|
6180 | #endif |
---|
6181 | |
---|
6182 | EOF |
---|
6183 | # Now generate the symbol file. |
---|
6184 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
6185 | |
---|
6186 | cat <<EOF >> conftest.$ac_ext |
---|
6187 | #if defined (__STDC__) && __STDC__ |
---|
6188 | # define lt_ptr_t void * |
---|
6189 | #else |
---|
6190 | # define lt_ptr_t char * |
---|
6191 | # define const |
---|
6192 | #endif |
---|
6193 | |
---|
6194 | /* The mapping between symbol names and symbols. */ |
---|
6195 | const struct { |
---|
6196 | const char *name; |
---|
6197 | lt_ptr_t address; |
---|
6198 | } |
---|
6199 | lt_preloaded_symbols[] = |
---|
6200 | { |
---|
6201 | EOF |
---|
6202 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
6203 | cat <<\EOF >> conftest.$ac_ext |
---|
6204 | {0, (lt_ptr_t) 0} |
---|
6205 | }; |
---|
6206 | |
---|
6207 | #ifdef __cplusplus |
---|
6208 | } |
---|
6209 | #endif |
---|
6210 | EOF |
---|
6211 | # Now try linking the two files. |
---|
6212 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
6213 | lt_save_LIBS="$LIBS" |
---|
6214 | lt_save_CFLAGS="$CFLAGS" |
---|
6215 | LIBS="conftstm.$ac_objext" |
---|
6216 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
6217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6218 | (eval $ac_link) 2>&5 |
---|
6219 | ac_status=$? |
---|
6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6221 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
6222 | pipe_works=yes |
---|
6223 | fi |
---|
6224 | LIBS="$lt_save_LIBS" |
---|
6225 | CFLAGS="$lt_save_CFLAGS" |
---|
6226 | else |
---|
6227 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
6228 | fi |
---|
6229 | else |
---|
6230 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
6231 | fi |
---|
6232 | else |
---|
6233 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
6234 | fi |
---|
6235 | else |
---|
6236 | echo "$progname: failed program was:" >&5 |
---|
6237 | cat conftest.$ac_ext >&5 |
---|
6238 | fi |
---|
6239 | rm -f conftest* conftst* |
---|
6240 | |
---|
6241 | # Do not use the global_symbol_pipe unless it works. |
---|
6242 | if test "$pipe_works" = yes; then |
---|
6243 | break |
---|
6244 | else |
---|
6245 | lt_cv_sys_global_symbol_pipe= |
---|
6246 | fi |
---|
6247 | done |
---|
6248 | |
---|
6249 | fi |
---|
6250 | |
---|
6251 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
6252 | lt_cv_sys_global_symbol_to_cdecl= |
---|
6253 | fi |
---|
6254 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
6255 | echo "$as_me:$LINENO: result: failed" >&5 |
---|
6256 | echo "${ECHO_T}failed" >&6 |
---|
6257 | else |
---|
6258 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
6259 | echo "${ECHO_T}ok" >&6 |
---|
6260 | fi |
---|
6261 | |
---|
6262 | echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
6263 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
6264 | if test "${lt_cv_objdir+set}" = set; then |
---|
6265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6266 | else |
---|
6267 | rm -f .libs 2>/dev/null |
---|
6268 | mkdir .libs 2>/dev/null |
---|
6269 | if test -d .libs; then |
---|
6270 | lt_cv_objdir=.libs |
---|
6271 | else |
---|
6272 | # MS-DOS does not allow filenames that begin with a dot. |
---|
6273 | lt_cv_objdir=_libs |
---|
6274 | fi |
---|
6275 | rmdir .libs 2>/dev/null |
---|
6276 | fi |
---|
6277 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
6278 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
---|
6279 | objdir=$lt_cv_objdir |
---|
6280 | |
---|
6281 | |
---|
6282 | |
---|
6283 | |
---|
6284 | |
---|
6285 | case $host_os in |
---|
6286 | aix3*) |
---|
6287 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
6288 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
6289 | # vanish in a puff of smoke. |
---|
6290 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
6291 | COLLECT_NAMES= |
---|
6292 | export COLLECT_NAMES |
---|
6293 | fi |
---|
6294 | ;; |
---|
6295 | esac |
---|
6296 | |
---|
6297 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
6298 | # metacharacters that are still active within double-quoted strings. |
---|
6299 | Xsed='sed -e s/^X//' |
---|
6300 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
6301 | |
---|
6302 | # Same as above, but do not quote variable references. |
---|
6303 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
6304 | |
---|
6305 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
6306 | # double_quote_subst'ed string. |
---|
6307 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
6308 | |
---|
6309 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
6310 | no_glob_subst='s/\*/\\\*/g' |
---|
6311 | |
---|
6312 | # Constants: |
---|
6313 | rm="rm -f" |
---|
6314 | |
---|
6315 | # Global variables: |
---|
6316 | default_ofile=libtool |
---|
6317 | can_build_shared=yes |
---|
6318 | |
---|
6319 | # All known linkers require a `.a' archive for static linking (except M$VC, |
---|
6320 | # which needs '.lib'). |
---|
6321 | libext=a |
---|
6322 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
6323 | ofile="$default_ofile" |
---|
6324 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
6325 | |
---|
6326 | if test -n "$ac_tool_prefix"; then |
---|
6327 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
6328 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
6329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6331 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
6332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6333 | else |
---|
6334 | if test -n "$AR"; then |
---|
6335 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
6336 | else |
---|
6337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6338 | for as_dir in $PATH |
---|
6339 | do |
---|
6340 | IFS=$as_save_IFS |
---|
6341 | test -z "$as_dir" && as_dir=. |
---|
6342 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6344 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
6345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6346 | break 2 |
---|
6347 | fi |
---|
6348 | done |
---|
6349 | done |
---|
6350 | |
---|
6351 | fi |
---|
6352 | fi |
---|
6353 | AR=$ac_cv_prog_AR |
---|
6354 | if test -n "$AR"; then |
---|
6355 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
6356 | echo "${ECHO_T}$AR" >&6 |
---|
6357 | else |
---|
6358 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6359 | echo "${ECHO_T}no" >&6 |
---|
6360 | fi |
---|
6361 | |
---|
6362 | fi |
---|
6363 | if test -z "$ac_cv_prog_AR"; then |
---|
6364 | ac_ct_AR=$AR |
---|
6365 | # Extract the first word of "ar", so it can be a program name with args. |
---|
6366 | set dummy ar; ac_word=$2 |
---|
6367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6369 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
6370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6371 | else |
---|
6372 | if test -n "$ac_ct_AR"; then |
---|
6373 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
6374 | else |
---|
6375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6376 | for as_dir in $PATH |
---|
6377 | do |
---|
6378 | IFS=$as_save_IFS |
---|
6379 | test -z "$as_dir" && as_dir=. |
---|
6380 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6382 | ac_cv_prog_ac_ct_AR="ar" |
---|
6383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6384 | break 2 |
---|
6385 | fi |
---|
6386 | done |
---|
6387 | done |
---|
6388 | |
---|
6389 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
---|
6390 | fi |
---|
6391 | fi |
---|
6392 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
6393 | if test -n "$ac_ct_AR"; then |
---|
6394 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
6395 | echo "${ECHO_T}$ac_ct_AR" >&6 |
---|
6396 | else |
---|
6397 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6398 | echo "${ECHO_T}no" >&6 |
---|
6399 | fi |
---|
6400 | |
---|
6401 | AR=$ac_ct_AR |
---|
6402 | else |
---|
6403 | AR="$ac_cv_prog_AR" |
---|
6404 | fi |
---|
6405 | |
---|
6406 | if test -n "$ac_tool_prefix"; then |
---|
6407 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
6408 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
6409 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6411 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
6412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6413 | else |
---|
6414 | if test -n "$RANLIB"; then |
---|
6415 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
6416 | else |
---|
6417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6418 | for as_dir in $PATH |
---|
6419 | do |
---|
6420 | IFS=$as_save_IFS |
---|
6421 | test -z "$as_dir" && as_dir=. |
---|
6422 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6423 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6424 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
6425 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6426 | break 2 |
---|
6427 | fi |
---|
6428 | done |
---|
6429 | done |
---|
6430 | |
---|
6431 | fi |
---|
6432 | fi |
---|
6433 | RANLIB=$ac_cv_prog_RANLIB |
---|
6434 | if test -n "$RANLIB"; then |
---|
6435 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
6436 | echo "${ECHO_T}$RANLIB" >&6 |
---|
6437 | else |
---|
6438 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6439 | echo "${ECHO_T}no" >&6 |
---|
6440 | fi |
---|
6441 | |
---|
6442 | fi |
---|
6443 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
6444 | ac_ct_RANLIB=$RANLIB |
---|
6445 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
6446 | set dummy ranlib; ac_word=$2 |
---|
6447 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6449 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
6450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6451 | else |
---|
6452 | if test -n "$ac_ct_RANLIB"; then |
---|
6453 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
6454 | else |
---|
6455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6456 | for as_dir in $PATH |
---|
6457 | do |
---|
6458 | IFS=$as_save_IFS |
---|
6459 | test -z "$as_dir" && as_dir=. |
---|
6460 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6462 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
6463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6464 | break 2 |
---|
6465 | fi |
---|
6466 | done |
---|
6467 | done |
---|
6468 | |
---|
6469 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
6470 | fi |
---|
6471 | fi |
---|
6472 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
6473 | if test -n "$ac_ct_RANLIB"; then |
---|
6474 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
6475 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
6476 | else |
---|
6477 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6478 | echo "${ECHO_T}no" >&6 |
---|
6479 | fi |
---|
6480 | |
---|
6481 | RANLIB=$ac_ct_RANLIB |
---|
6482 | else |
---|
6483 | RANLIB="$ac_cv_prog_RANLIB" |
---|
6484 | fi |
---|
6485 | |
---|
6486 | if test -n "$ac_tool_prefix"; then |
---|
6487 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
6488 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
6489 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6491 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
6492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6493 | else |
---|
6494 | if test -n "$STRIP"; then |
---|
6495 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
6496 | else |
---|
6497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6498 | for as_dir in $PATH |
---|
6499 | do |
---|
6500 | IFS=$as_save_IFS |
---|
6501 | test -z "$as_dir" && as_dir=. |
---|
6502 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6503 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6504 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
6505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6506 | break 2 |
---|
6507 | fi |
---|
6508 | done |
---|
6509 | done |
---|
6510 | |
---|
6511 | fi |
---|
6512 | fi |
---|
6513 | STRIP=$ac_cv_prog_STRIP |
---|
6514 | if test -n "$STRIP"; then |
---|
6515 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
6516 | echo "${ECHO_T}$STRIP" >&6 |
---|
6517 | else |
---|
6518 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6519 | echo "${ECHO_T}no" >&6 |
---|
6520 | fi |
---|
6521 | |
---|
6522 | fi |
---|
6523 | if test -z "$ac_cv_prog_STRIP"; then |
---|
6524 | ac_ct_STRIP=$STRIP |
---|
6525 | # Extract the first word of "strip", so it can be a program name with args. |
---|
6526 | set dummy strip; ac_word=$2 |
---|
6527 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6528 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6529 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
6530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6531 | else |
---|
6532 | if test -n "$ac_ct_STRIP"; then |
---|
6533 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
6534 | else |
---|
6535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6536 | for as_dir in $PATH |
---|
6537 | do |
---|
6538 | IFS=$as_save_IFS |
---|
6539 | test -z "$as_dir" && as_dir=. |
---|
6540 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6541 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6542 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
6543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6544 | break 2 |
---|
6545 | fi |
---|
6546 | done |
---|
6547 | done |
---|
6548 | |
---|
6549 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
6550 | fi |
---|
6551 | fi |
---|
6552 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
6553 | if test -n "$ac_ct_STRIP"; then |
---|
6554 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
6555 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
6556 | else |
---|
6557 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6558 | echo "${ECHO_T}no" >&6 |
---|
6559 | fi |
---|
6560 | |
---|
6561 | STRIP=$ac_ct_STRIP |
---|
6562 | else |
---|
6563 | STRIP="$ac_cv_prog_STRIP" |
---|
6564 | fi |
---|
6565 | |
---|
6566 | |
---|
6567 | old_CC="$CC" |
---|
6568 | old_CFLAGS="$CFLAGS" |
---|
6569 | |
---|
6570 | # Set sane defaults for various variables |
---|
6571 | test -z "$AR" && AR=ar |
---|
6572 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
6573 | test -z "$AS" && AS=as |
---|
6574 | test -z "$CC" && CC=cc |
---|
6575 | test -z "$LTCC" && LTCC=$CC |
---|
6576 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
6577 | test -z "$LD" && LD=ld |
---|
6578 | test -z "$LN_S" && LN_S="ln -s" |
---|
6579 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
6580 | test -z "$NM" && NM=nm |
---|
6581 | test -z "$SED" && SED=sed |
---|
6582 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
6583 | test -z "$RANLIB" && RANLIB=: |
---|
6584 | test -z "$STRIP" && STRIP=: |
---|
6585 | test -z "$ac_objext" && ac_objext=o |
---|
6586 | |
---|
6587 | # Determine commands to create old-style static archives. |
---|
6588 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
6589 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
6590 | old_postuninstall_cmds= |
---|
6591 | |
---|
6592 | if test -n "$RANLIB"; then |
---|
6593 | case $host_os in |
---|
6594 | openbsd*) |
---|
6595 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
---|
6596 | ;; |
---|
6597 | *) |
---|
6598 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
---|
6599 | ;; |
---|
6600 | esac |
---|
6601 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
6602 | fi |
---|
6603 | |
---|
6604 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
---|
6605 | |
---|
6606 | # Only perform the check for file, if the check method requires it |
---|
6607 | case $deplibs_check_method in |
---|
6608 | file_magic*) |
---|
6609 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
6610 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
6611 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
6612 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
6613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6614 | else |
---|
6615 | case $MAGIC_CMD in |
---|
6616 | [\\/*] | ?:[\\/]*) |
---|
6617 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
6618 | ;; |
---|
6619 | *) |
---|
6620 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
6621 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
6622 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
6623 | for ac_dir in $ac_dummy; do |
---|
6624 | IFS="$lt_save_ifs" |
---|
6625 | test -z "$ac_dir" && ac_dir=. |
---|
6626 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
6627 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
6628 | if test -n "$file_magic_test_file"; then |
---|
6629 | case $deplibs_check_method in |
---|
6630 | "file_magic "*) |
---|
6631 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
---|
6632 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
6633 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
6634 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
6635 | : |
---|
6636 | else |
---|
6637 | cat <<EOF 1>&2 |
---|
6638 | |
---|
6639 | *** Warning: the command libtool uses to detect shared libraries, |
---|
6640 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
6641 | *** The result is that libtool may fail to recognize shared libraries |
---|
6642 | *** as such. This will affect the creation of libtool libraries that |
---|
6643 | *** depend on shared libraries, but programs linked with such libtool |
---|
6644 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
6645 | *** may want to report the problem to your system manager and/or to |
---|
6646 | *** bug-libtool@gnu.org |
---|
6647 | |
---|
6648 | EOF |
---|
6649 | fi ;; |
---|
6650 | esac |
---|
6651 | fi |
---|
6652 | break |
---|
6653 | fi |
---|
6654 | done |
---|
6655 | IFS="$lt_save_ifs" |
---|
6656 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
6657 | ;; |
---|
6658 | esac |
---|
6659 | fi |
---|
6660 | |
---|
6661 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
6662 | if test -n "$MAGIC_CMD"; then |
---|
6663 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
6664 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
6665 | else |
---|
6666 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6667 | echo "${ECHO_T}no" >&6 |
---|
6668 | fi |
---|
6669 | |
---|
6670 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
6671 | if test -n "$ac_tool_prefix"; then |
---|
6672 | echo "$as_me:$LINENO: checking for file" >&5 |
---|
6673 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
6674 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
6675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6676 | else |
---|
6677 | case $MAGIC_CMD in |
---|
6678 | [\\/*] | ?:[\\/]*) |
---|
6679 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
6680 | ;; |
---|
6681 | *) |
---|
6682 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
6683 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
6684 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
6685 | for ac_dir in $ac_dummy; do |
---|
6686 | IFS="$lt_save_ifs" |
---|
6687 | test -z "$ac_dir" && ac_dir=. |
---|
6688 | if test -f $ac_dir/file; then |
---|
6689 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
6690 | if test -n "$file_magic_test_file"; then |
---|
6691 | case $deplibs_check_method in |
---|
6692 | "file_magic "*) |
---|
6693 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
---|
6694 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
6695 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
6696 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
6697 | : |
---|
6698 | else |
---|
6699 | cat <<EOF 1>&2 |
---|
6700 | |
---|
6701 | *** Warning: the command libtool uses to detect shared libraries, |
---|
6702 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
6703 | *** The result is that libtool may fail to recognize shared libraries |
---|
6704 | *** as such. This will affect the creation of libtool libraries that |
---|
6705 | *** depend on shared libraries, but programs linked with such libtool |
---|
6706 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
6707 | *** may want to report the problem to your system manager and/or to |
---|
6708 | *** bug-libtool@gnu.org |
---|
6709 | |
---|
6710 | EOF |
---|
6711 | fi ;; |
---|
6712 | esac |
---|
6713 | fi |
---|
6714 | break |
---|
6715 | fi |
---|
6716 | done |
---|
6717 | IFS="$lt_save_ifs" |
---|
6718 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
6719 | ;; |
---|
6720 | esac |
---|
6721 | fi |
---|
6722 | |
---|
6723 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
6724 | if test -n "$MAGIC_CMD"; then |
---|
6725 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
6726 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
6727 | else |
---|
6728 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6729 | echo "${ECHO_T}no" >&6 |
---|
6730 | fi |
---|
6731 | |
---|
6732 | else |
---|
6733 | MAGIC_CMD=: |
---|
6734 | fi |
---|
6735 | fi |
---|
6736 | |
---|
6737 | fi |
---|
6738 | ;; |
---|
6739 | esac |
---|
6740 | |
---|
6741 | enable_dlopen=no |
---|
6742 | enable_win32_dll=yes |
---|
6743 | |
---|
6744 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
6745 | if test "${enable_libtool_lock+set}" = set; then |
---|
6746 | enableval="$enable_libtool_lock" |
---|
6747 | |
---|
6748 | fi; |
---|
6749 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
6750 | |
---|
6751 | |
---|
6752 | # Check whether --with-pic or --without-pic was given. |
---|
6753 | if test "${with_pic+set}" = set; then |
---|
6754 | withval="$with_pic" |
---|
6755 | pic_mode="$withval" |
---|
6756 | else |
---|
6757 | pic_mode=default |
---|
6758 | fi; |
---|
6759 | test -z "$pic_mode" && pic_mode=default |
---|
6760 | |
---|
6761 | # Use C for the default configuration in the libtool script |
---|
6762 | tagname= |
---|
6763 | lt_save_CC="$CC" |
---|
6764 | ac_ext=c |
---|
6765 | ac_cpp='$CPP $CPPFLAGS' |
---|
6766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6769 | |
---|
6770 | |
---|
6771 | # Source file extension for C test sources. |
---|
6772 | ac_ext=c |
---|
6773 | |
---|
6774 | # Object file extension for compiled C test sources. |
---|
6775 | objext=o |
---|
6776 | objext=$objext |
---|
6777 | |
---|
6778 | # Code to be used in simple compile tests |
---|
6779 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
6780 | |
---|
6781 | # Code to be used in simple link tests |
---|
6782 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
6783 | |
---|
6784 | |
---|
6785 | # If no C compiler was specified, use CC. |
---|
6786 | LTCC=${LTCC-"$CC"} |
---|
6787 | |
---|
6788 | # Allow CC to be a program name with arguments. |
---|
6789 | compiler=$CC |
---|
6790 | |
---|
6791 | |
---|
6792 | # |
---|
6793 | # Check for any special shared library compilation flags. |
---|
6794 | # |
---|
6795 | lt_prog_cc_shlib= |
---|
6796 | if test "$GCC" = no; then |
---|
6797 | case $host_os in |
---|
6798 | sco3.2v5*) |
---|
6799 | lt_prog_cc_shlib='-belf' |
---|
6800 | ;; |
---|
6801 | esac |
---|
6802 | fi |
---|
6803 | if test -n "$lt_prog_cc_shlib"; then |
---|
6804 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
---|
6805 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
---|
6806 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
---|
6807 | else |
---|
6808 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
---|
6809 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
---|
6810 | lt_cv_prog_cc_can_build_shared=no |
---|
6811 | fi |
---|
6812 | fi |
---|
6813 | |
---|
6814 | |
---|
6815 | # |
---|
6816 | # Check to make sure the static flag actually works. |
---|
6817 | # |
---|
6818 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
---|
6819 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
---|
6820 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
6821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6822 | else |
---|
6823 | lt_prog_compiler_static_works=no |
---|
6824 | save_LDFLAGS="$LDFLAGS" |
---|
6825 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
---|
6826 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
6827 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
6828 | # The compiler can only warn and ignore the option if not recognized |
---|
6829 | # So say no if there are warnings |
---|
6830 | if test -s conftest.err; then |
---|
6831 | # Append any errors to the config.log. |
---|
6832 | cat conftest.err 1>&5 |
---|
6833 | else |
---|
6834 | lt_prog_compiler_static_works=yes |
---|
6835 | fi |
---|
6836 | fi |
---|
6837 | $rm conftest* |
---|
6838 | LDFLAGS="$save_LDFLAGS" |
---|
6839 | |
---|
6840 | fi |
---|
6841 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
6842 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
---|
6843 | |
---|
6844 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
6845 | : |
---|
6846 | else |
---|
6847 | lt_prog_compiler_static= |
---|
6848 | fi |
---|
6849 | |
---|
6850 | |
---|
6851 | |
---|
6852 | |
---|
6853 | lt_prog_compiler_no_builtin_flag= |
---|
6854 | |
---|
6855 | if test "$GCC" = yes; then |
---|
6856 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
6857 | |
---|
6858 | |
---|
6859 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
6860 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
6861 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
6862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6863 | else |
---|
6864 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
6865 | ac_outfile=conftest.$ac_objext |
---|
6866 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
6867 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
6868 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
6869 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
6870 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
6871 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
6872 | # The option is referenced via a variable to avoid confusing sed. |
---|
6873 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
6874 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
6875 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
6876 | -e 's:$: $lt_compiler_flag:'` |
---|
6877 | (eval echo "\"\$as_me:6877: $lt_compile\"" >&5) |
---|
6878 | (eval "$lt_compile" 2>conftest.err) |
---|
6879 | ac_status=$? |
---|
6880 | cat conftest.err >&5 |
---|
6881 | echo "$as_me:6881: \$? = $ac_status" >&5 |
---|
6882 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
6883 | # The compiler can only warn and ignore the option if not recognized |
---|
6884 | # So say no if there are warnings |
---|
6885 | if test ! -s conftest.err; then |
---|
6886 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
6887 | fi |
---|
6888 | fi |
---|
6889 | $rm conftest* |
---|
6890 | |
---|
6891 | fi |
---|
6892 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
6893 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
6894 | |
---|
6895 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
6896 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
6897 | else |
---|
6898 | : |
---|
6899 | fi |
---|
6900 | |
---|
6901 | fi |
---|
6902 | |
---|
6903 | lt_prog_compiler_wl= |
---|
6904 | lt_prog_compiler_pic= |
---|
6905 | lt_prog_compiler_static= |
---|
6906 | |
---|
6907 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
6908 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
6909 | |
---|
6910 | if test "$GCC" = yes; then |
---|
6911 | lt_prog_compiler_wl='-Wl,' |
---|
6912 | lt_prog_compiler_static='-static' |
---|
6913 | |
---|
6914 | case $host_os in |
---|
6915 | aix*) |
---|
6916 | # All AIX code is PIC. |
---|
6917 | if test "$host_cpu" = ia64; then |
---|
6918 | # AIX 5 now supports IA64 processor |
---|
6919 | lt_prog_compiler_static='-Bstatic' |
---|
6920 | fi |
---|
6921 | ;; |
---|
6922 | |
---|
6923 | amigaos*) |
---|
6924 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
6925 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
6926 | # like `-m68040'. |
---|
6927 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
6928 | ;; |
---|
6929 | |
---|
6930 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
6931 | # PIC is the default for these OSes. |
---|
6932 | ;; |
---|
6933 | |
---|
6934 | mingw* | pw32* | os2*) |
---|
6935 | # This hack is so that the source file can tell whether it is being |
---|
6936 | # built for inclusion in a dll (and should export symbols for example). |
---|
6937 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
6938 | ;; |
---|
6939 | |
---|
6940 | darwin* | rhapsody*) |
---|
6941 | # PIC is the default on this platform |
---|
6942 | # Common symbols not allowed in MH_DYLIB files |
---|
6943 | lt_prog_compiler_pic='-fno-common' |
---|
6944 | ;; |
---|
6945 | |
---|
6946 | msdosdjgpp*) |
---|
6947 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
6948 | # on systems that don't support them. |
---|
6949 | lt_prog_compiler_can_build_shared=no |
---|
6950 | enable_shared=no |
---|
6951 | ;; |
---|
6952 | |
---|
6953 | sysv4*MP*) |
---|
6954 | if test -d /usr/nec; then |
---|
6955 | lt_prog_compiler_pic=-Kconform_pic |
---|
6956 | fi |
---|
6957 | ;; |
---|
6958 | |
---|
6959 | hpux*) |
---|
6960 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
6961 | # not for PA HP-UX. |
---|
6962 | case "$host_cpu" in |
---|
6963 | hppa*64*|ia64*) |
---|
6964 | # +Z the default |
---|
6965 | ;; |
---|
6966 | *) |
---|
6967 | lt_prog_compiler_pic='-fPIC' |
---|
6968 | ;; |
---|
6969 | esac |
---|
6970 | ;; |
---|
6971 | |
---|
6972 | *) |
---|
6973 | lt_prog_compiler_pic='-fPIC' |
---|
6974 | ;; |
---|
6975 | esac |
---|
6976 | else |
---|
6977 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
6978 | case $host_os in |
---|
6979 | aix*) |
---|
6980 | lt_prog_compiler_wl='-Wl,' |
---|
6981 | if test "$host_cpu" = ia64; then |
---|
6982 | # AIX 5 now supports IA64 processor |
---|
6983 | lt_prog_compiler_static='-Bstatic' |
---|
6984 | else |
---|
6985 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
6986 | fi |
---|
6987 | ;; |
---|
6988 | darwin*) |
---|
6989 | # PIC is the default on this platform |
---|
6990 | # Common symbols not allowed in MH_DYLIB files |
---|
6991 | case "$cc_basename" in |
---|
6992 | xlc*) |
---|
6993 | lt_prog_compiler_pic='-qnocommon' |
---|
6994 | lt_prog_compiler_wl='-Wl,' |
---|
6995 | ;; |
---|
6996 | esac |
---|
6997 | ;; |
---|
6998 | |
---|
6999 | mingw* | pw32* | os2*) |
---|
7000 | # This hack is so that the source file can tell whether it is being |
---|
7001 | # built for inclusion in a dll (and should export symbols for example). |
---|
7002 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7003 | ;; |
---|
7004 | |
---|
7005 | hpux9* | hpux10* | hpux11*) |
---|
7006 | lt_prog_compiler_wl='-Wl,' |
---|
7007 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7008 | # not for PA HP-UX. |
---|
7009 | case "$host_cpu" in |
---|
7010 | hppa*64*|ia64*) |
---|
7011 | # +Z the default |
---|
7012 | ;; |
---|
7013 | *) |
---|
7014 | lt_prog_compiler_pic='+Z' |
---|
7015 | ;; |
---|
7016 | esac |
---|
7017 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
7018 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
7019 | ;; |
---|
7020 | |
---|
7021 | irix5* | irix6* | nonstopux*) |
---|
7022 | lt_prog_compiler_wl='-Wl,' |
---|
7023 | # PIC (with -KPIC) is the default. |
---|
7024 | lt_prog_compiler_static='-non_shared' |
---|
7025 | ;; |
---|
7026 | |
---|
7027 | newsos6) |
---|
7028 | lt_prog_compiler_pic='-KPIC' |
---|
7029 | lt_prog_compiler_static='-Bstatic' |
---|
7030 | ;; |
---|
7031 | |
---|
7032 | linux*) |
---|
7033 | case $cc_basename in |
---|
7034 | icc* | ecc*) |
---|
7035 | lt_prog_compiler_wl='-Wl,' |
---|
7036 | lt_prog_compiler_pic='-KPIC' |
---|
7037 | lt_prog_compiler_static='-static' |
---|
7038 | ;; |
---|
7039 | pgcc | pgf77 | pgf90) |
---|
7040 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
7041 | # which looks to be a dead project) |
---|
7042 | lt_prog_compiler_wl='-Wl,' |
---|
7043 | lt_prog_compiler_pic='-fpic' |
---|
7044 | lt_prog_compiler_static='-static' |
---|
7045 | ;; |
---|
7046 | ccc*) |
---|
7047 | lt_prog_compiler_wl='-Wl,' |
---|
7048 | # All Alpha code is PIC. |
---|
7049 | lt_prog_compiler_static='-non_shared' |
---|
7050 | ;; |
---|
7051 | esac |
---|
7052 | ;; |
---|
7053 | |
---|
7054 | osf3* | osf4* | osf5*) |
---|
7055 | lt_prog_compiler_wl='-Wl,' |
---|
7056 | # All OSF/1 code is PIC. |
---|
7057 | lt_prog_compiler_static='-non_shared' |
---|
7058 | ;; |
---|
7059 | |
---|
7060 | sco3.2v5*) |
---|
7061 | lt_prog_compiler_pic='-Kpic' |
---|
7062 | lt_prog_compiler_static='-dn' |
---|
7063 | ;; |
---|
7064 | |
---|
7065 | solaris*) |
---|
7066 | lt_prog_compiler_wl='-Wl,' |
---|
7067 | lt_prog_compiler_pic='-KPIC' |
---|
7068 | lt_prog_compiler_static='-Bstatic' |
---|
7069 | ;; |
---|
7070 | |
---|
7071 | sunos4*) |
---|
7072 | lt_prog_compiler_wl='-Qoption ld ' |
---|
7073 | lt_prog_compiler_pic='-PIC' |
---|
7074 | lt_prog_compiler_static='-Bstatic' |
---|
7075 | ;; |
---|
7076 | |
---|
7077 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
7078 | lt_prog_compiler_wl='-Wl,' |
---|
7079 | lt_prog_compiler_pic='-KPIC' |
---|
7080 | lt_prog_compiler_static='-Bstatic' |
---|
7081 | ;; |
---|
7082 | |
---|
7083 | sysv4*MP*) |
---|
7084 | if test -d /usr/nec ;then |
---|
7085 | lt_prog_compiler_pic='-Kconform_pic' |
---|
7086 | lt_prog_compiler_static='-Bstatic' |
---|
7087 | fi |
---|
7088 | ;; |
---|
7089 | |
---|
7090 | unicos*) |
---|
7091 | lt_prog_compiler_wl='-Wl,' |
---|
7092 | lt_prog_compiler_can_build_shared=no |
---|
7093 | ;; |
---|
7094 | |
---|
7095 | uts4*) |
---|
7096 | lt_prog_compiler_pic='-pic' |
---|
7097 | lt_prog_compiler_static='-Bstatic' |
---|
7098 | ;; |
---|
7099 | |
---|
7100 | *) |
---|
7101 | lt_prog_compiler_can_build_shared=no |
---|
7102 | ;; |
---|
7103 | esac |
---|
7104 | fi |
---|
7105 | |
---|
7106 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
7107 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
7108 | |
---|
7109 | # |
---|
7110 | # Check to make sure the PIC flag actually works. |
---|
7111 | # |
---|
7112 | if test -n "$lt_prog_compiler_pic"; then |
---|
7113 | |
---|
7114 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
7115 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
7116 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
7117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7118 | else |
---|
7119 | lt_prog_compiler_pic_works=no |
---|
7120 | ac_outfile=conftest.$ac_objext |
---|
7121 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7122 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
7123 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7124 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7125 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7126 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7127 | # The option is referenced via a variable to avoid confusing sed. |
---|
7128 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7129 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
7130 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7131 | -e 's:$: $lt_compiler_flag:'` |
---|
7132 | (eval echo "\"\$as_me:7132: $lt_compile\"" >&5) |
---|
7133 | (eval "$lt_compile" 2>conftest.err) |
---|
7134 | ac_status=$? |
---|
7135 | cat conftest.err >&5 |
---|
7136 | echo "$as_me:7136: \$? = $ac_status" >&5 |
---|
7137 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7138 | # The compiler can only warn and ignore the option if not recognized |
---|
7139 | # So say no if there are warnings |
---|
7140 | if test ! -s conftest.err; then |
---|
7141 | lt_prog_compiler_pic_works=yes |
---|
7142 | fi |
---|
7143 | fi |
---|
7144 | $rm conftest* |
---|
7145 | |
---|
7146 | fi |
---|
7147 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
7148 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
7149 | |
---|
7150 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
7151 | case $lt_prog_compiler_pic in |
---|
7152 | "" | " "*) ;; |
---|
7153 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
7154 | esac |
---|
7155 | else |
---|
7156 | lt_prog_compiler_pic= |
---|
7157 | lt_prog_compiler_can_build_shared=no |
---|
7158 | fi |
---|
7159 | |
---|
7160 | fi |
---|
7161 | case "$host_os" in |
---|
7162 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
7163 | *djgpp*) |
---|
7164 | lt_prog_compiler_pic= |
---|
7165 | ;; |
---|
7166 | *) |
---|
7167 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
7168 | ;; |
---|
7169 | esac |
---|
7170 | |
---|
7171 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
7172 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
7173 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
7174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7175 | else |
---|
7176 | lt_cv_prog_compiler_c_o=no |
---|
7177 | $rm -r conftest 2>/dev/null |
---|
7178 | mkdir conftest |
---|
7179 | cd conftest |
---|
7180 | mkdir out |
---|
7181 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7182 | |
---|
7183 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
7184 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7185 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7186 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7187 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7188 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7189 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
7190 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7191 | -e 's:$: $lt_compiler_flag:'` |
---|
7192 | (eval echo "\"\$as_me:7192: $lt_compile\"" >&5) |
---|
7193 | (eval "$lt_compile" 2>out/conftest.err) |
---|
7194 | ac_status=$? |
---|
7195 | cat out/conftest.err >&5 |
---|
7196 | echo "$as_me:7196: \$? = $ac_status" >&5 |
---|
7197 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
7198 | then |
---|
7199 | # The compiler can only warn and ignore the option if not recognized |
---|
7200 | # So say no if there are warnings |
---|
7201 | if test ! -s out/conftest.err; then |
---|
7202 | lt_cv_prog_compiler_c_o=yes |
---|
7203 | fi |
---|
7204 | fi |
---|
7205 | chmod u+w . |
---|
7206 | $rm conftest* |
---|
7207 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
7208 | # template instantiation |
---|
7209 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
7210 | $rm out/* && rmdir out |
---|
7211 | cd .. |
---|
7212 | rmdir conftest |
---|
7213 | $rm conftest* |
---|
7214 | |
---|
7215 | fi |
---|
7216 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
7217 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
7218 | |
---|
7219 | |
---|
7220 | hard_links="nottested" |
---|
7221 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
7222 | # do not overwrite the value of need_locks provided by the user |
---|
7223 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
7224 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
7225 | hard_links=yes |
---|
7226 | $rm conftest* |
---|
7227 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
7228 | touch conftest.a |
---|
7229 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
7230 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
7231 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
7232 | echo "${ECHO_T}$hard_links" >&6 |
---|
7233 | if test "$hard_links" = no; then |
---|
7234 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
7235 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
7236 | need_locks=warn |
---|
7237 | fi |
---|
7238 | else |
---|
7239 | need_locks=no |
---|
7240 | fi |
---|
7241 | |
---|
7242 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
7243 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
7244 | |
---|
7245 | runpath_var= |
---|
7246 | allow_undefined_flag= |
---|
7247 | enable_shared_with_static_runtimes=no |
---|
7248 | archive_cmds= |
---|
7249 | archive_expsym_cmds= |
---|
7250 | old_archive_From_new_cmds= |
---|
7251 | old_archive_from_expsyms_cmds= |
---|
7252 | export_dynamic_flag_spec= |
---|
7253 | whole_archive_flag_spec= |
---|
7254 | thread_safe_flag_spec= |
---|
7255 | hardcode_libdir_flag_spec= |
---|
7256 | hardcode_libdir_flag_spec_ld= |
---|
7257 | hardcode_libdir_separator= |
---|
7258 | hardcode_direct=no |
---|
7259 | hardcode_minus_L=no |
---|
7260 | hardcode_shlibpath_var=unsupported |
---|
7261 | link_all_deplibs=unknown |
---|
7262 | hardcode_automatic=no |
---|
7263 | module_cmds= |
---|
7264 | module_expsym_cmds= |
---|
7265 | always_export_symbols=no |
---|
7266 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
7267 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
7268 | # included in the symbol list |
---|
7269 | include_expsyms= |
---|
7270 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
7271 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
7272 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
7273 | # as well as any symbol that contains `d'. |
---|
7274 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
7275 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
7276 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
7277 | # the symbol is explicitly referenced. Since portable code cannot |
---|
7278 | # rely on this symbol name, it's probably fine to never include it in |
---|
7279 | # preloaded symbol tables. |
---|
7280 | extract_expsyms_cmds= |
---|
7281 | |
---|
7282 | case $host_os in |
---|
7283 | cygwin* | mingw* | pw32*) |
---|
7284 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
7285 | # When not using gcc, we currently assume that we are using |
---|
7286 | # Microsoft Visual C++. |
---|
7287 | if test "$GCC" != yes; then |
---|
7288 | with_gnu_ld=no |
---|
7289 | fi |
---|
7290 | ;; |
---|
7291 | openbsd*) |
---|
7292 | with_gnu_ld=no |
---|
7293 | ;; |
---|
7294 | esac |
---|
7295 | |
---|
7296 | ld_shlibs=yes |
---|
7297 | if test "$with_gnu_ld" = yes; then |
---|
7298 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
7299 | wlarc='${wl}' |
---|
7300 | |
---|
7301 | # See if GNU ld supports shared libraries. |
---|
7302 | case $host_os in |
---|
7303 | aix3* | aix4* | aix5*) |
---|
7304 | # On AIX/PPC, the GNU linker is very broken |
---|
7305 | if test "$host_cpu" != ia64; then |
---|
7306 | ld_shlibs=no |
---|
7307 | cat <<EOF 1>&2 |
---|
7308 | |
---|
7309 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
7310 | *** to be unable to reliably create shared libraries on AIX. |
---|
7311 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
7312 | *** really care for shared libraries, you may want to modify your PATH |
---|
7313 | *** so that a non-GNU linker is found, and then restart. |
---|
7314 | |
---|
7315 | EOF |
---|
7316 | fi |
---|
7317 | ;; |
---|
7318 | |
---|
7319 | amigaos*) |
---|
7320 | 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)' |
---|
7321 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7322 | hardcode_minus_L=yes |
---|
7323 | |
---|
7324 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
7325 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
7326 | # to version 4, is to share data among multiple programs linked |
---|
7327 | # with the same dynamic library. Since this doesn't match the |
---|
7328 | # behavior of shared libraries on other platforms, we can't use |
---|
7329 | # them. |
---|
7330 | ld_shlibs=no |
---|
7331 | ;; |
---|
7332 | |
---|
7333 | beos*) |
---|
7334 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
7335 | allow_undefined_flag=unsupported |
---|
7336 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
7337 | # support --undefined. This deserves some investigation. FIXME |
---|
7338 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7339 | else |
---|
7340 | ld_shlibs=no |
---|
7341 | fi |
---|
7342 | ;; |
---|
7343 | |
---|
7344 | cygwin* | mingw* | pw32*) |
---|
7345 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
7346 | # as there is no search path for DLLs. |
---|
7347 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7348 | allow_undefined_flag=unsupported |
---|
7349 | always_export_symbols=no |
---|
7350 | enable_shared_with_static_runtimes=yes |
---|
7351 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
7352 | |
---|
7353 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
7354 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
7355 | # If the export-symbols file already is a .def file (1st line |
---|
7356 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
7357 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
7358 | cp $export_symbols $output_objdir/$soname.def; |
---|
7359 | else |
---|
7360 | echo EXPORTS > $output_objdir/$soname.def; |
---|
7361 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
7362 | fi~ |
---|
7363 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
7364 | else |
---|
7365 | ld_shlibs=no |
---|
7366 | fi |
---|
7367 | ;; |
---|
7368 | |
---|
7369 | netbsd*) |
---|
7370 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
7371 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
7372 | wlarc= |
---|
7373 | else |
---|
7374 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7375 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
7376 | fi |
---|
7377 | ;; |
---|
7378 | |
---|
7379 | solaris* | sysv5*) |
---|
7380 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
7381 | ld_shlibs=no |
---|
7382 | cat <<EOF 1>&2 |
---|
7383 | |
---|
7384 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
7385 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
7386 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
7387 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
7388 | *** your PATH or compiler configuration so that the native linker is |
---|
7389 | *** used, and then restart. |
---|
7390 | |
---|
7391 | EOF |
---|
7392 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
7393 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7394 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
7395 | else |
---|
7396 | ld_shlibs=no |
---|
7397 | fi |
---|
7398 | ;; |
---|
7399 | |
---|
7400 | sunos4*) |
---|
7401 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
7402 | wlarc= |
---|
7403 | hardcode_direct=yes |
---|
7404 | hardcode_shlibpath_var=no |
---|
7405 | ;; |
---|
7406 | |
---|
7407 | linux*) |
---|
7408 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
7409 | tmp_addflag= |
---|
7410 | case $CC,$host_cpu in |
---|
7411 | pgf77* | pgf90* ) # Portland Group f77 and f90 compilers |
---|
7412 | tmp_addflag=' -fpic' ;; |
---|
7413 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
7414 | tmp_addflag=' -i_dynamic' ;; |
---|
7415 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
7416 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
7417 | ifc* | ifort*) # Intel Fortran compiler |
---|
7418 | tmp_addflag=' -nofor_main' ;; |
---|
7419 | esac |
---|
7420 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7421 | supports_anon_versioning=no |
---|
7422 | case `$LD -v 2>/dev/null` in |
---|
7423 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
7424 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
7425 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
7426 | *\ 2.11.*) ;; # other 2.11 versions |
---|
7427 | *) supports_anon_versioning=yes ;; |
---|
7428 | esac |
---|
7429 | if test $supports_anon_versioning = yes; then |
---|
7430 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
7431 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
7432 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
7433 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
7434 | else |
---|
7435 | archive_expsym_cmds=$archive_cmds |
---|
7436 | fi |
---|
7437 | else |
---|
7438 | ld_shlibs=no |
---|
7439 | fi |
---|
7440 | ;; |
---|
7441 | |
---|
7442 | *) |
---|
7443 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
7444 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7445 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
7446 | else |
---|
7447 | ld_shlibs=no |
---|
7448 | fi |
---|
7449 | ;; |
---|
7450 | esac |
---|
7451 | |
---|
7452 | if test "$ld_shlibs" = yes; then |
---|
7453 | runpath_var=LD_RUN_PATH |
---|
7454 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
7455 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
7456 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
7457 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
7458 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
7459 | else |
---|
7460 | whole_archive_flag_spec= |
---|
7461 | fi |
---|
7462 | fi |
---|
7463 | else |
---|
7464 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
7465 | case $host_os in |
---|
7466 | aix3*) |
---|
7467 | allow_undefined_flag=unsupported |
---|
7468 | always_export_symbols=yes |
---|
7469 | 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' |
---|
7470 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
7471 | # are no directories specified by -L. |
---|
7472 | hardcode_minus_L=yes |
---|
7473 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
7474 | # Neither direct hardcoding nor static linking is supported with a |
---|
7475 | # broken collect2. |
---|
7476 | hardcode_direct=unsupported |
---|
7477 | fi |
---|
7478 | ;; |
---|
7479 | |
---|
7480 | aix4* | aix5*) |
---|
7481 | if test "$host_cpu" = ia64; then |
---|
7482 | # On IA64, the linker does run time linking by default, so we don't |
---|
7483 | # have to do anything special. |
---|
7484 | aix_use_runtimelinking=no |
---|
7485 | exp_sym_flag='-Bexport' |
---|
7486 | no_entry_flag="" |
---|
7487 | else |
---|
7488 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
7489 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
7490 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
7491 | 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' |
---|
7492 | else |
---|
7493 | 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' |
---|
7494 | fi |
---|
7495 | aix_use_runtimelinking=no |
---|
7496 | |
---|
7497 | # Test if we are trying to use run time linking or normal |
---|
7498 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
7499 | # need to do runtime linking. |
---|
7500 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
7501 | for ld_flag in $LDFLAGS; do |
---|
7502 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
7503 | aix_use_runtimelinking=yes |
---|
7504 | break |
---|
7505 | fi |
---|
7506 | done |
---|
7507 | esac |
---|
7508 | |
---|
7509 | exp_sym_flag='-bexport' |
---|
7510 | no_entry_flag='-bnoentry' |
---|
7511 | fi |
---|
7512 | |
---|
7513 | # When large executables or shared objects are built, AIX ld can |
---|
7514 | # have problems creating the table of contents. If linking a library |
---|
7515 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
7516 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
7517 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
7518 | |
---|
7519 | archive_cmds='' |
---|
7520 | hardcode_direct=yes |
---|
7521 | hardcode_libdir_separator=':' |
---|
7522 | link_all_deplibs=yes |
---|
7523 | |
---|
7524 | if test "$GCC" = yes; then |
---|
7525 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
7526 | # We only want to do this on AIX 4.2 and lower, the check |
---|
7527 | # below for broken collect2 doesn't work under 4.3+ |
---|
7528 | collect2name=`${CC} -print-prog-name=collect2` |
---|
7529 | if test -f "$collect2name" && \ |
---|
7530 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
7531 | then |
---|
7532 | # We have reworked collect2 |
---|
7533 | hardcode_direct=yes |
---|
7534 | else |
---|
7535 | # We have old collect2 |
---|
7536 | hardcode_direct=unsupported |
---|
7537 | # It fails to find uninstalled libraries when the uninstalled |
---|
7538 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
7539 | # to unsupported forces relinking |
---|
7540 | hardcode_minus_L=yes |
---|
7541 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7542 | hardcode_libdir_separator= |
---|
7543 | fi |
---|
7544 | esac |
---|
7545 | shared_flag='-shared' |
---|
7546 | if test "$aix_use_runtimelinking" = yes; then |
---|
7547 | shared_flag="$shared_flag "'${wl}-G' |
---|
7548 | fi |
---|
7549 | else |
---|
7550 | # not using gcc |
---|
7551 | if test "$host_cpu" = ia64; then |
---|
7552 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
7553 | # chokes on -Wl,-G. The following line is correct: |
---|
7554 | shared_flag='-G' |
---|
7555 | else |
---|
7556 | if test "$aix_use_runtimelinking" = yes; then |
---|
7557 | shared_flag='${wl}-G' |
---|
7558 | else |
---|
7559 | shared_flag='${wl}-bM:SRE' |
---|
7560 | fi |
---|
7561 | fi |
---|
7562 | fi |
---|
7563 | |
---|
7564 | # It seems that -bexpall does not export symbols beginning with |
---|
7565 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
7566 | always_export_symbols=yes |
---|
7567 | if test "$aix_use_runtimelinking" = yes; then |
---|
7568 | # Warning - without using the other runtime loading flags (-brtl), |
---|
7569 | # -berok will link without error, but may produce a broken library. |
---|
7570 | allow_undefined_flag='-berok' |
---|
7571 | # Determine the default libpath from the value encoded in an empty executable. |
---|
7572 | cat >conftest.$ac_ext <<_ACEOF |
---|
7573 | /* confdefs.h. */ |
---|
7574 | _ACEOF |
---|
7575 | cat confdefs.h >>conftest.$ac_ext |
---|
7576 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7577 | /* end confdefs.h. */ |
---|
7578 | |
---|
7579 | int |
---|
7580 | main () |
---|
7581 | { |
---|
7582 | |
---|
7583 | ; |
---|
7584 | return 0; |
---|
7585 | } |
---|
7586 | _ACEOF |
---|
7587 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7589 | (eval $ac_link) 2>conftest.er1 |
---|
7590 | ac_status=$? |
---|
7591 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7592 | rm -f conftest.er1 |
---|
7593 | cat conftest.err >&5 |
---|
7594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7595 | (exit $ac_status); } && |
---|
7596 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7597 | || test ! -s conftest.err' |
---|
7598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7599 | (eval $ac_try) 2>&5 |
---|
7600 | ac_status=$? |
---|
7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7602 | (exit $ac_status); }; } && |
---|
7603 | { ac_try='test -s conftest$ac_exeext' |
---|
7604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7605 | (eval $ac_try) 2>&5 |
---|
7606 | ac_status=$? |
---|
7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7608 | (exit $ac_status); }; }; then |
---|
7609 | |
---|
7610 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
7611 | }'` |
---|
7612 | # Check for a 64-bit object if we didn't find anything. |
---|
7613 | 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; } |
---|
7614 | }'`; fi |
---|
7615 | else |
---|
7616 | echo "$as_me: failed program was:" >&5 |
---|
7617 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7618 | |
---|
7619 | fi |
---|
7620 | rm -f conftest.err conftest.$ac_objext \ |
---|
7621 | conftest$ac_exeext conftest.$ac_ext |
---|
7622 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
7623 | |
---|
7624 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
7625 | 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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
7626 | else |
---|
7627 | if test "$host_cpu" = ia64; then |
---|
7628 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
7629 | allow_undefined_flag="-z nodefs" |
---|
7630 | 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" |
---|
7631 | else |
---|
7632 | # Determine the default libpath from the value encoded in an empty executable. |
---|
7633 | cat >conftest.$ac_ext <<_ACEOF |
---|
7634 | /* confdefs.h. */ |
---|
7635 | _ACEOF |
---|
7636 | cat confdefs.h >>conftest.$ac_ext |
---|
7637 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7638 | /* end confdefs.h. */ |
---|
7639 | |
---|
7640 | int |
---|
7641 | main () |
---|
7642 | { |
---|
7643 | |
---|
7644 | ; |
---|
7645 | return 0; |
---|
7646 | } |
---|
7647 | _ACEOF |
---|
7648 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7650 | (eval $ac_link) 2>conftest.er1 |
---|
7651 | ac_status=$? |
---|
7652 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7653 | rm -f conftest.er1 |
---|
7654 | cat conftest.err >&5 |
---|
7655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7656 | (exit $ac_status); } && |
---|
7657 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7658 | || test ! -s conftest.err' |
---|
7659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7660 | (eval $ac_try) 2>&5 |
---|
7661 | ac_status=$? |
---|
7662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7663 | (exit $ac_status); }; } && |
---|
7664 | { ac_try='test -s conftest$ac_exeext' |
---|
7665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7666 | (eval $ac_try) 2>&5 |
---|
7667 | ac_status=$? |
---|
7668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7669 | (exit $ac_status); }; }; then |
---|
7670 | |
---|
7671 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
7672 | }'` |
---|
7673 | # Check for a 64-bit object if we didn't find anything. |
---|
7674 | 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; } |
---|
7675 | }'`; fi |
---|
7676 | else |
---|
7677 | echo "$as_me: failed program was:" >&5 |
---|
7678 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7679 | |
---|
7680 | fi |
---|
7681 | rm -f conftest.err conftest.$ac_objext \ |
---|
7682 | conftest$ac_exeext conftest.$ac_ext |
---|
7683 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
7684 | |
---|
7685 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
7686 | # Warning - without using the other run time loading flags, |
---|
7687 | # -berok will link without error, but may produce a broken library. |
---|
7688 | no_undefined_flag=' ${wl}-bernotok' |
---|
7689 | allow_undefined_flag=' ${wl}-berok' |
---|
7690 | # -bexpall does not export symbols beginning with underscore (_) |
---|
7691 | always_export_symbols=yes |
---|
7692 | # Exported symbols can be pulled into shared objects from archives |
---|
7693 | whole_archive_flag_spec=' ' |
---|
7694 | archive_cmds_need_lc=yes |
---|
7695 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
7696 | 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' |
---|
7697 | fi |
---|
7698 | fi |
---|
7699 | ;; |
---|
7700 | |
---|
7701 | amigaos*) |
---|
7702 | 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)' |
---|
7703 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7704 | hardcode_minus_L=yes |
---|
7705 | # see comment about different semantics on the GNU ld section |
---|
7706 | ld_shlibs=no |
---|
7707 | ;; |
---|
7708 | |
---|
7709 | bsdi[45]*) |
---|
7710 | export_dynamic_flag_spec=-rdynamic |
---|
7711 | ;; |
---|
7712 | |
---|
7713 | cygwin* | mingw* | pw32*) |
---|
7714 | # When not using gcc, we currently assume that we are using |
---|
7715 | # Microsoft Visual C++. |
---|
7716 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
7717 | # no search path for DLLs. |
---|
7718 | hardcode_libdir_flag_spec=' ' |
---|
7719 | allow_undefined_flag=unsupported |
---|
7720 | # Tell ltmain to make .lib files, not .a files. |
---|
7721 | libext=lib |
---|
7722 | # Tell ltmain to make .dll files, not .so files. |
---|
7723 | shrext_cmds=".dll" |
---|
7724 | # FIXME: Setting linknames here is a bad hack. |
---|
7725 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
7726 | # The linker will automatically build a .lib file if we build a DLL. |
---|
7727 | old_archive_From_new_cmds='true' |
---|
7728 | # FIXME: Should let the user specify the lib program. |
---|
7729 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
7730 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
7731 | enable_shared_with_static_runtimes=yes |
---|
7732 | ;; |
---|
7733 | |
---|
7734 | darwin* | rhapsody*) |
---|
7735 | case "$host_os" in |
---|
7736 | rhapsody* | darwin1.[012]) |
---|
7737 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
7738 | ;; |
---|
7739 | *) # Darwin 1.3 on |
---|
7740 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
7741 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
7742 | else |
---|
7743 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
7744 | 10.[012]) |
---|
7745 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
7746 | ;; |
---|
7747 | 10.*) |
---|
7748 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
7749 | ;; |
---|
7750 | esac |
---|
7751 | fi |
---|
7752 | ;; |
---|
7753 | esac |
---|
7754 | archive_cmds_need_lc=no |
---|
7755 | hardcode_direct=no |
---|
7756 | hardcode_automatic=yes |
---|
7757 | hardcode_shlibpath_var=unsupported |
---|
7758 | whole_archive_flag_spec='' |
---|
7759 | link_all_deplibs=yes |
---|
7760 | if test "$GCC" = yes ; then |
---|
7761 | output_verbose_link_cmd='echo' |
---|
7762 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
7763 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
7764 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
7765 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
7766 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
7767 | else |
---|
7768 | case "$cc_basename" in |
---|
7769 | xlc*) |
---|
7770 | output_verbose_link_cmd='echo' |
---|
7771 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
7772 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
7773 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
7774 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
7775 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
7776 | ;; |
---|
7777 | *) |
---|
7778 | ld_shlibs=no |
---|
7779 | ;; |
---|
7780 | esac |
---|
7781 | fi |
---|
7782 | ;; |
---|
7783 | |
---|
7784 | dgux*) |
---|
7785 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7786 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7787 | hardcode_shlibpath_var=no |
---|
7788 | ;; |
---|
7789 | |
---|
7790 | freebsd1*) |
---|
7791 | ld_shlibs=no |
---|
7792 | ;; |
---|
7793 | |
---|
7794 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
7795 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
7796 | # does not break anything, and helps significantly (at the cost of a little |
---|
7797 | # extra space). |
---|
7798 | freebsd2.2*) |
---|
7799 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
7800 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7801 | hardcode_direct=yes |
---|
7802 | hardcode_shlibpath_var=no |
---|
7803 | ;; |
---|
7804 | |
---|
7805 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
7806 | freebsd2*) |
---|
7807 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
7808 | hardcode_direct=yes |
---|
7809 | hardcode_minus_L=yes |
---|
7810 | hardcode_shlibpath_var=no |
---|
7811 | ;; |
---|
7812 | |
---|
7813 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
7814 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
7815 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
7816 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7817 | hardcode_direct=yes |
---|
7818 | hardcode_shlibpath_var=no |
---|
7819 | ;; |
---|
7820 | |
---|
7821 | hpux9*) |
---|
7822 | if test "$GCC" = yes; then |
---|
7823 | 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' |
---|
7824 | else |
---|
7825 | 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' |
---|
7826 | fi |
---|
7827 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
7828 | hardcode_libdir_separator=: |
---|
7829 | hardcode_direct=yes |
---|
7830 | |
---|
7831 | # hardcode_minus_L: Not really in the search PATH, |
---|
7832 | # but as the default location of the library. |
---|
7833 | hardcode_minus_L=yes |
---|
7834 | export_dynamic_flag_spec='${wl}-E' |
---|
7835 | ;; |
---|
7836 | |
---|
7837 | hpux10* | hpux11*) |
---|
7838 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
7839 | case "$host_cpu" in |
---|
7840 | hppa*64*|ia64*) |
---|
7841 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7842 | ;; |
---|
7843 | *) |
---|
7844 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
7845 | ;; |
---|
7846 | esac |
---|
7847 | else |
---|
7848 | case "$host_cpu" in |
---|
7849 | hppa*64*|ia64*) |
---|
7850 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7851 | ;; |
---|
7852 | *) |
---|
7853 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
7854 | ;; |
---|
7855 | esac |
---|
7856 | fi |
---|
7857 | if test "$with_gnu_ld" = no; then |
---|
7858 | case "$host_cpu" in |
---|
7859 | hppa*64*) |
---|
7860 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
7861 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
7862 | hardcode_libdir_separator=: |
---|
7863 | hardcode_direct=no |
---|
7864 | hardcode_shlibpath_var=no |
---|
7865 | ;; |
---|
7866 | ia64*) |
---|
7867 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7868 | hardcode_direct=no |
---|
7869 | hardcode_shlibpath_var=no |
---|
7870 | |
---|
7871 | # hardcode_minus_L: Not really in the search PATH, |
---|
7872 | # but as the default location of the library. |
---|
7873 | hardcode_minus_L=yes |
---|
7874 | ;; |
---|
7875 | *) |
---|
7876 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
7877 | hardcode_libdir_separator=: |
---|
7878 | hardcode_direct=yes |
---|
7879 | export_dynamic_flag_spec='${wl}-E' |
---|
7880 | |
---|
7881 | # hardcode_minus_L: Not really in the search PATH, |
---|
7882 | # but as the default location of the library. |
---|
7883 | hardcode_minus_L=yes |
---|
7884 | ;; |
---|
7885 | esac |
---|
7886 | fi |
---|
7887 | ;; |
---|
7888 | |
---|
7889 | irix5* | irix6* | nonstopux*) |
---|
7890 | if test "$GCC" = yes; then |
---|
7891 | 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' |
---|
7892 | else |
---|
7893 | 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' |
---|
7894 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
7895 | fi |
---|
7896 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7897 | hardcode_libdir_separator=: |
---|
7898 | link_all_deplibs=yes |
---|
7899 | ;; |
---|
7900 | |
---|
7901 | netbsd*) |
---|
7902 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
7903 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
7904 | else |
---|
7905 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
7906 | fi |
---|
7907 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7908 | hardcode_direct=yes |
---|
7909 | hardcode_shlibpath_var=no |
---|
7910 | ;; |
---|
7911 | |
---|
7912 | newsos6) |
---|
7913 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7914 | hardcode_direct=yes |
---|
7915 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7916 | hardcode_libdir_separator=: |
---|
7917 | hardcode_shlibpath_var=no |
---|
7918 | ;; |
---|
7919 | |
---|
7920 | openbsd*) |
---|
7921 | hardcode_direct=yes |
---|
7922 | hardcode_shlibpath_var=no |
---|
7923 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
7924 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
7925 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
7926 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
7927 | export_dynamic_flag_spec='${wl}-E' |
---|
7928 | else |
---|
7929 | case $host_os in |
---|
7930 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
7931 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
7932 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7933 | ;; |
---|
7934 | *) |
---|
7935 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
7936 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
7937 | ;; |
---|
7938 | esac |
---|
7939 | fi |
---|
7940 | ;; |
---|
7941 | |
---|
7942 | os2*) |
---|
7943 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7944 | hardcode_minus_L=yes |
---|
7945 | allow_undefined_flag=unsupported |
---|
7946 | 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' |
---|
7947 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
7948 | ;; |
---|
7949 | |
---|
7950 | osf3*) |
---|
7951 | if test "$GCC" = yes; then |
---|
7952 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
7953 | 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' |
---|
7954 | else |
---|
7955 | allow_undefined_flag=' -expect_unresolved \*' |
---|
7956 | 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' |
---|
7957 | fi |
---|
7958 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7959 | hardcode_libdir_separator=: |
---|
7960 | ;; |
---|
7961 | |
---|
7962 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
7963 | if test "$GCC" = yes; then |
---|
7964 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
7965 | 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' |
---|
7966 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7967 | else |
---|
7968 | allow_undefined_flag=' -expect_unresolved \*' |
---|
7969 | 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' |
---|
7970 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
7971 | $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' |
---|
7972 | |
---|
7973 | # Both c and cxx compiler support -rpath directly |
---|
7974 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
7975 | fi |
---|
7976 | hardcode_libdir_separator=: |
---|
7977 | ;; |
---|
7978 | |
---|
7979 | sco3.2v5*) |
---|
7980 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7981 | hardcode_shlibpath_var=no |
---|
7982 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
7983 | runpath_var=LD_RUN_PATH |
---|
7984 | hardcode_runpath_var=yes |
---|
7985 | ;; |
---|
7986 | |
---|
7987 | solaris*) |
---|
7988 | no_undefined_flag=' -z text' |
---|
7989 | if test "$GCC" = yes; then |
---|
7990 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7991 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
7992 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
7993 | else |
---|
7994 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7995 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
7996 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
7997 | fi |
---|
7998 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7999 | hardcode_shlibpath_var=no |
---|
8000 | case $host_os in |
---|
8001 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
8002 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
8003 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; |
---|
8004 | esac |
---|
8005 | link_all_deplibs=yes |
---|
8006 | ;; |
---|
8007 | |
---|
8008 | sunos4*) |
---|
8009 | if test "x$host_vendor" = xsequent; then |
---|
8010 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
8011 | # files that make .init and .fini sections work. |
---|
8012 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8013 | else |
---|
8014 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
8015 | fi |
---|
8016 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8017 | hardcode_direct=yes |
---|
8018 | hardcode_minus_L=yes |
---|
8019 | hardcode_shlibpath_var=no |
---|
8020 | ;; |
---|
8021 | |
---|
8022 | sysv4) |
---|
8023 | case $host_vendor in |
---|
8024 | sni) |
---|
8025 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8026 | hardcode_direct=yes # is this really true??? |
---|
8027 | ;; |
---|
8028 | siemens) |
---|
8029 | ## LD is ld it makes a PLAMLIB |
---|
8030 | ## CC just makes a GrossModule. |
---|
8031 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
8032 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
8033 | hardcode_direct=no |
---|
8034 | ;; |
---|
8035 | motorola) |
---|
8036 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8037 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
8038 | ;; |
---|
8039 | esac |
---|
8040 | runpath_var='LD_RUN_PATH' |
---|
8041 | hardcode_shlibpath_var=no |
---|
8042 | ;; |
---|
8043 | |
---|
8044 | sysv4.3*) |
---|
8045 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8046 | hardcode_shlibpath_var=no |
---|
8047 | export_dynamic_flag_spec='-Bexport' |
---|
8048 | ;; |
---|
8049 | |
---|
8050 | sysv4*MP*) |
---|
8051 | if test -d /usr/nec; then |
---|
8052 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8053 | hardcode_shlibpath_var=no |
---|
8054 | runpath_var=LD_RUN_PATH |
---|
8055 | hardcode_runpath_var=yes |
---|
8056 | ld_shlibs=yes |
---|
8057 | fi |
---|
8058 | ;; |
---|
8059 | |
---|
8060 | sysv4.2uw2*) |
---|
8061 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
8062 | hardcode_direct=yes |
---|
8063 | hardcode_minus_L=no |
---|
8064 | hardcode_shlibpath_var=no |
---|
8065 | hardcode_runpath_var=yes |
---|
8066 | runpath_var=LD_RUN_PATH |
---|
8067 | ;; |
---|
8068 | |
---|
8069 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
8070 | no_undefined_flag='${wl}-z ${wl}text' |
---|
8071 | if test "$GCC" = yes; then |
---|
8072 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8073 | else |
---|
8074 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8075 | fi |
---|
8076 | runpath_var='LD_RUN_PATH' |
---|
8077 | hardcode_shlibpath_var=no |
---|
8078 | ;; |
---|
8079 | |
---|
8080 | sysv5*) |
---|
8081 | no_undefined_flag=' -z text' |
---|
8082 | # $CC -shared without GNU ld will not create a library from C++ |
---|
8083 | # object files and a static libstdc++, better avoid it by now |
---|
8084 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8085 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
8086 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
8087 | hardcode_libdir_flag_spec= |
---|
8088 | hardcode_shlibpath_var=no |
---|
8089 | runpath_var='LD_RUN_PATH' |
---|
8090 | ;; |
---|
8091 | |
---|
8092 | uts4*) |
---|
8093 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8094 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8095 | hardcode_shlibpath_var=no |
---|
8096 | ;; |
---|
8097 | |
---|
8098 | *) |
---|
8099 | ld_shlibs=no |
---|
8100 | ;; |
---|
8101 | esac |
---|
8102 | fi |
---|
8103 | |
---|
8104 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
8105 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
8106 | test "$ld_shlibs" = no && can_build_shared=no |
---|
8107 | |
---|
8108 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
8109 | if test "$GCC" = yes; then |
---|
8110 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
8111 | fi |
---|
8112 | |
---|
8113 | # |
---|
8114 | # Do we need to explicitly link libc? |
---|
8115 | # |
---|
8116 | case "x$archive_cmds_need_lc" in |
---|
8117 | x|xyes) |
---|
8118 | # Assume -lc should be added |
---|
8119 | archive_cmds_need_lc=yes |
---|
8120 | |
---|
8121 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
8122 | case $archive_cmds in |
---|
8123 | *'~'*) |
---|
8124 | # FIXME: we may have to deal with multi-command sequences. |
---|
8125 | ;; |
---|
8126 | '$CC '*) |
---|
8127 | # Test whether the compiler implicitly links with -lc since on some |
---|
8128 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
8129 | # to ld, don't add -lc before -lgcc. |
---|
8130 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
8131 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
8132 | $rm conftest* |
---|
8133 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8134 | |
---|
8135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8136 | (eval $ac_compile) 2>&5 |
---|
8137 | ac_status=$? |
---|
8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8139 | (exit $ac_status); } 2>conftest.err; then |
---|
8140 | soname=conftest |
---|
8141 | lib=conftest |
---|
8142 | libobjs=conftest.$ac_objext |
---|
8143 | deplibs= |
---|
8144 | wl=$lt_prog_compiler_wl |
---|
8145 | compiler_flags=-v |
---|
8146 | linker_flags=-v |
---|
8147 | verstring= |
---|
8148 | output_objdir=. |
---|
8149 | libname=conftest |
---|
8150 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
8151 | allow_undefined_flag= |
---|
8152 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
8153 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
8154 | ac_status=$? |
---|
8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8156 | (exit $ac_status); } |
---|
8157 | then |
---|
8158 | archive_cmds_need_lc=no |
---|
8159 | else |
---|
8160 | archive_cmds_need_lc=yes |
---|
8161 | fi |
---|
8162 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
8163 | else |
---|
8164 | cat conftest.err 1>&5 |
---|
8165 | fi |
---|
8166 | $rm conftest* |
---|
8167 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
8168 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
8169 | ;; |
---|
8170 | esac |
---|
8171 | fi |
---|
8172 | ;; |
---|
8173 | esac |
---|
8174 | |
---|
8175 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
8176 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
8177 | library_names_spec= |
---|
8178 | libname_spec='lib$name' |
---|
8179 | soname_spec= |
---|
8180 | shrext_cmds=".so" |
---|
8181 | postinstall_cmds= |
---|
8182 | postuninstall_cmds= |
---|
8183 | finish_cmds= |
---|
8184 | finish_eval= |
---|
8185 | shlibpath_var= |
---|
8186 | shlibpath_overrides_runpath=unknown |
---|
8187 | version_type=none |
---|
8188 | dynamic_linker="$host_os ld.so" |
---|
8189 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
8190 | if test "$GCC" = yes; then |
---|
8191 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
8192 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
8193 | # if the path contains ";" then we assume it to be the separator |
---|
8194 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
8195 | # assumed that no part of a normal pathname contains ";" but that should |
---|
8196 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
8197 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
8198 | else |
---|
8199 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
8200 | fi |
---|
8201 | else |
---|
8202 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
8203 | fi |
---|
8204 | need_lib_prefix=unknown |
---|
8205 | hardcode_into_libs=no |
---|
8206 | |
---|
8207 | # when you set need_version to no, make sure it does not cause -set_version |
---|
8208 | # flags to be left without arguments |
---|
8209 | need_version=unknown |
---|
8210 | |
---|
8211 | case $host_os in |
---|
8212 | aix3*) |
---|
8213 | version_type=linux |
---|
8214 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
8215 | shlibpath_var=LIBPATH |
---|
8216 | |
---|
8217 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
8218 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8219 | ;; |
---|
8220 | |
---|
8221 | aix4* | aix5*) |
---|
8222 | version_type=linux |
---|
8223 | need_lib_prefix=no |
---|
8224 | need_version=no |
---|
8225 | hardcode_into_libs=yes |
---|
8226 | if test "$host_cpu" = ia64; then |
---|
8227 | # AIX 5 supports IA64 |
---|
8228 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
8229 | shlibpath_var=LD_LIBRARY_PATH |
---|
8230 | else |
---|
8231 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
8232 | # for dependence libraries. The import file would start with |
---|
8233 | # the line `#! .'. This would cause the generated library to |
---|
8234 | # depend on `.', always an invalid library. This was fixed in |
---|
8235 | # development snapshots of GCC prior to 3.0. |
---|
8236 | case $host_os in |
---|
8237 | aix4 | aix4.[01] | aix4.[01].*) |
---|
8238 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
8239 | echo ' yes ' |
---|
8240 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
8241 | : |
---|
8242 | else |
---|
8243 | can_build_shared=no |
---|
8244 | fi |
---|
8245 | ;; |
---|
8246 | esac |
---|
8247 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
8248 | # soname into executable. Probably we can add versioning support to |
---|
8249 | # collect2, so additional links can be useful in future. |
---|
8250 | if test "$aix_use_runtimelinking" = yes; then |
---|
8251 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
8252 | # instead of lib<name>.a to let people know that these are not |
---|
8253 | # typical AIX shared libraries. |
---|
8254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8255 | else |
---|
8256 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
8257 | # and later when we are not doing run time linking. |
---|
8258 | library_names_spec='${libname}${release}.a $libname.a' |
---|
8259 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8260 | fi |
---|
8261 | shlibpath_var=LIBPATH |
---|
8262 | fi |
---|
8263 | ;; |
---|
8264 | |
---|
8265 | amigaos*) |
---|
8266 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
8267 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
8268 | 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' |
---|
8269 | ;; |
---|
8270 | |
---|
8271 | beos*) |
---|
8272 | library_names_spec='${libname}${shared_ext}' |
---|
8273 | dynamic_linker="$host_os ld.so" |
---|
8274 | shlibpath_var=LIBRARY_PATH |
---|
8275 | ;; |
---|
8276 | |
---|
8277 | bsdi[45]*) |
---|
8278 | version_type=linux |
---|
8279 | need_version=no |
---|
8280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8281 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8282 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
8283 | shlibpath_var=LD_LIBRARY_PATH |
---|
8284 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
8285 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
8286 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
8287 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
8288 | # libtool to hard-code these into programs |
---|
8289 | ;; |
---|
8290 | |
---|
8291 | cygwin* | mingw* | pw32*) |
---|
8292 | version_type=windows |
---|
8293 | shrext_cmds=".dll" |
---|
8294 | need_version=no |
---|
8295 | need_lib_prefix=no |
---|
8296 | |
---|
8297 | case $GCC,$host_os in |
---|
8298 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
8299 | library_names_spec='$libname.dll.a' |
---|
8300 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
8301 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
8302 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
8303 | dldir=$destdir/`dirname \$dlpath`~ |
---|
8304 | test -d \$dldir || mkdir -p \$dldir~ |
---|
8305 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
8306 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
8307 | dlpath=$dir/\$dldll~ |
---|
8308 | $rm \$dlpath' |
---|
8309 | shlibpath_overrides_runpath=yes |
---|
8310 | |
---|
8311 | case $host_os in |
---|
8312 | cygwin*) |
---|
8313 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
8314 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
8315 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
8316 | ;; |
---|
8317 | mingw*) |
---|
8318 | # MinGW DLLs use traditional 'lib' prefix |
---|
8319 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
8320 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
8321 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
8322 | # It is most probably a Windows format PATH printed by |
---|
8323 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
8324 | # path with ; separators, and with drive letters. We can handle the |
---|
8325 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
8326 | # especially as we might pass files found there to a mingw objdump, |
---|
8327 | # which wouldn't understand a cygwinified path. Ahh. |
---|
8328 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
8329 | else |
---|
8330 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
8331 | fi |
---|
8332 | ;; |
---|
8333 | pw32*) |
---|
8334 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
8335 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
8336 | ;; |
---|
8337 | esac |
---|
8338 | ;; |
---|
8339 | |
---|
8340 | *) |
---|
8341 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
8342 | ;; |
---|
8343 | esac |
---|
8344 | dynamic_linker='Win32 ld.exe' |
---|
8345 | # FIXME: first we should search . and the directory the executable is in |
---|
8346 | shlibpath_var=PATH |
---|
8347 | ;; |
---|
8348 | |
---|
8349 | darwin* | rhapsody*) |
---|
8350 | dynamic_linker="$host_os dyld" |
---|
8351 | version_type=darwin |
---|
8352 | need_lib_prefix=no |
---|
8353 | need_version=no |
---|
8354 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
8355 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
8356 | shlibpath_overrides_runpath=yes |
---|
8357 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
8358 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
8359 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
8360 | if test "$GCC" = yes; then |
---|
8361 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
8362 | else |
---|
8363 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
8364 | fi |
---|
8365 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
8366 | ;; |
---|
8367 | |
---|
8368 | dgux*) |
---|
8369 | version_type=linux |
---|
8370 | need_lib_prefix=no |
---|
8371 | need_version=no |
---|
8372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
8373 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8374 | shlibpath_var=LD_LIBRARY_PATH |
---|
8375 | ;; |
---|
8376 | |
---|
8377 | freebsd1*) |
---|
8378 | dynamic_linker=no |
---|
8379 | ;; |
---|
8380 | |
---|
8381 | kfreebsd*-gnu) |
---|
8382 | version_type=linux |
---|
8383 | need_lib_prefix=no |
---|
8384 | need_version=no |
---|
8385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8386 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8387 | shlibpath_var=LD_LIBRARY_PATH |
---|
8388 | shlibpath_overrides_runpath=no |
---|
8389 | hardcode_into_libs=yes |
---|
8390 | dynamic_linker='GNU ld.so' |
---|
8391 | ;; |
---|
8392 | |
---|
8393 | freebsd* | dragonfly*) |
---|
8394 | # DragonFly does not have aout. When/if they implement a new |
---|
8395 | # versioning mechanism, adjust this. |
---|
8396 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
8397 | version_type=freebsd-$objformat |
---|
8398 | case $version_type in |
---|
8399 | freebsd-elf*) |
---|
8400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
8401 | need_version=no |
---|
8402 | need_lib_prefix=no |
---|
8403 | ;; |
---|
8404 | freebsd-*) |
---|
8405 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
8406 | need_version=yes |
---|
8407 | ;; |
---|
8408 | esac |
---|
8409 | shlibpath_var=LD_LIBRARY_PATH |
---|
8410 | case $host_os in |
---|
8411 | freebsd2*) |
---|
8412 | shlibpath_overrides_runpath=yes |
---|
8413 | ;; |
---|
8414 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
8415 | shlibpath_overrides_runpath=yes |
---|
8416 | hardcode_into_libs=yes |
---|
8417 | ;; |
---|
8418 | *) # from 3.2 on |
---|
8419 | shlibpath_overrides_runpath=no |
---|
8420 | hardcode_into_libs=yes |
---|
8421 | ;; |
---|
8422 | esac |
---|
8423 | ;; |
---|
8424 | |
---|
8425 | gnu*) |
---|
8426 | version_type=linux |
---|
8427 | need_lib_prefix=no |
---|
8428 | need_version=no |
---|
8429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
8430 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8431 | shlibpath_var=LD_LIBRARY_PATH |
---|
8432 | hardcode_into_libs=yes |
---|
8433 | ;; |
---|
8434 | |
---|
8435 | hpux9* | hpux10* | hpux11*) |
---|
8436 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
8437 | # link against other versions. |
---|
8438 | version_type=sunos |
---|
8439 | need_lib_prefix=no |
---|
8440 | need_version=no |
---|
8441 | case "$host_cpu" in |
---|
8442 | ia64*) |
---|
8443 | shrext_cmds='.so' |
---|
8444 | hardcode_into_libs=yes |
---|
8445 | dynamic_linker="$host_os dld.so" |
---|
8446 | shlibpath_var=LD_LIBRARY_PATH |
---|
8447 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
8448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8449 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8450 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
8451 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
8452 | else |
---|
8453 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
8454 | fi |
---|
8455 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
8456 | ;; |
---|
8457 | hppa*64*) |
---|
8458 | shrext_cmds='.sl' |
---|
8459 | hardcode_into_libs=yes |
---|
8460 | dynamic_linker="$host_os dld.sl" |
---|
8461 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
8462 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
8463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8464 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8465 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
8466 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
8467 | ;; |
---|
8468 | *) |
---|
8469 | shrext_cmds='.sl' |
---|
8470 | dynamic_linker="$host_os dld.sl" |
---|
8471 | shlibpath_var=SHLIB_PATH |
---|
8472 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
8473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8474 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8475 | ;; |
---|
8476 | esac |
---|
8477 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
8478 | postinstall_cmds='chmod 555 $lib' |
---|
8479 | ;; |
---|
8480 | |
---|
8481 | irix5* | irix6* | nonstopux*) |
---|
8482 | case $host_os in |
---|
8483 | nonstopux*) version_type=nonstopux ;; |
---|
8484 | *) |
---|
8485 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
8486 | version_type=linux |
---|
8487 | else |
---|
8488 | version_type=irix |
---|
8489 | fi ;; |
---|
8490 | esac |
---|
8491 | need_lib_prefix=no |
---|
8492 | need_version=no |
---|
8493 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
8495 | case $host_os in |
---|
8496 | irix5* | nonstopux*) |
---|
8497 | libsuff= shlibsuff= |
---|
8498 | ;; |
---|
8499 | *) |
---|
8500 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
8501 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
8502 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
8503 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
8504 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
8505 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
8506 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
8507 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
8508 | esac |
---|
8509 | ;; |
---|
8510 | esac |
---|
8511 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
8512 | shlibpath_overrides_runpath=no |
---|
8513 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
8514 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
8515 | hardcode_into_libs=yes |
---|
8516 | ;; |
---|
8517 | |
---|
8518 | # No shared lib support for Linux oldld, aout, or coff. |
---|
8519 | linux*oldld* | linux*aout* | linux*coff*) |
---|
8520 | dynamic_linker=no |
---|
8521 | ;; |
---|
8522 | |
---|
8523 | # This must be Linux ELF. |
---|
8524 | linux*) |
---|
8525 | version_type=linux |
---|
8526 | need_lib_prefix=no |
---|
8527 | need_version=no |
---|
8528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8529 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8530 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
8531 | shlibpath_var=LD_LIBRARY_PATH |
---|
8532 | shlibpath_overrides_runpath=no |
---|
8533 | # This implies no fast_install, which is unacceptable. |
---|
8534 | # Some rework will be needed to allow for fast_install |
---|
8535 | # before this can be enabled. |
---|
8536 | hardcode_into_libs=yes |
---|
8537 | |
---|
8538 | # Append ld.so.conf contents to the search path |
---|
8539 | if test -f /etc/ld.so.conf; then |
---|
8540 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
8541 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
8542 | fi |
---|
8543 | |
---|
8544 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
8545 | # powerpc, because MkLinux only supported shared libraries with the |
---|
8546 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
8547 | # most powerpc-linux boxes support dynamic linking these days and |
---|
8548 | # people can always --disable-shared, the test was removed, and we |
---|
8549 | # assume the GNU/Linux dynamic linker is in use. |
---|
8550 | dynamic_linker='GNU/Linux ld.so' |
---|
8551 | ;; |
---|
8552 | |
---|
8553 | knetbsd*-gnu) |
---|
8554 | version_type=linux |
---|
8555 | need_lib_prefix=no |
---|
8556 | need_version=no |
---|
8557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8558 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8559 | shlibpath_var=LD_LIBRARY_PATH |
---|
8560 | shlibpath_overrides_runpath=no |
---|
8561 | hardcode_into_libs=yes |
---|
8562 | dynamic_linker='GNU ld.so' |
---|
8563 | ;; |
---|
8564 | |
---|
8565 | netbsd*) |
---|
8566 | version_type=sunos |
---|
8567 | need_lib_prefix=no |
---|
8568 | need_version=no |
---|
8569 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
8571 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
8572 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
8573 | else |
---|
8574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8575 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8576 | dynamic_linker='NetBSD ld.elf_so' |
---|
8577 | fi |
---|
8578 | shlibpath_var=LD_LIBRARY_PATH |
---|
8579 | shlibpath_overrides_runpath=yes |
---|
8580 | hardcode_into_libs=yes |
---|
8581 | ;; |
---|
8582 | |
---|
8583 | newsos6) |
---|
8584 | version_type=linux |
---|
8585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8586 | shlibpath_var=LD_LIBRARY_PATH |
---|
8587 | shlibpath_overrides_runpath=yes |
---|
8588 | ;; |
---|
8589 | |
---|
8590 | nto-qnx*) |
---|
8591 | version_type=linux |
---|
8592 | need_lib_prefix=no |
---|
8593 | need_version=no |
---|
8594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8595 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8596 | shlibpath_var=LD_LIBRARY_PATH |
---|
8597 | shlibpath_overrides_runpath=yes |
---|
8598 | ;; |
---|
8599 | |
---|
8600 | openbsd*) |
---|
8601 | version_type=sunos |
---|
8602 | need_lib_prefix=no |
---|
8603 | need_version=no |
---|
8604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
8605 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
8606 | shlibpath_var=LD_LIBRARY_PATH |
---|
8607 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
8608 | case $host_os in |
---|
8609 | openbsd2.[89] | openbsd2.[89].*) |
---|
8610 | shlibpath_overrides_runpath=no |
---|
8611 | ;; |
---|
8612 | *) |
---|
8613 | shlibpath_overrides_runpath=yes |
---|
8614 | ;; |
---|
8615 | esac |
---|
8616 | else |
---|
8617 | shlibpath_overrides_runpath=yes |
---|
8618 | fi |
---|
8619 | ;; |
---|
8620 | |
---|
8621 | os2*) |
---|
8622 | libname_spec='$name' |
---|
8623 | shrext_cmds=".dll" |
---|
8624 | need_lib_prefix=no |
---|
8625 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
8626 | dynamic_linker='OS/2 ld.exe' |
---|
8627 | shlibpath_var=LIBPATH |
---|
8628 | ;; |
---|
8629 | |
---|
8630 | osf3* | osf4* | osf5*) |
---|
8631 | version_type=osf |
---|
8632 | need_lib_prefix=no |
---|
8633 | need_version=no |
---|
8634 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8636 | shlibpath_var=LD_LIBRARY_PATH |
---|
8637 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
8638 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
8639 | ;; |
---|
8640 | |
---|
8641 | sco3.2v5*) |
---|
8642 | version_type=osf |
---|
8643 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8645 | shlibpath_var=LD_LIBRARY_PATH |
---|
8646 | ;; |
---|
8647 | |
---|
8648 | solaris*) |
---|
8649 | version_type=linux |
---|
8650 | need_lib_prefix=no |
---|
8651 | need_version=no |
---|
8652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8653 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8654 | shlibpath_var=LD_LIBRARY_PATH |
---|
8655 | shlibpath_overrides_runpath=yes |
---|
8656 | hardcode_into_libs=yes |
---|
8657 | # ldd complains unless libraries are executable |
---|
8658 | postinstall_cmds='chmod +x $lib' |
---|
8659 | ;; |
---|
8660 | |
---|
8661 | sunos4*) |
---|
8662 | version_type=sunos |
---|
8663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
8664 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
8665 | shlibpath_var=LD_LIBRARY_PATH |
---|
8666 | shlibpath_overrides_runpath=yes |
---|
8667 | if test "$with_gnu_ld" = yes; then |
---|
8668 | need_lib_prefix=no |
---|
8669 | fi |
---|
8670 | need_version=yes |
---|
8671 | ;; |
---|
8672 | |
---|
8673 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
8674 | version_type=linux |
---|
8675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8676 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8677 | shlibpath_var=LD_LIBRARY_PATH |
---|
8678 | case $host_vendor in |
---|
8679 | sni) |
---|
8680 | shlibpath_overrides_runpath=no |
---|
8681 | need_lib_prefix=no |
---|
8682 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
8683 | runpath_var=LD_RUN_PATH |
---|
8684 | ;; |
---|
8685 | siemens) |
---|
8686 | need_lib_prefix=no |
---|
8687 | ;; |
---|
8688 | motorola) |
---|
8689 | need_lib_prefix=no |
---|
8690 | need_version=no |
---|
8691 | shlibpath_overrides_runpath=no |
---|
8692 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
8693 | ;; |
---|
8694 | esac |
---|
8695 | ;; |
---|
8696 | |
---|
8697 | sysv4*MP*) |
---|
8698 | if test -d /usr/nec ;then |
---|
8699 | version_type=linux |
---|
8700 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
8701 | soname_spec='$libname${shared_ext}.$major' |
---|
8702 | shlibpath_var=LD_LIBRARY_PATH |
---|
8703 | fi |
---|
8704 | ;; |
---|
8705 | |
---|
8706 | uts4*) |
---|
8707 | version_type=linux |
---|
8708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8709 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8710 | shlibpath_var=LD_LIBRARY_PATH |
---|
8711 | ;; |
---|
8712 | |
---|
8713 | *) |
---|
8714 | dynamic_linker=no |
---|
8715 | ;; |
---|
8716 | esac |
---|
8717 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
8718 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
8719 | test "$dynamic_linker" = no && can_build_shared=no |
---|
8720 | |
---|
8721 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
8722 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
8723 | hardcode_action= |
---|
8724 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
8725 | test -n "$runpath_var" || \ |
---|
8726 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
8727 | |
---|
8728 | # We can hardcode non-existant directories. |
---|
8729 | if test "$hardcode_direct" != no && |
---|
8730 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
8731 | # have to relink, otherwise we might link with an installed library |
---|
8732 | # when we should be linking with a yet-to-be-installed one |
---|
8733 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
8734 | test "$hardcode_minus_L" != no; then |
---|
8735 | # Linking always hardcodes the temporary library directory. |
---|
8736 | hardcode_action=relink |
---|
8737 | else |
---|
8738 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
8739 | hardcode_action=immediate |
---|
8740 | fi |
---|
8741 | else |
---|
8742 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
8743 | # directories. |
---|
8744 | hardcode_action=unsupported |
---|
8745 | fi |
---|
8746 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
8747 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
8748 | |
---|
8749 | if test "$hardcode_action" = relink; then |
---|
8750 | # Fast installation is not supported |
---|
8751 | enable_fast_install=no |
---|
8752 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
8753 | test "$enable_shared" = no; then |
---|
8754 | # Fast installation is not necessary |
---|
8755 | enable_fast_install=needless |
---|
8756 | fi |
---|
8757 | |
---|
8758 | striplib= |
---|
8759 | old_striplib= |
---|
8760 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
8761 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
8762 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
8763 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
8764 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
8765 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8766 | echo "${ECHO_T}yes" >&6 |
---|
8767 | else |
---|
8768 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
8769 | case $host_os in |
---|
8770 | darwin*) |
---|
8771 | if test -n "$STRIP" ; then |
---|
8772 | striplib="$STRIP -x" |
---|
8773 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8774 | echo "${ECHO_T}yes" >&6 |
---|
8775 | else |
---|
8776 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8777 | echo "${ECHO_T}no" >&6 |
---|
8778 | fi |
---|
8779 | ;; |
---|
8780 | *) |
---|
8781 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8782 | echo "${ECHO_T}no" >&6 |
---|
8783 | ;; |
---|
8784 | esac |
---|
8785 | fi |
---|
8786 | |
---|
8787 | if test "x$enable_dlopen" != xyes; then |
---|
8788 | enable_dlopen=unknown |
---|
8789 | enable_dlopen_self=unknown |
---|
8790 | enable_dlopen_self_static=unknown |
---|
8791 | else |
---|
8792 | lt_cv_dlopen=no |
---|
8793 | lt_cv_dlopen_libs= |
---|
8794 | |
---|
8795 | case $host_os in |
---|
8796 | beos*) |
---|
8797 | lt_cv_dlopen="load_add_on" |
---|
8798 | lt_cv_dlopen_libs= |
---|
8799 | lt_cv_dlopen_self=yes |
---|
8800 | ;; |
---|
8801 | |
---|
8802 | mingw* | pw32*) |
---|
8803 | lt_cv_dlopen="LoadLibrary" |
---|
8804 | lt_cv_dlopen_libs= |
---|
8805 | ;; |
---|
8806 | |
---|
8807 | cygwin*) |
---|
8808 | lt_cv_dlopen="dlopen" |
---|
8809 | lt_cv_dlopen_libs= |
---|
8810 | ;; |
---|
8811 | |
---|
8812 | darwin*) |
---|
8813 | # if libdl is installed we need to link against it |
---|
8814 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
8815 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
8816 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
8817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8818 | else |
---|
8819 | ac_check_lib_save_LIBS=$LIBS |
---|
8820 | LIBS="-ldl $LIBS" |
---|
8821 | cat >conftest.$ac_ext <<_ACEOF |
---|
8822 | /* confdefs.h. */ |
---|
8823 | _ACEOF |
---|
8824 | cat confdefs.h >>conftest.$ac_ext |
---|
8825 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8826 | /* end confdefs.h. */ |
---|
8827 | |
---|
8828 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8829 | #ifdef __cplusplus |
---|
8830 | extern "C" |
---|
8831 | #endif |
---|
8832 | /* We use char because int might match the return type of a gcc2 |
---|
8833 | builtin and then its argument prototype would still apply. */ |
---|
8834 | char dlopen (); |
---|
8835 | int |
---|
8836 | main () |
---|
8837 | { |
---|
8838 | dlopen (); |
---|
8839 | ; |
---|
8840 | return 0; |
---|
8841 | } |
---|
8842 | _ACEOF |
---|
8843 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8845 | (eval $ac_link) 2>conftest.er1 |
---|
8846 | ac_status=$? |
---|
8847 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8848 | rm -f conftest.er1 |
---|
8849 | cat conftest.err >&5 |
---|
8850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8851 | (exit $ac_status); } && |
---|
8852 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8853 | || test ! -s conftest.err' |
---|
8854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8855 | (eval $ac_try) 2>&5 |
---|
8856 | ac_status=$? |
---|
8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8858 | (exit $ac_status); }; } && |
---|
8859 | { ac_try='test -s conftest$ac_exeext' |
---|
8860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8861 | (eval $ac_try) 2>&5 |
---|
8862 | ac_status=$? |
---|
8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8864 | (exit $ac_status); }; }; then |
---|
8865 | ac_cv_lib_dl_dlopen=yes |
---|
8866 | else |
---|
8867 | echo "$as_me: failed program was:" >&5 |
---|
8868 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8869 | |
---|
8870 | ac_cv_lib_dl_dlopen=no |
---|
8871 | fi |
---|
8872 | rm -f conftest.err conftest.$ac_objext \ |
---|
8873 | conftest$ac_exeext conftest.$ac_ext |
---|
8874 | LIBS=$ac_check_lib_save_LIBS |
---|
8875 | fi |
---|
8876 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
8877 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
8878 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
8879 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
8880 | else |
---|
8881 | |
---|
8882 | lt_cv_dlopen="dyld" |
---|
8883 | lt_cv_dlopen_libs= |
---|
8884 | lt_cv_dlopen_self=yes |
---|
8885 | |
---|
8886 | fi |
---|
8887 | |
---|
8888 | ;; |
---|
8889 | |
---|
8890 | *) |
---|
8891 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
8892 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
8893 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
8894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8895 | else |
---|
8896 | cat >conftest.$ac_ext <<_ACEOF |
---|
8897 | /* confdefs.h. */ |
---|
8898 | _ACEOF |
---|
8899 | cat confdefs.h >>conftest.$ac_ext |
---|
8900 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8901 | /* end confdefs.h. */ |
---|
8902 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
8903 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
8904 | #define shl_load innocuous_shl_load |
---|
8905 | |
---|
8906 | /* System header to define __stub macros and hopefully few prototypes, |
---|
8907 | which can conflict with char shl_load (); below. |
---|
8908 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8909 | <limits.h> exists even on freestanding compilers. */ |
---|
8910 | |
---|
8911 | #ifdef __STDC__ |
---|
8912 | # include <limits.h> |
---|
8913 | #else |
---|
8914 | # include <assert.h> |
---|
8915 | #endif |
---|
8916 | |
---|
8917 | #undef shl_load |
---|
8918 | |
---|
8919 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8920 | #ifdef __cplusplus |
---|
8921 | extern "C" |
---|
8922 | { |
---|
8923 | #endif |
---|
8924 | /* We use char because int might match the return type of a gcc2 |
---|
8925 | builtin and then its argument prototype would still apply. */ |
---|
8926 | char shl_load (); |
---|
8927 | /* The GNU C library defines this for functions which it implements |
---|
8928 | to always fail with ENOSYS. Some functions are actually named |
---|
8929 | something starting with __ and the normal name is an alias. */ |
---|
8930 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
8931 | choke me |
---|
8932 | #else |
---|
8933 | char (*f) () = shl_load; |
---|
8934 | #endif |
---|
8935 | #ifdef __cplusplus |
---|
8936 | } |
---|
8937 | #endif |
---|
8938 | |
---|
8939 | int |
---|
8940 | main () |
---|
8941 | { |
---|
8942 | return f != shl_load; |
---|
8943 | ; |
---|
8944 | return 0; |
---|
8945 | } |
---|
8946 | _ACEOF |
---|
8947 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8949 | (eval $ac_link) 2>conftest.er1 |
---|
8950 | ac_status=$? |
---|
8951 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8952 | rm -f conftest.er1 |
---|
8953 | cat conftest.err >&5 |
---|
8954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8955 | (exit $ac_status); } && |
---|
8956 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8957 | || test ! -s conftest.err' |
---|
8958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8959 | (eval $ac_try) 2>&5 |
---|
8960 | ac_status=$? |
---|
8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8962 | (exit $ac_status); }; } && |
---|
8963 | { ac_try='test -s conftest$ac_exeext' |
---|
8964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8965 | (eval $ac_try) 2>&5 |
---|
8966 | ac_status=$? |
---|
8967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8968 | (exit $ac_status); }; }; then |
---|
8969 | ac_cv_func_shl_load=yes |
---|
8970 | else |
---|
8971 | echo "$as_me: failed program was:" >&5 |
---|
8972 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8973 | |
---|
8974 | ac_cv_func_shl_load=no |
---|
8975 | fi |
---|
8976 | rm -f conftest.err conftest.$ac_objext \ |
---|
8977 | conftest$ac_exeext conftest.$ac_ext |
---|
8978 | fi |
---|
8979 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
8980 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
8981 | if test $ac_cv_func_shl_load = yes; then |
---|
8982 | lt_cv_dlopen="shl_load" |
---|
8983 | else |
---|
8984 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
8985 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
8986 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
8987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8988 | else |
---|
8989 | ac_check_lib_save_LIBS=$LIBS |
---|
8990 | LIBS="-ldld $LIBS" |
---|
8991 | cat >conftest.$ac_ext <<_ACEOF |
---|
8992 | /* confdefs.h. */ |
---|
8993 | _ACEOF |
---|
8994 | cat confdefs.h >>conftest.$ac_ext |
---|
8995 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8996 | /* end confdefs.h. */ |
---|
8997 | |
---|
8998 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8999 | #ifdef __cplusplus |
---|
9000 | extern "C" |
---|
9001 | #endif |
---|
9002 | /* We use char because int might match the return type of a gcc2 |
---|
9003 | builtin and then its argument prototype would still apply. */ |
---|
9004 | char shl_load (); |
---|
9005 | int |
---|
9006 | main () |
---|
9007 | { |
---|
9008 | shl_load (); |
---|
9009 | ; |
---|
9010 | return 0; |
---|
9011 | } |
---|
9012 | _ACEOF |
---|
9013 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9015 | (eval $ac_link) 2>conftest.er1 |
---|
9016 | ac_status=$? |
---|
9017 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9018 | rm -f conftest.er1 |
---|
9019 | cat conftest.err >&5 |
---|
9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9021 | (exit $ac_status); } && |
---|
9022 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9023 | || test ! -s conftest.err' |
---|
9024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9025 | (eval $ac_try) 2>&5 |
---|
9026 | ac_status=$? |
---|
9027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9028 | (exit $ac_status); }; } && |
---|
9029 | { ac_try='test -s conftest$ac_exeext' |
---|
9030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9031 | (eval $ac_try) 2>&5 |
---|
9032 | ac_status=$? |
---|
9033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9034 | (exit $ac_status); }; }; then |
---|
9035 | ac_cv_lib_dld_shl_load=yes |
---|
9036 | else |
---|
9037 | echo "$as_me: failed program was:" >&5 |
---|
9038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9039 | |
---|
9040 | ac_cv_lib_dld_shl_load=no |
---|
9041 | fi |
---|
9042 | rm -f conftest.err conftest.$ac_objext \ |
---|
9043 | conftest$ac_exeext conftest.$ac_ext |
---|
9044 | LIBS=$ac_check_lib_save_LIBS |
---|
9045 | fi |
---|
9046 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
9047 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
9048 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
9049 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
9050 | else |
---|
9051 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
9052 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
9053 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
9054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9055 | else |
---|
9056 | cat >conftest.$ac_ext <<_ACEOF |
---|
9057 | /* confdefs.h. */ |
---|
9058 | _ACEOF |
---|
9059 | cat confdefs.h >>conftest.$ac_ext |
---|
9060 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9061 | /* end confdefs.h. */ |
---|
9062 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
9063 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9064 | #define dlopen innocuous_dlopen |
---|
9065 | |
---|
9066 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9067 | which can conflict with char dlopen (); below. |
---|
9068 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9069 | <limits.h> exists even on freestanding compilers. */ |
---|
9070 | |
---|
9071 | #ifdef __STDC__ |
---|
9072 | # include <limits.h> |
---|
9073 | #else |
---|
9074 | # include <assert.h> |
---|
9075 | #endif |
---|
9076 | |
---|
9077 | #undef dlopen |
---|
9078 | |
---|
9079 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9080 | #ifdef __cplusplus |
---|
9081 | extern "C" |
---|
9082 | { |
---|
9083 | #endif |
---|
9084 | /* We use char because int might match the return type of a gcc2 |
---|
9085 | builtin and then its argument prototype would still apply. */ |
---|
9086 | char dlopen (); |
---|
9087 | /* The GNU C library defines this for functions which it implements |
---|
9088 | to always fail with ENOSYS. Some functions are actually named |
---|
9089 | something starting with __ and the normal name is an alias. */ |
---|
9090 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
9091 | choke me |
---|
9092 | #else |
---|
9093 | char (*f) () = dlopen; |
---|
9094 | #endif |
---|
9095 | #ifdef __cplusplus |
---|
9096 | } |
---|
9097 | #endif |
---|
9098 | |
---|
9099 | int |
---|
9100 | main () |
---|
9101 | { |
---|
9102 | return f != dlopen; |
---|
9103 | ; |
---|
9104 | return 0; |
---|
9105 | } |
---|
9106 | _ACEOF |
---|
9107 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9109 | (eval $ac_link) 2>conftest.er1 |
---|
9110 | ac_status=$? |
---|
9111 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9112 | rm -f conftest.er1 |
---|
9113 | cat conftest.err >&5 |
---|
9114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9115 | (exit $ac_status); } && |
---|
9116 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9117 | || test ! -s conftest.err' |
---|
9118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9119 | (eval $ac_try) 2>&5 |
---|
9120 | ac_status=$? |
---|
9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9122 | (exit $ac_status); }; } && |
---|
9123 | { ac_try='test -s conftest$ac_exeext' |
---|
9124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9125 | (eval $ac_try) 2>&5 |
---|
9126 | ac_status=$? |
---|
9127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9128 | (exit $ac_status); }; }; then |
---|
9129 | ac_cv_func_dlopen=yes |
---|
9130 | else |
---|
9131 | echo "$as_me: failed program was:" >&5 |
---|
9132 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9133 | |
---|
9134 | ac_cv_func_dlopen=no |
---|
9135 | fi |
---|
9136 | rm -f conftest.err conftest.$ac_objext \ |
---|
9137 | conftest$ac_exeext conftest.$ac_ext |
---|
9138 | fi |
---|
9139 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
9140 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
9141 | if test $ac_cv_func_dlopen = yes; then |
---|
9142 | lt_cv_dlopen="dlopen" |
---|
9143 | else |
---|
9144 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
9145 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
9146 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
9147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9148 | else |
---|
9149 | ac_check_lib_save_LIBS=$LIBS |
---|
9150 | LIBS="-ldl $LIBS" |
---|
9151 | cat >conftest.$ac_ext <<_ACEOF |
---|
9152 | /* confdefs.h. */ |
---|
9153 | _ACEOF |
---|
9154 | cat confdefs.h >>conftest.$ac_ext |
---|
9155 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9156 | /* end confdefs.h. */ |
---|
9157 | |
---|
9158 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9159 | #ifdef __cplusplus |
---|
9160 | extern "C" |
---|
9161 | #endif |
---|
9162 | /* We use char because int might match the return type of a gcc2 |
---|
9163 | builtin and then its argument prototype would still apply. */ |
---|
9164 | char dlopen (); |
---|
9165 | int |
---|
9166 | main () |
---|
9167 | { |
---|
9168 | dlopen (); |
---|
9169 | ; |
---|
9170 | return 0; |
---|
9171 | } |
---|
9172 | _ACEOF |
---|
9173 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9175 | (eval $ac_link) 2>conftest.er1 |
---|
9176 | ac_status=$? |
---|
9177 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9178 | rm -f conftest.er1 |
---|
9179 | cat conftest.err >&5 |
---|
9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9181 | (exit $ac_status); } && |
---|
9182 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9183 | || test ! -s conftest.err' |
---|
9184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9185 | (eval $ac_try) 2>&5 |
---|
9186 | ac_status=$? |
---|
9187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9188 | (exit $ac_status); }; } && |
---|
9189 | { ac_try='test -s conftest$ac_exeext' |
---|
9190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9191 | (eval $ac_try) 2>&5 |
---|
9192 | ac_status=$? |
---|
9193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9194 | (exit $ac_status); }; }; then |
---|
9195 | ac_cv_lib_dl_dlopen=yes |
---|
9196 | else |
---|
9197 | echo "$as_me: failed program was:" >&5 |
---|
9198 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9199 | |
---|
9200 | ac_cv_lib_dl_dlopen=no |
---|
9201 | fi |
---|
9202 | rm -f conftest.err conftest.$ac_objext \ |
---|
9203 | conftest$ac_exeext conftest.$ac_ext |
---|
9204 | LIBS=$ac_check_lib_save_LIBS |
---|
9205 | fi |
---|
9206 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
9207 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
9208 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
9209 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
9210 | else |
---|
9211 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
9212 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
9213 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
9214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9215 | else |
---|
9216 | ac_check_lib_save_LIBS=$LIBS |
---|
9217 | LIBS="-lsvld $LIBS" |
---|
9218 | cat >conftest.$ac_ext <<_ACEOF |
---|
9219 | /* confdefs.h. */ |
---|
9220 | _ACEOF |
---|
9221 | cat confdefs.h >>conftest.$ac_ext |
---|
9222 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9223 | /* end confdefs.h. */ |
---|
9224 | |
---|
9225 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9226 | #ifdef __cplusplus |
---|
9227 | extern "C" |
---|
9228 | #endif |
---|
9229 | /* We use char because int might match the return type of a gcc2 |
---|
9230 | builtin and then its argument prototype would still apply. */ |
---|
9231 | char dlopen (); |
---|
9232 | int |
---|
9233 | main () |
---|
9234 | { |
---|
9235 | dlopen (); |
---|
9236 | ; |
---|
9237 | return 0; |
---|
9238 | } |
---|
9239 | _ACEOF |
---|
9240 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9242 | (eval $ac_link) 2>conftest.er1 |
---|
9243 | ac_status=$? |
---|
9244 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9245 | rm -f conftest.er1 |
---|
9246 | cat conftest.err >&5 |
---|
9247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9248 | (exit $ac_status); } && |
---|
9249 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9250 | || test ! -s conftest.err' |
---|
9251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9252 | (eval $ac_try) 2>&5 |
---|
9253 | ac_status=$? |
---|
9254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9255 | (exit $ac_status); }; } && |
---|
9256 | { ac_try='test -s conftest$ac_exeext' |
---|
9257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9258 | (eval $ac_try) 2>&5 |
---|
9259 | ac_status=$? |
---|
9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9261 | (exit $ac_status); }; }; then |
---|
9262 | ac_cv_lib_svld_dlopen=yes |
---|
9263 | else |
---|
9264 | echo "$as_me: failed program was:" >&5 |
---|
9265 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9266 | |
---|
9267 | ac_cv_lib_svld_dlopen=no |
---|
9268 | fi |
---|
9269 | rm -f conftest.err conftest.$ac_objext \ |
---|
9270 | conftest$ac_exeext conftest.$ac_ext |
---|
9271 | LIBS=$ac_check_lib_save_LIBS |
---|
9272 | fi |
---|
9273 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
9274 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
9275 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
9276 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
9277 | else |
---|
9278 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
9279 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
9280 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
9281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9282 | else |
---|
9283 | ac_check_lib_save_LIBS=$LIBS |
---|
9284 | LIBS="-ldld $LIBS" |
---|
9285 | cat >conftest.$ac_ext <<_ACEOF |
---|
9286 | /* confdefs.h. */ |
---|
9287 | _ACEOF |
---|
9288 | cat confdefs.h >>conftest.$ac_ext |
---|
9289 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9290 | /* end confdefs.h. */ |
---|
9291 | |
---|
9292 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9293 | #ifdef __cplusplus |
---|
9294 | extern "C" |
---|
9295 | #endif |
---|
9296 | /* We use char because int might match the return type of a gcc2 |
---|
9297 | builtin and then its argument prototype would still apply. */ |
---|
9298 | char dld_link (); |
---|
9299 | int |
---|
9300 | main () |
---|
9301 | { |
---|
9302 | dld_link (); |
---|
9303 | ; |
---|
9304 | return 0; |
---|
9305 | } |
---|
9306 | _ACEOF |
---|
9307 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9309 | (eval $ac_link) 2>conftest.er1 |
---|
9310 | ac_status=$? |
---|
9311 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9312 | rm -f conftest.er1 |
---|
9313 | cat conftest.err >&5 |
---|
9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9315 | (exit $ac_status); } && |
---|
9316 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9317 | || test ! -s conftest.err' |
---|
9318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9319 | (eval $ac_try) 2>&5 |
---|
9320 | ac_status=$? |
---|
9321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9322 | (exit $ac_status); }; } && |
---|
9323 | { ac_try='test -s conftest$ac_exeext' |
---|
9324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9325 | (eval $ac_try) 2>&5 |
---|
9326 | ac_status=$? |
---|
9327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9328 | (exit $ac_status); }; }; then |
---|
9329 | ac_cv_lib_dld_dld_link=yes |
---|
9330 | else |
---|
9331 | echo "$as_me: failed program was:" >&5 |
---|
9332 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9333 | |
---|
9334 | ac_cv_lib_dld_dld_link=no |
---|
9335 | fi |
---|
9336 | rm -f conftest.err conftest.$ac_objext \ |
---|
9337 | conftest$ac_exeext conftest.$ac_ext |
---|
9338 | LIBS=$ac_check_lib_save_LIBS |
---|
9339 | fi |
---|
9340 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
9341 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
9342 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
9343 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
9344 | fi |
---|
9345 | |
---|
9346 | |
---|
9347 | fi |
---|
9348 | |
---|
9349 | |
---|
9350 | fi |
---|
9351 | |
---|
9352 | |
---|
9353 | fi |
---|
9354 | |
---|
9355 | |
---|
9356 | fi |
---|
9357 | |
---|
9358 | |
---|
9359 | fi |
---|
9360 | |
---|
9361 | ;; |
---|
9362 | esac |
---|
9363 | |
---|
9364 | if test "x$lt_cv_dlopen" != xno; then |
---|
9365 | enable_dlopen=yes |
---|
9366 | else |
---|
9367 | enable_dlopen=no |
---|
9368 | fi |
---|
9369 | |
---|
9370 | case $lt_cv_dlopen in |
---|
9371 | dlopen) |
---|
9372 | save_CPPFLAGS="$CPPFLAGS" |
---|
9373 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
9374 | |
---|
9375 | save_LDFLAGS="$LDFLAGS" |
---|
9376 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
9377 | |
---|
9378 | save_LIBS="$LIBS" |
---|
9379 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
9380 | |
---|
9381 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
9382 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
9383 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
9384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9385 | else |
---|
9386 | if test "$cross_compiling" = yes; then : |
---|
9387 | lt_cv_dlopen_self=cross |
---|
9388 | else |
---|
9389 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
9390 | lt_status=$lt_dlunknown |
---|
9391 | cat > conftest.$ac_ext <<EOF |
---|
9392 | #line 9392 "configure" |
---|
9393 | #include "confdefs.h" |
---|
9394 | |
---|
9395 | #if HAVE_DLFCN_H |
---|
9396 | #include <dlfcn.h> |
---|
9397 | #endif |
---|
9398 | |
---|
9399 | #include <stdio.h> |
---|
9400 | |
---|
9401 | #ifdef RTLD_GLOBAL |
---|
9402 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
9403 | #else |
---|
9404 | # ifdef DL_GLOBAL |
---|
9405 | # define LT_DLGLOBAL DL_GLOBAL |
---|
9406 | # else |
---|
9407 | # define LT_DLGLOBAL 0 |
---|
9408 | # endif |
---|
9409 | #endif |
---|
9410 | |
---|
9411 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
9412 | find out it does not work in some platform. */ |
---|
9413 | #ifndef LT_DLLAZY_OR_NOW |
---|
9414 | # ifdef RTLD_LAZY |
---|
9415 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
9416 | # else |
---|
9417 | # ifdef DL_LAZY |
---|
9418 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
9419 | # else |
---|
9420 | # ifdef RTLD_NOW |
---|
9421 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
9422 | # else |
---|
9423 | # ifdef DL_NOW |
---|
9424 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
9425 | # else |
---|
9426 | # define LT_DLLAZY_OR_NOW 0 |
---|
9427 | # endif |
---|
9428 | # endif |
---|
9429 | # endif |
---|
9430 | # endif |
---|
9431 | #endif |
---|
9432 | |
---|
9433 | #ifdef __cplusplus |
---|
9434 | extern "C" void exit (int); |
---|
9435 | #endif |
---|
9436 | |
---|
9437 | void fnord() { int i=42;} |
---|
9438 | int main () |
---|
9439 | { |
---|
9440 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
9441 | int status = $lt_dlunknown; |
---|
9442 | |
---|
9443 | if (self) |
---|
9444 | { |
---|
9445 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
9446 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
9447 | /* dlclose (self); */ |
---|
9448 | } |
---|
9449 | |
---|
9450 | exit (status); |
---|
9451 | } |
---|
9452 | EOF |
---|
9453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9454 | (eval $ac_link) 2>&5 |
---|
9455 | ac_status=$? |
---|
9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9457 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
9458 | (./conftest; exit; ) 2>/dev/null |
---|
9459 | lt_status=$? |
---|
9460 | case x$lt_status in |
---|
9461 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
9462 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
9463 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
9464 | esac |
---|
9465 | else : |
---|
9466 | # compilation failed |
---|
9467 | lt_cv_dlopen_self=no |
---|
9468 | fi |
---|
9469 | fi |
---|
9470 | rm -fr conftest* |
---|
9471 | |
---|
9472 | |
---|
9473 | fi |
---|
9474 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
9475 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
9476 | |
---|
9477 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
9478 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
9479 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
9480 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
9481 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
9482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9483 | else |
---|
9484 | if test "$cross_compiling" = yes; then : |
---|
9485 | lt_cv_dlopen_self_static=cross |
---|
9486 | else |
---|
9487 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
9488 | lt_status=$lt_dlunknown |
---|
9489 | cat > conftest.$ac_ext <<EOF |
---|
9490 | #line 9490 "configure" |
---|
9491 | #include "confdefs.h" |
---|
9492 | |
---|
9493 | #if HAVE_DLFCN_H |
---|
9494 | #include <dlfcn.h> |
---|
9495 | #endif |
---|
9496 | |
---|
9497 | #include <stdio.h> |
---|
9498 | |
---|
9499 | #ifdef RTLD_GLOBAL |
---|
9500 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
9501 | #else |
---|
9502 | # ifdef DL_GLOBAL |
---|
9503 | # define LT_DLGLOBAL DL_GLOBAL |
---|
9504 | # else |
---|
9505 | # define LT_DLGLOBAL 0 |
---|
9506 | # endif |
---|
9507 | #endif |
---|
9508 | |
---|
9509 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
9510 | find out it does not work in some platform. */ |
---|
9511 | #ifndef LT_DLLAZY_OR_NOW |
---|
9512 | # ifdef RTLD_LAZY |
---|
9513 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
9514 | # else |
---|
9515 | # ifdef DL_LAZY |
---|
9516 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
9517 | # else |
---|
9518 | # ifdef RTLD_NOW |
---|
9519 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
9520 | # else |
---|
9521 | # ifdef DL_NOW |
---|
9522 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
9523 | # else |
---|
9524 | # define LT_DLLAZY_OR_NOW 0 |
---|
9525 | # endif |
---|
9526 | # endif |
---|
9527 | # endif |
---|
9528 | # endif |
---|
9529 | #endif |
---|
9530 | |
---|
9531 | #ifdef __cplusplus |
---|
9532 | extern "C" void exit (int); |
---|
9533 | #endif |
---|
9534 | |
---|
9535 | void fnord() { int i=42;} |
---|
9536 | int main () |
---|
9537 | { |
---|
9538 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
9539 | int status = $lt_dlunknown; |
---|
9540 | |
---|
9541 | if (self) |
---|
9542 | { |
---|
9543 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
9544 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
9545 | /* dlclose (self); */ |
---|
9546 | } |
---|
9547 | |
---|
9548 | exit (status); |
---|
9549 | } |
---|
9550 | EOF |
---|
9551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9552 | (eval $ac_link) 2>&5 |
---|
9553 | ac_status=$? |
---|
9554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9555 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
9556 | (./conftest; exit; ) 2>/dev/null |
---|
9557 | lt_status=$? |
---|
9558 | case x$lt_status in |
---|
9559 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
9560 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
9561 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
9562 | esac |
---|
9563 | else : |
---|
9564 | # compilation failed |
---|
9565 | lt_cv_dlopen_self_static=no |
---|
9566 | fi |
---|
9567 | fi |
---|
9568 | rm -fr conftest* |
---|
9569 | |
---|
9570 | |
---|
9571 | fi |
---|
9572 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
9573 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
9574 | fi |
---|
9575 | |
---|
9576 | CPPFLAGS="$save_CPPFLAGS" |
---|
9577 | LDFLAGS="$save_LDFLAGS" |
---|
9578 | LIBS="$save_LIBS" |
---|
9579 | ;; |
---|
9580 | esac |
---|
9581 | |
---|
9582 | case $lt_cv_dlopen_self in |
---|
9583 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
9584 | *) enable_dlopen_self=unknown ;; |
---|
9585 | esac |
---|
9586 | |
---|
9587 | case $lt_cv_dlopen_self_static in |
---|
9588 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
9589 | *) enable_dlopen_self_static=unknown ;; |
---|
9590 | esac |
---|
9591 | fi |
---|
9592 | |
---|
9593 | |
---|
9594 | # Report which librarie types wil actually be built |
---|
9595 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
9596 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
9597 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
9598 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
9599 | |
---|
9600 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
9601 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
9602 | test "$can_build_shared" = "no" && enable_shared=no |
---|
9603 | |
---|
9604 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
9605 | # are all built from PIC. |
---|
9606 | case "$host_os" in |
---|
9607 | aix3*) |
---|
9608 | test "$enable_shared" = yes && enable_static=no |
---|
9609 | if test -n "$RANLIB"; then |
---|
9610 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
9611 | postinstall_cmds='$RANLIB $lib' |
---|
9612 | fi |
---|
9613 | ;; |
---|
9614 | |
---|
9615 | aix4* | aix5*) |
---|
9616 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
9617 | test "$enable_shared" = yes && enable_static=no |
---|
9618 | fi |
---|
9619 | ;; |
---|
9620 | esac |
---|
9621 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
9622 | echo "${ECHO_T}$enable_shared" >&6 |
---|
9623 | |
---|
9624 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
9625 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
---|
9626 | # Make sure either enable_shared or enable_static is yes. |
---|
9627 | test "$enable_shared" = yes || enable_static=yes |
---|
9628 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
9629 | echo "${ECHO_T}$enable_static" >&6 |
---|
9630 | |
---|
9631 | # The else clause should only fire when bootstrapping the |
---|
9632 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
9633 | # with your package, and you will get complaints that there are |
---|
9634 | # no rules to generate ltmain.sh. |
---|
9635 | if test -f "$ltmain"; then |
---|
9636 | # See if we are running on zsh, and set the options which allow our commands through |
---|
9637 | # without removal of \ escapes. |
---|
9638 | if test -n "${ZSH_VERSION+set}" ; then |
---|
9639 | setopt NO_GLOB_SUBST |
---|
9640 | fi |
---|
9641 | # Now quote all the things that may contain metacharacters while being |
---|
9642 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
9643 | # variables and quote the copies for generation of the libtool script. |
---|
9644 | for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \ |
---|
9645 | SED SHELL STRIP \ |
---|
9646 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
9647 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
9648 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
9649 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
9650 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
9651 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
9652 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
9653 | compiler \ |
---|
9654 | CC \ |
---|
9655 | LD \ |
---|
9656 | lt_prog_compiler_wl \ |
---|
9657 | lt_prog_compiler_pic \ |
---|
9658 | lt_prog_compiler_static \ |
---|
9659 | lt_prog_compiler_no_builtin_flag \ |
---|
9660 | export_dynamic_flag_spec \ |
---|
9661 | thread_safe_flag_spec \ |
---|
9662 | whole_archive_flag_spec \ |
---|
9663 | enable_shared_with_static_runtimes \ |
---|
9664 | old_archive_cmds \ |
---|
9665 | old_archive_from_new_cmds \ |
---|
9666 | predep_objects \ |
---|
9667 | postdep_objects \ |
---|
9668 | predeps \ |
---|
9669 | postdeps \ |
---|
9670 | compiler_lib_search_path \ |
---|
9671 | archive_cmds \ |
---|
9672 | archive_expsym_cmds \ |
---|
9673 | postinstall_cmds \ |
---|
9674 | postuninstall_cmds \ |
---|
9675 | old_archive_from_expsyms_cmds \ |
---|
9676 | allow_undefined_flag \ |
---|
9677 | no_undefined_flag \ |
---|
9678 | export_symbols_cmds \ |
---|
9679 | hardcode_libdir_flag_spec \ |
---|
9680 | hardcode_libdir_flag_spec_ld \ |
---|
9681 | hardcode_libdir_separator \ |
---|
9682 | hardcode_automatic \ |
---|
9683 | module_cmds \ |
---|
9684 | module_expsym_cmds \ |
---|
9685 | lt_cv_prog_compiler_c_o \ |
---|
9686 | exclude_expsyms \ |
---|
9687 | include_expsyms; do |
---|
9688 | |
---|
9689 | case $var in |
---|
9690 | old_archive_cmds | \ |
---|
9691 | old_archive_from_new_cmds | \ |
---|
9692 | archive_cmds | \ |
---|
9693 | archive_expsym_cmds | \ |
---|
9694 | module_cmds | \ |
---|
9695 | module_expsym_cmds | \ |
---|
9696 | old_archive_from_expsyms_cmds | \ |
---|
9697 | export_symbols_cmds | \ |
---|
9698 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
9699 | postinstall_cmds | postuninstall_cmds | \ |
---|
9700 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
9701 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
9702 | # Double-quote double-evaled strings. |
---|
9703 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
9704 | ;; |
---|
9705 | *) |
---|
9706 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
9707 | ;; |
---|
9708 | esac |
---|
9709 | done |
---|
9710 | |
---|
9711 | case $lt_echo in |
---|
9712 | *'\$0 --fallback-echo"') |
---|
9713 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
9714 | ;; |
---|
9715 | esac |
---|
9716 | |
---|
9717 | cfgfile="${ofile}T" |
---|
9718 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
---|
9719 | $rm -f "$cfgfile" |
---|
9720 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
---|
9721 | echo "$as_me: creating $ofile" >&6;} |
---|
9722 | |
---|
9723 | cat <<__EOF__ >> "$cfgfile" |
---|
9724 | #! $SHELL |
---|
9725 | |
---|
9726 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
9727 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
9728 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
9729 | # |
---|
9730 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
---|
9731 | # Free Software Foundation, Inc. |
---|
9732 | # |
---|
9733 | # This file is part of GNU Libtool: |
---|
9734 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
9735 | # |
---|
9736 | # This program is free software; you can redistribute it and/or modify |
---|
9737 | # it under the terms of the GNU General Public License as published by |
---|
9738 | # the Free Software Foundation; either version 2 of the License, or |
---|
9739 | # (at your option) any later version. |
---|
9740 | # |
---|
9741 | # This program is distributed in the hope that it will be useful, but |
---|
9742 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
9743 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
9744 | # General Public License for more details. |
---|
9745 | # |
---|
9746 | # You should have received a copy of the GNU General Public License |
---|
9747 | # along with this program; if not, write to the Free Software |
---|
9748 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
9749 | # |
---|
9750 | # As a special exception to the GNU General Public License, if you |
---|
9751 | # distribute this file as part of a program that contains a |
---|
9752 | # configuration script generated by Autoconf, you may include it under |
---|
9753 | # the same distribution terms that you use for the rest of that program. |
---|
9754 | |
---|
9755 | # A sed program that does not truncate output. |
---|
9756 | SED=$lt_SED |
---|
9757 | |
---|
9758 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
9759 | Xsed="$SED -e s/^X//" |
---|
9760 | |
---|
9761 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
9762 | # if CDPATH is set. |
---|
9763 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
9764 | |
---|
9765 | # The names of the tagged configurations supported by this script. |
---|
9766 | available_tags= |
---|
9767 | |
---|
9768 | # ### BEGIN LIBTOOL CONFIG |
---|
9769 | |
---|
9770 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
9771 | |
---|
9772 | # Shell to use when invoking shell scripts. |
---|
9773 | SHELL=$lt_SHELL |
---|
9774 | |
---|
9775 | # Whether or not to build shared libraries. |
---|
9776 | build_libtool_libs=$enable_shared |
---|
9777 | |
---|
9778 | # Whether or not to build static libraries. |
---|
9779 | build_old_libs=$enable_static |
---|
9780 | |
---|
9781 | # Whether or not to add -lc for building shared libraries. |
---|
9782 | build_libtool_need_lc=$archive_cmds_need_lc |
---|
9783 | |
---|
9784 | # Whether or not to disallow shared libs when runtime libs are static |
---|
9785 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
---|
9786 | |
---|
9787 | # Whether or not to optimize for fast installation. |
---|
9788 | fast_install=$enable_fast_install |
---|
9789 | |
---|
9790 | # The host system. |
---|
9791 | host_alias=$host_alias |
---|
9792 | host=$host |
---|
9793 | host_os=$host_os |
---|
9794 | |
---|
9795 | # The build system. |
---|
9796 | build_alias=$build_alias |
---|
9797 | build=$build |
---|
9798 | build_os=$build_os |
---|
9799 | |
---|
9800 | # An echo program that does not interpret backslashes. |
---|
9801 | echo=$lt_echo |
---|
9802 | |
---|
9803 | # The archiver. |
---|
9804 | AR=$lt_AR |
---|
9805 | AR_FLAGS=$lt_AR_FLAGS |
---|
9806 | |
---|
9807 | # A C compiler. |
---|
9808 | LTCC=$lt_LTCC |
---|
9809 | |
---|
9810 | # A language-specific compiler. |
---|
9811 | CC=$lt_compiler |
---|
9812 | |
---|
9813 | # Is the compiler the GNU C compiler? |
---|
9814 | with_gcc=$GCC |
---|
9815 | |
---|
9816 | # An ERE matcher. |
---|
9817 | EGREP=$lt_EGREP |
---|
9818 | |
---|
9819 | # The linker used to build libraries. |
---|
9820 | LD=$lt_LD |
---|
9821 | |
---|
9822 | # Whether we need hard or soft links. |
---|
9823 | LN_S=$lt_LN_S |
---|
9824 | |
---|
9825 | # A BSD-compatible nm program. |
---|
9826 | NM=$lt_NM |
---|
9827 | |
---|
9828 | # A symbol stripping program |
---|
9829 | STRIP=$lt_STRIP |
---|
9830 | |
---|
9831 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
9832 | MAGIC_CMD=$MAGIC_CMD |
---|
9833 | |
---|
9834 | # Used on cygwin: DLL creation program. |
---|
9835 | DLLTOOL="$DLLTOOL" |
---|
9836 | |
---|
9837 | # Used on cygwin: object dumper. |
---|
9838 | OBJDUMP="$OBJDUMP" |
---|
9839 | |
---|
9840 | # Used on cygwin: assembler. |
---|
9841 | AS=$lt_AS |
---|
9842 | |
---|
9843 | # The name of the directory that contains temporary libtool files. |
---|
9844 | objdir=$objdir |
---|
9845 | |
---|
9846 | # How to create reloadable object files. |
---|
9847 | reload_flag=$lt_reload_flag |
---|
9848 | reload_cmds=$lt_reload_cmds |
---|
9849 | |
---|
9850 | # How to pass a linker flag through the compiler. |
---|
9851 | wl=$lt_lt_prog_compiler_wl |
---|
9852 | |
---|
9853 | # Object file suffix (normally "o"). |
---|
9854 | objext="$ac_objext" |
---|
9855 | |
---|
9856 | # Old archive suffix (normally "a"). |
---|
9857 | libext="$libext" |
---|
9858 | |
---|
9859 | # Shared library suffix (normally ".so"). |
---|
9860 | shrext_cmds='$shrext_cmds' |
---|
9861 | |
---|
9862 | # Executable file suffix (normally ""). |
---|
9863 | exeext="$exeext" |
---|
9864 | |
---|
9865 | # Additional compiler flags for building library objects. |
---|
9866 | pic_flag=$lt_lt_prog_compiler_pic |
---|
9867 | pic_mode=$pic_mode |
---|
9868 | |
---|
9869 | # What is the maximum length of a command? |
---|
9870 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
9871 | |
---|
9872 | # Does compiler simultaneously support -c and -o options? |
---|
9873 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
---|
9874 | |
---|
9875 | # Must we lock files when doing compilation ? |
---|
9876 | need_locks=$lt_need_locks |
---|
9877 | |
---|
9878 | # Do we need the lib prefix for modules? |
---|
9879 | need_lib_prefix=$need_lib_prefix |
---|
9880 | |
---|
9881 | # Do we need a version for libraries? |
---|
9882 | need_version=$need_version |
---|
9883 | |
---|
9884 | # Whether dlopen is supported. |
---|
9885 | dlopen_support=$enable_dlopen |
---|
9886 | |
---|
9887 | # Whether dlopen of programs is supported. |
---|
9888 | dlopen_self=$enable_dlopen_self |
---|
9889 | |
---|
9890 | # Whether dlopen of statically linked programs is supported. |
---|
9891 | dlopen_self_static=$enable_dlopen_self_static |
---|
9892 | |
---|
9893 | # Compiler flag to prevent dynamic linking. |
---|
9894 | link_static_flag=$lt_lt_prog_compiler_static |
---|
9895 | |
---|
9896 | # Compiler flag to turn off builtin functions. |
---|
9897 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
---|
9898 | |
---|
9899 | # Compiler flag to allow reflexive dlopens. |
---|
9900 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
---|
9901 | |
---|
9902 | # Compiler flag to generate shared objects directly from archives. |
---|
9903 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
---|
9904 | |
---|
9905 | # Compiler flag to generate thread-safe objects. |
---|
9906 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
---|
9907 | |
---|
9908 | # Library versioning type. |
---|
9909 | version_type=$version_type |
---|
9910 | |
---|
9911 | # Format of library name prefix. |
---|
9912 | libname_spec=$lt_libname_spec |
---|
9913 | |
---|
9914 | # List of archive names. First name is the real one, the rest are links. |
---|
9915 | # The last name is the one that the linker finds with -lNAME. |
---|
9916 | library_names_spec=$lt_library_names_spec |
---|
9917 | |
---|
9918 | # The coded name of the library, if different from the real name. |
---|
9919 | soname_spec=$lt_soname_spec |
---|
9920 | |
---|
9921 | # Commands used to build and install an old-style archive. |
---|
9922 | RANLIB=$lt_RANLIB |
---|
9923 | old_archive_cmds=$lt_old_archive_cmds |
---|
9924 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
9925 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
9926 | |
---|
9927 | # Create an old-style archive from a shared archive. |
---|
9928 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
---|
9929 | |
---|
9930 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
9931 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
---|
9932 | |
---|
9933 | # Commands used to build and install a shared archive. |
---|
9934 | archive_cmds=$lt_archive_cmds |
---|
9935 | archive_expsym_cmds=$lt_archive_expsym_cmds |
---|
9936 | postinstall_cmds=$lt_postinstall_cmds |
---|
9937 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
9938 | |
---|
9939 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
9940 | module_cmds=$lt_module_cmds |
---|
9941 | module_expsym_cmds=$lt_module_expsym_cmds |
---|
9942 | |
---|
9943 | # Commands to strip libraries. |
---|
9944 | old_striplib=$lt_old_striplib |
---|
9945 | striplib=$lt_striplib |
---|
9946 | |
---|
9947 | # Dependencies to place before the objects being linked to create a |
---|
9948 | # shared library. |
---|
9949 | predep_objects=$lt_predep_objects |
---|
9950 | |
---|
9951 | # Dependencies to place after the objects being linked to create a |
---|
9952 | # shared library. |
---|
9953 | postdep_objects=$lt_postdep_objects |
---|
9954 | |
---|
9955 | # Dependencies to place before the objects being linked to create a |
---|
9956 | # shared library. |
---|
9957 | predeps=$lt_predeps |
---|
9958 | |
---|
9959 | # Dependencies to place after the objects being linked to create a |
---|
9960 | # shared library. |
---|
9961 | postdeps=$lt_postdeps |
---|
9962 | |
---|
9963 | # The library search path used internally by the compiler when linking |
---|
9964 | # a shared library. |
---|
9965 | compiler_lib_search_path=$lt_compiler_lib_search_path |
---|
9966 | |
---|
9967 | # Method to check whether dependent libraries are shared objects. |
---|
9968 | deplibs_check_method=$lt_deplibs_check_method |
---|
9969 | |
---|
9970 | # Command to use when deplibs_check_method == file_magic. |
---|
9971 | file_magic_cmd=$lt_file_magic_cmd |
---|
9972 | |
---|
9973 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
9974 | allow_undefined_flag=$lt_allow_undefined_flag |
---|
9975 | |
---|
9976 | # Flag that forces no undefined symbols. |
---|
9977 | no_undefined_flag=$lt_no_undefined_flag |
---|
9978 | |
---|
9979 | # Commands used to finish a libtool library installation in a directory. |
---|
9980 | finish_cmds=$lt_finish_cmds |
---|
9981 | |
---|
9982 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
9983 | finish_eval=$lt_finish_eval |
---|
9984 | |
---|
9985 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
9986 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
9987 | |
---|
9988 | # Transform the output of nm in a proper C declaration |
---|
9989 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
9990 | |
---|
9991 | # Transform the output of nm in a C name address pair |
---|
9992 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
9993 | |
---|
9994 | # This is the shared library runtime path variable. |
---|
9995 | runpath_var=$runpath_var |
---|
9996 | |
---|
9997 | # This is the shared library path variable. |
---|
9998 | shlibpath_var=$shlibpath_var |
---|
9999 | |
---|
10000 | # Is shlibpath searched before the hard-coded library search path? |
---|
10001 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
10002 | |
---|
10003 | # How to hardcode a shared library path into an executable. |
---|
10004 | hardcode_action=$hardcode_action |
---|
10005 | |
---|
10006 | # Whether we should hardcode library paths into libraries. |
---|
10007 | hardcode_into_libs=$hardcode_into_libs |
---|
10008 | |
---|
10009 | # Flag to hardcode \$libdir into a binary during linking. |
---|
10010 | # This must work even if \$libdir does not exist. |
---|
10011 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
---|
10012 | |
---|
10013 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
10014 | # a binary during linking. This must work even if \$libdir does |
---|
10015 | # not exist. |
---|
10016 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
---|
10017 | |
---|
10018 | # Whether we need a single -rpath flag with a separated argument. |
---|
10019 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
---|
10020 | |
---|
10021 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
10022 | # resulting binary. |
---|
10023 | hardcode_direct=$hardcode_direct |
---|
10024 | |
---|
10025 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
10026 | # resulting binary. |
---|
10027 | hardcode_minus_L=$hardcode_minus_L |
---|
10028 | |
---|
10029 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
10030 | # the resulting binary. |
---|
10031 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
---|
10032 | |
---|
10033 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
10034 | # and all subsequent libraries and executables linked against it. |
---|
10035 | hardcode_automatic=$hardcode_automatic |
---|
10036 | |
---|
10037 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
10038 | # restored at relink time. |
---|
10039 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
10040 | |
---|
10041 | # Whether libtool must link a program against all its dependency libraries. |
---|
10042 | link_all_deplibs=$link_all_deplibs |
---|
10043 | |
---|
10044 | # Compile-time system search path for libraries |
---|
10045 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
10046 | |
---|
10047 | # Run-time system search path for libraries |
---|
10048 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
10049 | |
---|
10050 | # Fix the shell variable \$srcfile for the compiler. |
---|
10051 | fix_srcfile_path="$fix_srcfile_path" |
---|
10052 | |
---|
10053 | # Set to yes if exported symbols are required. |
---|
10054 | always_export_symbols=$always_export_symbols |
---|
10055 | |
---|
10056 | # The commands to list exported symbols. |
---|
10057 | export_symbols_cmds=$lt_export_symbols_cmds |
---|
10058 | |
---|
10059 | # The commands to extract the exported symbol list from a shared archive. |
---|
10060 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
10061 | |
---|
10062 | # Symbols that should not be listed in the preloaded symbols. |
---|
10063 | exclude_expsyms=$lt_exclude_expsyms |
---|
10064 | |
---|
10065 | # Symbols that must always be exported. |
---|
10066 | include_expsyms=$lt_include_expsyms |
---|
10067 | |
---|
10068 | # ### END LIBTOOL CONFIG |
---|
10069 | |
---|
10070 | __EOF__ |
---|
10071 | |
---|
10072 | |
---|
10073 | case $host_os in |
---|
10074 | aix3*) |
---|
10075 | cat <<\EOF >> "$cfgfile" |
---|
10076 | |
---|
10077 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
10078 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
10079 | # vanish in a puff of smoke. |
---|
10080 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
10081 | COLLECT_NAMES= |
---|
10082 | export COLLECT_NAMES |
---|
10083 | fi |
---|
10084 | EOF |
---|
10085 | ;; |
---|
10086 | esac |
---|
10087 | |
---|
10088 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
10089 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
10090 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
10091 | # is reportedly fixed, but why not run on old versions too? |
---|
10092 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
---|
10093 | |
---|
10094 | mv -f "$cfgfile" "$ofile" || \ |
---|
10095 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
---|
10096 | chmod +x "$ofile" |
---|
10097 | |
---|
10098 | else |
---|
10099 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
10100 | # `config.status --recheck' to rerun these tests and create the |
---|
10101 | # libtool script then. |
---|
10102 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
10103 | if test -f "$ltmain_in"; then |
---|
10104 | test -f Makefile && make "$ltmain" |
---|
10105 | fi |
---|
10106 | fi |
---|
10107 | |
---|
10108 | |
---|
10109 | ac_ext=c |
---|
10110 | ac_cpp='$CPP $CPPFLAGS' |
---|
10111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10114 | |
---|
10115 | CC="$lt_save_CC" |
---|
10116 | |
---|
10117 | |
---|
10118 | # Check whether --with-tags or --without-tags was given. |
---|
10119 | if test "${with_tags+set}" = set; then |
---|
10120 | withval="$with_tags" |
---|
10121 | tagnames="$withval" |
---|
10122 | fi; |
---|
10123 | |
---|
10124 | if test -f "$ltmain" && test -n "$tagnames"; then |
---|
10125 | if test ! -f "${ofile}"; then |
---|
10126 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
---|
10127 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
---|
10128 | fi |
---|
10129 | |
---|
10130 | if test -z "$LTCC"; then |
---|
10131 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
---|
10132 | if test -z "$LTCC"; then |
---|
10133 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
---|
10134 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
---|
10135 | else |
---|
10136 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
---|
10137 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
---|
10138 | fi |
---|
10139 | fi |
---|
10140 | |
---|
10141 | # Extract list of available tagged configurations in $ofile. |
---|
10142 | # Note that this assumes the entire list is on one line. |
---|
10143 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
---|
10144 | |
---|
10145 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
10146 | for tagname in $tagnames; do |
---|
10147 | IFS="$lt_save_ifs" |
---|
10148 | # Check whether tagname contains only valid characters |
---|
10149 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
---|
10150 | "") ;; |
---|
10151 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
---|
10152 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
---|
10153 | { (exit 1); exit 1; }; } |
---|
10154 | ;; |
---|
10155 | esac |
---|
10156 | |
---|
10157 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
---|
10158 | then |
---|
10159 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
---|
10160 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
---|
10161 | { (exit 1); exit 1; }; } |
---|
10162 | fi |
---|
10163 | |
---|
10164 | # Update the list of available tags. |
---|
10165 | if test -n "$tagname"; then |
---|
10166 | echo appending configuration tag \"$tagname\" to $ofile |
---|
10167 | |
---|
10168 | case $tagname in |
---|
10169 | CXX) |
---|
10170 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
10171 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
10172 | (test "X$CXX" != "Xg++"))) ; then |
---|
10173 | ac_ext=cc |
---|
10174 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
10175 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10176 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10177 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
10178 | |
---|
10179 | |
---|
10180 | |
---|
10181 | |
---|
10182 | archive_cmds_need_lc_CXX=no |
---|
10183 | allow_undefined_flag_CXX= |
---|
10184 | always_export_symbols_CXX=no |
---|
10185 | archive_expsym_cmds_CXX= |
---|
10186 | export_dynamic_flag_spec_CXX= |
---|
10187 | hardcode_direct_CXX=no |
---|
10188 | hardcode_libdir_flag_spec_CXX= |
---|
10189 | hardcode_libdir_flag_spec_ld_CXX= |
---|
10190 | hardcode_libdir_separator_CXX= |
---|
10191 | hardcode_minus_L_CXX=no |
---|
10192 | hardcode_automatic_CXX=no |
---|
10193 | module_cmds_CXX= |
---|
10194 | module_expsym_cmds_CXX= |
---|
10195 | link_all_deplibs_CXX=unknown |
---|
10196 | old_archive_cmds_CXX=$old_archive_cmds |
---|
10197 | no_undefined_flag_CXX= |
---|
10198 | whole_archive_flag_spec_CXX= |
---|
10199 | enable_shared_with_static_runtimes_CXX=no |
---|
10200 | |
---|
10201 | # Dependencies to place before and after the object being linked: |
---|
10202 | predep_objects_CXX= |
---|
10203 | postdep_objects_CXX= |
---|
10204 | predeps_CXX= |
---|
10205 | postdeps_CXX= |
---|
10206 | compiler_lib_search_path_CXX= |
---|
10207 | |
---|
10208 | # Source file extension for C++ test sources. |
---|
10209 | ac_ext=cc |
---|
10210 | |
---|
10211 | # Object file extension for compiled C++ test sources. |
---|
10212 | objext=o |
---|
10213 | objext_CXX=$objext |
---|
10214 | |
---|
10215 | # Code to be used in simple compile tests |
---|
10216 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
10217 | |
---|
10218 | # Code to be used in simple link tests |
---|
10219 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
---|
10220 | |
---|
10221 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
10222 | |
---|
10223 | # If no C compiler was specified, use CC. |
---|
10224 | LTCC=${LTCC-"$CC"} |
---|
10225 | |
---|
10226 | # Allow CC to be a program name with arguments. |
---|
10227 | compiler=$CC |
---|
10228 | |
---|
10229 | |
---|
10230 | # Allow CC to be a program name with arguments. |
---|
10231 | lt_save_CC=$CC |
---|
10232 | lt_save_LD=$LD |
---|
10233 | lt_save_GCC=$GCC |
---|
10234 | GCC=$GXX |
---|
10235 | lt_save_with_gnu_ld=$with_gnu_ld |
---|
10236 | lt_save_path_LD=$lt_cv_path_LD |
---|
10237 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
---|
10238 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
---|
10239 | else |
---|
10240 | unset lt_cv_prog_gnu_ld |
---|
10241 | fi |
---|
10242 | if test -n "${lt_cv_path_LDCXX+set}"; then |
---|
10243 | lt_cv_path_LD=$lt_cv_path_LDCXX |
---|
10244 | else |
---|
10245 | unset lt_cv_path_LD |
---|
10246 | fi |
---|
10247 | test -z "${LDCXX+set}" || LD=$LDCXX |
---|
10248 | CC=${CXX-"c++"} |
---|
10249 | compiler=$CC |
---|
10250 | compiler_CXX=$CC |
---|
10251 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
---|
10252 | |
---|
10253 | # We don't want -fno-exception wen compiling C++ code, so set the |
---|
10254 | # no_builtin_flag separately |
---|
10255 | if test "$GXX" = yes; then |
---|
10256 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
---|
10257 | else |
---|
10258 | lt_prog_compiler_no_builtin_flag_CXX= |
---|
10259 | fi |
---|
10260 | |
---|
10261 | if test "$GXX" = yes; then |
---|
10262 | # Set up default GNU C++ configuration |
---|
10263 | |
---|
10264 | |
---|
10265 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
10266 | if test "${with_gnu_ld+set}" = set; then |
---|
10267 | withval="$with_gnu_ld" |
---|
10268 | test "$withval" = no || with_gnu_ld=yes |
---|
10269 | else |
---|
10270 | with_gnu_ld=no |
---|
10271 | fi; |
---|
10272 | ac_prog=ld |
---|
10273 | if test "$GCC" = yes; then |
---|
10274 | # Check if gcc -print-prog-name=ld gives a path. |
---|
10275 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
10276 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
10277 | case $host in |
---|
10278 | *-*-mingw*) |
---|
10279 | # gcc leaves a trailing carriage return which upsets mingw |
---|
10280 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
10281 | *) |
---|
10282 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
10283 | esac |
---|
10284 | case $ac_prog in |
---|
10285 | # Accept absolute paths. |
---|
10286 | [\\/]* | ?:[\\/]*) |
---|
10287 | re_direlt='/[^/][^/]*/\.\./' |
---|
10288 | # Canonicalize the pathname of ld |
---|
10289 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
10290 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
10291 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
10292 | done |
---|
10293 | test -z "$LD" && LD="$ac_prog" |
---|
10294 | ;; |
---|
10295 | "") |
---|
10296 | # If it fails, then pretend we aren't using GCC. |
---|
10297 | ac_prog=ld |
---|
10298 | ;; |
---|
10299 | *) |
---|
10300 | # If it is relative, then search for the first ld in PATH. |
---|
10301 | with_gnu_ld=unknown |
---|
10302 | ;; |
---|
10303 | esac |
---|
10304 | elif test "$with_gnu_ld" = yes; then |
---|
10305 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
10306 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
10307 | else |
---|
10308 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
10309 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
10310 | fi |
---|
10311 | if test "${lt_cv_path_LD+set}" = set; then |
---|
10312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10313 | else |
---|
10314 | if test -z "$LD"; then |
---|
10315 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
10316 | for ac_dir in $PATH; do |
---|
10317 | IFS="$lt_save_ifs" |
---|
10318 | test -z "$ac_dir" && ac_dir=. |
---|
10319 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
10320 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
10321 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
10322 | # but apparently some GNU ld's only accept -v. |
---|
10323 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
10324 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
10325 | *GNU* | *'with BFD'*) |
---|
10326 | test "$with_gnu_ld" != no && break |
---|
10327 | ;; |
---|
10328 | *) |
---|
10329 | test "$with_gnu_ld" != yes && break |
---|
10330 | ;; |
---|
10331 | esac |
---|
10332 | fi |
---|
10333 | done |
---|
10334 | IFS="$lt_save_ifs" |
---|
10335 | else |
---|
10336 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
10337 | fi |
---|
10338 | fi |
---|
10339 | |
---|
10340 | LD="$lt_cv_path_LD" |
---|
10341 | if test -n "$LD"; then |
---|
10342 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
10343 | echo "${ECHO_T}$LD" >&6 |
---|
10344 | else |
---|
10345 | echo "$as_me:$LINENO: result: no" >&5 |
---|
10346 | echo "${ECHO_T}no" >&6 |
---|
10347 | fi |
---|
10348 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
10349 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
10350 | { (exit 1); exit 1; }; } |
---|
10351 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
10352 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
10353 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
10354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10355 | else |
---|
10356 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
10357 | case `$LD -v 2>&1 </dev/null` in |
---|
10358 | *GNU* | *'with BFD'*) |
---|
10359 | lt_cv_prog_gnu_ld=yes |
---|
10360 | ;; |
---|
10361 | *) |
---|
10362 | lt_cv_prog_gnu_ld=no |
---|
10363 | ;; |
---|
10364 | esac |
---|
10365 | fi |
---|
10366 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
10367 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
10368 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
10369 | |
---|
10370 | |
---|
10371 | |
---|
10372 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
---|
10373 | # archiving commands below assume that GNU ld is being used. |
---|
10374 | if test "$with_gnu_ld" = yes; then |
---|
10375 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10376 | 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' |
---|
10377 | |
---|
10378 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
10379 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
10380 | |
---|
10381 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
10382 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
---|
10383 | # investigate it a little bit more. (MM) |
---|
10384 | wlarc='${wl}' |
---|
10385 | |
---|
10386 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
10387 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
---|
10388 | grep 'no-whole-archive' > /dev/null; then |
---|
10389 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
10390 | else |
---|
10391 | whole_archive_flag_spec_CXX= |
---|
10392 | fi |
---|
10393 | else |
---|
10394 | with_gnu_ld=no |
---|
10395 | wlarc= |
---|
10396 | |
---|
10397 | # A generic and very simple default shared library creation |
---|
10398 | # command for GNU C++ for the case where it uses the native |
---|
10399 | # linker, instead of GNU ld. If possible, this setting should |
---|
10400 | # overridden to take advantage of the native linker features on |
---|
10401 | # the platform it is being used on. |
---|
10402 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
10403 | fi |
---|
10404 | |
---|
10405 | # Commands to make compiler produce verbose output that lists |
---|
10406 | # what "hidden" libraries, object files and flags are used when |
---|
10407 | # linking a shared library. |
---|
10408 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
10409 | |
---|
10410 | else |
---|
10411 | GXX=no |
---|
10412 | with_gnu_ld=no |
---|
10413 | wlarc= |
---|
10414 | fi |
---|
10415 | |
---|
10416 | # PORTME: fill in a description of your system's C++ link characteristics |
---|
10417 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
10418 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
10419 | ld_shlibs_CXX=yes |
---|
10420 | case $host_os in |
---|
10421 | aix3*) |
---|
10422 | # FIXME: insert proper C++ library support |
---|
10423 | ld_shlibs_CXX=no |
---|
10424 | ;; |
---|
10425 | aix4* | aix5*) |
---|
10426 | if test "$host_cpu" = ia64; then |
---|
10427 | # On IA64, the linker does run time linking by default, so we don't |
---|
10428 | # have to do anything special. |
---|
10429 | aix_use_runtimelinking=no |
---|
10430 | exp_sym_flag='-Bexport' |
---|
10431 | no_entry_flag="" |
---|
10432 | else |
---|
10433 | aix_use_runtimelinking=no |
---|
10434 | |
---|
10435 | # Test if we are trying to use run time linking or normal |
---|
10436 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
10437 | # need to do runtime linking. |
---|
10438 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
10439 | for ld_flag in $LDFLAGS; do |
---|
10440 | case $ld_flag in |
---|
10441 | *-brtl*) |
---|
10442 | aix_use_runtimelinking=yes |
---|
10443 | break |
---|
10444 | ;; |
---|
10445 | esac |
---|
10446 | done |
---|
10447 | esac |
---|
10448 | |
---|
10449 | exp_sym_flag='-bexport' |
---|
10450 | no_entry_flag='-bnoentry' |
---|
10451 | fi |
---|
10452 | |
---|
10453 | # When large executables or shared objects are built, AIX ld can |
---|
10454 | # have problems creating the table of contents. If linking a library |
---|
10455 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
10456 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
10457 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
10458 | |
---|
10459 | archive_cmds_CXX='' |
---|
10460 | hardcode_direct_CXX=yes |
---|
10461 | hardcode_libdir_separator_CXX=':' |
---|
10462 | link_all_deplibs_CXX=yes |
---|
10463 | |
---|
10464 | if test "$GXX" = yes; then |
---|
10465 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
10466 | # We only want to do this on AIX 4.2 and lower, the check |
---|
10467 | # below for broken collect2 doesn't work under 4.3+ |
---|
10468 | collect2name=`${CC} -print-prog-name=collect2` |
---|
10469 | if test -f "$collect2name" && \ |
---|
10470 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
10471 | then |
---|
10472 | # We have reworked collect2 |
---|
10473 | hardcode_direct_CXX=yes |
---|
10474 | else |
---|
10475 | # We have old collect2 |
---|
10476 | hardcode_direct_CXX=unsupported |
---|
10477 | # It fails to find uninstalled libraries when the uninstalled |
---|
10478 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
10479 | # to unsupported forces relinking |
---|
10480 | hardcode_minus_L_CXX=yes |
---|
10481 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
10482 | hardcode_libdir_separator_CXX= |
---|
10483 | fi |
---|
10484 | esac |
---|
10485 | shared_flag='-shared' |
---|
10486 | if test "$aix_use_runtimelinking" = yes; then |
---|
10487 | shared_flag="$shared_flag "'${wl}-G' |
---|
10488 | fi |
---|
10489 | else |
---|
10490 | # not using gcc |
---|
10491 | if test "$host_cpu" = ia64; then |
---|
10492 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
10493 | # chokes on -Wl,-G. The following line is correct: |
---|
10494 | shared_flag='-G' |
---|
10495 | else |
---|
10496 | if test "$aix_use_runtimelinking" = yes; then |
---|
10497 | shared_flag='${wl}-G' |
---|
10498 | else |
---|
10499 | shared_flag='${wl}-bM:SRE' |
---|
10500 | fi |
---|
10501 | fi |
---|
10502 | fi |
---|
10503 | |
---|
10504 | # It seems that -bexpall does not export symbols beginning with |
---|
10505 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
10506 | always_export_symbols_CXX=yes |
---|
10507 | if test "$aix_use_runtimelinking" = yes; then |
---|
10508 | # Warning - without using the other runtime loading flags (-brtl), |
---|
10509 | # -berok will link without error, but may produce a broken library. |
---|
10510 | allow_undefined_flag_CXX='-berok' |
---|
10511 | # Determine the default libpath from the value encoded in an empty executable. |
---|
10512 | cat >conftest.$ac_ext <<_ACEOF |
---|
10513 | /* confdefs.h. */ |
---|
10514 | _ACEOF |
---|
10515 | cat confdefs.h >>conftest.$ac_ext |
---|
10516 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10517 | /* end confdefs.h. */ |
---|
10518 | |
---|
10519 | int |
---|
10520 | main () |
---|
10521 | { |
---|
10522 | |
---|
10523 | ; |
---|
10524 | return 0; |
---|
10525 | } |
---|
10526 | _ACEOF |
---|
10527 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10529 | (eval $ac_link) 2>conftest.er1 |
---|
10530 | ac_status=$? |
---|
10531 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10532 | rm -f conftest.er1 |
---|
10533 | cat conftest.err >&5 |
---|
10534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10535 | (exit $ac_status); } && |
---|
10536 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
10537 | || test ! -s conftest.err' |
---|
10538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10539 | (eval $ac_try) 2>&5 |
---|
10540 | ac_status=$? |
---|
10541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10542 | (exit $ac_status); }; } && |
---|
10543 | { ac_try='test -s conftest$ac_exeext' |
---|
10544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10545 | (eval $ac_try) 2>&5 |
---|
10546 | ac_status=$? |
---|
10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10548 | (exit $ac_status); }; }; then |
---|
10549 | |
---|
10550 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
10551 | }'` |
---|
10552 | # Check for a 64-bit object if we didn't find anything. |
---|
10553 | 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; } |
---|
10554 | }'`; fi |
---|
10555 | else |
---|
10556 | echo "$as_me: failed program was:" >&5 |
---|
10557 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10558 | |
---|
10559 | fi |
---|
10560 | rm -f conftest.err conftest.$ac_objext \ |
---|
10561 | conftest$ac_exeext conftest.$ac_ext |
---|
10562 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
10563 | |
---|
10564 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10565 | |
---|
10566 | 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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
10567 | else |
---|
10568 | if test "$host_cpu" = ia64; then |
---|
10569 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
---|
10570 | allow_undefined_flag_CXX="-z nodefs" |
---|
10571 | 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" |
---|
10572 | else |
---|
10573 | # Determine the default libpath from the value encoded in an empty executable. |
---|
10574 | cat >conftest.$ac_ext <<_ACEOF |
---|
10575 | /* confdefs.h. */ |
---|
10576 | _ACEOF |
---|
10577 | cat confdefs.h >>conftest.$ac_ext |
---|
10578 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10579 | /* end confdefs.h. */ |
---|
10580 | |
---|
10581 | int |
---|
10582 | main () |
---|
10583 | { |
---|
10584 | |
---|
10585 | ; |
---|
10586 | return 0; |
---|
10587 | } |
---|
10588 | _ACEOF |
---|
10589 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10591 | (eval $ac_link) 2>conftest.er1 |
---|
10592 | ac_status=$? |
---|
10593 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10594 | rm -f conftest.er1 |
---|
10595 | cat conftest.err >&5 |
---|
10596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10597 | (exit $ac_status); } && |
---|
10598 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
10599 | || test ! -s conftest.err' |
---|
10600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10601 | (eval $ac_try) 2>&5 |
---|
10602 | ac_status=$? |
---|
10603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10604 | (exit $ac_status); }; } && |
---|
10605 | { ac_try='test -s conftest$ac_exeext' |
---|
10606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10607 | (eval $ac_try) 2>&5 |
---|
10608 | ac_status=$? |
---|
10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10610 | (exit $ac_status); }; }; then |
---|
10611 | |
---|
10612 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
10613 | }'` |
---|
10614 | # Check for a 64-bit object if we didn't find anything. |
---|
10615 | 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; } |
---|
10616 | }'`; fi |
---|
10617 | else |
---|
10618 | echo "$as_me: failed program was:" >&5 |
---|
10619 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10620 | |
---|
10621 | fi |
---|
10622 | rm -f conftest.err conftest.$ac_objext \ |
---|
10623 | conftest$ac_exeext conftest.$ac_ext |
---|
10624 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
10625 | |
---|
10626 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10627 | # Warning - without using the other run time loading flags, |
---|
10628 | # -berok will link without error, but may produce a broken library. |
---|
10629 | no_undefined_flag_CXX=' ${wl}-bernotok' |
---|
10630 | allow_undefined_flag_CXX=' ${wl}-berok' |
---|
10631 | # -bexpall does not export symbols beginning with underscore (_) |
---|
10632 | always_export_symbols_CXX=yes |
---|
10633 | # Exported symbols can be pulled into shared objects from archives |
---|
10634 | whole_archive_flag_spec_CXX=' ' |
---|
10635 | archive_cmds_need_lc_CXX=yes |
---|
10636 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
10637 | 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' |
---|
10638 | fi |
---|
10639 | fi |
---|
10640 | ;; |
---|
10641 | chorus*) |
---|
10642 | case $cc_basename in |
---|
10643 | *) |
---|
10644 | # FIXME: insert proper C++ library support |
---|
10645 | ld_shlibs_CXX=no |
---|
10646 | ;; |
---|
10647 | esac |
---|
10648 | ;; |
---|
10649 | |
---|
10650 | |
---|
10651 | cygwin* | mingw* | pw32*) |
---|
10652 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
---|
10653 | # as there is no search path for DLLs. |
---|
10654 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
10655 | allow_undefined_flag_CXX=unsupported |
---|
10656 | always_export_symbols_CXX=no |
---|
10657 | enable_shared_with_static_runtimes_CXX=yes |
---|
10658 | |
---|
10659 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
10660 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
10661 | # If the export-symbols file already is a .def file (1st line |
---|
10662 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
10663 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
10664 | cp $export_symbols $output_objdir/$soname.def; |
---|
10665 | else |
---|
10666 | echo EXPORTS > $output_objdir/$soname.def; |
---|
10667 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
10668 | fi~ |
---|
10669 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
10670 | else |
---|
10671 | ld_shlibs_CXX=no |
---|
10672 | fi |
---|
10673 | ;; |
---|
10674 | darwin* | rhapsody*) |
---|
10675 | case "$host_os" in |
---|
10676 | rhapsody* | darwin1.[012]) |
---|
10677 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
---|
10678 | ;; |
---|
10679 | *) # Darwin 1.3 on |
---|
10680 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
10681 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
10682 | else |
---|
10683 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
10684 | 10.[012]) |
---|
10685 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
10686 | ;; |
---|
10687 | 10.*) |
---|
10688 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
---|
10689 | ;; |
---|
10690 | esac |
---|
10691 | fi |
---|
10692 | ;; |
---|
10693 | esac |
---|
10694 | archive_cmds_need_lc_CXX=no |
---|
10695 | hardcode_direct_CXX=no |
---|
10696 | hardcode_automatic_CXX=yes |
---|
10697 | hardcode_shlibpath_var_CXX=unsupported |
---|
10698 | whole_archive_flag_spec_CXX='' |
---|
10699 | link_all_deplibs_CXX=yes |
---|
10700 | |
---|
10701 | if test "$GXX" = yes ; then |
---|
10702 | lt_int_apple_cc_single_mod=no |
---|
10703 | output_verbose_link_cmd='echo' |
---|
10704 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
---|
10705 | lt_int_apple_cc_single_mod=yes |
---|
10706 | fi |
---|
10707 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
10708 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
10709 | else |
---|
10710 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
10711 | fi |
---|
10712 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
10713 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
10714 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
10715 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
10716 | else |
---|
10717 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
10718 | fi |
---|
10719 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
10720 | else |
---|
10721 | case "$cc_basename" in |
---|
10722 | xlc*) |
---|
10723 | output_verbose_link_cmd='echo' |
---|
10724 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
10725 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
10726 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
10727 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
10728 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
10729 | ;; |
---|
10730 | *) |
---|
10731 | ld_shlibs_CXX=no |
---|
10732 | ;; |
---|
10733 | esac |
---|
10734 | fi |
---|
10735 | ;; |
---|
10736 | |
---|
10737 | dgux*) |
---|
10738 | case $cc_basename in |
---|
10739 | ec++) |
---|
10740 | # FIXME: insert proper C++ library support |
---|
10741 | ld_shlibs_CXX=no |
---|
10742 | ;; |
---|
10743 | ghcx) |
---|
10744 | # Green Hills C++ Compiler |
---|
10745 | # FIXME: insert proper C++ library support |
---|
10746 | ld_shlibs_CXX=no |
---|
10747 | ;; |
---|
10748 | *) |
---|
10749 | # FIXME: insert proper C++ library support |
---|
10750 | ld_shlibs_CXX=no |
---|
10751 | ;; |
---|
10752 | esac |
---|
10753 | ;; |
---|
10754 | freebsd[12]*) |
---|
10755 | # C++ shared libraries reported to be fairly broken before switch to ELF |
---|
10756 | ld_shlibs_CXX=no |
---|
10757 | ;; |
---|
10758 | freebsd-elf*) |
---|
10759 | archive_cmds_need_lc_CXX=no |
---|
10760 | ;; |
---|
10761 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
10762 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
---|
10763 | # conventions |
---|
10764 | ld_shlibs_CXX=yes |
---|
10765 | ;; |
---|
10766 | gnu*) |
---|
10767 | ;; |
---|
10768 | hpux9*) |
---|
10769 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
10770 | hardcode_libdir_separator_CXX=: |
---|
10771 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
10772 | hardcode_direct_CXX=yes |
---|
10773 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
10774 | # but as the default |
---|
10775 | # location of the library. |
---|
10776 | |
---|
10777 | case $cc_basename in |
---|
10778 | CC) |
---|
10779 | # FIXME: insert proper C++ library support |
---|
10780 | ld_shlibs_CXX=no |
---|
10781 | ;; |
---|
10782 | aCC) |
---|
10783 | 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' |
---|
10784 | # Commands to make compiler produce verbose output that lists |
---|
10785 | # what "hidden" libraries, object files and flags are used when |
---|
10786 | # linking a shared library. |
---|
10787 | # |
---|
10788 | # There doesn't appear to be a way to prevent this compiler from |
---|
10789 | # explicitly linking system object files so we need to strip them |
---|
10790 | # from the output so that they don't get included in the library |
---|
10791 | # dependencies. |
---|
10792 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
10793 | ;; |
---|
10794 | *) |
---|
10795 | if test "$GXX" = yes; then |
---|
10796 | 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' |
---|
10797 | else |
---|
10798 | # FIXME: insert proper C++ library support |
---|
10799 | ld_shlibs_CXX=no |
---|
10800 | fi |
---|
10801 | ;; |
---|
10802 | esac |
---|
10803 | ;; |
---|
10804 | hpux10*|hpux11*) |
---|
10805 | if test $with_gnu_ld = no; then |
---|
10806 | case "$host_cpu" in |
---|
10807 | hppa*64*) |
---|
10808 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
10809 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
---|
10810 | hardcode_libdir_separator_CXX=: |
---|
10811 | ;; |
---|
10812 | ia64*) |
---|
10813 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
10814 | ;; |
---|
10815 | *) |
---|
10816 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
10817 | hardcode_libdir_separator_CXX=: |
---|
10818 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
10819 | ;; |
---|
10820 | esac |
---|
10821 | fi |
---|
10822 | case "$host_cpu" in |
---|
10823 | hppa*64*) |
---|
10824 | hardcode_direct_CXX=no |
---|
10825 | hardcode_shlibpath_var_CXX=no |
---|
10826 | ;; |
---|
10827 | ia64*) |
---|
10828 | hardcode_direct_CXX=no |
---|
10829 | hardcode_shlibpath_var_CXX=no |
---|
10830 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
10831 | # but as the default |
---|
10832 | # location of the library. |
---|
10833 | ;; |
---|
10834 | *) |
---|
10835 | hardcode_direct_CXX=yes |
---|
10836 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
10837 | # but as the default |
---|
10838 | # location of the library. |
---|
10839 | ;; |
---|
10840 | esac |
---|
10841 | |
---|
10842 | case $cc_basename in |
---|
10843 | CC) |
---|
10844 | # FIXME: insert proper C++ library support |
---|
10845 | ld_shlibs_CXX=no |
---|
10846 | ;; |
---|
10847 | aCC) |
---|
10848 | case "$host_cpu" in |
---|
10849 | hppa*64*|ia64*) |
---|
10850 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
10851 | ;; |
---|
10852 | *) |
---|
10853 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
10854 | ;; |
---|
10855 | esac |
---|
10856 | # Commands to make compiler produce verbose output that lists |
---|
10857 | # what "hidden" libraries, object files and flags are used when |
---|
10858 | # linking a shared library. |
---|
10859 | # |
---|
10860 | # There doesn't appear to be a way to prevent this compiler from |
---|
10861 | # explicitly linking system object files so we need to strip them |
---|
10862 | # from the output so that they don't get included in the library |
---|
10863 | # dependencies. |
---|
10864 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
10865 | ;; |
---|
10866 | *) |
---|
10867 | if test "$GXX" = yes; then |
---|
10868 | if test $with_gnu_ld = no; then |
---|
10869 | case "$host_cpu" in |
---|
10870 | ia64*|hppa*64*) |
---|
10871 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
10872 | ;; |
---|
10873 | *) |
---|
10874 | 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' |
---|
10875 | ;; |
---|
10876 | esac |
---|
10877 | fi |
---|
10878 | else |
---|
10879 | # FIXME: insert proper C++ library support |
---|
10880 | ld_shlibs_CXX=no |
---|
10881 | fi |
---|
10882 | ;; |
---|
10883 | esac |
---|
10884 | ;; |
---|
10885 | irix5* | irix6*) |
---|
10886 | case $cc_basename in |
---|
10887 | CC) |
---|
10888 | # SGI C++ |
---|
10889 | 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' |
---|
10890 | |
---|
10891 | # Archives containing C++ object files must be created using |
---|
10892 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
---|
10893 | # necessary to make sure instantiated templates are included |
---|
10894 | # in the archive. |
---|
10895 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
---|
10896 | ;; |
---|
10897 | *) |
---|
10898 | if test "$GXX" = yes; then |
---|
10899 | if test "$with_gnu_ld" = no; then |
---|
10900 | 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' |
---|
10901 | else |
---|
10902 | 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` -o $lib' |
---|
10903 | fi |
---|
10904 | fi |
---|
10905 | link_all_deplibs_CXX=yes |
---|
10906 | ;; |
---|
10907 | esac |
---|
10908 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
10909 | hardcode_libdir_separator_CXX=: |
---|
10910 | ;; |
---|
10911 | linux*) |
---|
10912 | case $cc_basename in |
---|
10913 | KCC) |
---|
10914 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
10915 | |
---|
10916 | # KCC will only create a shared library if the output file |
---|
10917 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
10918 | # to its proper name (with version) after linking. |
---|
10919 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
---|
10920 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
---|
10921 | # Commands to make compiler produce verbose output that lists |
---|
10922 | # what "hidden" libraries, object files and flags are used when |
---|
10923 | # linking a shared library. |
---|
10924 | # |
---|
10925 | # There doesn't appear to be a way to prevent this compiler from |
---|
10926 | # explicitly linking system object files so we need to strip them |
---|
10927 | # from the output so that they don't get included in the library |
---|
10928 | # dependencies. |
---|
10929 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
10930 | |
---|
10931 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
---|
10932 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
10933 | |
---|
10934 | # Archives containing C++ object files must be created using |
---|
10935 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
10936 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
10937 | ;; |
---|
10938 | icpc) |
---|
10939 | # Intel C++ |
---|
10940 | with_gnu_ld=yes |
---|
10941 | # version 8.0 and above of icpc choke on multiply defined symbols |
---|
10942 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
---|
10943 | # earlier do not add the objects themselves. |
---|
10944 | case `$CC -V 2>&1` in |
---|
10945 | *"Version 7."*) |
---|
10946 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10947 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10948 | ;; |
---|
10949 | *) # Version 8.0 or newer |
---|
10950 | tmp_idyn= |
---|
10951 | case $host_cpu in |
---|
10952 | ia64*) tmp_idyn=' -i_dynamic';; |
---|
10953 | esac |
---|
10954 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10955 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10956 | ;; |
---|
10957 | esac |
---|
10958 | archive_cmds_need_lc_CXX=no |
---|
10959 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
10960 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
10961 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
10962 | ;; |
---|
10963 | pgCC) |
---|
10964 | # Portland Group C++ compiler |
---|
10965 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
---|
10966 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
---|
10967 | |
---|
10968 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
10969 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
10970 | ;; |
---|
10971 | cxx) |
---|
10972 | # Compaq C++ |
---|
10973 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10974 | 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' |
---|
10975 | |
---|
10976 | runpath_var=LD_RUN_PATH |
---|
10977 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
10978 | hardcode_libdir_separator_CXX=: |
---|
10979 | |
---|
10980 | # Commands to make compiler produce verbose output that lists |
---|
10981 | # what "hidden" libraries, object files and flags are used when |
---|
10982 | # linking a shared library. |
---|
10983 | # |
---|
10984 | # There doesn't appear to be a way to prevent this compiler from |
---|
10985 | # explicitly linking system object files so we need to strip them |
---|
10986 | # from the output so that they don't get included in the library |
---|
10987 | # dependencies. |
---|
10988 | 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' |
---|
10989 | ;; |
---|
10990 | esac |
---|
10991 | ;; |
---|
10992 | lynxos*) |
---|
10993 | # FIXME: insert proper C++ library support |
---|
10994 | ld_shlibs_CXX=no |
---|
10995 | ;; |
---|
10996 | m88k*) |
---|
10997 | # FIXME: insert proper C++ library support |
---|
10998 | ld_shlibs_CXX=no |
---|
10999 | ;; |
---|
11000 | mvs*) |
---|
11001 | case $cc_basename in |
---|
11002 | cxx) |
---|
11003 | # FIXME: insert proper C++ library support |
---|
11004 | ld_shlibs_CXX=no |
---|
11005 | ;; |
---|
11006 | *) |
---|
11007 | # FIXME: insert proper C++ library support |
---|
11008 | ld_shlibs_CXX=no |
---|
11009 | ;; |
---|
11010 | esac |
---|
11011 | ;; |
---|
11012 | netbsd*) |
---|
11013 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
11014 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
---|
11015 | wlarc= |
---|
11016 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
11017 | hardcode_direct_CXX=yes |
---|
11018 | hardcode_shlibpath_var_CXX=no |
---|
11019 | fi |
---|
11020 | # Workaround some broken pre-1.5 toolchains |
---|
11021 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
---|
11022 | ;; |
---|
11023 | openbsd2*) |
---|
11024 | # C++ shared libraries are fairly broken |
---|
11025 | ld_shlibs_CXX=no |
---|
11026 | ;; |
---|
11027 | openbsd*) |
---|
11028 | hardcode_direct_CXX=yes |
---|
11029 | hardcode_shlibpath_var_CXX=no |
---|
11030 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
11031 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
11032 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
11033 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
---|
11034 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
11035 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
11036 | fi |
---|
11037 | output_verbose_link_cmd='echo' |
---|
11038 | ;; |
---|
11039 | osf3*) |
---|
11040 | case $cc_basename in |
---|
11041 | KCC) |
---|
11042 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
11043 | |
---|
11044 | # KCC will only create a shared library if the output file |
---|
11045 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
11046 | # to its proper name (with version) after linking. |
---|
11047 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
---|
11048 | |
---|
11049 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
11050 | hardcode_libdir_separator_CXX=: |
---|
11051 | |
---|
11052 | # Archives containing C++ object files must be created using |
---|
11053 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
11054 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
11055 | |
---|
11056 | ;; |
---|
11057 | RCC) |
---|
11058 | # Rational C++ 2.4.1 |
---|
11059 | # FIXME: insert proper C++ library support |
---|
11060 | ld_shlibs_CXX=no |
---|
11061 | ;; |
---|
11062 | cxx) |
---|
11063 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
11064 | 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' |
---|
11065 | |
---|
11066 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
11067 | hardcode_libdir_separator_CXX=: |
---|
11068 | |
---|
11069 | # Commands to make compiler produce verbose output that lists |
---|
11070 | # what "hidden" libraries, object files and flags are used when |
---|
11071 | # linking a shared library. |
---|
11072 | # |
---|
11073 | # There doesn't appear to be a way to prevent this compiler from |
---|
11074 | # explicitly linking system object files so we need to strip them |
---|
11075 | # from the output so that they don't get included in the library |
---|
11076 | # dependencies. |
---|
11077 | 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' |
---|
11078 | ;; |
---|
11079 | *) |
---|
11080 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
11081 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
11082 | 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' |
---|
11083 | |
---|
11084 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
11085 | hardcode_libdir_separator_CXX=: |
---|
11086 | |
---|
11087 | # Commands to make compiler produce verbose output that lists |
---|
11088 | # what "hidden" libraries, object files and flags are used when |
---|
11089 | # linking a shared library. |
---|
11090 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
11091 | |
---|
11092 | else |
---|
11093 | # FIXME: insert proper C++ library support |
---|
11094 | ld_shlibs_CXX=no |
---|
11095 | fi |
---|
11096 | ;; |
---|
11097 | esac |
---|
11098 | ;; |
---|
11099 | osf4* | osf5*) |
---|
11100 | case $cc_basename in |
---|
11101 | KCC) |
---|
11102 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
11103 | |
---|
11104 | # KCC will only create a shared library if the output file |
---|
11105 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
11106 | # to its proper name (with version) after linking. |
---|
11107 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
---|
11108 | |
---|
11109 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
11110 | hardcode_libdir_separator_CXX=: |
---|
11111 | |
---|
11112 | # Archives containing C++ object files must be created using |
---|
11113 | # the KAI C++ compiler. |
---|
11114 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
---|
11115 | ;; |
---|
11116 | RCC) |
---|
11117 | # Rational C++ 2.4.1 |
---|
11118 | # FIXME: insert proper C++ library support |
---|
11119 | ld_shlibs_CXX=no |
---|
11120 | ;; |
---|
11121 | cxx) |
---|
11122 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
---|
11123 | 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' |
---|
11124 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
---|
11125 | echo "-hidden">> $lib.exp~ |
---|
11126 | $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~ |
---|
11127 | $rm $lib.exp' |
---|
11128 | |
---|
11129 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
11130 | hardcode_libdir_separator_CXX=: |
---|
11131 | |
---|
11132 | # Commands to make compiler produce verbose output that lists |
---|
11133 | # what "hidden" libraries, object files and flags are used when |
---|
11134 | # linking a shared library. |
---|
11135 | # |
---|
11136 | # There doesn't appear to be a way to prevent this compiler from |
---|
11137 | # explicitly linking system object files so we need to strip them |
---|
11138 | # from the output so that they don't get included in the library |
---|
11139 | # dependencies. |
---|
11140 | 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' |
---|
11141 | ;; |
---|
11142 | *) |
---|
11143 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
11144 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
11145 | 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' |
---|
11146 | |
---|
11147 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
11148 | hardcode_libdir_separator_CXX=: |
---|
11149 | |
---|
11150 | # Commands to make compiler produce verbose output that lists |
---|
11151 | # what "hidden" libraries, object files and flags are used when |
---|
11152 | # linking a shared library. |
---|
11153 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
11154 | |
---|
11155 | else |
---|
11156 | # FIXME: insert proper C++ library support |
---|
11157 | ld_shlibs_CXX=no |
---|
11158 | fi |
---|
11159 | ;; |
---|
11160 | esac |
---|
11161 | ;; |
---|
11162 | psos*) |
---|
11163 | # FIXME: insert proper C++ library support |
---|
11164 | ld_shlibs_CXX=no |
---|
11165 | ;; |
---|
11166 | sco*) |
---|
11167 | archive_cmds_need_lc_CXX=no |
---|
11168 | case $cc_basename in |
---|
11169 | CC) |
---|
11170 | # FIXME: insert proper C++ library support |
---|
11171 | ld_shlibs_CXX=no |
---|
11172 | ;; |
---|
11173 | *) |
---|
11174 | # FIXME: insert proper C++ library support |
---|
11175 | ld_shlibs_CXX=no |
---|
11176 | ;; |
---|
11177 | esac |
---|
11178 | ;; |
---|
11179 | sunos4*) |
---|
11180 | case $cc_basename in |
---|
11181 | CC) |
---|
11182 | # Sun C++ 4.x |
---|
11183 | # FIXME: insert proper C++ library support |
---|
11184 | ld_shlibs_CXX=no |
---|
11185 | ;; |
---|
11186 | lcc) |
---|
11187 | # Lucid |
---|
11188 | # FIXME: insert proper C++ library support |
---|
11189 | ld_shlibs_CXX=no |
---|
11190 | ;; |
---|
11191 | *) |
---|
11192 | # FIXME: insert proper C++ library support |
---|
11193 | ld_shlibs_CXX=no |
---|
11194 | ;; |
---|
11195 | esac |
---|
11196 | ;; |
---|
11197 | solaris*) |
---|
11198 | case $cc_basename in |
---|
11199 | CC) |
---|
11200 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
11201 | no_undefined_flag_CXX=' -zdefs' |
---|
11202 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
11203 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
11204 | $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' |
---|
11205 | |
---|
11206 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
11207 | hardcode_shlibpath_var_CXX=no |
---|
11208 | case $host_os in |
---|
11209 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
11210 | *) |
---|
11211 | # The C++ compiler is used as linker so we must use $wl |
---|
11212 | # flag to pass the commands to the underlying system |
---|
11213 | # linker. |
---|
11214 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
11215 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
11216 | ;; |
---|
11217 | esac |
---|
11218 | link_all_deplibs_CXX=yes |
---|
11219 | |
---|
11220 | # Commands to make compiler produce verbose output that lists |
---|
11221 | # what "hidden" libraries, object files and flags are used when |
---|
11222 | # linking a shared library. |
---|
11223 | # |
---|
11224 | # There doesn't appear to be a way to prevent this compiler from |
---|
11225 | # explicitly linking system object files so we need to strip them |
---|
11226 | # from the output so that they don't get included in the library |
---|
11227 | # dependencies. |
---|
11228 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
11229 | |
---|
11230 | # Archives containing C++ object files must be created using |
---|
11231 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
11232 | # necessary to make sure instantiated templates are included |
---|
11233 | # in the archive. |
---|
11234 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
---|
11235 | ;; |
---|
11236 | gcx) |
---|
11237 | # Green Hills C++ Compiler |
---|
11238 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
11239 | |
---|
11240 | # The C++ compiler must be used to create the archive. |
---|
11241 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
---|
11242 | ;; |
---|
11243 | *) |
---|
11244 | # GNU C++ compiler with Solaris linker |
---|
11245 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
11246 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
---|
11247 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
---|
11248 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
11249 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
11250 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
11251 | |
---|
11252 | # Commands to make compiler produce verbose output that lists |
---|
11253 | # what "hidden" libraries, object files and flags are used when |
---|
11254 | # linking a shared library. |
---|
11255 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
11256 | else |
---|
11257 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
---|
11258 | # platform. |
---|
11259 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
11260 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
11261 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
11262 | |
---|
11263 | # Commands to make compiler produce verbose output that lists |
---|
11264 | # what "hidden" libraries, object files and flags are used when |
---|
11265 | # linking a shared library. |
---|
11266 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
11267 | fi |
---|
11268 | |
---|
11269 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
---|
11270 | fi |
---|
11271 | ;; |
---|
11272 | esac |
---|
11273 | ;; |
---|
11274 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
11275 | archive_cmds_need_lc_CXX=no |
---|
11276 | ;; |
---|
11277 | tandem*) |
---|
11278 | case $cc_basename in |
---|
11279 | NCC) |
---|
11280 | # NonStop-UX NCC 3.20 |
---|
11281 | # FIXME: insert proper C++ library support |
---|
11282 | ld_shlibs_CXX=no |
---|
11283 | ;; |
---|
11284 | *) |
---|
11285 | # FIXME: insert proper C++ library support |
---|
11286 | ld_shlibs_CXX=no |
---|
11287 | ;; |
---|
11288 | esac |
---|
11289 | ;; |
---|
11290 | vxworks*) |
---|
11291 | # FIXME: insert proper C++ library support |
---|
11292 | ld_shlibs_CXX=no |
---|
11293 | ;; |
---|
11294 | *) |
---|
11295 | # FIXME: insert proper C++ library support |
---|
11296 | ld_shlibs_CXX=no |
---|
11297 | ;; |
---|
11298 | esac |
---|
11299 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
11300 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
---|
11301 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
11302 | |
---|
11303 | GCC_CXX="$GXX" |
---|
11304 | LD_CXX="$LD" |
---|
11305 | |
---|
11306 | |
---|
11307 | cat > conftest.$ac_ext <<EOF |
---|
11308 | class Foo |
---|
11309 | { |
---|
11310 | public: |
---|
11311 | Foo (void) { a = 0; } |
---|
11312 | private: |
---|
11313 | int a; |
---|
11314 | }; |
---|
11315 | EOF |
---|
11316 | |
---|
11317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
11318 | (eval $ac_compile) 2>&5 |
---|
11319 | ac_status=$? |
---|
11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11321 | (exit $ac_status); }; then |
---|
11322 | # Parse the compiler output and extract the necessary |
---|
11323 | # objects, libraries and library flags. |
---|
11324 | |
---|
11325 | # Sentinel used to keep track of whether or not we are before |
---|
11326 | # the conftest object file. |
---|
11327 | pre_test_object_deps_done=no |
---|
11328 | |
---|
11329 | # The `*' in the case matches for architectures that use `case' in |
---|
11330 | # $output_verbose_cmd can trigger glob expansion during the loop |
---|
11331 | # eval without this substitution. |
---|
11332 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
---|
11333 | |
---|
11334 | for p in `eval $output_verbose_link_cmd`; do |
---|
11335 | case $p in |
---|
11336 | |
---|
11337 | -L* | -R* | -l*) |
---|
11338 | # Some compilers place space between "-{L,R}" and the path. |
---|
11339 | # Remove the space. |
---|
11340 | if test $p = "-L" \ |
---|
11341 | || test $p = "-R"; then |
---|
11342 | prev=$p |
---|
11343 | continue |
---|
11344 | else |
---|
11345 | prev= |
---|
11346 | fi |
---|
11347 | |
---|
11348 | if test "$pre_test_object_deps_done" = no; then |
---|
11349 | case $p in |
---|
11350 | -L* | -R*) |
---|
11351 | # Internal compiler library paths should come after those |
---|
11352 | # provided the user. The postdeps already come after the |
---|
11353 | # user supplied libs so there is no need to process them. |
---|
11354 | if test -z "$compiler_lib_search_path_CXX"; then |
---|
11355 | compiler_lib_search_path_CXX="${prev}${p}" |
---|
11356 | else |
---|
11357 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
---|
11358 | fi |
---|
11359 | ;; |
---|
11360 | # The "-l" case would never come before the object being |
---|
11361 | # linked, so don't bother handling this case. |
---|
11362 | esac |
---|
11363 | else |
---|
11364 | if test -z "$postdeps_CXX"; then |
---|
11365 | postdeps_CXX="${prev}${p}" |
---|
11366 | else |
---|
11367 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
---|
11368 | fi |
---|
11369 | fi |
---|
11370 | ;; |
---|
11371 | |
---|
11372 | *.$objext) |
---|
11373 | # This assumes that the test object file only shows up |
---|
11374 | # once in the compiler output. |
---|
11375 | if test "$p" = "conftest.$objext"; then |
---|
11376 | pre_test_object_deps_done=yes |
---|
11377 | continue |
---|
11378 | fi |
---|
11379 | |
---|
11380 | if test "$pre_test_object_deps_done" = no; then |
---|
11381 | if test -z "$predep_objects_CXX"; then |
---|
11382 | predep_objects_CXX="$p" |
---|
11383 | else |
---|
11384 | predep_objects_CXX="$predep_objects_CXX $p" |
---|
11385 | fi |
---|
11386 | else |
---|
11387 | if test -z "$postdep_objects_CXX"; then |
---|
11388 | postdep_objects_CXX="$p" |
---|
11389 | else |
---|
11390 | postdep_objects_CXX="$postdep_objects_CXX $p" |
---|
11391 | fi |
---|
11392 | fi |
---|
11393 | ;; |
---|
11394 | |
---|
11395 | *) ;; # Ignore the rest. |
---|
11396 | |
---|
11397 | esac |
---|
11398 | done |
---|
11399 | |
---|
11400 | # Clean up. |
---|
11401 | rm -f a.out a.exe |
---|
11402 | else |
---|
11403 | echo "libtool.m4: error: problem compiling CXX test program" |
---|
11404 | fi |
---|
11405 | |
---|
11406 | $rm -f confest.$objext |
---|
11407 | |
---|
11408 | case " $postdeps_CXX " in |
---|
11409 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
---|
11410 | esac |
---|
11411 | |
---|
11412 | lt_prog_compiler_wl_CXX= |
---|
11413 | lt_prog_compiler_pic_CXX= |
---|
11414 | lt_prog_compiler_static_CXX= |
---|
11415 | |
---|
11416 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
11417 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
11418 | |
---|
11419 | # C++ specific cases for pic, static, wl, etc. |
---|
11420 | if test "$GXX" = yes; then |
---|
11421 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11422 | lt_prog_compiler_static_CXX='-static' |
---|
11423 | |
---|
11424 | case $host_os in |
---|
11425 | aix*) |
---|
11426 | # All AIX code is PIC. |
---|
11427 | if test "$host_cpu" = ia64; then |
---|
11428 | # AIX 5 now supports IA64 processor |
---|
11429 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
11430 | fi |
---|
11431 | ;; |
---|
11432 | amigaos*) |
---|
11433 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
11434 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
11435 | # like `-m68040'. |
---|
11436 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
---|
11437 | ;; |
---|
11438 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
11439 | # PIC is the default for these OSes. |
---|
11440 | ;; |
---|
11441 | mingw* | os2* | pw32*) |
---|
11442 | # This hack is so that the source file can tell whether it is being |
---|
11443 | # built for inclusion in a dll (and should export symbols for example). |
---|
11444 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
---|
11445 | ;; |
---|
11446 | darwin* | rhapsody*) |
---|
11447 | # PIC is the default on this platform |
---|
11448 | # Common symbols not allowed in MH_DYLIB files |
---|
11449 | lt_prog_compiler_pic_CXX='-fno-common' |
---|
11450 | ;; |
---|
11451 | *djgpp*) |
---|
11452 | # DJGPP does not support shared libraries at all |
---|
11453 | lt_prog_compiler_pic_CXX= |
---|
11454 | ;; |
---|
11455 | sysv4*MP*) |
---|
11456 | if test -d /usr/nec; then |
---|
11457 | lt_prog_compiler_pic_CXX=-Kconform_pic |
---|
11458 | fi |
---|
11459 | ;; |
---|
11460 | hpux*) |
---|
11461 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
11462 | # not for PA HP-UX. |
---|
11463 | case "$host_cpu" in |
---|
11464 | hppa*64*|ia64*) |
---|
11465 | ;; |
---|
11466 | *) |
---|
11467 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
11468 | ;; |
---|
11469 | esac |
---|
11470 | ;; |
---|
11471 | *) |
---|
11472 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
11473 | ;; |
---|
11474 | esac |
---|
11475 | else |
---|
11476 | case $host_os in |
---|
11477 | aix4* | aix5*) |
---|
11478 | # All AIX code is PIC. |
---|
11479 | if test "$host_cpu" = ia64; then |
---|
11480 | # AIX 5 now supports IA64 processor |
---|
11481 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
11482 | else |
---|
11483 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
---|
11484 | fi |
---|
11485 | ;; |
---|
11486 | chorus*) |
---|
11487 | case $cc_basename in |
---|
11488 | cxch68) |
---|
11489 | # Green Hills C++ Compiler |
---|
11490 | # _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" |
---|
11491 | ;; |
---|
11492 | esac |
---|
11493 | ;; |
---|
11494 | darwin*) |
---|
11495 | # PIC is the default on this platform |
---|
11496 | # Common symbols not allowed in MH_DYLIB files |
---|
11497 | case "$cc_basename" in |
---|
11498 | xlc*) |
---|
11499 | lt_prog_compiler_pic_CXX='-qnocommon' |
---|
11500 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11501 | ;; |
---|
11502 | esac |
---|
11503 | ;; |
---|
11504 | dgux*) |
---|
11505 | case $cc_basename in |
---|
11506 | ec++) |
---|
11507 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
11508 | ;; |
---|
11509 | ghcx) |
---|
11510 | # Green Hills C++ Compiler |
---|
11511 | lt_prog_compiler_pic_CXX='-pic' |
---|
11512 | ;; |
---|
11513 | *) |
---|
11514 | ;; |
---|
11515 | esac |
---|
11516 | ;; |
---|
11517 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
11518 | # FreeBSD uses GNU C++ |
---|
11519 | ;; |
---|
11520 | hpux9* | hpux10* | hpux11*) |
---|
11521 | case $cc_basename in |
---|
11522 | CC) |
---|
11523 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11524 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
11525 | if test "$host_cpu" != ia64; then |
---|
11526 | lt_prog_compiler_pic_CXX='+Z' |
---|
11527 | fi |
---|
11528 | ;; |
---|
11529 | aCC) |
---|
11530 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11531 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
11532 | case "$host_cpu" in |
---|
11533 | hppa*64*|ia64*) |
---|
11534 | # +Z the default |
---|
11535 | ;; |
---|
11536 | *) |
---|
11537 | lt_prog_compiler_pic_CXX='+Z' |
---|
11538 | ;; |
---|
11539 | esac |
---|
11540 | ;; |
---|
11541 | *) |
---|
11542 | ;; |
---|
11543 | esac |
---|
11544 | ;; |
---|
11545 | irix5* | irix6* | nonstopux*) |
---|
11546 | case $cc_basename in |
---|
11547 | CC) |
---|
11548 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11549 | lt_prog_compiler_static_CXX='-non_shared' |
---|
11550 | # CC pic flag -KPIC is the default. |
---|
11551 | ;; |
---|
11552 | *) |
---|
11553 | ;; |
---|
11554 | esac |
---|
11555 | ;; |
---|
11556 | linux*) |
---|
11557 | case $cc_basename in |
---|
11558 | KCC) |
---|
11559 | # KAI C++ Compiler |
---|
11560 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
11561 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
11562 | ;; |
---|
11563 | icpc* | ecpc*) |
---|
11564 | # Intel C++ |
---|
11565 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11566 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
11567 | lt_prog_compiler_static_CXX='-static' |
---|
11568 | ;; |
---|
11569 | pgCC) |
---|
11570 | # Portland Group C++ compiler. |
---|
11571 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11572 | lt_prog_compiler_pic_CXX='-fpic' |
---|
11573 | lt_prog_compiler_static_CXX='-static' |
---|
11574 | ;; |
---|
11575 | cxx) |
---|
11576 | # Compaq C++ |
---|
11577 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
11578 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
11579 | lt_prog_compiler_pic_CXX= |
---|
11580 | lt_prog_compiler_static_CXX='-non_shared' |
---|
11581 | ;; |
---|
11582 | *) |
---|
11583 | ;; |
---|
11584 | esac |
---|
11585 | ;; |
---|
11586 | lynxos*) |
---|
11587 | ;; |
---|
11588 | m88k*) |
---|
11589 | ;; |
---|
11590 | mvs*) |
---|
11591 | case $cc_basename in |
---|
11592 | cxx) |
---|
11593 | lt_prog_compiler_pic_CXX='-W c,exportall' |
---|
11594 | ;; |
---|
11595 | *) |
---|
11596 | ;; |
---|
11597 | esac |
---|
11598 | ;; |
---|
11599 | netbsd*) |
---|
11600 | ;; |
---|
11601 | osf3* | osf4* | osf5*) |
---|
11602 | case $cc_basename in |
---|
11603 | KCC) |
---|
11604 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
11605 | ;; |
---|
11606 | RCC) |
---|
11607 | # Rational C++ 2.4.1 |
---|
11608 | lt_prog_compiler_pic_CXX='-pic' |
---|
11609 | ;; |
---|
11610 | cxx) |
---|
11611 | # Digital/Compaq C++ |
---|
11612 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11613 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
11614 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
11615 | lt_prog_compiler_pic_CXX= |
---|
11616 | lt_prog_compiler_static_CXX='-non_shared' |
---|
11617 | ;; |
---|
11618 | *) |
---|
11619 | ;; |
---|
11620 | esac |
---|
11621 | ;; |
---|
11622 | psos*) |
---|
11623 | ;; |
---|
11624 | sco*) |
---|
11625 | case $cc_basename in |
---|
11626 | CC) |
---|
11627 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
11628 | ;; |
---|
11629 | *) |
---|
11630 | ;; |
---|
11631 | esac |
---|
11632 | ;; |
---|
11633 | solaris*) |
---|
11634 | case $cc_basename in |
---|
11635 | CC) |
---|
11636 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
11637 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
11638 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
11639 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
---|
11640 | ;; |
---|
11641 | gcx) |
---|
11642 | # Green Hills C++ Compiler |
---|
11643 | lt_prog_compiler_pic_CXX='-PIC' |
---|
11644 | ;; |
---|
11645 | *) |
---|
11646 | ;; |
---|
11647 | esac |
---|
11648 | ;; |
---|
11649 | sunos4*) |
---|
11650 | case $cc_basename in |
---|
11651 | CC) |
---|
11652 | # Sun C++ 4.x |
---|
11653 | lt_prog_compiler_pic_CXX='-pic' |
---|
11654 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
11655 | ;; |
---|
11656 | lcc) |
---|
11657 | # Lucid |
---|
11658 | lt_prog_compiler_pic_CXX='-pic' |
---|
11659 | ;; |
---|
11660 | *) |
---|
11661 | ;; |
---|
11662 | esac |
---|
11663 | ;; |
---|
11664 | tandem*) |
---|
11665 | case $cc_basename in |
---|
11666 | NCC) |
---|
11667 | # NonStop-UX NCC 3.20 |
---|
11668 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
11669 | ;; |
---|
11670 | *) |
---|
11671 | ;; |
---|
11672 | esac |
---|
11673 | ;; |
---|
11674 | unixware*) |
---|
11675 | ;; |
---|
11676 | vxworks*) |
---|
11677 | ;; |
---|
11678 | *) |
---|
11679 | lt_prog_compiler_can_build_shared_CXX=no |
---|
11680 | ;; |
---|
11681 | esac |
---|
11682 | fi |
---|
11683 | |
---|
11684 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
---|
11685 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
---|
11686 | |
---|
11687 | # |
---|
11688 | # Check to make sure the PIC flag actually works. |
---|
11689 | # |
---|
11690 | if test -n "$lt_prog_compiler_pic_CXX"; then |
---|
11691 | |
---|
11692 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
---|
11693 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
---|
11694 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
---|
11695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11696 | else |
---|
11697 | lt_prog_compiler_pic_works_CXX=no |
---|
11698 | ac_outfile=conftest.$ac_objext |
---|
11699 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
11700 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
---|
11701 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
11702 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
11703 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
11704 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
11705 | # The option is referenced via a variable to avoid confusing sed. |
---|
11706 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
11707 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
11708 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
11709 | -e 's:$: $lt_compiler_flag:'` |
---|
11710 | (eval echo "\"\$as_me:11710: $lt_compile\"" >&5) |
---|
11711 | (eval "$lt_compile" 2>conftest.err) |
---|
11712 | ac_status=$? |
---|
11713 | cat conftest.err >&5 |
---|
11714 | echo "$as_me:11714: \$? = $ac_status" >&5 |
---|
11715 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
11716 | # The compiler can only warn and ignore the option if not recognized |
---|
11717 | # So say no if there are warnings |
---|
11718 | if test ! -s conftest.err; then |
---|
11719 | lt_prog_compiler_pic_works_CXX=yes |
---|
11720 | fi |
---|
11721 | fi |
---|
11722 | $rm conftest* |
---|
11723 | |
---|
11724 | fi |
---|
11725 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
---|
11726 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
---|
11727 | |
---|
11728 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
---|
11729 | case $lt_prog_compiler_pic_CXX in |
---|
11730 | "" | " "*) ;; |
---|
11731 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
---|
11732 | esac |
---|
11733 | else |
---|
11734 | lt_prog_compiler_pic_CXX= |
---|
11735 | lt_prog_compiler_can_build_shared_CXX=no |
---|
11736 | fi |
---|
11737 | |
---|
11738 | fi |
---|
11739 | case "$host_os" in |
---|
11740 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
11741 | *djgpp*) |
---|
11742 | lt_prog_compiler_pic_CXX= |
---|
11743 | ;; |
---|
11744 | *) |
---|
11745 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
---|
11746 | ;; |
---|
11747 | esac |
---|
11748 | |
---|
11749 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
11750 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
11751 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
---|
11752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11753 | else |
---|
11754 | lt_cv_prog_compiler_c_o_CXX=no |
---|
11755 | $rm -r conftest 2>/dev/null |
---|
11756 | mkdir conftest |
---|
11757 | cd conftest |
---|
11758 | mkdir out |
---|
11759 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
11760 | |
---|
11761 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
11762 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
11763 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
11764 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
11765 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
11766 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
11767 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
11768 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
11769 | -e 's:$: $lt_compiler_flag:'` |
---|
11770 | (eval echo "\"\$as_me:11770: $lt_compile\"" >&5) |
---|
11771 | (eval "$lt_compile" 2>out/conftest.err) |
---|
11772 | ac_status=$? |
---|
11773 | cat out/conftest.err >&5 |
---|
11774 | echo "$as_me:11774: \$? = $ac_status" >&5 |
---|
11775 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
11776 | then |
---|
11777 | # The compiler can only warn and ignore the option if not recognized |
---|
11778 | # So say no if there are warnings |
---|
11779 | if test ! -s out/conftest.err; then |
---|
11780 | lt_cv_prog_compiler_c_o_CXX=yes |
---|
11781 | fi |
---|
11782 | fi |
---|
11783 | chmod u+w . |
---|
11784 | $rm conftest* |
---|
11785 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
11786 | # template instantiation |
---|
11787 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
11788 | $rm out/* && rmdir out |
---|
11789 | cd .. |
---|
11790 | rmdir conftest |
---|
11791 | $rm conftest* |
---|
11792 | |
---|
11793 | fi |
---|
11794 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
---|
11795 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
---|
11796 | |
---|
11797 | |
---|
11798 | hard_links="nottested" |
---|
11799 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
---|
11800 | # do not overwrite the value of need_locks provided by the user |
---|
11801 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
11802 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
11803 | hard_links=yes |
---|
11804 | $rm conftest* |
---|
11805 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
11806 | touch conftest.a |
---|
11807 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
11808 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
11809 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
11810 | echo "${ECHO_T}$hard_links" >&6 |
---|
11811 | if test "$hard_links" = no; then |
---|
11812 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
11813 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
11814 | need_locks=warn |
---|
11815 | fi |
---|
11816 | else |
---|
11817 | need_locks=no |
---|
11818 | fi |
---|
11819 | |
---|
11820 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
11821 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
11822 | |
---|
11823 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
11824 | case $host_os in |
---|
11825 | aix4* | aix5*) |
---|
11826 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
11827 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
11828 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
11829 | 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' |
---|
11830 | else |
---|
11831 | 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' |
---|
11832 | fi |
---|
11833 | ;; |
---|
11834 | pw32*) |
---|
11835 | export_symbols_cmds_CXX="$ltdll_cmds" |
---|
11836 | ;; |
---|
11837 | cygwin* | mingw*) |
---|
11838 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
11839 | ;; |
---|
11840 | *) |
---|
11841 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
11842 | ;; |
---|
11843 | esac |
---|
11844 | |
---|
11845 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
11846 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
---|
11847 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
11848 | |
---|
11849 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
11850 | if test "$GCC" = yes; then |
---|
11851 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
11852 | fi |
---|
11853 | |
---|
11854 | # |
---|
11855 | # Do we need to explicitly link libc? |
---|
11856 | # |
---|
11857 | case "x$archive_cmds_need_lc_CXX" in |
---|
11858 | x|xyes) |
---|
11859 | # Assume -lc should be added |
---|
11860 | archive_cmds_need_lc_CXX=yes |
---|
11861 | |
---|
11862 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
11863 | case $archive_cmds_CXX in |
---|
11864 | *'~'*) |
---|
11865 | # FIXME: we may have to deal with multi-command sequences. |
---|
11866 | ;; |
---|
11867 | '$CC '*) |
---|
11868 | # Test whether the compiler implicitly links with -lc since on some |
---|
11869 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
11870 | # to ld, don't add -lc before -lgcc. |
---|
11871 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
11872 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
11873 | $rm conftest* |
---|
11874 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
11875 | |
---|
11876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
11877 | (eval $ac_compile) 2>&5 |
---|
11878 | ac_status=$? |
---|
11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11880 | (exit $ac_status); } 2>conftest.err; then |
---|
11881 | soname=conftest |
---|
11882 | lib=conftest |
---|
11883 | libobjs=conftest.$ac_objext |
---|
11884 | deplibs= |
---|
11885 | wl=$lt_prog_compiler_wl_CXX |
---|
11886 | compiler_flags=-v |
---|
11887 | linker_flags=-v |
---|
11888 | verstring= |
---|
11889 | output_objdir=. |
---|
11890 | libname=conftest |
---|
11891 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
---|
11892 | allow_undefined_flag_CXX= |
---|
11893 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
11894 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
11895 | ac_status=$? |
---|
11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11897 | (exit $ac_status); } |
---|
11898 | then |
---|
11899 | archive_cmds_need_lc_CXX=no |
---|
11900 | else |
---|
11901 | archive_cmds_need_lc_CXX=yes |
---|
11902 | fi |
---|
11903 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
---|
11904 | else |
---|
11905 | cat conftest.err 1>&5 |
---|
11906 | fi |
---|
11907 | $rm conftest* |
---|
11908 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
---|
11909 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
---|
11910 | ;; |
---|
11911 | esac |
---|
11912 | fi |
---|
11913 | ;; |
---|
11914 | esac |
---|
11915 | |
---|
11916 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
11917 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
11918 | library_names_spec= |
---|
11919 | libname_spec='lib$name' |
---|
11920 | soname_spec= |
---|
11921 | shrext_cmds=".so" |
---|
11922 | postinstall_cmds= |
---|
11923 | postuninstall_cmds= |
---|
11924 | finish_cmds= |
---|
11925 | finish_eval= |
---|
11926 | shlibpath_var= |
---|
11927 | shlibpath_overrides_runpath=unknown |
---|
11928 | version_type=none |
---|
11929 | dynamic_linker="$host_os ld.so" |
---|
11930 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
11931 | if test "$GCC" = yes; then |
---|
11932 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
11933 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
11934 | # if the path contains ";" then we assume it to be the separator |
---|
11935 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
11936 | # assumed that no part of a normal pathname contains ";" but that should |
---|
11937 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
11938 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
11939 | else |
---|
11940 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
11941 | fi |
---|
11942 | else |
---|
11943 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
11944 | fi |
---|
11945 | need_lib_prefix=unknown |
---|
11946 | hardcode_into_libs=no |
---|
11947 | |
---|
11948 | # when you set need_version to no, make sure it does not cause -set_version |
---|
11949 | # flags to be left without arguments |
---|
11950 | need_version=unknown |
---|
11951 | |
---|
11952 | case $host_os in |
---|
11953 | aix3*) |
---|
11954 | version_type=linux |
---|
11955 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
11956 | shlibpath_var=LIBPATH |
---|
11957 | |
---|
11958 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
11959 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11960 | ;; |
---|
11961 | |
---|
11962 | aix4* | aix5*) |
---|
11963 | version_type=linux |
---|
11964 | need_lib_prefix=no |
---|
11965 | need_version=no |
---|
11966 | hardcode_into_libs=yes |
---|
11967 | if test "$host_cpu" = ia64; then |
---|
11968 | # AIX 5 supports IA64 |
---|
11969 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
11970 | shlibpath_var=LD_LIBRARY_PATH |
---|
11971 | else |
---|
11972 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
11973 | # for dependence libraries. The import file would start with |
---|
11974 | # the line `#! .'. This would cause the generated library to |
---|
11975 | # depend on `.', always an invalid library. This was fixed in |
---|
11976 | # development snapshots of GCC prior to 3.0. |
---|
11977 | case $host_os in |
---|
11978 | aix4 | aix4.[01] | aix4.[01].*) |
---|
11979 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
11980 | echo ' yes ' |
---|
11981 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
11982 | : |
---|
11983 | else |
---|
11984 | can_build_shared=no |
---|
11985 | fi |
---|
11986 | ;; |
---|
11987 | esac |
---|
11988 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
11989 | # soname into executable. Probably we can add versioning support to |
---|
11990 | # collect2, so additional links can be useful in future. |
---|
11991 | if test "$aix_use_runtimelinking" = yes; then |
---|
11992 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
11993 | # instead of lib<name>.a to let people know that these are not |
---|
11994 | # typical AIX shared libraries. |
---|
11995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11996 | else |
---|
11997 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
11998 | # and later when we are not doing run time linking. |
---|
11999 | library_names_spec='${libname}${release}.a $libname.a' |
---|
12000 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12001 | fi |
---|
12002 | shlibpath_var=LIBPATH |
---|
12003 | fi |
---|
12004 | ;; |
---|
12005 | |
---|
12006 | amigaos*) |
---|
12007 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
12008 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
12009 | 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' |
---|
12010 | ;; |
---|
12011 | |
---|
12012 | beos*) |
---|
12013 | library_names_spec='${libname}${shared_ext}' |
---|
12014 | dynamic_linker="$host_os ld.so" |
---|
12015 | shlibpath_var=LIBRARY_PATH |
---|
12016 | ;; |
---|
12017 | |
---|
12018 | bsdi[45]*) |
---|
12019 | version_type=linux |
---|
12020 | need_version=no |
---|
12021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12022 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12023 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
12024 | shlibpath_var=LD_LIBRARY_PATH |
---|
12025 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
12026 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
12027 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
12028 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
12029 | # libtool to hard-code these into programs |
---|
12030 | ;; |
---|
12031 | |
---|
12032 | cygwin* | mingw* | pw32*) |
---|
12033 | version_type=windows |
---|
12034 | shrext_cmds=".dll" |
---|
12035 | need_version=no |
---|
12036 | need_lib_prefix=no |
---|
12037 | |
---|
12038 | case $GCC,$host_os in |
---|
12039 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
12040 | library_names_spec='$libname.dll.a' |
---|
12041 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
12042 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
12043 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
12044 | dldir=$destdir/`dirname \$dlpath`~ |
---|
12045 | test -d \$dldir || mkdir -p \$dldir~ |
---|
12046 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
12047 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
12048 | dlpath=$dir/\$dldll~ |
---|
12049 | $rm \$dlpath' |
---|
12050 | shlibpath_overrides_runpath=yes |
---|
12051 | |
---|
12052 | case $host_os in |
---|
12053 | cygwin*) |
---|
12054 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
12055 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
12056 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
12057 | ;; |
---|
12058 | mingw*) |
---|
12059 | # MinGW DLLs use traditional 'lib' prefix |
---|
12060 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
12061 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
12062 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
12063 | # It is most probably a Windows format PATH printed by |
---|
12064 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
12065 | # path with ; separators, and with drive letters. We can handle the |
---|
12066 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
12067 | # especially as we might pass files found there to a mingw objdump, |
---|
12068 | # which wouldn't understand a cygwinified path. Ahh. |
---|
12069 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
12070 | else |
---|
12071 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
12072 | fi |
---|
12073 | ;; |
---|
12074 | pw32*) |
---|
12075 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
12076 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
12077 | ;; |
---|
12078 | esac |
---|
12079 | ;; |
---|
12080 | |
---|
12081 | *) |
---|
12082 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
12083 | ;; |
---|
12084 | esac |
---|
12085 | dynamic_linker='Win32 ld.exe' |
---|
12086 | # FIXME: first we should search . and the directory the executable is in |
---|
12087 | shlibpath_var=PATH |
---|
12088 | ;; |
---|
12089 | |
---|
12090 | darwin* | rhapsody*) |
---|
12091 | dynamic_linker="$host_os dyld" |
---|
12092 | version_type=darwin |
---|
12093 | need_lib_prefix=no |
---|
12094 | need_version=no |
---|
12095 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
12096 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
12097 | shlibpath_overrides_runpath=yes |
---|
12098 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
12099 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
12100 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
12101 | if test "$GCC" = yes; then |
---|
12102 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
12103 | else |
---|
12104 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
12105 | fi |
---|
12106 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
12107 | ;; |
---|
12108 | |
---|
12109 | dgux*) |
---|
12110 | version_type=linux |
---|
12111 | need_lib_prefix=no |
---|
12112 | need_version=no |
---|
12113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
12114 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12115 | shlibpath_var=LD_LIBRARY_PATH |
---|
12116 | ;; |
---|
12117 | |
---|
12118 | freebsd1*) |
---|
12119 | dynamic_linker=no |
---|
12120 | ;; |
---|
12121 | |
---|
12122 | kfreebsd*-gnu) |
---|
12123 | version_type=linux |
---|
12124 | need_lib_prefix=no |
---|
12125 | need_version=no |
---|
12126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
12127 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12128 | shlibpath_var=LD_LIBRARY_PATH |
---|
12129 | shlibpath_overrides_runpath=no |
---|
12130 | hardcode_into_libs=yes |
---|
12131 | dynamic_linker='GNU ld.so' |
---|
12132 | ;; |
---|
12133 | |
---|
12134 | freebsd* | dragonfly*) |
---|
12135 | # DragonFly does not have aout. When/if they implement a new |
---|
12136 | # versioning mechanism, adjust this. |
---|
12137 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
12138 | version_type=freebsd-$objformat |
---|
12139 | case $version_type in |
---|
12140 | freebsd-elf*) |
---|
12141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
12142 | need_version=no |
---|
12143 | need_lib_prefix=no |
---|
12144 | ;; |
---|
12145 | freebsd-*) |
---|
12146 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
12147 | need_version=yes |
---|
12148 | ;; |
---|
12149 | esac |
---|
12150 | shlibpath_var=LD_LIBRARY_PATH |
---|
12151 | case $host_os in |
---|
12152 | freebsd2*) |
---|
12153 | shlibpath_overrides_runpath=yes |
---|
12154 | ;; |
---|
12155 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
12156 | shlibpath_overrides_runpath=yes |
---|
12157 | hardcode_into_libs=yes |
---|
12158 | ;; |
---|
12159 | *) # from 3.2 on |
---|
12160 | shlibpath_overrides_runpath=no |
---|
12161 | hardcode_into_libs=yes |
---|
12162 | ;; |
---|
12163 | esac |
---|
12164 | ;; |
---|
12165 | |
---|
12166 | gnu*) |
---|
12167 | version_type=linux |
---|
12168 | need_lib_prefix=no |
---|
12169 | need_version=no |
---|
12170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
12171 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12172 | shlibpath_var=LD_LIBRARY_PATH |
---|
12173 | hardcode_into_libs=yes |
---|
12174 | ;; |
---|
12175 | |
---|
12176 | hpux9* | hpux10* | hpux11*) |
---|
12177 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
12178 | # link against other versions. |
---|
12179 | version_type=sunos |
---|
12180 | need_lib_prefix=no |
---|
12181 | need_version=no |
---|
12182 | case "$host_cpu" in |
---|
12183 | ia64*) |
---|
12184 | shrext_cmds='.so' |
---|
12185 | hardcode_into_libs=yes |
---|
12186 | dynamic_linker="$host_os dld.so" |
---|
12187 | shlibpath_var=LD_LIBRARY_PATH |
---|
12188 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
12189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12190 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12191 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
12192 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
12193 | else |
---|
12194 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
12195 | fi |
---|
12196 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
12197 | ;; |
---|
12198 | hppa*64*) |
---|
12199 | shrext_cmds='.sl' |
---|
12200 | hardcode_into_libs=yes |
---|
12201 | dynamic_linker="$host_os dld.sl" |
---|
12202 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
12203 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
12204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12205 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12206 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
12207 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
12208 | ;; |
---|
12209 | *) |
---|
12210 | shrext_cmds='.sl' |
---|
12211 | dynamic_linker="$host_os dld.sl" |
---|
12212 | shlibpath_var=SHLIB_PATH |
---|
12213 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
12214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12215 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12216 | ;; |
---|
12217 | esac |
---|
12218 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
12219 | postinstall_cmds='chmod 555 $lib' |
---|
12220 | ;; |
---|
12221 | |
---|
12222 | irix5* | irix6* | nonstopux*) |
---|
12223 | case $host_os in |
---|
12224 | nonstopux*) version_type=nonstopux ;; |
---|
12225 | *) |
---|
12226 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
12227 | version_type=linux |
---|
12228 | else |
---|
12229 | version_type=irix |
---|
12230 | fi ;; |
---|
12231 | esac |
---|
12232 | need_lib_prefix=no |
---|
12233 | need_version=no |
---|
12234 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
12236 | case $host_os in |
---|
12237 | irix5* | nonstopux*) |
---|
12238 | libsuff= shlibsuff= |
---|
12239 | ;; |
---|
12240 | *) |
---|
12241 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
12242 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
12243 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
12244 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
12245 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
12246 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
12247 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
12248 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
12249 | esac |
---|
12250 | ;; |
---|
12251 | esac |
---|
12252 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
12253 | shlibpath_overrides_runpath=no |
---|
12254 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
12255 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
12256 | hardcode_into_libs=yes |
---|
12257 | ;; |
---|
12258 | |
---|
12259 | # No shared lib support for Linux oldld, aout, or coff. |
---|
12260 | linux*oldld* | linux*aout* | linux*coff*) |
---|
12261 | dynamic_linker=no |
---|
12262 | ;; |
---|
12263 | |
---|
12264 | # This must be Linux ELF. |
---|
12265 | linux*) |
---|
12266 | version_type=linux |
---|
12267 | need_lib_prefix=no |
---|
12268 | need_version=no |
---|
12269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12270 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12271 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
12272 | shlibpath_var=LD_LIBRARY_PATH |
---|
12273 | shlibpath_overrides_runpath=no |
---|
12274 | # This implies no fast_install, which is unacceptable. |
---|
12275 | # Some rework will be needed to allow for fast_install |
---|
12276 | # before this can be enabled. |
---|
12277 | hardcode_into_libs=yes |
---|
12278 | |
---|
12279 | # Append ld.so.conf contents to the search path |
---|
12280 | if test -f /etc/ld.so.conf; then |
---|
12281 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
12282 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
12283 | fi |
---|
12284 | |
---|
12285 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
12286 | # powerpc, because MkLinux only supported shared libraries with the |
---|
12287 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
12288 | # most powerpc-linux boxes support dynamic linking these days and |
---|
12289 | # people can always --disable-shared, the test was removed, and we |
---|
12290 | # assume the GNU/Linux dynamic linker is in use. |
---|
12291 | dynamic_linker='GNU/Linux ld.so' |
---|
12292 | ;; |
---|
12293 | |
---|
12294 | knetbsd*-gnu) |
---|
12295 | version_type=linux |
---|
12296 | need_lib_prefix=no |
---|
12297 | need_version=no |
---|
12298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
12299 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12300 | shlibpath_var=LD_LIBRARY_PATH |
---|
12301 | shlibpath_overrides_runpath=no |
---|
12302 | hardcode_into_libs=yes |
---|
12303 | dynamic_linker='GNU ld.so' |
---|
12304 | ;; |
---|
12305 | |
---|
12306 | netbsd*) |
---|
12307 | version_type=sunos |
---|
12308 | need_lib_prefix=no |
---|
12309 | need_version=no |
---|
12310 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
12311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
12312 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
12313 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
12314 | else |
---|
12315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
12316 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12317 | dynamic_linker='NetBSD ld.elf_so' |
---|
12318 | fi |
---|
12319 | shlibpath_var=LD_LIBRARY_PATH |
---|
12320 | shlibpath_overrides_runpath=yes |
---|
12321 | hardcode_into_libs=yes |
---|
12322 | ;; |
---|
12323 | |
---|
12324 | newsos6) |
---|
12325 | version_type=linux |
---|
12326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12327 | shlibpath_var=LD_LIBRARY_PATH |
---|
12328 | shlibpath_overrides_runpath=yes |
---|
12329 | ;; |
---|
12330 | |
---|
12331 | nto-qnx*) |
---|
12332 | version_type=linux |
---|
12333 | need_lib_prefix=no |
---|
12334 | need_version=no |
---|
12335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12336 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12337 | shlibpath_var=LD_LIBRARY_PATH |
---|
12338 | shlibpath_overrides_runpath=yes |
---|
12339 | ;; |
---|
12340 | |
---|
12341 | openbsd*) |
---|
12342 | version_type=sunos |
---|
12343 | need_lib_prefix=no |
---|
12344 | need_version=no |
---|
12345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
12346 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
12347 | shlibpath_var=LD_LIBRARY_PATH |
---|
12348 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
12349 | case $host_os in |
---|
12350 | openbsd2.[89] | openbsd2.[89].*) |
---|
12351 | shlibpath_overrides_runpath=no |
---|
12352 | ;; |
---|
12353 | *) |
---|
12354 | shlibpath_overrides_runpath=yes |
---|
12355 | ;; |
---|
12356 | esac |
---|
12357 | else |
---|
12358 | shlibpath_overrides_runpath=yes |
---|
12359 | fi |
---|
12360 | ;; |
---|
12361 | |
---|
12362 | os2*) |
---|
12363 | libname_spec='$name' |
---|
12364 | shrext_cmds=".dll" |
---|
12365 | need_lib_prefix=no |
---|
12366 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
12367 | dynamic_linker='OS/2 ld.exe' |
---|
12368 | shlibpath_var=LIBPATH |
---|
12369 | ;; |
---|
12370 | |
---|
12371 | osf3* | osf4* | osf5*) |
---|
12372 | version_type=osf |
---|
12373 | need_lib_prefix=no |
---|
12374 | need_version=no |
---|
12375 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12377 | shlibpath_var=LD_LIBRARY_PATH |
---|
12378 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
12379 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
12380 | ;; |
---|
12381 | |
---|
12382 | sco3.2v5*) |
---|
12383 | version_type=osf |
---|
12384 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12386 | shlibpath_var=LD_LIBRARY_PATH |
---|
12387 | ;; |
---|
12388 | |
---|
12389 | solaris*) |
---|
12390 | version_type=linux |
---|
12391 | need_lib_prefix=no |
---|
12392 | need_version=no |
---|
12393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12394 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12395 | shlibpath_var=LD_LIBRARY_PATH |
---|
12396 | shlibpath_overrides_runpath=yes |
---|
12397 | hardcode_into_libs=yes |
---|
12398 | # ldd complains unless libraries are executable |
---|
12399 | postinstall_cmds='chmod +x $lib' |
---|
12400 | ;; |
---|
12401 | |
---|
12402 | sunos4*) |
---|
12403 | version_type=sunos |
---|
12404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
12405 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
12406 | shlibpath_var=LD_LIBRARY_PATH |
---|
12407 | shlibpath_overrides_runpath=yes |
---|
12408 | if test "$with_gnu_ld" = yes; then |
---|
12409 | need_lib_prefix=no |
---|
12410 | fi |
---|
12411 | need_version=yes |
---|
12412 | ;; |
---|
12413 | |
---|
12414 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
12415 | version_type=linux |
---|
12416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12417 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12418 | shlibpath_var=LD_LIBRARY_PATH |
---|
12419 | case $host_vendor in |
---|
12420 | sni) |
---|
12421 | shlibpath_overrides_runpath=no |
---|
12422 | need_lib_prefix=no |
---|
12423 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
12424 | runpath_var=LD_RUN_PATH |
---|
12425 | ;; |
---|
12426 | siemens) |
---|
12427 | need_lib_prefix=no |
---|
12428 | ;; |
---|
12429 | motorola) |
---|
12430 | need_lib_prefix=no |
---|
12431 | need_version=no |
---|
12432 | shlibpath_overrides_runpath=no |
---|
12433 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
12434 | ;; |
---|
12435 | esac |
---|
12436 | ;; |
---|
12437 | |
---|
12438 | sysv4*MP*) |
---|
12439 | if test -d /usr/nec ;then |
---|
12440 | version_type=linux |
---|
12441 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
12442 | soname_spec='$libname${shared_ext}.$major' |
---|
12443 | shlibpath_var=LD_LIBRARY_PATH |
---|
12444 | fi |
---|
12445 | ;; |
---|
12446 | |
---|
12447 | uts4*) |
---|
12448 | version_type=linux |
---|
12449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12450 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12451 | shlibpath_var=LD_LIBRARY_PATH |
---|
12452 | ;; |
---|
12453 | |
---|
12454 | *) |
---|
12455 | dynamic_linker=no |
---|
12456 | ;; |
---|
12457 | esac |
---|
12458 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
12459 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
12460 | test "$dynamic_linker" = no && can_build_shared=no |
---|
12461 | |
---|
12462 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
12463 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
12464 | hardcode_action_CXX= |
---|
12465 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
---|
12466 | test -n "$runpath_var_CXX" || \ |
---|
12467 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
---|
12468 | |
---|
12469 | # We can hardcode non-existant directories. |
---|
12470 | if test "$hardcode_direct_CXX" != no && |
---|
12471 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
12472 | # have to relink, otherwise we might link with an installed library |
---|
12473 | # when we should be linking with a yet-to-be-installed one |
---|
12474 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
---|
12475 | test "$hardcode_minus_L_CXX" != no; then |
---|
12476 | # Linking always hardcodes the temporary library directory. |
---|
12477 | hardcode_action_CXX=relink |
---|
12478 | else |
---|
12479 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
12480 | hardcode_action_CXX=immediate |
---|
12481 | fi |
---|
12482 | else |
---|
12483 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
12484 | # directories. |
---|
12485 | hardcode_action_CXX=unsupported |
---|
12486 | fi |
---|
12487 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
---|
12488 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
---|
12489 | |
---|
12490 | if test "$hardcode_action_CXX" = relink; then |
---|
12491 | # Fast installation is not supported |
---|
12492 | enable_fast_install=no |
---|
12493 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
12494 | test "$enable_shared" = no; then |
---|
12495 | # Fast installation is not necessary |
---|
12496 | enable_fast_install=needless |
---|
12497 | fi |
---|
12498 | |
---|
12499 | striplib= |
---|
12500 | old_striplib= |
---|
12501 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
12502 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
12503 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
12504 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
12505 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
12506 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
12507 | echo "${ECHO_T}yes" >&6 |
---|
12508 | else |
---|
12509 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
12510 | case $host_os in |
---|
12511 | darwin*) |
---|
12512 | if test -n "$STRIP" ; then |
---|
12513 | striplib="$STRIP -x" |
---|
12514 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
12515 | echo "${ECHO_T}yes" >&6 |
---|
12516 | else |
---|
12517 | echo "$as_me:$LINENO: result: no" >&5 |
---|
12518 | echo "${ECHO_T}no" >&6 |
---|
12519 | fi |
---|
12520 | ;; |
---|
12521 | *) |
---|
12522 | echo "$as_me:$LINENO: result: no" >&5 |
---|
12523 | echo "${ECHO_T}no" >&6 |
---|
12524 | ;; |
---|
12525 | esac |
---|
12526 | fi |
---|
12527 | |
---|
12528 | if test "x$enable_dlopen" != xyes; then |
---|
12529 | enable_dlopen=unknown |
---|
12530 | enable_dlopen_self=unknown |
---|
12531 | enable_dlopen_self_static=unknown |
---|
12532 | else |
---|
12533 | lt_cv_dlopen=no |
---|
12534 | lt_cv_dlopen_libs= |
---|
12535 | |
---|
12536 | case $host_os in |
---|
12537 | beos*) |
---|
12538 | lt_cv_dlopen="load_add_on" |
---|
12539 | lt_cv_dlopen_libs= |
---|
12540 | lt_cv_dlopen_self=yes |
---|
12541 | ;; |
---|
12542 | |
---|
12543 | mingw* | pw32*) |
---|
12544 | lt_cv_dlopen="LoadLibrary" |
---|
12545 | lt_cv_dlopen_libs= |
---|
12546 | ;; |
---|
12547 | |
---|
12548 | cygwin*) |
---|
12549 | lt_cv_dlopen="dlopen" |
---|
12550 | lt_cv_dlopen_libs= |
---|
12551 | ;; |
---|
12552 | |
---|
12553 | darwin*) |
---|
12554 | # if libdl is installed we need to link against it |
---|
12555 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
12556 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
12557 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
12558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12559 | else |
---|
12560 | ac_check_lib_save_LIBS=$LIBS |
---|
12561 | LIBS="-ldl $LIBS" |
---|
12562 | cat >conftest.$ac_ext <<_ACEOF |
---|
12563 | /* confdefs.h. */ |
---|
12564 | _ACEOF |
---|
12565 | cat confdefs.h >>conftest.$ac_ext |
---|
12566 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12567 | /* end confdefs.h. */ |
---|
12568 | |
---|
12569 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12570 | #ifdef __cplusplus |
---|
12571 | extern "C" |
---|
12572 | #endif |
---|
12573 | /* We use char because int might match the return type of a gcc2 |
---|
12574 | builtin and then its argument prototype would still apply. */ |
---|
12575 | char dlopen (); |
---|
12576 | int |
---|
12577 | main () |
---|
12578 | { |
---|
12579 | dlopen (); |
---|
12580 | ; |
---|
12581 | return 0; |
---|
12582 | } |
---|
12583 | _ACEOF |
---|
12584 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12586 | (eval $ac_link) 2>conftest.er1 |
---|
12587 | ac_status=$? |
---|
12588 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12589 | rm -f conftest.er1 |
---|
12590 | cat conftest.err >&5 |
---|
12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12592 | (exit $ac_status); } && |
---|
12593 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
12594 | || test ! -s conftest.err' |
---|
12595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12596 | (eval $ac_try) 2>&5 |
---|
12597 | ac_status=$? |
---|
12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12599 | (exit $ac_status); }; } && |
---|
12600 | { ac_try='test -s conftest$ac_exeext' |
---|
12601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12602 | (eval $ac_try) 2>&5 |
---|
12603 | ac_status=$? |
---|
12604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12605 | (exit $ac_status); }; }; then |
---|
12606 | ac_cv_lib_dl_dlopen=yes |
---|
12607 | else |
---|
12608 | echo "$as_me: failed program was:" >&5 |
---|
12609 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12610 | |
---|
12611 | ac_cv_lib_dl_dlopen=no |
---|
12612 | fi |
---|
12613 | rm -f conftest.err conftest.$ac_objext \ |
---|
12614 | conftest$ac_exeext conftest.$ac_ext |
---|
12615 | LIBS=$ac_check_lib_save_LIBS |
---|
12616 | fi |
---|
12617 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
12618 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
12619 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
12620 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
12621 | else |
---|
12622 | |
---|
12623 | lt_cv_dlopen="dyld" |
---|
12624 | lt_cv_dlopen_libs= |
---|
12625 | lt_cv_dlopen_self=yes |
---|
12626 | |
---|
12627 | fi |
---|
12628 | |
---|
12629 | ;; |
---|
12630 | |
---|
12631 | *) |
---|
12632 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
12633 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
12634 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
12635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12636 | else |
---|
12637 | cat >conftest.$ac_ext <<_ACEOF |
---|
12638 | /* confdefs.h. */ |
---|
12639 | _ACEOF |
---|
12640 | cat confdefs.h >>conftest.$ac_ext |
---|
12641 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12642 | /* end confdefs.h. */ |
---|
12643 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
12644 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
12645 | #define shl_load innocuous_shl_load |
---|
12646 | |
---|
12647 | /* System header to define __stub macros and hopefully few prototypes, |
---|
12648 | which can conflict with char shl_load (); below. |
---|
12649 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
12650 | <limits.h> exists even on freestanding compilers. */ |
---|
12651 | |
---|
12652 | #ifdef __STDC__ |
---|
12653 | # include <limits.h> |
---|
12654 | #else |
---|
12655 | # include <assert.h> |
---|
12656 | #endif |
---|
12657 | |
---|
12658 | #undef shl_load |
---|
12659 | |
---|
12660 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12661 | #ifdef __cplusplus |
---|
12662 | extern "C" |
---|
12663 | { |
---|
12664 | #endif |
---|
12665 | /* We use char because int might match the return type of a gcc2 |
---|
12666 | builtin and then its argument prototype would still apply. */ |
---|
12667 | char shl_load (); |
---|
12668 | /* The GNU C library defines this for functions which it implements |
---|
12669 | to always fail with ENOSYS. Some functions are actually named |
---|
12670 | something starting with __ and the normal name is an alias. */ |
---|
12671 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
12672 | choke me |
---|
12673 | #else |
---|
12674 | char (*f) () = shl_load; |
---|
12675 | #endif |
---|
12676 | #ifdef __cplusplus |
---|
12677 | } |
---|
12678 | #endif |
---|
12679 | |
---|
12680 | int |
---|
12681 | main () |
---|
12682 | { |
---|
12683 | return f != shl_load; |
---|
12684 | ; |
---|
12685 | return 0; |
---|
12686 | } |
---|
12687 | _ACEOF |
---|
12688 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12690 | (eval $ac_link) 2>conftest.er1 |
---|
12691 | ac_status=$? |
---|
12692 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12693 | rm -f conftest.er1 |
---|
12694 | cat conftest.err >&5 |
---|
12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12696 | (exit $ac_status); } && |
---|
12697 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
12698 | || test ! -s conftest.err' |
---|
12699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12700 | (eval $ac_try) 2>&5 |
---|
12701 | ac_status=$? |
---|
12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12703 | (exit $ac_status); }; } && |
---|
12704 | { ac_try='test -s conftest$ac_exeext' |
---|
12705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12706 | (eval $ac_try) 2>&5 |
---|
12707 | ac_status=$? |
---|
12708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12709 | (exit $ac_status); }; }; then |
---|
12710 | ac_cv_func_shl_load=yes |
---|
12711 | else |
---|
12712 | echo "$as_me: failed program was:" >&5 |
---|
12713 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12714 | |
---|
12715 | ac_cv_func_shl_load=no |
---|
12716 | fi |
---|
12717 | rm -f conftest.err conftest.$ac_objext \ |
---|
12718 | conftest$ac_exeext conftest.$ac_ext |
---|
12719 | fi |
---|
12720 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
12721 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
12722 | if test $ac_cv_func_shl_load = yes; then |
---|
12723 | lt_cv_dlopen="shl_load" |
---|
12724 | else |
---|
12725 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
12726 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
12727 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
12728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12729 | else |
---|
12730 | ac_check_lib_save_LIBS=$LIBS |
---|
12731 | LIBS="-ldld $LIBS" |
---|
12732 | cat >conftest.$ac_ext <<_ACEOF |
---|
12733 | /* confdefs.h. */ |
---|
12734 | _ACEOF |
---|
12735 | cat confdefs.h >>conftest.$ac_ext |
---|
12736 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12737 | /* end confdefs.h. */ |
---|
12738 | |
---|
12739 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12740 | #ifdef __cplusplus |
---|
12741 | extern "C" |
---|
12742 | #endif |
---|
12743 | /* We use char because int might match the return type of a gcc2 |
---|
12744 | builtin and then its argument prototype would still apply. */ |
---|
12745 | char shl_load (); |
---|
12746 | int |
---|
12747 | main () |
---|
12748 | { |
---|
12749 | shl_load (); |
---|
12750 | ; |
---|
12751 | return 0; |
---|
12752 | } |
---|
12753 | _ACEOF |
---|
12754 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12756 | (eval $ac_link) 2>conftest.er1 |
---|
12757 | ac_status=$? |
---|
12758 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12759 | rm -f conftest.er1 |
---|
12760 | cat conftest.err >&5 |
---|
12761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12762 | (exit $ac_status); } && |
---|
12763 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
12764 | || test ! -s conftest.err' |
---|
12765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12766 | (eval $ac_try) 2>&5 |
---|
12767 | ac_status=$? |
---|
12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12769 | (exit $ac_status); }; } && |
---|
12770 | { ac_try='test -s conftest$ac_exeext' |
---|
12771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12772 | (eval $ac_try) 2>&5 |
---|
12773 | ac_status=$? |
---|
12774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12775 | (exit $ac_status); }; }; then |
---|
12776 | ac_cv_lib_dld_shl_load=yes |
---|
12777 | else |
---|
12778 | echo "$as_me: failed program was:" >&5 |
---|
12779 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12780 | |
---|
12781 | ac_cv_lib_dld_shl_load=no |
---|
12782 | fi |
---|
12783 | rm -f conftest.err conftest.$ac_objext \ |
---|
12784 | conftest$ac_exeext conftest.$ac_ext |
---|
12785 | LIBS=$ac_check_lib_save_LIBS |
---|
12786 | fi |
---|
12787 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
12788 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
12789 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
12790 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
12791 | else |
---|
12792 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
12793 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
12794 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
12795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12796 | else |
---|
12797 | cat >conftest.$ac_ext <<_ACEOF |
---|
12798 | /* confdefs.h. */ |
---|
12799 | _ACEOF |
---|
12800 | cat confdefs.h >>conftest.$ac_ext |
---|
12801 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12802 | /* end confdefs.h. */ |
---|
12803 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
12804 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
12805 | #define dlopen innocuous_dlopen |
---|
12806 | |
---|
12807 | /* System header to define __stub macros and hopefully few prototypes, |
---|
12808 | which can conflict with char dlopen (); below. |
---|
12809 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
12810 | <limits.h> exists even on freestanding compilers. */ |
---|
12811 | |
---|
12812 | #ifdef __STDC__ |
---|
12813 | # include <limits.h> |
---|
12814 | #else |
---|
12815 | # include <assert.h> |
---|
12816 | #endif |
---|
12817 | |
---|
12818 | #undef dlopen |
---|
12819 | |
---|
12820 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12821 | #ifdef __cplusplus |
---|
12822 | extern "C" |
---|
12823 | { |
---|
12824 | #endif |
---|
12825 | /* We use char because int might match the return type of a gcc2 |
---|
12826 | builtin and then its argument prototype would still apply. */ |
---|
12827 | char dlopen (); |
---|
12828 | /* The GNU C library defines this for functions which it implements |
---|
12829 | to always fail with ENOSYS. Some functions are actually named |
---|
12830 | something starting with __ and the normal name is an alias. */ |
---|
12831 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
12832 | choke me |
---|
12833 | #else |
---|
12834 | char (*f) () = dlopen; |
---|
12835 | #endif |
---|
12836 | #ifdef __cplusplus |
---|
12837 | } |
---|
12838 | #endif |
---|
12839 | |
---|
12840 | int |
---|
12841 | main () |
---|
12842 | { |
---|
12843 | return f != dlopen; |
---|
12844 | ; |
---|
12845 | return 0; |
---|
12846 | } |
---|
12847 | _ACEOF |
---|
12848 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12850 | (eval $ac_link) 2>conftest.er1 |
---|
12851 | ac_status=$? |
---|
12852 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12853 | rm -f conftest.er1 |
---|
12854 | cat conftest.err >&5 |
---|
12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12856 | (exit $ac_status); } && |
---|
12857 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
12858 | || test ! -s conftest.err' |
---|
12859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12860 | (eval $ac_try) 2>&5 |
---|
12861 | ac_status=$? |
---|
12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12863 | (exit $ac_status); }; } && |
---|
12864 | { ac_try='test -s conftest$ac_exeext' |
---|
12865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12866 | (eval $ac_try) 2>&5 |
---|
12867 | ac_status=$? |
---|
12868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12869 | (exit $ac_status); }; }; then |
---|
12870 | ac_cv_func_dlopen=yes |
---|
12871 | else |
---|
12872 | echo "$as_me: failed program was:" >&5 |
---|
12873 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12874 | |
---|
12875 | ac_cv_func_dlopen=no |
---|
12876 | fi |
---|
12877 | rm -f conftest.err conftest.$ac_objext \ |
---|
12878 | conftest$ac_exeext conftest.$ac_ext |
---|
12879 | fi |
---|
12880 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
12881 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
12882 | if test $ac_cv_func_dlopen = yes; then |
---|
12883 | lt_cv_dlopen="dlopen" |
---|
12884 | else |
---|
12885 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
12886 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
12887 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
12888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12889 | else |
---|
12890 | ac_check_lib_save_LIBS=$LIBS |
---|
12891 | LIBS="-ldl $LIBS" |
---|
12892 | cat >conftest.$ac_ext <<_ACEOF |
---|
12893 | /* confdefs.h. */ |
---|
12894 | _ACEOF |
---|
12895 | cat confdefs.h >>conftest.$ac_ext |
---|
12896 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12897 | /* end confdefs.h. */ |
---|
12898 | |
---|
12899 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12900 | #ifdef __cplusplus |
---|
12901 | extern "C" |
---|
12902 | #endif |
---|
12903 | /* We use char because int might match the return type of a gcc2 |
---|
12904 | builtin and then its argument prototype would still apply. */ |
---|
12905 | char dlopen (); |
---|
12906 | int |
---|
12907 | main () |
---|
12908 | { |
---|
12909 | dlopen (); |
---|
12910 | ; |
---|
12911 | return 0; |
---|
12912 | } |
---|
12913 | _ACEOF |
---|
12914 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12916 | (eval $ac_link) 2>conftest.er1 |
---|
12917 | ac_status=$? |
---|
12918 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12919 | rm -f conftest.er1 |
---|
12920 | cat conftest.err >&5 |
---|
12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12922 | (exit $ac_status); } && |
---|
12923 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
12924 | || test ! -s conftest.err' |
---|
12925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12926 | (eval $ac_try) 2>&5 |
---|
12927 | ac_status=$? |
---|
12928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12929 | (exit $ac_status); }; } && |
---|
12930 | { ac_try='test -s conftest$ac_exeext' |
---|
12931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12932 | (eval $ac_try) 2>&5 |
---|
12933 | ac_status=$? |
---|
12934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12935 | (exit $ac_status); }; }; then |
---|
12936 | ac_cv_lib_dl_dlopen=yes |
---|
12937 | else |
---|
12938 | echo "$as_me: failed program was:" >&5 |
---|
12939 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12940 | |
---|
12941 | ac_cv_lib_dl_dlopen=no |
---|
12942 | fi |
---|
12943 | rm -f conftest.err conftest.$ac_objext \ |
---|
12944 | conftest$ac_exeext conftest.$ac_ext |
---|
12945 | LIBS=$ac_check_lib_save_LIBS |
---|
12946 | fi |
---|
12947 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
12948 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
12949 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
12950 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
12951 | else |
---|
12952 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
12953 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
12954 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
12955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12956 | else |
---|
12957 | ac_check_lib_save_LIBS=$LIBS |
---|
12958 | LIBS="-lsvld $LIBS" |
---|
12959 | cat >conftest.$ac_ext <<_ACEOF |
---|
12960 | /* confdefs.h. */ |
---|
12961 | _ACEOF |
---|
12962 | cat confdefs.h >>conftest.$ac_ext |
---|
12963 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12964 | /* end confdefs.h. */ |
---|
12965 | |
---|
12966 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12967 | #ifdef __cplusplus |
---|
12968 | extern "C" |
---|
12969 | #endif |
---|
12970 | /* We use char because int might match the return type of a gcc2 |
---|
12971 | builtin and then its argument prototype would still apply. */ |
---|
12972 | char dlopen (); |
---|
12973 | int |
---|
12974 | main () |
---|
12975 | { |
---|
12976 | dlopen (); |
---|
12977 | ; |
---|
12978 | return 0; |
---|
12979 | } |
---|
12980 | _ACEOF |
---|
12981 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12983 | (eval $ac_link) 2>conftest.er1 |
---|
12984 | ac_status=$? |
---|
12985 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12986 | rm -f conftest.er1 |
---|
12987 | cat conftest.err >&5 |
---|
12988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12989 | (exit $ac_status); } && |
---|
12990 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
12991 | || test ! -s conftest.err' |
---|
12992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12993 | (eval $ac_try) 2>&5 |
---|
12994 | ac_status=$? |
---|
12995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12996 | (exit $ac_status); }; } && |
---|
12997 | { ac_try='test -s conftest$ac_exeext' |
---|
12998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12999 | (eval $ac_try) 2>&5 |
---|
13000 | ac_status=$? |
---|
13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13002 | (exit $ac_status); }; }; then |
---|
13003 | ac_cv_lib_svld_dlopen=yes |
---|
13004 | else |
---|
13005 | echo "$as_me: failed program was:" >&5 |
---|
13006 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13007 | |
---|
13008 | ac_cv_lib_svld_dlopen=no |
---|
13009 | fi |
---|
13010 | rm -f conftest.err conftest.$ac_objext \ |
---|
13011 | conftest$ac_exeext conftest.$ac_ext |
---|
13012 | LIBS=$ac_check_lib_save_LIBS |
---|
13013 | fi |
---|
13014 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
13015 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
13016 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
13017 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
13018 | else |
---|
13019 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
13020 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
13021 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
13022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13023 | else |
---|
13024 | ac_check_lib_save_LIBS=$LIBS |
---|
13025 | LIBS="-ldld $LIBS" |
---|
13026 | cat >conftest.$ac_ext <<_ACEOF |
---|
13027 | /* confdefs.h. */ |
---|
13028 | _ACEOF |
---|
13029 | cat confdefs.h >>conftest.$ac_ext |
---|
13030 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13031 | /* end confdefs.h. */ |
---|
13032 | |
---|
13033 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
13034 | #ifdef __cplusplus |
---|
13035 | extern "C" |
---|
13036 | #endif |
---|
13037 | /* We use char because int might match the return type of a gcc2 |
---|
13038 | builtin and then its argument prototype would still apply. */ |
---|
13039 | char dld_link (); |
---|
13040 | int |
---|
13041 | main () |
---|
13042 | { |
---|
13043 | dld_link (); |
---|
13044 | ; |
---|
13045 | return 0; |
---|
13046 | } |
---|
13047 | _ACEOF |
---|
13048 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
13050 | (eval $ac_link) 2>conftest.er1 |
---|
13051 | ac_status=$? |
---|
13052 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13053 | rm -f conftest.er1 |
---|
13054 | cat conftest.err >&5 |
---|
13055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13056 | (exit $ac_status); } && |
---|
13057 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
13058 | || test ! -s conftest.err' |
---|
13059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13060 | (eval $ac_try) 2>&5 |
---|
13061 | ac_status=$? |
---|
13062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13063 | (exit $ac_status); }; } && |
---|
13064 | { ac_try='test -s conftest$ac_exeext' |
---|
13065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13066 | (eval $ac_try) 2>&5 |
---|
13067 | ac_status=$? |
---|
13068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13069 | (exit $ac_status); }; }; then |
---|
13070 | ac_cv_lib_dld_dld_link=yes |
---|
13071 | else |
---|
13072 | echo "$as_me: failed program was:" >&5 |
---|
13073 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13074 | |
---|
13075 | ac_cv_lib_dld_dld_link=no |
---|
13076 | fi |
---|
13077 | rm -f conftest.err conftest.$ac_objext \ |
---|
13078 | conftest$ac_exeext conftest.$ac_ext |
---|
13079 | LIBS=$ac_check_lib_save_LIBS |
---|
13080 | fi |
---|
13081 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
13082 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
13083 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
13084 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
13085 | fi |
---|
13086 | |
---|
13087 | |
---|
13088 | fi |
---|
13089 | |
---|
13090 | |
---|
13091 | fi |
---|
13092 | |
---|
13093 | |
---|
13094 | fi |
---|
13095 | |
---|
13096 | |
---|
13097 | fi |
---|
13098 | |
---|
13099 | |
---|
13100 | fi |
---|
13101 | |
---|
13102 | ;; |
---|
13103 | esac |
---|
13104 | |
---|
13105 | if test "x$lt_cv_dlopen" != xno; then |
---|
13106 | enable_dlopen=yes |
---|
13107 | else |
---|
13108 | enable_dlopen=no |
---|
13109 | fi |
---|
13110 | |
---|
13111 | case $lt_cv_dlopen in |
---|
13112 | dlopen) |
---|
13113 | save_CPPFLAGS="$CPPFLAGS" |
---|
13114 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
13115 | |
---|
13116 | save_LDFLAGS="$LDFLAGS" |
---|
13117 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
13118 | |
---|
13119 | save_LIBS="$LIBS" |
---|
13120 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
13121 | |
---|
13122 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
13123 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
13124 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
13125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13126 | else |
---|
13127 | if test "$cross_compiling" = yes; then : |
---|
13128 | lt_cv_dlopen_self=cross |
---|
13129 | else |
---|
13130 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
13131 | lt_status=$lt_dlunknown |
---|
13132 | cat > conftest.$ac_ext <<EOF |
---|
13133 | #line 13133 "configure" |
---|
13134 | #include "confdefs.h" |
---|
13135 | |
---|
13136 | #if HAVE_DLFCN_H |
---|
13137 | #include <dlfcn.h> |
---|
13138 | #endif |
---|
13139 | |
---|
13140 | #include <stdio.h> |
---|
13141 | |
---|
13142 | #ifdef RTLD_GLOBAL |
---|
13143 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
13144 | #else |
---|
13145 | # ifdef DL_GLOBAL |
---|
13146 | # define LT_DLGLOBAL DL_GLOBAL |
---|
13147 | # else |
---|
13148 | # define LT_DLGLOBAL 0 |
---|
13149 | # endif |
---|
13150 | #endif |
---|
13151 | |
---|
13152 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
13153 | find out it does not work in some platform. */ |
---|
13154 | #ifndef LT_DLLAZY_OR_NOW |
---|
13155 | # ifdef RTLD_LAZY |
---|
13156 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
13157 | # else |
---|
13158 | # ifdef DL_LAZY |
---|
13159 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
13160 | # else |
---|
13161 | # ifdef RTLD_NOW |
---|
13162 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
13163 | # else |
---|
13164 | # ifdef DL_NOW |
---|
13165 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
13166 | # else |
---|
13167 | # define LT_DLLAZY_OR_NOW 0 |
---|
13168 | # endif |
---|
13169 | # endif |
---|
13170 | # endif |
---|
13171 | # endif |
---|
13172 | #endif |
---|
13173 | |
---|
13174 | #ifdef __cplusplus |
---|
13175 | extern "C" void exit (int); |
---|
13176 | #endif |
---|
13177 | |
---|
13178 | void fnord() { int i=42;} |
---|
13179 | int main () |
---|
13180 | { |
---|
13181 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
13182 | int status = $lt_dlunknown; |
---|
13183 | |
---|
13184 | if (self) |
---|
13185 | { |
---|
13186 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
13187 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
13188 | /* dlclose (self); */ |
---|
13189 | } |
---|
13190 | |
---|
13191 | exit (status); |
---|
13192 | } |
---|
13193 | EOF |
---|
13194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
13195 | (eval $ac_link) 2>&5 |
---|
13196 | ac_status=$? |
---|
13197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13198 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
13199 | (./conftest; exit; ) 2>/dev/null |
---|
13200 | lt_status=$? |
---|
13201 | case x$lt_status in |
---|
13202 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
13203 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
13204 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
13205 | esac |
---|
13206 | else : |
---|
13207 | # compilation failed |
---|
13208 | lt_cv_dlopen_self=no |
---|
13209 | fi |
---|
13210 | fi |
---|
13211 | rm -fr conftest* |
---|
13212 | |
---|
13213 | |
---|
13214 | fi |
---|
13215 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
13216 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
13217 | |
---|
13218 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
13219 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
13220 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
13221 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
13222 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
13223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13224 | else |
---|
13225 | if test "$cross_compiling" = yes; then : |
---|
13226 | lt_cv_dlopen_self_static=cross |
---|
13227 | else |
---|
13228 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
13229 | lt_status=$lt_dlunknown |
---|
13230 | cat > conftest.$ac_ext <<EOF |
---|
13231 | #line 13231 "configure" |
---|
13232 | #include "confdefs.h" |
---|
13233 | |
---|
13234 | #if HAVE_DLFCN_H |
---|
13235 | #include <dlfcn.h> |
---|
13236 | #endif |
---|
13237 | |
---|
13238 | #include <stdio.h> |
---|
13239 | |
---|
13240 | #ifdef RTLD_GLOBAL |
---|
13241 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
13242 | #else |
---|
13243 | # ifdef DL_GLOBAL |
---|
13244 | # define LT_DLGLOBAL DL_GLOBAL |
---|
13245 | # else |
---|
13246 | # define LT_DLGLOBAL 0 |
---|
13247 | # endif |
---|
13248 | #endif |
---|
13249 | |
---|
13250 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
13251 | find out it does not work in some platform. */ |
---|
13252 | #ifndef LT_DLLAZY_OR_NOW |
---|
13253 | # ifdef RTLD_LAZY |
---|
13254 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
13255 | # else |
---|
13256 | # ifdef DL_LAZY |
---|
13257 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
13258 | # else |
---|
13259 | # ifdef RTLD_NOW |
---|
13260 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
13261 | # else |
---|
13262 | # ifdef DL_NOW |
---|
13263 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
13264 | # else |
---|
13265 | # define LT_DLLAZY_OR_NOW 0 |
---|
13266 | # endif |
---|
13267 | # endif |
---|
13268 | # endif |
---|
13269 | # endif |
---|
13270 | #endif |
---|
13271 | |
---|
13272 | #ifdef __cplusplus |
---|
13273 | extern "C" void exit (int); |
---|
13274 | #endif |
---|
13275 | |
---|
13276 | void fnord() { int i=42;} |
---|
13277 | int main () |
---|
13278 | { |
---|
13279 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
13280 | int status = $lt_dlunknown; |
---|
13281 | |
---|
13282 | if (self) |
---|
13283 | { |
---|
13284 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
13285 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
13286 | /* dlclose (self); */ |
---|
13287 | } |
---|
13288 | |
---|
13289 | exit (status); |
---|
13290 | } |
---|
13291 | EOF |
---|
13292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
13293 | (eval $ac_link) 2>&5 |
---|
13294 | ac_status=$? |
---|
13295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13296 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
13297 | (./conftest; exit; ) 2>/dev/null |
---|
13298 | lt_status=$? |
---|
13299 | case x$lt_status in |
---|
13300 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
13301 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
13302 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
13303 | esac |
---|
13304 | else : |
---|
13305 | # compilation failed |
---|
13306 | lt_cv_dlopen_self_static=no |
---|
13307 | fi |
---|
13308 | fi |
---|
13309 | rm -fr conftest* |
---|
13310 | |
---|
13311 | |
---|
13312 | fi |
---|
13313 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
13314 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
13315 | fi |
---|
13316 | |
---|
13317 | CPPFLAGS="$save_CPPFLAGS" |
---|
13318 | LDFLAGS="$save_LDFLAGS" |
---|
13319 | LIBS="$save_LIBS" |
---|
13320 | ;; |
---|
13321 | esac |
---|
13322 | |
---|
13323 | case $lt_cv_dlopen_self in |
---|
13324 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
13325 | *) enable_dlopen_self=unknown ;; |
---|
13326 | esac |
---|
13327 | |
---|
13328 | case $lt_cv_dlopen_self_static in |
---|
13329 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
13330 | *) enable_dlopen_self_static=unknown ;; |
---|
13331 | esac |
---|
13332 | fi |
---|
13333 | |
---|
13334 | |
---|
13335 | # The else clause should only fire when bootstrapping the |
---|
13336 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
13337 | # with your package, and you will get complaints that there are |
---|
13338 | # no rules to generate ltmain.sh. |
---|
13339 | if test -f "$ltmain"; then |
---|
13340 | # See if we are running on zsh, and set the options which allow our commands through |
---|
13341 | # without removal of \ escapes. |
---|
13342 | if test -n "${ZSH_VERSION+set}" ; then |
---|
13343 | setopt NO_GLOB_SUBST |
---|
13344 | fi |
---|
13345 | # Now quote all the things that may contain metacharacters while being |
---|
13346 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
13347 | # variables and quote the copies for generation of the libtool script. |
---|
13348 | for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \ |
---|
13349 | SED SHELL STRIP \ |
---|
13350 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
13351 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
13352 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
13353 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
13354 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
13355 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
13356 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
13357 | compiler_CXX \ |
---|
13358 | CC_CXX \ |
---|
13359 | LD_CXX \ |
---|
13360 | lt_prog_compiler_wl_CXX \ |
---|
13361 | lt_prog_compiler_pic_CXX \ |
---|
13362 | lt_prog_compiler_static_CXX \ |
---|
13363 | lt_prog_compiler_no_builtin_flag_CXX \ |
---|
13364 | export_dynamic_flag_spec_CXX \ |
---|
13365 | thread_safe_flag_spec_CXX \ |
---|
13366 | whole_archive_flag_spec_CXX \ |
---|
13367 | enable_shared_with_static_runtimes_CXX \ |
---|
13368 | old_archive_cmds_CXX \ |
---|
13369 | old_archive_from_new_cmds_CXX \ |
---|
13370 | predep_objects_CXX \ |
---|
13371 | postdep_objects_CXX \ |
---|
13372 | predeps_CXX \ |
---|
13373 | postdeps_CXX \ |
---|
13374 | compiler_lib_search_path_CXX \ |
---|
13375 | archive_cmds_CXX \ |
---|
13376 | archive_expsym_cmds_CXX \ |
---|
13377 | postinstall_cmds_CXX \ |
---|
13378 | postuninstall_cmds_CXX \ |
---|
13379 | old_archive_from_expsyms_cmds_CXX \ |
---|
13380 | allow_undefined_flag_CXX \ |
---|
13381 | no_undefined_flag_CXX \ |
---|
13382 | export_symbols_cmds_CXX \ |
---|
13383 | hardcode_libdir_flag_spec_CXX \ |
---|
13384 | hardcode_libdir_flag_spec_ld_CXX \ |
---|
13385 | hardcode_libdir_separator_CXX \ |
---|
13386 | hardcode_automatic_CXX \ |
---|
13387 | module_cmds_CXX \ |
---|
13388 | module_expsym_cmds_CXX \ |
---|
13389 | lt_cv_prog_compiler_c_o_CXX \ |
---|
13390 | exclude_expsyms_CXX \ |
---|
13391 | include_expsyms_CXX; do |
---|
13392 | |
---|
13393 | case $var in |
---|
13394 | old_archive_cmds_CXX | \ |
---|
13395 | old_archive_from_new_cmds_CXX | \ |
---|
13396 | archive_cmds_CXX | \ |
---|
13397 | archive_expsym_cmds_CXX | \ |
---|
13398 | module_cmds_CXX | \ |
---|
13399 | module_expsym_cmds_CXX | \ |
---|
13400 | old_archive_from_expsyms_cmds_CXX | \ |
---|
13401 | export_symbols_cmds_CXX | \ |
---|
13402 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
13403 | postinstall_cmds | postuninstall_cmds | \ |
---|
13404 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
13405 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
13406 | # Double-quote double-evaled strings. |
---|
13407 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
13408 | ;; |
---|
13409 | *) |
---|
13410 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
13411 | ;; |
---|
13412 | esac |
---|
13413 | done |
---|
13414 | |
---|
13415 | case $lt_echo in |
---|
13416 | *'\$0 --fallback-echo"') |
---|
13417 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
13418 | ;; |
---|
13419 | esac |
---|
13420 | |
---|
13421 | cfgfile="$ofile" |
---|
13422 | |
---|
13423 | cat <<__EOF__ >> "$cfgfile" |
---|
13424 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
13425 | |
---|
13426 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
13427 | |
---|
13428 | # Shell to use when invoking shell scripts. |
---|
13429 | SHELL=$lt_SHELL |
---|
13430 | |
---|
13431 | # Whether or not to build shared libraries. |
---|
13432 | build_libtool_libs=$enable_shared |
---|
13433 | |
---|
13434 | # Whether or not to build static libraries. |
---|
13435 | build_old_libs=$enable_static |
---|
13436 | |
---|
13437 | # Whether or not to add -lc for building shared libraries. |
---|
13438 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
---|
13439 | |
---|
13440 | # Whether or not to disallow shared libs when runtime libs are static |
---|
13441 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
---|
13442 | |
---|
13443 | # Whether or not to optimize for fast installation. |
---|
13444 | fast_install=$enable_fast_install |
---|
13445 | |
---|
13446 | # The host system. |
---|
13447 | host_alias=$host_alias |
---|
13448 | host=$host |
---|
13449 | host_os=$host_os |
---|
13450 | |
---|
13451 | # The build system. |
---|
13452 | build_alias=$build_alias |
---|
13453 | build=$build |
---|
13454 | build_os=$build_os |
---|
13455 | |
---|
13456 | # An echo program that does not interpret backslashes. |
---|
13457 | echo=$lt_echo |
---|
13458 | |
---|
13459 | # The archiver. |
---|
13460 | AR=$lt_AR |
---|
13461 | AR_FLAGS=$lt_AR_FLAGS |
---|
13462 | |
---|
13463 | # A C compiler. |
---|
13464 | LTCC=$lt_LTCC |
---|
13465 | |
---|
13466 | # A language-specific compiler. |
---|
13467 | CC=$lt_compiler_CXX |
---|
13468 | |
---|
13469 | # Is the compiler the GNU C compiler? |
---|
13470 | with_gcc=$GCC_CXX |
---|
13471 | |
---|
13472 | # An ERE matcher. |
---|
13473 | EGREP=$lt_EGREP |
---|
13474 | |
---|
13475 | # The linker used to build libraries. |
---|
13476 | LD=$lt_LD_CXX |
---|
13477 | |
---|
13478 | # Whether we need hard or soft links. |
---|
13479 | LN_S=$lt_LN_S |
---|
13480 | |
---|
13481 | # A BSD-compatible nm program. |
---|
13482 | NM=$lt_NM |
---|
13483 | |
---|
13484 | # A symbol stripping program |
---|
13485 | STRIP=$lt_STRIP |
---|
13486 | |
---|
13487 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
13488 | MAGIC_CMD=$MAGIC_CMD |
---|
13489 | |
---|
13490 | # Used on cygwin: DLL creation program. |
---|
13491 | DLLTOOL="$DLLTOOL" |
---|
13492 | |
---|
13493 | # Used on cygwin: object dumper. |
---|
13494 | OBJDUMP="$OBJDUMP" |
---|
13495 | |
---|
13496 | # Used on cygwin: assembler. |
---|
13497 | AS=$lt_AS |
---|
13498 | |
---|
13499 | # The name of the directory that contains temporary libtool files. |
---|
13500 | objdir=$objdir |
---|
13501 | |
---|
13502 | # How to create reloadable object files. |
---|
13503 | reload_flag=$lt_reload_flag |
---|
13504 | reload_cmds=$lt_reload_cmds |
---|
13505 | |
---|
13506 | # How to pass a linker flag through the compiler. |
---|
13507 | wl=$lt_lt_prog_compiler_wl_CXX |
---|
13508 | |
---|
13509 | # Object file suffix (normally "o"). |
---|
13510 | objext="$ac_objext" |
---|
13511 | |
---|
13512 | # Old archive suffix (normally "a"). |
---|
13513 | libext="$libext" |
---|
13514 | |
---|
13515 | # Shared library suffix (normally ".so"). |
---|
13516 | shrext_cmds='$shrext_cmds' |
---|
13517 | |
---|
13518 | # Executable file suffix (normally ""). |
---|
13519 | exeext="$exeext" |
---|
13520 | |
---|
13521 | # Additional compiler flags for building library objects. |
---|
13522 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
---|
13523 | pic_mode=$pic_mode |
---|
13524 | |
---|
13525 | # What is the maximum length of a command? |
---|
13526 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
13527 | |
---|
13528 | # Does compiler simultaneously support -c and -o options? |
---|
13529 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
---|
13530 | |
---|
13531 | # Must we lock files when doing compilation ? |
---|
13532 | need_locks=$lt_need_locks |
---|
13533 | |
---|
13534 | # Do we need the lib prefix for modules? |
---|
13535 | need_lib_prefix=$need_lib_prefix |
---|
13536 | |
---|
13537 | # Do we need a version for libraries? |
---|
13538 | need_version=$need_version |
---|
13539 | |
---|
13540 | # Whether dlopen is supported. |
---|
13541 | dlopen_support=$enable_dlopen |
---|
13542 | |
---|
13543 | # Whether dlopen of programs is supported. |
---|
13544 | dlopen_self=$enable_dlopen_self |
---|
13545 | |
---|
13546 | # Whether dlopen of statically linked programs is supported. |
---|
13547 | dlopen_self_static=$enable_dlopen_self_static |
---|
13548 | |
---|
13549 | # Compiler flag to prevent dynamic linking. |
---|
13550 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
---|
13551 | |
---|
13552 | # Compiler flag to turn off builtin functions. |
---|
13553 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
---|
13554 | |
---|
13555 | # Compiler flag to allow reflexive dlopens. |
---|
13556 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
---|
13557 | |
---|
13558 | # Compiler flag to generate shared objects directly from archives. |
---|
13559 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
---|
13560 | |
---|
13561 | # Compiler flag to generate thread-safe objects. |
---|
13562 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
---|
13563 | |
---|
13564 | # Library versioning type. |
---|
13565 | version_type=$version_type |
---|
13566 | |
---|
13567 | # Format of library name prefix. |
---|
13568 | libname_spec=$lt_libname_spec |
---|
13569 | |
---|
13570 | # List of archive names. First name is the real one, the rest are links. |
---|
13571 | # The last name is the one that the linker finds with -lNAME. |
---|
13572 | library_names_spec=$lt_library_names_spec |
---|
13573 | |
---|
13574 | # The coded name of the library, if different from the real name. |
---|
13575 | soname_spec=$lt_soname_spec |
---|
13576 | |
---|
13577 | # Commands used to build and install an old-style archive. |
---|
13578 | RANLIB=$lt_RANLIB |
---|
13579 | old_archive_cmds=$lt_old_archive_cmds_CXX |
---|
13580 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
13581 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
13582 | |
---|
13583 | # Create an old-style archive from a shared archive. |
---|
13584 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
---|
13585 | |
---|
13586 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
13587 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
---|
13588 | |
---|
13589 | # Commands used to build and install a shared archive. |
---|
13590 | archive_cmds=$lt_archive_cmds_CXX |
---|
13591 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
---|
13592 | postinstall_cmds=$lt_postinstall_cmds |
---|
13593 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
13594 | |
---|
13595 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
13596 | module_cmds=$lt_module_cmds_CXX |
---|
13597 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
---|
13598 | |
---|
13599 | # Commands to strip libraries. |
---|
13600 | old_striplib=$lt_old_striplib |
---|
13601 | striplib=$lt_striplib |
---|
13602 | |
---|
13603 | # Dependencies to place before the objects being linked to create a |
---|
13604 | # shared library. |
---|
13605 | predep_objects=$lt_predep_objects_CXX |
---|
13606 | |
---|
13607 | # Dependencies to place after the objects being linked to create a |
---|
13608 | # shared library. |
---|
13609 | postdep_objects=$lt_postdep_objects_CXX |
---|
13610 | |
---|
13611 | # Dependencies to place before the objects being linked to create a |
---|
13612 | # shared library. |
---|
13613 | predeps=$lt_predeps_CXX |
---|
13614 | |
---|
13615 | # Dependencies to place after the objects being linked to create a |
---|
13616 | # shared library. |
---|
13617 | postdeps=$lt_postdeps_CXX |
---|
13618 | |
---|
13619 | # The library search path used internally by the compiler when linking |
---|
13620 | # a shared library. |
---|
13621 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
---|
13622 | |
---|
13623 | # Method to check whether dependent libraries are shared objects. |
---|
13624 | deplibs_check_method=$lt_deplibs_check_method |
---|
13625 | |
---|
13626 | # Command to use when deplibs_check_method == file_magic. |
---|
13627 | file_magic_cmd=$lt_file_magic_cmd |
---|
13628 | |
---|
13629 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
13630 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
---|
13631 | |
---|
13632 | # Flag that forces no undefined symbols. |
---|
13633 | no_undefined_flag=$lt_no_undefined_flag_CXX |
---|
13634 | |
---|
13635 | # Commands used to finish a libtool library installation in a directory. |
---|
13636 | finish_cmds=$lt_finish_cmds |
---|
13637 | |
---|
13638 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
13639 | finish_eval=$lt_finish_eval |
---|
13640 | |
---|
13641 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
13642 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
13643 | |
---|
13644 | # Transform the output of nm in a proper C declaration |
---|
13645 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
13646 | |
---|
13647 | # Transform the output of nm in a C name address pair |
---|
13648 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
13649 | |
---|
13650 | # This is the shared library runtime path variable. |
---|
13651 | runpath_var=$runpath_var |
---|
13652 | |
---|
13653 | # This is the shared library path variable. |
---|
13654 | shlibpath_var=$shlibpath_var |
---|
13655 | |
---|
13656 | # Is shlibpath searched before the hard-coded library search path? |
---|
13657 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
13658 | |
---|
13659 | # How to hardcode a shared library path into an executable. |
---|
13660 | hardcode_action=$hardcode_action_CXX |
---|
13661 | |
---|
13662 | # Whether we should hardcode library paths into libraries. |
---|
13663 | hardcode_into_libs=$hardcode_into_libs |
---|
13664 | |
---|
13665 | # Flag to hardcode \$libdir into a binary during linking. |
---|
13666 | # This must work even if \$libdir does not exist. |
---|
13667 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
---|
13668 | |
---|
13669 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
13670 | # a binary during linking. This must work even if \$libdir does |
---|
13671 | # not exist. |
---|
13672 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
---|
13673 | |
---|
13674 | # Whether we need a single -rpath flag with a separated argument. |
---|
13675 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
---|
13676 | |
---|
13677 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
13678 | # resulting binary. |
---|
13679 | hardcode_direct=$hardcode_direct_CXX |
---|
13680 | |
---|
13681 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
13682 | # resulting binary. |
---|
13683 | hardcode_minus_L=$hardcode_minus_L_CXX |
---|
13684 | |
---|
13685 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
13686 | # the resulting binary. |
---|
13687 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
---|
13688 | |
---|
13689 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
13690 | # and all subsequent libraries and executables linked against it. |
---|
13691 | hardcode_automatic=$hardcode_automatic_CXX |
---|
13692 | |
---|
13693 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
13694 | # restored at relink time. |
---|
13695 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
13696 | |
---|
13697 | # Whether libtool must link a program against all its dependency libraries. |
---|
13698 | link_all_deplibs=$link_all_deplibs_CXX |
---|
13699 | |
---|
13700 | # Compile-time system search path for libraries |
---|
13701 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
13702 | |
---|
13703 | # Run-time system search path for libraries |
---|
13704 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
13705 | |
---|
13706 | # Fix the shell variable \$srcfile for the compiler. |
---|
13707 | fix_srcfile_path="$fix_srcfile_path_CXX" |
---|
13708 | |
---|
13709 | # Set to yes if exported symbols are required. |
---|
13710 | always_export_symbols=$always_export_symbols_CXX |
---|
13711 | |
---|
13712 | # The commands to list exported symbols. |
---|
13713 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
---|
13714 | |
---|
13715 | # The commands to extract the exported symbol list from a shared archive. |
---|
13716 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
13717 | |
---|
13718 | # Symbols that should not be listed in the preloaded symbols. |
---|
13719 | exclude_expsyms=$lt_exclude_expsyms_CXX |
---|
13720 | |
---|
13721 | # Symbols that must always be exported. |
---|
13722 | include_expsyms=$lt_include_expsyms_CXX |
---|
13723 | |
---|
13724 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
13725 | |
---|
13726 | __EOF__ |
---|
13727 | |
---|
13728 | |
---|
13729 | else |
---|
13730 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
13731 | # `config.status --recheck' to rerun these tests and create the |
---|
13732 | # libtool script then. |
---|
13733 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
13734 | if test -f "$ltmain_in"; then |
---|
13735 | test -f Makefile && make "$ltmain" |
---|
13736 | fi |
---|
13737 | fi |
---|
13738 | |
---|
13739 | |
---|
13740 | ac_ext=c |
---|
13741 | ac_cpp='$CPP $CPPFLAGS' |
---|
13742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
13743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
13744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
13745 | |
---|
13746 | CC=$lt_save_CC |
---|
13747 | LDCXX=$LD |
---|
13748 | LD=$lt_save_LD |
---|
13749 | GCC=$lt_save_GCC |
---|
13750 | with_gnu_ldcxx=$with_gnu_ld |
---|
13751 | with_gnu_ld=$lt_save_with_gnu_ld |
---|
13752 | lt_cv_path_LDCXX=$lt_cv_path_LD |
---|
13753 | lt_cv_path_LD=$lt_save_path_LD |
---|
13754 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
---|
13755 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
---|
13756 | |
---|
13757 | else |
---|
13758 | tagname="" |
---|
13759 | fi |
---|
13760 | ;; |
---|
13761 | |
---|
13762 | F77) |
---|
13763 | if test -n "$F77" && test "X$F77" != "Xno"; then |
---|
13764 | |
---|
13765 | ac_ext=f |
---|
13766 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
13767 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
13768 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
13769 | |
---|
13770 | |
---|
13771 | archive_cmds_need_lc_F77=no |
---|
13772 | allow_undefined_flag_F77= |
---|
13773 | always_export_symbols_F77=no |
---|
13774 | archive_expsym_cmds_F77= |
---|
13775 | export_dynamic_flag_spec_F77= |
---|
13776 | hardcode_direct_F77=no |
---|
13777 | hardcode_libdir_flag_spec_F77= |
---|
13778 | hardcode_libdir_flag_spec_ld_F77= |
---|
13779 | hardcode_libdir_separator_F77= |
---|
13780 | hardcode_minus_L_F77=no |
---|
13781 | hardcode_automatic_F77=no |
---|
13782 | module_cmds_F77= |
---|
13783 | module_expsym_cmds_F77= |
---|
13784 | link_all_deplibs_F77=unknown |
---|
13785 | old_archive_cmds_F77=$old_archive_cmds |
---|
13786 | no_undefined_flag_F77= |
---|
13787 | whole_archive_flag_spec_F77= |
---|
13788 | enable_shared_with_static_runtimes_F77=no |
---|
13789 | |
---|
13790 | # Source file extension for f77 test sources. |
---|
13791 | ac_ext=f |
---|
13792 | |
---|
13793 | # Object file extension for compiled f77 test sources. |
---|
13794 | objext=o |
---|
13795 | objext_F77=$objext |
---|
13796 | |
---|
13797 | # Code to be used in simple compile tests |
---|
13798 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
---|
13799 | |
---|
13800 | # Code to be used in simple link tests |
---|
13801 | lt_simple_link_test_code=" program t\n end\n" |
---|
13802 | |
---|
13803 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
13804 | |
---|
13805 | # If no C compiler was specified, use CC. |
---|
13806 | LTCC=${LTCC-"$CC"} |
---|
13807 | |
---|
13808 | # Allow CC to be a program name with arguments. |
---|
13809 | compiler=$CC |
---|
13810 | |
---|
13811 | |
---|
13812 | # Allow CC to be a program name with arguments. |
---|
13813 | lt_save_CC="$CC" |
---|
13814 | CC=${F77-"f77"} |
---|
13815 | compiler=$CC |
---|
13816 | compiler_F77=$CC |
---|
13817 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
---|
13818 | |
---|
13819 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
13820 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
13821 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
13822 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
13823 | |
---|
13824 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
13825 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
13826 | test "$can_build_shared" = "no" && enable_shared=no |
---|
13827 | |
---|
13828 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
13829 | # are all built from PIC. |
---|
13830 | case "$host_os" in |
---|
13831 | aix3*) |
---|
13832 | test "$enable_shared" = yes && enable_static=no |
---|
13833 | if test -n "$RANLIB"; then |
---|
13834 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
13835 | postinstall_cmds='$RANLIB $lib' |
---|
13836 | fi |
---|
13837 | ;; |
---|
13838 | aix4* | aix5*) |
---|
13839 | test "$enable_shared" = yes && enable_static=no |
---|
13840 | ;; |
---|
13841 | esac |
---|
13842 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
13843 | echo "${ECHO_T}$enable_shared" >&6 |
---|
13844 | |
---|
13845 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
13846 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
---|
13847 | # Make sure either enable_shared or enable_static is yes. |
---|
13848 | test "$enable_shared" = yes || enable_static=yes |
---|
13849 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
13850 | echo "${ECHO_T}$enable_static" >&6 |
---|
13851 | |
---|
13852 | test "$ld_shlibs_F77" = no && can_build_shared=no |
---|
13853 | |
---|
13854 | GCC_F77="$G77" |
---|
13855 | LD_F77="$LD" |
---|
13856 | |
---|
13857 | lt_prog_compiler_wl_F77= |
---|
13858 | lt_prog_compiler_pic_F77= |
---|
13859 | lt_prog_compiler_static_F77= |
---|
13860 | |
---|
13861 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
13862 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
13863 | |
---|
13864 | if test "$GCC" = yes; then |
---|
13865 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13866 | lt_prog_compiler_static_F77='-static' |
---|
13867 | |
---|
13868 | case $host_os in |
---|
13869 | aix*) |
---|
13870 | # All AIX code is PIC. |
---|
13871 | if test "$host_cpu" = ia64; then |
---|
13872 | # AIX 5 now supports IA64 processor |
---|
13873 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13874 | fi |
---|
13875 | ;; |
---|
13876 | |
---|
13877 | amigaos*) |
---|
13878 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
13879 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
13880 | # like `-m68040'. |
---|
13881 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
---|
13882 | ;; |
---|
13883 | |
---|
13884 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
13885 | # PIC is the default for these OSes. |
---|
13886 | ;; |
---|
13887 | |
---|
13888 | mingw* | pw32* | os2*) |
---|
13889 | # This hack is so that the source file can tell whether it is being |
---|
13890 | # built for inclusion in a dll (and should export symbols for example). |
---|
13891 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
13892 | ;; |
---|
13893 | |
---|
13894 | darwin* | rhapsody*) |
---|
13895 | # PIC is the default on this platform |
---|
13896 | # Common symbols not allowed in MH_DYLIB files |
---|
13897 | lt_prog_compiler_pic_F77='-fno-common' |
---|
13898 | ;; |
---|
13899 | |
---|
13900 | msdosdjgpp*) |
---|
13901 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
13902 | # on systems that don't support them. |
---|
13903 | lt_prog_compiler_can_build_shared_F77=no |
---|
13904 | enable_shared=no |
---|
13905 | ;; |
---|
13906 | |
---|
13907 | sysv4*MP*) |
---|
13908 | if test -d /usr/nec; then |
---|
13909 | lt_prog_compiler_pic_F77=-Kconform_pic |
---|
13910 | fi |
---|
13911 | ;; |
---|
13912 | |
---|
13913 | hpux*) |
---|
13914 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
13915 | # not for PA HP-UX. |
---|
13916 | case "$host_cpu" in |
---|
13917 | hppa*64*|ia64*) |
---|
13918 | # +Z the default |
---|
13919 | ;; |
---|
13920 | *) |
---|
13921 | lt_prog_compiler_pic_F77='-fPIC' |
---|
13922 | ;; |
---|
13923 | esac |
---|
13924 | ;; |
---|
13925 | |
---|
13926 | *) |
---|
13927 | lt_prog_compiler_pic_F77='-fPIC' |
---|
13928 | ;; |
---|
13929 | esac |
---|
13930 | else |
---|
13931 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
13932 | case $host_os in |
---|
13933 | aix*) |
---|
13934 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13935 | if test "$host_cpu" = ia64; then |
---|
13936 | # AIX 5 now supports IA64 processor |
---|
13937 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13938 | else |
---|
13939 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
---|
13940 | fi |
---|
13941 | ;; |
---|
13942 | darwin*) |
---|
13943 | # PIC is the default on this platform |
---|
13944 | # Common symbols not allowed in MH_DYLIB files |
---|
13945 | case "$cc_basename" in |
---|
13946 | xlc*) |
---|
13947 | lt_prog_compiler_pic_F77='-qnocommon' |
---|
13948 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13949 | ;; |
---|
13950 | esac |
---|
13951 | ;; |
---|
13952 | |
---|
13953 | mingw* | pw32* | os2*) |
---|
13954 | # This hack is so that the source file can tell whether it is being |
---|
13955 | # built for inclusion in a dll (and should export symbols for example). |
---|
13956 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
13957 | ;; |
---|
13958 | |
---|
13959 | hpux9* | hpux10* | hpux11*) |
---|
13960 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13961 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
13962 | # not for PA HP-UX. |
---|
13963 | case "$host_cpu" in |
---|
13964 | hppa*64*|ia64*) |
---|
13965 | # +Z the default |
---|
13966 | ;; |
---|
13967 | *) |
---|
13968 | lt_prog_compiler_pic_F77='+Z' |
---|
13969 | ;; |
---|
13970 | esac |
---|
13971 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
13972 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
---|
13973 | ;; |
---|
13974 | |
---|
13975 | irix5* | irix6* | nonstopux*) |
---|
13976 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13977 | # PIC (with -KPIC) is the default. |
---|
13978 | lt_prog_compiler_static_F77='-non_shared' |
---|
13979 | ;; |
---|
13980 | |
---|
13981 | newsos6) |
---|
13982 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13983 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13984 | ;; |
---|
13985 | |
---|
13986 | linux*) |
---|
13987 | case $cc_basename in |
---|
13988 | icc* | ecc*) |
---|
13989 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13990 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13991 | lt_prog_compiler_static_F77='-static' |
---|
13992 | ;; |
---|
13993 | pgcc | pgf77 | pgf90) |
---|
13994 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
13995 | # which looks to be a dead project) |
---|
13996 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13997 | lt_prog_compiler_pic_F77='-fpic' |
---|
13998 | lt_prog_compiler_static_F77='-static' |
---|
13999 | ;; |
---|
14000 | ccc*) |
---|
14001 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14002 | # All Alpha code is PIC. |
---|
14003 | lt_prog_compiler_static_F77='-non_shared' |
---|
14004 | ;; |
---|
14005 | esac |
---|
14006 | ;; |
---|
14007 | |
---|
14008 | osf3* | osf4* | osf5*) |
---|
14009 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14010 | # All OSF/1 code is PIC. |
---|
14011 | lt_prog_compiler_static_F77='-non_shared' |
---|
14012 | ;; |
---|
14013 | |
---|
14014 | sco3.2v5*) |
---|
14015 | lt_prog_compiler_pic_F77='-Kpic' |
---|
14016 | lt_prog_compiler_static_F77='-dn' |
---|
14017 | ;; |
---|
14018 | |
---|
14019 | solaris*) |
---|
14020 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14021 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14022 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14023 | ;; |
---|
14024 | |
---|
14025 | sunos4*) |
---|
14026 | lt_prog_compiler_wl_F77='-Qoption ld ' |
---|
14027 | lt_prog_compiler_pic_F77='-PIC' |
---|
14028 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14029 | ;; |
---|
14030 | |
---|
14031 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
14032 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14033 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14034 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14035 | ;; |
---|
14036 | |
---|
14037 | sysv4*MP*) |
---|
14038 | if test -d /usr/nec ;then |
---|
14039 | lt_prog_compiler_pic_F77='-Kconform_pic' |
---|
14040 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14041 | fi |
---|
14042 | ;; |
---|
14043 | |
---|
14044 | unicos*) |
---|
14045 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14046 | lt_prog_compiler_can_build_shared_F77=no |
---|
14047 | ;; |
---|
14048 | |
---|
14049 | uts4*) |
---|
14050 | lt_prog_compiler_pic_F77='-pic' |
---|
14051 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14052 | ;; |
---|
14053 | |
---|
14054 | *) |
---|
14055 | lt_prog_compiler_can_build_shared_F77=no |
---|
14056 | ;; |
---|
14057 | esac |
---|
14058 | fi |
---|
14059 | |
---|
14060 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
---|
14061 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
---|
14062 | |
---|
14063 | # |
---|
14064 | # Check to make sure the PIC flag actually works. |
---|
14065 | # |
---|
14066 | if test -n "$lt_prog_compiler_pic_F77"; then |
---|
14067 | |
---|
14068 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
---|
14069 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
---|
14070 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
---|
14071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
14072 | else |
---|
14073 | lt_prog_compiler_pic_works_F77=no |
---|
14074 | ac_outfile=conftest.$ac_objext |
---|
14075 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
14076 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
---|
14077 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
14078 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
14079 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
14080 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
14081 | # The option is referenced via a variable to avoid confusing sed. |
---|
14082 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
14083 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
14084 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
14085 | -e 's:$: $lt_compiler_flag:'` |
---|
14086 | (eval echo "\"\$as_me:14086: $lt_compile\"" >&5) |
---|
14087 | (eval "$lt_compile" 2>conftest.err) |
---|
14088 | ac_status=$? |
---|
14089 | cat conftest.err >&5 |
---|
14090 | echo "$as_me:14090: \$? = $ac_status" >&5 |
---|
14091 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
14092 | # The compiler can only warn and ignore the option if not recognized |
---|
14093 | # So say no if there are warnings |
---|
14094 | if test ! -s conftest.err; then |
---|
14095 | lt_prog_compiler_pic_works_F77=yes |
---|
14096 | fi |
---|
14097 | fi |
---|
14098 | $rm conftest* |
---|
14099 | |
---|
14100 | fi |
---|
14101 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
---|
14102 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
---|
14103 | |
---|
14104 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
---|
14105 | case $lt_prog_compiler_pic_F77 in |
---|
14106 | "" | " "*) ;; |
---|
14107 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
---|
14108 | esac |
---|
14109 | else |
---|
14110 | lt_prog_compiler_pic_F77= |
---|
14111 | lt_prog_compiler_can_build_shared_F77=no |
---|
14112 | fi |
---|
14113 | |
---|
14114 | fi |
---|
14115 | case "$host_os" in |
---|
14116 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
14117 | *djgpp*) |
---|
14118 | lt_prog_compiler_pic_F77= |
---|
14119 | ;; |
---|
14120 | *) |
---|
14121 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
---|
14122 | ;; |
---|
14123 | esac |
---|
14124 | |
---|
14125 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
14126 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
14127 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
---|
14128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
14129 | else |
---|
14130 | lt_cv_prog_compiler_c_o_F77=no |
---|
14131 | $rm -r conftest 2>/dev/null |
---|
14132 | mkdir conftest |
---|
14133 | cd conftest |
---|
14134 | mkdir out |
---|
14135 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
14136 | |
---|
14137 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
14138 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
14139 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
14140 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
14141 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
14142 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
14143 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
14144 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
14145 | -e 's:$: $lt_compiler_flag:'` |
---|
14146 | (eval echo "\"\$as_me:14146: $lt_compile\"" >&5) |
---|
14147 | (eval "$lt_compile" 2>out/conftest.err) |
---|
14148 | ac_status=$? |
---|
14149 | cat out/conftest.err >&5 |
---|
14150 | echo "$as_me:14150: \$? = $ac_status" >&5 |
---|
14151 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
14152 | then |
---|
14153 | # The compiler can only warn and ignore the option if not recognized |
---|
14154 | # So say no if there are warnings |
---|
14155 | if test ! -s out/conftest.err; then |
---|
14156 | lt_cv_prog_compiler_c_o_F77=yes |
---|
14157 | fi |
---|
14158 | fi |
---|
14159 | chmod u+w . |
---|
14160 | $rm conftest* |
---|
14161 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
14162 | # template instantiation |
---|
14163 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
14164 | $rm out/* && rmdir out |
---|
14165 | cd .. |
---|
14166 | rmdir conftest |
---|
14167 | $rm conftest* |
---|
14168 | |
---|
14169 | fi |
---|
14170 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
---|
14171 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
---|
14172 | |
---|
14173 | |
---|
14174 | hard_links="nottested" |
---|
14175 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
---|
14176 | # do not overwrite the value of need_locks provided by the user |
---|
14177 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
14178 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
14179 | hard_links=yes |
---|
14180 | $rm conftest* |
---|
14181 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
14182 | touch conftest.a |
---|
14183 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
14184 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
14185 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
14186 | echo "${ECHO_T}$hard_links" >&6 |
---|
14187 | if test "$hard_links" = no; then |
---|
14188 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
14189 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
14190 | need_locks=warn |
---|
14191 | fi |
---|
14192 | else |
---|
14193 | need_locks=no |
---|
14194 | fi |
---|
14195 | |
---|
14196 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
14197 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
14198 | |
---|
14199 | runpath_var= |
---|
14200 | allow_undefined_flag_F77= |
---|
14201 | enable_shared_with_static_runtimes_F77=no |
---|
14202 | archive_cmds_F77= |
---|
14203 | archive_expsym_cmds_F77= |
---|
14204 | old_archive_From_new_cmds_F77= |
---|
14205 | old_archive_from_expsyms_cmds_F77= |
---|
14206 | export_dynamic_flag_spec_F77= |
---|
14207 | whole_archive_flag_spec_F77= |
---|
14208 | thread_safe_flag_spec_F77= |
---|
14209 | hardcode_libdir_flag_spec_F77= |
---|
14210 | hardcode_libdir_flag_spec_ld_F77= |
---|
14211 | hardcode_libdir_separator_F77= |
---|
14212 | hardcode_direct_F77=no |
---|
14213 | hardcode_minus_L_F77=no |
---|
14214 | hardcode_shlibpath_var_F77=unsupported |
---|
14215 | link_all_deplibs_F77=unknown |
---|
14216 | hardcode_automatic_F77=no |
---|
14217 | module_cmds_F77= |
---|
14218 | module_expsym_cmds_F77= |
---|
14219 | always_export_symbols_F77=no |
---|
14220 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
14221 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
14222 | # included in the symbol list |
---|
14223 | include_expsyms_F77= |
---|
14224 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
14225 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
14226 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
14227 | # as well as any symbol that contains `d'. |
---|
14228 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
---|
14229 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
14230 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
14231 | # the symbol is explicitly referenced. Since portable code cannot |
---|
14232 | # rely on this symbol name, it's probably fine to never include it in |
---|
14233 | # preloaded symbol tables. |
---|
14234 | extract_expsyms_cmds= |
---|
14235 | |
---|
14236 | case $host_os in |
---|
14237 | cygwin* | mingw* | pw32*) |
---|
14238 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
14239 | # When not using gcc, we currently assume that we are using |
---|
14240 | # Microsoft Visual C++. |
---|
14241 | if test "$GCC" != yes; then |
---|
14242 | with_gnu_ld=no |
---|
14243 | fi |
---|
14244 | ;; |
---|
14245 | openbsd*) |
---|
14246 | with_gnu_ld=no |
---|
14247 | ;; |
---|
14248 | esac |
---|
14249 | |
---|
14250 | ld_shlibs_F77=yes |
---|
14251 | if test "$with_gnu_ld" = yes; then |
---|
14252 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
14253 | wlarc='${wl}' |
---|
14254 | |
---|
14255 | # See if GNU ld supports shared libraries. |
---|
14256 | case $host_os in |
---|
14257 | aix3* | aix4* | aix5*) |
---|
14258 | # On AIX/PPC, the GNU linker is very broken |
---|
14259 | if test "$host_cpu" != ia64; then |
---|
14260 | ld_shlibs_F77=no |
---|
14261 | cat <<EOF 1>&2 |
---|
14262 | |
---|
14263 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
14264 | *** to be unable to reliably create shared libraries on AIX. |
---|
14265 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
14266 | *** really care for shared libraries, you may want to modify your PATH |
---|
14267 | *** so that a non-GNU linker is found, and then restart. |
---|
14268 | |
---|
14269 | EOF |
---|
14270 | fi |
---|
14271 | ;; |
---|
14272 | |
---|
14273 | amigaos*) |
---|
14274 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
---|
14275 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14276 | hardcode_minus_L_F77=yes |
---|
14277 | |
---|
14278 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
14279 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
14280 | # to version 4, is to share data among multiple programs linked |
---|
14281 | # with the same dynamic library. Since this doesn't match the |
---|
14282 | # behavior of shared libraries on other platforms, we can't use |
---|
14283 | # them. |
---|
14284 | ld_shlibs_F77=no |
---|
14285 | ;; |
---|
14286 | |
---|
14287 | beos*) |
---|
14288 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
14289 | allow_undefined_flag_F77=unsupported |
---|
14290 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
14291 | # support --undefined. This deserves some investigation. FIXME |
---|
14292 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
14293 | else |
---|
14294 | ld_shlibs_F77=no |
---|
14295 | fi |
---|
14296 | ;; |
---|
14297 | |
---|
14298 | cygwin* | mingw* | pw32*) |
---|
14299 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
---|
14300 | # as there is no search path for DLLs. |
---|
14301 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14302 | allow_undefined_flag_F77=unsupported |
---|
14303 | always_export_symbols_F77=no |
---|
14304 | enable_shared_with_static_runtimes_F77=yes |
---|
14305 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
14306 | |
---|
14307 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
14308 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
14309 | # If the export-symbols file already is a .def file (1st line |
---|
14310 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
14311 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
14312 | cp $export_symbols $output_objdir/$soname.def; |
---|
14313 | else |
---|
14314 | echo EXPORTS > $output_objdir/$soname.def; |
---|
14315 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
14316 | fi~ |
---|
14317 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
14318 | else |
---|
14319 | ld_shlibs_F77=no |
---|
14320 | fi |
---|
14321 | ;; |
---|
14322 | |
---|
14323 | netbsd*) |
---|
14324 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
14325 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
14326 | wlarc= |
---|
14327 | else |
---|
14328 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
14329 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
14330 | fi |
---|
14331 | ;; |
---|
14332 | |
---|
14333 | solaris* | sysv5*) |
---|
14334 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
14335 | ld_shlibs_F77=no |
---|
14336 | cat <<EOF 1>&2 |
---|
14337 | |
---|
14338 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
14339 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
14340 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
14341 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
14342 | *** your PATH or compiler configuration so that the native linker is |
---|
14343 | *** used, and then restart. |
---|
14344 | |
---|
14345 | EOF |
---|
14346 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
14347 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
14348 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
14349 | else |
---|
14350 | ld_shlibs_F77=no |
---|
14351 | fi |
---|
14352 | ;; |
---|
14353 | |
---|
14354 | sunos4*) |
---|
14355 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
14356 | wlarc= |
---|
14357 | hardcode_direct_F77=yes |
---|
14358 | hardcode_shlibpath_var_F77=no |
---|
14359 | ;; |
---|
14360 | |
---|
14361 | linux*) |
---|
14362 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
14363 | tmp_addflag= |
---|
14364 | case $CC,$host_cpu in |
---|
14365 | pgf77* | pgf90* ) # Portland Group f77 and f90 compilers |
---|
14366 | tmp_addflag=' -fpic' ;; |
---|
14367 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
14368 | tmp_addflag=' -i_dynamic' ;; |
---|
14369 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
14370 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
14371 | ifc* | ifort*) # Intel Fortran compiler |
---|
14372 | tmp_addflag=' -nofor_main' ;; |
---|
14373 | esac |
---|
14374 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
14375 | supports_anon_versioning=no |
---|
14376 | case `$LD -v 2>/dev/null` in |
---|
14377 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
14378 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
14379 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
14380 | *\ 2.11.*) ;; # other 2.11 versions |
---|
14381 | *) supports_anon_versioning=yes ;; |
---|
14382 | esac |
---|
14383 | if test $supports_anon_versioning = yes; then |
---|
14384 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
14385 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
14386 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
14387 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
14388 | else |
---|
14389 | archive_expsym_cmds_F77=$archive_cmds_F77 |
---|
14390 | fi |
---|
14391 | else |
---|
14392 | ld_shlibs_F77=no |
---|
14393 | fi |
---|
14394 | ;; |
---|
14395 | |
---|
14396 | *) |
---|
14397 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
14398 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
14399 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
14400 | else |
---|
14401 | ld_shlibs_F77=no |
---|
14402 | fi |
---|
14403 | ;; |
---|
14404 | esac |
---|
14405 | |
---|
14406 | if test "$ld_shlibs_F77" = yes; then |
---|
14407 | runpath_var=LD_RUN_PATH |
---|
14408 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
---|
14409 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
---|
14410 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
14411 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
14412 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
14413 | else |
---|
14414 | whole_archive_flag_spec_F77= |
---|
14415 | fi |
---|
14416 | fi |
---|
14417 | else |
---|
14418 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
14419 | case $host_os in |
---|
14420 | aix3*) |
---|
14421 | allow_undefined_flag_F77=unsupported |
---|
14422 | always_export_symbols_F77=yes |
---|
14423 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
---|
14424 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
14425 | # are no directories specified by -L. |
---|
14426 | hardcode_minus_L_F77=yes |
---|
14427 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
14428 | # Neither direct hardcoding nor static linking is supported with a |
---|
14429 | # broken collect2. |
---|
14430 | hardcode_direct_F77=unsupported |
---|
14431 | fi |
---|
14432 | ;; |
---|
14433 | |
---|
14434 | aix4* | aix5*) |
---|
14435 | if test "$host_cpu" = ia64; then |
---|
14436 | # On IA64, the linker does run time linking by default, so we don't |
---|
14437 | # have to do anything special. |
---|
14438 | aix_use_runtimelinking=no |
---|
14439 | exp_sym_flag='-Bexport' |
---|
14440 | no_entry_flag="" |
---|
14441 | else |
---|
14442 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
14443 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
14444 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
14445 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
14446 | else |
---|
14447 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
14448 | fi |
---|
14449 | aix_use_runtimelinking=no |
---|
14450 | |
---|
14451 | # Test if we are trying to use run time linking or normal |
---|
14452 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
14453 | # need to do runtime linking. |
---|
14454 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
14455 | for ld_flag in $LDFLAGS; do |
---|
14456 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
14457 | aix_use_runtimelinking=yes |
---|
14458 | break |
---|
14459 | fi |
---|
14460 | done |
---|
14461 | esac |
---|
14462 | |
---|
14463 | exp_sym_flag='-bexport' |
---|
14464 | no_entry_flag='-bnoentry' |
---|
14465 | fi |
---|
14466 | |
---|
14467 | # When large executables or shared objects are built, AIX ld can |
---|
14468 | # have problems creating the table of contents. If linking a library |
---|
14469 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
14470 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
14471 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
14472 | |
---|
14473 | archive_cmds_F77='' |
---|
14474 | hardcode_direct_F77=yes |
---|
14475 | hardcode_libdir_separator_F77=':' |
---|
14476 | link_all_deplibs_F77=yes |
---|
14477 | |
---|
14478 | if test "$GCC" = yes; then |
---|
14479 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
14480 | # We only want to do this on AIX 4.2 and lower, the check |
---|
14481 | # below for broken collect2 doesn't work under 4.3+ |
---|
14482 | collect2name=`${CC} -print-prog-name=collect2` |
---|
14483 | if test -f "$collect2name" && \ |
---|
14484 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
14485 | then |
---|
14486 | # We have reworked collect2 |
---|
14487 | hardcode_direct_F77=yes |
---|
14488 | else |
---|
14489 | # We have old collect2 |
---|
14490 | hardcode_direct_F77=unsupported |
---|
14491 | # It fails to find uninstalled libraries when the uninstalled |
---|
14492 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
14493 | # to unsupported forces relinking |
---|
14494 | hardcode_minus_L_F77=yes |
---|
14495 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14496 | hardcode_libdir_separator_F77= |
---|
14497 | fi |
---|
14498 | esac |
---|
14499 | shared_flag='-shared' |
---|
14500 | if test "$aix_use_runtimelinking" = yes; then |
---|
14501 | shared_flag="$shared_flag "'${wl}-G' |
---|
14502 | fi |
---|
14503 | else |
---|
14504 | # not using gcc |
---|
14505 | if test "$host_cpu" = ia64; then |
---|
14506 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
14507 | # chokes on -Wl,-G. The following line is correct: |
---|
14508 | shared_flag='-G' |
---|
14509 | else |
---|
14510 | if test "$aix_use_runtimelinking" = yes; then |
---|
14511 | shared_flag='${wl}-G' |
---|
14512 | else |
---|
14513 | shared_flag='${wl}-bM:SRE' |
---|
14514 | fi |
---|
14515 | fi |
---|
14516 | fi |
---|
14517 | |
---|
14518 | # It seems that -bexpall does not export symbols beginning with |
---|
14519 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
14520 | always_export_symbols_F77=yes |
---|
14521 | if test "$aix_use_runtimelinking" = yes; then |
---|
14522 | # Warning - without using the other runtime loading flags (-brtl), |
---|
14523 | # -berok will link without error, but may produce a broken library. |
---|
14524 | allow_undefined_flag_F77='-berok' |
---|
14525 | # Determine the default libpath from the value encoded in an empty executable. |
---|
14526 | cat >conftest.$ac_ext <<_ACEOF |
---|
14527 | program main |
---|
14528 | |
---|
14529 | end |
---|
14530 | _ACEOF |
---|
14531 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
14532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
14533 | (eval $ac_link) 2>conftest.er1 |
---|
14534 | ac_status=$? |
---|
14535 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
14536 | rm -f conftest.er1 |
---|
14537 | cat conftest.err >&5 |
---|
14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14539 | (exit $ac_status); } && |
---|
14540 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
14541 | || test ! -s conftest.err' |
---|
14542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
14543 | (eval $ac_try) 2>&5 |
---|
14544 | ac_status=$? |
---|
14545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14546 | (exit $ac_status); }; } && |
---|
14547 | { ac_try='test -s conftest$ac_exeext' |
---|
14548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
14549 | (eval $ac_try) 2>&5 |
---|
14550 | ac_status=$? |
---|
14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14552 | (exit $ac_status); }; }; then |
---|
14553 | |
---|
14554 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
14555 | }'` |
---|
14556 | # Check for a 64-bit object if we didn't find anything. |
---|
14557 | 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; } |
---|
14558 | }'`; fi |
---|
14559 | else |
---|
14560 | echo "$as_me: failed program was:" >&5 |
---|
14561 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
14562 | |
---|
14563 | fi |
---|
14564 | rm -f conftest.err conftest.$ac_objext \ |
---|
14565 | conftest$ac_exeext conftest.$ac_ext |
---|
14566 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
14567 | |
---|
14568 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
14569 | archive_expsym_cmds_F77="\$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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
14570 | else |
---|
14571 | if test "$host_cpu" = ia64; then |
---|
14572 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
---|
14573 | allow_undefined_flag_F77="-z nodefs" |
---|
14574 | archive_expsym_cmds_F77="\$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" |
---|
14575 | else |
---|
14576 | # Determine the default libpath from the value encoded in an empty executable. |
---|
14577 | cat >conftest.$ac_ext <<_ACEOF |
---|
14578 | program main |
---|
14579 | |
---|
14580 | end |
---|
14581 | _ACEOF |
---|
14582 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
14583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
14584 | (eval $ac_link) 2>conftest.er1 |
---|
14585 | ac_status=$? |
---|
14586 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
14587 | rm -f conftest.er1 |
---|
14588 | cat conftest.err >&5 |
---|
14589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14590 | (exit $ac_status); } && |
---|
14591 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
14592 | || test ! -s conftest.err' |
---|
14593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
14594 | (eval $ac_try) 2>&5 |
---|
14595 | ac_status=$? |
---|
14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14597 | (exit $ac_status); }; } && |
---|
14598 | { ac_try='test -s conftest$ac_exeext' |
---|
14599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
14600 | (eval $ac_try) 2>&5 |
---|
14601 | ac_status=$? |
---|
14602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14603 | (exit $ac_status); }; }; then |
---|
14604 | |
---|
14605 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
14606 | }'` |
---|
14607 | # Check for a 64-bit object if we didn't find anything. |
---|
14608 | 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; } |
---|
14609 | }'`; fi |
---|
14610 | else |
---|
14611 | echo "$as_me: failed program was:" >&5 |
---|
14612 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
14613 | |
---|
14614 | fi |
---|
14615 | rm -f conftest.err conftest.$ac_objext \ |
---|
14616 | conftest$ac_exeext conftest.$ac_ext |
---|
14617 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
14618 | |
---|
14619 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
14620 | # Warning - without using the other run time loading flags, |
---|
14621 | # -berok will link without error, but may produce a broken library. |
---|
14622 | no_undefined_flag_F77=' ${wl}-bernotok' |
---|
14623 | allow_undefined_flag_F77=' ${wl}-berok' |
---|
14624 | # -bexpall does not export symbols beginning with underscore (_) |
---|
14625 | always_export_symbols_F77=yes |
---|
14626 | # Exported symbols can be pulled into shared objects from archives |
---|
14627 | whole_archive_flag_spec_F77=' ' |
---|
14628 | archive_cmds_need_lc_F77=yes |
---|
14629 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
14630 | archive_expsym_cmds_F77="\$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' |
---|
14631 | fi |
---|
14632 | fi |
---|
14633 | ;; |
---|
14634 | |
---|
14635 | amigaos*) |
---|
14636 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
---|
14637 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14638 | hardcode_minus_L_F77=yes |
---|
14639 | # see comment about different semantics on the GNU ld section |
---|
14640 | ld_shlibs_F77=no |
---|
14641 | ;; |
---|
14642 | |
---|
14643 | bsdi[45]*) |
---|
14644 | export_dynamic_flag_spec_F77=-rdynamic |
---|
14645 | ;; |
---|
14646 | |
---|
14647 | cygwin* | mingw* | pw32*) |
---|
14648 | # When not using gcc, we currently assume that we are using |
---|
14649 | # Microsoft Visual C++. |
---|
14650 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
14651 | # no search path for DLLs. |
---|
14652 | hardcode_libdir_flag_spec_F77=' ' |
---|
14653 | allow_undefined_flag_F77=unsupported |
---|
14654 | # Tell ltmain to make .lib files, not .a files. |
---|
14655 | libext=lib |
---|
14656 | # Tell ltmain to make .dll files, not .so files. |
---|
14657 | shrext_cmds=".dll" |
---|
14658 | # FIXME: Setting linknames here is a bad hack. |
---|
14659 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
14660 | # The linker will automatically build a .lib file if we build a DLL. |
---|
14661 | old_archive_From_new_cmds_F77='true' |
---|
14662 | # FIXME: Should let the user specify the lib program. |
---|
14663 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
14664 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
---|
14665 | enable_shared_with_static_runtimes_F77=yes |
---|
14666 | ;; |
---|
14667 | |
---|
14668 | darwin* | rhapsody*) |
---|
14669 | case "$host_os" in |
---|
14670 | rhapsody* | darwin1.[012]) |
---|
14671 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
---|
14672 | ;; |
---|
14673 | *) # Darwin 1.3 on |
---|
14674 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
14675 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
14676 | else |
---|
14677 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
14678 | 10.[012]) |
---|
14679 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
14680 | ;; |
---|
14681 | 10.*) |
---|
14682 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
---|
14683 | ;; |
---|
14684 | esac |
---|
14685 | fi |
---|
14686 | ;; |
---|
14687 | esac |
---|
14688 | archive_cmds_need_lc_F77=no |
---|
14689 | hardcode_direct_F77=no |
---|
14690 | hardcode_automatic_F77=yes |
---|
14691 | hardcode_shlibpath_var_F77=unsupported |
---|
14692 | whole_archive_flag_spec_F77='' |
---|
14693 | link_all_deplibs_F77=yes |
---|
14694 | if test "$GCC" = yes ; then |
---|
14695 | output_verbose_link_cmd='echo' |
---|
14696 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
14697 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
14698 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
14699 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
14700 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
14701 | else |
---|
14702 | case "$cc_basename" in |
---|
14703 | xlc*) |
---|
14704 | output_verbose_link_cmd='echo' |
---|
14705 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
14706 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
14707 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
14708 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
14709 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
14710 | ;; |
---|
14711 | *) |
---|
14712 | ld_shlibs_F77=no |
---|
14713 | ;; |
---|
14714 | esac |
---|
14715 | fi |
---|
14716 | ;; |
---|
14717 | |
---|
14718 | dgux*) |
---|
14719 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14720 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14721 | hardcode_shlibpath_var_F77=no |
---|
14722 | ;; |
---|
14723 | |
---|
14724 | freebsd1*) |
---|
14725 | ld_shlibs_F77=no |
---|
14726 | ;; |
---|
14727 | |
---|
14728 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
14729 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
14730 | # does not break anything, and helps significantly (at the cost of a little |
---|
14731 | # extra space). |
---|
14732 | freebsd2.2*) |
---|
14733 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
14734 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14735 | hardcode_direct_F77=yes |
---|
14736 | hardcode_shlibpath_var_F77=no |
---|
14737 | ;; |
---|
14738 | |
---|
14739 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
14740 | freebsd2*) |
---|
14741 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
14742 | hardcode_direct_F77=yes |
---|
14743 | hardcode_minus_L_F77=yes |
---|
14744 | hardcode_shlibpath_var_F77=no |
---|
14745 | ;; |
---|
14746 | |
---|
14747 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
14748 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
14749 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
14750 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14751 | hardcode_direct_F77=yes |
---|
14752 | hardcode_shlibpath_var_F77=no |
---|
14753 | ;; |
---|
14754 | |
---|
14755 | hpux9*) |
---|
14756 | if test "$GCC" = yes; then |
---|
14757 | archive_cmds_F77='$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' |
---|
14758 | else |
---|
14759 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
14760 | fi |
---|
14761 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
14762 | hardcode_libdir_separator_F77=: |
---|
14763 | hardcode_direct_F77=yes |
---|
14764 | |
---|
14765 | # hardcode_minus_L: Not really in the search PATH, |
---|
14766 | # but as the default location of the library. |
---|
14767 | hardcode_minus_L_F77=yes |
---|
14768 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
14769 | ;; |
---|
14770 | |
---|
14771 | hpux10* | hpux11*) |
---|
14772 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
14773 | case "$host_cpu" in |
---|
14774 | hppa*64*|ia64*) |
---|
14775 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14776 | ;; |
---|
14777 | *) |
---|
14778 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
14779 | ;; |
---|
14780 | esac |
---|
14781 | else |
---|
14782 | case "$host_cpu" in |
---|
14783 | hppa*64*|ia64*) |
---|
14784 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14785 | ;; |
---|
14786 | *) |
---|
14787 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
14788 | ;; |
---|
14789 | esac |
---|
14790 | fi |
---|
14791 | if test "$with_gnu_ld" = no; then |
---|
14792 | case "$host_cpu" in |
---|
14793 | hppa*64*) |
---|
14794 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
14795 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
---|
14796 | hardcode_libdir_separator_F77=: |
---|
14797 | hardcode_direct_F77=no |
---|
14798 | hardcode_shlibpath_var_F77=no |
---|
14799 | ;; |
---|
14800 | ia64*) |
---|
14801 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14802 | hardcode_direct_F77=no |
---|
14803 | hardcode_shlibpath_var_F77=no |
---|
14804 | |
---|
14805 | # hardcode_minus_L: Not really in the search PATH, |
---|
14806 | # but as the default location of the library. |
---|
14807 | hardcode_minus_L_F77=yes |
---|
14808 | ;; |
---|
14809 | *) |
---|
14810 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
14811 | hardcode_libdir_separator_F77=: |
---|
14812 | hardcode_direct_F77=yes |
---|
14813 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
14814 | |
---|
14815 | # hardcode_minus_L: Not really in the search PATH, |
---|
14816 | # but as the default location of the library. |
---|
14817 | hardcode_minus_L_F77=yes |
---|
14818 | ;; |
---|
14819 | esac |
---|
14820 | fi |
---|
14821 | ;; |
---|
14822 | |
---|
14823 | irix5* | irix6* | nonstopux*) |
---|
14824 | if test "$GCC" = yes; then |
---|
14825 | archive_cmds_F77='$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' |
---|
14826 | else |
---|
14827 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
14828 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
---|
14829 | fi |
---|
14830 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14831 | hardcode_libdir_separator_F77=: |
---|
14832 | link_all_deplibs_F77=yes |
---|
14833 | ;; |
---|
14834 | |
---|
14835 | netbsd*) |
---|
14836 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
14837 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
14838 | else |
---|
14839 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
14840 | fi |
---|
14841 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14842 | hardcode_direct_F77=yes |
---|
14843 | hardcode_shlibpath_var_F77=no |
---|
14844 | ;; |
---|
14845 | |
---|
14846 | newsos6) |
---|
14847 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14848 | hardcode_direct_F77=yes |
---|
14849 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14850 | hardcode_libdir_separator_F77=: |
---|
14851 | hardcode_shlibpath_var_F77=no |
---|
14852 | ;; |
---|
14853 | |
---|
14854 | openbsd*) |
---|
14855 | hardcode_direct_F77=yes |
---|
14856 | hardcode_shlibpath_var_F77=no |
---|
14857 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
14858 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
14859 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
14860 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
14861 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
14862 | else |
---|
14863 | case $host_os in |
---|
14864 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
14865 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
14866 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14867 | ;; |
---|
14868 | *) |
---|
14869 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
14870 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
14871 | ;; |
---|
14872 | esac |
---|
14873 | fi |
---|
14874 | ;; |
---|
14875 | |
---|
14876 | os2*) |
---|
14877 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14878 | hardcode_minus_L_F77=yes |
---|
14879 | allow_undefined_flag_F77=unsupported |
---|
14880 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
---|
14881 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
14882 | ;; |
---|
14883 | |
---|
14884 | osf3*) |
---|
14885 | if test "$GCC" = yes; then |
---|
14886 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
14887 | archive_cmds_F77='$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' |
---|
14888 | else |
---|
14889 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
14890 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
14891 | fi |
---|
14892 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14893 | hardcode_libdir_separator_F77=: |
---|
14894 | ;; |
---|
14895 | |
---|
14896 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
14897 | if test "$GCC" = yes; then |
---|
14898 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
14899 | archive_cmds_F77='$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' |
---|
14900 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14901 | else |
---|
14902 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
14903 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
14904 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
14905 | $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' |
---|
14906 | |
---|
14907 | # Both c and cxx compiler support -rpath directly |
---|
14908 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
---|
14909 | fi |
---|
14910 | hardcode_libdir_separator_F77=: |
---|
14911 | ;; |
---|
14912 | |
---|
14913 | sco3.2v5*) |
---|
14914 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14915 | hardcode_shlibpath_var_F77=no |
---|
14916 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
---|
14917 | runpath_var=LD_RUN_PATH |
---|
14918 | hardcode_runpath_var=yes |
---|
14919 | ;; |
---|
14920 | |
---|
14921 | solaris*) |
---|
14922 | no_undefined_flag_F77=' -z text' |
---|
14923 | if test "$GCC" = yes; then |
---|
14924 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14925 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
14926 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
14927 | else |
---|
14928 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14929 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
14930 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
14931 | fi |
---|
14932 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14933 | hardcode_shlibpath_var_F77=no |
---|
14934 | case $host_os in |
---|
14935 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
14936 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
14937 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; |
---|
14938 | esac |
---|
14939 | link_all_deplibs_F77=yes |
---|
14940 | ;; |
---|
14941 | |
---|
14942 | sunos4*) |
---|
14943 | if test "x$host_vendor" = xsequent; then |
---|
14944 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
14945 | # files that make .init and .fini sections work. |
---|
14946 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14947 | else |
---|
14948 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
14949 | fi |
---|
14950 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14951 | hardcode_direct_F77=yes |
---|
14952 | hardcode_minus_L_F77=yes |
---|
14953 | hardcode_shlibpath_var_F77=no |
---|
14954 | ;; |
---|
14955 | |
---|
14956 | sysv4) |
---|
14957 | case $host_vendor in |
---|
14958 | sni) |
---|
14959 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14960 | hardcode_direct_F77=yes # is this really true??? |
---|
14961 | ;; |
---|
14962 | siemens) |
---|
14963 | ## LD is ld it makes a PLAMLIB |
---|
14964 | ## CC just makes a GrossModule. |
---|
14965 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
14966 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
---|
14967 | hardcode_direct_F77=no |
---|
14968 | ;; |
---|
14969 | motorola) |
---|
14970 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14971 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
---|
14972 | ;; |
---|
14973 | esac |
---|
14974 | runpath_var='LD_RUN_PATH' |
---|
14975 | hardcode_shlibpath_var_F77=no |
---|
14976 | ;; |
---|
14977 | |
---|
14978 | sysv4.3*) |
---|
14979 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14980 | hardcode_shlibpath_var_F77=no |
---|
14981 | export_dynamic_flag_spec_F77='-Bexport' |
---|
14982 | ;; |
---|
14983 | |
---|
14984 | sysv4*MP*) |
---|
14985 | if test -d /usr/nec; then |
---|
14986 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14987 | hardcode_shlibpath_var_F77=no |
---|
14988 | runpath_var=LD_RUN_PATH |
---|
14989 | hardcode_runpath_var=yes |
---|
14990 | ld_shlibs_F77=yes |
---|
14991 | fi |
---|
14992 | ;; |
---|
14993 | |
---|
14994 | sysv4.2uw2*) |
---|
14995 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
14996 | hardcode_direct_F77=yes |
---|
14997 | hardcode_minus_L_F77=no |
---|
14998 | hardcode_shlibpath_var_F77=no |
---|
14999 | hardcode_runpath_var=yes |
---|
15000 | runpath_var=LD_RUN_PATH |
---|
15001 | ;; |
---|
15002 | |
---|
15003 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
15004 | no_undefined_flag_F77='${wl}-z ${wl}text' |
---|
15005 | if test "$GCC" = yes; then |
---|
15006 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15007 | else |
---|
15008 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15009 | fi |
---|
15010 | runpath_var='LD_RUN_PATH' |
---|
15011 | hardcode_shlibpath_var_F77=no |
---|
15012 | ;; |
---|
15013 | |
---|
15014 | sysv5*) |
---|
15015 | no_undefined_flag_F77=' -z text' |
---|
15016 | # $CC -shared without GNU ld will not create a library from C++ |
---|
15017 | # object files and a static libstdc++, better avoid it by now |
---|
15018 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15019 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
15020 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
15021 | hardcode_libdir_flag_spec_F77= |
---|
15022 | hardcode_shlibpath_var_F77=no |
---|
15023 | runpath_var='LD_RUN_PATH' |
---|
15024 | ;; |
---|
15025 | |
---|
15026 | uts4*) |
---|
15027 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15028 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15029 | hardcode_shlibpath_var_F77=no |
---|
15030 | ;; |
---|
15031 | |
---|
15032 | *) |
---|
15033 | ld_shlibs_F77=no |
---|
15034 | ;; |
---|
15035 | esac |
---|
15036 | fi |
---|
15037 | |
---|
15038 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
---|
15039 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
---|
15040 | test "$ld_shlibs_F77" = no && can_build_shared=no |
---|
15041 | |
---|
15042 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
15043 | if test "$GCC" = yes; then |
---|
15044 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
15045 | fi |
---|
15046 | |
---|
15047 | # |
---|
15048 | # Do we need to explicitly link libc? |
---|
15049 | # |
---|
15050 | case "x$archive_cmds_need_lc_F77" in |
---|
15051 | x|xyes) |
---|
15052 | # Assume -lc should be added |
---|
15053 | archive_cmds_need_lc_F77=yes |
---|
15054 | |
---|
15055 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
15056 | case $archive_cmds_F77 in |
---|
15057 | *'~'*) |
---|
15058 | # FIXME: we may have to deal with multi-command sequences. |
---|
15059 | ;; |
---|
15060 | '$CC '*) |
---|
15061 | # Test whether the compiler implicitly links with -lc since on some |
---|
15062 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
15063 | # to ld, don't add -lc before -lgcc. |
---|
15064 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
15065 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
15066 | $rm conftest* |
---|
15067 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15068 | |
---|
15069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
15070 | (eval $ac_compile) 2>&5 |
---|
15071 | ac_status=$? |
---|
15072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
15073 | (exit $ac_status); } 2>conftest.err; then |
---|
15074 | soname=conftest |
---|
15075 | lib=conftest |
---|
15076 | libobjs=conftest.$ac_objext |
---|
15077 | deplibs= |
---|
15078 | wl=$lt_prog_compiler_wl_F77 |
---|
15079 | compiler_flags=-v |
---|
15080 | linker_flags=-v |
---|
15081 | verstring= |
---|
15082 | output_objdir=. |
---|
15083 | libname=conftest |
---|
15084 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
---|
15085 | allow_undefined_flag_F77= |
---|
15086 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
15087 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
15088 | ac_status=$? |
---|
15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
15090 | (exit $ac_status); } |
---|
15091 | then |
---|
15092 | archive_cmds_need_lc_F77=no |
---|
15093 | else |
---|
15094 | archive_cmds_need_lc_F77=yes |
---|
15095 | fi |
---|
15096 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
---|
15097 | else |
---|
15098 | cat conftest.err 1>&5 |
---|
15099 | fi |
---|
15100 | $rm conftest* |
---|
15101 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
---|
15102 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
---|
15103 | ;; |
---|
15104 | esac |
---|
15105 | fi |
---|
15106 | ;; |
---|
15107 | esac |
---|
15108 | |
---|
15109 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
15110 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
15111 | library_names_spec= |
---|
15112 | libname_spec='lib$name' |
---|
15113 | soname_spec= |
---|
15114 | shrext_cmds=".so" |
---|
15115 | postinstall_cmds= |
---|
15116 | postuninstall_cmds= |
---|
15117 | finish_cmds= |
---|
15118 | finish_eval= |
---|
15119 | shlibpath_var= |
---|
15120 | shlibpath_overrides_runpath=unknown |
---|
15121 | version_type=none |
---|
15122 | dynamic_linker="$host_os ld.so" |
---|
15123 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
15124 | if test "$GCC" = yes; then |
---|
15125 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
15126 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
15127 | # if the path contains ";" then we assume it to be the separator |
---|
15128 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
15129 | # assumed that no part of a normal pathname contains ";" but that should |
---|
15130 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
15131 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
15132 | else |
---|
15133 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
15134 | fi |
---|
15135 | else |
---|
15136 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
15137 | fi |
---|
15138 | need_lib_prefix=unknown |
---|
15139 | hardcode_into_libs=no |
---|
15140 | |
---|
15141 | # when you set need_version to no, make sure it does not cause -set_version |
---|
15142 | # flags to be left without arguments |
---|
15143 | need_version=unknown |
---|
15144 | |
---|
15145 | case $host_os in |
---|
15146 | aix3*) |
---|
15147 | version_type=linux |
---|
15148 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
15149 | shlibpath_var=LIBPATH |
---|
15150 | |
---|
15151 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
15152 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15153 | ;; |
---|
15154 | |
---|
15155 | aix4* | aix5*) |
---|
15156 | version_type=linux |
---|
15157 | need_lib_prefix=no |
---|
15158 | need_version=no |
---|
15159 | hardcode_into_libs=yes |
---|
15160 | if test "$host_cpu" = ia64; then |
---|
15161 | # AIX 5 supports IA64 |
---|
15162 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
15163 | shlibpath_var=LD_LIBRARY_PATH |
---|
15164 | else |
---|
15165 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
15166 | # for dependence libraries. The import file would start with |
---|
15167 | # the line `#! .'. This would cause the generated library to |
---|
15168 | # depend on `.', always an invalid library. This was fixed in |
---|
15169 | # development snapshots of GCC prior to 3.0. |
---|
15170 | case $host_os in |
---|
15171 | aix4 | aix4.[01] | aix4.[01].*) |
---|
15172 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
15173 | echo ' yes ' |
---|
15174 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
15175 | : |
---|
15176 | else |
---|
15177 | can_build_shared=no |
---|
15178 | fi |
---|
15179 | ;; |
---|
15180 | esac |
---|
15181 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
15182 | # soname into executable. Probably we can add versioning support to |
---|
15183 | # collect2, so additional links can be useful in future. |
---|
15184 | if test "$aix_use_runtimelinking" = yes; then |
---|
15185 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
15186 | # instead of lib<name>.a to let people know that these are not |
---|
15187 | # typical AIX shared libraries. |
---|
15188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15189 | else |
---|
15190 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
15191 | # and later when we are not doing run time linking. |
---|
15192 | library_names_spec='${libname}${release}.a $libname.a' |
---|
15193 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15194 | fi |
---|
15195 | shlibpath_var=LIBPATH |
---|
15196 | fi |
---|
15197 | ;; |
---|
15198 | |
---|
15199 | amigaos*) |
---|
15200 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
15201 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
15202 | 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' |
---|
15203 | ;; |
---|
15204 | |
---|
15205 | beos*) |
---|
15206 | library_names_spec='${libname}${shared_ext}' |
---|
15207 | dynamic_linker="$host_os ld.so" |
---|
15208 | shlibpath_var=LIBRARY_PATH |
---|
15209 | ;; |
---|
15210 | |
---|
15211 | bsdi[45]*) |
---|
15212 | version_type=linux |
---|
15213 | need_version=no |
---|
15214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15215 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15216 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
15217 | shlibpath_var=LD_LIBRARY_PATH |
---|
15218 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
15219 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
15220 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
15221 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
15222 | # libtool to hard-code these into programs |
---|
15223 | ;; |
---|
15224 | |
---|
15225 | cygwin* | mingw* | pw32*) |
---|
15226 | version_type=windows |
---|
15227 | shrext_cmds=".dll" |
---|
15228 | need_version=no |
---|
15229 | need_lib_prefix=no |
---|
15230 | |
---|
15231 | case $GCC,$host_os in |
---|
15232 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
15233 | library_names_spec='$libname.dll.a' |
---|
15234 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
15235 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
15236 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
15237 | dldir=$destdir/`dirname \$dlpath`~ |
---|
15238 | test -d \$dldir || mkdir -p \$dldir~ |
---|
15239 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
15240 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
15241 | dlpath=$dir/\$dldll~ |
---|
15242 | $rm \$dlpath' |
---|
15243 | shlibpath_overrides_runpath=yes |
---|
15244 | |
---|
15245 | case $host_os in |
---|
15246 | cygwin*) |
---|
15247 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
15248 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
15249 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
15250 | ;; |
---|
15251 | mingw*) |
---|
15252 | # MinGW DLLs use traditional 'lib' prefix |
---|
15253 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
15254 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
15255 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
15256 | # It is most probably a Windows format PATH printed by |
---|
15257 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
15258 | # path with ; separators, and with drive letters. We can handle the |
---|
15259 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
15260 | # especially as we might pass files found there to a mingw objdump, |
---|
15261 | # which wouldn't understand a cygwinified path. Ahh. |
---|
15262 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
15263 | else |
---|
15264 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
15265 | fi |
---|
15266 | ;; |
---|
15267 | pw32*) |
---|
15268 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
15269 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
15270 | ;; |
---|
15271 | esac |
---|
15272 | ;; |
---|
15273 | |
---|
15274 | *) |
---|
15275 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
15276 | ;; |
---|
15277 | esac |
---|
15278 | dynamic_linker='Win32 ld.exe' |
---|
15279 | # FIXME: first we should search . and the directory the executable is in |
---|
15280 | shlibpath_var=PATH |
---|
15281 | ;; |
---|
15282 | |
---|
15283 | darwin* | rhapsody*) |
---|
15284 | dynamic_linker="$host_os dyld" |
---|
15285 | version_type=darwin |
---|
15286 | need_lib_prefix=no |
---|
15287 | need_version=no |
---|
15288 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
15289 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
15290 | shlibpath_overrides_runpath=yes |
---|
15291 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
15292 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
15293 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
15294 | if test "$GCC" = yes; then |
---|
15295 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
15296 | else |
---|
15297 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
15298 | fi |
---|
15299 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
15300 | ;; |
---|
15301 | |
---|
15302 | dgux*) |
---|
15303 | version_type=linux |
---|
15304 | need_lib_prefix=no |
---|
15305 | need_version=no |
---|
15306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
15307 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15308 | shlibpath_var=LD_LIBRARY_PATH |
---|
15309 | ;; |
---|
15310 | |
---|
15311 | freebsd1*) |
---|
15312 | dynamic_linker=no |
---|
15313 | ;; |
---|
15314 | |
---|
15315 | kfreebsd*-gnu) |
---|
15316 | version_type=linux |
---|
15317 | need_lib_prefix=no |
---|
15318 | need_version=no |
---|
15319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
15320 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15321 | shlibpath_var=LD_LIBRARY_PATH |
---|
15322 | shlibpath_overrides_runpath=no |
---|
15323 | hardcode_into_libs=yes |
---|
15324 | dynamic_linker='GNU ld.so' |
---|
15325 | ;; |
---|
15326 | |
---|
15327 | freebsd* | dragonfly*) |
---|
15328 | # DragonFly does not have aout. When/if they implement a new |
---|
15329 | # versioning mechanism, adjust this. |
---|
15330 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
15331 | version_type=freebsd-$objformat |
---|
15332 | case $version_type in |
---|
15333 | freebsd-elf*) |
---|
15334 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
15335 | need_version=no |
---|
15336 | need_lib_prefix=no |
---|
15337 | ;; |
---|
15338 | freebsd-*) |
---|
15339 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
15340 | need_version=yes |
---|
15341 | ;; |
---|
15342 | esac |
---|
15343 | shlibpath_var=LD_LIBRARY_PATH |
---|
15344 | case $host_os in |
---|
15345 | freebsd2*) |
---|
15346 | shlibpath_overrides_runpath=yes |
---|
15347 | ;; |
---|
15348 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
15349 | shlibpath_overrides_runpath=yes |
---|
15350 | hardcode_into_libs=yes |
---|
15351 | ;; |
---|
15352 | *) # from 3.2 on |
---|
15353 | shlibpath_overrides_runpath=no |
---|
15354 | hardcode_into_libs=yes |
---|
15355 | ;; |
---|
15356 | esac |
---|
15357 | ;; |
---|
15358 | |
---|
15359 | gnu*) |
---|
15360 | version_type=linux |
---|
15361 | need_lib_prefix=no |
---|
15362 | need_version=no |
---|
15363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
15364 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15365 | shlibpath_var=LD_LIBRARY_PATH |
---|
15366 | hardcode_into_libs=yes |
---|
15367 | ;; |
---|
15368 | |
---|
15369 | hpux9* | hpux10* | hpux11*) |
---|
15370 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
15371 | # link against other versions. |
---|
15372 | version_type=sunos |
---|
15373 | need_lib_prefix=no |
---|
15374 | need_version=no |
---|
15375 | case "$host_cpu" in |
---|
15376 | ia64*) |
---|
15377 | shrext_cmds='.so' |
---|
15378 | hardcode_into_libs=yes |
---|
15379 | dynamic_linker="$host_os dld.so" |
---|
15380 | shlibpath_var=LD_LIBRARY_PATH |
---|
15381 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
15382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15383 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15384 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
15385 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
15386 | else |
---|
15387 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
15388 | fi |
---|
15389 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
15390 | ;; |
---|
15391 | hppa*64*) |
---|
15392 | shrext_cmds='.sl' |
---|
15393 | hardcode_into_libs=yes |
---|
15394 | dynamic_linker="$host_os dld.sl" |
---|
15395 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
15396 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
15397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15398 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15399 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
15400 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
15401 | ;; |
---|
15402 | *) |
---|
15403 | shrext_cmds='.sl' |
---|
15404 | dynamic_linker="$host_os dld.sl" |
---|
15405 | shlibpath_var=SHLIB_PATH |
---|
15406 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
15407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15408 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15409 | ;; |
---|
15410 | esac |
---|
15411 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
15412 | postinstall_cmds='chmod 555 $lib' |
---|
15413 | ;; |
---|
15414 | |
---|
15415 | irix5* | irix6* | nonstopux*) |
---|
15416 | case $host_os in |
---|
15417 | nonstopux*) version_type=nonstopux ;; |
---|
15418 | *) |
---|
15419 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
15420 | version_type=linux |
---|
15421 | else |
---|
15422 | version_type=irix |
---|
15423 | fi ;; |
---|
15424 | esac |
---|
15425 | need_lib_prefix=no |
---|
15426 | need_version=no |
---|
15427 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
15429 | case $host_os in |
---|
15430 | irix5* | nonstopux*) |
---|
15431 | libsuff= shlibsuff= |
---|
15432 | ;; |
---|
15433 | *) |
---|
15434 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
15435 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
15436 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
15437 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
15438 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
15439 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
15440 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
15441 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
15442 | esac |
---|
15443 | ;; |
---|
15444 | esac |
---|
15445 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
15446 | shlibpath_overrides_runpath=no |
---|
15447 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
15448 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
15449 | hardcode_into_libs=yes |
---|
15450 | ;; |
---|
15451 | |
---|
15452 | # No shared lib support for Linux oldld, aout, or coff. |
---|
15453 | linux*oldld* | linux*aout* | linux*coff*) |
---|
15454 | dynamic_linker=no |
---|
15455 | ;; |
---|
15456 | |
---|
15457 | # This must be Linux ELF. |
---|
15458 | linux*) |
---|
15459 | version_type=linux |
---|
15460 | need_lib_prefix=no |
---|
15461 | need_version=no |
---|
15462 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15463 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15464 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
15465 | shlibpath_var=LD_LIBRARY_PATH |
---|
15466 | shlibpath_overrides_runpath=no |
---|
15467 | # This implies no fast_install, which is unacceptable. |
---|
15468 | # Some rework will be needed to allow for fast_install |
---|
15469 | # before this can be enabled. |
---|
15470 | hardcode_into_libs=yes |
---|
15471 | |
---|
15472 | # Append ld.so.conf contents to the search path |
---|
15473 | if test -f /etc/ld.so.conf; then |
---|
15474 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
15475 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
15476 | fi |
---|
15477 | |
---|
15478 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
15479 | # powerpc, because MkLinux only supported shared libraries with the |
---|
15480 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
15481 | # most powerpc-linux boxes support dynamic linking these days and |
---|
15482 | # people can always --disable-shared, the test was removed, and we |
---|
15483 | # assume the GNU/Linux dynamic linker is in use. |
---|
15484 | dynamic_linker='GNU/Linux ld.so' |
---|
15485 | ;; |
---|
15486 | |
---|
15487 | knetbsd*-gnu) |
---|
15488 | version_type=linux |
---|
15489 | need_lib_prefix=no |
---|
15490 | need_version=no |
---|
15491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
15492 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15493 | shlibpath_var=LD_LIBRARY_PATH |
---|
15494 | shlibpath_overrides_runpath=no |
---|
15495 | hardcode_into_libs=yes |
---|
15496 | dynamic_linker='GNU ld.so' |
---|
15497 | ;; |
---|
15498 | |
---|
15499 | netbsd*) |
---|
15500 | version_type=sunos |
---|
15501 | need_lib_prefix=no |
---|
15502 | need_version=no |
---|
15503 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
15504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
15505 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
15506 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
15507 | else |
---|
15508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
15509 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15510 | dynamic_linker='NetBSD ld.elf_so' |
---|
15511 | fi |
---|
15512 | shlibpath_var=LD_LIBRARY_PATH |
---|
15513 | shlibpath_overrides_runpath=yes |
---|
15514 | hardcode_into_libs=yes |
---|
15515 | ;; |
---|
15516 | |
---|
15517 | newsos6) |
---|
15518 | version_type=linux |
---|
15519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15520 | shlibpath_var=LD_LIBRARY_PATH |
---|
15521 | shlibpath_overrides_runpath=yes |
---|
15522 | ;; |
---|
15523 | |
---|
15524 | nto-qnx*) |
---|
15525 | version_type=linux |
---|
15526 | need_lib_prefix=no |
---|
15527 | need_version=no |
---|
15528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15529 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15530 | shlibpath_var=LD_LIBRARY_PATH |
---|
15531 | shlibpath_overrides_runpath=yes |
---|
15532 | ;; |
---|
15533 | |
---|
15534 | openbsd*) |
---|
15535 | version_type=sunos |
---|
15536 | need_lib_prefix=no |
---|
15537 | need_version=no |
---|
15538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
15539 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
15540 | shlibpath_var=LD_LIBRARY_PATH |
---|
15541 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
15542 | case $host_os in |
---|
15543 | openbsd2.[89] | openbsd2.[89].*) |
---|
15544 | shlibpath_overrides_runpath=no |
---|
15545 | ;; |
---|
15546 | *) |
---|
15547 | shlibpath_overrides_runpath=yes |
---|
15548 | ;; |
---|
15549 | esac |
---|
15550 | else |
---|
15551 | shlibpath_overrides_runpath=yes |
---|
15552 | fi |
---|
15553 | ;; |
---|
15554 | |
---|
15555 | os2*) |
---|
15556 | libname_spec='$name' |
---|
15557 | shrext_cmds=".dll" |
---|
15558 | need_lib_prefix=no |
---|
15559 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
15560 | dynamic_linker='OS/2 ld.exe' |
---|
15561 | shlibpath_var=LIBPATH |
---|
15562 | ;; |
---|
15563 | |
---|
15564 | osf3* | osf4* | osf5*) |
---|
15565 | version_type=osf |
---|
15566 | need_lib_prefix=no |
---|
15567 | need_version=no |
---|
15568 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15570 | shlibpath_var=LD_LIBRARY_PATH |
---|
15571 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
15572 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
15573 | ;; |
---|
15574 | |
---|
15575 | sco3.2v5*) |
---|
15576 | version_type=osf |
---|
15577 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15579 | shlibpath_var=LD_LIBRARY_PATH |
---|
15580 | ;; |
---|
15581 | |
---|
15582 | solaris*) |
---|
15583 | version_type=linux |
---|
15584 | need_lib_prefix=no |
---|
15585 | need_version=no |
---|
15586 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15587 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15588 | shlibpath_var=LD_LIBRARY_PATH |
---|
15589 | shlibpath_overrides_runpath=yes |
---|
15590 | hardcode_into_libs=yes |
---|
15591 | # ldd complains unless libraries are executable |
---|
15592 | postinstall_cmds='chmod +x $lib' |
---|
15593 | ;; |
---|
15594 | |
---|
15595 | sunos4*) |
---|
15596 | version_type=sunos |
---|
15597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
15598 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
15599 | shlibpath_var=LD_LIBRARY_PATH |
---|
15600 | shlibpath_overrides_runpath=yes |
---|
15601 | if test "$with_gnu_ld" = yes; then |
---|
15602 | need_lib_prefix=no |
---|
15603 | fi |
---|
15604 | need_version=yes |
---|
15605 | ;; |
---|
15606 | |
---|
15607 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
15608 | version_type=linux |
---|
15609 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15610 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15611 | shlibpath_var=LD_LIBRARY_PATH |
---|
15612 | case $host_vendor in |
---|
15613 | sni) |
---|
15614 | shlibpath_overrides_runpath=no |
---|
15615 | need_lib_prefix=no |
---|
15616 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
15617 | runpath_var=LD_RUN_PATH |
---|
15618 | ;; |
---|
15619 | siemens) |
---|
15620 | need_lib_prefix=no |
---|
15621 | ;; |
---|
15622 | motorola) |
---|
15623 | need_lib_prefix=no |
---|
15624 | need_version=no |
---|
15625 | shlibpath_overrides_runpath=no |
---|
15626 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
15627 | ;; |
---|
15628 | esac |
---|
15629 | ;; |
---|
15630 | |
---|
15631 | sysv4*MP*) |
---|
15632 | if test -d /usr/nec ;then |
---|
15633 | version_type=linux |
---|
15634 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
15635 | soname_spec='$libname${shared_ext}.$major' |
---|
15636 | shlibpath_var=LD_LIBRARY_PATH |
---|
15637 | fi |
---|
15638 | ;; |
---|
15639 | |
---|
15640 | uts4*) |
---|
15641 | version_type=linux |
---|
15642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15643 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15644 | shlibpath_var=LD_LIBRARY_PATH |
---|
15645 | ;; |
---|
15646 | |
---|
15647 | *) |
---|
15648 | dynamic_linker=no |
---|
15649 | ;; |
---|
15650 | esac |
---|
15651 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
15652 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
15653 | test "$dynamic_linker" = no && can_build_shared=no |
---|
15654 | |
---|
15655 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
15656 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
15657 | hardcode_action_F77= |
---|
15658 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
---|
15659 | test -n "$runpath_var_F77" || \ |
---|
15660 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
---|
15661 | |
---|
15662 | # We can hardcode non-existant directories. |
---|
15663 | if test "$hardcode_direct_F77" != no && |
---|
15664 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
15665 | # have to relink, otherwise we might link with an installed library |
---|
15666 | # when we should be linking with a yet-to-be-installed one |
---|
15667 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
---|
15668 | test "$hardcode_minus_L_F77" != no; then |
---|
15669 | # Linking always hardcodes the temporary library directory. |
---|
15670 | hardcode_action_F77=relink |
---|
15671 | else |
---|
15672 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
15673 | hardcode_action_F77=immediate |
---|
15674 | fi |
---|
15675 | else |
---|
15676 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
15677 | # directories. |
---|
15678 | hardcode_action_F77=unsupported |
---|
15679 | fi |
---|
15680 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
---|
15681 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
---|
15682 | |
---|
15683 | if test "$hardcode_action_F77" = relink; then |
---|
15684 | # Fast installation is not supported |
---|
15685 | enable_fast_install=no |
---|
15686 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
15687 | test "$enable_shared" = no; then |
---|
15688 | # Fast installation is not necessary |
---|
15689 | enable_fast_install=needless |
---|
15690 | fi |
---|
15691 | |
---|
15692 | striplib= |
---|
15693 | old_striplib= |
---|
15694 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
15695 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
15696 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
15697 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
15698 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
15699 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
15700 | echo "${ECHO_T}yes" >&6 |
---|
15701 | else |
---|
15702 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
15703 | case $host_os in |
---|
15704 | darwin*) |
---|
15705 | if test -n "$STRIP" ; then |
---|
15706 | striplib="$STRIP -x" |
---|
15707 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
15708 | echo "${ECHO_T}yes" >&6 |
---|
15709 | else |
---|
15710 | echo "$as_me:$LINENO: result: no" >&5 |
---|
15711 | echo "${ECHO_T}no" >&6 |
---|
15712 | fi |
---|
15713 | ;; |
---|
15714 | *) |
---|
15715 | echo "$as_me:$LINENO: result: no" >&5 |
---|
15716 | echo "${ECHO_T}no" >&6 |
---|
15717 | ;; |
---|
15718 | esac |
---|
15719 | fi |
---|
15720 | |
---|
15721 | |
---|
15722 | |
---|
15723 | # The else clause should only fire when bootstrapping the |
---|
15724 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
15725 | # with your package, and you will get complaints that there are |
---|
15726 | # no rules to generate ltmain.sh. |
---|
15727 | if test -f "$ltmain"; then |
---|
15728 | # See if we are running on zsh, and set the options which allow our commands through |
---|
15729 | # without removal of \ escapes. |
---|
15730 | if test -n "${ZSH_VERSION+set}" ; then |
---|
15731 | setopt NO_GLOB_SUBST |
---|
15732 | fi |
---|
15733 | # Now quote all the things that may contain metacharacters while being |
---|
15734 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
15735 | # variables and quote the copies for generation of the libtool script. |
---|
15736 | for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \ |
---|
15737 | SED SHELL STRIP \ |
---|
15738 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
15739 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
15740 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
15741 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
15742 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
15743 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
15744 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
15745 | compiler_F77 \ |
---|
15746 | CC_F77 \ |
---|
15747 | LD_F77 \ |
---|
15748 | lt_prog_compiler_wl_F77 \ |
---|
15749 | lt_prog_compiler_pic_F77 \ |
---|
15750 | lt_prog_compiler_static_F77 \ |
---|
15751 | lt_prog_compiler_no_builtin_flag_F77 \ |
---|
15752 | export_dynamic_flag_spec_F77 \ |
---|
15753 | thread_safe_flag_spec_F77 \ |
---|
15754 | whole_archive_flag_spec_F77 \ |
---|
15755 | enable_shared_with_static_runtimes_F77 \ |
---|
15756 | old_archive_cmds_F77 \ |
---|
15757 | old_archive_from_new_cmds_F77 \ |
---|
15758 | predep_objects_F77 \ |
---|
15759 | postdep_objects_F77 \ |
---|
15760 | predeps_F77 \ |
---|
15761 | postdeps_F77 \ |
---|
15762 | compiler_lib_search_path_F77 \ |
---|
15763 | archive_cmds_F77 \ |
---|
15764 | archive_expsym_cmds_F77 \ |
---|
15765 | postinstall_cmds_F77 \ |
---|
15766 | postuninstall_cmds_F77 \ |
---|
15767 | old_archive_from_expsyms_cmds_F77 \ |
---|
15768 | allow_undefined_flag_F77 \ |
---|
15769 | no_undefined_flag_F77 \ |
---|
15770 | export_symbols_cmds_F77 \ |
---|
15771 | hardcode_libdir_flag_spec_F77 \ |
---|
15772 | hardcode_libdir_flag_spec_ld_F77 \ |
---|
15773 | hardcode_libdir_separator_F77 \ |
---|
15774 | hardcode_automatic_F77 \ |
---|
15775 | module_cmds_F77 \ |
---|
15776 | module_expsym_cmds_F77 \ |
---|
15777 | lt_cv_prog_compiler_c_o_F77 \ |
---|
15778 | exclude_expsyms_F77 \ |
---|
15779 | include_expsyms_F77; do |
---|
15780 | |
---|
15781 | case $var in |
---|
15782 | old_archive_cmds_F77 | \ |
---|
15783 | old_archive_from_new_cmds_F77 | \ |
---|
15784 | archive_cmds_F77 | \ |
---|
15785 | archive_expsym_cmds_F77 | \ |
---|
15786 | module_cmds_F77 | \ |
---|
15787 | module_expsym_cmds_F77 | \ |
---|
15788 | old_archive_from_expsyms_cmds_F77 | \ |
---|
15789 | export_symbols_cmds_F77 | \ |
---|
15790 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
15791 | postinstall_cmds | postuninstall_cmds | \ |
---|
15792 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
15793 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
15794 | # Double-quote double-evaled strings. |
---|
15795 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
15796 | ;; |
---|
15797 | *) |
---|
15798 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
15799 | ;; |
---|
15800 | esac |
---|
15801 | done |
---|
15802 | |
---|
15803 | case $lt_echo in |
---|
15804 | *'\$0 --fallback-echo"') |
---|
15805 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
15806 | ;; |
---|
15807 | esac |
---|
15808 | |
---|
15809 | cfgfile="$ofile" |
---|
15810 | |
---|
15811 | cat <<__EOF__ >> "$cfgfile" |
---|
15812 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
15813 | |
---|
15814 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
15815 | |
---|
15816 | # Shell to use when invoking shell scripts. |
---|
15817 | SHELL=$lt_SHELL |
---|
15818 | |
---|
15819 | # Whether or not to build shared libraries. |
---|
15820 | build_libtool_libs=$enable_shared |
---|
15821 | |
---|
15822 | # Whether or not to build static libraries. |
---|
15823 | build_old_libs=$enable_static |
---|
15824 | |
---|
15825 | # Whether or not to add -lc for building shared libraries. |
---|
15826 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
---|
15827 | |
---|
15828 | # Whether or not to disallow shared libs when runtime libs are static |
---|
15829 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
---|
15830 | |
---|
15831 | # Whether or not to optimize for fast installation. |
---|
15832 | fast_install=$enable_fast_install |
---|
15833 | |
---|
15834 | # The host system. |
---|
15835 | host_alias=$host_alias |
---|
15836 | host=$host |
---|
15837 | host_os=$host_os |
---|
15838 | |
---|
15839 | # The build system. |
---|
15840 | build_alias=$build_alias |
---|
15841 | build=$build |
---|
15842 | build_os=$build_os |
---|
15843 | |
---|
15844 | # An echo program that does not interpret backslashes. |
---|
15845 | echo=$lt_echo |
---|
15846 | |
---|
15847 | # The archiver. |
---|
15848 | AR=$lt_AR |
---|
15849 | AR_FLAGS=$lt_AR_FLAGS |
---|
15850 | |
---|
15851 | # A C compiler. |
---|
15852 | LTCC=$lt_LTCC |
---|
15853 | |
---|
15854 | # A language-specific compiler. |
---|
15855 | CC=$lt_compiler_F77 |
---|
15856 | |
---|
15857 | # Is the compiler the GNU C compiler? |
---|
15858 | with_gcc=$GCC_F77 |
---|
15859 | |
---|
15860 | # An ERE matcher. |
---|
15861 | EGREP=$lt_EGREP |
---|
15862 | |
---|
15863 | # The linker used to build libraries. |
---|
15864 | LD=$lt_LD_F77 |
---|
15865 | |
---|
15866 | # Whether we need hard or soft links. |
---|
15867 | LN_S=$lt_LN_S |
---|
15868 | |
---|
15869 | # A BSD-compatible nm program. |
---|
15870 | NM=$lt_NM |
---|
15871 | |
---|
15872 | # A symbol stripping program |
---|
15873 | STRIP=$lt_STRIP |
---|
15874 | |
---|
15875 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
15876 | MAGIC_CMD=$MAGIC_CMD |
---|
15877 | |
---|
15878 | # Used on cygwin: DLL creation program. |
---|
15879 | DLLTOOL="$DLLTOOL" |
---|
15880 | |
---|
15881 | # Used on cygwin: object dumper. |
---|
15882 | OBJDUMP="$OBJDUMP" |
---|
15883 | |
---|
15884 | # Used on cygwin: assembler. |
---|
15885 | AS=$lt_AS |
---|
15886 | |
---|
15887 | # The name of the directory that contains temporary libtool files. |
---|
15888 | objdir=$objdir |
---|
15889 | |
---|
15890 | # How to create reloadable object files. |
---|
15891 | reload_flag=$lt_reload_flag |
---|
15892 | reload_cmds=$lt_reload_cmds |
---|
15893 | |
---|
15894 | # How to pass a linker flag through the compiler. |
---|
15895 | wl=$lt_lt_prog_compiler_wl_F77 |
---|
15896 | |
---|
15897 | # Object file suffix (normally "o"). |
---|
15898 | objext="$ac_objext" |
---|
15899 | |
---|
15900 | # Old archive suffix (normally "a"). |
---|
15901 | libext="$libext" |
---|
15902 | |
---|
15903 | # Shared library suffix (normally ".so"). |
---|
15904 | shrext_cmds='$shrext_cmds' |
---|
15905 | |
---|
15906 | # Executable file suffix (normally ""). |
---|
15907 | exeext="$exeext" |
---|
15908 | |
---|
15909 | # Additional compiler flags for building library objects. |
---|
15910 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
---|
15911 | pic_mode=$pic_mode |
---|
15912 | |
---|
15913 | # What is the maximum length of a command? |
---|
15914 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
15915 | |
---|
15916 | # Does compiler simultaneously support -c and -o options? |
---|
15917 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
---|
15918 | |
---|
15919 | # Must we lock files when doing compilation ? |
---|
15920 | need_locks=$lt_need_locks |
---|
15921 | |
---|
15922 | # Do we need the lib prefix for modules? |
---|
15923 | need_lib_prefix=$need_lib_prefix |
---|
15924 | |
---|
15925 | # Do we need a version for libraries? |
---|
15926 | need_version=$need_version |
---|
15927 | |
---|
15928 | # Whether dlopen is supported. |
---|
15929 | dlopen_support=$enable_dlopen |
---|
15930 | |
---|
15931 | # Whether dlopen of programs is supported. |
---|
15932 | dlopen_self=$enable_dlopen_self |
---|
15933 | |
---|
15934 | # Whether dlopen of statically linked programs is supported. |
---|
15935 | dlopen_self_static=$enable_dlopen_self_static |
---|
15936 | |
---|
15937 | # Compiler flag to prevent dynamic linking. |
---|
15938 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
---|
15939 | |
---|
15940 | # Compiler flag to turn off builtin functions. |
---|
15941 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
---|
15942 | |
---|
15943 | # Compiler flag to allow reflexive dlopens. |
---|
15944 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
---|
15945 | |
---|
15946 | # Compiler flag to generate shared objects directly from archives. |
---|
15947 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
---|
15948 | |
---|
15949 | # Compiler flag to generate thread-safe objects. |
---|
15950 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
---|
15951 | |
---|
15952 | # Library versioning type. |
---|
15953 | version_type=$version_type |
---|
15954 | |
---|
15955 | # Format of library name prefix. |
---|
15956 | libname_spec=$lt_libname_spec |
---|
15957 | |
---|
15958 | # List of archive names. First name is the real one, the rest are links. |
---|
15959 | # The last name is the one that the linker finds with -lNAME. |
---|
15960 | library_names_spec=$lt_library_names_spec |
---|
15961 | |
---|
15962 | # The coded name of the library, if different from the real name. |
---|
15963 | soname_spec=$lt_soname_spec |
---|
15964 | |
---|
15965 | # Commands used to build and install an old-style archive. |
---|
15966 | RANLIB=$lt_RANLIB |
---|
15967 | old_archive_cmds=$lt_old_archive_cmds_F77 |
---|
15968 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
15969 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
15970 | |
---|
15971 | # Create an old-style archive from a shared archive. |
---|
15972 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
---|
15973 | |
---|
15974 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
15975 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
---|
15976 | |
---|
15977 | # Commands used to build and install a shared archive. |
---|
15978 | archive_cmds=$lt_archive_cmds_F77 |
---|
15979 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
---|
15980 | postinstall_cmds=$lt_postinstall_cmds |
---|
15981 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
15982 | |
---|
15983 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
15984 | module_cmds=$lt_module_cmds_F77 |
---|
15985 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
---|
15986 | |
---|
15987 | # Commands to strip libraries. |
---|
15988 | old_striplib=$lt_old_striplib |
---|
15989 | striplib=$lt_striplib |
---|
15990 | |
---|
15991 | # Dependencies to place before the objects being linked to create a |
---|
15992 | # shared library. |
---|
15993 | predep_objects=$lt_predep_objects_F77 |
---|
15994 | |
---|
15995 | # Dependencies to place after the objects being linked to create a |
---|
15996 | # shared library. |
---|
15997 | postdep_objects=$lt_postdep_objects_F77 |
---|
15998 | |
---|
15999 | # Dependencies to place before the objects being linked to create a |
---|
16000 | # shared library. |
---|
16001 | predeps=$lt_predeps_F77 |
---|
16002 | |
---|
16003 | # Dependencies to place after the objects being linked to create a |
---|
16004 | # shared library. |
---|
16005 | postdeps=$lt_postdeps_F77 |
---|
16006 | |
---|
16007 | # The library search path used internally by the compiler when linking |
---|
16008 | # a shared library. |
---|
16009 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
---|
16010 | |
---|
16011 | # Method to check whether dependent libraries are shared objects. |
---|
16012 | deplibs_check_method=$lt_deplibs_check_method |
---|
16013 | |
---|
16014 | # Command to use when deplibs_check_method == file_magic. |
---|
16015 | file_magic_cmd=$lt_file_magic_cmd |
---|
16016 | |
---|
16017 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
16018 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
---|
16019 | |
---|
16020 | # Flag that forces no undefined symbols. |
---|
16021 | no_undefined_flag=$lt_no_undefined_flag_F77 |
---|
16022 | |
---|
16023 | # Commands used to finish a libtool library installation in a directory. |
---|
16024 | finish_cmds=$lt_finish_cmds |
---|
16025 | |
---|
16026 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
16027 | finish_eval=$lt_finish_eval |
---|
16028 | |
---|
16029 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
16030 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
16031 | |
---|
16032 | # Transform the output of nm in a proper C declaration |
---|
16033 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
16034 | |
---|
16035 | # Transform the output of nm in a C name address pair |
---|
16036 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
16037 | |
---|
16038 | # This is the shared library runtime path variable. |
---|
16039 | runpath_var=$runpath_var |
---|
16040 | |
---|
16041 | # This is the shared library path variable. |
---|
16042 | shlibpath_var=$shlibpath_var |
---|
16043 | |
---|
16044 | # Is shlibpath searched before the hard-coded library search path? |
---|
16045 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
16046 | |
---|
16047 | # How to hardcode a shared library path into an executable. |
---|
16048 | hardcode_action=$hardcode_action_F77 |
---|
16049 | |
---|
16050 | # Whether we should hardcode library paths into libraries. |
---|
16051 | hardcode_into_libs=$hardcode_into_libs |
---|
16052 | |
---|
16053 | # Flag to hardcode \$libdir into a binary during linking. |
---|
16054 | # This must work even if \$libdir does not exist. |
---|
16055 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
---|
16056 | |
---|
16057 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
16058 | # a binary during linking. This must work even if \$libdir does |
---|
16059 | # not exist. |
---|
16060 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
---|
16061 | |
---|
16062 | # Whether we need a single -rpath flag with a separated argument. |
---|
16063 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
---|
16064 | |
---|
16065 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
16066 | # resulting binary. |
---|
16067 | hardcode_direct=$hardcode_direct_F77 |
---|
16068 | |
---|
16069 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
16070 | # resulting binary. |
---|
16071 | hardcode_minus_L=$hardcode_minus_L_F77 |
---|
16072 | |
---|
16073 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
16074 | # the resulting binary. |
---|
16075 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
---|
16076 | |
---|
16077 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
16078 | # and all subsequent libraries and executables linked against it. |
---|
16079 | hardcode_automatic=$hardcode_automatic_F77 |
---|
16080 | |
---|
16081 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
16082 | # restored at relink time. |
---|
16083 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
16084 | |
---|
16085 | # Whether libtool must link a program against all its dependency libraries. |
---|
16086 | link_all_deplibs=$link_all_deplibs_F77 |
---|
16087 | |
---|
16088 | # Compile-time system search path for libraries |
---|
16089 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
16090 | |
---|
16091 | # Run-time system search path for libraries |
---|
16092 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
16093 | |
---|
16094 | # Fix the shell variable \$srcfile for the compiler. |
---|
16095 | fix_srcfile_path="$fix_srcfile_path_F77" |
---|
16096 | |
---|
16097 | # Set to yes if exported symbols are required. |
---|
16098 | always_export_symbols=$always_export_symbols_F77 |
---|
16099 | |
---|
16100 | # The commands to list exported symbols. |
---|
16101 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
---|
16102 | |
---|
16103 | # The commands to extract the exported symbol list from a shared archive. |
---|
16104 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
16105 | |
---|
16106 | # Symbols that should not be listed in the preloaded symbols. |
---|
16107 | exclude_expsyms=$lt_exclude_expsyms_F77 |
---|
16108 | |
---|
16109 | # Symbols that must always be exported. |
---|
16110 | include_expsyms=$lt_include_expsyms_F77 |
---|
16111 | |
---|
16112 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
16113 | |
---|
16114 | __EOF__ |
---|
16115 | |
---|
16116 | |
---|
16117 | else |
---|
16118 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
16119 | # `config.status --recheck' to rerun these tests and create the |
---|
16120 | # libtool script then. |
---|
16121 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
16122 | if test -f "$ltmain_in"; then |
---|
16123 | test -f Makefile && make "$ltmain" |
---|
16124 | fi |
---|
16125 | fi |
---|
16126 | |
---|
16127 | |
---|
16128 | ac_ext=c |
---|
16129 | ac_cpp='$CPP $CPPFLAGS' |
---|
16130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
16131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
16132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
16133 | |
---|
16134 | CC="$lt_save_CC" |
---|
16135 | |
---|
16136 | else |
---|
16137 | tagname="" |
---|
16138 | fi |
---|
16139 | ;; |
---|
16140 | |
---|
16141 | GCJ) |
---|
16142 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
---|
16143 | |
---|
16144 | |
---|
16145 | |
---|
16146 | # Source file extension for Java test sources. |
---|
16147 | ac_ext=java |
---|
16148 | |
---|
16149 | # Object file extension for compiled Java test sources. |
---|
16150 | objext=o |
---|
16151 | objext_GCJ=$objext |
---|
16152 | |
---|
16153 | # Code to be used in simple compile tests |
---|
16154 | lt_simple_compile_test_code="class foo {}\n" |
---|
16155 | |
---|
16156 | # Code to be used in simple link tests |
---|
16157 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
---|
16158 | |
---|
16159 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
16160 | |
---|
16161 | # If no C compiler was specified, use CC. |
---|
16162 | LTCC=${LTCC-"$CC"} |
---|
16163 | |
---|
16164 | # Allow CC to be a program name with arguments. |
---|
16165 | compiler=$CC |
---|
16166 | |
---|
16167 | |
---|
16168 | # Allow CC to be a program name with arguments. |
---|
16169 | lt_save_CC="$CC" |
---|
16170 | CC=${GCJ-"gcj"} |
---|
16171 | compiler=$CC |
---|
16172 | compiler_GCJ=$CC |
---|
16173 | |
---|
16174 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
---|
16175 | archive_cmds_need_lc_GCJ=no |
---|
16176 | |
---|
16177 | |
---|
16178 | lt_prog_compiler_no_builtin_flag_GCJ= |
---|
16179 | |
---|
16180 | if test "$GCC" = yes; then |
---|
16181 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
---|
16182 | |
---|
16183 | |
---|
16184 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
16185 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
16186 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
16187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
16188 | else |
---|
16189 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
16190 | ac_outfile=conftest.$ac_objext |
---|
16191 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
16192 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
16193 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
16194 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
16195 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
16196 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
16197 | # The option is referenced via a variable to avoid confusing sed. |
---|
16198 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
16199 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
16200 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
16201 | -e 's:$: $lt_compiler_flag:'` |
---|
16202 | (eval echo "\"\$as_me:16202: $lt_compile\"" >&5) |
---|
16203 | (eval "$lt_compile" 2>conftest.err) |
---|
16204 | ac_status=$? |
---|
16205 | cat conftest.err >&5 |
---|
16206 | echo "$as_me:16206: \$? = $ac_status" >&5 |
---|
16207 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
16208 | # The compiler can only warn and ignore the option if not recognized |
---|
16209 | # So say no if there are warnings |
---|
16210 | if test ! -s conftest.err; then |
---|
16211 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
16212 | fi |
---|
16213 | fi |
---|
16214 | $rm conftest* |
---|
16215 | |
---|
16216 | fi |
---|
16217 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
16218 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
16219 | |
---|
16220 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
16221 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
---|
16222 | else |
---|
16223 | : |
---|
16224 | fi |
---|
16225 | |
---|
16226 | fi |
---|
16227 | |
---|
16228 | lt_prog_compiler_wl_GCJ= |
---|
16229 | lt_prog_compiler_pic_GCJ= |
---|
16230 | lt_prog_compiler_static_GCJ= |
---|
16231 | |
---|
16232 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
16233 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
16234 | |
---|
16235 | if test "$GCC" = yes; then |
---|
16236 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16237 | lt_prog_compiler_static_GCJ='-static' |
---|
16238 | |
---|
16239 | case $host_os in |
---|
16240 | aix*) |
---|
16241 | # All AIX code is PIC. |
---|
16242 | if test "$host_cpu" = ia64; then |
---|
16243 | # AIX 5 now supports IA64 processor |
---|
16244 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
16245 | fi |
---|
16246 | ;; |
---|
16247 | |
---|
16248 | amigaos*) |
---|
16249 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
16250 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
16251 | # like `-m68040'. |
---|
16252 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
---|
16253 | ;; |
---|
16254 | |
---|
16255 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
16256 | # PIC is the default for these OSes. |
---|
16257 | ;; |
---|
16258 | |
---|
16259 | mingw* | pw32* | os2*) |
---|
16260 | # This hack is so that the source file can tell whether it is being |
---|
16261 | # built for inclusion in a dll (and should export symbols for example). |
---|
16262 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
16263 | ;; |
---|
16264 | |
---|
16265 | darwin* | rhapsody*) |
---|
16266 | # PIC is the default on this platform |
---|
16267 | # Common symbols not allowed in MH_DYLIB files |
---|
16268 | lt_prog_compiler_pic_GCJ='-fno-common' |
---|
16269 | ;; |
---|
16270 | |
---|
16271 | msdosdjgpp*) |
---|
16272 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
16273 | # on systems that don't support them. |
---|
16274 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
16275 | enable_shared=no |
---|
16276 | ;; |
---|
16277 | |
---|
16278 | sysv4*MP*) |
---|
16279 | if test -d /usr/nec; then |
---|
16280 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
---|
16281 | fi |
---|
16282 | ;; |
---|
16283 | |
---|
16284 | hpux*) |
---|
16285 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
16286 | # not for PA HP-UX. |
---|
16287 | case "$host_cpu" in |
---|
16288 | hppa*64*|ia64*) |
---|
16289 | # +Z the default |
---|
16290 | ;; |
---|
16291 | *) |
---|
16292 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
16293 | ;; |
---|
16294 | esac |
---|
16295 | ;; |
---|
16296 | |
---|
16297 | *) |
---|
16298 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
16299 | ;; |
---|
16300 | esac |
---|
16301 | else |
---|
16302 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
16303 | case $host_os in |
---|
16304 | aix*) |
---|
16305 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16306 | if test "$host_cpu" = ia64; then |
---|
16307 | # AIX 5 now supports IA64 processor |
---|
16308 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
16309 | else |
---|
16310 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
---|
16311 | fi |
---|
16312 | ;; |
---|
16313 | darwin*) |
---|
16314 | # PIC is the default on this platform |
---|
16315 | # Common symbols not allowed in MH_DYLIB files |
---|
16316 | case "$cc_basename" in |
---|
16317 | xlc*) |
---|
16318 | lt_prog_compiler_pic_GCJ='-qnocommon' |
---|
16319 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16320 | ;; |
---|
16321 | esac |
---|
16322 | ;; |
---|
16323 | |
---|
16324 | mingw* | pw32* | os2*) |
---|
16325 | # This hack is so that the source file can tell whether it is being |
---|
16326 | # built for inclusion in a dll (and should export symbols for example). |
---|
16327 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
16328 | ;; |
---|
16329 | |
---|
16330 | hpux9* | hpux10* | hpux11*) |
---|
16331 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16332 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
16333 | # not for PA HP-UX. |
---|
16334 | case "$host_cpu" in |
---|
16335 | hppa*64*|ia64*) |
---|
16336 | # +Z the default |
---|
16337 | ;; |
---|
16338 | *) |
---|
16339 | lt_prog_compiler_pic_GCJ='+Z' |
---|
16340 | ;; |
---|
16341 | esac |
---|
16342 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
16343 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
---|
16344 | ;; |
---|
16345 | |
---|
16346 | irix5* | irix6* | nonstopux*) |
---|
16347 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16348 | # PIC (with -KPIC) is the default. |
---|
16349 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
16350 | ;; |
---|
16351 | |
---|
16352 | newsos6) |
---|
16353 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
16354 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
16355 | ;; |
---|
16356 | |
---|
16357 | linux*) |
---|
16358 | case $cc_basename in |
---|
16359 | icc* | ecc*) |
---|
16360 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16361 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
16362 | lt_prog_compiler_static_GCJ='-static' |
---|
16363 | ;; |
---|
16364 | pgcc | pgf77 | pgf90) |
---|
16365 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
16366 | # which looks to be a dead project) |
---|
16367 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16368 | lt_prog_compiler_pic_GCJ='-fpic' |
---|
16369 | lt_prog_compiler_static_GCJ='-static' |
---|
16370 | ;; |
---|
16371 | ccc*) |
---|
16372 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16373 | # All Alpha code is PIC. |
---|
16374 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
16375 | ;; |
---|
16376 | esac |
---|
16377 | ;; |
---|
16378 | |
---|
16379 | osf3* | osf4* | osf5*) |
---|
16380 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16381 | # All OSF/1 code is PIC. |
---|
16382 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
16383 | ;; |
---|
16384 | |
---|
16385 | sco3.2v5*) |
---|
16386 | lt_prog_compiler_pic_GCJ='-Kpic' |
---|
16387 | lt_prog_compiler_static_GCJ='-dn' |
---|
16388 | ;; |
---|
16389 | |
---|
16390 | solaris*) |
---|
16391 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16392 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
16393 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
16394 | ;; |
---|
16395 | |
---|
16396 | sunos4*) |
---|
16397 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
---|
16398 | lt_prog_compiler_pic_GCJ='-PIC' |
---|
16399 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
16400 | ;; |
---|
16401 | |
---|
16402 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
16403 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16404 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
16405 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
16406 | ;; |
---|
16407 | |
---|
16408 | sysv4*MP*) |
---|
16409 | if test -d /usr/nec ;then |
---|
16410 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
---|
16411 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
16412 | fi |
---|
16413 | ;; |
---|
16414 | |
---|
16415 | unicos*) |
---|
16416 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
16417 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
16418 | ;; |
---|
16419 | |
---|
16420 | uts4*) |
---|
16421 | lt_prog_compiler_pic_GCJ='-pic' |
---|
16422 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
16423 | ;; |
---|
16424 | |
---|
16425 | *) |
---|
16426 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
16427 | ;; |
---|
16428 | esac |
---|
16429 | fi |
---|
16430 | |
---|
16431 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
---|
16432 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
---|
16433 | |
---|
16434 | # |
---|
16435 | # Check to make sure the PIC flag actually works. |
---|
16436 | # |
---|
16437 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
---|
16438 | |
---|
16439 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
---|
16440 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
---|
16441 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
---|
16442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
16443 | else |
---|
16444 | lt_prog_compiler_pic_works_GCJ=no |
---|
16445 | ac_outfile=conftest.$ac_objext |
---|
16446 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
16447 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
---|
16448 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
16449 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
16450 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
16451 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
16452 | # The option is referenced via a variable to avoid confusing sed. |
---|
16453 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
16454 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
16455 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
16456 | -e 's:$: $lt_compiler_flag:'` |
---|
16457 | (eval echo "\"\$as_me:16457: $lt_compile\"" >&5) |
---|
16458 | (eval "$lt_compile" 2>conftest.err) |
---|
16459 | ac_status=$? |
---|
16460 | cat conftest.err >&5 |
---|
16461 | echo "$as_me:16461: \$? = $ac_status" >&5 |
---|
16462 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
16463 | # The compiler can only warn and ignore the option if not recognized |
---|
16464 | # So say no if there are warnings |
---|
16465 | if test ! -s conftest.err; then |
---|
16466 | lt_prog_compiler_pic_works_GCJ=yes |
---|
16467 | fi |
---|
16468 | fi |
---|
16469 | $rm conftest* |
---|
16470 | |
---|
16471 | fi |
---|
16472 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
---|
16473 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
---|
16474 | |
---|
16475 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
---|
16476 | case $lt_prog_compiler_pic_GCJ in |
---|
16477 | "" | " "*) ;; |
---|
16478 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
---|
16479 | esac |
---|
16480 | else |
---|
16481 | lt_prog_compiler_pic_GCJ= |
---|
16482 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
16483 | fi |
---|
16484 | |
---|
16485 | fi |
---|
16486 | case "$host_os" in |
---|
16487 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
16488 | *djgpp*) |
---|
16489 | lt_prog_compiler_pic_GCJ= |
---|
16490 | ;; |
---|
16491 | *) |
---|
16492 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
---|
16493 | ;; |
---|
16494 | esac |
---|
16495 | |
---|
16496 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
16497 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
16498 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
---|
16499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
16500 | else |
---|
16501 | lt_cv_prog_compiler_c_o_GCJ=no |
---|
16502 | $rm -r conftest 2>/dev/null |
---|
16503 | mkdir conftest |
---|
16504 | cd conftest |
---|
16505 | mkdir out |
---|
16506 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
16507 | |
---|
16508 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
16509 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
16510 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
16511 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
16512 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
16513 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
16514 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
16515 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
16516 | -e 's:$: $lt_compiler_flag:'` |
---|
16517 | (eval echo "\"\$as_me:16517: $lt_compile\"" >&5) |
---|
16518 | (eval "$lt_compile" 2>out/conftest.err) |
---|
16519 | ac_status=$? |
---|
16520 | cat out/conftest.err >&5 |
---|
16521 | echo "$as_me:16521: \$? = $ac_status" >&5 |
---|
16522 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
16523 | then |
---|
16524 | # The compiler can only warn and ignore the option if not recognized |
---|
16525 | # So say no if there are warnings |
---|
16526 | if test ! -s out/conftest.err; then |
---|
16527 | lt_cv_prog_compiler_c_o_GCJ=yes |
---|
16528 | fi |
---|
16529 | fi |
---|
16530 | chmod u+w . |
---|
16531 | $rm conftest* |
---|
16532 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
16533 | # template instantiation |
---|
16534 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
16535 | $rm out/* && rmdir out |
---|
16536 | cd .. |
---|
16537 | rmdir conftest |
---|
16538 | $rm conftest* |
---|
16539 | |
---|
16540 | fi |
---|
16541 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
---|
16542 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
---|
16543 | |
---|
16544 | |
---|
16545 | hard_links="nottested" |
---|
16546 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
---|
16547 | # do not overwrite the value of need_locks provided by the user |
---|
16548 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
16549 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
16550 | hard_links=yes |
---|
16551 | $rm conftest* |
---|
16552 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
16553 | touch conftest.a |
---|
16554 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
16555 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
16556 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
16557 | echo "${ECHO_T}$hard_links" >&6 |
---|
16558 | if test "$hard_links" = no; then |
---|
16559 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
16560 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
16561 | need_locks=warn |
---|
16562 | fi |
---|
16563 | else |
---|
16564 | need_locks=no |
---|
16565 | fi |
---|
16566 | |
---|
16567 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
16568 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
16569 | |
---|
16570 | runpath_var= |
---|
16571 | allow_undefined_flag_GCJ= |
---|
16572 | enable_shared_with_static_runtimes_GCJ=no |
---|
16573 | archive_cmds_GCJ= |
---|
16574 | archive_expsym_cmds_GCJ= |
---|
16575 | old_archive_From_new_cmds_GCJ= |
---|
16576 | old_archive_from_expsyms_cmds_GCJ= |
---|
16577 | export_dynamic_flag_spec_GCJ= |
---|
16578 | whole_archive_flag_spec_GCJ= |
---|
16579 | thread_safe_flag_spec_GCJ= |
---|
16580 | hardcode_libdir_flag_spec_GCJ= |
---|
16581 | hardcode_libdir_flag_spec_ld_GCJ= |
---|
16582 | hardcode_libdir_separator_GCJ= |
---|
16583 | hardcode_direct_GCJ=no |
---|
16584 | hardcode_minus_L_GCJ=no |
---|
16585 | hardcode_shlibpath_var_GCJ=unsupported |
---|
16586 | link_all_deplibs_GCJ=unknown |
---|
16587 | hardcode_automatic_GCJ=no |
---|
16588 | module_cmds_GCJ= |
---|
16589 | module_expsym_cmds_GCJ= |
---|
16590 | always_export_symbols_GCJ=no |
---|
16591 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
16592 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
16593 | # included in the symbol list |
---|
16594 | include_expsyms_GCJ= |
---|
16595 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
16596 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
16597 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
16598 | # as well as any symbol that contains `d'. |
---|
16599 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
---|
16600 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
16601 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
16602 | # the symbol is explicitly referenced. Since portable code cannot |
---|
16603 | # rely on this symbol name, it's probably fine to never include it in |
---|
16604 | # preloaded symbol tables. |
---|
16605 | extract_expsyms_cmds= |
---|
16606 | |
---|
16607 | case $host_os in |
---|
16608 | cygwin* | mingw* | pw32*) |
---|
16609 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
16610 | # When not using gcc, we currently assume that we are using |
---|
16611 | # Microsoft Visual C++. |
---|
16612 | if test "$GCC" != yes; then |
---|
16613 | with_gnu_ld=no |
---|
16614 | fi |
---|
16615 | ;; |
---|
16616 | openbsd*) |
---|
16617 | with_gnu_ld=no |
---|
16618 | ;; |
---|
16619 | esac |
---|
16620 | |
---|
16621 | ld_shlibs_GCJ=yes |
---|
16622 | if test "$with_gnu_ld" = yes; then |
---|
16623 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
16624 | wlarc='${wl}' |
---|
16625 | |
---|
16626 | # See if GNU ld supports shared libraries. |
---|
16627 | case $host_os in |
---|
16628 | aix3* | aix4* | aix5*) |
---|
16629 | # On AIX/PPC, the GNU linker is very broken |
---|
16630 | if test "$host_cpu" != ia64; then |
---|
16631 | ld_shlibs_GCJ=no |
---|
16632 | cat <<EOF 1>&2 |
---|
16633 | |
---|
16634 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
16635 | *** to be unable to reliably create shared libraries on AIX. |
---|
16636 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
16637 | *** really care for shared libraries, you may want to modify your PATH |
---|
16638 | *** so that a non-GNU linker is found, and then restart. |
---|
16639 | |
---|
16640 | EOF |
---|
16641 | fi |
---|
16642 | ;; |
---|
16643 | |
---|
16644 | amigaos*) |
---|
16645 | 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)' |
---|
16646 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16647 | hardcode_minus_L_GCJ=yes |
---|
16648 | |
---|
16649 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
16650 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
16651 | # to version 4, is to share data among multiple programs linked |
---|
16652 | # with the same dynamic library. Since this doesn't match the |
---|
16653 | # behavior of shared libraries on other platforms, we can't use |
---|
16654 | # them. |
---|
16655 | ld_shlibs_GCJ=no |
---|
16656 | ;; |
---|
16657 | |
---|
16658 | beos*) |
---|
16659 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16660 | allow_undefined_flag_GCJ=unsupported |
---|
16661 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
16662 | # support --undefined. This deserves some investigation. FIXME |
---|
16663 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16664 | else |
---|
16665 | ld_shlibs_GCJ=no |
---|
16666 | fi |
---|
16667 | ;; |
---|
16668 | |
---|
16669 | cygwin* | mingw* | pw32*) |
---|
16670 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
---|
16671 | # as there is no search path for DLLs. |
---|
16672 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16673 | allow_undefined_flag_GCJ=unsupported |
---|
16674 | always_export_symbols_GCJ=no |
---|
16675 | enable_shared_with_static_runtimes_GCJ=yes |
---|
16676 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
16677 | |
---|
16678 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
16679 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
16680 | # If the export-symbols file already is a .def file (1st line |
---|
16681 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
16682 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
16683 | cp $export_symbols $output_objdir/$soname.def; |
---|
16684 | else |
---|
16685 | echo EXPORTS > $output_objdir/$soname.def; |
---|
16686 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
16687 | fi~ |
---|
16688 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
16689 | else |
---|
16690 | ld_shlibs_GCJ=no |
---|
16691 | fi |
---|
16692 | ;; |
---|
16693 | |
---|
16694 | netbsd*) |
---|
16695 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
16696 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
16697 | wlarc= |
---|
16698 | else |
---|
16699 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16700 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
16701 | fi |
---|
16702 | ;; |
---|
16703 | |
---|
16704 | solaris* | sysv5*) |
---|
16705 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
16706 | ld_shlibs_GCJ=no |
---|
16707 | cat <<EOF 1>&2 |
---|
16708 | |
---|
16709 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
16710 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
16711 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
16712 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
16713 | *** your PATH or compiler configuration so that the native linker is |
---|
16714 | *** used, and then restart. |
---|
16715 | |
---|
16716 | EOF |
---|
16717 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16718 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16719 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
16720 | else |
---|
16721 | ld_shlibs_GCJ=no |
---|
16722 | fi |
---|
16723 | ;; |
---|
16724 | |
---|
16725 | sunos4*) |
---|
16726 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
16727 | wlarc= |
---|
16728 | hardcode_direct_GCJ=yes |
---|
16729 | hardcode_shlibpath_var_GCJ=no |
---|
16730 | ;; |
---|
16731 | |
---|
16732 | linux*) |
---|
16733 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16734 | tmp_addflag= |
---|
16735 | case $CC,$host_cpu in |
---|
16736 | pgf77* | pgf90* ) # Portland Group f77 and f90 compilers |
---|
16737 | tmp_addflag=' -fpic' ;; |
---|
16738 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
16739 | tmp_addflag=' -i_dynamic' ;; |
---|
16740 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
16741 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
16742 | ifc* | ifort*) # Intel Fortran compiler |
---|
16743 | tmp_addflag=' -nofor_main' ;; |
---|
16744 | esac |
---|
16745 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16746 | supports_anon_versioning=no |
---|
16747 | case `$LD -v 2>/dev/null` in |
---|
16748 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
16749 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
16750 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
16751 | *\ 2.11.*) ;; # other 2.11 versions |
---|
16752 | *) supports_anon_versioning=yes ;; |
---|
16753 | esac |
---|
16754 | if test $supports_anon_versioning = yes; then |
---|
16755 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
16756 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
16757 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
16758 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
16759 | else |
---|
16760 | archive_expsym_cmds_GCJ=$archive_cmds_GCJ |
---|
16761 | fi |
---|
16762 | else |
---|
16763 | ld_shlibs_GCJ=no |
---|
16764 | fi |
---|
16765 | ;; |
---|
16766 | |
---|
16767 | *) |
---|
16768 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16769 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16770 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
16771 | else |
---|
16772 | ld_shlibs_GCJ=no |
---|
16773 | fi |
---|
16774 | ;; |
---|
16775 | esac |
---|
16776 | |
---|
16777 | if test "$ld_shlibs_GCJ" = yes; then |
---|
16778 | runpath_var=LD_RUN_PATH |
---|
16779 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
---|
16780 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
---|
16781 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
16782 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
16783 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
16784 | else |
---|
16785 | whole_archive_flag_spec_GCJ= |
---|
16786 | fi |
---|
16787 | fi |
---|
16788 | else |
---|
16789 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
16790 | case $host_os in |
---|
16791 | aix3*) |
---|
16792 | allow_undefined_flag_GCJ=unsupported |
---|
16793 | always_export_symbols_GCJ=yes |
---|
16794 | 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' |
---|
16795 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
16796 | # are no directories specified by -L. |
---|
16797 | hardcode_minus_L_GCJ=yes |
---|
16798 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
16799 | # Neither direct hardcoding nor static linking is supported with a |
---|
16800 | # broken collect2. |
---|
16801 | hardcode_direct_GCJ=unsupported |
---|
16802 | fi |
---|
16803 | ;; |
---|
16804 | |
---|
16805 | aix4* | aix5*) |
---|
16806 | if test "$host_cpu" = ia64; then |
---|
16807 | # On IA64, the linker does run time linking by default, so we don't |
---|
16808 | # have to do anything special. |
---|
16809 | aix_use_runtimelinking=no |
---|
16810 | exp_sym_flag='-Bexport' |
---|
16811 | no_entry_flag="" |
---|
16812 | else |
---|
16813 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
16814 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
16815 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
16816 | 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' |
---|
16817 | else |
---|
16818 | 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' |
---|
16819 | fi |
---|
16820 | aix_use_runtimelinking=no |
---|
16821 | |
---|
16822 | # Test if we are trying to use run time linking or normal |
---|
16823 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
16824 | # need to do runtime linking. |
---|
16825 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
16826 | for ld_flag in $LDFLAGS; do |
---|
16827 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
16828 | aix_use_runtimelinking=yes |
---|
16829 | break |
---|
16830 | fi |
---|
16831 | done |
---|
16832 | esac |
---|
16833 | |
---|
16834 | exp_sym_flag='-bexport' |
---|
16835 | no_entry_flag='-bnoentry' |
---|
16836 | fi |
---|
16837 | |
---|
16838 | # When large executables or shared objects are built, AIX ld can |
---|
16839 | # have problems creating the table of contents. If linking a library |
---|
16840 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
16841 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
16842 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
16843 | |
---|
16844 | archive_cmds_GCJ='' |
---|
16845 | hardcode_direct_GCJ=yes |
---|
16846 | hardcode_libdir_separator_GCJ=':' |
---|
16847 | link_all_deplibs_GCJ=yes |
---|
16848 | |
---|
16849 | if test "$GCC" = yes; then |
---|
16850 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
16851 | # We only want to do this on AIX 4.2 and lower, the check |
---|
16852 | # below for broken collect2 doesn't work under 4.3+ |
---|
16853 | collect2name=`${CC} -print-prog-name=collect2` |
---|
16854 | if test -f "$collect2name" && \ |
---|
16855 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
16856 | then |
---|
16857 | # We have reworked collect2 |
---|
16858 | hardcode_direct_GCJ=yes |
---|
16859 | else |
---|
16860 | # We have old collect2 |
---|
16861 | hardcode_direct_GCJ=unsupported |
---|
16862 | # It fails to find uninstalled libraries when the uninstalled |
---|
16863 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
16864 | # to unsupported forces relinking |
---|
16865 | hardcode_minus_L_GCJ=yes |
---|
16866 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16867 | hardcode_libdir_separator_GCJ= |
---|
16868 | fi |
---|
16869 | esac |
---|
16870 | shared_flag='-shared' |
---|
16871 | if test "$aix_use_runtimelinking" = yes; then |
---|
16872 | shared_flag="$shared_flag "'${wl}-G' |
---|
16873 | fi |
---|
16874 | else |
---|
16875 | # not using gcc |
---|
16876 | if test "$host_cpu" = ia64; then |
---|
16877 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
16878 | # chokes on -Wl,-G. The following line is correct: |
---|
16879 | shared_flag='-G' |
---|
16880 | else |
---|
16881 | if test "$aix_use_runtimelinking" = yes; then |
---|
16882 | shared_flag='${wl}-G' |
---|
16883 | else |
---|
16884 | shared_flag='${wl}-bM:SRE' |
---|
16885 | fi |
---|
16886 | fi |
---|
16887 | fi |
---|
16888 | |
---|
16889 | # It seems that -bexpall does not export symbols beginning with |
---|
16890 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
16891 | always_export_symbols_GCJ=yes |
---|
16892 | if test "$aix_use_runtimelinking" = yes; then |
---|
16893 | # Warning - without using the other runtime loading flags (-brtl), |
---|
16894 | # -berok will link without error, but may produce a broken library. |
---|
16895 | allow_undefined_flag_GCJ='-berok' |
---|
16896 | # Determine the default libpath from the value encoded in an empty executable. |
---|
16897 | cat >conftest.$ac_ext <<_ACEOF |
---|
16898 | /* confdefs.h. */ |
---|
16899 | _ACEOF |
---|
16900 | cat confdefs.h >>conftest.$ac_ext |
---|
16901 | cat >>conftest.$ac_ext <<_ACEOF |
---|
16902 | /* end confdefs.h. */ |
---|
16903 | |
---|
16904 | int |
---|
16905 | main () |
---|
16906 | { |
---|
16907 | |
---|
16908 | ; |
---|
16909 | return 0; |
---|
16910 | } |
---|
16911 | _ACEOF |
---|
16912 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
16913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
16914 | (eval $ac_link) 2>conftest.er1 |
---|
16915 | ac_status=$? |
---|
16916 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
16917 | rm -f conftest.er1 |
---|
16918 | cat conftest.err >&5 |
---|
16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16920 | (exit $ac_status); } && |
---|
16921 | { ac_try='test -z "$ac_c_werror_flag" |
---|
16922 | || test ! -s conftest.err' |
---|
16923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16924 | (eval $ac_try) 2>&5 |
---|
16925 | ac_status=$? |
---|
16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16927 | (exit $ac_status); }; } && |
---|
16928 | { ac_try='test -s conftest$ac_exeext' |
---|
16929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16930 | (eval $ac_try) 2>&5 |
---|
16931 | ac_status=$? |
---|
16932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16933 | (exit $ac_status); }; }; then |
---|
16934 | |
---|
16935 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
16936 | }'` |
---|
16937 | # Check for a 64-bit object if we didn't find anything. |
---|
16938 | 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; } |
---|
16939 | }'`; fi |
---|
16940 | else |
---|
16941 | echo "$as_me: failed program was:" >&5 |
---|
16942 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
16943 | |
---|
16944 | fi |
---|
16945 | rm -f conftest.err conftest.$ac_objext \ |
---|
16946 | conftest$ac_exeext conftest.$ac_ext |
---|
16947 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
16948 | |
---|
16949 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
16950 | 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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
16951 | else |
---|
16952 | if test "$host_cpu" = ia64; then |
---|
16953 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
---|
16954 | allow_undefined_flag_GCJ="-z nodefs" |
---|
16955 | 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" |
---|
16956 | else |
---|
16957 | # Determine the default libpath from the value encoded in an empty executable. |
---|
16958 | cat >conftest.$ac_ext <<_ACEOF |
---|
16959 | /* confdefs.h. */ |
---|
16960 | _ACEOF |
---|
16961 | cat confdefs.h >>conftest.$ac_ext |
---|
16962 | cat >>conftest.$ac_ext <<_ACEOF |
---|
16963 | /* end confdefs.h. */ |
---|
16964 | |
---|
16965 | int |
---|
16966 | main () |
---|
16967 | { |
---|
16968 | |
---|
16969 | ; |
---|
16970 | return 0; |
---|
16971 | } |
---|
16972 | _ACEOF |
---|
16973 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
16974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
16975 | (eval $ac_link) 2>conftest.er1 |
---|
16976 | ac_status=$? |
---|
16977 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
16978 | rm -f conftest.er1 |
---|
16979 | cat conftest.err >&5 |
---|
16980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16981 | (exit $ac_status); } && |
---|
16982 | { ac_try='test -z "$ac_c_werror_flag" |
---|
16983 | || test ! -s conftest.err' |
---|
16984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16985 | (eval $ac_try) 2>&5 |
---|
16986 | ac_status=$? |
---|
16987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16988 | (exit $ac_status); }; } && |
---|
16989 | { ac_try='test -s conftest$ac_exeext' |
---|
16990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16991 | (eval $ac_try) 2>&5 |
---|
16992 | ac_status=$? |
---|
16993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16994 | (exit $ac_status); }; }; then |
---|
16995 | |
---|
16996 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
16997 | }'` |
---|
16998 | # Check for a 64-bit object if we didn't find anything. |
---|
16999 | 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; } |
---|
17000 | }'`; fi |
---|
17001 | else |
---|
17002 | echo "$as_me: failed program was:" >&5 |
---|
17003 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17004 | |
---|
17005 | fi |
---|
17006 | rm -f conftest.err conftest.$ac_objext \ |
---|
17007 | conftest$ac_exeext conftest.$ac_ext |
---|
17008 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
17009 | |
---|
17010 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
17011 | # Warning - without using the other run time loading flags, |
---|
17012 | # -berok will link without error, but may produce a broken library. |
---|
17013 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
---|
17014 | allow_undefined_flag_GCJ=' ${wl}-berok' |
---|
17015 | # -bexpall does not export symbols beginning with underscore (_) |
---|
17016 | always_export_symbols_GCJ=yes |
---|
17017 | # Exported symbols can be pulled into shared objects from archives |
---|
17018 | whole_archive_flag_spec_GCJ=' ' |
---|
17019 | archive_cmds_need_lc_GCJ=yes |
---|
17020 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
17021 | 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' |
---|
17022 | fi |
---|
17023 | fi |
---|
17024 | ;; |
---|
17025 | |
---|
17026 | amigaos*) |
---|
17027 | 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)' |
---|
17028 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17029 | hardcode_minus_L_GCJ=yes |
---|
17030 | # see comment about different semantics on the GNU ld section |
---|
17031 | ld_shlibs_GCJ=no |
---|
17032 | ;; |
---|
17033 | |
---|
17034 | bsdi[45]*) |
---|
17035 | export_dynamic_flag_spec_GCJ=-rdynamic |
---|
17036 | ;; |
---|
17037 | |
---|
17038 | cygwin* | mingw* | pw32*) |
---|
17039 | # When not using gcc, we currently assume that we are using |
---|
17040 | # Microsoft Visual C++. |
---|
17041 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
17042 | # no search path for DLLs. |
---|
17043 | hardcode_libdir_flag_spec_GCJ=' ' |
---|
17044 | allow_undefined_flag_GCJ=unsupported |
---|
17045 | # Tell ltmain to make .lib files, not .a files. |
---|
17046 | libext=lib |
---|
17047 | # Tell ltmain to make .dll files, not .so files. |
---|
17048 | shrext_cmds=".dll" |
---|
17049 | # FIXME: Setting linknames here is a bad hack. |
---|
17050 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
17051 | # The linker will automatically build a .lib file if we build a DLL. |
---|
17052 | old_archive_From_new_cmds_GCJ='true' |
---|
17053 | # FIXME: Should let the user specify the lib program. |
---|
17054 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
17055 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
---|
17056 | enable_shared_with_static_runtimes_GCJ=yes |
---|
17057 | ;; |
---|
17058 | |
---|
17059 | darwin* | rhapsody*) |
---|
17060 | case "$host_os" in |
---|
17061 | rhapsody* | darwin1.[012]) |
---|
17062 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
---|
17063 | ;; |
---|
17064 | *) # Darwin 1.3 on |
---|
17065 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
17066 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
17067 | else |
---|
17068 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
17069 | 10.[012]) |
---|
17070 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
17071 | ;; |
---|
17072 | 10.*) |
---|
17073 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
---|
17074 | ;; |
---|
17075 | esac |
---|
17076 | fi |
---|
17077 | ;; |
---|
17078 | esac |
---|
17079 | archive_cmds_need_lc_GCJ=no |
---|
17080 | hardcode_direct_GCJ=no |
---|
17081 | hardcode_automatic_GCJ=yes |
---|
17082 | hardcode_shlibpath_var_GCJ=unsupported |
---|
17083 | whole_archive_flag_spec_GCJ='' |
---|
17084 | link_all_deplibs_GCJ=yes |
---|
17085 | if test "$GCC" = yes ; then |
---|
17086 | output_verbose_link_cmd='echo' |
---|
17087 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
17088 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
17089 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
17090 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
17091 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
17092 | else |
---|
17093 | case "$cc_basename" in |
---|
17094 | xlc*) |
---|
17095 | output_verbose_link_cmd='echo' |
---|
17096 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
17097 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
17098 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
17099 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
17100 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
17101 | ;; |
---|
17102 | *) |
---|
17103 | ld_shlibs_GCJ=no |
---|
17104 | ;; |
---|
17105 | esac |
---|
17106 | fi |
---|
17107 | ;; |
---|
17108 | |
---|
17109 | dgux*) |
---|
17110 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17111 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17112 | hardcode_shlibpath_var_GCJ=no |
---|
17113 | ;; |
---|
17114 | |
---|
17115 | freebsd1*) |
---|
17116 | ld_shlibs_GCJ=no |
---|
17117 | ;; |
---|
17118 | |
---|
17119 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
17120 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
17121 | # does not break anything, and helps significantly (at the cost of a little |
---|
17122 | # extra space). |
---|
17123 | freebsd2.2*) |
---|
17124 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
17125 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
17126 | hardcode_direct_GCJ=yes |
---|
17127 | hardcode_shlibpath_var_GCJ=no |
---|
17128 | ;; |
---|
17129 | |
---|
17130 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
17131 | freebsd2*) |
---|
17132 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
17133 | hardcode_direct_GCJ=yes |
---|
17134 | hardcode_minus_L_GCJ=yes |
---|
17135 | hardcode_shlibpath_var_GCJ=no |
---|
17136 | ;; |
---|
17137 | |
---|
17138 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
17139 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
17140 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
17141 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
17142 | hardcode_direct_GCJ=yes |
---|
17143 | hardcode_shlibpath_var_GCJ=no |
---|
17144 | ;; |
---|
17145 | |
---|
17146 | hpux9*) |
---|
17147 | if test "$GCC" = yes; then |
---|
17148 | 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' |
---|
17149 | else |
---|
17150 | 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' |
---|
17151 | fi |
---|
17152 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
17153 | hardcode_libdir_separator_GCJ=: |
---|
17154 | hardcode_direct_GCJ=yes |
---|
17155 | |
---|
17156 | # hardcode_minus_L: Not really in the search PATH, |
---|
17157 | # but as the default location of the library. |
---|
17158 | hardcode_minus_L_GCJ=yes |
---|
17159 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
17160 | ;; |
---|
17161 | |
---|
17162 | hpux10* | hpux11*) |
---|
17163 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
17164 | case "$host_cpu" in |
---|
17165 | hppa*64*|ia64*) |
---|
17166 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
17167 | ;; |
---|
17168 | *) |
---|
17169 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
17170 | ;; |
---|
17171 | esac |
---|
17172 | else |
---|
17173 | case "$host_cpu" in |
---|
17174 | hppa*64*|ia64*) |
---|
17175 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17176 | ;; |
---|
17177 | *) |
---|
17178 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
17179 | ;; |
---|
17180 | esac |
---|
17181 | fi |
---|
17182 | if test "$with_gnu_ld" = no; then |
---|
17183 | case "$host_cpu" in |
---|
17184 | hppa*64*) |
---|
17185 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
17186 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
---|
17187 | hardcode_libdir_separator_GCJ=: |
---|
17188 | hardcode_direct_GCJ=no |
---|
17189 | hardcode_shlibpath_var_GCJ=no |
---|
17190 | ;; |
---|
17191 | ia64*) |
---|
17192 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17193 | hardcode_direct_GCJ=no |
---|
17194 | hardcode_shlibpath_var_GCJ=no |
---|
17195 | |
---|
17196 | # hardcode_minus_L: Not really in the search PATH, |
---|
17197 | # but as the default location of the library. |
---|
17198 | hardcode_minus_L_GCJ=yes |
---|
17199 | ;; |
---|
17200 | *) |
---|
17201 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
17202 | hardcode_libdir_separator_GCJ=: |
---|
17203 | hardcode_direct_GCJ=yes |
---|
17204 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
17205 | |
---|
17206 | # hardcode_minus_L: Not really in the search PATH, |
---|
17207 | # but as the default location of the library. |
---|
17208 | hardcode_minus_L_GCJ=yes |
---|
17209 | ;; |
---|
17210 | esac |
---|
17211 | fi |
---|
17212 | ;; |
---|
17213 | |
---|
17214 | irix5* | irix6* | nonstopux*) |
---|
17215 | if test "$GCC" = yes; then |
---|
17216 | 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' |
---|
17217 | else |
---|
17218 | 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' |
---|
17219 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
---|
17220 | fi |
---|
17221 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
17222 | hardcode_libdir_separator_GCJ=: |
---|
17223 | link_all_deplibs_GCJ=yes |
---|
17224 | ;; |
---|
17225 | |
---|
17226 | netbsd*) |
---|
17227 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
17228 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
17229 | else |
---|
17230 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
17231 | fi |
---|
17232 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
17233 | hardcode_direct_GCJ=yes |
---|
17234 | hardcode_shlibpath_var_GCJ=no |
---|
17235 | ;; |
---|
17236 | |
---|
17237 | newsos6) |
---|
17238 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17239 | hardcode_direct_GCJ=yes |
---|
17240 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
17241 | hardcode_libdir_separator_GCJ=: |
---|
17242 | hardcode_shlibpath_var_GCJ=no |
---|
17243 | ;; |
---|
17244 | |
---|
17245 | openbsd*) |
---|
17246 | hardcode_direct_GCJ=yes |
---|
17247 | hardcode_shlibpath_var_GCJ=no |
---|
17248 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
17249 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
17250 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
17251 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
17252 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
17253 | else |
---|
17254 | case $host_os in |
---|
17255 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
17256 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
17257 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
17258 | ;; |
---|
17259 | *) |
---|
17260 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
17261 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
17262 | ;; |
---|
17263 | esac |
---|
17264 | fi |
---|
17265 | ;; |
---|
17266 | |
---|
17267 | os2*) |
---|
17268 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17269 | hardcode_minus_L_GCJ=yes |
---|
17270 | allow_undefined_flag_GCJ=unsupported |
---|
17271 | 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' |
---|
17272 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
17273 | ;; |
---|
17274 | |
---|
17275 | osf3*) |
---|
17276 | if test "$GCC" = yes; then |
---|
17277 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
---|
17278 | 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' |
---|
17279 | else |
---|
17280 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
17281 | 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' |
---|
17282 | fi |
---|
17283 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
17284 | hardcode_libdir_separator_GCJ=: |
---|
17285 | ;; |
---|
17286 | |
---|
17287 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
17288 | if test "$GCC" = yes; then |
---|
17289 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
---|
17290 | 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' |
---|
17291 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
17292 | else |
---|
17293 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
17294 | 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' |
---|
17295 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
17296 | $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' |
---|
17297 | |
---|
17298 | # Both c and cxx compiler support -rpath directly |
---|
17299 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
---|
17300 | fi |
---|
17301 | hardcode_libdir_separator_GCJ=: |
---|
17302 | ;; |
---|
17303 | |
---|
17304 | sco3.2v5*) |
---|
17305 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17306 | hardcode_shlibpath_var_GCJ=no |
---|
17307 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
---|
17308 | runpath_var=LD_RUN_PATH |
---|
17309 | hardcode_runpath_var=yes |
---|
17310 | ;; |
---|
17311 | |
---|
17312 | solaris*) |
---|
17313 | no_undefined_flag_GCJ=' -z text' |
---|
17314 | if test "$GCC" = yes; then |
---|
17315 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
17316 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
17317 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
17318 | else |
---|
17319 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17320 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
17321 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
17322 | fi |
---|
17323 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
17324 | hardcode_shlibpath_var_GCJ=no |
---|
17325 | case $host_os in |
---|
17326 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
17327 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
17328 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; |
---|
17329 | esac |
---|
17330 | link_all_deplibs_GCJ=yes |
---|
17331 | ;; |
---|
17332 | |
---|
17333 | sunos4*) |
---|
17334 | if test "x$host_vendor" = xsequent; then |
---|
17335 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
17336 | # files that make .init and .fini sections work. |
---|
17337 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
17338 | else |
---|
17339 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
17340 | fi |
---|
17341 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17342 | hardcode_direct_GCJ=yes |
---|
17343 | hardcode_minus_L_GCJ=yes |
---|
17344 | hardcode_shlibpath_var_GCJ=no |
---|
17345 | ;; |
---|
17346 | |
---|
17347 | sysv4) |
---|
17348 | case $host_vendor in |
---|
17349 | sni) |
---|
17350 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17351 | hardcode_direct_GCJ=yes # is this really true??? |
---|
17352 | ;; |
---|
17353 | siemens) |
---|
17354 | ## LD is ld it makes a PLAMLIB |
---|
17355 | ## CC just makes a GrossModule. |
---|
17356 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
17357 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
---|
17358 | hardcode_direct_GCJ=no |
---|
17359 | ;; |
---|
17360 | motorola) |
---|
17361 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17362 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
---|
17363 | ;; |
---|
17364 | esac |
---|
17365 | runpath_var='LD_RUN_PATH' |
---|
17366 | hardcode_shlibpath_var_GCJ=no |
---|
17367 | ;; |
---|
17368 | |
---|
17369 | sysv4.3*) |
---|
17370 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17371 | hardcode_shlibpath_var_GCJ=no |
---|
17372 | export_dynamic_flag_spec_GCJ='-Bexport' |
---|
17373 | ;; |
---|
17374 | |
---|
17375 | sysv4*MP*) |
---|
17376 | if test -d /usr/nec; then |
---|
17377 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17378 | hardcode_shlibpath_var_GCJ=no |
---|
17379 | runpath_var=LD_RUN_PATH |
---|
17380 | hardcode_runpath_var=yes |
---|
17381 | ld_shlibs_GCJ=yes |
---|
17382 | fi |
---|
17383 | ;; |
---|
17384 | |
---|
17385 | sysv4.2uw2*) |
---|
17386 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
17387 | hardcode_direct_GCJ=yes |
---|
17388 | hardcode_minus_L_GCJ=no |
---|
17389 | hardcode_shlibpath_var_GCJ=no |
---|
17390 | hardcode_runpath_var=yes |
---|
17391 | runpath_var=LD_RUN_PATH |
---|
17392 | ;; |
---|
17393 | |
---|
17394 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
17395 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
---|
17396 | if test "$GCC" = yes; then |
---|
17397 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
17398 | else |
---|
17399 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
17400 | fi |
---|
17401 | runpath_var='LD_RUN_PATH' |
---|
17402 | hardcode_shlibpath_var_GCJ=no |
---|
17403 | ;; |
---|
17404 | |
---|
17405 | sysv5*) |
---|
17406 | no_undefined_flag_GCJ=' -z text' |
---|
17407 | # $CC -shared without GNU ld will not create a library from C++ |
---|
17408 | # object files and a static libstdc++, better avoid it by now |
---|
17409 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17410 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
17411 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
17412 | hardcode_libdir_flag_spec_GCJ= |
---|
17413 | hardcode_shlibpath_var_GCJ=no |
---|
17414 | runpath_var='LD_RUN_PATH' |
---|
17415 | ;; |
---|
17416 | |
---|
17417 | uts4*) |
---|
17418 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
17419 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17420 | hardcode_shlibpath_var_GCJ=no |
---|
17421 | ;; |
---|
17422 | |
---|
17423 | *) |
---|
17424 | ld_shlibs_GCJ=no |
---|
17425 | ;; |
---|
17426 | esac |
---|
17427 | fi |
---|
17428 | |
---|
17429 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
---|
17430 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
---|
17431 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
---|
17432 | |
---|
17433 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
17434 | if test "$GCC" = yes; then |
---|
17435 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
17436 | fi |
---|
17437 | |
---|
17438 | # |
---|
17439 | # Do we need to explicitly link libc? |
---|
17440 | # |
---|
17441 | case "x$archive_cmds_need_lc_GCJ" in |
---|
17442 | x|xyes) |
---|
17443 | # Assume -lc should be added |
---|
17444 | archive_cmds_need_lc_GCJ=yes |
---|
17445 | |
---|
17446 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
17447 | case $archive_cmds_GCJ in |
---|
17448 | *'~'*) |
---|
17449 | # FIXME: we may have to deal with multi-command sequences. |
---|
17450 | ;; |
---|
17451 | '$CC '*) |
---|
17452 | # Test whether the compiler implicitly links with -lc since on some |
---|
17453 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
17454 | # to ld, don't add -lc before -lgcc. |
---|
17455 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
17456 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
17457 | $rm conftest* |
---|
17458 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
17459 | |
---|
17460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
17461 | (eval $ac_compile) 2>&5 |
---|
17462 | ac_status=$? |
---|
17463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17464 | (exit $ac_status); } 2>conftest.err; then |
---|
17465 | soname=conftest |
---|
17466 | lib=conftest |
---|
17467 | libobjs=conftest.$ac_objext |
---|
17468 | deplibs= |
---|
17469 | wl=$lt_prog_compiler_wl_GCJ |
---|
17470 | compiler_flags=-v |
---|
17471 | linker_flags=-v |
---|
17472 | verstring= |
---|
17473 | output_objdir=. |
---|
17474 | libname=conftest |
---|
17475 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
---|
17476 | allow_undefined_flag_GCJ= |
---|
17477 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
17478 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
17479 | ac_status=$? |
---|
17480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17481 | (exit $ac_status); } |
---|
17482 | then |
---|
17483 | archive_cmds_need_lc_GCJ=no |
---|
17484 | else |
---|
17485 | archive_cmds_need_lc_GCJ=yes |
---|
17486 | fi |
---|
17487 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
---|
17488 | else |
---|
17489 | cat conftest.err 1>&5 |
---|
17490 | fi |
---|
17491 | $rm conftest* |
---|
17492 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
---|
17493 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
---|
17494 | ;; |
---|
17495 | esac |
---|
17496 | fi |
---|
17497 | ;; |
---|
17498 | esac |
---|
17499 | |
---|
17500 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
17501 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
17502 | library_names_spec= |
---|
17503 | libname_spec='lib$name' |
---|
17504 | soname_spec= |
---|
17505 | shrext_cmds=".so" |
---|
17506 | postinstall_cmds= |
---|
17507 | postuninstall_cmds= |
---|
17508 | finish_cmds= |
---|
17509 | finish_eval= |
---|
17510 | shlibpath_var= |
---|
17511 | shlibpath_overrides_runpath=unknown |
---|
17512 | version_type=none |
---|
17513 | dynamic_linker="$host_os ld.so" |
---|
17514 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
17515 | if test "$GCC" = yes; then |
---|
17516 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
17517 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
17518 | # if the path contains ";" then we assume it to be the separator |
---|
17519 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
17520 | # assumed that no part of a normal pathname contains ";" but that should |
---|
17521 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
17522 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
17523 | else |
---|
17524 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
17525 | fi |
---|
17526 | else |
---|
17527 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
17528 | fi |
---|
17529 | need_lib_prefix=unknown |
---|
17530 | hardcode_into_libs=no |
---|
17531 | |
---|
17532 | # when you set need_version to no, make sure it does not cause -set_version |
---|
17533 | # flags to be left without arguments |
---|
17534 | need_version=unknown |
---|
17535 | |
---|
17536 | case $host_os in |
---|
17537 | aix3*) |
---|
17538 | version_type=linux |
---|
17539 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
17540 | shlibpath_var=LIBPATH |
---|
17541 | |
---|
17542 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
17543 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17544 | ;; |
---|
17545 | |
---|
17546 | aix4* | aix5*) |
---|
17547 | version_type=linux |
---|
17548 | need_lib_prefix=no |
---|
17549 | need_version=no |
---|
17550 | hardcode_into_libs=yes |
---|
17551 | if test "$host_cpu" = ia64; then |
---|
17552 | # AIX 5 supports IA64 |
---|
17553 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
17554 | shlibpath_var=LD_LIBRARY_PATH |
---|
17555 | else |
---|
17556 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
17557 | # for dependence libraries. The import file would start with |
---|
17558 | # the line `#! .'. This would cause the generated library to |
---|
17559 | # depend on `.', always an invalid library. This was fixed in |
---|
17560 | # development snapshots of GCC prior to 3.0. |
---|
17561 | case $host_os in |
---|
17562 | aix4 | aix4.[01] | aix4.[01].*) |
---|
17563 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
17564 | echo ' yes ' |
---|
17565 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
17566 | : |
---|
17567 | else |
---|
17568 | can_build_shared=no |
---|
17569 | fi |
---|
17570 | ;; |
---|
17571 | esac |
---|
17572 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
17573 | # soname into executable. Probably we can add versioning support to |
---|
17574 | # collect2, so additional links can be useful in future. |
---|
17575 | if test "$aix_use_runtimelinking" = yes; then |
---|
17576 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
17577 | # instead of lib<name>.a to let people know that these are not |
---|
17578 | # typical AIX shared libraries. |
---|
17579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17580 | else |
---|
17581 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
17582 | # and later when we are not doing run time linking. |
---|
17583 | library_names_spec='${libname}${release}.a $libname.a' |
---|
17584 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17585 | fi |
---|
17586 | shlibpath_var=LIBPATH |
---|
17587 | fi |
---|
17588 | ;; |
---|
17589 | |
---|
17590 | amigaos*) |
---|
17591 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
17592 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
17593 | 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' |
---|
17594 | ;; |
---|
17595 | |
---|
17596 | beos*) |
---|
17597 | library_names_spec='${libname}${shared_ext}' |
---|
17598 | dynamic_linker="$host_os ld.so" |
---|
17599 | shlibpath_var=LIBRARY_PATH |
---|
17600 | ;; |
---|
17601 | |
---|
17602 | bsdi[45]*) |
---|
17603 | version_type=linux |
---|
17604 | need_version=no |
---|
17605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17606 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17607 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
17608 | shlibpath_var=LD_LIBRARY_PATH |
---|
17609 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
17610 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
17611 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
17612 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
17613 | # libtool to hard-code these into programs |
---|
17614 | ;; |
---|
17615 | |
---|
17616 | cygwin* | mingw* | pw32*) |
---|
17617 | version_type=windows |
---|
17618 | shrext_cmds=".dll" |
---|
17619 | need_version=no |
---|
17620 | need_lib_prefix=no |
---|
17621 | |
---|
17622 | case $GCC,$host_os in |
---|
17623 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
17624 | library_names_spec='$libname.dll.a' |
---|
17625 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
17626 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
17627 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
17628 | dldir=$destdir/`dirname \$dlpath`~ |
---|
17629 | test -d \$dldir || mkdir -p \$dldir~ |
---|
17630 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
17631 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
17632 | dlpath=$dir/\$dldll~ |
---|
17633 | $rm \$dlpath' |
---|
17634 | shlibpath_overrides_runpath=yes |
---|
17635 | |
---|
17636 | case $host_os in |
---|
17637 | cygwin*) |
---|
17638 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
17639 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
17640 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
17641 | ;; |
---|
17642 | mingw*) |
---|
17643 | # MinGW DLLs use traditional 'lib' prefix |
---|
17644 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
17645 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
17646 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
17647 | # It is most probably a Windows format PATH printed by |
---|
17648 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
17649 | # path with ; separators, and with drive letters. We can handle the |
---|
17650 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
17651 | # especially as we might pass files found there to a mingw objdump, |
---|
17652 | # which wouldn't understand a cygwinified path. Ahh. |
---|
17653 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
17654 | else |
---|
17655 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
17656 | fi |
---|
17657 | ;; |
---|
17658 | pw32*) |
---|
17659 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
17660 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
17661 | ;; |
---|
17662 | esac |
---|
17663 | ;; |
---|
17664 | |
---|
17665 | *) |
---|
17666 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
17667 | ;; |
---|
17668 | esac |
---|
17669 | dynamic_linker='Win32 ld.exe' |
---|
17670 | # FIXME: first we should search . and the directory the executable is in |
---|
17671 | shlibpath_var=PATH |
---|
17672 | ;; |
---|
17673 | |
---|
17674 | darwin* | rhapsody*) |
---|
17675 | dynamic_linker="$host_os dyld" |
---|
17676 | version_type=darwin |
---|
17677 | need_lib_prefix=no |
---|
17678 | need_version=no |
---|
17679 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
17680 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
17681 | shlibpath_overrides_runpath=yes |
---|
17682 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
17683 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
17684 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
17685 | if test "$GCC" = yes; then |
---|
17686 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
17687 | else |
---|
17688 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
17689 | fi |
---|
17690 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
17691 | ;; |
---|
17692 | |
---|
17693 | dgux*) |
---|
17694 | version_type=linux |
---|
17695 | need_lib_prefix=no |
---|
17696 | need_version=no |
---|
17697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
17698 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17699 | shlibpath_var=LD_LIBRARY_PATH |
---|
17700 | ;; |
---|
17701 | |
---|
17702 | freebsd1*) |
---|
17703 | dynamic_linker=no |
---|
17704 | ;; |
---|
17705 | |
---|
17706 | kfreebsd*-gnu) |
---|
17707 | version_type=linux |
---|
17708 | need_lib_prefix=no |
---|
17709 | need_version=no |
---|
17710 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17711 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17712 | shlibpath_var=LD_LIBRARY_PATH |
---|
17713 | shlibpath_overrides_runpath=no |
---|
17714 | hardcode_into_libs=yes |
---|
17715 | dynamic_linker='GNU ld.so' |
---|
17716 | ;; |
---|
17717 | |
---|
17718 | freebsd* | dragonfly*) |
---|
17719 | # DragonFly does not have aout. When/if they implement a new |
---|
17720 | # versioning mechanism, adjust this. |
---|
17721 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
17722 | version_type=freebsd-$objformat |
---|
17723 | case $version_type in |
---|
17724 | freebsd-elf*) |
---|
17725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
17726 | need_version=no |
---|
17727 | need_lib_prefix=no |
---|
17728 | ;; |
---|
17729 | freebsd-*) |
---|
17730 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
17731 | need_version=yes |
---|
17732 | ;; |
---|
17733 | esac |
---|
17734 | shlibpath_var=LD_LIBRARY_PATH |
---|
17735 | case $host_os in |
---|
17736 | freebsd2*) |
---|
17737 | shlibpath_overrides_runpath=yes |
---|
17738 | ;; |
---|
17739 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
17740 | shlibpath_overrides_runpath=yes |
---|
17741 | hardcode_into_libs=yes |
---|
17742 | ;; |
---|
17743 | *) # from 3.2 on |
---|
17744 | shlibpath_overrides_runpath=no |
---|
17745 | hardcode_into_libs=yes |
---|
17746 | ;; |
---|
17747 | esac |
---|
17748 | ;; |
---|
17749 | |
---|
17750 | gnu*) |
---|
17751 | version_type=linux |
---|
17752 | need_lib_prefix=no |
---|
17753 | need_version=no |
---|
17754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
17755 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17756 | shlibpath_var=LD_LIBRARY_PATH |
---|
17757 | hardcode_into_libs=yes |
---|
17758 | ;; |
---|
17759 | |
---|
17760 | hpux9* | hpux10* | hpux11*) |
---|
17761 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
17762 | # link against other versions. |
---|
17763 | version_type=sunos |
---|
17764 | need_lib_prefix=no |
---|
17765 | need_version=no |
---|
17766 | case "$host_cpu" in |
---|
17767 | ia64*) |
---|
17768 | shrext_cmds='.so' |
---|
17769 | hardcode_into_libs=yes |
---|
17770 | dynamic_linker="$host_os dld.so" |
---|
17771 | shlibpath_var=LD_LIBRARY_PATH |
---|
17772 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
17773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17774 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17775 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
17776 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
17777 | else |
---|
17778 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
17779 | fi |
---|
17780 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
17781 | ;; |
---|
17782 | hppa*64*) |
---|
17783 | shrext_cmds='.sl' |
---|
17784 | hardcode_into_libs=yes |
---|
17785 | dynamic_linker="$host_os dld.sl" |
---|
17786 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
17787 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
17788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17789 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17790 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
17791 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
17792 | ;; |
---|
17793 | *) |
---|
17794 | shrext_cmds='.sl' |
---|
17795 | dynamic_linker="$host_os dld.sl" |
---|
17796 | shlibpath_var=SHLIB_PATH |
---|
17797 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
17798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17799 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17800 | ;; |
---|
17801 | esac |
---|
17802 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
17803 | postinstall_cmds='chmod 555 $lib' |
---|
17804 | ;; |
---|
17805 | |
---|
17806 | irix5* | irix6* | nonstopux*) |
---|
17807 | case $host_os in |
---|
17808 | nonstopux*) version_type=nonstopux ;; |
---|
17809 | *) |
---|
17810 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
17811 | version_type=linux |
---|
17812 | else |
---|
17813 | version_type=irix |
---|
17814 | fi ;; |
---|
17815 | esac |
---|
17816 | need_lib_prefix=no |
---|
17817 | need_version=no |
---|
17818 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17819 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
17820 | case $host_os in |
---|
17821 | irix5* | nonstopux*) |
---|
17822 | libsuff= shlibsuff= |
---|
17823 | ;; |
---|
17824 | *) |
---|
17825 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
17826 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
17827 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
17828 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
17829 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
17830 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
17831 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
17832 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
17833 | esac |
---|
17834 | ;; |
---|
17835 | esac |
---|
17836 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
17837 | shlibpath_overrides_runpath=no |
---|
17838 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
17839 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
17840 | hardcode_into_libs=yes |
---|
17841 | ;; |
---|
17842 | |
---|
17843 | # No shared lib support for Linux oldld, aout, or coff. |
---|
17844 | linux*oldld* | linux*aout* | linux*coff*) |
---|
17845 | dynamic_linker=no |
---|
17846 | ;; |
---|
17847 | |
---|
17848 | # This must be Linux ELF. |
---|
17849 | linux*) |
---|
17850 | version_type=linux |
---|
17851 | need_lib_prefix=no |
---|
17852 | need_version=no |
---|
17853 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17854 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17855 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
17856 | shlibpath_var=LD_LIBRARY_PATH |
---|
17857 | shlibpath_overrides_runpath=no |
---|
17858 | # This implies no fast_install, which is unacceptable. |
---|
17859 | # Some rework will be needed to allow for fast_install |
---|
17860 | # before this can be enabled. |
---|
17861 | hardcode_into_libs=yes |
---|
17862 | |
---|
17863 | # Append ld.so.conf contents to the search path |
---|
17864 | if test -f /etc/ld.so.conf; then |
---|
17865 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
17866 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
17867 | fi |
---|
17868 | |
---|
17869 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
17870 | # powerpc, because MkLinux only supported shared libraries with the |
---|
17871 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
17872 | # most powerpc-linux boxes support dynamic linking these days and |
---|
17873 | # people can always --disable-shared, the test was removed, and we |
---|
17874 | # assume the GNU/Linux dynamic linker is in use. |
---|
17875 | dynamic_linker='GNU/Linux ld.so' |
---|
17876 | ;; |
---|
17877 | |
---|
17878 | knetbsd*-gnu) |
---|
17879 | version_type=linux |
---|
17880 | need_lib_prefix=no |
---|
17881 | need_version=no |
---|
17882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17883 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17884 | shlibpath_var=LD_LIBRARY_PATH |
---|
17885 | shlibpath_overrides_runpath=no |
---|
17886 | hardcode_into_libs=yes |
---|
17887 | dynamic_linker='GNU ld.so' |
---|
17888 | ;; |
---|
17889 | |
---|
17890 | netbsd*) |
---|
17891 | version_type=sunos |
---|
17892 | need_lib_prefix=no |
---|
17893 | need_version=no |
---|
17894 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
17895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
17896 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
17897 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
17898 | else |
---|
17899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17900 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17901 | dynamic_linker='NetBSD ld.elf_so' |
---|
17902 | fi |
---|
17903 | shlibpath_var=LD_LIBRARY_PATH |
---|
17904 | shlibpath_overrides_runpath=yes |
---|
17905 | hardcode_into_libs=yes |
---|
17906 | ;; |
---|
17907 | |
---|
17908 | newsos6) |
---|
17909 | version_type=linux |
---|
17910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17911 | shlibpath_var=LD_LIBRARY_PATH |
---|
17912 | shlibpath_overrides_runpath=yes |
---|
17913 | ;; |
---|
17914 | |
---|
17915 | nto-qnx*) |
---|
17916 | version_type=linux |
---|
17917 | need_lib_prefix=no |
---|
17918 | need_version=no |
---|
17919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17920 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17921 | shlibpath_var=LD_LIBRARY_PATH |
---|
17922 | shlibpath_overrides_runpath=yes |
---|
17923 | ;; |
---|
17924 | |
---|
17925 | openbsd*) |
---|
17926 | version_type=sunos |
---|
17927 | need_lib_prefix=no |
---|
17928 | need_version=no |
---|
17929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
17930 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
17931 | shlibpath_var=LD_LIBRARY_PATH |
---|
17932 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
17933 | case $host_os in |
---|
17934 | openbsd2.[89] | openbsd2.[89].*) |
---|
17935 | shlibpath_overrides_runpath=no |
---|
17936 | ;; |
---|
17937 | *) |
---|
17938 | shlibpath_overrides_runpath=yes |
---|
17939 | ;; |
---|
17940 | esac |
---|
17941 | else |
---|
17942 | shlibpath_overrides_runpath=yes |
---|
17943 | fi |
---|
17944 | ;; |
---|
17945 | |
---|
17946 | os2*) |
---|
17947 | libname_spec='$name' |
---|
17948 | shrext_cmds=".dll" |
---|
17949 | need_lib_prefix=no |
---|
17950 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
17951 | dynamic_linker='OS/2 ld.exe' |
---|
17952 | shlibpath_var=LIBPATH |
---|
17953 | ;; |
---|
17954 | |
---|
17955 | osf3* | osf4* | osf5*) |
---|
17956 | version_type=osf |
---|
17957 | need_lib_prefix=no |
---|
17958 | need_version=no |
---|
17959 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17961 | shlibpath_var=LD_LIBRARY_PATH |
---|
17962 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
17963 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
17964 | ;; |
---|
17965 | |
---|
17966 | sco3.2v5*) |
---|
17967 | version_type=osf |
---|
17968 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17970 | shlibpath_var=LD_LIBRARY_PATH |
---|
17971 | ;; |
---|
17972 | |
---|
17973 | solaris*) |
---|
17974 | version_type=linux |
---|
17975 | need_lib_prefix=no |
---|
17976 | need_version=no |
---|
17977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17978 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17979 | shlibpath_var=LD_LIBRARY_PATH |
---|
17980 | shlibpath_overrides_runpath=yes |
---|
17981 | hardcode_into_libs=yes |
---|
17982 | # ldd complains unless libraries are executable |
---|
17983 | postinstall_cmds='chmod +x $lib' |
---|
17984 | ;; |
---|
17985 | |
---|
17986 | sunos4*) |
---|
17987 | version_type=sunos |
---|
17988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
17989 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
17990 | shlibpath_var=LD_LIBRARY_PATH |
---|
17991 | shlibpath_overrides_runpath=yes |
---|
17992 | if test "$with_gnu_ld" = yes; then |
---|
17993 | need_lib_prefix=no |
---|
17994 | fi |
---|
17995 | need_version=yes |
---|
17996 | ;; |
---|
17997 | |
---|
17998 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
17999 | version_type=linux |
---|
18000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18001 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18002 | shlibpath_var=LD_LIBRARY_PATH |
---|
18003 | case $host_vendor in |
---|
18004 | sni) |
---|
18005 | shlibpath_overrides_runpath=no |
---|
18006 | need_lib_prefix=no |
---|
18007 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
18008 | runpath_var=LD_RUN_PATH |
---|
18009 | ;; |
---|
18010 | siemens) |
---|
18011 | need_lib_prefix=no |
---|
18012 | ;; |
---|
18013 | motorola) |
---|
18014 | need_lib_prefix=no |
---|
18015 | need_version=no |
---|
18016 | shlibpath_overrides_runpath=no |
---|
18017 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
18018 | ;; |
---|
18019 | esac |
---|
18020 | ;; |
---|
18021 | |
---|
18022 | sysv4*MP*) |
---|
18023 | if test -d /usr/nec ;then |
---|
18024 | version_type=linux |
---|
18025 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
18026 | soname_spec='$libname${shared_ext}.$major' |
---|
18027 | shlibpath_var=LD_LIBRARY_PATH |
---|
18028 | fi |
---|
18029 | ;; |
---|
18030 | |
---|
18031 | uts4*) |
---|
18032 | version_type=linux |
---|
18033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18034 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18035 | shlibpath_var=LD_LIBRARY_PATH |
---|
18036 | ;; |
---|
18037 | |
---|
18038 | *) |
---|
18039 | dynamic_linker=no |
---|
18040 | ;; |
---|
18041 | esac |
---|
18042 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
18043 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
18044 | test "$dynamic_linker" = no && can_build_shared=no |
---|
18045 | |
---|
18046 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
18047 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
18048 | hardcode_action_GCJ= |
---|
18049 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
---|
18050 | test -n "$runpath_var_GCJ" || \ |
---|
18051 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
---|
18052 | |
---|
18053 | # We can hardcode non-existant directories. |
---|
18054 | if test "$hardcode_direct_GCJ" != no && |
---|
18055 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
18056 | # have to relink, otherwise we might link with an installed library |
---|
18057 | # when we should be linking with a yet-to-be-installed one |
---|
18058 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
---|
18059 | test "$hardcode_minus_L_GCJ" != no; then |
---|
18060 | # Linking always hardcodes the temporary library directory. |
---|
18061 | hardcode_action_GCJ=relink |
---|
18062 | else |
---|
18063 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
18064 | hardcode_action_GCJ=immediate |
---|
18065 | fi |
---|
18066 | else |
---|
18067 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
18068 | # directories. |
---|
18069 | hardcode_action_GCJ=unsupported |
---|
18070 | fi |
---|
18071 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
---|
18072 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
---|
18073 | |
---|
18074 | if test "$hardcode_action_GCJ" = relink; then |
---|
18075 | # Fast installation is not supported |
---|
18076 | enable_fast_install=no |
---|
18077 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
18078 | test "$enable_shared" = no; then |
---|
18079 | # Fast installation is not necessary |
---|
18080 | enable_fast_install=needless |
---|
18081 | fi |
---|
18082 | |
---|
18083 | striplib= |
---|
18084 | old_striplib= |
---|
18085 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
18086 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
18087 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
18088 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
18089 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
18090 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
18091 | echo "${ECHO_T}yes" >&6 |
---|
18092 | else |
---|
18093 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
18094 | case $host_os in |
---|
18095 | darwin*) |
---|
18096 | if test -n "$STRIP" ; then |
---|
18097 | striplib="$STRIP -x" |
---|
18098 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
18099 | echo "${ECHO_T}yes" >&6 |
---|
18100 | else |
---|
18101 | echo "$as_me:$LINENO: result: no" >&5 |
---|
18102 | echo "${ECHO_T}no" >&6 |
---|
18103 | fi |
---|
18104 | ;; |
---|
18105 | *) |
---|
18106 | echo "$as_me:$LINENO: result: no" >&5 |
---|
18107 | echo "${ECHO_T}no" >&6 |
---|
18108 | ;; |
---|
18109 | esac |
---|
18110 | fi |
---|
18111 | |
---|
18112 | if test "x$enable_dlopen" != xyes; then |
---|
18113 | enable_dlopen=unknown |
---|
18114 | enable_dlopen_self=unknown |
---|
18115 | enable_dlopen_self_static=unknown |
---|
18116 | else |
---|
18117 | lt_cv_dlopen=no |
---|
18118 | lt_cv_dlopen_libs= |
---|
18119 | |
---|
18120 | case $host_os in |
---|
18121 | beos*) |
---|
18122 | lt_cv_dlopen="load_add_on" |
---|
18123 | lt_cv_dlopen_libs= |
---|
18124 | lt_cv_dlopen_self=yes |
---|
18125 | ;; |
---|
18126 | |
---|
18127 | mingw* | pw32*) |
---|
18128 | lt_cv_dlopen="LoadLibrary" |
---|
18129 | lt_cv_dlopen_libs= |
---|
18130 | ;; |
---|
18131 | |
---|
18132 | cygwin*) |
---|
18133 | lt_cv_dlopen="dlopen" |
---|
18134 | lt_cv_dlopen_libs= |
---|
18135 | ;; |
---|
18136 | |
---|
18137 | darwin*) |
---|
18138 | # if libdl is installed we need to link against it |
---|
18139 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
18140 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
18141 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
18142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18143 | else |
---|
18144 | ac_check_lib_save_LIBS=$LIBS |
---|
18145 | LIBS="-ldl $LIBS" |
---|
18146 | cat >conftest.$ac_ext <<_ACEOF |
---|
18147 | /* confdefs.h. */ |
---|
18148 | _ACEOF |
---|
18149 | cat confdefs.h >>conftest.$ac_ext |
---|
18150 | cat >>conftest.$ac_ext <<_ACEOF |
---|
18151 | /* end confdefs.h. */ |
---|
18152 | |
---|
18153 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
18154 | #ifdef __cplusplus |
---|
18155 | extern "C" |
---|
18156 | #endif |
---|
18157 | /* We use char because int might match the return type of a gcc2 |
---|
18158 | builtin and then its argument prototype would still apply. */ |
---|
18159 | char dlopen (); |
---|
18160 | int |
---|
18161 | main () |
---|
18162 | { |
---|
18163 | dlopen (); |
---|
18164 | ; |
---|
18165 | return 0; |
---|
18166 | } |
---|
18167 | _ACEOF |
---|
18168 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18170 | (eval $ac_link) 2>conftest.er1 |
---|
18171 | ac_status=$? |
---|
18172 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18173 | rm -f conftest.er1 |
---|
18174 | cat conftest.err >&5 |
---|
18175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18176 | (exit $ac_status); } && |
---|
18177 | { ac_try='test -z "$ac_c_werror_flag" |
---|
18178 | || test ! -s conftest.err' |
---|
18179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18180 | (eval $ac_try) 2>&5 |
---|
18181 | ac_status=$? |
---|
18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18183 | (exit $ac_status); }; } && |
---|
18184 | { ac_try='test -s conftest$ac_exeext' |
---|
18185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18186 | (eval $ac_try) 2>&5 |
---|
18187 | ac_status=$? |
---|
18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18189 | (exit $ac_status); }; }; then |
---|
18190 | ac_cv_lib_dl_dlopen=yes |
---|
18191 | else |
---|
18192 | echo "$as_me: failed program was:" >&5 |
---|
18193 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18194 | |
---|
18195 | ac_cv_lib_dl_dlopen=no |
---|
18196 | fi |
---|
18197 | rm -f conftest.err conftest.$ac_objext \ |
---|
18198 | conftest$ac_exeext conftest.$ac_ext |
---|
18199 | LIBS=$ac_check_lib_save_LIBS |
---|
18200 | fi |
---|
18201 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
18202 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
18203 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
18204 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
18205 | else |
---|
18206 | |
---|
18207 | lt_cv_dlopen="dyld" |
---|
18208 | lt_cv_dlopen_libs= |
---|
18209 | lt_cv_dlopen_self=yes |
---|
18210 | |
---|
18211 | fi |
---|
18212 | |
---|
18213 | ;; |
---|
18214 | |
---|
18215 | *) |
---|
18216 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
18217 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
18218 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
18219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18220 | else |
---|
18221 | cat >conftest.$ac_ext <<_ACEOF |
---|
18222 | /* confdefs.h. */ |
---|
18223 | _ACEOF |
---|
18224 | cat confdefs.h >>conftest.$ac_ext |
---|
18225 | cat >>conftest.$ac_ext <<_ACEOF |
---|
18226 | /* end confdefs.h. */ |
---|
18227 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
18228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
18229 | #define shl_load innocuous_shl_load |
---|
18230 | |
---|
18231 | /* System header to define __stub macros and hopefully few prototypes, |
---|
18232 | which can conflict with char shl_load (); below. |
---|
18233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
18234 | <limits.h> exists even on freestanding compilers. */ |
---|
18235 | |
---|
18236 | #ifdef __STDC__ |
---|
18237 | # include <limits.h> |
---|
18238 | #else |
---|
18239 | # include <assert.h> |
---|
18240 | #endif |
---|
18241 | |
---|
18242 | #undef shl_load |
---|
18243 | |
---|
18244 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
18245 | #ifdef __cplusplus |
---|
18246 | extern "C" |
---|
18247 | { |
---|
18248 | #endif |
---|
18249 | /* We use char because int might match the return type of a gcc2 |
---|
18250 | builtin and then its argument prototype would still apply. */ |
---|
18251 | char shl_load (); |
---|
18252 | /* The GNU C library defines this for functions which it implements |
---|
18253 | to always fail with ENOSYS. Some functions are actually named |
---|
18254 | something starting with __ and the normal name is an alias. */ |
---|
18255 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
18256 | choke me |
---|
18257 | #else |
---|
18258 | char (*f) () = shl_load; |
---|
18259 | #endif |
---|
18260 | #ifdef __cplusplus |
---|
18261 | } |
---|
18262 | #endif |
---|
18263 | |
---|
18264 | int |
---|
18265 | main () |
---|
18266 | { |
---|
18267 | return f != shl_load; |
---|
18268 | ; |
---|
18269 | return 0; |
---|
18270 | } |
---|
18271 | _ACEOF |
---|
18272 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18274 | (eval $ac_link) 2>conftest.er1 |
---|
18275 | ac_status=$? |
---|
18276 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18277 | rm -f conftest.er1 |
---|
18278 | cat conftest.err >&5 |
---|
18279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18280 | (exit $ac_status); } && |
---|
18281 | { ac_try='test -z "$ac_c_werror_flag" |
---|
18282 | || test ! -s conftest.err' |
---|
18283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18284 | (eval $ac_try) 2>&5 |
---|
18285 | ac_status=$? |
---|
18286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18287 | (exit $ac_status); }; } && |
---|
18288 | { ac_try='test -s conftest$ac_exeext' |
---|
18289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18290 | (eval $ac_try) 2>&5 |
---|
18291 | ac_status=$? |
---|
18292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18293 | (exit $ac_status); }; }; then |
---|
18294 | ac_cv_func_shl_load=yes |
---|
18295 | else |
---|
18296 | echo "$as_me: failed program was:" >&5 |
---|
18297 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18298 | |
---|
18299 | ac_cv_func_shl_load=no |
---|
18300 | fi |
---|
18301 | rm -f conftest.err conftest.$ac_objext \ |
---|
18302 | conftest$ac_exeext conftest.$ac_ext |
---|
18303 | fi |
---|
18304 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
18305 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
18306 | if test $ac_cv_func_shl_load = yes; then |
---|
18307 | lt_cv_dlopen="shl_load" |
---|
18308 | else |
---|
18309 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
18310 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
18311 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
18312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18313 | else |
---|
18314 | ac_check_lib_save_LIBS=$LIBS |
---|
18315 | LIBS="-ldld $LIBS" |
---|
18316 | cat >conftest.$ac_ext <<_ACEOF |
---|
18317 | /* confdefs.h. */ |
---|
18318 | _ACEOF |
---|
18319 | cat confdefs.h >>conftest.$ac_ext |
---|
18320 | cat >>conftest.$ac_ext <<_ACEOF |
---|
18321 | /* end confdefs.h. */ |
---|
18322 | |
---|
18323 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
18324 | #ifdef __cplusplus |
---|
18325 | extern "C" |
---|
18326 | #endif |
---|
18327 | /* We use char because int might match the return type of a gcc2 |
---|
18328 | builtin and then its argument prototype would still apply. */ |
---|
18329 | char shl_load (); |
---|
18330 | int |
---|
18331 | main () |
---|
18332 | { |
---|
18333 | shl_load (); |
---|
18334 | ; |
---|
18335 | return 0; |
---|
18336 | } |
---|
18337 | _ACEOF |
---|
18338 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18340 | (eval $ac_link) 2>conftest.er1 |
---|
18341 | ac_status=$? |
---|
18342 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18343 | rm -f conftest.er1 |
---|
18344 | cat conftest.err >&5 |
---|
18345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18346 | (exit $ac_status); } && |
---|
18347 | { ac_try='test -z "$ac_c_werror_flag" |
---|
18348 | || test ! -s conftest.err' |
---|
18349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18350 | (eval $ac_try) 2>&5 |
---|
18351 | ac_status=$? |
---|
18352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18353 | (exit $ac_status); }; } && |
---|
18354 | { ac_try='test -s conftest$ac_exeext' |
---|
18355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18356 | (eval $ac_try) 2>&5 |
---|
18357 | ac_status=$? |
---|
18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18359 | (exit $ac_status); }; }; then |
---|
18360 | ac_cv_lib_dld_shl_load=yes |
---|
18361 | else |
---|
18362 | echo "$as_me: failed program was:" >&5 |
---|
18363 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18364 | |
---|
18365 | ac_cv_lib_dld_shl_load=no |
---|
18366 | fi |
---|
18367 | rm -f conftest.err conftest.$ac_objext \ |
---|
18368 | conftest$ac_exeext conftest.$ac_ext |
---|
18369 | LIBS=$ac_check_lib_save_LIBS |
---|
18370 | fi |
---|
18371 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
18372 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
18373 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
18374 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
18375 | else |
---|
18376 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
18377 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
18378 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
18379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18380 | else |
---|
18381 | cat >conftest.$ac_ext <<_ACEOF |
---|
18382 | /* confdefs.h. */ |
---|
18383 | _ACEOF |
---|
18384 | cat confdefs.h >>conftest.$ac_ext |
---|
18385 | cat >>conftest.$ac_ext <<_ACEOF |
---|
18386 | /* end confdefs.h. */ |
---|
18387 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
18388 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
18389 | #define dlopen innocuous_dlopen |
---|
18390 | |
---|
18391 | /* System header to define __stub macros and hopefully few prototypes, |
---|
18392 | which can conflict with char dlopen (); below. |
---|
18393 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
18394 | <limits.h> exists even on freestanding compilers. */ |
---|
18395 | |
---|
18396 | #ifdef __STDC__ |
---|
18397 | # include <limits.h> |
---|
18398 | #else |
---|
18399 | # include <assert.h> |
---|
18400 | #endif |
---|
18401 | |
---|
18402 | #undef dlopen |
---|
18403 | |
---|
18404 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
18405 | #ifdef __cplusplus |
---|
18406 | extern "C" |
---|
18407 | { |
---|
18408 | #endif |
---|
18409 | /* We use char because int might match the return type of a gcc2 |
---|
18410 | builtin and then its argument prototype would still apply. */ |
---|
18411 | char dlopen (); |
---|
18412 | /* The GNU C library defines this for functions which it implements |
---|
18413 | to always fail with ENOSYS. Some functions are actually named |
---|
18414 | something starting with __ and the normal name is an alias. */ |
---|
18415 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
18416 | choke me |
---|
18417 | #else |
---|
18418 | char (*f) () = dlopen; |
---|
18419 | #endif |
---|
18420 | #ifdef __cplusplus |
---|
18421 | } |
---|
18422 | #endif |
---|
18423 | |
---|
18424 | int |
---|
18425 | main () |
---|
18426 | { |
---|
18427 | return f != dlopen; |
---|
18428 | ; |
---|
18429 | return 0; |
---|
18430 | } |
---|
18431 | _ACEOF |
---|
18432 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18434 | (eval $ac_link) 2>conftest.er1 |
---|
18435 | ac_status=$? |
---|
18436 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18437 | rm -f conftest.er1 |
---|
18438 | cat conftest.err >&5 |
---|
18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18440 | (exit $ac_status); } && |
---|
18441 | { ac_try='test -z "$ac_c_werror_flag" |
---|
18442 | || test ! -s conftest.err' |
---|
18443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18444 | (eval $ac_try) 2>&5 |
---|
18445 | ac_status=$? |
---|
18446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18447 | (exit $ac_status); }; } && |
---|
18448 | { ac_try='test -s conftest$ac_exeext' |
---|
18449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18450 | (eval $ac_try) 2>&5 |
---|
18451 | ac_status=$? |
---|
18452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18453 | (exit $ac_status); }; }; then |
---|
18454 | ac_cv_func_dlopen=yes |
---|
18455 | else |
---|
18456 | echo "$as_me: failed program was:" >&5 |
---|
18457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18458 | |
---|
18459 | ac_cv_func_dlopen=no |
---|
18460 | fi |
---|
18461 | rm -f conftest.err conftest.$ac_objext \ |
---|
18462 | conftest$ac_exeext conftest.$ac_ext |
---|
18463 | fi |
---|
18464 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
18465 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
18466 | if test $ac_cv_func_dlopen = yes; then |
---|
18467 | lt_cv_dlopen="dlopen" |
---|
18468 | else |
---|
18469 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
18470 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
18471 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
18472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18473 | else |
---|
18474 | ac_check_lib_save_LIBS=$LIBS |
---|
18475 | LIBS="-ldl $LIBS" |
---|
18476 | cat >conftest.$ac_ext <<_ACEOF |
---|
18477 | /* confdefs.h. */ |
---|
18478 | _ACEOF |
---|
18479 | cat confdefs.h >>conftest.$ac_ext |
---|
18480 | cat >>conftest.$ac_ext <<_ACEOF |
---|
18481 | /* end confdefs.h. */ |
---|
18482 | |
---|
18483 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
18484 | #ifdef __cplusplus |
---|
18485 | extern "C" |
---|
18486 | #endif |
---|
18487 | /* We use char because int might match the return type of a gcc2 |
---|
18488 | builtin and then its argument prototype would still apply. */ |
---|
18489 | char dlopen (); |
---|
18490 | int |
---|
18491 | main () |
---|
18492 | { |
---|
18493 | dlopen (); |
---|
18494 | ; |
---|
18495 | return 0; |
---|
18496 | } |
---|
18497 | _ACEOF |
---|
18498 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18500 | (eval $ac_link) 2>conftest.er1 |
---|
18501 | ac_status=$? |
---|
18502 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18503 | rm -f conftest.er1 |
---|
18504 | cat conftest.err >&5 |
---|
18505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18506 | (exit $ac_status); } && |
---|
18507 | { ac_try='test -z "$ac_c_werror_flag" |
---|
18508 | || test ! -s conftest.err' |
---|
18509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18510 | (eval $ac_try) 2>&5 |
---|
18511 | ac_status=$? |
---|
18512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18513 | (exit $ac_status); }; } && |
---|
18514 | { ac_try='test -s conftest$ac_exeext' |
---|
18515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18516 | (eval $ac_try) 2>&5 |
---|
18517 | ac_status=$? |
---|
18518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18519 | (exit $ac_status); }; }; then |
---|
18520 | ac_cv_lib_dl_dlopen=yes |
---|
18521 | else |
---|
18522 | echo "$as_me: failed program was:" >&5 |
---|
18523 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18524 | |
---|
18525 | ac_cv_lib_dl_dlopen=no |
---|
18526 | fi |
---|
18527 | rm -f conftest.err conftest.$ac_objext \ |
---|
18528 | conftest$ac_exeext conftest.$ac_ext |
---|
18529 | LIBS=$ac_check_lib_save_LIBS |
---|
18530 | fi |
---|
18531 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
18532 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
18533 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
18534 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
18535 | else |
---|
18536 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
18537 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
18538 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
18539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18540 | else |
---|
18541 | ac_check_lib_save_LIBS=$LIBS |
---|
18542 | LIBS="-lsvld $LIBS" |
---|
18543 | cat >conftest.$ac_ext <<_ACEOF |
---|
18544 | /* confdefs.h. */ |
---|
18545 | _ACEOF |
---|
18546 | cat confdefs.h >>conftest.$ac_ext |
---|
18547 | cat >>conftest.$ac_ext <<_ACEOF |
---|
18548 | /* end confdefs.h. */ |
---|
18549 | |
---|
18550 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
18551 | #ifdef __cplusplus |
---|
18552 | extern "C" |
---|
18553 | #endif |
---|
18554 | /* We use char because int might match the return type of a gcc2 |
---|
18555 | builtin and then its argument prototype would still apply. */ |
---|
18556 | char dlopen (); |
---|
18557 | int |
---|
18558 | main () |
---|
18559 | { |
---|
18560 | dlopen (); |
---|
18561 | ; |
---|
18562 | return 0; |
---|
18563 | } |
---|
18564 | _ACEOF |
---|
18565 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18567 | (eval $ac_link) 2>conftest.er1 |
---|
18568 | ac_status=$? |
---|
18569 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18570 | rm -f conftest.er1 |
---|
18571 | cat conftest.err >&5 |
---|
18572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18573 | (exit $ac_status); } && |
---|
18574 | { ac_try='test -z "$ac_c_werror_flag" |
---|
18575 | || test ! -s conftest.err' |
---|
18576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18577 | (eval $ac_try) 2>&5 |
---|
18578 | ac_status=$? |
---|
18579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18580 | (exit $ac_status); }; } && |
---|
18581 | { ac_try='test -s conftest$ac_exeext' |
---|
18582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18583 | (eval $ac_try) 2>&5 |
---|
18584 | ac_status=$? |
---|
18585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18586 | (exit $ac_status); }; }; then |
---|
18587 | ac_cv_lib_svld_dlopen=yes |
---|
18588 | else |
---|
18589 | echo "$as_me: failed program was:" >&5 |
---|
18590 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18591 | |
---|
18592 | ac_cv_lib_svld_dlopen=no |
---|
18593 | fi |
---|
18594 | rm -f conftest.err conftest.$ac_objext \ |
---|
18595 | conftest$ac_exeext conftest.$ac_ext |
---|
18596 | LIBS=$ac_check_lib_save_LIBS |
---|
18597 | fi |
---|
18598 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
18599 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
18600 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
18601 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
18602 | else |
---|
18603 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
18604 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
18605 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
18606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18607 | else |
---|
18608 | ac_check_lib_save_LIBS=$LIBS |
---|
18609 | LIBS="-ldld $LIBS" |
---|
18610 | cat >conftest.$ac_ext <<_ACEOF |
---|
18611 | /* confdefs.h. */ |
---|
18612 | _ACEOF |
---|
18613 | cat confdefs.h >>conftest.$ac_ext |
---|
18614 | cat >>conftest.$ac_ext <<_ACEOF |
---|
18615 | /* end confdefs.h. */ |
---|
18616 | |
---|
18617 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
18618 | #ifdef __cplusplus |
---|
18619 | extern "C" |
---|
18620 | #endif |
---|
18621 | /* We use char because int might match the return type of a gcc2 |
---|
18622 | builtin and then its argument prototype would still apply. */ |
---|
18623 | char dld_link (); |
---|
18624 | int |
---|
18625 | main () |
---|
18626 | { |
---|
18627 | dld_link (); |
---|
18628 | ; |
---|
18629 | return 0; |
---|
18630 | } |
---|
18631 | _ACEOF |
---|
18632 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18634 | (eval $ac_link) 2>conftest.er1 |
---|
18635 | ac_status=$? |
---|
18636 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18637 | rm -f conftest.er1 |
---|
18638 | cat conftest.err >&5 |
---|
18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18640 | (exit $ac_status); } && |
---|
18641 | { ac_try='test -z "$ac_c_werror_flag" |
---|
18642 | || test ! -s conftest.err' |
---|
18643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18644 | (eval $ac_try) 2>&5 |
---|
18645 | ac_status=$? |
---|
18646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18647 | (exit $ac_status); }; } && |
---|
18648 | { ac_try='test -s conftest$ac_exeext' |
---|
18649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18650 | (eval $ac_try) 2>&5 |
---|
18651 | ac_status=$? |
---|
18652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18653 | (exit $ac_status); }; }; then |
---|
18654 | ac_cv_lib_dld_dld_link=yes |
---|
18655 | else |
---|
18656 | echo "$as_me: failed program was:" >&5 |
---|
18657 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18658 | |
---|
18659 | ac_cv_lib_dld_dld_link=no |
---|
18660 | fi |
---|
18661 | rm -f conftest.err conftest.$ac_objext \ |
---|
18662 | conftest$ac_exeext conftest.$ac_ext |
---|
18663 | LIBS=$ac_check_lib_save_LIBS |
---|
18664 | fi |
---|
18665 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
18666 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
18667 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
18668 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
18669 | fi |
---|
18670 | |
---|
18671 | |
---|
18672 | fi |
---|
18673 | |
---|
18674 | |
---|
18675 | fi |
---|
18676 | |
---|
18677 | |
---|
18678 | fi |
---|
18679 | |
---|
18680 | |
---|
18681 | fi |
---|
18682 | |
---|
18683 | |
---|
18684 | fi |
---|
18685 | |
---|
18686 | ;; |
---|
18687 | esac |
---|
18688 | |
---|
18689 | if test "x$lt_cv_dlopen" != xno; then |
---|
18690 | enable_dlopen=yes |
---|
18691 | else |
---|
18692 | enable_dlopen=no |
---|
18693 | fi |
---|
18694 | |
---|
18695 | case $lt_cv_dlopen in |
---|
18696 | dlopen) |
---|
18697 | save_CPPFLAGS="$CPPFLAGS" |
---|
18698 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
18699 | |
---|
18700 | save_LDFLAGS="$LDFLAGS" |
---|
18701 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
18702 | |
---|
18703 | save_LIBS="$LIBS" |
---|
18704 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
18705 | |
---|
18706 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
18707 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
18708 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
18709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18710 | else |
---|
18711 | if test "$cross_compiling" = yes; then : |
---|
18712 | lt_cv_dlopen_self=cross |
---|
18713 | else |
---|
18714 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
18715 | lt_status=$lt_dlunknown |
---|
18716 | cat > conftest.$ac_ext <<EOF |
---|
18717 | #line 18717 "configure" |
---|
18718 | #include "confdefs.h" |
---|
18719 | |
---|
18720 | #if HAVE_DLFCN_H |
---|
18721 | #include <dlfcn.h> |
---|
18722 | #endif |
---|
18723 | |
---|
18724 | #include <stdio.h> |
---|
18725 | |
---|
18726 | #ifdef RTLD_GLOBAL |
---|
18727 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
18728 | #else |
---|
18729 | # ifdef DL_GLOBAL |
---|
18730 | # define LT_DLGLOBAL DL_GLOBAL |
---|
18731 | # else |
---|
18732 | # define LT_DLGLOBAL 0 |
---|
18733 | # endif |
---|
18734 | #endif |
---|
18735 | |
---|
18736 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
18737 | find out it does not work in some platform. */ |
---|
18738 | #ifndef LT_DLLAZY_OR_NOW |
---|
18739 | # ifdef RTLD_LAZY |
---|
18740 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
18741 | # else |
---|
18742 | # ifdef DL_LAZY |
---|
18743 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
18744 | # else |
---|
18745 | # ifdef RTLD_NOW |
---|
18746 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
18747 | # else |
---|
18748 | # ifdef DL_NOW |
---|
18749 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
18750 | # else |
---|
18751 | # define LT_DLLAZY_OR_NOW 0 |
---|
18752 | # endif |
---|
18753 | # endif |
---|
18754 | # endif |
---|
18755 | # endif |
---|
18756 | #endif |
---|
18757 | |
---|
18758 | #ifdef __cplusplus |
---|
18759 | extern "C" void exit (int); |
---|
18760 | #endif |
---|
18761 | |
---|
18762 | void fnord() { int i=42;} |
---|
18763 | int main () |
---|
18764 | { |
---|
18765 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
18766 | int status = $lt_dlunknown; |
---|
18767 | |
---|
18768 | if (self) |
---|
18769 | { |
---|
18770 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
18771 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
18772 | /* dlclose (self); */ |
---|
18773 | } |
---|
18774 | |
---|
18775 | exit (status); |
---|
18776 | } |
---|
18777 | EOF |
---|
18778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18779 | (eval $ac_link) 2>&5 |
---|
18780 | ac_status=$? |
---|
18781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18782 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
18783 | (./conftest; exit; ) 2>/dev/null |
---|
18784 | lt_status=$? |
---|
18785 | case x$lt_status in |
---|
18786 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
18787 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
18788 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
18789 | esac |
---|
18790 | else : |
---|
18791 | # compilation failed |
---|
18792 | lt_cv_dlopen_self=no |
---|
18793 | fi |
---|
18794 | fi |
---|
18795 | rm -fr conftest* |
---|
18796 | |
---|
18797 | |
---|
18798 | fi |
---|
18799 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
18800 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
18801 | |
---|
18802 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
18803 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
18804 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
18805 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
18806 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
18807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18808 | else |
---|
18809 | if test "$cross_compiling" = yes; then : |
---|
18810 | lt_cv_dlopen_self_static=cross |
---|
18811 | else |
---|
18812 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
18813 | lt_status=$lt_dlunknown |
---|
18814 | cat > conftest.$ac_ext <<EOF |
---|
18815 | #line 18815 "configure" |
---|
18816 | #include "confdefs.h" |
---|
18817 | |
---|
18818 | #if HAVE_DLFCN_H |
---|
18819 | #include <dlfcn.h> |
---|
18820 | #endif |
---|
18821 | |
---|
18822 | #include <stdio.h> |
---|
18823 | |
---|
18824 | #ifdef RTLD_GLOBAL |
---|
18825 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
18826 | #else |
---|
18827 | # ifdef DL_GLOBAL |
---|
18828 | # define LT_DLGLOBAL DL_GLOBAL |
---|
18829 | # else |
---|
18830 | # define LT_DLGLOBAL 0 |
---|
18831 | # endif |
---|
18832 | #endif |
---|
18833 | |
---|
18834 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
18835 | find out it does not work in some platform. */ |
---|
18836 | #ifndef LT_DLLAZY_OR_NOW |
---|
18837 | # ifdef RTLD_LAZY |
---|
18838 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
18839 | # else |
---|
18840 | # ifdef DL_LAZY |
---|
18841 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
18842 | # else |
---|
18843 | # ifdef RTLD_NOW |
---|
18844 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
18845 | # else |
---|
18846 | # ifdef DL_NOW |
---|
18847 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
18848 | # else |
---|
18849 | # define LT_DLLAZY_OR_NOW 0 |
---|
18850 | # endif |
---|
18851 | # endif |
---|
18852 | # endif |
---|
18853 | # endif |
---|
18854 | #endif |
---|
18855 | |
---|
18856 | #ifdef __cplusplus |
---|
18857 | extern "C" void exit (int); |
---|
18858 | #endif |
---|
18859 | |
---|
18860 | void fnord() { int i=42;} |
---|
18861 | int main () |
---|
18862 | { |
---|
18863 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
18864 | int status = $lt_dlunknown; |
---|
18865 | |
---|
18866 | if (self) |
---|
18867 | { |
---|
18868 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
18869 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
18870 | /* dlclose (self); */ |
---|
18871 | } |
---|
18872 | |
---|
18873 | exit (status); |
---|
18874 | } |
---|
18875 | EOF |
---|
18876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18877 | (eval $ac_link) 2>&5 |
---|
18878 | ac_status=$? |
---|
18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18880 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
18881 | (./conftest; exit; ) 2>/dev/null |
---|
18882 | lt_status=$? |
---|
18883 | case x$lt_status in |
---|
18884 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
18885 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
18886 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
18887 | esac |
---|
18888 | else : |
---|
18889 | # compilation failed |
---|
18890 | lt_cv_dlopen_self_static=no |
---|
18891 | fi |
---|
18892 | fi |
---|
18893 | rm -fr conftest* |
---|
18894 | |
---|
18895 | |
---|
18896 | fi |
---|
18897 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
18898 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
18899 | fi |
---|
18900 | |
---|
18901 | CPPFLAGS="$save_CPPFLAGS" |
---|
18902 | LDFLAGS="$save_LDFLAGS" |
---|
18903 | LIBS="$save_LIBS" |
---|
18904 | ;; |
---|
18905 | esac |
---|
18906 | |
---|
18907 | case $lt_cv_dlopen_self in |
---|
18908 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
18909 | *) enable_dlopen_self=unknown ;; |
---|
18910 | esac |
---|
18911 | |
---|
18912 | case $lt_cv_dlopen_self_static in |
---|
18913 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
18914 | *) enable_dlopen_self_static=unknown ;; |
---|
18915 | esac |
---|
18916 | fi |
---|
18917 | |
---|
18918 | |
---|
18919 | # The else clause should only fire when bootstrapping the |
---|
18920 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
18921 | # with your package, and you will get complaints that there are |
---|
18922 | # no rules to generate ltmain.sh. |
---|
18923 | if test -f "$ltmain"; then |
---|
18924 | # See if we are running on zsh, and set the options which allow our commands through |
---|
18925 | # without removal of \ escapes. |
---|
18926 | if test -n "${ZSH_VERSION+set}" ; then |
---|
18927 | setopt NO_GLOB_SUBST |
---|
18928 | fi |
---|
18929 | # Now quote all the things that may contain metacharacters while being |
---|
18930 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
18931 | # variables and quote the copies for generation of the libtool script. |
---|
18932 | for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \ |
---|
18933 | SED SHELL STRIP \ |
---|
18934 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
18935 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
18936 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
18937 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
18938 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
18939 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
18940 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
18941 | compiler_GCJ \ |
---|
18942 | CC_GCJ \ |
---|
18943 | LD_GCJ \ |
---|
18944 | lt_prog_compiler_wl_GCJ \ |
---|
18945 | lt_prog_compiler_pic_GCJ \ |
---|
18946 | lt_prog_compiler_static_GCJ \ |
---|
18947 | lt_prog_compiler_no_builtin_flag_GCJ \ |
---|
18948 | export_dynamic_flag_spec_GCJ \ |
---|
18949 | thread_safe_flag_spec_GCJ \ |
---|
18950 | whole_archive_flag_spec_GCJ \ |
---|
18951 | enable_shared_with_static_runtimes_GCJ \ |
---|
18952 | old_archive_cmds_GCJ \ |
---|
18953 | old_archive_from_new_cmds_GCJ \ |
---|
18954 | predep_objects_GCJ \ |
---|
18955 | postdep_objects_GCJ \ |
---|
18956 | predeps_GCJ \ |
---|
18957 | postdeps_GCJ \ |
---|
18958 | compiler_lib_search_path_GCJ \ |
---|
18959 | archive_cmds_GCJ \ |
---|
18960 | archive_expsym_cmds_GCJ \ |
---|
18961 | postinstall_cmds_GCJ \ |
---|
18962 | postuninstall_cmds_GCJ \ |
---|
18963 | old_archive_from_expsyms_cmds_GCJ \ |
---|
18964 | allow_undefined_flag_GCJ \ |
---|
18965 | no_undefined_flag_GCJ \ |
---|
18966 | export_symbols_cmds_GCJ \ |
---|
18967 | hardcode_libdir_flag_spec_GCJ \ |
---|
18968 | hardcode_libdir_flag_spec_ld_GCJ \ |
---|
18969 | hardcode_libdir_separator_GCJ \ |
---|
18970 | hardcode_automatic_GCJ \ |
---|
18971 | module_cmds_GCJ \ |
---|
18972 | module_expsym_cmds_GCJ \ |
---|
18973 | lt_cv_prog_compiler_c_o_GCJ \ |
---|
18974 | exclude_expsyms_GCJ \ |
---|
18975 | include_expsyms_GCJ; do |
---|
18976 | |
---|
18977 | case $var in |
---|
18978 | old_archive_cmds_GCJ | \ |
---|
18979 | old_archive_from_new_cmds_GCJ | \ |
---|
18980 | archive_cmds_GCJ | \ |
---|
18981 | archive_expsym_cmds_GCJ | \ |
---|
18982 | module_cmds_GCJ | \ |
---|
18983 | module_expsym_cmds_GCJ | \ |
---|
18984 | old_archive_from_expsyms_cmds_GCJ | \ |
---|
18985 | export_symbols_cmds_GCJ | \ |
---|
18986 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
18987 | postinstall_cmds | postuninstall_cmds | \ |
---|
18988 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
18989 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
18990 | # Double-quote double-evaled strings. |
---|
18991 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
18992 | ;; |
---|
18993 | *) |
---|
18994 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
18995 | ;; |
---|
18996 | esac |
---|
18997 | done |
---|
18998 | |
---|
18999 | case $lt_echo in |
---|
19000 | *'\$0 --fallback-echo"') |
---|
19001 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
19002 | ;; |
---|
19003 | esac |
---|
19004 | |
---|
19005 | cfgfile="$ofile" |
---|
19006 | |
---|
19007 | cat <<__EOF__ >> "$cfgfile" |
---|
19008 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
19009 | |
---|
19010 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
19011 | |
---|
19012 | # Shell to use when invoking shell scripts. |
---|
19013 | SHELL=$lt_SHELL |
---|
19014 | |
---|
19015 | # Whether or not to build shared libraries. |
---|
19016 | build_libtool_libs=$enable_shared |
---|
19017 | |
---|
19018 | # Whether or not to build static libraries. |
---|
19019 | build_old_libs=$enable_static |
---|
19020 | |
---|
19021 | # Whether or not to add -lc for building shared libraries. |
---|
19022 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
---|
19023 | |
---|
19024 | # Whether or not to disallow shared libs when runtime libs are static |
---|
19025 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
---|
19026 | |
---|
19027 | # Whether or not to optimize for fast installation. |
---|
19028 | fast_install=$enable_fast_install |
---|
19029 | |
---|
19030 | # The host system. |
---|
19031 | host_alias=$host_alias |
---|
19032 | host=$host |
---|
19033 | host_os=$host_os |
---|
19034 | |
---|
19035 | # The build system. |
---|
19036 | build_alias=$build_alias |
---|
19037 | build=$build |
---|
19038 | build_os=$build_os |
---|
19039 | |
---|
19040 | # An echo program that does not interpret backslashes. |
---|
19041 | echo=$lt_echo |
---|
19042 | |
---|
19043 | # The archiver. |
---|
19044 | AR=$lt_AR |
---|
19045 | AR_FLAGS=$lt_AR_FLAGS |
---|
19046 | |
---|
19047 | # A C compiler. |
---|
19048 | LTCC=$lt_LTCC |
---|
19049 | |
---|
19050 | # A language-specific compiler. |
---|
19051 | CC=$lt_compiler_GCJ |
---|
19052 | |
---|
19053 | # Is the compiler the GNU C compiler? |
---|
19054 | with_gcc=$GCC_GCJ |
---|
19055 | |
---|
19056 | # An ERE matcher. |
---|
19057 | EGREP=$lt_EGREP |
---|
19058 | |
---|
19059 | # The linker used to build libraries. |
---|
19060 | LD=$lt_LD_GCJ |
---|
19061 | |
---|
19062 | # Whether we need hard or soft links. |
---|
19063 | LN_S=$lt_LN_S |
---|
19064 | |
---|
19065 | # A BSD-compatible nm program. |
---|
19066 | NM=$lt_NM |
---|
19067 | |
---|
19068 | # A symbol stripping program |
---|
19069 | STRIP=$lt_STRIP |
---|
19070 | |
---|
19071 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
19072 | MAGIC_CMD=$MAGIC_CMD |
---|
19073 | |
---|
19074 | # Used on cygwin: DLL creation program. |
---|
19075 | DLLTOOL="$DLLTOOL" |
---|
19076 | |
---|
19077 | # Used on cygwin: object dumper. |
---|
19078 | OBJDUMP="$OBJDUMP" |
---|
19079 | |
---|
19080 | # Used on cygwin: assembler. |
---|
19081 | AS=$lt_AS |
---|
19082 | |
---|
19083 | # The name of the directory that contains temporary libtool files. |
---|
19084 | objdir=$objdir |
---|
19085 | |
---|
19086 | # How to create reloadable object files. |
---|
19087 | reload_flag=$lt_reload_flag |
---|
19088 | reload_cmds=$lt_reload_cmds |
---|
19089 | |
---|
19090 | # How to pass a linker flag through the compiler. |
---|
19091 | wl=$lt_lt_prog_compiler_wl_GCJ |
---|
19092 | |
---|
19093 | # Object file suffix (normally "o"). |
---|
19094 | objext="$ac_objext" |
---|
19095 | |
---|
19096 | # Old archive suffix (normally "a"). |
---|
19097 | libext="$libext" |
---|
19098 | |
---|
19099 | # Shared library suffix (normally ".so"). |
---|
19100 | shrext_cmds='$shrext_cmds' |
---|
19101 | |
---|
19102 | # Executable file suffix (normally ""). |
---|
19103 | exeext="$exeext" |
---|
19104 | |
---|
19105 | # Additional compiler flags for building library objects. |
---|
19106 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
---|
19107 | pic_mode=$pic_mode |
---|
19108 | |
---|
19109 | # What is the maximum length of a command? |
---|
19110 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
19111 | |
---|
19112 | # Does compiler simultaneously support -c and -o options? |
---|
19113 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
---|
19114 | |
---|
19115 | # Must we lock files when doing compilation ? |
---|
19116 | need_locks=$lt_need_locks |
---|
19117 | |
---|
19118 | # Do we need the lib prefix for modules? |
---|
19119 | need_lib_prefix=$need_lib_prefix |
---|
19120 | |
---|
19121 | # Do we need a version for libraries? |
---|
19122 | need_version=$need_version |
---|
19123 | |
---|
19124 | # Whether dlopen is supported. |
---|
19125 | dlopen_support=$enable_dlopen |
---|
19126 | |
---|
19127 | # Whether dlopen of programs is supported. |
---|
19128 | dlopen_self=$enable_dlopen_self |
---|
19129 | |
---|
19130 | # Whether dlopen of statically linked programs is supported. |
---|
19131 | dlopen_self_static=$enable_dlopen_self_static |
---|
19132 | |
---|
19133 | # Compiler flag to prevent dynamic linking. |
---|
19134 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
---|
19135 | |
---|
19136 | # Compiler flag to turn off builtin functions. |
---|
19137 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
---|
19138 | |
---|
19139 | # Compiler flag to allow reflexive dlopens. |
---|
19140 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
---|
19141 | |
---|
19142 | # Compiler flag to generate shared objects directly from archives. |
---|
19143 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
---|
19144 | |
---|
19145 | # Compiler flag to generate thread-safe objects. |
---|
19146 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
---|
19147 | |
---|
19148 | # Library versioning type. |
---|
19149 | version_type=$version_type |
---|
19150 | |
---|
19151 | # Format of library name prefix. |
---|
19152 | libname_spec=$lt_libname_spec |
---|
19153 | |
---|
19154 | # List of archive names. First name is the real one, the rest are links. |
---|
19155 | # The last name is the one that the linker finds with -lNAME. |
---|
19156 | library_names_spec=$lt_library_names_spec |
---|
19157 | |
---|
19158 | # The coded name of the library, if different from the real name. |
---|
19159 | soname_spec=$lt_soname_spec |
---|
19160 | |
---|
19161 | # Commands used to build and install an old-style archive. |
---|
19162 | RANLIB=$lt_RANLIB |
---|
19163 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
---|
19164 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
19165 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
19166 | |
---|
19167 | # Create an old-style archive from a shared archive. |
---|
19168 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
---|
19169 | |
---|
19170 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
19171 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
---|
19172 | |
---|
19173 | # Commands used to build and install a shared archive. |
---|
19174 | archive_cmds=$lt_archive_cmds_GCJ |
---|
19175 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
---|
19176 | postinstall_cmds=$lt_postinstall_cmds |
---|
19177 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
19178 | |
---|
19179 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
19180 | module_cmds=$lt_module_cmds_GCJ |
---|
19181 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
---|
19182 | |
---|
19183 | # Commands to strip libraries. |
---|
19184 | old_striplib=$lt_old_striplib |
---|
19185 | striplib=$lt_striplib |
---|
19186 | |
---|
19187 | # Dependencies to place before the objects being linked to create a |
---|
19188 | # shared library. |
---|
19189 | predep_objects=$lt_predep_objects_GCJ |
---|
19190 | |
---|
19191 | # Dependencies to place after the objects being linked to create a |
---|
19192 | # shared library. |
---|
19193 | postdep_objects=$lt_postdep_objects_GCJ |
---|
19194 | |
---|
19195 | # Dependencies to place before the objects being linked to create a |
---|
19196 | # shared library. |
---|
19197 | predeps=$lt_predeps_GCJ |
---|
19198 | |
---|
19199 | # Dependencies to place after the objects being linked to create a |
---|
19200 | # shared library. |
---|
19201 | postdeps=$lt_postdeps_GCJ |
---|
19202 | |
---|
19203 | # The library search path used internally by the compiler when linking |
---|
19204 | # a shared library. |
---|
19205 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
---|
19206 | |
---|
19207 | # Method to check whether dependent libraries are shared objects. |
---|
19208 | deplibs_check_method=$lt_deplibs_check_method |
---|
19209 | |
---|
19210 | # Command to use when deplibs_check_method == file_magic. |
---|
19211 | file_magic_cmd=$lt_file_magic_cmd |
---|
19212 | |
---|
19213 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
19214 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
---|
19215 | |
---|
19216 | # Flag that forces no undefined symbols. |
---|
19217 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
---|
19218 | |
---|
19219 | # Commands used to finish a libtool library installation in a directory. |
---|
19220 | finish_cmds=$lt_finish_cmds |
---|
19221 | |
---|
19222 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
19223 | finish_eval=$lt_finish_eval |
---|
19224 | |
---|
19225 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
19226 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
19227 | |
---|
19228 | # Transform the output of nm in a proper C declaration |
---|
19229 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
19230 | |
---|
19231 | # Transform the output of nm in a C name address pair |
---|
19232 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
19233 | |
---|
19234 | # This is the shared library runtime path variable. |
---|
19235 | runpath_var=$runpath_var |
---|
19236 | |
---|
19237 | # This is the shared library path variable. |
---|
19238 | shlibpath_var=$shlibpath_var |
---|
19239 | |
---|
19240 | # Is shlibpath searched before the hard-coded library search path? |
---|
19241 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
19242 | |
---|
19243 | # How to hardcode a shared library path into an executable. |
---|
19244 | hardcode_action=$hardcode_action_GCJ |
---|
19245 | |
---|
19246 | # Whether we should hardcode library paths into libraries. |
---|
19247 | hardcode_into_libs=$hardcode_into_libs |
---|
19248 | |
---|
19249 | # Flag to hardcode \$libdir into a binary during linking. |
---|
19250 | # This must work even if \$libdir does not exist. |
---|
19251 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
---|
19252 | |
---|
19253 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
19254 | # a binary during linking. This must work even if \$libdir does |
---|
19255 | # not exist. |
---|
19256 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
---|
19257 | |
---|
19258 | # Whether we need a single -rpath flag with a separated argument. |
---|
19259 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
---|
19260 | |
---|
19261 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
19262 | # resulting binary. |
---|
19263 | hardcode_direct=$hardcode_direct_GCJ |
---|
19264 | |
---|
19265 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
19266 | # resulting binary. |
---|
19267 | hardcode_minus_L=$hardcode_minus_L_GCJ |
---|
19268 | |
---|
19269 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
19270 | # the resulting binary. |
---|
19271 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
---|
19272 | |
---|
19273 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
19274 | # and all subsequent libraries and executables linked against it. |
---|
19275 | hardcode_automatic=$hardcode_automatic_GCJ |
---|
19276 | |
---|
19277 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
19278 | # restored at relink time. |
---|
19279 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
19280 | |
---|
19281 | # Whether libtool must link a program against all its dependency libraries. |
---|
19282 | link_all_deplibs=$link_all_deplibs_GCJ |
---|
19283 | |
---|
19284 | # Compile-time system search path for libraries |
---|
19285 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
19286 | |
---|
19287 | # Run-time system search path for libraries |
---|
19288 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
19289 | |
---|
19290 | # Fix the shell variable \$srcfile for the compiler. |
---|
19291 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
---|
19292 | |
---|
19293 | # Set to yes if exported symbols are required. |
---|
19294 | always_export_symbols=$always_export_symbols_GCJ |
---|
19295 | |
---|
19296 | # The commands to list exported symbols. |
---|
19297 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
---|
19298 | |
---|
19299 | # The commands to extract the exported symbol list from a shared archive. |
---|
19300 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
19301 | |
---|
19302 | # Symbols that should not be listed in the preloaded symbols. |
---|
19303 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
---|
19304 | |
---|
19305 | # Symbols that must always be exported. |
---|
19306 | include_expsyms=$lt_include_expsyms_GCJ |
---|
19307 | |
---|
19308 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
19309 | |
---|
19310 | __EOF__ |
---|
19311 | |
---|
19312 | |
---|
19313 | else |
---|
19314 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
19315 | # `config.status --recheck' to rerun these tests and create the |
---|
19316 | # libtool script then. |
---|
19317 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
19318 | if test -f "$ltmain_in"; then |
---|
19319 | test -f Makefile && make "$ltmain" |
---|
19320 | fi |
---|
19321 | fi |
---|
19322 | |
---|
19323 | |
---|
19324 | ac_ext=c |
---|
19325 | ac_cpp='$CPP $CPPFLAGS' |
---|
19326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
19327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
19328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
19329 | |
---|
19330 | CC="$lt_save_CC" |
---|
19331 | |
---|
19332 | else |
---|
19333 | tagname="" |
---|
19334 | fi |
---|
19335 | ;; |
---|
19336 | |
---|
19337 | RC) |
---|
19338 | |
---|
19339 | |
---|
19340 | |
---|
19341 | # Source file extension for RC test sources. |
---|
19342 | ac_ext=rc |
---|
19343 | |
---|
19344 | # Object file extension for compiled RC test sources. |
---|
19345 | objext=o |
---|
19346 | objext_RC=$objext |
---|
19347 | |
---|
19348 | # Code to be used in simple compile tests |
---|
19349 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
---|
19350 | |
---|
19351 | # Code to be used in simple link tests |
---|
19352 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
---|
19353 | |
---|
19354 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
19355 | |
---|
19356 | # If no C compiler was specified, use CC. |
---|
19357 | LTCC=${LTCC-"$CC"} |
---|
19358 | |
---|
19359 | # Allow CC to be a program name with arguments. |
---|
19360 | compiler=$CC |
---|
19361 | |
---|
19362 | |
---|
19363 | # Allow CC to be a program name with arguments. |
---|
19364 | lt_save_CC="$CC" |
---|
19365 | CC=${RC-"windres"} |
---|
19366 | compiler=$CC |
---|
19367 | compiler_RC=$CC |
---|
19368 | lt_cv_prog_compiler_c_o_RC=yes |
---|
19369 | |
---|
19370 | # The else clause should only fire when bootstrapping the |
---|
19371 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
19372 | # with your package, and you will get complaints that there are |
---|
19373 | # no rules to generate ltmain.sh. |
---|
19374 | if test -f "$ltmain"; then |
---|
19375 | # See if we are running on zsh, and set the options which allow our commands through |
---|
19376 | # without removal of \ escapes. |
---|
19377 | if test -n "${ZSH_VERSION+set}" ; then |
---|
19378 | setopt NO_GLOB_SUBST |
---|
19379 | fi |
---|
19380 | # Now quote all the things that may contain metacharacters while being |
---|
19381 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
19382 | # variables and quote the copies for generation of the libtool script. |
---|
19383 | for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \ |
---|
19384 | SED SHELL STRIP \ |
---|
19385 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
19386 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
19387 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
19388 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
19389 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
19390 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
19391 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
19392 | compiler_RC \ |
---|
19393 | CC_RC \ |
---|
19394 | LD_RC \ |
---|
19395 | lt_prog_compiler_wl_RC \ |
---|
19396 | lt_prog_compiler_pic_RC \ |
---|
19397 | lt_prog_compiler_static_RC \ |
---|
19398 | lt_prog_compiler_no_builtin_flag_RC \ |
---|
19399 | export_dynamic_flag_spec_RC \ |
---|
19400 | thread_safe_flag_spec_RC \ |
---|
19401 | whole_archive_flag_spec_RC \ |
---|
19402 | enable_shared_with_static_runtimes_RC \ |
---|
19403 | old_archive_cmds_RC \ |
---|
19404 | old_archive_from_new_cmds_RC \ |
---|
19405 | predep_objects_RC \ |
---|
19406 | postdep_objects_RC \ |
---|
19407 | predeps_RC \ |
---|
19408 | postdeps_RC \ |
---|
19409 | compiler_lib_search_path_RC \ |
---|
19410 | archive_cmds_RC \ |
---|
19411 | archive_expsym_cmds_RC \ |
---|
19412 | postinstall_cmds_RC \ |
---|
19413 | postuninstall_cmds_RC \ |
---|
19414 | old_archive_from_expsyms_cmds_RC \ |
---|
19415 | allow_undefined_flag_RC \ |
---|
19416 | no_undefined_flag_RC \ |
---|
19417 | export_symbols_cmds_RC \ |
---|
19418 | hardcode_libdir_flag_spec_RC \ |
---|
19419 | hardcode_libdir_flag_spec_ld_RC \ |
---|
19420 | hardcode_libdir_separator_RC \ |
---|
19421 | hardcode_automatic_RC \ |
---|
19422 | module_cmds_RC \ |
---|
19423 | module_expsym_cmds_RC \ |
---|
19424 | lt_cv_prog_compiler_c_o_RC \ |
---|
19425 | exclude_expsyms_RC \ |
---|
19426 | include_expsyms_RC; do |
---|
19427 | |
---|
19428 | case $var in |
---|
19429 | old_archive_cmds_RC | \ |
---|
19430 | old_archive_from_new_cmds_RC | \ |
---|
19431 | archive_cmds_RC | \ |
---|
19432 | archive_expsym_cmds_RC | \ |
---|
19433 | module_cmds_RC | \ |
---|
19434 | module_expsym_cmds_RC | \ |
---|
19435 | old_archive_from_expsyms_cmds_RC | \ |
---|
19436 | export_symbols_cmds_RC | \ |
---|
19437 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
19438 | postinstall_cmds | postuninstall_cmds | \ |
---|
19439 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
19440 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
19441 | # Double-quote double-evaled strings. |
---|
19442 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
19443 | ;; |
---|
19444 | *) |
---|
19445 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
19446 | ;; |
---|
19447 | esac |
---|
19448 | done |
---|
19449 | |
---|
19450 | case $lt_echo in |
---|
19451 | *'\$0 --fallback-echo"') |
---|
19452 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
19453 | ;; |
---|
19454 | esac |
---|
19455 | |
---|
19456 | cfgfile="$ofile" |
---|
19457 | |
---|
19458 | cat <<__EOF__ >> "$cfgfile" |
---|
19459 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
19460 | |
---|
19461 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
19462 | |
---|
19463 | # Shell to use when invoking shell scripts. |
---|
19464 | SHELL=$lt_SHELL |
---|
19465 | |
---|
19466 | # Whether or not to build shared libraries. |
---|
19467 | build_libtool_libs=$enable_shared |
---|
19468 | |
---|
19469 | # Whether or not to build static libraries. |
---|
19470 | build_old_libs=$enable_static |
---|
19471 | |
---|
19472 | # Whether or not to add -lc for building shared libraries. |
---|
19473 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
---|
19474 | |
---|
19475 | # Whether or not to disallow shared libs when runtime libs are static |
---|
19476 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
---|
19477 | |
---|
19478 | # Whether or not to optimize for fast installation. |
---|
19479 | fast_install=$enable_fast_install |
---|
19480 | |
---|
19481 | # The host system. |
---|
19482 | host_alias=$host_alias |
---|
19483 | host=$host |
---|
19484 | host_os=$host_os |
---|
19485 | |
---|
19486 | # The build system. |
---|
19487 | build_alias=$build_alias |
---|
19488 | build=$build |
---|
19489 | build_os=$build_os |
---|
19490 | |
---|
19491 | # An echo program that does not interpret backslashes. |
---|
19492 | echo=$lt_echo |
---|
19493 | |
---|
19494 | # The archiver. |
---|
19495 | AR=$lt_AR |
---|
19496 | AR_FLAGS=$lt_AR_FLAGS |
---|
19497 | |
---|
19498 | # A C compiler. |
---|
19499 | LTCC=$lt_LTCC |
---|
19500 | |
---|
19501 | # A language-specific compiler. |
---|
19502 | CC=$lt_compiler_RC |
---|
19503 | |
---|
19504 | # Is the compiler the GNU C compiler? |
---|
19505 | with_gcc=$GCC_RC |
---|
19506 | |
---|
19507 | # An ERE matcher. |
---|
19508 | EGREP=$lt_EGREP |
---|
19509 | |
---|
19510 | # The linker used to build libraries. |
---|
19511 | LD=$lt_LD_RC |
---|
19512 | |
---|
19513 | # Whether we need hard or soft links. |
---|
19514 | LN_S=$lt_LN_S |
---|
19515 | |
---|
19516 | # A BSD-compatible nm program. |
---|
19517 | NM=$lt_NM |
---|
19518 | |
---|
19519 | # A symbol stripping program |
---|
19520 | STRIP=$lt_STRIP |
---|
19521 | |
---|
19522 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
19523 | MAGIC_CMD=$MAGIC_CMD |
---|
19524 | |
---|
19525 | # Used on cygwin: DLL creation program. |
---|
19526 | DLLTOOL="$DLLTOOL" |
---|
19527 | |
---|
19528 | # Used on cygwin: object dumper. |
---|
19529 | OBJDUMP="$OBJDUMP" |
---|
19530 | |
---|
19531 | # Used on cygwin: assembler. |
---|
19532 | AS=$lt_AS |
---|
19533 | |
---|
19534 | # The name of the directory that contains temporary libtool files. |
---|
19535 | objdir=$objdir |
---|
19536 | |
---|
19537 | # How to create reloadable object files. |
---|
19538 | reload_flag=$lt_reload_flag |
---|
19539 | reload_cmds=$lt_reload_cmds |
---|
19540 | |
---|
19541 | # How to pass a linker flag through the compiler. |
---|
19542 | wl=$lt_lt_prog_compiler_wl_RC |
---|
19543 | |
---|
19544 | # Object file suffix (normally "o"). |
---|
19545 | objext="$ac_objext" |
---|
19546 | |
---|
19547 | # Old archive suffix (normally "a"). |
---|
19548 | libext="$libext" |
---|
19549 | |
---|
19550 | # Shared library suffix (normally ".so"). |
---|
19551 | shrext_cmds='$shrext_cmds' |
---|
19552 | |
---|
19553 | # Executable file suffix (normally ""). |
---|
19554 | exeext="$exeext" |
---|
19555 | |
---|
19556 | # Additional compiler flags for building library objects. |
---|
19557 | pic_flag=$lt_lt_prog_compiler_pic_RC |
---|
19558 | pic_mode=$pic_mode |
---|
19559 | |
---|
19560 | # What is the maximum length of a command? |
---|
19561 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
19562 | |
---|
19563 | # Does compiler simultaneously support -c and -o options? |
---|
19564 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
---|
19565 | |
---|
19566 | # Must we lock files when doing compilation ? |
---|
19567 | need_locks=$lt_need_locks |
---|
19568 | |
---|
19569 | # Do we need the lib prefix for modules? |
---|
19570 | need_lib_prefix=$need_lib_prefix |
---|
19571 | |
---|
19572 | # Do we need a version for libraries? |
---|
19573 | need_version=$need_version |
---|
19574 | |
---|
19575 | # Whether dlopen is supported. |
---|
19576 | dlopen_support=$enable_dlopen |
---|
19577 | |
---|
19578 | # Whether dlopen of programs is supported. |
---|
19579 | dlopen_self=$enable_dlopen_self |
---|
19580 | |
---|
19581 | # Whether dlopen of statically linked programs is supported. |
---|
19582 | dlopen_self_static=$enable_dlopen_self_static |
---|
19583 | |
---|
19584 | # Compiler flag to prevent dynamic linking. |
---|
19585 | link_static_flag=$lt_lt_prog_compiler_static_RC |
---|
19586 | |
---|
19587 | # Compiler flag to turn off builtin functions. |
---|
19588 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
---|
19589 | |
---|
19590 | # Compiler flag to allow reflexive dlopens. |
---|
19591 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
---|
19592 | |
---|
19593 | # Compiler flag to generate shared objects directly from archives. |
---|
19594 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
---|
19595 | |
---|
19596 | # Compiler flag to generate thread-safe objects. |
---|
19597 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
---|
19598 | |
---|
19599 | # Library versioning type. |
---|
19600 | version_type=$version_type |
---|
19601 | |
---|
19602 | # Format of library name prefix. |
---|
19603 | libname_spec=$lt_libname_spec |
---|
19604 | |
---|
19605 | # List of archive names. First name is the real one, the rest are links. |
---|
19606 | # The last name is the one that the linker finds with -lNAME. |
---|
19607 | library_names_spec=$lt_library_names_spec |
---|
19608 | |
---|
19609 | # The coded name of the library, if different from the real name. |
---|
19610 | soname_spec=$lt_soname_spec |
---|
19611 | |
---|
19612 | # Commands used to build and install an old-style archive. |
---|
19613 | RANLIB=$lt_RANLIB |
---|
19614 | old_archive_cmds=$lt_old_archive_cmds_RC |
---|
19615 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
19616 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
19617 | |
---|
19618 | # Create an old-style archive from a shared archive. |
---|
19619 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
---|
19620 | |
---|
19621 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
19622 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
---|
19623 | |
---|
19624 | # Commands used to build and install a shared archive. |
---|
19625 | archive_cmds=$lt_archive_cmds_RC |
---|
19626 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
---|
19627 | postinstall_cmds=$lt_postinstall_cmds |
---|
19628 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
19629 | |
---|
19630 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
19631 | module_cmds=$lt_module_cmds_RC |
---|
19632 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
---|
19633 | |
---|
19634 | # Commands to strip libraries. |
---|
19635 | old_striplib=$lt_old_striplib |
---|
19636 | striplib=$lt_striplib |
---|
19637 | |
---|
19638 | # Dependencies to place before the objects being linked to create a |
---|
19639 | # shared library. |
---|
19640 | predep_objects=$lt_predep_objects_RC |
---|
19641 | |
---|
19642 | # Dependencies to place after the objects being linked to create a |
---|
19643 | # shared library. |
---|
19644 | postdep_objects=$lt_postdep_objects_RC |
---|
19645 | |
---|
19646 | # Dependencies to place before the objects being linked to create a |
---|
19647 | # shared library. |
---|
19648 | predeps=$lt_predeps_RC |
---|
19649 | |
---|
19650 | # Dependencies to place after the objects being linked to create a |
---|
19651 | # shared library. |
---|
19652 | postdeps=$lt_postdeps_RC |
---|
19653 | |
---|
19654 | # The library search path used internally by the compiler when linking |
---|
19655 | # a shared library. |
---|
19656 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
---|
19657 | |
---|
19658 | # Method to check whether dependent libraries are shared objects. |
---|
19659 | deplibs_check_method=$lt_deplibs_check_method |
---|
19660 | |
---|
19661 | # Command to use when deplibs_check_method == file_magic. |
---|
19662 | file_magic_cmd=$lt_file_magic_cmd |
---|
19663 | |
---|
19664 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
19665 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
---|
19666 | |
---|
19667 | # Flag that forces no undefined symbols. |
---|
19668 | no_undefined_flag=$lt_no_undefined_flag_RC |
---|
19669 | |
---|
19670 | # Commands used to finish a libtool library installation in a directory. |
---|
19671 | finish_cmds=$lt_finish_cmds |
---|
19672 | |
---|
19673 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
19674 | finish_eval=$lt_finish_eval |
---|
19675 | |
---|
19676 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
19677 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
19678 | |
---|
19679 | # Transform the output of nm in a proper C declaration |
---|
19680 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
19681 | |
---|
19682 | # Transform the output of nm in a C name address pair |
---|
19683 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
19684 | |
---|
19685 | # This is the shared library runtime path variable. |
---|
19686 | runpath_var=$runpath_var |
---|
19687 | |
---|
19688 | # This is the shared library path variable. |
---|
19689 | shlibpath_var=$shlibpath_var |
---|
19690 | |
---|
19691 | # Is shlibpath searched before the hard-coded library search path? |
---|
19692 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
19693 | |
---|
19694 | # How to hardcode a shared library path into an executable. |
---|
19695 | hardcode_action=$hardcode_action_RC |
---|
19696 | |
---|
19697 | # Whether we should hardcode library paths into libraries. |
---|
19698 | hardcode_into_libs=$hardcode_into_libs |
---|
19699 | |
---|
19700 | # Flag to hardcode \$libdir into a binary during linking. |
---|
19701 | # This must work even if \$libdir does not exist. |
---|
19702 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
---|
19703 | |
---|
19704 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
19705 | # a binary during linking. This must work even if \$libdir does |
---|
19706 | # not exist. |
---|
19707 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
---|
19708 | |
---|
19709 | # Whether we need a single -rpath flag with a separated argument. |
---|
19710 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
---|
19711 | |
---|
19712 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
19713 | # resulting binary. |
---|
19714 | hardcode_direct=$hardcode_direct_RC |
---|
19715 | |
---|
19716 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
19717 | # resulting binary. |
---|
19718 | hardcode_minus_L=$hardcode_minus_L_RC |
---|
19719 | |
---|
19720 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
19721 | # the resulting binary. |
---|
19722 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
---|
19723 | |
---|
19724 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
19725 | # and all subsequent libraries and executables linked against it. |
---|
19726 | hardcode_automatic=$hardcode_automatic_RC |
---|
19727 | |
---|
19728 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
19729 | # restored at relink time. |
---|
19730 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
19731 | |
---|
19732 | # Whether libtool must link a program against all its dependency libraries. |
---|
19733 | link_all_deplibs=$link_all_deplibs_RC |
---|
19734 | |
---|
19735 | # Compile-time system search path for libraries |
---|
19736 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
19737 | |
---|
19738 | # Run-time system search path for libraries |
---|
19739 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
19740 | |
---|
19741 | # Fix the shell variable \$srcfile for the compiler. |
---|
19742 | fix_srcfile_path="$fix_srcfile_path_RC" |
---|
19743 | |
---|
19744 | # Set to yes if exported symbols are required. |
---|
19745 | always_export_symbols=$always_export_symbols_RC |
---|
19746 | |
---|
19747 | # The commands to list exported symbols. |
---|
19748 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
---|
19749 | |
---|
19750 | # The commands to extract the exported symbol list from a shared archive. |
---|
19751 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
19752 | |
---|
19753 | # Symbols that should not be listed in the preloaded symbols. |
---|
19754 | exclude_expsyms=$lt_exclude_expsyms_RC |
---|
19755 | |
---|
19756 | # Symbols that must always be exported. |
---|
19757 | include_expsyms=$lt_include_expsyms_RC |
---|
19758 | |
---|
19759 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
19760 | |
---|
19761 | __EOF__ |
---|
19762 | |
---|
19763 | |
---|
19764 | else |
---|
19765 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
19766 | # `config.status --recheck' to rerun these tests and create the |
---|
19767 | # libtool script then. |
---|
19768 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
19769 | if test -f "$ltmain_in"; then |
---|
19770 | test -f Makefile && make "$ltmain" |
---|
19771 | fi |
---|
19772 | fi |
---|
19773 | |
---|
19774 | |
---|
19775 | ac_ext=c |
---|
19776 | ac_cpp='$CPP $CPPFLAGS' |
---|
19777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
19778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
19779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
19780 | |
---|
19781 | CC="$lt_save_CC" |
---|
19782 | |
---|
19783 | ;; |
---|
19784 | |
---|
19785 | *) |
---|
19786 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
---|
19787 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
---|
19788 | { (exit 1); exit 1; }; } |
---|
19789 | ;; |
---|
19790 | esac |
---|
19791 | |
---|
19792 | # Append the new tag name to the list of available tags. |
---|
19793 | if test -n "$tagname" ; then |
---|
19794 | available_tags="$available_tags $tagname" |
---|
19795 | fi |
---|
19796 | fi |
---|
19797 | done |
---|
19798 | IFS="$lt_save_ifs" |
---|
19799 | |
---|
19800 | # Now substitute the updated list of available tags. |
---|
19801 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
---|
19802 | mv "${ofile}T" "$ofile" |
---|
19803 | chmod +x "$ofile" |
---|
19804 | else |
---|
19805 | rm -f "${ofile}T" |
---|
19806 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
---|
19807 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
---|
19808 | { (exit 1); exit 1; }; } |
---|
19809 | fi |
---|
19810 | fi |
---|
19811 | |
---|
19812 | |
---|
19813 | |
---|
19814 | # This can be used to rebuild libtool when needed |
---|
19815 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
---|
19816 | |
---|
19817 | # Always use our own libtool. |
---|
19818 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
19819 | |
---|
19820 | # Prevent multiple expansion |
---|
19821 | |
---|
19822 | |
---|
19823 | |
---|
19824 | |
---|
19825 | |
---|
19826 | |
---|
19827 | |
---|
19828 | |
---|
19829 | |
---|
19830 | |
---|
19831 | |
---|
19832 | |
---|
19833 | |
---|
19834 | |
---|
19835 | |
---|
19836 | |
---|
19837 | |
---|
19838 | |
---|
19839 | |
---|
19840 | |
---|
19841 | |
---|
19842 | |
---|
19843 | |
---|
19844 | cat >>confdefs.h <<\_ACEOF |
---|
19845 | #define ALUT_BUILD_LIBRARY 1 |
---|
19846 | _ACEOF |
---|
19847 | |
---|
19848 | |
---|
19849 | # Checks for libraries. (not perfect yet) |
---|
19850 | echo "$as_me:$LINENO: checking for library containing pthread_self" >&5 |
---|
19851 | echo $ECHO_N "checking for library containing pthread_self... $ECHO_C" >&6 |
---|
19852 | if test "${ac_cv_search_pthread_self+set}" = set; then |
---|
19853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19854 | else |
---|
19855 | ac_func_search_save_LIBS=$LIBS |
---|
19856 | ac_cv_search_pthread_self=no |
---|
19857 | cat >conftest.$ac_ext <<_ACEOF |
---|
19858 | /* confdefs.h. */ |
---|
19859 | _ACEOF |
---|
19860 | cat confdefs.h >>conftest.$ac_ext |
---|
19861 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19862 | /* end confdefs.h. */ |
---|
19863 | |
---|
19864 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19865 | #ifdef __cplusplus |
---|
19866 | extern "C" |
---|
19867 | #endif |
---|
19868 | /* We use char because int might match the return type of a gcc2 |
---|
19869 | builtin and then its argument prototype would still apply. */ |
---|
19870 | char pthread_self (); |
---|
19871 | int |
---|
19872 | main () |
---|
19873 | { |
---|
19874 | pthread_self (); |
---|
19875 | ; |
---|
19876 | return 0; |
---|
19877 | } |
---|
19878 | _ACEOF |
---|
19879 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19881 | (eval $ac_link) 2>conftest.er1 |
---|
19882 | ac_status=$? |
---|
19883 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19884 | rm -f conftest.er1 |
---|
19885 | cat conftest.err >&5 |
---|
19886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19887 | (exit $ac_status); } && |
---|
19888 | { ac_try='test -z "$ac_c_werror_flag" |
---|
19889 | || test ! -s conftest.err' |
---|
19890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19891 | (eval $ac_try) 2>&5 |
---|
19892 | ac_status=$? |
---|
19893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19894 | (exit $ac_status); }; } && |
---|
19895 | { ac_try='test -s conftest$ac_exeext' |
---|
19896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19897 | (eval $ac_try) 2>&5 |
---|
19898 | ac_status=$? |
---|
19899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19900 | (exit $ac_status); }; }; then |
---|
19901 | ac_cv_search_pthread_self="none required" |
---|
19902 | else |
---|
19903 | echo "$as_me: failed program was:" >&5 |
---|
19904 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19905 | |
---|
19906 | fi |
---|
19907 | rm -f conftest.err conftest.$ac_objext \ |
---|
19908 | conftest$ac_exeext conftest.$ac_ext |
---|
19909 | if test "$ac_cv_search_pthread_self" = no; then |
---|
19910 | for ac_lib in pthread; do |
---|
19911 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
19912 | cat >conftest.$ac_ext <<_ACEOF |
---|
19913 | /* confdefs.h. */ |
---|
19914 | _ACEOF |
---|
19915 | cat confdefs.h >>conftest.$ac_ext |
---|
19916 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19917 | /* end confdefs.h. */ |
---|
19918 | |
---|
19919 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19920 | #ifdef __cplusplus |
---|
19921 | extern "C" |
---|
19922 | #endif |
---|
19923 | /* We use char because int might match the return type of a gcc2 |
---|
19924 | builtin and then its argument prototype would still apply. */ |
---|
19925 | char pthread_self (); |
---|
19926 | int |
---|
19927 | main () |
---|
19928 | { |
---|
19929 | pthread_self (); |
---|
19930 | ; |
---|
19931 | return 0; |
---|
19932 | } |
---|
19933 | _ACEOF |
---|
19934 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19936 | (eval $ac_link) 2>conftest.er1 |
---|
19937 | ac_status=$? |
---|
19938 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19939 | rm -f conftest.er1 |
---|
19940 | cat conftest.err >&5 |
---|
19941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19942 | (exit $ac_status); } && |
---|
19943 | { ac_try='test -z "$ac_c_werror_flag" |
---|
19944 | || test ! -s conftest.err' |
---|
19945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19946 | (eval $ac_try) 2>&5 |
---|
19947 | ac_status=$? |
---|
19948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19949 | (exit $ac_status); }; } && |
---|
19950 | { ac_try='test -s conftest$ac_exeext' |
---|
19951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19952 | (eval $ac_try) 2>&5 |
---|
19953 | ac_status=$? |
---|
19954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19955 | (exit $ac_status); }; }; then |
---|
19956 | ac_cv_search_pthread_self="-l$ac_lib" |
---|
19957 | break |
---|
19958 | else |
---|
19959 | echo "$as_me: failed program was:" >&5 |
---|
19960 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19961 | |
---|
19962 | fi |
---|
19963 | rm -f conftest.err conftest.$ac_objext \ |
---|
19964 | conftest$ac_exeext conftest.$ac_ext |
---|
19965 | done |
---|
19966 | fi |
---|
19967 | LIBS=$ac_func_search_save_LIBS |
---|
19968 | fi |
---|
19969 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_self" >&5 |
---|
19970 | echo "${ECHO_T}$ac_cv_search_pthread_self" >&6 |
---|
19971 | if test "$ac_cv_search_pthread_self" != no; then |
---|
19972 | test "$ac_cv_search_pthread_self" = "none required" || LIBS="$ac_cv_search_pthread_self $LIBS" |
---|
19973 | |
---|
19974 | fi |
---|
19975 | |
---|
19976 | echo "$as_me:$LINENO: checking for library containing alGetError" >&5 |
---|
19977 | echo $ECHO_N "checking for library containing alGetError... $ECHO_C" >&6 |
---|
19978 | if test "${ac_cv_search_alGetError+set}" = set; then |
---|
19979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19980 | else |
---|
19981 | ac_func_search_save_LIBS=$LIBS |
---|
19982 | ac_cv_search_alGetError=no |
---|
19983 | cat >conftest.$ac_ext <<_ACEOF |
---|
19984 | /* confdefs.h. */ |
---|
19985 | _ACEOF |
---|
19986 | cat confdefs.h >>conftest.$ac_ext |
---|
19987 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19988 | /* end confdefs.h. */ |
---|
19989 | |
---|
19990 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19991 | #ifdef __cplusplus |
---|
19992 | extern "C" |
---|
19993 | #endif |
---|
19994 | /* We use char because int might match the return type of a gcc2 |
---|
19995 | builtin and then its argument prototype would still apply. */ |
---|
19996 | char alGetError (); |
---|
19997 | int |
---|
19998 | main () |
---|
19999 | { |
---|
20000 | alGetError (); |
---|
20001 | ; |
---|
20002 | return 0; |
---|
20003 | } |
---|
20004 | _ACEOF |
---|
20005 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20007 | (eval $ac_link) 2>conftest.er1 |
---|
20008 | ac_status=$? |
---|
20009 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20010 | rm -f conftest.er1 |
---|
20011 | cat conftest.err >&5 |
---|
20012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20013 | (exit $ac_status); } && |
---|
20014 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20015 | || test ! -s conftest.err' |
---|
20016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20017 | (eval $ac_try) 2>&5 |
---|
20018 | ac_status=$? |
---|
20019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20020 | (exit $ac_status); }; } && |
---|
20021 | { ac_try='test -s conftest$ac_exeext' |
---|
20022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20023 | (eval $ac_try) 2>&5 |
---|
20024 | ac_status=$? |
---|
20025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20026 | (exit $ac_status); }; }; then |
---|
20027 | ac_cv_search_alGetError="none required" |
---|
20028 | else |
---|
20029 | echo "$as_me: failed program was:" >&5 |
---|
20030 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20031 | |
---|
20032 | fi |
---|
20033 | rm -f conftest.err conftest.$ac_objext \ |
---|
20034 | conftest$ac_exeext conftest.$ac_ext |
---|
20035 | if test "$ac_cv_search_alGetError" = no; then |
---|
20036 | for ac_lib in openal32 openal; do |
---|
20037 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
20038 | cat >conftest.$ac_ext <<_ACEOF |
---|
20039 | /* confdefs.h. */ |
---|
20040 | _ACEOF |
---|
20041 | cat confdefs.h >>conftest.$ac_ext |
---|
20042 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20043 | /* end confdefs.h. */ |
---|
20044 | |
---|
20045 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
20046 | #ifdef __cplusplus |
---|
20047 | extern "C" |
---|
20048 | #endif |
---|
20049 | /* We use char because int might match the return type of a gcc2 |
---|
20050 | builtin and then its argument prototype would still apply. */ |
---|
20051 | char alGetError (); |
---|
20052 | int |
---|
20053 | main () |
---|
20054 | { |
---|
20055 | alGetError (); |
---|
20056 | ; |
---|
20057 | return 0; |
---|
20058 | } |
---|
20059 | _ACEOF |
---|
20060 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20062 | (eval $ac_link) 2>conftest.er1 |
---|
20063 | ac_status=$? |
---|
20064 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20065 | rm -f conftest.er1 |
---|
20066 | cat conftest.err >&5 |
---|
20067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20068 | (exit $ac_status); } && |
---|
20069 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20070 | || test ! -s conftest.err' |
---|
20071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20072 | (eval $ac_try) 2>&5 |
---|
20073 | ac_status=$? |
---|
20074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20075 | (exit $ac_status); }; } && |
---|
20076 | { ac_try='test -s conftest$ac_exeext' |
---|
20077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20078 | (eval $ac_try) 2>&5 |
---|
20079 | ac_status=$? |
---|
20080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20081 | (exit $ac_status); }; }; then |
---|
20082 | ac_cv_search_alGetError="-l$ac_lib" |
---|
20083 | break |
---|
20084 | else |
---|
20085 | echo "$as_me: failed program was:" >&5 |
---|
20086 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20087 | |
---|
20088 | fi |
---|
20089 | rm -f conftest.err conftest.$ac_objext \ |
---|
20090 | conftest$ac_exeext conftest.$ac_ext |
---|
20091 | done |
---|
20092 | fi |
---|
20093 | LIBS=$ac_func_search_save_LIBS |
---|
20094 | fi |
---|
20095 | echo "$as_me:$LINENO: result: $ac_cv_search_alGetError" >&5 |
---|
20096 | echo "${ECHO_T}$ac_cv_search_alGetError" >&6 |
---|
20097 | if test "$ac_cv_search_alGetError" != no; then |
---|
20098 | test "$ac_cv_search_alGetError" = "none required" || LIBS="$ac_cv_search_alGetError $LIBS" |
---|
20099 | |
---|
20100 | fi |
---|
20101 | |
---|
20102 | |
---|
20103 | ################################################################################ |
---|
20104 | # Checks for header files. |
---|
20105 | ################################################################################ |
---|
20106 | |
---|
20107 | # We could possibly need struct timespec and random(), which are not ANSI. |
---|
20108 | |
---|
20109 | cat >>confdefs.h <<\_ACEOF |
---|
20110 | #define _XOPEN_SOURCE 500 |
---|
20111 | _ACEOF |
---|
20112 | |
---|
20113 | |
---|
20114 | # We might need nanosleep, which is a POSIX IEEE Std 1003.1b-1993 feature. |
---|
20115 | |
---|
20116 | cat >>confdefs.h <<\_ACEOF |
---|
20117 | #define _POSIX_C_SOURCE 199309 |
---|
20118 | _ACEOF |
---|
20119 | |
---|
20120 | |
---|
20121 | # Without __NO_CTYPE tolower and friends are macros which introduce a GLIBC 2.3 |
---|
20122 | # dependency. By defining this identifier we are currently backwards compatible |
---|
20123 | # to GLIBC 2.1.3, which is a good thing. In addition, the macros lead to code |
---|
20124 | # which triggers warnings with -Wunreachable-code. |
---|
20125 | |
---|
20126 | cat >>confdefs.h <<\_ACEOF |
---|
20127 | #define __NO_CTYPE 1 |
---|
20128 | _ACEOF |
---|
20129 | |
---|
20130 | |
---|
20131 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
20132 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
20133 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
20134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20135 | else |
---|
20136 | cat >conftest.$ac_ext <<_ACEOF |
---|
20137 | /* confdefs.h. */ |
---|
20138 | _ACEOF |
---|
20139 | cat confdefs.h >>conftest.$ac_ext |
---|
20140 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20141 | /* end confdefs.h. */ |
---|
20142 | #include <stdlib.h> |
---|
20143 | #include <stdarg.h> |
---|
20144 | #include <string.h> |
---|
20145 | #include <float.h> |
---|
20146 | |
---|
20147 | int |
---|
20148 | main () |
---|
20149 | { |
---|
20150 | |
---|
20151 | ; |
---|
20152 | return 0; |
---|
20153 | } |
---|
20154 | _ACEOF |
---|
20155 | rm -f conftest.$ac_objext |
---|
20156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
20157 | (eval $ac_compile) 2>conftest.er1 |
---|
20158 | ac_status=$? |
---|
20159 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20160 | rm -f conftest.er1 |
---|
20161 | cat conftest.err >&5 |
---|
20162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20163 | (exit $ac_status); } && |
---|
20164 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20165 | || test ! -s conftest.err' |
---|
20166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20167 | (eval $ac_try) 2>&5 |
---|
20168 | ac_status=$? |
---|
20169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20170 | (exit $ac_status); }; } && |
---|
20171 | { ac_try='test -s conftest.$ac_objext' |
---|
20172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20173 | (eval $ac_try) 2>&5 |
---|
20174 | ac_status=$? |
---|
20175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20176 | (exit $ac_status); }; }; then |
---|
20177 | ac_cv_header_stdc=yes |
---|
20178 | else |
---|
20179 | echo "$as_me: failed program was:" >&5 |
---|
20180 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20181 | |
---|
20182 | ac_cv_header_stdc=no |
---|
20183 | fi |
---|
20184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
20185 | |
---|
20186 | if test $ac_cv_header_stdc = yes; then |
---|
20187 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
20188 | cat >conftest.$ac_ext <<_ACEOF |
---|
20189 | /* confdefs.h. */ |
---|
20190 | _ACEOF |
---|
20191 | cat confdefs.h >>conftest.$ac_ext |
---|
20192 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20193 | /* end confdefs.h. */ |
---|
20194 | #include <string.h> |
---|
20195 | |
---|
20196 | _ACEOF |
---|
20197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
20198 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
20199 | : |
---|
20200 | else |
---|
20201 | ac_cv_header_stdc=no |
---|
20202 | fi |
---|
20203 | rm -f conftest* |
---|
20204 | |
---|
20205 | fi |
---|
20206 | |
---|
20207 | if test $ac_cv_header_stdc = yes; then |
---|
20208 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
20209 | cat >conftest.$ac_ext <<_ACEOF |
---|
20210 | /* confdefs.h. */ |
---|
20211 | _ACEOF |
---|
20212 | cat confdefs.h >>conftest.$ac_ext |
---|
20213 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20214 | /* end confdefs.h. */ |
---|
20215 | #include <stdlib.h> |
---|
20216 | |
---|
20217 | _ACEOF |
---|
20218 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
20219 | $EGREP "free" >/dev/null 2>&1; then |
---|
20220 | : |
---|
20221 | else |
---|
20222 | ac_cv_header_stdc=no |
---|
20223 | fi |
---|
20224 | rm -f conftest* |
---|
20225 | |
---|
20226 | fi |
---|
20227 | |
---|
20228 | if test $ac_cv_header_stdc = yes; then |
---|
20229 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
20230 | if test "$cross_compiling" = yes; then |
---|
20231 | : |
---|
20232 | else |
---|
20233 | cat >conftest.$ac_ext <<_ACEOF |
---|
20234 | /* confdefs.h. */ |
---|
20235 | _ACEOF |
---|
20236 | cat confdefs.h >>conftest.$ac_ext |
---|
20237 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20238 | /* end confdefs.h. */ |
---|
20239 | #include <ctype.h> |
---|
20240 | #if ((' ' & 0x0FF) == 0x020) |
---|
20241 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
20242 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
20243 | #else |
---|
20244 | # define ISLOWER(c) \ |
---|
20245 | (('a' <= (c) && (c) <= 'i') \ |
---|
20246 | || ('j' <= (c) && (c) <= 'r') \ |
---|
20247 | || ('s' <= (c) && (c) <= 'z')) |
---|
20248 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
20249 | #endif |
---|
20250 | |
---|
20251 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
20252 | int |
---|
20253 | main () |
---|
20254 | { |
---|
20255 | int i; |
---|
20256 | for (i = 0; i < 256; i++) |
---|
20257 | if (XOR (islower (i), ISLOWER (i)) |
---|
20258 | || toupper (i) != TOUPPER (i)) |
---|
20259 | exit(2); |
---|
20260 | exit (0); |
---|
20261 | } |
---|
20262 | _ACEOF |
---|
20263 | rm -f conftest$ac_exeext |
---|
20264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20265 | (eval $ac_link) 2>&5 |
---|
20266 | ac_status=$? |
---|
20267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20268 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
20269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20270 | (eval $ac_try) 2>&5 |
---|
20271 | ac_status=$? |
---|
20272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20273 | (exit $ac_status); }; }; then |
---|
20274 | : |
---|
20275 | else |
---|
20276 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
20277 | echo "$as_me: failed program was:" >&5 |
---|
20278 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20279 | |
---|
20280 | ( exit $ac_status ) |
---|
20281 | ac_cv_header_stdc=no |
---|
20282 | fi |
---|
20283 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
20284 | fi |
---|
20285 | fi |
---|
20286 | fi |
---|
20287 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
20288 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
20289 | if test $ac_cv_header_stdc = yes; then |
---|
20290 | |
---|
20291 | cat >>confdefs.h <<\_ACEOF |
---|
20292 | #define STDC_HEADERS 1 |
---|
20293 | _ACEOF |
---|
20294 | |
---|
20295 | fi |
---|
20296 | |
---|
20297 | |
---|
20298 | |
---|
20299 | |
---|
20300 | |
---|
20301 | |
---|
20302 | |
---|
20303 | |
---|
20304 | |
---|
20305 | for ac_header in AL/alc.h AL/al.h basetsd.h ctype.h math.h stdio.h time.h windows.h |
---|
20306 | do |
---|
20307 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
20308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
20309 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
20310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
20311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
20312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20313 | fi |
---|
20314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
20315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
20316 | else |
---|
20317 | # Is the header compilable? |
---|
20318 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
20319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
20320 | cat >conftest.$ac_ext <<_ACEOF |
---|
20321 | /* confdefs.h. */ |
---|
20322 | _ACEOF |
---|
20323 | cat confdefs.h >>conftest.$ac_ext |
---|
20324 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20325 | /* end confdefs.h. */ |
---|
20326 | $ac_includes_default |
---|
20327 | #include <$ac_header> |
---|
20328 | _ACEOF |
---|
20329 | rm -f conftest.$ac_objext |
---|
20330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
20331 | (eval $ac_compile) 2>conftest.er1 |
---|
20332 | ac_status=$? |
---|
20333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20334 | rm -f conftest.er1 |
---|
20335 | cat conftest.err >&5 |
---|
20336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20337 | (exit $ac_status); } && |
---|
20338 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20339 | || test ! -s conftest.err' |
---|
20340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20341 | (eval $ac_try) 2>&5 |
---|
20342 | ac_status=$? |
---|
20343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20344 | (exit $ac_status); }; } && |
---|
20345 | { ac_try='test -s conftest.$ac_objext' |
---|
20346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20347 | (eval $ac_try) 2>&5 |
---|
20348 | ac_status=$? |
---|
20349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20350 | (exit $ac_status); }; }; then |
---|
20351 | ac_header_compiler=yes |
---|
20352 | else |
---|
20353 | echo "$as_me: failed program was:" >&5 |
---|
20354 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20355 | |
---|
20356 | ac_header_compiler=no |
---|
20357 | fi |
---|
20358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
20359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
20360 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
20361 | |
---|
20362 | # Is the header present? |
---|
20363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
20364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
20365 | cat >conftest.$ac_ext <<_ACEOF |
---|
20366 | /* confdefs.h. */ |
---|
20367 | _ACEOF |
---|
20368 | cat confdefs.h >>conftest.$ac_ext |
---|
20369 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20370 | /* end confdefs.h. */ |
---|
20371 | #include <$ac_header> |
---|
20372 | _ACEOF |
---|
20373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
20374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
20375 | ac_status=$? |
---|
20376 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20377 | rm -f conftest.er1 |
---|
20378 | cat conftest.err >&5 |
---|
20379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20380 | (exit $ac_status); } >/dev/null; then |
---|
20381 | if test -s conftest.err; then |
---|
20382 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
20383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
20384 | else |
---|
20385 | ac_cpp_err= |
---|
20386 | fi |
---|
20387 | else |
---|
20388 | ac_cpp_err=yes |
---|
20389 | fi |
---|
20390 | if test -z "$ac_cpp_err"; then |
---|
20391 | ac_header_preproc=yes |
---|
20392 | else |
---|
20393 | echo "$as_me: failed program was:" >&5 |
---|
20394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20395 | |
---|
20396 | ac_header_preproc=no |
---|
20397 | fi |
---|
20398 | rm -f conftest.err conftest.$ac_ext |
---|
20399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
20400 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
20401 | |
---|
20402 | # So? What about this header? |
---|
20403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
20404 | yes:no: ) |
---|
20405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
20406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
20407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
20408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
20409 | ac_header_preproc=yes |
---|
20410 | ;; |
---|
20411 | no:yes:* ) |
---|
20412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
20413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
20414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
20415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
20416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
20417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
20418 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
20419 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
20420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
20421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
20422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
20423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
20424 | ( |
---|
20425 | cat <<\_ASBOX |
---|
20426 | ## --------------------------------------------------- ## |
---|
20427 | ## Report this to openal-devel@opensource.creative.com ## |
---|
20428 | ## --------------------------------------------------- ## |
---|
20429 | _ASBOX |
---|
20430 | ) | |
---|
20431 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
20432 | ;; |
---|
20433 | esac |
---|
20434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
20435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
20436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
20437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20438 | else |
---|
20439 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
20440 | fi |
---|
20441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
20442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
20443 | |
---|
20444 | fi |
---|
20445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
20446 | cat >>confdefs.h <<_ACEOF |
---|
20447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
20448 | _ACEOF |
---|
20449 | |
---|
20450 | fi |
---|
20451 | |
---|
20452 | done |
---|
20453 | |
---|
20454 | |
---|
20455 | # Checks for library functions. |
---|
20456 | echo "$as_me:$LINENO: checking for nanosleep" >&5 |
---|
20457 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6 |
---|
20458 | if test "${alut_cv_func_nanosleep+set}" = set; then |
---|
20459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20460 | else |
---|
20461 | cat >conftest.$ac_ext <<_ACEOF |
---|
20462 | /* confdefs.h. */ |
---|
20463 | _ACEOF |
---|
20464 | cat confdefs.h >>conftest.$ac_ext |
---|
20465 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20466 | /* end confdefs.h. */ |
---|
20467 | #include <time.h> |
---|
20468 | int |
---|
20469 | main () |
---|
20470 | { |
---|
20471 | nanosleep ((struct timespec*)0, (struct timespec*)0); |
---|
20472 | ; |
---|
20473 | return 0; |
---|
20474 | } |
---|
20475 | _ACEOF |
---|
20476 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20478 | (eval $ac_link) 2>conftest.er1 |
---|
20479 | ac_status=$? |
---|
20480 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20481 | rm -f conftest.er1 |
---|
20482 | cat conftest.err >&5 |
---|
20483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20484 | (exit $ac_status); } && |
---|
20485 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20486 | || test ! -s conftest.err' |
---|
20487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20488 | (eval $ac_try) 2>&5 |
---|
20489 | ac_status=$? |
---|
20490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20491 | (exit $ac_status); }; } && |
---|
20492 | { ac_try='test -s conftest$ac_exeext' |
---|
20493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20494 | (eval $ac_try) 2>&5 |
---|
20495 | ac_status=$? |
---|
20496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20497 | (exit $ac_status); }; }; then |
---|
20498 | alut_cv_func_nanosleep=yes |
---|
20499 | else |
---|
20500 | echo "$as_me: failed program was:" >&5 |
---|
20501 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20502 | |
---|
20503 | alut_cv_func_nanosleep=no |
---|
20504 | fi |
---|
20505 | rm -f conftest.err conftest.$ac_objext \ |
---|
20506 | conftest$ac_exeext conftest.$ac_ext |
---|
20507 | fi |
---|
20508 | echo "$as_me:$LINENO: result: $alut_cv_func_nanosleep" >&5 |
---|
20509 | echo "${ECHO_T}$alut_cv_func_nanosleep" >&6 |
---|
20510 | if test $alut_cv_func_nanosleep = yes; then |
---|
20511 | |
---|
20512 | cat >>confdefs.h <<_ACEOF |
---|
20513 | #define HAVE_NANOSLEEP 1 |
---|
20514 | _ACEOF |
---|
20515 | |
---|
20516 | fi |
---|
20517 | |
---|
20518 | |
---|
20519 | echo "$as_me:$LINENO: checking for usleep" >&5 |
---|
20520 | echo $ECHO_N "checking for usleep... $ECHO_C" >&6 |
---|
20521 | if test "${alut_cv_func_usleep+set}" = set; then |
---|
20522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20523 | else |
---|
20524 | cat >conftest.$ac_ext <<_ACEOF |
---|
20525 | /* confdefs.h. */ |
---|
20526 | _ACEOF |
---|
20527 | cat confdefs.h >>conftest.$ac_ext |
---|
20528 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20529 | /* end confdefs.h. */ |
---|
20530 | #include <unistd.h> |
---|
20531 | int |
---|
20532 | main () |
---|
20533 | { |
---|
20534 | usleep (0); |
---|
20535 | ; |
---|
20536 | return 0; |
---|
20537 | } |
---|
20538 | _ACEOF |
---|
20539 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20541 | (eval $ac_link) 2>conftest.er1 |
---|
20542 | ac_status=$? |
---|
20543 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20544 | rm -f conftest.er1 |
---|
20545 | cat conftest.err >&5 |
---|
20546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20547 | (exit $ac_status); } && |
---|
20548 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20549 | || test ! -s conftest.err' |
---|
20550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20551 | (eval $ac_try) 2>&5 |
---|
20552 | ac_status=$? |
---|
20553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20554 | (exit $ac_status); }; } && |
---|
20555 | { ac_try='test -s conftest$ac_exeext' |
---|
20556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20557 | (eval $ac_try) 2>&5 |
---|
20558 | ac_status=$? |
---|
20559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20560 | (exit $ac_status); }; }; then |
---|
20561 | alut_cv_func_usleep=yes |
---|
20562 | else |
---|
20563 | echo "$as_me: failed program was:" >&5 |
---|
20564 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20565 | |
---|
20566 | alut_cv_func_usleep=no |
---|
20567 | fi |
---|
20568 | rm -f conftest.err conftest.$ac_objext \ |
---|
20569 | conftest$ac_exeext conftest.$ac_ext |
---|
20570 | fi |
---|
20571 | echo "$as_me:$LINENO: result: $alut_cv_func_usleep" >&5 |
---|
20572 | echo "${ECHO_T}$alut_cv_func_usleep" >&6 |
---|
20573 | if test $alut_cv_func_usleep = yes; then |
---|
20574 | |
---|
20575 | cat >>confdefs.h <<_ACEOF |
---|
20576 | #define HAVE_USLEEP 1 |
---|
20577 | _ACEOF |
---|
20578 | |
---|
20579 | fi |
---|
20580 | |
---|
20581 | |
---|
20582 | echo "$as_me:$LINENO: checking for Sleep" >&5 |
---|
20583 | echo $ECHO_N "checking for Sleep... $ECHO_C" >&6 |
---|
20584 | if test "${alut_cv_func_Sleep+set}" = set; then |
---|
20585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20586 | else |
---|
20587 | cat >conftest.$ac_ext <<_ACEOF |
---|
20588 | /* confdefs.h. */ |
---|
20589 | _ACEOF |
---|
20590 | cat confdefs.h >>conftest.$ac_ext |
---|
20591 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20592 | /* end confdefs.h. */ |
---|
20593 | #include <windows.h> |
---|
20594 | int |
---|
20595 | main () |
---|
20596 | { |
---|
20597 | Sleep (0); |
---|
20598 | ; |
---|
20599 | return 0; |
---|
20600 | } |
---|
20601 | _ACEOF |
---|
20602 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20604 | (eval $ac_link) 2>conftest.er1 |
---|
20605 | ac_status=$? |
---|
20606 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20607 | rm -f conftest.er1 |
---|
20608 | cat conftest.err >&5 |
---|
20609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20610 | (exit $ac_status); } && |
---|
20611 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20612 | || test ! -s conftest.err' |
---|
20613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20614 | (eval $ac_try) 2>&5 |
---|
20615 | ac_status=$? |
---|
20616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20617 | (exit $ac_status); }; } && |
---|
20618 | { ac_try='test -s conftest$ac_exeext' |
---|
20619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20620 | (eval $ac_try) 2>&5 |
---|
20621 | ac_status=$? |
---|
20622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20623 | (exit $ac_status); }; }; then |
---|
20624 | alut_cv_func_Sleep=yes |
---|
20625 | else |
---|
20626 | echo "$as_me: failed program was:" >&5 |
---|
20627 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20628 | |
---|
20629 | alut_cv_func_Sleep=no |
---|
20630 | fi |
---|
20631 | rm -f conftest.err conftest.$ac_objext \ |
---|
20632 | conftest$ac_exeext conftest.$ac_ext |
---|
20633 | fi |
---|
20634 | echo "$as_me:$LINENO: result: $alut_cv_func_Sleep" >&5 |
---|
20635 | echo "${ECHO_T}$alut_cv_func_Sleep" >&6 |
---|
20636 | if test $alut_cv_func_Sleep = yes; then |
---|
20637 | |
---|
20638 | cat >>confdefs.h <<_ACEOF |
---|
20639 | #define HAVE_SLEEP 1 |
---|
20640 | _ACEOF |
---|
20641 | |
---|
20642 | fi |
---|
20643 | |
---|
20644 | |
---|
20645 | echo "$as_me:$LINENO: checking for stat" >&5 |
---|
20646 | echo $ECHO_N "checking for stat... $ECHO_C" >&6 |
---|
20647 | if test "${alut_cv_func_stat+set}" = set; then |
---|
20648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20649 | else |
---|
20650 | cat >conftest.$ac_ext <<_ACEOF |
---|
20651 | /* confdefs.h. */ |
---|
20652 | _ACEOF |
---|
20653 | cat confdefs.h >>conftest.$ac_ext |
---|
20654 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20655 | /* end confdefs.h. */ |
---|
20656 | #include <sys/types.h> |
---|
20657 | #include <sys/stat.h> |
---|
20658 | #include <unistd.h> |
---|
20659 | int |
---|
20660 | main () |
---|
20661 | { |
---|
20662 | stat ("", (struct stat*)0); |
---|
20663 | ; |
---|
20664 | return 0; |
---|
20665 | } |
---|
20666 | _ACEOF |
---|
20667 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20669 | (eval $ac_link) 2>conftest.er1 |
---|
20670 | ac_status=$? |
---|
20671 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20672 | rm -f conftest.er1 |
---|
20673 | cat conftest.err >&5 |
---|
20674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20675 | (exit $ac_status); } && |
---|
20676 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20677 | || test ! -s conftest.err' |
---|
20678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20679 | (eval $ac_try) 2>&5 |
---|
20680 | ac_status=$? |
---|
20681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20682 | (exit $ac_status); }; } && |
---|
20683 | { ac_try='test -s conftest$ac_exeext' |
---|
20684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20685 | (eval $ac_try) 2>&5 |
---|
20686 | ac_status=$? |
---|
20687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20688 | (exit $ac_status); }; }; then |
---|
20689 | alut_cv_func_stat=yes |
---|
20690 | else |
---|
20691 | echo "$as_me: failed program was:" >&5 |
---|
20692 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20693 | |
---|
20694 | alut_cv_func_stat=no |
---|
20695 | fi |
---|
20696 | rm -f conftest.err conftest.$ac_objext \ |
---|
20697 | conftest$ac_exeext conftest.$ac_ext |
---|
20698 | fi |
---|
20699 | echo "$as_me:$LINENO: result: $alut_cv_func_stat" >&5 |
---|
20700 | echo "${ECHO_T}$alut_cv_func_stat" >&6 |
---|
20701 | if test $alut_cv_func_stat = yes; then |
---|
20702 | |
---|
20703 | cat >>confdefs.h <<_ACEOF |
---|
20704 | #define HAVE_STAT 1 |
---|
20705 | _ACEOF |
---|
20706 | |
---|
20707 | fi |
---|
20708 | |
---|
20709 | |
---|
20710 | echo "$as_me:$LINENO: checking for _stat" >&5 |
---|
20711 | echo $ECHO_N "checking for _stat... $ECHO_C" >&6 |
---|
20712 | if test "${alut_cv_func__stat+set}" = set; then |
---|
20713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20714 | else |
---|
20715 | cat >conftest.$ac_ext <<_ACEOF |
---|
20716 | /* confdefs.h. */ |
---|
20717 | _ACEOF |
---|
20718 | cat confdefs.h >>conftest.$ac_ext |
---|
20719 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20720 | /* end confdefs.h. */ |
---|
20721 | #include <sys/types.h> |
---|
20722 | #include <sys/stat.h> |
---|
20723 | int |
---|
20724 | main () |
---|
20725 | { |
---|
20726 | _stat ("", (struct _stat*)0); |
---|
20727 | ; |
---|
20728 | return 0; |
---|
20729 | } |
---|
20730 | _ACEOF |
---|
20731 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20733 | (eval $ac_link) 2>conftest.er1 |
---|
20734 | ac_status=$? |
---|
20735 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20736 | rm -f conftest.er1 |
---|
20737 | cat conftest.err >&5 |
---|
20738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20739 | (exit $ac_status); } && |
---|
20740 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20741 | || test ! -s conftest.err' |
---|
20742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20743 | (eval $ac_try) 2>&5 |
---|
20744 | ac_status=$? |
---|
20745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20746 | (exit $ac_status); }; } && |
---|
20747 | { ac_try='test -s conftest$ac_exeext' |
---|
20748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20749 | (eval $ac_try) 2>&5 |
---|
20750 | ac_status=$? |
---|
20751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20752 | (exit $ac_status); }; }; then |
---|
20753 | alut_cv_func__stat=yes |
---|
20754 | else |
---|
20755 | echo "$as_me: failed program was:" >&5 |
---|
20756 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20757 | |
---|
20758 | alut_cv_func__stat=no |
---|
20759 | fi |
---|
20760 | rm -f conftest.err conftest.$ac_objext \ |
---|
20761 | conftest$ac_exeext conftest.$ac_ext |
---|
20762 | fi |
---|
20763 | echo "$as_me:$LINENO: result: $alut_cv_func__stat" >&5 |
---|
20764 | echo "${ECHO_T}$alut_cv_func__stat" >&6 |
---|
20765 | if test $alut_cv_func__stat = yes; then |
---|
20766 | |
---|
20767 | cat >>confdefs.h <<_ACEOF |
---|
20768 | #define HAVE__STAT 1 |
---|
20769 | _ACEOF |
---|
20770 | |
---|
20771 | fi |
---|
20772 | |
---|
20773 | |
---|
20774 | LIBM= |
---|
20775 | case $host in |
---|
20776 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
---|
20777 | # These system don't have libm, or don't need it |
---|
20778 | ;; |
---|
20779 | *-ncr-sysv4.3*) |
---|
20780 | echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5 |
---|
20781 | echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6 |
---|
20782 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then |
---|
20783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20784 | else |
---|
20785 | ac_check_lib_save_LIBS=$LIBS |
---|
20786 | LIBS="-lmw $LIBS" |
---|
20787 | cat >conftest.$ac_ext <<_ACEOF |
---|
20788 | /* confdefs.h. */ |
---|
20789 | _ACEOF |
---|
20790 | cat confdefs.h >>conftest.$ac_ext |
---|
20791 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20792 | /* end confdefs.h. */ |
---|
20793 | |
---|
20794 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
20795 | #ifdef __cplusplus |
---|
20796 | extern "C" |
---|
20797 | #endif |
---|
20798 | /* We use char because int might match the return type of a gcc2 |
---|
20799 | builtin and then its argument prototype would still apply. */ |
---|
20800 | char _mwvalidcheckl (); |
---|
20801 | int |
---|
20802 | main () |
---|
20803 | { |
---|
20804 | _mwvalidcheckl (); |
---|
20805 | ; |
---|
20806 | return 0; |
---|
20807 | } |
---|
20808 | _ACEOF |
---|
20809 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20811 | (eval $ac_link) 2>conftest.er1 |
---|
20812 | ac_status=$? |
---|
20813 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20814 | rm -f conftest.er1 |
---|
20815 | cat conftest.err >&5 |
---|
20816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20817 | (exit $ac_status); } && |
---|
20818 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20819 | || test ! -s conftest.err' |
---|
20820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20821 | (eval $ac_try) 2>&5 |
---|
20822 | ac_status=$? |
---|
20823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20824 | (exit $ac_status); }; } && |
---|
20825 | { ac_try='test -s conftest$ac_exeext' |
---|
20826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20827 | (eval $ac_try) 2>&5 |
---|
20828 | ac_status=$? |
---|
20829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20830 | (exit $ac_status); }; }; then |
---|
20831 | ac_cv_lib_mw__mwvalidcheckl=yes |
---|
20832 | else |
---|
20833 | echo "$as_me: failed program was:" >&5 |
---|
20834 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20835 | |
---|
20836 | ac_cv_lib_mw__mwvalidcheckl=no |
---|
20837 | fi |
---|
20838 | rm -f conftest.err conftest.$ac_objext \ |
---|
20839 | conftest$ac_exeext conftest.$ac_ext |
---|
20840 | LIBS=$ac_check_lib_save_LIBS |
---|
20841 | fi |
---|
20842 | echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
---|
20843 | echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6 |
---|
20844 | if test $ac_cv_lib_mw__mwvalidcheckl = yes; then |
---|
20845 | LIBM="-lmw" |
---|
20846 | fi |
---|
20847 | |
---|
20848 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
---|
20849 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 |
---|
20850 | if test "${ac_cv_lib_m_cos+set}" = set; then |
---|
20851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20852 | else |
---|
20853 | ac_check_lib_save_LIBS=$LIBS |
---|
20854 | LIBS="-lm $LIBS" |
---|
20855 | cat >conftest.$ac_ext <<_ACEOF |
---|
20856 | /* confdefs.h. */ |
---|
20857 | _ACEOF |
---|
20858 | cat confdefs.h >>conftest.$ac_ext |
---|
20859 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20860 | /* end confdefs.h. */ |
---|
20861 | |
---|
20862 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
20863 | #ifdef __cplusplus |
---|
20864 | extern "C" |
---|
20865 | #endif |
---|
20866 | /* We use char because int might match the return type of a gcc2 |
---|
20867 | builtin and then its argument prototype would still apply. */ |
---|
20868 | char cos (); |
---|
20869 | int |
---|
20870 | main () |
---|
20871 | { |
---|
20872 | cos (); |
---|
20873 | ; |
---|
20874 | return 0; |
---|
20875 | } |
---|
20876 | _ACEOF |
---|
20877 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20879 | (eval $ac_link) 2>conftest.er1 |
---|
20880 | ac_status=$? |
---|
20881 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20882 | rm -f conftest.er1 |
---|
20883 | cat conftest.err >&5 |
---|
20884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20885 | (exit $ac_status); } && |
---|
20886 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20887 | || test ! -s conftest.err' |
---|
20888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20889 | (eval $ac_try) 2>&5 |
---|
20890 | ac_status=$? |
---|
20891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20892 | (exit $ac_status); }; } && |
---|
20893 | { ac_try='test -s conftest$ac_exeext' |
---|
20894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20895 | (eval $ac_try) 2>&5 |
---|
20896 | ac_status=$? |
---|
20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20898 | (exit $ac_status); }; }; then |
---|
20899 | ac_cv_lib_m_cos=yes |
---|
20900 | else |
---|
20901 | echo "$as_me: failed program was:" >&5 |
---|
20902 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20903 | |
---|
20904 | ac_cv_lib_m_cos=no |
---|
20905 | fi |
---|
20906 | rm -f conftest.err conftest.$ac_objext \ |
---|
20907 | conftest$ac_exeext conftest.$ac_ext |
---|
20908 | LIBS=$ac_check_lib_save_LIBS |
---|
20909 | fi |
---|
20910 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
---|
20911 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 |
---|
20912 | if test $ac_cv_lib_m_cos = yes; then |
---|
20913 | LIBM="$LIBM -lm" |
---|
20914 | fi |
---|
20915 | |
---|
20916 | ;; |
---|
20917 | *) |
---|
20918 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
---|
20919 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 |
---|
20920 | if test "${ac_cv_lib_m_cos+set}" = set; then |
---|
20921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20922 | else |
---|
20923 | ac_check_lib_save_LIBS=$LIBS |
---|
20924 | LIBS="-lm $LIBS" |
---|
20925 | cat >conftest.$ac_ext <<_ACEOF |
---|
20926 | /* confdefs.h. */ |
---|
20927 | _ACEOF |
---|
20928 | cat confdefs.h >>conftest.$ac_ext |
---|
20929 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20930 | /* end 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 cos (); |
---|
20939 | int |
---|
20940 | main () |
---|
20941 | { |
---|
20942 | cos (); |
---|
20943 | ; |
---|
20944 | return 0; |
---|
20945 | } |
---|
20946 | _ACEOF |
---|
20947 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
20949 | (eval $ac_link) 2>conftest.er1 |
---|
20950 | ac_status=$? |
---|
20951 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20952 | rm -f conftest.er1 |
---|
20953 | cat conftest.err >&5 |
---|
20954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20955 | (exit $ac_status); } && |
---|
20956 | { ac_try='test -z "$ac_c_werror_flag" |
---|
20957 | || test ! -s conftest.err' |
---|
20958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20959 | (eval $ac_try) 2>&5 |
---|
20960 | ac_status=$? |
---|
20961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20962 | (exit $ac_status); }; } && |
---|
20963 | { ac_try='test -s conftest$ac_exeext' |
---|
20964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
20965 | (eval $ac_try) 2>&5 |
---|
20966 | ac_status=$? |
---|
20967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20968 | (exit $ac_status); }; }; then |
---|
20969 | ac_cv_lib_m_cos=yes |
---|
20970 | else |
---|
20971 | echo "$as_me: failed program was:" >&5 |
---|
20972 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20973 | |
---|
20974 | ac_cv_lib_m_cos=no |
---|
20975 | fi |
---|
20976 | rm -f conftest.err conftest.$ac_objext \ |
---|
20977 | conftest$ac_exeext conftest.$ac_ext |
---|
20978 | LIBS=$ac_check_lib_save_LIBS |
---|
20979 | fi |
---|
20980 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
---|
20981 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 |
---|
20982 | if test $ac_cv_lib_m_cos = yes; then |
---|
20983 | LIBM="-lm" |
---|
20984 | fi |
---|
20985 | |
---|
20986 | ;; |
---|
20987 | esac |
---|
20988 | |
---|
20989 | |
---|
20990 | |
---|
20991 | ################################################################################ |
---|
20992 | # Build time configuration. |
---|
20993 | ################################################################################ |
---|
20994 | |
---|
20995 | # Check whether --enable-warnings or --disable-warnings was given. |
---|
20996 | if test "${enable_warnings+set}" = set; then |
---|
20997 | enableval="$enable_warnings" |
---|
20998 | |
---|
20999 | fi; |
---|
21000 | |
---|
21001 | if test "x$enable_warnings" != xno; then |
---|
21002 | # Doing it in two steps gives a nicer message... |
---|
21003 | echo "$as_me:$LINENO: checking flags for maximum ANSI warnings" >&5 |
---|
21004 | echo $ECHO_N "checking flags for maximum ANSI warnings... $ECHO_C" >&6 |
---|
21005 | if test "${ac_cv_cflags_warn_all_ansi+set}" = set; then |
---|
21006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21007 | else |
---|
21008 | ac_cv_cflags_warn_all_ansi="no, unknown" |
---|
21009 | ac_ext=c |
---|
21010 | ac_cpp='$CPP $CPPFLAGS' |
---|
21011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
21012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
21013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
21014 | |
---|
21015 | ac_save_CFLAGS="$CFLAGS" |
---|
21016 | # IRIX C compiler: |
---|
21017 | # -use_readonly_const is the default for IRIX C, |
---|
21018 | # puts them into .rodata, but they are copied later. |
---|
21019 | # need to be "-G0 -rdatashared" for strictmode but |
---|
21020 | # I am not sure what effect that has really. - guidod |
---|
21021 | for ac_arg in "-pedantic % -Wall -ansi -pedantic" "-xstrconst % -v -Xc" "-std1 % -verbose -w0 -warnprotos -std1" " % -qlanglvl=ansi -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" " % -ansi -ansiE -fullwarn" "+ESlit % +w1 -Aa" "-Xc % -pvctl,fullmsg -Xc" "-h conform % -h msglevel 2 -h conform" # |
---|
21022 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` |
---|
21023 | cat >conftest.$ac_ext <<_ACEOF |
---|
21024 | /* confdefs.h. */ |
---|
21025 | _ACEOF |
---|
21026 | cat confdefs.h >>conftest.$ac_ext |
---|
21027 | cat >>conftest.$ac_ext <<_ACEOF |
---|
21028 | /* end confdefs.h. */ |
---|
21029 | |
---|
21030 | int |
---|
21031 | main () |
---|
21032 | { |
---|
21033 | |
---|
21034 | ; |
---|
21035 | return 0; |
---|
21036 | } |
---|
21037 | _ACEOF |
---|
21038 | rm -f conftest.$ac_objext |
---|
21039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
21040 | (eval $ac_compile) 2>conftest.er1 |
---|
21041 | ac_status=$? |
---|
21042 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
21043 | rm -f conftest.er1 |
---|
21044 | cat conftest.err >&5 |
---|
21045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21046 | (exit $ac_status); } && |
---|
21047 | { ac_try='test -z "$ac_c_werror_flag" |
---|
21048 | || test ! -s conftest.err' |
---|
21049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
21050 | (eval $ac_try) 2>&5 |
---|
21051 | ac_status=$? |
---|
21052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21053 | (exit $ac_status); }; } && |
---|
21054 | { ac_try='test -s conftest.$ac_objext' |
---|
21055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
21056 | (eval $ac_try) 2>&5 |
---|
21057 | ac_status=$? |
---|
21058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21059 | (exit $ac_status); }; }; then |
---|
21060 | ac_cv_cflags_warn_all_ansi=`echo $ac_arg | sed -e 's,.*% *,,'` ; break |
---|
21061 | else |
---|
21062 | echo "$as_me: failed program was:" >&5 |
---|
21063 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
21064 | |
---|
21065 | fi |
---|
21066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
21067 | done |
---|
21068 | CFLAGS="$ac_save_CFLAGS" |
---|
21069 | ac_ext=c |
---|
21070 | ac_cpp='$CPP $CPPFLAGS' |
---|
21071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
21072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
21073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
21074 | |
---|
21075 | |
---|
21076 | fi |
---|
21077 | echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all_ansi" >&5 |
---|
21078 | echo "${ECHO_T}$ac_cv_cflags_warn_all_ansi" >&6 |
---|
21079 | case ".$ac_cv_cflags_warn_all_ansi" in |
---|
21080 | .ok|.ok,*) ;; |
---|
21081 | .|.no|.no,*) |
---|
21082 | ;; |
---|
21083 | *) |
---|
21084 | if echo " $flags " | grep " $ac_cv_cflags_warn_all_ansi " 2>&1 >/dev/null |
---|
21085 | then { (echo "$as_me:$LINENO: : flags does contain \$ac_cv_cflags_warn_all_ansi") >&5 |
---|
21086 | (: flags does contain $ac_cv_cflags_warn_all_ansi) 2>&5 |
---|
21087 | ac_status=$? |
---|
21088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21089 | (exit $ac_status); } |
---|
21090 | else { (echo "$as_me:$LINENO: : flags=\"\$flags \$ac_cv_cflags_warn_all_ansi\"") >&5 |
---|
21091 | (: flags="$flags $ac_cv_cflags_warn_all_ansi") 2>&5 |
---|
21092 | ac_status=$? |
---|
21093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21094 | (exit $ac_status); } |
---|
21095 | flags="$flags $ac_cv_cflags_warn_all_ansi" |
---|
21096 | fi |
---|
21097 | ;; |
---|
21098 | esac |
---|
21099 | |
---|
21100 | AM_CFLAGS="$AM_CFLAGS $flags" |
---|
21101 | fi |
---|
21102 | |
---|
21103 | # Check whether --enable-more-warnings or --disable-more-warnings was given. |
---|
21104 | if test "${enable_more_warnings+set}" = set; then |
---|
21105 | enableval="$enable_more_warnings" |
---|
21106 | |
---|
21107 | fi; |
---|
21108 | |
---|
21109 | if test "x$enable_more_warnings" = xyes; then |
---|
21110 | if test "x$enable_warnings" = xno; then |
---|
21111 | { echo "$as_me:$LINENO: WARNING: --enable-more-warnings ignored because of --disable-warnings" >&5 |
---|
21112 | echo "$as_me: WARNING: --enable-more-warnings ignored because of --disable-warnings" >&2;} |
---|
21113 | elif test "x$GCC" != xyes; then |
---|
21114 | { echo "$as_me:$LINENO: WARNING: --enable-more-warnings ignored because no GCC was detected" >&5 |
---|
21115 | echo "$as_me: WARNING: --enable-more-warnings ignored because no GCC was detected" >&2;} |
---|
21116 | else |
---|
21117 | # The long list of warning options below contains every GCC warning option |
---|
21118 | # which is not automatically enabled with -Wall. The only exceptions to this |
---|
21119 | # rule are: |
---|
21120 | # |
---|
21121 | # -Wpadded: |
---|
21122 | # Perhaps good for optimizing out data layout, but not in general. |
---|
21123 | # |
---|
21124 | # -Wconversion: |
---|
21125 | # Passing e.g. float as an argument is fine, we always have prototypes. |
---|
21126 | # |
---|
21127 | # Note that some older GCC versions give false positives about unreachable |
---|
21128 | # code. |
---|
21129 | AM_CFLAGS="$AM_CFLAGS -W -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Winline -Wlong-long -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wunreachable-code -Wwrite-strings" |
---|
21130 | |
---|
21131 | # Check for GCC 4.x-only warning options. |
---|
21132 | alut_compiler="$CC" |
---|
21133 | echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Wdeclaration-after-statement" >&5 |
---|
21134 | echo $ECHO_N "checking whether $alut_compiler accepts -Wdeclaration-after-statement... $ECHO_C" >&6 |
---|
21135 | if test "${alut_cv_CFLAGS_Wdeclaration_after_statement+set}" = set; then |
---|
21136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21137 | else |
---|
21138 | cat >conftest.$ac_ext <<_ACEOF |
---|
21139 | /* confdefs.h. */ |
---|
21140 | _ACEOF |
---|
21141 | cat confdefs.h >>conftest.$ac_ext |
---|
21142 | cat >>conftest.$ac_ext <<_ACEOF |
---|
21143 | /* end confdefs.h. */ |
---|
21144 | |
---|
21145 | int |
---|
21146 | main () |
---|
21147 | { |
---|
21148 | |
---|
21149 | ; |
---|
21150 | return 0; |
---|
21151 | } |
---|
21152 | _ACEOF |
---|
21153 | alut_save_flags="$CFLAGS" |
---|
21154 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
---|
21155 | alut_cv_CFLAGS_Wdeclaration_after_statement=no |
---|
21156 | if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1 |
---|
21157 | alut_status=$? |
---|
21158 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
21159 | rm -f conftest.er1 |
---|
21160 | (exit $alut_status); } >/dev/null; then |
---|
21161 | test -s conftest.err || alut_cv_CFLAGS_Wdeclaration_after_statement=yes |
---|
21162 | fi |
---|
21163 | CFLAGS="$alut_save_flags" |
---|
21164 | rm -f conftest.err conftest.$ac_ext |
---|
21165 | fi |
---|
21166 | echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Wdeclaration_after_statement" >&5 |
---|
21167 | echo "${ECHO_T}$alut_cv_CFLAGS_Wdeclaration_after_statement" >&6 |
---|
21168 | if test $alut_cv_CFLAGS_Wdeclaration_after_statement = yes; then |
---|
21169 | AM_CFLAGS="$AM_CFLAGS -Wdeclaration-after-statement" |
---|
21170 | fi |
---|
21171 | |
---|
21172 | alut_compiler="$CC" |
---|
21173 | echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Winvalid-pch" >&5 |
---|
21174 | echo $ECHO_N "checking whether $alut_compiler accepts -Winvalid-pch... $ECHO_C" >&6 |
---|
21175 | if test "${alut_cv_CFLAGS_Winvalid_pch+set}" = set; then |
---|
21176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21177 | else |
---|
21178 | cat >conftest.$ac_ext <<_ACEOF |
---|
21179 | /* confdefs.h. */ |
---|
21180 | _ACEOF |
---|
21181 | cat confdefs.h >>conftest.$ac_ext |
---|
21182 | cat >>conftest.$ac_ext <<_ACEOF |
---|
21183 | /* end confdefs.h. */ |
---|
21184 | |
---|
21185 | int |
---|
21186 | main () |
---|
21187 | { |
---|
21188 | |
---|
21189 | ; |
---|
21190 | return 0; |
---|
21191 | } |
---|
21192 | _ACEOF |
---|
21193 | alut_save_flags="$CFLAGS" |
---|
21194 | CFLAGS="$CFLAGS -Winvalid-pch" |
---|
21195 | alut_cv_CFLAGS_Winvalid_pch=no |
---|
21196 | if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1 |
---|
21197 | alut_status=$? |
---|
21198 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
21199 | rm -f conftest.er1 |
---|
21200 | (exit $alut_status); } >/dev/null; then |
---|
21201 | test -s conftest.err || alut_cv_CFLAGS_Winvalid_pch=yes |
---|
21202 | fi |
---|
21203 | CFLAGS="$alut_save_flags" |
---|
21204 | rm -f conftest.err conftest.$ac_ext |
---|
21205 | fi |
---|
21206 | echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Winvalid_pch" >&5 |
---|
21207 | echo "${ECHO_T}$alut_cv_CFLAGS_Winvalid_pch" >&6 |
---|
21208 | if test $alut_cv_CFLAGS_Winvalid_pch = yes; then |
---|
21209 | AM_CFLAGS="$AM_CFLAGS -Winvalid-pch" |
---|
21210 | fi |
---|
21211 | |
---|
21212 | alut_compiler="$CC" |
---|
21213 | echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Wmissing-field-initializers" >&5 |
---|
21214 | echo $ECHO_N "checking whether $alut_compiler accepts -Wmissing-field-initializers... $ECHO_C" >&6 |
---|
21215 | if test "${alut_cv_CFLAGS_Wmissing_field_initializers+set}" = set; then |
---|
21216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21217 | else |
---|
21218 | cat >conftest.$ac_ext <<_ACEOF |
---|
21219 | /* confdefs.h. */ |
---|
21220 | _ACEOF |
---|
21221 | cat confdefs.h >>conftest.$ac_ext |
---|
21222 | cat >>conftest.$ac_ext <<_ACEOF |
---|
21223 | /* end confdefs.h. */ |
---|
21224 | |
---|
21225 | int |
---|
21226 | main () |
---|
21227 | { |
---|
21228 | |
---|
21229 | ; |
---|
21230 | return 0; |
---|
21231 | } |
---|
21232 | _ACEOF |
---|
21233 | alut_save_flags="$CFLAGS" |
---|
21234 | CFLAGS="$CFLAGS -Wmissing-field-initializers" |
---|
21235 | alut_cv_CFLAGS_Wmissing_field_initializers=no |
---|
21236 | if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1 |
---|
21237 | alut_status=$? |
---|
21238 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
21239 | rm -f conftest.er1 |
---|
21240 | (exit $alut_status); } >/dev/null; then |
---|
21241 | test -s conftest.err || alut_cv_CFLAGS_Wmissing_field_initializers=yes |
---|
21242 | fi |
---|
21243 | CFLAGS="$alut_save_flags" |
---|
21244 | rm -f conftest.err conftest.$ac_ext |
---|
21245 | fi |
---|
21246 | echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Wmissing_field_initializers" >&5 |
---|
21247 | echo "${ECHO_T}$alut_cv_CFLAGS_Wmissing_field_initializers" >&6 |
---|
21248 | if test $alut_cv_CFLAGS_Wmissing_field_initializers = yes; then |
---|
21249 | AM_CFLAGS="$AM_CFLAGS -Wmissing-field-initializers" |
---|
21250 | fi |
---|
21251 | |
---|
21252 | # We cheat here a bit: The code generated by AC_LANG_PROGRAM triggers a |
---|
21253 | # warning with -Wold-style-definition, so we assume that this flag is |
---|
21254 | # supported whenever -Wvariadic-macros is. |
---|
21255 | alut_compiler="$CC" |
---|
21256 | echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Wvariadic-macros" >&5 |
---|
21257 | echo $ECHO_N "checking whether $alut_compiler accepts -Wvariadic-macros... $ECHO_C" >&6 |
---|
21258 | if test "${alut_cv_CFLAGS_Wvariadic_macros+set}" = set; then |
---|
21259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21260 | else |
---|
21261 | cat >conftest.$ac_ext <<_ACEOF |
---|
21262 | /* confdefs.h. */ |
---|
21263 | _ACEOF |
---|
21264 | cat confdefs.h >>conftest.$ac_ext |
---|
21265 | cat >>conftest.$ac_ext <<_ACEOF |
---|
21266 | /* end confdefs.h. */ |
---|
21267 | |
---|
21268 | int |
---|
21269 | main () |
---|
21270 | { |
---|
21271 | |
---|
21272 | ; |
---|
21273 | return 0; |
---|
21274 | } |
---|
21275 | _ACEOF |
---|
21276 | alut_save_flags="$CFLAGS" |
---|
21277 | CFLAGS="$CFLAGS -Wvariadic-macros" |
---|
21278 | alut_cv_CFLAGS_Wvariadic_macros=no |
---|
21279 | if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1 |
---|
21280 | alut_status=$? |
---|
21281 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
21282 | rm -f conftest.er1 |
---|
21283 | (exit $alut_status); } >/dev/null; then |
---|
21284 | test -s conftest.err || alut_cv_CFLAGS_Wvariadic_macros=yes |
---|
21285 | fi |
---|
21286 | CFLAGS="$alut_save_flags" |
---|
21287 | rm -f conftest.err conftest.$ac_ext |
---|
21288 | fi |
---|
21289 | echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Wvariadic_macros" >&5 |
---|
21290 | echo "${ECHO_T}$alut_cv_CFLAGS_Wvariadic_macros" >&6 |
---|
21291 | if test $alut_cv_CFLAGS_Wvariadic_macros = yes; then |
---|
21292 | AM_CFLAGS="$AM_CFLAGS -Wvariadic-macros -Wold-style-definition" |
---|
21293 | fi |
---|
21294 | |
---|
21295 | fi |
---|
21296 | fi |
---|
21297 | |
---|
21298 | # Check whether --enable-werror or --disable-werror was given. |
---|
21299 | if test "${enable_werror+set}" = set; then |
---|
21300 | enableval="$enable_werror" |
---|
21301 | |
---|
21302 | fi; |
---|
21303 | |
---|
21304 | if test "x$enable_werror" = xyes; then |
---|
21305 | if test "x$enable_warnings" = xno; then |
---|
21306 | { echo "$as_me:$LINENO: WARNING: --enable-werror ignored because of --disable-warnings" >&5 |
---|
21307 | echo "$as_me: WARNING: --enable-werror ignored because of --disable-warnings" >&2;} |
---|
21308 | elif test "x$GCC" != xyes; then |
---|
21309 | { echo "$as_me:$LINENO: WARNING: --enable-werror ignored because no GCC was detected" >&5 |
---|
21310 | echo "$as_me: WARNING: --enable-werror ignored because no GCC was detected" >&2;} |
---|
21311 | else |
---|
21312 | AM_CFLAGS="$AM_CFLAGS -Werror" |
---|
21313 | fi |
---|
21314 | fi |
---|
21315 | |
---|
21316 | # Check whether --enable-efence or --disable-efence was given. |
---|
21317 | if test "${enable_efence+set}" = set; then |
---|
21318 | enableval="$enable_efence" |
---|
21319 | |
---|
21320 | fi; |
---|
21321 | |
---|
21322 | if test "x$enable_efence" = xyes; then |
---|
21323 | alut_saved_LIBS=$LIBS |
---|
21324 | LIBS="-lefence $LIBS" |
---|
21325 | cat >conftest.$ac_ext <<_ACEOF |
---|
21326 | /* confdefs.h. */ |
---|
21327 | _ACEOF |
---|
21328 | cat confdefs.h >>conftest.$ac_ext |
---|
21329 | cat >>conftest.$ac_ext <<_ACEOF |
---|
21330 | /* end confdefs.h. */ |
---|
21331 | extern int EF_ALIGNMENT; |
---|
21332 | int |
---|
21333 | main () |
---|
21334 | { |
---|
21335 | EF_ALIGNMENT = 8; |
---|
21336 | ; |
---|
21337 | return 0; |
---|
21338 | } |
---|
21339 | _ACEOF |
---|
21340 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
21341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
21342 | (eval $ac_link) 2>conftest.er1 |
---|
21343 | ac_status=$? |
---|
21344 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
21345 | rm -f conftest.er1 |
---|
21346 | cat conftest.err >&5 |
---|
21347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21348 | (exit $ac_status); } && |
---|
21349 | { ac_try='test -z "$ac_c_werror_flag" |
---|
21350 | || test ! -s conftest.err' |
---|
21351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
21352 | (eval $ac_try) 2>&5 |
---|
21353 | ac_status=$? |
---|
21354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21355 | (exit $ac_status); }; } && |
---|
21356 | { ac_try='test -s conftest$ac_exeext' |
---|
21357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
21358 | (eval $ac_try) 2>&5 |
---|
21359 | ac_status=$? |
---|
21360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21361 | (exit $ac_status); }; }; then |
---|
21362 | : |
---|
21363 | else |
---|
21364 | echo "$as_me: failed program was:" >&5 |
---|
21365 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
21366 | |
---|
21367 | { echo "$as_me:$LINENO: WARNING: --enable-efence ignored because the Electric Fence library was not found." >&5 |
---|
21368 | echo "$as_me: WARNING: --enable-efence ignored because the Electric Fence library was not found." >&2;} |
---|
21369 | LIBS=$alut_saved_LIBS |
---|
21370 | fi |
---|
21371 | rm -f conftest.err conftest.$ac_objext \ |
---|
21372 | conftest$ac_exeext conftest.$ac_ext |
---|
21373 | fi |
---|
21374 | |
---|
21375 | ################################################################################ |
---|
21376 | # Generate output. |
---|
21377 | ################################################################################ |
---|
21378 | |
---|
21379 | |
---|
21380 | |
---|
21381 | # NOTE: Do not break the following line, otherwise we are into CR/LF vs. LF |
---|
21382 | # trouble! This is a buglet in autoconf IMHO, but easy to work around. |
---|
21383 | ac_config_files="$ac_config_files Makefile admin/Makefile admin/pkgconfig/Makefile admin/pkgconfig/freealut-config admin/pkgconfig/freealut.pc admin/RPM/freealut.spec examples/Makefile include/Makefile src/Makefile test_suite/Makefile" |
---|
21384 | |
---|
21385 | |
---|
21386 | cat >confcache <<\_ACEOF |
---|
21387 | # This file is a shell script that caches the results of configure |
---|
21388 | # tests run on this system so they can be shared between configure |
---|
21389 | # scripts and configure runs, see configure's option --config-cache. |
---|
21390 | # It is not useful on other systems. If it contains results you don't |
---|
21391 | # want to keep, you may remove or edit it. |
---|
21392 | # |
---|
21393 | # config.status only pays attention to the cache file if you give it |
---|
21394 | # the --recheck option to rerun configure. |
---|
21395 | # |
---|
21396 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
21397 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
21398 | # following values. |
---|
21399 | |
---|
21400 | _ACEOF |
---|
21401 | |
---|
21402 | # The following way of writing the cache mishandles newlines in values, |
---|
21403 | # but we know of no workaround that is simple, portable, and efficient. |
---|
21404 | # So, don't put newlines in cache variables' values. |
---|
21405 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
21406 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
21407 | { |
---|
21408 | (set) 2>&1 | |
---|
21409 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
21410 | *ac_space=\ *) |
---|
21411 | # `set' does not quote correctly, so add quotes (double-quote |
---|
21412 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
21413 | sed -n \ |
---|
21414 | "s/'/'\\\\''/g; |
---|
21415 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
21416 | ;; |
---|
21417 | *) |
---|
21418 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
21419 | sed -n \ |
---|
21420 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
21421 | ;; |
---|
21422 | esac; |
---|
21423 | } | |
---|
21424 | sed ' |
---|
21425 | t clear |
---|
21426 | : clear |
---|
21427 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
21428 | t end |
---|
21429 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
21430 | : end' >>confcache |
---|
21431 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
21432 | if test -w $cache_file; then |
---|
21433 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
21434 | cat confcache >$cache_file |
---|
21435 | else |
---|
21436 | echo "not updating unwritable cache $cache_file" |
---|
21437 | fi |
---|
21438 | fi |
---|
21439 | rm -f confcache |
---|
21440 | |
---|
21441 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
21442 | # Let make expand exec_prefix. |
---|
21443 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
21444 | |
---|
21445 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
21446 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
21447 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
21448 | # (actually we leave an empty line to preserve line numbers). |
---|
21449 | if test "x$srcdir" = x.; then |
---|
21450 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
21451 | s/:*\$(srcdir):*/:/; |
---|
21452 | s/:*\${srcdir}:*/:/; |
---|
21453 | s/:*@srcdir@:*/:/; |
---|
21454 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
21455 | s/:*$//; |
---|
21456 | s/^[^=]*=[ ]*$//; |
---|
21457 | }' |
---|
21458 | fi |
---|
21459 | |
---|
21460 | DEFS=-DHAVE_CONFIG_H |
---|
21461 | |
---|
21462 | ac_libobjs= |
---|
21463 | ac_ltlibobjs= |
---|
21464 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
21465 | # 1. Remove the extension, and $U if already installed. |
---|
21466 | ac_i=`echo "$ac_i" | |
---|
21467 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
21468 | # 2. Add them. |
---|
21469 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
21470 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
21471 | done |
---|
21472 | LIBOBJS=$ac_libobjs |
---|
21473 | |
---|
21474 | LTLIBOBJS=$ac_ltlibobjs |
---|
21475 | |
---|
21476 | |
---|
21477 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
21478 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
21479 | Usually this means the macro was only invoked conditionally." >&5 |
---|
21480 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
21481 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
21482 | { (exit 1); exit 1; }; } |
---|
21483 | fi |
---|
21484 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
21485 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
21486 | Usually this means the macro was only invoked conditionally." >&5 |
---|
21487 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
21488 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
21489 | { (exit 1); exit 1; }; } |
---|
21490 | fi |
---|
21491 | if test -z "${WNO_DEPRECATED_DECLARATIONS_TRUE}" && test -z "${WNO_DEPRECATED_DECLARATIONS_FALSE}"; then |
---|
21492 | { { echo "$as_me:$LINENO: error: conditional \"WNO_DEPRECATED_DECLARATIONS\" was never defined. |
---|
21493 | Usually this means the macro was only invoked conditionally." >&5 |
---|
21494 | echo "$as_me: error: conditional \"WNO_DEPRECATED_DECLARATIONS\" was never defined. |
---|
21495 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
21496 | { (exit 1); exit 1; }; } |
---|
21497 | fi |
---|
21498 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
21499 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
21500 | Usually this means the macro was only invoked conditionally." >&5 |
---|
21501 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
21502 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
21503 | { (exit 1); exit 1; }; } |
---|
21504 | fi |
---|
21505 | |
---|
21506 | : ${CONFIG_STATUS=./config.status} |
---|
21507 | ac_clean_files_save=$ac_clean_files |
---|
21508 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
21509 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
21510 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
21511 | cat >$CONFIG_STATUS <<_ACEOF |
---|
21512 | #! $SHELL |
---|
21513 | # Generated by $as_me. |
---|
21514 | # Run this file to recreate the current configuration. |
---|
21515 | # Compiler output produced by configure, useful for debugging |
---|
21516 | # configure, is in config.log if it exists. |
---|
21517 | |
---|
21518 | debug=false |
---|
21519 | ac_cs_recheck=false |
---|
21520 | ac_cs_silent=false |
---|
21521 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
21522 | _ACEOF |
---|
21523 | |
---|
21524 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
21525 | ## --------------------- ## |
---|
21526 | ## M4sh Initialization. ## |
---|
21527 | ## --------------------- ## |
---|
21528 | |
---|
21529 | # Be Bourne compatible |
---|
21530 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
21531 | emulate sh |
---|
21532 | NULLCMD=: |
---|
21533 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
21534 | # is contrary to our usage. Disable this feature. |
---|
21535 | alias -g '${1+"$@"}'='"$@"' |
---|
21536 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
21537 | set -o posix |
---|
21538 | fi |
---|
21539 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
21540 | |
---|
21541 | # Support unset when possible. |
---|
21542 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
21543 | as_unset=unset |
---|
21544 | else |
---|
21545 | as_unset=false |
---|
21546 | fi |
---|
21547 | |
---|
21548 | |
---|
21549 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
21550 | $as_unset ENV MAIL MAILPATH |
---|
21551 | PS1='$ ' |
---|
21552 | PS2='> ' |
---|
21553 | PS4='+ ' |
---|
21554 | |
---|
21555 | # NLS nuisances. |
---|
21556 | for as_var in \ |
---|
21557 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
21558 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
21559 | LC_TELEPHONE LC_TIME |
---|
21560 | do |
---|
21561 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
21562 | eval $as_var=C; export $as_var |
---|
21563 | else |
---|
21564 | $as_unset $as_var |
---|
21565 | fi |
---|
21566 | done |
---|
21567 | |
---|
21568 | # Required to use basename. |
---|
21569 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
21570 | as_expr=expr |
---|
21571 | else |
---|
21572 | as_expr=false |
---|
21573 | fi |
---|
21574 | |
---|
21575 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
21576 | as_basename=basename |
---|
21577 | else |
---|
21578 | as_basename=false |
---|
21579 | fi |
---|
21580 | |
---|
21581 | |
---|
21582 | # Name of the executable. |
---|
21583 | as_me=`$as_basename "$0" || |
---|
21584 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
21585 | X"$0" : 'X\(//\)$' \| \ |
---|
21586 | X"$0" : 'X\(/\)$' \| \ |
---|
21587 | . : '\(.\)' 2>/dev/null || |
---|
21588 | echo X/"$0" | |
---|
21589 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
21590 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
21591 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
21592 | s/.*/./; q'` |
---|
21593 | |
---|
21594 | |
---|
21595 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
21596 | # Avoid depending upon Character Ranges. |
---|
21597 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
21598 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
21599 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
21600 | as_cr_digits='0123456789' |
---|
21601 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
21602 | |
---|
21603 | # The user is always right. |
---|
21604 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
21605 | echo "#! /bin/sh" >conf$$.sh |
---|
21606 | echo "exit 0" >>conf$$.sh |
---|
21607 | chmod +x conf$$.sh |
---|
21608 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
21609 | PATH_SEPARATOR=';' |
---|
21610 | else |
---|
21611 | PATH_SEPARATOR=: |
---|
21612 | fi |
---|
21613 | rm -f conf$$.sh |
---|
21614 | fi |
---|
21615 | |
---|
21616 | |
---|
21617 | as_lineno_1=$LINENO |
---|
21618 | as_lineno_2=$LINENO |
---|
21619 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
21620 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
21621 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
21622 | # Find who we are. Look in the path if we contain no path at all |
---|
21623 | # relative or not. |
---|
21624 | case $0 in |
---|
21625 | *[\\/]* ) as_myself=$0 ;; |
---|
21626 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
21627 | for as_dir in $PATH |
---|
21628 | do |
---|
21629 | IFS=$as_save_IFS |
---|
21630 | test -z "$as_dir" && as_dir=. |
---|
21631 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
21632 | done |
---|
21633 | |
---|
21634 | ;; |
---|
21635 | esac |
---|
21636 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
21637 | # in which case we are not to be found in the path. |
---|
21638 | if test "x$as_myself" = x; then |
---|
21639 | as_myself=$0 |
---|
21640 | fi |
---|
21641 | if test ! -f "$as_myself"; then |
---|
21642 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
21643 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
21644 | { (exit 1); exit 1; }; } |
---|
21645 | fi |
---|
21646 | case $CONFIG_SHELL in |
---|
21647 | '') |
---|
21648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
21649 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
21650 | do |
---|
21651 | IFS=$as_save_IFS |
---|
21652 | test -z "$as_dir" && as_dir=. |
---|
21653 | for as_base in sh bash ksh sh5; do |
---|
21654 | case $as_dir in |
---|
21655 | /*) |
---|
21656 | if ("$as_dir/$as_base" -c ' |
---|
21657 | as_lineno_1=$LINENO |
---|
21658 | as_lineno_2=$LINENO |
---|
21659 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
21660 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
21661 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
21662 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
21663 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
21664 | CONFIG_SHELL=$as_dir/$as_base |
---|
21665 | export CONFIG_SHELL |
---|
21666 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
21667 | fi;; |
---|
21668 | esac |
---|
21669 | done |
---|
21670 | done |
---|
21671 | ;; |
---|
21672 | esac |
---|
21673 | |
---|
21674 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
21675 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
21676 | # line-number line before each line; the second 'sed' does the real |
---|
21677 | # work. The second script uses 'N' to pair each line-number line |
---|
21678 | # with the numbered line, and appends trailing '-' during |
---|
21679 | # substitution so that $LINENO is not a special case at line end. |
---|
21680 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
21681 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
21682 | sed '=' <$as_myself | |
---|
21683 | sed ' |
---|
21684 | N |
---|
21685 | s,$,-, |
---|
21686 | : loop |
---|
21687 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
21688 | t loop |
---|
21689 | s,-$,, |
---|
21690 | s,^['$as_cr_digits']*\n,, |
---|
21691 | ' >$as_me.lineno && |
---|
21692 | chmod +x $as_me.lineno || |
---|
21693 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
21694 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
21695 | { (exit 1); exit 1; }; } |
---|
21696 | |
---|
21697 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
21698 | # (the dirname of $[0] is not the place where we might find the |
---|
21699 | # original and so on. Autoconf is especially sensible to this). |
---|
21700 | . ./$as_me.lineno |
---|
21701 | # Exit status is that of the last command. |
---|
21702 | exit |
---|
21703 | } |
---|
21704 | |
---|
21705 | |
---|
21706 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
21707 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
21708 | ' ECHO_T=' ' ;; |
---|
21709 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
21710 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
21711 | esac |
---|
21712 | |
---|
21713 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
21714 | as_expr=expr |
---|
21715 | else |
---|
21716 | as_expr=false |
---|
21717 | fi |
---|
21718 | |
---|
21719 | rm -f conf$$ conf$$.exe conf$$.file |
---|
21720 | echo >conf$$.file |
---|
21721 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
21722 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
21723 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
21724 | if test -f conf$$.exe; then |
---|
21725 | # Don't use ln at all; we don't have any links |
---|
21726 | as_ln_s='cp -p' |
---|
21727 | else |
---|
21728 | as_ln_s='ln -s' |
---|
21729 | fi |
---|
21730 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
21731 | as_ln_s=ln |
---|
21732 | else |
---|
21733 | as_ln_s='cp -p' |
---|
21734 | fi |
---|
21735 | rm -f conf$$ conf$$.exe conf$$.file |
---|
21736 | |
---|
21737 | if mkdir -p . 2>/dev/null; then |
---|
21738 | as_mkdir_p=: |
---|
21739 | else |
---|
21740 | test -d ./-p && rmdir ./-p |
---|
21741 | as_mkdir_p=false |
---|
21742 | fi |
---|
21743 | |
---|
21744 | as_executable_p="test -f" |
---|
21745 | |
---|
21746 | # Sed expression to map a string onto a valid CPP name. |
---|
21747 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
21748 | |
---|
21749 | # Sed expression to map a string onto a valid variable name. |
---|
21750 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
21751 | |
---|
21752 | |
---|
21753 | # IFS |
---|
21754 | # We need space, tab and new line, in precisely that order. |
---|
21755 | as_nl=' |
---|
21756 | ' |
---|
21757 | IFS=" $as_nl" |
---|
21758 | |
---|
21759 | # CDPATH. |
---|
21760 | $as_unset CDPATH |
---|
21761 | |
---|
21762 | exec 6>&1 |
---|
21763 | |
---|
21764 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
21765 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
21766 | # values after options handling. Logging --version etc. is OK. |
---|
21767 | exec 5>>config.log |
---|
21768 | { |
---|
21769 | echo |
---|
21770 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
21771 | ## Running $as_me. ## |
---|
21772 | _ASBOX |
---|
21773 | } >&5 |
---|
21774 | cat >&5 <<_CSEOF |
---|
21775 | |
---|
21776 | This file was extended by freealut library $as_me 1.1.0, which was |
---|
21777 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
21778 | |
---|
21779 | CONFIG_FILES = $CONFIG_FILES |
---|
21780 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
21781 | CONFIG_LINKS = $CONFIG_LINKS |
---|
21782 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
21783 | $ $0 $@ |
---|
21784 | |
---|
21785 | _CSEOF |
---|
21786 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
21787 | echo >&5 |
---|
21788 | _ACEOF |
---|
21789 | |
---|
21790 | # Files that config.status was made for. |
---|
21791 | if test -n "$ac_config_files"; then |
---|
21792 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
21793 | fi |
---|
21794 | |
---|
21795 | if test -n "$ac_config_headers"; then |
---|
21796 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
21797 | fi |
---|
21798 | |
---|
21799 | if test -n "$ac_config_links"; then |
---|
21800 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
21801 | fi |
---|
21802 | |
---|
21803 | if test -n "$ac_config_commands"; then |
---|
21804 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
21805 | fi |
---|
21806 | |
---|
21807 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
21808 | |
---|
21809 | ac_cs_usage="\ |
---|
21810 | \`$as_me' instantiates files from templates according to the |
---|
21811 | current configuration. |
---|
21812 | |
---|
21813 | Usage: $0 [OPTIONS] [FILE]... |
---|
21814 | |
---|
21815 | -h, --help print this help, then exit |
---|
21816 | -V, --version print version number, then exit |
---|
21817 | -q, --quiet do not print progress messages |
---|
21818 | -d, --debug don't remove temporary files |
---|
21819 | --recheck update $as_me by reconfiguring in the same conditions |
---|
21820 | --file=FILE[:TEMPLATE] |
---|
21821 | instantiate the configuration file FILE |
---|
21822 | --header=FILE[:TEMPLATE] |
---|
21823 | instantiate the configuration header FILE |
---|
21824 | |
---|
21825 | Configuration files: |
---|
21826 | $config_files |
---|
21827 | |
---|
21828 | Configuration headers: |
---|
21829 | $config_headers |
---|
21830 | |
---|
21831 | Configuration commands: |
---|
21832 | $config_commands |
---|
21833 | |
---|
21834 | Report bugs to <bug-autoconf@gnu.org>." |
---|
21835 | _ACEOF |
---|
21836 | |
---|
21837 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
21838 | ac_cs_version="\\ |
---|
21839 | freealut library config.status 1.1.0 |
---|
21840 | configured by $0, generated by GNU Autoconf 2.59, |
---|
21841 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
21842 | |
---|
21843 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
21844 | This config.status script is free software; the Free Software Foundation |
---|
21845 | gives unlimited permission to copy, distribute and modify it." |
---|
21846 | srcdir=$srcdir |
---|
21847 | INSTALL="$INSTALL" |
---|
21848 | _ACEOF |
---|
21849 | |
---|
21850 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
21851 | # If no file are specified by the user, then we need to provide default |
---|
21852 | # value. By we need to know if files were specified by the user. |
---|
21853 | ac_need_defaults=: |
---|
21854 | while test $# != 0 |
---|
21855 | do |
---|
21856 | case $1 in |
---|
21857 | --*=*) |
---|
21858 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
21859 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
21860 | ac_shift=: |
---|
21861 | ;; |
---|
21862 | -*) |
---|
21863 | ac_option=$1 |
---|
21864 | ac_optarg=$2 |
---|
21865 | ac_shift=shift |
---|
21866 | ;; |
---|
21867 | *) # This is not an option, so the user has probably given explicit |
---|
21868 | # arguments. |
---|
21869 | ac_option=$1 |
---|
21870 | ac_need_defaults=false;; |
---|
21871 | esac |
---|
21872 | |
---|
21873 | case $ac_option in |
---|
21874 | # Handling of the options. |
---|
21875 | _ACEOF |
---|
21876 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
21877 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
21878 | ac_cs_recheck=: ;; |
---|
21879 | --version | --vers* | -V ) |
---|
21880 | echo "$ac_cs_version"; exit 0 ;; |
---|
21881 | --he | --h) |
---|
21882 | # Conflict between --help and --header |
---|
21883 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
21884 | Try \`$0 --help' for more information." >&5 |
---|
21885 | echo "$as_me: error: ambiguous option: $1 |
---|
21886 | Try \`$0 --help' for more information." >&2;} |
---|
21887 | { (exit 1); exit 1; }; };; |
---|
21888 | --help | --hel | -h ) |
---|
21889 | echo "$ac_cs_usage"; exit 0 ;; |
---|
21890 | --debug | --d* | -d ) |
---|
21891 | debug=: ;; |
---|
21892 | --file | --fil | --fi | --f ) |
---|
21893 | $ac_shift |
---|
21894 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
21895 | ac_need_defaults=false;; |
---|
21896 | --header | --heade | --head | --hea ) |
---|
21897 | $ac_shift |
---|
21898 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
21899 | ac_need_defaults=false;; |
---|
21900 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
21901 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
21902 | ac_cs_silent=: ;; |
---|
21903 | |
---|
21904 | # This is an error. |
---|
21905 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
21906 | Try \`$0 --help' for more information." >&5 |
---|
21907 | echo "$as_me: error: unrecognized option: $1 |
---|
21908 | Try \`$0 --help' for more information." >&2;} |
---|
21909 | { (exit 1); exit 1; }; } ;; |
---|
21910 | |
---|
21911 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
21912 | |
---|
21913 | esac |
---|
21914 | shift |
---|
21915 | done |
---|
21916 | |
---|
21917 | ac_configure_extra_args= |
---|
21918 | |
---|
21919 | if $ac_cs_silent; then |
---|
21920 | exec 6>/dev/null |
---|
21921 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
21922 | fi |
---|
21923 | |
---|
21924 | _ACEOF |
---|
21925 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
21926 | if \$ac_cs_recheck; then |
---|
21927 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
21928 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
21929 | fi |
---|
21930 | |
---|
21931 | _ACEOF |
---|
21932 | |
---|
21933 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
21934 | # |
---|
21935 | # INIT-COMMANDS section. |
---|
21936 | # |
---|
21937 | |
---|
21938 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
21939 | |
---|
21940 | _ACEOF |
---|
21941 | |
---|
21942 | |
---|
21943 | |
---|
21944 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
21945 | for ac_config_target in $ac_config_targets |
---|
21946 | do |
---|
21947 | case "$ac_config_target" in |
---|
21948 | # Handling of arguments. |
---|
21949 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
21950 | "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; |
---|
21951 | "admin/pkgconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/pkgconfig/Makefile" ;; |
---|
21952 | "admin/pkgconfig/freealut-config" ) CONFIG_FILES="$CONFIG_FILES admin/pkgconfig/freealut-config" ;; |
---|
21953 | "admin/pkgconfig/freealut.pc" ) CONFIG_FILES="$CONFIG_FILES admin/pkgconfig/freealut.pc" ;; |
---|
21954 | "admin/RPM/freealut.spec" ) CONFIG_FILES="$CONFIG_FILES admin/RPM/freealut.spec" ;; |
---|
21955 | "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
---|
21956 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
---|
21957 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
21958 | "test_suite/Makefile" ) CONFIG_FILES="$CONFIG_FILES test_suite/Makefile" ;; |
---|
21959 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
21960 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
21961 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
21962 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
21963 | { (exit 1); exit 1; }; };; |
---|
21964 | esac |
---|
21965 | done |
---|
21966 | |
---|
21967 | # If the user did not use the arguments to specify the items to instantiate, |
---|
21968 | # then the envvar interface is used. Set only those that are not. |
---|
21969 | # We use the long form for the default assignment because of an extremely |
---|
21970 | # bizarre bug on SunOS 4.1.3. |
---|
21971 | if $ac_need_defaults; then |
---|
21972 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
21973 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
21974 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
21975 | fi |
---|
21976 | |
---|
21977 | # Have a temporary directory for convenience. Make it in the build tree |
---|
21978 | # simply because there is no reason to put it here, and in addition, |
---|
21979 | # creating and moving files from /tmp can sometimes cause problems. |
---|
21980 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
21981 | $debug || |
---|
21982 | { |
---|
21983 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
21984 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
21985 | } |
---|
21986 | |
---|
21987 | # Create a (secure) tmp directory for tmp files. |
---|
21988 | |
---|
21989 | { |
---|
21990 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
21991 | test -n "$tmp" && test -d "$tmp" |
---|
21992 | } || |
---|
21993 | { |
---|
21994 | tmp=./confstat$$-$RANDOM |
---|
21995 | (umask 077 && mkdir $tmp) |
---|
21996 | } || |
---|
21997 | { |
---|
21998 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
21999 | { (exit 1); exit 1; } |
---|
22000 | } |
---|
22001 | |
---|
22002 | _ACEOF |
---|
22003 | |
---|
22004 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
22005 | |
---|
22006 | # |
---|
22007 | # CONFIG_FILES section. |
---|
22008 | # |
---|
22009 | |
---|
22010 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
22011 | # This happens for instance when ./config.status config.h |
---|
22012 | if test -n "\$CONFIG_FILES"; then |
---|
22013 | # Protect against being on the right side of a sed subst in config.status. |
---|
22014 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
22015 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
22016 | s,@SHELL@,$SHELL,;t t |
---|
22017 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
22018 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
22019 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
22020 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
22021 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
22022 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
22023 | s,@exec_prefix@,$exec_prefix,;t t |
---|
22024 | s,@prefix@,$prefix,;t t |
---|
22025 | s,@program_transform_name@,$program_transform_name,;t t |
---|
22026 | s,@bindir@,$bindir,;t t |
---|
22027 | s,@sbindir@,$sbindir,;t t |
---|
22028 | s,@libexecdir@,$libexecdir,;t t |
---|
22029 | s,@datadir@,$datadir,;t t |
---|
22030 | s,@sysconfdir@,$sysconfdir,;t t |
---|
22031 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
22032 | s,@localstatedir@,$localstatedir,;t t |
---|
22033 | s,@libdir@,$libdir,;t t |
---|
22034 | s,@includedir@,$includedir,;t t |
---|
22035 | s,@oldincludedir@,$oldincludedir,;t t |
---|
22036 | s,@infodir@,$infodir,;t t |
---|
22037 | s,@mandir@,$mandir,;t t |
---|
22038 | s,@build_alias@,$build_alias,;t t |
---|
22039 | s,@host_alias@,$host_alias,;t t |
---|
22040 | s,@target_alias@,$target_alias,;t t |
---|
22041 | s,@DEFS@,$DEFS,;t t |
---|
22042 | s,@ECHO_C@,$ECHO_C,;t t |
---|
22043 | s,@ECHO_N@,$ECHO_N,;t t |
---|
22044 | s,@ECHO_T@,$ECHO_T,;t t |
---|
22045 | s,@LIBS@,$LIBS,;t t |
---|
22046 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
22047 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
22048 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
22049 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
22050 | s,@PACKAGE@,$PACKAGE,;t t |
---|
22051 | s,@VERSION@,$VERSION,;t t |
---|
22052 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
22053 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
22054 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
22055 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
22056 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
22057 | s,@install_sh@,$install_sh,;t t |
---|
22058 | s,@STRIP@,$STRIP,;t t |
---|
22059 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
22060 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
22061 | s,@mkdir_p@,$mkdir_p,;t t |
---|
22062 | s,@AWK@,$AWK,;t t |
---|
22063 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
22064 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
22065 | s,@AMTAR@,$AMTAR,;t t |
---|
22066 | s,@am__tar@,$am__tar,;t t |
---|
22067 | s,@am__untar@,$am__untar,;t t |
---|
22068 | s,@VERSIONINFO@,$VERSIONINFO,;t t |
---|
22069 | s,@CC@,$CC,;t t |
---|
22070 | s,@CFLAGS@,$CFLAGS,;t t |
---|
22071 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
22072 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
22073 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
22074 | s,@EXEEXT@,$EXEEXT,;t t |
---|
22075 | s,@OBJEXT@,$OBJEXT,;t t |
---|
22076 | s,@DEPDIR@,$DEPDIR,;t t |
---|
22077 | s,@am__include@,$am__include,;t t |
---|
22078 | s,@am__quote@,$am__quote,;t t |
---|
22079 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
22080 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
22081 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
22082 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
22083 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
22084 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
22085 | s,@WNO_DEPRECATED_DECLARATIONS_TRUE@,$WNO_DEPRECATED_DECLARATIONS_TRUE,;t t |
---|
22086 | s,@WNO_DEPRECATED_DECLARATIONS_FALSE@,$WNO_DEPRECATED_DECLARATIONS_FALSE,;t t |
---|
22087 | s,@build@,$build,;t t |
---|
22088 | s,@build_cpu@,$build_cpu,;t t |
---|
22089 | s,@build_vendor@,$build_vendor,;t t |
---|
22090 | s,@build_os@,$build_os,;t t |
---|
22091 | s,@host@,$host,;t t |
---|
22092 | s,@host_cpu@,$host_cpu,;t t |
---|
22093 | s,@host_vendor@,$host_vendor,;t t |
---|
22094 | s,@host_os@,$host_os,;t t |
---|
22095 | s,@EGREP@,$EGREP,;t t |
---|
22096 | s,@LN_S@,$LN_S,;t t |
---|
22097 | s,@ECHO@,$ECHO,;t t |
---|
22098 | s,@AR@,$AR,;t t |
---|
22099 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
---|
22100 | s,@RANLIB@,$RANLIB,;t t |
---|
22101 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
22102 | s,@DLLTOOL@,$DLLTOOL,;t t |
---|
22103 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
---|
22104 | s,@AS@,$AS,;t t |
---|
22105 | s,@ac_ct_AS@,$ac_ct_AS,;t t |
---|
22106 | s,@OBJDUMP@,$OBJDUMP,;t t |
---|
22107 | s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t |
---|
22108 | s,@CPP@,$CPP,;t t |
---|
22109 | s,@CXX@,$CXX,;t t |
---|
22110 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
22111 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
22112 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
22113 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
22114 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
22115 | s,@CXXCPP@,$CXXCPP,;t t |
---|
22116 | s,@F77@,$F77,;t t |
---|
22117 | s,@FFLAGS@,$FFLAGS,;t t |
---|
22118 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
---|
22119 | s,@LIBTOOL@,$LIBTOOL,;t t |
---|
22120 | s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t |
---|
22121 | s,@LIBM@,$LIBM,;t t |
---|
22122 | s,@AM_CFLAGS@,$AM_CFLAGS,;t t |
---|
22123 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
22124 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
22125 | CEOF |
---|
22126 | |
---|
22127 | _ACEOF |
---|
22128 | |
---|
22129 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
22130 | # Split the substitutions into bite-sized pieces for seds with |
---|
22131 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
22132 | ac_max_sed_lines=48 |
---|
22133 | ac_sed_frag=1 # Number of current file. |
---|
22134 | ac_beg=1 # First line for current file. |
---|
22135 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
22136 | ac_more_lines=: |
---|
22137 | ac_sed_cmds= |
---|
22138 | while $ac_more_lines; do |
---|
22139 | if test $ac_beg -gt 1; then |
---|
22140 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
22141 | else |
---|
22142 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
22143 | fi |
---|
22144 | if test ! -s $tmp/subs.frag; then |
---|
22145 | ac_more_lines=false |
---|
22146 | else |
---|
22147 | # The purpose of the label and of the branching condition is to |
---|
22148 | # speed up the sed processing (if there are no `@' at all, there |
---|
22149 | # is no need to browse any of the substitutions). |
---|
22150 | # These are the two extra sed commands mentioned above. |
---|
22151 | (echo ':t |
---|
22152 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
22153 | if test -z "$ac_sed_cmds"; then |
---|
22154 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
22155 | else |
---|
22156 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
22157 | fi |
---|
22158 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
22159 | ac_beg=$ac_end |
---|
22160 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
22161 | fi |
---|
22162 | done |
---|
22163 | if test -z "$ac_sed_cmds"; then |
---|
22164 | ac_sed_cmds=cat |
---|
22165 | fi |
---|
22166 | fi # test -n "$CONFIG_FILES" |
---|
22167 | |
---|
22168 | _ACEOF |
---|
22169 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
22170 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
22171 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
22172 | case $ac_file in |
---|
22173 | - | *:- | *:-:* ) # input from stdin |
---|
22174 | cat >$tmp/stdin |
---|
22175 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
22176 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
22177 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
22178 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
22179 | * ) ac_file_in=$ac_file.in ;; |
---|
22180 | esac |
---|
22181 | |
---|
22182 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
22183 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
22184 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22185 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
22186 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
22187 | X"$ac_file" : 'X\(/\)' \| \ |
---|
22188 | . : '\(.\)' 2>/dev/null || |
---|
22189 | echo X"$ac_file" | |
---|
22190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22191 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22192 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22193 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22194 | s/.*/./; q'` |
---|
22195 | { if $as_mkdir_p; then |
---|
22196 | mkdir -p "$ac_dir" |
---|
22197 | else |
---|
22198 | as_dir="$ac_dir" |
---|
22199 | as_dirs= |
---|
22200 | while test ! -d "$as_dir"; do |
---|
22201 | as_dirs="$as_dir $as_dirs" |
---|
22202 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
22203 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22204 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
22205 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
22206 | X"$as_dir" : 'X\(/\)' \| \ |
---|
22207 | . : '\(.\)' 2>/dev/null || |
---|
22208 | echo X"$as_dir" | |
---|
22209 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22210 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22211 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22212 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22213 | s/.*/./; q'` |
---|
22214 | done |
---|
22215 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
22216 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
22217 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
22218 | { (exit 1); exit 1; }; }; } |
---|
22219 | |
---|
22220 | ac_builddir=. |
---|
22221 | |
---|
22222 | if test "$ac_dir" != .; then |
---|
22223 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
22224 | # A "../" for each directory in $ac_dir_suffix. |
---|
22225 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
22226 | else |
---|
22227 | ac_dir_suffix= ac_top_builddir= |
---|
22228 | fi |
---|
22229 | |
---|
22230 | case $srcdir in |
---|
22231 | .) # No --srcdir option. We are building in place. |
---|
22232 | ac_srcdir=. |
---|
22233 | if test -z "$ac_top_builddir"; then |
---|
22234 | ac_top_srcdir=. |
---|
22235 | else |
---|
22236 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
22237 | fi ;; |
---|
22238 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
22239 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
22240 | ac_top_srcdir=$srcdir ;; |
---|
22241 | *) # Relative path. |
---|
22242 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
22243 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
22244 | esac |
---|
22245 | |
---|
22246 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
22247 | # the directories may not exist. |
---|
22248 | case `pwd` in |
---|
22249 | .) ac_abs_builddir="$ac_dir";; |
---|
22250 | *) |
---|
22251 | case "$ac_dir" in |
---|
22252 | .) ac_abs_builddir=`pwd`;; |
---|
22253 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
22254 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
22255 | esac;; |
---|
22256 | esac |
---|
22257 | case $ac_abs_builddir in |
---|
22258 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
22259 | *) |
---|
22260 | case ${ac_top_builddir}. in |
---|
22261 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
22262 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
22263 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
22264 | esac;; |
---|
22265 | esac |
---|
22266 | case $ac_abs_builddir in |
---|
22267 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
22268 | *) |
---|
22269 | case $ac_srcdir in |
---|
22270 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
22271 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
22272 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
22273 | esac;; |
---|
22274 | esac |
---|
22275 | case $ac_abs_builddir in |
---|
22276 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
22277 | *) |
---|
22278 | case $ac_top_srcdir in |
---|
22279 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
22280 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
22281 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
22282 | esac;; |
---|
22283 | esac |
---|
22284 | |
---|
22285 | |
---|
22286 | case $INSTALL in |
---|
22287 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
22288 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
22289 | esac |
---|
22290 | |
---|
22291 | if test x"$ac_file" != x-; then |
---|
22292 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
22293 | echo "$as_me: creating $ac_file" >&6;} |
---|
22294 | rm -f "$ac_file" |
---|
22295 | fi |
---|
22296 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
22297 | # use $as_me), people would be surprised to read: |
---|
22298 | # /* config.h. Generated by config.status. */ |
---|
22299 | if test x"$ac_file" = x-; then |
---|
22300 | configure_input= |
---|
22301 | else |
---|
22302 | configure_input="$ac_file. " |
---|
22303 | fi |
---|
22304 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
22305 | sed 's,.*/,,'` by configure." |
---|
22306 | |
---|
22307 | # First look for the input files in the build tree, otherwise in the |
---|
22308 | # src tree. |
---|
22309 | ac_file_inputs=`IFS=: |
---|
22310 | for f in $ac_file_in; do |
---|
22311 | case $f in |
---|
22312 | -) echo $tmp/stdin ;; |
---|
22313 | [\\/$]*) |
---|
22314 | # Absolute (can't be DOS-style, as IFS=:) |
---|
22315 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
22316 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
22317 | { (exit 1); exit 1; }; } |
---|
22318 | echo "$f";; |
---|
22319 | *) # Relative |
---|
22320 | if test -f "$f"; then |
---|
22321 | # Build tree |
---|
22322 | echo "$f" |
---|
22323 | elif test -f "$srcdir/$f"; then |
---|
22324 | # Source tree |
---|
22325 | echo "$srcdir/$f" |
---|
22326 | else |
---|
22327 | # /dev/null tree |
---|
22328 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
22329 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
22330 | { (exit 1); exit 1; }; } |
---|
22331 | fi;; |
---|
22332 | esac |
---|
22333 | done` || { (exit 1); exit 1; } |
---|
22334 | _ACEOF |
---|
22335 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
22336 | sed "$ac_vpsub |
---|
22337 | $extrasub |
---|
22338 | _ACEOF |
---|
22339 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
22340 | :t |
---|
22341 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
22342 | s,@configure_input@,$configure_input,;t t |
---|
22343 | s,@srcdir@,$ac_srcdir,;t t |
---|
22344 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
22345 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
22346 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
22347 | s,@builddir@,$ac_builddir,;t t |
---|
22348 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
22349 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
22350 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
22351 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
22352 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
22353 | rm -f $tmp/stdin |
---|
22354 | if test x"$ac_file" != x-; then |
---|
22355 | mv $tmp/out $ac_file |
---|
22356 | else |
---|
22357 | cat $tmp/out |
---|
22358 | rm -f $tmp/out |
---|
22359 | fi |
---|
22360 | |
---|
22361 | done |
---|
22362 | _ACEOF |
---|
22363 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
22364 | |
---|
22365 | # |
---|
22366 | # CONFIG_HEADER section. |
---|
22367 | # |
---|
22368 | |
---|
22369 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
22370 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
22371 | # |
---|
22372 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
22373 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
22374 | ac_dB='[ ].*$,\1#\2' |
---|
22375 | ac_dC=' ' |
---|
22376 | ac_dD=',;t' |
---|
22377 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
22378 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
22379 | ac_uB='$,\1#\2define\3' |
---|
22380 | ac_uC=' ' |
---|
22381 | ac_uD=',;t' |
---|
22382 | |
---|
22383 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
22384 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
22385 | case $ac_file in |
---|
22386 | - | *:- | *:-:* ) # input from stdin |
---|
22387 | cat >$tmp/stdin |
---|
22388 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
22389 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
22390 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
22391 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
22392 | * ) ac_file_in=$ac_file.in ;; |
---|
22393 | esac |
---|
22394 | |
---|
22395 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
22396 | echo "$as_me: creating $ac_file" >&6;} |
---|
22397 | |
---|
22398 | # First look for the input files in the build tree, otherwise in the |
---|
22399 | # src tree. |
---|
22400 | ac_file_inputs=`IFS=: |
---|
22401 | for f in $ac_file_in; do |
---|
22402 | case $f in |
---|
22403 | -) echo $tmp/stdin ;; |
---|
22404 | [\\/$]*) |
---|
22405 | # Absolute (can't be DOS-style, as IFS=:) |
---|
22406 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
22407 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
22408 | { (exit 1); exit 1; }; } |
---|
22409 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
22410 | echo "$f";; |
---|
22411 | *) # Relative |
---|
22412 | if test -f "$f"; then |
---|
22413 | # Build tree |
---|
22414 | echo "$f" |
---|
22415 | elif test -f "$srcdir/$f"; then |
---|
22416 | # Source tree |
---|
22417 | echo "$srcdir/$f" |
---|
22418 | else |
---|
22419 | # /dev/null tree |
---|
22420 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
22421 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
22422 | { (exit 1); exit 1; }; } |
---|
22423 | fi;; |
---|
22424 | esac |
---|
22425 | done` || { (exit 1); exit 1; } |
---|
22426 | # Remove the trailing spaces. |
---|
22427 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
22428 | |
---|
22429 | _ACEOF |
---|
22430 | |
---|
22431 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
22432 | # `conftest.undefs', that substitutes the proper values into |
---|
22433 | # config.h.in to produce config.h. The first handles `#define' |
---|
22434 | # templates, and the second `#undef' templates. |
---|
22435 | # And first: Protect against being on the right side of a sed subst in |
---|
22436 | # config.status. Protect against being in an unquoted here document |
---|
22437 | # in config.status. |
---|
22438 | rm -f conftest.defines conftest.undefs |
---|
22439 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
22440 | # Putting comments in sed scripts is not portable. |
---|
22441 | # |
---|
22442 | # `end' is used to avoid that the second main sed command (meant for |
---|
22443 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
22444 | # See the Autoconf documentation for `clear'. |
---|
22445 | cat >confdef2sed.sed <<\_ACEOF |
---|
22446 | s/[\\&,]/\\&/g |
---|
22447 | s,[\\$`],\\&,g |
---|
22448 | t clear |
---|
22449 | : clear |
---|
22450 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
22451 | t end |
---|
22452 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
22453 | : end |
---|
22454 | _ACEOF |
---|
22455 | # If some macros were called several times there might be several times |
---|
22456 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
22457 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
22458 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
22459 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
22460 | rm -f confdef2sed.sed |
---|
22461 | |
---|
22462 | # This sed command replaces #undef with comments. This is necessary, for |
---|
22463 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
22464 | # on some systems where configure will not decide to define it. |
---|
22465 | cat >>conftest.undefs <<\_ACEOF |
---|
22466 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
22467 | _ACEOF |
---|
22468 | |
---|
22469 | # Break up conftest.defines because some shells have a limit on the size |
---|
22470 | # of here documents, and old seds have small limits too (100 cmds). |
---|
22471 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
22472 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
22473 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
22474 | echo ' :' >>$CONFIG_STATUS |
---|
22475 | rm -f conftest.tail |
---|
22476 | while grep . conftest.defines >/dev/null |
---|
22477 | do |
---|
22478 | # Write a limited-size here document to $tmp/defines.sed. |
---|
22479 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
22480 | # Speed up: don't consider the non `#define' lines. |
---|
22481 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
22482 | # Work around the forget-to-reset-the-flag bug. |
---|
22483 | echo 't clr' >>$CONFIG_STATUS |
---|
22484 | echo ': clr' >>$CONFIG_STATUS |
---|
22485 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
22486 | echo 'CEOF |
---|
22487 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
22488 | rm -f $tmp/in |
---|
22489 | mv $tmp/out $tmp/in |
---|
22490 | ' >>$CONFIG_STATUS |
---|
22491 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
22492 | rm -f conftest.defines |
---|
22493 | mv conftest.tail conftest.defines |
---|
22494 | done |
---|
22495 | rm -f conftest.defines |
---|
22496 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
22497 | echo >>$CONFIG_STATUS |
---|
22498 | |
---|
22499 | # Break up conftest.undefs because some shells have a limit on the size |
---|
22500 | # of here documents, and old seds have small limits too (100 cmds). |
---|
22501 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
22502 | rm -f conftest.tail |
---|
22503 | while grep . conftest.undefs >/dev/null |
---|
22504 | do |
---|
22505 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
22506 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
22507 | # Speed up: don't consider the non `#undef' |
---|
22508 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
22509 | # Work around the forget-to-reset-the-flag bug. |
---|
22510 | echo 't clr' >>$CONFIG_STATUS |
---|
22511 | echo ': clr' >>$CONFIG_STATUS |
---|
22512 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
22513 | echo 'CEOF |
---|
22514 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
22515 | rm -f $tmp/in |
---|
22516 | mv $tmp/out $tmp/in |
---|
22517 | ' >>$CONFIG_STATUS |
---|
22518 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
22519 | rm -f conftest.undefs |
---|
22520 | mv conftest.tail conftest.undefs |
---|
22521 | done |
---|
22522 | rm -f conftest.undefs |
---|
22523 | |
---|
22524 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
22525 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
22526 | # use $as_me), people would be surprised to read: |
---|
22527 | # /* config.h. Generated by config.status. */ |
---|
22528 | if test x"$ac_file" = x-; then |
---|
22529 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
22530 | else |
---|
22531 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
22532 | fi |
---|
22533 | cat $tmp/in >>$tmp/config.h |
---|
22534 | rm -f $tmp/in |
---|
22535 | if test x"$ac_file" != x-; then |
---|
22536 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
22537 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
22538 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
22539 | else |
---|
22540 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
22541 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22542 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
22543 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
22544 | X"$ac_file" : 'X\(/\)' \| \ |
---|
22545 | . : '\(.\)' 2>/dev/null || |
---|
22546 | echo X"$ac_file" | |
---|
22547 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22548 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22549 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22550 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22551 | s/.*/./; q'` |
---|
22552 | { if $as_mkdir_p; then |
---|
22553 | mkdir -p "$ac_dir" |
---|
22554 | else |
---|
22555 | as_dir="$ac_dir" |
---|
22556 | as_dirs= |
---|
22557 | while test ! -d "$as_dir"; do |
---|
22558 | as_dirs="$as_dir $as_dirs" |
---|
22559 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
22560 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22561 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
22562 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
22563 | X"$as_dir" : 'X\(/\)' \| \ |
---|
22564 | . : '\(.\)' 2>/dev/null || |
---|
22565 | echo X"$as_dir" | |
---|
22566 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22567 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22568 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22569 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22570 | s/.*/./; q'` |
---|
22571 | done |
---|
22572 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
22573 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
22574 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
22575 | { (exit 1); exit 1; }; }; } |
---|
22576 | |
---|
22577 | rm -f $ac_file |
---|
22578 | mv $tmp/config.h $ac_file |
---|
22579 | fi |
---|
22580 | else |
---|
22581 | cat $tmp/config.h |
---|
22582 | rm -f $tmp/config.h |
---|
22583 | fi |
---|
22584 | # Compute $ac_file's index in $config_headers. |
---|
22585 | _am_stamp_count=1 |
---|
22586 | for _am_header in $config_headers :; do |
---|
22587 | case $_am_header in |
---|
22588 | $ac_file | $ac_file:* ) |
---|
22589 | break ;; |
---|
22590 | * ) |
---|
22591 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
22592 | esac |
---|
22593 | done |
---|
22594 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
22595 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22596 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
22597 | X$ac_file : 'X\(//\)$' \| \ |
---|
22598 | X$ac_file : 'X\(/\)' \| \ |
---|
22599 | . : '\(.\)' 2>/dev/null || |
---|
22600 | echo X$ac_file | |
---|
22601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22602 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22603 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22604 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22605 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
22606 | done |
---|
22607 | _ACEOF |
---|
22608 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
22609 | |
---|
22610 | # |
---|
22611 | # CONFIG_COMMANDS section. |
---|
22612 | # |
---|
22613 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
22614 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
22615 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
22616 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
22617 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22618 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
22619 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
22620 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
22621 | . : '\(.\)' 2>/dev/null || |
---|
22622 | echo X"$ac_dest" | |
---|
22623 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22624 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22625 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22626 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22627 | s/.*/./; q'` |
---|
22628 | { if $as_mkdir_p; then |
---|
22629 | mkdir -p "$ac_dir" |
---|
22630 | else |
---|
22631 | as_dir="$ac_dir" |
---|
22632 | as_dirs= |
---|
22633 | while test ! -d "$as_dir"; do |
---|
22634 | as_dirs="$as_dir $as_dirs" |
---|
22635 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
22636 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22637 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
22638 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
22639 | X"$as_dir" : 'X\(/\)' \| \ |
---|
22640 | . : '\(.\)' 2>/dev/null || |
---|
22641 | echo X"$as_dir" | |
---|
22642 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22643 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22644 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22645 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22646 | s/.*/./; q'` |
---|
22647 | done |
---|
22648 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
22649 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
22650 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
22651 | { (exit 1); exit 1; }; }; } |
---|
22652 | |
---|
22653 | ac_builddir=. |
---|
22654 | |
---|
22655 | if test "$ac_dir" != .; then |
---|
22656 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
22657 | # A "../" for each directory in $ac_dir_suffix. |
---|
22658 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
22659 | else |
---|
22660 | ac_dir_suffix= ac_top_builddir= |
---|
22661 | fi |
---|
22662 | |
---|
22663 | case $srcdir in |
---|
22664 | .) # No --srcdir option. We are building in place. |
---|
22665 | ac_srcdir=. |
---|
22666 | if test -z "$ac_top_builddir"; then |
---|
22667 | ac_top_srcdir=. |
---|
22668 | else |
---|
22669 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
22670 | fi ;; |
---|
22671 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
22672 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
22673 | ac_top_srcdir=$srcdir ;; |
---|
22674 | *) # Relative path. |
---|
22675 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
22676 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
22677 | esac |
---|
22678 | |
---|
22679 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
22680 | # the directories may not exist. |
---|
22681 | case `pwd` in |
---|
22682 | .) ac_abs_builddir="$ac_dir";; |
---|
22683 | *) |
---|
22684 | case "$ac_dir" in |
---|
22685 | .) ac_abs_builddir=`pwd`;; |
---|
22686 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
22687 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
22688 | esac;; |
---|
22689 | esac |
---|
22690 | case $ac_abs_builddir in |
---|
22691 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
22692 | *) |
---|
22693 | case ${ac_top_builddir}. in |
---|
22694 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
22695 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
22696 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
22697 | esac;; |
---|
22698 | esac |
---|
22699 | case $ac_abs_builddir in |
---|
22700 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
22701 | *) |
---|
22702 | case $ac_srcdir in |
---|
22703 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
22704 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
22705 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
22706 | esac;; |
---|
22707 | esac |
---|
22708 | case $ac_abs_builddir in |
---|
22709 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
22710 | *) |
---|
22711 | case $ac_top_srcdir in |
---|
22712 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
22713 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
22714 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
22715 | esac;; |
---|
22716 | esac |
---|
22717 | |
---|
22718 | |
---|
22719 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
22720 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
22721 | case $ac_dest in |
---|
22722 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
22723 | # Strip MF so we end up with the name of the file. |
---|
22724 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
22725 | # Check whether this is an Automake generated Makefile or not. |
---|
22726 | # We used to match only the files named `Makefile.in', but |
---|
22727 | # some people rename them; so instead we look at the file content. |
---|
22728 | # Grep'ing the first line is not enough: some people post-process |
---|
22729 | # each Makefile.in and add a new line on top of each file to say so. |
---|
22730 | # So let's grep whole file. |
---|
22731 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
22732 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
22733 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22734 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
22735 | X"$mf" : 'X\(//\)$' \| \ |
---|
22736 | X"$mf" : 'X\(/\)' \| \ |
---|
22737 | . : '\(.\)' 2>/dev/null || |
---|
22738 | echo X"$mf" | |
---|
22739 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22740 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22741 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22742 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22743 | s/.*/./; q'` |
---|
22744 | else |
---|
22745 | continue |
---|
22746 | fi |
---|
22747 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
22748 | # from the Makefile without running `make'. |
---|
22749 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
22750 | test -z "$DEPDIR" && continue |
---|
22751 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
22752 | test -z "am__include" && continue |
---|
22753 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
22754 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
22755 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
22756 | # Find all dependency output files, they are included files with |
---|
22757 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
22758 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
22759 | # expansion. |
---|
22760 | for file in `sed -n " |
---|
22761 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
22762 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
22763 | # Make sure the directory exists. |
---|
22764 | test -f "$dirpart/$file" && continue |
---|
22765 | fdir=`(dirname "$file") 2>/dev/null || |
---|
22766 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22767 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
22768 | X"$file" : 'X\(//\)$' \| \ |
---|
22769 | X"$file" : 'X\(/\)' \| \ |
---|
22770 | . : '\(.\)' 2>/dev/null || |
---|
22771 | echo X"$file" | |
---|
22772 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22773 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22774 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22775 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22776 | s/.*/./; q'` |
---|
22777 | { if $as_mkdir_p; then |
---|
22778 | mkdir -p $dirpart/$fdir |
---|
22779 | else |
---|
22780 | as_dir=$dirpart/$fdir |
---|
22781 | as_dirs= |
---|
22782 | while test ! -d "$as_dir"; do |
---|
22783 | as_dirs="$as_dir $as_dirs" |
---|
22784 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
22785 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
22786 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
22787 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
22788 | X"$as_dir" : 'X\(/\)' \| \ |
---|
22789 | . : '\(.\)' 2>/dev/null || |
---|
22790 | echo X"$as_dir" | |
---|
22791 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
22792 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
22793 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
22794 | /^X\(\/\).*/{ s//\1/; q; } |
---|
22795 | s/.*/./; q'` |
---|
22796 | done |
---|
22797 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
22798 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
22799 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
22800 | { (exit 1); exit 1; }; }; } |
---|
22801 | |
---|
22802 | # echo "creating $dirpart/$file" |
---|
22803 | echo '# dummy' > "$dirpart/$file" |
---|
22804 | done |
---|
22805 | done |
---|
22806 | ;; |
---|
22807 | esac |
---|
22808 | done |
---|
22809 | _ACEOF |
---|
22810 | |
---|
22811 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
22812 | |
---|
22813 | { (exit 0); exit 0; } |
---|
22814 | _ACEOF |
---|
22815 | chmod +x $CONFIG_STATUS |
---|
22816 | ac_clean_files=$ac_clean_files_save |
---|
22817 | |
---|
22818 | |
---|
22819 | # configure is writing to config.log, and then calls config.status. |
---|
22820 | # config.status does its own redirection, appending to config.log. |
---|
22821 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
22822 | # by configure, so config.status won't be able to write to it; its |
---|
22823 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
22824 | # effectively closing config.log, so it can be properly (re)opened and |
---|
22825 | # appended to by config.status. When coming back to configure, we |
---|
22826 | # need to make the FD available again. |
---|
22827 | if test "$no_create" != yes; then |
---|
22828 | ac_cs_success=: |
---|
22829 | ac_config_status_args= |
---|
22830 | test "$silent" = yes && |
---|
22831 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
22832 | exec 5>/dev/null |
---|
22833 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
22834 | exec 5>>config.log |
---|
22835 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
22836 | # would make configure fail if this is the last instruction. |
---|
22837 | $ac_cs_success || { (exit 1); exit 1; } |
---|
22838 | fi |
---|
22839 | |
---|