1 | @%:@! /bin/sh |
---|
2 | @%:@ Guess values for system-dependent variables and create Makefiles. |
---|
3 | @%:@ Generated by GNU Autoconf 2.59 for OGRE_REFAPP 0.10.0. |
---|
4 | @%:@ |
---|
5 | @%:@ Copyright (C) 2003 Free Software Foundation, Inc. |
---|
6 | @%:@ This configure script is free software; the Free Software Foundation |
---|
7 | @%:@ gives unlimited permission to copy, distribute and modify it. |
---|
8 | ## --------------------- ## |
---|
9 | ## M4sh Initialization. ## |
---|
10 | ## --------------------- ## |
---|
11 | |
---|
12 | # Be Bourne compatible |
---|
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
14 | emulate sh |
---|
15 | NULLCMD=: |
---|
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
17 | # is contrary to our usage. Disable this feature. |
---|
18 | alias -g '${1+"$@"}'='"$@"' |
---|
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
20 | set -o posix |
---|
21 | fi |
---|
22 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
23 | |
---|
24 | # Support unset when possible. |
---|
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
26 | as_unset=unset |
---|
27 | else |
---|
28 | as_unset=false |
---|
29 | fi |
---|
30 | |
---|
31 | |
---|
32 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
33 | $as_unset ENV MAIL MAILPATH |
---|
34 | PS1='$ ' |
---|
35 | PS2='> ' |
---|
36 | PS4='+ ' |
---|
37 | |
---|
38 | # NLS nuisances. |
---|
39 | for as_var in \ |
---|
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
42 | LC_TELEPHONE LC_TIME |
---|
43 | do |
---|
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
45 | eval $as_var=C; export $as_var |
---|
46 | else |
---|
47 | $as_unset $as_var |
---|
48 | fi |
---|
49 | done |
---|
50 | |
---|
51 | # Required to use basename. |
---|
52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
53 | as_expr=expr |
---|
54 | else |
---|
55 | as_expr=false |
---|
56 | fi |
---|
57 | |
---|
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
59 | as_basename=basename |
---|
60 | else |
---|
61 | as_basename=false |
---|
62 | fi |
---|
63 | |
---|
64 | |
---|
65 | # Name of the executable. |
---|
66 | as_me=`$as_basename "$0" || |
---|
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
68 | X"$0" : 'X\(//\)$' \| \ |
---|
69 | X"$0" : 'X\(/\)$' \| \ |
---|
70 | . : '\(.\)' 2>/dev/null || |
---|
71 | echo X/"$0" | |
---|
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
74 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
75 | s/.*/./; q'` |
---|
76 | |
---|
77 | |
---|
78 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
79 | # Avoid depending upon Character Ranges. |
---|
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
83 | as_cr_digits='0123456789' |
---|
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
85 | |
---|
86 | # The user is always right. |
---|
87 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
88 | echo "#! /bin/sh" >conf$$.sh |
---|
89 | echo "exit 0" >>conf$$.sh |
---|
90 | chmod +x conf$$.sh |
---|
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
92 | PATH_SEPARATOR=';' |
---|
93 | else |
---|
94 | PATH_SEPARATOR=: |
---|
95 | fi |
---|
96 | rm -f conf$$.sh |
---|
97 | fi |
---|
98 | |
---|
99 | |
---|
100 | as_lineno_1=$LINENO |
---|
101 | as_lineno_2=$LINENO |
---|
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
105 | # Find who we are. Look in the path if we contain no path at all |
---|
106 | # relative or not. |
---|
107 | case $0 in |
---|
108 | *[\\/]* ) as_myself=$0 ;; |
---|
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
110 | for as_dir in $PATH |
---|
111 | do |
---|
112 | IFS=$as_save_IFS |
---|
113 | test -z "$as_dir" && as_dir=. |
---|
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
115 | done |
---|
116 | |
---|
117 | ;; |
---|
118 | esac |
---|
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
120 | # in which case we are not to be found in the path. |
---|
121 | if test "x$as_myself" = x; then |
---|
122 | as_myself=$0 |
---|
123 | fi |
---|
124 | if test ! -f "$as_myself"; then |
---|
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
126 | { (exit 1); exit 1; }; } |
---|
127 | fi |
---|
128 | case $CONFIG_SHELL in |
---|
129 | '') |
---|
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
132 | do |
---|
133 | IFS=$as_save_IFS |
---|
134 | test -z "$as_dir" && as_dir=. |
---|
135 | for as_base in sh bash ksh sh5; do |
---|
136 | case $as_dir in |
---|
137 | /*) |
---|
138 | if ("$as_dir/$as_base" -c ' |
---|
139 | as_lineno_1=$LINENO |
---|
140 | as_lineno_2=$LINENO |
---|
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
146 | CONFIG_SHELL=$as_dir/$as_base |
---|
147 | export CONFIG_SHELL |
---|
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
149 | fi;; |
---|
150 | esac |
---|
151 | done |
---|
152 | done |
---|
153 | ;; |
---|
154 | esac |
---|
155 | |
---|
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
157 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
158 | # line-number line before each line; the second 'sed' does the real |
---|
159 | # work. The second script uses 'N' to pair each line-number line |
---|
160 | # with the numbered line, and appends trailing '-' during |
---|
161 | # substitution so that $LINENO is not a special case at line end. |
---|
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
164 | sed '=' <$as_myself | |
---|
165 | sed ' |
---|
166 | N |
---|
167 | s,$,-, |
---|
168 | : loop |
---|
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
170 | t loop |
---|
171 | s,-$,, |
---|
172 | s,^['$as_cr_digits']*\n,, |
---|
173 | ' >$as_me.lineno && |
---|
174 | chmod +x $as_me.lineno || |
---|
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
176 | { (exit 1); exit 1; }; } |
---|
177 | |
---|
178 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
179 | # (the dirname of $[0] is not the place where we might find the |
---|
180 | # original and so on. Autoconf is especially sensible to this). |
---|
181 | . ./$as_me.lineno |
---|
182 | # Exit status is that of the last command. |
---|
183 | exit |
---|
184 | } |
---|
185 | |
---|
186 | |
---|
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
188 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
189 | ' ECHO_T=' ' ;; |
---|
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
192 | esac |
---|
193 | |
---|
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
195 | as_expr=expr |
---|
196 | else |
---|
197 | as_expr=false |
---|
198 | fi |
---|
199 | |
---|
200 | rm -f conf$$ conf$$.exe conf$$.file |
---|
201 | echo >conf$$.file |
---|
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
203 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
205 | if test -f conf$$.exe; then |
---|
206 | # Don't use ln at all; we don't have any links |
---|
207 | as_ln_s='cp -p' |
---|
208 | else |
---|
209 | as_ln_s='ln -s' |
---|
210 | fi |
---|
211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
212 | as_ln_s=ln |
---|
213 | else |
---|
214 | as_ln_s='cp -p' |
---|
215 | fi |
---|
216 | rm -f conf$$ conf$$.exe conf$$.file |
---|
217 | |
---|
218 | if mkdir -p . 2>/dev/null; then |
---|
219 | as_mkdir_p=: |
---|
220 | else |
---|
221 | test -d ./-p && rmdir ./-p |
---|
222 | as_mkdir_p=false |
---|
223 | fi |
---|
224 | |
---|
225 | as_executable_p="test -f" |
---|
226 | |
---|
227 | # Sed expression to map a string onto a valid CPP name. |
---|
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
229 | |
---|
230 | # Sed expression to map a string onto a valid variable name. |
---|
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
232 | |
---|
233 | |
---|
234 | # IFS |
---|
235 | # We need space, tab and new line, in precisely that order. |
---|
236 | as_nl=' |
---|
237 | ' |
---|
238 | IFS=" $as_nl" |
---|
239 | |
---|
240 | # CDPATH. |
---|
241 | $as_unset CDPATH |
---|
242 | |
---|
243 | |
---|
244 | |
---|
245 | # Check that we are running under the correct shell. |
---|
246 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
247 | |
---|
248 | case X$ECHO in |
---|
249 | X*--fallback-echo) |
---|
250 | # Remove one level of quotation (which was required for Make). |
---|
251 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
252 | ;; |
---|
253 | esac |
---|
254 | |
---|
255 | echo=${ECHO-echo} |
---|
256 | if test "X$1" = X--no-reexec; then |
---|
257 | # Discard the --no-reexec flag, and continue. |
---|
258 | shift |
---|
259 | elif test "X$1" = X--fallback-echo; then |
---|
260 | # Avoid inline document here, it may be left over |
---|
261 | : |
---|
262 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
---|
263 | # Yippee, $echo works! |
---|
264 | : |
---|
265 | else |
---|
266 | # Restart under the correct shell. |
---|
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
268 | fi |
---|
269 | |
---|
270 | if test "X$1" = X--fallback-echo; then |
---|
271 | # used as fallback echo |
---|
272 | shift |
---|
273 | cat <<EOF |
---|
274 | $* |
---|
275 | EOF |
---|
276 | exit 0 |
---|
277 | fi |
---|
278 | |
---|
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
280 | # if CDPATH is set. |
---|
281 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
---|
282 | |
---|
283 | if test -z "$ECHO"; then |
---|
284 | if test "X${echo_test_string+set}" != Xset; then |
---|
285 | # find a string as large as possible, as long as the shell can cope with it |
---|
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
288 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
---|
289 | echo_test_string="`eval $cmd`" && |
---|
290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
291 | then |
---|
292 | break |
---|
293 | fi |
---|
294 | done |
---|
295 | fi |
---|
296 | |
---|
297 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
298 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
299 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
300 | : |
---|
301 | else |
---|
302 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
303 | # backslashes. This makes it impossible to quote backslashes using |
---|
304 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
305 | # |
---|
306 | # So, first we look for a working echo in the user's PATH. |
---|
307 | |
---|
308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
309 | for dir in $PATH /usr/ucb; do |
---|
310 | IFS="$lt_save_ifs" |
---|
311 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
312 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
313 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
314 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
315 | echo="$dir/echo" |
---|
316 | break |
---|
317 | fi |
---|
318 | done |
---|
319 | IFS="$lt_save_ifs" |
---|
320 | |
---|
321 | if test "X$echo" = Xecho; then |
---|
322 | # We didn't find a better echo, so look for alternatives. |
---|
323 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
324 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
325 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
326 | # This shell has a builtin print -r that does the trick. |
---|
327 | echo='print -r' |
---|
328 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
329 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
330 | # If we have ksh, try running configure again with it. |
---|
331 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
332 | export ORIGINAL_CONFIG_SHELL |
---|
333 | CONFIG_SHELL=/bin/ksh |
---|
334 | export CONFIG_SHELL |
---|
335 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
336 | else |
---|
337 | # Try using printf. |
---|
338 | echo='printf %s\n' |
---|
339 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
340 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
341 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
342 | # Cool, printf works |
---|
343 | : |
---|
344 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
345 | test "X$echo_testing_string" = 'X\t' && |
---|
346 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
347 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
348 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
349 | export CONFIG_SHELL |
---|
350 | SHELL="$CONFIG_SHELL" |
---|
351 | export SHELL |
---|
352 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
353 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
354 | test "X$echo_testing_string" = 'X\t' && |
---|
355 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
357 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
358 | else |
---|
359 | # maybe with a smaller string... |
---|
360 | prev=: |
---|
361 | |
---|
362 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
363 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
364 | then |
---|
365 | break |
---|
366 | fi |
---|
367 | prev="$cmd" |
---|
368 | done |
---|
369 | |
---|
370 | if test "$prev" != 'sed 50q "$0"'; then |
---|
371 | echo_test_string=`eval $prev` |
---|
372 | export echo_test_string |
---|
373 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
374 | else |
---|
375 | # Oops. We lost completely, so just stick with echo. |
---|
376 | echo=echo |
---|
377 | fi |
---|
378 | fi |
---|
379 | fi |
---|
380 | fi |
---|
381 | fi |
---|
382 | fi |
---|
383 | |
---|
384 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
385 | # the Makefile, instead of quoting the original, which is used later. |
---|
386 | ECHO=$echo |
---|
387 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
388 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
389 | fi |
---|
390 | |
---|
391 | |
---|
392 | |
---|
393 | |
---|
394 | tagnames=${tagnames+${tagnames},}CXX |
---|
395 | |
---|
396 | tagnames=${tagnames+${tagnames},}F77 |
---|
397 | |
---|
398 | # Name of the host. |
---|
399 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
400 | # so uname gets run too. |
---|
401 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
402 | |
---|
403 | exec 6>&1 |
---|
404 | |
---|
405 | # |
---|
406 | # Initializations. |
---|
407 | # |
---|
408 | ac_default_prefix=/usr/local |
---|
409 | ac_config_libobj_dir=. |
---|
410 | cross_compiling=no |
---|
411 | subdirs= |
---|
412 | MFLAGS= |
---|
413 | MAKEFLAGS= |
---|
414 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
415 | |
---|
416 | # Maximum number of lines to put in a shell here document. |
---|
417 | # This variable seems obsolete. It should probably be removed, and |
---|
418 | # only ac_max_sed_lines should be used. |
---|
419 | : ${ac_max_here_lines=38} |
---|
420 | |
---|
421 | # Identity of this package. |
---|
422 | PACKAGE_NAME='OGRE_REFAPP' |
---|
423 | PACKAGE_TARNAME='ogre_refapp' |
---|
424 | PACKAGE_VERSION='0.10.0' |
---|
425 | PACKAGE_STRING='OGRE_REFAPP 0.10.0' |
---|
426 | PACKAGE_BUGREPORT='' |
---|
427 | |
---|
428 | # Factoring default headers for most tests. |
---|
429 | ac_includes_default="\ |
---|
430 | #include <stdio.h> |
---|
431 | #if HAVE_SYS_TYPES_H |
---|
432 | # include <sys/types.h> |
---|
433 | #endif |
---|
434 | #if HAVE_SYS_STAT_H |
---|
435 | # include <sys/stat.h> |
---|
436 | #endif |
---|
437 | #if STDC_HEADERS |
---|
438 | # include <stdlib.h> |
---|
439 | # include <stddef.h> |
---|
440 | #else |
---|
441 | # if HAVE_STDLIB_H |
---|
442 | # include <stdlib.h> |
---|
443 | # endif |
---|
444 | #endif |
---|
445 | #if HAVE_STRING_H |
---|
446 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
447 | # include <memory.h> |
---|
448 | # endif |
---|
449 | # include <string.h> |
---|
450 | #endif |
---|
451 | #if HAVE_STRINGS_H |
---|
452 | # include <strings.h> |
---|
453 | #endif |
---|
454 | #if HAVE_INTTYPES_H |
---|
455 | # include <inttypes.h> |
---|
456 | #else |
---|
457 | # if HAVE_STDINT_H |
---|
458 | # include <stdint.h> |
---|
459 | # endif |
---|
460 | #endif |
---|
461 | #if HAVE_UNISTD_H |
---|
462 | # include <unistd.h> |
---|
463 | #endif" |
---|
464 | |
---|
465 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG OGRE_CFLAGS OGRE_LIBS LIB@&t@OBJS LTLIBOBJS' |
---|
466 | ac_subst_files='' |
---|
467 | |
---|
468 | # Initialize some variables set by options. |
---|
469 | ac_init_help= |
---|
470 | ac_init_version=false |
---|
471 | # The variables have the same names as the options, with |
---|
472 | # dashes changed to underlines. |
---|
473 | cache_file=/dev/null |
---|
474 | exec_prefix=NONE |
---|
475 | no_create= |
---|
476 | no_recursion= |
---|
477 | prefix=NONE |
---|
478 | program_prefix=NONE |
---|
479 | program_suffix=NONE |
---|
480 | program_transform_name=s,x,x, |
---|
481 | silent= |
---|
482 | site= |
---|
483 | srcdir= |
---|
484 | verbose= |
---|
485 | x_includes=NONE |
---|
486 | x_libraries=NONE |
---|
487 | |
---|
488 | # Installation directory options. |
---|
489 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
490 | # and all the variables that are supposed to be based on exec_prefix |
---|
491 | # by default will actually change. |
---|
492 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
493 | bindir='${exec_prefix}/bin' |
---|
494 | sbindir='${exec_prefix}/sbin' |
---|
495 | libexecdir='${exec_prefix}/libexec' |
---|
496 | datadir='${prefix}/share' |
---|
497 | sysconfdir='${prefix}/etc' |
---|
498 | sharedstatedir='${prefix}/com' |
---|
499 | localstatedir='${prefix}/var' |
---|
500 | libdir='${exec_prefix}/lib' |
---|
501 | includedir='${prefix}/include' |
---|
502 | oldincludedir='/usr/include' |
---|
503 | infodir='${prefix}/info' |
---|
504 | mandir='${prefix}/man' |
---|
505 | |
---|
506 | ac_prev= |
---|
507 | for ac_option |
---|
508 | do |
---|
509 | # If the previous option needs an argument, assign it. |
---|
510 | if test -n "$ac_prev"; then |
---|
511 | eval "$ac_prev=\$ac_option" |
---|
512 | ac_prev= |
---|
513 | continue |
---|
514 | fi |
---|
515 | |
---|
516 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
517 | |
---|
518 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
519 | |
---|
520 | case $ac_option in |
---|
521 | |
---|
522 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
523 | ac_prev=bindir ;; |
---|
524 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
525 | bindir=$ac_optarg ;; |
---|
526 | |
---|
527 | -build | --build | --buil | --bui | --bu) |
---|
528 | ac_prev=build_alias ;; |
---|
529 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
530 | build_alias=$ac_optarg ;; |
---|
531 | |
---|
532 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
533 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
534 | ac_prev=cache_file ;; |
---|
535 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
536 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
537 | cache_file=$ac_optarg ;; |
---|
538 | |
---|
539 | --config-cache | -C) |
---|
540 | cache_file=config.cache ;; |
---|
541 | |
---|
542 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
543 | ac_prev=datadir ;; |
---|
544 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
545 | | --da=*) |
---|
546 | datadir=$ac_optarg ;; |
---|
547 | |
---|
548 | -disable-* | --disable-*) |
---|
549 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
550 | # Reject names that are not valid shell variable names. |
---|
551 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
552 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
553 | { (exit 1); exit 1; }; } |
---|
554 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
555 | eval "enable_$ac_feature=no" ;; |
---|
556 | |
---|
557 | -enable-* | --enable-*) |
---|
558 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
559 | # Reject names that are not valid shell variable names. |
---|
560 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
561 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
562 | { (exit 1); exit 1; }; } |
---|
563 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
564 | case $ac_option in |
---|
565 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
566 | *) ac_optarg=yes ;; |
---|
567 | esac |
---|
568 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
569 | |
---|
570 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
571 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
572 | | --exec | --exe | --ex) |
---|
573 | ac_prev=exec_prefix ;; |
---|
574 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
575 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
576 | | --exec=* | --exe=* | --ex=*) |
---|
577 | exec_prefix=$ac_optarg ;; |
---|
578 | |
---|
579 | -gas | --gas | --ga | --g) |
---|
580 | # Obsolete; use --with-gas. |
---|
581 | with_gas=yes ;; |
---|
582 | |
---|
583 | -help | --help | --hel | --he | -h) |
---|
584 | ac_init_help=long ;; |
---|
585 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
586 | ac_init_help=recursive ;; |
---|
587 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
588 | ac_init_help=short ;; |
---|
589 | |
---|
590 | -host | --host | --hos | --ho) |
---|
591 | ac_prev=host_alias ;; |
---|
592 | -host=* | --host=* | --hos=* | --ho=*) |
---|
593 | host_alias=$ac_optarg ;; |
---|
594 | |
---|
595 | -includedir | --includedir | --includedi | --included | --include \ |
---|
596 | | --includ | --inclu | --incl | --inc) |
---|
597 | ac_prev=includedir ;; |
---|
598 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
599 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
600 | includedir=$ac_optarg ;; |
---|
601 | |
---|
602 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
603 | ac_prev=infodir ;; |
---|
604 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
605 | infodir=$ac_optarg ;; |
---|
606 | |
---|
607 | -libdir | --libdir | --libdi | --libd) |
---|
608 | ac_prev=libdir ;; |
---|
609 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
610 | libdir=$ac_optarg ;; |
---|
611 | |
---|
612 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
613 | | --libexe | --libex | --libe) |
---|
614 | ac_prev=libexecdir ;; |
---|
615 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
616 | | --libexe=* | --libex=* | --libe=*) |
---|
617 | libexecdir=$ac_optarg ;; |
---|
618 | |
---|
619 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
620 | | --localstate | --localstat | --localsta | --localst \ |
---|
621 | | --locals | --local | --loca | --loc | --lo) |
---|
622 | ac_prev=localstatedir ;; |
---|
623 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
624 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
625 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
626 | localstatedir=$ac_optarg ;; |
---|
627 | |
---|
628 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
629 | ac_prev=mandir ;; |
---|
630 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
631 | mandir=$ac_optarg ;; |
---|
632 | |
---|
633 | -nfp | --nfp | --nf) |
---|
634 | # Obsolete; use --without-fp. |
---|
635 | with_fp=no ;; |
---|
636 | |
---|
637 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
638 | | --no-cr | --no-c | -n) |
---|
639 | no_create=yes ;; |
---|
640 | |
---|
641 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
642 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
643 | no_recursion=yes ;; |
---|
644 | |
---|
645 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
646 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
647 | | --oldin | --oldi | --old | --ol | --o) |
---|
648 | ac_prev=oldincludedir ;; |
---|
649 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
650 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
651 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
652 | oldincludedir=$ac_optarg ;; |
---|
653 | |
---|
654 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
655 | ac_prev=prefix ;; |
---|
656 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
657 | prefix=$ac_optarg ;; |
---|
658 | |
---|
659 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
660 | | --program-pre | --program-pr | --program-p) |
---|
661 | ac_prev=program_prefix ;; |
---|
662 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
663 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
664 | program_prefix=$ac_optarg ;; |
---|
665 | |
---|
666 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
667 | | --program-suf | --program-su | --program-s) |
---|
668 | ac_prev=program_suffix ;; |
---|
669 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
670 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
671 | program_suffix=$ac_optarg ;; |
---|
672 | |
---|
673 | -program-transform-name | --program-transform-name \ |
---|
674 | | --program-transform-nam | --program-transform-na \ |
---|
675 | | --program-transform-n | --program-transform- \ |
---|
676 | | --program-transform | --program-transfor \ |
---|
677 | | --program-transfo | --program-transf \ |
---|
678 | | --program-trans | --program-tran \ |
---|
679 | | --progr-tra | --program-tr | --program-t) |
---|
680 | ac_prev=program_transform_name ;; |
---|
681 | -program-transform-name=* | --program-transform-name=* \ |
---|
682 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
683 | | --program-transform-n=* | --program-transform-=* \ |
---|
684 | | --program-transform=* | --program-transfor=* \ |
---|
685 | | --program-transfo=* | --program-transf=* \ |
---|
686 | | --program-trans=* | --program-tran=* \ |
---|
687 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
688 | program_transform_name=$ac_optarg ;; |
---|
689 | |
---|
690 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
691 | | -silent | --silent | --silen | --sile | --sil) |
---|
692 | silent=yes ;; |
---|
693 | |
---|
694 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
695 | ac_prev=sbindir ;; |
---|
696 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
697 | | --sbi=* | --sb=*) |
---|
698 | sbindir=$ac_optarg ;; |
---|
699 | |
---|
700 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
701 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
702 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
703 | | --sha | --sh) |
---|
704 | ac_prev=sharedstatedir ;; |
---|
705 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
706 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
707 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
708 | | --sha=* | --sh=*) |
---|
709 | sharedstatedir=$ac_optarg ;; |
---|
710 | |
---|
711 | -site | --site | --sit) |
---|
712 | ac_prev=site ;; |
---|
713 | -site=* | --site=* | --sit=*) |
---|
714 | site=$ac_optarg ;; |
---|
715 | |
---|
716 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
717 | ac_prev=srcdir ;; |
---|
718 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
719 | srcdir=$ac_optarg ;; |
---|
720 | |
---|
721 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
722 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
723 | ac_prev=sysconfdir ;; |
---|
724 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
725 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
726 | sysconfdir=$ac_optarg ;; |
---|
727 | |
---|
728 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
729 | ac_prev=target_alias ;; |
---|
730 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
731 | target_alias=$ac_optarg ;; |
---|
732 | |
---|
733 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
734 | verbose=yes ;; |
---|
735 | |
---|
736 | -version | --version | --versio | --versi | --vers | -V) |
---|
737 | ac_init_version=: ;; |
---|
738 | |
---|
739 | -with-* | --with-*) |
---|
740 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
741 | # Reject names that are not valid shell variable names. |
---|
742 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
743 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
744 | { (exit 1); exit 1; }; } |
---|
745 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
746 | case $ac_option in |
---|
747 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
748 | *) ac_optarg=yes ;; |
---|
749 | esac |
---|
750 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
751 | |
---|
752 | -without-* | --without-*) |
---|
753 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
754 | # Reject names that are not valid shell variable names. |
---|
755 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
756 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
757 | { (exit 1); exit 1; }; } |
---|
758 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
759 | eval "with_$ac_package=no" ;; |
---|
760 | |
---|
761 | --x) |
---|
762 | # Obsolete; use --with-x. |
---|
763 | with_x=yes ;; |
---|
764 | |
---|
765 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
766 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
767 | ac_prev=x_includes ;; |
---|
768 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
769 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
770 | x_includes=$ac_optarg ;; |
---|
771 | |
---|
772 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
773 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
774 | ac_prev=x_libraries ;; |
---|
775 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
776 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
777 | x_libraries=$ac_optarg ;; |
---|
778 | |
---|
779 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
780 | Try \`$0 --help' for more information." >&2 |
---|
781 | { (exit 1); exit 1; }; } |
---|
782 | ;; |
---|
783 | |
---|
784 | *=*) |
---|
785 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
786 | # Reject names that are not valid shell variable names. |
---|
787 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
788 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
789 | { (exit 1); exit 1; }; } |
---|
790 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
791 | eval "$ac_envvar='$ac_optarg'" |
---|
792 | export $ac_envvar ;; |
---|
793 | |
---|
794 | *) |
---|
795 | # FIXME: should be removed in autoconf 3.0. |
---|
796 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
797 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
798 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
799 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
800 | ;; |
---|
801 | |
---|
802 | esac |
---|
803 | done |
---|
804 | |
---|
805 | if test -n "$ac_prev"; then |
---|
806 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
807 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
808 | { (exit 1); exit 1; }; } |
---|
809 | fi |
---|
810 | |
---|
811 | # Be sure to have absolute paths. |
---|
812 | for ac_var in exec_prefix prefix |
---|
813 | do |
---|
814 | eval ac_val=$`echo $ac_var` |
---|
815 | case $ac_val in |
---|
816 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
817 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
818 | { (exit 1); exit 1; }; };; |
---|
819 | esac |
---|
820 | done |
---|
821 | |
---|
822 | # Be sure to have absolute paths. |
---|
823 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
824 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
825 | do |
---|
826 | eval ac_val=$`echo $ac_var` |
---|
827 | case $ac_val in |
---|
828 | [\\/$]* | ?:[\\/]* ) ;; |
---|
829 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
830 | { (exit 1); exit 1; }; };; |
---|
831 | esac |
---|
832 | done |
---|
833 | |
---|
834 | # There might be people who depend on the old broken behavior: `$host' |
---|
835 | # used to hold the argument of --host etc. |
---|
836 | # FIXME: To remove some day. |
---|
837 | build=$build_alias |
---|
838 | host=$host_alias |
---|
839 | target=$target_alias |
---|
840 | |
---|
841 | # FIXME: To remove some day. |
---|
842 | if test "x$host_alias" != x; then |
---|
843 | if test "x$build_alias" = x; then |
---|
844 | cross_compiling=maybe |
---|
845 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
846 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
847 | elif test "x$build_alias" != "x$host_alias"; then |
---|
848 | cross_compiling=yes |
---|
849 | fi |
---|
850 | fi |
---|
851 | |
---|
852 | ac_tool_prefix= |
---|
853 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
854 | |
---|
855 | test "$silent" = yes && exec 6>/dev/null |
---|
856 | |
---|
857 | |
---|
858 | # Find the source files, if location was not specified. |
---|
859 | if test -z "$srcdir"; then |
---|
860 | ac_srcdir_defaulted=yes |
---|
861 | # Try the directory containing this script, then its parent. |
---|
862 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
863 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
864 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
865 | X"$0" : 'X\(//\)$' \| \ |
---|
866 | X"$0" : 'X\(/\)' \| \ |
---|
867 | . : '\(.\)' 2>/dev/null || |
---|
868 | echo X"$0" | |
---|
869 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
870 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
871 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
872 | /^X\(\/\).*/{ s//\1/; q; } |
---|
873 | s/.*/./; q'` |
---|
874 | srcdir=$ac_confdir |
---|
875 | if test ! -r $srcdir/$ac_unique_file; then |
---|
876 | srcdir=.. |
---|
877 | fi |
---|
878 | else |
---|
879 | ac_srcdir_defaulted=no |
---|
880 | fi |
---|
881 | if test ! -r $srcdir/$ac_unique_file; then |
---|
882 | if test "$ac_srcdir_defaulted" = yes; then |
---|
883 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
884 | { (exit 1); exit 1; }; } |
---|
885 | else |
---|
886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
887 | { (exit 1); exit 1; }; } |
---|
888 | fi |
---|
889 | fi |
---|
890 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
891 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
892 | { (exit 1); exit 1; }; } |
---|
893 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
894 | ac_env_build_alias_set=${build_alias+set} |
---|
895 | ac_env_build_alias_value=$build_alias |
---|
896 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
897 | ac_cv_env_build_alias_value=$build_alias |
---|
898 | ac_env_host_alias_set=${host_alias+set} |
---|
899 | ac_env_host_alias_value=$host_alias |
---|
900 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
901 | ac_cv_env_host_alias_value=$host_alias |
---|
902 | ac_env_target_alias_set=${target_alias+set} |
---|
903 | ac_env_target_alias_value=$target_alias |
---|
904 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
905 | ac_cv_env_target_alias_value=$target_alias |
---|
906 | ac_env_CC_set=${CC+set} |
---|
907 | ac_env_CC_value=$CC |
---|
908 | ac_cv_env_CC_set=${CC+set} |
---|
909 | ac_cv_env_CC_value=$CC |
---|
910 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
911 | ac_env_CFLAGS_value=$CFLAGS |
---|
912 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
913 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
914 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
915 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
916 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
917 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
918 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
919 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
920 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
921 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
922 | ac_env_CXX_set=${CXX+set} |
---|
923 | ac_env_CXX_value=$CXX |
---|
924 | ac_cv_env_CXX_set=${CXX+set} |
---|
925 | ac_cv_env_CXX_value=$CXX |
---|
926 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
927 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
928 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
929 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
930 | ac_env_CPP_set=${CPP+set} |
---|
931 | ac_env_CPP_value=$CPP |
---|
932 | ac_cv_env_CPP_set=${CPP+set} |
---|
933 | ac_cv_env_CPP_value=$CPP |
---|
934 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
935 | ac_env_CXXCPP_value=$CXXCPP |
---|
936 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
937 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
938 | ac_env_F77_set=${F77+set} |
---|
939 | ac_env_F77_value=$F77 |
---|
940 | ac_cv_env_F77_set=${F77+set} |
---|
941 | ac_cv_env_F77_value=$F77 |
---|
942 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
943 | ac_env_FFLAGS_value=$FFLAGS |
---|
944 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
945 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
946 | ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
947 | ac_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
948 | ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
949 | ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
950 | ac_env_OGRE_CFLAGS_set=${OGRE_CFLAGS+set} |
---|
951 | ac_env_OGRE_CFLAGS_value=$OGRE_CFLAGS |
---|
952 | ac_cv_env_OGRE_CFLAGS_set=${OGRE_CFLAGS+set} |
---|
953 | ac_cv_env_OGRE_CFLAGS_value=$OGRE_CFLAGS |
---|
954 | ac_env_OGRE_LIBS_set=${OGRE_LIBS+set} |
---|
955 | ac_env_OGRE_LIBS_value=$OGRE_LIBS |
---|
956 | ac_cv_env_OGRE_LIBS_set=${OGRE_LIBS+set} |
---|
957 | ac_cv_env_OGRE_LIBS_value=$OGRE_LIBS |
---|
958 | |
---|
959 | # |
---|
960 | # Report the --help message. |
---|
961 | # |
---|
962 | if test "$ac_init_help" = "long"; then |
---|
963 | # Omit some internal or obsolete options to make the list less imposing. |
---|
964 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
965 | cat <<_ACEOF |
---|
966 | \`configure' configures OGRE_REFAPP 0.10.0 to adapt to many kinds of systems. |
---|
967 | |
---|
968 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
969 | |
---|
970 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
971 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
972 | |
---|
973 | Defaults for the options are specified in brackets. |
---|
974 | |
---|
975 | Configuration: |
---|
976 | -h, --help display this help and exit |
---|
977 | --help=short display options specific to this package |
---|
978 | --help=recursive display the short help of all the included packages |
---|
979 | -V, --version display version information and exit |
---|
980 | -q, --quiet, --silent do not print \`checking...' messages |
---|
981 | --cache-file=FILE cache test results in FILE [disabled] |
---|
982 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
983 | -n, --no-create do not create output files |
---|
984 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
985 | |
---|
986 | _ACEOF |
---|
987 | |
---|
988 | cat <<_ACEOF |
---|
989 | Installation directories: |
---|
990 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
991 | [$ac_default_prefix] |
---|
992 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
993 | [PREFIX] |
---|
994 | |
---|
995 | By default, \`make install' will install all the files in |
---|
996 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
997 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
998 | for instance \`--prefix=\$HOME'. |
---|
999 | |
---|
1000 | For better control, use the options below. |
---|
1001 | |
---|
1002 | Fine tuning of the installation directories: |
---|
1003 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1004 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1005 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1006 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1007 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1008 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1009 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1010 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1011 | --includedir=DIR C header files [PREFIX/include] |
---|
1012 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1013 | --infodir=DIR info documentation [PREFIX/info] |
---|
1014 | --mandir=DIR man documentation [PREFIX/man] |
---|
1015 | _ACEOF |
---|
1016 | |
---|
1017 | cat <<\_ACEOF |
---|
1018 | |
---|
1019 | Program names: |
---|
1020 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1021 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1022 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1023 | |
---|
1024 | System types: |
---|
1025 | --build=BUILD configure for building on BUILD [guessed] |
---|
1026 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1027 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
1028 | _ACEOF |
---|
1029 | fi |
---|
1030 | |
---|
1031 | if test -n "$ac_init_help"; then |
---|
1032 | case $ac_init_help in |
---|
1033 | short | recursive ) echo "Configuration of OGRE_REFAPP 0.10.0:";; |
---|
1034 | esac |
---|
1035 | cat <<\_ACEOF |
---|
1036 | |
---|
1037 | Optional Features: |
---|
1038 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1039 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1040 | --disable-dependency-tracking speeds up one-time build |
---|
1041 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1042 | --enable-shared@<:@=PKGS@:>@ |
---|
1043 | build shared libraries @<:@default=yes@:>@ |
---|
1044 | --enable-static@<:@=PKGS@:>@ |
---|
1045 | build static libraries @<:@default=yes@:>@ |
---|
1046 | --enable-fast-install@<:@=PKGS@:>@ |
---|
1047 | optimize for fast installation @<:@default=yes@:>@ |
---|
1048 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1049 | |
---|
1050 | Optional Packages: |
---|
1051 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1052 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1053 | --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ |
---|
1054 | --with-pic try to use only PIC/non-PIC objects @<:@default=use |
---|
1055 | both@:>@ |
---|
1056 | --with-tags@<:@=TAGS@:>@ |
---|
1057 | include additional configurations @<:@automatic@:>@ |
---|
1058 | |
---|
1059 | Some influential environment variables: |
---|
1060 | CC C compiler command |
---|
1061 | CFLAGS C compiler flags |
---|
1062 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1063 | nonstandard directory <lib dir> |
---|
1064 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1065 | headers in a nonstandard directory <include dir> |
---|
1066 | CXX C++ compiler command |
---|
1067 | CXXFLAGS C++ compiler flags |
---|
1068 | CPP C preprocessor |
---|
1069 | CXXCPP C++ preprocessor |
---|
1070 | F77 Fortran 77 compiler command |
---|
1071 | FFLAGS Fortran 77 compiler flags |
---|
1072 | PKG_CONFIG path to pkg-config utility |
---|
1073 | OGRE_CFLAGS C compiler flags for OGRE, overriding pkg-config |
---|
1074 | OGRE_LIBS linker flags for OGRE, overriding pkg-config |
---|
1075 | |
---|
1076 | Use these variables to override the choices made by `configure' or to help |
---|
1077 | it to find libraries and programs with nonstandard names/locations. |
---|
1078 | |
---|
1079 | _ACEOF |
---|
1080 | fi |
---|
1081 | |
---|
1082 | if test "$ac_init_help" = "recursive"; then |
---|
1083 | # If there are subdirs, report their specific --help. |
---|
1084 | ac_popdir=`pwd` |
---|
1085 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1086 | test -d $ac_dir || continue |
---|
1087 | ac_builddir=. |
---|
1088 | |
---|
1089 | if test "$ac_dir" != .; then |
---|
1090 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1091 | # A "../" for each directory in $ac_dir_suffix. |
---|
1092 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1093 | else |
---|
1094 | ac_dir_suffix= ac_top_builddir= |
---|
1095 | fi |
---|
1096 | |
---|
1097 | case $srcdir in |
---|
1098 | .) # No --srcdir option. We are building in place. |
---|
1099 | ac_srcdir=. |
---|
1100 | if test -z "$ac_top_builddir"; then |
---|
1101 | ac_top_srcdir=. |
---|
1102 | else |
---|
1103 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1104 | fi ;; |
---|
1105 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1106 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1107 | ac_top_srcdir=$srcdir ;; |
---|
1108 | *) # Relative path. |
---|
1109 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1110 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1111 | esac |
---|
1112 | |
---|
1113 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1114 | # the directories may not exist. |
---|
1115 | case `pwd` in |
---|
1116 | .) ac_abs_builddir="$ac_dir";; |
---|
1117 | *) |
---|
1118 | case "$ac_dir" in |
---|
1119 | .) ac_abs_builddir=`pwd`;; |
---|
1120 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1121 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1122 | esac;; |
---|
1123 | esac |
---|
1124 | case $ac_abs_builddir in |
---|
1125 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1126 | *) |
---|
1127 | case ${ac_top_builddir}. in |
---|
1128 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1129 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1130 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1131 | esac;; |
---|
1132 | esac |
---|
1133 | case $ac_abs_builddir in |
---|
1134 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1135 | *) |
---|
1136 | case $ac_srcdir in |
---|
1137 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1138 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1139 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1140 | esac;; |
---|
1141 | esac |
---|
1142 | case $ac_abs_builddir in |
---|
1143 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1144 | *) |
---|
1145 | case $ac_top_srcdir in |
---|
1146 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1147 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1148 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1149 | esac;; |
---|
1150 | esac |
---|
1151 | |
---|
1152 | cd $ac_dir |
---|
1153 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1154 | if test -f $ac_srcdir/configure.gnu; then |
---|
1155 | echo |
---|
1156 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1157 | elif test -f $ac_srcdir/configure; then |
---|
1158 | echo |
---|
1159 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1160 | elif test -f $ac_srcdir/configure.ac || |
---|
1161 | test -f $ac_srcdir/configure.in; then |
---|
1162 | echo |
---|
1163 | $ac_configure --help |
---|
1164 | else |
---|
1165 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1166 | fi |
---|
1167 | cd "$ac_popdir" |
---|
1168 | done |
---|
1169 | fi |
---|
1170 | |
---|
1171 | test -n "$ac_init_help" && exit 0 |
---|
1172 | if $ac_init_version; then |
---|
1173 | cat <<\_ACEOF |
---|
1174 | OGRE_REFAPP configure 0.10.0 |
---|
1175 | generated by GNU Autoconf 2.59 |
---|
1176 | |
---|
1177 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1178 | This configure script is free software; the Free Software Foundation |
---|
1179 | gives unlimited permission to copy, distribute and modify it. |
---|
1180 | _ACEOF |
---|
1181 | exit 0 |
---|
1182 | fi |
---|
1183 | exec 5>config.log |
---|
1184 | cat >&5 <<_ACEOF |
---|
1185 | This file contains any messages produced by compilers while |
---|
1186 | running configure, to aid debugging if configure makes a mistake. |
---|
1187 | |
---|
1188 | It was created by OGRE_REFAPP $as_me 0.10.0, which was |
---|
1189 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1190 | |
---|
1191 | $ $0 $@ |
---|
1192 | |
---|
1193 | _ACEOF |
---|
1194 | { |
---|
1195 | cat <<_ASUNAME |
---|
1196 | @%:@@%:@ --------- @%:@@%:@ |
---|
1197 | @%:@@%:@ Platform. @%:@@%:@ |
---|
1198 | @%:@@%:@ --------- @%:@@%:@ |
---|
1199 | |
---|
1200 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1201 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1202 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1203 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1204 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1205 | |
---|
1206 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1207 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1208 | |
---|
1209 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1210 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1211 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1212 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1213 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1214 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1215 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1216 | |
---|
1217 | _ASUNAME |
---|
1218 | |
---|
1219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1220 | for as_dir in $PATH |
---|
1221 | do |
---|
1222 | IFS=$as_save_IFS |
---|
1223 | test -z "$as_dir" && as_dir=. |
---|
1224 | echo "PATH: $as_dir" |
---|
1225 | done |
---|
1226 | |
---|
1227 | } >&5 |
---|
1228 | |
---|
1229 | cat >&5 <<_ACEOF |
---|
1230 | |
---|
1231 | |
---|
1232 | @%:@@%:@ ----------- @%:@@%:@ |
---|
1233 | @%:@@%:@ Core tests. @%:@@%:@ |
---|
1234 | @%:@@%:@ ----------- @%:@@%:@ |
---|
1235 | |
---|
1236 | _ACEOF |
---|
1237 | |
---|
1238 | |
---|
1239 | # Keep a trace of the command line. |
---|
1240 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1241 | # Strip out --silent because we don't want to record it for future runs. |
---|
1242 | # Also quote any args containing shell meta-characters. |
---|
1243 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1244 | ac_configure_args= |
---|
1245 | ac_configure_args0= |
---|
1246 | ac_configure_args1= |
---|
1247 | ac_sep= |
---|
1248 | ac_must_keep_next=false |
---|
1249 | for ac_pass in 1 2 |
---|
1250 | do |
---|
1251 | for ac_arg |
---|
1252 | do |
---|
1253 | case $ac_arg in |
---|
1254 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1255 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1256 | | -silent | --silent | --silen | --sile | --sil) |
---|
1257 | continue ;; |
---|
1258 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1259 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1260 | esac |
---|
1261 | case $ac_pass in |
---|
1262 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1263 | 2) |
---|
1264 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1265 | if test $ac_must_keep_next = true; then |
---|
1266 | ac_must_keep_next=false # Got value, back to normal. |
---|
1267 | else |
---|
1268 | case $ac_arg in |
---|
1269 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1270 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1271 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1272 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1273 | case "$ac_configure_args0 " in |
---|
1274 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1275 | esac |
---|
1276 | ;; |
---|
1277 | -* ) ac_must_keep_next=true ;; |
---|
1278 | esac |
---|
1279 | fi |
---|
1280 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1281 | # Get rid of the leading space. |
---|
1282 | ac_sep=" " |
---|
1283 | ;; |
---|
1284 | esac |
---|
1285 | done |
---|
1286 | done |
---|
1287 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1288 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1289 | |
---|
1290 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1291 | # config.log. We remove comments because anyway the quotes in there |
---|
1292 | # would cause problems or look ugly. |
---|
1293 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1294 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1295 | trap 'exit_status=$? |
---|
1296 | # Save into config.log some information that might help in debugging. |
---|
1297 | { |
---|
1298 | echo |
---|
1299 | |
---|
1300 | cat <<\_ASBOX |
---|
1301 | @%:@@%:@ ---------------- @%:@@%:@ |
---|
1302 | @%:@@%:@ Cache variables. @%:@@%:@ |
---|
1303 | @%:@@%:@ ---------------- @%:@@%:@ |
---|
1304 | _ASBOX |
---|
1305 | echo |
---|
1306 | # The following way of writing the cache mishandles newlines in values, |
---|
1307 | { |
---|
1308 | (set) 2>&1 | |
---|
1309 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1310 | *ac_space=\ *) |
---|
1311 | sed -n \ |
---|
1312 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1313 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1314 | ;; |
---|
1315 | *) |
---|
1316 | sed -n \ |
---|
1317 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1318 | ;; |
---|
1319 | esac; |
---|
1320 | } |
---|
1321 | echo |
---|
1322 | |
---|
1323 | cat <<\_ASBOX |
---|
1324 | @%:@@%:@ ----------------- @%:@@%:@ |
---|
1325 | @%:@@%:@ Output variables. @%:@@%:@ |
---|
1326 | @%:@@%:@ ----------------- @%:@@%:@ |
---|
1327 | _ASBOX |
---|
1328 | echo |
---|
1329 | for ac_var in $ac_subst_vars |
---|
1330 | do |
---|
1331 | eval ac_val=$`echo $ac_var` |
---|
1332 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1333 | done | sort |
---|
1334 | echo |
---|
1335 | |
---|
1336 | if test -n "$ac_subst_files"; then |
---|
1337 | cat <<\_ASBOX |
---|
1338 | @%:@@%:@ ------------- @%:@@%:@ |
---|
1339 | @%:@@%:@ Output files. @%:@@%:@ |
---|
1340 | @%:@@%:@ ------------- @%:@@%:@ |
---|
1341 | _ASBOX |
---|
1342 | echo |
---|
1343 | for ac_var in $ac_subst_files |
---|
1344 | do |
---|
1345 | eval ac_val=$`echo $ac_var` |
---|
1346 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1347 | done | sort |
---|
1348 | echo |
---|
1349 | fi |
---|
1350 | |
---|
1351 | if test -s confdefs.h; then |
---|
1352 | cat <<\_ASBOX |
---|
1353 | @%:@@%:@ ----------- @%:@@%:@ |
---|
1354 | @%:@@%:@ confdefs.h. @%:@@%:@ |
---|
1355 | @%:@@%:@ ----------- @%:@@%:@ |
---|
1356 | _ASBOX |
---|
1357 | echo |
---|
1358 | sed "/^$/d" confdefs.h | sort |
---|
1359 | echo |
---|
1360 | fi |
---|
1361 | test "$ac_signal" != 0 && |
---|
1362 | echo "$as_me: caught signal $ac_signal" |
---|
1363 | echo "$as_me: exit $exit_status" |
---|
1364 | } >&5 |
---|
1365 | rm -f core *.core && |
---|
1366 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1367 | exit $exit_status |
---|
1368 | ' 0 |
---|
1369 | for ac_signal in 1 2 13 15; do |
---|
1370 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1371 | done |
---|
1372 | ac_signal=0 |
---|
1373 | |
---|
1374 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1375 | rm -rf conftest* confdefs.h |
---|
1376 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1377 | echo >confdefs.h |
---|
1378 | |
---|
1379 | # Predefined preprocessor variables. |
---|
1380 | |
---|
1381 | cat >>confdefs.h <<_ACEOF |
---|
1382 | @%:@define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1383 | _ACEOF |
---|
1384 | |
---|
1385 | |
---|
1386 | cat >>confdefs.h <<_ACEOF |
---|
1387 | @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1388 | _ACEOF |
---|
1389 | |
---|
1390 | |
---|
1391 | cat >>confdefs.h <<_ACEOF |
---|
1392 | @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1393 | _ACEOF |
---|
1394 | |
---|
1395 | |
---|
1396 | cat >>confdefs.h <<_ACEOF |
---|
1397 | @%:@define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1398 | _ACEOF |
---|
1399 | |
---|
1400 | |
---|
1401 | cat >>confdefs.h <<_ACEOF |
---|
1402 | @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1403 | _ACEOF |
---|
1404 | |
---|
1405 | |
---|
1406 | # Let the site file select an alternate cache file if it wants to. |
---|
1407 | # Prefer explicitly selected file to automatically selected ones. |
---|
1408 | if test -z "$CONFIG_SITE"; then |
---|
1409 | if test "x$prefix" != xNONE; then |
---|
1410 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1411 | else |
---|
1412 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1413 | fi |
---|
1414 | fi |
---|
1415 | for ac_site_file in $CONFIG_SITE; do |
---|
1416 | if test -r "$ac_site_file"; then |
---|
1417 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1418 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1419 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1420 | . "$ac_site_file" |
---|
1421 | fi |
---|
1422 | done |
---|
1423 | |
---|
1424 | if test -r "$cache_file"; then |
---|
1425 | # Some versions of bash will fail to source /dev/null (special |
---|
1426 | # files actually), so we avoid doing that. |
---|
1427 | if test -f "$cache_file"; then |
---|
1428 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1429 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1430 | case $cache_file in |
---|
1431 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1432 | *) . ./$cache_file;; |
---|
1433 | esac |
---|
1434 | fi |
---|
1435 | else |
---|
1436 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1437 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1438 | >$cache_file |
---|
1439 | fi |
---|
1440 | |
---|
1441 | # Check that the precious variables saved in the cache have kept the same |
---|
1442 | # value. |
---|
1443 | ac_cache_corrupted=false |
---|
1444 | for ac_var in `(set) 2>&1 | |
---|
1445 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1446 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1447 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1448 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1449 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1450 | case $ac_old_set,$ac_new_set in |
---|
1451 | set,) |
---|
1452 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1453 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1454 | ac_cache_corrupted=: ;; |
---|
1455 | ,set) |
---|
1456 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1457 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1458 | ac_cache_corrupted=: ;; |
---|
1459 | ,);; |
---|
1460 | *) |
---|
1461 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1462 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1463 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1464 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1465 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1466 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1467 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1468 | ac_cache_corrupted=: |
---|
1469 | fi;; |
---|
1470 | esac |
---|
1471 | # Pass precious variables to config.status. |
---|
1472 | if test "$ac_new_set" = set; then |
---|
1473 | case $ac_new_val in |
---|
1474 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1475 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1476 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1477 | esac |
---|
1478 | case " $ac_configure_args " in |
---|
1479 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1480 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1481 | esac |
---|
1482 | fi |
---|
1483 | done |
---|
1484 | if $ac_cache_corrupted; then |
---|
1485 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1486 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1487 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1488 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1489 | { (exit 1); exit 1; }; } |
---|
1490 | fi |
---|
1491 | |
---|
1492 | ac_ext=c |
---|
1493 | ac_cpp='$CPP $CPPFLAGS' |
---|
1494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1497 | |
---|
1498 | |
---|
1499 | |
---|
1500 | |
---|
1501 | |
---|
1502 | |
---|
1503 | |
---|
1504 | |
---|
1505 | |
---|
1506 | |
---|
1507 | |
---|
1508 | |
---|
1509 | |
---|
1510 | |
---|
1511 | |
---|
1512 | |
---|
1513 | |
---|
1514 | |
---|
1515 | |
---|
1516 | |
---|
1517 | |
---|
1518 | |
---|
1519 | |
---|
1520 | |
---|
1521 | |
---|
1522 | |
---|
1523 | |
---|
1524 | am__api_version="1.9" |
---|
1525 | ac_aux_dir= |
---|
1526 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1527 | if test -f $ac_dir/install-sh; then |
---|
1528 | ac_aux_dir=$ac_dir |
---|
1529 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1530 | break |
---|
1531 | elif test -f $ac_dir/install.sh; then |
---|
1532 | ac_aux_dir=$ac_dir |
---|
1533 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1534 | break |
---|
1535 | elif test -f $ac_dir/shtool; then |
---|
1536 | ac_aux_dir=$ac_dir |
---|
1537 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1538 | break |
---|
1539 | fi |
---|
1540 | done |
---|
1541 | if test -z "$ac_aux_dir"; then |
---|
1542 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1543 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1544 | { (exit 1); exit 1; }; } |
---|
1545 | fi |
---|
1546 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1547 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1548 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1549 | |
---|
1550 | # Find a good install program. We prefer a C program (faster), |
---|
1551 | # so one script is as good as another. But avoid the broken or |
---|
1552 | # incompatible versions: |
---|
1553 | # SysV /etc/install, /usr/sbin/install |
---|
1554 | # SunOS /usr/etc/install |
---|
1555 | # IRIX /sbin/install |
---|
1556 | # AIX /bin/install |
---|
1557 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1558 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1559 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1560 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1561 | # OS/2's system install, which has a completely different semantic |
---|
1562 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1563 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1564 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1565 | if test -z "$INSTALL"; then |
---|
1566 | if test "${ac_cv_path_install+set}" = set; then |
---|
1567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1568 | else |
---|
1569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1570 | for as_dir in $PATH |
---|
1571 | do |
---|
1572 | IFS=$as_save_IFS |
---|
1573 | test -z "$as_dir" && as_dir=. |
---|
1574 | # Account for people who put trailing slashes in PATH elements. |
---|
1575 | case $as_dir/ in |
---|
1576 | ./ | .// | /cC/* | \ |
---|
1577 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1578 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1579 | /usr/ucb/* ) ;; |
---|
1580 | *) |
---|
1581 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1582 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1583 | # by default. |
---|
1584 | for ac_prog in ginstall scoinst install; do |
---|
1585 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1586 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1587 | if test $ac_prog = install && |
---|
1588 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1589 | # AIX install. It has an incompatible calling convention. |
---|
1590 | : |
---|
1591 | elif test $ac_prog = install && |
---|
1592 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1593 | # program-specific install script used by HP pwplus--don't use. |
---|
1594 | : |
---|
1595 | else |
---|
1596 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1597 | break 3 |
---|
1598 | fi |
---|
1599 | fi |
---|
1600 | done |
---|
1601 | done |
---|
1602 | ;; |
---|
1603 | esac |
---|
1604 | done |
---|
1605 | |
---|
1606 | |
---|
1607 | fi |
---|
1608 | if test "${ac_cv_path_install+set}" = set; then |
---|
1609 | INSTALL=$ac_cv_path_install |
---|
1610 | else |
---|
1611 | # As a last resort, use the slow shell script. We don't cache a |
---|
1612 | # path for INSTALL within a source directory, because that will |
---|
1613 | # break other packages using the cache if that directory is |
---|
1614 | # removed, or if the path is relative. |
---|
1615 | INSTALL=$ac_install_sh |
---|
1616 | fi |
---|
1617 | fi |
---|
1618 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1619 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1620 | |
---|
1621 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1622 | # It thinks the first close brace ends the variable substitution. |
---|
1623 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1624 | |
---|
1625 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1626 | |
---|
1627 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1628 | |
---|
1629 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1630 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1631 | # Just in case |
---|
1632 | sleep 1 |
---|
1633 | echo timestamp > conftest.file |
---|
1634 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1635 | # arguments. Must try -L first in case configure is actually a |
---|
1636 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1637 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1638 | # directory). |
---|
1639 | if ( |
---|
1640 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1641 | if test "$*" = "X"; then |
---|
1642 | # -L didn't work. |
---|
1643 | set X `ls -t $srcdir/configure conftest.file` |
---|
1644 | fi |
---|
1645 | rm -f conftest.file |
---|
1646 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1647 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1648 | |
---|
1649 | # If neither matched, then we have a broken ls. This can happen |
---|
1650 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1651 | # broken ls alias from the environment. This has actually |
---|
1652 | # happened. Such a system could not be considered "sane". |
---|
1653 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1654 | alias in your environment" >&5 |
---|
1655 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1656 | alias in your environment" >&2;} |
---|
1657 | { (exit 1); exit 1; }; } |
---|
1658 | fi |
---|
1659 | |
---|
1660 | test "$2" = conftest.file |
---|
1661 | ) |
---|
1662 | then |
---|
1663 | # Ok. |
---|
1664 | : |
---|
1665 | else |
---|
1666 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1667 | Check your system clock" >&5 |
---|
1668 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1669 | Check your system clock" >&2;} |
---|
1670 | { (exit 1); exit 1; }; } |
---|
1671 | fi |
---|
1672 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1673 | echo "${ECHO_T}yes" >&6 |
---|
1674 | test "$program_prefix" != NONE && |
---|
1675 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1676 | # Use a double $ so make ignores it. |
---|
1677 | test "$program_suffix" != NONE && |
---|
1678 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1679 | # Double any \ or $. echo might interpret backslashes. |
---|
1680 | # By default was `s,x,x', remove it if useless. |
---|
1681 | cat <<\_ACEOF >conftest.sed |
---|
1682 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1683 | _ACEOF |
---|
1684 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1685 | rm conftest.sed |
---|
1686 | |
---|
1687 | # expand $ac_aux_dir to an absolute path |
---|
1688 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1689 | |
---|
1690 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1691 | # Use eval to expand $SHELL |
---|
1692 | if eval "$MISSING --run true"; then |
---|
1693 | am_missing_run="$MISSING --run " |
---|
1694 | else |
---|
1695 | am_missing_run= |
---|
1696 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1697 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1698 | fi |
---|
1699 | |
---|
1700 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1701 | # We used to keeping the `.' as first argument, in order to |
---|
1702 | # allow $(mkdir_p) to be used without argument. As in |
---|
1703 | # $(mkdir_p) $(somedir) |
---|
1704 | # where $(somedir) is conditionally defined. However this is wrong |
---|
1705 | # for two reasons: |
---|
1706 | # 1. if the package is installed by a user who cannot write `.' |
---|
1707 | # make install will fail, |
---|
1708 | # 2. the above comment should most certainly read |
---|
1709 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
1710 | # so it does not work when $(somedir) is undefined and |
---|
1711 | # $(DESTDIR) is not. |
---|
1712 | # To support the latter case, we have to write |
---|
1713 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
1714 | # so the `.' trick is pointless. |
---|
1715 | mkdir_p='mkdir -p --' |
---|
1716 | else |
---|
1717 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1718 | # recognize any option. It will interpret all options as |
---|
1719 | # directories to create, and then abort because `.' already |
---|
1720 | # exists. |
---|
1721 | for d in ./-p ./--version; |
---|
1722 | do |
---|
1723 | test -d $d && rmdir $d |
---|
1724 | done |
---|
1725 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1726 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1727 | mkdir_p='$(mkinstalldirs)' |
---|
1728 | else |
---|
1729 | mkdir_p='$(install_sh) -d' |
---|
1730 | fi |
---|
1731 | fi |
---|
1732 | |
---|
1733 | for ac_prog in gawk mawk nawk awk |
---|
1734 | do |
---|
1735 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1736 | set dummy $ac_prog; ac_word=$2 |
---|
1737 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1739 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1741 | else |
---|
1742 | if test -n "$AWK"; then |
---|
1743 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1744 | else |
---|
1745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1746 | for as_dir in $PATH |
---|
1747 | do |
---|
1748 | IFS=$as_save_IFS |
---|
1749 | test -z "$as_dir" && as_dir=. |
---|
1750 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1751 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1752 | ac_cv_prog_AWK="$ac_prog" |
---|
1753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1754 | break 2 |
---|
1755 | fi |
---|
1756 | done |
---|
1757 | done |
---|
1758 | |
---|
1759 | fi |
---|
1760 | fi |
---|
1761 | AWK=$ac_cv_prog_AWK |
---|
1762 | if test -n "$AWK"; then |
---|
1763 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1764 | echo "${ECHO_T}$AWK" >&6 |
---|
1765 | else |
---|
1766 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1767 | echo "${ECHO_T}no" >&6 |
---|
1768 | fi |
---|
1769 | |
---|
1770 | test -n "$AWK" && break |
---|
1771 | done |
---|
1772 | |
---|
1773 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1774 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1775 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1776 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1778 | else |
---|
1779 | cat >conftest.make <<\_ACEOF |
---|
1780 | all: |
---|
1781 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1782 | _ACEOF |
---|
1783 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1784 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1785 | if test -n "$ac_maketemp"; then |
---|
1786 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1787 | else |
---|
1788 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1789 | fi |
---|
1790 | rm -f conftest.make |
---|
1791 | fi |
---|
1792 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1793 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1794 | echo "${ECHO_T}yes" >&6 |
---|
1795 | SET_MAKE= |
---|
1796 | else |
---|
1797 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1798 | echo "${ECHO_T}no" >&6 |
---|
1799 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1800 | fi |
---|
1801 | |
---|
1802 | rm -rf .tst 2>/dev/null |
---|
1803 | mkdir .tst 2>/dev/null |
---|
1804 | if test -d .tst; then |
---|
1805 | am__leading_dot=. |
---|
1806 | else |
---|
1807 | am__leading_dot=_ |
---|
1808 | fi |
---|
1809 | rmdir .tst 2>/dev/null |
---|
1810 | |
---|
1811 | # test to see if srcdir already configured |
---|
1812 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1813 | test -f $srcdir/config.status; then |
---|
1814 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1815 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1816 | { (exit 1); exit 1; }; } |
---|
1817 | fi |
---|
1818 | |
---|
1819 | # test whether we have cygpath |
---|
1820 | if test -z "$CYGPATH_W"; then |
---|
1821 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1822 | CYGPATH_W='cygpath -w' |
---|
1823 | else |
---|
1824 | CYGPATH_W=echo |
---|
1825 | fi |
---|
1826 | fi |
---|
1827 | |
---|
1828 | |
---|
1829 | # Define the identity of the package. |
---|
1830 | PACKAGE='ogre_refapp' |
---|
1831 | VERSION='0.10.0' |
---|
1832 | |
---|
1833 | |
---|
1834 | cat >>confdefs.h <<_ACEOF |
---|
1835 | @%:@define PACKAGE "$PACKAGE" |
---|
1836 | _ACEOF |
---|
1837 | |
---|
1838 | |
---|
1839 | cat >>confdefs.h <<_ACEOF |
---|
1840 | @%:@define VERSION "$VERSION" |
---|
1841 | _ACEOF |
---|
1842 | |
---|
1843 | # Some tools Automake needs. |
---|
1844 | |
---|
1845 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1846 | |
---|
1847 | |
---|
1848 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1849 | |
---|
1850 | |
---|
1851 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1852 | |
---|
1853 | |
---|
1854 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1855 | |
---|
1856 | |
---|
1857 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1858 | |
---|
1859 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1860 | |
---|
1861 | # Installed binaries are usually stripped using `strip' when the user |
---|
1862 | # run `make install-strip'. However `strip' might not be the right |
---|
1863 | # tool to use in cross-compilation environments, therefore Automake |
---|
1864 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1865 | if test "$cross_compiling" != no; then |
---|
1866 | if test -n "$ac_tool_prefix"; then |
---|
1867 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1868 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1871 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1873 | else |
---|
1874 | if test -n "$STRIP"; then |
---|
1875 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1876 | else |
---|
1877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1878 | for as_dir in $PATH |
---|
1879 | do |
---|
1880 | IFS=$as_save_IFS |
---|
1881 | test -z "$as_dir" && as_dir=. |
---|
1882 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1884 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1886 | break 2 |
---|
1887 | fi |
---|
1888 | done |
---|
1889 | done |
---|
1890 | |
---|
1891 | fi |
---|
1892 | fi |
---|
1893 | STRIP=$ac_cv_prog_STRIP |
---|
1894 | if test -n "$STRIP"; then |
---|
1895 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1896 | echo "${ECHO_T}$STRIP" >&6 |
---|
1897 | else |
---|
1898 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1899 | echo "${ECHO_T}no" >&6 |
---|
1900 | fi |
---|
1901 | |
---|
1902 | fi |
---|
1903 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1904 | ac_ct_STRIP=$STRIP |
---|
1905 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1906 | set dummy strip; ac_word=$2 |
---|
1907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1909 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1911 | else |
---|
1912 | if test -n "$ac_ct_STRIP"; then |
---|
1913 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1914 | else |
---|
1915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1916 | for as_dir in $PATH |
---|
1917 | do |
---|
1918 | IFS=$as_save_IFS |
---|
1919 | test -z "$as_dir" && as_dir=. |
---|
1920 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1922 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1924 | break 2 |
---|
1925 | fi |
---|
1926 | done |
---|
1927 | done |
---|
1928 | |
---|
1929 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1930 | fi |
---|
1931 | fi |
---|
1932 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1933 | if test -n "$ac_ct_STRIP"; then |
---|
1934 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1935 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1936 | else |
---|
1937 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1938 | echo "${ECHO_T}no" >&6 |
---|
1939 | fi |
---|
1940 | |
---|
1941 | STRIP=$ac_ct_STRIP |
---|
1942 | else |
---|
1943 | STRIP="$ac_cv_prog_STRIP" |
---|
1944 | fi |
---|
1945 | |
---|
1946 | fi |
---|
1947 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1948 | |
---|
1949 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1950 | # some platforms. |
---|
1951 | # Always define AMTAR for backward compatibility. |
---|
1952 | |
---|
1953 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1954 | |
---|
1955 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
1956 | |
---|
1957 | |
---|
1958 | |
---|
1959 | |
---|
1960 | |
---|
1961 | ac_config_headers="$ac_config_headers ReferenceAppLayer/include/config.h" |
---|
1962 | |
---|
1963 | |
---|
1964 | # Make sure we can run config.sub. |
---|
1965 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1966 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1967 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1968 | { (exit 1); exit 1; }; } |
---|
1969 | |
---|
1970 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1971 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1972 | if test "${ac_cv_build+set}" = set; then |
---|
1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1974 | else |
---|
1975 | ac_cv_build_alias=$build_alias |
---|
1976 | test -z "$ac_cv_build_alias" && |
---|
1977 | ac_cv_build_alias=`$ac_config_guess` |
---|
1978 | test -z "$ac_cv_build_alias" && |
---|
1979 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1980 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1981 | { (exit 1); exit 1; }; } |
---|
1982 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1983 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1984 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1985 | { (exit 1); exit 1; }; } |
---|
1986 | |
---|
1987 | fi |
---|
1988 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1989 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1990 | build=$ac_cv_build |
---|
1991 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1992 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1993 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1994 | |
---|
1995 | |
---|
1996 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1997 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1998 | if test "${ac_cv_host+set}" = set; then |
---|
1999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2000 | else |
---|
2001 | ac_cv_host_alias=$host_alias |
---|
2002 | test -z "$ac_cv_host_alias" && |
---|
2003 | ac_cv_host_alias=$ac_cv_build_alias |
---|
2004 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
2005 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
2006 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
2007 | { (exit 1); exit 1; }; } |
---|
2008 | |
---|
2009 | fi |
---|
2010 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
2011 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
2012 | host=$ac_cv_host |
---|
2013 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
2014 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
2015 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
2016 | |
---|
2017 | |
---|
2018 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
2019 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
2020 | if test "${ac_cv_target+set}" = set; then |
---|
2021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2022 | else |
---|
2023 | ac_cv_target_alias=$target_alias |
---|
2024 | test "x$ac_cv_target_alias" = "x" && |
---|
2025 | ac_cv_target_alias=$ac_cv_host_alias |
---|
2026 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
2027 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
2028 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
2029 | { (exit 1); exit 1; }; } |
---|
2030 | |
---|
2031 | fi |
---|
2032 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
2033 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
2034 | target=$ac_cv_target |
---|
2035 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
2036 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
2037 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
2038 | |
---|
2039 | |
---|
2040 | # The aliases save the names the user supplied, while $host etc. |
---|
2041 | # will get canonicalized. |
---|
2042 | test -n "$target_alias" && |
---|
2043 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
2044 | NONENONEs,x,x, && |
---|
2045 | program_prefix=${target_alias}- |
---|
2046 | |
---|
2047 | ac_ext=c |
---|
2048 | ac_cpp='$CPP $CPPFLAGS' |
---|
2049 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2050 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2051 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2052 | if test -n "$ac_tool_prefix"; then |
---|
2053 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2054 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2057 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2059 | else |
---|
2060 | if test -n "$CC"; then |
---|
2061 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2062 | else |
---|
2063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2064 | for as_dir in $PATH |
---|
2065 | do |
---|
2066 | IFS=$as_save_IFS |
---|
2067 | test -z "$as_dir" && as_dir=. |
---|
2068 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2070 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2072 | break 2 |
---|
2073 | fi |
---|
2074 | done |
---|
2075 | done |
---|
2076 | |
---|
2077 | fi |
---|
2078 | fi |
---|
2079 | CC=$ac_cv_prog_CC |
---|
2080 | if test -n "$CC"; then |
---|
2081 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2082 | echo "${ECHO_T}$CC" >&6 |
---|
2083 | else |
---|
2084 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2085 | echo "${ECHO_T}no" >&6 |
---|
2086 | fi |
---|
2087 | |
---|
2088 | fi |
---|
2089 | if test -z "$ac_cv_prog_CC"; then |
---|
2090 | ac_ct_CC=$CC |
---|
2091 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2092 | set dummy gcc; ac_word=$2 |
---|
2093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2095 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2097 | else |
---|
2098 | if test -n "$ac_ct_CC"; then |
---|
2099 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2100 | else |
---|
2101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2102 | for as_dir in $PATH |
---|
2103 | do |
---|
2104 | IFS=$as_save_IFS |
---|
2105 | test -z "$as_dir" && as_dir=. |
---|
2106 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2107 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2108 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2110 | break 2 |
---|
2111 | fi |
---|
2112 | done |
---|
2113 | done |
---|
2114 | |
---|
2115 | fi |
---|
2116 | fi |
---|
2117 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2118 | if test -n "$ac_ct_CC"; then |
---|
2119 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2120 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2121 | else |
---|
2122 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2123 | echo "${ECHO_T}no" >&6 |
---|
2124 | fi |
---|
2125 | |
---|
2126 | CC=$ac_ct_CC |
---|
2127 | else |
---|
2128 | CC="$ac_cv_prog_CC" |
---|
2129 | fi |
---|
2130 | |
---|
2131 | if test -z "$CC"; then |
---|
2132 | if test -n "$ac_tool_prefix"; then |
---|
2133 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2134 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2135 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2137 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2139 | else |
---|
2140 | if test -n "$CC"; then |
---|
2141 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2142 | else |
---|
2143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2144 | for as_dir in $PATH |
---|
2145 | do |
---|
2146 | IFS=$as_save_IFS |
---|
2147 | test -z "$as_dir" && as_dir=. |
---|
2148 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2149 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2150 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2152 | break 2 |
---|
2153 | fi |
---|
2154 | done |
---|
2155 | done |
---|
2156 | |
---|
2157 | fi |
---|
2158 | fi |
---|
2159 | CC=$ac_cv_prog_CC |
---|
2160 | if test -n "$CC"; then |
---|
2161 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2162 | echo "${ECHO_T}$CC" >&6 |
---|
2163 | else |
---|
2164 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2165 | echo "${ECHO_T}no" >&6 |
---|
2166 | fi |
---|
2167 | |
---|
2168 | fi |
---|
2169 | if test -z "$ac_cv_prog_CC"; then |
---|
2170 | ac_ct_CC=$CC |
---|
2171 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2172 | set dummy cc; ac_word=$2 |
---|
2173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2175 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2177 | else |
---|
2178 | if test -n "$ac_ct_CC"; then |
---|
2179 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2180 | else |
---|
2181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2182 | for as_dir in $PATH |
---|
2183 | do |
---|
2184 | IFS=$as_save_IFS |
---|
2185 | test -z "$as_dir" && as_dir=. |
---|
2186 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2187 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2188 | ac_cv_prog_ac_ct_CC="cc" |
---|
2189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2190 | break 2 |
---|
2191 | fi |
---|
2192 | done |
---|
2193 | done |
---|
2194 | |
---|
2195 | fi |
---|
2196 | fi |
---|
2197 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2198 | if test -n "$ac_ct_CC"; then |
---|
2199 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2200 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2201 | else |
---|
2202 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2203 | echo "${ECHO_T}no" >&6 |
---|
2204 | fi |
---|
2205 | |
---|
2206 | CC=$ac_ct_CC |
---|
2207 | else |
---|
2208 | CC="$ac_cv_prog_CC" |
---|
2209 | fi |
---|
2210 | |
---|
2211 | fi |
---|
2212 | if test -z "$CC"; then |
---|
2213 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2214 | set dummy cc; ac_word=$2 |
---|
2215 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2217 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2219 | else |
---|
2220 | if test -n "$CC"; then |
---|
2221 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2222 | else |
---|
2223 | ac_prog_rejected=no |
---|
2224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2225 | for as_dir in $PATH |
---|
2226 | do |
---|
2227 | IFS=$as_save_IFS |
---|
2228 | test -z "$as_dir" && as_dir=. |
---|
2229 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2230 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2231 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2232 | ac_prog_rejected=yes |
---|
2233 | continue |
---|
2234 | fi |
---|
2235 | ac_cv_prog_CC="cc" |
---|
2236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2237 | break 2 |
---|
2238 | fi |
---|
2239 | done |
---|
2240 | done |
---|
2241 | |
---|
2242 | if test $ac_prog_rejected = yes; then |
---|
2243 | # We found a bogon in the path, so make sure we never use it. |
---|
2244 | set dummy $ac_cv_prog_CC |
---|
2245 | shift |
---|
2246 | if test $@%:@ != 0; then |
---|
2247 | # We chose a different compiler from the bogus one. |
---|
2248 | # However, it has the same basename, so the bogon will be chosen |
---|
2249 | # first if we set CC to just the basename; use the full file name. |
---|
2250 | shift |
---|
2251 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2252 | fi |
---|
2253 | fi |
---|
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 | fi |
---|
2266 | if test -z "$CC"; then |
---|
2267 | if test -n "$ac_tool_prefix"; then |
---|
2268 | for ac_prog in cl |
---|
2269 | do |
---|
2270 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2271 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2272 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2274 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2276 | else |
---|
2277 | if test -n "$CC"; then |
---|
2278 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2279 | else |
---|
2280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2281 | for as_dir in $PATH |
---|
2282 | do |
---|
2283 | IFS=$as_save_IFS |
---|
2284 | test -z "$as_dir" && as_dir=. |
---|
2285 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2286 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2287 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2289 | break 2 |
---|
2290 | fi |
---|
2291 | done |
---|
2292 | done |
---|
2293 | |
---|
2294 | fi |
---|
2295 | fi |
---|
2296 | CC=$ac_cv_prog_CC |
---|
2297 | if test -n "$CC"; then |
---|
2298 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2299 | echo "${ECHO_T}$CC" >&6 |
---|
2300 | else |
---|
2301 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2302 | echo "${ECHO_T}no" >&6 |
---|
2303 | fi |
---|
2304 | |
---|
2305 | test -n "$CC" && break |
---|
2306 | done |
---|
2307 | fi |
---|
2308 | if test -z "$CC"; then |
---|
2309 | ac_ct_CC=$CC |
---|
2310 | for ac_prog in cl |
---|
2311 | do |
---|
2312 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2313 | set dummy $ac_prog; ac_word=$2 |
---|
2314 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2316 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2318 | else |
---|
2319 | if test -n "$ac_ct_CC"; then |
---|
2320 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2321 | else |
---|
2322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2323 | for as_dir in $PATH |
---|
2324 | do |
---|
2325 | IFS=$as_save_IFS |
---|
2326 | test -z "$as_dir" && as_dir=. |
---|
2327 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2328 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2329 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2331 | break 2 |
---|
2332 | fi |
---|
2333 | done |
---|
2334 | done |
---|
2335 | |
---|
2336 | fi |
---|
2337 | fi |
---|
2338 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2339 | if test -n "$ac_ct_CC"; then |
---|
2340 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2341 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2342 | else |
---|
2343 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2344 | echo "${ECHO_T}no" >&6 |
---|
2345 | fi |
---|
2346 | |
---|
2347 | test -n "$ac_ct_CC" && break |
---|
2348 | done |
---|
2349 | |
---|
2350 | CC=$ac_ct_CC |
---|
2351 | fi |
---|
2352 | |
---|
2353 | fi |
---|
2354 | |
---|
2355 | |
---|
2356 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2357 | See \`config.log' for more details." >&5 |
---|
2358 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2359 | See \`config.log' for more details." >&2;} |
---|
2360 | { (exit 1); exit 1; }; } |
---|
2361 | |
---|
2362 | # Provide some information about the compiler. |
---|
2363 | echo "$as_me:$LINENO:" \ |
---|
2364 | "checking for C compiler version" >&5 |
---|
2365 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2366 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2367 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2368 | ac_status=$? |
---|
2369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2370 | (exit $ac_status); } |
---|
2371 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2372 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2373 | ac_status=$? |
---|
2374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2375 | (exit $ac_status); } |
---|
2376 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2377 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2378 | ac_status=$? |
---|
2379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2380 | (exit $ac_status); } |
---|
2381 | |
---|
2382 | cat >conftest.$ac_ext <<_ACEOF |
---|
2383 | /* confdefs.h. */ |
---|
2384 | _ACEOF |
---|
2385 | cat confdefs.h >>conftest.$ac_ext |
---|
2386 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2387 | /* end confdefs.h. */ |
---|
2388 | |
---|
2389 | int |
---|
2390 | main () |
---|
2391 | { |
---|
2392 | |
---|
2393 | ; |
---|
2394 | return 0; |
---|
2395 | } |
---|
2396 | _ACEOF |
---|
2397 | ac_clean_files_save=$ac_clean_files |
---|
2398 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2399 | # Try to create an executable without -o first, disregard a.out. |
---|
2400 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2401 | # of exeext. |
---|
2402 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2403 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2404 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2405 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2406 | (eval $ac_link_default) 2>&5 |
---|
2407 | ac_status=$? |
---|
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2409 | (exit $ac_status); }; then |
---|
2410 | # Find the output, starting from the most likely. This scheme is |
---|
2411 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2412 | # resort. |
---|
2413 | |
---|
2414 | # Be careful to initialize this variable, since it used to be cached. |
---|
2415 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2416 | ac_cv_exeext= |
---|
2417 | # b.out is created by i960 compilers. |
---|
2418 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2419 | do |
---|
2420 | test -f "$ac_file" || continue |
---|
2421 | case $ac_file in |
---|
2422 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2423 | ;; |
---|
2424 | conftest.$ac_ext ) |
---|
2425 | # This is the source file. |
---|
2426 | ;; |
---|
2427 | [ab].out ) |
---|
2428 | # We found the default executable, but exeext='' is most |
---|
2429 | # certainly right. |
---|
2430 | break;; |
---|
2431 | *.* ) |
---|
2432 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2433 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2434 | # but it would be cool to find out if it's true. Does anybody |
---|
2435 | # maintain Libtool? --akim. |
---|
2436 | export ac_cv_exeext |
---|
2437 | break;; |
---|
2438 | * ) |
---|
2439 | break;; |
---|
2440 | esac |
---|
2441 | done |
---|
2442 | else |
---|
2443 | echo "$as_me: failed program was:" >&5 |
---|
2444 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2445 | |
---|
2446 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2447 | See \`config.log' for more details." >&5 |
---|
2448 | echo "$as_me: error: C compiler cannot create executables |
---|
2449 | See \`config.log' for more details." >&2;} |
---|
2450 | { (exit 77); exit 77; }; } |
---|
2451 | fi |
---|
2452 | |
---|
2453 | ac_exeext=$ac_cv_exeext |
---|
2454 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2455 | echo "${ECHO_T}$ac_file" >&6 |
---|
2456 | |
---|
2457 | # Check the compiler produces executables we can run. If not, either |
---|
2458 | # the compiler is broken, or we cross compile. |
---|
2459 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2460 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2461 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2462 | # If not cross compiling, check that we can run a simple program. |
---|
2463 | if test "$cross_compiling" != yes; then |
---|
2464 | if { ac_try='./$ac_file' |
---|
2465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2466 | (eval $ac_try) 2>&5 |
---|
2467 | ac_status=$? |
---|
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2469 | (exit $ac_status); }; }; then |
---|
2470 | cross_compiling=no |
---|
2471 | else |
---|
2472 | if test "$cross_compiling" = maybe; then |
---|
2473 | cross_compiling=yes |
---|
2474 | else |
---|
2475 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2476 | If you meant to cross compile, use \`--host'. |
---|
2477 | See \`config.log' for more details." >&5 |
---|
2478 | echo "$as_me: error: cannot run C compiled programs. |
---|
2479 | If you meant to cross compile, use \`--host'. |
---|
2480 | See \`config.log' for more details." >&2;} |
---|
2481 | { (exit 1); exit 1; }; } |
---|
2482 | fi |
---|
2483 | fi |
---|
2484 | fi |
---|
2485 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2486 | echo "${ECHO_T}yes" >&6 |
---|
2487 | |
---|
2488 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2489 | ac_clean_files=$ac_clean_files_save |
---|
2490 | # Check the compiler produces executables we can run. If not, either |
---|
2491 | # the compiler is broken, or we cross compile. |
---|
2492 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2493 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2494 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2495 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2496 | |
---|
2497 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2498 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2500 | (eval $ac_link) 2>&5 |
---|
2501 | ac_status=$? |
---|
2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2503 | (exit $ac_status); }; then |
---|
2504 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2505 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2506 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2507 | # `rm'. |
---|
2508 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2509 | test -f "$ac_file" || continue |
---|
2510 | case $ac_file in |
---|
2511 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2512 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2513 | export ac_cv_exeext |
---|
2514 | break;; |
---|
2515 | * ) break;; |
---|
2516 | esac |
---|
2517 | done |
---|
2518 | else |
---|
2519 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2520 | See \`config.log' for more details." >&5 |
---|
2521 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2522 | See \`config.log' for more details." >&2;} |
---|
2523 | { (exit 1); exit 1; }; } |
---|
2524 | fi |
---|
2525 | |
---|
2526 | rm -f conftest$ac_cv_exeext |
---|
2527 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2528 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2529 | |
---|
2530 | rm -f conftest.$ac_ext |
---|
2531 | EXEEXT=$ac_cv_exeext |
---|
2532 | ac_exeext=$EXEEXT |
---|
2533 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2534 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2535 | if test "${ac_cv_objext+set}" = set; then |
---|
2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2537 | else |
---|
2538 | cat >conftest.$ac_ext <<_ACEOF |
---|
2539 | /* confdefs.h. */ |
---|
2540 | _ACEOF |
---|
2541 | cat confdefs.h >>conftest.$ac_ext |
---|
2542 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2543 | /* end confdefs.h. */ |
---|
2544 | |
---|
2545 | int |
---|
2546 | main () |
---|
2547 | { |
---|
2548 | |
---|
2549 | ; |
---|
2550 | return 0; |
---|
2551 | } |
---|
2552 | _ACEOF |
---|
2553 | rm -f conftest.o conftest.obj |
---|
2554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2555 | (eval $ac_compile) 2>&5 |
---|
2556 | ac_status=$? |
---|
2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2558 | (exit $ac_status); }; then |
---|
2559 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2560 | case $ac_file in |
---|
2561 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2562 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2563 | break;; |
---|
2564 | esac |
---|
2565 | done |
---|
2566 | else |
---|
2567 | echo "$as_me: failed program was:" >&5 |
---|
2568 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2569 | |
---|
2570 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2571 | See \`config.log' for more details." >&5 |
---|
2572 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2573 | See \`config.log' for more details." >&2;} |
---|
2574 | { (exit 1); exit 1; }; } |
---|
2575 | fi |
---|
2576 | |
---|
2577 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2578 | fi |
---|
2579 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2580 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2581 | OBJEXT=$ac_cv_objext |
---|
2582 | ac_objext=$OBJEXT |
---|
2583 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2584 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2585 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2587 | else |
---|
2588 | cat >conftest.$ac_ext <<_ACEOF |
---|
2589 | /* confdefs.h. */ |
---|
2590 | _ACEOF |
---|
2591 | cat confdefs.h >>conftest.$ac_ext |
---|
2592 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2593 | /* end confdefs.h. */ |
---|
2594 | |
---|
2595 | int |
---|
2596 | main () |
---|
2597 | { |
---|
2598 | #ifndef __GNUC__ |
---|
2599 | choke me |
---|
2600 | #endif |
---|
2601 | |
---|
2602 | ; |
---|
2603 | return 0; |
---|
2604 | } |
---|
2605 | _ACEOF |
---|
2606 | rm -f conftest.$ac_objext |
---|
2607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2608 | (eval $ac_compile) 2>conftest.er1 |
---|
2609 | ac_status=$? |
---|
2610 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2611 | rm -f conftest.er1 |
---|
2612 | cat conftest.err >&5 |
---|
2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2614 | (exit $ac_status); } && |
---|
2615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2617 | (eval $ac_try) 2>&5 |
---|
2618 | ac_status=$? |
---|
2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2620 | (exit $ac_status); }; } && |
---|
2621 | { ac_try='test -s conftest.$ac_objext' |
---|
2622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2623 | (eval $ac_try) 2>&5 |
---|
2624 | ac_status=$? |
---|
2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2626 | (exit $ac_status); }; }; then |
---|
2627 | ac_compiler_gnu=yes |
---|
2628 | else |
---|
2629 | echo "$as_me: failed program was:" >&5 |
---|
2630 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2631 | |
---|
2632 | ac_compiler_gnu=no |
---|
2633 | fi |
---|
2634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2635 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2636 | |
---|
2637 | fi |
---|
2638 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2639 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2640 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2641 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2642 | ac_save_CFLAGS=$CFLAGS |
---|
2643 | CFLAGS="-g" |
---|
2644 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2645 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2646 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2648 | else |
---|
2649 | cat >conftest.$ac_ext <<_ACEOF |
---|
2650 | /* confdefs.h. */ |
---|
2651 | _ACEOF |
---|
2652 | cat confdefs.h >>conftest.$ac_ext |
---|
2653 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2654 | /* end confdefs.h. */ |
---|
2655 | |
---|
2656 | int |
---|
2657 | main () |
---|
2658 | { |
---|
2659 | |
---|
2660 | ; |
---|
2661 | return 0; |
---|
2662 | } |
---|
2663 | _ACEOF |
---|
2664 | rm -f conftest.$ac_objext |
---|
2665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2666 | (eval $ac_compile) 2>conftest.er1 |
---|
2667 | ac_status=$? |
---|
2668 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2669 | rm -f conftest.er1 |
---|
2670 | cat conftest.err >&5 |
---|
2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2672 | (exit $ac_status); } && |
---|
2673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2675 | (eval $ac_try) 2>&5 |
---|
2676 | ac_status=$? |
---|
2677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2678 | (exit $ac_status); }; } && |
---|
2679 | { ac_try='test -s conftest.$ac_objext' |
---|
2680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2681 | (eval $ac_try) 2>&5 |
---|
2682 | ac_status=$? |
---|
2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2684 | (exit $ac_status); }; }; then |
---|
2685 | ac_cv_prog_cc_g=yes |
---|
2686 | else |
---|
2687 | echo "$as_me: failed program was:" >&5 |
---|
2688 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2689 | |
---|
2690 | ac_cv_prog_cc_g=no |
---|
2691 | fi |
---|
2692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2693 | fi |
---|
2694 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2695 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2696 | if test "$ac_test_CFLAGS" = set; then |
---|
2697 | CFLAGS=$ac_save_CFLAGS |
---|
2698 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2699 | if test "$GCC" = yes; then |
---|
2700 | CFLAGS="-g -O2" |
---|
2701 | else |
---|
2702 | CFLAGS="-g" |
---|
2703 | fi |
---|
2704 | else |
---|
2705 | if test "$GCC" = yes; then |
---|
2706 | CFLAGS="-O2" |
---|
2707 | else |
---|
2708 | CFLAGS= |
---|
2709 | fi |
---|
2710 | fi |
---|
2711 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2712 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2713 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2715 | else |
---|
2716 | ac_cv_prog_cc_stdc=no |
---|
2717 | ac_save_CC=$CC |
---|
2718 | cat >conftest.$ac_ext <<_ACEOF |
---|
2719 | /* confdefs.h. */ |
---|
2720 | _ACEOF |
---|
2721 | cat confdefs.h >>conftest.$ac_ext |
---|
2722 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2723 | /* end confdefs.h. */ |
---|
2724 | #include <stdarg.h> |
---|
2725 | #include <stdio.h> |
---|
2726 | #include <sys/types.h> |
---|
2727 | #include <sys/stat.h> |
---|
2728 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2729 | struct buf { int x; }; |
---|
2730 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2731 | static char *e (p, i) |
---|
2732 | char **p; |
---|
2733 | int i; |
---|
2734 | { |
---|
2735 | return p[i]; |
---|
2736 | } |
---|
2737 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2738 | { |
---|
2739 | char *s; |
---|
2740 | va_list v; |
---|
2741 | va_start (v,p); |
---|
2742 | s = g (p, va_arg (v,int)); |
---|
2743 | va_end (v); |
---|
2744 | return s; |
---|
2745 | } |
---|
2746 | |
---|
2747 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2748 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2749 | These don't provoke an error unfortunately, instead are silently treated |
---|
2750 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2751 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2752 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2753 | that's true only with -std1. */ |
---|
2754 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2755 | |
---|
2756 | int test (int i, double x); |
---|
2757 | struct s1 {int (*f) (int a);}; |
---|
2758 | struct s2 {int (*f) (double a);}; |
---|
2759 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2760 | int argc; |
---|
2761 | char **argv; |
---|
2762 | int |
---|
2763 | main () |
---|
2764 | { |
---|
2765 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2766 | ; |
---|
2767 | return 0; |
---|
2768 | } |
---|
2769 | _ACEOF |
---|
2770 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2771 | # breaks some systems' header files. |
---|
2772 | # AIX -qlanglvl=ansi |
---|
2773 | # Ultrix and OSF/1 -std1 |
---|
2774 | # HP-UX 10.20 and later -Ae |
---|
2775 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2776 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2777 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2778 | do |
---|
2779 | CC="$ac_save_CC $ac_arg" |
---|
2780 | rm -f conftest.$ac_objext |
---|
2781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2782 | (eval $ac_compile) 2>conftest.er1 |
---|
2783 | ac_status=$? |
---|
2784 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2785 | rm -f conftest.er1 |
---|
2786 | cat conftest.err >&5 |
---|
2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2788 | (exit $ac_status); } && |
---|
2789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2791 | (eval $ac_try) 2>&5 |
---|
2792 | ac_status=$? |
---|
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2794 | (exit $ac_status); }; } && |
---|
2795 | { ac_try='test -s conftest.$ac_objext' |
---|
2796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2797 | (eval $ac_try) 2>&5 |
---|
2798 | ac_status=$? |
---|
2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2800 | (exit $ac_status); }; }; then |
---|
2801 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2802 | break |
---|
2803 | else |
---|
2804 | echo "$as_me: failed program was:" >&5 |
---|
2805 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2806 | |
---|
2807 | fi |
---|
2808 | rm -f conftest.err conftest.$ac_objext |
---|
2809 | done |
---|
2810 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2811 | CC=$ac_save_CC |
---|
2812 | |
---|
2813 | fi |
---|
2814 | |
---|
2815 | case "x$ac_cv_prog_cc_stdc" in |
---|
2816 | x|xno) |
---|
2817 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2818 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2819 | *) |
---|
2820 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2821 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2822 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2823 | esac |
---|
2824 | |
---|
2825 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2826 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2827 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2828 | # the declaration of exit, since it's the most demanding environment. |
---|
2829 | cat >conftest.$ac_ext <<_ACEOF |
---|
2830 | @%:@ifndef __cplusplus |
---|
2831 | choke me |
---|
2832 | @%:@endif |
---|
2833 | _ACEOF |
---|
2834 | rm -f conftest.$ac_objext |
---|
2835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2836 | (eval $ac_compile) 2>conftest.er1 |
---|
2837 | ac_status=$? |
---|
2838 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2839 | rm -f conftest.er1 |
---|
2840 | cat conftest.err >&5 |
---|
2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2842 | (exit $ac_status); } && |
---|
2843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2845 | (eval $ac_try) 2>&5 |
---|
2846 | ac_status=$? |
---|
2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2848 | (exit $ac_status); }; } && |
---|
2849 | { ac_try='test -s conftest.$ac_objext' |
---|
2850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2851 | (eval $ac_try) 2>&5 |
---|
2852 | ac_status=$? |
---|
2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2854 | (exit $ac_status); }; }; then |
---|
2855 | for ac_declaration in \ |
---|
2856 | '' \ |
---|
2857 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2858 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2859 | 'extern "C" void exit (int) throw ();' \ |
---|
2860 | 'extern "C" void exit (int);' \ |
---|
2861 | 'void exit (int);' |
---|
2862 | do |
---|
2863 | cat >conftest.$ac_ext <<_ACEOF |
---|
2864 | /* confdefs.h. */ |
---|
2865 | _ACEOF |
---|
2866 | cat confdefs.h >>conftest.$ac_ext |
---|
2867 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2868 | /* end confdefs.h. */ |
---|
2869 | $ac_declaration |
---|
2870 | @%:@include <stdlib.h> |
---|
2871 | int |
---|
2872 | main () |
---|
2873 | { |
---|
2874 | exit (42); |
---|
2875 | ; |
---|
2876 | return 0; |
---|
2877 | } |
---|
2878 | _ACEOF |
---|
2879 | rm -f conftest.$ac_objext |
---|
2880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2881 | (eval $ac_compile) 2>conftest.er1 |
---|
2882 | ac_status=$? |
---|
2883 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2884 | rm -f conftest.er1 |
---|
2885 | cat conftest.err >&5 |
---|
2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2887 | (exit $ac_status); } && |
---|
2888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2890 | (eval $ac_try) 2>&5 |
---|
2891 | ac_status=$? |
---|
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2893 | (exit $ac_status); }; } && |
---|
2894 | { ac_try='test -s conftest.$ac_objext' |
---|
2895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2896 | (eval $ac_try) 2>&5 |
---|
2897 | ac_status=$? |
---|
2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2899 | (exit $ac_status); }; }; then |
---|
2900 | : |
---|
2901 | else |
---|
2902 | echo "$as_me: failed program was:" >&5 |
---|
2903 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2904 | |
---|
2905 | continue |
---|
2906 | fi |
---|
2907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2908 | cat >conftest.$ac_ext <<_ACEOF |
---|
2909 | /* confdefs.h. */ |
---|
2910 | _ACEOF |
---|
2911 | cat confdefs.h >>conftest.$ac_ext |
---|
2912 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2913 | /* end confdefs.h. */ |
---|
2914 | $ac_declaration |
---|
2915 | int |
---|
2916 | main () |
---|
2917 | { |
---|
2918 | exit (42); |
---|
2919 | ; |
---|
2920 | return 0; |
---|
2921 | } |
---|
2922 | _ACEOF |
---|
2923 | rm -f conftest.$ac_objext |
---|
2924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2925 | (eval $ac_compile) 2>conftest.er1 |
---|
2926 | ac_status=$? |
---|
2927 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2928 | rm -f conftest.er1 |
---|
2929 | cat conftest.err >&5 |
---|
2930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2931 | (exit $ac_status); } && |
---|
2932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2934 | (eval $ac_try) 2>&5 |
---|
2935 | ac_status=$? |
---|
2936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2937 | (exit $ac_status); }; } && |
---|
2938 | { ac_try='test -s conftest.$ac_objext' |
---|
2939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2940 | (eval $ac_try) 2>&5 |
---|
2941 | ac_status=$? |
---|
2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2943 | (exit $ac_status); }; }; then |
---|
2944 | break |
---|
2945 | else |
---|
2946 | echo "$as_me: failed program was:" >&5 |
---|
2947 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2948 | |
---|
2949 | fi |
---|
2950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2951 | done |
---|
2952 | rm -f conftest* |
---|
2953 | if test -n "$ac_declaration"; then |
---|
2954 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2955 | echo $ac_declaration >>confdefs.h |
---|
2956 | echo '#endif' >>confdefs.h |
---|
2957 | fi |
---|
2958 | |
---|
2959 | else |
---|
2960 | echo "$as_me: failed program was:" >&5 |
---|
2961 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2962 | |
---|
2963 | fi |
---|
2964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2965 | ac_ext=c |
---|
2966 | ac_cpp='$CPP $CPPFLAGS' |
---|
2967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2970 | DEPDIR="${am__leading_dot}deps" |
---|
2971 | |
---|
2972 | ac_config_commands="$ac_config_commands depfiles" |
---|
2973 | |
---|
2974 | |
---|
2975 | am_make=${MAKE-make} |
---|
2976 | cat > confinc << 'END' |
---|
2977 | am__doit: |
---|
2978 | @echo done |
---|
2979 | .PHONY: am__doit |
---|
2980 | END |
---|
2981 | # If we don't find an include directive, just comment out the code. |
---|
2982 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2983 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2984 | am__include="#" |
---|
2985 | am__quote= |
---|
2986 | _am_result=none |
---|
2987 | # First try GNU make style include. |
---|
2988 | echo "include confinc" > confmf |
---|
2989 | # We grep out `Entering directory' and `Leaving directory' |
---|
2990 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2991 | # In particular we don't look at `^make:' because GNU make might |
---|
2992 | # be invoked under some other name (usually "gmake"), in which |
---|
2993 | # case it prints its new name instead of `make'. |
---|
2994 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2995 | am__include=include |
---|
2996 | am__quote= |
---|
2997 | _am_result=GNU |
---|
2998 | fi |
---|
2999 | # Now try BSD make style include. |
---|
3000 | if test "$am__include" = "#"; then |
---|
3001 | echo '.include "confinc"' > confmf |
---|
3002 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
3003 | am__include=.include |
---|
3004 | am__quote="\"" |
---|
3005 | _am_result=BSD |
---|
3006 | fi |
---|
3007 | fi |
---|
3008 | |
---|
3009 | |
---|
3010 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
3011 | echo "${ECHO_T}$_am_result" >&6 |
---|
3012 | rm -f confinc confmf |
---|
3013 | |
---|
3014 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
3015 | if test "${enable_dependency_tracking+set}" = set; then |
---|
3016 | enableval="$enable_dependency_tracking" |
---|
3017 | |
---|
3018 | fi; |
---|
3019 | if test "x$enable_dependency_tracking" != xno; then |
---|
3020 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3021 | AMDEPBACKSLASH='\' |
---|
3022 | fi |
---|
3023 | |
---|
3024 | |
---|
3025 | if test "x$enable_dependency_tracking" != xno; then |
---|
3026 | AMDEP_TRUE= |
---|
3027 | AMDEP_FALSE='#' |
---|
3028 | else |
---|
3029 | AMDEP_TRUE='#' |
---|
3030 | AMDEP_FALSE= |
---|
3031 | fi |
---|
3032 | |
---|
3033 | |
---|
3034 | |
---|
3035 | |
---|
3036 | depcc="$CC" am_compiler_list= |
---|
3037 | |
---|
3038 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3039 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3040 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3042 | else |
---|
3043 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3044 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3045 | # making bogus files that we don't know about and never remove. For |
---|
3046 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3047 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3048 | # in D'. |
---|
3049 | mkdir conftest.dir |
---|
3050 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3051 | # using a relative directory. |
---|
3052 | cp "$am_depcomp" conftest.dir |
---|
3053 | cd conftest.dir |
---|
3054 | # We will build objects and dependencies in a subdirectory because |
---|
3055 | # it helps to detect inapplicable dependency modes. For instance |
---|
3056 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3057 | # side effect of compilation, but ICC will put the dependencies in |
---|
3058 | # the current directory while Tru64 will put them in the object |
---|
3059 | # directory. |
---|
3060 | mkdir sub |
---|
3061 | |
---|
3062 | am_cv_CC_dependencies_compiler_type=none |
---|
3063 | if test "$am_compiler_list" = ""; then |
---|
3064 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3065 | fi |
---|
3066 | for depmode in $am_compiler_list; do |
---|
3067 | # Setup a source with many dependencies, because some compilers |
---|
3068 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3069 | # we should not choose a depcomp mode which is confused by this. |
---|
3070 | # |
---|
3071 | # We need to recreate these files for each test, as the compiler may |
---|
3072 | # overwrite some of them when testing with obscure command lines. |
---|
3073 | # This happens at least with the AIX C compiler. |
---|
3074 | : > sub/conftest.c |
---|
3075 | for i in 1 2 3 4 5 6; do |
---|
3076 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3077 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3078 | # Solaris 8's {/usr,}/bin/sh. |
---|
3079 | touch sub/conftst$i.h |
---|
3080 | done |
---|
3081 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3082 | |
---|
3083 | case $depmode in |
---|
3084 | nosideeffect) |
---|
3085 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3086 | # only be used when explicitly requested |
---|
3087 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3088 | continue |
---|
3089 | else |
---|
3090 | break |
---|
3091 | fi |
---|
3092 | ;; |
---|
3093 | none) break ;; |
---|
3094 | esac |
---|
3095 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3096 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3097 | # handle `-M -o', and we need to detect this. |
---|
3098 | if depmode=$depmode \ |
---|
3099 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3100 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3101 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3102 | >/dev/null 2>conftest.err && |
---|
3103 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3104 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3105 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3106 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3107 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3108 | # that says an option was ignored or not supported. |
---|
3109 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3110 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3111 | # The diagnosis changed in icc 8.0: |
---|
3112 | # icc: Command line remark: option '-MP' not supported |
---|
3113 | if (grep 'ignoring option' conftest.err || |
---|
3114 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3115 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3116 | break |
---|
3117 | fi |
---|
3118 | fi |
---|
3119 | done |
---|
3120 | |
---|
3121 | cd .. |
---|
3122 | rm -rf conftest.dir |
---|
3123 | else |
---|
3124 | am_cv_CC_dependencies_compiler_type=none |
---|
3125 | fi |
---|
3126 | |
---|
3127 | fi |
---|
3128 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3129 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3130 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3131 | |
---|
3132 | |
---|
3133 | |
---|
3134 | if |
---|
3135 | test "x$enable_dependency_tracking" != xno \ |
---|
3136 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3137 | am__fastdepCC_TRUE= |
---|
3138 | am__fastdepCC_FALSE='#' |
---|
3139 | else |
---|
3140 | am__fastdepCC_TRUE='#' |
---|
3141 | am__fastdepCC_FALSE= |
---|
3142 | fi |
---|
3143 | |
---|
3144 | |
---|
3145 | ac_ext=cc |
---|
3146 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3147 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3148 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3149 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3150 | if test -n "$ac_tool_prefix"; then |
---|
3151 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
3152 | do |
---|
3153 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3154 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3157 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
3158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3159 | else |
---|
3160 | if test -n "$CXX"; then |
---|
3161 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3162 | else |
---|
3163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3164 | for as_dir in $PATH |
---|
3165 | do |
---|
3166 | IFS=$as_save_IFS |
---|
3167 | test -z "$as_dir" && as_dir=. |
---|
3168 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3170 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3172 | break 2 |
---|
3173 | fi |
---|
3174 | done |
---|
3175 | done |
---|
3176 | |
---|
3177 | fi |
---|
3178 | fi |
---|
3179 | CXX=$ac_cv_prog_CXX |
---|
3180 | if test -n "$CXX"; then |
---|
3181 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
3182 | echo "${ECHO_T}$CXX" >&6 |
---|
3183 | else |
---|
3184 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3185 | echo "${ECHO_T}no" >&6 |
---|
3186 | fi |
---|
3187 | |
---|
3188 | test -n "$CXX" && break |
---|
3189 | done |
---|
3190 | fi |
---|
3191 | if test -z "$CXX"; then |
---|
3192 | ac_ct_CXX=$CXX |
---|
3193 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
3194 | do |
---|
3195 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3196 | set dummy $ac_prog; ac_word=$2 |
---|
3197 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3199 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
3200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3201 | else |
---|
3202 | if test -n "$ac_ct_CXX"; then |
---|
3203 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3204 | else |
---|
3205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3206 | for as_dir in $PATH |
---|
3207 | do |
---|
3208 | IFS=$as_save_IFS |
---|
3209 | test -z "$as_dir" && as_dir=. |
---|
3210 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3211 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3212 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3214 | break 2 |
---|
3215 | fi |
---|
3216 | done |
---|
3217 | done |
---|
3218 | |
---|
3219 | fi |
---|
3220 | fi |
---|
3221 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3222 | if test -n "$ac_ct_CXX"; then |
---|
3223 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
3224 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
3225 | else |
---|
3226 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3227 | echo "${ECHO_T}no" >&6 |
---|
3228 | fi |
---|
3229 | |
---|
3230 | test -n "$ac_ct_CXX" && break |
---|
3231 | done |
---|
3232 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
3233 | |
---|
3234 | CXX=$ac_ct_CXX |
---|
3235 | fi |
---|
3236 | |
---|
3237 | |
---|
3238 | # Provide some information about the compiler. |
---|
3239 | echo "$as_me:$LINENO:" \ |
---|
3240 | "checking for C++ compiler version" >&5 |
---|
3241 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3242 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3243 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3244 | ac_status=$? |
---|
3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3246 | (exit $ac_status); } |
---|
3247 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3248 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3249 | ac_status=$? |
---|
3250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3251 | (exit $ac_status); } |
---|
3252 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3253 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3254 | ac_status=$? |
---|
3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3256 | (exit $ac_status); } |
---|
3257 | |
---|
3258 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
3259 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
3260 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
3261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3262 | else |
---|
3263 | cat >conftest.$ac_ext <<_ACEOF |
---|
3264 | /* confdefs.h. */ |
---|
3265 | _ACEOF |
---|
3266 | cat confdefs.h >>conftest.$ac_ext |
---|
3267 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3268 | /* end confdefs.h. */ |
---|
3269 | |
---|
3270 | int |
---|
3271 | main () |
---|
3272 | { |
---|
3273 | #ifndef __GNUC__ |
---|
3274 | choke me |
---|
3275 | #endif |
---|
3276 | |
---|
3277 | ; |
---|
3278 | return 0; |
---|
3279 | } |
---|
3280 | _ACEOF |
---|
3281 | rm -f conftest.$ac_objext |
---|
3282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3283 | (eval $ac_compile) 2>conftest.er1 |
---|
3284 | ac_status=$? |
---|
3285 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3286 | rm -f conftest.er1 |
---|
3287 | cat conftest.err >&5 |
---|
3288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3289 | (exit $ac_status); } && |
---|
3290 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
3291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3292 | (eval $ac_try) 2>&5 |
---|
3293 | ac_status=$? |
---|
3294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3295 | (exit $ac_status); }; } && |
---|
3296 | { ac_try='test -s conftest.$ac_objext' |
---|
3297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3298 | (eval $ac_try) 2>&5 |
---|
3299 | ac_status=$? |
---|
3300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3301 | (exit $ac_status); }; }; then |
---|
3302 | ac_compiler_gnu=yes |
---|
3303 | else |
---|
3304 | echo "$as_me: failed program was:" >&5 |
---|
3305 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3306 | |
---|
3307 | ac_compiler_gnu=no |
---|
3308 | fi |
---|
3309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3310 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3311 | |
---|
3312 | fi |
---|
3313 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3314 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
3315 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
3316 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3317 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3318 | CXXFLAGS="-g" |
---|
3319 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
3320 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
3321 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
3322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3323 | else |
---|
3324 | cat >conftest.$ac_ext <<_ACEOF |
---|
3325 | /* confdefs.h. */ |
---|
3326 | _ACEOF |
---|
3327 | cat confdefs.h >>conftest.$ac_ext |
---|
3328 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3329 | /* end confdefs.h. */ |
---|
3330 | |
---|
3331 | int |
---|
3332 | main () |
---|
3333 | { |
---|
3334 | |
---|
3335 | ; |
---|
3336 | return 0; |
---|
3337 | } |
---|
3338 | _ACEOF |
---|
3339 | rm -f conftest.$ac_objext |
---|
3340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3341 | (eval $ac_compile) 2>conftest.er1 |
---|
3342 | ac_status=$? |
---|
3343 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3344 | rm -f conftest.er1 |
---|
3345 | cat conftest.err >&5 |
---|
3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3347 | (exit $ac_status); } && |
---|
3348 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
3349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3350 | (eval $ac_try) 2>&5 |
---|
3351 | ac_status=$? |
---|
3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3353 | (exit $ac_status); }; } && |
---|
3354 | { ac_try='test -s conftest.$ac_objext' |
---|
3355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3356 | (eval $ac_try) 2>&5 |
---|
3357 | ac_status=$? |
---|
3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3359 | (exit $ac_status); }; }; then |
---|
3360 | ac_cv_prog_cxx_g=yes |
---|
3361 | else |
---|
3362 | echo "$as_me: failed program was:" >&5 |
---|
3363 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3364 | |
---|
3365 | ac_cv_prog_cxx_g=no |
---|
3366 | fi |
---|
3367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3368 | fi |
---|
3369 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
3370 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
3371 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3372 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3373 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3374 | if test "$GXX" = yes; then |
---|
3375 | CXXFLAGS="-g -O2" |
---|
3376 | else |
---|
3377 | CXXFLAGS="-g" |
---|
3378 | fi |
---|
3379 | else |
---|
3380 | if test "$GXX" = yes; then |
---|
3381 | CXXFLAGS="-O2" |
---|
3382 | else |
---|
3383 | CXXFLAGS= |
---|
3384 | fi |
---|
3385 | fi |
---|
3386 | for ac_declaration in \ |
---|
3387 | '' \ |
---|
3388 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3389 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3390 | 'extern "C" void exit (int) throw ();' \ |
---|
3391 | 'extern "C" void exit (int);' \ |
---|
3392 | 'void exit (int);' |
---|
3393 | do |
---|
3394 | cat >conftest.$ac_ext <<_ACEOF |
---|
3395 | /* confdefs.h. */ |
---|
3396 | _ACEOF |
---|
3397 | cat confdefs.h >>conftest.$ac_ext |
---|
3398 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3399 | /* end confdefs.h. */ |
---|
3400 | $ac_declaration |
---|
3401 | @%:@include <stdlib.h> |
---|
3402 | int |
---|
3403 | main () |
---|
3404 | { |
---|
3405 | exit (42); |
---|
3406 | ; |
---|
3407 | return 0; |
---|
3408 | } |
---|
3409 | _ACEOF |
---|
3410 | rm -f conftest.$ac_objext |
---|
3411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3412 | (eval $ac_compile) 2>conftest.er1 |
---|
3413 | ac_status=$? |
---|
3414 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3415 | rm -f conftest.er1 |
---|
3416 | cat conftest.err >&5 |
---|
3417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3418 | (exit $ac_status); } && |
---|
3419 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
3420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3421 | (eval $ac_try) 2>&5 |
---|
3422 | ac_status=$? |
---|
3423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3424 | (exit $ac_status); }; } && |
---|
3425 | { ac_try='test -s conftest.$ac_objext' |
---|
3426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3427 | (eval $ac_try) 2>&5 |
---|
3428 | ac_status=$? |
---|
3429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3430 | (exit $ac_status); }; }; then |
---|
3431 | : |
---|
3432 | else |
---|
3433 | echo "$as_me: failed program was:" >&5 |
---|
3434 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3435 | |
---|
3436 | continue |
---|
3437 | fi |
---|
3438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3439 | cat >conftest.$ac_ext <<_ACEOF |
---|
3440 | /* confdefs.h. */ |
---|
3441 | _ACEOF |
---|
3442 | cat confdefs.h >>conftest.$ac_ext |
---|
3443 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3444 | /* end confdefs.h. */ |
---|
3445 | $ac_declaration |
---|
3446 | int |
---|
3447 | main () |
---|
3448 | { |
---|
3449 | exit (42); |
---|
3450 | ; |
---|
3451 | return 0; |
---|
3452 | } |
---|
3453 | _ACEOF |
---|
3454 | rm -f conftest.$ac_objext |
---|
3455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3456 | (eval $ac_compile) 2>conftest.er1 |
---|
3457 | ac_status=$? |
---|
3458 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3459 | rm -f conftest.er1 |
---|
3460 | cat conftest.err >&5 |
---|
3461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3462 | (exit $ac_status); } && |
---|
3463 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
3464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3465 | (eval $ac_try) 2>&5 |
---|
3466 | ac_status=$? |
---|
3467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3468 | (exit $ac_status); }; } && |
---|
3469 | { ac_try='test -s conftest.$ac_objext' |
---|
3470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3471 | (eval $ac_try) 2>&5 |
---|
3472 | ac_status=$? |
---|
3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3474 | (exit $ac_status); }; }; then |
---|
3475 | break |
---|
3476 | else |
---|
3477 | echo "$as_me: failed program was:" >&5 |
---|
3478 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3479 | |
---|
3480 | fi |
---|
3481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3482 | done |
---|
3483 | rm -f conftest* |
---|
3484 | if test -n "$ac_declaration"; then |
---|
3485 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3486 | echo $ac_declaration >>confdefs.h |
---|
3487 | echo '#endif' >>confdefs.h |
---|
3488 | fi |
---|
3489 | |
---|
3490 | ac_ext=c |
---|
3491 | ac_cpp='$CPP $CPPFLAGS' |
---|
3492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3495 | |
---|
3496 | depcc="$CXX" am_compiler_list= |
---|
3497 | |
---|
3498 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3499 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3500 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3502 | else |
---|
3503 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3504 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3505 | # making bogus files that we don't know about and never remove. For |
---|
3506 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3507 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3508 | # in D'. |
---|
3509 | mkdir conftest.dir |
---|
3510 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3511 | # using a relative directory. |
---|
3512 | cp "$am_depcomp" conftest.dir |
---|
3513 | cd conftest.dir |
---|
3514 | # We will build objects and dependencies in a subdirectory because |
---|
3515 | # it helps to detect inapplicable dependency modes. For instance |
---|
3516 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3517 | # side effect of compilation, but ICC will put the dependencies in |
---|
3518 | # the current directory while Tru64 will put them in the object |
---|
3519 | # directory. |
---|
3520 | mkdir sub |
---|
3521 | |
---|
3522 | am_cv_CXX_dependencies_compiler_type=none |
---|
3523 | if test "$am_compiler_list" = ""; then |
---|
3524 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3525 | fi |
---|
3526 | for depmode in $am_compiler_list; do |
---|
3527 | # Setup a source with many dependencies, because some compilers |
---|
3528 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3529 | # we should not choose a depcomp mode which is confused by this. |
---|
3530 | # |
---|
3531 | # We need to recreate these files for each test, as the compiler may |
---|
3532 | # overwrite some of them when testing with obscure command lines. |
---|
3533 | # This happens at least with the AIX C compiler. |
---|
3534 | : > sub/conftest.c |
---|
3535 | for i in 1 2 3 4 5 6; do |
---|
3536 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3537 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3538 | # Solaris 8's {/usr,}/bin/sh. |
---|
3539 | touch sub/conftst$i.h |
---|
3540 | done |
---|
3541 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3542 | |
---|
3543 | case $depmode in |
---|
3544 | nosideeffect) |
---|
3545 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3546 | # only be used when explicitly requested |
---|
3547 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3548 | continue |
---|
3549 | else |
---|
3550 | break |
---|
3551 | fi |
---|
3552 | ;; |
---|
3553 | none) break ;; |
---|
3554 | esac |
---|
3555 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3556 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3557 | # handle `-M -o', and we need to detect this. |
---|
3558 | if depmode=$depmode \ |
---|
3559 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3560 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3561 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3562 | >/dev/null 2>conftest.err && |
---|
3563 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3564 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3565 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3566 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3567 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3568 | # that says an option was ignored or not supported. |
---|
3569 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3570 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3571 | # The diagnosis changed in icc 8.0: |
---|
3572 | # icc: Command line remark: option '-MP' not supported |
---|
3573 | if (grep 'ignoring option' conftest.err || |
---|
3574 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3575 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
3576 | break |
---|
3577 | fi |
---|
3578 | fi |
---|
3579 | done |
---|
3580 | |
---|
3581 | cd .. |
---|
3582 | rm -rf conftest.dir |
---|
3583 | else |
---|
3584 | am_cv_CXX_dependencies_compiler_type=none |
---|
3585 | fi |
---|
3586 | |
---|
3587 | fi |
---|
3588 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
3589 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
3590 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
3591 | |
---|
3592 | |
---|
3593 | |
---|
3594 | if |
---|
3595 | test "x$enable_dependency_tracking" != xno \ |
---|
3596 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
3597 | am__fastdepCXX_TRUE= |
---|
3598 | am__fastdepCXX_FALSE='#' |
---|
3599 | else |
---|
3600 | am__fastdepCXX_TRUE='#' |
---|
3601 | am__fastdepCXX_FALSE= |
---|
3602 | fi |
---|
3603 | |
---|
3604 | |
---|
3605 | # Find a good install program. We prefer a C program (faster), |
---|
3606 | # so one script is as good as another. But avoid the broken or |
---|
3607 | # incompatible versions: |
---|
3608 | # SysV /etc/install, /usr/sbin/install |
---|
3609 | # SunOS /usr/etc/install |
---|
3610 | # IRIX /sbin/install |
---|
3611 | # AIX /bin/install |
---|
3612 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3613 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3614 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3615 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3616 | # OS/2's system install, which has a completely different semantic |
---|
3617 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3618 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3619 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
3620 | if test -z "$INSTALL"; then |
---|
3621 | if test "${ac_cv_path_install+set}" = set; then |
---|
3622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3623 | else |
---|
3624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3625 | for as_dir in $PATH |
---|
3626 | do |
---|
3627 | IFS=$as_save_IFS |
---|
3628 | test -z "$as_dir" && as_dir=. |
---|
3629 | # Account for people who put trailing slashes in PATH elements. |
---|
3630 | case $as_dir/ in |
---|
3631 | ./ | .// | /cC/* | \ |
---|
3632 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3633 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
3634 | /usr/ucb/* ) ;; |
---|
3635 | *) |
---|
3636 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3637 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3638 | # by default. |
---|
3639 | for ac_prog in ginstall scoinst install; do |
---|
3640 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3641 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
3642 | if test $ac_prog = install && |
---|
3643 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3644 | # AIX install. It has an incompatible calling convention. |
---|
3645 | : |
---|
3646 | elif test $ac_prog = install && |
---|
3647 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3648 | # program-specific install script used by HP pwplus--don't use. |
---|
3649 | : |
---|
3650 | else |
---|
3651 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3652 | break 3 |
---|
3653 | fi |
---|
3654 | fi |
---|
3655 | done |
---|
3656 | done |
---|
3657 | ;; |
---|
3658 | esac |
---|
3659 | done |
---|
3660 | |
---|
3661 | |
---|
3662 | fi |
---|
3663 | if test "${ac_cv_path_install+set}" = set; then |
---|
3664 | INSTALL=$ac_cv_path_install |
---|
3665 | else |
---|
3666 | # As a last resort, use the slow shell script. We don't cache a |
---|
3667 | # path for INSTALL within a source directory, because that will |
---|
3668 | # break other packages using the cache if that directory is |
---|
3669 | # removed, or if the path is relative. |
---|
3670 | INSTALL=$ac_install_sh |
---|
3671 | fi |
---|
3672 | fi |
---|
3673 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3674 | echo "${ECHO_T}$INSTALL" >&6 |
---|
3675 | |
---|
3676 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3677 | # It thinks the first close brace ends the variable substitution. |
---|
3678 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3679 | |
---|
3680 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3681 | |
---|
3682 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3683 | |
---|
3684 | |
---|
3685 | # Check whether --enable-shared or --disable-shared was given. |
---|
3686 | if test "${enable_shared+set}" = set; then |
---|
3687 | enableval="$enable_shared" |
---|
3688 | p=${PACKAGE-default} |
---|
3689 | case $enableval in |
---|
3690 | yes) enable_shared=yes ;; |
---|
3691 | no) enable_shared=no ;; |
---|
3692 | *) |
---|
3693 | enable_shared=no |
---|
3694 | # Look at the argument we got. We use all the common list separators. |
---|
3695 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3696 | for pkg in $enableval; do |
---|
3697 | IFS="$lt_save_ifs" |
---|
3698 | if test "X$pkg" = "X$p"; then |
---|
3699 | enable_shared=yes |
---|
3700 | fi |
---|
3701 | done |
---|
3702 | IFS="$lt_save_ifs" |
---|
3703 | ;; |
---|
3704 | esac |
---|
3705 | else |
---|
3706 | enable_shared=yes |
---|
3707 | fi; |
---|
3708 | |
---|
3709 | # Check whether --enable-static or --disable-static was given. |
---|
3710 | if test "${enable_static+set}" = set; then |
---|
3711 | enableval="$enable_static" |
---|
3712 | p=${PACKAGE-default} |
---|
3713 | case $enableval in |
---|
3714 | yes) enable_static=yes ;; |
---|
3715 | no) enable_static=no ;; |
---|
3716 | *) |
---|
3717 | enable_static=no |
---|
3718 | # Look at the argument we got. We use all the common list separators. |
---|
3719 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3720 | for pkg in $enableval; do |
---|
3721 | IFS="$lt_save_ifs" |
---|
3722 | if test "X$pkg" = "X$p"; then |
---|
3723 | enable_static=yes |
---|
3724 | fi |
---|
3725 | done |
---|
3726 | IFS="$lt_save_ifs" |
---|
3727 | ;; |
---|
3728 | esac |
---|
3729 | else |
---|
3730 | enable_static=yes |
---|
3731 | fi; |
---|
3732 | |
---|
3733 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
3734 | if test "${enable_fast_install+set}" = set; then |
---|
3735 | enableval="$enable_fast_install" |
---|
3736 | p=${PACKAGE-default} |
---|
3737 | case $enableval in |
---|
3738 | yes) enable_fast_install=yes ;; |
---|
3739 | no) enable_fast_install=no ;; |
---|
3740 | *) |
---|
3741 | enable_fast_install=no |
---|
3742 | # Look at the argument we got. We use all the common list separators. |
---|
3743 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3744 | for pkg in $enableval; do |
---|
3745 | IFS="$lt_save_ifs" |
---|
3746 | if test "X$pkg" = "X$p"; then |
---|
3747 | enable_fast_install=yes |
---|
3748 | fi |
---|
3749 | done |
---|
3750 | IFS="$lt_save_ifs" |
---|
3751 | ;; |
---|
3752 | esac |
---|
3753 | else |
---|
3754 | enable_fast_install=yes |
---|
3755 | fi; |
---|
3756 | |
---|
3757 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
3758 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
3759 | if test "${lt_cv_path_SED+set}" = set; then |
---|
3760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3761 | else |
---|
3762 | # Loop through the user's path and test for sed and gsed. |
---|
3763 | # Then use that list of sed's as ones to test for truncation. |
---|
3764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3765 | for as_dir in $PATH |
---|
3766 | do |
---|
3767 | IFS=$as_save_IFS |
---|
3768 | test -z "$as_dir" && as_dir=. |
---|
3769 | for lt_ac_prog in sed gsed; do |
---|
3770 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3771 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
3772 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
3773 | fi |
---|
3774 | done |
---|
3775 | done |
---|
3776 | done |
---|
3777 | lt_ac_max=0 |
---|
3778 | lt_ac_count=0 |
---|
3779 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
3780 | # along with /bin/sed that truncates output. |
---|
3781 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
3782 | test ! -f $lt_ac_sed && break |
---|
3783 | cat /dev/null > conftest.in |
---|
3784 | lt_ac_count=0 |
---|
3785 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
3786 | # Check for GNU sed and select it if it is found. |
---|
3787 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
3788 | lt_cv_path_SED=$lt_ac_sed |
---|
3789 | break |
---|
3790 | fi |
---|
3791 | while true; do |
---|
3792 | cat conftest.in conftest.in >conftest.tmp |
---|
3793 | mv conftest.tmp conftest.in |
---|
3794 | cp conftest.in conftest.nl |
---|
3795 | echo >>conftest.nl |
---|
3796 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
3797 | cmp -s conftest.out conftest.nl || break |
---|
3798 | # 10000 chars as input seems more than enough |
---|
3799 | test $lt_ac_count -gt 10 && break |
---|
3800 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
3801 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
3802 | lt_ac_max=$lt_ac_count |
---|
3803 | lt_cv_path_SED=$lt_ac_sed |
---|
3804 | fi |
---|
3805 | done |
---|
3806 | done |
---|
3807 | SED=$lt_cv_path_SED |
---|
3808 | |
---|
3809 | fi |
---|
3810 | |
---|
3811 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
3812 | echo "${ECHO_T}$SED" >&6 |
---|
3813 | |
---|
3814 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3815 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3816 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3818 | else |
---|
3819 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3820 | then ac_cv_prog_egrep='grep -E' |
---|
3821 | else ac_cv_prog_egrep='egrep' |
---|
3822 | fi |
---|
3823 | fi |
---|
3824 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3825 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3826 | EGREP=$ac_cv_prog_egrep |
---|
3827 | |
---|
3828 | |
---|
3829 | |
---|
3830 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
3831 | if test "${with_gnu_ld+set}" = set; then |
---|
3832 | withval="$with_gnu_ld" |
---|
3833 | test "$withval" = no || with_gnu_ld=yes |
---|
3834 | else |
---|
3835 | with_gnu_ld=no |
---|
3836 | fi; |
---|
3837 | ac_prog=ld |
---|
3838 | if test "$GCC" = yes; then |
---|
3839 | # Check if gcc -print-prog-name=ld gives a path. |
---|
3840 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
3841 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
3842 | case $host in |
---|
3843 | *-*-mingw*) |
---|
3844 | # gcc leaves a trailing carriage return which upsets mingw |
---|
3845 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
3846 | *) |
---|
3847 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
3848 | esac |
---|
3849 | case $ac_prog in |
---|
3850 | # Accept absolute paths. |
---|
3851 | [\\/]* | ?:[\\/]*) |
---|
3852 | re_direlt='/[^/][^/]*/\.\./' |
---|
3853 | # Canonicalize the pathname of ld |
---|
3854 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
3855 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
3856 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
3857 | done |
---|
3858 | test -z "$LD" && LD="$ac_prog" |
---|
3859 | ;; |
---|
3860 | "") |
---|
3861 | # If it fails, then pretend we aren't using GCC. |
---|
3862 | ac_prog=ld |
---|
3863 | ;; |
---|
3864 | *) |
---|
3865 | # If it is relative, then search for the first ld in PATH. |
---|
3866 | with_gnu_ld=unknown |
---|
3867 | ;; |
---|
3868 | esac |
---|
3869 | elif test "$with_gnu_ld" = yes; then |
---|
3870 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
3871 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
3872 | else |
---|
3873 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
3874 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
3875 | fi |
---|
3876 | if test "${lt_cv_path_LD+set}" = set; then |
---|
3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3878 | else |
---|
3879 | if test -z "$LD"; then |
---|
3880 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
3881 | for ac_dir in $PATH; do |
---|
3882 | IFS="$lt_save_ifs" |
---|
3883 | test -z "$ac_dir" && ac_dir=. |
---|
3884 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
3885 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
3886 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
3887 | # but apparently some GNU ld's only accept -v. |
---|
3888 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
3889 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
3890 | *GNU* | *'with BFD'*) |
---|
3891 | test "$with_gnu_ld" != no && break |
---|
3892 | ;; |
---|
3893 | *) |
---|
3894 | test "$with_gnu_ld" != yes && break |
---|
3895 | ;; |
---|
3896 | esac |
---|
3897 | fi |
---|
3898 | done |
---|
3899 | IFS="$lt_save_ifs" |
---|
3900 | else |
---|
3901 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
3902 | fi |
---|
3903 | fi |
---|
3904 | |
---|
3905 | LD="$lt_cv_path_LD" |
---|
3906 | if test -n "$LD"; then |
---|
3907 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
3908 | echo "${ECHO_T}$LD" >&6 |
---|
3909 | else |
---|
3910 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3911 | echo "${ECHO_T}no" >&6 |
---|
3912 | fi |
---|
3913 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
3914 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
3915 | { (exit 1); exit 1; }; } |
---|
3916 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
3917 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
3918 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3920 | else |
---|
3921 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
3922 | case `$LD -v 2>&1 </dev/null` in |
---|
3923 | *GNU* | *'with BFD'*) |
---|
3924 | lt_cv_prog_gnu_ld=yes |
---|
3925 | ;; |
---|
3926 | *) |
---|
3927 | lt_cv_prog_gnu_ld=no |
---|
3928 | ;; |
---|
3929 | esac |
---|
3930 | fi |
---|
3931 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
3932 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
3933 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
3934 | |
---|
3935 | |
---|
3936 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
3937 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
3938 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
3939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3940 | else |
---|
3941 | lt_cv_ld_reload_flag='-r' |
---|
3942 | fi |
---|
3943 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
3944 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
3945 | reload_flag=$lt_cv_ld_reload_flag |
---|
3946 | case $reload_flag in |
---|
3947 | "" | " "*) ;; |
---|
3948 | *) reload_flag=" $reload_flag" ;; |
---|
3949 | esac |
---|
3950 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
3951 | |
---|
3952 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
3953 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
3954 | if test "${lt_cv_path_NM+set}" = set; then |
---|
3955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3956 | else |
---|
3957 | if test -n "$NM"; then |
---|
3958 | # Let the user override the test. |
---|
3959 | lt_cv_path_NM="$NM" |
---|
3960 | else |
---|
3961 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
3962 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
3963 | IFS="$lt_save_ifs" |
---|
3964 | test -z "$ac_dir" && ac_dir=. |
---|
3965 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
---|
3966 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
3967 | # Check to see if the nm accepts a BSD-compat flag. |
---|
3968 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
3969 | # nm: unknown option "B" ignored |
---|
3970 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
3971 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
3972 | */dev/null* | *'Invalid file or object type'*) |
---|
3973 | lt_cv_path_NM="$tmp_nm -B" |
---|
3974 | break |
---|
3975 | ;; |
---|
3976 | *) |
---|
3977 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
3978 | */dev/null*) |
---|
3979 | lt_cv_path_NM="$tmp_nm -p" |
---|
3980 | break |
---|
3981 | ;; |
---|
3982 | *) |
---|
3983 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
3984 | continue # so that we can try to find one that supports BSD flags |
---|
3985 | ;; |
---|
3986 | esac |
---|
3987 | esac |
---|
3988 | fi |
---|
3989 | done |
---|
3990 | IFS="$lt_save_ifs" |
---|
3991 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
3992 | fi |
---|
3993 | fi |
---|
3994 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
3995 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
3996 | NM="$lt_cv_path_NM" |
---|
3997 | |
---|
3998 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
3999 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
4000 | LN_S=$as_ln_s |
---|
4001 | if test "$LN_S" = "ln -s"; then |
---|
4002 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4003 | echo "${ECHO_T}yes" >&6 |
---|
4004 | else |
---|
4005 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
4006 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
4007 | fi |
---|
4008 | |
---|
4009 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
4010 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
4011 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
4012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4013 | else |
---|
4014 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
4015 | lt_cv_file_magic_test_file= |
---|
4016 | lt_cv_deplibs_check_method='unknown' |
---|
4017 | # Need to set the preceding variable on all platforms that support |
---|
4018 | # interlibrary dependencies. |
---|
4019 | # 'none' -- dependencies not supported. |
---|
4020 | # `unknown' -- same as none, but documents that we really don't know. |
---|
4021 | # 'pass_all' -- all dependencies passed with no checks. |
---|
4022 | # 'test_compile' -- check by making test program. |
---|
4023 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
4024 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
4025 | # If you have `file' or equivalent on your system and you're not sure |
---|
4026 | # whether `pass_all' will *always* work, you probably want this one. |
---|
4027 | |
---|
4028 | case $host_os in |
---|
4029 | aix4* | aix5*) |
---|
4030 | lt_cv_deplibs_check_method=pass_all |
---|
4031 | ;; |
---|
4032 | |
---|
4033 | beos*) |
---|
4034 | lt_cv_deplibs_check_method=pass_all |
---|
4035 | ;; |
---|
4036 | |
---|
4037 | bsdi4*) |
---|
4038 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
4039 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
4040 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
4041 | ;; |
---|
4042 | |
---|
4043 | cygwin*) |
---|
4044 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
4045 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
4046 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
4047 | ;; |
---|
4048 | |
---|
4049 | mingw* | pw32*) |
---|
4050 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
4051 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
4052 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
4053 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
4054 | ;; |
---|
4055 | |
---|
4056 | darwin* | rhapsody*) |
---|
4057 | lt_cv_deplibs_check_method=pass_all |
---|
4058 | ;; |
---|
4059 | |
---|
4060 | freebsd* | kfreebsd*-gnu) |
---|
4061 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
4062 | case $host_cpu in |
---|
4063 | i*86 ) |
---|
4064 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
4065 | # Let's accept both of them until this is cleared up. |
---|
4066 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
---|
4067 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4068 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
4069 | ;; |
---|
4070 | esac |
---|
4071 | else |
---|
4072 | lt_cv_deplibs_check_method=pass_all |
---|
4073 | fi |
---|
4074 | ;; |
---|
4075 | |
---|
4076 | gnu*) |
---|
4077 | lt_cv_deplibs_check_method=pass_all |
---|
4078 | ;; |
---|
4079 | |
---|
4080 | hpux10.20* | hpux11*) |
---|
4081 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4082 | case "$host_cpu" in |
---|
4083 | ia64*) |
---|
4084 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
4085 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
4086 | ;; |
---|
4087 | hppa*64*) |
---|
4088 | 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]' |
---|
4089 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
4090 | ;; |
---|
4091 | *) |
---|
4092 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
4093 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
4094 | ;; |
---|
4095 | esac |
---|
4096 | ;; |
---|
4097 | |
---|
4098 | irix5* | irix6* | nonstopux*) |
---|
4099 | case $LD in |
---|
4100 | *-32|*"-32 ") libmagic=32-bit;; |
---|
4101 | *-n32|*"-n32 ") libmagic=N32;; |
---|
4102 | *-64|*"-64 ") libmagic=64-bit;; |
---|
4103 | *) libmagic=never-match;; |
---|
4104 | esac |
---|
4105 | lt_cv_deplibs_check_method=pass_all |
---|
4106 | ;; |
---|
4107 | |
---|
4108 | # This must be Linux ELF. |
---|
4109 | linux*) |
---|
4110 | lt_cv_deplibs_check_method=pass_all |
---|
4111 | ;; |
---|
4112 | |
---|
4113 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
4114 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
4115 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
4116 | else |
---|
4117 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
4118 | fi |
---|
4119 | ;; |
---|
4120 | |
---|
4121 | newos6*) |
---|
4122 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
4123 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4124 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
4125 | ;; |
---|
4126 | |
---|
4127 | nto-qnx*) |
---|
4128 | lt_cv_deplibs_check_method=unknown |
---|
4129 | ;; |
---|
4130 | |
---|
4131 | openbsd*) |
---|
4132 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4133 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
4134 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
4135 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
---|
4136 | else |
---|
4137 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
---|
4138 | fi |
---|
4139 | ;; |
---|
4140 | |
---|
4141 | osf3* | osf4* | osf5*) |
---|
4142 | lt_cv_deplibs_check_method=pass_all |
---|
4143 | ;; |
---|
4144 | |
---|
4145 | sco3.2v5*) |
---|
4146 | lt_cv_deplibs_check_method=pass_all |
---|
4147 | ;; |
---|
4148 | |
---|
4149 | solaris*) |
---|
4150 | lt_cv_deplibs_check_method=pass_all |
---|
4151 | ;; |
---|
4152 | |
---|
4153 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
4154 | case $host_vendor in |
---|
4155 | motorola) |
---|
4156 | 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]' |
---|
4157 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
4158 | ;; |
---|
4159 | ncr) |
---|
4160 | lt_cv_deplibs_check_method=pass_all |
---|
4161 | ;; |
---|
4162 | sequent) |
---|
4163 | lt_cv_file_magic_cmd='/bin/file' |
---|
4164 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
4165 | ;; |
---|
4166 | sni) |
---|
4167 | lt_cv_file_magic_cmd='/bin/file' |
---|
4168 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
4169 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
4170 | ;; |
---|
4171 | siemens) |
---|
4172 | lt_cv_deplibs_check_method=pass_all |
---|
4173 | ;; |
---|
4174 | esac |
---|
4175 | ;; |
---|
4176 | |
---|
4177 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
---|
4178 | lt_cv_deplibs_check_method=pass_all |
---|
4179 | ;; |
---|
4180 | esac |
---|
4181 | |
---|
4182 | fi |
---|
4183 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
4184 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
4185 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
4186 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
4187 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
4188 | |
---|
4189 | |
---|
4190 | |
---|
4191 | |
---|
4192 | # If no C compiler was specified, use CC. |
---|
4193 | LTCC=${LTCC-"$CC"} |
---|
4194 | |
---|
4195 | # Allow CC to be a program name with arguments. |
---|
4196 | compiler=$CC |
---|
4197 | |
---|
4198 | |
---|
4199 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
4200 | if test "${enable_libtool_lock+set}" = set; then |
---|
4201 | enableval="$enable_libtool_lock" |
---|
4202 | |
---|
4203 | fi; |
---|
4204 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
4205 | |
---|
4206 | # Some flags need to be propagated to the compiler or linker for good |
---|
4207 | # libtool support. |
---|
4208 | case $host in |
---|
4209 | ia64-*-hpux*) |
---|
4210 | # Find out which ABI we are using. |
---|
4211 | echo 'int i;' > conftest.$ac_ext |
---|
4212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4213 | (eval $ac_compile) 2>&5 |
---|
4214 | ac_status=$? |
---|
4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4216 | (exit $ac_status); }; then |
---|
4217 | case `/usr/bin/file conftest.$ac_objext` in |
---|
4218 | *ELF-32*) |
---|
4219 | HPUX_IA64_MODE="32" |
---|
4220 | ;; |
---|
4221 | *ELF-64*) |
---|
4222 | HPUX_IA64_MODE="64" |
---|
4223 | ;; |
---|
4224 | esac |
---|
4225 | fi |
---|
4226 | rm -rf conftest* |
---|
4227 | ;; |
---|
4228 | *-*-irix6*) |
---|
4229 | # Find out which ABI we are using. |
---|
4230 | echo '#line __oline__ "configure"' > conftest.$ac_ext |
---|
4231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4232 | (eval $ac_compile) 2>&5 |
---|
4233 | ac_status=$? |
---|
4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4235 | (exit $ac_status); }; then |
---|
4236 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
4237 | case `/usr/bin/file conftest.$ac_objext` in |
---|
4238 | *32-bit*) |
---|
4239 | LD="${LD-ld} -melf32bsmip" |
---|
4240 | ;; |
---|
4241 | *N32*) |
---|
4242 | LD="${LD-ld} -melf32bmipn32" |
---|
4243 | ;; |
---|
4244 | *64-bit*) |
---|
4245 | LD="${LD-ld} -melf64bmip" |
---|
4246 | ;; |
---|
4247 | esac |
---|
4248 | else |
---|
4249 | case `/usr/bin/file conftest.$ac_objext` in |
---|
4250 | *32-bit*) |
---|
4251 | LD="${LD-ld} -32" |
---|
4252 | ;; |
---|
4253 | *N32*) |
---|
4254 | LD="${LD-ld} -n32" |
---|
4255 | ;; |
---|
4256 | *64-bit*) |
---|
4257 | LD="${LD-ld} -64" |
---|
4258 | ;; |
---|
4259 | esac |
---|
4260 | fi |
---|
4261 | fi |
---|
4262 | rm -rf conftest* |
---|
4263 | ;; |
---|
4264 | |
---|
4265 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
4266 | # Find out which ABI we are using. |
---|
4267 | echo 'int i;' > conftest.$ac_ext |
---|
4268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4269 | (eval $ac_compile) 2>&5 |
---|
4270 | ac_status=$? |
---|
4271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4272 | (exit $ac_status); }; then |
---|
4273 | case "`/usr/bin/file conftest.o`" in |
---|
4274 | *32-bit*) |
---|
4275 | case $host in |
---|
4276 | x86_64-*linux*) |
---|
4277 | LD="${LD-ld} -m elf_i386" |
---|
4278 | ;; |
---|
4279 | ppc64-*linux*|powerpc64-*linux*) |
---|
4280 | LD="${LD-ld} -m elf32ppclinux" |
---|
4281 | ;; |
---|
4282 | s390x-*linux*) |
---|
4283 | LD="${LD-ld} -m elf_s390" |
---|
4284 | ;; |
---|
4285 | sparc64-*linux*) |
---|
4286 | LD="${LD-ld} -m elf32_sparc" |
---|
4287 | ;; |
---|
4288 | esac |
---|
4289 | ;; |
---|
4290 | *64-bit*) |
---|
4291 | case $host in |
---|
4292 | x86_64-*linux*) |
---|
4293 | LD="${LD-ld} -m elf_x86_64" |
---|
4294 | ;; |
---|
4295 | ppc*-*linux*|powerpc*-*linux*) |
---|
4296 | LD="${LD-ld} -m elf64ppc" |
---|
4297 | ;; |
---|
4298 | s390*-*linux*) |
---|
4299 | LD="${LD-ld} -m elf64_s390" |
---|
4300 | ;; |
---|
4301 | sparc*-*linux*) |
---|
4302 | LD="${LD-ld} -m elf64_sparc" |
---|
4303 | ;; |
---|
4304 | esac |
---|
4305 | ;; |
---|
4306 | esac |
---|
4307 | fi |
---|
4308 | rm -rf conftest* |
---|
4309 | ;; |
---|
4310 | |
---|
4311 | *-*-sco3.2v5*) |
---|
4312 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
4313 | SAVE_CFLAGS="$CFLAGS" |
---|
4314 | CFLAGS="$CFLAGS -belf" |
---|
4315 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
4316 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
4317 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
4318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4319 | else |
---|
4320 | ac_ext=c |
---|
4321 | ac_cpp='$CPP $CPPFLAGS' |
---|
4322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4325 | |
---|
4326 | cat >conftest.$ac_ext <<_ACEOF |
---|
4327 | /* confdefs.h. */ |
---|
4328 | _ACEOF |
---|
4329 | cat confdefs.h >>conftest.$ac_ext |
---|
4330 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4331 | /* end confdefs.h. */ |
---|
4332 | |
---|
4333 | int |
---|
4334 | main () |
---|
4335 | { |
---|
4336 | |
---|
4337 | ; |
---|
4338 | return 0; |
---|
4339 | } |
---|
4340 | _ACEOF |
---|
4341 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4343 | (eval $ac_link) 2>conftest.er1 |
---|
4344 | ac_status=$? |
---|
4345 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4346 | rm -f conftest.er1 |
---|
4347 | cat conftest.err >&5 |
---|
4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4349 | (exit $ac_status); } && |
---|
4350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4352 | (eval $ac_try) 2>&5 |
---|
4353 | ac_status=$? |
---|
4354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4355 | (exit $ac_status); }; } && |
---|
4356 | { ac_try='test -s conftest$ac_exeext' |
---|
4357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4358 | (eval $ac_try) 2>&5 |
---|
4359 | ac_status=$? |
---|
4360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4361 | (exit $ac_status); }; }; then |
---|
4362 | lt_cv_cc_needs_belf=yes |
---|
4363 | else |
---|
4364 | echo "$as_me: failed program was:" >&5 |
---|
4365 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4366 | |
---|
4367 | lt_cv_cc_needs_belf=no |
---|
4368 | fi |
---|
4369 | rm -f conftest.err conftest.$ac_objext \ |
---|
4370 | conftest$ac_exeext conftest.$ac_ext |
---|
4371 | ac_ext=c |
---|
4372 | ac_cpp='$CPP $CPPFLAGS' |
---|
4373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4376 | |
---|
4377 | fi |
---|
4378 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
4379 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
4380 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
4381 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
4382 | CFLAGS="$SAVE_CFLAGS" |
---|
4383 | fi |
---|
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" || test ! -s conftest.err' |
---|
4660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4661 | (eval $ac_try) 2>&5 |
---|
4662 | ac_status=$? |
---|
4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4664 | (exit $ac_status); }; } && |
---|
4665 | { ac_try='test -s conftest.$ac_objext' |
---|
4666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4667 | (eval $ac_try) 2>&5 |
---|
4668 | ac_status=$? |
---|
4669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4670 | (exit $ac_status); }; }; then |
---|
4671 | ac_cv_header_stdc=yes |
---|
4672 | else |
---|
4673 | echo "$as_me: failed program was:" >&5 |
---|
4674 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4675 | |
---|
4676 | ac_cv_header_stdc=no |
---|
4677 | fi |
---|
4678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4679 | |
---|
4680 | if test $ac_cv_header_stdc = yes; then |
---|
4681 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4682 | cat >conftest.$ac_ext <<_ACEOF |
---|
4683 | /* confdefs.h. */ |
---|
4684 | _ACEOF |
---|
4685 | cat confdefs.h >>conftest.$ac_ext |
---|
4686 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4687 | /* end confdefs.h. */ |
---|
4688 | #include <string.h> |
---|
4689 | |
---|
4690 | _ACEOF |
---|
4691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4692 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
4693 | : |
---|
4694 | else |
---|
4695 | ac_cv_header_stdc=no |
---|
4696 | fi |
---|
4697 | rm -f conftest* |
---|
4698 | |
---|
4699 | fi |
---|
4700 | |
---|
4701 | if test $ac_cv_header_stdc = yes; then |
---|
4702 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4703 | cat >conftest.$ac_ext <<_ACEOF |
---|
4704 | /* confdefs.h. */ |
---|
4705 | _ACEOF |
---|
4706 | cat confdefs.h >>conftest.$ac_ext |
---|
4707 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4708 | /* end confdefs.h. */ |
---|
4709 | #include <stdlib.h> |
---|
4710 | |
---|
4711 | _ACEOF |
---|
4712 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4713 | $EGREP "free" >/dev/null 2>&1; then |
---|
4714 | : |
---|
4715 | else |
---|
4716 | ac_cv_header_stdc=no |
---|
4717 | fi |
---|
4718 | rm -f conftest* |
---|
4719 | |
---|
4720 | fi |
---|
4721 | |
---|
4722 | if test $ac_cv_header_stdc = yes; then |
---|
4723 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4724 | if test "$cross_compiling" = yes; then |
---|
4725 | : |
---|
4726 | else |
---|
4727 | cat >conftest.$ac_ext <<_ACEOF |
---|
4728 | /* confdefs.h. */ |
---|
4729 | _ACEOF |
---|
4730 | cat confdefs.h >>conftest.$ac_ext |
---|
4731 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4732 | /* end confdefs.h. */ |
---|
4733 | #include <ctype.h> |
---|
4734 | #if ((' ' & 0x0FF) == 0x020) |
---|
4735 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4736 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4737 | #else |
---|
4738 | # define ISLOWER(c) \ |
---|
4739 | (('a' <= (c) && (c) <= 'i') \ |
---|
4740 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4741 | || ('s' <= (c) && (c) <= 'z')) |
---|
4742 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4743 | #endif |
---|
4744 | |
---|
4745 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4746 | int |
---|
4747 | main () |
---|
4748 | { |
---|
4749 | int i; |
---|
4750 | for (i = 0; i < 256; i++) |
---|
4751 | if (XOR (islower (i), ISLOWER (i)) |
---|
4752 | || toupper (i) != TOUPPER (i)) |
---|
4753 | exit(2); |
---|
4754 | exit (0); |
---|
4755 | } |
---|
4756 | _ACEOF |
---|
4757 | rm -f conftest$ac_exeext |
---|
4758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4759 | (eval $ac_link) 2>&5 |
---|
4760 | ac_status=$? |
---|
4761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4762 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4764 | (eval $ac_try) 2>&5 |
---|
4765 | ac_status=$? |
---|
4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4767 | (exit $ac_status); }; }; then |
---|
4768 | : |
---|
4769 | else |
---|
4770 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4771 | echo "$as_me: failed program was:" >&5 |
---|
4772 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4773 | |
---|
4774 | ( exit $ac_status ) |
---|
4775 | ac_cv_header_stdc=no |
---|
4776 | fi |
---|
4777 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4778 | fi |
---|
4779 | fi |
---|
4780 | fi |
---|
4781 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
4782 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
4783 | if test $ac_cv_header_stdc = yes; then |
---|
4784 | |
---|
4785 | cat >>confdefs.h <<\_ACEOF |
---|
4786 | @%:@define STDC_HEADERS 1 |
---|
4787 | _ACEOF |
---|
4788 | |
---|
4789 | fi |
---|
4790 | |
---|
4791 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4792 | |
---|
4793 | |
---|
4794 | |
---|
4795 | |
---|
4796 | |
---|
4797 | |
---|
4798 | |
---|
4799 | |
---|
4800 | |
---|
4801 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4802 | inttypes.h stdint.h unistd.h |
---|
4803 | do |
---|
4804 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4809 | else |
---|
4810 | cat >conftest.$ac_ext <<_ACEOF |
---|
4811 | /* confdefs.h. */ |
---|
4812 | _ACEOF |
---|
4813 | cat confdefs.h >>conftest.$ac_ext |
---|
4814 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4815 | /* end confdefs.h. */ |
---|
4816 | $ac_includes_default |
---|
4817 | |
---|
4818 | @%:@include <$ac_header> |
---|
4819 | _ACEOF |
---|
4820 | rm -f conftest.$ac_objext |
---|
4821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4822 | (eval $ac_compile) 2>conftest.er1 |
---|
4823 | ac_status=$? |
---|
4824 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4825 | rm -f conftest.er1 |
---|
4826 | cat conftest.err >&5 |
---|
4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4828 | (exit $ac_status); } && |
---|
4829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4831 | (eval $ac_try) 2>&5 |
---|
4832 | ac_status=$? |
---|
4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4834 | (exit $ac_status); }; } && |
---|
4835 | { ac_try='test -s conftest.$ac_objext' |
---|
4836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4837 | (eval $ac_try) 2>&5 |
---|
4838 | ac_status=$? |
---|
4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4840 | (exit $ac_status); }; }; then |
---|
4841 | eval "$as_ac_Header=yes" |
---|
4842 | else |
---|
4843 | echo "$as_me: failed program was:" >&5 |
---|
4844 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4845 | |
---|
4846 | eval "$as_ac_Header=no" |
---|
4847 | fi |
---|
4848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4849 | fi |
---|
4850 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4851 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4852 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4853 | cat >>confdefs.h <<_ACEOF |
---|
4854 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4855 | _ACEOF |
---|
4856 | |
---|
4857 | fi |
---|
4858 | |
---|
4859 | done |
---|
4860 | |
---|
4861 | |
---|
4862 | |
---|
4863 | for ac_header in dlfcn.h |
---|
4864 | do |
---|
4865 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4866 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4867 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4871 | fi |
---|
4872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4874 | else |
---|
4875 | # Is the header compilable? |
---|
4876 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4877 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4878 | cat >conftest.$ac_ext <<_ACEOF |
---|
4879 | /* confdefs.h. */ |
---|
4880 | _ACEOF |
---|
4881 | cat confdefs.h >>conftest.$ac_ext |
---|
4882 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4883 | /* end confdefs.h. */ |
---|
4884 | $ac_includes_default |
---|
4885 | @%:@include <$ac_header> |
---|
4886 | _ACEOF |
---|
4887 | rm -f conftest.$ac_objext |
---|
4888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4889 | (eval $ac_compile) 2>conftest.er1 |
---|
4890 | ac_status=$? |
---|
4891 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4892 | rm -f conftest.er1 |
---|
4893 | cat conftest.err >&5 |
---|
4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4895 | (exit $ac_status); } && |
---|
4896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4898 | (eval $ac_try) 2>&5 |
---|
4899 | ac_status=$? |
---|
4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4901 | (exit $ac_status); }; } && |
---|
4902 | { ac_try='test -s conftest.$ac_objext' |
---|
4903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4904 | (eval $ac_try) 2>&5 |
---|
4905 | ac_status=$? |
---|
4906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4907 | (exit $ac_status); }; }; then |
---|
4908 | ac_header_compiler=yes |
---|
4909 | else |
---|
4910 | echo "$as_me: failed program was:" >&5 |
---|
4911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4912 | |
---|
4913 | ac_header_compiler=no |
---|
4914 | fi |
---|
4915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4916 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4917 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4918 | |
---|
4919 | # Is the header present? |
---|
4920 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4921 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4922 | cat >conftest.$ac_ext <<_ACEOF |
---|
4923 | /* confdefs.h. */ |
---|
4924 | _ACEOF |
---|
4925 | cat confdefs.h >>conftest.$ac_ext |
---|
4926 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4927 | /* end confdefs.h. */ |
---|
4928 | @%:@include <$ac_header> |
---|
4929 | _ACEOF |
---|
4930 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4931 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4932 | ac_status=$? |
---|
4933 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4934 | rm -f conftest.er1 |
---|
4935 | cat conftest.err >&5 |
---|
4936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4937 | (exit $ac_status); } >/dev/null; then |
---|
4938 | if test -s conftest.err; then |
---|
4939 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4940 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4941 | else |
---|
4942 | ac_cpp_err= |
---|
4943 | fi |
---|
4944 | else |
---|
4945 | ac_cpp_err=yes |
---|
4946 | fi |
---|
4947 | if test -z "$ac_cpp_err"; then |
---|
4948 | ac_header_preproc=yes |
---|
4949 | else |
---|
4950 | echo "$as_me: failed program was:" >&5 |
---|
4951 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4952 | |
---|
4953 | ac_header_preproc=no |
---|
4954 | fi |
---|
4955 | rm -f conftest.err conftest.$ac_ext |
---|
4956 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4957 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4958 | |
---|
4959 | # So? What about this header? |
---|
4960 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4961 | yes:no: ) |
---|
4962 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4963 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4964 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4965 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4966 | ac_header_preproc=yes |
---|
4967 | ;; |
---|
4968 | no:yes:* ) |
---|
4969 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4970 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4971 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4972 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4973 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4974 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4975 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4976 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4977 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4978 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4979 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4980 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4981 | ( |
---|
4982 | cat <<\_ASBOX |
---|
4983 | @%:@@%:@ -------------------------------------- @%:@@%:@ |
---|
4984 | @%:@@%:@ Report this to the OGRE_REFAPP lists. @%:@@%:@ |
---|
4985 | @%:@@%:@ -------------------------------------- @%:@@%:@ |
---|
4986 | _ASBOX |
---|
4987 | ) | |
---|
4988 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4989 | ;; |
---|
4990 | esac |
---|
4991 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4995 | else |
---|
4996 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4997 | fi |
---|
4998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5000 | |
---|
5001 | fi |
---|
5002 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5003 | cat >>confdefs.h <<_ACEOF |
---|
5004 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5005 | _ACEOF |
---|
5006 | |
---|
5007 | fi |
---|
5008 | |
---|
5009 | done |
---|
5010 | |
---|
5011 | ac_ext=cc |
---|
5012 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5013 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5014 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5015 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5016 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
5017 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
5018 | if test -z "$CXXCPP"; then |
---|
5019 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
5020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5021 | else |
---|
5022 | # Double quotes because CXXCPP needs to be expanded |
---|
5023 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
5024 | do |
---|
5025 | ac_preproc_ok=false |
---|
5026 | for ac_cxx_preproc_warn_flag in '' yes |
---|
5027 | do |
---|
5028 | # Use a header file that comes with gcc, so configuring glibc |
---|
5029 | # with a fresh cross-compiler works. |
---|
5030 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5031 | # <limits.h> exists even on freestanding compilers. |
---|
5032 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5033 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5034 | cat >conftest.$ac_ext <<_ACEOF |
---|
5035 | /* confdefs.h. */ |
---|
5036 | _ACEOF |
---|
5037 | cat confdefs.h >>conftest.$ac_ext |
---|
5038 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5039 | /* end confdefs.h. */ |
---|
5040 | @%:@ifdef __STDC__ |
---|
5041 | @%:@ include <limits.h> |
---|
5042 | @%:@else |
---|
5043 | @%:@ include <assert.h> |
---|
5044 | @%:@endif |
---|
5045 | Syntax error |
---|
5046 | _ACEOF |
---|
5047 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5048 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5049 | ac_status=$? |
---|
5050 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5051 | rm -f conftest.er1 |
---|
5052 | cat conftest.err >&5 |
---|
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5054 | (exit $ac_status); } >/dev/null; then |
---|
5055 | if test -s conftest.err; then |
---|
5056 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5057 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5058 | else |
---|
5059 | ac_cpp_err= |
---|
5060 | fi |
---|
5061 | else |
---|
5062 | ac_cpp_err=yes |
---|
5063 | fi |
---|
5064 | if test -z "$ac_cpp_err"; then |
---|
5065 | : |
---|
5066 | else |
---|
5067 | echo "$as_me: failed program was:" >&5 |
---|
5068 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5069 | |
---|
5070 | # Broken: fails on valid input. |
---|
5071 | continue |
---|
5072 | fi |
---|
5073 | rm -f conftest.err conftest.$ac_ext |
---|
5074 | |
---|
5075 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5076 | # can be detected and how. |
---|
5077 | cat >conftest.$ac_ext <<_ACEOF |
---|
5078 | /* confdefs.h. */ |
---|
5079 | _ACEOF |
---|
5080 | cat confdefs.h >>conftest.$ac_ext |
---|
5081 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5082 | /* end confdefs.h. */ |
---|
5083 | @%:@include <ac_nonexistent.h> |
---|
5084 | _ACEOF |
---|
5085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5087 | ac_status=$? |
---|
5088 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5089 | rm -f conftest.er1 |
---|
5090 | cat conftest.err >&5 |
---|
5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5092 | (exit $ac_status); } >/dev/null; then |
---|
5093 | if test -s conftest.err; then |
---|
5094 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5095 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5096 | else |
---|
5097 | ac_cpp_err= |
---|
5098 | fi |
---|
5099 | else |
---|
5100 | ac_cpp_err=yes |
---|
5101 | fi |
---|
5102 | if test -z "$ac_cpp_err"; then |
---|
5103 | # Broken: success on invalid input. |
---|
5104 | continue |
---|
5105 | else |
---|
5106 | echo "$as_me: failed program was:" >&5 |
---|
5107 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5108 | |
---|
5109 | # Passes both tests. |
---|
5110 | ac_preproc_ok=: |
---|
5111 | break |
---|
5112 | fi |
---|
5113 | rm -f conftest.err conftest.$ac_ext |
---|
5114 | |
---|
5115 | done |
---|
5116 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5117 | rm -f conftest.err conftest.$ac_ext |
---|
5118 | if $ac_preproc_ok; then |
---|
5119 | break |
---|
5120 | fi |
---|
5121 | |
---|
5122 | done |
---|
5123 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
5124 | |
---|
5125 | fi |
---|
5126 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
5127 | else |
---|
5128 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
5129 | fi |
---|
5130 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
5131 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
5132 | ac_preproc_ok=false |
---|
5133 | for ac_cxx_preproc_warn_flag in '' yes |
---|
5134 | do |
---|
5135 | # Use a header file that comes with gcc, so configuring glibc |
---|
5136 | # with a fresh cross-compiler works. |
---|
5137 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5138 | # <limits.h> exists even on freestanding compilers. |
---|
5139 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5140 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5141 | cat >conftest.$ac_ext <<_ACEOF |
---|
5142 | /* confdefs.h. */ |
---|
5143 | _ACEOF |
---|
5144 | cat confdefs.h >>conftest.$ac_ext |
---|
5145 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5146 | /* end confdefs.h. */ |
---|
5147 | @%:@ifdef __STDC__ |
---|
5148 | @%:@ include <limits.h> |
---|
5149 | @%:@else |
---|
5150 | @%:@ include <assert.h> |
---|
5151 | @%:@endif |
---|
5152 | Syntax error |
---|
5153 | _ACEOF |
---|
5154 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5155 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5156 | ac_status=$? |
---|
5157 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5158 | rm -f conftest.er1 |
---|
5159 | cat conftest.err >&5 |
---|
5160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5161 | (exit $ac_status); } >/dev/null; then |
---|
5162 | if test -s conftest.err; then |
---|
5163 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5164 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5165 | else |
---|
5166 | ac_cpp_err= |
---|
5167 | fi |
---|
5168 | else |
---|
5169 | ac_cpp_err=yes |
---|
5170 | fi |
---|
5171 | if test -z "$ac_cpp_err"; then |
---|
5172 | : |
---|
5173 | else |
---|
5174 | echo "$as_me: failed program was:" >&5 |
---|
5175 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5176 | |
---|
5177 | # Broken: fails on valid input. |
---|
5178 | continue |
---|
5179 | fi |
---|
5180 | rm -f conftest.err conftest.$ac_ext |
---|
5181 | |
---|
5182 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5183 | # can be detected and how. |
---|
5184 | cat >conftest.$ac_ext <<_ACEOF |
---|
5185 | /* confdefs.h. */ |
---|
5186 | _ACEOF |
---|
5187 | cat confdefs.h >>conftest.$ac_ext |
---|
5188 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5189 | /* end confdefs.h. */ |
---|
5190 | @%:@include <ac_nonexistent.h> |
---|
5191 | _ACEOF |
---|
5192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5194 | ac_status=$? |
---|
5195 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5196 | rm -f conftest.er1 |
---|
5197 | cat conftest.err >&5 |
---|
5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5199 | (exit $ac_status); } >/dev/null; then |
---|
5200 | if test -s conftest.err; then |
---|
5201 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5202 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5203 | else |
---|
5204 | ac_cpp_err= |
---|
5205 | fi |
---|
5206 | else |
---|
5207 | ac_cpp_err=yes |
---|
5208 | fi |
---|
5209 | if test -z "$ac_cpp_err"; then |
---|
5210 | # Broken: success on invalid input. |
---|
5211 | continue |
---|
5212 | else |
---|
5213 | echo "$as_me: failed program was:" >&5 |
---|
5214 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5215 | |
---|
5216 | # Passes both tests. |
---|
5217 | ac_preproc_ok=: |
---|
5218 | break |
---|
5219 | fi |
---|
5220 | rm -f conftest.err conftest.$ac_ext |
---|
5221 | |
---|
5222 | done |
---|
5223 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5224 | rm -f conftest.err conftest.$ac_ext |
---|
5225 | if $ac_preproc_ok; then |
---|
5226 | : |
---|
5227 | else |
---|
5228 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
5229 | See \`config.log' for more details." >&5 |
---|
5230 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
5231 | See \`config.log' for more details." >&2;} |
---|
5232 | { (exit 1); exit 1; }; } |
---|
5233 | fi |
---|
5234 | |
---|
5235 | ac_ext=cc |
---|
5236 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5237 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5238 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5239 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5240 | |
---|
5241 | |
---|
5242 | ac_ext=f |
---|
5243 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5244 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5245 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5246 | if test -n "$ac_tool_prefix"; then |
---|
5247 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
5248 | do |
---|
5249 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
5250 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
5251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5253 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
5254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5255 | else |
---|
5256 | if test -n "$F77"; then |
---|
5257 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
5258 | else |
---|
5259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5260 | for as_dir in $PATH |
---|
5261 | do |
---|
5262 | IFS=$as_save_IFS |
---|
5263 | test -z "$as_dir" && as_dir=. |
---|
5264 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5265 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5266 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
5267 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5268 | break 2 |
---|
5269 | fi |
---|
5270 | done |
---|
5271 | done |
---|
5272 | |
---|
5273 | fi |
---|
5274 | fi |
---|
5275 | F77=$ac_cv_prog_F77 |
---|
5276 | if test -n "$F77"; then |
---|
5277 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
5278 | echo "${ECHO_T}$F77" >&6 |
---|
5279 | else |
---|
5280 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5281 | echo "${ECHO_T}no" >&6 |
---|
5282 | fi |
---|
5283 | |
---|
5284 | test -n "$F77" && break |
---|
5285 | done |
---|
5286 | fi |
---|
5287 | if test -z "$F77"; then |
---|
5288 | ac_ct_F77=$F77 |
---|
5289 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
5290 | do |
---|
5291 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5292 | set dummy $ac_prog; ac_word=$2 |
---|
5293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5295 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
5296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5297 | else |
---|
5298 | if test -n "$ac_ct_F77"; then |
---|
5299 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
5300 | else |
---|
5301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5302 | for as_dir in $PATH |
---|
5303 | do |
---|
5304 | IFS=$as_save_IFS |
---|
5305 | test -z "$as_dir" && as_dir=. |
---|
5306 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5308 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
5309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5310 | break 2 |
---|
5311 | fi |
---|
5312 | done |
---|
5313 | done |
---|
5314 | |
---|
5315 | fi |
---|
5316 | fi |
---|
5317 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
5318 | if test -n "$ac_ct_F77"; then |
---|
5319 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
5320 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
5321 | else |
---|
5322 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5323 | echo "${ECHO_T}no" >&6 |
---|
5324 | fi |
---|
5325 | |
---|
5326 | test -n "$ac_ct_F77" && break |
---|
5327 | done |
---|
5328 | |
---|
5329 | F77=$ac_ct_F77 |
---|
5330 | fi |
---|
5331 | |
---|
5332 | |
---|
5333 | # Provide some information about the compiler. |
---|
5334 | echo "$as_me:__oline__:" \ |
---|
5335 | "checking for Fortran 77 compiler version" >&5 |
---|
5336 | ac_compiler=`set X $ac_compile; echo $2` |
---|
5337 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
5338 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
5339 | ac_status=$? |
---|
5340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5341 | (exit $ac_status); } |
---|
5342 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
5343 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
5344 | ac_status=$? |
---|
5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5346 | (exit $ac_status); } |
---|
5347 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
5348 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
5349 | ac_status=$? |
---|
5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5351 | (exit $ac_status); } |
---|
5352 | rm -f a.out |
---|
5353 | |
---|
5354 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
5355 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
5356 | ac_save_ext=$ac_ext |
---|
5357 | ac_ext=F |
---|
5358 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
5359 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
5360 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
5361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5362 | else |
---|
5363 | cat >conftest.$ac_ext <<_ACEOF |
---|
5364 | program main |
---|
5365 | #ifndef __GNUC__ |
---|
5366 | choke me |
---|
5367 | #endif |
---|
5368 | |
---|
5369 | end |
---|
5370 | _ACEOF |
---|
5371 | rm -f conftest.$ac_objext |
---|
5372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5373 | (eval $ac_compile) 2>conftest.er1 |
---|
5374 | ac_status=$? |
---|
5375 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5376 | rm -f conftest.er1 |
---|
5377 | cat conftest.err >&5 |
---|
5378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5379 | (exit $ac_status); } && |
---|
5380 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
---|
5381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5382 | (eval $ac_try) 2>&5 |
---|
5383 | ac_status=$? |
---|
5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5385 | (exit $ac_status); }; } && |
---|
5386 | { ac_try='test -s conftest.$ac_objext' |
---|
5387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5388 | (eval $ac_try) 2>&5 |
---|
5389 | ac_status=$? |
---|
5390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5391 | (exit $ac_status); }; }; then |
---|
5392 | ac_compiler_gnu=yes |
---|
5393 | else |
---|
5394 | echo "$as_me: failed program was:" >&5 |
---|
5395 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5396 | |
---|
5397 | ac_compiler_gnu=no |
---|
5398 | fi |
---|
5399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5400 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
5401 | |
---|
5402 | fi |
---|
5403 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
5404 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
5405 | ac_ext=$ac_save_ext |
---|
5406 | ac_test_FFLAGS=${FFLAGS+set} |
---|
5407 | ac_save_FFLAGS=$FFLAGS |
---|
5408 | FFLAGS= |
---|
5409 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
5410 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
5411 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
5412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5413 | else |
---|
5414 | FFLAGS=-g |
---|
5415 | cat >conftest.$ac_ext <<_ACEOF |
---|
5416 | program main |
---|
5417 | |
---|
5418 | end |
---|
5419 | _ACEOF |
---|
5420 | rm -f conftest.$ac_objext |
---|
5421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5422 | (eval $ac_compile) 2>conftest.er1 |
---|
5423 | ac_status=$? |
---|
5424 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5425 | rm -f conftest.er1 |
---|
5426 | cat conftest.err >&5 |
---|
5427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5428 | (exit $ac_status); } && |
---|
5429 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
---|
5430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5431 | (eval $ac_try) 2>&5 |
---|
5432 | ac_status=$? |
---|
5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5434 | (exit $ac_status); }; } && |
---|
5435 | { ac_try='test -s conftest.$ac_objext' |
---|
5436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5437 | (eval $ac_try) 2>&5 |
---|
5438 | ac_status=$? |
---|
5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5440 | (exit $ac_status); }; }; then |
---|
5441 | ac_cv_prog_f77_g=yes |
---|
5442 | else |
---|
5443 | echo "$as_me: failed program was:" >&5 |
---|
5444 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5445 | |
---|
5446 | ac_cv_prog_f77_g=no |
---|
5447 | fi |
---|
5448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5449 | |
---|
5450 | fi |
---|
5451 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
5452 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
5453 | if test "$ac_test_FFLAGS" = set; then |
---|
5454 | FFLAGS=$ac_save_FFLAGS |
---|
5455 | elif test $ac_cv_prog_f77_g = yes; then |
---|
5456 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
5457 | FFLAGS="-g -O2" |
---|
5458 | else |
---|
5459 | FFLAGS="-g" |
---|
5460 | fi |
---|
5461 | else |
---|
5462 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
5463 | FFLAGS="-O2" |
---|
5464 | else |
---|
5465 | FFLAGS= |
---|
5466 | fi |
---|
5467 | fi |
---|
5468 | |
---|
5469 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
5470 | ac_ext=c |
---|
5471 | ac_cpp='$CPP $CPPFLAGS' |
---|
5472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5475 | |
---|
5476 | |
---|
5477 | |
---|
5478 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
5479 | |
---|
5480 | # find the maximum length of command line arguments |
---|
5481 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
5482 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
---|
5483 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
5484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5485 | else |
---|
5486 | i=0 |
---|
5487 | teststring="ABCD" |
---|
5488 | |
---|
5489 | case $build_os in |
---|
5490 | msdosdjgpp*) |
---|
5491 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
5492 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
5493 | # during glob expansion). Even if it were fixed, the result of this |
---|
5494 | # check would be larger than it should be. |
---|
5495 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
5496 | ;; |
---|
5497 | |
---|
5498 | gnu*) |
---|
5499 | # Under GNU Hurd, this test is not required because there is |
---|
5500 | # no limit to the length of command line arguments. |
---|
5501 | # Libtool will interpret -1 as no limit whatsoever |
---|
5502 | lt_cv_sys_max_cmd_len=-1; |
---|
5503 | ;; |
---|
5504 | |
---|
5505 | cygwin* | mingw*) |
---|
5506 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
5507 | # about 5 minutes as the teststring grows exponentially. |
---|
5508 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
5509 | # you end up with a "frozen" computer, even though with patience |
---|
5510 | # the test eventually succeeds (with a max line length of 256k). |
---|
5511 | # Instead, let's just punt: use the minimum linelength reported by |
---|
5512 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
5513 | lt_cv_sys_max_cmd_len=8192; |
---|
5514 | ;; |
---|
5515 | |
---|
5516 | amigaos*) |
---|
5517 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
5518 | # So we just punt and use a minimum line length of 8192. |
---|
5519 | lt_cv_sys_max_cmd_len=8192; |
---|
5520 | ;; |
---|
5521 | |
---|
5522 | *) |
---|
5523 | # If test is not a shell built-in, we'll probably end up computing a |
---|
5524 | # maximum length that is only half of the actual maximum length, but |
---|
5525 | # we can't tell. |
---|
5526 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
5527 | = "XX$teststring") >/dev/null 2>&1 && |
---|
5528 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
5529 | lt_cv_sys_max_cmd_len=$new_result && |
---|
5530 | test $i != 17 # 1/2 MB should be enough |
---|
5531 | do |
---|
5532 | i=`expr $i + 1` |
---|
5533 | teststring=$teststring$teststring |
---|
5534 | done |
---|
5535 | teststring= |
---|
5536 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
5537 | # amounts of additional arguments before passing them to the linker. |
---|
5538 | # It appears as though 1/2 is a usable value. |
---|
5539 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
5540 | ;; |
---|
5541 | esac |
---|
5542 | |
---|
5543 | fi |
---|
5544 | |
---|
5545 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
5546 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
5547 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
---|
5548 | else |
---|
5549 | echo "$as_me:$LINENO: result: none" >&5 |
---|
5550 | echo "${ECHO_T}none" >&6 |
---|
5551 | fi |
---|
5552 | |
---|
5553 | |
---|
5554 | |
---|
5555 | |
---|
5556 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
5557 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
5558 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
---|
5559 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
5560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5561 | else |
---|
5562 | |
---|
5563 | # These are sane defaults that work on at least a few old systems. |
---|
5564 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
5565 | |
---|
5566 | # Character class describing NM global symbol codes. |
---|
5567 | symcode='[BCDEGRST]' |
---|
5568 | |
---|
5569 | # Regexp to match symbols that can be accessed directly from C. |
---|
5570 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
5571 | |
---|
5572 | # Transform the above into a raw symbol and a C symbol. |
---|
5573 | symxfrm='\1 \2\3 \3' |
---|
5574 | |
---|
5575 | # Transform an extracted symbol line into a proper C declaration |
---|
5576 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
5577 | |
---|
5578 | # Transform an extracted symbol line into symbol name and symbol address |
---|
5579 | 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'" |
---|
5580 | |
---|
5581 | # Define system-specific variables. |
---|
5582 | case $host_os in |
---|
5583 | aix*) |
---|
5584 | symcode='[BCDT]' |
---|
5585 | ;; |
---|
5586 | cygwin* | mingw* | pw32*) |
---|
5587 | symcode='[ABCDGISTW]' |
---|
5588 | ;; |
---|
5589 | hpux*) # Its linker distinguishes data from code symbols |
---|
5590 | if test "$host_cpu" = ia64; then |
---|
5591 | symcode='[ABCDEGRST]' |
---|
5592 | fi |
---|
5593 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
5594 | 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'" |
---|
5595 | ;; |
---|
5596 | irix* | nonstopux*) |
---|
5597 | symcode='[BCDEGRST]' |
---|
5598 | ;; |
---|
5599 | osf*) |
---|
5600 | symcode='[BCDEGQRST]' |
---|
5601 | ;; |
---|
5602 | solaris* | sysv5*) |
---|
5603 | symcode='[BDRT]' |
---|
5604 | ;; |
---|
5605 | sysv4) |
---|
5606 | symcode='[DFNSTU]' |
---|
5607 | ;; |
---|
5608 | esac |
---|
5609 | |
---|
5610 | # Handle CRLF in mingw tool chain |
---|
5611 | opt_cr= |
---|
5612 | case $build_os in |
---|
5613 | mingw*) |
---|
5614 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
5615 | ;; |
---|
5616 | esac |
---|
5617 | |
---|
5618 | # If we're using GNU nm, then use its standard symbol codes. |
---|
5619 | case `$NM -V 2>&1` in |
---|
5620 | *GNU* | *'with BFD'*) |
---|
5621 | symcode='[ABCDGIRSTW]' ;; |
---|
5622 | esac |
---|
5623 | |
---|
5624 | # Try without a prefix undercore, then with it. |
---|
5625 | for ac_symprfx in "" "_"; do |
---|
5626 | |
---|
5627 | # Write the raw and C identifiers. |
---|
5628 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
---|
5629 | |
---|
5630 | # Check to see that the pipe works correctly. |
---|
5631 | pipe_works=no |
---|
5632 | |
---|
5633 | rm -f conftest* |
---|
5634 | cat > conftest.$ac_ext <<EOF |
---|
5635 | #ifdef __cplusplus |
---|
5636 | extern "C" { |
---|
5637 | #endif |
---|
5638 | char nm_test_var; |
---|
5639 | void nm_test_func(){} |
---|
5640 | #ifdef __cplusplus |
---|
5641 | } |
---|
5642 | #endif |
---|
5643 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
5644 | EOF |
---|
5645 | |
---|
5646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5647 | (eval $ac_compile) 2>&5 |
---|
5648 | ac_status=$? |
---|
5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5650 | (exit $ac_status); }; then |
---|
5651 | # Now try to grab the symbols. |
---|
5652 | nlist=conftest.nm |
---|
5653 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
5654 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
5655 | ac_status=$? |
---|
5656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5657 | (exit $ac_status); } && test -s "$nlist"; then |
---|
5658 | # Try sorting and uniquifying the output. |
---|
5659 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
5660 | mv -f "$nlist"T "$nlist" |
---|
5661 | else |
---|
5662 | rm -f "$nlist"T |
---|
5663 | fi |
---|
5664 | |
---|
5665 | # Make sure that we snagged all the symbols we need. |
---|
5666 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
5667 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
5668 | cat <<EOF > conftest.$ac_ext |
---|
5669 | #ifdef __cplusplus |
---|
5670 | extern "C" { |
---|
5671 | #endif |
---|
5672 | |
---|
5673 | EOF |
---|
5674 | # Now generate the symbol file. |
---|
5675 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
5676 | |
---|
5677 | cat <<EOF >> conftest.$ac_ext |
---|
5678 | #if defined (__STDC__) && __STDC__ |
---|
5679 | # define lt_ptr_t void * |
---|
5680 | #else |
---|
5681 | # define lt_ptr_t char * |
---|
5682 | # define const |
---|
5683 | #endif |
---|
5684 | |
---|
5685 | /* The mapping between symbol names and symbols. */ |
---|
5686 | const struct { |
---|
5687 | const char *name; |
---|
5688 | lt_ptr_t address; |
---|
5689 | } |
---|
5690 | lt_preloaded_symbols[] = |
---|
5691 | { |
---|
5692 | EOF |
---|
5693 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
5694 | cat <<\EOF >> conftest.$ac_ext |
---|
5695 | {0, (lt_ptr_t) 0} |
---|
5696 | }; |
---|
5697 | |
---|
5698 | #ifdef __cplusplus |
---|
5699 | } |
---|
5700 | #endif |
---|
5701 | EOF |
---|
5702 | # Now try linking the two files. |
---|
5703 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
5704 | lt_save_LIBS="$LIBS" |
---|
5705 | lt_save_CFLAGS="$CFLAGS" |
---|
5706 | LIBS="conftstm.$ac_objext" |
---|
5707 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
5708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5709 | (eval $ac_link) 2>&5 |
---|
5710 | ac_status=$? |
---|
5711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5712 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
5713 | pipe_works=yes |
---|
5714 | fi |
---|
5715 | LIBS="$lt_save_LIBS" |
---|
5716 | CFLAGS="$lt_save_CFLAGS" |
---|
5717 | else |
---|
5718 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
5719 | fi |
---|
5720 | else |
---|
5721 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
5722 | fi |
---|
5723 | else |
---|
5724 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
5725 | fi |
---|
5726 | else |
---|
5727 | echo "$progname: failed program was:" >&5 |
---|
5728 | cat conftest.$ac_ext >&5 |
---|
5729 | fi |
---|
5730 | rm -f conftest* conftst* |
---|
5731 | |
---|
5732 | # Do not use the global_symbol_pipe unless it works. |
---|
5733 | if test "$pipe_works" = yes; then |
---|
5734 | break |
---|
5735 | else |
---|
5736 | lt_cv_sys_global_symbol_pipe= |
---|
5737 | fi |
---|
5738 | done |
---|
5739 | |
---|
5740 | fi |
---|
5741 | |
---|
5742 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
5743 | lt_cv_sys_global_symbol_to_cdecl= |
---|
5744 | fi |
---|
5745 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
5746 | echo "$as_me:$LINENO: result: failed" >&5 |
---|
5747 | echo "${ECHO_T}failed" >&6 |
---|
5748 | else |
---|
5749 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
5750 | echo "${ECHO_T}ok" >&6 |
---|
5751 | fi |
---|
5752 | |
---|
5753 | echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
5754 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
5755 | if test "${lt_cv_objdir+set}" = set; then |
---|
5756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5757 | else |
---|
5758 | rm -f .libs 2>/dev/null |
---|
5759 | mkdir .libs 2>/dev/null |
---|
5760 | if test -d .libs; then |
---|
5761 | lt_cv_objdir=.libs |
---|
5762 | else |
---|
5763 | # MS-DOS does not allow filenames that begin with a dot. |
---|
5764 | lt_cv_objdir=_libs |
---|
5765 | fi |
---|
5766 | rmdir .libs 2>/dev/null |
---|
5767 | fi |
---|
5768 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
5769 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
---|
5770 | objdir=$lt_cv_objdir |
---|
5771 | |
---|
5772 | |
---|
5773 | |
---|
5774 | |
---|
5775 | |
---|
5776 | case $host_os in |
---|
5777 | aix3*) |
---|
5778 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
5779 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
5780 | # vanish in a puff of smoke. |
---|
5781 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
5782 | COLLECT_NAMES= |
---|
5783 | export COLLECT_NAMES |
---|
5784 | fi |
---|
5785 | ;; |
---|
5786 | esac |
---|
5787 | |
---|
5788 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
5789 | # metacharacters that are still active within double-quoted strings. |
---|
5790 | Xsed='sed -e s/^X//' |
---|
5791 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
5792 | |
---|
5793 | # Same as above, but do not quote variable references. |
---|
5794 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
5795 | |
---|
5796 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
5797 | # double_quote_subst'ed string. |
---|
5798 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
5799 | |
---|
5800 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
5801 | no_glob_subst='s/\*/\\\*/g' |
---|
5802 | |
---|
5803 | # Constants: |
---|
5804 | rm="rm -f" |
---|
5805 | |
---|
5806 | # Global variables: |
---|
5807 | default_ofile=libtool |
---|
5808 | can_build_shared=yes |
---|
5809 | |
---|
5810 | # All known linkers require a `.a' archive for static linking (except M$VC, |
---|
5811 | # which needs '.lib'). |
---|
5812 | libext=a |
---|
5813 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
5814 | ofile="$default_ofile" |
---|
5815 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
5816 | |
---|
5817 | if test -n "$ac_tool_prefix"; then |
---|
5818 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
5819 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
5820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5822 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
5823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5824 | else |
---|
5825 | if test -n "$AR"; then |
---|
5826 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
5827 | else |
---|
5828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5829 | for as_dir in $PATH |
---|
5830 | do |
---|
5831 | IFS=$as_save_IFS |
---|
5832 | test -z "$as_dir" && as_dir=. |
---|
5833 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5835 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
5836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5837 | break 2 |
---|
5838 | fi |
---|
5839 | done |
---|
5840 | done |
---|
5841 | |
---|
5842 | fi |
---|
5843 | fi |
---|
5844 | AR=$ac_cv_prog_AR |
---|
5845 | if test -n "$AR"; then |
---|
5846 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
5847 | echo "${ECHO_T}$AR" >&6 |
---|
5848 | else |
---|
5849 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5850 | echo "${ECHO_T}no" >&6 |
---|
5851 | fi |
---|
5852 | |
---|
5853 | fi |
---|
5854 | if test -z "$ac_cv_prog_AR"; then |
---|
5855 | ac_ct_AR=$AR |
---|
5856 | # Extract the first word of "ar", so it can be a program name with args. |
---|
5857 | set dummy ar; ac_word=$2 |
---|
5858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5860 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
5861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5862 | else |
---|
5863 | if test -n "$ac_ct_AR"; then |
---|
5864 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
5865 | else |
---|
5866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5867 | for as_dir in $PATH |
---|
5868 | do |
---|
5869 | IFS=$as_save_IFS |
---|
5870 | test -z "$as_dir" && as_dir=. |
---|
5871 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5873 | ac_cv_prog_ac_ct_AR="ar" |
---|
5874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5875 | break 2 |
---|
5876 | fi |
---|
5877 | done |
---|
5878 | done |
---|
5879 | |
---|
5880 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
---|
5881 | fi |
---|
5882 | fi |
---|
5883 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
5884 | if test -n "$ac_ct_AR"; then |
---|
5885 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
5886 | echo "${ECHO_T}$ac_ct_AR" >&6 |
---|
5887 | else |
---|
5888 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5889 | echo "${ECHO_T}no" >&6 |
---|
5890 | fi |
---|
5891 | |
---|
5892 | AR=$ac_ct_AR |
---|
5893 | else |
---|
5894 | AR="$ac_cv_prog_AR" |
---|
5895 | fi |
---|
5896 | |
---|
5897 | if test -n "$ac_tool_prefix"; then |
---|
5898 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
5899 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
5900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5902 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
5903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5904 | else |
---|
5905 | if test -n "$RANLIB"; then |
---|
5906 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
5907 | else |
---|
5908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5909 | for as_dir in $PATH |
---|
5910 | do |
---|
5911 | IFS=$as_save_IFS |
---|
5912 | test -z "$as_dir" && as_dir=. |
---|
5913 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5915 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
5916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5917 | break 2 |
---|
5918 | fi |
---|
5919 | done |
---|
5920 | done |
---|
5921 | |
---|
5922 | fi |
---|
5923 | fi |
---|
5924 | RANLIB=$ac_cv_prog_RANLIB |
---|
5925 | if test -n "$RANLIB"; then |
---|
5926 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
5927 | echo "${ECHO_T}$RANLIB" >&6 |
---|
5928 | else |
---|
5929 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5930 | echo "${ECHO_T}no" >&6 |
---|
5931 | fi |
---|
5932 | |
---|
5933 | fi |
---|
5934 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
5935 | ac_ct_RANLIB=$RANLIB |
---|
5936 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
5937 | set dummy ranlib; ac_word=$2 |
---|
5938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5940 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
5941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5942 | else |
---|
5943 | if test -n "$ac_ct_RANLIB"; then |
---|
5944 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
5945 | else |
---|
5946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5947 | for as_dir in $PATH |
---|
5948 | do |
---|
5949 | IFS=$as_save_IFS |
---|
5950 | test -z "$as_dir" && as_dir=. |
---|
5951 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5953 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
5954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5955 | break 2 |
---|
5956 | fi |
---|
5957 | done |
---|
5958 | done |
---|
5959 | |
---|
5960 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
5961 | fi |
---|
5962 | fi |
---|
5963 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
5964 | if test -n "$ac_ct_RANLIB"; then |
---|
5965 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
5966 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
5967 | else |
---|
5968 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5969 | echo "${ECHO_T}no" >&6 |
---|
5970 | fi |
---|
5971 | |
---|
5972 | RANLIB=$ac_ct_RANLIB |
---|
5973 | else |
---|
5974 | RANLIB="$ac_cv_prog_RANLIB" |
---|
5975 | fi |
---|
5976 | |
---|
5977 | if test -n "$ac_tool_prefix"; then |
---|
5978 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
5979 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
5980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5982 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
5983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5984 | else |
---|
5985 | if test -n "$STRIP"; then |
---|
5986 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
5987 | else |
---|
5988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5989 | for as_dir in $PATH |
---|
5990 | do |
---|
5991 | IFS=$as_save_IFS |
---|
5992 | test -z "$as_dir" && as_dir=. |
---|
5993 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5995 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
5996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5997 | break 2 |
---|
5998 | fi |
---|
5999 | done |
---|
6000 | done |
---|
6001 | |
---|
6002 | fi |
---|
6003 | fi |
---|
6004 | STRIP=$ac_cv_prog_STRIP |
---|
6005 | if test -n "$STRIP"; then |
---|
6006 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
6007 | echo "${ECHO_T}$STRIP" >&6 |
---|
6008 | else |
---|
6009 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6010 | echo "${ECHO_T}no" >&6 |
---|
6011 | fi |
---|
6012 | |
---|
6013 | fi |
---|
6014 | if test -z "$ac_cv_prog_STRIP"; then |
---|
6015 | ac_ct_STRIP=$STRIP |
---|
6016 | # Extract the first word of "strip", so it can be a program name with args. |
---|
6017 | set dummy strip; ac_word=$2 |
---|
6018 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6020 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
6021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6022 | else |
---|
6023 | if test -n "$ac_ct_STRIP"; then |
---|
6024 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
6025 | else |
---|
6026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6027 | for as_dir in $PATH |
---|
6028 | do |
---|
6029 | IFS=$as_save_IFS |
---|
6030 | test -z "$as_dir" && as_dir=. |
---|
6031 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6032 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6033 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
6034 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6035 | break 2 |
---|
6036 | fi |
---|
6037 | done |
---|
6038 | done |
---|
6039 | |
---|
6040 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
6041 | fi |
---|
6042 | fi |
---|
6043 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
6044 | if test -n "$ac_ct_STRIP"; then |
---|
6045 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
6046 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
6047 | else |
---|
6048 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6049 | echo "${ECHO_T}no" >&6 |
---|
6050 | fi |
---|
6051 | |
---|
6052 | STRIP=$ac_ct_STRIP |
---|
6053 | else |
---|
6054 | STRIP="$ac_cv_prog_STRIP" |
---|
6055 | fi |
---|
6056 | |
---|
6057 | |
---|
6058 | old_CC="$CC" |
---|
6059 | old_CFLAGS="$CFLAGS" |
---|
6060 | |
---|
6061 | # Set sane defaults for various variables |
---|
6062 | test -z "$AR" && AR=ar |
---|
6063 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
6064 | test -z "$AS" && AS=as |
---|
6065 | test -z "$CC" && CC=cc |
---|
6066 | test -z "$LTCC" && LTCC=$CC |
---|
6067 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
6068 | test -z "$LD" && LD=ld |
---|
6069 | test -z "$LN_S" && LN_S="ln -s" |
---|
6070 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
6071 | test -z "$NM" && NM=nm |
---|
6072 | test -z "$SED" && SED=sed |
---|
6073 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
6074 | test -z "$RANLIB" && RANLIB=: |
---|
6075 | test -z "$STRIP" && STRIP=: |
---|
6076 | test -z "$ac_objext" && ac_objext=o |
---|
6077 | |
---|
6078 | # Determine commands to create old-style static archives. |
---|
6079 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
6080 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
6081 | old_postuninstall_cmds= |
---|
6082 | |
---|
6083 | if test -n "$RANLIB"; then |
---|
6084 | case $host_os in |
---|
6085 | openbsd*) |
---|
6086 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
---|
6087 | ;; |
---|
6088 | *) |
---|
6089 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
---|
6090 | ;; |
---|
6091 | esac |
---|
6092 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
6093 | fi |
---|
6094 | |
---|
6095 | # Only perform the check for file, if the check method requires it |
---|
6096 | case $deplibs_check_method in |
---|
6097 | file_magic*) |
---|
6098 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
6099 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
6100 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
6101 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
6102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6103 | else |
---|
6104 | case $MAGIC_CMD in |
---|
6105 | [\\/*] | ?:[\\/]*) |
---|
6106 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
6107 | ;; |
---|
6108 | *) |
---|
6109 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
6110 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
6111 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
6112 | for ac_dir in $ac_dummy; do |
---|
6113 | IFS="$lt_save_ifs" |
---|
6114 | test -z "$ac_dir" && ac_dir=. |
---|
6115 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
6116 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
6117 | if test -n "$file_magic_test_file"; then |
---|
6118 | case $deplibs_check_method in |
---|
6119 | "file_magic "*) |
---|
6120 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
---|
6121 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
6122 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
6123 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
6124 | : |
---|
6125 | else |
---|
6126 | cat <<EOF 1>&2 |
---|
6127 | |
---|
6128 | *** Warning: the command libtool uses to detect shared libraries, |
---|
6129 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
6130 | *** The result is that libtool may fail to recognize shared libraries |
---|
6131 | *** as such. This will affect the creation of libtool libraries that |
---|
6132 | *** depend on shared libraries, but programs linked with such libtool |
---|
6133 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
6134 | *** may want to report the problem to your system manager and/or to |
---|
6135 | *** bug-libtool@gnu.org |
---|
6136 | |
---|
6137 | EOF |
---|
6138 | fi ;; |
---|
6139 | esac |
---|
6140 | fi |
---|
6141 | break |
---|
6142 | fi |
---|
6143 | done |
---|
6144 | IFS="$lt_save_ifs" |
---|
6145 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
6146 | ;; |
---|
6147 | esac |
---|
6148 | fi |
---|
6149 | |
---|
6150 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
6151 | if test -n "$MAGIC_CMD"; then |
---|
6152 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
6153 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
6154 | else |
---|
6155 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6156 | echo "${ECHO_T}no" >&6 |
---|
6157 | fi |
---|
6158 | |
---|
6159 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
6160 | if test -n "$ac_tool_prefix"; then |
---|
6161 | echo "$as_me:$LINENO: checking for file" >&5 |
---|
6162 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
6163 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
6164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6165 | else |
---|
6166 | case $MAGIC_CMD in |
---|
6167 | [\\/*] | ?:[\\/]*) |
---|
6168 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
6169 | ;; |
---|
6170 | *) |
---|
6171 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
6172 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
6173 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
6174 | for ac_dir in $ac_dummy; do |
---|
6175 | IFS="$lt_save_ifs" |
---|
6176 | test -z "$ac_dir" && ac_dir=. |
---|
6177 | if test -f $ac_dir/file; then |
---|
6178 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
6179 | if test -n "$file_magic_test_file"; then |
---|
6180 | case $deplibs_check_method in |
---|
6181 | "file_magic "*) |
---|
6182 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
---|
6183 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
6184 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
6185 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
6186 | : |
---|
6187 | else |
---|
6188 | cat <<EOF 1>&2 |
---|
6189 | |
---|
6190 | *** Warning: the command libtool uses to detect shared libraries, |
---|
6191 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
6192 | *** The result is that libtool may fail to recognize shared libraries |
---|
6193 | *** as such. This will affect the creation of libtool libraries that |
---|
6194 | *** depend on shared libraries, but programs linked with such libtool |
---|
6195 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
6196 | *** may want to report the problem to your system manager and/or to |
---|
6197 | *** bug-libtool@gnu.org |
---|
6198 | |
---|
6199 | EOF |
---|
6200 | fi ;; |
---|
6201 | esac |
---|
6202 | fi |
---|
6203 | break |
---|
6204 | fi |
---|
6205 | done |
---|
6206 | IFS="$lt_save_ifs" |
---|
6207 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
6208 | ;; |
---|
6209 | esac |
---|
6210 | fi |
---|
6211 | |
---|
6212 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
6213 | if test -n "$MAGIC_CMD"; then |
---|
6214 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
6215 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
6216 | else |
---|
6217 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6218 | echo "${ECHO_T}no" >&6 |
---|
6219 | fi |
---|
6220 | |
---|
6221 | else |
---|
6222 | MAGIC_CMD=: |
---|
6223 | fi |
---|
6224 | fi |
---|
6225 | |
---|
6226 | fi |
---|
6227 | ;; |
---|
6228 | esac |
---|
6229 | |
---|
6230 | enable_dlopen=no |
---|
6231 | enable_win32_dll=no |
---|
6232 | |
---|
6233 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
6234 | if test "${enable_libtool_lock+set}" = set; then |
---|
6235 | enableval="$enable_libtool_lock" |
---|
6236 | |
---|
6237 | fi; |
---|
6238 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
6239 | |
---|
6240 | |
---|
6241 | # Check whether --with-pic or --without-pic was given. |
---|
6242 | if test "${with_pic+set}" = set; then |
---|
6243 | withval="$with_pic" |
---|
6244 | pic_mode="$withval" |
---|
6245 | else |
---|
6246 | pic_mode=default |
---|
6247 | fi; |
---|
6248 | test -z "$pic_mode" && pic_mode=default |
---|
6249 | |
---|
6250 | # Use C for the default configuration in the libtool script |
---|
6251 | tagname= |
---|
6252 | lt_save_CC="$CC" |
---|
6253 | ac_ext=c |
---|
6254 | ac_cpp='$CPP $CPPFLAGS' |
---|
6255 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6256 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6257 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6258 | |
---|
6259 | |
---|
6260 | # Source file extension for C test sources. |
---|
6261 | ac_ext=c |
---|
6262 | |
---|
6263 | # Object file extension for compiled C test sources. |
---|
6264 | objext=o |
---|
6265 | objext=$objext |
---|
6266 | |
---|
6267 | # Code to be used in simple compile tests |
---|
6268 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
6269 | |
---|
6270 | # Code to be used in simple link tests |
---|
6271 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
6272 | |
---|
6273 | |
---|
6274 | # If no C compiler was specified, use CC. |
---|
6275 | LTCC=${LTCC-"$CC"} |
---|
6276 | |
---|
6277 | # Allow CC to be a program name with arguments. |
---|
6278 | compiler=$CC |
---|
6279 | |
---|
6280 | |
---|
6281 | # |
---|
6282 | # Check for any special shared library compilation flags. |
---|
6283 | # |
---|
6284 | lt_prog_cc_shlib= |
---|
6285 | if test "$GCC" = no; then |
---|
6286 | case $host_os in |
---|
6287 | sco3.2v5*) |
---|
6288 | lt_prog_cc_shlib='-belf' |
---|
6289 | ;; |
---|
6290 | esac |
---|
6291 | fi |
---|
6292 | if test -n "$lt_prog_cc_shlib"; then |
---|
6293 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
---|
6294 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
---|
6295 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
---|
6296 | else |
---|
6297 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
---|
6298 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
---|
6299 | lt_cv_prog_cc_can_build_shared=no |
---|
6300 | fi |
---|
6301 | fi |
---|
6302 | |
---|
6303 | |
---|
6304 | # |
---|
6305 | # Check to make sure the static flag actually works. |
---|
6306 | # |
---|
6307 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
---|
6308 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
---|
6309 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
6310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6311 | else |
---|
6312 | lt_prog_compiler_static_works=no |
---|
6313 | save_LDFLAGS="$LDFLAGS" |
---|
6314 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
---|
6315 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
6316 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
6317 | # The compiler can only warn and ignore the option if not recognized |
---|
6318 | # So say no if there are warnings |
---|
6319 | if test -s conftest.err; then |
---|
6320 | # Append any errors to the config.log. |
---|
6321 | cat conftest.err 1>&5 |
---|
6322 | else |
---|
6323 | lt_prog_compiler_static_works=yes |
---|
6324 | fi |
---|
6325 | fi |
---|
6326 | $rm conftest* |
---|
6327 | LDFLAGS="$save_LDFLAGS" |
---|
6328 | |
---|
6329 | fi |
---|
6330 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
6331 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
---|
6332 | |
---|
6333 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
6334 | : |
---|
6335 | else |
---|
6336 | lt_prog_compiler_static= |
---|
6337 | fi |
---|
6338 | |
---|
6339 | |
---|
6340 | |
---|
6341 | |
---|
6342 | lt_prog_compiler_no_builtin_flag= |
---|
6343 | |
---|
6344 | if test "$GCC" = yes; then |
---|
6345 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
6346 | |
---|
6347 | |
---|
6348 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
6349 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
6350 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
6351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6352 | else |
---|
6353 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
6354 | ac_outfile=conftest.$ac_objext |
---|
6355 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
6356 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
6357 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
6358 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
6359 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
6360 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
6361 | # The option is referenced via a variable to avoid confusing sed. |
---|
6362 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
6363 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
6364 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
6365 | -e 's:$: $lt_compiler_flag:'` |
---|
6366 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
6367 | (eval "$lt_compile" 2>conftest.err) |
---|
6368 | ac_status=$? |
---|
6369 | cat conftest.err >&5 |
---|
6370 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
6371 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
6372 | # The compiler can only warn and ignore the option if not recognized |
---|
6373 | # So say no if there are warnings |
---|
6374 | if test ! -s conftest.err; then |
---|
6375 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
6376 | fi |
---|
6377 | fi |
---|
6378 | $rm conftest* |
---|
6379 | |
---|
6380 | fi |
---|
6381 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
6382 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
6383 | |
---|
6384 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
6385 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
6386 | else |
---|
6387 | : |
---|
6388 | fi |
---|
6389 | |
---|
6390 | fi |
---|
6391 | |
---|
6392 | lt_prog_compiler_wl= |
---|
6393 | lt_prog_compiler_pic= |
---|
6394 | lt_prog_compiler_static= |
---|
6395 | |
---|
6396 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
6397 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
6398 | |
---|
6399 | if test "$GCC" = yes; then |
---|
6400 | lt_prog_compiler_wl='-Wl,' |
---|
6401 | lt_prog_compiler_static='-static' |
---|
6402 | |
---|
6403 | case $host_os in |
---|
6404 | aix*) |
---|
6405 | # All AIX code is PIC. |
---|
6406 | if test "$host_cpu" = ia64; then |
---|
6407 | # AIX 5 now supports IA64 processor |
---|
6408 | lt_prog_compiler_static='-Bstatic' |
---|
6409 | fi |
---|
6410 | ;; |
---|
6411 | |
---|
6412 | amigaos*) |
---|
6413 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
6414 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
6415 | # like `-m68040'. |
---|
6416 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
6417 | ;; |
---|
6418 | |
---|
6419 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
6420 | # PIC is the default for these OSes. |
---|
6421 | ;; |
---|
6422 | |
---|
6423 | mingw* | pw32* | os2*) |
---|
6424 | # This hack is so that the source file can tell whether it is being |
---|
6425 | # built for inclusion in a dll (and should export symbols for example). |
---|
6426 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
6427 | ;; |
---|
6428 | |
---|
6429 | darwin* | rhapsody*) |
---|
6430 | # PIC is the default on this platform |
---|
6431 | # Common symbols not allowed in MH_DYLIB files |
---|
6432 | lt_prog_compiler_pic='-fno-common' |
---|
6433 | ;; |
---|
6434 | |
---|
6435 | msdosdjgpp*) |
---|
6436 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
6437 | # on systems that don't support them. |
---|
6438 | lt_prog_compiler_can_build_shared=no |
---|
6439 | enable_shared=no |
---|
6440 | ;; |
---|
6441 | |
---|
6442 | sysv4*MP*) |
---|
6443 | if test -d /usr/nec; then |
---|
6444 | lt_prog_compiler_pic=-Kconform_pic |
---|
6445 | fi |
---|
6446 | ;; |
---|
6447 | |
---|
6448 | hpux*) |
---|
6449 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
6450 | # not for PA HP-UX. |
---|
6451 | case "$host_cpu" in |
---|
6452 | hppa*64*|ia64*) |
---|
6453 | # +Z the default |
---|
6454 | ;; |
---|
6455 | *) |
---|
6456 | lt_prog_compiler_pic='-fPIC' |
---|
6457 | ;; |
---|
6458 | esac |
---|
6459 | ;; |
---|
6460 | |
---|
6461 | *) |
---|
6462 | lt_prog_compiler_pic='-fPIC' |
---|
6463 | ;; |
---|
6464 | esac |
---|
6465 | else |
---|
6466 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
6467 | case $host_os in |
---|
6468 | aix*) |
---|
6469 | lt_prog_compiler_wl='-Wl,' |
---|
6470 | if test "$host_cpu" = ia64; then |
---|
6471 | # AIX 5 now supports IA64 processor |
---|
6472 | lt_prog_compiler_static='-Bstatic' |
---|
6473 | else |
---|
6474 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
6475 | fi |
---|
6476 | ;; |
---|
6477 | |
---|
6478 | mingw* | pw32* | os2*) |
---|
6479 | # This hack is so that the source file can tell whether it is being |
---|
6480 | # built for inclusion in a dll (and should export symbols for example). |
---|
6481 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
6482 | ;; |
---|
6483 | |
---|
6484 | hpux9* | hpux10* | hpux11*) |
---|
6485 | lt_prog_compiler_wl='-Wl,' |
---|
6486 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
6487 | # not for PA HP-UX. |
---|
6488 | case "$host_cpu" in |
---|
6489 | hppa*64*|ia64*) |
---|
6490 | # +Z the default |
---|
6491 | ;; |
---|
6492 | *) |
---|
6493 | lt_prog_compiler_pic='+Z' |
---|
6494 | ;; |
---|
6495 | esac |
---|
6496 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
6497 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
6498 | ;; |
---|
6499 | |
---|
6500 | irix5* | irix6* | nonstopux*) |
---|
6501 | lt_prog_compiler_wl='-Wl,' |
---|
6502 | # PIC (with -KPIC) is the default. |
---|
6503 | lt_prog_compiler_static='-non_shared' |
---|
6504 | ;; |
---|
6505 | |
---|
6506 | newsos6) |
---|
6507 | lt_prog_compiler_pic='-KPIC' |
---|
6508 | lt_prog_compiler_static='-Bstatic' |
---|
6509 | ;; |
---|
6510 | |
---|
6511 | linux*) |
---|
6512 | case $CC in |
---|
6513 | icc* | ecc*) |
---|
6514 | lt_prog_compiler_wl='-Wl,' |
---|
6515 | lt_prog_compiler_pic='-KPIC' |
---|
6516 | lt_prog_compiler_static='-static' |
---|
6517 | ;; |
---|
6518 | ccc*) |
---|
6519 | lt_prog_compiler_wl='-Wl,' |
---|
6520 | # All Alpha code is PIC. |
---|
6521 | lt_prog_compiler_static='-non_shared' |
---|
6522 | ;; |
---|
6523 | esac |
---|
6524 | ;; |
---|
6525 | |
---|
6526 | osf3* | osf4* | osf5*) |
---|
6527 | lt_prog_compiler_wl='-Wl,' |
---|
6528 | # All OSF/1 code is PIC. |
---|
6529 | lt_prog_compiler_static='-non_shared' |
---|
6530 | ;; |
---|
6531 | |
---|
6532 | sco3.2v5*) |
---|
6533 | lt_prog_compiler_pic='-Kpic' |
---|
6534 | lt_prog_compiler_static='-dn' |
---|
6535 | ;; |
---|
6536 | |
---|
6537 | solaris*) |
---|
6538 | lt_prog_compiler_wl='-Wl,' |
---|
6539 | lt_prog_compiler_pic='-KPIC' |
---|
6540 | lt_prog_compiler_static='-Bstatic' |
---|
6541 | ;; |
---|
6542 | |
---|
6543 | sunos4*) |
---|
6544 | lt_prog_compiler_wl='-Qoption ld ' |
---|
6545 | lt_prog_compiler_pic='-PIC' |
---|
6546 | lt_prog_compiler_static='-Bstatic' |
---|
6547 | ;; |
---|
6548 | |
---|
6549 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
6550 | lt_prog_compiler_wl='-Wl,' |
---|
6551 | lt_prog_compiler_pic='-KPIC' |
---|
6552 | lt_prog_compiler_static='-Bstatic' |
---|
6553 | ;; |
---|
6554 | |
---|
6555 | sysv4*MP*) |
---|
6556 | if test -d /usr/nec ;then |
---|
6557 | lt_prog_compiler_pic='-Kconform_pic' |
---|
6558 | lt_prog_compiler_static='-Bstatic' |
---|
6559 | fi |
---|
6560 | ;; |
---|
6561 | |
---|
6562 | uts4*) |
---|
6563 | lt_prog_compiler_pic='-pic' |
---|
6564 | lt_prog_compiler_static='-Bstatic' |
---|
6565 | ;; |
---|
6566 | |
---|
6567 | *) |
---|
6568 | lt_prog_compiler_can_build_shared=no |
---|
6569 | ;; |
---|
6570 | esac |
---|
6571 | fi |
---|
6572 | |
---|
6573 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
6574 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
6575 | |
---|
6576 | # |
---|
6577 | # Check to make sure the PIC flag actually works. |
---|
6578 | # |
---|
6579 | if test -n "$lt_prog_compiler_pic"; then |
---|
6580 | |
---|
6581 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
6582 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
6583 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
6584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6585 | else |
---|
6586 | lt_prog_compiler_pic_works=no |
---|
6587 | ac_outfile=conftest.$ac_objext |
---|
6588 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
6589 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
6590 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
6591 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
6592 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
6593 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
6594 | # The option is referenced via a variable to avoid confusing sed. |
---|
6595 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
6596 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
6597 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
6598 | -e 's:$: $lt_compiler_flag:'` |
---|
6599 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
6600 | (eval "$lt_compile" 2>conftest.err) |
---|
6601 | ac_status=$? |
---|
6602 | cat conftest.err >&5 |
---|
6603 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
6604 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
6605 | # The compiler can only warn and ignore the option if not recognized |
---|
6606 | # So say no if there are warnings |
---|
6607 | if test ! -s conftest.err; then |
---|
6608 | lt_prog_compiler_pic_works=yes |
---|
6609 | fi |
---|
6610 | fi |
---|
6611 | $rm conftest* |
---|
6612 | |
---|
6613 | fi |
---|
6614 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
6615 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
6616 | |
---|
6617 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
6618 | case $lt_prog_compiler_pic in |
---|
6619 | "" | " "*) ;; |
---|
6620 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
6621 | esac |
---|
6622 | else |
---|
6623 | lt_prog_compiler_pic= |
---|
6624 | lt_prog_compiler_can_build_shared=no |
---|
6625 | fi |
---|
6626 | |
---|
6627 | fi |
---|
6628 | case "$host_os" in |
---|
6629 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
6630 | *djgpp*) |
---|
6631 | lt_prog_compiler_pic= |
---|
6632 | ;; |
---|
6633 | *) |
---|
6634 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
6635 | ;; |
---|
6636 | esac |
---|
6637 | |
---|
6638 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
6639 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
6640 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
6641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6642 | else |
---|
6643 | lt_cv_prog_compiler_c_o=no |
---|
6644 | $rm -r conftest 2>/dev/null |
---|
6645 | mkdir conftest |
---|
6646 | cd conftest |
---|
6647 | mkdir out |
---|
6648 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
6649 | |
---|
6650 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
6651 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
6652 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
6653 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
6654 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
6655 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
6656 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
6657 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
6658 | -e 's:$: $lt_compiler_flag:'` |
---|
6659 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
6660 | (eval "$lt_compile" 2>out/conftest.err) |
---|
6661 | ac_status=$? |
---|
6662 | cat out/conftest.err >&5 |
---|
6663 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
6664 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
6665 | then |
---|
6666 | # The compiler can only warn and ignore the option if not recognized |
---|
6667 | # So say no if there are warnings |
---|
6668 | if test ! -s out/conftest.err; then |
---|
6669 | lt_cv_prog_compiler_c_o=yes |
---|
6670 | fi |
---|
6671 | fi |
---|
6672 | chmod u+w . |
---|
6673 | $rm conftest* |
---|
6674 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
6675 | # template instantiation |
---|
6676 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
6677 | $rm out/* && rmdir out |
---|
6678 | cd .. |
---|
6679 | rmdir conftest |
---|
6680 | $rm conftest* |
---|
6681 | |
---|
6682 | fi |
---|
6683 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
6684 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
6685 | |
---|
6686 | |
---|
6687 | hard_links="nottested" |
---|
6688 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
6689 | # do not overwrite the value of need_locks provided by the user |
---|
6690 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
6691 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
6692 | hard_links=yes |
---|
6693 | $rm conftest* |
---|
6694 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
6695 | touch conftest.a |
---|
6696 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
6697 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
6698 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
6699 | echo "${ECHO_T}$hard_links" >&6 |
---|
6700 | if test "$hard_links" = no; then |
---|
6701 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
6702 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
6703 | need_locks=warn |
---|
6704 | fi |
---|
6705 | else |
---|
6706 | need_locks=no |
---|
6707 | fi |
---|
6708 | |
---|
6709 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
6710 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
6711 | |
---|
6712 | runpath_var= |
---|
6713 | allow_undefined_flag= |
---|
6714 | enable_shared_with_static_runtimes=no |
---|
6715 | archive_cmds= |
---|
6716 | archive_expsym_cmds= |
---|
6717 | old_archive_From_new_cmds= |
---|
6718 | old_archive_from_expsyms_cmds= |
---|
6719 | export_dynamic_flag_spec= |
---|
6720 | whole_archive_flag_spec= |
---|
6721 | thread_safe_flag_spec= |
---|
6722 | hardcode_libdir_flag_spec= |
---|
6723 | hardcode_libdir_flag_spec_ld= |
---|
6724 | hardcode_libdir_separator= |
---|
6725 | hardcode_direct=no |
---|
6726 | hardcode_minus_L=no |
---|
6727 | hardcode_shlibpath_var=unsupported |
---|
6728 | link_all_deplibs=unknown |
---|
6729 | hardcode_automatic=no |
---|
6730 | module_cmds= |
---|
6731 | module_expsym_cmds= |
---|
6732 | always_export_symbols=no |
---|
6733 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
6734 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
6735 | # included in the symbol list |
---|
6736 | include_expsyms= |
---|
6737 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
6738 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
6739 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
6740 | # as well as any symbol that contains `d'. |
---|
6741 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
6742 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
6743 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
6744 | # the symbol is explicitly referenced. Since portable code cannot |
---|
6745 | # rely on this symbol name, it's probably fine to never include it in |
---|
6746 | # preloaded symbol tables. |
---|
6747 | extract_expsyms_cmds= |
---|
6748 | |
---|
6749 | case $host_os in |
---|
6750 | cygwin* | mingw* | pw32*) |
---|
6751 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
6752 | # When not using gcc, we currently assume that we are using |
---|
6753 | # Microsoft Visual C++. |
---|
6754 | if test "$GCC" != yes; then |
---|
6755 | with_gnu_ld=no |
---|
6756 | fi |
---|
6757 | ;; |
---|
6758 | openbsd*) |
---|
6759 | with_gnu_ld=no |
---|
6760 | ;; |
---|
6761 | esac |
---|
6762 | |
---|
6763 | ld_shlibs=yes |
---|
6764 | if test "$with_gnu_ld" = yes; then |
---|
6765 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
6766 | wlarc='${wl}' |
---|
6767 | |
---|
6768 | # See if GNU ld supports shared libraries. |
---|
6769 | case $host_os in |
---|
6770 | aix3* | aix4* | aix5*) |
---|
6771 | # On AIX/PPC, the GNU linker is very broken |
---|
6772 | if test "$host_cpu" != ia64; then |
---|
6773 | ld_shlibs=no |
---|
6774 | cat <<EOF 1>&2 |
---|
6775 | |
---|
6776 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
6777 | *** to be unable to reliably create shared libraries on AIX. |
---|
6778 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
6779 | *** really care for shared libraries, you may want to modify your PATH |
---|
6780 | *** so that a non-GNU linker is found, and then restart. |
---|
6781 | |
---|
6782 | EOF |
---|
6783 | fi |
---|
6784 | ;; |
---|
6785 | |
---|
6786 | amigaos*) |
---|
6787 | 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)' |
---|
6788 | hardcode_libdir_flag_spec='-L$libdir' |
---|
6789 | hardcode_minus_L=yes |
---|
6790 | |
---|
6791 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
6792 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
6793 | # to version 4, is to share data among multiple programs linked |
---|
6794 | # with the same dynamic library. Since this doesn't match the |
---|
6795 | # behavior of shared libraries on other platforms, we can't use |
---|
6796 | # them. |
---|
6797 | ld_shlibs=no |
---|
6798 | ;; |
---|
6799 | |
---|
6800 | beos*) |
---|
6801 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6802 | allow_undefined_flag=unsupported |
---|
6803 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
6804 | # support --undefined. This deserves some investigation. FIXME |
---|
6805 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6806 | else |
---|
6807 | ld_shlibs=no |
---|
6808 | fi |
---|
6809 | ;; |
---|
6810 | |
---|
6811 | cygwin* | mingw* | pw32*) |
---|
6812 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
6813 | # as there is no search path for DLLs. |
---|
6814 | hardcode_libdir_flag_spec='-L$libdir' |
---|
6815 | allow_undefined_flag=unsupported |
---|
6816 | always_export_symbols=no |
---|
6817 | enable_shared_with_static_runtimes=yes |
---|
6818 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
6819 | |
---|
6820 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
6821 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
6822 | # If the export-symbols file already is a .def file (1st line |
---|
6823 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
6824 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
6825 | cp $export_symbols $output_objdir/$soname.def; |
---|
6826 | else |
---|
6827 | echo EXPORTS > $output_objdir/$soname.def; |
---|
6828 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
6829 | fi~ |
---|
6830 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
6831 | else |
---|
6832 | ld_shlibs=no |
---|
6833 | fi |
---|
6834 | ;; |
---|
6835 | |
---|
6836 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
6837 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
6838 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
6839 | wlarc= |
---|
6840 | else |
---|
6841 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6842 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
6843 | fi |
---|
6844 | ;; |
---|
6845 | |
---|
6846 | solaris* | sysv5*) |
---|
6847 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
6848 | ld_shlibs=no |
---|
6849 | cat <<EOF 1>&2 |
---|
6850 | |
---|
6851 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
6852 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
6853 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
6854 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
6855 | *** your PATH or compiler configuration so that the native linker is |
---|
6856 | *** used, and then restart. |
---|
6857 | |
---|
6858 | EOF |
---|
6859 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6860 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6861 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
6862 | else |
---|
6863 | ld_shlibs=no |
---|
6864 | fi |
---|
6865 | ;; |
---|
6866 | |
---|
6867 | sunos4*) |
---|
6868 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
6869 | wlarc= |
---|
6870 | hardcode_direct=yes |
---|
6871 | hardcode_shlibpath_var=no |
---|
6872 | ;; |
---|
6873 | |
---|
6874 | linux*) |
---|
6875 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6876 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6877 | archive_cmds="$tmp_archive_cmds" |
---|
6878 | supports_anon_versioning=no |
---|
6879 | case `$LD -v 2>/dev/null` in |
---|
6880 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
6881 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
6882 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
6883 | *\ 2.11.*) ;; # other 2.11 versions |
---|
6884 | *) supports_anon_versioning=yes ;; |
---|
6885 | esac |
---|
6886 | if test $supports_anon_versioning = yes; then |
---|
6887 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
6888 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
6889 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
6890 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
6891 | else |
---|
6892 | archive_expsym_cmds="$tmp_archive_cmds" |
---|
6893 | fi |
---|
6894 | link_all_deplibs=no |
---|
6895 | else |
---|
6896 | ld_shlibs=no |
---|
6897 | fi |
---|
6898 | ;; |
---|
6899 | |
---|
6900 | *) |
---|
6901 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6902 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6903 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
6904 | else |
---|
6905 | ld_shlibs=no |
---|
6906 | fi |
---|
6907 | ;; |
---|
6908 | esac |
---|
6909 | |
---|
6910 | if test "$ld_shlibs" = yes; then |
---|
6911 | runpath_var=LD_RUN_PATH |
---|
6912 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
6913 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
6914 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
6915 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
6916 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
6917 | else |
---|
6918 | whole_archive_flag_spec= |
---|
6919 | fi |
---|
6920 | fi |
---|
6921 | else |
---|
6922 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
6923 | case $host_os in |
---|
6924 | aix3*) |
---|
6925 | allow_undefined_flag=unsupported |
---|
6926 | always_export_symbols=yes |
---|
6927 | 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' |
---|
6928 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
6929 | # are no directories specified by -L. |
---|
6930 | hardcode_minus_L=yes |
---|
6931 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
6932 | # Neither direct hardcoding nor static linking is supported with a |
---|
6933 | # broken collect2. |
---|
6934 | hardcode_direct=unsupported |
---|
6935 | fi |
---|
6936 | ;; |
---|
6937 | |
---|
6938 | aix4* | aix5*) |
---|
6939 | if test "$host_cpu" = ia64; then |
---|
6940 | # On IA64, the linker does run time linking by default, so we don't |
---|
6941 | # have to do anything special. |
---|
6942 | aix_use_runtimelinking=no |
---|
6943 | exp_sym_flag='-Bexport' |
---|
6944 | no_entry_flag="" |
---|
6945 | else |
---|
6946 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
6947 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
6948 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
6949 | 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' |
---|
6950 | else |
---|
6951 | 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' |
---|
6952 | fi |
---|
6953 | aix_use_runtimelinking=no |
---|
6954 | |
---|
6955 | # Test if we are trying to use run time linking or normal |
---|
6956 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
6957 | # need to do runtime linking. |
---|
6958 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
6959 | for ld_flag in $LDFLAGS; do |
---|
6960 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
6961 | aix_use_runtimelinking=yes |
---|
6962 | break |
---|
6963 | fi |
---|
6964 | done |
---|
6965 | esac |
---|
6966 | |
---|
6967 | exp_sym_flag='-bexport' |
---|
6968 | no_entry_flag='-bnoentry' |
---|
6969 | fi |
---|
6970 | |
---|
6971 | # When large executables or shared objects are built, AIX ld can |
---|
6972 | # have problems creating the table of contents. If linking a library |
---|
6973 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
6974 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
6975 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
6976 | |
---|
6977 | archive_cmds='' |
---|
6978 | hardcode_direct=yes |
---|
6979 | hardcode_libdir_separator=':' |
---|
6980 | link_all_deplibs=yes |
---|
6981 | |
---|
6982 | if test "$GCC" = yes; then |
---|
6983 | case $host_os in aix4.012|aix4.012.*) |
---|
6984 | # We only want to do this on AIX 4.2 and lower, the check |
---|
6985 | # below for broken collect2 doesn't work under 4.3+ |
---|
6986 | collect2name=`${CC} -print-prog-name=collect2` |
---|
6987 | if test -f "$collect2name" && \ |
---|
6988 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
6989 | then |
---|
6990 | # We have reworked collect2 |
---|
6991 | hardcode_direct=yes |
---|
6992 | else |
---|
6993 | # We have old collect2 |
---|
6994 | hardcode_direct=unsupported |
---|
6995 | # It fails to find uninstalled libraries when the uninstalled |
---|
6996 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
6997 | # to unsupported forces relinking |
---|
6998 | hardcode_minus_L=yes |
---|
6999 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7000 | hardcode_libdir_separator= |
---|
7001 | fi |
---|
7002 | esac |
---|
7003 | shared_flag='-shared' |
---|
7004 | else |
---|
7005 | # not using gcc |
---|
7006 | if test "$host_cpu" = ia64; then |
---|
7007 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
7008 | # chokes on -Wl,-G. The following line is correct: |
---|
7009 | shared_flag='-G' |
---|
7010 | else |
---|
7011 | if test "$aix_use_runtimelinking" = yes; then |
---|
7012 | shared_flag='${wl}-G' |
---|
7013 | else |
---|
7014 | shared_flag='${wl}-bM:SRE' |
---|
7015 | fi |
---|
7016 | fi |
---|
7017 | fi |
---|
7018 | |
---|
7019 | # It seems that -bexpall does not export symbols beginning with |
---|
7020 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
7021 | always_export_symbols=yes |
---|
7022 | if test "$aix_use_runtimelinking" = yes; then |
---|
7023 | # Warning - without using the other runtime loading flags (-brtl), |
---|
7024 | # -berok will link without error, but may produce a broken library. |
---|
7025 | allow_undefined_flag='-berok' |
---|
7026 | # Determine the default libpath from the value encoded in an empty executable. |
---|
7027 | cat >conftest.$ac_ext <<_ACEOF |
---|
7028 | /* confdefs.h. */ |
---|
7029 | _ACEOF |
---|
7030 | cat confdefs.h >>conftest.$ac_ext |
---|
7031 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7032 | /* end confdefs.h. */ |
---|
7033 | |
---|
7034 | int |
---|
7035 | main () |
---|
7036 | { |
---|
7037 | |
---|
7038 | ; |
---|
7039 | return 0; |
---|
7040 | } |
---|
7041 | _ACEOF |
---|
7042 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7044 | (eval $ac_link) 2>conftest.er1 |
---|
7045 | ac_status=$? |
---|
7046 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7047 | rm -f conftest.er1 |
---|
7048 | cat conftest.err >&5 |
---|
7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7050 | (exit $ac_status); } && |
---|
7051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
7052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7053 | (eval $ac_try) 2>&5 |
---|
7054 | ac_status=$? |
---|
7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7056 | (exit $ac_status); }; } && |
---|
7057 | { ac_try='test -s conftest$ac_exeext' |
---|
7058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7059 | (eval $ac_try) 2>&5 |
---|
7060 | ac_status=$? |
---|
7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7062 | (exit $ac_status); }; }; then |
---|
7063 | |
---|
7064 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
7065 | }'` |
---|
7066 | # Check for a 64-bit object if we didn't find anything. |
---|
7067 | 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; } |
---|
7068 | }'`; fi |
---|
7069 | else |
---|
7070 | echo "$as_me: failed program was:" >&5 |
---|
7071 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7072 | |
---|
7073 | fi |
---|
7074 | rm -f conftest.err conftest.$ac_objext \ |
---|
7075 | conftest$ac_exeext conftest.$ac_ext |
---|
7076 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
7077 | |
---|
7078 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
7079 | 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" |
---|
7080 | else |
---|
7081 | if test "$host_cpu" = ia64; then |
---|
7082 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
7083 | allow_undefined_flag="-z nodefs" |
---|
7084 | 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" |
---|
7085 | else |
---|
7086 | # Determine the default libpath from the value encoded in an empty executable. |
---|
7087 | cat >conftest.$ac_ext <<_ACEOF |
---|
7088 | /* confdefs.h. */ |
---|
7089 | _ACEOF |
---|
7090 | cat confdefs.h >>conftest.$ac_ext |
---|
7091 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7092 | /* end confdefs.h. */ |
---|
7093 | |
---|
7094 | int |
---|
7095 | main () |
---|
7096 | { |
---|
7097 | |
---|
7098 | ; |
---|
7099 | return 0; |
---|
7100 | } |
---|
7101 | _ACEOF |
---|
7102 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7104 | (eval $ac_link) 2>conftest.er1 |
---|
7105 | ac_status=$? |
---|
7106 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7107 | rm -f conftest.er1 |
---|
7108 | cat conftest.err >&5 |
---|
7109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7110 | (exit $ac_status); } && |
---|
7111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
7112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7113 | (eval $ac_try) 2>&5 |
---|
7114 | ac_status=$? |
---|
7115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7116 | (exit $ac_status); }; } && |
---|
7117 | { ac_try='test -s conftest$ac_exeext' |
---|
7118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7119 | (eval $ac_try) 2>&5 |
---|
7120 | ac_status=$? |
---|
7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7122 | (exit $ac_status); }; }; then |
---|
7123 | |
---|
7124 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
7125 | }'` |
---|
7126 | # Check for a 64-bit object if we didn't find anything. |
---|
7127 | 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; } |
---|
7128 | }'`; fi |
---|
7129 | else |
---|
7130 | echo "$as_me: failed program was:" >&5 |
---|
7131 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7132 | |
---|
7133 | fi |
---|
7134 | rm -f conftest.err conftest.$ac_objext \ |
---|
7135 | conftest$ac_exeext conftest.$ac_ext |
---|
7136 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
7137 | |
---|
7138 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
7139 | # Warning - without using the other run time loading flags, |
---|
7140 | # -berok will link without error, but may produce a broken library. |
---|
7141 | no_undefined_flag=' ${wl}-bernotok' |
---|
7142 | allow_undefined_flag=' ${wl}-berok' |
---|
7143 | # -bexpall does not export symbols beginning with underscore (_) |
---|
7144 | always_export_symbols=yes |
---|
7145 | # Exported symbols can be pulled into shared objects from archives |
---|
7146 | whole_archive_flag_spec=' ' |
---|
7147 | archive_cmds_need_lc=yes |
---|
7148 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
7149 | 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' |
---|
7150 | fi |
---|
7151 | fi |
---|
7152 | ;; |
---|
7153 | |
---|
7154 | amigaos*) |
---|
7155 | 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)' |
---|
7156 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7157 | hardcode_minus_L=yes |
---|
7158 | # see comment about different semantics on the GNU ld section |
---|
7159 | ld_shlibs=no |
---|
7160 | ;; |
---|
7161 | |
---|
7162 | bsdi4*) |
---|
7163 | export_dynamic_flag_spec=-rdynamic |
---|
7164 | ;; |
---|
7165 | |
---|
7166 | cygwin* | mingw* | pw32*) |
---|
7167 | # When not using gcc, we currently assume that we are using |
---|
7168 | # Microsoft Visual C++. |
---|
7169 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
7170 | # no search path for DLLs. |
---|
7171 | hardcode_libdir_flag_spec=' ' |
---|
7172 | allow_undefined_flag=unsupported |
---|
7173 | # Tell ltmain to make .lib files, not .a files. |
---|
7174 | libext=lib |
---|
7175 | # Tell ltmain to make .dll files, not .so files. |
---|
7176 | shrext_cmds=".dll" |
---|
7177 | # FIXME: Setting linknames here is a bad hack. |
---|
7178 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
7179 | # The linker will automatically build a .lib file if we build a DLL. |
---|
7180 | old_archive_From_new_cmds='true' |
---|
7181 | # FIXME: Should let the user specify the lib program. |
---|
7182 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
7183 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
7184 | enable_shared_with_static_runtimes=yes |
---|
7185 | ;; |
---|
7186 | |
---|
7187 | darwin* | rhapsody*) |
---|
7188 | if test "$GXX" = yes ; then |
---|
7189 | archive_cmds_need_lc=no |
---|
7190 | case "$host_os" in |
---|
7191 | rhapsody* | darwin1.[012]) |
---|
7192 | allow_undefined_flag='-undefined suppress' |
---|
7193 | ;; |
---|
7194 | *) # Darwin 1.3 on |
---|
7195 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
7196 | allow_undefined_flag='-flat_namespace -undefined suppress' |
---|
7197 | else |
---|
7198 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
7199 | 10.[012]) |
---|
7200 | allow_undefined_flag='-flat_namespace -undefined suppress' |
---|
7201 | ;; |
---|
7202 | 10.*) |
---|
7203 | allow_undefined_flag='-undefined dynamic_lookup' |
---|
7204 | ;; |
---|
7205 | esac |
---|
7206 | fi |
---|
7207 | ;; |
---|
7208 | esac |
---|
7209 | lt_int_apple_cc_single_mod=no |
---|
7210 | output_verbose_link_cmd='echo' |
---|
7211 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
7212 | lt_int_apple_cc_single_mod=yes |
---|
7213 | fi |
---|
7214 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
7215 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
7216 | else |
---|
7217 | archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
7218 | fi |
---|
7219 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
7220 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
7221 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
7222 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
7223 | else |
---|
7224 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
7225 | fi |
---|
7226 | 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}' |
---|
7227 | hardcode_direct=no |
---|
7228 | hardcode_automatic=yes |
---|
7229 | hardcode_shlibpath_var=unsupported |
---|
7230 | whole_archive_flag_spec='-all_load $convenience' |
---|
7231 | link_all_deplibs=yes |
---|
7232 | else |
---|
7233 | ld_shlibs=no |
---|
7234 | fi |
---|
7235 | ;; |
---|
7236 | |
---|
7237 | dgux*) |
---|
7238 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7239 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7240 | hardcode_shlibpath_var=no |
---|
7241 | ;; |
---|
7242 | |
---|
7243 | freebsd1*) |
---|
7244 | ld_shlibs=no |
---|
7245 | ;; |
---|
7246 | |
---|
7247 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
7248 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
7249 | # does not break anything, and helps significantly (at the cost of a little |
---|
7250 | # extra space). |
---|
7251 | freebsd2.2*) |
---|
7252 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
7253 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7254 | hardcode_direct=yes |
---|
7255 | hardcode_shlibpath_var=no |
---|
7256 | ;; |
---|
7257 | |
---|
7258 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
7259 | freebsd2*) |
---|
7260 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
7261 | hardcode_direct=yes |
---|
7262 | hardcode_minus_L=yes |
---|
7263 | hardcode_shlibpath_var=no |
---|
7264 | ;; |
---|
7265 | |
---|
7266 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
7267 | freebsd* | kfreebsd*-gnu) |
---|
7268 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
7269 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7270 | hardcode_direct=yes |
---|
7271 | hardcode_shlibpath_var=no |
---|
7272 | ;; |
---|
7273 | |
---|
7274 | hpux9*) |
---|
7275 | if test "$GCC" = yes; then |
---|
7276 | 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' |
---|
7277 | else |
---|
7278 | 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' |
---|
7279 | fi |
---|
7280 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
7281 | hardcode_libdir_separator=: |
---|
7282 | hardcode_direct=yes |
---|
7283 | |
---|
7284 | # hardcode_minus_L: Not really in the search PATH, |
---|
7285 | # but as the default location of the library. |
---|
7286 | hardcode_minus_L=yes |
---|
7287 | export_dynamic_flag_spec='${wl}-E' |
---|
7288 | ;; |
---|
7289 | |
---|
7290 | hpux10* | hpux11*) |
---|
7291 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
7292 | case "$host_cpu" in |
---|
7293 | hppa*64*|ia64*) |
---|
7294 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7295 | ;; |
---|
7296 | *) |
---|
7297 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
7298 | ;; |
---|
7299 | esac |
---|
7300 | else |
---|
7301 | case "$host_cpu" in |
---|
7302 | hppa*64*|ia64*) |
---|
7303 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7304 | ;; |
---|
7305 | *) |
---|
7306 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
7307 | ;; |
---|
7308 | esac |
---|
7309 | fi |
---|
7310 | if test "$with_gnu_ld" = no; then |
---|
7311 | case "$host_cpu" in |
---|
7312 | hppa*64*) |
---|
7313 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
7314 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
7315 | hardcode_libdir_separator=: |
---|
7316 | hardcode_direct=no |
---|
7317 | hardcode_shlibpath_var=no |
---|
7318 | ;; |
---|
7319 | ia64*) |
---|
7320 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7321 | hardcode_direct=no |
---|
7322 | hardcode_shlibpath_var=no |
---|
7323 | |
---|
7324 | # hardcode_minus_L: Not really in the search PATH, |
---|
7325 | # but as the default location of the library. |
---|
7326 | hardcode_minus_L=yes |
---|
7327 | ;; |
---|
7328 | *) |
---|
7329 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
7330 | hardcode_libdir_separator=: |
---|
7331 | hardcode_direct=yes |
---|
7332 | export_dynamic_flag_spec='${wl}-E' |
---|
7333 | |
---|
7334 | # hardcode_minus_L: Not really in the search PATH, |
---|
7335 | # but as the default location of the library. |
---|
7336 | hardcode_minus_L=yes |
---|
7337 | ;; |
---|
7338 | esac |
---|
7339 | fi |
---|
7340 | ;; |
---|
7341 | |
---|
7342 | irix5* | irix6* | nonstopux*) |
---|
7343 | if test "$GCC" = yes; then |
---|
7344 | 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' |
---|
7345 | else |
---|
7346 | 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' |
---|
7347 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
7348 | fi |
---|
7349 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7350 | hardcode_libdir_separator=: |
---|
7351 | link_all_deplibs=yes |
---|
7352 | ;; |
---|
7353 | |
---|
7354 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
7355 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
7356 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
7357 | else |
---|
7358 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
7359 | fi |
---|
7360 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7361 | hardcode_direct=yes |
---|
7362 | hardcode_shlibpath_var=no |
---|
7363 | ;; |
---|
7364 | |
---|
7365 | newsos6) |
---|
7366 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7367 | hardcode_direct=yes |
---|
7368 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7369 | hardcode_libdir_separator=: |
---|
7370 | hardcode_shlibpath_var=no |
---|
7371 | ;; |
---|
7372 | |
---|
7373 | openbsd*) |
---|
7374 | hardcode_direct=yes |
---|
7375 | hardcode_shlibpath_var=no |
---|
7376 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
7377 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
7378 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
7379 | export_dynamic_flag_spec='${wl}-E' |
---|
7380 | else |
---|
7381 | case $host_os in |
---|
7382 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
7383 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
7384 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7385 | ;; |
---|
7386 | *) |
---|
7387 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
7388 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
7389 | ;; |
---|
7390 | esac |
---|
7391 | fi |
---|
7392 | ;; |
---|
7393 | |
---|
7394 | os2*) |
---|
7395 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7396 | hardcode_minus_L=yes |
---|
7397 | allow_undefined_flag=unsupported |
---|
7398 | 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' |
---|
7399 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
7400 | ;; |
---|
7401 | |
---|
7402 | osf3*) |
---|
7403 | if test "$GCC" = yes; then |
---|
7404 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
7405 | 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' |
---|
7406 | else |
---|
7407 | allow_undefined_flag=' -expect_unresolved \*' |
---|
7408 | 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' |
---|
7409 | fi |
---|
7410 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7411 | hardcode_libdir_separator=: |
---|
7412 | ;; |
---|
7413 | |
---|
7414 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
7415 | if test "$GCC" = yes; then |
---|
7416 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
7417 | 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' |
---|
7418 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7419 | else |
---|
7420 | allow_undefined_flag=' -expect_unresolved \*' |
---|
7421 | 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' |
---|
7422 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
7423 | $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' |
---|
7424 | |
---|
7425 | # Both c and cxx compiler support -rpath directly |
---|
7426 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
7427 | fi |
---|
7428 | hardcode_libdir_separator=: |
---|
7429 | ;; |
---|
7430 | |
---|
7431 | sco3.2v5*) |
---|
7432 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7433 | hardcode_shlibpath_var=no |
---|
7434 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
7435 | runpath_var=LD_RUN_PATH |
---|
7436 | hardcode_runpath_var=yes |
---|
7437 | ;; |
---|
7438 | |
---|
7439 | solaris*) |
---|
7440 | no_undefined_flag=' -z text' |
---|
7441 | if test "$GCC" = yes; then |
---|
7442 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7443 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
7444 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
7445 | else |
---|
7446 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7447 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
7448 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
7449 | fi |
---|
7450 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7451 | hardcode_shlibpath_var=no |
---|
7452 | case $host_os in |
---|
7453 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
7454 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
7455 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
7456 | esac |
---|
7457 | link_all_deplibs=yes |
---|
7458 | ;; |
---|
7459 | |
---|
7460 | sunos4*) |
---|
7461 | if test "x$host_vendor" = xsequent; then |
---|
7462 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
7463 | # files that make .init and .fini sections work. |
---|
7464 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7465 | else |
---|
7466 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
7467 | fi |
---|
7468 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7469 | hardcode_direct=yes |
---|
7470 | hardcode_minus_L=yes |
---|
7471 | hardcode_shlibpath_var=no |
---|
7472 | ;; |
---|
7473 | |
---|
7474 | sysv4) |
---|
7475 | case $host_vendor in |
---|
7476 | sni) |
---|
7477 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7478 | hardcode_direct=yes # is this really true??? |
---|
7479 | ;; |
---|
7480 | siemens) |
---|
7481 | ## LD is ld it makes a PLAMLIB |
---|
7482 | ## CC just makes a GrossModule. |
---|
7483 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
7484 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
7485 | hardcode_direct=no |
---|
7486 | ;; |
---|
7487 | motorola) |
---|
7488 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7489 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
7490 | ;; |
---|
7491 | esac |
---|
7492 | runpath_var='LD_RUN_PATH' |
---|
7493 | hardcode_shlibpath_var=no |
---|
7494 | ;; |
---|
7495 | |
---|
7496 | sysv4.3*) |
---|
7497 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7498 | hardcode_shlibpath_var=no |
---|
7499 | export_dynamic_flag_spec='-Bexport' |
---|
7500 | ;; |
---|
7501 | |
---|
7502 | sysv4*MP*) |
---|
7503 | if test -d /usr/nec; then |
---|
7504 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7505 | hardcode_shlibpath_var=no |
---|
7506 | runpath_var=LD_RUN_PATH |
---|
7507 | hardcode_runpath_var=yes |
---|
7508 | ld_shlibs=yes |
---|
7509 | fi |
---|
7510 | ;; |
---|
7511 | |
---|
7512 | sysv4.2uw2*) |
---|
7513 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
7514 | hardcode_direct=yes |
---|
7515 | hardcode_minus_L=no |
---|
7516 | hardcode_shlibpath_var=no |
---|
7517 | hardcode_runpath_var=yes |
---|
7518 | runpath_var=LD_RUN_PATH |
---|
7519 | ;; |
---|
7520 | |
---|
7521 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
7522 | no_undefined_flag='${wl}-z ${wl}text' |
---|
7523 | if test "$GCC" = yes; then |
---|
7524 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7525 | else |
---|
7526 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7527 | fi |
---|
7528 | runpath_var='LD_RUN_PATH' |
---|
7529 | hardcode_shlibpath_var=no |
---|
7530 | ;; |
---|
7531 | |
---|
7532 | sysv5*) |
---|
7533 | no_undefined_flag=' -z text' |
---|
7534 | # $CC -shared without GNU ld will not create a library from C++ |
---|
7535 | # object files and a static libstdc++, better avoid it by now |
---|
7536 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7537 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
7538 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
7539 | hardcode_libdir_flag_spec= |
---|
7540 | hardcode_shlibpath_var=no |
---|
7541 | runpath_var='LD_RUN_PATH' |
---|
7542 | ;; |
---|
7543 | |
---|
7544 | uts4*) |
---|
7545 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7546 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7547 | hardcode_shlibpath_var=no |
---|
7548 | ;; |
---|
7549 | |
---|
7550 | *) |
---|
7551 | ld_shlibs=no |
---|
7552 | ;; |
---|
7553 | esac |
---|
7554 | fi |
---|
7555 | |
---|
7556 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
7557 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
7558 | test "$ld_shlibs" = no && can_build_shared=no |
---|
7559 | |
---|
7560 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
7561 | if test "$GCC" = yes; then |
---|
7562 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
7563 | fi |
---|
7564 | |
---|
7565 | # |
---|
7566 | # Do we need to explicitly link libc? |
---|
7567 | # |
---|
7568 | case "x$archive_cmds_need_lc" in |
---|
7569 | x|xyes) |
---|
7570 | # Assume -lc should be added |
---|
7571 | archive_cmds_need_lc=yes |
---|
7572 | |
---|
7573 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
7574 | case $archive_cmds in |
---|
7575 | *'~'*) |
---|
7576 | # FIXME: we may have to deal with multi-command sequences. |
---|
7577 | ;; |
---|
7578 | '$CC '*) |
---|
7579 | # Test whether the compiler implicitly links with -lc since on some |
---|
7580 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
7581 | # to ld, don't add -lc before -lgcc. |
---|
7582 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
7583 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
7584 | $rm conftest* |
---|
7585 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7586 | |
---|
7587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7588 | (eval $ac_compile) 2>&5 |
---|
7589 | ac_status=$? |
---|
7590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7591 | (exit $ac_status); } 2>conftest.err; then |
---|
7592 | soname=conftest |
---|
7593 | lib=conftest |
---|
7594 | libobjs=conftest.$ac_objext |
---|
7595 | deplibs= |
---|
7596 | wl=$lt_prog_compiler_wl |
---|
7597 | compiler_flags=-v |
---|
7598 | linker_flags=-v |
---|
7599 | verstring= |
---|
7600 | output_objdir=. |
---|
7601 | libname=conftest |
---|
7602 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
7603 | allow_undefined_flag= |
---|
7604 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
7605 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
7606 | ac_status=$? |
---|
7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7608 | (exit $ac_status); } |
---|
7609 | then |
---|
7610 | archive_cmds_need_lc=no |
---|
7611 | else |
---|
7612 | archive_cmds_need_lc=yes |
---|
7613 | fi |
---|
7614 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
7615 | else |
---|
7616 | cat conftest.err 1>&5 |
---|
7617 | fi |
---|
7618 | $rm conftest* |
---|
7619 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
7620 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
7621 | ;; |
---|
7622 | esac |
---|
7623 | fi |
---|
7624 | ;; |
---|
7625 | esac |
---|
7626 | |
---|
7627 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
7628 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
7629 | library_names_spec= |
---|
7630 | libname_spec='lib$name' |
---|
7631 | soname_spec= |
---|
7632 | shrext_cmds=".so" |
---|
7633 | postinstall_cmds= |
---|
7634 | postuninstall_cmds= |
---|
7635 | finish_cmds= |
---|
7636 | finish_eval= |
---|
7637 | shlibpath_var= |
---|
7638 | shlibpath_overrides_runpath=unknown |
---|
7639 | version_type=none |
---|
7640 | dynamic_linker="$host_os ld.so" |
---|
7641 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
7642 | if test "$GCC" = yes; then |
---|
7643 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
7644 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
7645 | # if the path contains ";" then we assume it to be the separator |
---|
7646 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
7647 | # assumed that no part of a normal pathname contains ";" but that should |
---|
7648 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
7649 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
7650 | else |
---|
7651 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
7652 | fi |
---|
7653 | else |
---|
7654 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
7655 | fi |
---|
7656 | need_lib_prefix=unknown |
---|
7657 | hardcode_into_libs=no |
---|
7658 | |
---|
7659 | # when you set need_version to no, make sure it does not cause -set_version |
---|
7660 | # flags to be left without arguments |
---|
7661 | need_version=unknown |
---|
7662 | |
---|
7663 | case $host_os in |
---|
7664 | aix3*) |
---|
7665 | version_type=linux |
---|
7666 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
7667 | shlibpath_var=LIBPATH |
---|
7668 | |
---|
7669 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
7670 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7671 | ;; |
---|
7672 | |
---|
7673 | aix4* | aix5*) |
---|
7674 | version_type=linux |
---|
7675 | need_lib_prefix=no |
---|
7676 | need_version=no |
---|
7677 | hardcode_into_libs=yes |
---|
7678 | if test "$host_cpu" = ia64; then |
---|
7679 | # AIX 5 supports IA64 |
---|
7680 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
7681 | shlibpath_var=LD_LIBRARY_PATH |
---|
7682 | else |
---|
7683 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
7684 | # for dependence libraries. The import file would start with |
---|
7685 | # the line `#! .'. This would cause the generated library to |
---|
7686 | # depend on `.', always an invalid library. This was fixed in |
---|
7687 | # development snapshots of GCC prior to 3.0. |
---|
7688 | case $host_os in |
---|
7689 | aix4 | aix4.[01] | aix4.[01].*) |
---|
7690 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
7691 | echo ' yes ' |
---|
7692 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
7693 | : |
---|
7694 | else |
---|
7695 | can_build_shared=no |
---|
7696 | fi |
---|
7697 | ;; |
---|
7698 | esac |
---|
7699 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
7700 | # soname into executable. Probably we can add versioning support to |
---|
7701 | # collect2, so additional links can be useful in future. |
---|
7702 | if test "$aix_use_runtimelinking" = yes; then |
---|
7703 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
7704 | # instead of lib<name>.a to let people know that these are not |
---|
7705 | # typical AIX shared libraries. |
---|
7706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7707 | else |
---|
7708 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
7709 | # and later when we are not doing run time linking. |
---|
7710 | library_names_spec='${libname}${release}.a $libname.a' |
---|
7711 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7712 | fi |
---|
7713 | shlibpath_var=LIBPATH |
---|
7714 | fi |
---|
7715 | ;; |
---|
7716 | |
---|
7717 | amigaos*) |
---|
7718 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
7719 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
7720 | 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' |
---|
7721 | ;; |
---|
7722 | |
---|
7723 | beos*) |
---|
7724 | library_names_spec='${libname}${shared_ext}' |
---|
7725 | dynamic_linker="$host_os ld.so" |
---|
7726 | shlibpath_var=LIBRARY_PATH |
---|
7727 | ;; |
---|
7728 | |
---|
7729 | bsdi4*) |
---|
7730 | version_type=linux |
---|
7731 | need_version=no |
---|
7732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7733 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7734 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
7735 | shlibpath_var=LD_LIBRARY_PATH |
---|
7736 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
7737 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
7738 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
7739 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
7740 | # libtool to hard-code these into programs |
---|
7741 | ;; |
---|
7742 | |
---|
7743 | cygwin* | mingw* | pw32*) |
---|
7744 | version_type=windows |
---|
7745 | shrext_cmds=".dll" |
---|
7746 | need_version=no |
---|
7747 | need_lib_prefix=no |
---|
7748 | |
---|
7749 | case $GCC,$host_os in |
---|
7750 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
7751 | library_names_spec='$libname.dll.a' |
---|
7752 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
7753 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
7754 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
7755 | dldir=$destdir/`dirname \$dlpath`~ |
---|
7756 | test -d \$dldir || mkdir -p \$dldir~ |
---|
7757 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
7758 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
7759 | dlpath=$dir/\$dldll~ |
---|
7760 | $rm \$dlpath' |
---|
7761 | shlibpath_overrides_runpath=yes |
---|
7762 | |
---|
7763 | case $host_os in |
---|
7764 | cygwin*) |
---|
7765 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
7766 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
7767 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
7768 | ;; |
---|
7769 | mingw*) |
---|
7770 | # MinGW DLLs use traditional 'lib' prefix |
---|
7771 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
7772 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
7773 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
7774 | # It is most probably a Windows format PATH printed by |
---|
7775 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
7776 | # path with ; separators, and with drive letters. We can handle the |
---|
7777 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
7778 | # especially as we might pass files found there to a mingw objdump, |
---|
7779 | # which wouldn't understand a cygwinified path. Ahh. |
---|
7780 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
7781 | else |
---|
7782 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
7783 | fi |
---|
7784 | ;; |
---|
7785 | pw32*) |
---|
7786 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
7787 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
---|
7788 | ;; |
---|
7789 | esac |
---|
7790 | ;; |
---|
7791 | |
---|
7792 | *) |
---|
7793 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
7794 | ;; |
---|
7795 | esac |
---|
7796 | dynamic_linker='Win32 ld.exe' |
---|
7797 | # FIXME: first we should search . and the directory the executable is in |
---|
7798 | shlibpath_var=PATH |
---|
7799 | ;; |
---|
7800 | |
---|
7801 | darwin* | rhapsody*) |
---|
7802 | dynamic_linker="$host_os dyld" |
---|
7803 | version_type=darwin |
---|
7804 | need_lib_prefix=no |
---|
7805 | need_version=no |
---|
7806 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
7807 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
7808 | shlibpath_overrides_runpath=yes |
---|
7809 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
7810 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
7811 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
7812 | if test "$GCC" = yes; then |
---|
7813 | 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"` |
---|
7814 | else |
---|
7815 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
7816 | fi |
---|
7817 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
7818 | ;; |
---|
7819 | |
---|
7820 | dgux*) |
---|
7821 | version_type=linux |
---|
7822 | need_lib_prefix=no |
---|
7823 | need_version=no |
---|
7824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
7825 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7826 | shlibpath_var=LD_LIBRARY_PATH |
---|
7827 | ;; |
---|
7828 | |
---|
7829 | freebsd1*) |
---|
7830 | dynamic_linker=no |
---|
7831 | ;; |
---|
7832 | |
---|
7833 | kfreebsd*-gnu) |
---|
7834 | version_type=linux |
---|
7835 | need_lib_prefix=no |
---|
7836 | need_version=no |
---|
7837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
7838 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7839 | shlibpath_var=LD_LIBRARY_PATH |
---|
7840 | shlibpath_overrides_runpath=no |
---|
7841 | hardcode_into_libs=yes |
---|
7842 | dynamic_linker='GNU ld.so' |
---|
7843 | ;; |
---|
7844 | |
---|
7845 | freebsd*) |
---|
7846 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
7847 | version_type=freebsd-$objformat |
---|
7848 | case $version_type in |
---|
7849 | freebsd-elf*) |
---|
7850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
7851 | need_version=no |
---|
7852 | need_lib_prefix=no |
---|
7853 | ;; |
---|
7854 | freebsd-*) |
---|
7855 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
7856 | need_version=yes |
---|
7857 | ;; |
---|
7858 | esac |
---|
7859 | shlibpath_var=LD_LIBRARY_PATH |
---|
7860 | case $host_os in |
---|
7861 | freebsd2*) |
---|
7862 | shlibpath_overrides_runpath=yes |
---|
7863 | ;; |
---|
7864 | freebsd3.01* | freebsdelf3.01*) |
---|
7865 | shlibpath_overrides_runpath=yes |
---|
7866 | hardcode_into_libs=yes |
---|
7867 | ;; |
---|
7868 | *) # from 3.2 on |
---|
7869 | shlibpath_overrides_runpath=no |
---|
7870 | hardcode_into_libs=yes |
---|
7871 | ;; |
---|
7872 | esac |
---|
7873 | ;; |
---|
7874 | |
---|
7875 | gnu*) |
---|
7876 | version_type=linux |
---|
7877 | need_lib_prefix=no |
---|
7878 | need_version=no |
---|
7879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
7880 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7881 | shlibpath_var=LD_LIBRARY_PATH |
---|
7882 | hardcode_into_libs=yes |
---|
7883 | ;; |
---|
7884 | |
---|
7885 | hpux9* | hpux10* | hpux11*) |
---|
7886 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
7887 | # link against other versions. |
---|
7888 | version_type=sunos |
---|
7889 | need_lib_prefix=no |
---|
7890 | need_version=no |
---|
7891 | case "$host_cpu" in |
---|
7892 | ia64*) |
---|
7893 | shrext_cmds='.so' |
---|
7894 | hardcode_into_libs=yes |
---|
7895 | dynamic_linker="$host_os dld.so" |
---|
7896 | shlibpath_var=LD_LIBRARY_PATH |
---|
7897 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
7898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7899 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7900 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
7901 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
7902 | else |
---|
7903 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
7904 | fi |
---|
7905 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
7906 | ;; |
---|
7907 | hppa*64*) |
---|
7908 | shrext_cmds='.sl' |
---|
7909 | hardcode_into_libs=yes |
---|
7910 | dynamic_linker="$host_os dld.sl" |
---|
7911 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
7912 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
7913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7914 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7915 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
7916 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
7917 | ;; |
---|
7918 | *) |
---|
7919 | shrext_cmds='.sl' |
---|
7920 | dynamic_linker="$host_os dld.sl" |
---|
7921 | shlibpath_var=SHLIB_PATH |
---|
7922 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
7923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7924 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7925 | ;; |
---|
7926 | esac |
---|
7927 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
7928 | postinstall_cmds='chmod 555 $lib' |
---|
7929 | ;; |
---|
7930 | |
---|
7931 | irix5* | irix6* | nonstopux*) |
---|
7932 | case $host_os in |
---|
7933 | nonstopux*) version_type=nonstopux ;; |
---|
7934 | *) |
---|
7935 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
7936 | version_type=linux |
---|
7937 | else |
---|
7938 | version_type=irix |
---|
7939 | fi ;; |
---|
7940 | esac |
---|
7941 | need_lib_prefix=no |
---|
7942 | need_version=no |
---|
7943 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
7945 | case $host_os in |
---|
7946 | irix5* | nonstopux*) |
---|
7947 | libsuff= shlibsuff= |
---|
7948 | ;; |
---|
7949 | *) |
---|
7950 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
7951 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
7952 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
7953 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
7954 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
7955 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
7956 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
7957 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
7958 | esac |
---|
7959 | ;; |
---|
7960 | esac |
---|
7961 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
7962 | shlibpath_overrides_runpath=no |
---|
7963 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
7964 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
7965 | hardcode_into_libs=yes |
---|
7966 | ;; |
---|
7967 | |
---|
7968 | # No shared lib support for Linux oldld, aout, or coff. |
---|
7969 | linux*oldld* | linux*aout* | linux*coff*) |
---|
7970 | dynamic_linker=no |
---|
7971 | ;; |
---|
7972 | |
---|
7973 | # This must be Linux ELF. |
---|
7974 | linux*) |
---|
7975 | version_type=linux |
---|
7976 | need_lib_prefix=no |
---|
7977 | need_version=no |
---|
7978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7979 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7980 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
7981 | shlibpath_var=LD_LIBRARY_PATH |
---|
7982 | shlibpath_overrides_runpath=no |
---|
7983 | # This implies no fast_install, which is unacceptable. |
---|
7984 | # Some rework will be needed to allow for fast_install |
---|
7985 | # before this can be enabled. |
---|
7986 | hardcode_into_libs=yes |
---|
7987 | |
---|
7988 | # Append ld.so.conf contents to the search path |
---|
7989 | if test -f /etc/ld.so.conf; then |
---|
7990 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
---|
7991 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
7992 | fi |
---|
7993 | |
---|
7994 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
7995 | # powerpc, because MkLinux only supported shared libraries with the |
---|
7996 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
7997 | # most powerpc-linux boxes support dynamic linking these days and |
---|
7998 | # people can always --disable-shared, the test was removed, and we |
---|
7999 | # assume the GNU/Linux dynamic linker is in use. |
---|
8000 | dynamic_linker='GNU/Linux ld.so' |
---|
8001 | ;; |
---|
8002 | |
---|
8003 | netbsdelf*-gnu) |
---|
8004 | version_type=linux |
---|
8005 | need_lib_prefix=no |
---|
8006 | need_version=no |
---|
8007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8008 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8009 | shlibpath_var=LD_LIBRARY_PATH |
---|
8010 | shlibpath_overrides_runpath=no |
---|
8011 | hardcode_into_libs=yes |
---|
8012 | dynamic_linker='NetBSD ld.elf_so' |
---|
8013 | ;; |
---|
8014 | |
---|
8015 | knetbsd*-gnu) |
---|
8016 | version_type=linux |
---|
8017 | need_lib_prefix=no |
---|
8018 | need_version=no |
---|
8019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8020 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8021 | shlibpath_var=LD_LIBRARY_PATH |
---|
8022 | shlibpath_overrides_runpath=no |
---|
8023 | hardcode_into_libs=yes |
---|
8024 | dynamic_linker='GNU ld.so' |
---|
8025 | ;; |
---|
8026 | |
---|
8027 | netbsd*) |
---|
8028 | version_type=sunos |
---|
8029 | need_lib_prefix=no |
---|
8030 | need_version=no |
---|
8031 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
8033 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
8034 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
8035 | else |
---|
8036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8037 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8038 | dynamic_linker='NetBSD ld.elf_so' |
---|
8039 | fi |
---|
8040 | shlibpath_var=LD_LIBRARY_PATH |
---|
8041 | shlibpath_overrides_runpath=yes |
---|
8042 | hardcode_into_libs=yes |
---|
8043 | ;; |
---|
8044 | |
---|
8045 | newsos6) |
---|
8046 | version_type=linux |
---|
8047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8048 | shlibpath_var=LD_LIBRARY_PATH |
---|
8049 | shlibpath_overrides_runpath=yes |
---|
8050 | ;; |
---|
8051 | |
---|
8052 | nto-qnx*) |
---|
8053 | version_type=linux |
---|
8054 | need_lib_prefix=no |
---|
8055 | need_version=no |
---|
8056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8057 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8058 | shlibpath_var=LD_LIBRARY_PATH |
---|
8059 | shlibpath_overrides_runpath=yes |
---|
8060 | ;; |
---|
8061 | |
---|
8062 | openbsd*) |
---|
8063 | version_type=sunos |
---|
8064 | need_lib_prefix=no |
---|
8065 | need_version=yes |
---|
8066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
8067 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
8068 | shlibpath_var=LD_LIBRARY_PATH |
---|
8069 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
8070 | case $host_os in |
---|
8071 | openbsd2.[89] | openbsd2.[89].*) |
---|
8072 | shlibpath_overrides_runpath=no |
---|
8073 | ;; |
---|
8074 | *) |
---|
8075 | shlibpath_overrides_runpath=yes |
---|
8076 | ;; |
---|
8077 | esac |
---|
8078 | else |
---|
8079 | shlibpath_overrides_runpath=yes |
---|
8080 | fi |
---|
8081 | ;; |
---|
8082 | |
---|
8083 | os2*) |
---|
8084 | libname_spec='$name' |
---|
8085 | shrext_cmds=".dll" |
---|
8086 | need_lib_prefix=no |
---|
8087 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
8088 | dynamic_linker='OS/2 ld.exe' |
---|
8089 | shlibpath_var=LIBPATH |
---|
8090 | ;; |
---|
8091 | |
---|
8092 | osf3* | osf4* | osf5*) |
---|
8093 | version_type=osf |
---|
8094 | need_lib_prefix=no |
---|
8095 | need_version=no |
---|
8096 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8098 | shlibpath_var=LD_LIBRARY_PATH |
---|
8099 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
8100 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
8101 | ;; |
---|
8102 | |
---|
8103 | sco3.2v5*) |
---|
8104 | version_type=osf |
---|
8105 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8107 | shlibpath_var=LD_LIBRARY_PATH |
---|
8108 | ;; |
---|
8109 | |
---|
8110 | solaris*) |
---|
8111 | version_type=linux |
---|
8112 | need_lib_prefix=no |
---|
8113 | need_version=no |
---|
8114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8115 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8116 | shlibpath_var=LD_LIBRARY_PATH |
---|
8117 | shlibpath_overrides_runpath=yes |
---|
8118 | hardcode_into_libs=yes |
---|
8119 | # ldd complains unless libraries are executable |
---|
8120 | postinstall_cmds='chmod +x $lib' |
---|
8121 | ;; |
---|
8122 | |
---|
8123 | sunos4*) |
---|
8124 | version_type=sunos |
---|
8125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
8126 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
8127 | shlibpath_var=LD_LIBRARY_PATH |
---|
8128 | shlibpath_overrides_runpath=yes |
---|
8129 | if test "$with_gnu_ld" = yes; then |
---|
8130 | need_lib_prefix=no |
---|
8131 | fi |
---|
8132 | need_version=yes |
---|
8133 | ;; |
---|
8134 | |
---|
8135 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
8136 | version_type=linux |
---|
8137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8138 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8139 | shlibpath_var=LD_LIBRARY_PATH |
---|
8140 | case $host_vendor in |
---|
8141 | sni) |
---|
8142 | shlibpath_overrides_runpath=no |
---|
8143 | need_lib_prefix=no |
---|
8144 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
8145 | runpath_var=LD_RUN_PATH |
---|
8146 | ;; |
---|
8147 | siemens) |
---|
8148 | need_lib_prefix=no |
---|
8149 | ;; |
---|
8150 | motorola) |
---|
8151 | need_lib_prefix=no |
---|
8152 | need_version=no |
---|
8153 | shlibpath_overrides_runpath=no |
---|
8154 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
8155 | ;; |
---|
8156 | esac |
---|
8157 | ;; |
---|
8158 | |
---|
8159 | sysv4*MP*) |
---|
8160 | if test -d /usr/nec ;then |
---|
8161 | version_type=linux |
---|
8162 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
8163 | soname_spec='$libname${shared_ext}.$major' |
---|
8164 | shlibpath_var=LD_LIBRARY_PATH |
---|
8165 | fi |
---|
8166 | ;; |
---|
8167 | |
---|
8168 | uts4*) |
---|
8169 | version_type=linux |
---|
8170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8171 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8172 | shlibpath_var=LD_LIBRARY_PATH |
---|
8173 | ;; |
---|
8174 | |
---|
8175 | *) |
---|
8176 | dynamic_linker=no |
---|
8177 | ;; |
---|
8178 | esac |
---|
8179 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
8180 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
8181 | test "$dynamic_linker" = no && can_build_shared=no |
---|
8182 | |
---|
8183 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
8184 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
8185 | hardcode_action= |
---|
8186 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
8187 | test -n "$runpath_var " || \ |
---|
8188 | test "X$hardcode_automatic"="Xyes" ; then |
---|
8189 | |
---|
8190 | # We can hardcode non-existant directories. |
---|
8191 | if test "$hardcode_direct" != no && |
---|
8192 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
8193 | # have to relink, otherwise we might link with an installed library |
---|
8194 | # when we should be linking with a yet-to-be-installed one |
---|
8195 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
8196 | test "$hardcode_minus_L" != no; then |
---|
8197 | # Linking always hardcodes the temporary library directory. |
---|
8198 | hardcode_action=relink |
---|
8199 | else |
---|
8200 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
8201 | hardcode_action=immediate |
---|
8202 | fi |
---|
8203 | else |
---|
8204 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
8205 | # directories. |
---|
8206 | hardcode_action=unsupported |
---|
8207 | fi |
---|
8208 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
8209 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
8210 | |
---|
8211 | if test "$hardcode_action" = relink; then |
---|
8212 | # Fast installation is not supported |
---|
8213 | enable_fast_install=no |
---|
8214 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
8215 | test "$enable_shared" = no; then |
---|
8216 | # Fast installation is not necessary |
---|
8217 | enable_fast_install=needless |
---|
8218 | fi |
---|
8219 | |
---|
8220 | striplib= |
---|
8221 | old_striplib= |
---|
8222 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
8223 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
8224 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
8225 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
8226 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
8227 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8228 | echo "${ECHO_T}yes" >&6 |
---|
8229 | else |
---|
8230 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
8231 | case $host_os in |
---|
8232 | darwin*) |
---|
8233 | if test -n "$STRIP" ; then |
---|
8234 | striplib="$STRIP -x" |
---|
8235 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8236 | echo "${ECHO_T}yes" >&6 |
---|
8237 | else |
---|
8238 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8239 | echo "${ECHO_T}no" >&6 |
---|
8240 | fi |
---|
8241 | ;; |
---|
8242 | *) |
---|
8243 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8244 | echo "${ECHO_T}no" >&6 |
---|
8245 | ;; |
---|
8246 | esac |
---|
8247 | fi |
---|
8248 | |
---|
8249 | if test "x$enable_dlopen" != xyes; then |
---|
8250 | enable_dlopen=unknown |
---|
8251 | enable_dlopen_self=unknown |
---|
8252 | enable_dlopen_self_static=unknown |
---|
8253 | else |
---|
8254 | lt_cv_dlopen=no |
---|
8255 | lt_cv_dlopen_libs= |
---|
8256 | |
---|
8257 | case $host_os in |
---|
8258 | beos*) |
---|
8259 | lt_cv_dlopen="load_add_on" |
---|
8260 | lt_cv_dlopen_libs= |
---|
8261 | lt_cv_dlopen_self=yes |
---|
8262 | ;; |
---|
8263 | |
---|
8264 | mingw* | pw32*) |
---|
8265 | lt_cv_dlopen="LoadLibrary" |
---|
8266 | lt_cv_dlopen_libs= |
---|
8267 | ;; |
---|
8268 | |
---|
8269 | cygwin*) |
---|
8270 | lt_cv_dlopen="dlopen" |
---|
8271 | lt_cv_dlopen_libs= |
---|
8272 | ;; |
---|
8273 | |
---|
8274 | darwin*) |
---|
8275 | # if libdl is installed we need to link against it |
---|
8276 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
8277 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
8278 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
8279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8280 | else |
---|
8281 | ac_check_lib_save_LIBS=$LIBS |
---|
8282 | LIBS="-ldl $LIBS" |
---|
8283 | cat >conftest.$ac_ext <<_ACEOF |
---|
8284 | /* confdefs.h. */ |
---|
8285 | _ACEOF |
---|
8286 | cat confdefs.h >>conftest.$ac_ext |
---|
8287 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8288 | /* end confdefs.h. */ |
---|
8289 | |
---|
8290 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8291 | #ifdef __cplusplus |
---|
8292 | extern "C" |
---|
8293 | #endif |
---|
8294 | /* We use char because int might match the return type of a gcc2 |
---|
8295 | builtin and then its argument prototype would still apply. */ |
---|
8296 | char dlopen (); |
---|
8297 | int |
---|
8298 | main () |
---|
8299 | { |
---|
8300 | dlopen (); |
---|
8301 | ; |
---|
8302 | return 0; |
---|
8303 | } |
---|
8304 | _ACEOF |
---|
8305 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8307 | (eval $ac_link) 2>conftest.er1 |
---|
8308 | ac_status=$? |
---|
8309 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8310 | rm -f conftest.er1 |
---|
8311 | cat conftest.err >&5 |
---|
8312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8313 | (exit $ac_status); } && |
---|
8314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8316 | (eval $ac_try) 2>&5 |
---|
8317 | ac_status=$? |
---|
8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8319 | (exit $ac_status); }; } && |
---|
8320 | { ac_try='test -s conftest$ac_exeext' |
---|
8321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8322 | (eval $ac_try) 2>&5 |
---|
8323 | ac_status=$? |
---|
8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8325 | (exit $ac_status); }; }; then |
---|
8326 | ac_cv_lib_dl_dlopen=yes |
---|
8327 | else |
---|
8328 | echo "$as_me: failed program was:" >&5 |
---|
8329 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8330 | |
---|
8331 | ac_cv_lib_dl_dlopen=no |
---|
8332 | fi |
---|
8333 | rm -f conftest.err conftest.$ac_objext \ |
---|
8334 | conftest$ac_exeext conftest.$ac_ext |
---|
8335 | LIBS=$ac_check_lib_save_LIBS |
---|
8336 | fi |
---|
8337 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
8338 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
8339 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
8340 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
8341 | else |
---|
8342 | |
---|
8343 | lt_cv_dlopen="dyld" |
---|
8344 | lt_cv_dlopen_libs= |
---|
8345 | lt_cv_dlopen_self=yes |
---|
8346 | |
---|
8347 | fi |
---|
8348 | |
---|
8349 | ;; |
---|
8350 | |
---|
8351 | *) |
---|
8352 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
8353 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
8354 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
8355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8356 | else |
---|
8357 | cat >conftest.$ac_ext <<_ACEOF |
---|
8358 | /* confdefs.h. */ |
---|
8359 | _ACEOF |
---|
8360 | cat confdefs.h >>conftest.$ac_ext |
---|
8361 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8362 | /* end confdefs.h. */ |
---|
8363 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
8364 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
8365 | #define shl_load innocuous_shl_load |
---|
8366 | |
---|
8367 | /* System header to define __stub macros and hopefully few prototypes, |
---|
8368 | which can conflict with char shl_load (); below. |
---|
8369 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8370 | <limits.h> exists even on freestanding compilers. */ |
---|
8371 | |
---|
8372 | #ifdef __STDC__ |
---|
8373 | # include <limits.h> |
---|
8374 | #else |
---|
8375 | # include <assert.h> |
---|
8376 | #endif |
---|
8377 | |
---|
8378 | #undef shl_load |
---|
8379 | |
---|
8380 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8381 | #ifdef __cplusplus |
---|
8382 | extern "C" |
---|
8383 | { |
---|
8384 | #endif |
---|
8385 | /* We use char because int might match the return type of a gcc2 |
---|
8386 | builtin and then its argument prototype would still apply. */ |
---|
8387 | char shl_load (); |
---|
8388 | /* The GNU C library defines this for functions which it implements |
---|
8389 | to always fail with ENOSYS. Some functions are actually named |
---|
8390 | something starting with __ and the normal name is an alias. */ |
---|
8391 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
8392 | choke me |
---|
8393 | #else |
---|
8394 | char (*f) () = shl_load; |
---|
8395 | #endif |
---|
8396 | #ifdef __cplusplus |
---|
8397 | } |
---|
8398 | #endif |
---|
8399 | |
---|
8400 | int |
---|
8401 | main () |
---|
8402 | { |
---|
8403 | return f != shl_load; |
---|
8404 | ; |
---|
8405 | return 0; |
---|
8406 | } |
---|
8407 | _ACEOF |
---|
8408 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8410 | (eval $ac_link) 2>conftest.er1 |
---|
8411 | ac_status=$? |
---|
8412 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8413 | rm -f conftest.er1 |
---|
8414 | cat conftest.err >&5 |
---|
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8416 | (exit $ac_status); } && |
---|
8417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8419 | (eval $ac_try) 2>&5 |
---|
8420 | ac_status=$? |
---|
8421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8422 | (exit $ac_status); }; } && |
---|
8423 | { ac_try='test -s conftest$ac_exeext' |
---|
8424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8425 | (eval $ac_try) 2>&5 |
---|
8426 | ac_status=$? |
---|
8427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8428 | (exit $ac_status); }; }; then |
---|
8429 | ac_cv_func_shl_load=yes |
---|
8430 | else |
---|
8431 | echo "$as_me: failed program was:" >&5 |
---|
8432 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8433 | |
---|
8434 | ac_cv_func_shl_load=no |
---|
8435 | fi |
---|
8436 | rm -f conftest.err conftest.$ac_objext \ |
---|
8437 | conftest$ac_exeext conftest.$ac_ext |
---|
8438 | fi |
---|
8439 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
8440 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
8441 | if test $ac_cv_func_shl_load = yes; then |
---|
8442 | lt_cv_dlopen="shl_load" |
---|
8443 | else |
---|
8444 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
8445 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
8446 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
8447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8448 | else |
---|
8449 | ac_check_lib_save_LIBS=$LIBS |
---|
8450 | LIBS="-ldld $LIBS" |
---|
8451 | cat >conftest.$ac_ext <<_ACEOF |
---|
8452 | /* confdefs.h. */ |
---|
8453 | _ACEOF |
---|
8454 | cat confdefs.h >>conftest.$ac_ext |
---|
8455 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8456 | /* end confdefs.h. */ |
---|
8457 | |
---|
8458 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8459 | #ifdef __cplusplus |
---|
8460 | extern "C" |
---|
8461 | #endif |
---|
8462 | /* We use char because int might match the return type of a gcc2 |
---|
8463 | builtin and then its argument prototype would still apply. */ |
---|
8464 | char shl_load (); |
---|
8465 | int |
---|
8466 | main () |
---|
8467 | { |
---|
8468 | shl_load (); |
---|
8469 | ; |
---|
8470 | return 0; |
---|
8471 | } |
---|
8472 | _ACEOF |
---|
8473 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8475 | (eval $ac_link) 2>conftest.er1 |
---|
8476 | ac_status=$? |
---|
8477 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8478 | rm -f conftest.er1 |
---|
8479 | cat conftest.err >&5 |
---|
8480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8481 | (exit $ac_status); } && |
---|
8482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8484 | (eval $ac_try) 2>&5 |
---|
8485 | ac_status=$? |
---|
8486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8487 | (exit $ac_status); }; } && |
---|
8488 | { ac_try='test -s conftest$ac_exeext' |
---|
8489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8490 | (eval $ac_try) 2>&5 |
---|
8491 | ac_status=$? |
---|
8492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8493 | (exit $ac_status); }; }; then |
---|
8494 | ac_cv_lib_dld_shl_load=yes |
---|
8495 | else |
---|
8496 | echo "$as_me: failed program was:" >&5 |
---|
8497 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8498 | |
---|
8499 | ac_cv_lib_dld_shl_load=no |
---|
8500 | fi |
---|
8501 | rm -f conftest.err conftest.$ac_objext \ |
---|
8502 | conftest$ac_exeext conftest.$ac_ext |
---|
8503 | LIBS=$ac_check_lib_save_LIBS |
---|
8504 | fi |
---|
8505 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
8506 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
8507 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
8508 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
8509 | else |
---|
8510 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
8511 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
8512 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
8513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8514 | else |
---|
8515 | cat >conftest.$ac_ext <<_ACEOF |
---|
8516 | /* confdefs.h. */ |
---|
8517 | _ACEOF |
---|
8518 | cat confdefs.h >>conftest.$ac_ext |
---|
8519 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8520 | /* end confdefs.h. */ |
---|
8521 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
8522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
8523 | #define dlopen innocuous_dlopen |
---|
8524 | |
---|
8525 | /* System header to define __stub macros and hopefully few prototypes, |
---|
8526 | which can conflict with char dlopen (); below. |
---|
8527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8528 | <limits.h> exists even on freestanding compilers. */ |
---|
8529 | |
---|
8530 | #ifdef __STDC__ |
---|
8531 | # include <limits.h> |
---|
8532 | #else |
---|
8533 | # include <assert.h> |
---|
8534 | #endif |
---|
8535 | |
---|
8536 | #undef dlopen |
---|
8537 | |
---|
8538 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8539 | #ifdef __cplusplus |
---|
8540 | extern "C" |
---|
8541 | { |
---|
8542 | #endif |
---|
8543 | /* We use char because int might match the return type of a gcc2 |
---|
8544 | builtin and then its argument prototype would still apply. */ |
---|
8545 | char dlopen (); |
---|
8546 | /* The GNU C library defines this for functions which it implements |
---|
8547 | to always fail with ENOSYS. Some functions are actually named |
---|
8548 | something starting with __ and the normal name is an alias. */ |
---|
8549 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
8550 | choke me |
---|
8551 | #else |
---|
8552 | char (*f) () = dlopen; |
---|
8553 | #endif |
---|
8554 | #ifdef __cplusplus |
---|
8555 | } |
---|
8556 | #endif |
---|
8557 | |
---|
8558 | int |
---|
8559 | main () |
---|
8560 | { |
---|
8561 | return f != dlopen; |
---|
8562 | ; |
---|
8563 | return 0; |
---|
8564 | } |
---|
8565 | _ACEOF |
---|
8566 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8568 | (eval $ac_link) 2>conftest.er1 |
---|
8569 | ac_status=$? |
---|
8570 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8571 | rm -f conftest.er1 |
---|
8572 | cat conftest.err >&5 |
---|
8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8574 | (exit $ac_status); } && |
---|
8575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8577 | (eval $ac_try) 2>&5 |
---|
8578 | ac_status=$? |
---|
8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8580 | (exit $ac_status); }; } && |
---|
8581 | { ac_try='test -s conftest$ac_exeext' |
---|
8582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8583 | (eval $ac_try) 2>&5 |
---|
8584 | ac_status=$? |
---|
8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8586 | (exit $ac_status); }; }; then |
---|
8587 | ac_cv_func_dlopen=yes |
---|
8588 | else |
---|
8589 | echo "$as_me: failed program was:" >&5 |
---|
8590 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8591 | |
---|
8592 | ac_cv_func_dlopen=no |
---|
8593 | fi |
---|
8594 | rm -f conftest.err conftest.$ac_objext \ |
---|
8595 | conftest$ac_exeext conftest.$ac_ext |
---|
8596 | fi |
---|
8597 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
8598 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
8599 | if test $ac_cv_func_dlopen = yes; then |
---|
8600 | lt_cv_dlopen="dlopen" |
---|
8601 | else |
---|
8602 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
8603 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
8604 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
8605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8606 | else |
---|
8607 | ac_check_lib_save_LIBS=$LIBS |
---|
8608 | LIBS="-ldl $LIBS" |
---|
8609 | cat >conftest.$ac_ext <<_ACEOF |
---|
8610 | /* confdefs.h. */ |
---|
8611 | _ACEOF |
---|
8612 | cat confdefs.h >>conftest.$ac_ext |
---|
8613 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8614 | /* end confdefs.h. */ |
---|
8615 | |
---|
8616 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8617 | #ifdef __cplusplus |
---|
8618 | extern "C" |
---|
8619 | #endif |
---|
8620 | /* We use char because int might match the return type of a gcc2 |
---|
8621 | builtin and then its argument prototype would still apply. */ |
---|
8622 | char dlopen (); |
---|
8623 | int |
---|
8624 | main () |
---|
8625 | { |
---|
8626 | dlopen (); |
---|
8627 | ; |
---|
8628 | return 0; |
---|
8629 | } |
---|
8630 | _ACEOF |
---|
8631 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8633 | (eval $ac_link) 2>conftest.er1 |
---|
8634 | ac_status=$? |
---|
8635 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8636 | rm -f conftest.er1 |
---|
8637 | cat conftest.err >&5 |
---|
8638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8639 | (exit $ac_status); } && |
---|
8640 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8642 | (eval $ac_try) 2>&5 |
---|
8643 | ac_status=$? |
---|
8644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8645 | (exit $ac_status); }; } && |
---|
8646 | { ac_try='test -s conftest$ac_exeext' |
---|
8647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8648 | (eval $ac_try) 2>&5 |
---|
8649 | ac_status=$? |
---|
8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8651 | (exit $ac_status); }; }; then |
---|
8652 | ac_cv_lib_dl_dlopen=yes |
---|
8653 | else |
---|
8654 | echo "$as_me: failed program was:" >&5 |
---|
8655 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8656 | |
---|
8657 | ac_cv_lib_dl_dlopen=no |
---|
8658 | fi |
---|
8659 | rm -f conftest.err conftest.$ac_objext \ |
---|
8660 | conftest$ac_exeext conftest.$ac_ext |
---|
8661 | LIBS=$ac_check_lib_save_LIBS |
---|
8662 | fi |
---|
8663 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
8664 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
8665 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
8666 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
8667 | else |
---|
8668 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
8669 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
8670 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
8671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8672 | else |
---|
8673 | ac_check_lib_save_LIBS=$LIBS |
---|
8674 | LIBS="-lsvld $LIBS" |
---|
8675 | cat >conftest.$ac_ext <<_ACEOF |
---|
8676 | /* confdefs.h. */ |
---|
8677 | _ACEOF |
---|
8678 | cat confdefs.h >>conftest.$ac_ext |
---|
8679 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8680 | /* end confdefs.h. */ |
---|
8681 | |
---|
8682 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8683 | #ifdef __cplusplus |
---|
8684 | extern "C" |
---|
8685 | #endif |
---|
8686 | /* We use char because int might match the return type of a gcc2 |
---|
8687 | builtin and then its argument prototype would still apply. */ |
---|
8688 | char dlopen (); |
---|
8689 | int |
---|
8690 | main () |
---|
8691 | { |
---|
8692 | dlopen (); |
---|
8693 | ; |
---|
8694 | return 0; |
---|
8695 | } |
---|
8696 | _ACEOF |
---|
8697 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8699 | (eval $ac_link) 2>conftest.er1 |
---|
8700 | ac_status=$? |
---|
8701 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8702 | rm -f conftest.er1 |
---|
8703 | cat conftest.err >&5 |
---|
8704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8705 | (exit $ac_status); } && |
---|
8706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8708 | (eval $ac_try) 2>&5 |
---|
8709 | ac_status=$? |
---|
8710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8711 | (exit $ac_status); }; } && |
---|
8712 | { ac_try='test -s conftest$ac_exeext' |
---|
8713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8714 | (eval $ac_try) 2>&5 |
---|
8715 | ac_status=$? |
---|
8716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8717 | (exit $ac_status); }; }; then |
---|
8718 | ac_cv_lib_svld_dlopen=yes |
---|
8719 | else |
---|
8720 | echo "$as_me: failed program was:" >&5 |
---|
8721 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8722 | |
---|
8723 | ac_cv_lib_svld_dlopen=no |
---|
8724 | fi |
---|
8725 | rm -f conftest.err conftest.$ac_objext \ |
---|
8726 | conftest$ac_exeext conftest.$ac_ext |
---|
8727 | LIBS=$ac_check_lib_save_LIBS |
---|
8728 | fi |
---|
8729 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
8730 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
8731 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
8732 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
8733 | else |
---|
8734 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
8735 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
8736 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
8737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8738 | else |
---|
8739 | ac_check_lib_save_LIBS=$LIBS |
---|
8740 | LIBS="-ldld $LIBS" |
---|
8741 | cat >conftest.$ac_ext <<_ACEOF |
---|
8742 | /* confdefs.h. */ |
---|
8743 | _ACEOF |
---|
8744 | cat confdefs.h >>conftest.$ac_ext |
---|
8745 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8746 | /* end confdefs.h. */ |
---|
8747 | |
---|
8748 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8749 | #ifdef __cplusplus |
---|
8750 | extern "C" |
---|
8751 | #endif |
---|
8752 | /* We use char because int might match the return type of a gcc2 |
---|
8753 | builtin and then its argument prototype would still apply. */ |
---|
8754 | char dld_link (); |
---|
8755 | int |
---|
8756 | main () |
---|
8757 | { |
---|
8758 | dld_link (); |
---|
8759 | ; |
---|
8760 | return 0; |
---|
8761 | } |
---|
8762 | _ACEOF |
---|
8763 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8765 | (eval $ac_link) 2>conftest.er1 |
---|
8766 | ac_status=$? |
---|
8767 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8768 | rm -f conftest.er1 |
---|
8769 | cat conftest.err >&5 |
---|
8770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8771 | (exit $ac_status); } && |
---|
8772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8774 | (eval $ac_try) 2>&5 |
---|
8775 | ac_status=$? |
---|
8776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8777 | (exit $ac_status); }; } && |
---|
8778 | { ac_try='test -s conftest$ac_exeext' |
---|
8779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8780 | (eval $ac_try) 2>&5 |
---|
8781 | ac_status=$? |
---|
8782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8783 | (exit $ac_status); }; }; then |
---|
8784 | ac_cv_lib_dld_dld_link=yes |
---|
8785 | else |
---|
8786 | echo "$as_me: failed program was:" >&5 |
---|
8787 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8788 | |
---|
8789 | ac_cv_lib_dld_dld_link=no |
---|
8790 | fi |
---|
8791 | rm -f conftest.err conftest.$ac_objext \ |
---|
8792 | conftest$ac_exeext conftest.$ac_ext |
---|
8793 | LIBS=$ac_check_lib_save_LIBS |
---|
8794 | fi |
---|
8795 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
8796 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
8797 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
8798 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
8799 | fi |
---|
8800 | |
---|
8801 | |
---|
8802 | fi |
---|
8803 | |
---|
8804 | |
---|
8805 | fi |
---|
8806 | |
---|
8807 | |
---|
8808 | fi |
---|
8809 | |
---|
8810 | |
---|
8811 | fi |
---|
8812 | |
---|
8813 | |
---|
8814 | fi |
---|
8815 | |
---|
8816 | ;; |
---|
8817 | esac |
---|
8818 | |
---|
8819 | if test "x$lt_cv_dlopen" != xno; then |
---|
8820 | enable_dlopen=yes |
---|
8821 | else |
---|
8822 | enable_dlopen=no |
---|
8823 | fi |
---|
8824 | |
---|
8825 | case $lt_cv_dlopen in |
---|
8826 | dlopen) |
---|
8827 | save_CPPFLAGS="$CPPFLAGS" |
---|
8828 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
8829 | |
---|
8830 | save_LDFLAGS="$LDFLAGS" |
---|
8831 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
8832 | |
---|
8833 | save_LIBS="$LIBS" |
---|
8834 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
8835 | |
---|
8836 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
8837 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
8838 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
8839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8840 | else |
---|
8841 | if test "$cross_compiling" = yes; then : |
---|
8842 | lt_cv_dlopen_self=cross |
---|
8843 | else |
---|
8844 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
8845 | lt_status=$lt_dlunknown |
---|
8846 | cat > conftest.$ac_ext <<EOF |
---|
8847 | #line __oline__ "configure" |
---|
8848 | #include "confdefs.h" |
---|
8849 | |
---|
8850 | #if HAVE_DLFCN_H |
---|
8851 | #include <dlfcn.h> |
---|
8852 | #endif |
---|
8853 | |
---|
8854 | #include <stdio.h> |
---|
8855 | |
---|
8856 | #ifdef RTLD_GLOBAL |
---|
8857 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
8858 | #else |
---|
8859 | # ifdef DL_GLOBAL |
---|
8860 | # define LT_DLGLOBAL DL_GLOBAL |
---|
8861 | # else |
---|
8862 | # define LT_DLGLOBAL 0 |
---|
8863 | # endif |
---|
8864 | #endif |
---|
8865 | |
---|
8866 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
8867 | find out it does not work in some platform. */ |
---|
8868 | #ifndef LT_DLLAZY_OR_NOW |
---|
8869 | # ifdef RTLD_LAZY |
---|
8870 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
8871 | # else |
---|
8872 | # ifdef DL_LAZY |
---|
8873 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
8874 | # else |
---|
8875 | # ifdef RTLD_NOW |
---|
8876 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
8877 | # else |
---|
8878 | # ifdef DL_NOW |
---|
8879 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
8880 | # else |
---|
8881 | # define LT_DLLAZY_OR_NOW 0 |
---|
8882 | # endif |
---|
8883 | # endif |
---|
8884 | # endif |
---|
8885 | # endif |
---|
8886 | #endif |
---|
8887 | |
---|
8888 | #ifdef __cplusplus |
---|
8889 | extern "C" void exit (int); |
---|
8890 | #endif |
---|
8891 | |
---|
8892 | void fnord() { int i=42;} |
---|
8893 | int main () |
---|
8894 | { |
---|
8895 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
8896 | int status = $lt_dlunknown; |
---|
8897 | |
---|
8898 | if (self) |
---|
8899 | { |
---|
8900 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
8901 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
8902 | /* dlclose (self); */ |
---|
8903 | } |
---|
8904 | |
---|
8905 | exit (status); |
---|
8906 | } |
---|
8907 | EOF |
---|
8908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8909 | (eval $ac_link) 2>&5 |
---|
8910 | ac_status=$? |
---|
8911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8912 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
8913 | (./conftest; exit; ) 2>/dev/null |
---|
8914 | lt_status=$? |
---|
8915 | case x$lt_status in |
---|
8916 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
8917 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
8918 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
8919 | esac |
---|
8920 | else : |
---|
8921 | # compilation failed |
---|
8922 | lt_cv_dlopen_self=no |
---|
8923 | fi |
---|
8924 | fi |
---|
8925 | rm -fr conftest* |
---|
8926 | |
---|
8927 | |
---|
8928 | fi |
---|
8929 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
8930 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
8931 | |
---|
8932 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
8933 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
8934 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
8935 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
8936 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
8937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8938 | else |
---|
8939 | if test "$cross_compiling" = yes; then : |
---|
8940 | lt_cv_dlopen_self_static=cross |
---|
8941 | else |
---|
8942 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
8943 | lt_status=$lt_dlunknown |
---|
8944 | cat > conftest.$ac_ext <<EOF |
---|
8945 | #line __oline__ "configure" |
---|
8946 | #include "confdefs.h" |
---|
8947 | |
---|
8948 | #if HAVE_DLFCN_H |
---|
8949 | #include <dlfcn.h> |
---|
8950 | #endif |
---|
8951 | |
---|
8952 | #include <stdio.h> |
---|
8953 | |
---|
8954 | #ifdef RTLD_GLOBAL |
---|
8955 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
8956 | #else |
---|
8957 | # ifdef DL_GLOBAL |
---|
8958 | # define LT_DLGLOBAL DL_GLOBAL |
---|
8959 | # else |
---|
8960 | # define LT_DLGLOBAL 0 |
---|
8961 | # endif |
---|
8962 | #endif |
---|
8963 | |
---|
8964 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
8965 | find out it does not work in some platform. */ |
---|
8966 | #ifndef LT_DLLAZY_OR_NOW |
---|
8967 | # ifdef RTLD_LAZY |
---|
8968 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
8969 | # else |
---|
8970 | # ifdef DL_LAZY |
---|
8971 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
8972 | # else |
---|
8973 | # ifdef RTLD_NOW |
---|
8974 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
8975 | # else |
---|
8976 | # ifdef DL_NOW |
---|
8977 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
8978 | # else |
---|
8979 | # define LT_DLLAZY_OR_NOW 0 |
---|
8980 | # endif |
---|
8981 | # endif |
---|
8982 | # endif |
---|
8983 | # endif |
---|
8984 | #endif |
---|
8985 | |
---|
8986 | #ifdef __cplusplus |
---|
8987 | extern "C" void exit (int); |
---|
8988 | #endif |
---|
8989 | |
---|
8990 | void fnord() { int i=42;} |
---|
8991 | int main () |
---|
8992 | { |
---|
8993 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
8994 | int status = $lt_dlunknown; |
---|
8995 | |
---|
8996 | if (self) |
---|
8997 | { |
---|
8998 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
8999 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
9000 | /* dlclose (self); */ |
---|
9001 | } |
---|
9002 | |
---|
9003 | exit (status); |
---|
9004 | } |
---|
9005 | EOF |
---|
9006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9007 | (eval $ac_link) 2>&5 |
---|
9008 | ac_status=$? |
---|
9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9010 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
9011 | (./conftest; exit; ) 2>/dev/null |
---|
9012 | lt_status=$? |
---|
9013 | case x$lt_status in |
---|
9014 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
9015 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
9016 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
9017 | esac |
---|
9018 | else : |
---|
9019 | # compilation failed |
---|
9020 | lt_cv_dlopen_self_static=no |
---|
9021 | fi |
---|
9022 | fi |
---|
9023 | rm -fr conftest* |
---|
9024 | |
---|
9025 | |
---|
9026 | fi |
---|
9027 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
9028 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
9029 | fi |
---|
9030 | |
---|
9031 | CPPFLAGS="$save_CPPFLAGS" |
---|
9032 | LDFLAGS="$save_LDFLAGS" |
---|
9033 | LIBS="$save_LIBS" |
---|
9034 | ;; |
---|
9035 | esac |
---|
9036 | |
---|
9037 | case $lt_cv_dlopen_self in |
---|
9038 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
9039 | *) enable_dlopen_self=unknown ;; |
---|
9040 | esac |
---|
9041 | |
---|
9042 | case $lt_cv_dlopen_self_static in |
---|
9043 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
9044 | *) enable_dlopen_self_static=unknown ;; |
---|
9045 | esac |
---|
9046 | fi |
---|
9047 | |
---|
9048 | |
---|
9049 | # Report which librarie types wil actually be built |
---|
9050 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
9051 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
9052 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
9053 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
9054 | |
---|
9055 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
9056 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
9057 | test "$can_build_shared" = "no" && enable_shared=no |
---|
9058 | |
---|
9059 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
9060 | # are all built from PIC. |
---|
9061 | case "$host_os" in |
---|
9062 | aix3*) |
---|
9063 | test "$enable_shared" = yes && enable_static=no |
---|
9064 | if test -n "$RANLIB"; then |
---|
9065 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
9066 | postinstall_cmds='$RANLIB $lib' |
---|
9067 | fi |
---|
9068 | ;; |
---|
9069 | |
---|
9070 | aix4* | aix5*) |
---|
9071 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
9072 | test "$enable_shared" = yes && enable_static=no |
---|
9073 | fi |
---|
9074 | ;; |
---|
9075 | darwin* | rhapsody*) |
---|
9076 | if test "$GCC" = yes; then |
---|
9077 | archive_cmds_need_lc=no |
---|
9078 | case "$host_os" in |
---|
9079 | rhapsody* | darwin1.[012]) |
---|
9080 | allow_undefined_flag='-undefined suppress' |
---|
9081 | ;; |
---|
9082 | *) # Darwin 1.3 on |
---|
9083 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
9084 | allow_undefined_flag='-flat_namespace -undefined suppress' |
---|
9085 | else |
---|
9086 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
9087 | 10.[012]) |
---|
9088 | allow_undefined_flag='-flat_namespace -undefined suppress' |
---|
9089 | ;; |
---|
9090 | 10.*) |
---|
9091 | allow_undefined_flag='-undefined dynamic_lookup' |
---|
9092 | ;; |
---|
9093 | esac |
---|
9094 | fi |
---|
9095 | ;; |
---|
9096 | esac |
---|
9097 | output_verbose_link_cmd='echo' |
---|
9098 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
---|
9099 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
9100 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
9101 | 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}' |
---|
9102 | 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}' |
---|
9103 | hardcode_direct=no |
---|
9104 | hardcode_automatic=yes |
---|
9105 | hardcode_shlibpath_var=unsupported |
---|
9106 | whole_archive_flag_spec='-all_load $convenience' |
---|
9107 | link_all_deplibs=yes |
---|
9108 | else |
---|
9109 | ld_shlibs=no |
---|
9110 | fi |
---|
9111 | ;; |
---|
9112 | esac |
---|
9113 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
9114 | echo "${ECHO_T}$enable_shared" >&6 |
---|
9115 | |
---|
9116 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
9117 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
---|
9118 | # Make sure either enable_shared or enable_static is yes. |
---|
9119 | test "$enable_shared" = yes || enable_static=yes |
---|
9120 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
9121 | echo "${ECHO_T}$enable_static" >&6 |
---|
9122 | |
---|
9123 | # The else clause should only fire when bootstrapping the |
---|
9124 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
9125 | # with your package, and you will get complaints that there are |
---|
9126 | # no rules to generate ltmain.sh. |
---|
9127 | if test -f "$ltmain"; then |
---|
9128 | # See if we are running on zsh, and set the options which allow our commands through |
---|
9129 | # without removal of \ escapes. |
---|
9130 | if test -n "${ZSH_VERSION+set}" ; then |
---|
9131 | setopt NO_GLOB_SUBST |
---|
9132 | fi |
---|
9133 | # Now quote all the things that may contain metacharacters while being |
---|
9134 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
9135 | # variables and quote the copies for generation of the libtool script. |
---|
9136 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
9137 | SED SHELL STRIP \ |
---|
9138 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
9139 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
9140 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
9141 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
9142 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
9143 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
9144 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
9145 | compiler \ |
---|
9146 | CC \ |
---|
9147 | LD \ |
---|
9148 | lt_prog_compiler_wl \ |
---|
9149 | lt_prog_compiler_pic \ |
---|
9150 | lt_prog_compiler_static \ |
---|
9151 | lt_prog_compiler_no_builtin_flag \ |
---|
9152 | export_dynamic_flag_spec \ |
---|
9153 | thread_safe_flag_spec \ |
---|
9154 | whole_archive_flag_spec \ |
---|
9155 | enable_shared_with_static_runtimes \ |
---|
9156 | old_archive_cmds \ |
---|
9157 | old_archive_from_new_cmds \ |
---|
9158 | predep_objects \ |
---|
9159 | postdep_objects \ |
---|
9160 | predeps \ |
---|
9161 | postdeps \ |
---|
9162 | compiler_lib_search_path \ |
---|
9163 | archive_cmds \ |
---|
9164 | archive_expsym_cmds \ |
---|
9165 | postinstall_cmds \ |
---|
9166 | postuninstall_cmds \ |
---|
9167 | old_archive_from_expsyms_cmds \ |
---|
9168 | allow_undefined_flag \ |
---|
9169 | no_undefined_flag \ |
---|
9170 | export_symbols_cmds \ |
---|
9171 | hardcode_libdir_flag_spec \ |
---|
9172 | hardcode_libdir_flag_spec_ld \ |
---|
9173 | hardcode_libdir_separator \ |
---|
9174 | hardcode_automatic \ |
---|
9175 | module_cmds \ |
---|
9176 | module_expsym_cmds \ |
---|
9177 | lt_cv_prog_compiler_c_o \ |
---|
9178 | exclude_expsyms \ |
---|
9179 | include_expsyms; do |
---|
9180 | |
---|
9181 | case $var in |
---|
9182 | old_archive_cmds | \ |
---|
9183 | old_archive_from_new_cmds | \ |
---|
9184 | archive_cmds | \ |
---|
9185 | archive_expsym_cmds | \ |
---|
9186 | module_cmds | \ |
---|
9187 | module_expsym_cmds | \ |
---|
9188 | old_archive_from_expsyms_cmds | \ |
---|
9189 | export_symbols_cmds | \ |
---|
9190 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
9191 | postinstall_cmds | postuninstall_cmds | \ |
---|
9192 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
9193 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
9194 | # Double-quote double-evaled strings. |
---|
9195 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
9196 | ;; |
---|
9197 | *) |
---|
9198 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
9199 | ;; |
---|
9200 | esac |
---|
9201 | done |
---|
9202 | |
---|
9203 | case $lt_echo in |
---|
9204 | *'\$0 --fallback-echo"') |
---|
9205 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
9206 | ;; |
---|
9207 | esac |
---|
9208 | |
---|
9209 | cfgfile="${ofile}T" |
---|
9210 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
---|
9211 | $rm -f "$cfgfile" |
---|
9212 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
---|
9213 | echo "$as_me: creating $ofile" >&6;} |
---|
9214 | |
---|
9215 | cat <<__EOF__ >> "$cfgfile" |
---|
9216 | #! $SHELL |
---|
9217 | |
---|
9218 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
9219 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
9220 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
9221 | # |
---|
9222 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
---|
9223 | # Free Software Foundation, Inc. |
---|
9224 | # |
---|
9225 | # This file is part of GNU Libtool: |
---|
9226 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
9227 | # |
---|
9228 | # This program is free software; you can redistribute it and/or modify |
---|
9229 | # it under the terms of the GNU General Public License as published by |
---|
9230 | # the Free Software Foundation; either version 2 of the License, or |
---|
9231 | # (at your option) any later version. |
---|
9232 | # |
---|
9233 | # This program is distributed in the hope that it will be useful, but |
---|
9234 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
9235 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
9236 | # General Public License for more details. |
---|
9237 | # |
---|
9238 | # You should have received a copy of the GNU General Public License |
---|
9239 | # along with this program; if not, write to the Free Software |
---|
9240 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
9241 | # |
---|
9242 | # As a special exception to the GNU General Public License, if you |
---|
9243 | # distribute this file as part of a program that contains a |
---|
9244 | # configuration script generated by Autoconf, you may include it under |
---|
9245 | # the same distribution terms that you use for the rest of that program. |
---|
9246 | |
---|
9247 | # A sed program that does not truncate output. |
---|
9248 | SED=$lt_SED |
---|
9249 | |
---|
9250 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
9251 | Xsed="$SED -e s/^X//" |
---|
9252 | |
---|
9253 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
9254 | # if CDPATH is set. |
---|
9255 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
---|
9256 | |
---|
9257 | # The names of the tagged configurations supported by this script. |
---|
9258 | available_tags= |
---|
9259 | |
---|
9260 | # ### BEGIN LIBTOOL CONFIG |
---|
9261 | |
---|
9262 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
9263 | |
---|
9264 | # Shell to use when invoking shell scripts. |
---|
9265 | SHELL=$lt_SHELL |
---|
9266 | |
---|
9267 | # Whether or not to build shared libraries. |
---|
9268 | build_libtool_libs=$enable_shared |
---|
9269 | |
---|
9270 | # Whether or not to build static libraries. |
---|
9271 | build_old_libs=$enable_static |
---|
9272 | |
---|
9273 | # Whether or not to add -lc for building shared libraries. |
---|
9274 | build_libtool_need_lc=$archive_cmds_need_lc |
---|
9275 | |
---|
9276 | # Whether or not to disallow shared libs when runtime libs are static |
---|
9277 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
---|
9278 | |
---|
9279 | # Whether or not to optimize for fast installation. |
---|
9280 | fast_install=$enable_fast_install |
---|
9281 | |
---|
9282 | # The host system. |
---|
9283 | host_alias=$host_alias |
---|
9284 | host=$host |
---|
9285 | |
---|
9286 | # An echo program that does not interpret backslashes. |
---|
9287 | echo=$lt_echo |
---|
9288 | |
---|
9289 | # The archiver. |
---|
9290 | AR=$lt_AR |
---|
9291 | AR_FLAGS=$lt_AR_FLAGS |
---|
9292 | |
---|
9293 | # A C compiler. |
---|
9294 | LTCC=$lt_LTCC |
---|
9295 | |
---|
9296 | # A language-specific compiler. |
---|
9297 | CC=$lt_compiler |
---|
9298 | |
---|
9299 | # Is the compiler the GNU C compiler? |
---|
9300 | with_gcc=$GCC |
---|
9301 | |
---|
9302 | # An ERE matcher. |
---|
9303 | EGREP=$lt_EGREP |
---|
9304 | |
---|
9305 | # The linker used to build libraries. |
---|
9306 | LD=$lt_LD |
---|
9307 | |
---|
9308 | # Whether we need hard or soft links. |
---|
9309 | LN_S=$lt_LN_S |
---|
9310 | |
---|
9311 | # A BSD-compatible nm program. |
---|
9312 | NM=$lt_NM |
---|
9313 | |
---|
9314 | # A symbol stripping program |
---|
9315 | STRIP=$lt_STRIP |
---|
9316 | |
---|
9317 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
9318 | MAGIC_CMD=$MAGIC_CMD |
---|
9319 | |
---|
9320 | # Used on cygwin: DLL creation program. |
---|
9321 | DLLTOOL="$DLLTOOL" |
---|
9322 | |
---|
9323 | # Used on cygwin: object dumper. |
---|
9324 | OBJDUMP="$OBJDUMP" |
---|
9325 | |
---|
9326 | # Used on cygwin: assembler. |
---|
9327 | AS="$AS" |
---|
9328 | |
---|
9329 | # The name of the directory that contains temporary libtool files. |
---|
9330 | objdir=$objdir |
---|
9331 | |
---|
9332 | # How to create reloadable object files. |
---|
9333 | reload_flag=$lt_reload_flag |
---|
9334 | reload_cmds=$lt_reload_cmds |
---|
9335 | |
---|
9336 | # How to pass a linker flag through the compiler. |
---|
9337 | wl=$lt_lt_prog_compiler_wl |
---|
9338 | |
---|
9339 | # Object file suffix (normally "o"). |
---|
9340 | objext="$ac_objext" |
---|
9341 | |
---|
9342 | # Old archive suffix (normally "a"). |
---|
9343 | libext="$libext" |
---|
9344 | |
---|
9345 | # Shared library suffix (normally ".so"). |
---|
9346 | shrext_cmds='$shrext_cmds' |
---|
9347 | |
---|
9348 | # Executable file suffix (normally ""). |
---|
9349 | exeext="$exeext" |
---|
9350 | |
---|
9351 | # Additional compiler flags for building library objects. |
---|
9352 | pic_flag=$lt_lt_prog_compiler_pic |
---|
9353 | pic_mode=$pic_mode |
---|
9354 | |
---|
9355 | # What is the maximum length of a command? |
---|
9356 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
9357 | |
---|
9358 | # Does compiler simultaneously support -c and -o options? |
---|
9359 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
---|
9360 | |
---|
9361 | # Must we lock files when doing compilation ? |
---|
9362 | need_locks=$lt_need_locks |
---|
9363 | |
---|
9364 | # Do we need the lib prefix for modules? |
---|
9365 | need_lib_prefix=$need_lib_prefix |
---|
9366 | |
---|
9367 | # Do we need a version for libraries? |
---|
9368 | need_version=$need_version |
---|
9369 | |
---|
9370 | # Whether dlopen is supported. |
---|
9371 | dlopen_support=$enable_dlopen |
---|
9372 | |
---|
9373 | # Whether dlopen of programs is supported. |
---|
9374 | dlopen_self=$enable_dlopen_self |
---|
9375 | |
---|
9376 | # Whether dlopen of statically linked programs is supported. |
---|
9377 | dlopen_self_static=$enable_dlopen_self_static |
---|
9378 | |
---|
9379 | # Compiler flag to prevent dynamic linking. |
---|
9380 | link_static_flag=$lt_lt_prog_compiler_static |
---|
9381 | |
---|
9382 | # Compiler flag to turn off builtin functions. |
---|
9383 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
---|
9384 | |
---|
9385 | # Compiler flag to allow reflexive dlopens. |
---|
9386 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
---|
9387 | |
---|
9388 | # Compiler flag to generate shared objects directly from archives. |
---|
9389 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
---|
9390 | |
---|
9391 | # Compiler flag to generate thread-safe objects. |
---|
9392 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
---|
9393 | |
---|
9394 | # Library versioning type. |
---|
9395 | version_type=$version_type |
---|
9396 | |
---|
9397 | # Format of library name prefix. |
---|
9398 | libname_spec=$lt_libname_spec |
---|
9399 | |
---|
9400 | # List of archive names. First name is the real one, the rest are links. |
---|
9401 | # The last name is the one that the linker finds with -lNAME. |
---|
9402 | library_names_spec=$lt_library_names_spec |
---|
9403 | |
---|
9404 | # The coded name of the library, if different from the real name. |
---|
9405 | soname_spec=$lt_soname_spec |
---|
9406 | |
---|
9407 | # Commands used to build and install an old-style archive. |
---|
9408 | RANLIB=$lt_RANLIB |
---|
9409 | old_archive_cmds=$lt_old_archive_cmds |
---|
9410 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
9411 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
9412 | |
---|
9413 | # Create an old-style archive from a shared archive. |
---|
9414 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
---|
9415 | |
---|
9416 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
9417 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
---|
9418 | |
---|
9419 | # Commands used to build and install a shared archive. |
---|
9420 | archive_cmds=$lt_archive_cmds |
---|
9421 | archive_expsym_cmds=$lt_archive_expsym_cmds |
---|
9422 | postinstall_cmds=$lt_postinstall_cmds |
---|
9423 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
9424 | |
---|
9425 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
9426 | module_cmds=$lt_module_cmds |
---|
9427 | module_expsym_cmds=$lt_module_expsym_cmds |
---|
9428 | |
---|
9429 | # Commands to strip libraries. |
---|
9430 | old_striplib=$lt_old_striplib |
---|
9431 | striplib=$lt_striplib |
---|
9432 | |
---|
9433 | # Dependencies to place before the objects being linked to create a |
---|
9434 | # shared library. |
---|
9435 | predep_objects=$lt_predep_objects |
---|
9436 | |
---|
9437 | # Dependencies to place after the objects being linked to create a |
---|
9438 | # shared library. |
---|
9439 | postdep_objects=$lt_postdep_objects |
---|
9440 | |
---|
9441 | # Dependencies to place before the objects being linked to create a |
---|
9442 | # shared library. |
---|
9443 | predeps=$lt_predeps |
---|
9444 | |
---|
9445 | # Dependencies to place after the objects being linked to create a |
---|
9446 | # shared library. |
---|
9447 | postdeps=$lt_postdeps |
---|
9448 | |
---|
9449 | # The library search path used internally by the compiler when linking |
---|
9450 | # a shared library. |
---|
9451 | compiler_lib_search_path=$lt_compiler_lib_search_path |
---|
9452 | |
---|
9453 | # Method to check whether dependent libraries are shared objects. |
---|
9454 | deplibs_check_method=$lt_deplibs_check_method |
---|
9455 | |
---|
9456 | # Command to use when deplibs_check_method == file_magic. |
---|
9457 | file_magic_cmd=$lt_file_magic_cmd |
---|
9458 | |
---|
9459 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
9460 | allow_undefined_flag=$lt_allow_undefined_flag |
---|
9461 | |
---|
9462 | # Flag that forces no undefined symbols. |
---|
9463 | no_undefined_flag=$lt_no_undefined_flag |
---|
9464 | |
---|
9465 | # Commands used to finish a libtool library installation in a directory. |
---|
9466 | finish_cmds=$lt_finish_cmds |
---|
9467 | |
---|
9468 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
9469 | finish_eval=$lt_finish_eval |
---|
9470 | |
---|
9471 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
9472 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
9473 | |
---|
9474 | # Transform the output of nm in a proper C declaration |
---|
9475 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
9476 | |
---|
9477 | # Transform the output of nm in a C name address pair |
---|
9478 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
9479 | |
---|
9480 | # This is the shared library runtime path variable. |
---|
9481 | runpath_var=$runpath_var |
---|
9482 | |
---|
9483 | # This is the shared library path variable. |
---|
9484 | shlibpath_var=$shlibpath_var |
---|
9485 | |
---|
9486 | # Is shlibpath searched before the hard-coded library search path? |
---|
9487 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
9488 | |
---|
9489 | # How to hardcode a shared library path into an executable. |
---|
9490 | hardcode_action=$hardcode_action |
---|
9491 | |
---|
9492 | # Whether we should hardcode library paths into libraries. |
---|
9493 | hardcode_into_libs=$hardcode_into_libs |
---|
9494 | |
---|
9495 | # Flag to hardcode \$libdir into a binary during linking. |
---|
9496 | # This must work even if \$libdir does not exist. |
---|
9497 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
---|
9498 | |
---|
9499 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
9500 | # a binary during linking. This must work even if \$libdir does |
---|
9501 | # not exist. |
---|
9502 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
---|
9503 | |
---|
9504 | # Whether we need a single -rpath flag with a separated argument. |
---|
9505 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
---|
9506 | |
---|
9507 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
9508 | # resulting binary. |
---|
9509 | hardcode_direct=$hardcode_direct |
---|
9510 | |
---|
9511 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
9512 | # resulting binary. |
---|
9513 | hardcode_minus_L=$hardcode_minus_L |
---|
9514 | |
---|
9515 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
9516 | # the resulting binary. |
---|
9517 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
---|
9518 | |
---|
9519 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
9520 | # and all subsequent libraries and executables linked against it. |
---|
9521 | hardcode_automatic=$hardcode_automatic |
---|
9522 | |
---|
9523 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
9524 | # restored at relink time. |
---|
9525 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
9526 | |
---|
9527 | # Whether libtool must link a program against all its dependency libraries. |
---|
9528 | link_all_deplibs=$link_all_deplibs |
---|
9529 | |
---|
9530 | # Compile-time system search path for libraries |
---|
9531 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
9532 | |
---|
9533 | # Run-time system search path for libraries |
---|
9534 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
9535 | |
---|
9536 | # Fix the shell variable \$srcfile for the compiler. |
---|
9537 | fix_srcfile_path="$fix_srcfile_path" |
---|
9538 | |
---|
9539 | # Set to yes if exported symbols are required. |
---|
9540 | always_export_symbols=$always_export_symbols |
---|
9541 | |
---|
9542 | # The commands to list exported symbols. |
---|
9543 | export_symbols_cmds=$lt_export_symbols_cmds |
---|
9544 | |
---|
9545 | # The commands to extract the exported symbol list from a shared archive. |
---|
9546 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
9547 | |
---|
9548 | # Symbols that should not be listed in the preloaded symbols. |
---|
9549 | exclude_expsyms=$lt_exclude_expsyms |
---|
9550 | |
---|
9551 | # Symbols that must always be exported. |
---|
9552 | include_expsyms=$lt_include_expsyms |
---|
9553 | |
---|
9554 | # ### END LIBTOOL CONFIG |
---|
9555 | |
---|
9556 | __EOF__ |
---|
9557 | |
---|
9558 | |
---|
9559 | case $host_os in |
---|
9560 | aix3*) |
---|
9561 | cat <<\EOF >> "$cfgfile" |
---|
9562 | |
---|
9563 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
9564 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
9565 | # vanish in a puff of smoke. |
---|
9566 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
9567 | COLLECT_NAMES= |
---|
9568 | export COLLECT_NAMES |
---|
9569 | fi |
---|
9570 | EOF |
---|
9571 | ;; |
---|
9572 | esac |
---|
9573 | |
---|
9574 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
9575 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
9576 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
9577 | # is reportedly fixed, but why not run on old versions too? |
---|
9578 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
---|
9579 | |
---|
9580 | mv -f "$cfgfile" "$ofile" || \ |
---|
9581 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
---|
9582 | chmod +x "$ofile" |
---|
9583 | |
---|
9584 | else |
---|
9585 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
9586 | # `config.status --recheck' to rerun these tests and create the |
---|
9587 | # libtool script then. |
---|
9588 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
9589 | if test -f "$ltmain_in"; then |
---|
9590 | test -f Makefile && make "$ltmain" |
---|
9591 | fi |
---|
9592 | fi |
---|
9593 | |
---|
9594 | |
---|
9595 | ac_ext=c |
---|
9596 | ac_cpp='$CPP $CPPFLAGS' |
---|
9597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
9598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
9599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
9600 | |
---|
9601 | CC="$lt_save_CC" |
---|
9602 | |
---|
9603 | |
---|
9604 | # Check whether --with-tags or --without-tags was given. |
---|
9605 | if test "${with_tags+set}" = set; then |
---|
9606 | withval="$with_tags" |
---|
9607 | tagnames="$withval" |
---|
9608 | fi; |
---|
9609 | |
---|
9610 | if test -f "$ltmain" && test -n "$tagnames"; then |
---|
9611 | if test ! -f "${ofile}"; then |
---|
9612 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
---|
9613 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
---|
9614 | fi |
---|
9615 | |
---|
9616 | if test -z "$LTCC"; then |
---|
9617 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
---|
9618 | if test -z "$LTCC"; then |
---|
9619 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
---|
9620 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
---|
9621 | else |
---|
9622 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
---|
9623 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
---|
9624 | fi |
---|
9625 | fi |
---|
9626 | |
---|
9627 | # Extract list of available tagged configurations in $ofile. |
---|
9628 | # Note that this assumes the entire list is on one line. |
---|
9629 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
---|
9630 | |
---|
9631 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
9632 | for tagname in $tagnames; do |
---|
9633 | IFS="$lt_save_ifs" |
---|
9634 | # Check whether tagname contains only valid characters |
---|
9635 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
---|
9636 | "") ;; |
---|
9637 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
---|
9638 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
---|
9639 | { (exit 1); exit 1; }; } |
---|
9640 | ;; |
---|
9641 | esac |
---|
9642 | |
---|
9643 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
---|
9644 | then |
---|
9645 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
---|
9646 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
---|
9647 | { (exit 1); exit 1; }; } |
---|
9648 | fi |
---|
9649 | |
---|
9650 | # Update the list of available tags. |
---|
9651 | if test -n "$tagname"; then |
---|
9652 | echo appending configuration tag \"$tagname\" to $ofile |
---|
9653 | |
---|
9654 | case $tagname in |
---|
9655 | CXX) |
---|
9656 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
---|
9657 | ac_ext=cc |
---|
9658 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
9659 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
9660 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
9661 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
9662 | |
---|
9663 | |
---|
9664 | |
---|
9665 | |
---|
9666 | archive_cmds_need_lc_CXX=no |
---|
9667 | allow_undefined_flag_CXX= |
---|
9668 | always_export_symbols_CXX=no |
---|
9669 | archive_expsym_cmds_CXX= |
---|
9670 | export_dynamic_flag_spec_CXX= |
---|
9671 | hardcode_direct_CXX=no |
---|
9672 | hardcode_libdir_flag_spec_CXX= |
---|
9673 | hardcode_libdir_flag_spec_ld_CXX= |
---|
9674 | hardcode_libdir_separator_CXX= |
---|
9675 | hardcode_minus_L_CXX=no |
---|
9676 | hardcode_automatic_CXX=no |
---|
9677 | module_cmds_CXX= |
---|
9678 | module_expsym_cmds_CXX= |
---|
9679 | link_all_deplibs_CXX=unknown |
---|
9680 | old_archive_cmds_CXX=$old_archive_cmds |
---|
9681 | no_undefined_flag_CXX= |
---|
9682 | whole_archive_flag_spec_CXX= |
---|
9683 | enable_shared_with_static_runtimes_CXX=no |
---|
9684 | |
---|
9685 | # Dependencies to place before and after the object being linked: |
---|
9686 | predep_objects_CXX= |
---|
9687 | postdep_objects_CXX= |
---|
9688 | predeps_CXX= |
---|
9689 | postdeps_CXX= |
---|
9690 | compiler_lib_search_path_CXX= |
---|
9691 | |
---|
9692 | # Source file extension for C++ test sources. |
---|
9693 | ac_ext=cc |
---|
9694 | |
---|
9695 | # Object file extension for compiled C++ test sources. |
---|
9696 | objext=o |
---|
9697 | objext_CXX=$objext |
---|
9698 | |
---|
9699 | # Code to be used in simple compile tests |
---|
9700 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
9701 | |
---|
9702 | # Code to be used in simple link tests |
---|
9703 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
---|
9704 | |
---|
9705 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
9706 | |
---|
9707 | # If no C compiler was specified, use CC. |
---|
9708 | LTCC=${LTCC-"$CC"} |
---|
9709 | |
---|
9710 | # Allow CC to be a program name with arguments. |
---|
9711 | compiler=$CC |
---|
9712 | |
---|
9713 | |
---|
9714 | # Allow CC to be a program name with arguments. |
---|
9715 | lt_save_CC=$CC |
---|
9716 | lt_save_LD=$LD |
---|
9717 | lt_save_GCC=$GCC |
---|
9718 | GCC=$GXX |
---|
9719 | lt_save_with_gnu_ld=$with_gnu_ld |
---|
9720 | lt_save_path_LD=$lt_cv_path_LD |
---|
9721 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
---|
9722 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
---|
9723 | else |
---|
9724 | unset lt_cv_prog_gnu_ld |
---|
9725 | fi |
---|
9726 | if test -n "${lt_cv_path_LDCXX+set}"; then |
---|
9727 | lt_cv_path_LD=$lt_cv_path_LDCXX |
---|
9728 | else |
---|
9729 | unset lt_cv_path_LD |
---|
9730 | fi |
---|
9731 | test -z "${LDCXX+set}" || LD=$LDCXX |
---|
9732 | CC=${CXX-"c++"} |
---|
9733 | compiler=$CC |
---|
9734 | compiler_CXX=$CC |
---|
9735 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
---|
9736 | |
---|
9737 | # We don't want -fno-exception wen compiling C++ code, so set the |
---|
9738 | # no_builtin_flag separately |
---|
9739 | if test "$GXX" = yes; then |
---|
9740 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
---|
9741 | else |
---|
9742 | lt_prog_compiler_no_builtin_flag_CXX= |
---|
9743 | fi |
---|
9744 | |
---|
9745 | if test "$GXX" = yes; then |
---|
9746 | # Set up default GNU C++ configuration |
---|
9747 | |
---|
9748 | |
---|
9749 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
9750 | if test "${with_gnu_ld+set}" = set; then |
---|
9751 | withval="$with_gnu_ld" |
---|
9752 | test "$withval" = no || with_gnu_ld=yes |
---|
9753 | else |
---|
9754 | with_gnu_ld=no |
---|
9755 | fi; |
---|
9756 | ac_prog=ld |
---|
9757 | if test "$GCC" = yes; then |
---|
9758 | # Check if gcc -print-prog-name=ld gives a path. |
---|
9759 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
9760 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
9761 | case $host in |
---|
9762 | *-*-mingw*) |
---|
9763 | # gcc leaves a trailing carriage return which upsets mingw |
---|
9764 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
9765 | *) |
---|
9766 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
9767 | esac |
---|
9768 | case $ac_prog in |
---|
9769 | # Accept absolute paths. |
---|
9770 | [\\/]* | ?:[\\/]*) |
---|
9771 | re_direlt='/[^/][^/]*/\.\./' |
---|
9772 | # Canonicalize the pathname of ld |
---|
9773 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
9774 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
9775 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
9776 | done |
---|
9777 | test -z "$LD" && LD="$ac_prog" |
---|
9778 | ;; |
---|
9779 | "") |
---|
9780 | # If it fails, then pretend we aren't using GCC. |
---|
9781 | ac_prog=ld |
---|
9782 | ;; |
---|
9783 | *) |
---|
9784 | # If it is relative, then search for the first ld in PATH. |
---|
9785 | with_gnu_ld=unknown |
---|
9786 | ;; |
---|
9787 | esac |
---|
9788 | elif test "$with_gnu_ld" = yes; then |
---|
9789 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
9790 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
9791 | else |
---|
9792 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
9793 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
9794 | fi |
---|
9795 | if test "${lt_cv_path_LD+set}" = set; then |
---|
9796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9797 | else |
---|
9798 | if test -z "$LD"; then |
---|
9799 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
9800 | for ac_dir in $PATH; do |
---|
9801 | IFS="$lt_save_ifs" |
---|
9802 | test -z "$ac_dir" && ac_dir=. |
---|
9803 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
9804 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
9805 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
9806 | # but apparently some GNU ld's only accept -v. |
---|
9807 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
9808 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
9809 | *GNU* | *'with BFD'*) |
---|
9810 | test "$with_gnu_ld" != no && break |
---|
9811 | ;; |
---|
9812 | *) |
---|
9813 | test "$with_gnu_ld" != yes && break |
---|
9814 | ;; |
---|
9815 | esac |
---|
9816 | fi |
---|
9817 | done |
---|
9818 | IFS="$lt_save_ifs" |
---|
9819 | else |
---|
9820 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
9821 | fi |
---|
9822 | fi |
---|
9823 | |
---|
9824 | LD="$lt_cv_path_LD" |
---|
9825 | if test -n "$LD"; then |
---|
9826 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
9827 | echo "${ECHO_T}$LD" >&6 |
---|
9828 | else |
---|
9829 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9830 | echo "${ECHO_T}no" >&6 |
---|
9831 | fi |
---|
9832 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
9833 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
9834 | { (exit 1); exit 1; }; } |
---|
9835 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
9836 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
9837 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
9838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9839 | else |
---|
9840 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
9841 | case `$LD -v 2>&1 </dev/null` in |
---|
9842 | *GNU* | *'with BFD'*) |
---|
9843 | lt_cv_prog_gnu_ld=yes |
---|
9844 | ;; |
---|
9845 | *) |
---|
9846 | lt_cv_prog_gnu_ld=no |
---|
9847 | ;; |
---|
9848 | esac |
---|
9849 | fi |
---|
9850 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
9851 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
9852 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
9853 | |
---|
9854 | |
---|
9855 | |
---|
9856 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
---|
9857 | # archiving commands below assume that GNU ld is being used. |
---|
9858 | if test "$with_gnu_ld" = yes; then |
---|
9859 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9860 | 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' |
---|
9861 | |
---|
9862 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
9863 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
9864 | |
---|
9865 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
9866 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
---|
9867 | # investigate it a little bit more. (MM) |
---|
9868 | wlarc='${wl}' |
---|
9869 | |
---|
9870 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
9871 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
---|
9872 | grep 'no-whole-archive' > /dev/null; then |
---|
9873 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
9874 | else |
---|
9875 | whole_archive_flag_spec_CXX= |
---|
9876 | fi |
---|
9877 | else |
---|
9878 | with_gnu_ld=no |
---|
9879 | wlarc= |
---|
9880 | |
---|
9881 | # A generic and very simple default shared library creation |
---|
9882 | # command for GNU C++ for the case where it uses the native |
---|
9883 | # linker, instead of GNU ld. If possible, this setting should |
---|
9884 | # overridden to take advantage of the native linker features on |
---|
9885 | # the platform it is being used on. |
---|
9886 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
9887 | fi |
---|
9888 | |
---|
9889 | # Commands to make compiler produce verbose output that lists |
---|
9890 | # what "hidden" libraries, object files and flags are used when |
---|
9891 | # linking a shared library. |
---|
9892 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
9893 | |
---|
9894 | else |
---|
9895 | GXX=no |
---|
9896 | with_gnu_ld=no |
---|
9897 | wlarc= |
---|
9898 | fi |
---|
9899 | |
---|
9900 | # PORTME: fill in a description of your system's C++ link characteristics |
---|
9901 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
9902 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
9903 | ld_shlibs_CXX=yes |
---|
9904 | case $host_os in |
---|
9905 | aix3*) |
---|
9906 | # FIXME: insert proper C++ library support |
---|
9907 | ld_shlibs_CXX=no |
---|
9908 | ;; |
---|
9909 | aix4* | aix5*) |
---|
9910 | if test "$host_cpu" = ia64; then |
---|
9911 | # On IA64, the linker does run time linking by default, so we don't |
---|
9912 | # have to do anything special. |
---|
9913 | aix_use_runtimelinking=no |
---|
9914 | exp_sym_flag='-Bexport' |
---|
9915 | no_entry_flag="" |
---|
9916 | else |
---|
9917 | aix_use_runtimelinking=no |
---|
9918 | |
---|
9919 | # Test if we are trying to use run time linking or normal |
---|
9920 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
9921 | # need to do runtime linking. |
---|
9922 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
9923 | for ld_flag in $LDFLAGS; do |
---|
9924 | case $ld_flag in |
---|
9925 | *-brtl*) |
---|
9926 | aix_use_runtimelinking=yes |
---|
9927 | break |
---|
9928 | ;; |
---|
9929 | esac |
---|
9930 | done |
---|
9931 | esac |
---|
9932 | |
---|
9933 | exp_sym_flag='-bexport' |
---|
9934 | no_entry_flag='-bnoentry' |
---|
9935 | fi |
---|
9936 | |
---|
9937 | # When large executables or shared objects are built, AIX ld can |
---|
9938 | # have problems creating the table of contents. If linking a library |
---|
9939 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
9940 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
9941 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
9942 | |
---|
9943 | archive_cmds_CXX='' |
---|
9944 | hardcode_direct_CXX=yes |
---|
9945 | hardcode_libdir_separator_CXX=':' |
---|
9946 | link_all_deplibs_CXX=yes |
---|
9947 | |
---|
9948 | if test "$GXX" = yes; then |
---|
9949 | case $host_os in aix4.012|aix4.012.*) |
---|
9950 | # We only want to do this on AIX 4.2 and lower, the check |
---|
9951 | # below for broken collect2 doesn't work under 4.3+ |
---|
9952 | collect2name=`${CC} -print-prog-name=collect2` |
---|
9953 | if test -f "$collect2name" && \ |
---|
9954 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
9955 | then |
---|
9956 | # We have reworked collect2 |
---|
9957 | hardcode_direct_CXX=yes |
---|
9958 | else |
---|
9959 | # We have old collect2 |
---|
9960 | hardcode_direct_CXX=unsupported |
---|
9961 | # It fails to find uninstalled libraries when the uninstalled |
---|
9962 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
9963 | # to unsupported forces relinking |
---|
9964 | hardcode_minus_L_CXX=yes |
---|
9965 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
9966 | hardcode_libdir_separator_CXX= |
---|
9967 | fi |
---|
9968 | esac |
---|
9969 | shared_flag='-shared' |
---|
9970 | else |
---|
9971 | # not using gcc |
---|
9972 | if test "$host_cpu" = ia64; then |
---|
9973 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
9974 | # chokes on -Wl,-G. The following line is correct: |
---|
9975 | shared_flag='-G' |
---|
9976 | else |
---|
9977 | if test "$aix_use_runtimelinking" = yes; then |
---|
9978 | shared_flag='${wl}-G' |
---|
9979 | else |
---|
9980 | shared_flag='${wl}-bM:SRE' |
---|
9981 | fi |
---|
9982 | fi |
---|
9983 | fi |
---|
9984 | |
---|
9985 | # It seems that -bexpall does not export symbols beginning with |
---|
9986 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
9987 | always_export_symbols_CXX=yes |
---|
9988 | if test "$aix_use_runtimelinking" = yes; then |
---|
9989 | # Warning - without using the other runtime loading flags (-brtl), |
---|
9990 | # -berok will link without error, but may produce a broken library. |
---|
9991 | allow_undefined_flag_CXX='-berok' |
---|
9992 | # Determine the default libpath from the value encoded in an empty executable. |
---|
9993 | cat >conftest.$ac_ext <<_ACEOF |
---|
9994 | /* confdefs.h. */ |
---|
9995 | _ACEOF |
---|
9996 | cat confdefs.h >>conftest.$ac_ext |
---|
9997 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9998 | /* end confdefs.h. */ |
---|
9999 | |
---|
10000 | int |
---|
10001 | main () |
---|
10002 | { |
---|
10003 | |
---|
10004 | ; |
---|
10005 | return 0; |
---|
10006 | } |
---|
10007 | _ACEOF |
---|
10008 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10010 | (eval $ac_link) 2>conftest.er1 |
---|
10011 | ac_status=$? |
---|
10012 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10013 | rm -f conftest.er1 |
---|
10014 | cat conftest.err >&5 |
---|
10015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10016 | (exit $ac_status); } && |
---|
10017 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
10018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10019 | (eval $ac_try) 2>&5 |
---|
10020 | ac_status=$? |
---|
10021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10022 | (exit $ac_status); }; } && |
---|
10023 | { ac_try='test -s conftest$ac_exeext' |
---|
10024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10025 | (eval $ac_try) 2>&5 |
---|
10026 | ac_status=$? |
---|
10027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10028 | (exit $ac_status); }; }; then |
---|
10029 | |
---|
10030 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
10031 | }'` |
---|
10032 | # Check for a 64-bit object if we didn't find anything. |
---|
10033 | 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; } |
---|
10034 | }'`; fi |
---|
10035 | else |
---|
10036 | echo "$as_me: failed program was:" >&5 |
---|
10037 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10038 | |
---|
10039 | fi |
---|
10040 | rm -f conftest.err conftest.$ac_objext \ |
---|
10041 | conftest$ac_exeext conftest.$ac_ext |
---|
10042 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
10043 | |
---|
10044 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10045 | |
---|
10046 | 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" |
---|
10047 | else |
---|
10048 | if test "$host_cpu" = ia64; then |
---|
10049 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
---|
10050 | allow_undefined_flag_CXX="-z nodefs" |
---|
10051 | 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" |
---|
10052 | else |
---|
10053 | # Determine the default libpath from the value encoded in an empty executable. |
---|
10054 | cat >conftest.$ac_ext <<_ACEOF |
---|
10055 | /* confdefs.h. */ |
---|
10056 | _ACEOF |
---|
10057 | cat confdefs.h >>conftest.$ac_ext |
---|
10058 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10059 | /* end confdefs.h. */ |
---|
10060 | |
---|
10061 | int |
---|
10062 | main () |
---|
10063 | { |
---|
10064 | |
---|
10065 | ; |
---|
10066 | return 0; |
---|
10067 | } |
---|
10068 | _ACEOF |
---|
10069 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10071 | (eval $ac_link) 2>conftest.er1 |
---|
10072 | ac_status=$? |
---|
10073 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10074 | rm -f conftest.er1 |
---|
10075 | cat conftest.err >&5 |
---|
10076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10077 | (exit $ac_status); } && |
---|
10078 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
10079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10080 | (eval $ac_try) 2>&5 |
---|
10081 | ac_status=$? |
---|
10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10083 | (exit $ac_status); }; } && |
---|
10084 | { ac_try='test -s conftest$ac_exeext' |
---|
10085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10086 | (eval $ac_try) 2>&5 |
---|
10087 | ac_status=$? |
---|
10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10089 | (exit $ac_status); }; }; then |
---|
10090 | |
---|
10091 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
10092 | }'` |
---|
10093 | # Check for a 64-bit object if we didn't find anything. |
---|
10094 | 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; } |
---|
10095 | }'`; fi |
---|
10096 | else |
---|
10097 | echo "$as_me: failed program was:" >&5 |
---|
10098 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10099 | |
---|
10100 | fi |
---|
10101 | rm -f conftest.err conftest.$ac_objext \ |
---|
10102 | conftest$ac_exeext conftest.$ac_ext |
---|
10103 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
10104 | |
---|
10105 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10106 | # Warning - without using the other run time loading flags, |
---|
10107 | # -berok will link without error, but may produce a broken library. |
---|
10108 | no_undefined_flag_CXX=' ${wl}-bernotok' |
---|
10109 | allow_undefined_flag_CXX=' ${wl}-berok' |
---|
10110 | # -bexpall does not export symbols beginning with underscore (_) |
---|
10111 | always_export_symbols_CXX=yes |
---|
10112 | # Exported symbols can be pulled into shared objects from archives |
---|
10113 | whole_archive_flag_spec_CXX=' ' |
---|
10114 | archive_cmds_need_lc_CXX=yes |
---|
10115 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
10116 | 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' |
---|
10117 | fi |
---|
10118 | fi |
---|
10119 | ;; |
---|
10120 | chorus*) |
---|
10121 | case $cc_basename in |
---|
10122 | *) |
---|
10123 | # FIXME: insert proper C++ library support |
---|
10124 | ld_shlibs_CXX=no |
---|
10125 | ;; |
---|
10126 | esac |
---|
10127 | ;; |
---|
10128 | |
---|
10129 | cygwin* | mingw* | pw32*) |
---|
10130 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
---|
10131 | # as there is no search path for DLLs. |
---|
10132 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
10133 | allow_undefined_flag_CXX=unsupported |
---|
10134 | always_export_symbols_CXX=no |
---|
10135 | enable_shared_with_static_runtimes_CXX=yes |
---|
10136 | |
---|
10137 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
10138 | 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' |
---|
10139 | # If the export-symbols file already is a .def file (1st line |
---|
10140 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
10141 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
10142 | cp $export_symbols $output_objdir/$soname.def; |
---|
10143 | else |
---|
10144 | echo EXPORTS > $output_objdir/$soname.def; |
---|
10145 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
10146 | fi~ |
---|
10147 | $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' |
---|
10148 | else |
---|
10149 | ld_shlibs_CXX=no |
---|
10150 | fi |
---|
10151 | ;; |
---|
10152 | |
---|
10153 | darwin* | rhapsody*) |
---|
10154 | if test "$GXX" = yes; then |
---|
10155 | archive_cmds_need_lc_CXX=no |
---|
10156 | case "$host_os" in |
---|
10157 | rhapsody* | darwin1.[012]) |
---|
10158 | allow_undefined_flag_CXX='-undefined suppress' |
---|
10159 | ;; |
---|
10160 | *) # Darwin 1.3 on |
---|
10161 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
10162 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
---|
10163 | else |
---|
10164 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
10165 | 10.[012]) |
---|
10166 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
---|
10167 | ;; |
---|
10168 | 10.*) |
---|
10169 | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
---|
10170 | ;; |
---|
10171 | esac |
---|
10172 | fi |
---|
10173 | ;; |
---|
10174 | esac |
---|
10175 | lt_int_apple_cc_single_mod=no |
---|
10176 | output_verbose_link_cmd='echo' |
---|
10177 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
10178 | lt_int_apple_cc_single_mod=yes |
---|
10179 | fi |
---|
10180 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
10181 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
10182 | else |
---|
10183 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
10184 | fi |
---|
10185 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
10186 | |
---|
10187 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
10188 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
10189 | 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}' |
---|
10190 | else |
---|
10191 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
10192 | fi |
---|
10193 | 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}' |
---|
10194 | hardcode_direct_CXX=no |
---|
10195 | hardcode_automatic_CXX=yes |
---|
10196 | hardcode_shlibpath_var_CXX=unsupported |
---|
10197 | whole_archive_flag_spec_CXX='-all_load $convenience' |
---|
10198 | link_all_deplibs_CXX=yes |
---|
10199 | else |
---|
10200 | ld_shlibs_CXX=no |
---|
10201 | fi |
---|
10202 | ;; |
---|
10203 | |
---|
10204 | dgux*) |
---|
10205 | case $cc_basename in |
---|
10206 | ec++) |
---|
10207 | # FIXME: insert proper C++ library support |
---|
10208 | ld_shlibs_CXX=no |
---|
10209 | ;; |
---|
10210 | ghcx) |
---|
10211 | # Green Hills C++ Compiler |
---|
10212 | # FIXME: insert proper C++ library support |
---|
10213 | ld_shlibs_CXX=no |
---|
10214 | ;; |
---|
10215 | *) |
---|
10216 | # FIXME: insert proper C++ library support |
---|
10217 | ld_shlibs_CXX=no |
---|
10218 | ;; |
---|
10219 | esac |
---|
10220 | ;; |
---|
10221 | freebsd12*) |
---|
10222 | # C++ shared libraries reported to be fairly broken before switch to ELF |
---|
10223 | ld_shlibs_CXX=no |
---|
10224 | ;; |
---|
10225 | freebsd-elf*) |
---|
10226 | archive_cmds_need_lc_CXX=no |
---|
10227 | ;; |
---|
10228 | freebsd* | kfreebsd*-gnu) |
---|
10229 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
---|
10230 | # conventions |
---|
10231 | ld_shlibs_CXX=yes |
---|
10232 | ;; |
---|
10233 | gnu*) |
---|
10234 | ;; |
---|
10235 | hpux9*) |
---|
10236 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
10237 | hardcode_libdir_separator_CXX=: |
---|
10238 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
10239 | hardcode_direct_CXX=yes |
---|
10240 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
10241 | # but as the default |
---|
10242 | # location of the library. |
---|
10243 | |
---|
10244 | case $cc_basename in |
---|
10245 | CC) |
---|
10246 | # FIXME: insert proper C++ library support |
---|
10247 | ld_shlibs_CXX=no |
---|
10248 | ;; |
---|
10249 | aCC) |
---|
10250 | 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' |
---|
10251 | # Commands to make compiler produce verbose output that lists |
---|
10252 | # what "hidden" libraries, object files and flags are used when |
---|
10253 | # linking a shared library. |
---|
10254 | # |
---|
10255 | # There doesn't appear to be a way to prevent this compiler from |
---|
10256 | # explicitly linking system object files so we need to strip them |
---|
10257 | # from the output so that they don't get included in the library |
---|
10258 | # dependencies. |
---|
10259 | 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' |
---|
10260 | ;; |
---|
10261 | *) |
---|
10262 | if test "$GXX" = yes; then |
---|
10263 | 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' |
---|
10264 | else |
---|
10265 | # FIXME: insert proper C++ library support |
---|
10266 | ld_shlibs_CXX=no |
---|
10267 | fi |
---|
10268 | ;; |
---|
10269 | esac |
---|
10270 | ;; |
---|
10271 | hpux10*|hpux11*) |
---|
10272 | if test $with_gnu_ld = no; then |
---|
10273 | case "$host_cpu" in |
---|
10274 | hppa*64*) |
---|
10275 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
10276 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
---|
10277 | hardcode_libdir_separator_CXX=: |
---|
10278 | ;; |
---|
10279 | ia64*) |
---|
10280 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
10281 | ;; |
---|
10282 | *) |
---|
10283 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
10284 | hardcode_libdir_separator_CXX=: |
---|
10285 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
10286 | ;; |
---|
10287 | esac |
---|
10288 | fi |
---|
10289 | case "$host_cpu" in |
---|
10290 | hppa*64*) |
---|
10291 | hardcode_direct_CXX=no |
---|
10292 | hardcode_shlibpath_var_CXX=no |
---|
10293 | ;; |
---|
10294 | ia64*) |
---|
10295 | hardcode_direct_CXX=no |
---|
10296 | hardcode_shlibpath_var_CXX=no |
---|
10297 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
10298 | # but as the default |
---|
10299 | # location of the library. |
---|
10300 | ;; |
---|
10301 | *) |
---|
10302 | hardcode_direct_CXX=yes |
---|
10303 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
10304 | # but as the default |
---|
10305 | # location of the library. |
---|
10306 | ;; |
---|
10307 | esac |
---|
10308 | |
---|
10309 | case $cc_basename in |
---|
10310 | CC) |
---|
10311 | # FIXME: insert proper C++ library support |
---|
10312 | ld_shlibs_CXX=no |
---|
10313 | ;; |
---|
10314 | aCC) |
---|
10315 | case "$host_cpu" in |
---|
10316 | hppa*64*|ia64*) |
---|
10317 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
10318 | ;; |
---|
10319 | *) |
---|
10320 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
10321 | ;; |
---|
10322 | esac |
---|
10323 | # Commands to make compiler produce verbose output that lists |
---|
10324 | # what "hidden" libraries, object files and flags are used when |
---|
10325 | # linking a shared library. |
---|
10326 | # |
---|
10327 | # There doesn't appear to be a way to prevent this compiler from |
---|
10328 | # explicitly linking system object files so we need to strip them |
---|
10329 | # from the output so that they don't get included in the library |
---|
10330 | # dependencies. |
---|
10331 | 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' |
---|
10332 | ;; |
---|
10333 | *) |
---|
10334 | if test "$GXX" = yes; then |
---|
10335 | if test $with_gnu_ld = no; then |
---|
10336 | case "$host_cpu" in |
---|
10337 | ia64*|hppa*64*) |
---|
10338 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
10339 | ;; |
---|
10340 | *) |
---|
10341 | 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' |
---|
10342 | ;; |
---|
10343 | esac |
---|
10344 | fi |
---|
10345 | else |
---|
10346 | # FIXME: insert proper C++ library support |
---|
10347 | ld_shlibs_CXX=no |
---|
10348 | fi |
---|
10349 | ;; |
---|
10350 | esac |
---|
10351 | ;; |
---|
10352 | irix5* | irix6*) |
---|
10353 | case $cc_basename in |
---|
10354 | CC) |
---|
10355 | # SGI C++ |
---|
10356 | 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' |
---|
10357 | |
---|
10358 | # Archives containing C++ object files must be created using |
---|
10359 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
---|
10360 | # necessary to make sure instantiated templates are included |
---|
10361 | # in the archive. |
---|
10362 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
---|
10363 | ;; |
---|
10364 | *) |
---|
10365 | if test "$GXX" = yes; then |
---|
10366 | if test "$with_gnu_ld" = no; then |
---|
10367 | 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' |
---|
10368 | else |
---|
10369 | 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' |
---|
10370 | fi |
---|
10371 | fi |
---|
10372 | link_all_deplibs_CXX=yes |
---|
10373 | ;; |
---|
10374 | esac |
---|
10375 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
10376 | hardcode_libdir_separator_CXX=: |
---|
10377 | ;; |
---|
10378 | linux*) |
---|
10379 | case $cc_basename in |
---|
10380 | KCC) |
---|
10381 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
10382 | |
---|
10383 | # KCC will only create a shared library if the output file |
---|
10384 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
10385 | # to its proper name (with version) after linking. |
---|
10386 | 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' |
---|
10387 | 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' |
---|
10388 | # Commands to make compiler produce verbose output that lists |
---|
10389 | # what "hidden" libraries, object files and flags are used when |
---|
10390 | # linking a shared library. |
---|
10391 | # |
---|
10392 | # There doesn't appear to be a way to prevent this compiler from |
---|
10393 | # explicitly linking system object files so we need to strip them |
---|
10394 | # from the output so that they don't get included in the library |
---|
10395 | # dependencies. |
---|
10396 | 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' |
---|
10397 | |
---|
10398 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
---|
10399 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
10400 | |
---|
10401 | # Archives containing C++ object files must be created using |
---|
10402 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
10403 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
10404 | ;; |
---|
10405 | icpc) |
---|
10406 | # Intel C++ |
---|
10407 | with_gnu_ld=yes |
---|
10408 | archive_cmds_need_lc_CXX=no |
---|
10409 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10410 | 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' |
---|
10411 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
10412 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
10413 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
10414 | ;; |
---|
10415 | cxx) |
---|
10416 | # Compaq C++ |
---|
10417 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10418 | 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' |
---|
10419 | |
---|
10420 | runpath_var=LD_RUN_PATH |
---|
10421 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
10422 | hardcode_libdir_separator_CXX=: |
---|
10423 | |
---|
10424 | # Commands to make compiler produce verbose output that lists |
---|
10425 | # what "hidden" libraries, object files and flags are used when |
---|
10426 | # linking a shared library. |
---|
10427 | # |
---|
10428 | # There doesn't appear to be a way to prevent this compiler from |
---|
10429 | # explicitly linking system object files so we need to strip them |
---|
10430 | # from the output so that they don't get included in the library |
---|
10431 | # dependencies. |
---|
10432 | 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' |
---|
10433 | ;; |
---|
10434 | esac |
---|
10435 | ;; |
---|
10436 | lynxos*) |
---|
10437 | # FIXME: insert proper C++ library support |
---|
10438 | ld_shlibs_CXX=no |
---|
10439 | ;; |
---|
10440 | m88k*) |
---|
10441 | # FIXME: insert proper C++ library support |
---|
10442 | ld_shlibs_CXX=no |
---|
10443 | ;; |
---|
10444 | mvs*) |
---|
10445 | case $cc_basename in |
---|
10446 | cxx) |
---|
10447 | # FIXME: insert proper C++ library support |
---|
10448 | ld_shlibs_CXX=no |
---|
10449 | ;; |
---|
10450 | *) |
---|
10451 | # FIXME: insert proper C++ library support |
---|
10452 | ld_shlibs_CXX=no |
---|
10453 | ;; |
---|
10454 | esac |
---|
10455 | ;; |
---|
10456 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
10457 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
10458 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
---|
10459 | wlarc= |
---|
10460 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
10461 | hardcode_direct_CXX=yes |
---|
10462 | hardcode_shlibpath_var_CXX=no |
---|
10463 | fi |
---|
10464 | # Workaround some broken pre-1.5 toolchains |
---|
10465 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
---|
10466 | ;; |
---|
10467 | osf3*) |
---|
10468 | case $cc_basename in |
---|
10469 | KCC) |
---|
10470 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
10471 | |
---|
10472 | # KCC will only create a shared library if the output file |
---|
10473 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
10474 | # to its proper name (with version) after linking. |
---|
10475 | 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' |
---|
10476 | |
---|
10477 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
10478 | hardcode_libdir_separator_CXX=: |
---|
10479 | |
---|
10480 | # Archives containing C++ object files must be created using |
---|
10481 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
10482 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
10483 | |
---|
10484 | ;; |
---|
10485 | RCC) |
---|
10486 | # Rational C++ 2.4.1 |
---|
10487 | # FIXME: insert proper C++ library support |
---|
10488 | ld_shlibs_CXX=no |
---|
10489 | ;; |
---|
10490 | cxx) |
---|
10491 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
10492 | 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' |
---|
10493 | |
---|
10494 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
10495 | hardcode_libdir_separator_CXX=: |
---|
10496 | |
---|
10497 | # Commands to make compiler produce verbose output that lists |
---|
10498 | # what "hidden" libraries, object files and flags are used when |
---|
10499 | # linking a shared library. |
---|
10500 | # |
---|
10501 | # There doesn't appear to be a way to prevent this compiler from |
---|
10502 | # explicitly linking system object files so we need to strip them |
---|
10503 | # from the output so that they don't get included in the library |
---|
10504 | # dependencies. |
---|
10505 | 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' |
---|
10506 | ;; |
---|
10507 | *) |
---|
10508 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
10509 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
10510 | 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' |
---|
10511 | |
---|
10512 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
10513 | hardcode_libdir_separator_CXX=: |
---|
10514 | |
---|
10515 | # Commands to make compiler produce verbose output that lists |
---|
10516 | # what "hidden" libraries, object files and flags are used when |
---|
10517 | # linking a shared library. |
---|
10518 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
10519 | |
---|
10520 | else |
---|
10521 | # FIXME: insert proper C++ library support |
---|
10522 | ld_shlibs_CXX=no |
---|
10523 | fi |
---|
10524 | ;; |
---|
10525 | esac |
---|
10526 | ;; |
---|
10527 | osf4* | osf5*) |
---|
10528 | case $cc_basename in |
---|
10529 | KCC) |
---|
10530 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
10531 | |
---|
10532 | # KCC will only create a shared library if the output file |
---|
10533 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
10534 | # to its proper name (with version) after linking. |
---|
10535 | 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' |
---|
10536 | |
---|
10537 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
10538 | hardcode_libdir_separator_CXX=: |
---|
10539 | |
---|
10540 | # Archives containing C++ object files must be created using |
---|
10541 | # the KAI C++ compiler. |
---|
10542 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
---|
10543 | ;; |
---|
10544 | RCC) |
---|
10545 | # Rational C++ 2.4.1 |
---|
10546 | # FIXME: insert proper C++ library support |
---|
10547 | ld_shlibs_CXX=no |
---|
10548 | ;; |
---|
10549 | cxx) |
---|
10550 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
---|
10551 | 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' |
---|
10552 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
---|
10553 | echo "-hidden">> $lib.exp~ |
---|
10554 | $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~ |
---|
10555 | $rm $lib.exp' |
---|
10556 | |
---|
10557 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
10558 | hardcode_libdir_separator_CXX=: |
---|
10559 | |
---|
10560 | # Commands to make compiler produce verbose output that lists |
---|
10561 | # what "hidden" libraries, object files and flags are used when |
---|
10562 | # linking a shared library. |
---|
10563 | # |
---|
10564 | # There doesn't appear to be a way to prevent this compiler from |
---|
10565 | # explicitly linking system object files so we need to strip them |
---|
10566 | # from the output so that they don't get included in the library |
---|
10567 | # dependencies. |
---|
10568 | 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' |
---|
10569 | ;; |
---|
10570 | *) |
---|
10571 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
10572 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
10573 | 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' |
---|
10574 | |
---|
10575 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
10576 | hardcode_libdir_separator_CXX=: |
---|
10577 | |
---|
10578 | # Commands to make compiler produce verbose output that lists |
---|
10579 | # what "hidden" libraries, object files and flags are used when |
---|
10580 | # linking a shared library. |
---|
10581 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
10582 | |
---|
10583 | else |
---|
10584 | # FIXME: insert proper C++ library support |
---|
10585 | ld_shlibs_CXX=no |
---|
10586 | fi |
---|
10587 | ;; |
---|
10588 | esac |
---|
10589 | ;; |
---|
10590 | psos*) |
---|
10591 | # FIXME: insert proper C++ library support |
---|
10592 | ld_shlibs_CXX=no |
---|
10593 | ;; |
---|
10594 | sco*) |
---|
10595 | archive_cmds_need_lc_CXX=no |
---|
10596 | case $cc_basename in |
---|
10597 | CC) |
---|
10598 | # FIXME: insert proper C++ library support |
---|
10599 | ld_shlibs_CXX=no |
---|
10600 | ;; |
---|
10601 | *) |
---|
10602 | # FIXME: insert proper C++ library support |
---|
10603 | ld_shlibs_CXX=no |
---|
10604 | ;; |
---|
10605 | esac |
---|
10606 | ;; |
---|
10607 | sunos4*) |
---|
10608 | case $cc_basename in |
---|
10609 | CC) |
---|
10610 | # Sun C++ 4.x |
---|
10611 | # FIXME: insert proper C++ library support |
---|
10612 | ld_shlibs_CXX=no |
---|
10613 | ;; |
---|
10614 | lcc) |
---|
10615 | # Lucid |
---|
10616 | # FIXME: insert proper C++ library support |
---|
10617 | ld_shlibs_CXX=no |
---|
10618 | ;; |
---|
10619 | *) |
---|
10620 | # FIXME: insert proper C++ library support |
---|
10621 | ld_shlibs_CXX=no |
---|
10622 | ;; |
---|
10623 | esac |
---|
10624 | ;; |
---|
10625 | solaris*) |
---|
10626 | case $cc_basename in |
---|
10627 | CC) |
---|
10628 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
10629 | no_undefined_flag_CXX=' -zdefs' |
---|
10630 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
10631 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
10632 | $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' |
---|
10633 | |
---|
10634 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
10635 | hardcode_shlibpath_var_CXX=no |
---|
10636 | case $host_os in |
---|
10637 | solaris2.0-5 | solaris2.0-5.*) ;; |
---|
10638 | *) |
---|
10639 | # The C++ compiler is used as linker so we must use $wl |
---|
10640 | # flag to pass the commands to the underlying system |
---|
10641 | # linker. |
---|
10642 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
10643 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
10644 | ;; |
---|
10645 | esac |
---|
10646 | link_all_deplibs_CXX=yes |
---|
10647 | |
---|
10648 | # Commands to make compiler produce verbose output that lists |
---|
10649 | # what "hidden" libraries, object files and flags are used when |
---|
10650 | # linking a shared library. |
---|
10651 | # |
---|
10652 | # There doesn't appear to be a way to prevent this compiler from |
---|
10653 | # explicitly linking system object files so we need to strip them |
---|
10654 | # from the output so that they don't get included in the library |
---|
10655 | # dependencies. |
---|
10656 | 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' |
---|
10657 | |
---|
10658 | # Archives containing C++ object files must be created using |
---|
10659 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
10660 | # necessary to make sure instantiated templates are included |
---|
10661 | # in the archive. |
---|
10662 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
---|
10663 | ;; |
---|
10664 | gcx) |
---|
10665 | # Green Hills C++ Compiler |
---|
10666 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
10667 | |
---|
10668 | # The C++ compiler must be used to create the archive. |
---|
10669 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
---|
10670 | ;; |
---|
10671 | *) |
---|
10672 | # GNU C++ compiler with Solaris linker |
---|
10673 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
10674 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
---|
10675 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
---|
10676 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
10677 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
10678 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
10679 | |
---|
10680 | # Commands to make compiler produce verbose output that lists |
---|
10681 | # what "hidden" libraries, object files and flags are used when |
---|
10682 | # linking a shared library. |
---|
10683 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
10684 | else |
---|
10685 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
---|
10686 | # platform. |
---|
10687 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
10688 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
10689 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
10690 | |
---|
10691 | # Commands to make compiler produce verbose output that lists |
---|
10692 | # what "hidden" libraries, object files and flags are used when |
---|
10693 | # linking a shared library. |
---|
10694 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
10695 | fi |
---|
10696 | |
---|
10697 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
---|
10698 | fi |
---|
10699 | ;; |
---|
10700 | esac |
---|
10701 | ;; |
---|
10702 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
10703 | archive_cmds_need_lc_CXX=no |
---|
10704 | ;; |
---|
10705 | tandem*) |
---|
10706 | case $cc_basename in |
---|
10707 | NCC) |
---|
10708 | # NonStop-UX NCC 3.20 |
---|
10709 | # FIXME: insert proper C++ library support |
---|
10710 | ld_shlibs_CXX=no |
---|
10711 | ;; |
---|
10712 | *) |
---|
10713 | # FIXME: insert proper C++ library support |
---|
10714 | ld_shlibs_CXX=no |
---|
10715 | ;; |
---|
10716 | esac |
---|
10717 | ;; |
---|
10718 | vxworks*) |
---|
10719 | # FIXME: insert proper C++ library support |
---|
10720 | ld_shlibs_CXX=no |
---|
10721 | ;; |
---|
10722 | *) |
---|
10723 | # FIXME: insert proper C++ library support |
---|
10724 | ld_shlibs_CXX=no |
---|
10725 | ;; |
---|
10726 | esac |
---|
10727 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
10728 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
---|
10729 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
10730 | |
---|
10731 | GCC_CXX="$GXX" |
---|
10732 | LD_CXX="$LD" |
---|
10733 | |
---|
10734 | |
---|
10735 | cat > conftest.$ac_ext <<EOF |
---|
10736 | class Foo |
---|
10737 | { |
---|
10738 | public: |
---|
10739 | Foo (void) { a = 0; } |
---|
10740 | private: |
---|
10741 | int a; |
---|
10742 | }; |
---|
10743 | EOF |
---|
10744 | |
---|
10745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10746 | (eval $ac_compile) 2>&5 |
---|
10747 | ac_status=$? |
---|
10748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10749 | (exit $ac_status); }; then |
---|
10750 | # Parse the compiler output and extract the necessary |
---|
10751 | # objects, libraries and library flags. |
---|
10752 | |
---|
10753 | # Sentinel used to keep track of whether or not we are before |
---|
10754 | # the conftest object file. |
---|
10755 | pre_test_object_deps_done=no |
---|
10756 | |
---|
10757 | # The `*' in the case matches for architectures that use `case' in |
---|
10758 | # $output_verbose_cmd can trigger glob expansion during the loop |
---|
10759 | # eval without this substitution. |
---|
10760 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
---|
10761 | |
---|
10762 | for p in `eval $output_verbose_link_cmd`; do |
---|
10763 | case $p in |
---|
10764 | |
---|
10765 | -L* | -R* | -l*) |
---|
10766 | # Some compilers place space between "-{L,R}" and the path. |
---|
10767 | # Remove the space. |
---|
10768 | if test $p = "-L" \ |
---|
10769 | || test $p = "-R"; then |
---|
10770 | prev=$p |
---|
10771 | continue |
---|
10772 | else |
---|
10773 | prev= |
---|
10774 | fi |
---|
10775 | |
---|
10776 | if test "$pre_test_object_deps_done" = no; then |
---|
10777 | case $p in |
---|
10778 | -L* | -R*) |
---|
10779 | # Internal compiler library paths should come after those |
---|
10780 | # provided the user. The postdeps already come after the |
---|
10781 | # user supplied libs so there is no need to process them. |
---|
10782 | if test -z "$compiler_lib_search_path_CXX"; then |
---|
10783 | compiler_lib_search_path_CXX="${prev}${p}" |
---|
10784 | else |
---|
10785 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
---|
10786 | fi |
---|
10787 | ;; |
---|
10788 | # The "-l" case would never come before the object being |
---|
10789 | # linked, so don't bother handling this case. |
---|
10790 | esac |
---|
10791 | else |
---|
10792 | if test -z "$postdeps_CXX"; then |
---|
10793 | postdeps_CXX="${prev}${p}" |
---|
10794 | else |
---|
10795 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
---|
10796 | fi |
---|
10797 | fi |
---|
10798 | ;; |
---|
10799 | |
---|
10800 | *.$objext) |
---|
10801 | # This assumes that the test object file only shows up |
---|
10802 | # once in the compiler output. |
---|
10803 | if test "$p" = "conftest.$objext"; then |
---|
10804 | pre_test_object_deps_done=yes |
---|
10805 | continue |
---|
10806 | fi |
---|
10807 | |
---|
10808 | if test "$pre_test_object_deps_done" = no; then |
---|
10809 | if test -z "$predep_objects_CXX"; then |
---|
10810 | predep_objects_CXX="$p" |
---|
10811 | else |
---|
10812 | predep_objects_CXX="$predep_objects_CXX $p" |
---|
10813 | fi |
---|
10814 | else |
---|
10815 | if test -z "$postdep_objects_CXX"; then |
---|
10816 | postdep_objects_CXX="$p" |
---|
10817 | else |
---|
10818 | postdep_objects_CXX="$postdep_objects_CXX $p" |
---|
10819 | fi |
---|
10820 | fi |
---|
10821 | ;; |
---|
10822 | |
---|
10823 | *) ;; # Ignore the rest. |
---|
10824 | |
---|
10825 | esac |
---|
10826 | done |
---|
10827 | |
---|
10828 | # Clean up. |
---|
10829 | rm -f a.out a.exe |
---|
10830 | else |
---|
10831 | echo "libtool.m4: error: problem compiling CXX test program" |
---|
10832 | fi |
---|
10833 | |
---|
10834 | $rm -f confest.$objext |
---|
10835 | |
---|
10836 | case " $postdeps_CXX " in |
---|
10837 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
---|
10838 | esac |
---|
10839 | |
---|
10840 | lt_prog_compiler_wl_CXX= |
---|
10841 | lt_prog_compiler_pic_CXX= |
---|
10842 | lt_prog_compiler_static_CXX= |
---|
10843 | |
---|
10844 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
10845 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
10846 | |
---|
10847 | # C++ specific cases for pic, static, wl, etc. |
---|
10848 | if test "$GXX" = yes; then |
---|
10849 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10850 | lt_prog_compiler_static_CXX='-static' |
---|
10851 | |
---|
10852 | case $host_os in |
---|
10853 | aix*) |
---|
10854 | # All AIX code is PIC. |
---|
10855 | if test "$host_cpu" = ia64; then |
---|
10856 | # AIX 5 now supports IA64 processor |
---|
10857 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
10858 | fi |
---|
10859 | ;; |
---|
10860 | amigaos*) |
---|
10861 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
10862 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
10863 | # like `-m68040'. |
---|
10864 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
---|
10865 | ;; |
---|
10866 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
10867 | # PIC is the default for these OSes. |
---|
10868 | ;; |
---|
10869 | mingw* | os2* | pw32*) |
---|
10870 | # This hack is so that the source file can tell whether it is being |
---|
10871 | # built for inclusion in a dll (and should export symbols for example). |
---|
10872 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
---|
10873 | ;; |
---|
10874 | darwin* | rhapsody*) |
---|
10875 | # PIC is the default on this platform |
---|
10876 | # Common symbols not allowed in MH_DYLIB files |
---|
10877 | lt_prog_compiler_pic_CXX='-fno-common' |
---|
10878 | ;; |
---|
10879 | *djgpp*) |
---|
10880 | # DJGPP does not support shared libraries at all |
---|
10881 | lt_prog_compiler_pic_CXX= |
---|
10882 | ;; |
---|
10883 | sysv4*MP*) |
---|
10884 | if test -d /usr/nec; then |
---|
10885 | lt_prog_compiler_pic_CXX=-Kconform_pic |
---|
10886 | fi |
---|
10887 | ;; |
---|
10888 | hpux*) |
---|
10889 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
10890 | # not for PA HP-UX. |
---|
10891 | case "$host_cpu" in |
---|
10892 | hppa*64*|ia64*) |
---|
10893 | ;; |
---|
10894 | *) |
---|
10895 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
10896 | ;; |
---|
10897 | esac |
---|
10898 | ;; |
---|
10899 | *) |
---|
10900 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
10901 | ;; |
---|
10902 | esac |
---|
10903 | else |
---|
10904 | case $host_os in |
---|
10905 | aix4* | aix5*) |
---|
10906 | # All AIX code is PIC. |
---|
10907 | if test "$host_cpu" = ia64; then |
---|
10908 | # AIX 5 now supports IA64 processor |
---|
10909 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
10910 | else |
---|
10911 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
---|
10912 | fi |
---|
10913 | ;; |
---|
10914 | chorus*) |
---|
10915 | case $cc_basename in |
---|
10916 | cxch68) |
---|
10917 | # Green Hills C++ Compiler |
---|
10918 | # _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" |
---|
10919 | ;; |
---|
10920 | esac |
---|
10921 | ;; |
---|
10922 | dgux*) |
---|
10923 | case $cc_basename in |
---|
10924 | ec++) |
---|
10925 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
10926 | ;; |
---|
10927 | ghcx) |
---|
10928 | # Green Hills C++ Compiler |
---|
10929 | lt_prog_compiler_pic_CXX='-pic' |
---|
10930 | ;; |
---|
10931 | *) |
---|
10932 | ;; |
---|
10933 | esac |
---|
10934 | ;; |
---|
10935 | freebsd* | kfreebsd*-gnu) |
---|
10936 | # FreeBSD uses GNU C++ |
---|
10937 | ;; |
---|
10938 | hpux9* | hpux10* | hpux11*) |
---|
10939 | case $cc_basename in |
---|
10940 | CC) |
---|
10941 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10942 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
10943 | if test "$host_cpu" != ia64; then |
---|
10944 | lt_prog_compiler_pic_CXX='+Z' |
---|
10945 | fi |
---|
10946 | ;; |
---|
10947 | aCC) |
---|
10948 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10949 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
10950 | case "$host_cpu" in |
---|
10951 | hppa*64*|ia64*) |
---|
10952 | # +Z the default |
---|
10953 | ;; |
---|
10954 | *) |
---|
10955 | lt_prog_compiler_pic_CXX='+Z' |
---|
10956 | ;; |
---|
10957 | esac |
---|
10958 | ;; |
---|
10959 | *) |
---|
10960 | ;; |
---|
10961 | esac |
---|
10962 | ;; |
---|
10963 | irix5* | irix6* | nonstopux*) |
---|
10964 | case $cc_basename in |
---|
10965 | CC) |
---|
10966 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10967 | lt_prog_compiler_static_CXX='-non_shared' |
---|
10968 | # CC pic flag -KPIC is the default. |
---|
10969 | ;; |
---|
10970 | *) |
---|
10971 | ;; |
---|
10972 | esac |
---|
10973 | ;; |
---|
10974 | linux*) |
---|
10975 | case $cc_basename in |
---|
10976 | KCC) |
---|
10977 | # KAI C++ Compiler |
---|
10978 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
10979 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
10980 | ;; |
---|
10981 | icpc) |
---|
10982 | # Intel C++ |
---|
10983 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10984 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
10985 | lt_prog_compiler_static_CXX='-static' |
---|
10986 | ;; |
---|
10987 | cxx) |
---|
10988 | # Compaq C++ |
---|
10989 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
10990 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
10991 | lt_prog_compiler_pic_CXX= |
---|
10992 | lt_prog_compiler_static_CXX='-non_shared' |
---|
10993 | ;; |
---|
10994 | *) |
---|
10995 | ;; |
---|
10996 | esac |
---|
10997 | ;; |
---|
10998 | lynxos*) |
---|
10999 | ;; |
---|
11000 | m88k*) |
---|
11001 | ;; |
---|
11002 | mvs*) |
---|
11003 | case $cc_basename in |
---|
11004 | cxx) |
---|
11005 | lt_prog_compiler_pic_CXX='-W c,exportall' |
---|
11006 | ;; |
---|
11007 | *) |
---|
11008 | ;; |
---|
11009 | esac |
---|
11010 | ;; |
---|
11011 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
11012 | ;; |
---|
11013 | osf3* | osf4* | osf5*) |
---|
11014 | case $cc_basename in |
---|
11015 | KCC) |
---|
11016 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
11017 | ;; |
---|
11018 | RCC) |
---|
11019 | # Rational C++ 2.4.1 |
---|
11020 | lt_prog_compiler_pic_CXX='-pic' |
---|
11021 | ;; |
---|
11022 | cxx) |
---|
11023 | # Digital/Compaq C++ |
---|
11024 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11025 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
11026 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
11027 | lt_prog_compiler_pic_CXX= |
---|
11028 | lt_prog_compiler_static_CXX='-non_shared' |
---|
11029 | ;; |
---|
11030 | *) |
---|
11031 | ;; |
---|
11032 | esac |
---|
11033 | ;; |
---|
11034 | psos*) |
---|
11035 | ;; |
---|
11036 | sco*) |
---|
11037 | case $cc_basename in |
---|
11038 | CC) |
---|
11039 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
11040 | ;; |
---|
11041 | *) |
---|
11042 | ;; |
---|
11043 | esac |
---|
11044 | ;; |
---|
11045 | solaris*) |
---|
11046 | case $cc_basename in |
---|
11047 | CC) |
---|
11048 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
11049 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
11050 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
11051 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
---|
11052 | ;; |
---|
11053 | gcx) |
---|
11054 | # Green Hills C++ Compiler |
---|
11055 | lt_prog_compiler_pic_CXX='-PIC' |
---|
11056 | ;; |
---|
11057 | *) |
---|
11058 | ;; |
---|
11059 | esac |
---|
11060 | ;; |
---|
11061 | sunos4*) |
---|
11062 | case $cc_basename in |
---|
11063 | CC) |
---|
11064 | # Sun C++ 4.x |
---|
11065 | lt_prog_compiler_pic_CXX='-pic' |
---|
11066 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
11067 | ;; |
---|
11068 | lcc) |
---|
11069 | # Lucid |
---|
11070 | lt_prog_compiler_pic_CXX='-pic' |
---|
11071 | ;; |
---|
11072 | *) |
---|
11073 | ;; |
---|
11074 | esac |
---|
11075 | ;; |
---|
11076 | tandem*) |
---|
11077 | case $cc_basename in |
---|
11078 | NCC) |
---|
11079 | # NonStop-UX NCC 3.20 |
---|
11080 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
11081 | ;; |
---|
11082 | *) |
---|
11083 | ;; |
---|
11084 | esac |
---|
11085 | ;; |
---|
11086 | unixware*) |
---|
11087 | ;; |
---|
11088 | vxworks*) |
---|
11089 | ;; |
---|
11090 | *) |
---|
11091 | lt_prog_compiler_can_build_shared_CXX=no |
---|
11092 | ;; |
---|
11093 | esac |
---|
11094 | fi |
---|
11095 | |
---|
11096 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
---|
11097 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
---|
11098 | |
---|
11099 | # |
---|
11100 | # Check to make sure the PIC flag actually works. |
---|
11101 | # |
---|
11102 | if test -n "$lt_prog_compiler_pic_CXX"; then |
---|
11103 | |
---|
11104 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
---|
11105 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
---|
11106 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
---|
11107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11108 | else |
---|
11109 | lt_prog_compiler_pic_works_CXX=no |
---|
11110 | ac_outfile=conftest.$ac_objext |
---|
11111 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
11112 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
---|
11113 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
11114 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
11115 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
11116 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
11117 | # The option is referenced via a variable to avoid confusing sed. |
---|
11118 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
11119 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
11120 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
11121 | -e 's:$: $lt_compiler_flag:'` |
---|
11122 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
11123 | (eval "$lt_compile" 2>conftest.err) |
---|
11124 | ac_status=$? |
---|
11125 | cat conftest.err >&5 |
---|
11126 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
11127 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
11128 | # The compiler can only warn and ignore the option if not recognized |
---|
11129 | # So say no if there are warnings |
---|
11130 | if test ! -s conftest.err; then |
---|
11131 | lt_prog_compiler_pic_works_CXX=yes |
---|
11132 | fi |
---|
11133 | fi |
---|
11134 | $rm conftest* |
---|
11135 | |
---|
11136 | fi |
---|
11137 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
---|
11138 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
---|
11139 | |
---|
11140 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
---|
11141 | case $lt_prog_compiler_pic_CXX in |
---|
11142 | "" | " "*) ;; |
---|
11143 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
---|
11144 | esac |
---|
11145 | else |
---|
11146 | lt_prog_compiler_pic_CXX= |
---|
11147 | lt_prog_compiler_can_build_shared_CXX=no |
---|
11148 | fi |
---|
11149 | |
---|
11150 | fi |
---|
11151 | case "$host_os" in |
---|
11152 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
11153 | *djgpp*) |
---|
11154 | lt_prog_compiler_pic_CXX= |
---|
11155 | ;; |
---|
11156 | *) |
---|
11157 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
---|
11158 | ;; |
---|
11159 | esac |
---|
11160 | |
---|
11161 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
11162 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
11163 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
---|
11164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11165 | else |
---|
11166 | lt_cv_prog_compiler_c_o_CXX=no |
---|
11167 | $rm -r conftest 2>/dev/null |
---|
11168 | mkdir conftest |
---|
11169 | cd conftest |
---|
11170 | mkdir out |
---|
11171 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
11172 | |
---|
11173 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
11174 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
11175 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
11176 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
11177 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
11178 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
11179 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
11180 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
11181 | -e 's:$: $lt_compiler_flag:'` |
---|
11182 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
11183 | (eval "$lt_compile" 2>out/conftest.err) |
---|
11184 | ac_status=$? |
---|
11185 | cat out/conftest.err >&5 |
---|
11186 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
11187 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
11188 | then |
---|
11189 | # The compiler can only warn and ignore the option if not recognized |
---|
11190 | # So say no if there are warnings |
---|
11191 | if test ! -s out/conftest.err; then |
---|
11192 | lt_cv_prog_compiler_c_o_CXX=yes |
---|
11193 | fi |
---|
11194 | fi |
---|
11195 | chmod u+w . |
---|
11196 | $rm conftest* |
---|
11197 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
11198 | # template instantiation |
---|
11199 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
11200 | $rm out/* && rmdir out |
---|
11201 | cd .. |
---|
11202 | rmdir conftest |
---|
11203 | $rm conftest* |
---|
11204 | |
---|
11205 | fi |
---|
11206 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
---|
11207 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
---|
11208 | |
---|
11209 | |
---|
11210 | hard_links="nottested" |
---|
11211 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
---|
11212 | # do not overwrite the value of need_locks provided by the user |
---|
11213 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
11214 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
11215 | hard_links=yes |
---|
11216 | $rm conftest* |
---|
11217 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
11218 | touch conftest.a |
---|
11219 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
11220 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
11221 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
11222 | echo "${ECHO_T}$hard_links" >&6 |
---|
11223 | if test "$hard_links" = no; then |
---|
11224 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
11225 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
11226 | need_locks=warn |
---|
11227 | fi |
---|
11228 | else |
---|
11229 | need_locks=no |
---|
11230 | fi |
---|
11231 | |
---|
11232 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
11233 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
11234 | |
---|
11235 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
11236 | case $host_os in |
---|
11237 | aix4* | aix5*) |
---|
11238 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
11239 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
11240 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
11241 | 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' |
---|
11242 | else |
---|
11243 | 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' |
---|
11244 | fi |
---|
11245 | ;; |
---|
11246 | pw32*) |
---|
11247 | export_symbols_cmds_CXX="$ltdll_cmds" |
---|
11248 | ;; |
---|
11249 | cygwin* | mingw*) |
---|
11250 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
11251 | ;; |
---|
11252 | linux*) |
---|
11253 | link_all_deplibs_CXX=no |
---|
11254 | ;; |
---|
11255 | *) |
---|
11256 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
11257 | ;; |
---|
11258 | esac |
---|
11259 | |
---|
11260 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
11261 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
---|
11262 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
11263 | |
---|
11264 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
11265 | if test "$GCC" = yes; then |
---|
11266 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
11267 | fi |
---|
11268 | |
---|
11269 | # |
---|
11270 | # Do we need to explicitly link libc? |
---|
11271 | # |
---|
11272 | case "x$archive_cmds_need_lc_CXX" in |
---|
11273 | x|xyes) |
---|
11274 | # Assume -lc should be added |
---|
11275 | archive_cmds_need_lc_CXX=yes |
---|
11276 | |
---|
11277 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
11278 | case $archive_cmds_CXX in |
---|
11279 | *'~'*) |
---|
11280 | # FIXME: we may have to deal with multi-command sequences. |
---|
11281 | ;; |
---|
11282 | '$CC '*) |
---|
11283 | # Test whether the compiler implicitly links with -lc since on some |
---|
11284 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
11285 | # to ld, don't add -lc before -lgcc. |
---|
11286 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
11287 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
11288 | $rm conftest* |
---|
11289 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
11290 | |
---|
11291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
11292 | (eval $ac_compile) 2>&5 |
---|
11293 | ac_status=$? |
---|
11294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11295 | (exit $ac_status); } 2>conftest.err; then |
---|
11296 | soname=conftest |
---|
11297 | lib=conftest |
---|
11298 | libobjs=conftest.$ac_objext |
---|
11299 | deplibs= |
---|
11300 | wl=$lt_prog_compiler_wl_CXX |
---|
11301 | compiler_flags=-v |
---|
11302 | linker_flags=-v |
---|
11303 | verstring= |
---|
11304 | output_objdir=. |
---|
11305 | libname=conftest |
---|
11306 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
---|
11307 | allow_undefined_flag_CXX= |
---|
11308 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
11309 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
11310 | ac_status=$? |
---|
11311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11312 | (exit $ac_status); } |
---|
11313 | then |
---|
11314 | archive_cmds_need_lc_CXX=no |
---|
11315 | else |
---|
11316 | archive_cmds_need_lc_CXX=yes |
---|
11317 | fi |
---|
11318 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
---|
11319 | else |
---|
11320 | cat conftest.err 1>&5 |
---|
11321 | fi |
---|
11322 | $rm conftest* |
---|
11323 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
---|
11324 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
---|
11325 | ;; |
---|
11326 | esac |
---|
11327 | fi |
---|
11328 | ;; |
---|
11329 | esac |
---|
11330 | |
---|
11331 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
11332 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
11333 | library_names_spec= |
---|
11334 | libname_spec='lib$name' |
---|
11335 | soname_spec= |
---|
11336 | shrext_cmds=".so" |
---|
11337 | postinstall_cmds= |
---|
11338 | postuninstall_cmds= |
---|
11339 | finish_cmds= |
---|
11340 | finish_eval= |
---|
11341 | shlibpath_var= |
---|
11342 | shlibpath_overrides_runpath=unknown |
---|
11343 | version_type=none |
---|
11344 | dynamic_linker="$host_os ld.so" |
---|
11345 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
11346 | if test "$GCC" = yes; then |
---|
11347 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
11348 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
11349 | # if the path contains ";" then we assume it to be the separator |
---|
11350 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
11351 | # assumed that no part of a normal pathname contains ";" but that should |
---|
11352 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
11353 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
11354 | else |
---|
11355 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
11356 | fi |
---|
11357 | else |
---|
11358 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
11359 | fi |
---|
11360 | need_lib_prefix=unknown |
---|
11361 | hardcode_into_libs=no |
---|
11362 | |
---|
11363 | # when you set need_version to no, make sure it does not cause -set_version |
---|
11364 | # flags to be left without arguments |
---|
11365 | need_version=unknown |
---|
11366 | |
---|
11367 | case $host_os in |
---|
11368 | aix3*) |
---|
11369 | version_type=linux |
---|
11370 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
11371 | shlibpath_var=LIBPATH |
---|
11372 | |
---|
11373 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
11374 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11375 | ;; |
---|
11376 | |
---|
11377 | aix4* | aix5*) |
---|
11378 | version_type=linux |
---|
11379 | need_lib_prefix=no |
---|
11380 | need_version=no |
---|
11381 | hardcode_into_libs=yes |
---|
11382 | if test "$host_cpu" = ia64; then |
---|
11383 | # AIX 5 supports IA64 |
---|
11384 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
11385 | shlibpath_var=LD_LIBRARY_PATH |
---|
11386 | else |
---|
11387 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
11388 | # for dependence libraries. The import file would start with |
---|
11389 | # the line `#! .'. This would cause the generated library to |
---|
11390 | # depend on `.', always an invalid library. This was fixed in |
---|
11391 | # development snapshots of GCC prior to 3.0. |
---|
11392 | case $host_os in |
---|
11393 | aix4 | aix4.[01] | aix4.[01].*) |
---|
11394 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
11395 | echo ' yes ' |
---|
11396 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
11397 | : |
---|
11398 | else |
---|
11399 | can_build_shared=no |
---|
11400 | fi |
---|
11401 | ;; |
---|
11402 | esac |
---|
11403 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
11404 | # soname into executable. Probably we can add versioning support to |
---|
11405 | # collect2, so additional links can be useful in future. |
---|
11406 | if test "$aix_use_runtimelinking" = yes; then |
---|
11407 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
11408 | # instead of lib<name>.a to let people know that these are not |
---|
11409 | # typical AIX shared libraries. |
---|
11410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11411 | else |
---|
11412 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
11413 | # and later when we are not doing run time linking. |
---|
11414 | library_names_spec='${libname}${release}.a $libname.a' |
---|
11415 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11416 | fi |
---|
11417 | shlibpath_var=LIBPATH |
---|
11418 | fi |
---|
11419 | ;; |
---|
11420 | |
---|
11421 | amigaos*) |
---|
11422 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
11423 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
11424 | 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' |
---|
11425 | ;; |
---|
11426 | |
---|
11427 | beos*) |
---|
11428 | library_names_spec='${libname}${shared_ext}' |
---|
11429 | dynamic_linker="$host_os ld.so" |
---|
11430 | shlibpath_var=LIBRARY_PATH |
---|
11431 | ;; |
---|
11432 | |
---|
11433 | bsdi4*) |
---|
11434 | version_type=linux |
---|
11435 | need_version=no |
---|
11436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11437 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11438 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
11439 | shlibpath_var=LD_LIBRARY_PATH |
---|
11440 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
11441 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
11442 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
11443 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
11444 | # libtool to hard-code these into programs |
---|
11445 | ;; |
---|
11446 | |
---|
11447 | cygwin* | mingw* | pw32*) |
---|
11448 | version_type=windows |
---|
11449 | shrext_cmds=".dll" |
---|
11450 | need_version=no |
---|
11451 | need_lib_prefix=no |
---|
11452 | |
---|
11453 | case $GCC,$host_os in |
---|
11454 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
11455 | library_names_spec='$libname.dll.a' |
---|
11456 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
11457 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
11458 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
11459 | dldir=$destdir/`dirname \$dlpath`~ |
---|
11460 | test -d \$dldir || mkdir -p \$dldir~ |
---|
11461 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
11462 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
11463 | dlpath=$dir/\$dldll~ |
---|
11464 | $rm \$dlpath' |
---|
11465 | shlibpath_overrides_runpath=yes |
---|
11466 | |
---|
11467 | case $host_os in |
---|
11468 | cygwin*) |
---|
11469 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
11470 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
11471 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
11472 | ;; |
---|
11473 | mingw*) |
---|
11474 | # MinGW DLLs use traditional 'lib' prefix |
---|
11475 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
11476 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
11477 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
11478 | # It is most probably a Windows format PATH printed by |
---|
11479 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
11480 | # path with ; separators, and with drive letters. We can handle the |
---|
11481 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
11482 | # especially as we might pass files found there to a mingw objdump, |
---|
11483 | # which wouldn't understand a cygwinified path. Ahh. |
---|
11484 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
11485 | else |
---|
11486 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
11487 | fi |
---|
11488 | ;; |
---|
11489 | pw32*) |
---|
11490 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
11491 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
---|
11492 | ;; |
---|
11493 | esac |
---|
11494 | ;; |
---|
11495 | |
---|
11496 | *) |
---|
11497 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
11498 | ;; |
---|
11499 | esac |
---|
11500 | dynamic_linker='Win32 ld.exe' |
---|
11501 | # FIXME: first we should search . and the directory the executable is in |
---|
11502 | shlibpath_var=PATH |
---|
11503 | ;; |
---|
11504 | |
---|
11505 | darwin* | rhapsody*) |
---|
11506 | dynamic_linker="$host_os dyld" |
---|
11507 | version_type=darwin |
---|
11508 | need_lib_prefix=no |
---|
11509 | need_version=no |
---|
11510 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
11511 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
11512 | shlibpath_overrides_runpath=yes |
---|
11513 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
11514 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
11515 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
11516 | if test "$GCC" = yes; then |
---|
11517 | 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"` |
---|
11518 | else |
---|
11519 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
11520 | fi |
---|
11521 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
11522 | ;; |
---|
11523 | |
---|
11524 | dgux*) |
---|
11525 | version_type=linux |
---|
11526 | need_lib_prefix=no |
---|
11527 | need_version=no |
---|
11528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
11529 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11530 | shlibpath_var=LD_LIBRARY_PATH |
---|
11531 | ;; |
---|
11532 | |
---|
11533 | freebsd1*) |
---|
11534 | dynamic_linker=no |
---|
11535 | ;; |
---|
11536 | |
---|
11537 | kfreebsd*-gnu) |
---|
11538 | version_type=linux |
---|
11539 | need_lib_prefix=no |
---|
11540 | need_version=no |
---|
11541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
11542 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11543 | shlibpath_var=LD_LIBRARY_PATH |
---|
11544 | shlibpath_overrides_runpath=no |
---|
11545 | hardcode_into_libs=yes |
---|
11546 | dynamic_linker='GNU ld.so' |
---|
11547 | ;; |
---|
11548 | |
---|
11549 | freebsd*) |
---|
11550 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
11551 | version_type=freebsd-$objformat |
---|
11552 | case $version_type in |
---|
11553 | freebsd-elf*) |
---|
11554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
11555 | need_version=no |
---|
11556 | need_lib_prefix=no |
---|
11557 | ;; |
---|
11558 | freebsd-*) |
---|
11559 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
11560 | need_version=yes |
---|
11561 | ;; |
---|
11562 | esac |
---|
11563 | shlibpath_var=LD_LIBRARY_PATH |
---|
11564 | case $host_os in |
---|
11565 | freebsd2*) |
---|
11566 | shlibpath_overrides_runpath=yes |
---|
11567 | ;; |
---|
11568 | freebsd3.01* | freebsdelf3.01*) |
---|
11569 | shlibpath_overrides_runpath=yes |
---|
11570 | hardcode_into_libs=yes |
---|
11571 | ;; |
---|
11572 | *) # from 3.2 on |
---|
11573 | shlibpath_overrides_runpath=no |
---|
11574 | hardcode_into_libs=yes |
---|
11575 | ;; |
---|
11576 | esac |
---|
11577 | ;; |
---|
11578 | |
---|
11579 | gnu*) |
---|
11580 | version_type=linux |
---|
11581 | need_lib_prefix=no |
---|
11582 | need_version=no |
---|
11583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
11584 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11585 | shlibpath_var=LD_LIBRARY_PATH |
---|
11586 | hardcode_into_libs=yes |
---|
11587 | ;; |
---|
11588 | |
---|
11589 | hpux9* | hpux10* | hpux11*) |
---|
11590 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
11591 | # link against other versions. |
---|
11592 | version_type=sunos |
---|
11593 | need_lib_prefix=no |
---|
11594 | need_version=no |
---|
11595 | case "$host_cpu" in |
---|
11596 | ia64*) |
---|
11597 | shrext_cmds='.so' |
---|
11598 | hardcode_into_libs=yes |
---|
11599 | dynamic_linker="$host_os dld.so" |
---|
11600 | shlibpath_var=LD_LIBRARY_PATH |
---|
11601 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
11602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11603 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11604 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
11605 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
11606 | else |
---|
11607 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
11608 | fi |
---|
11609 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
11610 | ;; |
---|
11611 | hppa*64*) |
---|
11612 | shrext_cmds='.sl' |
---|
11613 | hardcode_into_libs=yes |
---|
11614 | dynamic_linker="$host_os dld.sl" |
---|
11615 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
11616 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
11617 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11618 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11619 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
11620 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
11621 | ;; |
---|
11622 | *) |
---|
11623 | shrext_cmds='.sl' |
---|
11624 | dynamic_linker="$host_os dld.sl" |
---|
11625 | shlibpath_var=SHLIB_PATH |
---|
11626 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
11627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11628 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11629 | ;; |
---|
11630 | esac |
---|
11631 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
11632 | postinstall_cmds='chmod 555 $lib' |
---|
11633 | ;; |
---|
11634 | |
---|
11635 | irix5* | irix6* | nonstopux*) |
---|
11636 | case $host_os in |
---|
11637 | nonstopux*) version_type=nonstopux ;; |
---|
11638 | *) |
---|
11639 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
11640 | version_type=linux |
---|
11641 | else |
---|
11642 | version_type=irix |
---|
11643 | fi ;; |
---|
11644 | esac |
---|
11645 | need_lib_prefix=no |
---|
11646 | need_version=no |
---|
11647 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
11649 | case $host_os in |
---|
11650 | irix5* | nonstopux*) |
---|
11651 | libsuff= shlibsuff= |
---|
11652 | ;; |
---|
11653 | *) |
---|
11654 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
11655 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
11656 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
11657 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
11658 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
11659 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
11660 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
11661 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
11662 | esac |
---|
11663 | ;; |
---|
11664 | esac |
---|
11665 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
11666 | shlibpath_overrides_runpath=no |
---|
11667 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
11668 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
11669 | hardcode_into_libs=yes |
---|
11670 | ;; |
---|
11671 | |
---|
11672 | # No shared lib support for Linux oldld, aout, or coff. |
---|
11673 | linux*oldld* | linux*aout* | linux*coff*) |
---|
11674 | dynamic_linker=no |
---|
11675 | ;; |
---|
11676 | |
---|
11677 | # This must be Linux ELF. |
---|
11678 | linux*) |
---|
11679 | version_type=linux |
---|
11680 | need_lib_prefix=no |
---|
11681 | need_version=no |
---|
11682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11683 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11684 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
11685 | shlibpath_var=LD_LIBRARY_PATH |
---|
11686 | shlibpath_overrides_runpath=no |
---|
11687 | # This implies no fast_install, which is unacceptable. |
---|
11688 | # Some rework will be needed to allow for fast_install |
---|
11689 | # before this can be enabled. |
---|
11690 | hardcode_into_libs=yes |
---|
11691 | |
---|
11692 | # Append ld.so.conf contents to the search path |
---|
11693 | if test -f /etc/ld.so.conf; then |
---|
11694 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
---|
11695 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
11696 | fi |
---|
11697 | |
---|
11698 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
11699 | # powerpc, because MkLinux only supported shared libraries with the |
---|
11700 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
11701 | # most powerpc-linux boxes support dynamic linking these days and |
---|
11702 | # people can always --disable-shared, the test was removed, and we |
---|
11703 | # assume the GNU/Linux dynamic linker is in use. |
---|
11704 | dynamic_linker='GNU/Linux ld.so' |
---|
11705 | ;; |
---|
11706 | |
---|
11707 | netbsdelf*-gnu) |
---|
11708 | version_type=linux |
---|
11709 | need_lib_prefix=no |
---|
11710 | need_version=no |
---|
11711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
11712 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11713 | shlibpath_var=LD_LIBRARY_PATH |
---|
11714 | shlibpath_overrides_runpath=no |
---|
11715 | hardcode_into_libs=yes |
---|
11716 | dynamic_linker='NetBSD ld.elf_so' |
---|
11717 | ;; |
---|
11718 | |
---|
11719 | knetbsd*-gnu) |
---|
11720 | version_type=linux |
---|
11721 | need_lib_prefix=no |
---|
11722 | need_version=no |
---|
11723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
11724 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11725 | shlibpath_var=LD_LIBRARY_PATH |
---|
11726 | shlibpath_overrides_runpath=no |
---|
11727 | hardcode_into_libs=yes |
---|
11728 | dynamic_linker='GNU ld.so' |
---|
11729 | ;; |
---|
11730 | |
---|
11731 | netbsd*) |
---|
11732 | version_type=sunos |
---|
11733 | need_lib_prefix=no |
---|
11734 | need_version=no |
---|
11735 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
11736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
11737 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
11738 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
11739 | else |
---|
11740 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
11741 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11742 | dynamic_linker='NetBSD ld.elf_so' |
---|
11743 | fi |
---|
11744 | shlibpath_var=LD_LIBRARY_PATH |
---|
11745 | shlibpath_overrides_runpath=yes |
---|
11746 | hardcode_into_libs=yes |
---|
11747 | ;; |
---|
11748 | |
---|
11749 | newsos6) |
---|
11750 | version_type=linux |
---|
11751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11752 | shlibpath_var=LD_LIBRARY_PATH |
---|
11753 | shlibpath_overrides_runpath=yes |
---|
11754 | ;; |
---|
11755 | |
---|
11756 | nto-qnx*) |
---|
11757 | version_type=linux |
---|
11758 | need_lib_prefix=no |
---|
11759 | need_version=no |
---|
11760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11761 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11762 | shlibpath_var=LD_LIBRARY_PATH |
---|
11763 | shlibpath_overrides_runpath=yes |
---|
11764 | ;; |
---|
11765 | |
---|
11766 | openbsd*) |
---|
11767 | version_type=sunos |
---|
11768 | need_lib_prefix=no |
---|
11769 | need_version=yes |
---|
11770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
11771 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
11772 | shlibpath_var=LD_LIBRARY_PATH |
---|
11773 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
11774 | case $host_os in |
---|
11775 | openbsd2.[89] | openbsd2.[89].*) |
---|
11776 | shlibpath_overrides_runpath=no |
---|
11777 | ;; |
---|
11778 | *) |
---|
11779 | shlibpath_overrides_runpath=yes |
---|
11780 | ;; |
---|
11781 | esac |
---|
11782 | else |
---|
11783 | shlibpath_overrides_runpath=yes |
---|
11784 | fi |
---|
11785 | ;; |
---|
11786 | |
---|
11787 | os2*) |
---|
11788 | libname_spec='$name' |
---|
11789 | shrext_cmds=".dll" |
---|
11790 | need_lib_prefix=no |
---|
11791 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
11792 | dynamic_linker='OS/2 ld.exe' |
---|
11793 | shlibpath_var=LIBPATH |
---|
11794 | ;; |
---|
11795 | |
---|
11796 | osf3* | osf4* | osf5*) |
---|
11797 | version_type=osf |
---|
11798 | need_lib_prefix=no |
---|
11799 | need_version=no |
---|
11800 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11802 | shlibpath_var=LD_LIBRARY_PATH |
---|
11803 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
11804 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
11805 | ;; |
---|
11806 | |
---|
11807 | sco3.2v5*) |
---|
11808 | version_type=osf |
---|
11809 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11811 | shlibpath_var=LD_LIBRARY_PATH |
---|
11812 | ;; |
---|
11813 | |
---|
11814 | solaris*) |
---|
11815 | version_type=linux |
---|
11816 | need_lib_prefix=no |
---|
11817 | need_version=no |
---|
11818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11819 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11820 | shlibpath_var=LD_LIBRARY_PATH |
---|
11821 | shlibpath_overrides_runpath=yes |
---|
11822 | hardcode_into_libs=yes |
---|
11823 | # ldd complains unless libraries are executable |
---|
11824 | postinstall_cmds='chmod +x $lib' |
---|
11825 | ;; |
---|
11826 | |
---|
11827 | sunos4*) |
---|
11828 | version_type=sunos |
---|
11829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
11830 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
11831 | shlibpath_var=LD_LIBRARY_PATH |
---|
11832 | shlibpath_overrides_runpath=yes |
---|
11833 | if test "$with_gnu_ld" = yes; then |
---|
11834 | need_lib_prefix=no |
---|
11835 | fi |
---|
11836 | need_version=yes |
---|
11837 | ;; |
---|
11838 | |
---|
11839 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
11840 | version_type=linux |
---|
11841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11842 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11843 | shlibpath_var=LD_LIBRARY_PATH |
---|
11844 | case $host_vendor in |
---|
11845 | sni) |
---|
11846 | shlibpath_overrides_runpath=no |
---|
11847 | need_lib_prefix=no |
---|
11848 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
11849 | runpath_var=LD_RUN_PATH |
---|
11850 | ;; |
---|
11851 | siemens) |
---|
11852 | need_lib_prefix=no |
---|
11853 | ;; |
---|
11854 | motorola) |
---|
11855 | need_lib_prefix=no |
---|
11856 | need_version=no |
---|
11857 | shlibpath_overrides_runpath=no |
---|
11858 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
11859 | ;; |
---|
11860 | esac |
---|
11861 | ;; |
---|
11862 | |
---|
11863 | sysv4*MP*) |
---|
11864 | if test -d /usr/nec ;then |
---|
11865 | version_type=linux |
---|
11866 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
11867 | soname_spec='$libname${shared_ext}.$major' |
---|
11868 | shlibpath_var=LD_LIBRARY_PATH |
---|
11869 | fi |
---|
11870 | ;; |
---|
11871 | |
---|
11872 | uts4*) |
---|
11873 | version_type=linux |
---|
11874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11875 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11876 | shlibpath_var=LD_LIBRARY_PATH |
---|
11877 | ;; |
---|
11878 | |
---|
11879 | *) |
---|
11880 | dynamic_linker=no |
---|
11881 | ;; |
---|
11882 | esac |
---|
11883 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
11884 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
11885 | test "$dynamic_linker" = no && can_build_shared=no |
---|
11886 | |
---|
11887 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
11888 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
11889 | hardcode_action_CXX= |
---|
11890 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
---|
11891 | test -n "$runpath_var CXX" || \ |
---|
11892 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
---|
11893 | |
---|
11894 | # We can hardcode non-existant directories. |
---|
11895 | if test "$hardcode_direct_CXX" != no && |
---|
11896 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
11897 | # have to relink, otherwise we might link with an installed library |
---|
11898 | # when we should be linking with a yet-to-be-installed one |
---|
11899 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
---|
11900 | test "$hardcode_minus_L_CXX" != no; then |
---|
11901 | # Linking always hardcodes the temporary library directory. |
---|
11902 | hardcode_action_CXX=relink |
---|
11903 | else |
---|
11904 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
11905 | hardcode_action_CXX=immediate |
---|
11906 | fi |
---|
11907 | else |
---|
11908 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
11909 | # directories. |
---|
11910 | hardcode_action_CXX=unsupported |
---|
11911 | fi |
---|
11912 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
---|
11913 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
---|
11914 | |
---|
11915 | if test "$hardcode_action_CXX" = relink; then |
---|
11916 | # Fast installation is not supported |
---|
11917 | enable_fast_install=no |
---|
11918 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
11919 | test "$enable_shared" = no; then |
---|
11920 | # Fast installation is not necessary |
---|
11921 | enable_fast_install=needless |
---|
11922 | fi |
---|
11923 | |
---|
11924 | striplib= |
---|
11925 | old_striplib= |
---|
11926 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
11927 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
11928 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
11929 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
11930 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
11931 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
11932 | echo "${ECHO_T}yes" >&6 |
---|
11933 | else |
---|
11934 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
11935 | case $host_os in |
---|
11936 | darwin*) |
---|
11937 | if test -n "$STRIP" ; then |
---|
11938 | striplib="$STRIP -x" |
---|
11939 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
11940 | echo "${ECHO_T}yes" >&6 |
---|
11941 | else |
---|
11942 | echo "$as_me:$LINENO: result: no" >&5 |
---|
11943 | echo "${ECHO_T}no" >&6 |
---|
11944 | fi |
---|
11945 | ;; |
---|
11946 | *) |
---|
11947 | echo "$as_me:$LINENO: result: no" >&5 |
---|
11948 | echo "${ECHO_T}no" >&6 |
---|
11949 | ;; |
---|
11950 | esac |
---|
11951 | fi |
---|
11952 | |
---|
11953 | if test "x$enable_dlopen" != xyes; then |
---|
11954 | enable_dlopen=unknown |
---|
11955 | enable_dlopen_self=unknown |
---|
11956 | enable_dlopen_self_static=unknown |
---|
11957 | else |
---|
11958 | lt_cv_dlopen=no |
---|
11959 | lt_cv_dlopen_libs= |
---|
11960 | |
---|
11961 | case $host_os in |
---|
11962 | beos*) |
---|
11963 | lt_cv_dlopen="load_add_on" |
---|
11964 | lt_cv_dlopen_libs= |
---|
11965 | lt_cv_dlopen_self=yes |
---|
11966 | ;; |
---|
11967 | |
---|
11968 | mingw* | pw32*) |
---|
11969 | lt_cv_dlopen="LoadLibrary" |
---|
11970 | lt_cv_dlopen_libs= |
---|
11971 | ;; |
---|
11972 | |
---|
11973 | cygwin*) |
---|
11974 | lt_cv_dlopen="dlopen" |
---|
11975 | lt_cv_dlopen_libs= |
---|
11976 | ;; |
---|
11977 | |
---|
11978 | darwin*) |
---|
11979 | # if libdl is installed we need to link against it |
---|
11980 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
11981 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
11982 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
11983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11984 | else |
---|
11985 | ac_check_lib_save_LIBS=$LIBS |
---|
11986 | LIBS="-ldl $LIBS" |
---|
11987 | cat >conftest.$ac_ext <<_ACEOF |
---|
11988 | /* confdefs.h. */ |
---|
11989 | _ACEOF |
---|
11990 | cat confdefs.h >>conftest.$ac_ext |
---|
11991 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11992 | /* end confdefs.h. */ |
---|
11993 | |
---|
11994 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
11995 | #ifdef __cplusplus |
---|
11996 | extern "C" |
---|
11997 | #endif |
---|
11998 | /* We use char because int might match the return type of a gcc2 |
---|
11999 | builtin and then its argument prototype would still apply. */ |
---|
12000 | char dlopen (); |
---|
12001 | int |
---|
12002 | main () |
---|
12003 | { |
---|
12004 | dlopen (); |
---|
12005 | ; |
---|
12006 | return 0; |
---|
12007 | } |
---|
12008 | _ACEOF |
---|
12009 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12011 | (eval $ac_link) 2>conftest.er1 |
---|
12012 | ac_status=$? |
---|
12013 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12014 | rm -f conftest.er1 |
---|
12015 | cat conftest.err >&5 |
---|
12016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12017 | (exit $ac_status); } && |
---|
12018 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12020 | (eval $ac_try) 2>&5 |
---|
12021 | ac_status=$? |
---|
12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12023 | (exit $ac_status); }; } && |
---|
12024 | { ac_try='test -s conftest$ac_exeext' |
---|
12025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12026 | (eval $ac_try) 2>&5 |
---|
12027 | ac_status=$? |
---|
12028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12029 | (exit $ac_status); }; }; then |
---|
12030 | ac_cv_lib_dl_dlopen=yes |
---|
12031 | else |
---|
12032 | echo "$as_me: failed program was:" >&5 |
---|
12033 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12034 | |
---|
12035 | ac_cv_lib_dl_dlopen=no |
---|
12036 | fi |
---|
12037 | rm -f conftest.err conftest.$ac_objext \ |
---|
12038 | conftest$ac_exeext conftest.$ac_ext |
---|
12039 | LIBS=$ac_check_lib_save_LIBS |
---|
12040 | fi |
---|
12041 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
12042 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
12043 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
12044 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
12045 | else |
---|
12046 | |
---|
12047 | lt_cv_dlopen="dyld" |
---|
12048 | lt_cv_dlopen_libs= |
---|
12049 | lt_cv_dlopen_self=yes |
---|
12050 | |
---|
12051 | fi |
---|
12052 | |
---|
12053 | ;; |
---|
12054 | |
---|
12055 | *) |
---|
12056 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
12057 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
12058 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
12059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12060 | else |
---|
12061 | cat >conftest.$ac_ext <<_ACEOF |
---|
12062 | /* confdefs.h. */ |
---|
12063 | _ACEOF |
---|
12064 | cat confdefs.h >>conftest.$ac_ext |
---|
12065 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12066 | /* end confdefs.h. */ |
---|
12067 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
12068 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
12069 | #define shl_load innocuous_shl_load |
---|
12070 | |
---|
12071 | /* System header to define __stub macros and hopefully few prototypes, |
---|
12072 | which can conflict with char shl_load (); below. |
---|
12073 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
12074 | <limits.h> exists even on freestanding compilers. */ |
---|
12075 | |
---|
12076 | #ifdef __STDC__ |
---|
12077 | # include <limits.h> |
---|
12078 | #else |
---|
12079 | # include <assert.h> |
---|
12080 | #endif |
---|
12081 | |
---|
12082 | #undef shl_load |
---|
12083 | |
---|
12084 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12085 | #ifdef __cplusplus |
---|
12086 | extern "C" |
---|
12087 | { |
---|
12088 | #endif |
---|
12089 | /* We use char because int might match the return type of a gcc2 |
---|
12090 | builtin and then its argument prototype would still apply. */ |
---|
12091 | char shl_load (); |
---|
12092 | /* The GNU C library defines this for functions which it implements |
---|
12093 | to always fail with ENOSYS. Some functions are actually named |
---|
12094 | something starting with __ and the normal name is an alias. */ |
---|
12095 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
12096 | choke me |
---|
12097 | #else |
---|
12098 | char (*f) () = shl_load; |
---|
12099 | #endif |
---|
12100 | #ifdef __cplusplus |
---|
12101 | } |
---|
12102 | #endif |
---|
12103 | |
---|
12104 | int |
---|
12105 | main () |
---|
12106 | { |
---|
12107 | return f != shl_load; |
---|
12108 | ; |
---|
12109 | return 0; |
---|
12110 | } |
---|
12111 | _ACEOF |
---|
12112 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12114 | (eval $ac_link) 2>conftest.er1 |
---|
12115 | ac_status=$? |
---|
12116 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12117 | rm -f conftest.er1 |
---|
12118 | cat conftest.err >&5 |
---|
12119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12120 | (exit $ac_status); } && |
---|
12121 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12123 | (eval $ac_try) 2>&5 |
---|
12124 | ac_status=$? |
---|
12125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12126 | (exit $ac_status); }; } && |
---|
12127 | { ac_try='test -s conftest$ac_exeext' |
---|
12128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12129 | (eval $ac_try) 2>&5 |
---|
12130 | ac_status=$? |
---|
12131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12132 | (exit $ac_status); }; }; then |
---|
12133 | ac_cv_func_shl_load=yes |
---|
12134 | else |
---|
12135 | echo "$as_me: failed program was:" >&5 |
---|
12136 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12137 | |
---|
12138 | ac_cv_func_shl_load=no |
---|
12139 | fi |
---|
12140 | rm -f conftest.err conftest.$ac_objext \ |
---|
12141 | conftest$ac_exeext conftest.$ac_ext |
---|
12142 | fi |
---|
12143 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
12144 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
12145 | if test $ac_cv_func_shl_load = yes; then |
---|
12146 | lt_cv_dlopen="shl_load" |
---|
12147 | else |
---|
12148 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
12149 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
12150 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
12151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12152 | else |
---|
12153 | ac_check_lib_save_LIBS=$LIBS |
---|
12154 | LIBS="-ldld $LIBS" |
---|
12155 | cat >conftest.$ac_ext <<_ACEOF |
---|
12156 | /* confdefs.h. */ |
---|
12157 | _ACEOF |
---|
12158 | cat confdefs.h >>conftest.$ac_ext |
---|
12159 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12160 | /* end confdefs.h. */ |
---|
12161 | |
---|
12162 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12163 | #ifdef __cplusplus |
---|
12164 | extern "C" |
---|
12165 | #endif |
---|
12166 | /* We use char because int might match the return type of a gcc2 |
---|
12167 | builtin and then its argument prototype would still apply. */ |
---|
12168 | char shl_load (); |
---|
12169 | int |
---|
12170 | main () |
---|
12171 | { |
---|
12172 | shl_load (); |
---|
12173 | ; |
---|
12174 | return 0; |
---|
12175 | } |
---|
12176 | _ACEOF |
---|
12177 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12179 | (eval $ac_link) 2>conftest.er1 |
---|
12180 | ac_status=$? |
---|
12181 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12182 | rm -f conftest.er1 |
---|
12183 | cat conftest.err >&5 |
---|
12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12185 | (exit $ac_status); } && |
---|
12186 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12188 | (eval $ac_try) 2>&5 |
---|
12189 | ac_status=$? |
---|
12190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12191 | (exit $ac_status); }; } && |
---|
12192 | { ac_try='test -s conftest$ac_exeext' |
---|
12193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12194 | (eval $ac_try) 2>&5 |
---|
12195 | ac_status=$? |
---|
12196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12197 | (exit $ac_status); }; }; then |
---|
12198 | ac_cv_lib_dld_shl_load=yes |
---|
12199 | else |
---|
12200 | echo "$as_me: failed program was:" >&5 |
---|
12201 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12202 | |
---|
12203 | ac_cv_lib_dld_shl_load=no |
---|
12204 | fi |
---|
12205 | rm -f conftest.err conftest.$ac_objext \ |
---|
12206 | conftest$ac_exeext conftest.$ac_ext |
---|
12207 | LIBS=$ac_check_lib_save_LIBS |
---|
12208 | fi |
---|
12209 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
12210 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
12211 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
12212 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
12213 | else |
---|
12214 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
12215 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
12216 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
12217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12218 | else |
---|
12219 | cat >conftest.$ac_ext <<_ACEOF |
---|
12220 | /* confdefs.h. */ |
---|
12221 | _ACEOF |
---|
12222 | cat confdefs.h >>conftest.$ac_ext |
---|
12223 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12224 | /* end confdefs.h. */ |
---|
12225 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
12226 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
12227 | #define dlopen innocuous_dlopen |
---|
12228 | |
---|
12229 | /* System header to define __stub macros and hopefully few prototypes, |
---|
12230 | which can conflict with char dlopen (); below. |
---|
12231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
12232 | <limits.h> exists even on freestanding compilers. */ |
---|
12233 | |
---|
12234 | #ifdef __STDC__ |
---|
12235 | # include <limits.h> |
---|
12236 | #else |
---|
12237 | # include <assert.h> |
---|
12238 | #endif |
---|
12239 | |
---|
12240 | #undef dlopen |
---|
12241 | |
---|
12242 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12243 | #ifdef __cplusplus |
---|
12244 | extern "C" |
---|
12245 | { |
---|
12246 | #endif |
---|
12247 | /* We use char because int might match the return type of a gcc2 |
---|
12248 | builtin and then its argument prototype would still apply. */ |
---|
12249 | char dlopen (); |
---|
12250 | /* The GNU C library defines this for functions which it implements |
---|
12251 | to always fail with ENOSYS. Some functions are actually named |
---|
12252 | something starting with __ and the normal name is an alias. */ |
---|
12253 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
12254 | choke me |
---|
12255 | #else |
---|
12256 | char (*f) () = dlopen; |
---|
12257 | #endif |
---|
12258 | #ifdef __cplusplus |
---|
12259 | } |
---|
12260 | #endif |
---|
12261 | |
---|
12262 | int |
---|
12263 | main () |
---|
12264 | { |
---|
12265 | return f != dlopen; |
---|
12266 | ; |
---|
12267 | return 0; |
---|
12268 | } |
---|
12269 | _ACEOF |
---|
12270 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12272 | (eval $ac_link) 2>conftest.er1 |
---|
12273 | ac_status=$? |
---|
12274 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12275 | rm -f conftest.er1 |
---|
12276 | cat conftest.err >&5 |
---|
12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12278 | (exit $ac_status); } && |
---|
12279 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12281 | (eval $ac_try) 2>&5 |
---|
12282 | ac_status=$? |
---|
12283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12284 | (exit $ac_status); }; } && |
---|
12285 | { ac_try='test -s conftest$ac_exeext' |
---|
12286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12287 | (eval $ac_try) 2>&5 |
---|
12288 | ac_status=$? |
---|
12289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12290 | (exit $ac_status); }; }; then |
---|
12291 | ac_cv_func_dlopen=yes |
---|
12292 | else |
---|
12293 | echo "$as_me: failed program was:" >&5 |
---|
12294 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12295 | |
---|
12296 | ac_cv_func_dlopen=no |
---|
12297 | fi |
---|
12298 | rm -f conftest.err conftest.$ac_objext \ |
---|
12299 | conftest$ac_exeext conftest.$ac_ext |
---|
12300 | fi |
---|
12301 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
12302 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
12303 | if test $ac_cv_func_dlopen = yes; then |
---|
12304 | lt_cv_dlopen="dlopen" |
---|
12305 | else |
---|
12306 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
12307 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
12308 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
12309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12310 | else |
---|
12311 | ac_check_lib_save_LIBS=$LIBS |
---|
12312 | LIBS="-ldl $LIBS" |
---|
12313 | cat >conftest.$ac_ext <<_ACEOF |
---|
12314 | /* confdefs.h. */ |
---|
12315 | _ACEOF |
---|
12316 | cat confdefs.h >>conftest.$ac_ext |
---|
12317 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12318 | /* end confdefs.h. */ |
---|
12319 | |
---|
12320 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12321 | #ifdef __cplusplus |
---|
12322 | extern "C" |
---|
12323 | #endif |
---|
12324 | /* We use char because int might match the return type of a gcc2 |
---|
12325 | builtin and then its argument prototype would still apply. */ |
---|
12326 | char dlopen (); |
---|
12327 | int |
---|
12328 | main () |
---|
12329 | { |
---|
12330 | dlopen (); |
---|
12331 | ; |
---|
12332 | return 0; |
---|
12333 | } |
---|
12334 | _ACEOF |
---|
12335 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12337 | (eval $ac_link) 2>conftest.er1 |
---|
12338 | ac_status=$? |
---|
12339 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12340 | rm -f conftest.er1 |
---|
12341 | cat conftest.err >&5 |
---|
12342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12343 | (exit $ac_status); } && |
---|
12344 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12346 | (eval $ac_try) 2>&5 |
---|
12347 | ac_status=$? |
---|
12348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12349 | (exit $ac_status); }; } && |
---|
12350 | { ac_try='test -s conftest$ac_exeext' |
---|
12351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12352 | (eval $ac_try) 2>&5 |
---|
12353 | ac_status=$? |
---|
12354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12355 | (exit $ac_status); }; }; then |
---|
12356 | ac_cv_lib_dl_dlopen=yes |
---|
12357 | else |
---|
12358 | echo "$as_me: failed program was:" >&5 |
---|
12359 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12360 | |
---|
12361 | ac_cv_lib_dl_dlopen=no |
---|
12362 | fi |
---|
12363 | rm -f conftest.err conftest.$ac_objext \ |
---|
12364 | conftest$ac_exeext conftest.$ac_ext |
---|
12365 | LIBS=$ac_check_lib_save_LIBS |
---|
12366 | fi |
---|
12367 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
12368 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
12369 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
12370 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
12371 | else |
---|
12372 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
12373 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
12374 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
12375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12376 | else |
---|
12377 | ac_check_lib_save_LIBS=$LIBS |
---|
12378 | LIBS="-lsvld $LIBS" |
---|
12379 | cat >conftest.$ac_ext <<_ACEOF |
---|
12380 | /* confdefs.h. */ |
---|
12381 | _ACEOF |
---|
12382 | cat confdefs.h >>conftest.$ac_ext |
---|
12383 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12384 | /* end confdefs.h. */ |
---|
12385 | |
---|
12386 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12387 | #ifdef __cplusplus |
---|
12388 | extern "C" |
---|
12389 | #endif |
---|
12390 | /* We use char because int might match the return type of a gcc2 |
---|
12391 | builtin and then its argument prototype would still apply. */ |
---|
12392 | char dlopen (); |
---|
12393 | int |
---|
12394 | main () |
---|
12395 | { |
---|
12396 | dlopen (); |
---|
12397 | ; |
---|
12398 | return 0; |
---|
12399 | } |
---|
12400 | _ACEOF |
---|
12401 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12403 | (eval $ac_link) 2>conftest.er1 |
---|
12404 | ac_status=$? |
---|
12405 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12406 | rm -f conftest.er1 |
---|
12407 | cat conftest.err >&5 |
---|
12408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12409 | (exit $ac_status); } && |
---|
12410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12412 | (eval $ac_try) 2>&5 |
---|
12413 | ac_status=$? |
---|
12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12415 | (exit $ac_status); }; } && |
---|
12416 | { ac_try='test -s conftest$ac_exeext' |
---|
12417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12418 | (eval $ac_try) 2>&5 |
---|
12419 | ac_status=$? |
---|
12420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12421 | (exit $ac_status); }; }; then |
---|
12422 | ac_cv_lib_svld_dlopen=yes |
---|
12423 | else |
---|
12424 | echo "$as_me: failed program was:" >&5 |
---|
12425 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12426 | |
---|
12427 | ac_cv_lib_svld_dlopen=no |
---|
12428 | fi |
---|
12429 | rm -f conftest.err conftest.$ac_objext \ |
---|
12430 | conftest$ac_exeext conftest.$ac_ext |
---|
12431 | LIBS=$ac_check_lib_save_LIBS |
---|
12432 | fi |
---|
12433 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
12434 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
12435 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
12436 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
12437 | else |
---|
12438 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
12439 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
12440 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
12441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12442 | else |
---|
12443 | ac_check_lib_save_LIBS=$LIBS |
---|
12444 | LIBS="-ldld $LIBS" |
---|
12445 | cat >conftest.$ac_ext <<_ACEOF |
---|
12446 | /* confdefs.h. */ |
---|
12447 | _ACEOF |
---|
12448 | cat confdefs.h >>conftest.$ac_ext |
---|
12449 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12450 | /* end confdefs.h. */ |
---|
12451 | |
---|
12452 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12453 | #ifdef __cplusplus |
---|
12454 | extern "C" |
---|
12455 | #endif |
---|
12456 | /* We use char because int might match the return type of a gcc2 |
---|
12457 | builtin and then its argument prototype would still apply. */ |
---|
12458 | char dld_link (); |
---|
12459 | int |
---|
12460 | main () |
---|
12461 | { |
---|
12462 | dld_link (); |
---|
12463 | ; |
---|
12464 | return 0; |
---|
12465 | } |
---|
12466 | _ACEOF |
---|
12467 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12469 | (eval $ac_link) 2>conftest.er1 |
---|
12470 | ac_status=$? |
---|
12471 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12472 | rm -f conftest.er1 |
---|
12473 | cat conftest.err >&5 |
---|
12474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12475 | (exit $ac_status); } && |
---|
12476 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12478 | (eval $ac_try) 2>&5 |
---|
12479 | ac_status=$? |
---|
12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12481 | (exit $ac_status); }; } && |
---|
12482 | { ac_try='test -s conftest$ac_exeext' |
---|
12483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12484 | (eval $ac_try) 2>&5 |
---|
12485 | ac_status=$? |
---|
12486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12487 | (exit $ac_status); }; }; then |
---|
12488 | ac_cv_lib_dld_dld_link=yes |
---|
12489 | else |
---|
12490 | echo "$as_me: failed program was:" >&5 |
---|
12491 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12492 | |
---|
12493 | ac_cv_lib_dld_dld_link=no |
---|
12494 | fi |
---|
12495 | rm -f conftest.err conftest.$ac_objext \ |
---|
12496 | conftest$ac_exeext conftest.$ac_ext |
---|
12497 | LIBS=$ac_check_lib_save_LIBS |
---|
12498 | fi |
---|
12499 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
12500 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
12501 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
12502 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
12503 | fi |
---|
12504 | |
---|
12505 | |
---|
12506 | fi |
---|
12507 | |
---|
12508 | |
---|
12509 | fi |
---|
12510 | |
---|
12511 | |
---|
12512 | fi |
---|
12513 | |
---|
12514 | |
---|
12515 | fi |
---|
12516 | |
---|
12517 | |
---|
12518 | fi |
---|
12519 | |
---|
12520 | ;; |
---|
12521 | esac |
---|
12522 | |
---|
12523 | if test "x$lt_cv_dlopen" != xno; then |
---|
12524 | enable_dlopen=yes |
---|
12525 | else |
---|
12526 | enable_dlopen=no |
---|
12527 | fi |
---|
12528 | |
---|
12529 | case $lt_cv_dlopen in |
---|
12530 | dlopen) |
---|
12531 | save_CPPFLAGS="$CPPFLAGS" |
---|
12532 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
12533 | |
---|
12534 | save_LDFLAGS="$LDFLAGS" |
---|
12535 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
12536 | |
---|
12537 | save_LIBS="$LIBS" |
---|
12538 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
12539 | |
---|
12540 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
12541 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
12542 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
12543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12544 | else |
---|
12545 | if test "$cross_compiling" = yes; then : |
---|
12546 | lt_cv_dlopen_self=cross |
---|
12547 | else |
---|
12548 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
12549 | lt_status=$lt_dlunknown |
---|
12550 | cat > conftest.$ac_ext <<EOF |
---|
12551 | #line __oline__ "configure" |
---|
12552 | #include "confdefs.h" |
---|
12553 | |
---|
12554 | #if HAVE_DLFCN_H |
---|
12555 | #include <dlfcn.h> |
---|
12556 | #endif |
---|
12557 | |
---|
12558 | #include <stdio.h> |
---|
12559 | |
---|
12560 | #ifdef RTLD_GLOBAL |
---|
12561 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
12562 | #else |
---|
12563 | # ifdef DL_GLOBAL |
---|
12564 | # define LT_DLGLOBAL DL_GLOBAL |
---|
12565 | # else |
---|
12566 | # define LT_DLGLOBAL 0 |
---|
12567 | # endif |
---|
12568 | #endif |
---|
12569 | |
---|
12570 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
12571 | find out it does not work in some platform. */ |
---|
12572 | #ifndef LT_DLLAZY_OR_NOW |
---|
12573 | # ifdef RTLD_LAZY |
---|
12574 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
12575 | # else |
---|
12576 | # ifdef DL_LAZY |
---|
12577 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
12578 | # else |
---|
12579 | # ifdef RTLD_NOW |
---|
12580 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
12581 | # else |
---|
12582 | # ifdef DL_NOW |
---|
12583 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
12584 | # else |
---|
12585 | # define LT_DLLAZY_OR_NOW 0 |
---|
12586 | # endif |
---|
12587 | # endif |
---|
12588 | # endif |
---|
12589 | # endif |
---|
12590 | #endif |
---|
12591 | |
---|
12592 | #ifdef __cplusplus |
---|
12593 | extern "C" void exit (int); |
---|
12594 | #endif |
---|
12595 | |
---|
12596 | void fnord() { int i=42;} |
---|
12597 | int main () |
---|
12598 | { |
---|
12599 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
12600 | int status = $lt_dlunknown; |
---|
12601 | |
---|
12602 | if (self) |
---|
12603 | { |
---|
12604 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
12605 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
12606 | /* dlclose (self); */ |
---|
12607 | } |
---|
12608 | |
---|
12609 | exit (status); |
---|
12610 | } |
---|
12611 | EOF |
---|
12612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12613 | (eval $ac_link) 2>&5 |
---|
12614 | ac_status=$? |
---|
12615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12616 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
12617 | (./conftest; exit; ) 2>/dev/null |
---|
12618 | lt_status=$? |
---|
12619 | case x$lt_status in |
---|
12620 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
12621 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
12622 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
12623 | esac |
---|
12624 | else : |
---|
12625 | # compilation failed |
---|
12626 | lt_cv_dlopen_self=no |
---|
12627 | fi |
---|
12628 | fi |
---|
12629 | rm -fr conftest* |
---|
12630 | |
---|
12631 | |
---|
12632 | fi |
---|
12633 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
12634 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
12635 | |
---|
12636 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
12637 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
12638 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
12639 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
12640 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
12641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12642 | else |
---|
12643 | if test "$cross_compiling" = yes; then : |
---|
12644 | lt_cv_dlopen_self_static=cross |
---|
12645 | else |
---|
12646 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
12647 | lt_status=$lt_dlunknown |
---|
12648 | cat > conftest.$ac_ext <<EOF |
---|
12649 | #line __oline__ "configure" |
---|
12650 | #include "confdefs.h" |
---|
12651 | |
---|
12652 | #if HAVE_DLFCN_H |
---|
12653 | #include <dlfcn.h> |
---|
12654 | #endif |
---|
12655 | |
---|
12656 | #include <stdio.h> |
---|
12657 | |
---|
12658 | #ifdef RTLD_GLOBAL |
---|
12659 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
12660 | #else |
---|
12661 | # ifdef DL_GLOBAL |
---|
12662 | # define LT_DLGLOBAL DL_GLOBAL |
---|
12663 | # else |
---|
12664 | # define LT_DLGLOBAL 0 |
---|
12665 | # endif |
---|
12666 | #endif |
---|
12667 | |
---|
12668 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
12669 | find out it does not work in some platform. */ |
---|
12670 | #ifndef LT_DLLAZY_OR_NOW |
---|
12671 | # ifdef RTLD_LAZY |
---|
12672 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
12673 | # else |
---|
12674 | # ifdef DL_LAZY |
---|
12675 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
12676 | # else |
---|
12677 | # ifdef RTLD_NOW |
---|
12678 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
12679 | # else |
---|
12680 | # ifdef DL_NOW |
---|
12681 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
12682 | # else |
---|
12683 | # define LT_DLLAZY_OR_NOW 0 |
---|
12684 | # endif |
---|
12685 | # endif |
---|
12686 | # endif |
---|
12687 | # endif |
---|
12688 | #endif |
---|
12689 | |
---|
12690 | #ifdef __cplusplus |
---|
12691 | extern "C" void exit (int); |
---|
12692 | #endif |
---|
12693 | |
---|
12694 | void fnord() { int i=42;} |
---|
12695 | int main () |
---|
12696 | { |
---|
12697 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
12698 | int status = $lt_dlunknown; |
---|
12699 | |
---|
12700 | if (self) |
---|
12701 | { |
---|
12702 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
12703 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
12704 | /* dlclose (self); */ |
---|
12705 | } |
---|
12706 | |
---|
12707 | exit (status); |
---|
12708 | } |
---|
12709 | EOF |
---|
12710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12711 | (eval $ac_link) 2>&5 |
---|
12712 | ac_status=$? |
---|
12713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12714 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
12715 | (./conftest; exit; ) 2>/dev/null |
---|
12716 | lt_status=$? |
---|
12717 | case x$lt_status in |
---|
12718 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
12719 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
12720 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
12721 | esac |
---|
12722 | else : |
---|
12723 | # compilation failed |
---|
12724 | lt_cv_dlopen_self_static=no |
---|
12725 | fi |
---|
12726 | fi |
---|
12727 | rm -fr conftest* |
---|
12728 | |
---|
12729 | |
---|
12730 | fi |
---|
12731 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
12732 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
12733 | fi |
---|
12734 | |
---|
12735 | CPPFLAGS="$save_CPPFLAGS" |
---|
12736 | LDFLAGS="$save_LDFLAGS" |
---|
12737 | LIBS="$save_LIBS" |
---|
12738 | ;; |
---|
12739 | esac |
---|
12740 | |
---|
12741 | case $lt_cv_dlopen_self in |
---|
12742 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
12743 | *) enable_dlopen_self=unknown ;; |
---|
12744 | esac |
---|
12745 | |
---|
12746 | case $lt_cv_dlopen_self_static in |
---|
12747 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
12748 | *) enable_dlopen_self_static=unknown ;; |
---|
12749 | esac |
---|
12750 | fi |
---|
12751 | |
---|
12752 | |
---|
12753 | # The else clause should only fire when bootstrapping the |
---|
12754 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
12755 | # with your package, and you will get complaints that there are |
---|
12756 | # no rules to generate ltmain.sh. |
---|
12757 | if test -f "$ltmain"; then |
---|
12758 | # See if we are running on zsh, and set the options which allow our commands through |
---|
12759 | # without removal of \ escapes. |
---|
12760 | if test -n "${ZSH_VERSION+set}" ; then |
---|
12761 | setopt NO_GLOB_SUBST |
---|
12762 | fi |
---|
12763 | # Now quote all the things that may contain metacharacters while being |
---|
12764 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
12765 | # variables and quote the copies for generation of the libtool script. |
---|
12766 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
12767 | SED SHELL STRIP \ |
---|
12768 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
12769 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
12770 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
12771 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
12772 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
12773 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
12774 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
12775 | compiler_CXX \ |
---|
12776 | CC_CXX \ |
---|
12777 | LD_CXX \ |
---|
12778 | lt_prog_compiler_wl_CXX \ |
---|
12779 | lt_prog_compiler_pic_CXX \ |
---|
12780 | lt_prog_compiler_static_CXX \ |
---|
12781 | lt_prog_compiler_no_builtin_flag_CXX \ |
---|
12782 | export_dynamic_flag_spec_CXX \ |
---|
12783 | thread_safe_flag_spec_CXX \ |
---|
12784 | whole_archive_flag_spec_CXX \ |
---|
12785 | enable_shared_with_static_runtimes_CXX \ |
---|
12786 | old_archive_cmds_CXX \ |
---|
12787 | old_archive_from_new_cmds_CXX \ |
---|
12788 | predep_objects_CXX \ |
---|
12789 | postdep_objects_CXX \ |
---|
12790 | predeps_CXX \ |
---|
12791 | postdeps_CXX \ |
---|
12792 | compiler_lib_search_path_CXX \ |
---|
12793 | archive_cmds_CXX \ |
---|
12794 | archive_expsym_cmds_CXX \ |
---|
12795 | postinstall_cmds_CXX \ |
---|
12796 | postuninstall_cmds_CXX \ |
---|
12797 | old_archive_from_expsyms_cmds_CXX \ |
---|
12798 | allow_undefined_flag_CXX \ |
---|
12799 | no_undefined_flag_CXX \ |
---|
12800 | export_symbols_cmds_CXX \ |
---|
12801 | hardcode_libdir_flag_spec_CXX \ |
---|
12802 | hardcode_libdir_flag_spec_ld_CXX \ |
---|
12803 | hardcode_libdir_separator_CXX \ |
---|
12804 | hardcode_automatic_CXX \ |
---|
12805 | module_cmds_CXX \ |
---|
12806 | module_expsym_cmds_CXX \ |
---|
12807 | lt_cv_prog_compiler_c_o_CXX \ |
---|
12808 | exclude_expsyms_CXX \ |
---|
12809 | include_expsyms_CXX; do |
---|
12810 | |
---|
12811 | case $var in |
---|
12812 | old_archive_cmds_CXX | \ |
---|
12813 | old_archive_from_new_cmds_CXX | \ |
---|
12814 | archive_cmds_CXX | \ |
---|
12815 | archive_expsym_cmds_CXX | \ |
---|
12816 | module_cmds_CXX | \ |
---|
12817 | module_expsym_cmds_CXX | \ |
---|
12818 | old_archive_from_expsyms_cmds_CXX | \ |
---|
12819 | export_symbols_cmds_CXX | \ |
---|
12820 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
12821 | postinstall_cmds | postuninstall_cmds | \ |
---|
12822 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
12823 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
12824 | # Double-quote double-evaled strings. |
---|
12825 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
12826 | ;; |
---|
12827 | *) |
---|
12828 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
12829 | ;; |
---|
12830 | esac |
---|
12831 | done |
---|
12832 | |
---|
12833 | case $lt_echo in |
---|
12834 | *'\$0 --fallback-echo"') |
---|
12835 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
12836 | ;; |
---|
12837 | esac |
---|
12838 | |
---|
12839 | cfgfile="$ofile" |
---|
12840 | |
---|
12841 | cat <<__EOF__ >> "$cfgfile" |
---|
12842 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
12843 | |
---|
12844 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
12845 | |
---|
12846 | # Shell to use when invoking shell scripts. |
---|
12847 | SHELL=$lt_SHELL |
---|
12848 | |
---|
12849 | # Whether or not to build shared libraries. |
---|
12850 | build_libtool_libs=$enable_shared |
---|
12851 | |
---|
12852 | # Whether or not to build static libraries. |
---|
12853 | build_old_libs=$enable_static |
---|
12854 | |
---|
12855 | # Whether or not to add -lc for building shared libraries. |
---|
12856 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
---|
12857 | |
---|
12858 | # Whether or not to disallow shared libs when runtime libs are static |
---|
12859 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
---|
12860 | |
---|
12861 | # Whether or not to optimize for fast installation. |
---|
12862 | fast_install=$enable_fast_install |
---|
12863 | |
---|
12864 | # The host system. |
---|
12865 | host_alias=$host_alias |
---|
12866 | host=$host |
---|
12867 | |
---|
12868 | # An echo program that does not interpret backslashes. |
---|
12869 | echo=$lt_echo |
---|
12870 | |
---|
12871 | # The archiver. |
---|
12872 | AR=$lt_AR |
---|
12873 | AR_FLAGS=$lt_AR_FLAGS |
---|
12874 | |
---|
12875 | # A C compiler. |
---|
12876 | LTCC=$lt_LTCC |
---|
12877 | |
---|
12878 | # A language-specific compiler. |
---|
12879 | CC=$lt_compiler_CXX |
---|
12880 | |
---|
12881 | # Is the compiler the GNU C compiler? |
---|
12882 | with_gcc=$GCC_CXX |
---|
12883 | |
---|
12884 | # An ERE matcher. |
---|
12885 | EGREP=$lt_EGREP |
---|
12886 | |
---|
12887 | # The linker used to build libraries. |
---|
12888 | LD=$lt_LD_CXX |
---|
12889 | |
---|
12890 | # Whether we need hard or soft links. |
---|
12891 | LN_S=$lt_LN_S |
---|
12892 | |
---|
12893 | # A BSD-compatible nm program. |
---|
12894 | NM=$lt_NM |
---|
12895 | |
---|
12896 | # A symbol stripping program |
---|
12897 | STRIP=$lt_STRIP |
---|
12898 | |
---|
12899 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
12900 | MAGIC_CMD=$MAGIC_CMD |
---|
12901 | |
---|
12902 | # Used on cygwin: DLL creation program. |
---|
12903 | DLLTOOL="$DLLTOOL" |
---|
12904 | |
---|
12905 | # Used on cygwin: object dumper. |
---|
12906 | OBJDUMP="$OBJDUMP" |
---|
12907 | |
---|
12908 | # Used on cygwin: assembler. |
---|
12909 | AS="$AS" |
---|
12910 | |
---|
12911 | # The name of the directory that contains temporary libtool files. |
---|
12912 | objdir=$objdir |
---|
12913 | |
---|
12914 | # How to create reloadable object files. |
---|
12915 | reload_flag=$lt_reload_flag |
---|
12916 | reload_cmds=$lt_reload_cmds |
---|
12917 | |
---|
12918 | # How to pass a linker flag through the compiler. |
---|
12919 | wl=$lt_lt_prog_compiler_wl_CXX |
---|
12920 | |
---|
12921 | # Object file suffix (normally "o"). |
---|
12922 | objext="$ac_objext" |
---|
12923 | |
---|
12924 | # Old archive suffix (normally "a"). |
---|
12925 | libext="$libext" |
---|
12926 | |
---|
12927 | # Shared library suffix (normally ".so"). |
---|
12928 | shrext_cmds='$shrext_cmds' |
---|
12929 | |
---|
12930 | # Executable file suffix (normally ""). |
---|
12931 | exeext="$exeext" |
---|
12932 | |
---|
12933 | # Additional compiler flags for building library objects. |
---|
12934 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
---|
12935 | pic_mode=$pic_mode |
---|
12936 | |
---|
12937 | # What is the maximum length of a command? |
---|
12938 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
12939 | |
---|
12940 | # Does compiler simultaneously support -c and -o options? |
---|
12941 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
---|
12942 | |
---|
12943 | # Must we lock files when doing compilation ? |
---|
12944 | need_locks=$lt_need_locks |
---|
12945 | |
---|
12946 | # Do we need the lib prefix for modules? |
---|
12947 | need_lib_prefix=$need_lib_prefix |
---|
12948 | |
---|
12949 | # Do we need a version for libraries? |
---|
12950 | need_version=$need_version |
---|
12951 | |
---|
12952 | # Whether dlopen is supported. |
---|
12953 | dlopen_support=$enable_dlopen |
---|
12954 | |
---|
12955 | # Whether dlopen of programs is supported. |
---|
12956 | dlopen_self=$enable_dlopen_self |
---|
12957 | |
---|
12958 | # Whether dlopen of statically linked programs is supported. |
---|
12959 | dlopen_self_static=$enable_dlopen_self_static |
---|
12960 | |
---|
12961 | # Compiler flag to prevent dynamic linking. |
---|
12962 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
---|
12963 | |
---|
12964 | # Compiler flag to turn off builtin functions. |
---|
12965 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
---|
12966 | |
---|
12967 | # Compiler flag to allow reflexive dlopens. |
---|
12968 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
---|
12969 | |
---|
12970 | # Compiler flag to generate shared objects directly from archives. |
---|
12971 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
---|
12972 | |
---|
12973 | # Compiler flag to generate thread-safe objects. |
---|
12974 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
---|
12975 | |
---|
12976 | # Library versioning type. |
---|
12977 | version_type=$version_type |
---|
12978 | |
---|
12979 | # Format of library name prefix. |
---|
12980 | libname_spec=$lt_libname_spec |
---|
12981 | |
---|
12982 | # List of archive names. First name is the real one, the rest are links. |
---|
12983 | # The last name is the one that the linker finds with -lNAME. |
---|
12984 | library_names_spec=$lt_library_names_spec |
---|
12985 | |
---|
12986 | # The coded name of the library, if different from the real name. |
---|
12987 | soname_spec=$lt_soname_spec |
---|
12988 | |
---|
12989 | # Commands used to build and install an old-style archive. |
---|
12990 | RANLIB=$lt_RANLIB |
---|
12991 | old_archive_cmds=$lt_old_archive_cmds_CXX |
---|
12992 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
12993 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
12994 | |
---|
12995 | # Create an old-style archive from a shared archive. |
---|
12996 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
---|
12997 | |
---|
12998 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
12999 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
---|
13000 | |
---|
13001 | # Commands used to build and install a shared archive. |
---|
13002 | archive_cmds=$lt_archive_cmds_CXX |
---|
13003 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
---|
13004 | postinstall_cmds=$lt_postinstall_cmds |
---|
13005 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
13006 | |
---|
13007 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
13008 | module_cmds=$lt_module_cmds_CXX |
---|
13009 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
---|
13010 | |
---|
13011 | # Commands to strip libraries. |
---|
13012 | old_striplib=$lt_old_striplib |
---|
13013 | striplib=$lt_striplib |
---|
13014 | |
---|
13015 | # Dependencies to place before the objects being linked to create a |
---|
13016 | # shared library. |
---|
13017 | predep_objects=$lt_predep_objects_CXX |
---|
13018 | |
---|
13019 | # Dependencies to place after the objects being linked to create a |
---|
13020 | # shared library. |
---|
13021 | postdep_objects=$lt_postdep_objects_CXX |
---|
13022 | |
---|
13023 | # Dependencies to place before the objects being linked to create a |
---|
13024 | # shared library. |
---|
13025 | predeps=$lt_predeps_CXX |
---|
13026 | |
---|
13027 | # Dependencies to place after the objects being linked to create a |
---|
13028 | # shared library. |
---|
13029 | postdeps=$lt_postdeps_CXX |
---|
13030 | |
---|
13031 | # The library search path used internally by the compiler when linking |
---|
13032 | # a shared library. |
---|
13033 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
---|
13034 | |
---|
13035 | # Method to check whether dependent libraries are shared objects. |
---|
13036 | deplibs_check_method=$lt_deplibs_check_method |
---|
13037 | |
---|
13038 | # Command to use when deplibs_check_method == file_magic. |
---|
13039 | file_magic_cmd=$lt_file_magic_cmd |
---|
13040 | |
---|
13041 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
13042 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
---|
13043 | |
---|
13044 | # Flag that forces no undefined symbols. |
---|
13045 | no_undefined_flag=$lt_no_undefined_flag_CXX |
---|
13046 | |
---|
13047 | # Commands used to finish a libtool library installation in a directory. |
---|
13048 | finish_cmds=$lt_finish_cmds |
---|
13049 | |
---|
13050 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
13051 | finish_eval=$lt_finish_eval |
---|
13052 | |
---|
13053 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
13054 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
13055 | |
---|
13056 | # Transform the output of nm in a proper C declaration |
---|
13057 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
13058 | |
---|
13059 | # Transform the output of nm in a C name address pair |
---|
13060 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
13061 | |
---|
13062 | # This is the shared library runtime path variable. |
---|
13063 | runpath_var=$runpath_var |
---|
13064 | |
---|
13065 | # This is the shared library path variable. |
---|
13066 | shlibpath_var=$shlibpath_var |
---|
13067 | |
---|
13068 | # Is shlibpath searched before the hard-coded library search path? |
---|
13069 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
13070 | |
---|
13071 | # How to hardcode a shared library path into an executable. |
---|
13072 | hardcode_action=$hardcode_action_CXX |
---|
13073 | |
---|
13074 | # Whether we should hardcode library paths into libraries. |
---|
13075 | hardcode_into_libs=$hardcode_into_libs |
---|
13076 | |
---|
13077 | # Flag to hardcode \$libdir into a binary during linking. |
---|
13078 | # This must work even if \$libdir does not exist. |
---|
13079 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
---|
13080 | |
---|
13081 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
13082 | # a binary during linking. This must work even if \$libdir does |
---|
13083 | # not exist. |
---|
13084 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
---|
13085 | |
---|
13086 | # Whether we need a single -rpath flag with a separated argument. |
---|
13087 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
---|
13088 | |
---|
13089 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
13090 | # resulting binary. |
---|
13091 | hardcode_direct=$hardcode_direct_CXX |
---|
13092 | |
---|
13093 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
13094 | # resulting binary. |
---|
13095 | hardcode_minus_L=$hardcode_minus_L_CXX |
---|
13096 | |
---|
13097 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
13098 | # the resulting binary. |
---|
13099 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
---|
13100 | |
---|
13101 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
13102 | # and all subsequent libraries and executables linked against it. |
---|
13103 | hardcode_automatic=$hardcode_automatic_CXX |
---|
13104 | |
---|
13105 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
13106 | # restored at relink time. |
---|
13107 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
13108 | |
---|
13109 | # Whether libtool must link a program against all its dependency libraries. |
---|
13110 | link_all_deplibs=$link_all_deplibs_CXX |
---|
13111 | |
---|
13112 | # Compile-time system search path for libraries |
---|
13113 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
13114 | |
---|
13115 | # Run-time system search path for libraries |
---|
13116 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
13117 | |
---|
13118 | # Fix the shell variable \$srcfile for the compiler. |
---|
13119 | fix_srcfile_path="$fix_srcfile_path_CXX" |
---|
13120 | |
---|
13121 | # Set to yes if exported symbols are required. |
---|
13122 | always_export_symbols=$always_export_symbols_CXX |
---|
13123 | |
---|
13124 | # The commands to list exported symbols. |
---|
13125 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
---|
13126 | |
---|
13127 | # The commands to extract the exported symbol list from a shared archive. |
---|
13128 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
13129 | |
---|
13130 | # Symbols that should not be listed in the preloaded symbols. |
---|
13131 | exclude_expsyms=$lt_exclude_expsyms_CXX |
---|
13132 | |
---|
13133 | # Symbols that must always be exported. |
---|
13134 | include_expsyms=$lt_include_expsyms_CXX |
---|
13135 | |
---|
13136 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
13137 | |
---|
13138 | __EOF__ |
---|
13139 | |
---|
13140 | |
---|
13141 | else |
---|
13142 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
13143 | # `config.status --recheck' to rerun these tests and create the |
---|
13144 | # libtool script then. |
---|
13145 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
13146 | if test -f "$ltmain_in"; then |
---|
13147 | test -f Makefile && make "$ltmain" |
---|
13148 | fi |
---|
13149 | fi |
---|
13150 | |
---|
13151 | |
---|
13152 | ac_ext=c |
---|
13153 | ac_cpp='$CPP $CPPFLAGS' |
---|
13154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
13155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
13156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
13157 | |
---|
13158 | CC=$lt_save_CC |
---|
13159 | LDCXX=$LD |
---|
13160 | LD=$lt_save_LD |
---|
13161 | GCC=$lt_save_GCC |
---|
13162 | with_gnu_ldcxx=$with_gnu_ld |
---|
13163 | with_gnu_ld=$lt_save_with_gnu_ld |
---|
13164 | lt_cv_path_LDCXX=$lt_cv_path_LD |
---|
13165 | lt_cv_path_LD=$lt_save_path_LD |
---|
13166 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
---|
13167 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
---|
13168 | |
---|
13169 | else |
---|
13170 | tagname="" |
---|
13171 | fi |
---|
13172 | ;; |
---|
13173 | |
---|
13174 | F77) |
---|
13175 | if test -n "$F77" && test "X$F77" != "Xno"; then |
---|
13176 | |
---|
13177 | ac_ext=f |
---|
13178 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
13179 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
13180 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
13181 | |
---|
13182 | |
---|
13183 | archive_cmds_need_lc_F77=no |
---|
13184 | allow_undefined_flag_F77= |
---|
13185 | always_export_symbols_F77=no |
---|
13186 | archive_expsym_cmds_F77= |
---|
13187 | export_dynamic_flag_spec_F77= |
---|
13188 | hardcode_direct_F77=no |
---|
13189 | hardcode_libdir_flag_spec_F77= |
---|
13190 | hardcode_libdir_flag_spec_ld_F77= |
---|
13191 | hardcode_libdir_separator_F77= |
---|
13192 | hardcode_minus_L_F77=no |
---|
13193 | hardcode_automatic_F77=no |
---|
13194 | module_cmds_F77= |
---|
13195 | module_expsym_cmds_F77= |
---|
13196 | link_all_deplibs_F77=unknown |
---|
13197 | old_archive_cmds_F77=$old_archive_cmds |
---|
13198 | no_undefined_flag_F77= |
---|
13199 | whole_archive_flag_spec_F77= |
---|
13200 | enable_shared_with_static_runtimes_F77=no |
---|
13201 | |
---|
13202 | # Source file extension for f77 test sources. |
---|
13203 | ac_ext=f |
---|
13204 | |
---|
13205 | # Object file extension for compiled f77 test sources. |
---|
13206 | objext=o |
---|
13207 | objext_F77=$objext |
---|
13208 | |
---|
13209 | # Code to be used in simple compile tests |
---|
13210 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
---|
13211 | |
---|
13212 | # Code to be used in simple link tests |
---|
13213 | lt_simple_link_test_code=" program t\n end\n" |
---|
13214 | |
---|
13215 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
13216 | |
---|
13217 | # If no C compiler was specified, use CC. |
---|
13218 | LTCC=${LTCC-"$CC"} |
---|
13219 | |
---|
13220 | # Allow CC to be a program name with arguments. |
---|
13221 | compiler=$CC |
---|
13222 | |
---|
13223 | |
---|
13224 | # Allow CC to be a program name with arguments. |
---|
13225 | lt_save_CC="$CC" |
---|
13226 | CC=${F77-"f77"} |
---|
13227 | compiler=$CC |
---|
13228 | compiler_F77=$CC |
---|
13229 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
---|
13230 | |
---|
13231 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
13232 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
13233 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
13234 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
13235 | |
---|
13236 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
13237 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
13238 | test "$can_build_shared" = "no" && enable_shared=no |
---|
13239 | |
---|
13240 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
13241 | # are all built from PIC. |
---|
13242 | case "$host_os" in |
---|
13243 | aix3*) |
---|
13244 | test "$enable_shared" = yes && enable_static=no |
---|
13245 | if test -n "$RANLIB"; then |
---|
13246 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
13247 | postinstall_cmds='$RANLIB $lib' |
---|
13248 | fi |
---|
13249 | ;; |
---|
13250 | aix4* | aix5*) |
---|
13251 | test "$enable_shared" = yes && enable_static=no |
---|
13252 | ;; |
---|
13253 | esac |
---|
13254 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
13255 | echo "${ECHO_T}$enable_shared" >&6 |
---|
13256 | |
---|
13257 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
13258 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
---|
13259 | # Make sure either enable_shared or enable_static is yes. |
---|
13260 | test "$enable_shared" = yes || enable_static=yes |
---|
13261 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
13262 | echo "${ECHO_T}$enable_static" >&6 |
---|
13263 | |
---|
13264 | test "$ld_shlibs_F77" = no && can_build_shared=no |
---|
13265 | |
---|
13266 | GCC_F77="$G77" |
---|
13267 | LD_F77="$LD" |
---|
13268 | |
---|
13269 | lt_prog_compiler_wl_F77= |
---|
13270 | lt_prog_compiler_pic_F77= |
---|
13271 | lt_prog_compiler_static_F77= |
---|
13272 | |
---|
13273 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
13274 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
13275 | |
---|
13276 | if test "$GCC" = yes; then |
---|
13277 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13278 | lt_prog_compiler_static_F77='-static' |
---|
13279 | |
---|
13280 | case $host_os in |
---|
13281 | aix*) |
---|
13282 | # All AIX code is PIC. |
---|
13283 | if test "$host_cpu" = ia64; then |
---|
13284 | # AIX 5 now supports IA64 processor |
---|
13285 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13286 | fi |
---|
13287 | ;; |
---|
13288 | |
---|
13289 | amigaos*) |
---|
13290 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
13291 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
13292 | # like `-m68040'. |
---|
13293 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
---|
13294 | ;; |
---|
13295 | |
---|
13296 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
13297 | # PIC is the default for these OSes. |
---|
13298 | ;; |
---|
13299 | |
---|
13300 | mingw* | pw32* | os2*) |
---|
13301 | # This hack is so that the source file can tell whether it is being |
---|
13302 | # built for inclusion in a dll (and should export symbols for example). |
---|
13303 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
13304 | ;; |
---|
13305 | |
---|
13306 | darwin* | rhapsody*) |
---|
13307 | # PIC is the default on this platform |
---|
13308 | # Common symbols not allowed in MH_DYLIB files |
---|
13309 | lt_prog_compiler_pic_F77='-fno-common' |
---|
13310 | ;; |
---|
13311 | |
---|
13312 | msdosdjgpp*) |
---|
13313 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
13314 | # on systems that don't support them. |
---|
13315 | lt_prog_compiler_can_build_shared_F77=no |
---|
13316 | enable_shared=no |
---|
13317 | ;; |
---|
13318 | |
---|
13319 | sysv4*MP*) |
---|
13320 | if test -d /usr/nec; then |
---|
13321 | lt_prog_compiler_pic_F77=-Kconform_pic |
---|
13322 | fi |
---|
13323 | ;; |
---|
13324 | |
---|
13325 | hpux*) |
---|
13326 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
13327 | # not for PA HP-UX. |
---|
13328 | case "$host_cpu" in |
---|
13329 | hppa*64*|ia64*) |
---|
13330 | # +Z the default |
---|
13331 | ;; |
---|
13332 | *) |
---|
13333 | lt_prog_compiler_pic_F77='-fPIC' |
---|
13334 | ;; |
---|
13335 | esac |
---|
13336 | ;; |
---|
13337 | |
---|
13338 | *) |
---|
13339 | lt_prog_compiler_pic_F77='-fPIC' |
---|
13340 | ;; |
---|
13341 | esac |
---|
13342 | else |
---|
13343 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
13344 | case $host_os in |
---|
13345 | aix*) |
---|
13346 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13347 | if test "$host_cpu" = ia64; then |
---|
13348 | # AIX 5 now supports IA64 processor |
---|
13349 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13350 | else |
---|
13351 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
---|
13352 | fi |
---|
13353 | ;; |
---|
13354 | |
---|
13355 | mingw* | pw32* | os2*) |
---|
13356 | # This hack is so that the source file can tell whether it is being |
---|
13357 | # built for inclusion in a dll (and should export symbols for example). |
---|
13358 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
13359 | ;; |
---|
13360 | |
---|
13361 | hpux9* | hpux10* | hpux11*) |
---|
13362 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13363 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
13364 | # not for PA HP-UX. |
---|
13365 | case "$host_cpu" in |
---|
13366 | hppa*64*|ia64*) |
---|
13367 | # +Z the default |
---|
13368 | ;; |
---|
13369 | *) |
---|
13370 | lt_prog_compiler_pic_F77='+Z' |
---|
13371 | ;; |
---|
13372 | esac |
---|
13373 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
13374 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
---|
13375 | ;; |
---|
13376 | |
---|
13377 | irix5* | irix6* | nonstopux*) |
---|
13378 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13379 | # PIC (with -KPIC) is the default. |
---|
13380 | lt_prog_compiler_static_F77='-non_shared' |
---|
13381 | ;; |
---|
13382 | |
---|
13383 | newsos6) |
---|
13384 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13385 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13386 | ;; |
---|
13387 | |
---|
13388 | linux*) |
---|
13389 | case $CC in |
---|
13390 | icc* | ecc*) |
---|
13391 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13392 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13393 | lt_prog_compiler_static_F77='-static' |
---|
13394 | ;; |
---|
13395 | ccc*) |
---|
13396 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13397 | # All Alpha code is PIC. |
---|
13398 | lt_prog_compiler_static_F77='-non_shared' |
---|
13399 | ;; |
---|
13400 | esac |
---|
13401 | ;; |
---|
13402 | |
---|
13403 | osf3* | osf4* | osf5*) |
---|
13404 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13405 | # All OSF/1 code is PIC. |
---|
13406 | lt_prog_compiler_static_F77='-non_shared' |
---|
13407 | ;; |
---|
13408 | |
---|
13409 | sco3.2v5*) |
---|
13410 | lt_prog_compiler_pic_F77='-Kpic' |
---|
13411 | lt_prog_compiler_static_F77='-dn' |
---|
13412 | ;; |
---|
13413 | |
---|
13414 | solaris*) |
---|
13415 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13416 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13417 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13418 | ;; |
---|
13419 | |
---|
13420 | sunos4*) |
---|
13421 | lt_prog_compiler_wl_F77='-Qoption ld ' |
---|
13422 | lt_prog_compiler_pic_F77='-PIC' |
---|
13423 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13424 | ;; |
---|
13425 | |
---|
13426 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
13427 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13428 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13429 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13430 | ;; |
---|
13431 | |
---|
13432 | sysv4*MP*) |
---|
13433 | if test -d /usr/nec ;then |
---|
13434 | lt_prog_compiler_pic_F77='-Kconform_pic' |
---|
13435 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13436 | fi |
---|
13437 | ;; |
---|
13438 | |
---|
13439 | uts4*) |
---|
13440 | lt_prog_compiler_pic_F77='-pic' |
---|
13441 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13442 | ;; |
---|
13443 | |
---|
13444 | *) |
---|
13445 | lt_prog_compiler_can_build_shared_F77=no |
---|
13446 | ;; |
---|
13447 | esac |
---|
13448 | fi |
---|
13449 | |
---|
13450 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
---|
13451 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
---|
13452 | |
---|
13453 | # |
---|
13454 | # Check to make sure the PIC flag actually works. |
---|
13455 | # |
---|
13456 | if test -n "$lt_prog_compiler_pic_F77"; then |
---|
13457 | |
---|
13458 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
---|
13459 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
---|
13460 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
---|
13461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13462 | else |
---|
13463 | lt_prog_compiler_pic_works_F77=no |
---|
13464 | ac_outfile=conftest.$ac_objext |
---|
13465 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
13466 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
---|
13467 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
13468 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
13469 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
13470 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
13471 | # The option is referenced via a variable to avoid confusing sed. |
---|
13472 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
13473 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
13474 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
13475 | -e 's:$: $lt_compiler_flag:'` |
---|
13476 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
13477 | (eval "$lt_compile" 2>conftest.err) |
---|
13478 | ac_status=$? |
---|
13479 | cat conftest.err >&5 |
---|
13480 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
13481 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
13482 | # The compiler can only warn and ignore the option if not recognized |
---|
13483 | # So say no if there are warnings |
---|
13484 | if test ! -s conftest.err; then |
---|
13485 | lt_prog_compiler_pic_works_F77=yes |
---|
13486 | fi |
---|
13487 | fi |
---|
13488 | $rm conftest* |
---|
13489 | |
---|
13490 | fi |
---|
13491 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
---|
13492 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
---|
13493 | |
---|
13494 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
---|
13495 | case $lt_prog_compiler_pic_F77 in |
---|
13496 | "" | " "*) ;; |
---|
13497 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
---|
13498 | esac |
---|
13499 | else |
---|
13500 | lt_prog_compiler_pic_F77= |
---|
13501 | lt_prog_compiler_can_build_shared_F77=no |
---|
13502 | fi |
---|
13503 | |
---|
13504 | fi |
---|
13505 | case "$host_os" in |
---|
13506 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
13507 | *djgpp*) |
---|
13508 | lt_prog_compiler_pic_F77= |
---|
13509 | ;; |
---|
13510 | *) |
---|
13511 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
---|
13512 | ;; |
---|
13513 | esac |
---|
13514 | |
---|
13515 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
13516 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
13517 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
---|
13518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13519 | else |
---|
13520 | lt_cv_prog_compiler_c_o_F77=no |
---|
13521 | $rm -r conftest 2>/dev/null |
---|
13522 | mkdir conftest |
---|
13523 | cd conftest |
---|
13524 | mkdir out |
---|
13525 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
13526 | |
---|
13527 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
13528 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
13529 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
13530 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
13531 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
13532 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
13533 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
13534 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
13535 | -e 's:$: $lt_compiler_flag:'` |
---|
13536 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
13537 | (eval "$lt_compile" 2>out/conftest.err) |
---|
13538 | ac_status=$? |
---|
13539 | cat out/conftest.err >&5 |
---|
13540 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
13541 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
13542 | then |
---|
13543 | # The compiler can only warn and ignore the option if not recognized |
---|
13544 | # So say no if there are warnings |
---|
13545 | if test ! -s out/conftest.err; then |
---|
13546 | lt_cv_prog_compiler_c_o_F77=yes |
---|
13547 | fi |
---|
13548 | fi |
---|
13549 | chmod u+w . |
---|
13550 | $rm conftest* |
---|
13551 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
13552 | # template instantiation |
---|
13553 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
13554 | $rm out/* && rmdir out |
---|
13555 | cd .. |
---|
13556 | rmdir conftest |
---|
13557 | $rm conftest* |
---|
13558 | |
---|
13559 | fi |
---|
13560 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
---|
13561 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
---|
13562 | |
---|
13563 | |
---|
13564 | hard_links="nottested" |
---|
13565 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
---|
13566 | # do not overwrite the value of need_locks provided by the user |
---|
13567 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
13568 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
13569 | hard_links=yes |
---|
13570 | $rm conftest* |
---|
13571 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
13572 | touch conftest.a |
---|
13573 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
13574 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
13575 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
13576 | echo "${ECHO_T}$hard_links" >&6 |
---|
13577 | if test "$hard_links" = no; then |
---|
13578 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
13579 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
13580 | need_locks=warn |
---|
13581 | fi |
---|
13582 | else |
---|
13583 | need_locks=no |
---|
13584 | fi |
---|
13585 | |
---|
13586 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
13587 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
13588 | |
---|
13589 | runpath_var= |
---|
13590 | allow_undefined_flag_F77= |
---|
13591 | enable_shared_with_static_runtimes_F77=no |
---|
13592 | archive_cmds_F77= |
---|
13593 | archive_expsym_cmds_F77= |
---|
13594 | old_archive_From_new_cmds_F77= |
---|
13595 | old_archive_from_expsyms_cmds_F77= |
---|
13596 | export_dynamic_flag_spec_F77= |
---|
13597 | whole_archive_flag_spec_F77= |
---|
13598 | thread_safe_flag_spec_F77= |
---|
13599 | hardcode_libdir_flag_spec_F77= |
---|
13600 | hardcode_libdir_flag_spec_ld_F77= |
---|
13601 | hardcode_libdir_separator_F77= |
---|
13602 | hardcode_direct_F77=no |
---|
13603 | hardcode_minus_L_F77=no |
---|
13604 | hardcode_shlibpath_var_F77=unsupported |
---|
13605 | link_all_deplibs_F77=unknown |
---|
13606 | hardcode_automatic_F77=no |
---|
13607 | module_cmds_F77= |
---|
13608 | module_expsym_cmds_F77= |
---|
13609 | always_export_symbols_F77=no |
---|
13610 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
13611 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
13612 | # included in the symbol list |
---|
13613 | include_expsyms_F77= |
---|
13614 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
13615 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
13616 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
13617 | # as well as any symbol that contains `d'. |
---|
13618 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
---|
13619 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
13620 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
13621 | # the symbol is explicitly referenced. Since portable code cannot |
---|
13622 | # rely on this symbol name, it's probably fine to never include it in |
---|
13623 | # preloaded symbol tables. |
---|
13624 | extract_expsyms_cmds= |
---|
13625 | |
---|
13626 | case $host_os in |
---|
13627 | cygwin* | mingw* | pw32*) |
---|
13628 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
13629 | # When not using gcc, we currently assume that we are using |
---|
13630 | # Microsoft Visual C++. |
---|
13631 | if test "$GCC" != yes; then |
---|
13632 | with_gnu_ld=no |
---|
13633 | fi |
---|
13634 | ;; |
---|
13635 | openbsd*) |
---|
13636 | with_gnu_ld=no |
---|
13637 | ;; |
---|
13638 | esac |
---|
13639 | |
---|
13640 | ld_shlibs_F77=yes |
---|
13641 | if test "$with_gnu_ld" = yes; then |
---|
13642 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
13643 | wlarc='${wl}' |
---|
13644 | |
---|
13645 | # See if GNU ld supports shared libraries. |
---|
13646 | case $host_os in |
---|
13647 | aix3* | aix4* | aix5*) |
---|
13648 | # On AIX/PPC, the GNU linker is very broken |
---|
13649 | if test "$host_cpu" != ia64; then |
---|
13650 | ld_shlibs_F77=no |
---|
13651 | cat <<EOF 1>&2 |
---|
13652 | |
---|
13653 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
13654 | *** to be unable to reliably create shared libraries on AIX. |
---|
13655 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
13656 | *** really care for shared libraries, you may want to modify your PATH |
---|
13657 | *** so that a non-GNU linker is found, and then restart. |
---|
13658 | |
---|
13659 | EOF |
---|
13660 | fi |
---|
13661 | ;; |
---|
13662 | |
---|
13663 | amigaos*) |
---|
13664 | 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)' |
---|
13665 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
13666 | hardcode_minus_L_F77=yes |
---|
13667 | |
---|
13668 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
13669 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
13670 | # to version 4, is to share data among multiple programs linked |
---|
13671 | # with the same dynamic library. Since this doesn't match the |
---|
13672 | # behavior of shared libraries on other platforms, we can't use |
---|
13673 | # them. |
---|
13674 | ld_shlibs_F77=no |
---|
13675 | ;; |
---|
13676 | |
---|
13677 | beos*) |
---|
13678 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
13679 | allow_undefined_flag_F77=unsupported |
---|
13680 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
13681 | # support --undefined. This deserves some investigation. FIXME |
---|
13682 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13683 | else |
---|
13684 | ld_shlibs_F77=no |
---|
13685 | fi |
---|
13686 | ;; |
---|
13687 | |
---|
13688 | cygwin* | mingw* | pw32*) |
---|
13689 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
---|
13690 | # as there is no search path for DLLs. |
---|
13691 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
13692 | allow_undefined_flag_F77=unsupported |
---|
13693 | always_export_symbols_F77=no |
---|
13694 | enable_shared_with_static_runtimes_F77=yes |
---|
13695 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
13696 | |
---|
13697 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
13698 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
13699 | # If the export-symbols file already is a .def file (1st line |
---|
13700 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
13701 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
13702 | cp $export_symbols $output_objdir/$soname.def; |
---|
13703 | else |
---|
13704 | echo EXPORTS > $output_objdir/$soname.def; |
---|
13705 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
13706 | fi~ |
---|
13707 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
13708 | else |
---|
13709 | ld_shlibs=no |
---|
13710 | fi |
---|
13711 | ;; |
---|
13712 | |
---|
13713 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
13714 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
13715 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
13716 | wlarc= |
---|
13717 | else |
---|
13718 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13719 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
13720 | fi |
---|
13721 | ;; |
---|
13722 | |
---|
13723 | solaris* | sysv5*) |
---|
13724 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
13725 | ld_shlibs_F77=no |
---|
13726 | cat <<EOF 1>&2 |
---|
13727 | |
---|
13728 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
13729 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
13730 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
13731 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
13732 | *** your PATH or compiler configuration so that the native linker is |
---|
13733 | *** used, and then restart. |
---|
13734 | |
---|
13735 | EOF |
---|
13736 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
13737 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13738 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
13739 | else |
---|
13740 | ld_shlibs_F77=no |
---|
13741 | fi |
---|
13742 | ;; |
---|
13743 | |
---|
13744 | sunos4*) |
---|
13745 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
13746 | wlarc= |
---|
13747 | hardcode_direct_F77=yes |
---|
13748 | hardcode_shlibpath_var_F77=no |
---|
13749 | ;; |
---|
13750 | |
---|
13751 | linux*) |
---|
13752 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
13753 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13754 | archive_cmds_F77="$tmp_archive_cmds" |
---|
13755 | supports_anon_versioning=no |
---|
13756 | case `$LD -v 2>/dev/null` in |
---|
13757 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
13758 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
13759 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
13760 | *\ 2.11.*) ;; # other 2.11 versions |
---|
13761 | *) supports_anon_versioning=yes ;; |
---|
13762 | esac |
---|
13763 | if test $supports_anon_versioning = yes; then |
---|
13764 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
13765 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
13766 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
13767 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
13768 | else |
---|
13769 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
---|
13770 | fi |
---|
13771 | link_all_deplibs_F77=no |
---|
13772 | else |
---|
13773 | ld_shlibs_F77=no |
---|
13774 | fi |
---|
13775 | ;; |
---|
13776 | |
---|
13777 | *) |
---|
13778 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
13779 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13780 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
13781 | else |
---|
13782 | ld_shlibs_F77=no |
---|
13783 | fi |
---|
13784 | ;; |
---|
13785 | esac |
---|
13786 | |
---|
13787 | if test "$ld_shlibs_F77" = yes; then |
---|
13788 | runpath_var=LD_RUN_PATH |
---|
13789 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
---|
13790 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
---|
13791 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
13792 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
13793 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
13794 | else |
---|
13795 | whole_archive_flag_spec_F77= |
---|
13796 | fi |
---|
13797 | fi |
---|
13798 | else |
---|
13799 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
13800 | case $host_os in |
---|
13801 | aix3*) |
---|
13802 | allow_undefined_flag_F77=unsupported |
---|
13803 | always_export_symbols_F77=yes |
---|
13804 | 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' |
---|
13805 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
13806 | # are no directories specified by -L. |
---|
13807 | hardcode_minus_L_F77=yes |
---|
13808 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
13809 | # Neither direct hardcoding nor static linking is supported with a |
---|
13810 | # broken collect2. |
---|
13811 | hardcode_direct_F77=unsupported |
---|
13812 | fi |
---|
13813 | ;; |
---|
13814 | |
---|
13815 | aix4* | aix5*) |
---|
13816 | if test "$host_cpu" = ia64; then |
---|
13817 | # On IA64, the linker does run time linking by default, so we don't |
---|
13818 | # have to do anything special. |
---|
13819 | aix_use_runtimelinking=no |
---|
13820 | exp_sym_flag='-Bexport' |
---|
13821 | no_entry_flag="" |
---|
13822 | else |
---|
13823 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
13824 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
13825 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
13826 | 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' |
---|
13827 | else |
---|
13828 | 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' |
---|
13829 | fi |
---|
13830 | aix_use_runtimelinking=no |
---|
13831 | |
---|
13832 | # Test if we are trying to use run time linking or normal |
---|
13833 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
13834 | # need to do runtime linking. |
---|
13835 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
13836 | for ld_flag in $LDFLAGS; do |
---|
13837 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
13838 | aix_use_runtimelinking=yes |
---|
13839 | break |
---|
13840 | fi |
---|
13841 | done |
---|
13842 | esac |
---|
13843 | |
---|
13844 | exp_sym_flag='-bexport' |
---|
13845 | no_entry_flag='-bnoentry' |
---|
13846 | fi |
---|
13847 | |
---|
13848 | # When large executables or shared objects are built, AIX ld can |
---|
13849 | # have problems creating the table of contents. If linking a library |
---|
13850 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
13851 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
13852 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
13853 | |
---|
13854 | archive_cmds_F77='' |
---|
13855 | hardcode_direct_F77=yes |
---|
13856 | hardcode_libdir_separator_F77=':' |
---|
13857 | link_all_deplibs_F77=yes |
---|
13858 | |
---|
13859 | if test "$GCC" = yes; then |
---|
13860 | case $host_os in aix4.012|aix4.012.*) |
---|
13861 | # We only want to do this on AIX 4.2 and lower, the check |
---|
13862 | # below for broken collect2 doesn't work under 4.3+ |
---|
13863 | collect2name=`${CC} -print-prog-name=collect2` |
---|
13864 | if test -f "$collect2name" && \ |
---|
13865 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
13866 | then |
---|
13867 | # We have reworked collect2 |
---|
13868 | hardcode_direct_F77=yes |
---|
13869 | else |
---|
13870 | # We have old collect2 |
---|
13871 | hardcode_direct_F77=unsupported |
---|
13872 | # It fails to find uninstalled libraries when the uninstalled |
---|
13873 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
13874 | # to unsupported forces relinking |
---|
13875 | hardcode_minus_L_F77=yes |
---|
13876 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
13877 | hardcode_libdir_separator_F77= |
---|
13878 | fi |
---|
13879 | esac |
---|
13880 | shared_flag='-shared' |
---|
13881 | else |
---|
13882 | # not using gcc |
---|
13883 | if test "$host_cpu" = ia64; then |
---|
13884 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
13885 | # chokes on -Wl,-G. The following line is correct: |
---|
13886 | shared_flag='-G' |
---|
13887 | else |
---|
13888 | if test "$aix_use_runtimelinking" = yes; then |
---|
13889 | shared_flag='${wl}-G' |
---|
13890 | else |
---|
13891 | shared_flag='${wl}-bM:SRE' |
---|
13892 | fi |
---|
13893 | fi |
---|
13894 | fi |
---|
13895 | |
---|
13896 | # It seems that -bexpall does not export symbols beginning with |
---|
13897 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
13898 | always_export_symbols_F77=yes |
---|
13899 | if test "$aix_use_runtimelinking" = yes; then |
---|
13900 | # Warning - without using the other runtime loading flags (-brtl), |
---|
13901 | # -berok will link without error, but may produce a broken library. |
---|
13902 | allow_undefined_flag_F77='-berok' |
---|
13903 | # Determine the default libpath from the value encoded in an empty executable. |
---|
13904 | cat >conftest.$ac_ext <<_ACEOF |
---|
13905 | program main |
---|
13906 | |
---|
13907 | end |
---|
13908 | _ACEOF |
---|
13909 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
13911 | (eval $ac_link) 2>conftest.er1 |
---|
13912 | ac_status=$? |
---|
13913 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13914 | rm -f conftest.er1 |
---|
13915 | cat conftest.err >&5 |
---|
13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13917 | (exit $ac_status); } && |
---|
13918 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
---|
13919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13920 | (eval $ac_try) 2>&5 |
---|
13921 | ac_status=$? |
---|
13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13923 | (exit $ac_status); }; } && |
---|
13924 | { ac_try='test -s conftest$ac_exeext' |
---|
13925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13926 | (eval $ac_try) 2>&5 |
---|
13927 | ac_status=$? |
---|
13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13929 | (exit $ac_status); }; }; then |
---|
13930 | |
---|
13931 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
13932 | }'` |
---|
13933 | # Check for a 64-bit object if we didn't find anything. |
---|
13934 | 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; } |
---|
13935 | }'`; fi |
---|
13936 | else |
---|
13937 | echo "$as_me: failed program was:" >&5 |
---|
13938 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13939 | |
---|
13940 | fi |
---|
13941 | rm -f conftest.err conftest.$ac_objext \ |
---|
13942 | conftest$ac_exeext conftest.$ac_ext |
---|
13943 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
13944 | |
---|
13945 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
13946 | 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" |
---|
13947 | else |
---|
13948 | if test "$host_cpu" = ia64; then |
---|
13949 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
---|
13950 | allow_undefined_flag_F77="-z nodefs" |
---|
13951 | 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" |
---|
13952 | else |
---|
13953 | # Determine the default libpath from the value encoded in an empty executable. |
---|
13954 | cat >conftest.$ac_ext <<_ACEOF |
---|
13955 | program main |
---|
13956 | |
---|
13957 | end |
---|
13958 | _ACEOF |
---|
13959 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
13961 | (eval $ac_link) 2>conftest.er1 |
---|
13962 | ac_status=$? |
---|
13963 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13964 | rm -f conftest.er1 |
---|
13965 | cat conftest.err >&5 |
---|
13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13967 | (exit $ac_status); } && |
---|
13968 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
---|
13969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13970 | (eval $ac_try) 2>&5 |
---|
13971 | ac_status=$? |
---|
13972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13973 | (exit $ac_status); }; } && |
---|
13974 | { ac_try='test -s conftest$ac_exeext' |
---|
13975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13976 | (eval $ac_try) 2>&5 |
---|
13977 | ac_status=$? |
---|
13978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13979 | (exit $ac_status); }; }; then |
---|
13980 | |
---|
13981 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
13982 | }'` |
---|
13983 | # Check for a 64-bit object if we didn't find anything. |
---|
13984 | 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; } |
---|
13985 | }'`; fi |
---|
13986 | else |
---|
13987 | echo "$as_me: failed program was:" >&5 |
---|
13988 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13989 | |
---|
13990 | fi |
---|
13991 | rm -f conftest.err conftest.$ac_objext \ |
---|
13992 | conftest$ac_exeext conftest.$ac_ext |
---|
13993 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
13994 | |
---|
13995 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
13996 | # Warning - without using the other run time loading flags, |
---|
13997 | # -berok will link without error, but may produce a broken library. |
---|
13998 | no_undefined_flag_F77=' ${wl}-bernotok' |
---|
13999 | allow_undefined_flag_F77=' ${wl}-berok' |
---|
14000 | # -bexpall does not export symbols beginning with underscore (_) |
---|
14001 | always_export_symbols_F77=yes |
---|
14002 | # Exported symbols can be pulled into shared objects from archives |
---|
14003 | whole_archive_flag_spec_F77=' ' |
---|
14004 | archive_cmds_need_lc_F77=yes |
---|
14005 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
14006 | 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' |
---|
14007 | fi |
---|
14008 | fi |
---|
14009 | ;; |
---|
14010 | |
---|
14011 | amigaos*) |
---|
14012 | 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)' |
---|
14013 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14014 | hardcode_minus_L_F77=yes |
---|
14015 | # see comment about different semantics on the GNU ld section |
---|
14016 | ld_shlibs_F77=no |
---|
14017 | ;; |
---|
14018 | |
---|
14019 | bsdi4*) |
---|
14020 | export_dynamic_flag_spec_F77=-rdynamic |
---|
14021 | ;; |
---|
14022 | |
---|
14023 | cygwin* | mingw* | pw32*) |
---|
14024 | # When not using gcc, we currently assume that we are using |
---|
14025 | # Microsoft Visual C++. |
---|
14026 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
14027 | # no search path for DLLs. |
---|
14028 | hardcode_libdir_flag_spec_F77=' ' |
---|
14029 | allow_undefined_flag_F77=unsupported |
---|
14030 | # Tell ltmain to make .lib files, not .a files. |
---|
14031 | libext=lib |
---|
14032 | # Tell ltmain to make .dll files, not .so files. |
---|
14033 | shrext_cmds=".dll" |
---|
14034 | # FIXME: Setting linknames here is a bad hack. |
---|
14035 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
14036 | # The linker will automatically build a .lib file if we build a DLL. |
---|
14037 | old_archive_From_new_cmds_F77='true' |
---|
14038 | # FIXME: Should let the user specify the lib program. |
---|
14039 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
14040 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
14041 | enable_shared_with_static_runtimes_F77=yes |
---|
14042 | ;; |
---|
14043 | |
---|
14044 | darwin* | rhapsody*) |
---|
14045 | if test "$GXX" = yes ; then |
---|
14046 | archive_cmds_need_lc_F77=no |
---|
14047 | case "$host_os" in |
---|
14048 | rhapsody* | darwin1.[012]) |
---|
14049 | allow_undefined_flag_F77='-undefined suppress' |
---|
14050 | ;; |
---|
14051 | *) # Darwin 1.3 on |
---|
14052 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
14053 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
---|
14054 | else |
---|
14055 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
14056 | 10.[012]) |
---|
14057 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
---|
14058 | ;; |
---|
14059 | 10.*) |
---|
14060 | allow_undefined_flag_F77='-undefined dynamic_lookup' |
---|
14061 | ;; |
---|
14062 | esac |
---|
14063 | fi |
---|
14064 | ;; |
---|
14065 | esac |
---|
14066 | lt_int_apple_cc_single_mod=no |
---|
14067 | output_verbose_link_cmd='echo' |
---|
14068 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
14069 | lt_int_apple_cc_single_mod=yes |
---|
14070 | fi |
---|
14071 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
14072 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
14073 | else |
---|
14074 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
14075 | fi |
---|
14076 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
14077 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
14078 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
14079 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
14080 | else |
---|
14081 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
14082 | fi |
---|
14083 | 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}' |
---|
14084 | hardcode_direct_F77=no |
---|
14085 | hardcode_automatic_F77=yes |
---|
14086 | hardcode_shlibpath_var_F77=unsupported |
---|
14087 | whole_archive_flag_spec_F77='-all_load $convenience' |
---|
14088 | link_all_deplibs_F77=yes |
---|
14089 | else |
---|
14090 | ld_shlibs_F77=no |
---|
14091 | fi |
---|
14092 | ;; |
---|
14093 | |
---|
14094 | dgux*) |
---|
14095 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14096 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14097 | hardcode_shlibpath_var_F77=no |
---|
14098 | ;; |
---|
14099 | |
---|
14100 | freebsd1*) |
---|
14101 | ld_shlibs_F77=no |
---|
14102 | ;; |
---|
14103 | |
---|
14104 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
14105 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
14106 | # does not break anything, and helps significantly (at the cost of a little |
---|
14107 | # extra space). |
---|
14108 | freebsd2.2*) |
---|
14109 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
14110 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14111 | hardcode_direct_F77=yes |
---|
14112 | hardcode_shlibpath_var_F77=no |
---|
14113 | ;; |
---|
14114 | |
---|
14115 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
14116 | freebsd2*) |
---|
14117 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
14118 | hardcode_direct_F77=yes |
---|
14119 | hardcode_minus_L_F77=yes |
---|
14120 | hardcode_shlibpath_var_F77=no |
---|
14121 | ;; |
---|
14122 | |
---|
14123 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
14124 | freebsd* | kfreebsd*-gnu) |
---|
14125 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
14126 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14127 | hardcode_direct_F77=yes |
---|
14128 | hardcode_shlibpath_var_F77=no |
---|
14129 | ;; |
---|
14130 | |
---|
14131 | hpux9*) |
---|
14132 | if test "$GCC" = yes; then |
---|
14133 | 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' |
---|
14134 | else |
---|
14135 | 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' |
---|
14136 | fi |
---|
14137 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
14138 | hardcode_libdir_separator_F77=: |
---|
14139 | hardcode_direct_F77=yes |
---|
14140 | |
---|
14141 | # hardcode_minus_L: Not really in the search PATH, |
---|
14142 | # but as the default location of the library. |
---|
14143 | hardcode_minus_L_F77=yes |
---|
14144 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
14145 | ;; |
---|
14146 | |
---|
14147 | hpux10* | hpux11*) |
---|
14148 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
14149 | case "$host_cpu" in |
---|
14150 | hppa*64*|ia64*) |
---|
14151 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14152 | ;; |
---|
14153 | *) |
---|
14154 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
14155 | ;; |
---|
14156 | esac |
---|
14157 | else |
---|
14158 | case "$host_cpu" in |
---|
14159 | hppa*64*|ia64*) |
---|
14160 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14161 | ;; |
---|
14162 | *) |
---|
14163 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
14164 | ;; |
---|
14165 | esac |
---|
14166 | fi |
---|
14167 | if test "$with_gnu_ld" = no; then |
---|
14168 | case "$host_cpu" in |
---|
14169 | hppa*64*) |
---|
14170 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
14171 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
---|
14172 | hardcode_libdir_separator_F77=: |
---|
14173 | hardcode_direct_F77=no |
---|
14174 | hardcode_shlibpath_var_F77=no |
---|
14175 | ;; |
---|
14176 | ia64*) |
---|
14177 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14178 | hardcode_direct_F77=no |
---|
14179 | hardcode_shlibpath_var_F77=no |
---|
14180 | |
---|
14181 | # hardcode_minus_L: Not really in the search PATH, |
---|
14182 | # but as the default location of the library. |
---|
14183 | hardcode_minus_L_F77=yes |
---|
14184 | ;; |
---|
14185 | *) |
---|
14186 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
14187 | hardcode_libdir_separator_F77=: |
---|
14188 | hardcode_direct_F77=yes |
---|
14189 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
14190 | |
---|
14191 | # hardcode_minus_L: Not really in the search PATH, |
---|
14192 | # but as the default location of the library. |
---|
14193 | hardcode_minus_L_F77=yes |
---|
14194 | ;; |
---|
14195 | esac |
---|
14196 | fi |
---|
14197 | ;; |
---|
14198 | |
---|
14199 | irix5* | irix6* | nonstopux*) |
---|
14200 | if test "$GCC" = yes; then |
---|
14201 | 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' |
---|
14202 | else |
---|
14203 | 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' |
---|
14204 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
---|
14205 | fi |
---|
14206 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14207 | hardcode_libdir_separator_F77=: |
---|
14208 | link_all_deplibs_F77=yes |
---|
14209 | ;; |
---|
14210 | |
---|
14211 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
14212 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
14213 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
14214 | else |
---|
14215 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
14216 | fi |
---|
14217 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14218 | hardcode_direct_F77=yes |
---|
14219 | hardcode_shlibpath_var_F77=no |
---|
14220 | ;; |
---|
14221 | |
---|
14222 | newsos6) |
---|
14223 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14224 | hardcode_direct_F77=yes |
---|
14225 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14226 | hardcode_libdir_separator_F77=: |
---|
14227 | hardcode_shlibpath_var_F77=no |
---|
14228 | ;; |
---|
14229 | |
---|
14230 | openbsd*) |
---|
14231 | hardcode_direct_F77=yes |
---|
14232 | hardcode_shlibpath_var_F77=no |
---|
14233 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
14234 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
14235 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
14236 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
14237 | else |
---|
14238 | case $host_os in |
---|
14239 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
14240 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
14241 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14242 | ;; |
---|
14243 | *) |
---|
14244 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
14245 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
14246 | ;; |
---|
14247 | esac |
---|
14248 | fi |
---|
14249 | ;; |
---|
14250 | |
---|
14251 | os2*) |
---|
14252 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14253 | hardcode_minus_L_F77=yes |
---|
14254 | allow_undefined_flag_F77=unsupported |
---|
14255 | 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' |
---|
14256 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
14257 | ;; |
---|
14258 | |
---|
14259 | osf3*) |
---|
14260 | if test "$GCC" = yes; then |
---|
14261 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
14262 | 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' |
---|
14263 | else |
---|
14264 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
14265 | 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' |
---|
14266 | fi |
---|
14267 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14268 | hardcode_libdir_separator_F77=: |
---|
14269 | ;; |
---|
14270 | |
---|
14271 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
14272 | if test "$GCC" = yes; then |
---|
14273 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
14274 | 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' |
---|
14275 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14276 | else |
---|
14277 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
14278 | 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' |
---|
14279 | 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~ |
---|
14280 | $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' |
---|
14281 | |
---|
14282 | # Both c and cxx compiler support -rpath directly |
---|
14283 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
---|
14284 | fi |
---|
14285 | hardcode_libdir_separator_F77=: |
---|
14286 | ;; |
---|
14287 | |
---|
14288 | sco3.2v5*) |
---|
14289 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14290 | hardcode_shlibpath_var_F77=no |
---|
14291 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
---|
14292 | runpath_var=LD_RUN_PATH |
---|
14293 | hardcode_runpath_var=yes |
---|
14294 | ;; |
---|
14295 | |
---|
14296 | solaris*) |
---|
14297 | no_undefined_flag_F77=' -z text' |
---|
14298 | if test "$GCC" = yes; then |
---|
14299 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14300 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
14301 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
14302 | else |
---|
14303 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14304 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
14305 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
14306 | fi |
---|
14307 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14308 | hardcode_shlibpath_var_F77=no |
---|
14309 | case $host_os in |
---|
14310 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
14311 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
14312 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
---|
14313 | esac |
---|
14314 | link_all_deplibs_F77=yes |
---|
14315 | ;; |
---|
14316 | |
---|
14317 | sunos4*) |
---|
14318 | if test "x$host_vendor" = xsequent; then |
---|
14319 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
14320 | # files that make .init and .fini sections work. |
---|
14321 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14322 | else |
---|
14323 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
14324 | fi |
---|
14325 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14326 | hardcode_direct_F77=yes |
---|
14327 | hardcode_minus_L_F77=yes |
---|
14328 | hardcode_shlibpath_var_F77=no |
---|
14329 | ;; |
---|
14330 | |
---|
14331 | sysv4) |
---|
14332 | case $host_vendor in |
---|
14333 | sni) |
---|
14334 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14335 | hardcode_direct_F77=yes # is this really true??? |
---|
14336 | ;; |
---|
14337 | siemens) |
---|
14338 | ## LD is ld it makes a PLAMLIB |
---|
14339 | ## CC just makes a GrossModule. |
---|
14340 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
14341 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
---|
14342 | hardcode_direct_F77=no |
---|
14343 | ;; |
---|
14344 | motorola) |
---|
14345 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14346 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
---|
14347 | ;; |
---|
14348 | esac |
---|
14349 | runpath_var='LD_RUN_PATH' |
---|
14350 | hardcode_shlibpath_var_F77=no |
---|
14351 | ;; |
---|
14352 | |
---|
14353 | sysv4.3*) |
---|
14354 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14355 | hardcode_shlibpath_var_F77=no |
---|
14356 | export_dynamic_flag_spec_F77='-Bexport' |
---|
14357 | ;; |
---|
14358 | |
---|
14359 | sysv4*MP*) |
---|
14360 | if test -d /usr/nec; then |
---|
14361 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14362 | hardcode_shlibpath_var_F77=no |
---|
14363 | runpath_var=LD_RUN_PATH |
---|
14364 | hardcode_runpath_var=yes |
---|
14365 | ld_shlibs_F77=yes |
---|
14366 | fi |
---|
14367 | ;; |
---|
14368 | |
---|
14369 | sysv4.2uw2*) |
---|
14370 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
14371 | hardcode_direct_F77=yes |
---|
14372 | hardcode_minus_L_F77=no |
---|
14373 | hardcode_shlibpath_var_F77=no |
---|
14374 | hardcode_runpath_var=yes |
---|
14375 | runpath_var=LD_RUN_PATH |
---|
14376 | ;; |
---|
14377 | |
---|
14378 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
14379 | no_undefined_flag_F77='${wl}-z ${wl}text' |
---|
14380 | if test "$GCC" = yes; then |
---|
14381 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14382 | else |
---|
14383 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14384 | fi |
---|
14385 | runpath_var='LD_RUN_PATH' |
---|
14386 | hardcode_shlibpath_var_F77=no |
---|
14387 | ;; |
---|
14388 | |
---|
14389 | sysv5*) |
---|
14390 | no_undefined_flag_F77=' -z text' |
---|
14391 | # $CC -shared without GNU ld will not create a library from C++ |
---|
14392 | # object files and a static libstdc++, better avoid it by now |
---|
14393 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14394 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
14395 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
14396 | hardcode_libdir_flag_spec_F77= |
---|
14397 | hardcode_shlibpath_var_F77=no |
---|
14398 | runpath_var='LD_RUN_PATH' |
---|
14399 | ;; |
---|
14400 | |
---|
14401 | uts4*) |
---|
14402 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14403 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14404 | hardcode_shlibpath_var_F77=no |
---|
14405 | ;; |
---|
14406 | |
---|
14407 | *) |
---|
14408 | ld_shlibs_F77=no |
---|
14409 | ;; |
---|
14410 | esac |
---|
14411 | fi |
---|
14412 | |
---|
14413 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
---|
14414 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
---|
14415 | test "$ld_shlibs_F77" = no && can_build_shared=no |
---|
14416 | |
---|
14417 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
14418 | if test "$GCC" = yes; then |
---|
14419 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
14420 | fi |
---|
14421 | |
---|
14422 | # |
---|
14423 | # Do we need to explicitly link libc? |
---|
14424 | # |
---|
14425 | case "x$archive_cmds_need_lc_F77" in |
---|
14426 | x|xyes) |
---|
14427 | # Assume -lc should be added |
---|
14428 | archive_cmds_need_lc_F77=yes |
---|
14429 | |
---|
14430 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
14431 | case $archive_cmds_F77 in |
---|
14432 | *'~'*) |
---|
14433 | # FIXME: we may have to deal with multi-command sequences. |
---|
14434 | ;; |
---|
14435 | '$CC '*) |
---|
14436 | # Test whether the compiler implicitly links with -lc since on some |
---|
14437 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
14438 | # to ld, don't add -lc before -lgcc. |
---|
14439 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
14440 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
14441 | $rm conftest* |
---|
14442 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
14443 | |
---|
14444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
14445 | (eval $ac_compile) 2>&5 |
---|
14446 | ac_status=$? |
---|
14447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14448 | (exit $ac_status); } 2>conftest.err; then |
---|
14449 | soname=conftest |
---|
14450 | lib=conftest |
---|
14451 | libobjs=conftest.$ac_objext |
---|
14452 | deplibs= |
---|
14453 | wl=$lt_prog_compiler_wl_F77 |
---|
14454 | compiler_flags=-v |
---|
14455 | linker_flags=-v |
---|
14456 | verstring= |
---|
14457 | output_objdir=. |
---|
14458 | libname=conftest |
---|
14459 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
---|
14460 | allow_undefined_flag_F77= |
---|
14461 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
14462 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
14463 | ac_status=$? |
---|
14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14465 | (exit $ac_status); } |
---|
14466 | then |
---|
14467 | archive_cmds_need_lc_F77=no |
---|
14468 | else |
---|
14469 | archive_cmds_need_lc_F77=yes |
---|
14470 | fi |
---|
14471 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
---|
14472 | else |
---|
14473 | cat conftest.err 1>&5 |
---|
14474 | fi |
---|
14475 | $rm conftest* |
---|
14476 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
---|
14477 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
---|
14478 | ;; |
---|
14479 | esac |
---|
14480 | fi |
---|
14481 | ;; |
---|
14482 | esac |
---|
14483 | |
---|
14484 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
14485 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
14486 | library_names_spec= |
---|
14487 | libname_spec='lib$name' |
---|
14488 | soname_spec= |
---|
14489 | shrext_cmds=".so" |
---|
14490 | postinstall_cmds= |
---|
14491 | postuninstall_cmds= |
---|
14492 | finish_cmds= |
---|
14493 | finish_eval= |
---|
14494 | shlibpath_var= |
---|
14495 | shlibpath_overrides_runpath=unknown |
---|
14496 | version_type=none |
---|
14497 | dynamic_linker="$host_os ld.so" |
---|
14498 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
14499 | if test "$GCC" = yes; then |
---|
14500 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
14501 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
14502 | # if the path contains ";" then we assume it to be the separator |
---|
14503 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
14504 | # assumed that no part of a normal pathname contains ";" but that should |
---|
14505 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
14506 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
14507 | else |
---|
14508 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
14509 | fi |
---|
14510 | else |
---|
14511 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
14512 | fi |
---|
14513 | need_lib_prefix=unknown |
---|
14514 | hardcode_into_libs=no |
---|
14515 | |
---|
14516 | # when you set need_version to no, make sure it does not cause -set_version |
---|
14517 | # flags to be left without arguments |
---|
14518 | need_version=unknown |
---|
14519 | |
---|
14520 | case $host_os in |
---|
14521 | aix3*) |
---|
14522 | version_type=linux |
---|
14523 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
14524 | shlibpath_var=LIBPATH |
---|
14525 | |
---|
14526 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
14527 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14528 | ;; |
---|
14529 | |
---|
14530 | aix4* | aix5*) |
---|
14531 | version_type=linux |
---|
14532 | need_lib_prefix=no |
---|
14533 | need_version=no |
---|
14534 | hardcode_into_libs=yes |
---|
14535 | if test "$host_cpu" = ia64; then |
---|
14536 | # AIX 5 supports IA64 |
---|
14537 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
14538 | shlibpath_var=LD_LIBRARY_PATH |
---|
14539 | else |
---|
14540 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
14541 | # for dependence libraries. The import file would start with |
---|
14542 | # the line `#! .'. This would cause the generated library to |
---|
14543 | # depend on `.', always an invalid library. This was fixed in |
---|
14544 | # development snapshots of GCC prior to 3.0. |
---|
14545 | case $host_os in |
---|
14546 | aix4 | aix4.[01] | aix4.[01].*) |
---|
14547 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
14548 | echo ' yes ' |
---|
14549 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
14550 | : |
---|
14551 | else |
---|
14552 | can_build_shared=no |
---|
14553 | fi |
---|
14554 | ;; |
---|
14555 | esac |
---|
14556 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
14557 | # soname into executable. Probably we can add versioning support to |
---|
14558 | # collect2, so additional links can be useful in future. |
---|
14559 | if test "$aix_use_runtimelinking" = yes; then |
---|
14560 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
14561 | # instead of lib<name>.a to let people know that these are not |
---|
14562 | # typical AIX shared libraries. |
---|
14563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14564 | else |
---|
14565 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
14566 | # and later when we are not doing run time linking. |
---|
14567 | library_names_spec='${libname}${release}.a $libname.a' |
---|
14568 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14569 | fi |
---|
14570 | shlibpath_var=LIBPATH |
---|
14571 | fi |
---|
14572 | ;; |
---|
14573 | |
---|
14574 | amigaos*) |
---|
14575 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
14576 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
14577 | 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' |
---|
14578 | ;; |
---|
14579 | |
---|
14580 | beos*) |
---|
14581 | library_names_spec='${libname}${shared_ext}' |
---|
14582 | dynamic_linker="$host_os ld.so" |
---|
14583 | shlibpath_var=LIBRARY_PATH |
---|
14584 | ;; |
---|
14585 | |
---|
14586 | bsdi4*) |
---|
14587 | version_type=linux |
---|
14588 | need_version=no |
---|
14589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14590 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14591 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
14592 | shlibpath_var=LD_LIBRARY_PATH |
---|
14593 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
14594 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
14595 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
14596 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
14597 | # libtool to hard-code these into programs |
---|
14598 | ;; |
---|
14599 | |
---|
14600 | cygwin* | mingw* | pw32*) |
---|
14601 | version_type=windows |
---|
14602 | shrext_cmds=".dll" |
---|
14603 | need_version=no |
---|
14604 | need_lib_prefix=no |
---|
14605 | |
---|
14606 | case $GCC,$host_os in |
---|
14607 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
14608 | library_names_spec='$libname.dll.a' |
---|
14609 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
14610 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
14611 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
14612 | dldir=$destdir/`dirname \$dlpath`~ |
---|
14613 | test -d \$dldir || mkdir -p \$dldir~ |
---|
14614 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
14615 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
14616 | dlpath=$dir/\$dldll~ |
---|
14617 | $rm \$dlpath' |
---|
14618 | shlibpath_overrides_runpath=yes |
---|
14619 | |
---|
14620 | case $host_os in |
---|
14621 | cygwin*) |
---|
14622 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
14623 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
14624 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
14625 | ;; |
---|
14626 | mingw*) |
---|
14627 | # MinGW DLLs use traditional 'lib' prefix |
---|
14628 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
14629 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
14630 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
14631 | # It is most probably a Windows format PATH printed by |
---|
14632 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
14633 | # path with ; separators, and with drive letters. We can handle the |
---|
14634 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
14635 | # especially as we might pass files found there to a mingw objdump, |
---|
14636 | # which wouldn't understand a cygwinified path. Ahh. |
---|
14637 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
14638 | else |
---|
14639 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
14640 | fi |
---|
14641 | ;; |
---|
14642 | pw32*) |
---|
14643 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
14644 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
---|
14645 | ;; |
---|
14646 | esac |
---|
14647 | ;; |
---|
14648 | |
---|
14649 | *) |
---|
14650 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
14651 | ;; |
---|
14652 | esac |
---|
14653 | dynamic_linker='Win32 ld.exe' |
---|
14654 | # FIXME: first we should search . and the directory the executable is in |
---|
14655 | shlibpath_var=PATH |
---|
14656 | ;; |
---|
14657 | |
---|
14658 | darwin* | rhapsody*) |
---|
14659 | dynamic_linker="$host_os dyld" |
---|
14660 | version_type=darwin |
---|
14661 | need_lib_prefix=no |
---|
14662 | need_version=no |
---|
14663 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
14664 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
14665 | shlibpath_overrides_runpath=yes |
---|
14666 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
14667 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
14668 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
14669 | if test "$GCC" = yes; then |
---|
14670 | 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"` |
---|
14671 | else |
---|
14672 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
14673 | fi |
---|
14674 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
14675 | ;; |
---|
14676 | |
---|
14677 | dgux*) |
---|
14678 | version_type=linux |
---|
14679 | need_lib_prefix=no |
---|
14680 | need_version=no |
---|
14681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
14682 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14683 | shlibpath_var=LD_LIBRARY_PATH |
---|
14684 | ;; |
---|
14685 | |
---|
14686 | freebsd1*) |
---|
14687 | dynamic_linker=no |
---|
14688 | ;; |
---|
14689 | |
---|
14690 | kfreebsd*-gnu) |
---|
14691 | version_type=linux |
---|
14692 | need_lib_prefix=no |
---|
14693 | need_version=no |
---|
14694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
14695 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14696 | shlibpath_var=LD_LIBRARY_PATH |
---|
14697 | shlibpath_overrides_runpath=no |
---|
14698 | hardcode_into_libs=yes |
---|
14699 | dynamic_linker='GNU ld.so' |
---|
14700 | ;; |
---|
14701 | |
---|
14702 | freebsd*) |
---|
14703 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
14704 | version_type=freebsd-$objformat |
---|
14705 | case $version_type in |
---|
14706 | freebsd-elf*) |
---|
14707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
14708 | need_version=no |
---|
14709 | need_lib_prefix=no |
---|
14710 | ;; |
---|
14711 | freebsd-*) |
---|
14712 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
14713 | need_version=yes |
---|
14714 | ;; |
---|
14715 | esac |
---|
14716 | shlibpath_var=LD_LIBRARY_PATH |
---|
14717 | case $host_os in |
---|
14718 | freebsd2*) |
---|
14719 | shlibpath_overrides_runpath=yes |
---|
14720 | ;; |
---|
14721 | freebsd3.01* | freebsdelf3.01*) |
---|
14722 | shlibpath_overrides_runpath=yes |
---|
14723 | hardcode_into_libs=yes |
---|
14724 | ;; |
---|
14725 | *) # from 3.2 on |
---|
14726 | shlibpath_overrides_runpath=no |
---|
14727 | hardcode_into_libs=yes |
---|
14728 | ;; |
---|
14729 | esac |
---|
14730 | ;; |
---|
14731 | |
---|
14732 | gnu*) |
---|
14733 | version_type=linux |
---|
14734 | need_lib_prefix=no |
---|
14735 | need_version=no |
---|
14736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
14737 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14738 | shlibpath_var=LD_LIBRARY_PATH |
---|
14739 | hardcode_into_libs=yes |
---|
14740 | ;; |
---|
14741 | |
---|
14742 | hpux9* | hpux10* | hpux11*) |
---|
14743 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
14744 | # link against other versions. |
---|
14745 | version_type=sunos |
---|
14746 | need_lib_prefix=no |
---|
14747 | need_version=no |
---|
14748 | case "$host_cpu" in |
---|
14749 | ia64*) |
---|
14750 | shrext_cmds='.so' |
---|
14751 | hardcode_into_libs=yes |
---|
14752 | dynamic_linker="$host_os dld.so" |
---|
14753 | shlibpath_var=LD_LIBRARY_PATH |
---|
14754 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
14755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14756 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14757 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
14758 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
14759 | else |
---|
14760 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
14761 | fi |
---|
14762 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
14763 | ;; |
---|
14764 | hppa*64*) |
---|
14765 | shrext_cmds='.sl' |
---|
14766 | hardcode_into_libs=yes |
---|
14767 | dynamic_linker="$host_os dld.sl" |
---|
14768 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
14769 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
14770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14771 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14772 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
14773 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
14774 | ;; |
---|
14775 | *) |
---|
14776 | shrext_cmds='.sl' |
---|
14777 | dynamic_linker="$host_os dld.sl" |
---|
14778 | shlibpath_var=SHLIB_PATH |
---|
14779 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
14780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14781 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14782 | ;; |
---|
14783 | esac |
---|
14784 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
14785 | postinstall_cmds='chmod 555 $lib' |
---|
14786 | ;; |
---|
14787 | |
---|
14788 | irix5* | irix6* | nonstopux*) |
---|
14789 | case $host_os in |
---|
14790 | nonstopux*) version_type=nonstopux ;; |
---|
14791 | *) |
---|
14792 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
14793 | version_type=linux |
---|
14794 | else |
---|
14795 | version_type=irix |
---|
14796 | fi ;; |
---|
14797 | esac |
---|
14798 | need_lib_prefix=no |
---|
14799 | need_version=no |
---|
14800 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
14802 | case $host_os in |
---|
14803 | irix5* | nonstopux*) |
---|
14804 | libsuff= shlibsuff= |
---|
14805 | ;; |
---|
14806 | *) |
---|
14807 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
14808 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
14809 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
14810 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
14811 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
14812 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
14813 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
14814 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
14815 | esac |
---|
14816 | ;; |
---|
14817 | esac |
---|
14818 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
14819 | shlibpath_overrides_runpath=no |
---|
14820 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
14821 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
14822 | hardcode_into_libs=yes |
---|
14823 | ;; |
---|
14824 | |
---|
14825 | # No shared lib support for Linux oldld, aout, or coff. |
---|
14826 | linux*oldld* | linux*aout* | linux*coff*) |
---|
14827 | dynamic_linker=no |
---|
14828 | ;; |
---|
14829 | |
---|
14830 | # This must be Linux ELF. |
---|
14831 | linux*) |
---|
14832 | version_type=linux |
---|
14833 | need_lib_prefix=no |
---|
14834 | need_version=no |
---|
14835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14836 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14837 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
14838 | shlibpath_var=LD_LIBRARY_PATH |
---|
14839 | shlibpath_overrides_runpath=no |
---|
14840 | # This implies no fast_install, which is unacceptable. |
---|
14841 | # Some rework will be needed to allow for fast_install |
---|
14842 | # before this can be enabled. |
---|
14843 | hardcode_into_libs=yes |
---|
14844 | |
---|
14845 | # Append ld.so.conf contents to the search path |
---|
14846 | if test -f /etc/ld.so.conf; then |
---|
14847 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
---|
14848 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
14849 | fi |
---|
14850 | |
---|
14851 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
14852 | # powerpc, because MkLinux only supported shared libraries with the |
---|
14853 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
14854 | # most powerpc-linux boxes support dynamic linking these days and |
---|
14855 | # people can always --disable-shared, the test was removed, and we |
---|
14856 | # assume the GNU/Linux dynamic linker is in use. |
---|
14857 | dynamic_linker='GNU/Linux ld.so' |
---|
14858 | ;; |
---|
14859 | |
---|
14860 | netbsdelf*-gnu) |
---|
14861 | version_type=linux |
---|
14862 | need_lib_prefix=no |
---|
14863 | need_version=no |
---|
14864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
14865 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14866 | shlibpath_var=LD_LIBRARY_PATH |
---|
14867 | shlibpath_overrides_runpath=no |
---|
14868 | hardcode_into_libs=yes |
---|
14869 | dynamic_linker='NetBSD ld.elf_so' |
---|
14870 | ;; |
---|
14871 | |
---|
14872 | knetbsd*-gnu) |
---|
14873 | version_type=linux |
---|
14874 | need_lib_prefix=no |
---|
14875 | need_version=no |
---|
14876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
14877 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14878 | shlibpath_var=LD_LIBRARY_PATH |
---|
14879 | shlibpath_overrides_runpath=no |
---|
14880 | hardcode_into_libs=yes |
---|
14881 | dynamic_linker='GNU ld.so' |
---|
14882 | ;; |
---|
14883 | |
---|
14884 | netbsd*) |
---|
14885 | version_type=sunos |
---|
14886 | need_lib_prefix=no |
---|
14887 | need_version=no |
---|
14888 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
14889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
14890 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
14891 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
14892 | else |
---|
14893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
14894 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14895 | dynamic_linker='NetBSD ld.elf_so' |
---|
14896 | fi |
---|
14897 | shlibpath_var=LD_LIBRARY_PATH |
---|
14898 | shlibpath_overrides_runpath=yes |
---|
14899 | hardcode_into_libs=yes |
---|
14900 | ;; |
---|
14901 | |
---|
14902 | newsos6) |
---|
14903 | version_type=linux |
---|
14904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14905 | shlibpath_var=LD_LIBRARY_PATH |
---|
14906 | shlibpath_overrides_runpath=yes |
---|
14907 | ;; |
---|
14908 | |
---|
14909 | nto-qnx*) |
---|
14910 | version_type=linux |
---|
14911 | need_lib_prefix=no |
---|
14912 | need_version=no |
---|
14913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14914 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14915 | shlibpath_var=LD_LIBRARY_PATH |
---|
14916 | shlibpath_overrides_runpath=yes |
---|
14917 | ;; |
---|
14918 | |
---|
14919 | openbsd*) |
---|
14920 | version_type=sunos |
---|
14921 | need_lib_prefix=no |
---|
14922 | need_version=yes |
---|
14923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
14924 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
14925 | shlibpath_var=LD_LIBRARY_PATH |
---|
14926 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
14927 | case $host_os in |
---|
14928 | openbsd2.[89] | openbsd2.[89].*) |
---|
14929 | shlibpath_overrides_runpath=no |
---|
14930 | ;; |
---|
14931 | *) |
---|
14932 | shlibpath_overrides_runpath=yes |
---|
14933 | ;; |
---|
14934 | esac |
---|
14935 | else |
---|
14936 | shlibpath_overrides_runpath=yes |
---|
14937 | fi |
---|
14938 | ;; |
---|
14939 | |
---|
14940 | os2*) |
---|
14941 | libname_spec='$name' |
---|
14942 | shrext_cmds=".dll" |
---|
14943 | need_lib_prefix=no |
---|
14944 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
14945 | dynamic_linker='OS/2 ld.exe' |
---|
14946 | shlibpath_var=LIBPATH |
---|
14947 | ;; |
---|
14948 | |
---|
14949 | osf3* | osf4* | osf5*) |
---|
14950 | version_type=osf |
---|
14951 | need_lib_prefix=no |
---|
14952 | need_version=no |
---|
14953 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14955 | shlibpath_var=LD_LIBRARY_PATH |
---|
14956 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
14957 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
14958 | ;; |
---|
14959 | |
---|
14960 | sco3.2v5*) |
---|
14961 | version_type=osf |
---|
14962 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14964 | shlibpath_var=LD_LIBRARY_PATH |
---|
14965 | ;; |
---|
14966 | |
---|
14967 | solaris*) |
---|
14968 | version_type=linux |
---|
14969 | need_lib_prefix=no |
---|
14970 | need_version=no |
---|
14971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14972 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14973 | shlibpath_var=LD_LIBRARY_PATH |
---|
14974 | shlibpath_overrides_runpath=yes |
---|
14975 | hardcode_into_libs=yes |
---|
14976 | # ldd complains unless libraries are executable |
---|
14977 | postinstall_cmds='chmod +x $lib' |
---|
14978 | ;; |
---|
14979 | |
---|
14980 | sunos4*) |
---|
14981 | version_type=sunos |
---|
14982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
14983 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
14984 | shlibpath_var=LD_LIBRARY_PATH |
---|
14985 | shlibpath_overrides_runpath=yes |
---|
14986 | if test "$with_gnu_ld" = yes; then |
---|
14987 | need_lib_prefix=no |
---|
14988 | fi |
---|
14989 | need_version=yes |
---|
14990 | ;; |
---|
14991 | |
---|
14992 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
14993 | version_type=linux |
---|
14994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14995 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14996 | shlibpath_var=LD_LIBRARY_PATH |
---|
14997 | case $host_vendor in |
---|
14998 | sni) |
---|
14999 | shlibpath_overrides_runpath=no |
---|
15000 | need_lib_prefix=no |
---|
15001 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
15002 | runpath_var=LD_RUN_PATH |
---|
15003 | ;; |
---|
15004 | siemens) |
---|
15005 | need_lib_prefix=no |
---|
15006 | ;; |
---|
15007 | motorola) |
---|
15008 | need_lib_prefix=no |
---|
15009 | need_version=no |
---|
15010 | shlibpath_overrides_runpath=no |
---|
15011 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
15012 | ;; |
---|
15013 | esac |
---|
15014 | ;; |
---|
15015 | |
---|
15016 | sysv4*MP*) |
---|
15017 | if test -d /usr/nec ;then |
---|
15018 | version_type=linux |
---|
15019 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
15020 | soname_spec='$libname${shared_ext}.$major' |
---|
15021 | shlibpath_var=LD_LIBRARY_PATH |
---|
15022 | fi |
---|
15023 | ;; |
---|
15024 | |
---|
15025 | uts4*) |
---|
15026 | version_type=linux |
---|
15027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15028 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15029 | shlibpath_var=LD_LIBRARY_PATH |
---|
15030 | ;; |
---|
15031 | |
---|
15032 | *) |
---|
15033 | dynamic_linker=no |
---|
15034 | ;; |
---|
15035 | esac |
---|
15036 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
15037 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
15038 | test "$dynamic_linker" = no && can_build_shared=no |
---|
15039 | |
---|
15040 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
15041 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
15042 | hardcode_action_F77= |
---|
15043 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
---|
15044 | test -n "$runpath_var F77" || \ |
---|
15045 | test "X$hardcode_automatic_F77"="Xyes" ; then |
---|
15046 | |
---|
15047 | # We can hardcode non-existant directories. |
---|
15048 | if test "$hardcode_direct_F77" != no && |
---|
15049 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
15050 | # have to relink, otherwise we might link with an installed library |
---|
15051 | # when we should be linking with a yet-to-be-installed one |
---|
15052 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
---|
15053 | test "$hardcode_minus_L_F77" != no; then |
---|
15054 | # Linking always hardcodes the temporary library directory. |
---|
15055 | hardcode_action_F77=relink |
---|
15056 | else |
---|
15057 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
15058 | hardcode_action_F77=immediate |
---|
15059 | fi |
---|
15060 | else |
---|
15061 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
15062 | # directories. |
---|
15063 | hardcode_action_F77=unsupported |
---|
15064 | fi |
---|
15065 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
---|
15066 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
---|
15067 | |
---|
15068 | if test "$hardcode_action_F77" = relink; then |
---|
15069 | # Fast installation is not supported |
---|
15070 | enable_fast_install=no |
---|
15071 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
15072 | test "$enable_shared" = no; then |
---|
15073 | # Fast installation is not necessary |
---|
15074 | enable_fast_install=needless |
---|
15075 | fi |
---|
15076 | |
---|
15077 | striplib= |
---|
15078 | old_striplib= |
---|
15079 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
15080 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
15081 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
15082 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
15083 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
15084 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
15085 | echo "${ECHO_T}yes" >&6 |
---|
15086 | else |
---|
15087 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
15088 | case $host_os in |
---|
15089 | darwin*) |
---|
15090 | if test -n "$STRIP" ; then |
---|
15091 | striplib="$STRIP -x" |
---|
15092 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
15093 | echo "${ECHO_T}yes" >&6 |
---|
15094 | else |
---|
15095 | echo "$as_me:$LINENO: result: no" >&5 |
---|
15096 | echo "${ECHO_T}no" >&6 |
---|
15097 | fi |
---|
15098 | ;; |
---|
15099 | *) |
---|
15100 | echo "$as_me:$LINENO: result: no" >&5 |
---|
15101 | echo "${ECHO_T}no" >&6 |
---|
15102 | ;; |
---|
15103 | esac |
---|
15104 | fi |
---|
15105 | |
---|
15106 | |
---|
15107 | |
---|
15108 | # The else clause should only fire when bootstrapping the |
---|
15109 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
15110 | # with your package, and you will get complaints that there are |
---|
15111 | # no rules to generate ltmain.sh. |
---|
15112 | if test -f "$ltmain"; then |
---|
15113 | # See if we are running on zsh, and set the options which allow our commands through |
---|
15114 | # without removal of \ escapes. |
---|
15115 | if test -n "${ZSH_VERSION+set}" ; then |
---|
15116 | setopt NO_GLOB_SUBST |
---|
15117 | fi |
---|
15118 | # Now quote all the things that may contain metacharacters while being |
---|
15119 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
15120 | # variables and quote the copies for generation of the libtool script. |
---|
15121 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
15122 | SED SHELL STRIP \ |
---|
15123 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
15124 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
15125 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
15126 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
15127 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
15128 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
15129 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
15130 | compiler_F77 \ |
---|
15131 | CC_F77 \ |
---|
15132 | LD_F77 \ |
---|
15133 | lt_prog_compiler_wl_F77 \ |
---|
15134 | lt_prog_compiler_pic_F77 \ |
---|
15135 | lt_prog_compiler_static_F77 \ |
---|
15136 | lt_prog_compiler_no_builtin_flag_F77 \ |
---|
15137 | export_dynamic_flag_spec_F77 \ |
---|
15138 | thread_safe_flag_spec_F77 \ |
---|
15139 | whole_archive_flag_spec_F77 \ |
---|
15140 | enable_shared_with_static_runtimes_F77 \ |
---|
15141 | old_archive_cmds_F77 \ |
---|
15142 | old_archive_from_new_cmds_F77 \ |
---|
15143 | predep_objects_F77 \ |
---|
15144 | postdep_objects_F77 \ |
---|
15145 | predeps_F77 \ |
---|
15146 | postdeps_F77 \ |
---|
15147 | compiler_lib_search_path_F77 \ |
---|
15148 | archive_cmds_F77 \ |
---|
15149 | archive_expsym_cmds_F77 \ |
---|
15150 | postinstall_cmds_F77 \ |
---|
15151 | postuninstall_cmds_F77 \ |
---|
15152 | old_archive_from_expsyms_cmds_F77 \ |
---|
15153 | allow_undefined_flag_F77 \ |
---|
15154 | no_undefined_flag_F77 \ |
---|
15155 | export_symbols_cmds_F77 \ |
---|
15156 | hardcode_libdir_flag_spec_F77 \ |
---|
15157 | hardcode_libdir_flag_spec_ld_F77 \ |
---|
15158 | hardcode_libdir_separator_F77 \ |
---|
15159 | hardcode_automatic_F77 \ |
---|
15160 | module_cmds_F77 \ |
---|
15161 | module_expsym_cmds_F77 \ |
---|
15162 | lt_cv_prog_compiler_c_o_F77 \ |
---|
15163 | exclude_expsyms_F77 \ |
---|
15164 | include_expsyms_F77; do |
---|
15165 | |
---|
15166 | case $var in |
---|
15167 | old_archive_cmds_F77 | \ |
---|
15168 | old_archive_from_new_cmds_F77 | \ |
---|
15169 | archive_cmds_F77 | \ |
---|
15170 | archive_expsym_cmds_F77 | \ |
---|
15171 | module_cmds_F77 | \ |
---|
15172 | module_expsym_cmds_F77 | \ |
---|
15173 | old_archive_from_expsyms_cmds_F77 | \ |
---|
15174 | export_symbols_cmds_F77 | \ |
---|
15175 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
15176 | postinstall_cmds | postuninstall_cmds | \ |
---|
15177 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
15178 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
15179 | # Double-quote double-evaled strings. |
---|
15180 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
15181 | ;; |
---|
15182 | *) |
---|
15183 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
15184 | ;; |
---|
15185 | esac |
---|
15186 | done |
---|
15187 | |
---|
15188 | case $lt_echo in |
---|
15189 | *'\$0 --fallback-echo"') |
---|
15190 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
15191 | ;; |
---|
15192 | esac |
---|
15193 | |
---|
15194 | cfgfile="$ofile" |
---|
15195 | |
---|
15196 | cat <<__EOF__ >> "$cfgfile" |
---|
15197 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
15198 | |
---|
15199 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
15200 | |
---|
15201 | # Shell to use when invoking shell scripts. |
---|
15202 | SHELL=$lt_SHELL |
---|
15203 | |
---|
15204 | # Whether or not to build shared libraries. |
---|
15205 | build_libtool_libs=$enable_shared |
---|
15206 | |
---|
15207 | # Whether or not to build static libraries. |
---|
15208 | build_old_libs=$enable_static |
---|
15209 | |
---|
15210 | # Whether or not to add -lc for building shared libraries. |
---|
15211 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
---|
15212 | |
---|
15213 | # Whether or not to disallow shared libs when runtime libs are static |
---|
15214 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
---|
15215 | |
---|
15216 | # Whether or not to optimize for fast installation. |
---|
15217 | fast_install=$enable_fast_install |
---|
15218 | |
---|
15219 | # The host system. |
---|
15220 | host_alias=$host_alias |
---|
15221 | host=$host |
---|
15222 | |
---|
15223 | # An echo program that does not interpret backslashes. |
---|
15224 | echo=$lt_echo |
---|
15225 | |
---|
15226 | # The archiver. |
---|
15227 | AR=$lt_AR |
---|
15228 | AR_FLAGS=$lt_AR_FLAGS |
---|
15229 | |
---|
15230 | # A C compiler. |
---|
15231 | LTCC=$lt_LTCC |
---|
15232 | |
---|
15233 | # A language-specific compiler. |
---|
15234 | CC=$lt_compiler_F77 |
---|
15235 | |
---|
15236 | # Is the compiler the GNU C compiler? |
---|
15237 | with_gcc=$GCC_F77 |
---|
15238 | |
---|
15239 | # An ERE matcher. |
---|
15240 | EGREP=$lt_EGREP |
---|
15241 | |
---|
15242 | # The linker used to build libraries. |
---|
15243 | LD=$lt_LD_F77 |
---|
15244 | |
---|
15245 | # Whether we need hard or soft links. |
---|
15246 | LN_S=$lt_LN_S |
---|
15247 | |
---|
15248 | # A BSD-compatible nm program. |
---|
15249 | NM=$lt_NM |
---|
15250 | |
---|
15251 | # A symbol stripping program |
---|
15252 | STRIP=$lt_STRIP |
---|
15253 | |
---|
15254 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
15255 | MAGIC_CMD=$MAGIC_CMD |
---|
15256 | |
---|
15257 | # Used on cygwin: DLL creation program. |
---|
15258 | DLLTOOL="$DLLTOOL" |
---|
15259 | |
---|
15260 | # Used on cygwin: object dumper. |
---|
15261 | OBJDUMP="$OBJDUMP" |
---|
15262 | |
---|
15263 | # Used on cygwin: assembler. |
---|
15264 | AS="$AS" |
---|
15265 | |
---|
15266 | # The name of the directory that contains temporary libtool files. |
---|
15267 | objdir=$objdir |
---|
15268 | |
---|
15269 | # How to create reloadable object files. |
---|
15270 | reload_flag=$lt_reload_flag |
---|
15271 | reload_cmds=$lt_reload_cmds |
---|
15272 | |
---|
15273 | # How to pass a linker flag through the compiler. |
---|
15274 | wl=$lt_lt_prog_compiler_wl_F77 |
---|
15275 | |
---|
15276 | # Object file suffix (normally "o"). |
---|
15277 | objext="$ac_objext" |
---|
15278 | |
---|
15279 | # Old archive suffix (normally "a"). |
---|
15280 | libext="$libext" |
---|
15281 | |
---|
15282 | # Shared library suffix (normally ".so"). |
---|
15283 | shrext_cmds='$shrext_cmds' |
---|
15284 | |
---|
15285 | # Executable file suffix (normally ""). |
---|
15286 | exeext="$exeext" |
---|
15287 | |
---|
15288 | # Additional compiler flags for building library objects. |
---|
15289 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
---|
15290 | pic_mode=$pic_mode |
---|
15291 | |
---|
15292 | # What is the maximum length of a command? |
---|
15293 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
15294 | |
---|
15295 | # Does compiler simultaneously support -c and -o options? |
---|
15296 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
---|
15297 | |
---|
15298 | # Must we lock files when doing compilation ? |
---|
15299 | need_locks=$lt_need_locks |
---|
15300 | |
---|
15301 | # Do we need the lib prefix for modules? |
---|
15302 | need_lib_prefix=$need_lib_prefix |
---|
15303 | |
---|
15304 | # Do we need a version for libraries? |
---|
15305 | need_version=$need_version |
---|
15306 | |
---|
15307 | # Whether dlopen is supported. |
---|
15308 | dlopen_support=$enable_dlopen |
---|
15309 | |
---|
15310 | # Whether dlopen of programs is supported. |
---|
15311 | dlopen_self=$enable_dlopen_self |
---|
15312 | |
---|
15313 | # Whether dlopen of statically linked programs is supported. |
---|
15314 | dlopen_self_static=$enable_dlopen_self_static |
---|
15315 | |
---|
15316 | # Compiler flag to prevent dynamic linking. |
---|
15317 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
---|
15318 | |
---|
15319 | # Compiler flag to turn off builtin functions. |
---|
15320 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
---|
15321 | |
---|
15322 | # Compiler flag to allow reflexive dlopens. |
---|
15323 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
---|
15324 | |
---|
15325 | # Compiler flag to generate shared objects directly from archives. |
---|
15326 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
---|
15327 | |
---|
15328 | # Compiler flag to generate thread-safe objects. |
---|
15329 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
---|
15330 | |
---|
15331 | # Library versioning type. |
---|
15332 | version_type=$version_type |
---|
15333 | |
---|
15334 | # Format of library name prefix. |
---|
15335 | libname_spec=$lt_libname_spec |
---|
15336 | |
---|
15337 | # List of archive names. First name is the real one, the rest are links. |
---|
15338 | # The last name is the one that the linker finds with -lNAME. |
---|
15339 | library_names_spec=$lt_library_names_spec |
---|
15340 | |
---|
15341 | # The coded name of the library, if different from the real name. |
---|
15342 | soname_spec=$lt_soname_spec |
---|
15343 | |
---|
15344 | # Commands used to build and install an old-style archive. |
---|
15345 | RANLIB=$lt_RANLIB |
---|
15346 | old_archive_cmds=$lt_old_archive_cmds_F77 |
---|
15347 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
15348 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
15349 | |
---|
15350 | # Create an old-style archive from a shared archive. |
---|
15351 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
---|
15352 | |
---|
15353 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
15354 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
---|
15355 | |
---|
15356 | # Commands used to build and install a shared archive. |
---|
15357 | archive_cmds=$lt_archive_cmds_F77 |
---|
15358 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
---|
15359 | postinstall_cmds=$lt_postinstall_cmds |
---|
15360 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
15361 | |
---|
15362 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
15363 | module_cmds=$lt_module_cmds_F77 |
---|
15364 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
---|
15365 | |
---|
15366 | # Commands to strip libraries. |
---|
15367 | old_striplib=$lt_old_striplib |
---|
15368 | striplib=$lt_striplib |
---|
15369 | |
---|
15370 | # Dependencies to place before the objects being linked to create a |
---|
15371 | # shared library. |
---|
15372 | predep_objects=$lt_predep_objects_F77 |
---|
15373 | |
---|
15374 | # Dependencies to place after the objects being linked to create a |
---|
15375 | # shared library. |
---|
15376 | postdep_objects=$lt_postdep_objects_F77 |
---|
15377 | |
---|
15378 | # Dependencies to place before the objects being linked to create a |
---|
15379 | # shared library. |
---|
15380 | predeps=$lt_predeps_F77 |
---|
15381 | |
---|
15382 | # Dependencies to place after the objects being linked to create a |
---|
15383 | # shared library. |
---|
15384 | postdeps=$lt_postdeps_F77 |
---|
15385 | |
---|
15386 | # The library search path used internally by the compiler when linking |
---|
15387 | # a shared library. |
---|
15388 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
---|
15389 | |
---|
15390 | # Method to check whether dependent libraries are shared objects. |
---|
15391 | deplibs_check_method=$lt_deplibs_check_method |
---|
15392 | |
---|
15393 | # Command to use when deplibs_check_method == file_magic. |
---|
15394 | file_magic_cmd=$lt_file_magic_cmd |
---|
15395 | |
---|
15396 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
15397 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
---|
15398 | |
---|
15399 | # Flag that forces no undefined symbols. |
---|
15400 | no_undefined_flag=$lt_no_undefined_flag_F77 |
---|
15401 | |
---|
15402 | # Commands used to finish a libtool library installation in a directory. |
---|
15403 | finish_cmds=$lt_finish_cmds |
---|
15404 | |
---|
15405 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
15406 | finish_eval=$lt_finish_eval |
---|
15407 | |
---|
15408 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
15409 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
15410 | |
---|
15411 | # Transform the output of nm in a proper C declaration |
---|
15412 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
15413 | |
---|
15414 | # Transform the output of nm in a C name address pair |
---|
15415 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
15416 | |
---|
15417 | # This is the shared library runtime path variable. |
---|
15418 | runpath_var=$runpath_var |
---|
15419 | |
---|
15420 | # This is the shared library path variable. |
---|
15421 | shlibpath_var=$shlibpath_var |
---|
15422 | |
---|
15423 | # Is shlibpath searched before the hard-coded library search path? |
---|
15424 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
15425 | |
---|
15426 | # How to hardcode a shared library path into an executable. |
---|
15427 | hardcode_action=$hardcode_action_F77 |
---|
15428 | |
---|
15429 | # Whether we should hardcode library paths into libraries. |
---|
15430 | hardcode_into_libs=$hardcode_into_libs |
---|
15431 | |
---|
15432 | # Flag to hardcode \$libdir into a binary during linking. |
---|
15433 | # This must work even if \$libdir does not exist. |
---|
15434 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
---|
15435 | |
---|
15436 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
15437 | # a binary during linking. This must work even if \$libdir does |
---|
15438 | # not exist. |
---|
15439 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
---|
15440 | |
---|
15441 | # Whether we need a single -rpath flag with a separated argument. |
---|
15442 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
---|
15443 | |
---|
15444 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
15445 | # resulting binary. |
---|
15446 | hardcode_direct=$hardcode_direct_F77 |
---|
15447 | |
---|
15448 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
15449 | # resulting binary. |
---|
15450 | hardcode_minus_L=$hardcode_minus_L_F77 |
---|
15451 | |
---|
15452 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
15453 | # the resulting binary. |
---|
15454 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
---|
15455 | |
---|
15456 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
15457 | # and all subsequent libraries and executables linked against it. |
---|
15458 | hardcode_automatic=$hardcode_automatic_F77 |
---|
15459 | |
---|
15460 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
15461 | # restored at relink time. |
---|
15462 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
15463 | |
---|
15464 | # Whether libtool must link a program against all its dependency libraries. |
---|
15465 | link_all_deplibs=$link_all_deplibs_F77 |
---|
15466 | |
---|
15467 | # Compile-time system search path for libraries |
---|
15468 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
15469 | |
---|
15470 | # Run-time system search path for libraries |
---|
15471 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
15472 | |
---|
15473 | # Fix the shell variable \$srcfile for the compiler. |
---|
15474 | fix_srcfile_path="$fix_srcfile_path_F77" |
---|
15475 | |
---|
15476 | # Set to yes if exported symbols are required. |
---|
15477 | always_export_symbols=$always_export_symbols_F77 |
---|
15478 | |
---|
15479 | # The commands to list exported symbols. |
---|
15480 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
---|
15481 | |
---|
15482 | # The commands to extract the exported symbol list from a shared archive. |
---|
15483 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
15484 | |
---|
15485 | # Symbols that should not be listed in the preloaded symbols. |
---|
15486 | exclude_expsyms=$lt_exclude_expsyms_F77 |
---|
15487 | |
---|
15488 | # Symbols that must always be exported. |
---|
15489 | include_expsyms=$lt_include_expsyms_F77 |
---|
15490 | |
---|
15491 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
15492 | |
---|
15493 | __EOF__ |
---|
15494 | |
---|
15495 | |
---|
15496 | else |
---|
15497 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
15498 | # `config.status --recheck' to rerun these tests and create the |
---|
15499 | # libtool script then. |
---|
15500 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
15501 | if test -f "$ltmain_in"; then |
---|
15502 | test -f Makefile && make "$ltmain" |
---|
15503 | fi |
---|
15504 | fi |
---|
15505 | |
---|
15506 | |
---|
15507 | ac_ext=c |
---|
15508 | ac_cpp='$CPP $CPPFLAGS' |
---|
15509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
15510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
15511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
15512 | |
---|
15513 | CC="$lt_save_CC" |
---|
15514 | |
---|
15515 | else |
---|
15516 | tagname="" |
---|
15517 | fi |
---|
15518 | ;; |
---|
15519 | |
---|
15520 | GCJ) |
---|
15521 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
---|
15522 | |
---|
15523 | |
---|
15524 | |
---|
15525 | # Source file extension for Java test sources. |
---|
15526 | ac_ext=java |
---|
15527 | |
---|
15528 | # Object file extension for compiled Java test sources. |
---|
15529 | objext=o |
---|
15530 | objext_GCJ=$objext |
---|
15531 | |
---|
15532 | # Code to be used in simple compile tests |
---|
15533 | lt_simple_compile_test_code="class foo {}\n" |
---|
15534 | |
---|
15535 | # Code to be used in simple link tests |
---|
15536 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
---|
15537 | |
---|
15538 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
15539 | |
---|
15540 | # If no C compiler was specified, use CC. |
---|
15541 | LTCC=${LTCC-"$CC"} |
---|
15542 | |
---|
15543 | # Allow CC to be a program name with arguments. |
---|
15544 | compiler=$CC |
---|
15545 | |
---|
15546 | |
---|
15547 | # Allow CC to be a program name with arguments. |
---|
15548 | lt_save_CC="$CC" |
---|
15549 | CC=${GCJ-"gcj"} |
---|
15550 | compiler=$CC |
---|
15551 | compiler_GCJ=$CC |
---|
15552 | |
---|
15553 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
---|
15554 | archive_cmds_need_lc_GCJ=no |
---|
15555 | |
---|
15556 | |
---|
15557 | lt_prog_compiler_no_builtin_flag_GCJ= |
---|
15558 | |
---|
15559 | if test "$GCC" = yes; then |
---|
15560 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
---|
15561 | |
---|
15562 | |
---|
15563 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
15564 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
15565 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
15566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
15567 | else |
---|
15568 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
15569 | ac_outfile=conftest.$ac_objext |
---|
15570 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15571 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
15572 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
15573 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
15574 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
15575 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
15576 | # The option is referenced via a variable to avoid confusing sed. |
---|
15577 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
15578 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
15579 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
15580 | -e 's:$: $lt_compiler_flag:'` |
---|
15581 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
15582 | (eval "$lt_compile" 2>conftest.err) |
---|
15583 | ac_status=$? |
---|
15584 | cat conftest.err >&5 |
---|
15585 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
15586 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
15587 | # The compiler can only warn and ignore the option if not recognized |
---|
15588 | # So say no if there are warnings |
---|
15589 | if test ! -s conftest.err; then |
---|
15590 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
15591 | fi |
---|
15592 | fi |
---|
15593 | $rm conftest* |
---|
15594 | |
---|
15595 | fi |
---|
15596 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
15597 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
15598 | |
---|
15599 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
15600 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
---|
15601 | else |
---|
15602 | : |
---|
15603 | fi |
---|
15604 | |
---|
15605 | fi |
---|
15606 | |
---|
15607 | lt_prog_compiler_wl_GCJ= |
---|
15608 | lt_prog_compiler_pic_GCJ= |
---|
15609 | lt_prog_compiler_static_GCJ= |
---|
15610 | |
---|
15611 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
15612 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
15613 | |
---|
15614 | if test "$GCC" = yes; then |
---|
15615 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15616 | lt_prog_compiler_static_GCJ='-static' |
---|
15617 | |
---|
15618 | case $host_os in |
---|
15619 | aix*) |
---|
15620 | # All AIX code is PIC. |
---|
15621 | if test "$host_cpu" = ia64; then |
---|
15622 | # AIX 5 now supports IA64 processor |
---|
15623 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15624 | fi |
---|
15625 | ;; |
---|
15626 | |
---|
15627 | amigaos*) |
---|
15628 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
15629 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
15630 | # like `-m68040'. |
---|
15631 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
---|
15632 | ;; |
---|
15633 | |
---|
15634 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
15635 | # PIC is the default for these OSes. |
---|
15636 | ;; |
---|
15637 | |
---|
15638 | mingw* | pw32* | os2*) |
---|
15639 | # This hack is so that the source file can tell whether it is being |
---|
15640 | # built for inclusion in a dll (and should export symbols for example). |
---|
15641 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
15642 | ;; |
---|
15643 | |
---|
15644 | darwin* | rhapsody*) |
---|
15645 | # PIC is the default on this platform |
---|
15646 | # Common symbols not allowed in MH_DYLIB files |
---|
15647 | lt_prog_compiler_pic_GCJ='-fno-common' |
---|
15648 | ;; |
---|
15649 | |
---|
15650 | msdosdjgpp*) |
---|
15651 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
15652 | # on systems that don't support them. |
---|
15653 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
15654 | enable_shared=no |
---|
15655 | ;; |
---|
15656 | |
---|
15657 | sysv4*MP*) |
---|
15658 | if test -d /usr/nec; then |
---|
15659 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
---|
15660 | fi |
---|
15661 | ;; |
---|
15662 | |
---|
15663 | hpux*) |
---|
15664 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
15665 | # not for PA HP-UX. |
---|
15666 | case "$host_cpu" in |
---|
15667 | hppa*64*|ia64*) |
---|
15668 | # +Z the default |
---|
15669 | ;; |
---|
15670 | *) |
---|
15671 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
15672 | ;; |
---|
15673 | esac |
---|
15674 | ;; |
---|
15675 | |
---|
15676 | *) |
---|
15677 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
15678 | ;; |
---|
15679 | esac |
---|
15680 | else |
---|
15681 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
15682 | case $host_os in |
---|
15683 | aix*) |
---|
15684 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15685 | if test "$host_cpu" = ia64; then |
---|
15686 | # AIX 5 now supports IA64 processor |
---|
15687 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15688 | else |
---|
15689 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
---|
15690 | fi |
---|
15691 | ;; |
---|
15692 | |
---|
15693 | mingw* | pw32* | os2*) |
---|
15694 | # This hack is so that the source file can tell whether it is being |
---|
15695 | # built for inclusion in a dll (and should export symbols for example). |
---|
15696 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
15697 | ;; |
---|
15698 | |
---|
15699 | hpux9* | hpux10* | hpux11*) |
---|
15700 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15701 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
15702 | # not for PA HP-UX. |
---|
15703 | case "$host_cpu" in |
---|
15704 | hppa*64*|ia64*) |
---|
15705 | # +Z the default |
---|
15706 | ;; |
---|
15707 | *) |
---|
15708 | lt_prog_compiler_pic_GCJ='+Z' |
---|
15709 | ;; |
---|
15710 | esac |
---|
15711 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
15712 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
---|
15713 | ;; |
---|
15714 | |
---|
15715 | irix5* | irix6* | nonstopux*) |
---|
15716 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15717 | # PIC (with -KPIC) is the default. |
---|
15718 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
15719 | ;; |
---|
15720 | |
---|
15721 | newsos6) |
---|
15722 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
15723 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15724 | ;; |
---|
15725 | |
---|
15726 | linux*) |
---|
15727 | case $CC in |
---|
15728 | icc* | ecc*) |
---|
15729 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15730 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
15731 | lt_prog_compiler_static_GCJ='-static' |
---|
15732 | ;; |
---|
15733 | ccc*) |
---|
15734 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15735 | # All Alpha code is PIC. |
---|
15736 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
15737 | ;; |
---|
15738 | esac |
---|
15739 | ;; |
---|
15740 | |
---|
15741 | osf3* | osf4* | osf5*) |
---|
15742 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15743 | # All OSF/1 code is PIC. |
---|
15744 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
15745 | ;; |
---|
15746 | |
---|
15747 | sco3.2v5*) |
---|
15748 | lt_prog_compiler_pic_GCJ='-Kpic' |
---|
15749 | lt_prog_compiler_static_GCJ='-dn' |
---|
15750 | ;; |
---|
15751 | |
---|
15752 | solaris*) |
---|
15753 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15754 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
15755 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15756 | ;; |
---|
15757 | |
---|
15758 | sunos4*) |
---|
15759 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
---|
15760 | lt_prog_compiler_pic_GCJ='-PIC' |
---|
15761 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15762 | ;; |
---|
15763 | |
---|
15764 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
15765 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15766 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
15767 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15768 | ;; |
---|
15769 | |
---|
15770 | sysv4*MP*) |
---|
15771 | if test -d /usr/nec ;then |
---|
15772 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
---|
15773 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15774 | fi |
---|
15775 | ;; |
---|
15776 | |
---|
15777 | uts4*) |
---|
15778 | lt_prog_compiler_pic_GCJ='-pic' |
---|
15779 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15780 | ;; |
---|
15781 | |
---|
15782 | *) |
---|
15783 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
15784 | ;; |
---|
15785 | esac |
---|
15786 | fi |
---|
15787 | |
---|
15788 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
---|
15789 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
---|
15790 | |
---|
15791 | # |
---|
15792 | # Check to make sure the PIC flag actually works. |
---|
15793 | # |
---|
15794 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
---|
15795 | |
---|
15796 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
---|
15797 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
---|
15798 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
---|
15799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
15800 | else |
---|
15801 | lt_prog_compiler_pic_works_GCJ=no |
---|
15802 | ac_outfile=conftest.$ac_objext |
---|
15803 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15804 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
---|
15805 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
15806 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
15807 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
15808 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
15809 | # The option is referenced via a variable to avoid confusing sed. |
---|
15810 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
15811 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
15812 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
15813 | -e 's:$: $lt_compiler_flag:'` |
---|
15814 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
15815 | (eval "$lt_compile" 2>conftest.err) |
---|
15816 | ac_status=$? |
---|
15817 | cat conftest.err >&5 |
---|
15818 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
15819 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
15820 | # The compiler can only warn and ignore the option if not recognized |
---|
15821 | # So say no if there are warnings |
---|
15822 | if test ! -s conftest.err; then |
---|
15823 | lt_prog_compiler_pic_works_GCJ=yes |
---|
15824 | fi |
---|
15825 | fi |
---|
15826 | $rm conftest* |
---|
15827 | |
---|
15828 | fi |
---|
15829 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
---|
15830 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
---|
15831 | |
---|
15832 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
---|
15833 | case $lt_prog_compiler_pic_GCJ in |
---|
15834 | "" | " "*) ;; |
---|
15835 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
---|
15836 | esac |
---|
15837 | else |
---|
15838 | lt_prog_compiler_pic_GCJ= |
---|
15839 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
15840 | fi |
---|
15841 | |
---|
15842 | fi |
---|
15843 | case "$host_os" in |
---|
15844 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
15845 | *djgpp*) |
---|
15846 | lt_prog_compiler_pic_GCJ= |
---|
15847 | ;; |
---|
15848 | *) |
---|
15849 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
---|
15850 | ;; |
---|
15851 | esac |
---|
15852 | |
---|
15853 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
15854 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
15855 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
---|
15856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
15857 | else |
---|
15858 | lt_cv_prog_compiler_c_o_GCJ=no |
---|
15859 | $rm -r conftest 2>/dev/null |
---|
15860 | mkdir conftest |
---|
15861 | cd conftest |
---|
15862 | mkdir out |
---|
15863 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15864 | |
---|
15865 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
15866 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
15867 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
15868 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
15869 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
15870 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
15871 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
15872 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
15873 | -e 's:$: $lt_compiler_flag:'` |
---|
15874 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
15875 | (eval "$lt_compile" 2>out/conftest.err) |
---|
15876 | ac_status=$? |
---|
15877 | cat out/conftest.err >&5 |
---|
15878 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
15879 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
15880 | then |
---|
15881 | # The compiler can only warn and ignore the option if not recognized |
---|
15882 | # So say no if there are warnings |
---|
15883 | if test ! -s out/conftest.err; then |
---|
15884 | lt_cv_prog_compiler_c_o_GCJ=yes |
---|
15885 | fi |
---|
15886 | fi |
---|
15887 | chmod u+w . |
---|
15888 | $rm conftest* |
---|
15889 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
15890 | # template instantiation |
---|
15891 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
15892 | $rm out/* && rmdir out |
---|
15893 | cd .. |
---|
15894 | rmdir conftest |
---|
15895 | $rm conftest* |
---|
15896 | |
---|
15897 | fi |
---|
15898 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
---|
15899 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
---|
15900 | |
---|
15901 | |
---|
15902 | hard_links="nottested" |
---|
15903 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
---|
15904 | # do not overwrite the value of need_locks provided by the user |
---|
15905 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
15906 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
15907 | hard_links=yes |
---|
15908 | $rm conftest* |
---|
15909 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
15910 | touch conftest.a |
---|
15911 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
15912 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
15913 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
15914 | echo "${ECHO_T}$hard_links" >&6 |
---|
15915 | if test "$hard_links" = no; then |
---|
15916 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
15917 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
15918 | need_locks=warn |
---|
15919 | fi |
---|
15920 | else |
---|
15921 | need_locks=no |
---|
15922 | fi |
---|
15923 | |
---|
15924 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
15925 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
15926 | |
---|
15927 | runpath_var= |
---|
15928 | allow_undefined_flag_GCJ= |
---|
15929 | enable_shared_with_static_runtimes_GCJ=no |
---|
15930 | archive_cmds_GCJ= |
---|
15931 | archive_expsym_cmds_GCJ= |
---|
15932 | old_archive_From_new_cmds_GCJ= |
---|
15933 | old_archive_from_expsyms_cmds_GCJ= |
---|
15934 | export_dynamic_flag_spec_GCJ= |
---|
15935 | whole_archive_flag_spec_GCJ= |
---|
15936 | thread_safe_flag_spec_GCJ= |
---|
15937 | hardcode_libdir_flag_spec_GCJ= |
---|
15938 | hardcode_libdir_flag_spec_ld_GCJ= |
---|
15939 | hardcode_libdir_separator_GCJ= |
---|
15940 | hardcode_direct_GCJ=no |
---|
15941 | hardcode_minus_L_GCJ=no |
---|
15942 | hardcode_shlibpath_var_GCJ=unsupported |
---|
15943 | link_all_deplibs_GCJ=unknown |
---|
15944 | hardcode_automatic_GCJ=no |
---|
15945 | module_cmds_GCJ= |
---|
15946 | module_expsym_cmds_GCJ= |
---|
15947 | always_export_symbols_GCJ=no |
---|
15948 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
15949 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
15950 | # included in the symbol list |
---|
15951 | include_expsyms_GCJ= |
---|
15952 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
15953 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
15954 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
15955 | # as well as any symbol that contains `d'. |
---|
15956 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
---|
15957 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
15958 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
15959 | # the symbol is explicitly referenced. Since portable code cannot |
---|
15960 | # rely on this symbol name, it's probably fine to never include it in |
---|
15961 | # preloaded symbol tables. |
---|
15962 | extract_expsyms_cmds= |
---|
15963 | |
---|
15964 | case $host_os in |
---|
15965 | cygwin* | mingw* | pw32*) |
---|
15966 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
15967 | # When not using gcc, we currently assume that we are using |
---|
15968 | # Microsoft Visual C++. |
---|
15969 | if test "$GCC" != yes; then |
---|
15970 | with_gnu_ld=no |
---|
15971 | fi |
---|
15972 | ;; |
---|
15973 | openbsd*) |
---|
15974 | with_gnu_ld=no |
---|
15975 | ;; |
---|
15976 | esac |
---|
15977 | |
---|
15978 | ld_shlibs_GCJ=yes |
---|
15979 | if test "$with_gnu_ld" = yes; then |
---|
15980 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
15981 | wlarc='${wl}' |
---|
15982 | |
---|
15983 | # See if GNU ld supports shared libraries. |
---|
15984 | case $host_os in |
---|
15985 | aix3* | aix4* | aix5*) |
---|
15986 | # On AIX/PPC, the GNU linker is very broken |
---|
15987 | if test "$host_cpu" != ia64; then |
---|
15988 | ld_shlibs_GCJ=no |
---|
15989 | cat <<EOF 1>&2 |
---|
15990 | |
---|
15991 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
15992 | *** to be unable to reliably create shared libraries on AIX. |
---|
15993 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
15994 | *** really care for shared libraries, you may want to modify your PATH |
---|
15995 | *** so that a non-GNU linker is found, and then restart. |
---|
15996 | |
---|
15997 | EOF |
---|
15998 | fi |
---|
15999 | ;; |
---|
16000 | |
---|
16001 | amigaos*) |
---|
16002 | 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)' |
---|
16003 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16004 | hardcode_minus_L_GCJ=yes |
---|
16005 | |
---|
16006 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
16007 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
16008 | # to version 4, is to share data among multiple programs linked |
---|
16009 | # with the same dynamic library. Since this doesn't match the |
---|
16010 | # behavior of shared libraries on other platforms, we can't use |
---|
16011 | # them. |
---|
16012 | ld_shlibs_GCJ=no |
---|
16013 | ;; |
---|
16014 | |
---|
16015 | beos*) |
---|
16016 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16017 | allow_undefined_flag_GCJ=unsupported |
---|
16018 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
16019 | # support --undefined. This deserves some investigation. FIXME |
---|
16020 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16021 | else |
---|
16022 | ld_shlibs_GCJ=no |
---|
16023 | fi |
---|
16024 | ;; |
---|
16025 | |
---|
16026 | cygwin* | mingw* | pw32*) |
---|
16027 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
---|
16028 | # as there is no search path for DLLs. |
---|
16029 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16030 | allow_undefined_flag_GCJ=unsupported |
---|
16031 | always_export_symbols_GCJ=no |
---|
16032 | enable_shared_with_static_runtimes_GCJ=yes |
---|
16033 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
16034 | |
---|
16035 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
16036 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
16037 | # If the export-symbols file already is a .def file (1st line |
---|
16038 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
16039 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
16040 | cp $export_symbols $output_objdir/$soname.def; |
---|
16041 | else |
---|
16042 | echo EXPORTS > $output_objdir/$soname.def; |
---|
16043 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
16044 | fi~ |
---|
16045 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
16046 | else |
---|
16047 | ld_shlibs=no |
---|
16048 | fi |
---|
16049 | ;; |
---|
16050 | |
---|
16051 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
16052 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
16053 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
16054 | wlarc= |
---|
16055 | else |
---|
16056 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16057 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
16058 | fi |
---|
16059 | ;; |
---|
16060 | |
---|
16061 | solaris* | sysv5*) |
---|
16062 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
16063 | ld_shlibs_GCJ=no |
---|
16064 | cat <<EOF 1>&2 |
---|
16065 | |
---|
16066 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
16067 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
16068 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
16069 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
16070 | *** your PATH or compiler configuration so that the native linker is |
---|
16071 | *** used, and then restart. |
---|
16072 | |
---|
16073 | EOF |
---|
16074 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16075 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16076 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
16077 | else |
---|
16078 | ld_shlibs_GCJ=no |
---|
16079 | fi |
---|
16080 | ;; |
---|
16081 | |
---|
16082 | sunos4*) |
---|
16083 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
16084 | wlarc= |
---|
16085 | hardcode_direct_GCJ=yes |
---|
16086 | hardcode_shlibpath_var_GCJ=no |
---|
16087 | ;; |
---|
16088 | |
---|
16089 | linux*) |
---|
16090 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16091 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16092 | archive_cmds_GCJ="$tmp_archive_cmds" |
---|
16093 | supports_anon_versioning=no |
---|
16094 | case `$LD -v 2>/dev/null` in |
---|
16095 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
16096 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
16097 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
16098 | *\ 2.11.*) ;; # other 2.11 versions |
---|
16099 | *) supports_anon_versioning=yes ;; |
---|
16100 | esac |
---|
16101 | if test $supports_anon_versioning = yes; then |
---|
16102 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
16103 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
16104 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
16105 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
16106 | else |
---|
16107 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
---|
16108 | fi |
---|
16109 | link_all_deplibs_GCJ=no |
---|
16110 | else |
---|
16111 | ld_shlibs_GCJ=no |
---|
16112 | fi |
---|
16113 | ;; |
---|
16114 | |
---|
16115 | *) |
---|
16116 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16117 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16118 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
16119 | else |
---|
16120 | ld_shlibs_GCJ=no |
---|
16121 | fi |
---|
16122 | ;; |
---|
16123 | esac |
---|
16124 | |
---|
16125 | if test "$ld_shlibs_GCJ" = yes; then |
---|
16126 | runpath_var=LD_RUN_PATH |
---|
16127 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
---|
16128 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
---|
16129 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
16130 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
16131 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
16132 | else |
---|
16133 | whole_archive_flag_spec_GCJ= |
---|
16134 | fi |
---|
16135 | fi |
---|
16136 | else |
---|
16137 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
16138 | case $host_os in |
---|
16139 | aix3*) |
---|
16140 | allow_undefined_flag_GCJ=unsupported |
---|
16141 | always_export_symbols_GCJ=yes |
---|
16142 | 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' |
---|
16143 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
16144 | # are no directories specified by -L. |
---|
16145 | hardcode_minus_L_GCJ=yes |
---|
16146 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
16147 | # Neither direct hardcoding nor static linking is supported with a |
---|
16148 | # broken collect2. |
---|
16149 | hardcode_direct_GCJ=unsupported |
---|
16150 | fi |
---|
16151 | ;; |
---|
16152 | |
---|
16153 | aix4* | aix5*) |
---|
16154 | if test "$host_cpu" = ia64; then |
---|
16155 | # On IA64, the linker does run time linking by default, so we don't |
---|
16156 | # have to do anything special. |
---|
16157 | aix_use_runtimelinking=no |
---|
16158 | exp_sym_flag='-Bexport' |
---|
16159 | no_entry_flag="" |
---|
16160 | else |
---|
16161 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
16162 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
16163 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
16164 | 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' |
---|
16165 | else |
---|
16166 | 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' |
---|
16167 | fi |
---|
16168 | aix_use_runtimelinking=no |
---|
16169 | |
---|
16170 | # Test if we are trying to use run time linking or normal |
---|
16171 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
16172 | # need to do runtime linking. |
---|
16173 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
16174 | for ld_flag in $LDFLAGS; do |
---|
16175 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
16176 | aix_use_runtimelinking=yes |
---|
16177 | break |
---|
16178 | fi |
---|
16179 | done |
---|
16180 | esac |
---|
16181 | |
---|
16182 | exp_sym_flag='-bexport' |
---|
16183 | no_entry_flag='-bnoentry' |
---|
16184 | fi |
---|
16185 | |
---|
16186 | # When large executables or shared objects are built, AIX ld can |
---|
16187 | # have problems creating the table of contents. If linking a library |
---|
16188 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
16189 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
16190 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
16191 | |
---|
16192 | archive_cmds_GCJ='' |
---|
16193 | hardcode_direct_GCJ=yes |
---|
16194 | hardcode_libdir_separator_GCJ=':' |
---|
16195 | link_all_deplibs_GCJ=yes |
---|
16196 | |
---|
16197 | if test "$GCC" = yes; then |
---|
16198 | case $host_os in aix4.012|aix4.012.*) |
---|
16199 | # We only want to do this on AIX 4.2 and lower, the check |
---|
16200 | # below for broken collect2 doesn't work under 4.3+ |
---|
16201 | collect2name=`${CC} -print-prog-name=collect2` |
---|
16202 | if test -f "$collect2name" && \ |
---|
16203 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
16204 | then |
---|
16205 | # We have reworked collect2 |
---|
16206 | hardcode_direct_GCJ=yes |
---|
16207 | else |
---|
16208 | # We have old collect2 |
---|
16209 | hardcode_direct_GCJ=unsupported |
---|
16210 | # It fails to find uninstalled libraries when the uninstalled |
---|
16211 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
16212 | # to unsupported forces relinking |
---|
16213 | hardcode_minus_L_GCJ=yes |
---|
16214 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16215 | hardcode_libdir_separator_GCJ= |
---|
16216 | fi |
---|
16217 | esac |
---|
16218 | shared_flag='-shared' |
---|
16219 | else |
---|
16220 | # not using gcc |
---|
16221 | if test "$host_cpu" = ia64; then |
---|
16222 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
16223 | # chokes on -Wl,-G. The following line is correct: |
---|
16224 | shared_flag='-G' |
---|
16225 | else |
---|
16226 | if test "$aix_use_runtimelinking" = yes; then |
---|
16227 | shared_flag='${wl}-G' |
---|
16228 | else |
---|
16229 | shared_flag='${wl}-bM:SRE' |
---|
16230 | fi |
---|
16231 | fi |
---|
16232 | fi |
---|
16233 | |
---|
16234 | # It seems that -bexpall does not export symbols beginning with |
---|
16235 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
16236 | always_export_symbols_GCJ=yes |
---|
16237 | if test "$aix_use_runtimelinking" = yes; then |
---|
16238 | # Warning - without using the other runtime loading flags (-brtl), |
---|
16239 | # -berok will link without error, but may produce a broken library. |
---|
16240 | allow_undefined_flag_GCJ='-berok' |
---|
16241 | # Determine the default libpath from the value encoded in an empty executable. |
---|
16242 | cat >conftest.$ac_ext <<_ACEOF |
---|
16243 | /* confdefs.h. */ |
---|
16244 | _ACEOF |
---|
16245 | cat confdefs.h >>conftest.$ac_ext |
---|
16246 | cat >>conftest.$ac_ext <<_ACEOF |
---|
16247 | /* end confdefs.h. */ |
---|
16248 | |
---|
16249 | int |
---|
16250 | main () |
---|
16251 | { |
---|
16252 | |
---|
16253 | ; |
---|
16254 | return 0; |
---|
16255 | } |
---|
16256 | _ACEOF |
---|
16257 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
16258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
16259 | (eval $ac_link) 2>conftest.er1 |
---|
16260 | ac_status=$? |
---|
16261 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
16262 | rm -f conftest.er1 |
---|
16263 | cat conftest.err >&5 |
---|
16264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16265 | (exit $ac_status); } && |
---|
16266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
16267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16268 | (eval $ac_try) 2>&5 |
---|
16269 | ac_status=$? |
---|
16270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16271 | (exit $ac_status); }; } && |
---|
16272 | { ac_try='test -s conftest$ac_exeext' |
---|
16273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16274 | (eval $ac_try) 2>&5 |
---|
16275 | ac_status=$? |
---|
16276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16277 | (exit $ac_status); }; }; then |
---|
16278 | |
---|
16279 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
16280 | }'` |
---|
16281 | # Check for a 64-bit object if we didn't find anything. |
---|
16282 | 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; } |
---|
16283 | }'`; fi |
---|
16284 | else |
---|
16285 | echo "$as_me: failed program was:" >&5 |
---|
16286 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
16287 | |
---|
16288 | fi |
---|
16289 | rm -f conftest.err conftest.$ac_objext \ |
---|
16290 | conftest$ac_exeext conftest.$ac_ext |
---|
16291 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
16292 | |
---|
16293 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
16294 | 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" |
---|
16295 | else |
---|
16296 | if test "$host_cpu" = ia64; then |
---|
16297 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
---|
16298 | allow_undefined_flag_GCJ="-z nodefs" |
---|
16299 | 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" |
---|
16300 | else |
---|
16301 | # Determine the default libpath from the value encoded in an empty executable. |
---|
16302 | cat >conftest.$ac_ext <<_ACEOF |
---|
16303 | /* confdefs.h. */ |
---|
16304 | _ACEOF |
---|
16305 | cat confdefs.h >>conftest.$ac_ext |
---|
16306 | cat >>conftest.$ac_ext <<_ACEOF |
---|
16307 | /* end confdefs.h. */ |
---|
16308 | |
---|
16309 | int |
---|
16310 | main () |
---|
16311 | { |
---|
16312 | |
---|
16313 | ; |
---|
16314 | return 0; |
---|
16315 | } |
---|
16316 | _ACEOF |
---|
16317 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
16318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
16319 | (eval $ac_link) 2>conftest.er1 |
---|
16320 | ac_status=$? |
---|
16321 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
16322 | rm -f conftest.er1 |
---|
16323 | cat conftest.err >&5 |
---|
16324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16325 | (exit $ac_status); } && |
---|
16326 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
16327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16328 | (eval $ac_try) 2>&5 |
---|
16329 | ac_status=$? |
---|
16330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16331 | (exit $ac_status); }; } && |
---|
16332 | { ac_try='test -s conftest$ac_exeext' |
---|
16333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16334 | (eval $ac_try) 2>&5 |
---|
16335 | ac_status=$? |
---|
16336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16337 | (exit $ac_status); }; }; then |
---|
16338 | |
---|
16339 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
16340 | }'` |
---|
16341 | # Check for a 64-bit object if we didn't find anything. |
---|
16342 | 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; } |
---|
16343 | }'`; fi |
---|
16344 | else |
---|
16345 | echo "$as_me: failed program was:" >&5 |
---|
16346 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
16347 | |
---|
16348 | fi |
---|
16349 | rm -f conftest.err conftest.$ac_objext \ |
---|
16350 | conftest$ac_exeext conftest.$ac_ext |
---|
16351 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
16352 | |
---|
16353 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
16354 | # Warning - without using the other run time loading flags, |
---|
16355 | # -berok will link without error, but may produce a broken library. |
---|
16356 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
---|
16357 | allow_undefined_flag_GCJ=' ${wl}-berok' |
---|
16358 | # -bexpall does not export symbols beginning with underscore (_) |
---|
16359 | always_export_symbols_GCJ=yes |
---|
16360 | # Exported symbols can be pulled into shared objects from archives |
---|
16361 | whole_archive_flag_spec_GCJ=' ' |
---|
16362 | archive_cmds_need_lc_GCJ=yes |
---|
16363 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
16364 | 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' |
---|
16365 | fi |
---|
16366 | fi |
---|
16367 | ;; |
---|
16368 | |
---|
16369 | amigaos*) |
---|
16370 | 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)' |
---|
16371 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16372 | hardcode_minus_L_GCJ=yes |
---|
16373 | # see comment about different semantics on the GNU ld section |
---|
16374 | ld_shlibs_GCJ=no |
---|
16375 | ;; |
---|
16376 | |
---|
16377 | bsdi4*) |
---|
16378 | export_dynamic_flag_spec_GCJ=-rdynamic |
---|
16379 | ;; |
---|
16380 | |
---|
16381 | cygwin* | mingw* | pw32*) |
---|
16382 | # When not using gcc, we currently assume that we are using |
---|
16383 | # Microsoft Visual C++. |
---|
16384 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
16385 | # no search path for DLLs. |
---|
16386 | hardcode_libdir_flag_spec_GCJ=' ' |
---|
16387 | allow_undefined_flag_GCJ=unsupported |
---|
16388 | # Tell ltmain to make .lib files, not .a files. |
---|
16389 | libext=lib |
---|
16390 | # Tell ltmain to make .dll files, not .so files. |
---|
16391 | shrext_cmds=".dll" |
---|
16392 | # FIXME: Setting linknames here is a bad hack. |
---|
16393 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
16394 | # The linker will automatically build a .lib file if we build a DLL. |
---|
16395 | old_archive_From_new_cmds_GCJ='true' |
---|
16396 | # FIXME: Should let the user specify the lib program. |
---|
16397 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
16398 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
16399 | enable_shared_with_static_runtimes_GCJ=yes |
---|
16400 | ;; |
---|
16401 | |
---|
16402 | darwin* | rhapsody*) |
---|
16403 | if test "$GXX" = yes ; then |
---|
16404 | archive_cmds_need_lc_GCJ=no |
---|
16405 | case "$host_os" in |
---|
16406 | rhapsody* | darwin1.[012]) |
---|
16407 | allow_undefined_flag_GCJ='-undefined suppress' |
---|
16408 | ;; |
---|
16409 | *) # Darwin 1.3 on |
---|
16410 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
16411 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
---|
16412 | else |
---|
16413 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
16414 | 10.[012]) |
---|
16415 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
---|
16416 | ;; |
---|
16417 | 10.*) |
---|
16418 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
---|
16419 | ;; |
---|
16420 | esac |
---|
16421 | fi |
---|
16422 | ;; |
---|
16423 | esac |
---|
16424 | lt_int_apple_cc_single_mod=no |
---|
16425 | output_verbose_link_cmd='echo' |
---|
16426 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
16427 | lt_int_apple_cc_single_mod=yes |
---|
16428 | fi |
---|
16429 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
16430 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
16431 | else |
---|
16432 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
16433 | fi |
---|
16434 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
16435 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
16436 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
16437 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
16438 | else |
---|
16439 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
16440 | fi |
---|
16441 | 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}' |
---|
16442 | hardcode_direct_GCJ=no |
---|
16443 | hardcode_automatic_GCJ=yes |
---|
16444 | hardcode_shlibpath_var_GCJ=unsupported |
---|
16445 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
---|
16446 | link_all_deplibs_GCJ=yes |
---|
16447 | else |
---|
16448 | ld_shlibs_GCJ=no |
---|
16449 | fi |
---|
16450 | ;; |
---|
16451 | |
---|
16452 | dgux*) |
---|
16453 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16454 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16455 | hardcode_shlibpath_var_GCJ=no |
---|
16456 | ;; |
---|
16457 | |
---|
16458 | freebsd1*) |
---|
16459 | ld_shlibs_GCJ=no |
---|
16460 | ;; |
---|
16461 | |
---|
16462 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
16463 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
16464 | # does not break anything, and helps significantly (at the cost of a little |
---|
16465 | # extra space). |
---|
16466 | freebsd2.2*) |
---|
16467 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
16468 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16469 | hardcode_direct_GCJ=yes |
---|
16470 | hardcode_shlibpath_var_GCJ=no |
---|
16471 | ;; |
---|
16472 | |
---|
16473 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
16474 | freebsd2*) |
---|
16475 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
16476 | hardcode_direct_GCJ=yes |
---|
16477 | hardcode_minus_L_GCJ=yes |
---|
16478 | hardcode_shlibpath_var_GCJ=no |
---|
16479 | ;; |
---|
16480 | |
---|
16481 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
16482 | freebsd* | kfreebsd*-gnu) |
---|
16483 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
16484 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16485 | hardcode_direct_GCJ=yes |
---|
16486 | hardcode_shlibpath_var_GCJ=no |
---|
16487 | ;; |
---|
16488 | |
---|
16489 | hpux9*) |
---|
16490 | if test "$GCC" = yes; then |
---|
16491 | 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' |
---|
16492 | else |
---|
16493 | 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' |
---|
16494 | fi |
---|
16495 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
16496 | hardcode_libdir_separator_GCJ=: |
---|
16497 | hardcode_direct_GCJ=yes |
---|
16498 | |
---|
16499 | # hardcode_minus_L: Not really in the search PATH, |
---|
16500 | # but as the default location of the library. |
---|
16501 | hardcode_minus_L_GCJ=yes |
---|
16502 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
16503 | ;; |
---|
16504 | |
---|
16505 | hpux10* | hpux11*) |
---|
16506 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
16507 | case "$host_cpu" in |
---|
16508 | hppa*64*|ia64*) |
---|
16509 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16510 | ;; |
---|
16511 | *) |
---|
16512 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
16513 | ;; |
---|
16514 | esac |
---|
16515 | else |
---|
16516 | case "$host_cpu" in |
---|
16517 | hppa*64*|ia64*) |
---|
16518 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16519 | ;; |
---|
16520 | *) |
---|
16521 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
16522 | ;; |
---|
16523 | esac |
---|
16524 | fi |
---|
16525 | if test "$with_gnu_ld" = no; then |
---|
16526 | case "$host_cpu" in |
---|
16527 | hppa*64*) |
---|
16528 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
16529 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
---|
16530 | hardcode_libdir_separator_GCJ=: |
---|
16531 | hardcode_direct_GCJ=no |
---|
16532 | hardcode_shlibpath_var_GCJ=no |
---|
16533 | ;; |
---|
16534 | ia64*) |
---|
16535 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16536 | hardcode_direct_GCJ=no |
---|
16537 | hardcode_shlibpath_var_GCJ=no |
---|
16538 | |
---|
16539 | # hardcode_minus_L: Not really in the search PATH, |
---|
16540 | # but as the default location of the library. |
---|
16541 | hardcode_minus_L_GCJ=yes |
---|
16542 | ;; |
---|
16543 | *) |
---|
16544 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
16545 | hardcode_libdir_separator_GCJ=: |
---|
16546 | hardcode_direct_GCJ=yes |
---|
16547 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
16548 | |
---|
16549 | # hardcode_minus_L: Not really in the search PATH, |
---|
16550 | # but as the default location of the library. |
---|
16551 | hardcode_minus_L_GCJ=yes |
---|
16552 | ;; |
---|
16553 | esac |
---|
16554 | fi |
---|
16555 | ;; |
---|
16556 | |
---|
16557 | irix5* | irix6* | nonstopux*) |
---|
16558 | if test "$GCC" = yes; then |
---|
16559 | 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' |
---|
16560 | else |
---|
16561 | 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' |
---|
16562 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
---|
16563 | fi |
---|
16564 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
16565 | hardcode_libdir_separator_GCJ=: |
---|
16566 | link_all_deplibs_GCJ=yes |
---|
16567 | ;; |
---|
16568 | |
---|
16569 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
16570 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
16571 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
16572 | else |
---|
16573 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
16574 | fi |
---|
16575 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16576 | hardcode_direct_GCJ=yes |
---|
16577 | hardcode_shlibpath_var_GCJ=no |
---|
16578 | ;; |
---|
16579 | |
---|
16580 | newsos6) |
---|
16581 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16582 | hardcode_direct_GCJ=yes |
---|
16583 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
16584 | hardcode_libdir_separator_GCJ=: |
---|
16585 | hardcode_shlibpath_var_GCJ=no |
---|
16586 | ;; |
---|
16587 | |
---|
16588 | openbsd*) |
---|
16589 | hardcode_direct_GCJ=yes |
---|
16590 | hardcode_shlibpath_var_GCJ=no |
---|
16591 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
16592 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
16593 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
16594 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
16595 | else |
---|
16596 | case $host_os in |
---|
16597 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
16598 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
16599 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16600 | ;; |
---|
16601 | *) |
---|
16602 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
16603 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
16604 | ;; |
---|
16605 | esac |
---|
16606 | fi |
---|
16607 | ;; |
---|
16608 | |
---|
16609 | os2*) |
---|
16610 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16611 | hardcode_minus_L_GCJ=yes |
---|
16612 | allow_undefined_flag_GCJ=unsupported |
---|
16613 | 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' |
---|
16614 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
16615 | ;; |
---|
16616 | |
---|
16617 | osf3*) |
---|
16618 | if test "$GCC" = yes; then |
---|
16619 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
---|
16620 | 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' |
---|
16621 | else |
---|
16622 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
16623 | 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' |
---|
16624 | fi |
---|
16625 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
16626 | hardcode_libdir_separator_GCJ=: |
---|
16627 | ;; |
---|
16628 | |
---|
16629 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
16630 | if test "$GCC" = yes; then |
---|
16631 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
---|
16632 | 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' |
---|
16633 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
16634 | else |
---|
16635 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
16636 | 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' |
---|
16637 | 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~ |
---|
16638 | $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' |
---|
16639 | |
---|
16640 | # Both c and cxx compiler support -rpath directly |
---|
16641 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
---|
16642 | fi |
---|
16643 | hardcode_libdir_separator_GCJ=: |
---|
16644 | ;; |
---|
16645 | |
---|
16646 | sco3.2v5*) |
---|
16647 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16648 | hardcode_shlibpath_var_GCJ=no |
---|
16649 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
---|
16650 | runpath_var=LD_RUN_PATH |
---|
16651 | hardcode_runpath_var=yes |
---|
16652 | ;; |
---|
16653 | |
---|
16654 | solaris*) |
---|
16655 | no_undefined_flag_GCJ=' -z text' |
---|
16656 | if test "$GCC" = yes; then |
---|
16657 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16658 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
16659 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
16660 | else |
---|
16661 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16662 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
16663 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
16664 | fi |
---|
16665 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16666 | hardcode_shlibpath_var_GCJ=no |
---|
16667 | case $host_os in |
---|
16668 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
16669 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
16670 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
---|
16671 | esac |
---|
16672 | link_all_deplibs_GCJ=yes |
---|
16673 | ;; |
---|
16674 | |
---|
16675 | sunos4*) |
---|
16676 | if test "x$host_vendor" = xsequent; then |
---|
16677 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
16678 | # files that make .init and .fini sections work. |
---|
16679 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16680 | else |
---|
16681 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
16682 | fi |
---|
16683 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16684 | hardcode_direct_GCJ=yes |
---|
16685 | hardcode_minus_L_GCJ=yes |
---|
16686 | hardcode_shlibpath_var_GCJ=no |
---|
16687 | ;; |
---|
16688 | |
---|
16689 | sysv4) |
---|
16690 | case $host_vendor in |
---|
16691 | sni) |
---|
16692 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16693 | hardcode_direct_GCJ=yes # is this really true??? |
---|
16694 | ;; |
---|
16695 | siemens) |
---|
16696 | ## LD is ld it makes a PLAMLIB |
---|
16697 | ## CC just makes a GrossModule. |
---|
16698 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
16699 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
---|
16700 | hardcode_direct_GCJ=no |
---|
16701 | ;; |
---|
16702 | motorola) |
---|
16703 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16704 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
---|
16705 | ;; |
---|
16706 | esac |
---|
16707 | runpath_var='LD_RUN_PATH' |
---|
16708 | hardcode_shlibpath_var_GCJ=no |
---|
16709 | ;; |
---|
16710 | |
---|
16711 | sysv4.3*) |
---|
16712 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16713 | hardcode_shlibpath_var_GCJ=no |
---|
16714 | export_dynamic_flag_spec_GCJ='-Bexport' |
---|
16715 | ;; |
---|
16716 | |
---|
16717 | sysv4*MP*) |
---|
16718 | if test -d /usr/nec; then |
---|
16719 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16720 | hardcode_shlibpath_var_GCJ=no |
---|
16721 | runpath_var=LD_RUN_PATH |
---|
16722 | hardcode_runpath_var=yes |
---|
16723 | ld_shlibs_GCJ=yes |
---|
16724 | fi |
---|
16725 | ;; |
---|
16726 | |
---|
16727 | sysv4.2uw2*) |
---|
16728 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
16729 | hardcode_direct_GCJ=yes |
---|
16730 | hardcode_minus_L_GCJ=no |
---|
16731 | hardcode_shlibpath_var_GCJ=no |
---|
16732 | hardcode_runpath_var=yes |
---|
16733 | runpath_var=LD_RUN_PATH |
---|
16734 | ;; |
---|
16735 | |
---|
16736 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
16737 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
---|
16738 | if test "$GCC" = yes; then |
---|
16739 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16740 | else |
---|
16741 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16742 | fi |
---|
16743 | runpath_var='LD_RUN_PATH' |
---|
16744 | hardcode_shlibpath_var_GCJ=no |
---|
16745 | ;; |
---|
16746 | |
---|
16747 | sysv5*) |
---|
16748 | no_undefined_flag_GCJ=' -z text' |
---|
16749 | # $CC -shared without GNU ld will not create a library from C++ |
---|
16750 | # object files and a static libstdc++, better avoid it by now |
---|
16751 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16752 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
16753 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
16754 | hardcode_libdir_flag_spec_GCJ= |
---|
16755 | hardcode_shlibpath_var_GCJ=no |
---|
16756 | runpath_var='LD_RUN_PATH' |
---|
16757 | ;; |
---|
16758 | |
---|
16759 | uts4*) |
---|
16760 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16761 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16762 | hardcode_shlibpath_var_GCJ=no |
---|
16763 | ;; |
---|
16764 | |
---|
16765 | *) |
---|
16766 | ld_shlibs_GCJ=no |
---|
16767 | ;; |
---|
16768 | esac |
---|
16769 | fi |
---|
16770 | |
---|
16771 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
---|
16772 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
---|
16773 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
---|
16774 | |
---|
16775 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
16776 | if test "$GCC" = yes; then |
---|
16777 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
16778 | fi |
---|
16779 | |
---|
16780 | # |
---|
16781 | # Do we need to explicitly link libc? |
---|
16782 | # |
---|
16783 | case "x$archive_cmds_need_lc_GCJ" in |
---|
16784 | x|xyes) |
---|
16785 | # Assume -lc should be added |
---|
16786 | archive_cmds_need_lc_GCJ=yes |
---|
16787 | |
---|
16788 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
16789 | case $archive_cmds_GCJ in |
---|
16790 | *'~'*) |
---|
16791 | # FIXME: we may have to deal with multi-command sequences. |
---|
16792 | ;; |
---|
16793 | '$CC '*) |
---|
16794 | # Test whether the compiler implicitly links with -lc since on some |
---|
16795 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
16796 | # to ld, don't add -lc before -lgcc. |
---|
16797 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
16798 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
16799 | $rm conftest* |
---|
16800 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
16801 | |
---|
16802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
16803 | (eval $ac_compile) 2>&5 |
---|
16804 | ac_status=$? |
---|
16805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16806 | (exit $ac_status); } 2>conftest.err; then |
---|
16807 | soname=conftest |
---|
16808 | lib=conftest |
---|
16809 | libobjs=conftest.$ac_objext |
---|
16810 | deplibs= |
---|
16811 | wl=$lt_prog_compiler_wl_GCJ |
---|
16812 | compiler_flags=-v |
---|
16813 | linker_flags=-v |
---|
16814 | verstring= |
---|
16815 | output_objdir=. |
---|
16816 | libname=conftest |
---|
16817 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
---|
16818 | allow_undefined_flag_GCJ= |
---|
16819 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
16820 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
16821 | ac_status=$? |
---|
16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16823 | (exit $ac_status); } |
---|
16824 | then |
---|
16825 | archive_cmds_need_lc_GCJ=no |
---|
16826 | else |
---|
16827 | archive_cmds_need_lc_GCJ=yes |
---|
16828 | fi |
---|
16829 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
---|
16830 | else |
---|
16831 | cat conftest.err 1>&5 |
---|
16832 | fi |
---|
16833 | $rm conftest* |
---|
16834 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
---|
16835 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
---|
16836 | ;; |
---|
16837 | esac |
---|
16838 | fi |
---|
16839 | ;; |
---|
16840 | esac |
---|
16841 | |
---|
16842 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
16843 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
16844 | library_names_spec= |
---|
16845 | libname_spec='lib$name' |
---|
16846 | soname_spec= |
---|
16847 | shrext_cmds=".so" |
---|
16848 | postinstall_cmds= |
---|
16849 | postuninstall_cmds= |
---|
16850 | finish_cmds= |
---|
16851 | finish_eval= |
---|
16852 | shlibpath_var= |
---|
16853 | shlibpath_overrides_runpath=unknown |
---|
16854 | version_type=none |
---|
16855 | dynamic_linker="$host_os ld.so" |
---|
16856 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
16857 | if test "$GCC" = yes; then |
---|
16858 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
16859 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
16860 | # if the path contains ";" then we assume it to be the separator |
---|
16861 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
16862 | # assumed that no part of a normal pathname contains ";" but that should |
---|
16863 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
16864 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
16865 | else |
---|
16866 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
16867 | fi |
---|
16868 | else |
---|
16869 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
16870 | fi |
---|
16871 | need_lib_prefix=unknown |
---|
16872 | hardcode_into_libs=no |
---|
16873 | |
---|
16874 | # when you set need_version to no, make sure it does not cause -set_version |
---|
16875 | # flags to be left without arguments |
---|
16876 | need_version=unknown |
---|
16877 | |
---|
16878 | case $host_os in |
---|
16879 | aix3*) |
---|
16880 | version_type=linux |
---|
16881 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
16882 | shlibpath_var=LIBPATH |
---|
16883 | |
---|
16884 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
16885 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16886 | ;; |
---|
16887 | |
---|
16888 | aix4* | aix5*) |
---|
16889 | version_type=linux |
---|
16890 | need_lib_prefix=no |
---|
16891 | need_version=no |
---|
16892 | hardcode_into_libs=yes |
---|
16893 | if test "$host_cpu" = ia64; then |
---|
16894 | # AIX 5 supports IA64 |
---|
16895 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
16896 | shlibpath_var=LD_LIBRARY_PATH |
---|
16897 | else |
---|
16898 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
16899 | # for dependence libraries. The import file would start with |
---|
16900 | # the line `#! .'. This would cause the generated library to |
---|
16901 | # depend on `.', always an invalid library. This was fixed in |
---|
16902 | # development snapshots of GCC prior to 3.0. |
---|
16903 | case $host_os in |
---|
16904 | aix4 | aix4.[01] | aix4.[01].*) |
---|
16905 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
16906 | echo ' yes ' |
---|
16907 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
16908 | : |
---|
16909 | else |
---|
16910 | can_build_shared=no |
---|
16911 | fi |
---|
16912 | ;; |
---|
16913 | esac |
---|
16914 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
16915 | # soname into executable. Probably we can add versioning support to |
---|
16916 | # collect2, so additional links can be useful in future. |
---|
16917 | if test "$aix_use_runtimelinking" = yes; then |
---|
16918 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
16919 | # instead of lib<name>.a to let people know that these are not |
---|
16920 | # typical AIX shared libraries. |
---|
16921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16922 | else |
---|
16923 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
16924 | # and later when we are not doing run time linking. |
---|
16925 | library_names_spec='${libname}${release}.a $libname.a' |
---|
16926 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16927 | fi |
---|
16928 | shlibpath_var=LIBPATH |
---|
16929 | fi |
---|
16930 | ;; |
---|
16931 | |
---|
16932 | amigaos*) |
---|
16933 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
16934 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
16935 | 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' |
---|
16936 | ;; |
---|
16937 | |
---|
16938 | beos*) |
---|
16939 | library_names_spec='${libname}${shared_ext}' |
---|
16940 | dynamic_linker="$host_os ld.so" |
---|
16941 | shlibpath_var=LIBRARY_PATH |
---|
16942 | ;; |
---|
16943 | |
---|
16944 | bsdi4*) |
---|
16945 | version_type=linux |
---|
16946 | need_version=no |
---|
16947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16948 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16949 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
16950 | shlibpath_var=LD_LIBRARY_PATH |
---|
16951 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
16952 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
16953 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
16954 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
16955 | # libtool to hard-code these into programs |
---|
16956 | ;; |
---|
16957 | |
---|
16958 | cygwin* | mingw* | pw32*) |
---|
16959 | version_type=windows |
---|
16960 | shrext_cmds=".dll" |
---|
16961 | need_version=no |
---|
16962 | need_lib_prefix=no |
---|
16963 | |
---|
16964 | case $GCC,$host_os in |
---|
16965 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
16966 | library_names_spec='$libname.dll.a' |
---|
16967 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
16968 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
16969 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
16970 | dldir=$destdir/`dirname \$dlpath`~ |
---|
16971 | test -d \$dldir || mkdir -p \$dldir~ |
---|
16972 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
16973 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
16974 | dlpath=$dir/\$dldll~ |
---|
16975 | $rm \$dlpath' |
---|
16976 | shlibpath_overrides_runpath=yes |
---|
16977 | |
---|
16978 | case $host_os in |
---|
16979 | cygwin*) |
---|
16980 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
16981 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16982 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
16983 | ;; |
---|
16984 | mingw*) |
---|
16985 | # MinGW DLLs use traditional 'lib' prefix |
---|
16986 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16987 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
16988 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
16989 | # It is most probably a Windows format PATH printed by |
---|
16990 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
16991 | # path with ; separators, and with drive letters. We can handle the |
---|
16992 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
16993 | # especially as we might pass files found there to a mingw objdump, |
---|
16994 | # which wouldn't understand a cygwinified path. Ahh. |
---|
16995 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
16996 | else |
---|
16997 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
16998 | fi |
---|
16999 | ;; |
---|
17000 | pw32*) |
---|
17001 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
17002 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
---|
17003 | ;; |
---|
17004 | esac |
---|
17005 | ;; |
---|
17006 | |
---|
17007 | *) |
---|
17008 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
17009 | ;; |
---|
17010 | esac |
---|
17011 | dynamic_linker='Win32 ld.exe' |
---|
17012 | # FIXME: first we should search . and the directory the executable is in |
---|
17013 | shlibpath_var=PATH |
---|
17014 | ;; |
---|
17015 | |
---|
17016 | darwin* | rhapsody*) |
---|
17017 | dynamic_linker="$host_os dyld" |
---|
17018 | version_type=darwin |
---|
17019 | need_lib_prefix=no |
---|
17020 | need_version=no |
---|
17021 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
17022 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
17023 | shlibpath_overrides_runpath=yes |
---|
17024 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
17025 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
17026 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
17027 | if test "$GCC" = yes; then |
---|
17028 | 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"` |
---|
17029 | else |
---|
17030 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
17031 | fi |
---|
17032 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
17033 | ;; |
---|
17034 | |
---|
17035 | dgux*) |
---|
17036 | version_type=linux |
---|
17037 | need_lib_prefix=no |
---|
17038 | need_version=no |
---|
17039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
17040 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17041 | shlibpath_var=LD_LIBRARY_PATH |
---|
17042 | ;; |
---|
17043 | |
---|
17044 | freebsd1*) |
---|
17045 | dynamic_linker=no |
---|
17046 | ;; |
---|
17047 | |
---|
17048 | kfreebsd*-gnu) |
---|
17049 | version_type=linux |
---|
17050 | need_lib_prefix=no |
---|
17051 | need_version=no |
---|
17052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17053 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17054 | shlibpath_var=LD_LIBRARY_PATH |
---|
17055 | shlibpath_overrides_runpath=no |
---|
17056 | hardcode_into_libs=yes |
---|
17057 | dynamic_linker='GNU ld.so' |
---|
17058 | ;; |
---|
17059 | |
---|
17060 | freebsd*) |
---|
17061 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
17062 | version_type=freebsd-$objformat |
---|
17063 | case $version_type in |
---|
17064 | freebsd-elf*) |
---|
17065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
17066 | need_version=no |
---|
17067 | need_lib_prefix=no |
---|
17068 | ;; |
---|
17069 | freebsd-*) |
---|
17070 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
17071 | need_version=yes |
---|
17072 | ;; |
---|
17073 | esac |
---|
17074 | shlibpath_var=LD_LIBRARY_PATH |
---|
17075 | case $host_os in |
---|
17076 | freebsd2*) |
---|
17077 | shlibpath_overrides_runpath=yes |
---|
17078 | ;; |
---|
17079 | freebsd3.01* | freebsdelf3.01*) |
---|
17080 | shlibpath_overrides_runpath=yes |
---|
17081 | hardcode_into_libs=yes |
---|
17082 | ;; |
---|
17083 | *) # from 3.2 on |
---|
17084 | shlibpath_overrides_runpath=no |
---|
17085 | hardcode_into_libs=yes |
---|
17086 | ;; |
---|
17087 | esac |
---|
17088 | ;; |
---|
17089 | |
---|
17090 | gnu*) |
---|
17091 | version_type=linux |
---|
17092 | need_lib_prefix=no |
---|
17093 | need_version=no |
---|
17094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
17095 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17096 | shlibpath_var=LD_LIBRARY_PATH |
---|
17097 | hardcode_into_libs=yes |
---|
17098 | ;; |
---|
17099 | |
---|
17100 | hpux9* | hpux10* | hpux11*) |
---|
17101 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
17102 | # link against other versions. |
---|
17103 | version_type=sunos |
---|
17104 | need_lib_prefix=no |
---|
17105 | need_version=no |
---|
17106 | case "$host_cpu" in |
---|
17107 | ia64*) |
---|
17108 | shrext_cmds='.so' |
---|
17109 | hardcode_into_libs=yes |
---|
17110 | dynamic_linker="$host_os dld.so" |
---|
17111 | shlibpath_var=LD_LIBRARY_PATH |
---|
17112 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
17113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17114 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17115 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
17116 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
17117 | else |
---|
17118 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
17119 | fi |
---|
17120 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
17121 | ;; |
---|
17122 | hppa*64*) |
---|
17123 | shrext_cmds='.sl' |
---|
17124 | hardcode_into_libs=yes |
---|
17125 | dynamic_linker="$host_os dld.sl" |
---|
17126 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
17127 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
17128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17129 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17130 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
17131 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
17132 | ;; |
---|
17133 | *) |
---|
17134 | shrext_cmds='.sl' |
---|
17135 | dynamic_linker="$host_os dld.sl" |
---|
17136 | shlibpath_var=SHLIB_PATH |
---|
17137 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
17138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17139 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17140 | ;; |
---|
17141 | esac |
---|
17142 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
17143 | postinstall_cmds='chmod 555 $lib' |
---|
17144 | ;; |
---|
17145 | |
---|
17146 | irix5* | irix6* | nonstopux*) |
---|
17147 | case $host_os in |
---|
17148 | nonstopux*) version_type=nonstopux ;; |
---|
17149 | *) |
---|
17150 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
17151 | version_type=linux |
---|
17152 | else |
---|
17153 | version_type=irix |
---|
17154 | fi ;; |
---|
17155 | esac |
---|
17156 | need_lib_prefix=no |
---|
17157 | need_version=no |
---|
17158 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
17160 | case $host_os in |
---|
17161 | irix5* | nonstopux*) |
---|
17162 | libsuff= shlibsuff= |
---|
17163 | ;; |
---|
17164 | *) |
---|
17165 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
17166 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
17167 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
17168 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
17169 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
17170 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
17171 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
17172 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
17173 | esac |
---|
17174 | ;; |
---|
17175 | esac |
---|
17176 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
17177 | shlibpath_overrides_runpath=no |
---|
17178 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
17179 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
17180 | hardcode_into_libs=yes |
---|
17181 | ;; |
---|
17182 | |
---|
17183 | # No shared lib support for Linux oldld, aout, or coff. |
---|
17184 | linux*oldld* | linux*aout* | linux*coff*) |
---|
17185 | dynamic_linker=no |
---|
17186 | ;; |
---|
17187 | |
---|
17188 | # This must be Linux ELF. |
---|
17189 | linux*) |
---|
17190 | version_type=linux |
---|
17191 | need_lib_prefix=no |
---|
17192 | need_version=no |
---|
17193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17194 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17195 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
17196 | shlibpath_var=LD_LIBRARY_PATH |
---|
17197 | shlibpath_overrides_runpath=no |
---|
17198 | # This implies no fast_install, which is unacceptable. |
---|
17199 | # Some rework will be needed to allow for fast_install |
---|
17200 | # before this can be enabled. |
---|
17201 | hardcode_into_libs=yes |
---|
17202 | |
---|
17203 | # Append ld.so.conf contents to the search path |
---|
17204 | if test -f /etc/ld.so.conf; then |
---|
17205 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
---|
17206 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
17207 | fi |
---|
17208 | |
---|
17209 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
17210 | # powerpc, because MkLinux only supported shared libraries with the |
---|
17211 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
17212 | # most powerpc-linux boxes support dynamic linking these days and |
---|
17213 | # people can always --disable-shared, the test was removed, and we |
---|
17214 | # assume the GNU/Linux dynamic linker is in use. |
---|
17215 | dynamic_linker='GNU/Linux ld.so' |
---|
17216 | ;; |
---|
17217 | |
---|
17218 | netbsdelf*-gnu) |
---|
17219 | version_type=linux |
---|
17220 | need_lib_prefix=no |
---|
17221 | need_version=no |
---|
17222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17223 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17224 | shlibpath_var=LD_LIBRARY_PATH |
---|
17225 | shlibpath_overrides_runpath=no |
---|
17226 | hardcode_into_libs=yes |
---|
17227 | dynamic_linker='NetBSD ld.elf_so' |
---|
17228 | ;; |
---|
17229 | |
---|
17230 | knetbsd*-gnu) |
---|
17231 | version_type=linux |
---|
17232 | need_lib_prefix=no |
---|
17233 | need_version=no |
---|
17234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17235 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17236 | shlibpath_var=LD_LIBRARY_PATH |
---|
17237 | shlibpath_overrides_runpath=no |
---|
17238 | hardcode_into_libs=yes |
---|
17239 | dynamic_linker='GNU ld.so' |
---|
17240 | ;; |
---|
17241 | |
---|
17242 | netbsd*) |
---|
17243 | version_type=sunos |
---|
17244 | need_lib_prefix=no |
---|
17245 | need_version=no |
---|
17246 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
17247 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
17248 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
17249 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
17250 | else |
---|
17251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17252 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17253 | dynamic_linker='NetBSD ld.elf_so' |
---|
17254 | fi |
---|
17255 | shlibpath_var=LD_LIBRARY_PATH |
---|
17256 | shlibpath_overrides_runpath=yes |
---|
17257 | hardcode_into_libs=yes |
---|
17258 | ;; |
---|
17259 | |
---|
17260 | newsos6) |
---|
17261 | version_type=linux |
---|
17262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17263 | shlibpath_var=LD_LIBRARY_PATH |
---|
17264 | shlibpath_overrides_runpath=yes |
---|
17265 | ;; |
---|
17266 | |
---|
17267 | nto-qnx*) |
---|
17268 | version_type=linux |
---|
17269 | need_lib_prefix=no |
---|
17270 | need_version=no |
---|
17271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17272 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17273 | shlibpath_var=LD_LIBRARY_PATH |
---|
17274 | shlibpath_overrides_runpath=yes |
---|
17275 | ;; |
---|
17276 | |
---|
17277 | openbsd*) |
---|
17278 | version_type=sunos |
---|
17279 | need_lib_prefix=no |
---|
17280 | need_version=yes |
---|
17281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
17282 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
17283 | shlibpath_var=LD_LIBRARY_PATH |
---|
17284 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
17285 | case $host_os in |
---|
17286 | openbsd2.[89] | openbsd2.[89].*) |
---|
17287 | shlibpath_overrides_runpath=no |
---|
17288 | ;; |
---|
17289 | *) |
---|
17290 | shlibpath_overrides_runpath=yes |
---|
17291 | ;; |
---|
17292 | esac |
---|
17293 | else |
---|
17294 | shlibpath_overrides_runpath=yes |
---|
17295 | fi |
---|
17296 | ;; |
---|
17297 | |
---|
17298 | os2*) |
---|
17299 | libname_spec='$name' |
---|
17300 | shrext_cmds=".dll" |
---|
17301 | need_lib_prefix=no |
---|
17302 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
17303 | dynamic_linker='OS/2 ld.exe' |
---|
17304 | shlibpath_var=LIBPATH |
---|
17305 | ;; |
---|
17306 | |
---|
17307 | osf3* | osf4* | osf5*) |
---|
17308 | version_type=osf |
---|
17309 | need_lib_prefix=no |
---|
17310 | need_version=no |
---|
17311 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17313 | shlibpath_var=LD_LIBRARY_PATH |
---|
17314 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
17315 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
17316 | ;; |
---|
17317 | |
---|
17318 | sco3.2v5*) |
---|
17319 | version_type=osf |
---|
17320 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17322 | shlibpath_var=LD_LIBRARY_PATH |
---|
17323 | ;; |
---|
17324 | |
---|
17325 | solaris*) |
---|
17326 | version_type=linux |
---|
17327 | need_lib_prefix=no |
---|
17328 | need_version=no |
---|
17329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17330 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17331 | shlibpath_var=LD_LIBRARY_PATH |
---|
17332 | shlibpath_overrides_runpath=yes |
---|
17333 | hardcode_into_libs=yes |
---|
17334 | # ldd complains unless libraries are executable |
---|
17335 | postinstall_cmds='chmod +x $lib' |
---|
17336 | ;; |
---|
17337 | |
---|
17338 | sunos4*) |
---|
17339 | version_type=sunos |
---|
17340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
17341 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
17342 | shlibpath_var=LD_LIBRARY_PATH |
---|
17343 | shlibpath_overrides_runpath=yes |
---|
17344 | if test "$with_gnu_ld" = yes; then |
---|
17345 | need_lib_prefix=no |
---|
17346 | fi |
---|
17347 | need_version=yes |
---|
17348 | ;; |
---|
17349 | |
---|
17350 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
17351 | version_type=linux |
---|
17352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17353 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17354 | shlibpath_var=LD_LIBRARY_PATH |
---|
17355 | case $host_vendor in |
---|
17356 | sni) |
---|
17357 | shlibpath_overrides_runpath=no |
---|
17358 | need_lib_prefix=no |
---|
17359 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
17360 | runpath_var=LD_RUN_PATH |
---|
17361 | ;; |
---|
17362 | siemens) |
---|
17363 | need_lib_prefix=no |
---|
17364 | ;; |
---|
17365 | motorola) |
---|
17366 | need_lib_prefix=no |
---|
17367 | need_version=no |
---|
17368 | shlibpath_overrides_runpath=no |
---|
17369 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
17370 | ;; |
---|
17371 | esac |
---|
17372 | ;; |
---|
17373 | |
---|
17374 | sysv4*MP*) |
---|
17375 | if test -d /usr/nec ;then |
---|
17376 | version_type=linux |
---|
17377 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
17378 | soname_spec='$libname${shared_ext}.$major' |
---|
17379 | shlibpath_var=LD_LIBRARY_PATH |
---|
17380 | fi |
---|
17381 | ;; |
---|
17382 | |
---|
17383 | uts4*) |
---|
17384 | version_type=linux |
---|
17385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17386 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17387 | shlibpath_var=LD_LIBRARY_PATH |
---|
17388 | ;; |
---|
17389 | |
---|
17390 | *) |
---|
17391 | dynamic_linker=no |
---|
17392 | ;; |
---|
17393 | esac |
---|
17394 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
17395 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
17396 | test "$dynamic_linker" = no && can_build_shared=no |
---|
17397 | |
---|
17398 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
17399 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
17400 | hardcode_action_GCJ= |
---|
17401 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
---|
17402 | test -n "$runpath_var GCJ" || \ |
---|
17403 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
---|
17404 | |
---|
17405 | # We can hardcode non-existant directories. |
---|
17406 | if test "$hardcode_direct_GCJ" != no && |
---|
17407 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
17408 | # have to relink, otherwise we might link with an installed library |
---|
17409 | # when we should be linking with a yet-to-be-installed one |
---|
17410 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
---|
17411 | test "$hardcode_minus_L_GCJ" != no; then |
---|
17412 | # Linking always hardcodes the temporary library directory. |
---|
17413 | hardcode_action_GCJ=relink |
---|
17414 | else |
---|
17415 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
17416 | hardcode_action_GCJ=immediate |
---|
17417 | fi |
---|
17418 | else |
---|
17419 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
17420 | # directories. |
---|
17421 | hardcode_action_GCJ=unsupported |
---|
17422 | fi |
---|
17423 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
---|
17424 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
---|
17425 | |
---|
17426 | if test "$hardcode_action_GCJ" = relink; then |
---|
17427 | # Fast installation is not supported |
---|
17428 | enable_fast_install=no |
---|
17429 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
17430 | test "$enable_shared" = no; then |
---|
17431 | # Fast installation is not necessary |
---|
17432 | enable_fast_install=needless |
---|
17433 | fi |
---|
17434 | |
---|
17435 | striplib= |
---|
17436 | old_striplib= |
---|
17437 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
17438 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
17439 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
17440 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
17441 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
17442 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
17443 | echo "${ECHO_T}yes" >&6 |
---|
17444 | else |
---|
17445 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
17446 | case $host_os in |
---|
17447 | darwin*) |
---|
17448 | if test -n "$STRIP" ; then |
---|
17449 | striplib="$STRIP -x" |
---|
17450 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
17451 | echo "${ECHO_T}yes" >&6 |
---|
17452 | else |
---|
17453 | echo "$as_me:$LINENO: result: no" >&5 |
---|
17454 | echo "${ECHO_T}no" >&6 |
---|
17455 | fi |
---|
17456 | ;; |
---|
17457 | *) |
---|
17458 | echo "$as_me:$LINENO: result: no" >&5 |
---|
17459 | echo "${ECHO_T}no" >&6 |
---|
17460 | ;; |
---|
17461 | esac |
---|
17462 | fi |
---|
17463 | |
---|
17464 | if test "x$enable_dlopen" != xyes; then |
---|
17465 | enable_dlopen=unknown |
---|
17466 | enable_dlopen_self=unknown |
---|
17467 | enable_dlopen_self_static=unknown |
---|
17468 | else |
---|
17469 | lt_cv_dlopen=no |
---|
17470 | lt_cv_dlopen_libs= |
---|
17471 | |
---|
17472 | case $host_os in |
---|
17473 | beos*) |
---|
17474 | lt_cv_dlopen="load_add_on" |
---|
17475 | lt_cv_dlopen_libs= |
---|
17476 | lt_cv_dlopen_self=yes |
---|
17477 | ;; |
---|
17478 | |
---|
17479 | mingw* | pw32*) |
---|
17480 | lt_cv_dlopen="LoadLibrary" |
---|
17481 | lt_cv_dlopen_libs= |
---|
17482 | ;; |
---|
17483 | |
---|
17484 | cygwin*) |
---|
17485 | lt_cv_dlopen="dlopen" |
---|
17486 | lt_cv_dlopen_libs= |
---|
17487 | ;; |
---|
17488 | |
---|
17489 | darwin*) |
---|
17490 | # if libdl is installed we need to link against it |
---|
17491 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
17492 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
17493 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
17494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17495 | else |
---|
17496 | ac_check_lib_save_LIBS=$LIBS |
---|
17497 | LIBS="-ldl $LIBS" |
---|
17498 | cat >conftest.$ac_ext <<_ACEOF |
---|
17499 | /* confdefs.h. */ |
---|
17500 | _ACEOF |
---|
17501 | cat confdefs.h >>conftest.$ac_ext |
---|
17502 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17503 | /* end confdefs.h. */ |
---|
17504 | |
---|
17505 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17506 | #ifdef __cplusplus |
---|
17507 | extern "C" |
---|
17508 | #endif |
---|
17509 | /* We use char because int might match the return type of a gcc2 |
---|
17510 | builtin and then its argument prototype would still apply. */ |
---|
17511 | char dlopen (); |
---|
17512 | int |
---|
17513 | main () |
---|
17514 | { |
---|
17515 | dlopen (); |
---|
17516 | ; |
---|
17517 | return 0; |
---|
17518 | } |
---|
17519 | _ACEOF |
---|
17520 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17522 | (eval $ac_link) 2>conftest.er1 |
---|
17523 | ac_status=$? |
---|
17524 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17525 | rm -f conftest.er1 |
---|
17526 | cat conftest.err >&5 |
---|
17527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17528 | (exit $ac_status); } && |
---|
17529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17531 | (eval $ac_try) 2>&5 |
---|
17532 | ac_status=$? |
---|
17533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17534 | (exit $ac_status); }; } && |
---|
17535 | { ac_try='test -s conftest$ac_exeext' |
---|
17536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17537 | (eval $ac_try) 2>&5 |
---|
17538 | ac_status=$? |
---|
17539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17540 | (exit $ac_status); }; }; then |
---|
17541 | ac_cv_lib_dl_dlopen=yes |
---|
17542 | else |
---|
17543 | echo "$as_me: failed program was:" >&5 |
---|
17544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17545 | |
---|
17546 | ac_cv_lib_dl_dlopen=no |
---|
17547 | fi |
---|
17548 | rm -f conftest.err conftest.$ac_objext \ |
---|
17549 | conftest$ac_exeext conftest.$ac_ext |
---|
17550 | LIBS=$ac_check_lib_save_LIBS |
---|
17551 | fi |
---|
17552 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
17553 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
17554 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
17555 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
17556 | else |
---|
17557 | |
---|
17558 | lt_cv_dlopen="dyld" |
---|
17559 | lt_cv_dlopen_libs= |
---|
17560 | lt_cv_dlopen_self=yes |
---|
17561 | |
---|
17562 | fi |
---|
17563 | |
---|
17564 | ;; |
---|
17565 | |
---|
17566 | *) |
---|
17567 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
17568 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
17569 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
17570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17571 | else |
---|
17572 | cat >conftest.$ac_ext <<_ACEOF |
---|
17573 | /* confdefs.h. */ |
---|
17574 | _ACEOF |
---|
17575 | cat confdefs.h >>conftest.$ac_ext |
---|
17576 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17577 | /* end confdefs.h. */ |
---|
17578 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
17579 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
17580 | #define shl_load innocuous_shl_load |
---|
17581 | |
---|
17582 | /* System header to define __stub macros and hopefully few prototypes, |
---|
17583 | which can conflict with char shl_load (); below. |
---|
17584 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
17585 | <limits.h> exists even on freestanding compilers. */ |
---|
17586 | |
---|
17587 | #ifdef __STDC__ |
---|
17588 | # include <limits.h> |
---|
17589 | #else |
---|
17590 | # include <assert.h> |
---|
17591 | #endif |
---|
17592 | |
---|
17593 | #undef shl_load |
---|
17594 | |
---|
17595 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17596 | #ifdef __cplusplus |
---|
17597 | extern "C" |
---|
17598 | { |
---|
17599 | #endif |
---|
17600 | /* We use char because int might match the return type of a gcc2 |
---|
17601 | builtin and then its argument prototype would still apply. */ |
---|
17602 | char shl_load (); |
---|
17603 | /* The GNU C library defines this for functions which it implements |
---|
17604 | to always fail with ENOSYS. Some functions are actually named |
---|
17605 | something starting with __ and the normal name is an alias. */ |
---|
17606 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
17607 | choke me |
---|
17608 | #else |
---|
17609 | char (*f) () = shl_load; |
---|
17610 | #endif |
---|
17611 | #ifdef __cplusplus |
---|
17612 | } |
---|
17613 | #endif |
---|
17614 | |
---|
17615 | int |
---|
17616 | main () |
---|
17617 | { |
---|
17618 | return f != shl_load; |
---|
17619 | ; |
---|
17620 | return 0; |
---|
17621 | } |
---|
17622 | _ACEOF |
---|
17623 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17625 | (eval $ac_link) 2>conftest.er1 |
---|
17626 | ac_status=$? |
---|
17627 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17628 | rm -f conftest.er1 |
---|
17629 | cat conftest.err >&5 |
---|
17630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17631 | (exit $ac_status); } && |
---|
17632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17634 | (eval $ac_try) 2>&5 |
---|
17635 | ac_status=$? |
---|
17636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17637 | (exit $ac_status); }; } && |
---|
17638 | { ac_try='test -s conftest$ac_exeext' |
---|
17639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17640 | (eval $ac_try) 2>&5 |
---|
17641 | ac_status=$? |
---|
17642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17643 | (exit $ac_status); }; }; then |
---|
17644 | ac_cv_func_shl_load=yes |
---|
17645 | else |
---|
17646 | echo "$as_me: failed program was:" >&5 |
---|
17647 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17648 | |
---|
17649 | ac_cv_func_shl_load=no |
---|
17650 | fi |
---|
17651 | rm -f conftest.err conftest.$ac_objext \ |
---|
17652 | conftest$ac_exeext conftest.$ac_ext |
---|
17653 | fi |
---|
17654 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
17655 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
17656 | if test $ac_cv_func_shl_load = yes; then |
---|
17657 | lt_cv_dlopen="shl_load" |
---|
17658 | else |
---|
17659 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
17660 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
17661 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
17662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17663 | else |
---|
17664 | ac_check_lib_save_LIBS=$LIBS |
---|
17665 | LIBS="-ldld $LIBS" |
---|
17666 | cat >conftest.$ac_ext <<_ACEOF |
---|
17667 | /* confdefs.h. */ |
---|
17668 | _ACEOF |
---|
17669 | cat confdefs.h >>conftest.$ac_ext |
---|
17670 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17671 | /* end confdefs.h. */ |
---|
17672 | |
---|
17673 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17674 | #ifdef __cplusplus |
---|
17675 | extern "C" |
---|
17676 | #endif |
---|
17677 | /* We use char because int might match the return type of a gcc2 |
---|
17678 | builtin and then its argument prototype would still apply. */ |
---|
17679 | char shl_load (); |
---|
17680 | int |
---|
17681 | main () |
---|
17682 | { |
---|
17683 | shl_load (); |
---|
17684 | ; |
---|
17685 | return 0; |
---|
17686 | } |
---|
17687 | _ACEOF |
---|
17688 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17690 | (eval $ac_link) 2>conftest.er1 |
---|
17691 | ac_status=$? |
---|
17692 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17693 | rm -f conftest.er1 |
---|
17694 | cat conftest.err >&5 |
---|
17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17696 | (exit $ac_status); } && |
---|
17697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17699 | (eval $ac_try) 2>&5 |
---|
17700 | ac_status=$? |
---|
17701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17702 | (exit $ac_status); }; } && |
---|
17703 | { ac_try='test -s conftest$ac_exeext' |
---|
17704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17705 | (eval $ac_try) 2>&5 |
---|
17706 | ac_status=$? |
---|
17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17708 | (exit $ac_status); }; }; then |
---|
17709 | ac_cv_lib_dld_shl_load=yes |
---|
17710 | else |
---|
17711 | echo "$as_me: failed program was:" >&5 |
---|
17712 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17713 | |
---|
17714 | ac_cv_lib_dld_shl_load=no |
---|
17715 | fi |
---|
17716 | rm -f conftest.err conftest.$ac_objext \ |
---|
17717 | conftest$ac_exeext conftest.$ac_ext |
---|
17718 | LIBS=$ac_check_lib_save_LIBS |
---|
17719 | fi |
---|
17720 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
17721 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
17722 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
17723 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
17724 | else |
---|
17725 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
17726 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
17727 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
17728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17729 | else |
---|
17730 | cat >conftest.$ac_ext <<_ACEOF |
---|
17731 | /* confdefs.h. */ |
---|
17732 | _ACEOF |
---|
17733 | cat confdefs.h >>conftest.$ac_ext |
---|
17734 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17735 | /* end confdefs.h. */ |
---|
17736 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
17737 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
17738 | #define dlopen innocuous_dlopen |
---|
17739 | |
---|
17740 | /* System header to define __stub macros and hopefully few prototypes, |
---|
17741 | which can conflict with char dlopen (); below. |
---|
17742 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
17743 | <limits.h> exists even on freestanding compilers. */ |
---|
17744 | |
---|
17745 | #ifdef __STDC__ |
---|
17746 | # include <limits.h> |
---|
17747 | #else |
---|
17748 | # include <assert.h> |
---|
17749 | #endif |
---|
17750 | |
---|
17751 | #undef dlopen |
---|
17752 | |
---|
17753 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17754 | #ifdef __cplusplus |
---|
17755 | extern "C" |
---|
17756 | { |
---|
17757 | #endif |
---|
17758 | /* We use char because int might match the return type of a gcc2 |
---|
17759 | builtin and then its argument prototype would still apply. */ |
---|
17760 | char dlopen (); |
---|
17761 | /* The GNU C library defines this for functions which it implements |
---|
17762 | to always fail with ENOSYS. Some functions are actually named |
---|
17763 | something starting with __ and the normal name is an alias. */ |
---|
17764 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
17765 | choke me |
---|
17766 | #else |
---|
17767 | char (*f) () = dlopen; |
---|
17768 | #endif |
---|
17769 | #ifdef __cplusplus |
---|
17770 | } |
---|
17771 | #endif |
---|
17772 | |
---|
17773 | int |
---|
17774 | main () |
---|
17775 | { |
---|
17776 | return f != dlopen; |
---|
17777 | ; |
---|
17778 | return 0; |
---|
17779 | } |
---|
17780 | _ACEOF |
---|
17781 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17783 | (eval $ac_link) 2>conftest.er1 |
---|
17784 | ac_status=$? |
---|
17785 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17786 | rm -f conftest.er1 |
---|
17787 | cat conftest.err >&5 |
---|
17788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17789 | (exit $ac_status); } && |
---|
17790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17792 | (eval $ac_try) 2>&5 |
---|
17793 | ac_status=$? |
---|
17794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17795 | (exit $ac_status); }; } && |
---|
17796 | { ac_try='test -s conftest$ac_exeext' |
---|
17797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17798 | (eval $ac_try) 2>&5 |
---|
17799 | ac_status=$? |
---|
17800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17801 | (exit $ac_status); }; }; then |
---|
17802 | ac_cv_func_dlopen=yes |
---|
17803 | else |
---|
17804 | echo "$as_me: failed program was:" >&5 |
---|
17805 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17806 | |
---|
17807 | ac_cv_func_dlopen=no |
---|
17808 | fi |
---|
17809 | rm -f conftest.err conftest.$ac_objext \ |
---|
17810 | conftest$ac_exeext conftest.$ac_ext |
---|
17811 | fi |
---|
17812 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
17813 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
17814 | if test $ac_cv_func_dlopen = yes; then |
---|
17815 | lt_cv_dlopen="dlopen" |
---|
17816 | else |
---|
17817 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
17818 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
17819 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
17820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17821 | else |
---|
17822 | ac_check_lib_save_LIBS=$LIBS |
---|
17823 | LIBS="-ldl $LIBS" |
---|
17824 | cat >conftest.$ac_ext <<_ACEOF |
---|
17825 | /* confdefs.h. */ |
---|
17826 | _ACEOF |
---|
17827 | cat confdefs.h >>conftest.$ac_ext |
---|
17828 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17829 | /* end confdefs.h. */ |
---|
17830 | |
---|
17831 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17832 | #ifdef __cplusplus |
---|
17833 | extern "C" |
---|
17834 | #endif |
---|
17835 | /* We use char because int might match the return type of a gcc2 |
---|
17836 | builtin and then its argument prototype would still apply. */ |
---|
17837 | char dlopen (); |
---|
17838 | int |
---|
17839 | main () |
---|
17840 | { |
---|
17841 | dlopen (); |
---|
17842 | ; |
---|
17843 | return 0; |
---|
17844 | } |
---|
17845 | _ACEOF |
---|
17846 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17848 | (eval $ac_link) 2>conftest.er1 |
---|
17849 | ac_status=$? |
---|
17850 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17851 | rm -f conftest.er1 |
---|
17852 | cat conftest.err >&5 |
---|
17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17854 | (exit $ac_status); } && |
---|
17855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17857 | (eval $ac_try) 2>&5 |
---|
17858 | ac_status=$? |
---|
17859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17860 | (exit $ac_status); }; } && |
---|
17861 | { ac_try='test -s conftest$ac_exeext' |
---|
17862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17863 | (eval $ac_try) 2>&5 |
---|
17864 | ac_status=$? |
---|
17865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17866 | (exit $ac_status); }; }; then |
---|
17867 | ac_cv_lib_dl_dlopen=yes |
---|
17868 | else |
---|
17869 | echo "$as_me: failed program was:" >&5 |
---|
17870 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17871 | |
---|
17872 | ac_cv_lib_dl_dlopen=no |
---|
17873 | fi |
---|
17874 | rm -f conftest.err conftest.$ac_objext \ |
---|
17875 | conftest$ac_exeext conftest.$ac_ext |
---|
17876 | LIBS=$ac_check_lib_save_LIBS |
---|
17877 | fi |
---|
17878 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
17879 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
17880 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
17881 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
17882 | else |
---|
17883 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
17884 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
17885 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
17886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17887 | else |
---|
17888 | ac_check_lib_save_LIBS=$LIBS |
---|
17889 | LIBS="-lsvld $LIBS" |
---|
17890 | cat >conftest.$ac_ext <<_ACEOF |
---|
17891 | /* confdefs.h. */ |
---|
17892 | _ACEOF |
---|
17893 | cat confdefs.h >>conftest.$ac_ext |
---|
17894 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17895 | /* end confdefs.h. */ |
---|
17896 | |
---|
17897 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17898 | #ifdef __cplusplus |
---|
17899 | extern "C" |
---|
17900 | #endif |
---|
17901 | /* We use char because int might match the return type of a gcc2 |
---|
17902 | builtin and then its argument prototype would still apply. */ |
---|
17903 | char dlopen (); |
---|
17904 | int |
---|
17905 | main () |
---|
17906 | { |
---|
17907 | dlopen (); |
---|
17908 | ; |
---|
17909 | return 0; |
---|
17910 | } |
---|
17911 | _ACEOF |
---|
17912 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17914 | (eval $ac_link) 2>conftest.er1 |
---|
17915 | ac_status=$? |
---|
17916 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17917 | rm -f conftest.er1 |
---|
17918 | cat conftest.err >&5 |
---|
17919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17920 | (exit $ac_status); } && |
---|
17921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17923 | (eval $ac_try) 2>&5 |
---|
17924 | ac_status=$? |
---|
17925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17926 | (exit $ac_status); }; } && |
---|
17927 | { ac_try='test -s conftest$ac_exeext' |
---|
17928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17929 | (eval $ac_try) 2>&5 |
---|
17930 | ac_status=$? |
---|
17931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17932 | (exit $ac_status); }; }; then |
---|
17933 | ac_cv_lib_svld_dlopen=yes |
---|
17934 | else |
---|
17935 | echo "$as_me: failed program was:" >&5 |
---|
17936 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17937 | |
---|
17938 | ac_cv_lib_svld_dlopen=no |
---|
17939 | fi |
---|
17940 | rm -f conftest.err conftest.$ac_objext \ |
---|
17941 | conftest$ac_exeext conftest.$ac_ext |
---|
17942 | LIBS=$ac_check_lib_save_LIBS |
---|
17943 | fi |
---|
17944 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
17945 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
17946 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
17947 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
17948 | else |
---|
17949 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
17950 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
17951 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
17952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17953 | else |
---|
17954 | ac_check_lib_save_LIBS=$LIBS |
---|
17955 | LIBS="-ldld $LIBS" |
---|
17956 | cat >conftest.$ac_ext <<_ACEOF |
---|
17957 | /* confdefs.h. */ |
---|
17958 | _ACEOF |
---|
17959 | cat confdefs.h >>conftest.$ac_ext |
---|
17960 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17961 | /* end confdefs.h. */ |
---|
17962 | |
---|
17963 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17964 | #ifdef __cplusplus |
---|
17965 | extern "C" |
---|
17966 | #endif |
---|
17967 | /* We use char because int might match the return type of a gcc2 |
---|
17968 | builtin and then its argument prototype would still apply. */ |
---|
17969 | char dld_link (); |
---|
17970 | int |
---|
17971 | main () |
---|
17972 | { |
---|
17973 | dld_link (); |
---|
17974 | ; |
---|
17975 | return 0; |
---|
17976 | } |
---|
17977 | _ACEOF |
---|
17978 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17980 | (eval $ac_link) 2>conftest.er1 |
---|
17981 | ac_status=$? |
---|
17982 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17983 | rm -f conftest.er1 |
---|
17984 | cat conftest.err >&5 |
---|
17985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17986 | (exit $ac_status); } && |
---|
17987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17989 | (eval $ac_try) 2>&5 |
---|
17990 | ac_status=$? |
---|
17991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17992 | (exit $ac_status); }; } && |
---|
17993 | { ac_try='test -s conftest$ac_exeext' |
---|
17994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17995 | (eval $ac_try) 2>&5 |
---|
17996 | ac_status=$? |
---|
17997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17998 | (exit $ac_status); }; }; then |
---|
17999 | ac_cv_lib_dld_dld_link=yes |
---|
18000 | else |
---|
18001 | echo "$as_me: failed program was:" >&5 |
---|
18002 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18003 | |
---|
18004 | ac_cv_lib_dld_dld_link=no |
---|
18005 | fi |
---|
18006 | rm -f conftest.err conftest.$ac_objext \ |
---|
18007 | conftest$ac_exeext conftest.$ac_ext |
---|
18008 | LIBS=$ac_check_lib_save_LIBS |
---|
18009 | fi |
---|
18010 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
18011 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
18012 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
18013 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
18014 | fi |
---|
18015 | |
---|
18016 | |
---|
18017 | fi |
---|
18018 | |
---|
18019 | |
---|
18020 | fi |
---|
18021 | |
---|
18022 | |
---|
18023 | fi |
---|
18024 | |
---|
18025 | |
---|
18026 | fi |
---|
18027 | |
---|
18028 | |
---|
18029 | fi |
---|
18030 | |
---|
18031 | ;; |
---|
18032 | esac |
---|
18033 | |
---|
18034 | if test "x$lt_cv_dlopen" != xno; then |
---|
18035 | enable_dlopen=yes |
---|
18036 | else |
---|
18037 | enable_dlopen=no |
---|
18038 | fi |
---|
18039 | |
---|
18040 | case $lt_cv_dlopen in |
---|
18041 | dlopen) |
---|
18042 | save_CPPFLAGS="$CPPFLAGS" |
---|
18043 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
18044 | |
---|
18045 | save_LDFLAGS="$LDFLAGS" |
---|
18046 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
18047 | |
---|
18048 | save_LIBS="$LIBS" |
---|
18049 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
18050 | |
---|
18051 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
18052 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
18053 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
18054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18055 | else |
---|
18056 | if test "$cross_compiling" = yes; then : |
---|
18057 | lt_cv_dlopen_self=cross |
---|
18058 | else |
---|
18059 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
18060 | lt_status=$lt_dlunknown |
---|
18061 | cat > conftest.$ac_ext <<EOF |
---|
18062 | #line __oline__ "configure" |
---|
18063 | #include "confdefs.h" |
---|
18064 | |
---|
18065 | #if HAVE_DLFCN_H |
---|
18066 | #include <dlfcn.h> |
---|
18067 | #endif |
---|
18068 | |
---|
18069 | #include <stdio.h> |
---|
18070 | |
---|
18071 | #ifdef RTLD_GLOBAL |
---|
18072 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
18073 | #else |
---|
18074 | # ifdef DL_GLOBAL |
---|
18075 | # define LT_DLGLOBAL DL_GLOBAL |
---|
18076 | # else |
---|
18077 | # define LT_DLGLOBAL 0 |
---|
18078 | # endif |
---|
18079 | #endif |
---|
18080 | |
---|
18081 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
18082 | find out it does not work in some platform. */ |
---|
18083 | #ifndef LT_DLLAZY_OR_NOW |
---|
18084 | # ifdef RTLD_LAZY |
---|
18085 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
18086 | # else |
---|
18087 | # ifdef DL_LAZY |
---|
18088 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
18089 | # else |
---|
18090 | # ifdef RTLD_NOW |
---|
18091 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
18092 | # else |
---|
18093 | # ifdef DL_NOW |
---|
18094 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
18095 | # else |
---|
18096 | # define LT_DLLAZY_OR_NOW 0 |
---|
18097 | # endif |
---|
18098 | # endif |
---|
18099 | # endif |
---|
18100 | # endif |
---|
18101 | #endif |
---|
18102 | |
---|
18103 | #ifdef __cplusplus |
---|
18104 | extern "C" void exit (int); |
---|
18105 | #endif |
---|
18106 | |
---|
18107 | void fnord() { int i=42;} |
---|
18108 | int main () |
---|
18109 | { |
---|
18110 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
18111 | int status = $lt_dlunknown; |
---|
18112 | |
---|
18113 | if (self) |
---|
18114 | { |
---|
18115 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
18116 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
18117 | /* dlclose (self); */ |
---|
18118 | } |
---|
18119 | |
---|
18120 | exit (status); |
---|
18121 | } |
---|
18122 | EOF |
---|
18123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18124 | (eval $ac_link) 2>&5 |
---|
18125 | ac_status=$? |
---|
18126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18127 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
18128 | (./conftest; exit; ) 2>/dev/null |
---|
18129 | lt_status=$? |
---|
18130 | case x$lt_status in |
---|
18131 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
18132 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
18133 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
18134 | esac |
---|
18135 | else : |
---|
18136 | # compilation failed |
---|
18137 | lt_cv_dlopen_self=no |
---|
18138 | fi |
---|
18139 | fi |
---|
18140 | rm -fr conftest* |
---|
18141 | |
---|
18142 | |
---|
18143 | fi |
---|
18144 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
18145 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
18146 | |
---|
18147 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
18148 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
18149 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
18150 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
18151 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
18152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18153 | else |
---|
18154 | if test "$cross_compiling" = yes; then : |
---|
18155 | lt_cv_dlopen_self_static=cross |
---|
18156 | else |
---|
18157 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
18158 | lt_status=$lt_dlunknown |
---|
18159 | cat > conftest.$ac_ext <<EOF |
---|
18160 | #line __oline__ "configure" |
---|
18161 | #include "confdefs.h" |
---|
18162 | |
---|
18163 | #if HAVE_DLFCN_H |
---|
18164 | #include <dlfcn.h> |
---|
18165 | #endif |
---|
18166 | |
---|
18167 | #include <stdio.h> |
---|
18168 | |
---|
18169 | #ifdef RTLD_GLOBAL |
---|
18170 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
18171 | #else |
---|
18172 | # ifdef DL_GLOBAL |
---|
18173 | # define LT_DLGLOBAL DL_GLOBAL |
---|
18174 | # else |
---|
18175 | # define LT_DLGLOBAL 0 |
---|
18176 | # endif |
---|
18177 | #endif |
---|
18178 | |
---|
18179 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
18180 | find out it does not work in some platform. */ |
---|
18181 | #ifndef LT_DLLAZY_OR_NOW |
---|
18182 | # ifdef RTLD_LAZY |
---|
18183 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
18184 | # else |
---|
18185 | # ifdef DL_LAZY |
---|
18186 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
18187 | # else |
---|
18188 | # ifdef RTLD_NOW |
---|
18189 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
18190 | # else |
---|
18191 | # ifdef DL_NOW |
---|
18192 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
18193 | # else |
---|
18194 | # define LT_DLLAZY_OR_NOW 0 |
---|
18195 | # endif |
---|
18196 | # endif |
---|
18197 | # endif |
---|
18198 | # endif |
---|
18199 | #endif |
---|
18200 | |
---|
18201 | #ifdef __cplusplus |
---|
18202 | extern "C" void exit (int); |
---|
18203 | #endif |
---|
18204 | |
---|
18205 | void fnord() { int i=42;} |
---|
18206 | int main () |
---|
18207 | { |
---|
18208 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
18209 | int status = $lt_dlunknown; |
---|
18210 | |
---|
18211 | if (self) |
---|
18212 | { |
---|
18213 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
18214 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
18215 | /* dlclose (self); */ |
---|
18216 | } |
---|
18217 | |
---|
18218 | exit (status); |
---|
18219 | } |
---|
18220 | EOF |
---|
18221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18222 | (eval $ac_link) 2>&5 |
---|
18223 | ac_status=$? |
---|
18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18225 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
18226 | (./conftest; exit; ) 2>/dev/null |
---|
18227 | lt_status=$? |
---|
18228 | case x$lt_status in |
---|
18229 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
18230 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
18231 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
18232 | esac |
---|
18233 | else : |
---|
18234 | # compilation failed |
---|
18235 | lt_cv_dlopen_self_static=no |
---|
18236 | fi |
---|
18237 | fi |
---|
18238 | rm -fr conftest* |
---|
18239 | |
---|
18240 | |
---|
18241 | fi |
---|
18242 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
18243 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
18244 | fi |
---|
18245 | |
---|
18246 | CPPFLAGS="$save_CPPFLAGS" |
---|
18247 | LDFLAGS="$save_LDFLAGS" |
---|
18248 | LIBS="$save_LIBS" |
---|
18249 | ;; |
---|
18250 | esac |
---|
18251 | |
---|
18252 | case $lt_cv_dlopen_self in |
---|
18253 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
18254 | *) enable_dlopen_self=unknown ;; |
---|
18255 | esac |
---|
18256 | |
---|
18257 | case $lt_cv_dlopen_self_static in |
---|
18258 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
18259 | *) enable_dlopen_self_static=unknown ;; |
---|
18260 | esac |
---|
18261 | fi |
---|
18262 | |
---|
18263 | |
---|
18264 | # The else clause should only fire when bootstrapping the |
---|
18265 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
18266 | # with your package, and you will get complaints that there are |
---|
18267 | # no rules to generate ltmain.sh. |
---|
18268 | if test -f "$ltmain"; then |
---|
18269 | # See if we are running on zsh, and set the options which allow our commands through |
---|
18270 | # without removal of \ escapes. |
---|
18271 | if test -n "${ZSH_VERSION+set}" ; then |
---|
18272 | setopt NO_GLOB_SUBST |
---|
18273 | fi |
---|
18274 | # Now quote all the things that may contain metacharacters while being |
---|
18275 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
18276 | # variables and quote the copies for generation of the libtool script. |
---|
18277 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
18278 | SED SHELL STRIP \ |
---|
18279 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
18280 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
18281 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
18282 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
18283 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
18284 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
18285 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
18286 | compiler_GCJ \ |
---|
18287 | CC_GCJ \ |
---|
18288 | LD_GCJ \ |
---|
18289 | lt_prog_compiler_wl_GCJ \ |
---|
18290 | lt_prog_compiler_pic_GCJ \ |
---|
18291 | lt_prog_compiler_static_GCJ \ |
---|
18292 | lt_prog_compiler_no_builtin_flag_GCJ \ |
---|
18293 | export_dynamic_flag_spec_GCJ \ |
---|
18294 | thread_safe_flag_spec_GCJ \ |
---|
18295 | whole_archive_flag_spec_GCJ \ |
---|
18296 | enable_shared_with_static_runtimes_GCJ \ |
---|
18297 | old_archive_cmds_GCJ \ |
---|
18298 | old_archive_from_new_cmds_GCJ \ |
---|
18299 | predep_objects_GCJ \ |
---|
18300 | postdep_objects_GCJ \ |
---|
18301 | predeps_GCJ \ |
---|
18302 | postdeps_GCJ \ |
---|
18303 | compiler_lib_search_path_GCJ \ |
---|
18304 | archive_cmds_GCJ \ |
---|
18305 | archive_expsym_cmds_GCJ \ |
---|
18306 | postinstall_cmds_GCJ \ |
---|
18307 | postuninstall_cmds_GCJ \ |
---|
18308 | old_archive_from_expsyms_cmds_GCJ \ |
---|
18309 | allow_undefined_flag_GCJ \ |
---|
18310 | no_undefined_flag_GCJ \ |
---|
18311 | export_symbols_cmds_GCJ \ |
---|
18312 | hardcode_libdir_flag_spec_GCJ \ |
---|
18313 | hardcode_libdir_flag_spec_ld_GCJ \ |
---|
18314 | hardcode_libdir_separator_GCJ \ |
---|
18315 | hardcode_automatic_GCJ \ |
---|
18316 | module_cmds_GCJ \ |
---|
18317 | module_expsym_cmds_GCJ \ |
---|
18318 | lt_cv_prog_compiler_c_o_GCJ \ |
---|
18319 | exclude_expsyms_GCJ \ |
---|
18320 | include_expsyms_GCJ; do |
---|
18321 | |
---|
18322 | case $var in |
---|
18323 | old_archive_cmds_GCJ | \ |
---|
18324 | old_archive_from_new_cmds_GCJ | \ |
---|
18325 | archive_cmds_GCJ | \ |
---|
18326 | archive_expsym_cmds_GCJ | \ |
---|
18327 | module_cmds_GCJ | \ |
---|
18328 | module_expsym_cmds_GCJ | \ |
---|
18329 | old_archive_from_expsyms_cmds_GCJ | \ |
---|
18330 | export_symbols_cmds_GCJ | \ |
---|
18331 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
18332 | postinstall_cmds | postuninstall_cmds | \ |
---|
18333 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
18334 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
18335 | # Double-quote double-evaled strings. |
---|
18336 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
18337 | ;; |
---|
18338 | *) |
---|
18339 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
18340 | ;; |
---|
18341 | esac |
---|
18342 | done |
---|
18343 | |
---|
18344 | case $lt_echo in |
---|
18345 | *'\$0 --fallback-echo"') |
---|
18346 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
18347 | ;; |
---|
18348 | esac |
---|
18349 | |
---|
18350 | cfgfile="$ofile" |
---|
18351 | |
---|
18352 | cat <<__EOF__ >> "$cfgfile" |
---|
18353 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
18354 | |
---|
18355 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
18356 | |
---|
18357 | # Shell to use when invoking shell scripts. |
---|
18358 | SHELL=$lt_SHELL |
---|
18359 | |
---|
18360 | # Whether or not to build shared libraries. |
---|
18361 | build_libtool_libs=$enable_shared |
---|
18362 | |
---|
18363 | # Whether or not to build static libraries. |
---|
18364 | build_old_libs=$enable_static |
---|
18365 | |
---|
18366 | # Whether or not to add -lc for building shared libraries. |
---|
18367 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
---|
18368 | |
---|
18369 | # Whether or not to disallow shared libs when runtime libs are static |
---|
18370 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
---|
18371 | |
---|
18372 | # Whether or not to optimize for fast installation. |
---|
18373 | fast_install=$enable_fast_install |
---|
18374 | |
---|
18375 | # The host system. |
---|
18376 | host_alias=$host_alias |
---|
18377 | host=$host |
---|
18378 | |
---|
18379 | # An echo program that does not interpret backslashes. |
---|
18380 | echo=$lt_echo |
---|
18381 | |
---|
18382 | # The archiver. |
---|
18383 | AR=$lt_AR |
---|
18384 | AR_FLAGS=$lt_AR_FLAGS |
---|
18385 | |
---|
18386 | # A C compiler. |
---|
18387 | LTCC=$lt_LTCC |
---|
18388 | |
---|
18389 | # A language-specific compiler. |
---|
18390 | CC=$lt_compiler_GCJ |
---|
18391 | |
---|
18392 | # Is the compiler the GNU C compiler? |
---|
18393 | with_gcc=$GCC_GCJ |
---|
18394 | |
---|
18395 | # An ERE matcher. |
---|
18396 | EGREP=$lt_EGREP |
---|
18397 | |
---|
18398 | # The linker used to build libraries. |
---|
18399 | LD=$lt_LD_GCJ |
---|
18400 | |
---|
18401 | # Whether we need hard or soft links. |
---|
18402 | LN_S=$lt_LN_S |
---|
18403 | |
---|
18404 | # A BSD-compatible nm program. |
---|
18405 | NM=$lt_NM |
---|
18406 | |
---|
18407 | # A symbol stripping program |
---|
18408 | STRIP=$lt_STRIP |
---|
18409 | |
---|
18410 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
18411 | MAGIC_CMD=$MAGIC_CMD |
---|
18412 | |
---|
18413 | # Used on cygwin: DLL creation program. |
---|
18414 | DLLTOOL="$DLLTOOL" |
---|
18415 | |
---|
18416 | # Used on cygwin: object dumper. |
---|
18417 | OBJDUMP="$OBJDUMP" |
---|
18418 | |
---|
18419 | # Used on cygwin: assembler. |
---|
18420 | AS="$AS" |
---|
18421 | |
---|
18422 | # The name of the directory that contains temporary libtool files. |
---|
18423 | objdir=$objdir |
---|
18424 | |
---|
18425 | # How to create reloadable object files. |
---|
18426 | reload_flag=$lt_reload_flag |
---|
18427 | reload_cmds=$lt_reload_cmds |
---|
18428 | |
---|
18429 | # How to pass a linker flag through the compiler. |
---|
18430 | wl=$lt_lt_prog_compiler_wl_GCJ |
---|
18431 | |
---|
18432 | # Object file suffix (normally "o"). |
---|
18433 | objext="$ac_objext" |
---|
18434 | |
---|
18435 | # Old archive suffix (normally "a"). |
---|
18436 | libext="$libext" |
---|
18437 | |
---|
18438 | # Shared library suffix (normally ".so"). |
---|
18439 | shrext_cmds='$shrext_cmds' |
---|
18440 | |
---|
18441 | # Executable file suffix (normally ""). |
---|
18442 | exeext="$exeext" |
---|
18443 | |
---|
18444 | # Additional compiler flags for building library objects. |
---|
18445 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
---|
18446 | pic_mode=$pic_mode |
---|
18447 | |
---|
18448 | # What is the maximum length of a command? |
---|
18449 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
18450 | |
---|
18451 | # Does compiler simultaneously support -c and -o options? |
---|
18452 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
---|
18453 | |
---|
18454 | # Must we lock files when doing compilation ? |
---|
18455 | need_locks=$lt_need_locks |
---|
18456 | |
---|
18457 | # Do we need the lib prefix for modules? |
---|
18458 | need_lib_prefix=$need_lib_prefix |
---|
18459 | |
---|
18460 | # Do we need a version for libraries? |
---|
18461 | need_version=$need_version |
---|
18462 | |
---|
18463 | # Whether dlopen is supported. |
---|
18464 | dlopen_support=$enable_dlopen |
---|
18465 | |
---|
18466 | # Whether dlopen of programs is supported. |
---|
18467 | dlopen_self=$enable_dlopen_self |
---|
18468 | |
---|
18469 | # Whether dlopen of statically linked programs is supported. |
---|
18470 | dlopen_self_static=$enable_dlopen_self_static |
---|
18471 | |
---|
18472 | # Compiler flag to prevent dynamic linking. |
---|
18473 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
---|
18474 | |
---|
18475 | # Compiler flag to turn off builtin functions. |
---|
18476 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
---|
18477 | |
---|
18478 | # Compiler flag to allow reflexive dlopens. |
---|
18479 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
---|
18480 | |
---|
18481 | # Compiler flag to generate shared objects directly from archives. |
---|
18482 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
---|
18483 | |
---|
18484 | # Compiler flag to generate thread-safe objects. |
---|
18485 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
---|
18486 | |
---|
18487 | # Library versioning type. |
---|
18488 | version_type=$version_type |
---|
18489 | |
---|
18490 | # Format of library name prefix. |
---|
18491 | libname_spec=$lt_libname_spec |
---|
18492 | |
---|
18493 | # List of archive names. First name is the real one, the rest are links. |
---|
18494 | # The last name is the one that the linker finds with -lNAME. |
---|
18495 | library_names_spec=$lt_library_names_spec |
---|
18496 | |
---|
18497 | # The coded name of the library, if different from the real name. |
---|
18498 | soname_spec=$lt_soname_spec |
---|
18499 | |
---|
18500 | # Commands used to build and install an old-style archive. |
---|
18501 | RANLIB=$lt_RANLIB |
---|
18502 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
---|
18503 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
18504 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
18505 | |
---|
18506 | # Create an old-style archive from a shared archive. |
---|
18507 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
---|
18508 | |
---|
18509 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
18510 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
---|
18511 | |
---|
18512 | # Commands used to build and install a shared archive. |
---|
18513 | archive_cmds=$lt_archive_cmds_GCJ |
---|
18514 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
---|
18515 | postinstall_cmds=$lt_postinstall_cmds |
---|
18516 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
18517 | |
---|
18518 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
18519 | module_cmds=$lt_module_cmds_GCJ |
---|
18520 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
---|
18521 | |
---|
18522 | # Commands to strip libraries. |
---|
18523 | old_striplib=$lt_old_striplib |
---|
18524 | striplib=$lt_striplib |
---|
18525 | |
---|
18526 | # Dependencies to place before the objects being linked to create a |
---|
18527 | # shared library. |
---|
18528 | predep_objects=$lt_predep_objects_GCJ |
---|
18529 | |
---|
18530 | # Dependencies to place after the objects being linked to create a |
---|
18531 | # shared library. |
---|
18532 | postdep_objects=$lt_postdep_objects_GCJ |
---|
18533 | |
---|
18534 | # Dependencies to place before the objects being linked to create a |
---|
18535 | # shared library. |
---|
18536 | predeps=$lt_predeps_GCJ |
---|
18537 | |
---|
18538 | # Dependencies to place after the objects being linked to create a |
---|
18539 | # shared library. |
---|
18540 | postdeps=$lt_postdeps_GCJ |
---|
18541 | |
---|
18542 | # The library search path used internally by the compiler when linking |
---|
18543 | # a shared library. |
---|
18544 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
---|
18545 | |
---|
18546 | # Method to check whether dependent libraries are shared objects. |
---|
18547 | deplibs_check_method=$lt_deplibs_check_method |
---|
18548 | |
---|
18549 | # Command to use when deplibs_check_method == file_magic. |
---|
18550 | file_magic_cmd=$lt_file_magic_cmd |
---|
18551 | |
---|
18552 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
18553 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
---|
18554 | |
---|
18555 | # Flag that forces no undefined symbols. |
---|
18556 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
---|
18557 | |
---|
18558 | # Commands used to finish a libtool library installation in a directory. |
---|
18559 | finish_cmds=$lt_finish_cmds |
---|
18560 | |
---|
18561 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
18562 | finish_eval=$lt_finish_eval |
---|
18563 | |
---|
18564 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
18565 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
18566 | |
---|
18567 | # Transform the output of nm in a proper C declaration |
---|
18568 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
18569 | |
---|
18570 | # Transform the output of nm in a C name address pair |
---|
18571 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
18572 | |
---|
18573 | # This is the shared library runtime path variable. |
---|
18574 | runpath_var=$runpath_var |
---|
18575 | |
---|
18576 | # This is the shared library path variable. |
---|
18577 | shlibpath_var=$shlibpath_var |
---|
18578 | |
---|
18579 | # Is shlibpath searched before the hard-coded library search path? |
---|
18580 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
18581 | |
---|
18582 | # How to hardcode a shared library path into an executable. |
---|
18583 | hardcode_action=$hardcode_action_GCJ |
---|
18584 | |
---|
18585 | # Whether we should hardcode library paths into libraries. |
---|
18586 | hardcode_into_libs=$hardcode_into_libs |
---|
18587 | |
---|
18588 | # Flag to hardcode \$libdir into a binary during linking. |
---|
18589 | # This must work even if \$libdir does not exist. |
---|
18590 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
---|
18591 | |
---|
18592 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
18593 | # a binary during linking. This must work even if \$libdir does |
---|
18594 | # not exist. |
---|
18595 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
---|
18596 | |
---|
18597 | # Whether we need a single -rpath flag with a separated argument. |
---|
18598 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
---|
18599 | |
---|
18600 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
18601 | # resulting binary. |
---|
18602 | hardcode_direct=$hardcode_direct_GCJ |
---|
18603 | |
---|
18604 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
18605 | # resulting binary. |
---|
18606 | hardcode_minus_L=$hardcode_minus_L_GCJ |
---|
18607 | |
---|
18608 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
18609 | # the resulting binary. |
---|
18610 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
---|
18611 | |
---|
18612 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
18613 | # and all subsequent libraries and executables linked against it. |
---|
18614 | hardcode_automatic=$hardcode_automatic_GCJ |
---|
18615 | |
---|
18616 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
18617 | # restored at relink time. |
---|
18618 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
18619 | |
---|
18620 | # Whether libtool must link a program against all its dependency libraries. |
---|
18621 | link_all_deplibs=$link_all_deplibs_GCJ |
---|
18622 | |
---|
18623 | # Compile-time system search path for libraries |
---|
18624 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
18625 | |
---|
18626 | # Run-time system search path for libraries |
---|
18627 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
18628 | |
---|
18629 | # Fix the shell variable \$srcfile for the compiler. |
---|
18630 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
---|
18631 | |
---|
18632 | # Set to yes if exported symbols are required. |
---|
18633 | always_export_symbols=$always_export_symbols_GCJ |
---|
18634 | |
---|
18635 | # The commands to list exported symbols. |
---|
18636 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
---|
18637 | |
---|
18638 | # The commands to extract the exported symbol list from a shared archive. |
---|
18639 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
18640 | |
---|
18641 | # Symbols that should not be listed in the preloaded symbols. |
---|
18642 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
---|
18643 | |
---|
18644 | # Symbols that must always be exported. |
---|
18645 | include_expsyms=$lt_include_expsyms_GCJ |
---|
18646 | |
---|
18647 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
18648 | |
---|
18649 | __EOF__ |
---|
18650 | |
---|
18651 | |
---|
18652 | else |
---|
18653 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
18654 | # `config.status --recheck' to rerun these tests and create the |
---|
18655 | # libtool script then. |
---|
18656 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
18657 | if test -f "$ltmain_in"; then |
---|
18658 | test -f Makefile && make "$ltmain" |
---|
18659 | fi |
---|
18660 | fi |
---|
18661 | |
---|
18662 | |
---|
18663 | ac_ext=c |
---|
18664 | ac_cpp='$CPP $CPPFLAGS' |
---|
18665 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
18666 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
18667 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
18668 | |
---|
18669 | CC="$lt_save_CC" |
---|
18670 | |
---|
18671 | else |
---|
18672 | tagname="" |
---|
18673 | fi |
---|
18674 | ;; |
---|
18675 | |
---|
18676 | RC) |
---|
18677 | |
---|
18678 | |
---|
18679 | |
---|
18680 | # Source file extension for RC test sources. |
---|
18681 | ac_ext=rc |
---|
18682 | |
---|
18683 | # Object file extension for compiled RC test sources. |
---|
18684 | objext=o |
---|
18685 | objext_RC=$objext |
---|
18686 | |
---|
18687 | # Code to be used in simple compile tests |
---|
18688 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
---|
18689 | |
---|
18690 | # Code to be used in simple link tests |
---|
18691 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
---|
18692 | |
---|
18693 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
18694 | |
---|
18695 | # If no C compiler was specified, use CC. |
---|
18696 | LTCC=${LTCC-"$CC"} |
---|
18697 | |
---|
18698 | # Allow CC to be a program name with arguments. |
---|
18699 | compiler=$CC |
---|
18700 | |
---|
18701 | |
---|
18702 | # Allow CC to be a program name with arguments. |
---|
18703 | lt_save_CC="$CC" |
---|
18704 | CC=${RC-"windres"} |
---|
18705 | compiler=$CC |
---|
18706 | compiler_RC=$CC |
---|
18707 | lt_cv_prog_compiler_c_o_RC=yes |
---|
18708 | |
---|
18709 | # The else clause should only fire when bootstrapping the |
---|
18710 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
18711 | # with your package, and you will get complaints that there are |
---|
18712 | # no rules to generate ltmain.sh. |
---|
18713 | if test -f "$ltmain"; then |
---|
18714 | # See if we are running on zsh, and set the options which allow our commands through |
---|
18715 | # without removal of \ escapes. |
---|
18716 | if test -n "${ZSH_VERSION+set}" ; then |
---|
18717 | setopt NO_GLOB_SUBST |
---|
18718 | fi |
---|
18719 | # Now quote all the things that may contain metacharacters while being |
---|
18720 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
18721 | # variables and quote the copies for generation of the libtool script. |
---|
18722 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
18723 | SED SHELL STRIP \ |
---|
18724 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
18725 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
18726 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
18727 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
18728 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
18729 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
18730 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
18731 | compiler_RC \ |
---|
18732 | CC_RC \ |
---|
18733 | LD_RC \ |
---|
18734 | lt_prog_compiler_wl_RC \ |
---|
18735 | lt_prog_compiler_pic_RC \ |
---|
18736 | lt_prog_compiler_static_RC \ |
---|
18737 | lt_prog_compiler_no_builtin_flag_RC \ |
---|
18738 | export_dynamic_flag_spec_RC \ |
---|
18739 | thread_safe_flag_spec_RC \ |
---|
18740 | whole_archive_flag_spec_RC \ |
---|
18741 | enable_shared_with_static_runtimes_RC \ |
---|
18742 | old_archive_cmds_RC \ |
---|
18743 | old_archive_from_new_cmds_RC \ |
---|
18744 | predep_objects_RC \ |
---|
18745 | postdep_objects_RC \ |
---|
18746 | predeps_RC \ |
---|
18747 | postdeps_RC \ |
---|
18748 | compiler_lib_search_path_RC \ |
---|
18749 | archive_cmds_RC \ |
---|
18750 | archive_expsym_cmds_RC \ |
---|
18751 | postinstall_cmds_RC \ |
---|
18752 | postuninstall_cmds_RC \ |
---|
18753 | old_archive_from_expsyms_cmds_RC \ |
---|
18754 | allow_undefined_flag_RC \ |
---|
18755 | no_undefined_flag_RC \ |
---|
18756 | export_symbols_cmds_RC \ |
---|
18757 | hardcode_libdir_flag_spec_RC \ |
---|
18758 | hardcode_libdir_flag_spec_ld_RC \ |
---|
18759 | hardcode_libdir_separator_RC \ |
---|
18760 | hardcode_automatic_RC \ |
---|
18761 | module_cmds_RC \ |
---|
18762 | module_expsym_cmds_RC \ |
---|
18763 | lt_cv_prog_compiler_c_o_RC \ |
---|
18764 | exclude_expsyms_RC \ |
---|
18765 | include_expsyms_RC; do |
---|
18766 | |
---|
18767 | case $var in |
---|
18768 | old_archive_cmds_RC | \ |
---|
18769 | old_archive_from_new_cmds_RC | \ |
---|
18770 | archive_cmds_RC | \ |
---|
18771 | archive_expsym_cmds_RC | \ |
---|
18772 | module_cmds_RC | \ |
---|
18773 | module_expsym_cmds_RC | \ |
---|
18774 | old_archive_from_expsyms_cmds_RC | \ |
---|
18775 | export_symbols_cmds_RC | \ |
---|
18776 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
18777 | postinstall_cmds | postuninstall_cmds | \ |
---|
18778 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
18779 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
18780 | # Double-quote double-evaled strings. |
---|
18781 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
18782 | ;; |
---|
18783 | *) |
---|
18784 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
18785 | ;; |
---|
18786 | esac |
---|
18787 | done |
---|
18788 | |
---|
18789 | case $lt_echo in |
---|
18790 | *'\$0 --fallback-echo"') |
---|
18791 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
18792 | ;; |
---|
18793 | esac |
---|
18794 | |
---|
18795 | cfgfile="$ofile" |
---|
18796 | |
---|
18797 | cat <<__EOF__ >> "$cfgfile" |
---|
18798 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
18799 | |
---|
18800 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
18801 | |
---|
18802 | # Shell to use when invoking shell scripts. |
---|
18803 | SHELL=$lt_SHELL |
---|
18804 | |
---|
18805 | # Whether or not to build shared libraries. |
---|
18806 | build_libtool_libs=$enable_shared |
---|
18807 | |
---|
18808 | # Whether or not to build static libraries. |
---|
18809 | build_old_libs=$enable_static |
---|
18810 | |
---|
18811 | # Whether or not to add -lc for building shared libraries. |
---|
18812 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
---|
18813 | |
---|
18814 | # Whether or not to disallow shared libs when runtime libs are static |
---|
18815 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
---|
18816 | |
---|
18817 | # Whether or not to optimize for fast installation. |
---|
18818 | fast_install=$enable_fast_install |
---|
18819 | |
---|
18820 | # The host system. |
---|
18821 | host_alias=$host_alias |
---|
18822 | host=$host |
---|
18823 | |
---|
18824 | # An echo program that does not interpret backslashes. |
---|
18825 | echo=$lt_echo |
---|
18826 | |
---|
18827 | # The archiver. |
---|
18828 | AR=$lt_AR |
---|
18829 | AR_FLAGS=$lt_AR_FLAGS |
---|
18830 | |
---|
18831 | # A C compiler. |
---|
18832 | LTCC=$lt_LTCC |
---|
18833 | |
---|
18834 | # A language-specific compiler. |
---|
18835 | CC=$lt_compiler_RC |
---|
18836 | |
---|
18837 | # Is the compiler the GNU C compiler? |
---|
18838 | with_gcc=$GCC_RC |
---|
18839 | |
---|
18840 | # An ERE matcher. |
---|
18841 | EGREP=$lt_EGREP |
---|
18842 | |
---|
18843 | # The linker used to build libraries. |
---|
18844 | LD=$lt_LD_RC |
---|
18845 | |
---|
18846 | # Whether we need hard or soft links. |
---|
18847 | LN_S=$lt_LN_S |
---|
18848 | |
---|
18849 | # A BSD-compatible nm program. |
---|
18850 | NM=$lt_NM |
---|
18851 | |
---|
18852 | # A symbol stripping program |
---|
18853 | STRIP=$lt_STRIP |
---|
18854 | |
---|
18855 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
18856 | MAGIC_CMD=$MAGIC_CMD |
---|
18857 | |
---|
18858 | # Used on cygwin: DLL creation program. |
---|
18859 | DLLTOOL="$DLLTOOL" |
---|
18860 | |
---|
18861 | # Used on cygwin: object dumper. |
---|
18862 | OBJDUMP="$OBJDUMP" |
---|
18863 | |
---|
18864 | # Used on cygwin: assembler. |
---|
18865 | AS="$AS" |
---|
18866 | |
---|
18867 | # The name of the directory that contains temporary libtool files. |
---|
18868 | objdir=$objdir |
---|
18869 | |
---|
18870 | # How to create reloadable object files. |
---|
18871 | reload_flag=$lt_reload_flag |
---|
18872 | reload_cmds=$lt_reload_cmds |
---|
18873 | |
---|
18874 | # How to pass a linker flag through the compiler. |
---|
18875 | wl=$lt_lt_prog_compiler_wl_RC |
---|
18876 | |
---|
18877 | # Object file suffix (normally "o"). |
---|
18878 | objext="$ac_objext" |
---|
18879 | |
---|
18880 | # Old archive suffix (normally "a"). |
---|
18881 | libext="$libext" |
---|
18882 | |
---|
18883 | # Shared library suffix (normally ".so"). |
---|
18884 | shrext_cmds='$shrext_cmds' |
---|
18885 | |
---|
18886 | # Executable file suffix (normally ""). |
---|
18887 | exeext="$exeext" |
---|
18888 | |
---|
18889 | # Additional compiler flags for building library objects. |
---|
18890 | pic_flag=$lt_lt_prog_compiler_pic_RC |
---|
18891 | pic_mode=$pic_mode |
---|
18892 | |
---|
18893 | # What is the maximum length of a command? |
---|
18894 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
18895 | |
---|
18896 | # Does compiler simultaneously support -c and -o options? |
---|
18897 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
---|
18898 | |
---|
18899 | # Must we lock files when doing compilation ? |
---|
18900 | need_locks=$lt_need_locks |
---|
18901 | |
---|
18902 | # Do we need the lib prefix for modules? |
---|
18903 | need_lib_prefix=$need_lib_prefix |
---|
18904 | |
---|
18905 | # Do we need a version for libraries? |
---|
18906 | need_version=$need_version |
---|
18907 | |
---|
18908 | # Whether dlopen is supported. |
---|
18909 | dlopen_support=$enable_dlopen |
---|
18910 | |
---|
18911 | # Whether dlopen of programs is supported. |
---|
18912 | dlopen_self=$enable_dlopen_self |
---|
18913 | |
---|
18914 | # Whether dlopen of statically linked programs is supported. |
---|
18915 | dlopen_self_static=$enable_dlopen_self_static |
---|
18916 | |
---|
18917 | # Compiler flag to prevent dynamic linking. |
---|
18918 | link_static_flag=$lt_lt_prog_compiler_static_RC |
---|
18919 | |
---|
18920 | # Compiler flag to turn off builtin functions. |
---|
18921 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
---|
18922 | |
---|
18923 | # Compiler flag to allow reflexive dlopens. |
---|
18924 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
---|
18925 | |
---|
18926 | # Compiler flag to generate shared objects directly from archives. |
---|
18927 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
---|
18928 | |
---|
18929 | # Compiler flag to generate thread-safe objects. |
---|
18930 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
---|
18931 | |
---|
18932 | # Library versioning type. |
---|
18933 | version_type=$version_type |
---|
18934 | |
---|
18935 | # Format of library name prefix. |
---|
18936 | libname_spec=$lt_libname_spec |
---|
18937 | |
---|
18938 | # List of archive names. First name is the real one, the rest are links. |
---|
18939 | # The last name is the one that the linker finds with -lNAME. |
---|
18940 | library_names_spec=$lt_library_names_spec |
---|
18941 | |
---|
18942 | # The coded name of the library, if different from the real name. |
---|
18943 | soname_spec=$lt_soname_spec |
---|
18944 | |
---|
18945 | # Commands used to build and install an old-style archive. |
---|
18946 | RANLIB=$lt_RANLIB |
---|
18947 | old_archive_cmds=$lt_old_archive_cmds_RC |
---|
18948 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
18949 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
18950 | |
---|
18951 | # Create an old-style archive from a shared archive. |
---|
18952 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
---|
18953 | |
---|
18954 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
18955 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
---|
18956 | |
---|
18957 | # Commands used to build and install a shared archive. |
---|
18958 | archive_cmds=$lt_archive_cmds_RC |
---|
18959 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
---|
18960 | postinstall_cmds=$lt_postinstall_cmds |
---|
18961 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
18962 | |
---|
18963 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
18964 | module_cmds=$lt_module_cmds_RC |
---|
18965 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
---|
18966 | |
---|
18967 | # Commands to strip libraries. |
---|
18968 | old_striplib=$lt_old_striplib |
---|
18969 | striplib=$lt_striplib |
---|
18970 | |
---|
18971 | # Dependencies to place before the objects being linked to create a |
---|
18972 | # shared library. |
---|
18973 | predep_objects=$lt_predep_objects_RC |
---|
18974 | |
---|
18975 | # Dependencies to place after the objects being linked to create a |
---|
18976 | # shared library. |
---|
18977 | postdep_objects=$lt_postdep_objects_RC |
---|
18978 | |
---|
18979 | # Dependencies to place before the objects being linked to create a |
---|
18980 | # shared library. |
---|
18981 | predeps=$lt_predeps_RC |
---|
18982 | |
---|
18983 | # Dependencies to place after the objects being linked to create a |
---|
18984 | # shared library. |
---|
18985 | postdeps=$lt_postdeps_RC |
---|
18986 | |
---|
18987 | # The library search path used internally by the compiler when linking |
---|
18988 | # a shared library. |
---|
18989 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
---|
18990 | |
---|
18991 | # Method to check whether dependent libraries are shared objects. |
---|
18992 | deplibs_check_method=$lt_deplibs_check_method |
---|
18993 | |
---|
18994 | # Command to use when deplibs_check_method == file_magic. |
---|
18995 | file_magic_cmd=$lt_file_magic_cmd |
---|
18996 | |
---|
18997 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
18998 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
---|
18999 | |
---|
19000 | # Flag that forces no undefined symbols. |
---|
19001 | no_undefined_flag=$lt_no_undefined_flag_RC |
---|
19002 | |
---|
19003 | # Commands used to finish a libtool library installation in a directory. |
---|
19004 | finish_cmds=$lt_finish_cmds |
---|
19005 | |
---|
19006 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
19007 | finish_eval=$lt_finish_eval |
---|
19008 | |
---|
19009 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
19010 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
19011 | |
---|
19012 | # Transform the output of nm in a proper C declaration |
---|
19013 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
19014 | |
---|
19015 | # Transform the output of nm in a C name address pair |
---|
19016 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
19017 | |
---|
19018 | # This is the shared library runtime path variable. |
---|
19019 | runpath_var=$runpath_var |
---|
19020 | |
---|
19021 | # This is the shared library path variable. |
---|
19022 | shlibpath_var=$shlibpath_var |
---|
19023 | |
---|
19024 | # Is shlibpath searched before the hard-coded library search path? |
---|
19025 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
19026 | |
---|
19027 | # How to hardcode a shared library path into an executable. |
---|
19028 | hardcode_action=$hardcode_action_RC |
---|
19029 | |
---|
19030 | # Whether we should hardcode library paths into libraries. |
---|
19031 | hardcode_into_libs=$hardcode_into_libs |
---|
19032 | |
---|
19033 | # Flag to hardcode \$libdir into a binary during linking. |
---|
19034 | # This must work even if \$libdir does not exist. |
---|
19035 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
---|
19036 | |
---|
19037 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
19038 | # a binary during linking. This must work even if \$libdir does |
---|
19039 | # not exist. |
---|
19040 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
---|
19041 | |
---|
19042 | # Whether we need a single -rpath flag with a separated argument. |
---|
19043 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
---|
19044 | |
---|
19045 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
19046 | # resulting binary. |
---|
19047 | hardcode_direct=$hardcode_direct_RC |
---|
19048 | |
---|
19049 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
19050 | # resulting binary. |
---|
19051 | hardcode_minus_L=$hardcode_minus_L_RC |
---|
19052 | |
---|
19053 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
19054 | # the resulting binary. |
---|
19055 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
---|
19056 | |
---|
19057 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
19058 | # and all subsequent libraries and executables linked against it. |
---|
19059 | hardcode_automatic=$hardcode_automatic_RC |
---|
19060 | |
---|
19061 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
19062 | # restored at relink time. |
---|
19063 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
19064 | |
---|
19065 | # Whether libtool must link a program against all its dependency libraries. |
---|
19066 | link_all_deplibs=$link_all_deplibs_RC |
---|
19067 | |
---|
19068 | # Compile-time system search path for libraries |
---|
19069 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
19070 | |
---|
19071 | # Run-time system search path for libraries |
---|
19072 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
19073 | |
---|
19074 | # Fix the shell variable \$srcfile for the compiler. |
---|
19075 | fix_srcfile_path="$fix_srcfile_path_RC" |
---|
19076 | |
---|
19077 | # Set to yes if exported symbols are required. |
---|
19078 | always_export_symbols=$always_export_symbols_RC |
---|
19079 | |
---|
19080 | # The commands to list exported symbols. |
---|
19081 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
---|
19082 | |
---|
19083 | # The commands to extract the exported symbol list from a shared archive. |
---|
19084 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
19085 | |
---|
19086 | # Symbols that should not be listed in the preloaded symbols. |
---|
19087 | exclude_expsyms=$lt_exclude_expsyms_RC |
---|
19088 | |
---|
19089 | # Symbols that must always be exported. |
---|
19090 | include_expsyms=$lt_include_expsyms_RC |
---|
19091 | |
---|
19092 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
19093 | |
---|
19094 | __EOF__ |
---|
19095 | |
---|
19096 | |
---|
19097 | else |
---|
19098 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
19099 | # `config.status --recheck' to rerun these tests and create the |
---|
19100 | # libtool script then. |
---|
19101 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
19102 | if test -f "$ltmain_in"; then |
---|
19103 | test -f Makefile && make "$ltmain" |
---|
19104 | fi |
---|
19105 | fi |
---|
19106 | |
---|
19107 | |
---|
19108 | ac_ext=c |
---|
19109 | ac_cpp='$CPP $CPPFLAGS' |
---|
19110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
19111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
19112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
19113 | |
---|
19114 | CC="$lt_save_CC" |
---|
19115 | |
---|
19116 | ;; |
---|
19117 | |
---|
19118 | *) |
---|
19119 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
---|
19120 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
---|
19121 | { (exit 1); exit 1; }; } |
---|
19122 | ;; |
---|
19123 | esac |
---|
19124 | |
---|
19125 | # Append the new tag name to the list of available tags. |
---|
19126 | if test -n "$tagname" ; then |
---|
19127 | available_tags="$available_tags $tagname" |
---|
19128 | fi |
---|
19129 | fi |
---|
19130 | done |
---|
19131 | IFS="$lt_save_ifs" |
---|
19132 | |
---|
19133 | # Now substitute the updated list of available tags. |
---|
19134 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
---|
19135 | mv "${ofile}T" "$ofile" |
---|
19136 | chmod +x "$ofile" |
---|
19137 | else |
---|
19138 | rm -f "${ofile}T" |
---|
19139 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
---|
19140 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
---|
19141 | { (exit 1); exit 1; }; } |
---|
19142 | fi |
---|
19143 | fi |
---|
19144 | |
---|
19145 | |
---|
19146 | |
---|
19147 | # This can be used to rebuild libtool when needed |
---|
19148 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
---|
19149 | |
---|
19150 | # Always use our own libtool. |
---|
19151 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
19152 | |
---|
19153 | # Prevent multiple expansion |
---|
19154 | |
---|
19155 | |
---|
19156 | |
---|
19157 | |
---|
19158 | |
---|
19159 | |
---|
19160 | |
---|
19161 | |
---|
19162 | |
---|
19163 | |
---|
19164 | |
---|
19165 | |
---|
19166 | |
---|
19167 | |
---|
19168 | |
---|
19169 | |
---|
19170 | |
---|
19171 | |
---|
19172 | |
---|
19173 | |
---|
19174 | |
---|
19175 | if test x$GCC = xyes; then |
---|
19176 | echo "$as_me:$LINENO: checking version 3.x of gcc" >&5 |
---|
19177 | echo $ECHO_N "checking version 3.x of gcc... $ECHO_C" >&6 |
---|
19178 | if test -n "`$CC --version 2>&1|grep '3.'`"; then |
---|
19179 | |
---|
19180 | cat >>confdefs.h <<\_ACEOF |
---|
19181 | @%:@define EXT_HASH |
---|
19182 | _ACEOF |
---|
19183 | |
---|
19184 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
19185 | echo "${ECHO_T}yes" >&6; |
---|
19186 | else |
---|
19187 | echo "$as_me:$LINENO: result: no" >&5 |
---|
19188 | echo "${ECHO_T}no" >&6! |
---|
19189 | fi |
---|
19190 | fi |
---|
19191 | |
---|
19192 | |
---|
19193 | |
---|
19194 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
---|
19195 | if test -n "$ac_tool_prefix"; then |
---|
19196 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
---|
19197 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
---|
19198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
19199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
19200 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
19201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19202 | else |
---|
19203 | case $PKG_CONFIG in |
---|
19204 | [\\/]* | ?:[\\/]*) |
---|
19205 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
19206 | ;; |
---|
19207 | *) |
---|
19208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
19209 | for as_dir in $PATH |
---|
19210 | do |
---|
19211 | IFS=$as_save_IFS |
---|
19212 | test -z "$as_dir" && as_dir=. |
---|
19213 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
19214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
19215 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
19216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
19217 | break 2 |
---|
19218 | fi |
---|
19219 | done |
---|
19220 | done |
---|
19221 | |
---|
19222 | ;; |
---|
19223 | esac |
---|
19224 | fi |
---|
19225 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
19226 | |
---|
19227 | if test -n "$PKG_CONFIG"; then |
---|
19228 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
19229 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
19230 | else |
---|
19231 | echo "$as_me:$LINENO: result: no" >&5 |
---|
19232 | echo "${ECHO_T}no" >&6 |
---|
19233 | fi |
---|
19234 | |
---|
19235 | fi |
---|
19236 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
---|
19237 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
---|
19238 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
19239 | set dummy pkg-config; ac_word=$2 |
---|
19240 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
19241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
19242 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
---|
19243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19244 | else |
---|
19245 | case $ac_pt_PKG_CONFIG in |
---|
19246 | [\\/]* | ?:[\\/]*) |
---|
19247 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
---|
19248 | ;; |
---|
19249 | *) |
---|
19250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
19251 | for as_dir in $PATH |
---|
19252 | do |
---|
19253 | IFS=$as_save_IFS |
---|
19254 | test -z "$as_dir" && as_dir=. |
---|
19255 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
19256 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
19257 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
19258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
19259 | break 2 |
---|
19260 | fi |
---|
19261 | done |
---|
19262 | done |
---|
19263 | |
---|
19264 | ;; |
---|
19265 | esac |
---|
19266 | fi |
---|
19267 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
---|
19268 | |
---|
19269 | if test -n "$ac_pt_PKG_CONFIG"; then |
---|
19270 | echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
---|
19271 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 |
---|
19272 | else |
---|
19273 | echo "$as_me:$LINENO: result: no" >&5 |
---|
19274 | echo "${ECHO_T}no" >&6 |
---|
19275 | fi |
---|
19276 | |
---|
19277 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
---|
19278 | else |
---|
19279 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
---|
19280 | fi |
---|
19281 | |
---|
19282 | fi |
---|
19283 | if test -n "$PKG_CONFIG"; then |
---|
19284 | _pkg_min_version=0.9.0 |
---|
19285 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
---|
19286 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 |
---|
19287 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
---|
19288 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
19289 | echo "${ECHO_T}yes" >&6 |
---|
19290 | else |
---|
19291 | echo "$as_me:$LINENO: result: no" >&5 |
---|
19292 | echo "${ECHO_T}no" >&6 |
---|
19293 | PKG_CONFIG="" |
---|
19294 | fi |
---|
19295 | |
---|
19296 | fi |
---|
19297 | |
---|
19298 | pkg_failed=no |
---|
19299 | echo "$as_me:$LINENO: checking for OGRE_CFLAGS" >&5 |
---|
19300 | echo $ECHO_N "checking for OGRE_CFLAGS... $ECHO_C" >&6 |
---|
19301 | if test "${pkg_cv_OGRE_CFLAGS+set}" = set; then |
---|
19302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19303 | else |
---|
19304 | if test "x$ac_cv_env_OGRE_CFLAGS_set" = "xset"; then |
---|
19305 | pkg_cv_OGRE_CFLAGS=$ac_cv_env_OGRE_CFLAGS_value |
---|
19306 | elif test -n "$PKG_CONFIG"; then |
---|
19307 | if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"OGRE\" >/dev/null 2>&1") >&5 |
---|
19308 | ($PKG_CONFIG --exists "OGRE" >/dev/null 2>&1) 2>&5 |
---|
19309 | ac_status=$? |
---|
19310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19311 | (exit $ac_status); }; then |
---|
19312 | pkg_cv_OGRE_CFLAGS=`$PKG_CONFIG --cflags "OGRE" 2>/dev/null` |
---|
19313 | else |
---|
19314 | pkg_failed=yes |
---|
19315 | fi |
---|
19316 | else |
---|
19317 | pkg_failed=untried |
---|
19318 | fi |
---|
19319 | fi |
---|
19320 | echo "$as_me:$LINENO: result: $pkg_cv_OGRE_CFLAGS" >&5 |
---|
19321 | echo "${ECHO_T}$pkg_cv_OGRE_CFLAGS" >&6 |
---|
19322 | echo "$as_me:$LINENO: checking for OGRE_LIBS" >&5 |
---|
19323 | echo $ECHO_N "checking for OGRE_LIBS... $ECHO_C" >&6 |
---|
19324 | if test "${pkg_cv_OGRE_LIBS+set}" = set; then |
---|
19325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19326 | else |
---|
19327 | if test "x$ac_cv_env_OGRE_LIBS_set" = "xset"; then |
---|
19328 | pkg_cv_OGRE_LIBS=$ac_cv_env_OGRE_LIBS_value |
---|
19329 | elif test -n "$PKG_CONFIG"; then |
---|
19330 | if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"OGRE\" >/dev/null 2>&1") >&5 |
---|
19331 | ($PKG_CONFIG --exists "OGRE" >/dev/null 2>&1) 2>&5 |
---|
19332 | ac_status=$? |
---|
19333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19334 | (exit $ac_status); }; then |
---|
19335 | pkg_cv_OGRE_LIBS=`$PKG_CONFIG --libs "OGRE" 2>/dev/null` |
---|
19336 | else |
---|
19337 | pkg_failed=yes |
---|
19338 | fi |
---|
19339 | else |
---|
19340 | pkg_failed=untried |
---|
19341 | fi |
---|
19342 | fi |
---|
19343 | echo "$as_me:$LINENO: result: $pkg_cv_OGRE_LIBS" >&5 |
---|
19344 | echo "${ECHO_T}$pkg_cv_OGRE_LIBS" >&6 |
---|
19345 | |
---|
19346 | if test $pkg_failed = yes; then |
---|
19347 | OGRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "OGRE"` |
---|
19348 | # Put the nasty error message in config.log where it belongs |
---|
19349 | echo "$OGRE_PKG_ERRORS" 1>&5 |
---|
19350 | |
---|
19351 | { { echo "$as_me:$LINENO: error: Package requirements (OGRE) were not met. |
---|
19352 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
---|
19353 | installed software in a non-standard prefix. |
---|
19354 | |
---|
19355 | Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables |
---|
19356 | to avoid the need to call pkg-config. See the pkg-config man page for |
---|
19357 | more details." >&5 |
---|
19358 | echo "$as_me: error: Package requirements (OGRE) were not met. |
---|
19359 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
---|
19360 | installed software in a non-standard prefix. |
---|
19361 | |
---|
19362 | Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables |
---|
19363 | to avoid the need to call pkg-config. See the pkg-config man page for |
---|
19364 | more details." >&2;} |
---|
19365 | { (exit 1); exit 1; }; } |
---|
19366 | elif test $pkg_failed = untried; then |
---|
19367 | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
---|
19368 | is in your PATH or set the PKG_CONFIG environment variable to the full |
---|
19369 | path to pkg-config. |
---|
19370 | |
---|
19371 | Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables |
---|
19372 | to avoid the need to call pkg-config. See the pkg-config man page for |
---|
19373 | more details. |
---|
19374 | |
---|
19375 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
---|
19376 | See \`config.log' for more details." >&5 |
---|
19377 | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
---|
19378 | is in your PATH or set the PKG_CONFIG environment variable to the full |
---|
19379 | path to pkg-config. |
---|
19380 | |
---|
19381 | Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables |
---|
19382 | to avoid the need to call pkg-config. See the pkg-config man page for |
---|
19383 | more details. |
---|
19384 | |
---|
19385 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
---|
19386 | See \`config.log' for more details." >&2;} |
---|
19387 | { (exit 1); exit 1; }; } |
---|
19388 | else |
---|
19389 | OGRE_CFLAGS=$pkg_cv_OGRE_CFLAGS |
---|
19390 | OGRE_LIBS=$pkg_cv_OGRE_LIBS |
---|
19391 | : |
---|
19392 | fi |
---|
19393 | ac_ext=cc |
---|
19394 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
19395 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
19396 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
19397 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
19398 | |
---|
19399 | |
---|
19400 | echo "$as_me:$LINENO: checking for main in -lode" >&5 |
---|
19401 | echo $ECHO_N "checking for main in -lode... $ECHO_C" >&6 |
---|
19402 | if test "${ac_cv_lib_ode_main+set}" = set; then |
---|
19403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19404 | else |
---|
19405 | ac_check_lib_save_LIBS=$LIBS |
---|
19406 | LIBS="-lode $LIBS" |
---|
19407 | cat >conftest.$ac_ext <<_ACEOF |
---|
19408 | /* confdefs.h. */ |
---|
19409 | _ACEOF |
---|
19410 | cat confdefs.h >>conftest.$ac_ext |
---|
19411 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19412 | /* end confdefs.h. */ |
---|
19413 | |
---|
19414 | |
---|
19415 | int |
---|
19416 | main () |
---|
19417 | { |
---|
19418 | main (); |
---|
19419 | ; |
---|
19420 | return 0; |
---|
19421 | } |
---|
19422 | _ACEOF |
---|
19423 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19425 | (eval $ac_link) 2>conftest.er1 |
---|
19426 | ac_status=$? |
---|
19427 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19428 | rm -f conftest.er1 |
---|
19429 | cat conftest.err >&5 |
---|
19430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19431 | (exit $ac_status); } && |
---|
19432 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
19433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19434 | (eval $ac_try) 2>&5 |
---|
19435 | ac_status=$? |
---|
19436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19437 | (exit $ac_status); }; } && |
---|
19438 | { ac_try='test -s conftest$ac_exeext' |
---|
19439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19440 | (eval $ac_try) 2>&5 |
---|
19441 | ac_status=$? |
---|
19442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19443 | (exit $ac_status); }; }; then |
---|
19444 | ac_cv_lib_ode_main=yes |
---|
19445 | else |
---|
19446 | echo "$as_me: failed program was:" >&5 |
---|
19447 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19448 | |
---|
19449 | ac_cv_lib_ode_main=no |
---|
19450 | fi |
---|
19451 | rm -f conftest.err conftest.$ac_objext \ |
---|
19452 | conftest$ac_exeext conftest.$ac_ext |
---|
19453 | LIBS=$ac_check_lib_save_LIBS |
---|
19454 | fi |
---|
19455 | echo "$as_me:$LINENO: result: $ac_cv_lib_ode_main" >&5 |
---|
19456 | echo "${ECHO_T}$ac_cv_lib_ode_main" >&6 |
---|
19457 | if test $ac_cv_lib_ode_main = yes; then |
---|
19458 | cat >>confdefs.h <<_ACEOF |
---|
19459 | @%:@define HAVE_LIBODE 1 |
---|
19460 | _ACEOF |
---|
19461 | |
---|
19462 | LIBS="-lode $LIBS" |
---|
19463 | |
---|
19464 | else |
---|
19465 | { { echo "$as_me:$LINENO: error: Can't find libode" >&5 |
---|
19466 | echo "$as_me: error: Can't find libode" >&2;} |
---|
19467 | { (exit 1); exit 1; }; } |
---|
19468 | fi |
---|
19469 | |
---|
19470 | ac_ext=c |
---|
19471 | ac_cpp='$CPP $CPPFLAGS' |
---|
19472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
19473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
19474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
19475 | |
---|
19476 | |
---|
19477 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
---|
19478 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 |
---|
19479 | if test "${ac_cv_lib_m_pow+set}" = set; then |
---|
19480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19481 | else |
---|
19482 | ac_check_lib_save_LIBS=$LIBS |
---|
19483 | LIBS="-lm $LIBS" |
---|
19484 | cat >conftest.$ac_ext <<_ACEOF |
---|
19485 | /* confdefs.h. */ |
---|
19486 | _ACEOF |
---|
19487 | cat confdefs.h >>conftest.$ac_ext |
---|
19488 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19489 | /* end confdefs.h. */ |
---|
19490 | |
---|
19491 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19492 | #ifdef __cplusplus |
---|
19493 | extern "C" |
---|
19494 | #endif |
---|
19495 | /* We use char because int might match the return type of a gcc2 |
---|
19496 | builtin and then its argument prototype would still apply. */ |
---|
19497 | char pow (); |
---|
19498 | int |
---|
19499 | main () |
---|
19500 | { |
---|
19501 | pow (); |
---|
19502 | ; |
---|
19503 | return 0; |
---|
19504 | } |
---|
19505 | _ACEOF |
---|
19506 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19508 | (eval $ac_link) 2>conftest.er1 |
---|
19509 | ac_status=$? |
---|
19510 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19511 | rm -f conftest.er1 |
---|
19512 | cat conftest.err >&5 |
---|
19513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19514 | (exit $ac_status); } && |
---|
19515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
19516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19517 | (eval $ac_try) 2>&5 |
---|
19518 | ac_status=$? |
---|
19519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19520 | (exit $ac_status); }; } && |
---|
19521 | { ac_try='test -s conftest$ac_exeext' |
---|
19522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19523 | (eval $ac_try) 2>&5 |
---|
19524 | ac_status=$? |
---|
19525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19526 | (exit $ac_status); }; }; then |
---|
19527 | ac_cv_lib_m_pow=yes |
---|
19528 | else |
---|
19529 | echo "$as_me: failed program was:" >&5 |
---|
19530 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19531 | |
---|
19532 | ac_cv_lib_m_pow=no |
---|
19533 | fi |
---|
19534 | rm -f conftest.err conftest.$ac_objext \ |
---|
19535 | conftest$ac_exeext conftest.$ac_ext |
---|
19536 | LIBS=$ac_check_lib_save_LIBS |
---|
19537 | fi |
---|
19538 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
---|
19539 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 |
---|
19540 | if test $ac_cv_lib_m_pow = yes; then |
---|
19541 | cat >>confdefs.h <<_ACEOF |
---|
19542 | @%:@define HAVE_LIBM 1 |
---|
19543 | _ACEOF |
---|
19544 | |
---|
19545 | LIBS="-lm $LIBS" |
---|
19546 | |
---|
19547 | fi |
---|
19548 | |
---|
19549 | |
---|
19550 | echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 |
---|
19551 | echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 |
---|
19552 | if test "${ac_cv_lib_z_gzopen+set}" = set; then |
---|
19553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19554 | else |
---|
19555 | ac_check_lib_save_LIBS=$LIBS |
---|
19556 | LIBS="-lz $LIBS" |
---|
19557 | cat >conftest.$ac_ext <<_ACEOF |
---|
19558 | /* confdefs.h. */ |
---|
19559 | _ACEOF |
---|
19560 | cat confdefs.h >>conftest.$ac_ext |
---|
19561 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19562 | /* end confdefs.h. */ |
---|
19563 | |
---|
19564 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19565 | #ifdef __cplusplus |
---|
19566 | extern "C" |
---|
19567 | #endif |
---|
19568 | /* We use char because int might match the return type of a gcc2 |
---|
19569 | builtin and then its argument prototype would still apply. */ |
---|
19570 | char gzopen (); |
---|
19571 | int |
---|
19572 | main () |
---|
19573 | { |
---|
19574 | gzopen (); |
---|
19575 | ; |
---|
19576 | return 0; |
---|
19577 | } |
---|
19578 | _ACEOF |
---|
19579 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19581 | (eval $ac_link) 2>conftest.er1 |
---|
19582 | ac_status=$? |
---|
19583 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19584 | rm -f conftest.er1 |
---|
19585 | cat conftest.err >&5 |
---|
19586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19587 | (exit $ac_status); } && |
---|
19588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
19589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19590 | (eval $ac_try) 2>&5 |
---|
19591 | ac_status=$? |
---|
19592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19593 | (exit $ac_status); }; } && |
---|
19594 | { ac_try='test -s conftest$ac_exeext' |
---|
19595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19596 | (eval $ac_try) 2>&5 |
---|
19597 | ac_status=$? |
---|
19598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19599 | (exit $ac_status); }; }; then |
---|
19600 | ac_cv_lib_z_gzopen=yes |
---|
19601 | else |
---|
19602 | echo "$as_me: failed program was:" >&5 |
---|
19603 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19604 | |
---|
19605 | ac_cv_lib_z_gzopen=no |
---|
19606 | fi |
---|
19607 | rm -f conftest.err conftest.$ac_objext \ |
---|
19608 | conftest$ac_exeext conftest.$ac_ext |
---|
19609 | LIBS=$ac_check_lib_save_LIBS |
---|
19610 | fi |
---|
19611 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 |
---|
19612 | echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 |
---|
19613 | if test $ac_cv_lib_z_gzopen = yes; then |
---|
19614 | cat >>confdefs.h <<_ACEOF |
---|
19615 | @%:@define HAVE_LIBZ 1 |
---|
19616 | _ACEOF |
---|
19617 | |
---|
19618 | LIBS="-lz $LIBS" |
---|
19619 | |
---|
19620 | fi |
---|
19621 | |
---|
19622 | echo "$as_me:$LINENO: checking for snprintf" >&5 |
---|
19623 | echo $ECHO_N "checking for snprintf... $ECHO_C" >&6 |
---|
19624 | if test "${ac_cv_func_snprintf+set}" = set; then |
---|
19625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19626 | else |
---|
19627 | cat >conftest.$ac_ext <<_ACEOF |
---|
19628 | /* confdefs.h. */ |
---|
19629 | _ACEOF |
---|
19630 | cat confdefs.h >>conftest.$ac_ext |
---|
19631 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19632 | /* end confdefs.h. */ |
---|
19633 | /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf. |
---|
19634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
19635 | #define snprintf innocuous_snprintf |
---|
19636 | |
---|
19637 | /* System header to define __stub macros and hopefully few prototypes, |
---|
19638 | which can conflict with char snprintf (); below. |
---|
19639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
19640 | <limits.h> exists even on freestanding compilers. */ |
---|
19641 | |
---|
19642 | #ifdef __STDC__ |
---|
19643 | # include <limits.h> |
---|
19644 | #else |
---|
19645 | # include <assert.h> |
---|
19646 | #endif |
---|
19647 | |
---|
19648 | #undef snprintf |
---|
19649 | |
---|
19650 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19651 | #ifdef __cplusplus |
---|
19652 | extern "C" |
---|
19653 | { |
---|
19654 | #endif |
---|
19655 | /* We use char because int might match the return type of a gcc2 |
---|
19656 | builtin and then its argument prototype would still apply. */ |
---|
19657 | char snprintf (); |
---|
19658 | /* The GNU C library defines this for functions which it implements |
---|
19659 | to always fail with ENOSYS. Some functions are actually named |
---|
19660 | something starting with __ and the normal name is an alias. */ |
---|
19661 | #if defined (__stub_snprintf) || defined (__stub___snprintf) |
---|
19662 | choke me |
---|
19663 | #else |
---|
19664 | char (*f) () = snprintf; |
---|
19665 | #endif |
---|
19666 | #ifdef __cplusplus |
---|
19667 | } |
---|
19668 | #endif |
---|
19669 | |
---|
19670 | int |
---|
19671 | main () |
---|
19672 | { |
---|
19673 | return f != snprintf; |
---|
19674 | ; |
---|
19675 | return 0; |
---|
19676 | } |
---|
19677 | _ACEOF |
---|
19678 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19680 | (eval $ac_link) 2>conftest.er1 |
---|
19681 | ac_status=$? |
---|
19682 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19683 | rm -f conftest.er1 |
---|
19684 | cat conftest.err >&5 |
---|
19685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19686 | (exit $ac_status); } && |
---|
19687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
19688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19689 | (eval $ac_try) 2>&5 |
---|
19690 | ac_status=$? |
---|
19691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19692 | (exit $ac_status); }; } && |
---|
19693 | { ac_try='test -s conftest$ac_exeext' |
---|
19694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19695 | (eval $ac_try) 2>&5 |
---|
19696 | ac_status=$? |
---|
19697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19698 | (exit $ac_status); }; }; then |
---|
19699 | ac_cv_func_snprintf=yes |
---|
19700 | else |
---|
19701 | echo "$as_me: failed program was:" >&5 |
---|
19702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19703 | |
---|
19704 | ac_cv_func_snprintf=no |
---|
19705 | fi |
---|
19706 | rm -f conftest.err conftest.$ac_objext \ |
---|
19707 | conftest$ac_exeext conftest.$ac_ext |
---|
19708 | fi |
---|
19709 | echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 |
---|
19710 | echo "${ECHO_T}$ac_cv_func_snprintf" >&6 |
---|
19711 | if test $ac_cv_func_snprintf = yes; then |
---|
19712 | |
---|
19713 | cat >>confdefs.h <<\_ACEOF |
---|
19714 | @%:@define HAVE_SNPRINTF |
---|
19715 | _ACEOF |
---|
19716 | |
---|
19717 | fi |
---|
19718 | |
---|
19719 | echo "$as_me:$LINENO: checking for vsnprintf" >&5 |
---|
19720 | echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 |
---|
19721 | if test "${ac_cv_func_vsnprintf+set}" = set; then |
---|
19722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19723 | else |
---|
19724 | cat >conftest.$ac_ext <<_ACEOF |
---|
19725 | /* confdefs.h. */ |
---|
19726 | _ACEOF |
---|
19727 | cat confdefs.h >>conftest.$ac_ext |
---|
19728 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19729 | /* end confdefs.h. */ |
---|
19730 | /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. |
---|
19731 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
19732 | #define vsnprintf innocuous_vsnprintf |
---|
19733 | |
---|
19734 | /* System header to define __stub macros and hopefully few prototypes, |
---|
19735 | which can conflict with char vsnprintf (); below. |
---|
19736 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
19737 | <limits.h> exists even on freestanding compilers. */ |
---|
19738 | |
---|
19739 | #ifdef __STDC__ |
---|
19740 | # include <limits.h> |
---|
19741 | #else |
---|
19742 | # include <assert.h> |
---|
19743 | #endif |
---|
19744 | |
---|
19745 | #undef vsnprintf |
---|
19746 | |
---|
19747 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19748 | #ifdef __cplusplus |
---|
19749 | extern "C" |
---|
19750 | { |
---|
19751 | #endif |
---|
19752 | /* We use char because int might match the return type of a gcc2 |
---|
19753 | builtin and then its argument prototype would still apply. */ |
---|
19754 | char vsnprintf (); |
---|
19755 | /* The GNU C library defines this for functions which it implements |
---|
19756 | to always fail with ENOSYS. Some functions are actually named |
---|
19757 | something starting with __ and the normal name is an alias. */ |
---|
19758 | #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) |
---|
19759 | choke me |
---|
19760 | #else |
---|
19761 | char (*f) () = vsnprintf; |
---|
19762 | #endif |
---|
19763 | #ifdef __cplusplus |
---|
19764 | } |
---|
19765 | #endif |
---|
19766 | |
---|
19767 | int |
---|
19768 | main () |
---|
19769 | { |
---|
19770 | return f != vsnprintf; |
---|
19771 | ; |
---|
19772 | return 0; |
---|
19773 | } |
---|
19774 | _ACEOF |
---|
19775 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19777 | (eval $ac_link) 2>conftest.er1 |
---|
19778 | ac_status=$? |
---|
19779 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19780 | rm -f conftest.er1 |
---|
19781 | cat conftest.err >&5 |
---|
19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19783 | (exit $ac_status); } && |
---|
19784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
19785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19786 | (eval $ac_try) 2>&5 |
---|
19787 | ac_status=$? |
---|
19788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19789 | (exit $ac_status); }; } && |
---|
19790 | { ac_try='test -s conftest$ac_exeext' |
---|
19791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19792 | (eval $ac_try) 2>&5 |
---|
19793 | ac_status=$? |
---|
19794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19795 | (exit $ac_status); }; }; then |
---|
19796 | ac_cv_func_vsnprintf=yes |
---|
19797 | else |
---|
19798 | echo "$as_me: failed program was:" >&5 |
---|
19799 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19800 | |
---|
19801 | ac_cv_func_vsnprintf=no |
---|
19802 | fi |
---|
19803 | rm -f conftest.err conftest.$ac_objext \ |
---|
19804 | conftest$ac_exeext conftest.$ac_ext |
---|
19805 | fi |
---|
19806 | echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 |
---|
19807 | echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6 |
---|
19808 | if test $ac_cv_func_vsnprintf = yes; then |
---|
19809 | |
---|
19810 | cat >>confdefs.h <<\_ACEOF |
---|
19811 | @%:@define HAVE_VSNPRINTF |
---|
19812 | _ACEOF |
---|
19813 | |
---|
19814 | fi |
---|
19815 | |
---|
19816 | |
---|
19817 | ac_config_files="$ac_config_files Makefile ReferenceAppLayer/Makefile ReferenceAppLayer/src/Makefile ReferenceAppLayer/include/Makefile BspCollision/Makefile BspCollision/src/Makefile" |
---|
19818 | |
---|
19819 | |
---|
19820 | cat >confcache <<\_ACEOF |
---|
19821 | # This file is a shell script that caches the results of configure |
---|
19822 | # tests run on this system so they can be shared between configure |
---|
19823 | # scripts and configure runs, see configure's option --config-cache. |
---|
19824 | # It is not useful on other systems. If it contains results you don't |
---|
19825 | # want to keep, you may remove or edit it. |
---|
19826 | # |
---|
19827 | # config.status only pays attention to the cache file if you give it |
---|
19828 | # the --recheck option to rerun configure. |
---|
19829 | # |
---|
19830 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
19831 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
19832 | # following values. |
---|
19833 | |
---|
19834 | _ACEOF |
---|
19835 | |
---|
19836 | # The following way of writing the cache mishandles newlines in values, |
---|
19837 | # but we know of no workaround that is simple, portable, and efficient. |
---|
19838 | # So, don't put newlines in cache variables' values. |
---|
19839 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
19840 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
19841 | { |
---|
19842 | (set) 2>&1 | |
---|
19843 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
19844 | *ac_space=\ *) |
---|
19845 | # `set' does not quote correctly, so add quotes (double-quote |
---|
19846 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
19847 | sed -n \ |
---|
19848 | "s/'/'\\\\''/g; |
---|
19849 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
19850 | ;; |
---|
19851 | *) |
---|
19852 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
19853 | sed -n \ |
---|
19854 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
19855 | ;; |
---|
19856 | esac; |
---|
19857 | } | |
---|
19858 | sed ' |
---|
19859 | t clear |
---|
19860 | : clear |
---|
19861 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
19862 | t end |
---|
19863 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
19864 | : end' >>confcache |
---|
19865 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
19866 | if test -w $cache_file; then |
---|
19867 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
19868 | cat confcache >$cache_file |
---|
19869 | else |
---|
19870 | echo "not updating unwritable cache $cache_file" |
---|
19871 | fi |
---|
19872 | fi |
---|
19873 | rm -f confcache |
---|
19874 | |
---|
19875 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
19876 | # Let make expand exec_prefix. |
---|
19877 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
19878 | |
---|
19879 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
19880 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
19881 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
19882 | # (actually we leave an empty line to preserve line numbers). |
---|
19883 | if test "x$srcdir" = x.; then |
---|
19884 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
19885 | s/:*\$(srcdir):*/:/; |
---|
19886 | s/:*\${srcdir}:*/:/; |
---|
19887 | s/:*@srcdir@:*/:/; |
---|
19888 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
19889 | s/:*$//; |
---|
19890 | s/^[^=]*=[ ]*$//; |
---|
19891 | }' |
---|
19892 | fi |
---|
19893 | |
---|
19894 | DEFS=-DHAVE_CONFIG_H |
---|
19895 | |
---|
19896 | ac_libobjs= |
---|
19897 | ac_ltlibobjs= |
---|
19898 | for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue |
---|
19899 | # 1. Remove the extension, and $U if already installed. |
---|
19900 | ac_i=`echo "$ac_i" | |
---|
19901 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
19902 | # 2. Add them. |
---|
19903 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
19904 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
19905 | done |
---|
19906 | LIB@&t@OBJS=$ac_libobjs |
---|
19907 | |
---|
19908 | LTLIBOBJS=$ac_ltlibobjs |
---|
19909 | |
---|
19910 | |
---|
19911 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
19912 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
19913 | Usually this means the macro was only invoked conditionally." >&5 |
---|
19914 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
19915 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
19916 | { (exit 1); exit 1; }; } |
---|
19917 | fi |
---|
19918 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
19919 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
19920 | Usually this means the macro was only invoked conditionally." >&5 |
---|
19921 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
19922 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
19923 | { (exit 1); exit 1; }; } |
---|
19924 | fi |
---|
19925 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
19926 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
19927 | Usually this means the macro was only invoked conditionally." >&5 |
---|
19928 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
19929 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
19930 | { (exit 1); exit 1; }; } |
---|
19931 | fi |
---|
19932 | |
---|
19933 | : ${CONFIG_STATUS=./config.status} |
---|
19934 | ac_clean_files_save=$ac_clean_files |
---|
19935 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
19936 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
19937 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
19938 | cat >$CONFIG_STATUS <<_ACEOF |
---|
19939 | #! $SHELL |
---|
19940 | # Generated by $as_me. |
---|
19941 | # Run this file to recreate the current configuration. |
---|
19942 | # Compiler output produced by configure, useful for debugging |
---|
19943 | # configure, is in config.log if it exists. |
---|
19944 | |
---|
19945 | debug=false |
---|
19946 | ac_cs_recheck=false |
---|
19947 | ac_cs_silent=false |
---|
19948 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
19949 | _ACEOF |
---|
19950 | |
---|
19951 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
19952 | ## --------------------- ## |
---|
19953 | ## M4sh Initialization. ## |
---|
19954 | ## --------------------- ## |
---|
19955 | |
---|
19956 | # Be Bourne compatible |
---|
19957 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
19958 | emulate sh |
---|
19959 | NULLCMD=: |
---|
19960 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
19961 | # is contrary to our usage. Disable this feature. |
---|
19962 | alias -g '${1+"$@"}'='"$@"' |
---|
19963 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
19964 | set -o posix |
---|
19965 | fi |
---|
19966 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19967 | |
---|
19968 | # Support unset when possible. |
---|
19969 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
19970 | as_unset=unset |
---|
19971 | else |
---|
19972 | as_unset=false |
---|
19973 | fi |
---|
19974 | |
---|
19975 | |
---|
19976 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
19977 | $as_unset ENV MAIL MAILPATH |
---|
19978 | PS1='$ ' |
---|
19979 | PS2='> ' |
---|
19980 | PS4='+ ' |
---|
19981 | |
---|
19982 | # NLS nuisances. |
---|
19983 | for as_var in \ |
---|
19984 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
19985 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
19986 | LC_TELEPHONE LC_TIME |
---|
19987 | do |
---|
19988 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
19989 | eval $as_var=C; export $as_var |
---|
19990 | else |
---|
19991 | $as_unset $as_var |
---|
19992 | fi |
---|
19993 | done |
---|
19994 | |
---|
19995 | # Required to use basename. |
---|
19996 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
19997 | as_expr=expr |
---|
19998 | else |
---|
19999 | as_expr=false |
---|
20000 | fi |
---|
20001 | |
---|
20002 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
20003 | as_basename=basename |
---|
20004 | else |
---|
20005 | as_basename=false |
---|
20006 | fi |
---|
20007 | |
---|
20008 | |
---|
20009 | # Name of the executable. |
---|
20010 | as_me=`$as_basename "$0" || |
---|
20011 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
20012 | X"$0" : 'X\(//\)$' \| \ |
---|
20013 | X"$0" : 'X\(/\)$' \| \ |
---|
20014 | . : '\(.\)' 2>/dev/null || |
---|
20015 | echo X/"$0" | |
---|
20016 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
20017 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
20018 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
20019 | s/.*/./; q'` |
---|
20020 | |
---|
20021 | |
---|
20022 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
20023 | # Avoid depending upon Character Ranges. |
---|
20024 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
20025 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
20026 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
20027 | as_cr_digits='0123456789' |
---|
20028 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
20029 | |
---|
20030 | # The user is always right. |
---|
20031 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
20032 | echo "#! /bin/sh" >conf$$.sh |
---|
20033 | echo "exit 0" >>conf$$.sh |
---|
20034 | chmod +x conf$$.sh |
---|
20035 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
20036 | PATH_SEPARATOR=';' |
---|
20037 | else |
---|
20038 | PATH_SEPARATOR=: |
---|
20039 | fi |
---|
20040 | rm -f conf$$.sh |
---|
20041 | fi |
---|
20042 | |
---|
20043 | |
---|
20044 | as_lineno_1=$LINENO |
---|
20045 | as_lineno_2=$LINENO |
---|
20046 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
20047 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
20048 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
20049 | # Find who we are. Look in the path if we contain no path at all |
---|
20050 | # relative or not. |
---|
20051 | case $0 in |
---|
20052 | *[\\/]* ) as_myself=$0 ;; |
---|
20053 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
20054 | for as_dir in $PATH |
---|
20055 | do |
---|
20056 | IFS=$as_save_IFS |
---|
20057 | test -z "$as_dir" && as_dir=. |
---|
20058 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
20059 | done |
---|
20060 | |
---|
20061 | ;; |
---|
20062 | esac |
---|
20063 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
20064 | # in which case we are not to be found in the path. |
---|
20065 | if test "x$as_myself" = x; then |
---|
20066 | as_myself=$0 |
---|
20067 | fi |
---|
20068 | if test ! -f "$as_myself"; then |
---|
20069 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
20070 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
20071 | { (exit 1); exit 1; }; } |
---|
20072 | fi |
---|
20073 | case $CONFIG_SHELL in |
---|
20074 | '') |
---|
20075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
20076 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
20077 | do |
---|
20078 | IFS=$as_save_IFS |
---|
20079 | test -z "$as_dir" && as_dir=. |
---|
20080 | for as_base in sh bash ksh sh5; do |
---|
20081 | case $as_dir in |
---|
20082 | /*) |
---|
20083 | if ("$as_dir/$as_base" -c ' |
---|
20084 | as_lineno_1=$LINENO |
---|
20085 | as_lineno_2=$LINENO |
---|
20086 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
20087 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
20088 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
20089 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
20090 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
20091 | CONFIG_SHELL=$as_dir/$as_base |
---|
20092 | export CONFIG_SHELL |
---|
20093 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
20094 | fi;; |
---|
20095 | esac |
---|
20096 | done |
---|
20097 | done |
---|
20098 | ;; |
---|
20099 | esac |
---|
20100 | |
---|
20101 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
20102 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
20103 | # line-number line before each line; the second 'sed' does the real |
---|
20104 | # work. The second script uses 'N' to pair each line-number line |
---|
20105 | # with the numbered line, and appends trailing '-' during |
---|
20106 | # substitution so that $LINENO is not a special case at line end. |
---|
20107 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
20108 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
20109 | sed '=' <$as_myself | |
---|
20110 | sed ' |
---|
20111 | N |
---|
20112 | s,$,-, |
---|
20113 | : loop |
---|
20114 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
20115 | t loop |
---|
20116 | s,-$,, |
---|
20117 | s,^['$as_cr_digits']*\n,, |
---|
20118 | ' >$as_me.lineno && |
---|
20119 | chmod +x $as_me.lineno || |
---|
20120 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
20121 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
20122 | { (exit 1); exit 1; }; } |
---|
20123 | |
---|
20124 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
20125 | # (the dirname of $[0] is not the place where we might find the |
---|
20126 | # original and so on. Autoconf is especially sensible to this). |
---|
20127 | . ./$as_me.lineno |
---|
20128 | # Exit status is that of the last command. |
---|
20129 | exit |
---|
20130 | } |
---|
20131 | |
---|
20132 | |
---|
20133 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
20134 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
20135 | ' ECHO_T=' ' ;; |
---|
20136 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
20137 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
20138 | esac |
---|
20139 | |
---|
20140 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
20141 | as_expr=expr |
---|
20142 | else |
---|
20143 | as_expr=false |
---|
20144 | fi |
---|
20145 | |
---|
20146 | rm -f conf$$ conf$$.exe conf$$.file |
---|
20147 | echo >conf$$.file |
---|
20148 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
20149 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
20150 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
20151 | if test -f conf$$.exe; then |
---|
20152 | # Don't use ln at all; we don't have any links |
---|
20153 | as_ln_s='cp -p' |
---|
20154 | else |
---|
20155 | as_ln_s='ln -s' |
---|
20156 | fi |
---|
20157 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
20158 | as_ln_s=ln |
---|
20159 | else |
---|
20160 | as_ln_s='cp -p' |
---|
20161 | fi |
---|
20162 | rm -f conf$$ conf$$.exe conf$$.file |
---|
20163 | |
---|
20164 | if mkdir -p . 2>/dev/null; then |
---|
20165 | as_mkdir_p=: |
---|
20166 | else |
---|
20167 | test -d ./-p && rmdir ./-p |
---|
20168 | as_mkdir_p=false |
---|
20169 | fi |
---|
20170 | |
---|
20171 | as_executable_p="test -f" |
---|
20172 | |
---|
20173 | # Sed expression to map a string onto a valid CPP name. |
---|
20174 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
20175 | |
---|
20176 | # Sed expression to map a string onto a valid variable name. |
---|
20177 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
20178 | |
---|
20179 | |
---|
20180 | # IFS |
---|
20181 | # We need space, tab and new line, in precisely that order. |
---|
20182 | as_nl=' |
---|
20183 | ' |
---|
20184 | IFS=" $as_nl" |
---|
20185 | |
---|
20186 | # CDPATH. |
---|
20187 | $as_unset CDPATH |
---|
20188 | |
---|
20189 | exec 6>&1 |
---|
20190 | |
---|
20191 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
20192 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
20193 | # values after options handling. Logging --version etc. is OK. |
---|
20194 | exec 5>>config.log |
---|
20195 | { |
---|
20196 | echo |
---|
20197 | sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX |
---|
20198 | @%:@@%:@ Running $as_me. @%:@@%:@ |
---|
20199 | _ASBOX |
---|
20200 | } >&5 |
---|
20201 | cat >&5 <<_CSEOF |
---|
20202 | |
---|
20203 | This file was extended by OGRE_REFAPP $as_me 0.10.0, which was |
---|
20204 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
20205 | |
---|
20206 | CONFIG_FILES = $CONFIG_FILES |
---|
20207 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
20208 | CONFIG_LINKS = $CONFIG_LINKS |
---|
20209 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
20210 | $ $0 $@ |
---|
20211 | |
---|
20212 | _CSEOF |
---|
20213 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
20214 | echo >&5 |
---|
20215 | _ACEOF |
---|
20216 | |
---|
20217 | # Files that config.status was made for. |
---|
20218 | if test -n "$ac_config_files"; then |
---|
20219 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
20220 | fi |
---|
20221 | |
---|
20222 | if test -n "$ac_config_headers"; then |
---|
20223 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
20224 | fi |
---|
20225 | |
---|
20226 | if test -n "$ac_config_links"; then |
---|
20227 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
20228 | fi |
---|
20229 | |
---|
20230 | if test -n "$ac_config_commands"; then |
---|
20231 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
20232 | fi |
---|
20233 | |
---|
20234 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20235 | |
---|
20236 | ac_cs_usage="\ |
---|
20237 | \`$as_me' instantiates files from templates according to the |
---|
20238 | current configuration. |
---|
20239 | |
---|
20240 | Usage: $0 [OPTIONS] [FILE]... |
---|
20241 | |
---|
20242 | -h, --help print this help, then exit |
---|
20243 | -V, --version print version number, then exit |
---|
20244 | -q, --quiet do not print progress messages |
---|
20245 | -d, --debug don't remove temporary files |
---|
20246 | --recheck update $as_me by reconfiguring in the same conditions |
---|
20247 | --file=FILE[:TEMPLATE] |
---|
20248 | instantiate the configuration file FILE |
---|
20249 | --header=FILE[:TEMPLATE] |
---|
20250 | instantiate the configuration header FILE |
---|
20251 | |
---|
20252 | Configuration files: |
---|
20253 | $config_files |
---|
20254 | |
---|
20255 | Configuration headers: |
---|
20256 | $config_headers |
---|
20257 | |
---|
20258 | Configuration commands: |
---|
20259 | $config_commands |
---|
20260 | |
---|
20261 | Report bugs to <bug-autoconf@gnu.org>." |
---|
20262 | _ACEOF |
---|
20263 | |
---|
20264 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20265 | ac_cs_version="\\ |
---|
20266 | OGRE_REFAPP config.status 0.10.0 |
---|
20267 | configured by $0, generated by GNU Autoconf 2.59, |
---|
20268 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
20269 | |
---|
20270 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
20271 | This config.status script is free software; the Free Software Foundation |
---|
20272 | gives unlimited permission to copy, distribute and modify it." |
---|
20273 | srcdir=$srcdir |
---|
20274 | INSTALL="$INSTALL" |
---|
20275 | _ACEOF |
---|
20276 | |
---|
20277 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20278 | # If no file are specified by the user, then we need to provide default |
---|
20279 | # value. By we need to know if files were specified by the user. |
---|
20280 | ac_need_defaults=: |
---|
20281 | while test $# != 0 |
---|
20282 | do |
---|
20283 | case $1 in |
---|
20284 | --*=*) |
---|
20285 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
20286 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
20287 | ac_shift=: |
---|
20288 | ;; |
---|
20289 | -*) |
---|
20290 | ac_option=$1 |
---|
20291 | ac_optarg=$2 |
---|
20292 | ac_shift=shift |
---|
20293 | ;; |
---|
20294 | *) # This is not an option, so the user has probably given explicit |
---|
20295 | # arguments. |
---|
20296 | ac_option=$1 |
---|
20297 | ac_need_defaults=false;; |
---|
20298 | esac |
---|
20299 | |
---|
20300 | case $ac_option in |
---|
20301 | # Handling of the options. |
---|
20302 | _ACEOF |
---|
20303 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20304 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
20305 | ac_cs_recheck=: ;; |
---|
20306 | --version | --vers* | -V ) |
---|
20307 | echo "$ac_cs_version"; exit 0 ;; |
---|
20308 | --he | --h) |
---|
20309 | # Conflict between --help and --header |
---|
20310 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
20311 | Try \`$0 --help' for more information." >&5 |
---|
20312 | echo "$as_me: error: ambiguous option: $1 |
---|
20313 | Try \`$0 --help' for more information." >&2;} |
---|
20314 | { (exit 1); exit 1; }; };; |
---|
20315 | --help | --hel | -h ) |
---|
20316 | echo "$ac_cs_usage"; exit 0 ;; |
---|
20317 | --debug | --d* | -d ) |
---|
20318 | debug=: ;; |
---|
20319 | --file | --fil | --fi | --f ) |
---|
20320 | $ac_shift |
---|
20321 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
20322 | ac_need_defaults=false;; |
---|
20323 | --header | --heade | --head | --hea ) |
---|
20324 | $ac_shift |
---|
20325 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
20326 | ac_need_defaults=false;; |
---|
20327 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
20328 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
20329 | ac_cs_silent=: ;; |
---|
20330 | |
---|
20331 | # This is an error. |
---|
20332 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
20333 | Try \`$0 --help' for more information." >&5 |
---|
20334 | echo "$as_me: error: unrecognized option: $1 |
---|
20335 | Try \`$0 --help' for more information." >&2;} |
---|
20336 | { (exit 1); exit 1; }; } ;; |
---|
20337 | |
---|
20338 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
20339 | |
---|
20340 | esac |
---|
20341 | shift |
---|
20342 | done |
---|
20343 | |
---|
20344 | ac_configure_extra_args= |
---|
20345 | |
---|
20346 | if $ac_cs_silent; then |
---|
20347 | exec 6>/dev/null |
---|
20348 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
20349 | fi |
---|
20350 | |
---|
20351 | _ACEOF |
---|
20352 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20353 | if \$ac_cs_recheck; then |
---|
20354 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
20355 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
20356 | fi |
---|
20357 | |
---|
20358 | _ACEOF |
---|
20359 | |
---|
20360 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20361 | # |
---|
20362 | # INIT-COMMANDS section. |
---|
20363 | # |
---|
20364 | |
---|
20365 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
20366 | |
---|
20367 | _ACEOF |
---|
20368 | |
---|
20369 | |
---|
20370 | |
---|
20371 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20372 | for ac_config_target in $ac_config_targets |
---|
20373 | do |
---|
20374 | case "$ac_config_target" in |
---|
20375 | # Handling of arguments. |
---|
20376 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
20377 | "ReferenceAppLayer/Makefile" ) CONFIG_FILES="$CONFIG_FILES ReferenceAppLayer/Makefile" ;; |
---|
20378 | "ReferenceAppLayer/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ReferenceAppLayer/src/Makefile" ;; |
---|
20379 | "ReferenceAppLayer/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES ReferenceAppLayer/include/Makefile" ;; |
---|
20380 | "BspCollision/Makefile" ) CONFIG_FILES="$CONFIG_FILES BspCollision/Makefile" ;; |
---|
20381 | "BspCollision/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BspCollision/src/Makefile" ;; |
---|
20382 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
20383 | "ReferenceAppLayer/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ReferenceAppLayer/include/config.h" ;; |
---|
20384 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
20385 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
20386 | { (exit 1); exit 1; }; };; |
---|
20387 | esac |
---|
20388 | done |
---|
20389 | |
---|
20390 | # If the user did not use the arguments to specify the items to instantiate, |
---|
20391 | # then the envvar interface is used. Set only those that are not. |
---|
20392 | # We use the long form for the default assignment because of an extremely |
---|
20393 | # bizarre bug on SunOS 4.1.3. |
---|
20394 | if $ac_need_defaults; then |
---|
20395 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
20396 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
20397 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
20398 | fi |
---|
20399 | |
---|
20400 | # Have a temporary directory for convenience. Make it in the build tree |
---|
20401 | # simply because there is no reason to put it here, and in addition, |
---|
20402 | # creating and moving files from /tmp can sometimes cause problems. |
---|
20403 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
20404 | $debug || |
---|
20405 | { |
---|
20406 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
20407 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
20408 | } |
---|
20409 | |
---|
20410 | # Create a (secure) tmp directory for tmp files. |
---|
20411 | |
---|
20412 | { |
---|
20413 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
20414 | test -n "$tmp" && test -d "$tmp" |
---|
20415 | } || |
---|
20416 | { |
---|
20417 | tmp=./confstat$$-$RANDOM |
---|
20418 | (umask 077 && mkdir $tmp) |
---|
20419 | } || |
---|
20420 | { |
---|
20421 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
20422 | { (exit 1); exit 1; } |
---|
20423 | } |
---|
20424 | |
---|
20425 | _ACEOF |
---|
20426 | |
---|
20427 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20428 | |
---|
20429 | # |
---|
20430 | # CONFIG_FILES section. |
---|
20431 | # |
---|
20432 | |
---|
20433 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
20434 | # This happens for instance when ./config.status config.h |
---|
20435 | if test -n "\$CONFIG_FILES"; then |
---|
20436 | # Protect against being on the right side of a sed subst in config.status. |
---|
20437 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
20438 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
20439 | s,@SHELL@,$SHELL,;t t |
---|
20440 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
20441 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
20442 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
20443 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
20444 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
20445 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
20446 | s,@exec_prefix@,$exec_prefix,;t t |
---|
20447 | s,@prefix@,$prefix,;t t |
---|
20448 | s,@program_transform_name@,$program_transform_name,;t t |
---|
20449 | s,@bindir@,$bindir,;t t |
---|
20450 | s,@sbindir@,$sbindir,;t t |
---|
20451 | s,@libexecdir@,$libexecdir,;t t |
---|
20452 | s,@datadir@,$datadir,;t t |
---|
20453 | s,@sysconfdir@,$sysconfdir,;t t |
---|
20454 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
20455 | s,@localstatedir@,$localstatedir,;t t |
---|
20456 | s,@libdir@,$libdir,;t t |
---|
20457 | s,@includedir@,$includedir,;t t |
---|
20458 | s,@oldincludedir@,$oldincludedir,;t t |
---|
20459 | s,@infodir@,$infodir,;t t |
---|
20460 | s,@mandir@,$mandir,;t t |
---|
20461 | s,@build_alias@,$build_alias,;t t |
---|
20462 | s,@host_alias@,$host_alias,;t t |
---|
20463 | s,@target_alias@,$target_alias,;t t |
---|
20464 | s,@DEFS@,$DEFS,;t t |
---|
20465 | s,@ECHO_C@,$ECHO_C,;t t |
---|
20466 | s,@ECHO_N@,$ECHO_N,;t t |
---|
20467 | s,@ECHO_T@,$ECHO_T,;t t |
---|
20468 | s,@LIBS@,$LIBS,;t t |
---|
20469 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
20470 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
20471 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
20472 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
20473 | s,@PACKAGE@,$PACKAGE,;t t |
---|
20474 | s,@VERSION@,$VERSION,;t t |
---|
20475 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
20476 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
20477 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
20478 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
20479 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
20480 | s,@install_sh@,$install_sh,;t t |
---|
20481 | s,@STRIP@,$STRIP,;t t |
---|
20482 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
20483 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
20484 | s,@mkdir_p@,$mkdir_p,;t t |
---|
20485 | s,@AWK@,$AWK,;t t |
---|
20486 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
20487 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
20488 | s,@AMTAR@,$AMTAR,;t t |
---|
20489 | s,@am__tar@,$am__tar,;t t |
---|
20490 | s,@am__untar@,$am__untar,;t t |
---|
20491 | s,@build@,$build,;t t |
---|
20492 | s,@build_cpu@,$build_cpu,;t t |
---|
20493 | s,@build_vendor@,$build_vendor,;t t |
---|
20494 | s,@build_os@,$build_os,;t t |
---|
20495 | s,@host@,$host,;t t |
---|
20496 | s,@host_cpu@,$host_cpu,;t t |
---|
20497 | s,@host_vendor@,$host_vendor,;t t |
---|
20498 | s,@host_os@,$host_os,;t t |
---|
20499 | s,@target@,$target,;t t |
---|
20500 | s,@target_cpu@,$target_cpu,;t t |
---|
20501 | s,@target_vendor@,$target_vendor,;t t |
---|
20502 | s,@target_os@,$target_os,;t t |
---|
20503 | s,@CC@,$CC,;t t |
---|
20504 | s,@CFLAGS@,$CFLAGS,;t t |
---|
20505 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
20506 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
20507 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
20508 | s,@EXEEXT@,$EXEEXT,;t t |
---|
20509 | s,@OBJEXT@,$OBJEXT,;t t |
---|
20510 | s,@DEPDIR@,$DEPDIR,;t t |
---|
20511 | s,@am__include@,$am__include,;t t |
---|
20512 | s,@am__quote@,$am__quote,;t t |
---|
20513 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
20514 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
20515 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
20516 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
20517 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
20518 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
20519 | s,@CXX@,$CXX,;t t |
---|
20520 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
20521 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
20522 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
20523 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
20524 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
20525 | s,@EGREP@,$EGREP,;t t |
---|
20526 | s,@LN_S@,$LN_S,;t t |
---|
20527 | s,@ECHO@,$ECHO,;t t |
---|
20528 | s,@AR@,$AR,;t t |
---|
20529 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
---|
20530 | s,@RANLIB@,$RANLIB,;t t |
---|
20531 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
20532 | s,@CPP@,$CPP,;t t |
---|
20533 | s,@CXXCPP@,$CXXCPP,;t t |
---|
20534 | s,@F77@,$F77,;t t |
---|
20535 | s,@FFLAGS@,$FFLAGS,;t t |
---|
20536 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
---|
20537 | s,@LIBTOOL@,$LIBTOOL,;t t |
---|
20538 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
20539 | s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t |
---|
20540 | s,@OGRE_CFLAGS@,$OGRE_CFLAGS,;t t |
---|
20541 | s,@OGRE_LIBS@,$OGRE_LIBS,;t t |
---|
20542 | s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t |
---|
20543 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
20544 | CEOF |
---|
20545 | |
---|
20546 | _ACEOF |
---|
20547 | |
---|
20548 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20549 | # Split the substitutions into bite-sized pieces for seds with |
---|
20550 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
20551 | ac_max_sed_lines=48 |
---|
20552 | ac_sed_frag=1 # Number of current file. |
---|
20553 | ac_beg=1 # First line for current file. |
---|
20554 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
20555 | ac_more_lines=: |
---|
20556 | ac_sed_cmds= |
---|
20557 | while $ac_more_lines; do |
---|
20558 | if test $ac_beg -gt 1; then |
---|
20559 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
20560 | else |
---|
20561 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
20562 | fi |
---|
20563 | if test ! -s $tmp/subs.frag; then |
---|
20564 | ac_more_lines=false |
---|
20565 | else |
---|
20566 | # The purpose of the label and of the branching condition is to |
---|
20567 | # speed up the sed processing (if there are no `@' at all, there |
---|
20568 | # is no need to browse any of the substitutions). |
---|
20569 | # These are the two extra sed commands mentioned above. |
---|
20570 | (echo ':t |
---|
20571 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
20572 | if test -z "$ac_sed_cmds"; then |
---|
20573 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
20574 | else |
---|
20575 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
20576 | fi |
---|
20577 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
20578 | ac_beg=$ac_end |
---|
20579 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
20580 | fi |
---|
20581 | done |
---|
20582 | if test -z "$ac_sed_cmds"; then |
---|
20583 | ac_sed_cmds=cat |
---|
20584 | fi |
---|
20585 | fi # test -n "$CONFIG_FILES" |
---|
20586 | |
---|
20587 | _ACEOF |
---|
20588 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20589 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
20590 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
20591 | case $ac_file in |
---|
20592 | - | *:- | *:-:* ) # input from stdin |
---|
20593 | cat >$tmp/stdin |
---|
20594 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
20595 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
20596 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
20597 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
20598 | * ) ac_file_in=$ac_file.in ;; |
---|
20599 | esac |
---|
20600 | |
---|
20601 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
20602 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
20603 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
20604 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
20605 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
20606 | X"$ac_file" : 'X\(/\)' \| \ |
---|
20607 | . : '\(.\)' 2>/dev/null || |
---|
20608 | echo X"$ac_file" | |
---|
20609 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
20610 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
20611 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
20612 | /^X\(\/\).*/{ s//\1/; q; } |
---|
20613 | s/.*/./; q'` |
---|
20614 | { if $as_mkdir_p; then |
---|
20615 | mkdir -p "$ac_dir" |
---|
20616 | else |
---|
20617 | as_dir="$ac_dir" |
---|
20618 | as_dirs= |
---|
20619 | while test ! -d "$as_dir"; do |
---|
20620 | as_dirs="$as_dir $as_dirs" |
---|
20621 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
20622 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
20623 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
20624 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
20625 | X"$as_dir" : 'X\(/\)' \| \ |
---|
20626 | . : '\(.\)' 2>/dev/null || |
---|
20627 | echo X"$as_dir" | |
---|
20628 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
20629 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
20630 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
20631 | /^X\(\/\).*/{ s//\1/; q; } |
---|
20632 | s/.*/./; q'` |
---|
20633 | done |
---|
20634 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
20635 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
20636 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
20637 | { (exit 1); exit 1; }; }; } |
---|
20638 | |
---|
20639 | ac_builddir=. |
---|
20640 | |
---|
20641 | if test "$ac_dir" != .; then |
---|
20642 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
20643 | # A "../" for each directory in $ac_dir_suffix. |
---|
20644 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
20645 | else |
---|
20646 | ac_dir_suffix= ac_top_builddir= |
---|
20647 | fi |
---|
20648 | |
---|
20649 | case $srcdir in |
---|
20650 | .) # No --srcdir option. We are building in place. |
---|
20651 | ac_srcdir=. |
---|
20652 | if test -z "$ac_top_builddir"; then |
---|
20653 | ac_top_srcdir=. |
---|
20654 | else |
---|
20655 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
20656 | fi ;; |
---|
20657 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
20658 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
20659 | ac_top_srcdir=$srcdir ;; |
---|
20660 | *) # Relative path. |
---|
20661 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
20662 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
20663 | esac |
---|
20664 | |
---|
20665 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
20666 | # the directories may not exist. |
---|
20667 | case `pwd` in |
---|
20668 | .) ac_abs_builddir="$ac_dir";; |
---|
20669 | *) |
---|
20670 | case "$ac_dir" in |
---|
20671 | .) ac_abs_builddir=`pwd`;; |
---|
20672 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
20673 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
20674 | esac;; |
---|
20675 | esac |
---|
20676 | case $ac_abs_builddir in |
---|
20677 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
20678 | *) |
---|
20679 | case ${ac_top_builddir}. in |
---|
20680 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
20681 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
20682 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
20683 | esac;; |
---|
20684 | esac |
---|
20685 | case $ac_abs_builddir in |
---|
20686 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
20687 | *) |
---|
20688 | case $ac_srcdir in |
---|
20689 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
20690 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
20691 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
20692 | esac;; |
---|
20693 | esac |
---|
20694 | case $ac_abs_builddir in |
---|
20695 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
20696 | *) |
---|
20697 | case $ac_top_srcdir in |
---|
20698 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
20699 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
20700 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
20701 | esac;; |
---|
20702 | esac |
---|
20703 | |
---|
20704 | |
---|
20705 | case $INSTALL in |
---|
20706 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
20707 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
20708 | esac |
---|
20709 | |
---|
20710 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
20711 | # use $as_me), people would be surprised to read: |
---|
20712 | # /* config.h. Generated by config.status. */ |
---|
20713 | if test x"$ac_file" = x-; then |
---|
20714 | configure_input= |
---|
20715 | else |
---|
20716 | configure_input="$ac_file. " |
---|
20717 | fi |
---|
20718 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
20719 | sed 's,.*/,,'` by configure." |
---|
20720 | |
---|
20721 | # First look for the input files in the build tree, otherwise in the |
---|
20722 | # src tree. |
---|
20723 | ac_file_inputs=`IFS=: |
---|
20724 | for f in $ac_file_in; do |
---|
20725 | case $f in |
---|
20726 | -) echo $tmp/stdin ;; |
---|
20727 | [\\/$]*) |
---|
20728 | # Absolute (can't be DOS-style, as IFS=:) |
---|
20729 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
20730 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
20731 | { (exit 1); exit 1; }; } |
---|
20732 | echo "$f";; |
---|
20733 | *) # Relative |
---|
20734 | if test -f "$f"; then |
---|
20735 | # Build tree |
---|
20736 | echo "$f" |
---|
20737 | elif test -f "$srcdir/$f"; then |
---|
20738 | # Source tree |
---|
20739 | echo "$srcdir/$f" |
---|
20740 | else |
---|
20741 | # /dev/null tree |
---|
20742 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
20743 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
20744 | { (exit 1); exit 1; }; } |
---|
20745 | fi;; |
---|
20746 | esac |
---|
20747 | done` || { (exit 1); exit 1; } |
---|
20748 | |
---|
20749 | if test x"$ac_file" != x-; then |
---|
20750 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
20751 | echo "$as_me: creating $ac_file" >&6;} |
---|
20752 | rm -f "$ac_file" |
---|
20753 | fi |
---|
20754 | _ACEOF |
---|
20755 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20756 | sed "$ac_vpsub |
---|
20757 | $extrasub |
---|
20758 | _ACEOF |
---|
20759 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20760 | :t |
---|
20761 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
20762 | s,@configure_input@,$configure_input,;t t |
---|
20763 | s,@srcdir@,$ac_srcdir,;t t |
---|
20764 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
20765 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
20766 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
20767 | s,@builddir@,$ac_builddir,;t t |
---|
20768 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
20769 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
20770 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
20771 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
20772 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
20773 | rm -f $tmp/stdin |
---|
20774 | if test x"$ac_file" != x-; then |
---|
20775 | mv $tmp/out $ac_file |
---|
20776 | else |
---|
20777 | cat $tmp/out |
---|
20778 | rm -f $tmp/out |
---|
20779 | fi |
---|
20780 | |
---|
20781 | done |
---|
20782 | _ACEOF |
---|
20783 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20784 | |
---|
20785 | # |
---|
20786 | # CONFIG_HEADER section. |
---|
20787 | # |
---|
20788 | |
---|
20789 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
20790 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
20791 | # |
---|
20792 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
20793 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
20794 | ac_dB='[ ].*$,\1#\2' |
---|
20795 | ac_dC=' ' |
---|
20796 | ac_dD=',;t' |
---|
20797 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
20798 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
20799 | ac_uB='$,\1#\2define\3' |
---|
20800 | ac_uC=' ' |
---|
20801 | ac_uD=',;t' |
---|
20802 | |
---|
20803 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
20804 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
20805 | case $ac_file in |
---|
20806 | - | *:- | *:-:* ) # input from stdin |
---|
20807 | cat >$tmp/stdin |
---|
20808 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
20809 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
20810 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
20811 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
20812 | * ) ac_file_in=$ac_file.in ;; |
---|
20813 | esac |
---|
20814 | |
---|
20815 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
20816 | echo "$as_me: creating $ac_file" >&6;} |
---|
20817 | |
---|
20818 | # First look for the input files in the build tree, otherwise in the |
---|
20819 | # src tree. |
---|
20820 | ac_file_inputs=`IFS=: |
---|
20821 | for f in $ac_file_in; do |
---|
20822 | case $f in |
---|
20823 | -) echo $tmp/stdin ;; |
---|
20824 | [\\/$]*) |
---|
20825 | # Absolute (can't be DOS-style, as IFS=:) |
---|
20826 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
20827 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
20828 | { (exit 1); exit 1; }; } |
---|
20829 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
20830 | echo "$f";; |
---|
20831 | *) # Relative |
---|
20832 | if test -f "$f"; then |
---|
20833 | # Build tree |
---|
20834 | echo "$f" |
---|
20835 | elif test -f "$srcdir/$f"; then |
---|
20836 | # Source tree |
---|
20837 | echo "$srcdir/$f" |
---|
20838 | else |
---|
20839 | # /dev/null tree |
---|
20840 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
20841 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
20842 | { (exit 1); exit 1; }; } |
---|
20843 | fi;; |
---|
20844 | esac |
---|
20845 | done` || { (exit 1); exit 1; } |
---|
20846 | # Remove the trailing spaces. |
---|
20847 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
20848 | |
---|
20849 | _ACEOF |
---|
20850 | |
---|
20851 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
20852 | # `conftest.undefs', that substitutes the proper values into |
---|
20853 | # config.h.in to produce config.h. The first handles `#define' |
---|
20854 | # templates, and the second `#undef' templates. |
---|
20855 | # And first: Protect against being on the right side of a sed subst in |
---|
20856 | # config.status. Protect against being in an unquoted here document |
---|
20857 | # in config.status. |
---|
20858 | rm -f conftest.defines conftest.undefs |
---|
20859 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
20860 | # Putting comments in sed scripts is not portable. |
---|
20861 | # |
---|
20862 | # `end' is used to avoid that the second main sed command (meant for |
---|
20863 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
20864 | # See the Autoconf documentation for `clear'. |
---|
20865 | cat >confdef2sed.sed <<\_ACEOF |
---|
20866 | s/[\\&,]/\\&/g |
---|
20867 | s,[\\$`],\\&,g |
---|
20868 | t clear |
---|
20869 | : clear |
---|
20870 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
20871 | t end |
---|
20872 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
20873 | : end |
---|
20874 | _ACEOF |
---|
20875 | # If some macros were called several times there might be several times |
---|
20876 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
20877 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
20878 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
20879 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
20880 | rm -f confdef2sed.sed |
---|
20881 | |
---|
20882 | # This sed command replaces #undef with comments. This is necessary, for |
---|
20883 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
20884 | # on some systems where configure will not decide to define it. |
---|
20885 | cat >>conftest.undefs <<\_ACEOF |
---|
20886 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
20887 | _ACEOF |
---|
20888 | |
---|
20889 | # Break up conftest.defines because some shells have a limit on the size |
---|
20890 | # of here documents, and old seds have small limits too (100 cmds). |
---|
20891 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
20892 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
20893 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
20894 | echo ' :' >>$CONFIG_STATUS |
---|
20895 | rm -f conftest.tail |
---|
20896 | while grep . conftest.defines >/dev/null |
---|
20897 | do |
---|
20898 | # Write a limited-size here document to $tmp/defines.sed. |
---|
20899 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
20900 | # Speed up: don't consider the non `#define' lines. |
---|
20901 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
20902 | # Work around the forget-to-reset-the-flag bug. |
---|
20903 | echo 't clr' >>$CONFIG_STATUS |
---|
20904 | echo ': clr' >>$CONFIG_STATUS |
---|
20905 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
20906 | echo 'CEOF |
---|
20907 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
20908 | rm -f $tmp/in |
---|
20909 | mv $tmp/out $tmp/in |
---|
20910 | ' >>$CONFIG_STATUS |
---|
20911 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
20912 | rm -f conftest.defines |
---|
20913 | mv conftest.tail conftest.defines |
---|
20914 | done |
---|
20915 | rm -f conftest.defines |
---|
20916 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
20917 | echo >>$CONFIG_STATUS |
---|
20918 | |
---|
20919 | # Break up conftest.undefs because some shells have a limit on the size |
---|
20920 | # of here documents, and old seds have small limits too (100 cmds). |
---|
20921 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
20922 | rm -f conftest.tail |
---|
20923 | while grep . conftest.undefs >/dev/null |
---|
20924 | do |
---|
20925 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
20926 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
20927 | # Speed up: don't consider the non `#undef' |
---|
20928 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
20929 | # Work around the forget-to-reset-the-flag bug. |
---|
20930 | echo 't clr' >>$CONFIG_STATUS |
---|
20931 | echo ': clr' >>$CONFIG_STATUS |
---|
20932 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
20933 | echo 'CEOF |
---|
20934 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
20935 | rm -f $tmp/in |
---|
20936 | mv $tmp/out $tmp/in |
---|
20937 | ' >>$CONFIG_STATUS |
---|
20938 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
20939 | rm -f conftest.undefs |
---|
20940 | mv conftest.tail conftest.undefs |
---|
20941 | done |
---|
20942 | rm -f conftest.undefs |
---|
20943 | |
---|
20944 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20945 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
20946 | # use $as_me), people would be surprised to read: |
---|
20947 | # /* config.h. Generated by config.status. */ |
---|
20948 | if test x"$ac_file" = x-; then |
---|
20949 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
20950 | else |
---|
20951 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
20952 | fi |
---|
20953 | cat $tmp/in >>$tmp/config.h |
---|
20954 | rm -f $tmp/in |
---|
20955 | if test x"$ac_file" != x-; then |
---|
20956 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
20957 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
20958 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
20959 | else |
---|
20960 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
20961 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
20962 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
20963 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
20964 | X"$ac_file" : 'X\(/\)' \| \ |
---|
20965 | . : '\(.\)' 2>/dev/null || |
---|
20966 | echo X"$ac_file" | |
---|
20967 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
20968 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
20969 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
20970 | /^X\(\/\).*/{ s//\1/; q; } |
---|
20971 | s/.*/./; q'` |
---|
20972 | { if $as_mkdir_p; then |
---|
20973 | mkdir -p "$ac_dir" |
---|
20974 | else |
---|
20975 | as_dir="$ac_dir" |
---|
20976 | as_dirs= |
---|
20977 | while test ! -d "$as_dir"; do |
---|
20978 | as_dirs="$as_dir $as_dirs" |
---|
20979 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
20980 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
20981 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
20982 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
20983 | X"$as_dir" : 'X\(/\)' \| \ |
---|
20984 | . : '\(.\)' 2>/dev/null || |
---|
20985 | echo X"$as_dir" | |
---|
20986 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
20987 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
20988 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
20989 | /^X\(\/\).*/{ s//\1/; q; } |
---|
20990 | s/.*/./; q'` |
---|
20991 | done |
---|
20992 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
20993 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
20994 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
20995 | { (exit 1); exit 1; }; }; } |
---|
20996 | |
---|
20997 | rm -f $ac_file |
---|
20998 | mv $tmp/config.h $ac_file |
---|
20999 | fi |
---|
21000 | else |
---|
21001 | cat $tmp/config.h |
---|
21002 | rm -f $tmp/config.h |
---|
21003 | fi |
---|
21004 | # Compute $ac_file's index in $config_headers. |
---|
21005 | _am_stamp_count=1 |
---|
21006 | for _am_header in $config_headers :; do |
---|
21007 | case $_am_header in |
---|
21008 | $ac_file | $ac_file:* ) |
---|
21009 | break ;; |
---|
21010 | * ) |
---|
21011 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
21012 | esac |
---|
21013 | done |
---|
21014 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
21015 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21016 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
21017 | X$ac_file : 'X\(//\)$' \| \ |
---|
21018 | X$ac_file : 'X\(/\)' \| \ |
---|
21019 | . : '\(.\)' 2>/dev/null || |
---|
21020 | echo X$ac_file | |
---|
21021 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21022 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21023 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21024 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21025 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
21026 | done |
---|
21027 | _ACEOF |
---|
21028 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
21029 | |
---|
21030 | # |
---|
21031 | # CONFIG_COMMANDS section. |
---|
21032 | # |
---|
21033 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
21034 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
21035 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
21036 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
21037 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21038 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
21039 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
21040 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
21041 | . : '\(.\)' 2>/dev/null || |
---|
21042 | echo X"$ac_dest" | |
---|
21043 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21044 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21045 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21046 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21047 | s/.*/./; q'` |
---|
21048 | { if $as_mkdir_p; then |
---|
21049 | mkdir -p "$ac_dir" |
---|
21050 | else |
---|
21051 | as_dir="$ac_dir" |
---|
21052 | as_dirs= |
---|
21053 | while test ! -d "$as_dir"; do |
---|
21054 | as_dirs="$as_dir $as_dirs" |
---|
21055 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
21056 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21057 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
21058 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
21059 | X"$as_dir" : 'X\(/\)' \| \ |
---|
21060 | . : '\(.\)' 2>/dev/null || |
---|
21061 | echo X"$as_dir" | |
---|
21062 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21063 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21064 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21065 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21066 | s/.*/./; q'` |
---|
21067 | done |
---|
21068 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
21069 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
21070 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
21071 | { (exit 1); exit 1; }; }; } |
---|
21072 | |
---|
21073 | ac_builddir=. |
---|
21074 | |
---|
21075 | if test "$ac_dir" != .; then |
---|
21076 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
21077 | # A "../" for each directory in $ac_dir_suffix. |
---|
21078 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
21079 | else |
---|
21080 | ac_dir_suffix= ac_top_builddir= |
---|
21081 | fi |
---|
21082 | |
---|
21083 | case $srcdir in |
---|
21084 | .) # No --srcdir option. We are building in place. |
---|
21085 | ac_srcdir=. |
---|
21086 | if test -z "$ac_top_builddir"; then |
---|
21087 | ac_top_srcdir=. |
---|
21088 | else |
---|
21089 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
21090 | fi ;; |
---|
21091 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
21092 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
21093 | ac_top_srcdir=$srcdir ;; |
---|
21094 | *) # Relative path. |
---|
21095 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
21096 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
21097 | esac |
---|
21098 | |
---|
21099 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
21100 | # the directories may not exist. |
---|
21101 | case `pwd` in |
---|
21102 | .) ac_abs_builddir="$ac_dir";; |
---|
21103 | *) |
---|
21104 | case "$ac_dir" in |
---|
21105 | .) ac_abs_builddir=`pwd`;; |
---|
21106 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
21107 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
21108 | esac;; |
---|
21109 | esac |
---|
21110 | case $ac_abs_builddir in |
---|
21111 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
21112 | *) |
---|
21113 | case ${ac_top_builddir}. in |
---|
21114 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
21115 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
21116 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
21117 | esac;; |
---|
21118 | esac |
---|
21119 | case $ac_abs_builddir in |
---|
21120 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
21121 | *) |
---|
21122 | case $ac_srcdir in |
---|
21123 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
21124 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
21125 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
21126 | esac;; |
---|
21127 | esac |
---|
21128 | case $ac_abs_builddir in |
---|
21129 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
21130 | *) |
---|
21131 | case $ac_top_srcdir in |
---|
21132 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
21133 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
21134 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
21135 | esac;; |
---|
21136 | esac |
---|
21137 | |
---|
21138 | |
---|
21139 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
21140 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
21141 | case $ac_dest in |
---|
21142 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
21143 | # Strip MF so we end up with the name of the file. |
---|
21144 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
21145 | # Check whether this is an Automake generated Makefile or not. |
---|
21146 | # We used to match only the files named `Makefile.in', but |
---|
21147 | # some people rename them; so instead we look at the file content. |
---|
21148 | # Grep'ing the first line is not enough: some people post-process |
---|
21149 | # each Makefile.in and add a new line on top of each file to say so. |
---|
21150 | # So let's grep whole file. |
---|
21151 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
21152 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
21153 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21154 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
21155 | X"$mf" : 'X\(//\)$' \| \ |
---|
21156 | X"$mf" : 'X\(/\)' \| \ |
---|
21157 | . : '\(.\)' 2>/dev/null || |
---|
21158 | echo X"$mf" | |
---|
21159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21160 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21161 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21162 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21163 | s/.*/./; q'` |
---|
21164 | else |
---|
21165 | continue |
---|
21166 | fi |
---|
21167 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
21168 | # from the Makefile without running `make'. |
---|
21169 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
21170 | test -z "$DEPDIR" && continue |
---|
21171 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
21172 | test -z "am__include" && continue |
---|
21173 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
21174 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
21175 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
21176 | # Find all dependency output files, they are included files with |
---|
21177 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
21178 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
21179 | # expansion. |
---|
21180 | for file in `sed -n " |
---|
21181 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
21182 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
21183 | # Make sure the directory exists. |
---|
21184 | test -f "$dirpart/$file" && continue |
---|
21185 | fdir=`(dirname "$file") 2>/dev/null || |
---|
21186 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21187 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
21188 | X"$file" : 'X\(//\)$' \| \ |
---|
21189 | X"$file" : 'X\(/\)' \| \ |
---|
21190 | . : '\(.\)' 2>/dev/null || |
---|
21191 | echo X"$file" | |
---|
21192 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21193 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21194 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21195 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21196 | s/.*/./; q'` |
---|
21197 | { if $as_mkdir_p; then |
---|
21198 | mkdir -p $dirpart/$fdir |
---|
21199 | else |
---|
21200 | as_dir=$dirpart/$fdir |
---|
21201 | as_dirs= |
---|
21202 | while test ! -d "$as_dir"; do |
---|
21203 | as_dirs="$as_dir $as_dirs" |
---|
21204 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
21205 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21206 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
21207 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
21208 | X"$as_dir" : 'X\(/\)' \| \ |
---|
21209 | . : '\(.\)' 2>/dev/null || |
---|
21210 | echo X"$as_dir" | |
---|
21211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21212 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21213 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21214 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21215 | s/.*/./; q'` |
---|
21216 | done |
---|
21217 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
21218 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
21219 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
21220 | { (exit 1); exit 1; }; }; } |
---|
21221 | |
---|
21222 | # echo "creating $dirpart/$file" |
---|
21223 | echo '# dummy' > "$dirpart/$file" |
---|
21224 | done |
---|
21225 | done |
---|
21226 | ;; |
---|
21227 | esac |
---|
21228 | done |
---|
21229 | _ACEOF |
---|
21230 | |
---|
21231 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
21232 | |
---|
21233 | { (exit 0); exit 0; } |
---|
21234 | _ACEOF |
---|
21235 | chmod +x $CONFIG_STATUS |
---|
21236 | ac_clean_files=$ac_clean_files_save |
---|
21237 | |
---|
21238 | |
---|
21239 | # configure is writing to config.log, and then calls config.status. |
---|
21240 | # config.status does its own redirection, appending to config.log. |
---|
21241 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
21242 | # by configure, so config.status won't be able to write to it; its |
---|
21243 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
21244 | # effectively closing config.log, so it can be properly (re)opened and |
---|
21245 | # appended to by config.status. When coming back to configure, we |
---|
21246 | # need to make the FD available again. |
---|
21247 | if test "$no_create" != yes; then |
---|
21248 | ac_cs_success=: |
---|
21249 | ac_config_status_args= |
---|
21250 | test "$silent" = yes && |
---|
21251 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
21252 | exec 5>/dev/null |
---|
21253 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
21254 | exec 5>>config.log |
---|
21255 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
21256 | # would make configure fail if this is the last instruction. |
---|
21257 | $ac_cs_success || { (exit 1); exit 1; } |
---|
21258 | fi |
---|
21259 | |
---|