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 | ## CAVEAT EMPTOR: |
---|
6342 | ## There is no encapsulation within the following macros, do not change |
---|
6343 | ## the running order or otherwise move them around unless you know exactly |
---|
6344 | ## what you are doing... |
---|
6345 | |
---|
6346 | lt_prog_compiler_no_builtin_flag= |
---|
6347 | |
---|
6348 | if test "$GCC" = yes; then |
---|
6349 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
6350 | |
---|
6351 | |
---|
6352 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
6353 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
6354 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
6355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6356 | else |
---|
6357 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
6358 | ac_outfile=conftest.$ac_objext |
---|
6359 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
6360 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
6361 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
6362 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
6363 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
6364 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
6365 | # The option is referenced via a variable to avoid confusing sed. |
---|
6366 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
6367 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
6368 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
6369 | -e 's:$: $lt_compiler_flag:'` |
---|
6370 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
6371 | (eval "$lt_compile" 2>conftest.err) |
---|
6372 | ac_status=$? |
---|
6373 | cat conftest.err >&5 |
---|
6374 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
6375 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
6376 | # The compiler can only warn and ignore the option if not recognized |
---|
6377 | # So say no if there are warnings |
---|
6378 | if test ! -s conftest.err; then |
---|
6379 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
6380 | fi |
---|
6381 | fi |
---|
6382 | $rm conftest* |
---|
6383 | |
---|
6384 | fi |
---|
6385 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
6386 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
6387 | |
---|
6388 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
6389 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
6390 | else |
---|
6391 | : |
---|
6392 | fi |
---|
6393 | |
---|
6394 | fi |
---|
6395 | |
---|
6396 | lt_prog_compiler_wl= |
---|
6397 | lt_prog_compiler_pic= |
---|
6398 | lt_prog_compiler_static= |
---|
6399 | |
---|
6400 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
6401 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
6402 | |
---|
6403 | if test "$GCC" = yes; then |
---|
6404 | lt_prog_compiler_wl='-Wl,' |
---|
6405 | lt_prog_compiler_static='-static' |
---|
6406 | |
---|
6407 | case $host_os in |
---|
6408 | aix*) |
---|
6409 | # All AIX code is PIC. |
---|
6410 | if test "$host_cpu" = ia64; then |
---|
6411 | # AIX 5 now supports IA64 processor |
---|
6412 | lt_prog_compiler_static='-Bstatic' |
---|
6413 | fi |
---|
6414 | ;; |
---|
6415 | |
---|
6416 | amigaos*) |
---|
6417 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
6418 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
6419 | # like `-m68040'. |
---|
6420 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
6421 | ;; |
---|
6422 | |
---|
6423 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
6424 | # PIC is the default for these OSes. |
---|
6425 | ;; |
---|
6426 | |
---|
6427 | mingw* | pw32* | os2*) |
---|
6428 | # This hack is so that the source file can tell whether it is being |
---|
6429 | # built for inclusion in a dll (and should export symbols for example). |
---|
6430 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
6431 | ;; |
---|
6432 | |
---|
6433 | darwin* | rhapsody*) |
---|
6434 | # PIC is the default on this platform |
---|
6435 | # Common symbols not allowed in MH_DYLIB files |
---|
6436 | lt_prog_compiler_pic='-fno-common' |
---|
6437 | ;; |
---|
6438 | |
---|
6439 | msdosdjgpp*) |
---|
6440 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
6441 | # on systems that don't support them. |
---|
6442 | lt_prog_compiler_can_build_shared=no |
---|
6443 | enable_shared=no |
---|
6444 | ;; |
---|
6445 | |
---|
6446 | sysv4*MP*) |
---|
6447 | if test -d /usr/nec; then |
---|
6448 | lt_prog_compiler_pic=-Kconform_pic |
---|
6449 | fi |
---|
6450 | ;; |
---|
6451 | |
---|
6452 | hpux*) |
---|
6453 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
6454 | # not for PA HP-UX. |
---|
6455 | case "$host_cpu" in |
---|
6456 | hppa*64*|ia64*) |
---|
6457 | # +Z the default |
---|
6458 | ;; |
---|
6459 | *) |
---|
6460 | lt_prog_compiler_pic='-fPIC' |
---|
6461 | ;; |
---|
6462 | esac |
---|
6463 | ;; |
---|
6464 | |
---|
6465 | *) |
---|
6466 | lt_prog_compiler_pic='-fPIC' |
---|
6467 | ;; |
---|
6468 | esac |
---|
6469 | else |
---|
6470 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
6471 | case $host_os in |
---|
6472 | aix*) |
---|
6473 | lt_prog_compiler_wl='-Wl,' |
---|
6474 | if test "$host_cpu" = ia64; then |
---|
6475 | # AIX 5 now supports IA64 processor |
---|
6476 | lt_prog_compiler_static='-Bstatic' |
---|
6477 | else |
---|
6478 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
6479 | fi |
---|
6480 | ;; |
---|
6481 | |
---|
6482 | mingw* | pw32* | os2*) |
---|
6483 | # This hack is so that the source file can tell whether it is being |
---|
6484 | # built for inclusion in a dll (and should export symbols for example). |
---|
6485 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
6486 | ;; |
---|
6487 | |
---|
6488 | hpux9* | hpux10* | hpux11*) |
---|
6489 | lt_prog_compiler_wl='-Wl,' |
---|
6490 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
6491 | # not for PA HP-UX. |
---|
6492 | case "$host_cpu" in |
---|
6493 | hppa*64*|ia64*) |
---|
6494 | # +Z the default |
---|
6495 | ;; |
---|
6496 | *) |
---|
6497 | lt_prog_compiler_pic='+Z' |
---|
6498 | ;; |
---|
6499 | esac |
---|
6500 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
6501 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
6502 | ;; |
---|
6503 | |
---|
6504 | irix5* | irix6* | nonstopux*) |
---|
6505 | lt_prog_compiler_wl='-Wl,' |
---|
6506 | # PIC (with -KPIC) is the default. |
---|
6507 | lt_prog_compiler_static='-non_shared' |
---|
6508 | ;; |
---|
6509 | |
---|
6510 | newsos6) |
---|
6511 | lt_prog_compiler_pic='-KPIC' |
---|
6512 | lt_prog_compiler_static='-Bstatic' |
---|
6513 | ;; |
---|
6514 | |
---|
6515 | linux*) |
---|
6516 | case $CC in |
---|
6517 | icc* | ecc*) |
---|
6518 | lt_prog_compiler_wl='-Wl,' |
---|
6519 | lt_prog_compiler_pic='-KPIC' |
---|
6520 | lt_prog_compiler_static='-static' |
---|
6521 | ;; |
---|
6522 | ccc*) |
---|
6523 | lt_prog_compiler_wl='-Wl,' |
---|
6524 | # All Alpha code is PIC. |
---|
6525 | lt_prog_compiler_static='-non_shared' |
---|
6526 | ;; |
---|
6527 | esac |
---|
6528 | ;; |
---|
6529 | |
---|
6530 | osf3* | osf4* | osf5*) |
---|
6531 | lt_prog_compiler_wl='-Wl,' |
---|
6532 | # All OSF/1 code is PIC. |
---|
6533 | lt_prog_compiler_static='-non_shared' |
---|
6534 | ;; |
---|
6535 | |
---|
6536 | sco3.2v5*) |
---|
6537 | lt_prog_compiler_pic='-Kpic' |
---|
6538 | lt_prog_compiler_static='-dn' |
---|
6539 | ;; |
---|
6540 | |
---|
6541 | solaris*) |
---|
6542 | lt_prog_compiler_wl='-Wl,' |
---|
6543 | lt_prog_compiler_pic='-KPIC' |
---|
6544 | lt_prog_compiler_static='-Bstatic' |
---|
6545 | ;; |
---|
6546 | |
---|
6547 | sunos4*) |
---|
6548 | lt_prog_compiler_wl='-Qoption ld ' |
---|
6549 | lt_prog_compiler_pic='-PIC' |
---|
6550 | lt_prog_compiler_static='-Bstatic' |
---|
6551 | ;; |
---|
6552 | |
---|
6553 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
6554 | lt_prog_compiler_wl='-Wl,' |
---|
6555 | lt_prog_compiler_pic='-KPIC' |
---|
6556 | lt_prog_compiler_static='-Bstatic' |
---|
6557 | ;; |
---|
6558 | |
---|
6559 | sysv4*MP*) |
---|
6560 | if test -d /usr/nec ;then |
---|
6561 | lt_prog_compiler_pic='-Kconform_pic' |
---|
6562 | lt_prog_compiler_static='-Bstatic' |
---|
6563 | fi |
---|
6564 | ;; |
---|
6565 | |
---|
6566 | uts4*) |
---|
6567 | lt_prog_compiler_pic='-pic' |
---|
6568 | lt_prog_compiler_static='-Bstatic' |
---|
6569 | ;; |
---|
6570 | |
---|
6571 | *) |
---|
6572 | lt_prog_compiler_can_build_shared=no |
---|
6573 | ;; |
---|
6574 | esac |
---|
6575 | fi |
---|
6576 | |
---|
6577 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
6578 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
6579 | |
---|
6580 | # |
---|
6581 | # Check to make sure the PIC flag actually works. |
---|
6582 | # |
---|
6583 | if test -n "$lt_prog_compiler_pic"; then |
---|
6584 | |
---|
6585 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
6586 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
6587 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
6588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6589 | else |
---|
6590 | lt_prog_compiler_pic_works=no |
---|
6591 | ac_outfile=conftest.$ac_objext |
---|
6592 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
6593 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
6594 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
6595 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
6596 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
6597 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
6598 | # The option is referenced via a variable to avoid confusing sed. |
---|
6599 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
6600 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
6601 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
6602 | -e 's:$: $lt_compiler_flag:'` |
---|
6603 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
6604 | (eval "$lt_compile" 2>conftest.err) |
---|
6605 | ac_status=$? |
---|
6606 | cat conftest.err >&5 |
---|
6607 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
6608 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
6609 | # The compiler can only warn and ignore the option if not recognized |
---|
6610 | # So say no if there are warnings |
---|
6611 | if test ! -s conftest.err; then |
---|
6612 | lt_prog_compiler_pic_works=yes |
---|
6613 | fi |
---|
6614 | fi |
---|
6615 | $rm conftest* |
---|
6616 | |
---|
6617 | fi |
---|
6618 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
6619 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
6620 | |
---|
6621 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
6622 | case $lt_prog_compiler_pic in |
---|
6623 | "" | " "*) ;; |
---|
6624 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
6625 | esac |
---|
6626 | else |
---|
6627 | lt_prog_compiler_pic= |
---|
6628 | lt_prog_compiler_can_build_shared=no |
---|
6629 | fi |
---|
6630 | |
---|
6631 | fi |
---|
6632 | case "$host_os" in |
---|
6633 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
6634 | *djgpp*) |
---|
6635 | lt_prog_compiler_pic= |
---|
6636 | ;; |
---|
6637 | *) |
---|
6638 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
6639 | ;; |
---|
6640 | esac |
---|
6641 | |
---|
6642 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
6643 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
6644 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
6645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6646 | else |
---|
6647 | lt_cv_prog_compiler_c_o=no |
---|
6648 | $rm -r conftest 2>/dev/null |
---|
6649 | mkdir conftest |
---|
6650 | cd conftest |
---|
6651 | mkdir out |
---|
6652 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
6653 | |
---|
6654 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
6655 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
6656 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
6657 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
6658 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
6659 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
6660 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
6661 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
6662 | -e 's:$: $lt_compiler_flag:'` |
---|
6663 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
6664 | (eval "$lt_compile" 2>out/conftest.err) |
---|
6665 | ac_status=$? |
---|
6666 | cat out/conftest.err >&5 |
---|
6667 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
6668 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
6669 | then |
---|
6670 | # The compiler can only warn and ignore the option if not recognized |
---|
6671 | # So say no if there are warnings |
---|
6672 | if test ! -s out/conftest.err; then |
---|
6673 | lt_cv_prog_compiler_c_o=yes |
---|
6674 | fi |
---|
6675 | fi |
---|
6676 | chmod u+w . |
---|
6677 | $rm conftest* |
---|
6678 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
6679 | # template instantiation |
---|
6680 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
6681 | $rm out/* && rmdir out |
---|
6682 | cd .. |
---|
6683 | rmdir conftest |
---|
6684 | $rm conftest* |
---|
6685 | |
---|
6686 | fi |
---|
6687 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
6688 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
6689 | |
---|
6690 | |
---|
6691 | hard_links="nottested" |
---|
6692 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
6693 | # do not overwrite the value of need_locks provided by the user |
---|
6694 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
6695 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
6696 | hard_links=yes |
---|
6697 | $rm conftest* |
---|
6698 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
6699 | touch conftest.a |
---|
6700 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
6701 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
6702 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
6703 | echo "${ECHO_T}$hard_links" >&6 |
---|
6704 | if test "$hard_links" = no; then |
---|
6705 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
6706 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
6707 | need_locks=warn |
---|
6708 | fi |
---|
6709 | else |
---|
6710 | need_locks=no |
---|
6711 | fi |
---|
6712 | |
---|
6713 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
6714 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
6715 | |
---|
6716 | runpath_var= |
---|
6717 | allow_undefined_flag= |
---|
6718 | enable_shared_with_static_runtimes=no |
---|
6719 | archive_cmds= |
---|
6720 | archive_expsym_cmds= |
---|
6721 | old_archive_From_new_cmds= |
---|
6722 | old_archive_from_expsyms_cmds= |
---|
6723 | export_dynamic_flag_spec= |
---|
6724 | whole_archive_flag_spec= |
---|
6725 | thread_safe_flag_spec= |
---|
6726 | hardcode_libdir_flag_spec= |
---|
6727 | hardcode_libdir_flag_spec_ld= |
---|
6728 | hardcode_libdir_separator= |
---|
6729 | hardcode_direct=no |
---|
6730 | hardcode_minus_L=no |
---|
6731 | hardcode_shlibpath_var=unsupported |
---|
6732 | link_all_deplibs=unknown |
---|
6733 | hardcode_automatic=no |
---|
6734 | module_cmds= |
---|
6735 | module_expsym_cmds= |
---|
6736 | always_export_symbols=no |
---|
6737 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
6738 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
6739 | # included in the symbol list |
---|
6740 | include_expsyms= |
---|
6741 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
6742 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
6743 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
6744 | # as well as any symbol that contains `d'. |
---|
6745 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
6746 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
6747 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
6748 | # the symbol is explicitly referenced. Since portable code cannot |
---|
6749 | # rely on this symbol name, it's probably fine to never include it in |
---|
6750 | # preloaded symbol tables. |
---|
6751 | extract_expsyms_cmds= |
---|
6752 | |
---|
6753 | case $host_os in |
---|
6754 | cygwin* | mingw* | pw32*) |
---|
6755 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
6756 | # When not using gcc, we currently assume that we are using |
---|
6757 | # Microsoft Visual C++. |
---|
6758 | if test "$GCC" != yes; then |
---|
6759 | with_gnu_ld=no |
---|
6760 | fi |
---|
6761 | ;; |
---|
6762 | openbsd*) |
---|
6763 | with_gnu_ld=no |
---|
6764 | ;; |
---|
6765 | esac |
---|
6766 | |
---|
6767 | ld_shlibs=yes |
---|
6768 | if test "$with_gnu_ld" = yes; then |
---|
6769 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
6770 | wlarc='${wl}' |
---|
6771 | |
---|
6772 | # See if GNU ld supports shared libraries. |
---|
6773 | case $host_os in |
---|
6774 | aix3* | aix4* | aix5*) |
---|
6775 | # On AIX/PPC, the GNU linker is very broken |
---|
6776 | if test "$host_cpu" != ia64; then |
---|
6777 | ld_shlibs=no |
---|
6778 | cat <<EOF 1>&2 |
---|
6779 | |
---|
6780 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
6781 | *** to be unable to reliably create shared libraries on AIX. |
---|
6782 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
6783 | *** really care for shared libraries, you may want to modify your PATH |
---|
6784 | *** so that a non-GNU linker is found, and then restart. |
---|
6785 | |
---|
6786 | EOF |
---|
6787 | fi |
---|
6788 | ;; |
---|
6789 | |
---|
6790 | amigaos*) |
---|
6791 | 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)' |
---|
6792 | hardcode_libdir_flag_spec='-L$libdir' |
---|
6793 | hardcode_minus_L=yes |
---|
6794 | |
---|
6795 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
6796 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
6797 | # to version 4, is to share data among multiple programs linked |
---|
6798 | # with the same dynamic library. Since this doesn't match the |
---|
6799 | # behavior of shared libraries on other platforms, we can't use |
---|
6800 | # them. |
---|
6801 | ld_shlibs=no |
---|
6802 | ;; |
---|
6803 | |
---|
6804 | beos*) |
---|
6805 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6806 | allow_undefined_flag=unsupported |
---|
6807 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
6808 | # support --undefined. This deserves some investigation. FIXME |
---|
6809 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6810 | else |
---|
6811 | ld_shlibs=no |
---|
6812 | fi |
---|
6813 | ;; |
---|
6814 | |
---|
6815 | cygwin* | mingw* | pw32*) |
---|
6816 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
6817 | # as there is no search path for DLLs. |
---|
6818 | hardcode_libdir_flag_spec='-L$libdir' |
---|
6819 | allow_undefined_flag=unsupported |
---|
6820 | always_export_symbols=no |
---|
6821 | enable_shared_with_static_runtimes=yes |
---|
6822 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
6823 | |
---|
6824 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
6825 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
6826 | # If the export-symbols file already is a .def file (1st line |
---|
6827 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
6828 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
6829 | cp $export_symbols $output_objdir/$soname.def; |
---|
6830 | else |
---|
6831 | echo EXPORTS > $output_objdir/$soname.def; |
---|
6832 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
6833 | fi~ |
---|
6834 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
6835 | else |
---|
6836 | ld_shlibs=no |
---|
6837 | fi |
---|
6838 | ;; |
---|
6839 | |
---|
6840 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
6841 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
6842 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
6843 | wlarc= |
---|
6844 | else |
---|
6845 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6846 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
6847 | fi |
---|
6848 | ;; |
---|
6849 | |
---|
6850 | solaris* | sysv5*) |
---|
6851 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
6852 | ld_shlibs=no |
---|
6853 | cat <<EOF 1>&2 |
---|
6854 | |
---|
6855 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
6856 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
6857 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
6858 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
6859 | *** your PATH or compiler configuration so that the native linker is |
---|
6860 | *** used, and then restart. |
---|
6861 | |
---|
6862 | EOF |
---|
6863 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6864 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6865 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
6866 | else |
---|
6867 | ld_shlibs=no |
---|
6868 | fi |
---|
6869 | ;; |
---|
6870 | |
---|
6871 | sunos4*) |
---|
6872 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
6873 | wlarc= |
---|
6874 | hardcode_direct=yes |
---|
6875 | hardcode_shlibpath_var=no |
---|
6876 | ;; |
---|
6877 | |
---|
6878 | linux*) |
---|
6879 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6880 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6881 | archive_cmds="$tmp_archive_cmds" |
---|
6882 | supports_anon_versioning=no |
---|
6883 | case `$LD -v 2>/dev/null` in |
---|
6884 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
6885 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
6886 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
6887 | *\ 2.11.*) ;; # other 2.11 versions |
---|
6888 | *) supports_anon_versioning=yes ;; |
---|
6889 | esac |
---|
6890 | if test $supports_anon_versioning = yes; then |
---|
6891 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
6892 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
6893 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
6894 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
6895 | else |
---|
6896 | archive_expsym_cmds="$tmp_archive_cmds" |
---|
6897 | fi |
---|
6898 | link_all_deplibs=no |
---|
6899 | else |
---|
6900 | ld_shlibs=no |
---|
6901 | fi |
---|
6902 | ;; |
---|
6903 | |
---|
6904 | *) |
---|
6905 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
6906 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
6907 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
6908 | else |
---|
6909 | ld_shlibs=no |
---|
6910 | fi |
---|
6911 | ;; |
---|
6912 | esac |
---|
6913 | |
---|
6914 | if test "$ld_shlibs" = yes; then |
---|
6915 | runpath_var=LD_RUN_PATH |
---|
6916 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
6917 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
6918 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
6919 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
6920 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
6921 | else |
---|
6922 | whole_archive_flag_spec= |
---|
6923 | fi |
---|
6924 | fi |
---|
6925 | else |
---|
6926 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
6927 | case $host_os in |
---|
6928 | aix3*) |
---|
6929 | allow_undefined_flag=unsupported |
---|
6930 | always_export_symbols=yes |
---|
6931 | 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' |
---|
6932 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
6933 | # are no directories specified by -L. |
---|
6934 | hardcode_minus_L=yes |
---|
6935 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
6936 | # Neither direct hardcoding nor static linking is supported with a |
---|
6937 | # broken collect2. |
---|
6938 | hardcode_direct=unsupported |
---|
6939 | fi |
---|
6940 | ;; |
---|
6941 | |
---|
6942 | aix4* | aix5*) |
---|
6943 | if test "$host_cpu" = ia64; then |
---|
6944 | # On IA64, the linker does run time linking by default, so we don't |
---|
6945 | # have to do anything special. |
---|
6946 | aix_use_runtimelinking=no |
---|
6947 | exp_sym_flag='-Bexport' |
---|
6948 | no_entry_flag="" |
---|
6949 | else |
---|
6950 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
6951 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
6952 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
6953 | 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' |
---|
6954 | else |
---|
6955 | 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' |
---|
6956 | fi |
---|
6957 | aix_use_runtimelinking=no |
---|
6958 | |
---|
6959 | # Test if we are trying to use run time linking or normal |
---|
6960 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
6961 | # need to do runtime linking. |
---|
6962 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
6963 | for ld_flag in $LDFLAGS; do |
---|
6964 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
6965 | aix_use_runtimelinking=yes |
---|
6966 | break |
---|
6967 | fi |
---|
6968 | done |
---|
6969 | esac |
---|
6970 | |
---|
6971 | exp_sym_flag='-bexport' |
---|
6972 | no_entry_flag='-bnoentry' |
---|
6973 | fi |
---|
6974 | |
---|
6975 | # When large executables or shared objects are built, AIX ld can |
---|
6976 | # have problems creating the table of contents. If linking a library |
---|
6977 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
6978 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
6979 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
6980 | |
---|
6981 | archive_cmds='' |
---|
6982 | hardcode_direct=yes |
---|
6983 | hardcode_libdir_separator=':' |
---|
6984 | link_all_deplibs=yes |
---|
6985 | |
---|
6986 | if test "$GCC" = yes; then |
---|
6987 | case $host_os in aix4.012|aix4.012.*) |
---|
6988 | # We only want to do this on AIX 4.2 and lower, the check |
---|
6989 | # below for broken collect2 doesn't work under 4.3+ |
---|
6990 | collect2name=`${CC} -print-prog-name=collect2` |
---|
6991 | if test -f "$collect2name" && \ |
---|
6992 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
6993 | then |
---|
6994 | # We have reworked collect2 |
---|
6995 | hardcode_direct=yes |
---|
6996 | else |
---|
6997 | # We have old collect2 |
---|
6998 | hardcode_direct=unsupported |
---|
6999 | # It fails to find uninstalled libraries when the uninstalled |
---|
7000 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
7001 | # to unsupported forces relinking |
---|
7002 | hardcode_minus_L=yes |
---|
7003 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7004 | hardcode_libdir_separator= |
---|
7005 | fi |
---|
7006 | esac |
---|
7007 | shared_flag='-shared' |
---|
7008 | else |
---|
7009 | # not using gcc |
---|
7010 | if test "$host_cpu" = ia64; then |
---|
7011 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
7012 | # chokes on -Wl,-G. The following line is correct: |
---|
7013 | shared_flag='-G' |
---|
7014 | else |
---|
7015 | if test "$aix_use_runtimelinking" = yes; then |
---|
7016 | shared_flag='${wl}-G' |
---|
7017 | else |
---|
7018 | shared_flag='${wl}-bM:SRE' |
---|
7019 | fi |
---|
7020 | fi |
---|
7021 | fi |
---|
7022 | |
---|
7023 | # It seems that -bexpall does not export symbols beginning with |
---|
7024 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
7025 | always_export_symbols=yes |
---|
7026 | if test "$aix_use_runtimelinking" = yes; then |
---|
7027 | # Warning - without using the other runtime loading flags (-brtl), |
---|
7028 | # -berok will link without error, but may produce a broken library. |
---|
7029 | allow_undefined_flag='-berok' |
---|
7030 | # Determine the default libpath from the value encoded in an empty executable. |
---|
7031 | cat >conftest.$ac_ext <<_ACEOF |
---|
7032 | /* confdefs.h. */ |
---|
7033 | _ACEOF |
---|
7034 | cat confdefs.h >>conftest.$ac_ext |
---|
7035 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7036 | /* end confdefs.h. */ |
---|
7037 | |
---|
7038 | int |
---|
7039 | main () |
---|
7040 | { |
---|
7041 | |
---|
7042 | ; |
---|
7043 | return 0; |
---|
7044 | } |
---|
7045 | _ACEOF |
---|
7046 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7048 | (eval $ac_link) 2>conftest.er1 |
---|
7049 | ac_status=$? |
---|
7050 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7051 | rm -f conftest.er1 |
---|
7052 | cat conftest.err >&5 |
---|
7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7054 | (exit $ac_status); } && |
---|
7055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
7056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7057 | (eval $ac_try) 2>&5 |
---|
7058 | ac_status=$? |
---|
7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7060 | (exit $ac_status); }; } && |
---|
7061 | { ac_try='test -s conftest$ac_exeext' |
---|
7062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7063 | (eval $ac_try) 2>&5 |
---|
7064 | ac_status=$? |
---|
7065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7066 | (exit $ac_status); }; }; then |
---|
7067 | |
---|
7068 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
7069 | }'` |
---|
7070 | # Check for a 64-bit object if we didn't find anything. |
---|
7071 | 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; } |
---|
7072 | }'`; fi |
---|
7073 | else |
---|
7074 | echo "$as_me: failed program was:" >&5 |
---|
7075 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7076 | |
---|
7077 | fi |
---|
7078 | rm -f conftest.err conftest.$ac_objext \ |
---|
7079 | conftest$ac_exeext conftest.$ac_ext |
---|
7080 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
7081 | |
---|
7082 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
7083 | 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" |
---|
7084 | else |
---|
7085 | if test "$host_cpu" = ia64; then |
---|
7086 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
7087 | allow_undefined_flag="-z nodefs" |
---|
7088 | 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" |
---|
7089 | else |
---|
7090 | # Determine the default libpath from the value encoded in an empty executable. |
---|
7091 | cat >conftest.$ac_ext <<_ACEOF |
---|
7092 | /* confdefs.h. */ |
---|
7093 | _ACEOF |
---|
7094 | cat confdefs.h >>conftest.$ac_ext |
---|
7095 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7096 | /* end confdefs.h. */ |
---|
7097 | |
---|
7098 | int |
---|
7099 | main () |
---|
7100 | { |
---|
7101 | |
---|
7102 | ; |
---|
7103 | return 0; |
---|
7104 | } |
---|
7105 | _ACEOF |
---|
7106 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7108 | (eval $ac_link) 2>conftest.er1 |
---|
7109 | ac_status=$? |
---|
7110 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7111 | rm -f conftest.er1 |
---|
7112 | cat conftest.err >&5 |
---|
7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7114 | (exit $ac_status); } && |
---|
7115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
7116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7117 | (eval $ac_try) 2>&5 |
---|
7118 | ac_status=$? |
---|
7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7120 | (exit $ac_status); }; } && |
---|
7121 | { ac_try='test -s conftest$ac_exeext' |
---|
7122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7123 | (eval $ac_try) 2>&5 |
---|
7124 | ac_status=$? |
---|
7125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7126 | (exit $ac_status); }; }; then |
---|
7127 | |
---|
7128 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
7129 | }'` |
---|
7130 | # Check for a 64-bit object if we didn't find anything. |
---|
7131 | 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; } |
---|
7132 | }'`; fi |
---|
7133 | else |
---|
7134 | echo "$as_me: failed program was:" >&5 |
---|
7135 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7136 | |
---|
7137 | fi |
---|
7138 | rm -f conftest.err conftest.$ac_objext \ |
---|
7139 | conftest$ac_exeext conftest.$ac_ext |
---|
7140 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
7141 | |
---|
7142 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
7143 | # Warning - without using the other run time loading flags, |
---|
7144 | # -berok will link without error, but may produce a broken library. |
---|
7145 | no_undefined_flag=' ${wl}-bernotok' |
---|
7146 | allow_undefined_flag=' ${wl}-berok' |
---|
7147 | # -bexpall does not export symbols beginning with underscore (_) |
---|
7148 | always_export_symbols=yes |
---|
7149 | # Exported symbols can be pulled into shared objects from archives |
---|
7150 | whole_archive_flag_spec=' ' |
---|
7151 | archive_cmds_need_lc=yes |
---|
7152 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
7153 | 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' |
---|
7154 | fi |
---|
7155 | fi |
---|
7156 | ;; |
---|
7157 | |
---|
7158 | amigaos*) |
---|
7159 | 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)' |
---|
7160 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7161 | hardcode_minus_L=yes |
---|
7162 | # see comment about different semantics on the GNU ld section |
---|
7163 | ld_shlibs=no |
---|
7164 | ;; |
---|
7165 | |
---|
7166 | bsdi4*) |
---|
7167 | export_dynamic_flag_spec=-rdynamic |
---|
7168 | ;; |
---|
7169 | |
---|
7170 | cygwin* | mingw* | pw32*) |
---|
7171 | # When not using gcc, we currently assume that we are using |
---|
7172 | # Microsoft Visual C++. |
---|
7173 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
7174 | # no search path for DLLs. |
---|
7175 | hardcode_libdir_flag_spec=' ' |
---|
7176 | allow_undefined_flag=unsupported |
---|
7177 | # Tell ltmain to make .lib files, not .a files. |
---|
7178 | libext=lib |
---|
7179 | # Tell ltmain to make .dll files, not .so files. |
---|
7180 | shrext_cmds=".dll" |
---|
7181 | # FIXME: Setting linknames here is a bad hack. |
---|
7182 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
7183 | # The linker will automatically build a .lib file if we build a DLL. |
---|
7184 | old_archive_From_new_cmds='true' |
---|
7185 | # FIXME: Should let the user specify the lib program. |
---|
7186 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
7187 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
7188 | enable_shared_with_static_runtimes=yes |
---|
7189 | ;; |
---|
7190 | |
---|
7191 | darwin* | rhapsody*) |
---|
7192 | if test "$GXX" = yes ; then |
---|
7193 | archive_cmds_need_lc=no |
---|
7194 | case "$host_os" in |
---|
7195 | rhapsody* | darwin1.[012]) |
---|
7196 | allow_undefined_flag='-undefined suppress' |
---|
7197 | ;; |
---|
7198 | *) # Darwin 1.3 on |
---|
7199 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
7200 | allow_undefined_flag='-flat_namespace -undefined suppress' |
---|
7201 | else |
---|
7202 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
7203 | 10.[012]) |
---|
7204 | allow_undefined_flag='-flat_namespace -undefined suppress' |
---|
7205 | ;; |
---|
7206 | 10.*) |
---|
7207 | allow_undefined_flag='-undefined dynamic_lookup' |
---|
7208 | ;; |
---|
7209 | esac |
---|
7210 | fi |
---|
7211 | ;; |
---|
7212 | esac |
---|
7213 | lt_int_apple_cc_single_mod=no |
---|
7214 | output_verbose_link_cmd='echo' |
---|
7215 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
7216 | lt_int_apple_cc_single_mod=yes |
---|
7217 | fi |
---|
7218 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
7219 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
7220 | else |
---|
7221 | 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' |
---|
7222 | fi |
---|
7223 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
7224 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
7225 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
7226 | 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}' |
---|
7227 | else |
---|
7228 | 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}' |
---|
7229 | fi |
---|
7230 | 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}' |
---|
7231 | hardcode_direct=no |
---|
7232 | hardcode_automatic=yes |
---|
7233 | hardcode_shlibpath_var=unsupported |
---|
7234 | whole_archive_flag_spec='-all_load $convenience' |
---|
7235 | link_all_deplibs=yes |
---|
7236 | else |
---|
7237 | ld_shlibs=no |
---|
7238 | fi |
---|
7239 | ;; |
---|
7240 | |
---|
7241 | dgux*) |
---|
7242 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7243 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7244 | hardcode_shlibpath_var=no |
---|
7245 | ;; |
---|
7246 | |
---|
7247 | freebsd1*) |
---|
7248 | ld_shlibs=no |
---|
7249 | ;; |
---|
7250 | |
---|
7251 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
7252 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
7253 | # does not break anything, and helps significantly (at the cost of a little |
---|
7254 | # extra space). |
---|
7255 | freebsd2.2*) |
---|
7256 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
7257 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7258 | hardcode_direct=yes |
---|
7259 | hardcode_shlibpath_var=no |
---|
7260 | ;; |
---|
7261 | |
---|
7262 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
7263 | freebsd2*) |
---|
7264 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
7265 | hardcode_direct=yes |
---|
7266 | hardcode_minus_L=yes |
---|
7267 | hardcode_shlibpath_var=no |
---|
7268 | ;; |
---|
7269 | |
---|
7270 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
7271 | freebsd* | kfreebsd*-gnu) |
---|
7272 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
7273 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7274 | hardcode_direct=yes |
---|
7275 | hardcode_shlibpath_var=no |
---|
7276 | ;; |
---|
7277 | |
---|
7278 | hpux9*) |
---|
7279 | if test "$GCC" = yes; then |
---|
7280 | 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' |
---|
7281 | else |
---|
7282 | 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' |
---|
7283 | fi |
---|
7284 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
7285 | hardcode_libdir_separator=: |
---|
7286 | hardcode_direct=yes |
---|
7287 | |
---|
7288 | # hardcode_minus_L: Not really in the search PATH, |
---|
7289 | # but as the default location of the library. |
---|
7290 | hardcode_minus_L=yes |
---|
7291 | export_dynamic_flag_spec='${wl}-E' |
---|
7292 | ;; |
---|
7293 | |
---|
7294 | hpux10* | hpux11*) |
---|
7295 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
7296 | case "$host_cpu" in |
---|
7297 | hppa*64*|ia64*) |
---|
7298 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7299 | ;; |
---|
7300 | *) |
---|
7301 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
7302 | ;; |
---|
7303 | esac |
---|
7304 | else |
---|
7305 | case "$host_cpu" in |
---|
7306 | hppa*64*|ia64*) |
---|
7307 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7308 | ;; |
---|
7309 | *) |
---|
7310 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
7311 | ;; |
---|
7312 | esac |
---|
7313 | fi |
---|
7314 | if test "$with_gnu_ld" = no; then |
---|
7315 | case "$host_cpu" in |
---|
7316 | hppa*64*) |
---|
7317 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
7318 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
7319 | hardcode_libdir_separator=: |
---|
7320 | hardcode_direct=no |
---|
7321 | hardcode_shlibpath_var=no |
---|
7322 | ;; |
---|
7323 | ia64*) |
---|
7324 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7325 | hardcode_direct=no |
---|
7326 | hardcode_shlibpath_var=no |
---|
7327 | |
---|
7328 | # hardcode_minus_L: Not really in the search PATH, |
---|
7329 | # but as the default location of the library. |
---|
7330 | hardcode_minus_L=yes |
---|
7331 | ;; |
---|
7332 | *) |
---|
7333 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
7334 | hardcode_libdir_separator=: |
---|
7335 | hardcode_direct=yes |
---|
7336 | export_dynamic_flag_spec='${wl}-E' |
---|
7337 | |
---|
7338 | # hardcode_minus_L: Not really in the search PATH, |
---|
7339 | # but as the default location of the library. |
---|
7340 | hardcode_minus_L=yes |
---|
7341 | ;; |
---|
7342 | esac |
---|
7343 | fi |
---|
7344 | ;; |
---|
7345 | |
---|
7346 | irix5* | irix6* | nonstopux*) |
---|
7347 | if test "$GCC" = yes; then |
---|
7348 | 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' |
---|
7349 | else |
---|
7350 | 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' |
---|
7351 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
7352 | fi |
---|
7353 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7354 | hardcode_libdir_separator=: |
---|
7355 | link_all_deplibs=yes |
---|
7356 | ;; |
---|
7357 | |
---|
7358 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
7359 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
7360 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
7361 | else |
---|
7362 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
7363 | fi |
---|
7364 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7365 | hardcode_direct=yes |
---|
7366 | hardcode_shlibpath_var=no |
---|
7367 | ;; |
---|
7368 | |
---|
7369 | newsos6) |
---|
7370 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7371 | hardcode_direct=yes |
---|
7372 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7373 | hardcode_libdir_separator=: |
---|
7374 | hardcode_shlibpath_var=no |
---|
7375 | ;; |
---|
7376 | |
---|
7377 | openbsd*) |
---|
7378 | hardcode_direct=yes |
---|
7379 | hardcode_shlibpath_var=no |
---|
7380 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
7381 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
7382 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
7383 | export_dynamic_flag_spec='${wl}-E' |
---|
7384 | else |
---|
7385 | case $host_os in |
---|
7386 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
7387 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
7388 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7389 | ;; |
---|
7390 | *) |
---|
7391 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
7392 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
7393 | ;; |
---|
7394 | esac |
---|
7395 | fi |
---|
7396 | ;; |
---|
7397 | |
---|
7398 | os2*) |
---|
7399 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7400 | hardcode_minus_L=yes |
---|
7401 | allow_undefined_flag=unsupported |
---|
7402 | 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' |
---|
7403 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
7404 | ;; |
---|
7405 | |
---|
7406 | osf3*) |
---|
7407 | if test "$GCC" = yes; then |
---|
7408 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
7409 | 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' |
---|
7410 | else |
---|
7411 | allow_undefined_flag=' -expect_unresolved \*' |
---|
7412 | 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' |
---|
7413 | fi |
---|
7414 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7415 | hardcode_libdir_separator=: |
---|
7416 | ;; |
---|
7417 | |
---|
7418 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
7419 | if test "$GCC" = yes; then |
---|
7420 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
7421 | 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' |
---|
7422 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
7423 | else |
---|
7424 | allow_undefined_flag=' -expect_unresolved \*' |
---|
7425 | 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' |
---|
7426 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
7427 | $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' |
---|
7428 | |
---|
7429 | # Both c and cxx compiler support -rpath directly |
---|
7430 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
7431 | fi |
---|
7432 | hardcode_libdir_separator=: |
---|
7433 | ;; |
---|
7434 | |
---|
7435 | sco3.2v5*) |
---|
7436 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7437 | hardcode_shlibpath_var=no |
---|
7438 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
7439 | runpath_var=LD_RUN_PATH |
---|
7440 | hardcode_runpath_var=yes |
---|
7441 | ;; |
---|
7442 | |
---|
7443 | solaris*) |
---|
7444 | no_undefined_flag=' -z text' |
---|
7445 | if test "$GCC" = yes; then |
---|
7446 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7447 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
7448 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
7449 | else |
---|
7450 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7451 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
7452 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
7453 | fi |
---|
7454 | hardcode_libdir_flag_spec='-R$libdir' |
---|
7455 | hardcode_shlibpath_var=no |
---|
7456 | case $host_os in |
---|
7457 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
7458 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
7459 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
7460 | esac |
---|
7461 | link_all_deplibs=yes |
---|
7462 | ;; |
---|
7463 | |
---|
7464 | sunos4*) |
---|
7465 | if test "x$host_vendor" = xsequent; then |
---|
7466 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
7467 | # files that make .init and .fini sections work. |
---|
7468 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7469 | else |
---|
7470 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
7471 | fi |
---|
7472 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7473 | hardcode_direct=yes |
---|
7474 | hardcode_minus_L=yes |
---|
7475 | hardcode_shlibpath_var=no |
---|
7476 | ;; |
---|
7477 | |
---|
7478 | sysv4) |
---|
7479 | case $host_vendor in |
---|
7480 | sni) |
---|
7481 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7482 | hardcode_direct=yes # is this really true??? |
---|
7483 | ;; |
---|
7484 | siemens) |
---|
7485 | ## LD is ld it makes a PLAMLIB |
---|
7486 | ## CC just makes a GrossModule. |
---|
7487 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
7488 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
7489 | hardcode_direct=no |
---|
7490 | ;; |
---|
7491 | motorola) |
---|
7492 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7493 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
7494 | ;; |
---|
7495 | esac |
---|
7496 | runpath_var='LD_RUN_PATH' |
---|
7497 | hardcode_shlibpath_var=no |
---|
7498 | ;; |
---|
7499 | |
---|
7500 | sysv4.3*) |
---|
7501 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7502 | hardcode_shlibpath_var=no |
---|
7503 | export_dynamic_flag_spec='-Bexport' |
---|
7504 | ;; |
---|
7505 | |
---|
7506 | sysv4*MP*) |
---|
7507 | if test -d /usr/nec; then |
---|
7508 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7509 | hardcode_shlibpath_var=no |
---|
7510 | runpath_var=LD_RUN_PATH |
---|
7511 | hardcode_runpath_var=yes |
---|
7512 | ld_shlibs=yes |
---|
7513 | fi |
---|
7514 | ;; |
---|
7515 | |
---|
7516 | sysv4.2uw2*) |
---|
7517 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
7518 | hardcode_direct=yes |
---|
7519 | hardcode_minus_L=no |
---|
7520 | hardcode_shlibpath_var=no |
---|
7521 | hardcode_runpath_var=yes |
---|
7522 | runpath_var=LD_RUN_PATH |
---|
7523 | ;; |
---|
7524 | |
---|
7525 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
7526 | no_undefined_flag='${wl}-z ${wl}text' |
---|
7527 | if test "$GCC" = yes; then |
---|
7528 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7529 | else |
---|
7530 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
7531 | fi |
---|
7532 | runpath_var='LD_RUN_PATH' |
---|
7533 | hardcode_shlibpath_var=no |
---|
7534 | ;; |
---|
7535 | |
---|
7536 | sysv5*) |
---|
7537 | no_undefined_flag=' -z text' |
---|
7538 | # $CC -shared without GNU ld will not create a library from C++ |
---|
7539 | # object files and a static libstdc++, better avoid it by now |
---|
7540 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7541 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
7542 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
7543 | hardcode_libdir_flag_spec= |
---|
7544 | hardcode_shlibpath_var=no |
---|
7545 | runpath_var='LD_RUN_PATH' |
---|
7546 | ;; |
---|
7547 | |
---|
7548 | uts4*) |
---|
7549 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
7550 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7551 | hardcode_shlibpath_var=no |
---|
7552 | ;; |
---|
7553 | |
---|
7554 | *) |
---|
7555 | ld_shlibs=no |
---|
7556 | ;; |
---|
7557 | esac |
---|
7558 | fi |
---|
7559 | |
---|
7560 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
7561 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
7562 | test "$ld_shlibs" = no && can_build_shared=no |
---|
7563 | |
---|
7564 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
7565 | if test "$GCC" = yes; then |
---|
7566 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
7567 | fi |
---|
7568 | |
---|
7569 | # |
---|
7570 | # Do we need to explicitly link libc? |
---|
7571 | # |
---|
7572 | case "x$archive_cmds_need_lc" in |
---|
7573 | x|xyes) |
---|
7574 | # Assume -lc should be added |
---|
7575 | archive_cmds_need_lc=yes |
---|
7576 | |
---|
7577 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
7578 | case $archive_cmds in |
---|
7579 | *'~'*) |
---|
7580 | # FIXME: we may have to deal with multi-command sequences. |
---|
7581 | ;; |
---|
7582 | '$CC '*) |
---|
7583 | # Test whether the compiler implicitly links with -lc since on some |
---|
7584 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
7585 | # to ld, don't add -lc before -lgcc. |
---|
7586 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
7587 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
7588 | $rm conftest* |
---|
7589 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7590 | |
---|
7591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7592 | (eval $ac_compile) 2>&5 |
---|
7593 | ac_status=$? |
---|
7594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7595 | (exit $ac_status); } 2>conftest.err; then |
---|
7596 | soname=conftest |
---|
7597 | lib=conftest |
---|
7598 | libobjs=conftest.$ac_objext |
---|
7599 | deplibs= |
---|
7600 | wl=$lt_prog_compiler_wl |
---|
7601 | compiler_flags=-v |
---|
7602 | linker_flags=-v |
---|
7603 | verstring= |
---|
7604 | output_objdir=. |
---|
7605 | libname=conftest |
---|
7606 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
7607 | allow_undefined_flag= |
---|
7608 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
7609 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
7610 | ac_status=$? |
---|
7611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7612 | (exit $ac_status); } |
---|
7613 | then |
---|
7614 | archive_cmds_need_lc=no |
---|
7615 | else |
---|
7616 | archive_cmds_need_lc=yes |
---|
7617 | fi |
---|
7618 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
7619 | else |
---|
7620 | cat conftest.err 1>&5 |
---|
7621 | fi |
---|
7622 | $rm conftest* |
---|
7623 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
7624 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
7625 | ;; |
---|
7626 | esac |
---|
7627 | fi |
---|
7628 | ;; |
---|
7629 | esac |
---|
7630 | |
---|
7631 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
7632 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
7633 | library_names_spec= |
---|
7634 | libname_spec='lib$name' |
---|
7635 | soname_spec= |
---|
7636 | shrext_cmds=".so" |
---|
7637 | postinstall_cmds= |
---|
7638 | postuninstall_cmds= |
---|
7639 | finish_cmds= |
---|
7640 | finish_eval= |
---|
7641 | shlibpath_var= |
---|
7642 | shlibpath_overrides_runpath=unknown |
---|
7643 | version_type=none |
---|
7644 | dynamic_linker="$host_os ld.so" |
---|
7645 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
7646 | if test "$GCC" = yes; then |
---|
7647 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
7648 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
7649 | # if the path contains ";" then we assume it to be the separator |
---|
7650 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
7651 | # assumed that no part of a normal pathname contains ";" but that should |
---|
7652 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
7653 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
7654 | else |
---|
7655 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
7656 | fi |
---|
7657 | else |
---|
7658 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
7659 | fi |
---|
7660 | need_lib_prefix=unknown |
---|
7661 | hardcode_into_libs=no |
---|
7662 | |
---|
7663 | # when you set need_version to no, make sure it does not cause -set_version |
---|
7664 | # flags to be left without arguments |
---|
7665 | need_version=unknown |
---|
7666 | |
---|
7667 | case $host_os in |
---|
7668 | aix3*) |
---|
7669 | version_type=linux |
---|
7670 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
7671 | shlibpath_var=LIBPATH |
---|
7672 | |
---|
7673 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
7674 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7675 | ;; |
---|
7676 | |
---|
7677 | aix4* | aix5*) |
---|
7678 | version_type=linux |
---|
7679 | need_lib_prefix=no |
---|
7680 | need_version=no |
---|
7681 | hardcode_into_libs=yes |
---|
7682 | if test "$host_cpu" = ia64; then |
---|
7683 | # AIX 5 supports IA64 |
---|
7684 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
7685 | shlibpath_var=LD_LIBRARY_PATH |
---|
7686 | else |
---|
7687 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
7688 | # for dependence libraries. The import file would start with |
---|
7689 | # the line `#! .'. This would cause the generated library to |
---|
7690 | # depend on `.', always an invalid library. This was fixed in |
---|
7691 | # development snapshots of GCC prior to 3.0. |
---|
7692 | case $host_os in |
---|
7693 | aix4 | aix4.[01] | aix4.[01].*) |
---|
7694 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
7695 | echo ' yes ' |
---|
7696 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
7697 | : |
---|
7698 | else |
---|
7699 | can_build_shared=no |
---|
7700 | fi |
---|
7701 | ;; |
---|
7702 | esac |
---|
7703 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
7704 | # soname into executable. Probably we can add versioning support to |
---|
7705 | # collect2, so additional links can be useful in future. |
---|
7706 | if test "$aix_use_runtimelinking" = yes; then |
---|
7707 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
7708 | # instead of lib<name>.a to let people know that these are not |
---|
7709 | # typical AIX shared libraries. |
---|
7710 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7711 | else |
---|
7712 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
7713 | # and later when we are not doing run time linking. |
---|
7714 | library_names_spec='${libname}${release}.a $libname.a' |
---|
7715 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7716 | fi |
---|
7717 | shlibpath_var=LIBPATH |
---|
7718 | fi |
---|
7719 | ;; |
---|
7720 | |
---|
7721 | amigaos*) |
---|
7722 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
7723 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
7724 | 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' |
---|
7725 | ;; |
---|
7726 | |
---|
7727 | beos*) |
---|
7728 | library_names_spec='${libname}${shared_ext}' |
---|
7729 | dynamic_linker="$host_os ld.so" |
---|
7730 | shlibpath_var=LIBRARY_PATH |
---|
7731 | ;; |
---|
7732 | |
---|
7733 | bsdi4*) |
---|
7734 | version_type=linux |
---|
7735 | need_version=no |
---|
7736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7737 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7738 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
7739 | shlibpath_var=LD_LIBRARY_PATH |
---|
7740 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
7741 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
7742 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
7743 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
7744 | # libtool to hard-code these into programs |
---|
7745 | ;; |
---|
7746 | |
---|
7747 | cygwin* | mingw* | pw32*) |
---|
7748 | version_type=windows |
---|
7749 | shrext_cmds=".dll" |
---|
7750 | need_version=no |
---|
7751 | need_lib_prefix=no |
---|
7752 | |
---|
7753 | case $GCC,$host_os in |
---|
7754 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
7755 | library_names_spec='$libname.dll.a' |
---|
7756 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
7757 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
7758 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
7759 | dldir=$destdir/`dirname \$dlpath`~ |
---|
7760 | test -d \$dldir || mkdir -p \$dldir~ |
---|
7761 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
7762 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
7763 | dlpath=$dir/\$dldll~ |
---|
7764 | $rm \$dlpath' |
---|
7765 | shlibpath_overrides_runpath=yes |
---|
7766 | |
---|
7767 | case $host_os in |
---|
7768 | cygwin*) |
---|
7769 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
7770 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
7771 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
7772 | ;; |
---|
7773 | mingw*) |
---|
7774 | # MinGW DLLs use traditional 'lib' prefix |
---|
7775 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
7776 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
7777 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
7778 | # It is most probably a Windows format PATH printed by |
---|
7779 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
7780 | # path with ; separators, and with drive letters. We can handle the |
---|
7781 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
7782 | # especially as we might pass files found there to a mingw objdump, |
---|
7783 | # which wouldn't understand a cygwinified path. Ahh. |
---|
7784 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
7785 | else |
---|
7786 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
7787 | fi |
---|
7788 | ;; |
---|
7789 | pw32*) |
---|
7790 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
7791 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
---|
7792 | ;; |
---|
7793 | esac |
---|
7794 | ;; |
---|
7795 | |
---|
7796 | *) |
---|
7797 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
7798 | ;; |
---|
7799 | esac |
---|
7800 | dynamic_linker='Win32 ld.exe' |
---|
7801 | # FIXME: first we should search . and the directory the executable is in |
---|
7802 | shlibpath_var=PATH |
---|
7803 | ;; |
---|
7804 | |
---|
7805 | darwin* | rhapsody*) |
---|
7806 | dynamic_linker="$host_os dyld" |
---|
7807 | version_type=darwin |
---|
7808 | need_lib_prefix=no |
---|
7809 | need_version=no |
---|
7810 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
7811 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
7812 | shlibpath_overrides_runpath=yes |
---|
7813 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
7814 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
7815 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
7816 | if test "$GCC" = yes; then |
---|
7817 | 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"` |
---|
7818 | else |
---|
7819 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
7820 | fi |
---|
7821 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
7822 | ;; |
---|
7823 | |
---|
7824 | dgux*) |
---|
7825 | version_type=linux |
---|
7826 | need_lib_prefix=no |
---|
7827 | need_version=no |
---|
7828 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
7829 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7830 | shlibpath_var=LD_LIBRARY_PATH |
---|
7831 | ;; |
---|
7832 | |
---|
7833 | freebsd1*) |
---|
7834 | dynamic_linker=no |
---|
7835 | ;; |
---|
7836 | |
---|
7837 | kfreebsd*-gnu) |
---|
7838 | version_type=linux |
---|
7839 | need_lib_prefix=no |
---|
7840 | need_version=no |
---|
7841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
7842 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7843 | shlibpath_var=LD_LIBRARY_PATH |
---|
7844 | shlibpath_overrides_runpath=no |
---|
7845 | hardcode_into_libs=yes |
---|
7846 | dynamic_linker='GNU ld.so' |
---|
7847 | ;; |
---|
7848 | |
---|
7849 | freebsd*) |
---|
7850 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
7851 | version_type=freebsd-$objformat |
---|
7852 | case $version_type in |
---|
7853 | freebsd-elf*) |
---|
7854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
7855 | need_version=no |
---|
7856 | need_lib_prefix=no |
---|
7857 | ;; |
---|
7858 | freebsd-*) |
---|
7859 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
7860 | need_version=yes |
---|
7861 | ;; |
---|
7862 | esac |
---|
7863 | shlibpath_var=LD_LIBRARY_PATH |
---|
7864 | case $host_os in |
---|
7865 | freebsd2*) |
---|
7866 | shlibpath_overrides_runpath=yes |
---|
7867 | ;; |
---|
7868 | freebsd3.01* | freebsdelf3.01*) |
---|
7869 | shlibpath_overrides_runpath=yes |
---|
7870 | hardcode_into_libs=yes |
---|
7871 | ;; |
---|
7872 | *) # from 3.2 on |
---|
7873 | shlibpath_overrides_runpath=no |
---|
7874 | hardcode_into_libs=yes |
---|
7875 | ;; |
---|
7876 | esac |
---|
7877 | ;; |
---|
7878 | |
---|
7879 | gnu*) |
---|
7880 | version_type=linux |
---|
7881 | need_lib_prefix=no |
---|
7882 | need_version=no |
---|
7883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
7884 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7885 | shlibpath_var=LD_LIBRARY_PATH |
---|
7886 | hardcode_into_libs=yes |
---|
7887 | ;; |
---|
7888 | |
---|
7889 | hpux9* | hpux10* | hpux11*) |
---|
7890 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
7891 | # link against other versions. |
---|
7892 | version_type=sunos |
---|
7893 | need_lib_prefix=no |
---|
7894 | need_version=no |
---|
7895 | case "$host_cpu" in |
---|
7896 | ia64*) |
---|
7897 | shrext_cmds='.so' |
---|
7898 | hardcode_into_libs=yes |
---|
7899 | dynamic_linker="$host_os dld.so" |
---|
7900 | shlibpath_var=LD_LIBRARY_PATH |
---|
7901 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
7902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7903 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7904 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
7905 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
7906 | else |
---|
7907 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
7908 | fi |
---|
7909 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
7910 | ;; |
---|
7911 | hppa*64*) |
---|
7912 | shrext_cmds='.sl' |
---|
7913 | hardcode_into_libs=yes |
---|
7914 | dynamic_linker="$host_os dld.sl" |
---|
7915 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
7916 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
7917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7918 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7919 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
7920 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
7921 | ;; |
---|
7922 | *) |
---|
7923 | shrext_cmds='.sl' |
---|
7924 | dynamic_linker="$host_os dld.sl" |
---|
7925 | shlibpath_var=SHLIB_PATH |
---|
7926 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
7927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7928 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7929 | ;; |
---|
7930 | esac |
---|
7931 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
7932 | postinstall_cmds='chmod 555 $lib' |
---|
7933 | ;; |
---|
7934 | |
---|
7935 | irix5* | irix6* | nonstopux*) |
---|
7936 | case $host_os in |
---|
7937 | nonstopux*) version_type=nonstopux ;; |
---|
7938 | *) |
---|
7939 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
7940 | version_type=linux |
---|
7941 | else |
---|
7942 | version_type=irix |
---|
7943 | fi ;; |
---|
7944 | esac |
---|
7945 | need_lib_prefix=no |
---|
7946 | need_version=no |
---|
7947 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
7949 | case $host_os in |
---|
7950 | irix5* | nonstopux*) |
---|
7951 | libsuff= shlibsuff= |
---|
7952 | ;; |
---|
7953 | *) |
---|
7954 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
7955 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
7956 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
7957 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
7958 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
7959 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
7960 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
7961 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
7962 | esac |
---|
7963 | ;; |
---|
7964 | esac |
---|
7965 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
7966 | shlibpath_overrides_runpath=no |
---|
7967 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
7968 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
7969 | hardcode_into_libs=yes |
---|
7970 | ;; |
---|
7971 | |
---|
7972 | # No shared lib support for Linux oldld, aout, or coff. |
---|
7973 | linux*oldld* | linux*aout* | linux*coff*) |
---|
7974 | dynamic_linker=no |
---|
7975 | ;; |
---|
7976 | |
---|
7977 | # This must be Linux ELF. |
---|
7978 | linux*) |
---|
7979 | version_type=linux |
---|
7980 | need_lib_prefix=no |
---|
7981 | need_version=no |
---|
7982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
7983 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
7984 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
7985 | shlibpath_var=LD_LIBRARY_PATH |
---|
7986 | shlibpath_overrides_runpath=no |
---|
7987 | # This implies no fast_install, which is unacceptable. |
---|
7988 | # Some rework will be needed to allow for fast_install |
---|
7989 | # before this can be enabled. |
---|
7990 | hardcode_into_libs=yes |
---|
7991 | |
---|
7992 | # Append ld.so.conf contents to the search path |
---|
7993 | if test -f /etc/ld.so.conf; then |
---|
7994 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
---|
7995 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
7996 | fi |
---|
7997 | |
---|
7998 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
7999 | # powerpc, because MkLinux only supported shared libraries with the |
---|
8000 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
8001 | # most powerpc-linux boxes support dynamic linking these days and |
---|
8002 | # people can always --disable-shared, the test was removed, and we |
---|
8003 | # assume the GNU/Linux dynamic linker is in use. |
---|
8004 | dynamic_linker='GNU/Linux ld.so' |
---|
8005 | ;; |
---|
8006 | |
---|
8007 | netbsdelf*-gnu) |
---|
8008 | version_type=linux |
---|
8009 | need_lib_prefix=no |
---|
8010 | need_version=no |
---|
8011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8012 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8013 | shlibpath_var=LD_LIBRARY_PATH |
---|
8014 | shlibpath_overrides_runpath=no |
---|
8015 | hardcode_into_libs=yes |
---|
8016 | dynamic_linker='NetBSD ld.elf_so' |
---|
8017 | ;; |
---|
8018 | |
---|
8019 | knetbsd*-gnu) |
---|
8020 | version_type=linux |
---|
8021 | need_lib_prefix=no |
---|
8022 | need_version=no |
---|
8023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8024 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8025 | shlibpath_var=LD_LIBRARY_PATH |
---|
8026 | shlibpath_overrides_runpath=no |
---|
8027 | hardcode_into_libs=yes |
---|
8028 | dynamic_linker='GNU ld.so' |
---|
8029 | ;; |
---|
8030 | |
---|
8031 | netbsd*) |
---|
8032 | version_type=sunos |
---|
8033 | need_lib_prefix=no |
---|
8034 | need_version=no |
---|
8035 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
8037 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
8038 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
8039 | else |
---|
8040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8041 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8042 | dynamic_linker='NetBSD ld.elf_so' |
---|
8043 | fi |
---|
8044 | shlibpath_var=LD_LIBRARY_PATH |
---|
8045 | shlibpath_overrides_runpath=yes |
---|
8046 | hardcode_into_libs=yes |
---|
8047 | ;; |
---|
8048 | |
---|
8049 | newsos6) |
---|
8050 | version_type=linux |
---|
8051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8052 | shlibpath_var=LD_LIBRARY_PATH |
---|
8053 | shlibpath_overrides_runpath=yes |
---|
8054 | ;; |
---|
8055 | |
---|
8056 | nto-qnx*) |
---|
8057 | version_type=linux |
---|
8058 | need_lib_prefix=no |
---|
8059 | need_version=no |
---|
8060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8061 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8062 | shlibpath_var=LD_LIBRARY_PATH |
---|
8063 | shlibpath_overrides_runpath=yes |
---|
8064 | ;; |
---|
8065 | |
---|
8066 | openbsd*) |
---|
8067 | version_type=sunos |
---|
8068 | need_lib_prefix=no |
---|
8069 | need_version=yes |
---|
8070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
8071 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
8072 | shlibpath_var=LD_LIBRARY_PATH |
---|
8073 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
8074 | case $host_os in |
---|
8075 | openbsd2.[89] | openbsd2.[89].*) |
---|
8076 | shlibpath_overrides_runpath=no |
---|
8077 | ;; |
---|
8078 | *) |
---|
8079 | shlibpath_overrides_runpath=yes |
---|
8080 | ;; |
---|
8081 | esac |
---|
8082 | else |
---|
8083 | shlibpath_overrides_runpath=yes |
---|
8084 | fi |
---|
8085 | ;; |
---|
8086 | |
---|
8087 | os2*) |
---|
8088 | libname_spec='$name' |
---|
8089 | shrext_cmds=".dll" |
---|
8090 | need_lib_prefix=no |
---|
8091 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
8092 | dynamic_linker='OS/2 ld.exe' |
---|
8093 | shlibpath_var=LIBPATH |
---|
8094 | ;; |
---|
8095 | |
---|
8096 | osf3* | osf4* | osf5*) |
---|
8097 | version_type=osf |
---|
8098 | need_lib_prefix=no |
---|
8099 | need_version=no |
---|
8100 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8102 | shlibpath_var=LD_LIBRARY_PATH |
---|
8103 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
8104 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
8105 | ;; |
---|
8106 | |
---|
8107 | sco3.2v5*) |
---|
8108 | version_type=osf |
---|
8109 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8111 | shlibpath_var=LD_LIBRARY_PATH |
---|
8112 | ;; |
---|
8113 | |
---|
8114 | solaris*) |
---|
8115 | version_type=linux |
---|
8116 | need_lib_prefix=no |
---|
8117 | need_version=no |
---|
8118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8119 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8120 | shlibpath_var=LD_LIBRARY_PATH |
---|
8121 | shlibpath_overrides_runpath=yes |
---|
8122 | hardcode_into_libs=yes |
---|
8123 | # ldd complains unless libraries are executable |
---|
8124 | postinstall_cmds='chmod +x $lib' |
---|
8125 | ;; |
---|
8126 | |
---|
8127 | sunos4*) |
---|
8128 | version_type=sunos |
---|
8129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
8130 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
8131 | shlibpath_var=LD_LIBRARY_PATH |
---|
8132 | shlibpath_overrides_runpath=yes |
---|
8133 | if test "$with_gnu_ld" = yes; then |
---|
8134 | need_lib_prefix=no |
---|
8135 | fi |
---|
8136 | need_version=yes |
---|
8137 | ;; |
---|
8138 | |
---|
8139 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
8140 | version_type=linux |
---|
8141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8142 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8143 | shlibpath_var=LD_LIBRARY_PATH |
---|
8144 | case $host_vendor in |
---|
8145 | sni) |
---|
8146 | shlibpath_overrides_runpath=no |
---|
8147 | need_lib_prefix=no |
---|
8148 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
8149 | runpath_var=LD_RUN_PATH |
---|
8150 | ;; |
---|
8151 | siemens) |
---|
8152 | need_lib_prefix=no |
---|
8153 | ;; |
---|
8154 | motorola) |
---|
8155 | need_lib_prefix=no |
---|
8156 | need_version=no |
---|
8157 | shlibpath_overrides_runpath=no |
---|
8158 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
8159 | ;; |
---|
8160 | esac |
---|
8161 | ;; |
---|
8162 | |
---|
8163 | sysv4*MP*) |
---|
8164 | if test -d /usr/nec ;then |
---|
8165 | version_type=linux |
---|
8166 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
8167 | soname_spec='$libname${shared_ext}.$major' |
---|
8168 | shlibpath_var=LD_LIBRARY_PATH |
---|
8169 | fi |
---|
8170 | ;; |
---|
8171 | |
---|
8172 | uts4*) |
---|
8173 | version_type=linux |
---|
8174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8175 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8176 | shlibpath_var=LD_LIBRARY_PATH |
---|
8177 | ;; |
---|
8178 | |
---|
8179 | *) |
---|
8180 | dynamic_linker=no |
---|
8181 | ;; |
---|
8182 | esac |
---|
8183 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
8184 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
8185 | test "$dynamic_linker" = no && can_build_shared=no |
---|
8186 | |
---|
8187 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
8188 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
8189 | hardcode_action= |
---|
8190 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
8191 | test -n "$runpath_var " || \ |
---|
8192 | test "X$hardcode_automatic"="Xyes" ; then |
---|
8193 | |
---|
8194 | # We can hardcode non-existant directories. |
---|
8195 | if test "$hardcode_direct" != no && |
---|
8196 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
8197 | # have to relink, otherwise we might link with an installed library |
---|
8198 | # when we should be linking with a yet-to-be-installed one |
---|
8199 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
8200 | test "$hardcode_minus_L" != no; then |
---|
8201 | # Linking always hardcodes the temporary library directory. |
---|
8202 | hardcode_action=relink |
---|
8203 | else |
---|
8204 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
8205 | hardcode_action=immediate |
---|
8206 | fi |
---|
8207 | else |
---|
8208 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
8209 | # directories. |
---|
8210 | hardcode_action=unsupported |
---|
8211 | fi |
---|
8212 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
8213 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
8214 | |
---|
8215 | if test "$hardcode_action" = relink; then |
---|
8216 | # Fast installation is not supported |
---|
8217 | enable_fast_install=no |
---|
8218 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
8219 | test "$enable_shared" = no; then |
---|
8220 | # Fast installation is not necessary |
---|
8221 | enable_fast_install=needless |
---|
8222 | fi |
---|
8223 | |
---|
8224 | striplib= |
---|
8225 | old_striplib= |
---|
8226 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
8227 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
8228 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
8229 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
8230 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
8231 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8232 | echo "${ECHO_T}yes" >&6 |
---|
8233 | else |
---|
8234 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
8235 | case $host_os in |
---|
8236 | darwin*) |
---|
8237 | if test -n "$STRIP" ; then |
---|
8238 | striplib="$STRIP -x" |
---|
8239 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8240 | echo "${ECHO_T}yes" >&6 |
---|
8241 | else |
---|
8242 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8243 | echo "${ECHO_T}no" >&6 |
---|
8244 | fi |
---|
8245 | ;; |
---|
8246 | *) |
---|
8247 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8248 | echo "${ECHO_T}no" >&6 |
---|
8249 | ;; |
---|
8250 | esac |
---|
8251 | fi |
---|
8252 | |
---|
8253 | if test "x$enable_dlopen" != xyes; then |
---|
8254 | enable_dlopen=unknown |
---|
8255 | enable_dlopen_self=unknown |
---|
8256 | enable_dlopen_self_static=unknown |
---|
8257 | else |
---|
8258 | lt_cv_dlopen=no |
---|
8259 | lt_cv_dlopen_libs= |
---|
8260 | |
---|
8261 | case $host_os in |
---|
8262 | beos*) |
---|
8263 | lt_cv_dlopen="load_add_on" |
---|
8264 | lt_cv_dlopen_libs= |
---|
8265 | lt_cv_dlopen_self=yes |
---|
8266 | ;; |
---|
8267 | |
---|
8268 | mingw* | pw32*) |
---|
8269 | lt_cv_dlopen="LoadLibrary" |
---|
8270 | lt_cv_dlopen_libs= |
---|
8271 | ;; |
---|
8272 | |
---|
8273 | cygwin*) |
---|
8274 | lt_cv_dlopen="dlopen" |
---|
8275 | lt_cv_dlopen_libs= |
---|
8276 | ;; |
---|
8277 | |
---|
8278 | darwin*) |
---|
8279 | # if libdl is installed we need to link against it |
---|
8280 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
8281 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
8282 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
8283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8284 | else |
---|
8285 | ac_check_lib_save_LIBS=$LIBS |
---|
8286 | LIBS="-ldl $LIBS" |
---|
8287 | cat >conftest.$ac_ext <<_ACEOF |
---|
8288 | /* confdefs.h. */ |
---|
8289 | _ACEOF |
---|
8290 | cat confdefs.h >>conftest.$ac_ext |
---|
8291 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8292 | /* end confdefs.h. */ |
---|
8293 | |
---|
8294 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8295 | #ifdef __cplusplus |
---|
8296 | extern "C" |
---|
8297 | #endif |
---|
8298 | /* We use char because int might match the return type of a gcc2 |
---|
8299 | builtin and then its argument prototype would still apply. */ |
---|
8300 | char dlopen (); |
---|
8301 | int |
---|
8302 | main () |
---|
8303 | { |
---|
8304 | dlopen (); |
---|
8305 | ; |
---|
8306 | return 0; |
---|
8307 | } |
---|
8308 | _ACEOF |
---|
8309 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8311 | (eval $ac_link) 2>conftest.er1 |
---|
8312 | ac_status=$? |
---|
8313 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8314 | rm -f conftest.er1 |
---|
8315 | cat conftest.err >&5 |
---|
8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8317 | (exit $ac_status); } && |
---|
8318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8320 | (eval $ac_try) 2>&5 |
---|
8321 | ac_status=$? |
---|
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8323 | (exit $ac_status); }; } && |
---|
8324 | { ac_try='test -s conftest$ac_exeext' |
---|
8325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8326 | (eval $ac_try) 2>&5 |
---|
8327 | ac_status=$? |
---|
8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8329 | (exit $ac_status); }; }; then |
---|
8330 | ac_cv_lib_dl_dlopen=yes |
---|
8331 | else |
---|
8332 | echo "$as_me: failed program was:" >&5 |
---|
8333 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8334 | |
---|
8335 | ac_cv_lib_dl_dlopen=no |
---|
8336 | fi |
---|
8337 | rm -f conftest.err conftest.$ac_objext \ |
---|
8338 | conftest$ac_exeext conftest.$ac_ext |
---|
8339 | LIBS=$ac_check_lib_save_LIBS |
---|
8340 | fi |
---|
8341 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
8342 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
8343 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
8344 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
8345 | else |
---|
8346 | |
---|
8347 | lt_cv_dlopen="dyld" |
---|
8348 | lt_cv_dlopen_libs= |
---|
8349 | lt_cv_dlopen_self=yes |
---|
8350 | |
---|
8351 | fi |
---|
8352 | |
---|
8353 | ;; |
---|
8354 | |
---|
8355 | *) |
---|
8356 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
8357 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
8358 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
8359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8360 | else |
---|
8361 | cat >conftest.$ac_ext <<_ACEOF |
---|
8362 | /* confdefs.h. */ |
---|
8363 | _ACEOF |
---|
8364 | cat confdefs.h >>conftest.$ac_ext |
---|
8365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8366 | /* end confdefs.h. */ |
---|
8367 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
8368 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
8369 | #define shl_load innocuous_shl_load |
---|
8370 | |
---|
8371 | /* System header to define __stub macros and hopefully few prototypes, |
---|
8372 | which can conflict with char shl_load (); below. |
---|
8373 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8374 | <limits.h> exists even on freestanding compilers. */ |
---|
8375 | |
---|
8376 | #ifdef __STDC__ |
---|
8377 | # include <limits.h> |
---|
8378 | #else |
---|
8379 | # include <assert.h> |
---|
8380 | #endif |
---|
8381 | |
---|
8382 | #undef shl_load |
---|
8383 | |
---|
8384 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8385 | #ifdef __cplusplus |
---|
8386 | extern "C" |
---|
8387 | { |
---|
8388 | #endif |
---|
8389 | /* We use char because int might match the return type of a gcc2 |
---|
8390 | builtin and then its argument prototype would still apply. */ |
---|
8391 | char shl_load (); |
---|
8392 | /* The GNU C library defines this for functions which it implements |
---|
8393 | to always fail with ENOSYS. Some functions are actually named |
---|
8394 | something starting with __ and the normal name is an alias. */ |
---|
8395 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
8396 | choke me |
---|
8397 | #else |
---|
8398 | char (*f) () = shl_load; |
---|
8399 | #endif |
---|
8400 | #ifdef __cplusplus |
---|
8401 | } |
---|
8402 | #endif |
---|
8403 | |
---|
8404 | int |
---|
8405 | main () |
---|
8406 | { |
---|
8407 | return f != shl_load; |
---|
8408 | ; |
---|
8409 | return 0; |
---|
8410 | } |
---|
8411 | _ACEOF |
---|
8412 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8414 | (eval $ac_link) 2>conftest.er1 |
---|
8415 | ac_status=$? |
---|
8416 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8417 | rm -f conftest.er1 |
---|
8418 | cat conftest.err >&5 |
---|
8419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8420 | (exit $ac_status); } && |
---|
8421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8423 | (eval $ac_try) 2>&5 |
---|
8424 | ac_status=$? |
---|
8425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8426 | (exit $ac_status); }; } && |
---|
8427 | { ac_try='test -s conftest$ac_exeext' |
---|
8428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8429 | (eval $ac_try) 2>&5 |
---|
8430 | ac_status=$? |
---|
8431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8432 | (exit $ac_status); }; }; then |
---|
8433 | ac_cv_func_shl_load=yes |
---|
8434 | else |
---|
8435 | echo "$as_me: failed program was:" >&5 |
---|
8436 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8437 | |
---|
8438 | ac_cv_func_shl_load=no |
---|
8439 | fi |
---|
8440 | rm -f conftest.err conftest.$ac_objext \ |
---|
8441 | conftest$ac_exeext conftest.$ac_ext |
---|
8442 | fi |
---|
8443 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
8444 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
8445 | if test $ac_cv_func_shl_load = yes; then |
---|
8446 | lt_cv_dlopen="shl_load" |
---|
8447 | else |
---|
8448 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
8449 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
8450 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
8451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8452 | else |
---|
8453 | ac_check_lib_save_LIBS=$LIBS |
---|
8454 | LIBS="-ldld $LIBS" |
---|
8455 | cat >conftest.$ac_ext <<_ACEOF |
---|
8456 | /* confdefs.h. */ |
---|
8457 | _ACEOF |
---|
8458 | cat confdefs.h >>conftest.$ac_ext |
---|
8459 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8460 | /* end confdefs.h. */ |
---|
8461 | |
---|
8462 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8463 | #ifdef __cplusplus |
---|
8464 | extern "C" |
---|
8465 | #endif |
---|
8466 | /* We use char because int might match the return type of a gcc2 |
---|
8467 | builtin and then its argument prototype would still apply. */ |
---|
8468 | char shl_load (); |
---|
8469 | int |
---|
8470 | main () |
---|
8471 | { |
---|
8472 | shl_load (); |
---|
8473 | ; |
---|
8474 | return 0; |
---|
8475 | } |
---|
8476 | _ACEOF |
---|
8477 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8479 | (eval $ac_link) 2>conftest.er1 |
---|
8480 | ac_status=$? |
---|
8481 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8482 | rm -f conftest.er1 |
---|
8483 | cat conftest.err >&5 |
---|
8484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8485 | (exit $ac_status); } && |
---|
8486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8488 | (eval $ac_try) 2>&5 |
---|
8489 | ac_status=$? |
---|
8490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8491 | (exit $ac_status); }; } && |
---|
8492 | { ac_try='test -s conftest$ac_exeext' |
---|
8493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8494 | (eval $ac_try) 2>&5 |
---|
8495 | ac_status=$? |
---|
8496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8497 | (exit $ac_status); }; }; then |
---|
8498 | ac_cv_lib_dld_shl_load=yes |
---|
8499 | else |
---|
8500 | echo "$as_me: failed program was:" >&5 |
---|
8501 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8502 | |
---|
8503 | ac_cv_lib_dld_shl_load=no |
---|
8504 | fi |
---|
8505 | rm -f conftest.err conftest.$ac_objext \ |
---|
8506 | conftest$ac_exeext conftest.$ac_ext |
---|
8507 | LIBS=$ac_check_lib_save_LIBS |
---|
8508 | fi |
---|
8509 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
8510 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
8511 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
8512 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
8513 | else |
---|
8514 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
8515 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
8516 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
8517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8518 | else |
---|
8519 | cat >conftest.$ac_ext <<_ACEOF |
---|
8520 | /* confdefs.h. */ |
---|
8521 | _ACEOF |
---|
8522 | cat confdefs.h >>conftest.$ac_ext |
---|
8523 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8524 | /* end confdefs.h. */ |
---|
8525 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
8526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
8527 | #define dlopen innocuous_dlopen |
---|
8528 | |
---|
8529 | /* System header to define __stub macros and hopefully few prototypes, |
---|
8530 | which can conflict with char dlopen (); below. |
---|
8531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8532 | <limits.h> exists even on freestanding compilers. */ |
---|
8533 | |
---|
8534 | #ifdef __STDC__ |
---|
8535 | # include <limits.h> |
---|
8536 | #else |
---|
8537 | # include <assert.h> |
---|
8538 | #endif |
---|
8539 | |
---|
8540 | #undef dlopen |
---|
8541 | |
---|
8542 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8543 | #ifdef __cplusplus |
---|
8544 | extern "C" |
---|
8545 | { |
---|
8546 | #endif |
---|
8547 | /* We use char because int might match the return type of a gcc2 |
---|
8548 | builtin and then its argument prototype would still apply. */ |
---|
8549 | char dlopen (); |
---|
8550 | /* The GNU C library defines this for functions which it implements |
---|
8551 | to always fail with ENOSYS. Some functions are actually named |
---|
8552 | something starting with __ and the normal name is an alias. */ |
---|
8553 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
8554 | choke me |
---|
8555 | #else |
---|
8556 | char (*f) () = dlopen; |
---|
8557 | #endif |
---|
8558 | #ifdef __cplusplus |
---|
8559 | } |
---|
8560 | #endif |
---|
8561 | |
---|
8562 | int |
---|
8563 | main () |
---|
8564 | { |
---|
8565 | return f != dlopen; |
---|
8566 | ; |
---|
8567 | return 0; |
---|
8568 | } |
---|
8569 | _ACEOF |
---|
8570 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8572 | (eval $ac_link) 2>conftest.er1 |
---|
8573 | ac_status=$? |
---|
8574 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8575 | rm -f conftest.er1 |
---|
8576 | cat conftest.err >&5 |
---|
8577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8578 | (exit $ac_status); } && |
---|
8579 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8581 | (eval $ac_try) 2>&5 |
---|
8582 | ac_status=$? |
---|
8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8584 | (exit $ac_status); }; } && |
---|
8585 | { ac_try='test -s conftest$ac_exeext' |
---|
8586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8587 | (eval $ac_try) 2>&5 |
---|
8588 | ac_status=$? |
---|
8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8590 | (exit $ac_status); }; }; then |
---|
8591 | ac_cv_func_dlopen=yes |
---|
8592 | else |
---|
8593 | echo "$as_me: failed program was:" >&5 |
---|
8594 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8595 | |
---|
8596 | ac_cv_func_dlopen=no |
---|
8597 | fi |
---|
8598 | rm -f conftest.err conftest.$ac_objext \ |
---|
8599 | conftest$ac_exeext conftest.$ac_ext |
---|
8600 | fi |
---|
8601 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
8602 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
8603 | if test $ac_cv_func_dlopen = yes; then |
---|
8604 | lt_cv_dlopen="dlopen" |
---|
8605 | else |
---|
8606 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
8607 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
8608 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
8609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8610 | else |
---|
8611 | ac_check_lib_save_LIBS=$LIBS |
---|
8612 | LIBS="-ldl $LIBS" |
---|
8613 | cat >conftest.$ac_ext <<_ACEOF |
---|
8614 | /* confdefs.h. */ |
---|
8615 | _ACEOF |
---|
8616 | cat confdefs.h >>conftest.$ac_ext |
---|
8617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8618 | /* end confdefs.h. */ |
---|
8619 | |
---|
8620 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8621 | #ifdef __cplusplus |
---|
8622 | extern "C" |
---|
8623 | #endif |
---|
8624 | /* We use char because int might match the return type of a gcc2 |
---|
8625 | builtin and then its argument prototype would still apply. */ |
---|
8626 | char dlopen (); |
---|
8627 | int |
---|
8628 | main () |
---|
8629 | { |
---|
8630 | dlopen (); |
---|
8631 | ; |
---|
8632 | return 0; |
---|
8633 | } |
---|
8634 | _ACEOF |
---|
8635 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8637 | (eval $ac_link) 2>conftest.er1 |
---|
8638 | ac_status=$? |
---|
8639 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8640 | rm -f conftest.er1 |
---|
8641 | cat conftest.err >&5 |
---|
8642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8643 | (exit $ac_status); } && |
---|
8644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8646 | (eval $ac_try) 2>&5 |
---|
8647 | ac_status=$? |
---|
8648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8649 | (exit $ac_status); }; } && |
---|
8650 | { ac_try='test -s conftest$ac_exeext' |
---|
8651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8652 | (eval $ac_try) 2>&5 |
---|
8653 | ac_status=$? |
---|
8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8655 | (exit $ac_status); }; }; then |
---|
8656 | ac_cv_lib_dl_dlopen=yes |
---|
8657 | else |
---|
8658 | echo "$as_me: failed program was:" >&5 |
---|
8659 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8660 | |
---|
8661 | ac_cv_lib_dl_dlopen=no |
---|
8662 | fi |
---|
8663 | rm -f conftest.err conftest.$ac_objext \ |
---|
8664 | conftest$ac_exeext conftest.$ac_ext |
---|
8665 | LIBS=$ac_check_lib_save_LIBS |
---|
8666 | fi |
---|
8667 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
8668 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
8669 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
8670 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
8671 | else |
---|
8672 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
8673 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
8674 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
8675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8676 | else |
---|
8677 | ac_check_lib_save_LIBS=$LIBS |
---|
8678 | LIBS="-lsvld $LIBS" |
---|
8679 | cat >conftest.$ac_ext <<_ACEOF |
---|
8680 | /* confdefs.h. */ |
---|
8681 | _ACEOF |
---|
8682 | cat confdefs.h >>conftest.$ac_ext |
---|
8683 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8684 | /* end confdefs.h. */ |
---|
8685 | |
---|
8686 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8687 | #ifdef __cplusplus |
---|
8688 | extern "C" |
---|
8689 | #endif |
---|
8690 | /* We use char because int might match the return type of a gcc2 |
---|
8691 | builtin and then its argument prototype would still apply. */ |
---|
8692 | char dlopen (); |
---|
8693 | int |
---|
8694 | main () |
---|
8695 | { |
---|
8696 | dlopen (); |
---|
8697 | ; |
---|
8698 | return 0; |
---|
8699 | } |
---|
8700 | _ACEOF |
---|
8701 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8703 | (eval $ac_link) 2>conftest.er1 |
---|
8704 | ac_status=$? |
---|
8705 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8706 | rm -f conftest.er1 |
---|
8707 | cat conftest.err >&5 |
---|
8708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8709 | (exit $ac_status); } && |
---|
8710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8712 | (eval $ac_try) 2>&5 |
---|
8713 | ac_status=$? |
---|
8714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8715 | (exit $ac_status); }; } && |
---|
8716 | { ac_try='test -s conftest$ac_exeext' |
---|
8717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8718 | (eval $ac_try) 2>&5 |
---|
8719 | ac_status=$? |
---|
8720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8721 | (exit $ac_status); }; }; then |
---|
8722 | ac_cv_lib_svld_dlopen=yes |
---|
8723 | else |
---|
8724 | echo "$as_me: failed program was:" >&5 |
---|
8725 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8726 | |
---|
8727 | ac_cv_lib_svld_dlopen=no |
---|
8728 | fi |
---|
8729 | rm -f conftest.err conftest.$ac_objext \ |
---|
8730 | conftest$ac_exeext conftest.$ac_ext |
---|
8731 | LIBS=$ac_check_lib_save_LIBS |
---|
8732 | fi |
---|
8733 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
8734 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
8735 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
8736 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
8737 | else |
---|
8738 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
8739 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
8740 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
8741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8742 | else |
---|
8743 | ac_check_lib_save_LIBS=$LIBS |
---|
8744 | LIBS="-ldld $LIBS" |
---|
8745 | cat >conftest.$ac_ext <<_ACEOF |
---|
8746 | /* confdefs.h. */ |
---|
8747 | _ACEOF |
---|
8748 | cat confdefs.h >>conftest.$ac_ext |
---|
8749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8750 | /* end confdefs.h. */ |
---|
8751 | |
---|
8752 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8753 | #ifdef __cplusplus |
---|
8754 | extern "C" |
---|
8755 | #endif |
---|
8756 | /* We use char because int might match the return type of a gcc2 |
---|
8757 | builtin and then its argument prototype would still apply. */ |
---|
8758 | char dld_link (); |
---|
8759 | int |
---|
8760 | main () |
---|
8761 | { |
---|
8762 | dld_link (); |
---|
8763 | ; |
---|
8764 | return 0; |
---|
8765 | } |
---|
8766 | _ACEOF |
---|
8767 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8769 | (eval $ac_link) 2>conftest.er1 |
---|
8770 | ac_status=$? |
---|
8771 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8772 | rm -f conftest.er1 |
---|
8773 | cat conftest.err >&5 |
---|
8774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8775 | (exit $ac_status); } && |
---|
8776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
8777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8778 | (eval $ac_try) 2>&5 |
---|
8779 | ac_status=$? |
---|
8780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8781 | (exit $ac_status); }; } && |
---|
8782 | { ac_try='test -s conftest$ac_exeext' |
---|
8783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8784 | (eval $ac_try) 2>&5 |
---|
8785 | ac_status=$? |
---|
8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8787 | (exit $ac_status); }; }; then |
---|
8788 | ac_cv_lib_dld_dld_link=yes |
---|
8789 | else |
---|
8790 | echo "$as_me: failed program was:" >&5 |
---|
8791 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8792 | |
---|
8793 | ac_cv_lib_dld_dld_link=no |
---|
8794 | fi |
---|
8795 | rm -f conftest.err conftest.$ac_objext \ |
---|
8796 | conftest$ac_exeext conftest.$ac_ext |
---|
8797 | LIBS=$ac_check_lib_save_LIBS |
---|
8798 | fi |
---|
8799 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
8800 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
8801 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
8802 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
8803 | fi |
---|
8804 | |
---|
8805 | |
---|
8806 | fi |
---|
8807 | |
---|
8808 | |
---|
8809 | fi |
---|
8810 | |
---|
8811 | |
---|
8812 | fi |
---|
8813 | |
---|
8814 | |
---|
8815 | fi |
---|
8816 | |
---|
8817 | |
---|
8818 | fi |
---|
8819 | |
---|
8820 | ;; |
---|
8821 | esac |
---|
8822 | |
---|
8823 | if test "x$lt_cv_dlopen" != xno; then |
---|
8824 | enable_dlopen=yes |
---|
8825 | else |
---|
8826 | enable_dlopen=no |
---|
8827 | fi |
---|
8828 | |
---|
8829 | case $lt_cv_dlopen in |
---|
8830 | dlopen) |
---|
8831 | save_CPPFLAGS="$CPPFLAGS" |
---|
8832 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
8833 | |
---|
8834 | save_LDFLAGS="$LDFLAGS" |
---|
8835 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
8836 | |
---|
8837 | save_LIBS="$LIBS" |
---|
8838 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
8839 | |
---|
8840 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
8841 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
8842 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
8843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8844 | else |
---|
8845 | if test "$cross_compiling" = yes; then : |
---|
8846 | lt_cv_dlopen_self=cross |
---|
8847 | else |
---|
8848 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
8849 | lt_status=$lt_dlunknown |
---|
8850 | cat > conftest.$ac_ext <<EOF |
---|
8851 | #line __oline__ "configure" |
---|
8852 | #include "confdefs.h" |
---|
8853 | |
---|
8854 | #if HAVE_DLFCN_H |
---|
8855 | #include <dlfcn.h> |
---|
8856 | #endif |
---|
8857 | |
---|
8858 | #include <stdio.h> |
---|
8859 | |
---|
8860 | #ifdef RTLD_GLOBAL |
---|
8861 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
8862 | #else |
---|
8863 | # ifdef DL_GLOBAL |
---|
8864 | # define LT_DLGLOBAL DL_GLOBAL |
---|
8865 | # else |
---|
8866 | # define LT_DLGLOBAL 0 |
---|
8867 | # endif |
---|
8868 | #endif |
---|
8869 | |
---|
8870 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
8871 | find out it does not work in some platform. */ |
---|
8872 | #ifndef LT_DLLAZY_OR_NOW |
---|
8873 | # ifdef RTLD_LAZY |
---|
8874 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
8875 | # else |
---|
8876 | # ifdef DL_LAZY |
---|
8877 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
8878 | # else |
---|
8879 | # ifdef RTLD_NOW |
---|
8880 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
8881 | # else |
---|
8882 | # ifdef DL_NOW |
---|
8883 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
8884 | # else |
---|
8885 | # define LT_DLLAZY_OR_NOW 0 |
---|
8886 | # endif |
---|
8887 | # endif |
---|
8888 | # endif |
---|
8889 | # endif |
---|
8890 | #endif |
---|
8891 | |
---|
8892 | #ifdef __cplusplus |
---|
8893 | extern "C" void exit (int); |
---|
8894 | #endif |
---|
8895 | |
---|
8896 | void fnord() { int i=42;} |
---|
8897 | int main () |
---|
8898 | { |
---|
8899 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
8900 | int status = $lt_dlunknown; |
---|
8901 | |
---|
8902 | if (self) |
---|
8903 | { |
---|
8904 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
8905 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
8906 | /* dlclose (self); */ |
---|
8907 | } |
---|
8908 | |
---|
8909 | exit (status); |
---|
8910 | } |
---|
8911 | EOF |
---|
8912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8913 | (eval $ac_link) 2>&5 |
---|
8914 | ac_status=$? |
---|
8915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8916 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
8917 | (./conftest; exit; ) 2>/dev/null |
---|
8918 | lt_status=$? |
---|
8919 | case x$lt_status in |
---|
8920 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
8921 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
8922 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
8923 | esac |
---|
8924 | else : |
---|
8925 | # compilation failed |
---|
8926 | lt_cv_dlopen_self=no |
---|
8927 | fi |
---|
8928 | fi |
---|
8929 | rm -fr conftest* |
---|
8930 | |
---|
8931 | |
---|
8932 | fi |
---|
8933 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
8934 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
8935 | |
---|
8936 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
8937 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
8938 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
8939 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
8940 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
8941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8942 | else |
---|
8943 | if test "$cross_compiling" = yes; then : |
---|
8944 | lt_cv_dlopen_self_static=cross |
---|
8945 | else |
---|
8946 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
8947 | lt_status=$lt_dlunknown |
---|
8948 | cat > conftest.$ac_ext <<EOF |
---|
8949 | #line __oline__ "configure" |
---|
8950 | #include "confdefs.h" |
---|
8951 | |
---|
8952 | #if HAVE_DLFCN_H |
---|
8953 | #include <dlfcn.h> |
---|
8954 | #endif |
---|
8955 | |
---|
8956 | #include <stdio.h> |
---|
8957 | |
---|
8958 | #ifdef RTLD_GLOBAL |
---|
8959 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
8960 | #else |
---|
8961 | # ifdef DL_GLOBAL |
---|
8962 | # define LT_DLGLOBAL DL_GLOBAL |
---|
8963 | # else |
---|
8964 | # define LT_DLGLOBAL 0 |
---|
8965 | # endif |
---|
8966 | #endif |
---|
8967 | |
---|
8968 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
8969 | find out it does not work in some platform. */ |
---|
8970 | #ifndef LT_DLLAZY_OR_NOW |
---|
8971 | # ifdef RTLD_LAZY |
---|
8972 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
8973 | # else |
---|
8974 | # ifdef DL_LAZY |
---|
8975 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
8976 | # else |
---|
8977 | # ifdef RTLD_NOW |
---|
8978 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
8979 | # else |
---|
8980 | # ifdef DL_NOW |
---|
8981 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
8982 | # else |
---|
8983 | # define LT_DLLAZY_OR_NOW 0 |
---|
8984 | # endif |
---|
8985 | # endif |
---|
8986 | # endif |
---|
8987 | # endif |
---|
8988 | #endif |
---|
8989 | |
---|
8990 | #ifdef __cplusplus |
---|
8991 | extern "C" void exit (int); |
---|
8992 | #endif |
---|
8993 | |
---|
8994 | void fnord() { int i=42;} |
---|
8995 | int main () |
---|
8996 | { |
---|
8997 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
8998 | int status = $lt_dlunknown; |
---|
8999 | |
---|
9000 | if (self) |
---|
9001 | { |
---|
9002 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
9003 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
9004 | /* dlclose (self); */ |
---|
9005 | } |
---|
9006 | |
---|
9007 | exit (status); |
---|
9008 | } |
---|
9009 | EOF |
---|
9010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9011 | (eval $ac_link) 2>&5 |
---|
9012 | ac_status=$? |
---|
9013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9014 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
9015 | (./conftest; exit; ) 2>/dev/null |
---|
9016 | lt_status=$? |
---|
9017 | case x$lt_status in |
---|
9018 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
9019 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
9020 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
9021 | esac |
---|
9022 | else : |
---|
9023 | # compilation failed |
---|
9024 | lt_cv_dlopen_self_static=no |
---|
9025 | fi |
---|
9026 | fi |
---|
9027 | rm -fr conftest* |
---|
9028 | |
---|
9029 | |
---|
9030 | fi |
---|
9031 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
9032 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
9033 | fi |
---|
9034 | |
---|
9035 | CPPFLAGS="$save_CPPFLAGS" |
---|
9036 | LDFLAGS="$save_LDFLAGS" |
---|
9037 | LIBS="$save_LIBS" |
---|
9038 | ;; |
---|
9039 | esac |
---|
9040 | |
---|
9041 | case $lt_cv_dlopen_self in |
---|
9042 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
9043 | *) enable_dlopen_self=unknown ;; |
---|
9044 | esac |
---|
9045 | |
---|
9046 | case $lt_cv_dlopen_self_static in |
---|
9047 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
9048 | *) enable_dlopen_self_static=unknown ;; |
---|
9049 | esac |
---|
9050 | fi |
---|
9051 | |
---|
9052 | |
---|
9053 | # Report which librarie types wil actually be built |
---|
9054 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
9055 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
9056 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
9057 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
9058 | |
---|
9059 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
9060 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
9061 | test "$can_build_shared" = "no" && enable_shared=no |
---|
9062 | |
---|
9063 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
9064 | # are all built from PIC. |
---|
9065 | case "$host_os" in |
---|
9066 | aix3*) |
---|
9067 | test "$enable_shared" = yes && enable_static=no |
---|
9068 | if test -n "$RANLIB"; then |
---|
9069 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
9070 | postinstall_cmds='$RANLIB $lib' |
---|
9071 | fi |
---|
9072 | ;; |
---|
9073 | |
---|
9074 | aix4* | aix5*) |
---|
9075 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
9076 | test "$enable_shared" = yes && enable_static=no |
---|
9077 | fi |
---|
9078 | ;; |
---|
9079 | darwin* | rhapsody*) |
---|
9080 | if test "$GCC" = yes; then |
---|
9081 | archive_cmds_need_lc=no |
---|
9082 | case "$host_os" in |
---|
9083 | rhapsody* | darwin1.[012]) |
---|
9084 | allow_undefined_flag='-undefined suppress' |
---|
9085 | ;; |
---|
9086 | *) # Darwin 1.3 on |
---|
9087 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
9088 | allow_undefined_flag='-flat_namespace -undefined suppress' |
---|
9089 | else |
---|
9090 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
9091 | 10.[012]) |
---|
9092 | allow_undefined_flag='-flat_namespace -undefined suppress' |
---|
9093 | ;; |
---|
9094 | 10.*) |
---|
9095 | allow_undefined_flag='-undefined dynamic_lookup' |
---|
9096 | ;; |
---|
9097 | esac |
---|
9098 | fi |
---|
9099 | ;; |
---|
9100 | esac |
---|
9101 | output_verbose_link_cmd='echo' |
---|
9102 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
---|
9103 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
9104 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
9105 | 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}' |
---|
9106 | 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}' |
---|
9107 | hardcode_direct=no |
---|
9108 | hardcode_automatic=yes |
---|
9109 | hardcode_shlibpath_var=unsupported |
---|
9110 | whole_archive_flag_spec='-all_load $convenience' |
---|
9111 | link_all_deplibs=yes |
---|
9112 | else |
---|
9113 | ld_shlibs=no |
---|
9114 | fi |
---|
9115 | ;; |
---|
9116 | esac |
---|
9117 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
9118 | echo "${ECHO_T}$enable_shared" >&6 |
---|
9119 | |
---|
9120 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
9121 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
---|
9122 | # Make sure either enable_shared or enable_static is yes. |
---|
9123 | test "$enable_shared" = yes || enable_static=yes |
---|
9124 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
9125 | echo "${ECHO_T}$enable_static" >&6 |
---|
9126 | |
---|
9127 | # The else clause should only fire when bootstrapping the |
---|
9128 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
9129 | # with your package, and you will get complaints that there are |
---|
9130 | # no rules to generate ltmain.sh. |
---|
9131 | if test -f "$ltmain"; then |
---|
9132 | # See if we are running on zsh, and set the options which allow our commands through |
---|
9133 | # without removal of \ escapes. |
---|
9134 | if test -n "${ZSH_VERSION+set}" ; then |
---|
9135 | setopt NO_GLOB_SUBST |
---|
9136 | fi |
---|
9137 | # Now quote all the things that may contain metacharacters while being |
---|
9138 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
9139 | # variables and quote the copies for generation of the libtool script. |
---|
9140 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
9141 | SED SHELL STRIP \ |
---|
9142 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
9143 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
9144 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
9145 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
9146 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
9147 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
9148 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
9149 | compiler \ |
---|
9150 | CC \ |
---|
9151 | LD \ |
---|
9152 | lt_prog_compiler_wl \ |
---|
9153 | lt_prog_compiler_pic \ |
---|
9154 | lt_prog_compiler_static \ |
---|
9155 | lt_prog_compiler_no_builtin_flag \ |
---|
9156 | export_dynamic_flag_spec \ |
---|
9157 | thread_safe_flag_spec \ |
---|
9158 | whole_archive_flag_spec \ |
---|
9159 | enable_shared_with_static_runtimes \ |
---|
9160 | old_archive_cmds \ |
---|
9161 | old_archive_from_new_cmds \ |
---|
9162 | predep_objects \ |
---|
9163 | postdep_objects \ |
---|
9164 | predeps \ |
---|
9165 | postdeps \ |
---|
9166 | compiler_lib_search_path \ |
---|
9167 | archive_cmds \ |
---|
9168 | archive_expsym_cmds \ |
---|
9169 | postinstall_cmds \ |
---|
9170 | postuninstall_cmds \ |
---|
9171 | old_archive_from_expsyms_cmds \ |
---|
9172 | allow_undefined_flag \ |
---|
9173 | no_undefined_flag \ |
---|
9174 | export_symbols_cmds \ |
---|
9175 | hardcode_libdir_flag_spec \ |
---|
9176 | hardcode_libdir_flag_spec_ld \ |
---|
9177 | hardcode_libdir_separator \ |
---|
9178 | hardcode_automatic \ |
---|
9179 | module_cmds \ |
---|
9180 | module_expsym_cmds \ |
---|
9181 | lt_cv_prog_compiler_c_o \ |
---|
9182 | exclude_expsyms \ |
---|
9183 | include_expsyms; do |
---|
9184 | |
---|
9185 | case $var in |
---|
9186 | old_archive_cmds | \ |
---|
9187 | old_archive_from_new_cmds | \ |
---|
9188 | archive_cmds | \ |
---|
9189 | archive_expsym_cmds | \ |
---|
9190 | module_cmds | \ |
---|
9191 | module_expsym_cmds | \ |
---|
9192 | old_archive_from_expsyms_cmds | \ |
---|
9193 | export_symbols_cmds | \ |
---|
9194 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
9195 | postinstall_cmds | postuninstall_cmds | \ |
---|
9196 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
9197 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
9198 | # Double-quote double-evaled strings. |
---|
9199 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
9200 | ;; |
---|
9201 | *) |
---|
9202 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
9203 | ;; |
---|
9204 | esac |
---|
9205 | done |
---|
9206 | |
---|
9207 | case $lt_echo in |
---|
9208 | *'\$0 --fallback-echo"') |
---|
9209 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
9210 | ;; |
---|
9211 | esac |
---|
9212 | |
---|
9213 | cfgfile="${ofile}T" |
---|
9214 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
---|
9215 | $rm -f "$cfgfile" |
---|
9216 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
---|
9217 | echo "$as_me: creating $ofile" >&6;} |
---|
9218 | |
---|
9219 | cat <<__EOF__ >> "$cfgfile" |
---|
9220 | #! $SHELL |
---|
9221 | |
---|
9222 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
9223 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
9224 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
9225 | # |
---|
9226 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
---|
9227 | # Free Software Foundation, Inc. |
---|
9228 | # |
---|
9229 | # This file is part of GNU Libtool: |
---|
9230 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
9231 | # |
---|
9232 | # This program is free software; you can redistribute it and/or modify |
---|
9233 | # it under the terms of the GNU General Public License as published by |
---|
9234 | # the Free Software Foundation; either version 2 of the License, or |
---|
9235 | # (at your option) any later version. |
---|
9236 | # |
---|
9237 | # This program is distributed in the hope that it will be useful, but |
---|
9238 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
9239 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
9240 | # General Public License for more details. |
---|
9241 | # |
---|
9242 | # You should have received a copy of the GNU General Public License |
---|
9243 | # along with this program; if not, write to the Free Software |
---|
9244 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
9245 | # |
---|
9246 | # As a special exception to the GNU General Public License, if you |
---|
9247 | # distribute this file as part of a program that contains a |
---|
9248 | # configuration script generated by Autoconf, you may include it under |
---|
9249 | # the same distribution terms that you use for the rest of that program. |
---|
9250 | |
---|
9251 | # A sed program that does not truncate output. |
---|
9252 | SED=$lt_SED |
---|
9253 | |
---|
9254 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
9255 | Xsed="$SED -e s/^X//" |
---|
9256 | |
---|
9257 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
9258 | # if CDPATH is set. |
---|
9259 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
---|
9260 | |
---|
9261 | # The names of the tagged configurations supported by this script. |
---|
9262 | available_tags= |
---|
9263 | |
---|
9264 | # ### BEGIN LIBTOOL CONFIG |
---|
9265 | |
---|
9266 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
9267 | |
---|
9268 | # Shell to use when invoking shell scripts. |
---|
9269 | SHELL=$lt_SHELL |
---|
9270 | |
---|
9271 | # Whether or not to build shared libraries. |
---|
9272 | build_libtool_libs=$enable_shared |
---|
9273 | |
---|
9274 | # Whether or not to build static libraries. |
---|
9275 | build_old_libs=$enable_static |
---|
9276 | |
---|
9277 | # Whether or not to add -lc for building shared libraries. |
---|
9278 | build_libtool_need_lc=$archive_cmds_need_lc |
---|
9279 | |
---|
9280 | # Whether or not to disallow shared libs when runtime libs are static |
---|
9281 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
---|
9282 | |
---|
9283 | # Whether or not to optimize for fast installation. |
---|
9284 | fast_install=$enable_fast_install |
---|
9285 | |
---|
9286 | # The host system. |
---|
9287 | host_alias=$host_alias |
---|
9288 | host=$host |
---|
9289 | |
---|
9290 | # An echo program that does not interpret backslashes. |
---|
9291 | echo=$lt_echo |
---|
9292 | |
---|
9293 | # The archiver. |
---|
9294 | AR=$lt_AR |
---|
9295 | AR_FLAGS=$lt_AR_FLAGS |
---|
9296 | |
---|
9297 | # A C compiler. |
---|
9298 | LTCC=$lt_LTCC |
---|
9299 | |
---|
9300 | # A language-specific compiler. |
---|
9301 | CC=$lt_compiler |
---|
9302 | |
---|
9303 | # Is the compiler the GNU C compiler? |
---|
9304 | with_gcc=$GCC |
---|
9305 | |
---|
9306 | # An ERE matcher. |
---|
9307 | EGREP=$lt_EGREP |
---|
9308 | |
---|
9309 | # The linker used to build libraries. |
---|
9310 | LD=$lt_LD |
---|
9311 | |
---|
9312 | # Whether we need hard or soft links. |
---|
9313 | LN_S=$lt_LN_S |
---|
9314 | |
---|
9315 | # A BSD-compatible nm program. |
---|
9316 | NM=$lt_NM |
---|
9317 | |
---|
9318 | # A symbol stripping program |
---|
9319 | STRIP=$lt_STRIP |
---|
9320 | |
---|
9321 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
9322 | MAGIC_CMD=$MAGIC_CMD |
---|
9323 | |
---|
9324 | # Used on cygwin: DLL creation program. |
---|
9325 | DLLTOOL="$DLLTOOL" |
---|
9326 | |
---|
9327 | # Used on cygwin: object dumper. |
---|
9328 | OBJDUMP="$OBJDUMP" |
---|
9329 | |
---|
9330 | # Used on cygwin: assembler. |
---|
9331 | AS="$AS" |
---|
9332 | |
---|
9333 | # The name of the directory that contains temporary libtool files. |
---|
9334 | objdir=$objdir |
---|
9335 | |
---|
9336 | # How to create reloadable object files. |
---|
9337 | reload_flag=$lt_reload_flag |
---|
9338 | reload_cmds=$lt_reload_cmds |
---|
9339 | |
---|
9340 | # How to pass a linker flag through the compiler. |
---|
9341 | wl=$lt_lt_prog_compiler_wl |
---|
9342 | |
---|
9343 | # Object file suffix (normally "o"). |
---|
9344 | objext="$ac_objext" |
---|
9345 | |
---|
9346 | # Old archive suffix (normally "a"). |
---|
9347 | libext="$libext" |
---|
9348 | |
---|
9349 | # Shared library suffix (normally ".so"). |
---|
9350 | shrext_cmds='$shrext_cmds' |
---|
9351 | |
---|
9352 | # Executable file suffix (normally ""). |
---|
9353 | exeext="$exeext" |
---|
9354 | |
---|
9355 | # Additional compiler flags for building library objects. |
---|
9356 | pic_flag=$lt_lt_prog_compiler_pic |
---|
9357 | pic_mode=$pic_mode |
---|
9358 | |
---|
9359 | # What is the maximum length of a command? |
---|
9360 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
9361 | |
---|
9362 | # Does compiler simultaneously support -c and -o options? |
---|
9363 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
---|
9364 | |
---|
9365 | # Must we lock files when doing compilation ? |
---|
9366 | need_locks=$lt_need_locks |
---|
9367 | |
---|
9368 | # Do we need the lib prefix for modules? |
---|
9369 | need_lib_prefix=$need_lib_prefix |
---|
9370 | |
---|
9371 | # Do we need a version for libraries? |
---|
9372 | need_version=$need_version |
---|
9373 | |
---|
9374 | # Whether dlopen is supported. |
---|
9375 | dlopen_support=$enable_dlopen |
---|
9376 | |
---|
9377 | # Whether dlopen of programs is supported. |
---|
9378 | dlopen_self=$enable_dlopen_self |
---|
9379 | |
---|
9380 | # Whether dlopen of statically linked programs is supported. |
---|
9381 | dlopen_self_static=$enable_dlopen_self_static |
---|
9382 | |
---|
9383 | # Compiler flag to prevent dynamic linking. |
---|
9384 | link_static_flag=$lt_lt_prog_compiler_static |
---|
9385 | |
---|
9386 | # Compiler flag to turn off builtin functions. |
---|
9387 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
---|
9388 | |
---|
9389 | # Compiler flag to allow reflexive dlopens. |
---|
9390 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
---|
9391 | |
---|
9392 | # Compiler flag to generate shared objects directly from archives. |
---|
9393 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
---|
9394 | |
---|
9395 | # Compiler flag to generate thread-safe objects. |
---|
9396 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
---|
9397 | |
---|
9398 | # Library versioning type. |
---|
9399 | version_type=$version_type |
---|
9400 | |
---|
9401 | # Format of library name prefix. |
---|
9402 | libname_spec=$lt_libname_spec |
---|
9403 | |
---|
9404 | # List of archive names. First name is the real one, the rest are links. |
---|
9405 | # The last name is the one that the linker finds with -lNAME. |
---|
9406 | library_names_spec=$lt_library_names_spec |
---|
9407 | |
---|
9408 | # The coded name of the library, if different from the real name. |
---|
9409 | soname_spec=$lt_soname_spec |
---|
9410 | |
---|
9411 | # Commands used to build and install an old-style archive. |
---|
9412 | RANLIB=$lt_RANLIB |
---|
9413 | old_archive_cmds=$lt_old_archive_cmds |
---|
9414 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
9415 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
9416 | |
---|
9417 | # Create an old-style archive from a shared archive. |
---|
9418 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
---|
9419 | |
---|
9420 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
9421 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
---|
9422 | |
---|
9423 | # Commands used to build and install a shared archive. |
---|
9424 | archive_cmds=$lt_archive_cmds |
---|
9425 | archive_expsym_cmds=$lt_archive_expsym_cmds |
---|
9426 | postinstall_cmds=$lt_postinstall_cmds |
---|
9427 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
9428 | |
---|
9429 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
9430 | module_cmds=$lt_module_cmds |
---|
9431 | module_expsym_cmds=$lt_module_expsym_cmds |
---|
9432 | |
---|
9433 | # Commands to strip libraries. |
---|
9434 | old_striplib=$lt_old_striplib |
---|
9435 | striplib=$lt_striplib |
---|
9436 | |
---|
9437 | # Dependencies to place before the objects being linked to create a |
---|
9438 | # shared library. |
---|
9439 | predep_objects=$lt_predep_objects |
---|
9440 | |
---|
9441 | # Dependencies to place after the objects being linked to create a |
---|
9442 | # shared library. |
---|
9443 | postdep_objects=$lt_postdep_objects |
---|
9444 | |
---|
9445 | # Dependencies to place before the objects being linked to create a |
---|
9446 | # shared library. |
---|
9447 | predeps=$lt_predeps |
---|
9448 | |
---|
9449 | # Dependencies to place after the objects being linked to create a |
---|
9450 | # shared library. |
---|
9451 | postdeps=$lt_postdeps |
---|
9452 | |
---|
9453 | # The library search path used internally by the compiler when linking |
---|
9454 | # a shared library. |
---|
9455 | compiler_lib_search_path=$lt_compiler_lib_search_path |
---|
9456 | |
---|
9457 | # Method to check whether dependent libraries are shared objects. |
---|
9458 | deplibs_check_method=$lt_deplibs_check_method |
---|
9459 | |
---|
9460 | # Command to use when deplibs_check_method == file_magic. |
---|
9461 | file_magic_cmd=$lt_file_magic_cmd |
---|
9462 | |
---|
9463 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
9464 | allow_undefined_flag=$lt_allow_undefined_flag |
---|
9465 | |
---|
9466 | # Flag that forces no undefined symbols. |
---|
9467 | no_undefined_flag=$lt_no_undefined_flag |
---|
9468 | |
---|
9469 | # Commands used to finish a libtool library installation in a directory. |
---|
9470 | finish_cmds=$lt_finish_cmds |
---|
9471 | |
---|
9472 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
9473 | finish_eval=$lt_finish_eval |
---|
9474 | |
---|
9475 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
9476 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
9477 | |
---|
9478 | # Transform the output of nm in a proper C declaration |
---|
9479 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
9480 | |
---|
9481 | # Transform the output of nm in a C name address pair |
---|
9482 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
9483 | |
---|
9484 | # This is the shared library runtime path variable. |
---|
9485 | runpath_var=$runpath_var |
---|
9486 | |
---|
9487 | # This is the shared library path variable. |
---|
9488 | shlibpath_var=$shlibpath_var |
---|
9489 | |
---|
9490 | # Is shlibpath searched before the hard-coded library search path? |
---|
9491 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
9492 | |
---|
9493 | # How to hardcode a shared library path into an executable. |
---|
9494 | hardcode_action=$hardcode_action |
---|
9495 | |
---|
9496 | # Whether we should hardcode library paths into libraries. |
---|
9497 | hardcode_into_libs=$hardcode_into_libs |
---|
9498 | |
---|
9499 | # Flag to hardcode \$libdir into a binary during linking. |
---|
9500 | # This must work even if \$libdir does not exist. |
---|
9501 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
---|
9502 | |
---|
9503 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
9504 | # a binary during linking. This must work even if \$libdir does |
---|
9505 | # not exist. |
---|
9506 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
---|
9507 | |
---|
9508 | # Whether we need a single -rpath flag with a separated argument. |
---|
9509 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
---|
9510 | |
---|
9511 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
9512 | # resulting binary. |
---|
9513 | hardcode_direct=$hardcode_direct |
---|
9514 | |
---|
9515 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
9516 | # resulting binary. |
---|
9517 | hardcode_minus_L=$hardcode_minus_L |
---|
9518 | |
---|
9519 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
9520 | # the resulting binary. |
---|
9521 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
---|
9522 | |
---|
9523 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
9524 | # and all subsequent libraries and executables linked against it. |
---|
9525 | hardcode_automatic=$hardcode_automatic |
---|
9526 | |
---|
9527 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
9528 | # restored at relink time. |
---|
9529 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
9530 | |
---|
9531 | # Whether libtool must link a program against all its dependency libraries. |
---|
9532 | link_all_deplibs=$link_all_deplibs |
---|
9533 | |
---|
9534 | # Compile-time system search path for libraries |
---|
9535 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
9536 | |
---|
9537 | # Run-time system search path for libraries |
---|
9538 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
9539 | |
---|
9540 | # Fix the shell variable \$srcfile for the compiler. |
---|
9541 | fix_srcfile_path="$fix_srcfile_path" |
---|
9542 | |
---|
9543 | # Set to yes if exported symbols are required. |
---|
9544 | always_export_symbols=$always_export_symbols |
---|
9545 | |
---|
9546 | # The commands to list exported symbols. |
---|
9547 | export_symbols_cmds=$lt_export_symbols_cmds |
---|
9548 | |
---|
9549 | # The commands to extract the exported symbol list from a shared archive. |
---|
9550 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
9551 | |
---|
9552 | # Symbols that should not be listed in the preloaded symbols. |
---|
9553 | exclude_expsyms=$lt_exclude_expsyms |
---|
9554 | |
---|
9555 | # Symbols that must always be exported. |
---|
9556 | include_expsyms=$lt_include_expsyms |
---|
9557 | |
---|
9558 | # ### END LIBTOOL CONFIG |
---|
9559 | |
---|
9560 | __EOF__ |
---|
9561 | |
---|
9562 | |
---|
9563 | case $host_os in |
---|
9564 | aix3*) |
---|
9565 | cat <<\EOF >> "$cfgfile" |
---|
9566 | |
---|
9567 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
9568 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
9569 | # vanish in a puff of smoke. |
---|
9570 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
9571 | COLLECT_NAMES= |
---|
9572 | export COLLECT_NAMES |
---|
9573 | fi |
---|
9574 | EOF |
---|
9575 | ;; |
---|
9576 | esac |
---|
9577 | |
---|
9578 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
9579 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
9580 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
9581 | # is reportedly fixed, but why not run on old versions too? |
---|
9582 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
---|
9583 | |
---|
9584 | mv -f "$cfgfile" "$ofile" || \ |
---|
9585 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
---|
9586 | chmod +x "$ofile" |
---|
9587 | |
---|
9588 | else |
---|
9589 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
9590 | # `config.status --recheck' to rerun these tests and create the |
---|
9591 | # libtool script then. |
---|
9592 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
9593 | if test -f "$ltmain_in"; then |
---|
9594 | test -f Makefile && make "$ltmain" |
---|
9595 | fi |
---|
9596 | fi |
---|
9597 | |
---|
9598 | |
---|
9599 | ac_ext=c |
---|
9600 | ac_cpp='$CPP $CPPFLAGS' |
---|
9601 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
9602 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
9603 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
9604 | |
---|
9605 | CC="$lt_save_CC" |
---|
9606 | |
---|
9607 | |
---|
9608 | # Check whether --with-tags or --without-tags was given. |
---|
9609 | if test "${with_tags+set}" = set; then |
---|
9610 | withval="$with_tags" |
---|
9611 | tagnames="$withval" |
---|
9612 | fi; |
---|
9613 | |
---|
9614 | if test -f "$ltmain" && test -n "$tagnames"; then |
---|
9615 | if test ! -f "${ofile}"; then |
---|
9616 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
---|
9617 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
---|
9618 | fi |
---|
9619 | |
---|
9620 | if test -z "$LTCC"; then |
---|
9621 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
---|
9622 | if test -z "$LTCC"; then |
---|
9623 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
---|
9624 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
---|
9625 | else |
---|
9626 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
---|
9627 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
---|
9628 | fi |
---|
9629 | fi |
---|
9630 | |
---|
9631 | # Extract list of available tagged configurations in $ofile. |
---|
9632 | # Note that this assumes the entire list is on one line. |
---|
9633 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
---|
9634 | |
---|
9635 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
9636 | for tagname in $tagnames; do |
---|
9637 | IFS="$lt_save_ifs" |
---|
9638 | # Check whether tagname contains only valid characters |
---|
9639 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
---|
9640 | "") ;; |
---|
9641 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
---|
9642 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
---|
9643 | { (exit 1); exit 1; }; } |
---|
9644 | ;; |
---|
9645 | esac |
---|
9646 | |
---|
9647 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
---|
9648 | then |
---|
9649 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
---|
9650 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
---|
9651 | { (exit 1); exit 1; }; } |
---|
9652 | fi |
---|
9653 | |
---|
9654 | # Update the list of available tags. |
---|
9655 | if test -n "$tagname"; then |
---|
9656 | echo appending configuration tag \"$tagname\" to $ofile |
---|
9657 | |
---|
9658 | case $tagname in |
---|
9659 | CXX) |
---|
9660 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
---|
9661 | ac_ext=cc |
---|
9662 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
9663 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
9664 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
9665 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
9666 | |
---|
9667 | |
---|
9668 | |
---|
9669 | |
---|
9670 | archive_cmds_need_lc_CXX=no |
---|
9671 | allow_undefined_flag_CXX= |
---|
9672 | always_export_symbols_CXX=no |
---|
9673 | archive_expsym_cmds_CXX= |
---|
9674 | export_dynamic_flag_spec_CXX= |
---|
9675 | hardcode_direct_CXX=no |
---|
9676 | hardcode_libdir_flag_spec_CXX= |
---|
9677 | hardcode_libdir_flag_spec_ld_CXX= |
---|
9678 | hardcode_libdir_separator_CXX= |
---|
9679 | hardcode_minus_L_CXX=no |
---|
9680 | hardcode_automatic_CXX=no |
---|
9681 | module_cmds_CXX= |
---|
9682 | module_expsym_cmds_CXX= |
---|
9683 | link_all_deplibs_CXX=unknown |
---|
9684 | old_archive_cmds_CXX=$old_archive_cmds |
---|
9685 | no_undefined_flag_CXX= |
---|
9686 | whole_archive_flag_spec_CXX= |
---|
9687 | enable_shared_with_static_runtimes_CXX=no |
---|
9688 | |
---|
9689 | # Dependencies to place before and after the object being linked: |
---|
9690 | predep_objects_CXX= |
---|
9691 | postdep_objects_CXX= |
---|
9692 | predeps_CXX= |
---|
9693 | postdeps_CXX= |
---|
9694 | compiler_lib_search_path_CXX= |
---|
9695 | |
---|
9696 | # Source file extension for C++ test sources. |
---|
9697 | ac_ext=cc |
---|
9698 | |
---|
9699 | # Object file extension for compiled C++ test sources. |
---|
9700 | objext=o |
---|
9701 | objext_CXX=$objext |
---|
9702 | |
---|
9703 | # Code to be used in simple compile tests |
---|
9704 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
9705 | |
---|
9706 | # Code to be used in simple link tests |
---|
9707 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
---|
9708 | |
---|
9709 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
9710 | |
---|
9711 | # If no C compiler was specified, use CC. |
---|
9712 | LTCC=${LTCC-"$CC"} |
---|
9713 | |
---|
9714 | # Allow CC to be a program name with arguments. |
---|
9715 | compiler=$CC |
---|
9716 | |
---|
9717 | |
---|
9718 | # Allow CC to be a program name with arguments. |
---|
9719 | lt_save_CC=$CC |
---|
9720 | lt_save_LD=$LD |
---|
9721 | lt_save_GCC=$GCC |
---|
9722 | GCC=$GXX |
---|
9723 | lt_save_with_gnu_ld=$with_gnu_ld |
---|
9724 | lt_save_path_LD=$lt_cv_path_LD |
---|
9725 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
---|
9726 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
---|
9727 | else |
---|
9728 | unset lt_cv_prog_gnu_ld |
---|
9729 | fi |
---|
9730 | if test -n "${lt_cv_path_LDCXX+set}"; then |
---|
9731 | lt_cv_path_LD=$lt_cv_path_LDCXX |
---|
9732 | else |
---|
9733 | unset lt_cv_path_LD |
---|
9734 | fi |
---|
9735 | test -z "${LDCXX+set}" || LD=$LDCXX |
---|
9736 | CC=${CXX-"c++"} |
---|
9737 | compiler=$CC |
---|
9738 | compiler_CXX=$CC |
---|
9739 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
---|
9740 | |
---|
9741 | # We don't want -fno-exception wen compiling C++ code, so set the |
---|
9742 | # no_builtin_flag separately |
---|
9743 | if test "$GXX" = yes; then |
---|
9744 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
---|
9745 | else |
---|
9746 | lt_prog_compiler_no_builtin_flag_CXX= |
---|
9747 | fi |
---|
9748 | |
---|
9749 | if test "$GXX" = yes; then |
---|
9750 | # Set up default GNU C++ configuration |
---|
9751 | |
---|
9752 | |
---|
9753 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
9754 | if test "${with_gnu_ld+set}" = set; then |
---|
9755 | withval="$with_gnu_ld" |
---|
9756 | test "$withval" = no || with_gnu_ld=yes |
---|
9757 | else |
---|
9758 | with_gnu_ld=no |
---|
9759 | fi; |
---|
9760 | ac_prog=ld |
---|
9761 | if test "$GCC" = yes; then |
---|
9762 | # Check if gcc -print-prog-name=ld gives a path. |
---|
9763 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
9764 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
9765 | case $host in |
---|
9766 | *-*-mingw*) |
---|
9767 | # gcc leaves a trailing carriage return which upsets mingw |
---|
9768 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
9769 | *) |
---|
9770 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
9771 | esac |
---|
9772 | case $ac_prog in |
---|
9773 | # Accept absolute paths. |
---|
9774 | [\\/]* | ?:[\\/]*) |
---|
9775 | re_direlt='/[^/][^/]*/\.\./' |
---|
9776 | # Canonicalize the pathname of ld |
---|
9777 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
9778 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
9779 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
9780 | done |
---|
9781 | test -z "$LD" && LD="$ac_prog" |
---|
9782 | ;; |
---|
9783 | "") |
---|
9784 | # If it fails, then pretend we aren't using GCC. |
---|
9785 | ac_prog=ld |
---|
9786 | ;; |
---|
9787 | *) |
---|
9788 | # If it is relative, then search for the first ld in PATH. |
---|
9789 | with_gnu_ld=unknown |
---|
9790 | ;; |
---|
9791 | esac |
---|
9792 | elif test "$with_gnu_ld" = yes; then |
---|
9793 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
9794 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
9795 | else |
---|
9796 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
9797 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
9798 | fi |
---|
9799 | if test "${lt_cv_path_LD+set}" = set; then |
---|
9800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9801 | else |
---|
9802 | if test -z "$LD"; then |
---|
9803 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
9804 | for ac_dir in $PATH; do |
---|
9805 | IFS="$lt_save_ifs" |
---|
9806 | test -z "$ac_dir" && ac_dir=. |
---|
9807 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
9808 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
9809 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
9810 | # but apparently some GNU ld's only accept -v. |
---|
9811 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
9812 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
9813 | *GNU* | *'with BFD'*) |
---|
9814 | test "$with_gnu_ld" != no && break |
---|
9815 | ;; |
---|
9816 | *) |
---|
9817 | test "$with_gnu_ld" != yes && break |
---|
9818 | ;; |
---|
9819 | esac |
---|
9820 | fi |
---|
9821 | done |
---|
9822 | IFS="$lt_save_ifs" |
---|
9823 | else |
---|
9824 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
9825 | fi |
---|
9826 | fi |
---|
9827 | |
---|
9828 | LD="$lt_cv_path_LD" |
---|
9829 | if test -n "$LD"; then |
---|
9830 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
9831 | echo "${ECHO_T}$LD" >&6 |
---|
9832 | else |
---|
9833 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9834 | echo "${ECHO_T}no" >&6 |
---|
9835 | fi |
---|
9836 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
9837 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
9838 | { (exit 1); exit 1; }; } |
---|
9839 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
9840 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
9841 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
9842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9843 | else |
---|
9844 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
9845 | case `$LD -v 2>&1 </dev/null` in |
---|
9846 | *GNU* | *'with BFD'*) |
---|
9847 | lt_cv_prog_gnu_ld=yes |
---|
9848 | ;; |
---|
9849 | *) |
---|
9850 | lt_cv_prog_gnu_ld=no |
---|
9851 | ;; |
---|
9852 | esac |
---|
9853 | fi |
---|
9854 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
9855 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
9856 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
9857 | |
---|
9858 | |
---|
9859 | |
---|
9860 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
---|
9861 | # archiving commands below assume that GNU ld is being used. |
---|
9862 | if test "$with_gnu_ld" = yes; then |
---|
9863 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9864 | 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' |
---|
9865 | |
---|
9866 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
9867 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
9868 | |
---|
9869 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
9870 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
---|
9871 | # investigate it a little bit more. (MM) |
---|
9872 | wlarc='${wl}' |
---|
9873 | |
---|
9874 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
9875 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
---|
9876 | grep 'no-whole-archive' > /dev/null; then |
---|
9877 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
9878 | else |
---|
9879 | whole_archive_flag_spec_CXX= |
---|
9880 | fi |
---|
9881 | else |
---|
9882 | with_gnu_ld=no |
---|
9883 | wlarc= |
---|
9884 | |
---|
9885 | # A generic and very simple default shared library creation |
---|
9886 | # command for GNU C++ for the case where it uses the native |
---|
9887 | # linker, instead of GNU ld. If possible, this setting should |
---|
9888 | # overridden to take advantage of the native linker features on |
---|
9889 | # the platform it is being used on. |
---|
9890 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
9891 | fi |
---|
9892 | |
---|
9893 | # Commands to make compiler produce verbose output that lists |
---|
9894 | # what "hidden" libraries, object files and flags are used when |
---|
9895 | # linking a shared library. |
---|
9896 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
9897 | |
---|
9898 | else |
---|
9899 | GXX=no |
---|
9900 | with_gnu_ld=no |
---|
9901 | wlarc= |
---|
9902 | fi |
---|
9903 | |
---|
9904 | # PORTME: fill in a description of your system's C++ link characteristics |
---|
9905 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
9906 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
9907 | ld_shlibs_CXX=yes |
---|
9908 | case $host_os in |
---|
9909 | aix3*) |
---|
9910 | # FIXME: insert proper C++ library support |
---|
9911 | ld_shlibs_CXX=no |
---|
9912 | ;; |
---|
9913 | aix4* | aix5*) |
---|
9914 | if test "$host_cpu" = ia64; then |
---|
9915 | # On IA64, the linker does run time linking by default, so we don't |
---|
9916 | # have to do anything special. |
---|
9917 | aix_use_runtimelinking=no |
---|
9918 | exp_sym_flag='-Bexport' |
---|
9919 | no_entry_flag="" |
---|
9920 | else |
---|
9921 | aix_use_runtimelinking=no |
---|
9922 | |
---|
9923 | # Test if we are trying to use run time linking or normal |
---|
9924 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
9925 | # need to do runtime linking. |
---|
9926 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
9927 | for ld_flag in $LDFLAGS; do |
---|
9928 | case $ld_flag in |
---|
9929 | *-brtl*) |
---|
9930 | aix_use_runtimelinking=yes |
---|
9931 | break |
---|
9932 | ;; |
---|
9933 | esac |
---|
9934 | done |
---|
9935 | esac |
---|
9936 | |
---|
9937 | exp_sym_flag='-bexport' |
---|
9938 | no_entry_flag='-bnoentry' |
---|
9939 | fi |
---|
9940 | |
---|
9941 | # When large executables or shared objects are built, AIX ld can |
---|
9942 | # have problems creating the table of contents. If linking a library |
---|
9943 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
9944 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
9945 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
9946 | |
---|
9947 | archive_cmds_CXX='' |
---|
9948 | hardcode_direct_CXX=yes |
---|
9949 | hardcode_libdir_separator_CXX=':' |
---|
9950 | link_all_deplibs_CXX=yes |
---|
9951 | |
---|
9952 | if test "$GXX" = yes; then |
---|
9953 | case $host_os in aix4.012|aix4.012.*) |
---|
9954 | # We only want to do this on AIX 4.2 and lower, the check |
---|
9955 | # below for broken collect2 doesn't work under 4.3+ |
---|
9956 | collect2name=`${CC} -print-prog-name=collect2` |
---|
9957 | if test -f "$collect2name" && \ |
---|
9958 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
9959 | then |
---|
9960 | # We have reworked collect2 |
---|
9961 | hardcode_direct_CXX=yes |
---|
9962 | else |
---|
9963 | # We have old collect2 |
---|
9964 | hardcode_direct_CXX=unsupported |
---|
9965 | # It fails to find uninstalled libraries when the uninstalled |
---|
9966 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
9967 | # to unsupported forces relinking |
---|
9968 | hardcode_minus_L_CXX=yes |
---|
9969 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
9970 | hardcode_libdir_separator_CXX= |
---|
9971 | fi |
---|
9972 | esac |
---|
9973 | shared_flag='-shared' |
---|
9974 | else |
---|
9975 | # not using gcc |
---|
9976 | if test "$host_cpu" = ia64; then |
---|
9977 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
9978 | # chokes on -Wl,-G. The following line is correct: |
---|
9979 | shared_flag='-G' |
---|
9980 | else |
---|
9981 | if test "$aix_use_runtimelinking" = yes; then |
---|
9982 | shared_flag='${wl}-G' |
---|
9983 | else |
---|
9984 | shared_flag='${wl}-bM:SRE' |
---|
9985 | fi |
---|
9986 | fi |
---|
9987 | fi |
---|
9988 | |
---|
9989 | # It seems that -bexpall does not export symbols beginning with |
---|
9990 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
9991 | always_export_symbols_CXX=yes |
---|
9992 | if test "$aix_use_runtimelinking" = yes; then |
---|
9993 | # Warning - without using the other runtime loading flags (-brtl), |
---|
9994 | # -berok will link without error, but may produce a broken library. |
---|
9995 | allow_undefined_flag_CXX='-berok' |
---|
9996 | # Determine the default libpath from the value encoded in an empty executable. |
---|
9997 | cat >conftest.$ac_ext <<_ACEOF |
---|
9998 | /* confdefs.h. */ |
---|
9999 | _ACEOF |
---|
10000 | cat confdefs.h >>conftest.$ac_ext |
---|
10001 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10002 | /* end confdefs.h. */ |
---|
10003 | |
---|
10004 | int |
---|
10005 | main () |
---|
10006 | { |
---|
10007 | |
---|
10008 | ; |
---|
10009 | return 0; |
---|
10010 | } |
---|
10011 | _ACEOF |
---|
10012 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10014 | (eval $ac_link) 2>conftest.er1 |
---|
10015 | ac_status=$? |
---|
10016 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10017 | rm -f conftest.er1 |
---|
10018 | cat conftest.err >&5 |
---|
10019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10020 | (exit $ac_status); } && |
---|
10021 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
10022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10023 | (eval $ac_try) 2>&5 |
---|
10024 | ac_status=$? |
---|
10025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10026 | (exit $ac_status); }; } && |
---|
10027 | { ac_try='test -s conftest$ac_exeext' |
---|
10028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10029 | (eval $ac_try) 2>&5 |
---|
10030 | ac_status=$? |
---|
10031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10032 | (exit $ac_status); }; }; then |
---|
10033 | |
---|
10034 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
10035 | }'` |
---|
10036 | # Check for a 64-bit object if we didn't find anything. |
---|
10037 | 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; } |
---|
10038 | }'`; fi |
---|
10039 | else |
---|
10040 | echo "$as_me: failed program was:" >&5 |
---|
10041 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10042 | |
---|
10043 | fi |
---|
10044 | rm -f conftest.err conftest.$ac_objext \ |
---|
10045 | conftest$ac_exeext conftest.$ac_ext |
---|
10046 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
10047 | |
---|
10048 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10049 | |
---|
10050 | 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" |
---|
10051 | else |
---|
10052 | if test "$host_cpu" = ia64; then |
---|
10053 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
---|
10054 | allow_undefined_flag_CXX="-z nodefs" |
---|
10055 | 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" |
---|
10056 | else |
---|
10057 | # Determine the default libpath from the value encoded in an empty executable. |
---|
10058 | cat >conftest.$ac_ext <<_ACEOF |
---|
10059 | /* confdefs.h. */ |
---|
10060 | _ACEOF |
---|
10061 | cat confdefs.h >>conftest.$ac_ext |
---|
10062 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10063 | /* end confdefs.h. */ |
---|
10064 | |
---|
10065 | int |
---|
10066 | main () |
---|
10067 | { |
---|
10068 | |
---|
10069 | ; |
---|
10070 | return 0; |
---|
10071 | } |
---|
10072 | _ACEOF |
---|
10073 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10075 | (eval $ac_link) 2>conftest.er1 |
---|
10076 | ac_status=$? |
---|
10077 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10078 | rm -f conftest.er1 |
---|
10079 | cat conftest.err >&5 |
---|
10080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10081 | (exit $ac_status); } && |
---|
10082 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
10083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10084 | (eval $ac_try) 2>&5 |
---|
10085 | ac_status=$? |
---|
10086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10087 | (exit $ac_status); }; } && |
---|
10088 | { ac_try='test -s conftest$ac_exeext' |
---|
10089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10090 | (eval $ac_try) 2>&5 |
---|
10091 | ac_status=$? |
---|
10092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10093 | (exit $ac_status); }; }; then |
---|
10094 | |
---|
10095 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
10096 | }'` |
---|
10097 | # Check for a 64-bit object if we didn't find anything. |
---|
10098 | 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; } |
---|
10099 | }'`; fi |
---|
10100 | else |
---|
10101 | echo "$as_me: failed program was:" >&5 |
---|
10102 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10103 | |
---|
10104 | fi |
---|
10105 | rm -f conftest.err conftest.$ac_objext \ |
---|
10106 | conftest$ac_exeext conftest.$ac_ext |
---|
10107 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
10108 | |
---|
10109 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10110 | # Warning - without using the other run time loading flags, |
---|
10111 | # -berok will link without error, but may produce a broken library. |
---|
10112 | no_undefined_flag_CXX=' ${wl}-bernotok' |
---|
10113 | allow_undefined_flag_CXX=' ${wl}-berok' |
---|
10114 | # -bexpall does not export symbols beginning with underscore (_) |
---|
10115 | always_export_symbols_CXX=yes |
---|
10116 | # Exported symbols can be pulled into shared objects from archives |
---|
10117 | whole_archive_flag_spec_CXX=' ' |
---|
10118 | archive_cmds_need_lc_CXX=yes |
---|
10119 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
10120 | 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' |
---|
10121 | fi |
---|
10122 | fi |
---|
10123 | ;; |
---|
10124 | chorus*) |
---|
10125 | case $cc_basename in |
---|
10126 | *) |
---|
10127 | # FIXME: insert proper C++ library support |
---|
10128 | ld_shlibs_CXX=no |
---|
10129 | ;; |
---|
10130 | esac |
---|
10131 | ;; |
---|
10132 | |
---|
10133 | cygwin* | mingw* | pw32*) |
---|
10134 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
---|
10135 | # as there is no search path for DLLs. |
---|
10136 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
10137 | allow_undefined_flag_CXX=unsupported |
---|
10138 | always_export_symbols_CXX=no |
---|
10139 | enable_shared_with_static_runtimes_CXX=yes |
---|
10140 | |
---|
10141 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
10142 | 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' |
---|
10143 | # If the export-symbols file already is a .def file (1st line |
---|
10144 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
10145 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
10146 | cp $export_symbols $output_objdir/$soname.def; |
---|
10147 | else |
---|
10148 | echo EXPORTS > $output_objdir/$soname.def; |
---|
10149 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
10150 | fi~ |
---|
10151 | $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' |
---|
10152 | else |
---|
10153 | ld_shlibs_CXX=no |
---|
10154 | fi |
---|
10155 | ;; |
---|
10156 | |
---|
10157 | darwin* | rhapsody*) |
---|
10158 | if test "$GXX" = yes; then |
---|
10159 | archive_cmds_need_lc_CXX=no |
---|
10160 | case "$host_os" in |
---|
10161 | rhapsody* | darwin1.[012]) |
---|
10162 | allow_undefined_flag_CXX='-undefined suppress' |
---|
10163 | ;; |
---|
10164 | *) # Darwin 1.3 on |
---|
10165 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
10166 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
---|
10167 | else |
---|
10168 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
10169 | 10.[012]) |
---|
10170 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
---|
10171 | ;; |
---|
10172 | 10.*) |
---|
10173 | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
---|
10174 | ;; |
---|
10175 | esac |
---|
10176 | fi |
---|
10177 | ;; |
---|
10178 | esac |
---|
10179 | lt_int_apple_cc_single_mod=no |
---|
10180 | output_verbose_link_cmd='echo' |
---|
10181 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
10182 | lt_int_apple_cc_single_mod=yes |
---|
10183 | fi |
---|
10184 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
10185 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
10186 | else |
---|
10187 | 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' |
---|
10188 | fi |
---|
10189 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
10190 | |
---|
10191 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
10192 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
10193 | 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}' |
---|
10194 | else |
---|
10195 | 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}' |
---|
10196 | fi |
---|
10197 | 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}' |
---|
10198 | hardcode_direct_CXX=no |
---|
10199 | hardcode_automatic_CXX=yes |
---|
10200 | hardcode_shlibpath_var_CXX=unsupported |
---|
10201 | whole_archive_flag_spec_CXX='-all_load $convenience' |
---|
10202 | link_all_deplibs_CXX=yes |
---|
10203 | else |
---|
10204 | ld_shlibs_CXX=no |
---|
10205 | fi |
---|
10206 | ;; |
---|
10207 | |
---|
10208 | dgux*) |
---|
10209 | case $cc_basename in |
---|
10210 | ec++) |
---|
10211 | # FIXME: insert proper C++ library support |
---|
10212 | ld_shlibs_CXX=no |
---|
10213 | ;; |
---|
10214 | ghcx) |
---|
10215 | # Green Hills C++ Compiler |
---|
10216 | # FIXME: insert proper C++ library support |
---|
10217 | ld_shlibs_CXX=no |
---|
10218 | ;; |
---|
10219 | *) |
---|
10220 | # FIXME: insert proper C++ library support |
---|
10221 | ld_shlibs_CXX=no |
---|
10222 | ;; |
---|
10223 | esac |
---|
10224 | ;; |
---|
10225 | freebsd12*) |
---|
10226 | # C++ shared libraries reported to be fairly broken before switch to ELF |
---|
10227 | ld_shlibs_CXX=no |
---|
10228 | ;; |
---|
10229 | freebsd-elf*) |
---|
10230 | archive_cmds_need_lc_CXX=no |
---|
10231 | ;; |
---|
10232 | freebsd* | kfreebsd*-gnu) |
---|
10233 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
---|
10234 | # conventions |
---|
10235 | ld_shlibs_CXX=yes |
---|
10236 | ;; |
---|
10237 | gnu*) |
---|
10238 | ;; |
---|
10239 | hpux9*) |
---|
10240 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
10241 | hardcode_libdir_separator_CXX=: |
---|
10242 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
10243 | hardcode_direct_CXX=yes |
---|
10244 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
10245 | # but as the default |
---|
10246 | # location of the library. |
---|
10247 | |
---|
10248 | case $cc_basename in |
---|
10249 | CC) |
---|
10250 | # FIXME: insert proper C++ library support |
---|
10251 | ld_shlibs_CXX=no |
---|
10252 | ;; |
---|
10253 | aCC) |
---|
10254 | 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' |
---|
10255 | # Commands to make compiler produce verbose output that lists |
---|
10256 | # what "hidden" libraries, object files and flags are used when |
---|
10257 | # linking a shared library. |
---|
10258 | # |
---|
10259 | # There doesn't appear to be a way to prevent this compiler from |
---|
10260 | # explicitly linking system object files so we need to strip them |
---|
10261 | # from the output so that they don't get included in the library |
---|
10262 | # dependencies. |
---|
10263 | 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' |
---|
10264 | ;; |
---|
10265 | *) |
---|
10266 | if test "$GXX" = yes; then |
---|
10267 | 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' |
---|
10268 | else |
---|
10269 | # FIXME: insert proper C++ library support |
---|
10270 | ld_shlibs_CXX=no |
---|
10271 | fi |
---|
10272 | ;; |
---|
10273 | esac |
---|
10274 | ;; |
---|
10275 | hpux10*|hpux11*) |
---|
10276 | if test $with_gnu_ld = no; then |
---|
10277 | case "$host_cpu" in |
---|
10278 | hppa*64*) |
---|
10279 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
10280 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
---|
10281 | hardcode_libdir_separator_CXX=: |
---|
10282 | ;; |
---|
10283 | ia64*) |
---|
10284 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
10285 | ;; |
---|
10286 | *) |
---|
10287 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
10288 | hardcode_libdir_separator_CXX=: |
---|
10289 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
10290 | ;; |
---|
10291 | esac |
---|
10292 | fi |
---|
10293 | case "$host_cpu" in |
---|
10294 | hppa*64*) |
---|
10295 | hardcode_direct_CXX=no |
---|
10296 | hardcode_shlibpath_var_CXX=no |
---|
10297 | ;; |
---|
10298 | ia64*) |
---|
10299 | hardcode_direct_CXX=no |
---|
10300 | hardcode_shlibpath_var_CXX=no |
---|
10301 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
10302 | # but as the default |
---|
10303 | # location of the library. |
---|
10304 | ;; |
---|
10305 | *) |
---|
10306 | hardcode_direct_CXX=yes |
---|
10307 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
10308 | # but as the default |
---|
10309 | # location of the library. |
---|
10310 | ;; |
---|
10311 | esac |
---|
10312 | |
---|
10313 | case $cc_basename in |
---|
10314 | CC) |
---|
10315 | # FIXME: insert proper C++ library support |
---|
10316 | ld_shlibs_CXX=no |
---|
10317 | ;; |
---|
10318 | aCC) |
---|
10319 | case "$host_cpu" in |
---|
10320 | hppa*64*|ia64*) |
---|
10321 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
10322 | ;; |
---|
10323 | *) |
---|
10324 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
10325 | ;; |
---|
10326 | esac |
---|
10327 | # Commands to make compiler produce verbose output that lists |
---|
10328 | # what "hidden" libraries, object files and flags are used when |
---|
10329 | # linking a shared library. |
---|
10330 | # |
---|
10331 | # There doesn't appear to be a way to prevent this compiler from |
---|
10332 | # explicitly linking system object files so we need to strip them |
---|
10333 | # from the output so that they don't get included in the library |
---|
10334 | # dependencies. |
---|
10335 | 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' |
---|
10336 | ;; |
---|
10337 | *) |
---|
10338 | if test "$GXX" = yes; then |
---|
10339 | if test $with_gnu_ld = no; then |
---|
10340 | case "$host_cpu" in |
---|
10341 | ia64*|hppa*64*) |
---|
10342 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
10343 | ;; |
---|
10344 | *) |
---|
10345 | 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' |
---|
10346 | ;; |
---|
10347 | esac |
---|
10348 | fi |
---|
10349 | else |
---|
10350 | # FIXME: insert proper C++ library support |
---|
10351 | ld_shlibs_CXX=no |
---|
10352 | fi |
---|
10353 | ;; |
---|
10354 | esac |
---|
10355 | ;; |
---|
10356 | irix5* | irix6*) |
---|
10357 | case $cc_basename in |
---|
10358 | CC) |
---|
10359 | # SGI C++ |
---|
10360 | 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' |
---|
10361 | |
---|
10362 | # Archives containing C++ object files must be created using |
---|
10363 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
---|
10364 | # necessary to make sure instantiated templates are included |
---|
10365 | # in the archive. |
---|
10366 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
---|
10367 | ;; |
---|
10368 | *) |
---|
10369 | if test "$GXX" = yes; then |
---|
10370 | if test "$with_gnu_ld" = no; then |
---|
10371 | 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' |
---|
10372 | else |
---|
10373 | 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' |
---|
10374 | fi |
---|
10375 | fi |
---|
10376 | link_all_deplibs_CXX=yes |
---|
10377 | ;; |
---|
10378 | esac |
---|
10379 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
10380 | hardcode_libdir_separator_CXX=: |
---|
10381 | ;; |
---|
10382 | linux*) |
---|
10383 | case $cc_basename in |
---|
10384 | KCC) |
---|
10385 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
10386 | |
---|
10387 | # KCC will only create a shared library if the output file |
---|
10388 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
10389 | # to its proper name (with version) after linking. |
---|
10390 | 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' |
---|
10391 | 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' |
---|
10392 | # Commands to make compiler produce verbose output that lists |
---|
10393 | # what "hidden" libraries, object files and flags are used when |
---|
10394 | # linking a shared library. |
---|
10395 | # |
---|
10396 | # There doesn't appear to be a way to prevent this compiler from |
---|
10397 | # explicitly linking system object files so we need to strip them |
---|
10398 | # from the output so that they don't get included in the library |
---|
10399 | # dependencies. |
---|
10400 | 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' |
---|
10401 | |
---|
10402 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
---|
10403 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
10404 | |
---|
10405 | # Archives containing C++ object files must be created using |
---|
10406 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
10407 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
10408 | ;; |
---|
10409 | icpc) |
---|
10410 | # Intel C++ |
---|
10411 | with_gnu_ld=yes |
---|
10412 | archive_cmds_need_lc_CXX=no |
---|
10413 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10414 | 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' |
---|
10415 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
10416 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
10417 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
10418 | ;; |
---|
10419 | cxx) |
---|
10420 | # Compaq C++ |
---|
10421 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10422 | 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' |
---|
10423 | |
---|
10424 | runpath_var=LD_RUN_PATH |
---|
10425 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
10426 | hardcode_libdir_separator_CXX=: |
---|
10427 | |
---|
10428 | # Commands to make compiler produce verbose output that lists |
---|
10429 | # what "hidden" libraries, object files and flags are used when |
---|
10430 | # linking a shared library. |
---|
10431 | # |
---|
10432 | # There doesn't appear to be a way to prevent this compiler from |
---|
10433 | # explicitly linking system object files so we need to strip them |
---|
10434 | # from the output so that they don't get included in the library |
---|
10435 | # dependencies. |
---|
10436 | 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' |
---|
10437 | ;; |
---|
10438 | esac |
---|
10439 | ;; |
---|
10440 | lynxos*) |
---|
10441 | # FIXME: insert proper C++ library support |
---|
10442 | ld_shlibs_CXX=no |
---|
10443 | ;; |
---|
10444 | m88k*) |
---|
10445 | # FIXME: insert proper C++ library support |
---|
10446 | ld_shlibs_CXX=no |
---|
10447 | ;; |
---|
10448 | mvs*) |
---|
10449 | case $cc_basename in |
---|
10450 | cxx) |
---|
10451 | # FIXME: insert proper C++ library support |
---|
10452 | ld_shlibs_CXX=no |
---|
10453 | ;; |
---|
10454 | *) |
---|
10455 | # FIXME: insert proper C++ library support |
---|
10456 | ld_shlibs_CXX=no |
---|
10457 | ;; |
---|
10458 | esac |
---|
10459 | ;; |
---|
10460 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
10461 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
10462 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
---|
10463 | wlarc= |
---|
10464 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
10465 | hardcode_direct_CXX=yes |
---|
10466 | hardcode_shlibpath_var_CXX=no |
---|
10467 | fi |
---|
10468 | # Workaround some broken pre-1.5 toolchains |
---|
10469 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
---|
10470 | ;; |
---|
10471 | osf3*) |
---|
10472 | case $cc_basename in |
---|
10473 | KCC) |
---|
10474 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
10475 | |
---|
10476 | # KCC will only create a shared library if the output file |
---|
10477 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
10478 | # to its proper name (with version) after linking. |
---|
10479 | 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' |
---|
10480 | |
---|
10481 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
10482 | hardcode_libdir_separator_CXX=: |
---|
10483 | |
---|
10484 | # Archives containing C++ object files must be created using |
---|
10485 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
10486 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
10487 | |
---|
10488 | ;; |
---|
10489 | RCC) |
---|
10490 | # Rational C++ 2.4.1 |
---|
10491 | # FIXME: insert proper C++ library support |
---|
10492 | ld_shlibs_CXX=no |
---|
10493 | ;; |
---|
10494 | cxx) |
---|
10495 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
10496 | 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' |
---|
10497 | |
---|
10498 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
10499 | hardcode_libdir_separator_CXX=: |
---|
10500 | |
---|
10501 | # Commands to make compiler produce verbose output that lists |
---|
10502 | # what "hidden" libraries, object files and flags are used when |
---|
10503 | # linking a shared library. |
---|
10504 | # |
---|
10505 | # There doesn't appear to be a way to prevent this compiler from |
---|
10506 | # explicitly linking system object files so we need to strip them |
---|
10507 | # from the output so that they don't get included in the library |
---|
10508 | # dependencies. |
---|
10509 | 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' |
---|
10510 | ;; |
---|
10511 | *) |
---|
10512 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
10513 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
10514 | 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' |
---|
10515 | |
---|
10516 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
10517 | hardcode_libdir_separator_CXX=: |
---|
10518 | |
---|
10519 | # Commands to make compiler produce verbose output that lists |
---|
10520 | # what "hidden" libraries, object files and flags are used when |
---|
10521 | # linking a shared library. |
---|
10522 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
10523 | |
---|
10524 | else |
---|
10525 | # FIXME: insert proper C++ library support |
---|
10526 | ld_shlibs_CXX=no |
---|
10527 | fi |
---|
10528 | ;; |
---|
10529 | esac |
---|
10530 | ;; |
---|
10531 | osf4* | osf5*) |
---|
10532 | case $cc_basename in |
---|
10533 | KCC) |
---|
10534 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
10535 | |
---|
10536 | # KCC will only create a shared library if the output file |
---|
10537 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
10538 | # to its proper name (with version) after linking. |
---|
10539 | 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' |
---|
10540 | |
---|
10541 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
10542 | hardcode_libdir_separator_CXX=: |
---|
10543 | |
---|
10544 | # Archives containing C++ object files must be created using |
---|
10545 | # the KAI C++ compiler. |
---|
10546 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
---|
10547 | ;; |
---|
10548 | RCC) |
---|
10549 | # Rational C++ 2.4.1 |
---|
10550 | # FIXME: insert proper C++ library support |
---|
10551 | ld_shlibs_CXX=no |
---|
10552 | ;; |
---|
10553 | cxx) |
---|
10554 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
---|
10555 | 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' |
---|
10556 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
---|
10557 | echo "-hidden">> $lib.exp~ |
---|
10558 | $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~ |
---|
10559 | $rm $lib.exp' |
---|
10560 | |
---|
10561 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
10562 | hardcode_libdir_separator_CXX=: |
---|
10563 | |
---|
10564 | # Commands to make compiler produce verbose output that lists |
---|
10565 | # what "hidden" libraries, object files and flags are used when |
---|
10566 | # linking a shared library. |
---|
10567 | # |
---|
10568 | # There doesn't appear to be a way to prevent this compiler from |
---|
10569 | # explicitly linking system object files so we need to strip them |
---|
10570 | # from the output so that they don't get included in the library |
---|
10571 | # dependencies. |
---|
10572 | 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' |
---|
10573 | ;; |
---|
10574 | *) |
---|
10575 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
10576 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
10577 | 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' |
---|
10578 | |
---|
10579 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
10580 | hardcode_libdir_separator_CXX=: |
---|
10581 | |
---|
10582 | # Commands to make compiler produce verbose output that lists |
---|
10583 | # what "hidden" libraries, object files and flags are used when |
---|
10584 | # linking a shared library. |
---|
10585 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
10586 | |
---|
10587 | else |
---|
10588 | # FIXME: insert proper C++ library support |
---|
10589 | ld_shlibs_CXX=no |
---|
10590 | fi |
---|
10591 | ;; |
---|
10592 | esac |
---|
10593 | ;; |
---|
10594 | psos*) |
---|
10595 | # FIXME: insert proper C++ library support |
---|
10596 | ld_shlibs_CXX=no |
---|
10597 | ;; |
---|
10598 | sco*) |
---|
10599 | archive_cmds_need_lc_CXX=no |
---|
10600 | case $cc_basename in |
---|
10601 | CC) |
---|
10602 | # FIXME: insert proper C++ library support |
---|
10603 | ld_shlibs_CXX=no |
---|
10604 | ;; |
---|
10605 | *) |
---|
10606 | # FIXME: insert proper C++ library support |
---|
10607 | ld_shlibs_CXX=no |
---|
10608 | ;; |
---|
10609 | esac |
---|
10610 | ;; |
---|
10611 | sunos4*) |
---|
10612 | case $cc_basename in |
---|
10613 | CC) |
---|
10614 | # Sun C++ 4.x |
---|
10615 | # FIXME: insert proper C++ library support |
---|
10616 | ld_shlibs_CXX=no |
---|
10617 | ;; |
---|
10618 | lcc) |
---|
10619 | # Lucid |
---|
10620 | # FIXME: insert proper C++ library support |
---|
10621 | ld_shlibs_CXX=no |
---|
10622 | ;; |
---|
10623 | *) |
---|
10624 | # FIXME: insert proper C++ library support |
---|
10625 | ld_shlibs_CXX=no |
---|
10626 | ;; |
---|
10627 | esac |
---|
10628 | ;; |
---|
10629 | solaris*) |
---|
10630 | case $cc_basename in |
---|
10631 | CC) |
---|
10632 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
10633 | no_undefined_flag_CXX=' -zdefs' |
---|
10634 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
10635 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
10636 | $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' |
---|
10637 | |
---|
10638 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
10639 | hardcode_shlibpath_var_CXX=no |
---|
10640 | case $host_os in |
---|
10641 | solaris2.0-5 | solaris2.0-5.*) ;; |
---|
10642 | *) |
---|
10643 | # The C++ compiler is used as linker so we must use $wl |
---|
10644 | # flag to pass the commands to the underlying system |
---|
10645 | # linker. |
---|
10646 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
10647 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
10648 | ;; |
---|
10649 | esac |
---|
10650 | link_all_deplibs_CXX=yes |
---|
10651 | |
---|
10652 | # Commands to make compiler produce verbose output that lists |
---|
10653 | # what "hidden" libraries, object files and flags are used when |
---|
10654 | # linking a shared library. |
---|
10655 | # |
---|
10656 | # There doesn't appear to be a way to prevent this compiler from |
---|
10657 | # explicitly linking system object files so we need to strip them |
---|
10658 | # from the output so that they don't get included in the library |
---|
10659 | # dependencies. |
---|
10660 | 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' |
---|
10661 | |
---|
10662 | # Archives containing C++ object files must be created using |
---|
10663 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
10664 | # necessary to make sure instantiated templates are included |
---|
10665 | # in the archive. |
---|
10666 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
---|
10667 | ;; |
---|
10668 | gcx) |
---|
10669 | # Green Hills C++ Compiler |
---|
10670 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
10671 | |
---|
10672 | # The C++ compiler must be used to create the archive. |
---|
10673 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
---|
10674 | ;; |
---|
10675 | *) |
---|
10676 | # GNU C++ compiler with Solaris linker |
---|
10677 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
10678 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
---|
10679 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
---|
10680 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
10681 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
10682 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
10683 | |
---|
10684 | # Commands to make compiler produce verbose output that lists |
---|
10685 | # what "hidden" libraries, object files and flags are used when |
---|
10686 | # linking a shared library. |
---|
10687 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
10688 | else |
---|
10689 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
---|
10690 | # platform. |
---|
10691 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
10692 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
10693 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
10694 | |
---|
10695 | # Commands to make compiler produce verbose output that lists |
---|
10696 | # what "hidden" libraries, object files and flags are used when |
---|
10697 | # linking a shared library. |
---|
10698 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
10699 | fi |
---|
10700 | |
---|
10701 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
---|
10702 | fi |
---|
10703 | ;; |
---|
10704 | esac |
---|
10705 | ;; |
---|
10706 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
10707 | archive_cmds_need_lc_CXX=no |
---|
10708 | ;; |
---|
10709 | tandem*) |
---|
10710 | case $cc_basename in |
---|
10711 | NCC) |
---|
10712 | # NonStop-UX NCC 3.20 |
---|
10713 | # FIXME: insert proper C++ library support |
---|
10714 | ld_shlibs_CXX=no |
---|
10715 | ;; |
---|
10716 | *) |
---|
10717 | # FIXME: insert proper C++ library support |
---|
10718 | ld_shlibs_CXX=no |
---|
10719 | ;; |
---|
10720 | esac |
---|
10721 | ;; |
---|
10722 | vxworks*) |
---|
10723 | # FIXME: insert proper C++ library support |
---|
10724 | ld_shlibs_CXX=no |
---|
10725 | ;; |
---|
10726 | *) |
---|
10727 | # FIXME: insert proper C++ library support |
---|
10728 | ld_shlibs_CXX=no |
---|
10729 | ;; |
---|
10730 | esac |
---|
10731 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
10732 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
---|
10733 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
10734 | |
---|
10735 | GCC_CXX="$GXX" |
---|
10736 | LD_CXX="$LD" |
---|
10737 | |
---|
10738 | ## CAVEAT EMPTOR: |
---|
10739 | ## There is no encapsulation within the following macros, do not change |
---|
10740 | ## the running order or otherwise move them around unless you know exactly |
---|
10741 | ## what you are doing... |
---|
10742 | |
---|
10743 | cat > conftest.$ac_ext <<EOF |
---|
10744 | class Foo |
---|
10745 | { |
---|
10746 | public: |
---|
10747 | Foo (void) { a = 0; } |
---|
10748 | private: |
---|
10749 | int a; |
---|
10750 | }; |
---|
10751 | EOF |
---|
10752 | |
---|
10753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10754 | (eval $ac_compile) 2>&5 |
---|
10755 | ac_status=$? |
---|
10756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10757 | (exit $ac_status); }; then |
---|
10758 | # Parse the compiler output and extract the necessary |
---|
10759 | # objects, libraries and library flags. |
---|
10760 | |
---|
10761 | # Sentinel used to keep track of whether or not we are before |
---|
10762 | # the conftest object file. |
---|
10763 | pre_test_object_deps_done=no |
---|
10764 | |
---|
10765 | # The `*' in the case matches for architectures that use `case' in |
---|
10766 | # $output_verbose_cmd can trigger glob expansion during the loop |
---|
10767 | # eval without this substitution. |
---|
10768 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
---|
10769 | |
---|
10770 | for p in `eval $output_verbose_link_cmd`; do |
---|
10771 | case $p in |
---|
10772 | |
---|
10773 | -L* | -R* | -l*) |
---|
10774 | # Some compilers place space between "-{L,R}" and the path. |
---|
10775 | # Remove the space. |
---|
10776 | if test $p = "-L" \ |
---|
10777 | || test $p = "-R"; then |
---|
10778 | prev=$p |
---|
10779 | continue |
---|
10780 | else |
---|
10781 | prev= |
---|
10782 | fi |
---|
10783 | |
---|
10784 | if test "$pre_test_object_deps_done" = no; then |
---|
10785 | case $p in |
---|
10786 | -L* | -R*) |
---|
10787 | # Internal compiler library paths should come after those |
---|
10788 | # provided the user. The postdeps already come after the |
---|
10789 | # user supplied libs so there is no need to process them. |
---|
10790 | if test -z "$compiler_lib_search_path_CXX"; then |
---|
10791 | compiler_lib_search_path_CXX="${prev}${p}" |
---|
10792 | else |
---|
10793 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
---|
10794 | fi |
---|
10795 | ;; |
---|
10796 | # The "-l" case would never come before the object being |
---|
10797 | # linked, so don't bother handling this case. |
---|
10798 | esac |
---|
10799 | else |
---|
10800 | if test -z "$postdeps_CXX"; then |
---|
10801 | postdeps_CXX="${prev}${p}" |
---|
10802 | else |
---|
10803 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
---|
10804 | fi |
---|
10805 | fi |
---|
10806 | ;; |
---|
10807 | |
---|
10808 | *.$objext) |
---|
10809 | # This assumes that the test object file only shows up |
---|
10810 | # once in the compiler output. |
---|
10811 | if test "$p" = "conftest.$objext"; then |
---|
10812 | pre_test_object_deps_done=yes |
---|
10813 | continue |
---|
10814 | fi |
---|
10815 | |
---|
10816 | if test "$pre_test_object_deps_done" = no; then |
---|
10817 | if test -z "$predep_objects_CXX"; then |
---|
10818 | predep_objects_CXX="$p" |
---|
10819 | else |
---|
10820 | predep_objects_CXX="$predep_objects_CXX $p" |
---|
10821 | fi |
---|
10822 | else |
---|
10823 | if test -z "$postdep_objects_CXX"; then |
---|
10824 | postdep_objects_CXX="$p" |
---|
10825 | else |
---|
10826 | postdep_objects_CXX="$postdep_objects_CXX $p" |
---|
10827 | fi |
---|
10828 | fi |
---|
10829 | ;; |
---|
10830 | |
---|
10831 | *) ;; # Ignore the rest. |
---|
10832 | |
---|
10833 | esac |
---|
10834 | done |
---|
10835 | |
---|
10836 | # Clean up. |
---|
10837 | rm -f a.out a.exe |
---|
10838 | else |
---|
10839 | echo "libtool.m4: error: problem compiling CXX test program" |
---|
10840 | fi |
---|
10841 | |
---|
10842 | $rm -f confest.$objext |
---|
10843 | |
---|
10844 | case " $postdeps_CXX " in |
---|
10845 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
---|
10846 | esac |
---|
10847 | |
---|
10848 | lt_prog_compiler_wl_CXX= |
---|
10849 | lt_prog_compiler_pic_CXX= |
---|
10850 | lt_prog_compiler_static_CXX= |
---|
10851 | |
---|
10852 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
10853 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
10854 | |
---|
10855 | # C++ specific cases for pic, static, wl, etc. |
---|
10856 | if test "$GXX" = yes; then |
---|
10857 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10858 | lt_prog_compiler_static_CXX='-static' |
---|
10859 | |
---|
10860 | case $host_os in |
---|
10861 | aix*) |
---|
10862 | # All AIX code is PIC. |
---|
10863 | if test "$host_cpu" = ia64; then |
---|
10864 | # AIX 5 now supports IA64 processor |
---|
10865 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
10866 | fi |
---|
10867 | ;; |
---|
10868 | amigaos*) |
---|
10869 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
10870 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
10871 | # like `-m68040'. |
---|
10872 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
---|
10873 | ;; |
---|
10874 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
10875 | # PIC is the default for these OSes. |
---|
10876 | ;; |
---|
10877 | mingw* | os2* | pw32*) |
---|
10878 | # This hack is so that the source file can tell whether it is being |
---|
10879 | # built for inclusion in a dll (and should export symbols for example). |
---|
10880 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
---|
10881 | ;; |
---|
10882 | darwin* | rhapsody*) |
---|
10883 | # PIC is the default on this platform |
---|
10884 | # Common symbols not allowed in MH_DYLIB files |
---|
10885 | lt_prog_compiler_pic_CXX='-fno-common' |
---|
10886 | ;; |
---|
10887 | *djgpp*) |
---|
10888 | # DJGPP does not support shared libraries at all |
---|
10889 | lt_prog_compiler_pic_CXX= |
---|
10890 | ;; |
---|
10891 | sysv4*MP*) |
---|
10892 | if test -d /usr/nec; then |
---|
10893 | lt_prog_compiler_pic_CXX=-Kconform_pic |
---|
10894 | fi |
---|
10895 | ;; |
---|
10896 | hpux*) |
---|
10897 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
10898 | # not for PA HP-UX. |
---|
10899 | case "$host_cpu" in |
---|
10900 | hppa*64*|ia64*) |
---|
10901 | ;; |
---|
10902 | *) |
---|
10903 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
10904 | ;; |
---|
10905 | esac |
---|
10906 | ;; |
---|
10907 | *) |
---|
10908 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
10909 | ;; |
---|
10910 | esac |
---|
10911 | else |
---|
10912 | case $host_os in |
---|
10913 | aix4* | aix5*) |
---|
10914 | # All AIX code is PIC. |
---|
10915 | if test "$host_cpu" = ia64; then |
---|
10916 | # AIX 5 now supports IA64 processor |
---|
10917 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
10918 | else |
---|
10919 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
---|
10920 | fi |
---|
10921 | ;; |
---|
10922 | chorus*) |
---|
10923 | case $cc_basename in |
---|
10924 | cxch68) |
---|
10925 | # Green Hills C++ Compiler |
---|
10926 | # _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" |
---|
10927 | ;; |
---|
10928 | esac |
---|
10929 | ;; |
---|
10930 | dgux*) |
---|
10931 | case $cc_basename in |
---|
10932 | ec++) |
---|
10933 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
10934 | ;; |
---|
10935 | ghcx) |
---|
10936 | # Green Hills C++ Compiler |
---|
10937 | lt_prog_compiler_pic_CXX='-pic' |
---|
10938 | ;; |
---|
10939 | *) |
---|
10940 | ;; |
---|
10941 | esac |
---|
10942 | ;; |
---|
10943 | freebsd* | kfreebsd*-gnu) |
---|
10944 | # FreeBSD uses GNU C++ |
---|
10945 | ;; |
---|
10946 | hpux9* | hpux10* | hpux11*) |
---|
10947 | case $cc_basename in |
---|
10948 | CC) |
---|
10949 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10950 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
10951 | if test "$host_cpu" != ia64; then |
---|
10952 | lt_prog_compiler_pic_CXX='+Z' |
---|
10953 | fi |
---|
10954 | ;; |
---|
10955 | aCC) |
---|
10956 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10957 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
10958 | case "$host_cpu" in |
---|
10959 | hppa*64*|ia64*) |
---|
10960 | # +Z the default |
---|
10961 | ;; |
---|
10962 | *) |
---|
10963 | lt_prog_compiler_pic_CXX='+Z' |
---|
10964 | ;; |
---|
10965 | esac |
---|
10966 | ;; |
---|
10967 | *) |
---|
10968 | ;; |
---|
10969 | esac |
---|
10970 | ;; |
---|
10971 | irix5* | irix6* | nonstopux*) |
---|
10972 | case $cc_basename in |
---|
10973 | CC) |
---|
10974 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10975 | lt_prog_compiler_static_CXX='-non_shared' |
---|
10976 | # CC pic flag -KPIC is the default. |
---|
10977 | ;; |
---|
10978 | *) |
---|
10979 | ;; |
---|
10980 | esac |
---|
10981 | ;; |
---|
10982 | linux*) |
---|
10983 | case $cc_basename in |
---|
10984 | KCC) |
---|
10985 | # KAI C++ Compiler |
---|
10986 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
10987 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
10988 | ;; |
---|
10989 | icpc) |
---|
10990 | # Intel C++ |
---|
10991 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
10992 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
10993 | lt_prog_compiler_static_CXX='-static' |
---|
10994 | ;; |
---|
10995 | cxx) |
---|
10996 | # Compaq C++ |
---|
10997 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
10998 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
10999 | lt_prog_compiler_pic_CXX= |
---|
11000 | lt_prog_compiler_static_CXX='-non_shared' |
---|
11001 | ;; |
---|
11002 | *) |
---|
11003 | ;; |
---|
11004 | esac |
---|
11005 | ;; |
---|
11006 | lynxos*) |
---|
11007 | ;; |
---|
11008 | m88k*) |
---|
11009 | ;; |
---|
11010 | mvs*) |
---|
11011 | case $cc_basename in |
---|
11012 | cxx) |
---|
11013 | lt_prog_compiler_pic_CXX='-W c,exportall' |
---|
11014 | ;; |
---|
11015 | *) |
---|
11016 | ;; |
---|
11017 | esac |
---|
11018 | ;; |
---|
11019 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
11020 | ;; |
---|
11021 | osf3* | osf4* | osf5*) |
---|
11022 | case $cc_basename in |
---|
11023 | KCC) |
---|
11024 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
11025 | ;; |
---|
11026 | RCC) |
---|
11027 | # Rational C++ 2.4.1 |
---|
11028 | lt_prog_compiler_pic_CXX='-pic' |
---|
11029 | ;; |
---|
11030 | cxx) |
---|
11031 | # Digital/Compaq C++ |
---|
11032 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
11033 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
11034 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
11035 | lt_prog_compiler_pic_CXX= |
---|
11036 | lt_prog_compiler_static_CXX='-non_shared' |
---|
11037 | ;; |
---|
11038 | *) |
---|
11039 | ;; |
---|
11040 | esac |
---|
11041 | ;; |
---|
11042 | psos*) |
---|
11043 | ;; |
---|
11044 | sco*) |
---|
11045 | case $cc_basename in |
---|
11046 | CC) |
---|
11047 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
11048 | ;; |
---|
11049 | *) |
---|
11050 | ;; |
---|
11051 | esac |
---|
11052 | ;; |
---|
11053 | solaris*) |
---|
11054 | case $cc_basename in |
---|
11055 | CC) |
---|
11056 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
11057 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
11058 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
11059 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
---|
11060 | ;; |
---|
11061 | gcx) |
---|
11062 | # Green Hills C++ Compiler |
---|
11063 | lt_prog_compiler_pic_CXX='-PIC' |
---|
11064 | ;; |
---|
11065 | *) |
---|
11066 | ;; |
---|
11067 | esac |
---|
11068 | ;; |
---|
11069 | sunos4*) |
---|
11070 | case $cc_basename in |
---|
11071 | CC) |
---|
11072 | # Sun C++ 4.x |
---|
11073 | lt_prog_compiler_pic_CXX='-pic' |
---|
11074 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
11075 | ;; |
---|
11076 | lcc) |
---|
11077 | # Lucid |
---|
11078 | lt_prog_compiler_pic_CXX='-pic' |
---|
11079 | ;; |
---|
11080 | *) |
---|
11081 | ;; |
---|
11082 | esac |
---|
11083 | ;; |
---|
11084 | tandem*) |
---|
11085 | case $cc_basename in |
---|
11086 | NCC) |
---|
11087 | # NonStop-UX NCC 3.20 |
---|
11088 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
11089 | ;; |
---|
11090 | *) |
---|
11091 | ;; |
---|
11092 | esac |
---|
11093 | ;; |
---|
11094 | unixware*) |
---|
11095 | ;; |
---|
11096 | vxworks*) |
---|
11097 | ;; |
---|
11098 | *) |
---|
11099 | lt_prog_compiler_can_build_shared_CXX=no |
---|
11100 | ;; |
---|
11101 | esac |
---|
11102 | fi |
---|
11103 | |
---|
11104 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
---|
11105 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
---|
11106 | |
---|
11107 | # |
---|
11108 | # Check to make sure the PIC flag actually works. |
---|
11109 | # |
---|
11110 | if test -n "$lt_prog_compiler_pic_CXX"; then |
---|
11111 | |
---|
11112 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
---|
11113 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
---|
11114 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
---|
11115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11116 | else |
---|
11117 | lt_prog_compiler_pic_works_CXX=no |
---|
11118 | ac_outfile=conftest.$ac_objext |
---|
11119 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
11120 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
---|
11121 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
11122 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
11123 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
11124 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
11125 | # The option is referenced via a variable to avoid confusing sed. |
---|
11126 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
11127 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
11128 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
11129 | -e 's:$: $lt_compiler_flag:'` |
---|
11130 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
11131 | (eval "$lt_compile" 2>conftest.err) |
---|
11132 | ac_status=$? |
---|
11133 | cat conftest.err >&5 |
---|
11134 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
11135 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
11136 | # The compiler can only warn and ignore the option if not recognized |
---|
11137 | # So say no if there are warnings |
---|
11138 | if test ! -s conftest.err; then |
---|
11139 | lt_prog_compiler_pic_works_CXX=yes |
---|
11140 | fi |
---|
11141 | fi |
---|
11142 | $rm conftest* |
---|
11143 | |
---|
11144 | fi |
---|
11145 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
---|
11146 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
---|
11147 | |
---|
11148 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
---|
11149 | case $lt_prog_compiler_pic_CXX in |
---|
11150 | "" | " "*) ;; |
---|
11151 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
---|
11152 | esac |
---|
11153 | else |
---|
11154 | lt_prog_compiler_pic_CXX= |
---|
11155 | lt_prog_compiler_can_build_shared_CXX=no |
---|
11156 | fi |
---|
11157 | |
---|
11158 | fi |
---|
11159 | case "$host_os" in |
---|
11160 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
11161 | *djgpp*) |
---|
11162 | lt_prog_compiler_pic_CXX= |
---|
11163 | ;; |
---|
11164 | *) |
---|
11165 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
---|
11166 | ;; |
---|
11167 | esac |
---|
11168 | |
---|
11169 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
11170 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
11171 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
---|
11172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11173 | else |
---|
11174 | lt_cv_prog_compiler_c_o_CXX=no |
---|
11175 | $rm -r conftest 2>/dev/null |
---|
11176 | mkdir conftest |
---|
11177 | cd conftest |
---|
11178 | mkdir out |
---|
11179 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
11180 | |
---|
11181 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
11182 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
11183 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
11184 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
11185 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
11186 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
11187 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
11188 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
11189 | -e 's:$: $lt_compiler_flag:'` |
---|
11190 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
11191 | (eval "$lt_compile" 2>out/conftest.err) |
---|
11192 | ac_status=$? |
---|
11193 | cat out/conftest.err >&5 |
---|
11194 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
11195 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
11196 | then |
---|
11197 | # The compiler can only warn and ignore the option if not recognized |
---|
11198 | # So say no if there are warnings |
---|
11199 | if test ! -s out/conftest.err; then |
---|
11200 | lt_cv_prog_compiler_c_o_CXX=yes |
---|
11201 | fi |
---|
11202 | fi |
---|
11203 | chmod u+w . |
---|
11204 | $rm conftest* |
---|
11205 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
11206 | # template instantiation |
---|
11207 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
11208 | $rm out/* && rmdir out |
---|
11209 | cd .. |
---|
11210 | rmdir conftest |
---|
11211 | $rm conftest* |
---|
11212 | |
---|
11213 | fi |
---|
11214 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
---|
11215 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
---|
11216 | |
---|
11217 | |
---|
11218 | hard_links="nottested" |
---|
11219 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
---|
11220 | # do not overwrite the value of need_locks provided by the user |
---|
11221 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
11222 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
11223 | hard_links=yes |
---|
11224 | $rm conftest* |
---|
11225 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
11226 | touch conftest.a |
---|
11227 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
11228 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
11229 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
11230 | echo "${ECHO_T}$hard_links" >&6 |
---|
11231 | if test "$hard_links" = no; then |
---|
11232 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
11233 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
11234 | need_locks=warn |
---|
11235 | fi |
---|
11236 | else |
---|
11237 | need_locks=no |
---|
11238 | fi |
---|
11239 | |
---|
11240 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
11241 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
11242 | |
---|
11243 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
11244 | case $host_os in |
---|
11245 | aix4* | aix5*) |
---|
11246 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
11247 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
11248 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
11249 | 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' |
---|
11250 | else |
---|
11251 | 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' |
---|
11252 | fi |
---|
11253 | ;; |
---|
11254 | pw32*) |
---|
11255 | export_symbols_cmds_CXX="$ltdll_cmds" |
---|
11256 | ;; |
---|
11257 | cygwin* | mingw*) |
---|
11258 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
11259 | ;; |
---|
11260 | linux*) |
---|
11261 | link_all_deplibs_CXX=no |
---|
11262 | ;; |
---|
11263 | *) |
---|
11264 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
11265 | ;; |
---|
11266 | esac |
---|
11267 | |
---|
11268 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
11269 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
---|
11270 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
11271 | |
---|
11272 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
11273 | if test "$GCC" = yes; then |
---|
11274 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
11275 | fi |
---|
11276 | |
---|
11277 | # |
---|
11278 | # Do we need to explicitly link libc? |
---|
11279 | # |
---|
11280 | case "x$archive_cmds_need_lc_CXX" in |
---|
11281 | x|xyes) |
---|
11282 | # Assume -lc should be added |
---|
11283 | archive_cmds_need_lc_CXX=yes |
---|
11284 | |
---|
11285 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
11286 | case $archive_cmds_CXX in |
---|
11287 | *'~'*) |
---|
11288 | # FIXME: we may have to deal with multi-command sequences. |
---|
11289 | ;; |
---|
11290 | '$CC '*) |
---|
11291 | # Test whether the compiler implicitly links with -lc since on some |
---|
11292 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
11293 | # to ld, don't add -lc before -lgcc. |
---|
11294 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
11295 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
11296 | $rm conftest* |
---|
11297 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
11298 | |
---|
11299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
11300 | (eval $ac_compile) 2>&5 |
---|
11301 | ac_status=$? |
---|
11302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11303 | (exit $ac_status); } 2>conftest.err; then |
---|
11304 | soname=conftest |
---|
11305 | lib=conftest |
---|
11306 | libobjs=conftest.$ac_objext |
---|
11307 | deplibs= |
---|
11308 | wl=$lt_prog_compiler_wl_CXX |
---|
11309 | compiler_flags=-v |
---|
11310 | linker_flags=-v |
---|
11311 | verstring= |
---|
11312 | output_objdir=. |
---|
11313 | libname=conftest |
---|
11314 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
---|
11315 | allow_undefined_flag_CXX= |
---|
11316 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
11317 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
11318 | ac_status=$? |
---|
11319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11320 | (exit $ac_status); } |
---|
11321 | then |
---|
11322 | archive_cmds_need_lc_CXX=no |
---|
11323 | else |
---|
11324 | archive_cmds_need_lc_CXX=yes |
---|
11325 | fi |
---|
11326 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
---|
11327 | else |
---|
11328 | cat conftest.err 1>&5 |
---|
11329 | fi |
---|
11330 | $rm conftest* |
---|
11331 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
---|
11332 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
---|
11333 | ;; |
---|
11334 | esac |
---|
11335 | fi |
---|
11336 | ;; |
---|
11337 | esac |
---|
11338 | |
---|
11339 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
11340 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
11341 | library_names_spec= |
---|
11342 | libname_spec='lib$name' |
---|
11343 | soname_spec= |
---|
11344 | shrext_cmds=".so" |
---|
11345 | postinstall_cmds= |
---|
11346 | postuninstall_cmds= |
---|
11347 | finish_cmds= |
---|
11348 | finish_eval= |
---|
11349 | shlibpath_var= |
---|
11350 | shlibpath_overrides_runpath=unknown |
---|
11351 | version_type=none |
---|
11352 | dynamic_linker="$host_os ld.so" |
---|
11353 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
11354 | if test "$GCC" = yes; then |
---|
11355 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
11356 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
11357 | # if the path contains ";" then we assume it to be the separator |
---|
11358 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
11359 | # assumed that no part of a normal pathname contains ";" but that should |
---|
11360 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
11361 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
11362 | else |
---|
11363 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
11364 | fi |
---|
11365 | else |
---|
11366 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
11367 | fi |
---|
11368 | need_lib_prefix=unknown |
---|
11369 | hardcode_into_libs=no |
---|
11370 | |
---|
11371 | # when you set need_version to no, make sure it does not cause -set_version |
---|
11372 | # flags to be left without arguments |
---|
11373 | need_version=unknown |
---|
11374 | |
---|
11375 | case $host_os in |
---|
11376 | aix3*) |
---|
11377 | version_type=linux |
---|
11378 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
11379 | shlibpath_var=LIBPATH |
---|
11380 | |
---|
11381 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
11382 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11383 | ;; |
---|
11384 | |
---|
11385 | aix4* | aix5*) |
---|
11386 | version_type=linux |
---|
11387 | need_lib_prefix=no |
---|
11388 | need_version=no |
---|
11389 | hardcode_into_libs=yes |
---|
11390 | if test "$host_cpu" = ia64; then |
---|
11391 | # AIX 5 supports IA64 |
---|
11392 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
11393 | shlibpath_var=LD_LIBRARY_PATH |
---|
11394 | else |
---|
11395 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
11396 | # for dependence libraries. The import file would start with |
---|
11397 | # the line `#! .'. This would cause the generated library to |
---|
11398 | # depend on `.', always an invalid library. This was fixed in |
---|
11399 | # development snapshots of GCC prior to 3.0. |
---|
11400 | case $host_os in |
---|
11401 | aix4 | aix4.[01] | aix4.[01].*) |
---|
11402 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
11403 | echo ' yes ' |
---|
11404 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
11405 | : |
---|
11406 | else |
---|
11407 | can_build_shared=no |
---|
11408 | fi |
---|
11409 | ;; |
---|
11410 | esac |
---|
11411 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
11412 | # soname into executable. Probably we can add versioning support to |
---|
11413 | # collect2, so additional links can be useful in future. |
---|
11414 | if test "$aix_use_runtimelinking" = yes; then |
---|
11415 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
11416 | # instead of lib<name>.a to let people know that these are not |
---|
11417 | # typical AIX shared libraries. |
---|
11418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11419 | else |
---|
11420 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
11421 | # and later when we are not doing run time linking. |
---|
11422 | library_names_spec='${libname}${release}.a $libname.a' |
---|
11423 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11424 | fi |
---|
11425 | shlibpath_var=LIBPATH |
---|
11426 | fi |
---|
11427 | ;; |
---|
11428 | |
---|
11429 | amigaos*) |
---|
11430 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
11431 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
11432 | 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' |
---|
11433 | ;; |
---|
11434 | |
---|
11435 | beos*) |
---|
11436 | library_names_spec='${libname}${shared_ext}' |
---|
11437 | dynamic_linker="$host_os ld.so" |
---|
11438 | shlibpath_var=LIBRARY_PATH |
---|
11439 | ;; |
---|
11440 | |
---|
11441 | bsdi4*) |
---|
11442 | version_type=linux |
---|
11443 | need_version=no |
---|
11444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11445 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11446 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
11447 | shlibpath_var=LD_LIBRARY_PATH |
---|
11448 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
11449 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
11450 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
11451 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
11452 | # libtool to hard-code these into programs |
---|
11453 | ;; |
---|
11454 | |
---|
11455 | cygwin* | mingw* | pw32*) |
---|
11456 | version_type=windows |
---|
11457 | shrext_cmds=".dll" |
---|
11458 | need_version=no |
---|
11459 | need_lib_prefix=no |
---|
11460 | |
---|
11461 | case $GCC,$host_os in |
---|
11462 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
11463 | library_names_spec='$libname.dll.a' |
---|
11464 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
11465 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
11466 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
11467 | dldir=$destdir/`dirname \$dlpath`~ |
---|
11468 | test -d \$dldir || mkdir -p \$dldir~ |
---|
11469 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
11470 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
11471 | dlpath=$dir/\$dldll~ |
---|
11472 | $rm \$dlpath' |
---|
11473 | shlibpath_overrides_runpath=yes |
---|
11474 | |
---|
11475 | case $host_os in |
---|
11476 | cygwin*) |
---|
11477 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
11478 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
11479 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
11480 | ;; |
---|
11481 | mingw*) |
---|
11482 | # MinGW DLLs use traditional 'lib' prefix |
---|
11483 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
11484 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
11485 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
11486 | # It is most probably a Windows format PATH printed by |
---|
11487 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
11488 | # path with ; separators, and with drive letters. We can handle the |
---|
11489 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
11490 | # especially as we might pass files found there to a mingw objdump, |
---|
11491 | # which wouldn't understand a cygwinified path. Ahh. |
---|
11492 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
11493 | else |
---|
11494 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
11495 | fi |
---|
11496 | ;; |
---|
11497 | pw32*) |
---|
11498 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
11499 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
---|
11500 | ;; |
---|
11501 | esac |
---|
11502 | ;; |
---|
11503 | |
---|
11504 | *) |
---|
11505 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
11506 | ;; |
---|
11507 | esac |
---|
11508 | dynamic_linker='Win32 ld.exe' |
---|
11509 | # FIXME: first we should search . and the directory the executable is in |
---|
11510 | shlibpath_var=PATH |
---|
11511 | ;; |
---|
11512 | |
---|
11513 | darwin* | rhapsody*) |
---|
11514 | dynamic_linker="$host_os dyld" |
---|
11515 | version_type=darwin |
---|
11516 | need_lib_prefix=no |
---|
11517 | need_version=no |
---|
11518 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
11519 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
11520 | shlibpath_overrides_runpath=yes |
---|
11521 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
11522 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
11523 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
11524 | if test "$GCC" = yes; then |
---|
11525 | 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"` |
---|
11526 | else |
---|
11527 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
11528 | fi |
---|
11529 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
11530 | ;; |
---|
11531 | |
---|
11532 | dgux*) |
---|
11533 | version_type=linux |
---|
11534 | need_lib_prefix=no |
---|
11535 | need_version=no |
---|
11536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
11537 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11538 | shlibpath_var=LD_LIBRARY_PATH |
---|
11539 | ;; |
---|
11540 | |
---|
11541 | freebsd1*) |
---|
11542 | dynamic_linker=no |
---|
11543 | ;; |
---|
11544 | |
---|
11545 | kfreebsd*-gnu) |
---|
11546 | version_type=linux |
---|
11547 | need_lib_prefix=no |
---|
11548 | need_version=no |
---|
11549 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
11550 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11551 | shlibpath_var=LD_LIBRARY_PATH |
---|
11552 | shlibpath_overrides_runpath=no |
---|
11553 | hardcode_into_libs=yes |
---|
11554 | dynamic_linker='GNU ld.so' |
---|
11555 | ;; |
---|
11556 | |
---|
11557 | freebsd*) |
---|
11558 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
11559 | version_type=freebsd-$objformat |
---|
11560 | case $version_type in |
---|
11561 | freebsd-elf*) |
---|
11562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
11563 | need_version=no |
---|
11564 | need_lib_prefix=no |
---|
11565 | ;; |
---|
11566 | freebsd-*) |
---|
11567 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
11568 | need_version=yes |
---|
11569 | ;; |
---|
11570 | esac |
---|
11571 | shlibpath_var=LD_LIBRARY_PATH |
---|
11572 | case $host_os in |
---|
11573 | freebsd2*) |
---|
11574 | shlibpath_overrides_runpath=yes |
---|
11575 | ;; |
---|
11576 | freebsd3.01* | freebsdelf3.01*) |
---|
11577 | shlibpath_overrides_runpath=yes |
---|
11578 | hardcode_into_libs=yes |
---|
11579 | ;; |
---|
11580 | *) # from 3.2 on |
---|
11581 | shlibpath_overrides_runpath=no |
---|
11582 | hardcode_into_libs=yes |
---|
11583 | ;; |
---|
11584 | esac |
---|
11585 | ;; |
---|
11586 | |
---|
11587 | gnu*) |
---|
11588 | version_type=linux |
---|
11589 | need_lib_prefix=no |
---|
11590 | need_version=no |
---|
11591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
11592 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11593 | shlibpath_var=LD_LIBRARY_PATH |
---|
11594 | hardcode_into_libs=yes |
---|
11595 | ;; |
---|
11596 | |
---|
11597 | hpux9* | hpux10* | hpux11*) |
---|
11598 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
11599 | # link against other versions. |
---|
11600 | version_type=sunos |
---|
11601 | need_lib_prefix=no |
---|
11602 | need_version=no |
---|
11603 | case "$host_cpu" in |
---|
11604 | ia64*) |
---|
11605 | shrext_cmds='.so' |
---|
11606 | hardcode_into_libs=yes |
---|
11607 | dynamic_linker="$host_os dld.so" |
---|
11608 | shlibpath_var=LD_LIBRARY_PATH |
---|
11609 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
11610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11611 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11612 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
11613 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
11614 | else |
---|
11615 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
11616 | fi |
---|
11617 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
11618 | ;; |
---|
11619 | hppa*64*) |
---|
11620 | shrext_cmds='.sl' |
---|
11621 | hardcode_into_libs=yes |
---|
11622 | dynamic_linker="$host_os dld.sl" |
---|
11623 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
11624 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
11625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11626 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11627 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
11628 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
11629 | ;; |
---|
11630 | *) |
---|
11631 | shrext_cmds='.sl' |
---|
11632 | dynamic_linker="$host_os dld.sl" |
---|
11633 | shlibpath_var=SHLIB_PATH |
---|
11634 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
11635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11636 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11637 | ;; |
---|
11638 | esac |
---|
11639 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
11640 | postinstall_cmds='chmod 555 $lib' |
---|
11641 | ;; |
---|
11642 | |
---|
11643 | irix5* | irix6* | nonstopux*) |
---|
11644 | case $host_os in |
---|
11645 | nonstopux*) version_type=nonstopux ;; |
---|
11646 | *) |
---|
11647 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
11648 | version_type=linux |
---|
11649 | else |
---|
11650 | version_type=irix |
---|
11651 | fi ;; |
---|
11652 | esac |
---|
11653 | need_lib_prefix=no |
---|
11654 | need_version=no |
---|
11655 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
11657 | case $host_os in |
---|
11658 | irix5* | nonstopux*) |
---|
11659 | libsuff= shlibsuff= |
---|
11660 | ;; |
---|
11661 | *) |
---|
11662 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
11663 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
11664 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
11665 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
11666 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
11667 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
11668 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
11669 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
11670 | esac |
---|
11671 | ;; |
---|
11672 | esac |
---|
11673 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
11674 | shlibpath_overrides_runpath=no |
---|
11675 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
11676 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
11677 | hardcode_into_libs=yes |
---|
11678 | ;; |
---|
11679 | |
---|
11680 | # No shared lib support for Linux oldld, aout, or coff. |
---|
11681 | linux*oldld* | linux*aout* | linux*coff*) |
---|
11682 | dynamic_linker=no |
---|
11683 | ;; |
---|
11684 | |
---|
11685 | # This must be Linux ELF. |
---|
11686 | linux*) |
---|
11687 | version_type=linux |
---|
11688 | need_lib_prefix=no |
---|
11689 | need_version=no |
---|
11690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11691 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11692 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
11693 | shlibpath_var=LD_LIBRARY_PATH |
---|
11694 | shlibpath_overrides_runpath=no |
---|
11695 | # This implies no fast_install, which is unacceptable. |
---|
11696 | # Some rework will be needed to allow for fast_install |
---|
11697 | # before this can be enabled. |
---|
11698 | hardcode_into_libs=yes |
---|
11699 | |
---|
11700 | # Append ld.so.conf contents to the search path |
---|
11701 | if test -f /etc/ld.so.conf; then |
---|
11702 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
---|
11703 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
11704 | fi |
---|
11705 | |
---|
11706 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
11707 | # powerpc, because MkLinux only supported shared libraries with the |
---|
11708 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
11709 | # most powerpc-linux boxes support dynamic linking these days and |
---|
11710 | # people can always --disable-shared, the test was removed, and we |
---|
11711 | # assume the GNU/Linux dynamic linker is in use. |
---|
11712 | dynamic_linker='GNU/Linux ld.so' |
---|
11713 | ;; |
---|
11714 | |
---|
11715 | netbsdelf*-gnu) |
---|
11716 | version_type=linux |
---|
11717 | need_lib_prefix=no |
---|
11718 | need_version=no |
---|
11719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
11720 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11721 | shlibpath_var=LD_LIBRARY_PATH |
---|
11722 | shlibpath_overrides_runpath=no |
---|
11723 | hardcode_into_libs=yes |
---|
11724 | dynamic_linker='NetBSD ld.elf_so' |
---|
11725 | ;; |
---|
11726 | |
---|
11727 | knetbsd*-gnu) |
---|
11728 | version_type=linux |
---|
11729 | need_lib_prefix=no |
---|
11730 | need_version=no |
---|
11731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
11732 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11733 | shlibpath_var=LD_LIBRARY_PATH |
---|
11734 | shlibpath_overrides_runpath=no |
---|
11735 | hardcode_into_libs=yes |
---|
11736 | dynamic_linker='GNU ld.so' |
---|
11737 | ;; |
---|
11738 | |
---|
11739 | netbsd*) |
---|
11740 | version_type=sunos |
---|
11741 | need_lib_prefix=no |
---|
11742 | need_version=no |
---|
11743 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
11744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
11745 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
11746 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
11747 | else |
---|
11748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
11749 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11750 | dynamic_linker='NetBSD ld.elf_so' |
---|
11751 | fi |
---|
11752 | shlibpath_var=LD_LIBRARY_PATH |
---|
11753 | shlibpath_overrides_runpath=yes |
---|
11754 | hardcode_into_libs=yes |
---|
11755 | ;; |
---|
11756 | |
---|
11757 | newsos6) |
---|
11758 | version_type=linux |
---|
11759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11760 | shlibpath_var=LD_LIBRARY_PATH |
---|
11761 | shlibpath_overrides_runpath=yes |
---|
11762 | ;; |
---|
11763 | |
---|
11764 | nto-qnx*) |
---|
11765 | version_type=linux |
---|
11766 | need_lib_prefix=no |
---|
11767 | need_version=no |
---|
11768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11769 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11770 | shlibpath_var=LD_LIBRARY_PATH |
---|
11771 | shlibpath_overrides_runpath=yes |
---|
11772 | ;; |
---|
11773 | |
---|
11774 | openbsd*) |
---|
11775 | version_type=sunos |
---|
11776 | need_lib_prefix=no |
---|
11777 | need_version=yes |
---|
11778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
11779 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
11780 | shlibpath_var=LD_LIBRARY_PATH |
---|
11781 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
11782 | case $host_os in |
---|
11783 | openbsd2.[89] | openbsd2.[89].*) |
---|
11784 | shlibpath_overrides_runpath=no |
---|
11785 | ;; |
---|
11786 | *) |
---|
11787 | shlibpath_overrides_runpath=yes |
---|
11788 | ;; |
---|
11789 | esac |
---|
11790 | else |
---|
11791 | shlibpath_overrides_runpath=yes |
---|
11792 | fi |
---|
11793 | ;; |
---|
11794 | |
---|
11795 | os2*) |
---|
11796 | libname_spec='$name' |
---|
11797 | shrext_cmds=".dll" |
---|
11798 | need_lib_prefix=no |
---|
11799 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
11800 | dynamic_linker='OS/2 ld.exe' |
---|
11801 | shlibpath_var=LIBPATH |
---|
11802 | ;; |
---|
11803 | |
---|
11804 | osf3* | osf4* | osf5*) |
---|
11805 | version_type=osf |
---|
11806 | need_lib_prefix=no |
---|
11807 | need_version=no |
---|
11808 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11810 | shlibpath_var=LD_LIBRARY_PATH |
---|
11811 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
11812 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
11813 | ;; |
---|
11814 | |
---|
11815 | sco3.2v5*) |
---|
11816 | version_type=osf |
---|
11817 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11819 | shlibpath_var=LD_LIBRARY_PATH |
---|
11820 | ;; |
---|
11821 | |
---|
11822 | solaris*) |
---|
11823 | version_type=linux |
---|
11824 | need_lib_prefix=no |
---|
11825 | need_version=no |
---|
11826 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11827 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11828 | shlibpath_var=LD_LIBRARY_PATH |
---|
11829 | shlibpath_overrides_runpath=yes |
---|
11830 | hardcode_into_libs=yes |
---|
11831 | # ldd complains unless libraries are executable |
---|
11832 | postinstall_cmds='chmod +x $lib' |
---|
11833 | ;; |
---|
11834 | |
---|
11835 | sunos4*) |
---|
11836 | version_type=sunos |
---|
11837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
11838 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
11839 | shlibpath_var=LD_LIBRARY_PATH |
---|
11840 | shlibpath_overrides_runpath=yes |
---|
11841 | if test "$with_gnu_ld" = yes; then |
---|
11842 | need_lib_prefix=no |
---|
11843 | fi |
---|
11844 | need_version=yes |
---|
11845 | ;; |
---|
11846 | |
---|
11847 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
11848 | version_type=linux |
---|
11849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11850 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11851 | shlibpath_var=LD_LIBRARY_PATH |
---|
11852 | case $host_vendor in |
---|
11853 | sni) |
---|
11854 | shlibpath_overrides_runpath=no |
---|
11855 | need_lib_prefix=no |
---|
11856 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
11857 | runpath_var=LD_RUN_PATH |
---|
11858 | ;; |
---|
11859 | siemens) |
---|
11860 | need_lib_prefix=no |
---|
11861 | ;; |
---|
11862 | motorola) |
---|
11863 | need_lib_prefix=no |
---|
11864 | need_version=no |
---|
11865 | shlibpath_overrides_runpath=no |
---|
11866 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
11867 | ;; |
---|
11868 | esac |
---|
11869 | ;; |
---|
11870 | |
---|
11871 | sysv4*MP*) |
---|
11872 | if test -d /usr/nec ;then |
---|
11873 | version_type=linux |
---|
11874 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
11875 | soname_spec='$libname${shared_ext}.$major' |
---|
11876 | shlibpath_var=LD_LIBRARY_PATH |
---|
11877 | fi |
---|
11878 | ;; |
---|
11879 | |
---|
11880 | uts4*) |
---|
11881 | version_type=linux |
---|
11882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
11883 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
11884 | shlibpath_var=LD_LIBRARY_PATH |
---|
11885 | ;; |
---|
11886 | |
---|
11887 | *) |
---|
11888 | dynamic_linker=no |
---|
11889 | ;; |
---|
11890 | esac |
---|
11891 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
11892 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
11893 | test "$dynamic_linker" = no && can_build_shared=no |
---|
11894 | |
---|
11895 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
11896 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
11897 | hardcode_action_CXX= |
---|
11898 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
---|
11899 | test -n "$runpath_var CXX" || \ |
---|
11900 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
---|
11901 | |
---|
11902 | # We can hardcode non-existant directories. |
---|
11903 | if test "$hardcode_direct_CXX" != no && |
---|
11904 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
11905 | # have to relink, otherwise we might link with an installed library |
---|
11906 | # when we should be linking with a yet-to-be-installed one |
---|
11907 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
---|
11908 | test "$hardcode_minus_L_CXX" != no; then |
---|
11909 | # Linking always hardcodes the temporary library directory. |
---|
11910 | hardcode_action_CXX=relink |
---|
11911 | else |
---|
11912 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
11913 | hardcode_action_CXX=immediate |
---|
11914 | fi |
---|
11915 | else |
---|
11916 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
11917 | # directories. |
---|
11918 | hardcode_action_CXX=unsupported |
---|
11919 | fi |
---|
11920 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
---|
11921 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
---|
11922 | |
---|
11923 | if test "$hardcode_action_CXX" = relink; then |
---|
11924 | # Fast installation is not supported |
---|
11925 | enable_fast_install=no |
---|
11926 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
11927 | test "$enable_shared" = no; then |
---|
11928 | # Fast installation is not necessary |
---|
11929 | enable_fast_install=needless |
---|
11930 | fi |
---|
11931 | |
---|
11932 | striplib= |
---|
11933 | old_striplib= |
---|
11934 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
11935 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
11936 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
11937 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
11938 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
11939 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
11940 | echo "${ECHO_T}yes" >&6 |
---|
11941 | else |
---|
11942 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
11943 | case $host_os in |
---|
11944 | darwin*) |
---|
11945 | if test -n "$STRIP" ; then |
---|
11946 | striplib="$STRIP -x" |
---|
11947 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
11948 | echo "${ECHO_T}yes" >&6 |
---|
11949 | else |
---|
11950 | echo "$as_me:$LINENO: result: no" >&5 |
---|
11951 | echo "${ECHO_T}no" >&6 |
---|
11952 | fi |
---|
11953 | ;; |
---|
11954 | *) |
---|
11955 | echo "$as_me:$LINENO: result: no" >&5 |
---|
11956 | echo "${ECHO_T}no" >&6 |
---|
11957 | ;; |
---|
11958 | esac |
---|
11959 | fi |
---|
11960 | |
---|
11961 | if test "x$enable_dlopen" != xyes; then |
---|
11962 | enable_dlopen=unknown |
---|
11963 | enable_dlopen_self=unknown |
---|
11964 | enable_dlopen_self_static=unknown |
---|
11965 | else |
---|
11966 | lt_cv_dlopen=no |
---|
11967 | lt_cv_dlopen_libs= |
---|
11968 | |
---|
11969 | case $host_os in |
---|
11970 | beos*) |
---|
11971 | lt_cv_dlopen="load_add_on" |
---|
11972 | lt_cv_dlopen_libs= |
---|
11973 | lt_cv_dlopen_self=yes |
---|
11974 | ;; |
---|
11975 | |
---|
11976 | mingw* | pw32*) |
---|
11977 | lt_cv_dlopen="LoadLibrary" |
---|
11978 | lt_cv_dlopen_libs= |
---|
11979 | ;; |
---|
11980 | |
---|
11981 | cygwin*) |
---|
11982 | lt_cv_dlopen="dlopen" |
---|
11983 | lt_cv_dlopen_libs= |
---|
11984 | ;; |
---|
11985 | |
---|
11986 | darwin*) |
---|
11987 | # if libdl is installed we need to link against it |
---|
11988 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
11989 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
11990 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
11991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11992 | else |
---|
11993 | ac_check_lib_save_LIBS=$LIBS |
---|
11994 | LIBS="-ldl $LIBS" |
---|
11995 | cat >conftest.$ac_ext <<_ACEOF |
---|
11996 | /* confdefs.h. */ |
---|
11997 | _ACEOF |
---|
11998 | cat confdefs.h >>conftest.$ac_ext |
---|
11999 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12000 | /* end confdefs.h. */ |
---|
12001 | |
---|
12002 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12003 | #ifdef __cplusplus |
---|
12004 | extern "C" |
---|
12005 | #endif |
---|
12006 | /* We use char because int might match the return type of a gcc2 |
---|
12007 | builtin and then its argument prototype would still apply. */ |
---|
12008 | char dlopen (); |
---|
12009 | int |
---|
12010 | main () |
---|
12011 | { |
---|
12012 | dlopen (); |
---|
12013 | ; |
---|
12014 | return 0; |
---|
12015 | } |
---|
12016 | _ACEOF |
---|
12017 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12019 | (eval $ac_link) 2>conftest.er1 |
---|
12020 | ac_status=$? |
---|
12021 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12022 | rm -f conftest.er1 |
---|
12023 | cat conftest.err >&5 |
---|
12024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12025 | (exit $ac_status); } && |
---|
12026 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12028 | (eval $ac_try) 2>&5 |
---|
12029 | ac_status=$? |
---|
12030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12031 | (exit $ac_status); }; } && |
---|
12032 | { ac_try='test -s conftest$ac_exeext' |
---|
12033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12034 | (eval $ac_try) 2>&5 |
---|
12035 | ac_status=$? |
---|
12036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12037 | (exit $ac_status); }; }; then |
---|
12038 | ac_cv_lib_dl_dlopen=yes |
---|
12039 | else |
---|
12040 | echo "$as_me: failed program was:" >&5 |
---|
12041 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12042 | |
---|
12043 | ac_cv_lib_dl_dlopen=no |
---|
12044 | fi |
---|
12045 | rm -f conftest.err conftest.$ac_objext \ |
---|
12046 | conftest$ac_exeext conftest.$ac_ext |
---|
12047 | LIBS=$ac_check_lib_save_LIBS |
---|
12048 | fi |
---|
12049 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
12050 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
12051 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
12052 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
12053 | else |
---|
12054 | |
---|
12055 | lt_cv_dlopen="dyld" |
---|
12056 | lt_cv_dlopen_libs= |
---|
12057 | lt_cv_dlopen_self=yes |
---|
12058 | |
---|
12059 | fi |
---|
12060 | |
---|
12061 | ;; |
---|
12062 | |
---|
12063 | *) |
---|
12064 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
12065 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
12066 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
12067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12068 | else |
---|
12069 | cat >conftest.$ac_ext <<_ACEOF |
---|
12070 | /* confdefs.h. */ |
---|
12071 | _ACEOF |
---|
12072 | cat confdefs.h >>conftest.$ac_ext |
---|
12073 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12074 | /* end confdefs.h. */ |
---|
12075 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
12076 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
12077 | #define shl_load innocuous_shl_load |
---|
12078 | |
---|
12079 | /* System header to define __stub macros and hopefully few prototypes, |
---|
12080 | which can conflict with char shl_load (); below. |
---|
12081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
12082 | <limits.h> exists even on freestanding compilers. */ |
---|
12083 | |
---|
12084 | #ifdef __STDC__ |
---|
12085 | # include <limits.h> |
---|
12086 | #else |
---|
12087 | # include <assert.h> |
---|
12088 | #endif |
---|
12089 | |
---|
12090 | #undef shl_load |
---|
12091 | |
---|
12092 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12093 | #ifdef __cplusplus |
---|
12094 | extern "C" |
---|
12095 | { |
---|
12096 | #endif |
---|
12097 | /* We use char because int might match the return type of a gcc2 |
---|
12098 | builtin and then its argument prototype would still apply. */ |
---|
12099 | char shl_load (); |
---|
12100 | /* The GNU C library defines this for functions which it implements |
---|
12101 | to always fail with ENOSYS. Some functions are actually named |
---|
12102 | something starting with __ and the normal name is an alias. */ |
---|
12103 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
12104 | choke me |
---|
12105 | #else |
---|
12106 | char (*f) () = shl_load; |
---|
12107 | #endif |
---|
12108 | #ifdef __cplusplus |
---|
12109 | } |
---|
12110 | #endif |
---|
12111 | |
---|
12112 | int |
---|
12113 | main () |
---|
12114 | { |
---|
12115 | return f != shl_load; |
---|
12116 | ; |
---|
12117 | return 0; |
---|
12118 | } |
---|
12119 | _ACEOF |
---|
12120 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12122 | (eval $ac_link) 2>conftest.er1 |
---|
12123 | ac_status=$? |
---|
12124 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12125 | rm -f conftest.er1 |
---|
12126 | cat conftest.err >&5 |
---|
12127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12128 | (exit $ac_status); } && |
---|
12129 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12131 | (eval $ac_try) 2>&5 |
---|
12132 | ac_status=$? |
---|
12133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12134 | (exit $ac_status); }; } && |
---|
12135 | { ac_try='test -s conftest$ac_exeext' |
---|
12136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12137 | (eval $ac_try) 2>&5 |
---|
12138 | ac_status=$? |
---|
12139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12140 | (exit $ac_status); }; }; then |
---|
12141 | ac_cv_func_shl_load=yes |
---|
12142 | else |
---|
12143 | echo "$as_me: failed program was:" >&5 |
---|
12144 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12145 | |
---|
12146 | ac_cv_func_shl_load=no |
---|
12147 | fi |
---|
12148 | rm -f conftest.err conftest.$ac_objext \ |
---|
12149 | conftest$ac_exeext conftest.$ac_ext |
---|
12150 | fi |
---|
12151 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
12152 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
12153 | if test $ac_cv_func_shl_load = yes; then |
---|
12154 | lt_cv_dlopen="shl_load" |
---|
12155 | else |
---|
12156 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
12157 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
12158 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
12159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12160 | else |
---|
12161 | ac_check_lib_save_LIBS=$LIBS |
---|
12162 | LIBS="-ldld $LIBS" |
---|
12163 | cat >conftest.$ac_ext <<_ACEOF |
---|
12164 | /* confdefs.h. */ |
---|
12165 | _ACEOF |
---|
12166 | cat confdefs.h >>conftest.$ac_ext |
---|
12167 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12168 | /* end confdefs.h. */ |
---|
12169 | |
---|
12170 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12171 | #ifdef __cplusplus |
---|
12172 | extern "C" |
---|
12173 | #endif |
---|
12174 | /* We use char because int might match the return type of a gcc2 |
---|
12175 | builtin and then its argument prototype would still apply. */ |
---|
12176 | char shl_load (); |
---|
12177 | int |
---|
12178 | main () |
---|
12179 | { |
---|
12180 | shl_load (); |
---|
12181 | ; |
---|
12182 | return 0; |
---|
12183 | } |
---|
12184 | _ACEOF |
---|
12185 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12187 | (eval $ac_link) 2>conftest.er1 |
---|
12188 | ac_status=$? |
---|
12189 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12190 | rm -f conftest.er1 |
---|
12191 | cat conftest.err >&5 |
---|
12192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12193 | (exit $ac_status); } && |
---|
12194 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12196 | (eval $ac_try) 2>&5 |
---|
12197 | ac_status=$? |
---|
12198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12199 | (exit $ac_status); }; } && |
---|
12200 | { ac_try='test -s conftest$ac_exeext' |
---|
12201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12202 | (eval $ac_try) 2>&5 |
---|
12203 | ac_status=$? |
---|
12204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12205 | (exit $ac_status); }; }; then |
---|
12206 | ac_cv_lib_dld_shl_load=yes |
---|
12207 | else |
---|
12208 | echo "$as_me: failed program was:" >&5 |
---|
12209 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12210 | |
---|
12211 | ac_cv_lib_dld_shl_load=no |
---|
12212 | fi |
---|
12213 | rm -f conftest.err conftest.$ac_objext \ |
---|
12214 | conftest$ac_exeext conftest.$ac_ext |
---|
12215 | LIBS=$ac_check_lib_save_LIBS |
---|
12216 | fi |
---|
12217 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
12218 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
12219 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
12220 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
12221 | else |
---|
12222 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
12223 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
12224 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
12225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12226 | else |
---|
12227 | cat >conftest.$ac_ext <<_ACEOF |
---|
12228 | /* confdefs.h. */ |
---|
12229 | _ACEOF |
---|
12230 | cat confdefs.h >>conftest.$ac_ext |
---|
12231 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12232 | /* end confdefs.h. */ |
---|
12233 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
12234 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
12235 | #define dlopen innocuous_dlopen |
---|
12236 | |
---|
12237 | /* System header to define __stub macros and hopefully few prototypes, |
---|
12238 | which can conflict with char dlopen (); below. |
---|
12239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
12240 | <limits.h> exists even on freestanding compilers. */ |
---|
12241 | |
---|
12242 | #ifdef __STDC__ |
---|
12243 | # include <limits.h> |
---|
12244 | #else |
---|
12245 | # include <assert.h> |
---|
12246 | #endif |
---|
12247 | |
---|
12248 | #undef dlopen |
---|
12249 | |
---|
12250 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12251 | #ifdef __cplusplus |
---|
12252 | extern "C" |
---|
12253 | { |
---|
12254 | #endif |
---|
12255 | /* We use char because int might match the return type of a gcc2 |
---|
12256 | builtin and then its argument prototype would still apply. */ |
---|
12257 | char dlopen (); |
---|
12258 | /* The GNU C library defines this for functions which it implements |
---|
12259 | to always fail with ENOSYS. Some functions are actually named |
---|
12260 | something starting with __ and the normal name is an alias. */ |
---|
12261 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
12262 | choke me |
---|
12263 | #else |
---|
12264 | char (*f) () = dlopen; |
---|
12265 | #endif |
---|
12266 | #ifdef __cplusplus |
---|
12267 | } |
---|
12268 | #endif |
---|
12269 | |
---|
12270 | int |
---|
12271 | main () |
---|
12272 | { |
---|
12273 | return f != dlopen; |
---|
12274 | ; |
---|
12275 | return 0; |
---|
12276 | } |
---|
12277 | _ACEOF |
---|
12278 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12280 | (eval $ac_link) 2>conftest.er1 |
---|
12281 | ac_status=$? |
---|
12282 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12283 | rm -f conftest.er1 |
---|
12284 | cat conftest.err >&5 |
---|
12285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12286 | (exit $ac_status); } && |
---|
12287 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12289 | (eval $ac_try) 2>&5 |
---|
12290 | ac_status=$? |
---|
12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12292 | (exit $ac_status); }; } && |
---|
12293 | { ac_try='test -s conftest$ac_exeext' |
---|
12294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12295 | (eval $ac_try) 2>&5 |
---|
12296 | ac_status=$? |
---|
12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12298 | (exit $ac_status); }; }; then |
---|
12299 | ac_cv_func_dlopen=yes |
---|
12300 | else |
---|
12301 | echo "$as_me: failed program was:" >&5 |
---|
12302 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12303 | |
---|
12304 | ac_cv_func_dlopen=no |
---|
12305 | fi |
---|
12306 | rm -f conftest.err conftest.$ac_objext \ |
---|
12307 | conftest$ac_exeext conftest.$ac_ext |
---|
12308 | fi |
---|
12309 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
12310 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
12311 | if test $ac_cv_func_dlopen = yes; then |
---|
12312 | lt_cv_dlopen="dlopen" |
---|
12313 | else |
---|
12314 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
12315 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
12316 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
12317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12318 | else |
---|
12319 | ac_check_lib_save_LIBS=$LIBS |
---|
12320 | LIBS="-ldl $LIBS" |
---|
12321 | cat >conftest.$ac_ext <<_ACEOF |
---|
12322 | /* confdefs.h. */ |
---|
12323 | _ACEOF |
---|
12324 | cat confdefs.h >>conftest.$ac_ext |
---|
12325 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12326 | /* end confdefs.h. */ |
---|
12327 | |
---|
12328 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12329 | #ifdef __cplusplus |
---|
12330 | extern "C" |
---|
12331 | #endif |
---|
12332 | /* We use char because int might match the return type of a gcc2 |
---|
12333 | builtin and then its argument prototype would still apply. */ |
---|
12334 | char dlopen (); |
---|
12335 | int |
---|
12336 | main () |
---|
12337 | { |
---|
12338 | dlopen (); |
---|
12339 | ; |
---|
12340 | return 0; |
---|
12341 | } |
---|
12342 | _ACEOF |
---|
12343 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12345 | (eval $ac_link) 2>conftest.er1 |
---|
12346 | ac_status=$? |
---|
12347 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12348 | rm -f conftest.er1 |
---|
12349 | cat conftest.err >&5 |
---|
12350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12351 | (exit $ac_status); } && |
---|
12352 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12354 | (eval $ac_try) 2>&5 |
---|
12355 | ac_status=$? |
---|
12356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12357 | (exit $ac_status); }; } && |
---|
12358 | { ac_try='test -s conftest$ac_exeext' |
---|
12359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12360 | (eval $ac_try) 2>&5 |
---|
12361 | ac_status=$? |
---|
12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12363 | (exit $ac_status); }; }; then |
---|
12364 | ac_cv_lib_dl_dlopen=yes |
---|
12365 | else |
---|
12366 | echo "$as_me: failed program was:" >&5 |
---|
12367 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12368 | |
---|
12369 | ac_cv_lib_dl_dlopen=no |
---|
12370 | fi |
---|
12371 | rm -f conftest.err conftest.$ac_objext \ |
---|
12372 | conftest$ac_exeext conftest.$ac_ext |
---|
12373 | LIBS=$ac_check_lib_save_LIBS |
---|
12374 | fi |
---|
12375 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
12376 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
12377 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
12378 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
12379 | else |
---|
12380 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
12381 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
12382 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
12383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12384 | else |
---|
12385 | ac_check_lib_save_LIBS=$LIBS |
---|
12386 | LIBS="-lsvld $LIBS" |
---|
12387 | cat >conftest.$ac_ext <<_ACEOF |
---|
12388 | /* confdefs.h. */ |
---|
12389 | _ACEOF |
---|
12390 | cat confdefs.h >>conftest.$ac_ext |
---|
12391 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12392 | /* end confdefs.h. */ |
---|
12393 | |
---|
12394 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12395 | #ifdef __cplusplus |
---|
12396 | extern "C" |
---|
12397 | #endif |
---|
12398 | /* We use char because int might match the return type of a gcc2 |
---|
12399 | builtin and then its argument prototype would still apply. */ |
---|
12400 | char dlopen (); |
---|
12401 | int |
---|
12402 | main () |
---|
12403 | { |
---|
12404 | dlopen (); |
---|
12405 | ; |
---|
12406 | return 0; |
---|
12407 | } |
---|
12408 | _ACEOF |
---|
12409 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12411 | (eval $ac_link) 2>conftest.er1 |
---|
12412 | ac_status=$? |
---|
12413 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12414 | rm -f conftest.er1 |
---|
12415 | cat conftest.err >&5 |
---|
12416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12417 | (exit $ac_status); } && |
---|
12418 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12420 | (eval $ac_try) 2>&5 |
---|
12421 | ac_status=$? |
---|
12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12423 | (exit $ac_status); }; } && |
---|
12424 | { ac_try='test -s conftest$ac_exeext' |
---|
12425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12426 | (eval $ac_try) 2>&5 |
---|
12427 | ac_status=$? |
---|
12428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12429 | (exit $ac_status); }; }; then |
---|
12430 | ac_cv_lib_svld_dlopen=yes |
---|
12431 | else |
---|
12432 | echo "$as_me: failed program was:" >&5 |
---|
12433 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12434 | |
---|
12435 | ac_cv_lib_svld_dlopen=no |
---|
12436 | fi |
---|
12437 | rm -f conftest.err conftest.$ac_objext \ |
---|
12438 | conftest$ac_exeext conftest.$ac_ext |
---|
12439 | LIBS=$ac_check_lib_save_LIBS |
---|
12440 | fi |
---|
12441 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
12442 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
12443 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
12444 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
12445 | else |
---|
12446 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
12447 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
12448 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
12449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12450 | else |
---|
12451 | ac_check_lib_save_LIBS=$LIBS |
---|
12452 | LIBS="-ldld $LIBS" |
---|
12453 | cat >conftest.$ac_ext <<_ACEOF |
---|
12454 | /* confdefs.h. */ |
---|
12455 | _ACEOF |
---|
12456 | cat confdefs.h >>conftest.$ac_ext |
---|
12457 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12458 | /* end confdefs.h. */ |
---|
12459 | |
---|
12460 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
12461 | #ifdef __cplusplus |
---|
12462 | extern "C" |
---|
12463 | #endif |
---|
12464 | /* We use char because int might match the return type of a gcc2 |
---|
12465 | builtin and then its argument prototype would still apply. */ |
---|
12466 | char dld_link (); |
---|
12467 | int |
---|
12468 | main () |
---|
12469 | { |
---|
12470 | dld_link (); |
---|
12471 | ; |
---|
12472 | return 0; |
---|
12473 | } |
---|
12474 | _ACEOF |
---|
12475 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12477 | (eval $ac_link) 2>conftest.er1 |
---|
12478 | ac_status=$? |
---|
12479 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12480 | rm -f conftest.er1 |
---|
12481 | cat conftest.err >&5 |
---|
12482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12483 | (exit $ac_status); } && |
---|
12484 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
12485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12486 | (eval $ac_try) 2>&5 |
---|
12487 | ac_status=$? |
---|
12488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12489 | (exit $ac_status); }; } && |
---|
12490 | { ac_try='test -s conftest$ac_exeext' |
---|
12491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
12492 | (eval $ac_try) 2>&5 |
---|
12493 | ac_status=$? |
---|
12494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12495 | (exit $ac_status); }; }; then |
---|
12496 | ac_cv_lib_dld_dld_link=yes |
---|
12497 | else |
---|
12498 | echo "$as_me: failed program was:" >&5 |
---|
12499 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12500 | |
---|
12501 | ac_cv_lib_dld_dld_link=no |
---|
12502 | fi |
---|
12503 | rm -f conftest.err conftest.$ac_objext \ |
---|
12504 | conftest$ac_exeext conftest.$ac_ext |
---|
12505 | LIBS=$ac_check_lib_save_LIBS |
---|
12506 | fi |
---|
12507 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
12508 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
12509 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
12510 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
12511 | fi |
---|
12512 | |
---|
12513 | |
---|
12514 | fi |
---|
12515 | |
---|
12516 | |
---|
12517 | fi |
---|
12518 | |
---|
12519 | |
---|
12520 | fi |
---|
12521 | |
---|
12522 | |
---|
12523 | fi |
---|
12524 | |
---|
12525 | |
---|
12526 | fi |
---|
12527 | |
---|
12528 | ;; |
---|
12529 | esac |
---|
12530 | |
---|
12531 | if test "x$lt_cv_dlopen" != xno; then |
---|
12532 | enable_dlopen=yes |
---|
12533 | else |
---|
12534 | enable_dlopen=no |
---|
12535 | fi |
---|
12536 | |
---|
12537 | case $lt_cv_dlopen in |
---|
12538 | dlopen) |
---|
12539 | save_CPPFLAGS="$CPPFLAGS" |
---|
12540 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
12541 | |
---|
12542 | save_LDFLAGS="$LDFLAGS" |
---|
12543 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
12544 | |
---|
12545 | save_LIBS="$LIBS" |
---|
12546 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
12547 | |
---|
12548 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
12549 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
12550 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
12551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12552 | else |
---|
12553 | if test "$cross_compiling" = yes; then : |
---|
12554 | lt_cv_dlopen_self=cross |
---|
12555 | else |
---|
12556 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
12557 | lt_status=$lt_dlunknown |
---|
12558 | cat > conftest.$ac_ext <<EOF |
---|
12559 | #line __oline__ "configure" |
---|
12560 | #include "confdefs.h" |
---|
12561 | |
---|
12562 | #if HAVE_DLFCN_H |
---|
12563 | #include <dlfcn.h> |
---|
12564 | #endif |
---|
12565 | |
---|
12566 | #include <stdio.h> |
---|
12567 | |
---|
12568 | #ifdef RTLD_GLOBAL |
---|
12569 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
12570 | #else |
---|
12571 | # ifdef DL_GLOBAL |
---|
12572 | # define LT_DLGLOBAL DL_GLOBAL |
---|
12573 | # else |
---|
12574 | # define LT_DLGLOBAL 0 |
---|
12575 | # endif |
---|
12576 | #endif |
---|
12577 | |
---|
12578 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
12579 | find out it does not work in some platform. */ |
---|
12580 | #ifndef LT_DLLAZY_OR_NOW |
---|
12581 | # ifdef RTLD_LAZY |
---|
12582 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
12583 | # else |
---|
12584 | # ifdef DL_LAZY |
---|
12585 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
12586 | # else |
---|
12587 | # ifdef RTLD_NOW |
---|
12588 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
12589 | # else |
---|
12590 | # ifdef DL_NOW |
---|
12591 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
12592 | # else |
---|
12593 | # define LT_DLLAZY_OR_NOW 0 |
---|
12594 | # endif |
---|
12595 | # endif |
---|
12596 | # endif |
---|
12597 | # endif |
---|
12598 | #endif |
---|
12599 | |
---|
12600 | #ifdef __cplusplus |
---|
12601 | extern "C" void exit (int); |
---|
12602 | #endif |
---|
12603 | |
---|
12604 | void fnord() { int i=42;} |
---|
12605 | int main () |
---|
12606 | { |
---|
12607 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
12608 | int status = $lt_dlunknown; |
---|
12609 | |
---|
12610 | if (self) |
---|
12611 | { |
---|
12612 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
12613 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
12614 | /* dlclose (self); */ |
---|
12615 | } |
---|
12616 | |
---|
12617 | exit (status); |
---|
12618 | } |
---|
12619 | EOF |
---|
12620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12621 | (eval $ac_link) 2>&5 |
---|
12622 | ac_status=$? |
---|
12623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12624 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
12625 | (./conftest; exit; ) 2>/dev/null |
---|
12626 | lt_status=$? |
---|
12627 | case x$lt_status in |
---|
12628 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
12629 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
12630 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
12631 | esac |
---|
12632 | else : |
---|
12633 | # compilation failed |
---|
12634 | lt_cv_dlopen_self=no |
---|
12635 | fi |
---|
12636 | fi |
---|
12637 | rm -fr conftest* |
---|
12638 | |
---|
12639 | |
---|
12640 | fi |
---|
12641 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
12642 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
12643 | |
---|
12644 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
12645 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
12646 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
12647 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
12648 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
12649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12650 | else |
---|
12651 | if test "$cross_compiling" = yes; then : |
---|
12652 | lt_cv_dlopen_self_static=cross |
---|
12653 | else |
---|
12654 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
12655 | lt_status=$lt_dlunknown |
---|
12656 | cat > conftest.$ac_ext <<EOF |
---|
12657 | #line __oline__ "configure" |
---|
12658 | #include "confdefs.h" |
---|
12659 | |
---|
12660 | #if HAVE_DLFCN_H |
---|
12661 | #include <dlfcn.h> |
---|
12662 | #endif |
---|
12663 | |
---|
12664 | #include <stdio.h> |
---|
12665 | |
---|
12666 | #ifdef RTLD_GLOBAL |
---|
12667 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
12668 | #else |
---|
12669 | # ifdef DL_GLOBAL |
---|
12670 | # define LT_DLGLOBAL DL_GLOBAL |
---|
12671 | # else |
---|
12672 | # define LT_DLGLOBAL 0 |
---|
12673 | # endif |
---|
12674 | #endif |
---|
12675 | |
---|
12676 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
12677 | find out it does not work in some platform. */ |
---|
12678 | #ifndef LT_DLLAZY_OR_NOW |
---|
12679 | # ifdef RTLD_LAZY |
---|
12680 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
12681 | # else |
---|
12682 | # ifdef DL_LAZY |
---|
12683 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
12684 | # else |
---|
12685 | # ifdef RTLD_NOW |
---|
12686 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
12687 | # else |
---|
12688 | # ifdef DL_NOW |
---|
12689 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
12690 | # else |
---|
12691 | # define LT_DLLAZY_OR_NOW 0 |
---|
12692 | # endif |
---|
12693 | # endif |
---|
12694 | # endif |
---|
12695 | # endif |
---|
12696 | #endif |
---|
12697 | |
---|
12698 | #ifdef __cplusplus |
---|
12699 | extern "C" void exit (int); |
---|
12700 | #endif |
---|
12701 | |
---|
12702 | void fnord() { int i=42;} |
---|
12703 | int main () |
---|
12704 | { |
---|
12705 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
12706 | int status = $lt_dlunknown; |
---|
12707 | |
---|
12708 | if (self) |
---|
12709 | { |
---|
12710 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
12711 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
12712 | /* dlclose (self); */ |
---|
12713 | } |
---|
12714 | |
---|
12715 | exit (status); |
---|
12716 | } |
---|
12717 | EOF |
---|
12718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
12719 | (eval $ac_link) 2>&5 |
---|
12720 | ac_status=$? |
---|
12721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12722 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
12723 | (./conftest; exit; ) 2>/dev/null |
---|
12724 | lt_status=$? |
---|
12725 | case x$lt_status in |
---|
12726 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
12727 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
12728 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
12729 | esac |
---|
12730 | else : |
---|
12731 | # compilation failed |
---|
12732 | lt_cv_dlopen_self_static=no |
---|
12733 | fi |
---|
12734 | fi |
---|
12735 | rm -fr conftest* |
---|
12736 | |
---|
12737 | |
---|
12738 | fi |
---|
12739 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
12740 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
12741 | fi |
---|
12742 | |
---|
12743 | CPPFLAGS="$save_CPPFLAGS" |
---|
12744 | LDFLAGS="$save_LDFLAGS" |
---|
12745 | LIBS="$save_LIBS" |
---|
12746 | ;; |
---|
12747 | esac |
---|
12748 | |
---|
12749 | case $lt_cv_dlopen_self in |
---|
12750 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
12751 | *) enable_dlopen_self=unknown ;; |
---|
12752 | esac |
---|
12753 | |
---|
12754 | case $lt_cv_dlopen_self_static in |
---|
12755 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
12756 | *) enable_dlopen_self_static=unknown ;; |
---|
12757 | esac |
---|
12758 | fi |
---|
12759 | |
---|
12760 | |
---|
12761 | # The else clause should only fire when bootstrapping the |
---|
12762 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
12763 | # with your package, and you will get complaints that there are |
---|
12764 | # no rules to generate ltmain.sh. |
---|
12765 | if test -f "$ltmain"; then |
---|
12766 | # See if we are running on zsh, and set the options which allow our commands through |
---|
12767 | # without removal of \ escapes. |
---|
12768 | if test -n "${ZSH_VERSION+set}" ; then |
---|
12769 | setopt NO_GLOB_SUBST |
---|
12770 | fi |
---|
12771 | # Now quote all the things that may contain metacharacters while being |
---|
12772 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
12773 | # variables and quote the copies for generation of the libtool script. |
---|
12774 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
12775 | SED SHELL STRIP \ |
---|
12776 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
12777 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
12778 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
12779 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
12780 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
12781 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
12782 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
12783 | compiler_CXX \ |
---|
12784 | CC_CXX \ |
---|
12785 | LD_CXX \ |
---|
12786 | lt_prog_compiler_wl_CXX \ |
---|
12787 | lt_prog_compiler_pic_CXX \ |
---|
12788 | lt_prog_compiler_static_CXX \ |
---|
12789 | lt_prog_compiler_no_builtin_flag_CXX \ |
---|
12790 | export_dynamic_flag_spec_CXX \ |
---|
12791 | thread_safe_flag_spec_CXX \ |
---|
12792 | whole_archive_flag_spec_CXX \ |
---|
12793 | enable_shared_with_static_runtimes_CXX \ |
---|
12794 | old_archive_cmds_CXX \ |
---|
12795 | old_archive_from_new_cmds_CXX \ |
---|
12796 | predep_objects_CXX \ |
---|
12797 | postdep_objects_CXX \ |
---|
12798 | predeps_CXX \ |
---|
12799 | postdeps_CXX \ |
---|
12800 | compiler_lib_search_path_CXX \ |
---|
12801 | archive_cmds_CXX \ |
---|
12802 | archive_expsym_cmds_CXX \ |
---|
12803 | postinstall_cmds_CXX \ |
---|
12804 | postuninstall_cmds_CXX \ |
---|
12805 | old_archive_from_expsyms_cmds_CXX \ |
---|
12806 | allow_undefined_flag_CXX \ |
---|
12807 | no_undefined_flag_CXX \ |
---|
12808 | export_symbols_cmds_CXX \ |
---|
12809 | hardcode_libdir_flag_spec_CXX \ |
---|
12810 | hardcode_libdir_flag_spec_ld_CXX \ |
---|
12811 | hardcode_libdir_separator_CXX \ |
---|
12812 | hardcode_automatic_CXX \ |
---|
12813 | module_cmds_CXX \ |
---|
12814 | module_expsym_cmds_CXX \ |
---|
12815 | lt_cv_prog_compiler_c_o_CXX \ |
---|
12816 | exclude_expsyms_CXX \ |
---|
12817 | include_expsyms_CXX; do |
---|
12818 | |
---|
12819 | case $var in |
---|
12820 | old_archive_cmds_CXX | \ |
---|
12821 | old_archive_from_new_cmds_CXX | \ |
---|
12822 | archive_cmds_CXX | \ |
---|
12823 | archive_expsym_cmds_CXX | \ |
---|
12824 | module_cmds_CXX | \ |
---|
12825 | module_expsym_cmds_CXX | \ |
---|
12826 | old_archive_from_expsyms_cmds_CXX | \ |
---|
12827 | export_symbols_cmds_CXX | \ |
---|
12828 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
12829 | postinstall_cmds | postuninstall_cmds | \ |
---|
12830 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
12831 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
12832 | # Double-quote double-evaled strings. |
---|
12833 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
12834 | ;; |
---|
12835 | *) |
---|
12836 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
12837 | ;; |
---|
12838 | esac |
---|
12839 | done |
---|
12840 | |
---|
12841 | case $lt_echo in |
---|
12842 | *'\$0 --fallback-echo"') |
---|
12843 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
12844 | ;; |
---|
12845 | esac |
---|
12846 | |
---|
12847 | cfgfile="$ofile" |
---|
12848 | |
---|
12849 | cat <<__EOF__ >> "$cfgfile" |
---|
12850 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
12851 | |
---|
12852 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
12853 | |
---|
12854 | # Shell to use when invoking shell scripts. |
---|
12855 | SHELL=$lt_SHELL |
---|
12856 | |
---|
12857 | # Whether or not to build shared libraries. |
---|
12858 | build_libtool_libs=$enable_shared |
---|
12859 | |
---|
12860 | # Whether or not to build static libraries. |
---|
12861 | build_old_libs=$enable_static |
---|
12862 | |
---|
12863 | # Whether or not to add -lc for building shared libraries. |
---|
12864 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
---|
12865 | |
---|
12866 | # Whether or not to disallow shared libs when runtime libs are static |
---|
12867 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
---|
12868 | |
---|
12869 | # Whether or not to optimize for fast installation. |
---|
12870 | fast_install=$enable_fast_install |
---|
12871 | |
---|
12872 | # The host system. |
---|
12873 | host_alias=$host_alias |
---|
12874 | host=$host |
---|
12875 | |
---|
12876 | # An echo program that does not interpret backslashes. |
---|
12877 | echo=$lt_echo |
---|
12878 | |
---|
12879 | # The archiver. |
---|
12880 | AR=$lt_AR |
---|
12881 | AR_FLAGS=$lt_AR_FLAGS |
---|
12882 | |
---|
12883 | # A C compiler. |
---|
12884 | LTCC=$lt_LTCC |
---|
12885 | |
---|
12886 | # A language-specific compiler. |
---|
12887 | CC=$lt_compiler_CXX |
---|
12888 | |
---|
12889 | # Is the compiler the GNU C compiler? |
---|
12890 | with_gcc=$GCC_CXX |
---|
12891 | |
---|
12892 | # An ERE matcher. |
---|
12893 | EGREP=$lt_EGREP |
---|
12894 | |
---|
12895 | # The linker used to build libraries. |
---|
12896 | LD=$lt_LD_CXX |
---|
12897 | |
---|
12898 | # Whether we need hard or soft links. |
---|
12899 | LN_S=$lt_LN_S |
---|
12900 | |
---|
12901 | # A BSD-compatible nm program. |
---|
12902 | NM=$lt_NM |
---|
12903 | |
---|
12904 | # A symbol stripping program |
---|
12905 | STRIP=$lt_STRIP |
---|
12906 | |
---|
12907 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
12908 | MAGIC_CMD=$MAGIC_CMD |
---|
12909 | |
---|
12910 | # Used on cygwin: DLL creation program. |
---|
12911 | DLLTOOL="$DLLTOOL" |
---|
12912 | |
---|
12913 | # Used on cygwin: object dumper. |
---|
12914 | OBJDUMP="$OBJDUMP" |
---|
12915 | |
---|
12916 | # Used on cygwin: assembler. |
---|
12917 | AS="$AS" |
---|
12918 | |
---|
12919 | # The name of the directory that contains temporary libtool files. |
---|
12920 | objdir=$objdir |
---|
12921 | |
---|
12922 | # How to create reloadable object files. |
---|
12923 | reload_flag=$lt_reload_flag |
---|
12924 | reload_cmds=$lt_reload_cmds |
---|
12925 | |
---|
12926 | # How to pass a linker flag through the compiler. |
---|
12927 | wl=$lt_lt_prog_compiler_wl_CXX |
---|
12928 | |
---|
12929 | # Object file suffix (normally "o"). |
---|
12930 | objext="$ac_objext" |
---|
12931 | |
---|
12932 | # Old archive suffix (normally "a"). |
---|
12933 | libext="$libext" |
---|
12934 | |
---|
12935 | # Shared library suffix (normally ".so"). |
---|
12936 | shrext_cmds='$shrext_cmds' |
---|
12937 | |
---|
12938 | # Executable file suffix (normally ""). |
---|
12939 | exeext="$exeext" |
---|
12940 | |
---|
12941 | # Additional compiler flags for building library objects. |
---|
12942 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
---|
12943 | pic_mode=$pic_mode |
---|
12944 | |
---|
12945 | # What is the maximum length of a command? |
---|
12946 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
12947 | |
---|
12948 | # Does compiler simultaneously support -c and -o options? |
---|
12949 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
---|
12950 | |
---|
12951 | # Must we lock files when doing compilation ? |
---|
12952 | need_locks=$lt_need_locks |
---|
12953 | |
---|
12954 | # Do we need the lib prefix for modules? |
---|
12955 | need_lib_prefix=$need_lib_prefix |
---|
12956 | |
---|
12957 | # Do we need a version for libraries? |
---|
12958 | need_version=$need_version |
---|
12959 | |
---|
12960 | # Whether dlopen is supported. |
---|
12961 | dlopen_support=$enable_dlopen |
---|
12962 | |
---|
12963 | # Whether dlopen of programs is supported. |
---|
12964 | dlopen_self=$enable_dlopen_self |
---|
12965 | |
---|
12966 | # Whether dlopen of statically linked programs is supported. |
---|
12967 | dlopen_self_static=$enable_dlopen_self_static |
---|
12968 | |
---|
12969 | # Compiler flag to prevent dynamic linking. |
---|
12970 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
---|
12971 | |
---|
12972 | # Compiler flag to turn off builtin functions. |
---|
12973 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
---|
12974 | |
---|
12975 | # Compiler flag to allow reflexive dlopens. |
---|
12976 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
---|
12977 | |
---|
12978 | # Compiler flag to generate shared objects directly from archives. |
---|
12979 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
---|
12980 | |
---|
12981 | # Compiler flag to generate thread-safe objects. |
---|
12982 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
---|
12983 | |
---|
12984 | # Library versioning type. |
---|
12985 | version_type=$version_type |
---|
12986 | |
---|
12987 | # Format of library name prefix. |
---|
12988 | libname_spec=$lt_libname_spec |
---|
12989 | |
---|
12990 | # List of archive names. First name is the real one, the rest are links. |
---|
12991 | # The last name is the one that the linker finds with -lNAME. |
---|
12992 | library_names_spec=$lt_library_names_spec |
---|
12993 | |
---|
12994 | # The coded name of the library, if different from the real name. |
---|
12995 | soname_spec=$lt_soname_spec |
---|
12996 | |
---|
12997 | # Commands used to build and install an old-style archive. |
---|
12998 | RANLIB=$lt_RANLIB |
---|
12999 | old_archive_cmds=$lt_old_archive_cmds_CXX |
---|
13000 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
13001 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
13002 | |
---|
13003 | # Create an old-style archive from a shared archive. |
---|
13004 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
---|
13005 | |
---|
13006 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
13007 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
---|
13008 | |
---|
13009 | # Commands used to build and install a shared archive. |
---|
13010 | archive_cmds=$lt_archive_cmds_CXX |
---|
13011 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
---|
13012 | postinstall_cmds=$lt_postinstall_cmds |
---|
13013 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
13014 | |
---|
13015 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
13016 | module_cmds=$lt_module_cmds_CXX |
---|
13017 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
---|
13018 | |
---|
13019 | # Commands to strip libraries. |
---|
13020 | old_striplib=$lt_old_striplib |
---|
13021 | striplib=$lt_striplib |
---|
13022 | |
---|
13023 | # Dependencies to place before the objects being linked to create a |
---|
13024 | # shared library. |
---|
13025 | predep_objects=$lt_predep_objects_CXX |
---|
13026 | |
---|
13027 | # Dependencies to place after the objects being linked to create a |
---|
13028 | # shared library. |
---|
13029 | postdep_objects=$lt_postdep_objects_CXX |
---|
13030 | |
---|
13031 | # Dependencies to place before the objects being linked to create a |
---|
13032 | # shared library. |
---|
13033 | predeps=$lt_predeps_CXX |
---|
13034 | |
---|
13035 | # Dependencies to place after the objects being linked to create a |
---|
13036 | # shared library. |
---|
13037 | postdeps=$lt_postdeps_CXX |
---|
13038 | |
---|
13039 | # The library search path used internally by the compiler when linking |
---|
13040 | # a shared library. |
---|
13041 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
---|
13042 | |
---|
13043 | # Method to check whether dependent libraries are shared objects. |
---|
13044 | deplibs_check_method=$lt_deplibs_check_method |
---|
13045 | |
---|
13046 | # Command to use when deplibs_check_method == file_magic. |
---|
13047 | file_magic_cmd=$lt_file_magic_cmd |
---|
13048 | |
---|
13049 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
13050 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
---|
13051 | |
---|
13052 | # Flag that forces no undefined symbols. |
---|
13053 | no_undefined_flag=$lt_no_undefined_flag_CXX |
---|
13054 | |
---|
13055 | # Commands used to finish a libtool library installation in a directory. |
---|
13056 | finish_cmds=$lt_finish_cmds |
---|
13057 | |
---|
13058 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
13059 | finish_eval=$lt_finish_eval |
---|
13060 | |
---|
13061 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
13062 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
13063 | |
---|
13064 | # Transform the output of nm in a proper C declaration |
---|
13065 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
13066 | |
---|
13067 | # Transform the output of nm in a C name address pair |
---|
13068 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
13069 | |
---|
13070 | # This is the shared library runtime path variable. |
---|
13071 | runpath_var=$runpath_var |
---|
13072 | |
---|
13073 | # This is the shared library path variable. |
---|
13074 | shlibpath_var=$shlibpath_var |
---|
13075 | |
---|
13076 | # Is shlibpath searched before the hard-coded library search path? |
---|
13077 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
13078 | |
---|
13079 | # How to hardcode a shared library path into an executable. |
---|
13080 | hardcode_action=$hardcode_action_CXX |
---|
13081 | |
---|
13082 | # Whether we should hardcode library paths into libraries. |
---|
13083 | hardcode_into_libs=$hardcode_into_libs |
---|
13084 | |
---|
13085 | # Flag to hardcode \$libdir into a binary during linking. |
---|
13086 | # This must work even if \$libdir does not exist. |
---|
13087 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
---|
13088 | |
---|
13089 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
13090 | # a binary during linking. This must work even if \$libdir does |
---|
13091 | # not exist. |
---|
13092 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
---|
13093 | |
---|
13094 | # Whether we need a single -rpath flag with a separated argument. |
---|
13095 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
---|
13096 | |
---|
13097 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
13098 | # resulting binary. |
---|
13099 | hardcode_direct=$hardcode_direct_CXX |
---|
13100 | |
---|
13101 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
13102 | # resulting binary. |
---|
13103 | hardcode_minus_L=$hardcode_minus_L_CXX |
---|
13104 | |
---|
13105 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
13106 | # the resulting binary. |
---|
13107 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
---|
13108 | |
---|
13109 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
13110 | # and all subsequent libraries and executables linked against it. |
---|
13111 | hardcode_automatic=$hardcode_automatic_CXX |
---|
13112 | |
---|
13113 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
13114 | # restored at relink time. |
---|
13115 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
13116 | |
---|
13117 | # Whether libtool must link a program against all its dependency libraries. |
---|
13118 | link_all_deplibs=$link_all_deplibs_CXX |
---|
13119 | |
---|
13120 | # Compile-time system search path for libraries |
---|
13121 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
13122 | |
---|
13123 | # Run-time system search path for libraries |
---|
13124 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
13125 | |
---|
13126 | # Fix the shell variable \$srcfile for the compiler. |
---|
13127 | fix_srcfile_path="$fix_srcfile_path_CXX" |
---|
13128 | |
---|
13129 | # Set to yes if exported symbols are required. |
---|
13130 | always_export_symbols=$always_export_symbols_CXX |
---|
13131 | |
---|
13132 | # The commands to list exported symbols. |
---|
13133 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
---|
13134 | |
---|
13135 | # The commands to extract the exported symbol list from a shared archive. |
---|
13136 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
13137 | |
---|
13138 | # Symbols that should not be listed in the preloaded symbols. |
---|
13139 | exclude_expsyms=$lt_exclude_expsyms_CXX |
---|
13140 | |
---|
13141 | # Symbols that must always be exported. |
---|
13142 | include_expsyms=$lt_include_expsyms_CXX |
---|
13143 | |
---|
13144 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
13145 | |
---|
13146 | __EOF__ |
---|
13147 | |
---|
13148 | |
---|
13149 | else |
---|
13150 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
13151 | # `config.status --recheck' to rerun these tests and create the |
---|
13152 | # libtool script then. |
---|
13153 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
13154 | if test -f "$ltmain_in"; then |
---|
13155 | test -f Makefile && make "$ltmain" |
---|
13156 | fi |
---|
13157 | fi |
---|
13158 | |
---|
13159 | |
---|
13160 | ac_ext=c |
---|
13161 | ac_cpp='$CPP $CPPFLAGS' |
---|
13162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
13163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
13164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
13165 | |
---|
13166 | CC=$lt_save_CC |
---|
13167 | LDCXX=$LD |
---|
13168 | LD=$lt_save_LD |
---|
13169 | GCC=$lt_save_GCC |
---|
13170 | with_gnu_ldcxx=$with_gnu_ld |
---|
13171 | with_gnu_ld=$lt_save_with_gnu_ld |
---|
13172 | lt_cv_path_LDCXX=$lt_cv_path_LD |
---|
13173 | lt_cv_path_LD=$lt_save_path_LD |
---|
13174 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
---|
13175 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
---|
13176 | |
---|
13177 | else |
---|
13178 | tagname="" |
---|
13179 | fi |
---|
13180 | ;; |
---|
13181 | |
---|
13182 | F77) |
---|
13183 | if test -n "$F77" && test "X$F77" != "Xno"; then |
---|
13184 | |
---|
13185 | ac_ext=f |
---|
13186 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
13187 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
13188 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
13189 | |
---|
13190 | |
---|
13191 | archive_cmds_need_lc_F77=no |
---|
13192 | allow_undefined_flag_F77= |
---|
13193 | always_export_symbols_F77=no |
---|
13194 | archive_expsym_cmds_F77= |
---|
13195 | export_dynamic_flag_spec_F77= |
---|
13196 | hardcode_direct_F77=no |
---|
13197 | hardcode_libdir_flag_spec_F77= |
---|
13198 | hardcode_libdir_flag_spec_ld_F77= |
---|
13199 | hardcode_libdir_separator_F77= |
---|
13200 | hardcode_minus_L_F77=no |
---|
13201 | hardcode_automatic_F77=no |
---|
13202 | module_cmds_F77= |
---|
13203 | module_expsym_cmds_F77= |
---|
13204 | link_all_deplibs_F77=unknown |
---|
13205 | old_archive_cmds_F77=$old_archive_cmds |
---|
13206 | no_undefined_flag_F77= |
---|
13207 | whole_archive_flag_spec_F77= |
---|
13208 | enable_shared_with_static_runtimes_F77=no |
---|
13209 | |
---|
13210 | # Source file extension for f77 test sources. |
---|
13211 | ac_ext=f |
---|
13212 | |
---|
13213 | # Object file extension for compiled f77 test sources. |
---|
13214 | objext=o |
---|
13215 | objext_F77=$objext |
---|
13216 | |
---|
13217 | # Code to be used in simple compile tests |
---|
13218 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
---|
13219 | |
---|
13220 | # Code to be used in simple link tests |
---|
13221 | lt_simple_link_test_code=" program t\n end\n" |
---|
13222 | |
---|
13223 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
13224 | |
---|
13225 | # If no C compiler was specified, use CC. |
---|
13226 | LTCC=${LTCC-"$CC"} |
---|
13227 | |
---|
13228 | # Allow CC to be a program name with arguments. |
---|
13229 | compiler=$CC |
---|
13230 | |
---|
13231 | |
---|
13232 | # Allow CC to be a program name with arguments. |
---|
13233 | lt_save_CC="$CC" |
---|
13234 | CC=${F77-"f77"} |
---|
13235 | compiler=$CC |
---|
13236 | compiler_F77=$CC |
---|
13237 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
---|
13238 | |
---|
13239 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
13240 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
13241 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
13242 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
13243 | |
---|
13244 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
13245 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
13246 | test "$can_build_shared" = "no" && enable_shared=no |
---|
13247 | |
---|
13248 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
13249 | # are all built from PIC. |
---|
13250 | case "$host_os" in |
---|
13251 | aix3*) |
---|
13252 | test "$enable_shared" = yes && enable_static=no |
---|
13253 | if test -n "$RANLIB"; then |
---|
13254 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
13255 | postinstall_cmds='$RANLIB $lib' |
---|
13256 | fi |
---|
13257 | ;; |
---|
13258 | aix4* | aix5*) |
---|
13259 | test "$enable_shared" = yes && enable_static=no |
---|
13260 | ;; |
---|
13261 | esac |
---|
13262 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
13263 | echo "${ECHO_T}$enable_shared" >&6 |
---|
13264 | |
---|
13265 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
13266 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
---|
13267 | # Make sure either enable_shared or enable_static is yes. |
---|
13268 | test "$enable_shared" = yes || enable_static=yes |
---|
13269 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
13270 | echo "${ECHO_T}$enable_static" >&6 |
---|
13271 | |
---|
13272 | test "$ld_shlibs_F77" = no && can_build_shared=no |
---|
13273 | |
---|
13274 | GCC_F77="$G77" |
---|
13275 | LD_F77="$LD" |
---|
13276 | |
---|
13277 | lt_prog_compiler_wl_F77= |
---|
13278 | lt_prog_compiler_pic_F77= |
---|
13279 | lt_prog_compiler_static_F77= |
---|
13280 | |
---|
13281 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
13282 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
13283 | |
---|
13284 | if test "$GCC" = yes; then |
---|
13285 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13286 | lt_prog_compiler_static_F77='-static' |
---|
13287 | |
---|
13288 | case $host_os in |
---|
13289 | aix*) |
---|
13290 | # All AIX code is PIC. |
---|
13291 | if test "$host_cpu" = ia64; then |
---|
13292 | # AIX 5 now supports IA64 processor |
---|
13293 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13294 | fi |
---|
13295 | ;; |
---|
13296 | |
---|
13297 | amigaos*) |
---|
13298 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
13299 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
13300 | # like `-m68040'. |
---|
13301 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
---|
13302 | ;; |
---|
13303 | |
---|
13304 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
13305 | # PIC is the default for these OSes. |
---|
13306 | ;; |
---|
13307 | |
---|
13308 | mingw* | pw32* | os2*) |
---|
13309 | # This hack is so that the source file can tell whether it is being |
---|
13310 | # built for inclusion in a dll (and should export symbols for example). |
---|
13311 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
13312 | ;; |
---|
13313 | |
---|
13314 | darwin* | rhapsody*) |
---|
13315 | # PIC is the default on this platform |
---|
13316 | # Common symbols not allowed in MH_DYLIB files |
---|
13317 | lt_prog_compiler_pic_F77='-fno-common' |
---|
13318 | ;; |
---|
13319 | |
---|
13320 | msdosdjgpp*) |
---|
13321 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
13322 | # on systems that don't support them. |
---|
13323 | lt_prog_compiler_can_build_shared_F77=no |
---|
13324 | enable_shared=no |
---|
13325 | ;; |
---|
13326 | |
---|
13327 | sysv4*MP*) |
---|
13328 | if test -d /usr/nec; then |
---|
13329 | lt_prog_compiler_pic_F77=-Kconform_pic |
---|
13330 | fi |
---|
13331 | ;; |
---|
13332 | |
---|
13333 | hpux*) |
---|
13334 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
13335 | # not for PA HP-UX. |
---|
13336 | case "$host_cpu" in |
---|
13337 | hppa*64*|ia64*) |
---|
13338 | # +Z the default |
---|
13339 | ;; |
---|
13340 | *) |
---|
13341 | lt_prog_compiler_pic_F77='-fPIC' |
---|
13342 | ;; |
---|
13343 | esac |
---|
13344 | ;; |
---|
13345 | |
---|
13346 | *) |
---|
13347 | lt_prog_compiler_pic_F77='-fPIC' |
---|
13348 | ;; |
---|
13349 | esac |
---|
13350 | else |
---|
13351 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
13352 | case $host_os in |
---|
13353 | aix*) |
---|
13354 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13355 | if test "$host_cpu" = ia64; then |
---|
13356 | # AIX 5 now supports IA64 processor |
---|
13357 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13358 | else |
---|
13359 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
---|
13360 | fi |
---|
13361 | ;; |
---|
13362 | |
---|
13363 | mingw* | pw32* | os2*) |
---|
13364 | # This hack is so that the source file can tell whether it is being |
---|
13365 | # built for inclusion in a dll (and should export symbols for example). |
---|
13366 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
13367 | ;; |
---|
13368 | |
---|
13369 | hpux9* | hpux10* | hpux11*) |
---|
13370 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13371 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
13372 | # not for PA HP-UX. |
---|
13373 | case "$host_cpu" in |
---|
13374 | hppa*64*|ia64*) |
---|
13375 | # +Z the default |
---|
13376 | ;; |
---|
13377 | *) |
---|
13378 | lt_prog_compiler_pic_F77='+Z' |
---|
13379 | ;; |
---|
13380 | esac |
---|
13381 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
13382 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
---|
13383 | ;; |
---|
13384 | |
---|
13385 | irix5* | irix6* | nonstopux*) |
---|
13386 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13387 | # PIC (with -KPIC) is the default. |
---|
13388 | lt_prog_compiler_static_F77='-non_shared' |
---|
13389 | ;; |
---|
13390 | |
---|
13391 | newsos6) |
---|
13392 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13393 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13394 | ;; |
---|
13395 | |
---|
13396 | linux*) |
---|
13397 | case $CC in |
---|
13398 | icc* | ecc*) |
---|
13399 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13400 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13401 | lt_prog_compiler_static_F77='-static' |
---|
13402 | ;; |
---|
13403 | ccc*) |
---|
13404 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13405 | # All Alpha code is PIC. |
---|
13406 | lt_prog_compiler_static_F77='-non_shared' |
---|
13407 | ;; |
---|
13408 | esac |
---|
13409 | ;; |
---|
13410 | |
---|
13411 | osf3* | osf4* | osf5*) |
---|
13412 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13413 | # All OSF/1 code is PIC. |
---|
13414 | lt_prog_compiler_static_F77='-non_shared' |
---|
13415 | ;; |
---|
13416 | |
---|
13417 | sco3.2v5*) |
---|
13418 | lt_prog_compiler_pic_F77='-Kpic' |
---|
13419 | lt_prog_compiler_static_F77='-dn' |
---|
13420 | ;; |
---|
13421 | |
---|
13422 | solaris*) |
---|
13423 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13424 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13425 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13426 | ;; |
---|
13427 | |
---|
13428 | sunos4*) |
---|
13429 | lt_prog_compiler_wl_F77='-Qoption ld ' |
---|
13430 | lt_prog_compiler_pic_F77='-PIC' |
---|
13431 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13432 | ;; |
---|
13433 | |
---|
13434 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
13435 | lt_prog_compiler_wl_F77='-Wl,' |
---|
13436 | lt_prog_compiler_pic_F77='-KPIC' |
---|
13437 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13438 | ;; |
---|
13439 | |
---|
13440 | sysv4*MP*) |
---|
13441 | if test -d /usr/nec ;then |
---|
13442 | lt_prog_compiler_pic_F77='-Kconform_pic' |
---|
13443 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13444 | fi |
---|
13445 | ;; |
---|
13446 | |
---|
13447 | uts4*) |
---|
13448 | lt_prog_compiler_pic_F77='-pic' |
---|
13449 | lt_prog_compiler_static_F77='-Bstatic' |
---|
13450 | ;; |
---|
13451 | |
---|
13452 | *) |
---|
13453 | lt_prog_compiler_can_build_shared_F77=no |
---|
13454 | ;; |
---|
13455 | esac |
---|
13456 | fi |
---|
13457 | |
---|
13458 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
---|
13459 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
---|
13460 | |
---|
13461 | # |
---|
13462 | # Check to make sure the PIC flag actually works. |
---|
13463 | # |
---|
13464 | if test -n "$lt_prog_compiler_pic_F77"; then |
---|
13465 | |
---|
13466 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
---|
13467 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
---|
13468 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
---|
13469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13470 | else |
---|
13471 | lt_prog_compiler_pic_works_F77=no |
---|
13472 | ac_outfile=conftest.$ac_objext |
---|
13473 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
13474 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
---|
13475 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
13476 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
13477 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
13478 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
13479 | # The option is referenced via a variable to avoid confusing sed. |
---|
13480 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
13481 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
13482 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
13483 | -e 's:$: $lt_compiler_flag:'` |
---|
13484 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
13485 | (eval "$lt_compile" 2>conftest.err) |
---|
13486 | ac_status=$? |
---|
13487 | cat conftest.err >&5 |
---|
13488 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
13489 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
13490 | # The compiler can only warn and ignore the option if not recognized |
---|
13491 | # So say no if there are warnings |
---|
13492 | if test ! -s conftest.err; then |
---|
13493 | lt_prog_compiler_pic_works_F77=yes |
---|
13494 | fi |
---|
13495 | fi |
---|
13496 | $rm conftest* |
---|
13497 | |
---|
13498 | fi |
---|
13499 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
---|
13500 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
---|
13501 | |
---|
13502 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
---|
13503 | case $lt_prog_compiler_pic_F77 in |
---|
13504 | "" | " "*) ;; |
---|
13505 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
---|
13506 | esac |
---|
13507 | else |
---|
13508 | lt_prog_compiler_pic_F77= |
---|
13509 | lt_prog_compiler_can_build_shared_F77=no |
---|
13510 | fi |
---|
13511 | |
---|
13512 | fi |
---|
13513 | case "$host_os" in |
---|
13514 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
13515 | *djgpp*) |
---|
13516 | lt_prog_compiler_pic_F77= |
---|
13517 | ;; |
---|
13518 | *) |
---|
13519 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
---|
13520 | ;; |
---|
13521 | esac |
---|
13522 | |
---|
13523 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
13524 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
13525 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
---|
13526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13527 | else |
---|
13528 | lt_cv_prog_compiler_c_o_F77=no |
---|
13529 | $rm -r conftest 2>/dev/null |
---|
13530 | mkdir conftest |
---|
13531 | cd conftest |
---|
13532 | mkdir out |
---|
13533 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
13534 | |
---|
13535 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
13536 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
13537 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
13538 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
13539 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
13540 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
13541 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
13542 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
13543 | -e 's:$: $lt_compiler_flag:'` |
---|
13544 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
13545 | (eval "$lt_compile" 2>out/conftest.err) |
---|
13546 | ac_status=$? |
---|
13547 | cat out/conftest.err >&5 |
---|
13548 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
13549 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
13550 | then |
---|
13551 | # The compiler can only warn and ignore the option if not recognized |
---|
13552 | # So say no if there are warnings |
---|
13553 | if test ! -s out/conftest.err; then |
---|
13554 | lt_cv_prog_compiler_c_o_F77=yes |
---|
13555 | fi |
---|
13556 | fi |
---|
13557 | chmod u+w . |
---|
13558 | $rm conftest* |
---|
13559 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
13560 | # template instantiation |
---|
13561 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
13562 | $rm out/* && rmdir out |
---|
13563 | cd .. |
---|
13564 | rmdir conftest |
---|
13565 | $rm conftest* |
---|
13566 | |
---|
13567 | fi |
---|
13568 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
---|
13569 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
---|
13570 | |
---|
13571 | |
---|
13572 | hard_links="nottested" |
---|
13573 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
---|
13574 | # do not overwrite the value of need_locks provided by the user |
---|
13575 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
13576 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
13577 | hard_links=yes |
---|
13578 | $rm conftest* |
---|
13579 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
13580 | touch conftest.a |
---|
13581 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
13582 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
13583 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
13584 | echo "${ECHO_T}$hard_links" >&6 |
---|
13585 | if test "$hard_links" = no; then |
---|
13586 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
13587 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
13588 | need_locks=warn |
---|
13589 | fi |
---|
13590 | else |
---|
13591 | need_locks=no |
---|
13592 | fi |
---|
13593 | |
---|
13594 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
13595 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
13596 | |
---|
13597 | runpath_var= |
---|
13598 | allow_undefined_flag_F77= |
---|
13599 | enable_shared_with_static_runtimes_F77=no |
---|
13600 | archive_cmds_F77= |
---|
13601 | archive_expsym_cmds_F77= |
---|
13602 | old_archive_From_new_cmds_F77= |
---|
13603 | old_archive_from_expsyms_cmds_F77= |
---|
13604 | export_dynamic_flag_spec_F77= |
---|
13605 | whole_archive_flag_spec_F77= |
---|
13606 | thread_safe_flag_spec_F77= |
---|
13607 | hardcode_libdir_flag_spec_F77= |
---|
13608 | hardcode_libdir_flag_spec_ld_F77= |
---|
13609 | hardcode_libdir_separator_F77= |
---|
13610 | hardcode_direct_F77=no |
---|
13611 | hardcode_minus_L_F77=no |
---|
13612 | hardcode_shlibpath_var_F77=unsupported |
---|
13613 | link_all_deplibs_F77=unknown |
---|
13614 | hardcode_automatic_F77=no |
---|
13615 | module_cmds_F77= |
---|
13616 | module_expsym_cmds_F77= |
---|
13617 | always_export_symbols_F77=no |
---|
13618 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
13619 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
13620 | # included in the symbol list |
---|
13621 | include_expsyms_F77= |
---|
13622 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
13623 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
13624 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
13625 | # as well as any symbol that contains `d'. |
---|
13626 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
---|
13627 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
13628 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
13629 | # the symbol is explicitly referenced. Since portable code cannot |
---|
13630 | # rely on this symbol name, it's probably fine to never include it in |
---|
13631 | # preloaded symbol tables. |
---|
13632 | extract_expsyms_cmds= |
---|
13633 | |
---|
13634 | case $host_os in |
---|
13635 | cygwin* | mingw* | pw32*) |
---|
13636 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
13637 | # When not using gcc, we currently assume that we are using |
---|
13638 | # Microsoft Visual C++. |
---|
13639 | if test "$GCC" != yes; then |
---|
13640 | with_gnu_ld=no |
---|
13641 | fi |
---|
13642 | ;; |
---|
13643 | openbsd*) |
---|
13644 | with_gnu_ld=no |
---|
13645 | ;; |
---|
13646 | esac |
---|
13647 | |
---|
13648 | ld_shlibs_F77=yes |
---|
13649 | if test "$with_gnu_ld" = yes; then |
---|
13650 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
13651 | wlarc='${wl}' |
---|
13652 | |
---|
13653 | # See if GNU ld supports shared libraries. |
---|
13654 | case $host_os in |
---|
13655 | aix3* | aix4* | aix5*) |
---|
13656 | # On AIX/PPC, the GNU linker is very broken |
---|
13657 | if test "$host_cpu" != ia64; then |
---|
13658 | ld_shlibs_F77=no |
---|
13659 | cat <<EOF 1>&2 |
---|
13660 | |
---|
13661 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
13662 | *** to be unable to reliably create shared libraries on AIX. |
---|
13663 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
13664 | *** really care for shared libraries, you may want to modify your PATH |
---|
13665 | *** so that a non-GNU linker is found, and then restart. |
---|
13666 | |
---|
13667 | EOF |
---|
13668 | fi |
---|
13669 | ;; |
---|
13670 | |
---|
13671 | amigaos*) |
---|
13672 | 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)' |
---|
13673 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
13674 | hardcode_minus_L_F77=yes |
---|
13675 | |
---|
13676 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
13677 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
13678 | # to version 4, is to share data among multiple programs linked |
---|
13679 | # with the same dynamic library. Since this doesn't match the |
---|
13680 | # behavior of shared libraries on other platforms, we can't use |
---|
13681 | # them. |
---|
13682 | ld_shlibs_F77=no |
---|
13683 | ;; |
---|
13684 | |
---|
13685 | beos*) |
---|
13686 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
13687 | allow_undefined_flag_F77=unsupported |
---|
13688 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
13689 | # support --undefined. This deserves some investigation. FIXME |
---|
13690 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13691 | else |
---|
13692 | ld_shlibs_F77=no |
---|
13693 | fi |
---|
13694 | ;; |
---|
13695 | |
---|
13696 | cygwin* | mingw* | pw32*) |
---|
13697 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
---|
13698 | # as there is no search path for DLLs. |
---|
13699 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
13700 | allow_undefined_flag_F77=unsupported |
---|
13701 | always_export_symbols_F77=no |
---|
13702 | enable_shared_with_static_runtimes_F77=yes |
---|
13703 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
13704 | |
---|
13705 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
13706 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
13707 | # If the export-symbols file already is a .def file (1st line |
---|
13708 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
13709 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
13710 | cp $export_symbols $output_objdir/$soname.def; |
---|
13711 | else |
---|
13712 | echo EXPORTS > $output_objdir/$soname.def; |
---|
13713 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
13714 | fi~ |
---|
13715 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
13716 | else |
---|
13717 | ld_shlibs=no |
---|
13718 | fi |
---|
13719 | ;; |
---|
13720 | |
---|
13721 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
13722 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
13723 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
13724 | wlarc= |
---|
13725 | else |
---|
13726 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13727 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
13728 | fi |
---|
13729 | ;; |
---|
13730 | |
---|
13731 | solaris* | sysv5*) |
---|
13732 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
13733 | ld_shlibs_F77=no |
---|
13734 | cat <<EOF 1>&2 |
---|
13735 | |
---|
13736 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
13737 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
13738 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
13739 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
13740 | *** your PATH or compiler configuration so that the native linker is |
---|
13741 | *** used, and then restart. |
---|
13742 | |
---|
13743 | EOF |
---|
13744 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
13745 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13746 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
13747 | else |
---|
13748 | ld_shlibs_F77=no |
---|
13749 | fi |
---|
13750 | ;; |
---|
13751 | |
---|
13752 | sunos4*) |
---|
13753 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
13754 | wlarc= |
---|
13755 | hardcode_direct_F77=yes |
---|
13756 | hardcode_shlibpath_var_F77=no |
---|
13757 | ;; |
---|
13758 | |
---|
13759 | linux*) |
---|
13760 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
13761 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13762 | archive_cmds_F77="$tmp_archive_cmds" |
---|
13763 | supports_anon_versioning=no |
---|
13764 | case `$LD -v 2>/dev/null` in |
---|
13765 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
13766 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
13767 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
13768 | *\ 2.11.*) ;; # other 2.11 versions |
---|
13769 | *) supports_anon_versioning=yes ;; |
---|
13770 | esac |
---|
13771 | if test $supports_anon_versioning = yes; then |
---|
13772 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
13773 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
13774 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
13775 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
13776 | else |
---|
13777 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
---|
13778 | fi |
---|
13779 | link_all_deplibs_F77=no |
---|
13780 | else |
---|
13781 | ld_shlibs_F77=no |
---|
13782 | fi |
---|
13783 | ;; |
---|
13784 | |
---|
13785 | *) |
---|
13786 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
13787 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
13788 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
13789 | else |
---|
13790 | ld_shlibs_F77=no |
---|
13791 | fi |
---|
13792 | ;; |
---|
13793 | esac |
---|
13794 | |
---|
13795 | if test "$ld_shlibs_F77" = yes; then |
---|
13796 | runpath_var=LD_RUN_PATH |
---|
13797 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
---|
13798 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
---|
13799 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
13800 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
13801 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
13802 | else |
---|
13803 | whole_archive_flag_spec_F77= |
---|
13804 | fi |
---|
13805 | fi |
---|
13806 | else |
---|
13807 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
13808 | case $host_os in |
---|
13809 | aix3*) |
---|
13810 | allow_undefined_flag_F77=unsupported |
---|
13811 | always_export_symbols_F77=yes |
---|
13812 | 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' |
---|
13813 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
13814 | # are no directories specified by -L. |
---|
13815 | hardcode_minus_L_F77=yes |
---|
13816 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
13817 | # Neither direct hardcoding nor static linking is supported with a |
---|
13818 | # broken collect2. |
---|
13819 | hardcode_direct_F77=unsupported |
---|
13820 | fi |
---|
13821 | ;; |
---|
13822 | |
---|
13823 | aix4* | aix5*) |
---|
13824 | if test "$host_cpu" = ia64; then |
---|
13825 | # On IA64, the linker does run time linking by default, so we don't |
---|
13826 | # have to do anything special. |
---|
13827 | aix_use_runtimelinking=no |
---|
13828 | exp_sym_flag='-Bexport' |
---|
13829 | no_entry_flag="" |
---|
13830 | else |
---|
13831 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
13832 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
13833 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
13834 | 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' |
---|
13835 | else |
---|
13836 | 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' |
---|
13837 | fi |
---|
13838 | aix_use_runtimelinking=no |
---|
13839 | |
---|
13840 | # Test if we are trying to use run time linking or normal |
---|
13841 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
13842 | # need to do runtime linking. |
---|
13843 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
13844 | for ld_flag in $LDFLAGS; do |
---|
13845 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
13846 | aix_use_runtimelinking=yes |
---|
13847 | break |
---|
13848 | fi |
---|
13849 | done |
---|
13850 | esac |
---|
13851 | |
---|
13852 | exp_sym_flag='-bexport' |
---|
13853 | no_entry_flag='-bnoentry' |
---|
13854 | fi |
---|
13855 | |
---|
13856 | # When large executables or shared objects are built, AIX ld can |
---|
13857 | # have problems creating the table of contents. If linking a library |
---|
13858 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
13859 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
13860 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
13861 | |
---|
13862 | archive_cmds_F77='' |
---|
13863 | hardcode_direct_F77=yes |
---|
13864 | hardcode_libdir_separator_F77=':' |
---|
13865 | link_all_deplibs_F77=yes |
---|
13866 | |
---|
13867 | if test "$GCC" = yes; then |
---|
13868 | case $host_os in aix4.012|aix4.012.*) |
---|
13869 | # We only want to do this on AIX 4.2 and lower, the check |
---|
13870 | # below for broken collect2 doesn't work under 4.3+ |
---|
13871 | collect2name=`${CC} -print-prog-name=collect2` |
---|
13872 | if test -f "$collect2name" && \ |
---|
13873 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
13874 | then |
---|
13875 | # We have reworked collect2 |
---|
13876 | hardcode_direct_F77=yes |
---|
13877 | else |
---|
13878 | # We have old collect2 |
---|
13879 | hardcode_direct_F77=unsupported |
---|
13880 | # It fails to find uninstalled libraries when the uninstalled |
---|
13881 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
13882 | # to unsupported forces relinking |
---|
13883 | hardcode_minus_L_F77=yes |
---|
13884 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
13885 | hardcode_libdir_separator_F77= |
---|
13886 | fi |
---|
13887 | esac |
---|
13888 | shared_flag='-shared' |
---|
13889 | else |
---|
13890 | # not using gcc |
---|
13891 | if test "$host_cpu" = ia64; then |
---|
13892 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
13893 | # chokes on -Wl,-G. The following line is correct: |
---|
13894 | shared_flag='-G' |
---|
13895 | else |
---|
13896 | if test "$aix_use_runtimelinking" = yes; then |
---|
13897 | shared_flag='${wl}-G' |
---|
13898 | else |
---|
13899 | shared_flag='${wl}-bM:SRE' |
---|
13900 | fi |
---|
13901 | fi |
---|
13902 | fi |
---|
13903 | |
---|
13904 | # It seems that -bexpall does not export symbols beginning with |
---|
13905 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
13906 | always_export_symbols_F77=yes |
---|
13907 | if test "$aix_use_runtimelinking" = yes; then |
---|
13908 | # Warning - without using the other runtime loading flags (-brtl), |
---|
13909 | # -berok will link without error, but may produce a broken library. |
---|
13910 | allow_undefined_flag_F77='-berok' |
---|
13911 | # Determine the default libpath from the value encoded in an empty executable. |
---|
13912 | cat >conftest.$ac_ext <<_ACEOF |
---|
13913 | program main |
---|
13914 | |
---|
13915 | end |
---|
13916 | _ACEOF |
---|
13917 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
13919 | (eval $ac_link) 2>conftest.er1 |
---|
13920 | ac_status=$? |
---|
13921 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13922 | rm -f conftest.er1 |
---|
13923 | cat conftest.err >&5 |
---|
13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13925 | (exit $ac_status); } && |
---|
13926 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
---|
13927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13928 | (eval $ac_try) 2>&5 |
---|
13929 | ac_status=$? |
---|
13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13931 | (exit $ac_status); }; } && |
---|
13932 | { ac_try='test -s conftest$ac_exeext' |
---|
13933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13934 | (eval $ac_try) 2>&5 |
---|
13935 | ac_status=$? |
---|
13936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13937 | (exit $ac_status); }; }; then |
---|
13938 | |
---|
13939 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
13940 | }'` |
---|
13941 | # Check for a 64-bit object if we didn't find anything. |
---|
13942 | 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; } |
---|
13943 | }'`; fi |
---|
13944 | else |
---|
13945 | echo "$as_me: failed program was:" >&5 |
---|
13946 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13947 | |
---|
13948 | fi |
---|
13949 | rm -f conftest.err conftest.$ac_objext \ |
---|
13950 | conftest$ac_exeext conftest.$ac_ext |
---|
13951 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
13952 | |
---|
13953 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
13954 | 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" |
---|
13955 | else |
---|
13956 | if test "$host_cpu" = ia64; then |
---|
13957 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
---|
13958 | allow_undefined_flag_F77="-z nodefs" |
---|
13959 | 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" |
---|
13960 | else |
---|
13961 | # Determine the default libpath from the value encoded in an empty executable. |
---|
13962 | cat >conftest.$ac_ext <<_ACEOF |
---|
13963 | program main |
---|
13964 | |
---|
13965 | end |
---|
13966 | _ACEOF |
---|
13967 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
13969 | (eval $ac_link) 2>conftest.er1 |
---|
13970 | ac_status=$? |
---|
13971 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13972 | rm -f conftest.er1 |
---|
13973 | cat conftest.err >&5 |
---|
13974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13975 | (exit $ac_status); } && |
---|
13976 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
---|
13977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13978 | (eval $ac_try) 2>&5 |
---|
13979 | ac_status=$? |
---|
13980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13981 | (exit $ac_status); }; } && |
---|
13982 | { ac_try='test -s conftest$ac_exeext' |
---|
13983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
13984 | (eval $ac_try) 2>&5 |
---|
13985 | ac_status=$? |
---|
13986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13987 | (exit $ac_status); }; }; then |
---|
13988 | |
---|
13989 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
13990 | }'` |
---|
13991 | # Check for a 64-bit object if we didn't find anything. |
---|
13992 | 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; } |
---|
13993 | }'`; fi |
---|
13994 | else |
---|
13995 | echo "$as_me: failed program was:" >&5 |
---|
13996 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13997 | |
---|
13998 | fi |
---|
13999 | rm -f conftest.err conftest.$ac_objext \ |
---|
14000 | conftest$ac_exeext conftest.$ac_ext |
---|
14001 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
14002 | |
---|
14003 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
14004 | # Warning - without using the other run time loading flags, |
---|
14005 | # -berok will link without error, but may produce a broken library. |
---|
14006 | no_undefined_flag_F77=' ${wl}-bernotok' |
---|
14007 | allow_undefined_flag_F77=' ${wl}-berok' |
---|
14008 | # -bexpall does not export symbols beginning with underscore (_) |
---|
14009 | always_export_symbols_F77=yes |
---|
14010 | # Exported symbols can be pulled into shared objects from archives |
---|
14011 | whole_archive_flag_spec_F77=' ' |
---|
14012 | archive_cmds_need_lc_F77=yes |
---|
14013 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
14014 | 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' |
---|
14015 | fi |
---|
14016 | fi |
---|
14017 | ;; |
---|
14018 | |
---|
14019 | amigaos*) |
---|
14020 | 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)' |
---|
14021 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14022 | hardcode_minus_L_F77=yes |
---|
14023 | # see comment about different semantics on the GNU ld section |
---|
14024 | ld_shlibs_F77=no |
---|
14025 | ;; |
---|
14026 | |
---|
14027 | bsdi4*) |
---|
14028 | export_dynamic_flag_spec_F77=-rdynamic |
---|
14029 | ;; |
---|
14030 | |
---|
14031 | cygwin* | mingw* | pw32*) |
---|
14032 | # When not using gcc, we currently assume that we are using |
---|
14033 | # Microsoft Visual C++. |
---|
14034 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
14035 | # no search path for DLLs. |
---|
14036 | hardcode_libdir_flag_spec_F77=' ' |
---|
14037 | allow_undefined_flag_F77=unsupported |
---|
14038 | # Tell ltmain to make .lib files, not .a files. |
---|
14039 | libext=lib |
---|
14040 | # Tell ltmain to make .dll files, not .so files. |
---|
14041 | shrext_cmds=".dll" |
---|
14042 | # FIXME: Setting linknames here is a bad hack. |
---|
14043 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
14044 | # The linker will automatically build a .lib file if we build a DLL. |
---|
14045 | old_archive_From_new_cmds_F77='true' |
---|
14046 | # FIXME: Should let the user specify the lib program. |
---|
14047 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
14048 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
14049 | enable_shared_with_static_runtimes_F77=yes |
---|
14050 | ;; |
---|
14051 | |
---|
14052 | darwin* | rhapsody*) |
---|
14053 | if test "$GXX" = yes ; then |
---|
14054 | archive_cmds_need_lc_F77=no |
---|
14055 | case "$host_os" in |
---|
14056 | rhapsody* | darwin1.[012]) |
---|
14057 | allow_undefined_flag_F77='-undefined suppress' |
---|
14058 | ;; |
---|
14059 | *) # Darwin 1.3 on |
---|
14060 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
14061 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
---|
14062 | else |
---|
14063 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
14064 | 10.[012]) |
---|
14065 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
---|
14066 | ;; |
---|
14067 | 10.*) |
---|
14068 | allow_undefined_flag_F77='-undefined dynamic_lookup' |
---|
14069 | ;; |
---|
14070 | esac |
---|
14071 | fi |
---|
14072 | ;; |
---|
14073 | esac |
---|
14074 | lt_int_apple_cc_single_mod=no |
---|
14075 | output_verbose_link_cmd='echo' |
---|
14076 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
14077 | lt_int_apple_cc_single_mod=yes |
---|
14078 | fi |
---|
14079 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
14080 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
14081 | else |
---|
14082 | 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' |
---|
14083 | fi |
---|
14084 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
14085 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
14086 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
14087 | 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}' |
---|
14088 | else |
---|
14089 | 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}' |
---|
14090 | fi |
---|
14091 | 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}' |
---|
14092 | hardcode_direct_F77=no |
---|
14093 | hardcode_automatic_F77=yes |
---|
14094 | hardcode_shlibpath_var_F77=unsupported |
---|
14095 | whole_archive_flag_spec_F77='-all_load $convenience' |
---|
14096 | link_all_deplibs_F77=yes |
---|
14097 | else |
---|
14098 | ld_shlibs_F77=no |
---|
14099 | fi |
---|
14100 | ;; |
---|
14101 | |
---|
14102 | dgux*) |
---|
14103 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14104 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14105 | hardcode_shlibpath_var_F77=no |
---|
14106 | ;; |
---|
14107 | |
---|
14108 | freebsd1*) |
---|
14109 | ld_shlibs_F77=no |
---|
14110 | ;; |
---|
14111 | |
---|
14112 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
14113 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
14114 | # does not break anything, and helps significantly (at the cost of a little |
---|
14115 | # extra space). |
---|
14116 | freebsd2.2*) |
---|
14117 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
14118 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14119 | hardcode_direct_F77=yes |
---|
14120 | hardcode_shlibpath_var_F77=no |
---|
14121 | ;; |
---|
14122 | |
---|
14123 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
14124 | freebsd2*) |
---|
14125 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
14126 | hardcode_direct_F77=yes |
---|
14127 | hardcode_minus_L_F77=yes |
---|
14128 | hardcode_shlibpath_var_F77=no |
---|
14129 | ;; |
---|
14130 | |
---|
14131 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
14132 | freebsd* | kfreebsd*-gnu) |
---|
14133 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
14134 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14135 | hardcode_direct_F77=yes |
---|
14136 | hardcode_shlibpath_var_F77=no |
---|
14137 | ;; |
---|
14138 | |
---|
14139 | hpux9*) |
---|
14140 | if test "$GCC" = yes; then |
---|
14141 | 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' |
---|
14142 | else |
---|
14143 | 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' |
---|
14144 | fi |
---|
14145 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
14146 | hardcode_libdir_separator_F77=: |
---|
14147 | hardcode_direct_F77=yes |
---|
14148 | |
---|
14149 | # hardcode_minus_L: Not really in the search PATH, |
---|
14150 | # but as the default location of the library. |
---|
14151 | hardcode_minus_L_F77=yes |
---|
14152 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
14153 | ;; |
---|
14154 | |
---|
14155 | hpux10* | hpux11*) |
---|
14156 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
14157 | case "$host_cpu" in |
---|
14158 | hppa*64*|ia64*) |
---|
14159 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14160 | ;; |
---|
14161 | *) |
---|
14162 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
14163 | ;; |
---|
14164 | esac |
---|
14165 | else |
---|
14166 | case "$host_cpu" in |
---|
14167 | hppa*64*|ia64*) |
---|
14168 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14169 | ;; |
---|
14170 | *) |
---|
14171 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
14172 | ;; |
---|
14173 | esac |
---|
14174 | fi |
---|
14175 | if test "$with_gnu_ld" = no; then |
---|
14176 | case "$host_cpu" in |
---|
14177 | hppa*64*) |
---|
14178 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
14179 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
---|
14180 | hardcode_libdir_separator_F77=: |
---|
14181 | hardcode_direct_F77=no |
---|
14182 | hardcode_shlibpath_var_F77=no |
---|
14183 | ;; |
---|
14184 | ia64*) |
---|
14185 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14186 | hardcode_direct_F77=no |
---|
14187 | hardcode_shlibpath_var_F77=no |
---|
14188 | |
---|
14189 | # hardcode_minus_L: Not really in the search PATH, |
---|
14190 | # but as the default location of the library. |
---|
14191 | hardcode_minus_L_F77=yes |
---|
14192 | ;; |
---|
14193 | *) |
---|
14194 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
14195 | hardcode_libdir_separator_F77=: |
---|
14196 | hardcode_direct_F77=yes |
---|
14197 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
14198 | |
---|
14199 | # hardcode_minus_L: Not really in the search PATH, |
---|
14200 | # but as the default location of the library. |
---|
14201 | hardcode_minus_L_F77=yes |
---|
14202 | ;; |
---|
14203 | esac |
---|
14204 | fi |
---|
14205 | ;; |
---|
14206 | |
---|
14207 | irix5* | irix6* | nonstopux*) |
---|
14208 | if test "$GCC" = yes; then |
---|
14209 | 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' |
---|
14210 | else |
---|
14211 | 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' |
---|
14212 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
---|
14213 | fi |
---|
14214 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14215 | hardcode_libdir_separator_F77=: |
---|
14216 | link_all_deplibs_F77=yes |
---|
14217 | ;; |
---|
14218 | |
---|
14219 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
14220 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
14221 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
14222 | else |
---|
14223 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
14224 | fi |
---|
14225 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14226 | hardcode_direct_F77=yes |
---|
14227 | hardcode_shlibpath_var_F77=no |
---|
14228 | ;; |
---|
14229 | |
---|
14230 | newsos6) |
---|
14231 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14232 | hardcode_direct_F77=yes |
---|
14233 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14234 | hardcode_libdir_separator_F77=: |
---|
14235 | hardcode_shlibpath_var_F77=no |
---|
14236 | ;; |
---|
14237 | |
---|
14238 | openbsd*) |
---|
14239 | hardcode_direct_F77=yes |
---|
14240 | hardcode_shlibpath_var_F77=no |
---|
14241 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
14242 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
14243 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
14244 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
14245 | else |
---|
14246 | case $host_os in |
---|
14247 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
14248 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
14249 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14250 | ;; |
---|
14251 | *) |
---|
14252 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
14253 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
14254 | ;; |
---|
14255 | esac |
---|
14256 | fi |
---|
14257 | ;; |
---|
14258 | |
---|
14259 | os2*) |
---|
14260 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14261 | hardcode_minus_L_F77=yes |
---|
14262 | allow_undefined_flag_F77=unsupported |
---|
14263 | 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' |
---|
14264 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
14265 | ;; |
---|
14266 | |
---|
14267 | osf3*) |
---|
14268 | if test "$GCC" = yes; then |
---|
14269 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
14270 | 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' |
---|
14271 | else |
---|
14272 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
14273 | 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' |
---|
14274 | fi |
---|
14275 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14276 | hardcode_libdir_separator_F77=: |
---|
14277 | ;; |
---|
14278 | |
---|
14279 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
14280 | if test "$GCC" = yes; then |
---|
14281 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
14282 | 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' |
---|
14283 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
14284 | else |
---|
14285 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
14286 | 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' |
---|
14287 | 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~ |
---|
14288 | $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' |
---|
14289 | |
---|
14290 | # Both c and cxx compiler support -rpath directly |
---|
14291 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
---|
14292 | fi |
---|
14293 | hardcode_libdir_separator_F77=: |
---|
14294 | ;; |
---|
14295 | |
---|
14296 | sco3.2v5*) |
---|
14297 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14298 | hardcode_shlibpath_var_F77=no |
---|
14299 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
---|
14300 | runpath_var=LD_RUN_PATH |
---|
14301 | hardcode_runpath_var=yes |
---|
14302 | ;; |
---|
14303 | |
---|
14304 | solaris*) |
---|
14305 | no_undefined_flag_F77=' -z text' |
---|
14306 | if test "$GCC" = yes; then |
---|
14307 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14308 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
14309 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
14310 | else |
---|
14311 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14312 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
14313 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
14314 | fi |
---|
14315 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
14316 | hardcode_shlibpath_var_F77=no |
---|
14317 | case $host_os in |
---|
14318 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
14319 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
14320 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
---|
14321 | esac |
---|
14322 | link_all_deplibs_F77=yes |
---|
14323 | ;; |
---|
14324 | |
---|
14325 | sunos4*) |
---|
14326 | if test "x$host_vendor" = xsequent; then |
---|
14327 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
14328 | # files that make .init and .fini sections work. |
---|
14329 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14330 | else |
---|
14331 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
14332 | fi |
---|
14333 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14334 | hardcode_direct_F77=yes |
---|
14335 | hardcode_minus_L_F77=yes |
---|
14336 | hardcode_shlibpath_var_F77=no |
---|
14337 | ;; |
---|
14338 | |
---|
14339 | sysv4) |
---|
14340 | case $host_vendor in |
---|
14341 | sni) |
---|
14342 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14343 | hardcode_direct_F77=yes # is this really true??? |
---|
14344 | ;; |
---|
14345 | siemens) |
---|
14346 | ## LD is ld it makes a PLAMLIB |
---|
14347 | ## CC just makes a GrossModule. |
---|
14348 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
14349 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
---|
14350 | hardcode_direct_F77=no |
---|
14351 | ;; |
---|
14352 | motorola) |
---|
14353 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14354 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
---|
14355 | ;; |
---|
14356 | esac |
---|
14357 | runpath_var='LD_RUN_PATH' |
---|
14358 | hardcode_shlibpath_var_F77=no |
---|
14359 | ;; |
---|
14360 | |
---|
14361 | sysv4.3*) |
---|
14362 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14363 | hardcode_shlibpath_var_F77=no |
---|
14364 | export_dynamic_flag_spec_F77='-Bexport' |
---|
14365 | ;; |
---|
14366 | |
---|
14367 | sysv4*MP*) |
---|
14368 | if test -d /usr/nec; then |
---|
14369 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14370 | hardcode_shlibpath_var_F77=no |
---|
14371 | runpath_var=LD_RUN_PATH |
---|
14372 | hardcode_runpath_var=yes |
---|
14373 | ld_shlibs_F77=yes |
---|
14374 | fi |
---|
14375 | ;; |
---|
14376 | |
---|
14377 | sysv4.2uw2*) |
---|
14378 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
14379 | hardcode_direct_F77=yes |
---|
14380 | hardcode_minus_L_F77=no |
---|
14381 | hardcode_shlibpath_var_F77=no |
---|
14382 | hardcode_runpath_var=yes |
---|
14383 | runpath_var=LD_RUN_PATH |
---|
14384 | ;; |
---|
14385 | |
---|
14386 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
14387 | no_undefined_flag_F77='${wl}-z ${wl}text' |
---|
14388 | if test "$GCC" = yes; then |
---|
14389 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14390 | else |
---|
14391 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
14392 | fi |
---|
14393 | runpath_var='LD_RUN_PATH' |
---|
14394 | hardcode_shlibpath_var_F77=no |
---|
14395 | ;; |
---|
14396 | |
---|
14397 | sysv5*) |
---|
14398 | no_undefined_flag_F77=' -z text' |
---|
14399 | # $CC -shared without GNU ld will not create a library from C++ |
---|
14400 | # object files and a static libstdc++, better avoid it by now |
---|
14401 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14402 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
14403 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
14404 | hardcode_libdir_flag_spec_F77= |
---|
14405 | hardcode_shlibpath_var_F77=no |
---|
14406 | runpath_var='LD_RUN_PATH' |
---|
14407 | ;; |
---|
14408 | |
---|
14409 | uts4*) |
---|
14410 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
14411 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
14412 | hardcode_shlibpath_var_F77=no |
---|
14413 | ;; |
---|
14414 | |
---|
14415 | *) |
---|
14416 | ld_shlibs_F77=no |
---|
14417 | ;; |
---|
14418 | esac |
---|
14419 | fi |
---|
14420 | |
---|
14421 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
---|
14422 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
---|
14423 | test "$ld_shlibs_F77" = no && can_build_shared=no |
---|
14424 | |
---|
14425 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
14426 | if test "$GCC" = yes; then |
---|
14427 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
14428 | fi |
---|
14429 | |
---|
14430 | # |
---|
14431 | # Do we need to explicitly link libc? |
---|
14432 | # |
---|
14433 | case "x$archive_cmds_need_lc_F77" in |
---|
14434 | x|xyes) |
---|
14435 | # Assume -lc should be added |
---|
14436 | archive_cmds_need_lc_F77=yes |
---|
14437 | |
---|
14438 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
14439 | case $archive_cmds_F77 in |
---|
14440 | *'~'*) |
---|
14441 | # FIXME: we may have to deal with multi-command sequences. |
---|
14442 | ;; |
---|
14443 | '$CC '*) |
---|
14444 | # Test whether the compiler implicitly links with -lc since on some |
---|
14445 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
14446 | # to ld, don't add -lc before -lgcc. |
---|
14447 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
14448 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
14449 | $rm conftest* |
---|
14450 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
14451 | |
---|
14452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
14453 | (eval $ac_compile) 2>&5 |
---|
14454 | ac_status=$? |
---|
14455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14456 | (exit $ac_status); } 2>conftest.err; then |
---|
14457 | soname=conftest |
---|
14458 | lib=conftest |
---|
14459 | libobjs=conftest.$ac_objext |
---|
14460 | deplibs= |
---|
14461 | wl=$lt_prog_compiler_wl_F77 |
---|
14462 | compiler_flags=-v |
---|
14463 | linker_flags=-v |
---|
14464 | verstring= |
---|
14465 | output_objdir=. |
---|
14466 | libname=conftest |
---|
14467 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
---|
14468 | allow_undefined_flag_F77= |
---|
14469 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
14470 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
14471 | ac_status=$? |
---|
14472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14473 | (exit $ac_status); } |
---|
14474 | then |
---|
14475 | archive_cmds_need_lc_F77=no |
---|
14476 | else |
---|
14477 | archive_cmds_need_lc_F77=yes |
---|
14478 | fi |
---|
14479 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
---|
14480 | else |
---|
14481 | cat conftest.err 1>&5 |
---|
14482 | fi |
---|
14483 | $rm conftest* |
---|
14484 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
---|
14485 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
---|
14486 | ;; |
---|
14487 | esac |
---|
14488 | fi |
---|
14489 | ;; |
---|
14490 | esac |
---|
14491 | |
---|
14492 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
14493 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
14494 | library_names_spec= |
---|
14495 | libname_spec='lib$name' |
---|
14496 | soname_spec= |
---|
14497 | shrext_cmds=".so" |
---|
14498 | postinstall_cmds= |
---|
14499 | postuninstall_cmds= |
---|
14500 | finish_cmds= |
---|
14501 | finish_eval= |
---|
14502 | shlibpath_var= |
---|
14503 | shlibpath_overrides_runpath=unknown |
---|
14504 | version_type=none |
---|
14505 | dynamic_linker="$host_os ld.so" |
---|
14506 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
14507 | if test "$GCC" = yes; then |
---|
14508 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
14509 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
14510 | # if the path contains ";" then we assume it to be the separator |
---|
14511 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
14512 | # assumed that no part of a normal pathname contains ";" but that should |
---|
14513 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
14514 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
14515 | else |
---|
14516 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
14517 | fi |
---|
14518 | else |
---|
14519 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
14520 | fi |
---|
14521 | need_lib_prefix=unknown |
---|
14522 | hardcode_into_libs=no |
---|
14523 | |
---|
14524 | # when you set need_version to no, make sure it does not cause -set_version |
---|
14525 | # flags to be left without arguments |
---|
14526 | need_version=unknown |
---|
14527 | |
---|
14528 | case $host_os in |
---|
14529 | aix3*) |
---|
14530 | version_type=linux |
---|
14531 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
14532 | shlibpath_var=LIBPATH |
---|
14533 | |
---|
14534 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
14535 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14536 | ;; |
---|
14537 | |
---|
14538 | aix4* | aix5*) |
---|
14539 | version_type=linux |
---|
14540 | need_lib_prefix=no |
---|
14541 | need_version=no |
---|
14542 | hardcode_into_libs=yes |
---|
14543 | if test "$host_cpu" = ia64; then |
---|
14544 | # AIX 5 supports IA64 |
---|
14545 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
14546 | shlibpath_var=LD_LIBRARY_PATH |
---|
14547 | else |
---|
14548 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
14549 | # for dependence libraries. The import file would start with |
---|
14550 | # the line `#! .'. This would cause the generated library to |
---|
14551 | # depend on `.', always an invalid library. This was fixed in |
---|
14552 | # development snapshots of GCC prior to 3.0. |
---|
14553 | case $host_os in |
---|
14554 | aix4 | aix4.[01] | aix4.[01].*) |
---|
14555 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
14556 | echo ' yes ' |
---|
14557 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
14558 | : |
---|
14559 | else |
---|
14560 | can_build_shared=no |
---|
14561 | fi |
---|
14562 | ;; |
---|
14563 | esac |
---|
14564 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
14565 | # soname into executable. Probably we can add versioning support to |
---|
14566 | # collect2, so additional links can be useful in future. |
---|
14567 | if test "$aix_use_runtimelinking" = yes; then |
---|
14568 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
14569 | # instead of lib<name>.a to let people know that these are not |
---|
14570 | # typical AIX shared libraries. |
---|
14571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14572 | else |
---|
14573 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
14574 | # and later when we are not doing run time linking. |
---|
14575 | library_names_spec='${libname}${release}.a $libname.a' |
---|
14576 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14577 | fi |
---|
14578 | shlibpath_var=LIBPATH |
---|
14579 | fi |
---|
14580 | ;; |
---|
14581 | |
---|
14582 | amigaos*) |
---|
14583 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
14584 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
14585 | 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' |
---|
14586 | ;; |
---|
14587 | |
---|
14588 | beos*) |
---|
14589 | library_names_spec='${libname}${shared_ext}' |
---|
14590 | dynamic_linker="$host_os ld.so" |
---|
14591 | shlibpath_var=LIBRARY_PATH |
---|
14592 | ;; |
---|
14593 | |
---|
14594 | bsdi4*) |
---|
14595 | version_type=linux |
---|
14596 | need_version=no |
---|
14597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14598 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14599 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
14600 | shlibpath_var=LD_LIBRARY_PATH |
---|
14601 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
14602 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
14603 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
14604 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
14605 | # libtool to hard-code these into programs |
---|
14606 | ;; |
---|
14607 | |
---|
14608 | cygwin* | mingw* | pw32*) |
---|
14609 | version_type=windows |
---|
14610 | shrext_cmds=".dll" |
---|
14611 | need_version=no |
---|
14612 | need_lib_prefix=no |
---|
14613 | |
---|
14614 | case $GCC,$host_os in |
---|
14615 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
14616 | library_names_spec='$libname.dll.a' |
---|
14617 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
14618 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
14619 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
14620 | dldir=$destdir/`dirname \$dlpath`~ |
---|
14621 | test -d \$dldir || mkdir -p \$dldir~ |
---|
14622 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
14623 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
14624 | dlpath=$dir/\$dldll~ |
---|
14625 | $rm \$dlpath' |
---|
14626 | shlibpath_overrides_runpath=yes |
---|
14627 | |
---|
14628 | case $host_os in |
---|
14629 | cygwin*) |
---|
14630 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
14631 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
14632 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
14633 | ;; |
---|
14634 | mingw*) |
---|
14635 | # MinGW DLLs use traditional 'lib' prefix |
---|
14636 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
14637 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
14638 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
14639 | # It is most probably a Windows format PATH printed by |
---|
14640 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
14641 | # path with ; separators, and with drive letters. We can handle the |
---|
14642 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
14643 | # especially as we might pass files found there to a mingw objdump, |
---|
14644 | # which wouldn't understand a cygwinified path. Ahh. |
---|
14645 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
14646 | else |
---|
14647 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
14648 | fi |
---|
14649 | ;; |
---|
14650 | pw32*) |
---|
14651 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
14652 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
---|
14653 | ;; |
---|
14654 | esac |
---|
14655 | ;; |
---|
14656 | |
---|
14657 | *) |
---|
14658 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
14659 | ;; |
---|
14660 | esac |
---|
14661 | dynamic_linker='Win32 ld.exe' |
---|
14662 | # FIXME: first we should search . and the directory the executable is in |
---|
14663 | shlibpath_var=PATH |
---|
14664 | ;; |
---|
14665 | |
---|
14666 | darwin* | rhapsody*) |
---|
14667 | dynamic_linker="$host_os dyld" |
---|
14668 | version_type=darwin |
---|
14669 | need_lib_prefix=no |
---|
14670 | need_version=no |
---|
14671 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
14672 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
14673 | shlibpath_overrides_runpath=yes |
---|
14674 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
14675 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
14676 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
14677 | if test "$GCC" = yes; then |
---|
14678 | 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"` |
---|
14679 | else |
---|
14680 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
14681 | fi |
---|
14682 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
14683 | ;; |
---|
14684 | |
---|
14685 | dgux*) |
---|
14686 | version_type=linux |
---|
14687 | need_lib_prefix=no |
---|
14688 | need_version=no |
---|
14689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
14690 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14691 | shlibpath_var=LD_LIBRARY_PATH |
---|
14692 | ;; |
---|
14693 | |
---|
14694 | freebsd1*) |
---|
14695 | dynamic_linker=no |
---|
14696 | ;; |
---|
14697 | |
---|
14698 | kfreebsd*-gnu) |
---|
14699 | version_type=linux |
---|
14700 | need_lib_prefix=no |
---|
14701 | need_version=no |
---|
14702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
14703 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14704 | shlibpath_var=LD_LIBRARY_PATH |
---|
14705 | shlibpath_overrides_runpath=no |
---|
14706 | hardcode_into_libs=yes |
---|
14707 | dynamic_linker='GNU ld.so' |
---|
14708 | ;; |
---|
14709 | |
---|
14710 | freebsd*) |
---|
14711 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
14712 | version_type=freebsd-$objformat |
---|
14713 | case $version_type in |
---|
14714 | freebsd-elf*) |
---|
14715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
14716 | need_version=no |
---|
14717 | need_lib_prefix=no |
---|
14718 | ;; |
---|
14719 | freebsd-*) |
---|
14720 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
14721 | need_version=yes |
---|
14722 | ;; |
---|
14723 | esac |
---|
14724 | shlibpath_var=LD_LIBRARY_PATH |
---|
14725 | case $host_os in |
---|
14726 | freebsd2*) |
---|
14727 | shlibpath_overrides_runpath=yes |
---|
14728 | ;; |
---|
14729 | freebsd3.01* | freebsdelf3.01*) |
---|
14730 | shlibpath_overrides_runpath=yes |
---|
14731 | hardcode_into_libs=yes |
---|
14732 | ;; |
---|
14733 | *) # from 3.2 on |
---|
14734 | shlibpath_overrides_runpath=no |
---|
14735 | hardcode_into_libs=yes |
---|
14736 | ;; |
---|
14737 | esac |
---|
14738 | ;; |
---|
14739 | |
---|
14740 | gnu*) |
---|
14741 | version_type=linux |
---|
14742 | need_lib_prefix=no |
---|
14743 | need_version=no |
---|
14744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
14745 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14746 | shlibpath_var=LD_LIBRARY_PATH |
---|
14747 | hardcode_into_libs=yes |
---|
14748 | ;; |
---|
14749 | |
---|
14750 | hpux9* | hpux10* | hpux11*) |
---|
14751 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
14752 | # link against other versions. |
---|
14753 | version_type=sunos |
---|
14754 | need_lib_prefix=no |
---|
14755 | need_version=no |
---|
14756 | case "$host_cpu" in |
---|
14757 | ia64*) |
---|
14758 | shrext_cmds='.so' |
---|
14759 | hardcode_into_libs=yes |
---|
14760 | dynamic_linker="$host_os dld.so" |
---|
14761 | shlibpath_var=LD_LIBRARY_PATH |
---|
14762 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
14763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14764 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14765 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
14766 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
14767 | else |
---|
14768 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
14769 | fi |
---|
14770 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
14771 | ;; |
---|
14772 | hppa*64*) |
---|
14773 | shrext_cmds='.sl' |
---|
14774 | hardcode_into_libs=yes |
---|
14775 | dynamic_linker="$host_os dld.sl" |
---|
14776 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
14777 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
14778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14779 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14780 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
14781 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
14782 | ;; |
---|
14783 | *) |
---|
14784 | shrext_cmds='.sl' |
---|
14785 | dynamic_linker="$host_os dld.sl" |
---|
14786 | shlibpath_var=SHLIB_PATH |
---|
14787 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
14788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14789 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14790 | ;; |
---|
14791 | esac |
---|
14792 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
14793 | postinstall_cmds='chmod 555 $lib' |
---|
14794 | ;; |
---|
14795 | |
---|
14796 | irix5* | irix6* | nonstopux*) |
---|
14797 | case $host_os in |
---|
14798 | nonstopux*) version_type=nonstopux ;; |
---|
14799 | *) |
---|
14800 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
14801 | version_type=linux |
---|
14802 | else |
---|
14803 | version_type=irix |
---|
14804 | fi ;; |
---|
14805 | esac |
---|
14806 | need_lib_prefix=no |
---|
14807 | need_version=no |
---|
14808 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
14810 | case $host_os in |
---|
14811 | irix5* | nonstopux*) |
---|
14812 | libsuff= shlibsuff= |
---|
14813 | ;; |
---|
14814 | *) |
---|
14815 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
14816 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
14817 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
14818 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
14819 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
14820 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
14821 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
14822 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
14823 | esac |
---|
14824 | ;; |
---|
14825 | esac |
---|
14826 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
14827 | shlibpath_overrides_runpath=no |
---|
14828 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
14829 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
14830 | hardcode_into_libs=yes |
---|
14831 | ;; |
---|
14832 | |
---|
14833 | # No shared lib support for Linux oldld, aout, or coff. |
---|
14834 | linux*oldld* | linux*aout* | linux*coff*) |
---|
14835 | dynamic_linker=no |
---|
14836 | ;; |
---|
14837 | |
---|
14838 | # This must be Linux ELF. |
---|
14839 | linux*) |
---|
14840 | version_type=linux |
---|
14841 | need_lib_prefix=no |
---|
14842 | need_version=no |
---|
14843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14844 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14845 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
14846 | shlibpath_var=LD_LIBRARY_PATH |
---|
14847 | shlibpath_overrides_runpath=no |
---|
14848 | # This implies no fast_install, which is unacceptable. |
---|
14849 | # Some rework will be needed to allow for fast_install |
---|
14850 | # before this can be enabled. |
---|
14851 | hardcode_into_libs=yes |
---|
14852 | |
---|
14853 | # Append ld.so.conf contents to the search path |
---|
14854 | if test -f /etc/ld.so.conf; then |
---|
14855 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
---|
14856 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
14857 | fi |
---|
14858 | |
---|
14859 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
14860 | # powerpc, because MkLinux only supported shared libraries with the |
---|
14861 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
14862 | # most powerpc-linux boxes support dynamic linking these days and |
---|
14863 | # people can always --disable-shared, the test was removed, and we |
---|
14864 | # assume the GNU/Linux dynamic linker is in use. |
---|
14865 | dynamic_linker='GNU/Linux ld.so' |
---|
14866 | ;; |
---|
14867 | |
---|
14868 | netbsdelf*-gnu) |
---|
14869 | version_type=linux |
---|
14870 | need_lib_prefix=no |
---|
14871 | need_version=no |
---|
14872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
14873 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14874 | shlibpath_var=LD_LIBRARY_PATH |
---|
14875 | shlibpath_overrides_runpath=no |
---|
14876 | hardcode_into_libs=yes |
---|
14877 | dynamic_linker='NetBSD ld.elf_so' |
---|
14878 | ;; |
---|
14879 | |
---|
14880 | knetbsd*-gnu) |
---|
14881 | version_type=linux |
---|
14882 | need_lib_prefix=no |
---|
14883 | need_version=no |
---|
14884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
14885 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14886 | shlibpath_var=LD_LIBRARY_PATH |
---|
14887 | shlibpath_overrides_runpath=no |
---|
14888 | hardcode_into_libs=yes |
---|
14889 | dynamic_linker='GNU ld.so' |
---|
14890 | ;; |
---|
14891 | |
---|
14892 | netbsd*) |
---|
14893 | version_type=sunos |
---|
14894 | need_lib_prefix=no |
---|
14895 | need_version=no |
---|
14896 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
14897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
14898 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
14899 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
14900 | else |
---|
14901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
14902 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14903 | dynamic_linker='NetBSD ld.elf_so' |
---|
14904 | fi |
---|
14905 | shlibpath_var=LD_LIBRARY_PATH |
---|
14906 | shlibpath_overrides_runpath=yes |
---|
14907 | hardcode_into_libs=yes |
---|
14908 | ;; |
---|
14909 | |
---|
14910 | newsos6) |
---|
14911 | version_type=linux |
---|
14912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14913 | shlibpath_var=LD_LIBRARY_PATH |
---|
14914 | shlibpath_overrides_runpath=yes |
---|
14915 | ;; |
---|
14916 | |
---|
14917 | nto-qnx*) |
---|
14918 | version_type=linux |
---|
14919 | need_lib_prefix=no |
---|
14920 | need_version=no |
---|
14921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14922 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14923 | shlibpath_var=LD_LIBRARY_PATH |
---|
14924 | shlibpath_overrides_runpath=yes |
---|
14925 | ;; |
---|
14926 | |
---|
14927 | openbsd*) |
---|
14928 | version_type=sunos |
---|
14929 | need_lib_prefix=no |
---|
14930 | need_version=yes |
---|
14931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
14932 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
14933 | shlibpath_var=LD_LIBRARY_PATH |
---|
14934 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
14935 | case $host_os in |
---|
14936 | openbsd2.[89] | openbsd2.[89].*) |
---|
14937 | shlibpath_overrides_runpath=no |
---|
14938 | ;; |
---|
14939 | *) |
---|
14940 | shlibpath_overrides_runpath=yes |
---|
14941 | ;; |
---|
14942 | esac |
---|
14943 | else |
---|
14944 | shlibpath_overrides_runpath=yes |
---|
14945 | fi |
---|
14946 | ;; |
---|
14947 | |
---|
14948 | os2*) |
---|
14949 | libname_spec='$name' |
---|
14950 | shrext_cmds=".dll" |
---|
14951 | need_lib_prefix=no |
---|
14952 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
14953 | dynamic_linker='OS/2 ld.exe' |
---|
14954 | shlibpath_var=LIBPATH |
---|
14955 | ;; |
---|
14956 | |
---|
14957 | osf3* | osf4* | osf5*) |
---|
14958 | version_type=osf |
---|
14959 | need_lib_prefix=no |
---|
14960 | need_version=no |
---|
14961 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14963 | shlibpath_var=LD_LIBRARY_PATH |
---|
14964 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
14965 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
14966 | ;; |
---|
14967 | |
---|
14968 | sco3.2v5*) |
---|
14969 | version_type=osf |
---|
14970 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14972 | shlibpath_var=LD_LIBRARY_PATH |
---|
14973 | ;; |
---|
14974 | |
---|
14975 | solaris*) |
---|
14976 | version_type=linux |
---|
14977 | need_lib_prefix=no |
---|
14978 | need_version=no |
---|
14979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
14980 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
14981 | shlibpath_var=LD_LIBRARY_PATH |
---|
14982 | shlibpath_overrides_runpath=yes |
---|
14983 | hardcode_into_libs=yes |
---|
14984 | # ldd complains unless libraries are executable |
---|
14985 | postinstall_cmds='chmod +x $lib' |
---|
14986 | ;; |
---|
14987 | |
---|
14988 | sunos4*) |
---|
14989 | version_type=sunos |
---|
14990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
14991 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
14992 | shlibpath_var=LD_LIBRARY_PATH |
---|
14993 | shlibpath_overrides_runpath=yes |
---|
14994 | if test "$with_gnu_ld" = yes; then |
---|
14995 | need_lib_prefix=no |
---|
14996 | fi |
---|
14997 | need_version=yes |
---|
14998 | ;; |
---|
14999 | |
---|
15000 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
15001 | version_type=linux |
---|
15002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15003 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15004 | shlibpath_var=LD_LIBRARY_PATH |
---|
15005 | case $host_vendor in |
---|
15006 | sni) |
---|
15007 | shlibpath_overrides_runpath=no |
---|
15008 | need_lib_prefix=no |
---|
15009 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
15010 | runpath_var=LD_RUN_PATH |
---|
15011 | ;; |
---|
15012 | siemens) |
---|
15013 | need_lib_prefix=no |
---|
15014 | ;; |
---|
15015 | motorola) |
---|
15016 | need_lib_prefix=no |
---|
15017 | need_version=no |
---|
15018 | shlibpath_overrides_runpath=no |
---|
15019 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
15020 | ;; |
---|
15021 | esac |
---|
15022 | ;; |
---|
15023 | |
---|
15024 | sysv4*MP*) |
---|
15025 | if test -d /usr/nec ;then |
---|
15026 | version_type=linux |
---|
15027 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
15028 | soname_spec='$libname${shared_ext}.$major' |
---|
15029 | shlibpath_var=LD_LIBRARY_PATH |
---|
15030 | fi |
---|
15031 | ;; |
---|
15032 | |
---|
15033 | uts4*) |
---|
15034 | version_type=linux |
---|
15035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
15036 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15037 | shlibpath_var=LD_LIBRARY_PATH |
---|
15038 | ;; |
---|
15039 | |
---|
15040 | *) |
---|
15041 | dynamic_linker=no |
---|
15042 | ;; |
---|
15043 | esac |
---|
15044 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
15045 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
15046 | test "$dynamic_linker" = no && can_build_shared=no |
---|
15047 | |
---|
15048 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
15049 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
15050 | hardcode_action_F77= |
---|
15051 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
---|
15052 | test -n "$runpath_var F77" || \ |
---|
15053 | test "X$hardcode_automatic_F77"="Xyes" ; then |
---|
15054 | |
---|
15055 | # We can hardcode non-existant directories. |
---|
15056 | if test "$hardcode_direct_F77" != no && |
---|
15057 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
15058 | # have to relink, otherwise we might link with an installed library |
---|
15059 | # when we should be linking with a yet-to-be-installed one |
---|
15060 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
---|
15061 | test "$hardcode_minus_L_F77" != no; then |
---|
15062 | # Linking always hardcodes the temporary library directory. |
---|
15063 | hardcode_action_F77=relink |
---|
15064 | else |
---|
15065 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
15066 | hardcode_action_F77=immediate |
---|
15067 | fi |
---|
15068 | else |
---|
15069 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
15070 | # directories. |
---|
15071 | hardcode_action_F77=unsupported |
---|
15072 | fi |
---|
15073 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
---|
15074 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
---|
15075 | |
---|
15076 | if test "$hardcode_action_F77" = relink; then |
---|
15077 | # Fast installation is not supported |
---|
15078 | enable_fast_install=no |
---|
15079 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
15080 | test "$enable_shared" = no; then |
---|
15081 | # Fast installation is not necessary |
---|
15082 | enable_fast_install=needless |
---|
15083 | fi |
---|
15084 | |
---|
15085 | striplib= |
---|
15086 | old_striplib= |
---|
15087 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
15088 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
15089 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
15090 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
15091 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
15092 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
15093 | echo "${ECHO_T}yes" >&6 |
---|
15094 | else |
---|
15095 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
15096 | case $host_os in |
---|
15097 | darwin*) |
---|
15098 | if test -n "$STRIP" ; then |
---|
15099 | striplib="$STRIP -x" |
---|
15100 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
15101 | echo "${ECHO_T}yes" >&6 |
---|
15102 | else |
---|
15103 | echo "$as_me:$LINENO: result: no" >&5 |
---|
15104 | echo "${ECHO_T}no" >&6 |
---|
15105 | fi |
---|
15106 | ;; |
---|
15107 | *) |
---|
15108 | echo "$as_me:$LINENO: result: no" >&5 |
---|
15109 | echo "${ECHO_T}no" >&6 |
---|
15110 | ;; |
---|
15111 | esac |
---|
15112 | fi |
---|
15113 | |
---|
15114 | |
---|
15115 | |
---|
15116 | # The else clause should only fire when bootstrapping the |
---|
15117 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
15118 | # with your package, and you will get complaints that there are |
---|
15119 | # no rules to generate ltmain.sh. |
---|
15120 | if test -f "$ltmain"; then |
---|
15121 | # See if we are running on zsh, and set the options which allow our commands through |
---|
15122 | # without removal of \ escapes. |
---|
15123 | if test -n "${ZSH_VERSION+set}" ; then |
---|
15124 | setopt NO_GLOB_SUBST |
---|
15125 | fi |
---|
15126 | # Now quote all the things that may contain metacharacters while being |
---|
15127 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
15128 | # variables and quote the copies for generation of the libtool script. |
---|
15129 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
15130 | SED SHELL STRIP \ |
---|
15131 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
15132 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
15133 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
15134 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
15135 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
15136 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
15137 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
15138 | compiler_F77 \ |
---|
15139 | CC_F77 \ |
---|
15140 | LD_F77 \ |
---|
15141 | lt_prog_compiler_wl_F77 \ |
---|
15142 | lt_prog_compiler_pic_F77 \ |
---|
15143 | lt_prog_compiler_static_F77 \ |
---|
15144 | lt_prog_compiler_no_builtin_flag_F77 \ |
---|
15145 | export_dynamic_flag_spec_F77 \ |
---|
15146 | thread_safe_flag_spec_F77 \ |
---|
15147 | whole_archive_flag_spec_F77 \ |
---|
15148 | enable_shared_with_static_runtimes_F77 \ |
---|
15149 | old_archive_cmds_F77 \ |
---|
15150 | old_archive_from_new_cmds_F77 \ |
---|
15151 | predep_objects_F77 \ |
---|
15152 | postdep_objects_F77 \ |
---|
15153 | predeps_F77 \ |
---|
15154 | postdeps_F77 \ |
---|
15155 | compiler_lib_search_path_F77 \ |
---|
15156 | archive_cmds_F77 \ |
---|
15157 | archive_expsym_cmds_F77 \ |
---|
15158 | postinstall_cmds_F77 \ |
---|
15159 | postuninstall_cmds_F77 \ |
---|
15160 | old_archive_from_expsyms_cmds_F77 \ |
---|
15161 | allow_undefined_flag_F77 \ |
---|
15162 | no_undefined_flag_F77 \ |
---|
15163 | export_symbols_cmds_F77 \ |
---|
15164 | hardcode_libdir_flag_spec_F77 \ |
---|
15165 | hardcode_libdir_flag_spec_ld_F77 \ |
---|
15166 | hardcode_libdir_separator_F77 \ |
---|
15167 | hardcode_automatic_F77 \ |
---|
15168 | module_cmds_F77 \ |
---|
15169 | module_expsym_cmds_F77 \ |
---|
15170 | lt_cv_prog_compiler_c_o_F77 \ |
---|
15171 | exclude_expsyms_F77 \ |
---|
15172 | include_expsyms_F77; do |
---|
15173 | |
---|
15174 | case $var in |
---|
15175 | old_archive_cmds_F77 | \ |
---|
15176 | old_archive_from_new_cmds_F77 | \ |
---|
15177 | archive_cmds_F77 | \ |
---|
15178 | archive_expsym_cmds_F77 | \ |
---|
15179 | module_cmds_F77 | \ |
---|
15180 | module_expsym_cmds_F77 | \ |
---|
15181 | old_archive_from_expsyms_cmds_F77 | \ |
---|
15182 | export_symbols_cmds_F77 | \ |
---|
15183 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
15184 | postinstall_cmds | postuninstall_cmds | \ |
---|
15185 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
15186 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
15187 | # Double-quote double-evaled strings. |
---|
15188 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
15189 | ;; |
---|
15190 | *) |
---|
15191 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
15192 | ;; |
---|
15193 | esac |
---|
15194 | done |
---|
15195 | |
---|
15196 | case $lt_echo in |
---|
15197 | *'\$0 --fallback-echo"') |
---|
15198 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
15199 | ;; |
---|
15200 | esac |
---|
15201 | |
---|
15202 | cfgfile="$ofile" |
---|
15203 | |
---|
15204 | cat <<__EOF__ >> "$cfgfile" |
---|
15205 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
15206 | |
---|
15207 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
15208 | |
---|
15209 | # Shell to use when invoking shell scripts. |
---|
15210 | SHELL=$lt_SHELL |
---|
15211 | |
---|
15212 | # Whether or not to build shared libraries. |
---|
15213 | build_libtool_libs=$enable_shared |
---|
15214 | |
---|
15215 | # Whether or not to build static libraries. |
---|
15216 | build_old_libs=$enable_static |
---|
15217 | |
---|
15218 | # Whether or not to add -lc for building shared libraries. |
---|
15219 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
---|
15220 | |
---|
15221 | # Whether or not to disallow shared libs when runtime libs are static |
---|
15222 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
---|
15223 | |
---|
15224 | # Whether or not to optimize for fast installation. |
---|
15225 | fast_install=$enable_fast_install |
---|
15226 | |
---|
15227 | # The host system. |
---|
15228 | host_alias=$host_alias |
---|
15229 | host=$host |
---|
15230 | |
---|
15231 | # An echo program that does not interpret backslashes. |
---|
15232 | echo=$lt_echo |
---|
15233 | |
---|
15234 | # The archiver. |
---|
15235 | AR=$lt_AR |
---|
15236 | AR_FLAGS=$lt_AR_FLAGS |
---|
15237 | |
---|
15238 | # A C compiler. |
---|
15239 | LTCC=$lt_LTCC |
---|
15240 | |
---|
15241 | # A language-specific compiler. |
---|
15242 | CC=$lt_compiler_F77 |
---|
15243 | |
---|
15244 | # Is the compiler the GNU C compiler? |
---|
15245 | with_gcc=$GCC_F77 |
---|
15246 | |
---|
15247 | # An ERE matcher. |
---|
15248 | EGREP=$lt_EGREP |
---|
15249 | |
---|
15250 | # The linker used to build libraries. |
---|
15251 | LD=$lt_LD_F77 |
---|
15252 | |
---|
15253 | # Whether we need hard or soft links. |
---|
15254 | LN_S=$lt_LN_S |
---|
15255 | |
---|
15256 | # A BSD-compatible nm program. |
---|
15257 | NM=$lt_NM |
---|
15258 | |
---|
15259 | # A symbol stripping program |
---|
15260 | STRIP=$lt_STRIP |
---|
15261 | |
---|
15262 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
15263 | MAGIC_CMD=$MAGIC_CMD |
---|
15264 | |
---|
15265 | # Used on cygwin: DLL creation program. |
---|
15266 | DLLTOOL="$DLLTOOL" |
---|
15267 | |
---|
15268 | # Used on cygwin: object dumper. |
---|
15269 | OBJDUMP="$OBJDUMP" |
---|
15270 | |
---|
15271 | # Used on cygwin: assembler. |
---|
15272 | AS="$AS" |
---|
15273 | |
---|
15274 | # The name of the directory that contains temporary libtool files. |
---|
15275 | objdir=$objdir |
---|
15276 | |
---|
15277 | # How to create reloadable object files. |
---|
15278 | reload_flag=$lt_reload_flag |
---|
15279 | reload_cmds=$lt_reload_cmds |
---|
15280 | |
---|
15281 | # How to pass a linker flag through the compiler. |
---|
15282 | wl=$lt_lt_prog_compiler_wl_F77 |
---|
15283 | |
---|
15284 | # Object file suffix (normally "o"). |
---|
15285 | objext="$ac_objext" |
---|
15286 | |
---|
15287 | # Old archive suffix (normally "a"). |
---|
15288 | libext="$libext" |
---|
15289 | |
---|
15290 | # Shared library suffix (normally ".so"). |
---|
15291 | shrext_cmds='$shrext_cmds' |
---|
15292 | |
---|
15293 | # Executable file suffix (normally ""). |
---|
15294 | exeext="$exeext" |
---|
15295 | |
---|
15296 | # Additional compiler flags for building library objects. |
---|
15297 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
---|
15298 | pic_mode=$pic_mode |
---|
15299 | |
---|
15300 | # What is the maximum length of a command? |
---|
15301 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
15302 | |
---|
15303 | # Does compiler simultaneously support -c and -o options? |
---|
15304 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
---|
15305 | |
---|
15306 | # Must we lock files when doing compilation ? |
---|
15307 | need_locks=$lt_need_locks |
---|
15308 | |
---|
15309 | # Do we need the lib prefix for modules? |
---|
15310 | need_lib_prefix=$need_lib_prefix |
---|
15311 | |
---|
15312 | # Do we need a version for libraries? |
---|
15313 | need_version=$need_version |
---|
15314 | |
---|
15315 | # Whether dlopen is supported. |
---|
15316 | dlopen_support=$enable_dlopen |
---|
15317 | |
---|
15318 | # Whether dlopen of programs is supported. |
---|
15319 | dlopen_self=$enable_dlopen_self |
---|
15320 | |
---|
15321 | # Whether dlopen of statically linked programs is supported. |
---|
15322 | dlopen_self_static=$enable_dlopen_self_static |
---|
15323 | |
---|
15324 | # Compiler flag to prevent dynamic linking. |
---|
15325 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
---|
15326 | |
---|
15327 | # Compiler flag to turn off builtin functions. |
---|
15328 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
---|
15329 | |
---|
15330 | # Compiler flag to allow reflexive dlopens. |
---|
15331 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
---|
15332 | |
---|
15333 | # Compiler flag to generate shared objects directly from archives. |
---|
15334 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
---|
15335 | |
---|
15336 | # Compiler flag to generate thread-safe objects. |
---|
15337 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
---|
15338 | |
---|
15339 | # Library versioning type. |
---|
15340 | version_type=$version_type |
---|
15341 | |
---|
15342 | # Format of library name prefix. |
---|
15343 | libname_spec=$lt_libname_spec |
---|
15344 | |
---|
15345 | # List of archive names. First name is the real one, the rest are links. |
---|
15346 | # The last name is the one that the linker finds with -lNAME. |
---|
15347 | library_names_spec=$lt_library_names_spec |
---|
15348 | |
---|
15349 | # The coded name of the library, if different from the real name. |
---|
15350 | soname_spec=$lt_soname_spec |
---|
15351 | |
---|
15352 | # Commands used to build and install an old-style archive. |
---|
15353 | RANLIB=$lt_RANLIB |
---|
15354 | old_archive_cmds=$lt_old_archive_cmds_F77 |
---|
15355 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
15356 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
15357 | |
---|
15358 | # Create an old-style archive from a shared archive. |
---|
15359 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
---|
15360 | |
---|
15361 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
15362 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
---|
15363 | |
---|
15364 | # Commands used to build and install a shared archive. |
---|
15365 | archive_cmds=$lt_archive_cmds_F77 |
---|
15366 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
---|
15367 | postinstall_cmds=$lt_postinstall_cmds |
---|
15368 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
15369 | |
---|
15370 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
15371 | module_cmds=$lt_module_cmds_F77 |
---|
15372 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
---|
15373 | |
---|
15374 | # Commands to strip libraries. |
---|
15375 | old_striplib=$lt_old_striplib |
---|
15376 | striplib=$lt_striplib |
---|
15377 | |
---|
15378 | # Dependencies to place before the objects being linked to create a |
---|
15379 | # shared library. |
---|
15380 | predep_objects=$lt_predep_objects_F77 |
---|
15381 | |
---|
15382 | # Dependencies to place after the objects being linked to create a |
---|
15383 | # shared library. |
---|
15384 | postdep_objects=$lt_postdep_objects_F77 |
---|
15385 | |
---|
15386 | # Dependencies to place before the objects being linked to create a |
---|
15387 | # shared library. |
---|
15388 | predeps=$lt_predeps_F77 |
---|
15389 | |
---|
15390 | # Dependencies to place after the objects being linked to create a |
---|
15391 | # shared library. |
---|
15392 | postdeps=$lt_postdeps_F77 |
---|
15393 | |
---|
15394 | # The library search path used internally by the compiler when linking |
---|
15395 | # a shared library. |
---|
15396 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
---|
15397 | |
---|
15398 | # Method to check whether dependent libraries are shared objects. |
---|
15399 | deplibs_check_method=$lt_deplibs_check_method |
---|
15400 | |
---|
15401 | # Command to use when deplibs_check_method == file_magic. |
---|
15402 | file_magic_cmd=$lt_file_magic_cmd |
---|
15403 | |
---|
15404 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
15405 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
---|
15406 | |
---|
15407 | # Flag that forces no undefined symbols. |
---|
15408 | no_undefined_flag=$lt_no_undefined_flag_F77 |
---|
15409 | |
---|
15410 | # Commands used to finish a libtool library installation in a directory. |
---|
15411 | finish_cmds=$lt_finish_cmds |
---|
15412 | |
---|
15413 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
15414 | finish_eval=$lt_finish_eval |
---|
15415 | |
---|
15416 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
15417 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
15418 | |
---|
15419 | # Transform the output of nm in a proper C declaration |
---|
15420 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
15421 | |
---|
15422 | # Transform the output of nm in a C name address pair |
---|
15423 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
15424 | |
---|
15425 | # This is the shared library runtime path variable. |
---|
15426 | runpath_var=$runpath_var |
---|
15427 | |
---|
15428 | # This is the shared library path variable. |
---|
15429 | shlibpath_var=$shlibpath_var |
---|
15430 | |
---|
15431 | # Is shlibpath searched before the hard-coded library search path? |
---|
15432 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
15433 | |
---|
15434 | # How to hardcode a shared library path into an executable. |
---|
15435 | hardcode_action=$hardcode_action_F77 |
---|
15436 | |
---|
15437 | # Whether we should hardcode library paths into libraries. |
---|
15438 | hardcode_into_libs=$hardcode_into_libs |
---|
15439 | |
---|
15440 | # Flag to hardcode \$libdir into a binary during linking. |
---|
15441 | # This must work even if \$libdir does not exist. |
---|
15442 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
---|
15443 | |
---|
15444 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
15445 | # a binary during linking. This must work even if \$libdir does |
---|
15446 | # not exist. |
---|
15447 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
---|
15448 | |
---|
15449 | # Whether we need a single -rpath flag with a separated argument. |
---|
15450 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
---|
15451 | |
---|
15452 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
15453 | # resulting binary. |
---|
15454 | hardcode_direct=$hardcode_direct_F77 |
---|
15455 | |
---|
15456 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
15457 | # resulting binary. |
---|
15458 | hardcode_minus_L=$hardcode_minus_L_F77 |
---|
15459 | |
---|
15460 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
15461 | # the resulting binary. |
---|
15462 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
---|
15463 | |
---|
15464 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
15465 | # and all subsequent libraries and executables linked against it. |
---|
15466 | hardcode_automatic=$hardcode_automatic_F77 |
---|
15467 | |
---|
15468 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
15469 | # restored at relink time. |
---|
15470 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
15471 | |
---|
15472 | # Whether libtool must link a program against all its dependency libraries. |
---|
15473 | link_all_deplibs=$link_all_deplibs_F77 |
---|
15474 | |
---|
15475 | # Compile-time system search path for libraries |
---|
15476 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
15477 | |
---|
15478 | # Run-time system search path for libraries |
---|
15479 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
15480 | |
---|
15481 | # Fix the shell variable \$srcfile for the compiler. |
---|
15482 | fix_srcfile_path="$fix_srcfile_path_F77" |
---|
15483 | |
---|
15484 | # Set to yes if exported symbols are required. |
---|
15485 | always_export_symbols=$always_export_symbols_F77 |
---|
15486 | |
---|
15487 | # The commands to list exported symbols. |
---|
15488 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
---|
15489 | |
---|
15490 | # The commands to extract the exported symbol list from a shared archive. |
---|
15491 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
15492 | |
---|
15493 | # Symbols that should not be listed in the preloaded symbols. |
---|
15494 | exclude_expsyms=$lt_exclude_expsyms_F77 |
---|
15495 | |
---|
15496 | # Symbols that must always be exported. |
---|
15497 | include_expsyms=$lt_include_expsyms_F77 |
---|
15498 | |
---|
15499 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
15500 | |
---|
15501 | __EOF__ |
---|
15502 | |
---|
15503 | |
---|
15504 | else |
---|
15505 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
15506 | # `config.status --recheck' to rerun these tests and create the |
---|
15507 | # libtool script then. |
---|
15508 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
15509 | if test -f "$ltmain_in"; then |
---|
15510 | test -f Makefile && make "$ltmain" |
---|
15511 | fi |
---|
15512 | fi |
---|
15513 | |
---|
15514 | |
---|
15515 | ac_ext=c |
---|
15516 | ac_cpp='$CPP $CPPFLAGS' |
---|
15517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
15518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
15519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
15520 | |
---|
15521 | CC="$lt_save_CC" |
---|
15522 | |
---|
15523 | else |
---|
15524 | tagname="" |
---|
15525 | fi |
---|
15526 | ;; |
---|
15527 | |
---|
15528 | GCJ) |
---|
15529 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
---|
15530 | |
---|
15531 | |
---|
15532 | |
---|
15533 | # Source file extension for Java test sources. |
---|
15534 | ac_ext=java |
---|
15535 | |
---|
15536 | # Object file extension for compiled Java test sources. |
---|
15537 | objext=o |
---|
15538 | objext_GCJ=$objext |
---|
15539 | |
---|
15540 | # Code to be used in simple compile tests |
---|
15541 | lt_simple_compile_test_code="class foo {}\n" |
---|
15542 | |
---|
15543 | # Code to be used in simple link tests |
---|
15544 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
---|
15545 | |
---|
15546 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
15547 | |
---|
15548 | # If no C compiler was specified, use CC. |
---|
15549 | LTCC=${LTCC-"$CC"} |
---|
15550 | |
---|
15551 | # Allow CC to be a program name with arguments. |
---|
15552 | compiler=$CC |
---|
15553 | |
---|
15554 | |
---|
15555 | # Allow CC to be a program name with arguments. |
---|
15556 | lt_save_CC="$CC" |
---|
15557 | CC=${GCJ-"gcj"} |
---|
15558 | compiler=$CC |
---|
15559 | compiler_GCJ=$CC |
---|
15560 | |
---|
15561 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
---|
15562 | archive_cmds_need_lc_GCJ=no |
---|
15563 | |
---|
15564 | ## CAVEAT EMPTOR: |
---|
15565 | ## There is no encapsulation within the following macros, do not change |
---|
15566 | ## the running order or otherwise move them around unless you know exactly |
---|
15567 | ## what you are doing... |
---|
15568 | |
---|
15569 | lt_prog_compiler_no_builtin_flag_GCJ= |
---|
15570 | |
---|
15571 | if test "$GCC" = yes; then |
---|
15572 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
---|
15573 | |
---|
15574 | |
---|
15575 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
15576 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
15577 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
15578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
15579 | else |
---|
15580 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
15581 | ac_outfile=conftest.$ac_objext |
---|
15582 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15583 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
15584 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
15585 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
15586 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
15587 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
15588 | # The option is referenced via a variable to avoid confusing sed. |
---|
15589 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
15590 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
15591 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
15592 | -e 's:$: $lt_compiler_flag:'` |
---|
15593 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
15594 | (eval "$lt_compile" 2>conftest.err) |
---|
15595 | ac_status=$? |
---|
15596 | cat conftest.err >&5 |
---|
15597 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
15598 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
15599 | # The compiler can only warn and ignore the option if not recognized |
---|
15600 | # So say no if there are warnings |
---|
15601 | if test ! -s conftest.err; then |
---|
15602 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
15603 | fi |
---|
15604 | fi |
---|
15605 | $rm conftest* |
---|
15606 | |
---|
15607 | fi |
---|
15608 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
15609 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
15610 | |
---|
15611 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
15612 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
---|
15613 | else |
---|
15614 | : |
---|
15615 | fi |
---|
15616 | |
---|
15617 | fi |
---|
15618 | |
---|
15619 | lt_prog_compiler_wl_GCJ= |
---|
15620 | lt_prog_compiler_pic_GCJ= |
---|
15621 | lt_prog_compiler_static_GCJ= |
---|
15622 | |
---|
15623 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
15624 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
15625 | |
---|
15626 | if test "$GCC" = yes; then |
---|
15627 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15628 | lt_prog_compiler_static_GCJ='-static' |
---|
15629 | |
---|
15630 | case $host_os in |
---|
15631 | aix*) |
---|
15632 | # All AIX code is PIC. |
---|
15633 | if test "$host_cpu" = ia64; then |
---|
15634 | # AIX 5 now supports IA64 processor |
---|
15635 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15636 | fi |
---|
15637 | ;; |
---|
15638 | |
---|
15639 | amigaos*) |
---|
15640 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
15641 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
15642 | # like `-m68040'. |
---|
15643 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
---|
15644 | ;; |
---|
15645 | |
---|
15646 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
15647 | # PIC is the default for these OSes. |
---|
15648 | ;; |
---|
15649 | |
---|
15650 | mingw* | pw32* | os2*) |
---|
15651 | # This hack is so that the source file can tell whether it is being |
---|
15652 | # built for inclusion in a dll (and should export symbols for example). |
---|
15653 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
15654 | ;; |
---|
15655 | |
---|
15656 | darwin* | rhapsody*) |
---|
15657 | # PIC is the default on this platform |
---|
15658 | # Common symbols not allowed in MH_DYLIB files |
---|
15659 | lt_prog_compiler_pic_GCJ='-fno-common' |
---|
15660 | ;; |
---|
15661 | |
---|
15662 | msdosdjgpp*) |
---|
15663 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
15664 | # on systems that don't support them. |
---|
15665 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
15666 | enable_shared=no |
---|
15667 | ;; |
---|
15668 | |
---|
15669 | sysv4*MP*) |
---|
15670 | if test -d /usr/nec; then |
---|
15671 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
---|
15672 | fi |
---|
15673 | ;; |
---|
15674 | |
---|
15675 | hpux*) |
---|
15676 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
15677 | # not for PA HP-UX. |
---|
15678 | case "$host_cpu" in |
---|
15679 | hppa*64*|ia64*) |
---|
15680 | # +Z the default |
---|
15681 | ;; |
---|
15682 | *) |
---|
15683 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
15684 | ;; |
---|
15685 | esac |
---|
15686 | ;; |
---|
15687 | |
---|
15688 | *) |
---|
15689 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
15690 | ;; |
---|
15691 | esac |
---|
15692 | else |
---|
15693 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
15694 | case $host_os in |
---|
15695 | aix*) |
---|
15696 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15697 | if test "$host_cpu" = ia64; then |
---|
15698 | # AIX 5 now supports IA64 processor |
---|
15699 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15700 | else |
---|
15701 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
---|
15702 | fi |
---|
15703 | ;; |
---|
15704 | |
---|
15705 | mingw* | pw32* | os2*) |
---|
15706 | # This hack is so that the source file can tell whether it is being |
---|
15707 | # built for inclusion in a dll (and should export symbols for example). |
---|
15708 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
15709 | ;; |
---|
15710 | |
---|
15711 | hpux9* | hpux10* | hpux11*) |
---|
15712 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15713 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
15714 | # not for PA HP-UX. |
---|
15715 | case "$host_cpu" in |
---|
15716 | hppa*64*|ia64*) |
---|
15717 | # +Z the default |
---|
15718 | ;; |
---|
15719 | *) |
---|
15720 | lt_prog_compiler_pic_GCJ='+Z' |
---|
15721 | ;; |
---|
15722 | esac |
---|
15723 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
15724 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
---|
15725 | ;; |
---|
15726 | |
---|
15727 | irix5* | irix6* | nonstopux*) |
---|
15728 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15729 | # PIC (with -KPIC) is the default. |
---|
15730 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
15731 | ;; |
---|
15732 | |
---|
15733 | newsos6) |
---|
15734 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
15735 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15736 | ;; |
---|
15737 | |
---|
15738 | linux*) |
---|
15739 | case $CC in |
---|
15740 | icc* | ecc*) |
---|
15741 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15742 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
15743 | lt_prog_compiler_static_GCJ='-static' |
---|
15744 | ;; |
---|
15745 | ccc*) |
---|
15746 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15747 | # All Alpha code is PIC. |
---|
15748 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
15749 | ;; |
---|
15750 | esac |
---|
15751 | ;; |
---|
15752 | |
---|
15753 | osf3* | osf4* | osf5*) |
---|
15754 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15755 | # All OSF/1 code is PIC. |
---|
15756 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
15757 | ;; |
---|
15758 | |
---|
15759 | sco3.2v5*) |
---|
15760 | lt_prog_compiler_pic_GCJ='-Kpic' |
---|
15761 | lt_prog_compiler_static_GCJ='-dn' |
---|
15762 | ;; |
---|
15763 | |
---|
15764 | solaris*) |
---|
15765 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15766 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
15767 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15768 | ;; |
---|
15769 | |
---|
15770 | sunos4*) |
---|
15771 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
---|
15772 | lt_prog_compiler_pic_GCJ='-PIC' |
---|
15773 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15774 | ;; |
---|
15775 | |
---|
15776 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
15777 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
15778 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
15779 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15780 | ;; |
---|
15781 | |
---|
15782 | sysv4*MP*) |
---|
15783 | if test -d /usr/nec ;then |
---|
15784 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
---|
15785 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15786 | fi |
---|
15787 | ;; |
---|
15788 | |
---|
15789 | uts4*) |
---|
15790 | lt_prog_compiler_pic_GCJ='-pic' |
---|
15791 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
15792 | ;; |
---|
15793 | |
---|
15794 | *) |
---|
15795 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
15796 | ;; |
---|
15797 | esac |
---|
15798 | fi |
---|
15799 | |
---|
15800 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
---|
15801 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
---|
15802 | |
---|
15803 | # |
---|
15804 | # Check to make sure the PIC flag actually works. |
---|
15805 | # |
---|
15806 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
---|
15807 | |
---|
15808 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
---|
15809 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
---|
15810 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
---|
15811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
15812 | else |
---|
15813 | lt_prog_compiler_pic_works_GCJ=no |
---|
15814 | ac_outfile=conftest.$ac_objext |
---|
15815 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15816 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
---|
15817 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
15818 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
15819 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
15820 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
15821 | # The option is referenced via a variable to avoid confusing sed. |
---|
15822 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
15823 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
15824 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
15825 | -e 's:$: $lt_compiler_flag:'` |
---|
15826 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
15827 | (eval "$lt_compile" 2>conftest.err) |
---|
15828 | ac_status=$? |
---|
15829 | cat conftest.err >&5 |
---|
15830 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
15831 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
15832 | # The compiler can only warn and ignore the option if not recognized |
---|
15833 | # So say no if there are warnings |
---|
15834 | if test ! -s conftest.err; then |
---|
15835 | lt_prog_compiler_pic_works_GCJ=yes |
---|
15836 | fi |
---|
15837 | fi |
---|
15838 | $rm conftest* |
---|
15839 | |
---|
15840 | fi |
---|
15841 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
---|
15842 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
---|
15843 | |
---|
15844 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
---|
15845 | case $lt_prog_compiler_pic_GCJ in |
---|
15846 | "" | " "*) ;; |
---|
15847 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
---|
15848 | esac |
---|
15849 | else |
---|
15850 | lt_prog_compiler_pic_GCJ= |
---|
15851 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
15852 | fi |
---|
15853 | |
---|
15854 | fi |
---|
15855 | case "$host_os" in |
---|
15856 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
15857 | *djgpp*) |
---|
15858 | lt_prog_compiler_pic_GCJ= |
---|
15859 | ;; |
---|
15860 | *) |
---|
15861 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
---|
15862 | ;; |
---|
15863 | esac |
---|
15864 | |
---|
15865 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
15866 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
15867 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
---|
15868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
15869 | else |
---|
15870 | lt_cv_prog_compiler_c_o_GCJ=no |
---|
15871 | $rm -r conftest 2>/dev/null |
---|
15872 | mkdir conftest |
---|
15873 | cd conftest |
---|
15874 | mkdir out |
---|
15875 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15876 | |
---|
15877 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
15878 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
15879 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
15880 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
15881 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
15882 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
15883 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
---|
15884 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
15885 | -e 's:$: $lt_compiler_flag:'` |
---|
15886 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) |
---|
15887 | (eval "$lt_compile" 2>out/conftest.err) |
---|
15888 | ac_status=$? |
---|
15889 | cat out/conftest.err >&5 |
---|
15890 | echo "$as_me:__oline__: \$? = $ac_status" >&5 |
---|
15891 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
15892 | then |
---|
15893 | # The compiler can only warn and ignore the option if not recognized |
---|
15894 | # So say no if there are warnings |
---|
15895 | if test ! -s out/conftest.err; then |
---|
15896 | lt_cv_prog_compiler_c_o_GCJ=yes |
---|
15897 | fi |
---|
15898 | fi |
---|
15899 | chmod u+w . |
---|
15900 | $rm conftest* |
---|
15901 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
15902 | # template instantiation |
---|
15903 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
15904 | $rm out/* && rmdir out |
---|
15905 | cd .. |
---|
15906 | rmdir conftest |
---|
15907 | $rm conftest* |
---|
15908 | |
---|
15909 | fi |
---|
15910 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
---|
15911 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
---|
15912 | |
---|
15913 | |
---|
15914 | hard_links="nottested" |
---|
15915 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
---|
15916 | # do not overwrite the value of need_locks provided by the user |
---|
15917 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
15918 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
15919 | hard_links=yes |
---|
15920 | $rm conftest* |
---|
15921 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
15922 | touch conftest.a |
---|
15923 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
15924 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
15925 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
15926 | echo "${ECHO_T}$hard_links" >&6 |
---|
15927 | if test "$hard_links" = no; then |
---|
15928 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
15929 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
15930 | need_locks=warn |
---|
15931 | fi |
---|
15932 | else |
---|
15933 | need_locks=no |
---|
15934 | fi |
---|
15935 | |
---|
15936 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
15937 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
15938 | |
---|
15939 | runpath_var= |
---|
15940 | allow_undefined_flag_GCJ= |
---|
15941 | enable_shared_with_static_runtimes_GCJ=no |
---|
15942 | archive_cmds_GCJ= |
---|
15943 | archive_expsym_cmds_GCJ= |
---|
15944 | old_archive_From_new_cmds_GCJ= |
---|
15945 | old_archive_from_expsyms_cmds_GCJ= |
---|
15946 | export_dynamic_flag_spec_GCJ= |
---|
15947 | whole_archive_flag_spec_GCJ= |
---|
15948 | thread_safe_flag_spec_GCJ= |
---|
15949 | hardcode_libdir_flag_spec_GCJ= |
---|
15950 | hardcode_libdir_flag_spec_ld_GCJ= |
---|
15951 | hardcode_libdir_separator_GCJ= |
---|
15952 | hardcode_direct_GCJ=no |
---|
15953 | hardcode_minus_L_GCJ=no |
---|
15954 | hardcode_shlibpath_var_GCJ=unsupported |
---|
15955 | link_all_deplibs_GCJ=unknown |
---|
15956 | hardcode_automatic_GCJ=no |
---|
15957 | module_cmds_GCJ= |
---|
15958 | module_expsym_cmds_GCJ= |
---|
15959 | always_export_symbols_GCJ=no |
---|
15960 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
15961 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
15962 | # included in the symbol list |
---|
15963 | include_expsyms_GCJ= |
---|
15964 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
15965 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
15966 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
15967 | # as well as any symbol that contains `d'. |
---|
15968 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
---|
15969 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
15970 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
15971 | # the symbol is explicitly referenced. Since portable code cannot |
---|
15972 | # rely on this symbol name, it's probably fine to never include it in |
---|
15973 | # preloaded symbol tables. |
---|
15974 | extract_expsyms_cmds= |
---|
15975 | |
---|
15976 | case $host_os in |
---|
15977 | cygwin* | mingw* | pw32*) |
---|
15978 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
15979 | # When not using gcc, we currently assume that we are using |
---|
15980 | # Microsoft Visual C++. |
---|
15981 | if test "$GCC" != yes; then |
---|
15982 | with_gnu_ld=no |
---|
15983 | fi |
---|
15984 | ;; |
---|
15985 | openbsd*) |
---|
15986 | with_gnu_ld=no |
---|
15987 | ;; |
---|
15988 | esac |
---|
15989 | |
---|
15990 | ld_shlibs_GCJ=yes |
---|
15991 | if test "$with_gnu_ld" = yes; then |
---|
15992 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
15993 | wlarc='${wl}' |
---|
15994 | |
---|
15995 | # See if GNU ld supports shared libraries. |
---|
15996 | case $host_os in |
---|
15997 | aix3* | aix4* | aix5*) |
---|
15998 | # On AIX/PPC, the GNU linker is very broken |
---|
15999 | if test "$host_cpu" != ia64; then |
---|
16000 | ld_shlibs_GCJ=no |
---|
16001 | cat <<EOF 1>&2 |
---|
16002 | |
---|
16003 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
16004 | *** to be unable to reliably create shared libraries on AIX. |
---|
16005 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
16006 | *** really care for shared libraries, you may want to modify your PATH |
---|
16007 | *** so that a non-GNU linker is found, and then restart. |
---|
16008 | |
---|
16009 | EOF |
---|
16010 | fi |
---|
16011 | ;; |
---|
16012 | |
---|
16013 | amigaos*) |
---|
16014 | 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)' |
---|
16015 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16016 | hardcode_minus_L_GCJ=yes |
---|
16017 | |
---|
16018 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
16019 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
16020 | # to version 4, is to share data among multiple programs linked |
---|
16021 | # with the same dynamic library. Since this doesn't match the |
---|
16022 | # behavior of shared libraries on other platforms, we can't use |
---|
16023 | # them. |
---|
16024 | ld_shlibs_GCJ=no |
---|
16025 | ;; |
---|
16026 | |
---|
16027 | beos*) |
---|
16028 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16029 | allow_undefined_flag_GCJ=unsupported |
---|
16030 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
16031 | # support --undefined. This deserves some investigation. FIXME |
---|
16032 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16033 | else |
---|
16034 | ld_shlibs_GCJ=no |
---|
16035 | fi |
---|
16036 | ;; |
---|
16037 | |
---|
16038 | cygwin* | mingw* | pw32*) |
---|
16039 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
---|
16040 | # as there is no search path for DLLs. |
---|
16041 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16042 | allow_undefined_flag_GCJ=unsupported |
---|
16043 | always_export_symbols_GCJ=no |
---|
16044 | enable_shared_with_static_runtimes_GCJ=yes |
---|
16045 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
16046 | |
---|
16047 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
16048 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
16049 | # If the export-symbols file already is a .def file (1st line |
---|
16050 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
16051 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
16052 | cp $export_symbols $output_objdir/$soname.def; |
---|
16053 | else |
---|
16054 | echo EXPORTS > $output_objdir/$soname.def; |
---|
16055 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
16056 | fi~ |
---|
16057 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
16058 | else |
---|
16059 | ld_shlibs=no |
---|
16060 | fi |
---|
16061 | ;; |
---|
16062 | |
---|
16063 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
16064 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
16065 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
16066 | wlarc= |
---|
16067 | else |
---|
16068 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16069 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
16070 | fi |
---|
16071 | ;; |
---|
16072 | |
---|
16073 | solaris* | sysv5*) |
---|
16074 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
16075 | ld_shlibs_GCJ=no |
---|
16076 | cat <<EOF 1>&2 |
---|
16077 | |
---|
16078 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
16079 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
16080 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
16081 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
16082 | *** your PATH or compiler configuration so that the native linker is |
---|
16083 | *** used, and then restart. |
---|
16084 | |
---|
16085 | EOF |
---|
16086 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16087 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16088 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
16089 | else |
---|
16090 | ld_shlibs_GCJ=no |
---|
16091 | fi |
---|
16092 | ;; |
---|
16093 | |
---|
16094 | sunos4*) |
---|
16095 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
16096 | wlarc= |
---|
16097 | hardcode_direct_GCJ=yes |
---|
16098 | hardcode_shlibpath_var_GCJ=no |
---|
16099 | ;; |
---|
16100 | |
---|
16101 | linux*) |
---|
16102 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16103 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16104 | archive_cmds_GCJ="$tmp_archive_cmds" |
---|
16105 | supports_anon_versioning=no |
---|
16106 | case `$LD -v 2>/dev/null` in |
---|
16107 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
16108 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
16109 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
16110 | *\ 2.11.*) ;; # other 2.11 versions |
---|
16111 | *) supports_anon_versioning=yes ;; |
---|
16112 | esac |
---|
16113 | if test $supports_anon_versioning = yes; then |
---|
16114 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
16115 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
16116 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
16117 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
16118 | else |
---|
16119 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
---|
16120 | fi |
---|
16121 | link_all_deplibs_GCJ=no |
---|
16122 | else |
---|
16123 | ld_shlibs_GCJ=no |
---|
16124 | fi |
---|
16125 | ;; |
---|
16126 | |
---|
16127 | *) |
---|
16128 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
16129 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
16130 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
16131 | else |
---|
16132 | ld_shlibs_GCJ=no |
---|
16133 | fi |
---|
16134 | ;; |
---|
16135 | esac |
---|
16136 | |
---|
16137 | if test "$ld_shlibs_GCJ" = yes; then |
---|
16138 | runpath_var=LD_RUN_PATH |
---|
16139 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
---|
16140 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
---|
16141 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
16142 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
16143 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
16144 | else |
---|
16145 | whole_archive_flag_spec_GCJ= |
---|
16146 | fi |
---|
16147 | fi |
---|
16148 | else |
---|
16149 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
16150 | case $host_os in |
---|
16151 | aix3*) |
---|
16152 | allow_undefined_flag_GCJ=unsupported |
---|
16153 | always_export_symbols_GCJ=yes |
---|
16154 | 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' |
---|
16155 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
16156 | # are no directories specified by -L. |
---|
16157 | hardcode_minus_L_GCJ=yes |
---|
16158 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
16159 | # Neither direct hardcoding nor static linking is supported with a |
---|
16160 | # broken collect2. |
---|
16161 | hardcode_direct_GCJ=unsupported |
---|
16162 | fi |
---|
16163 | ;; |
---|
16164 | |
---|
16165 | aix4* | aix5*) |
---|
16166 | if test "$host_cpu" = ia64; then |
---|
16167 | # On IA64, the linker does run time linking by default, so we don't |
---|
16168 | # have to do anything special. |
---|
16169 | aix_use_runtimelinking=no |
---|
16170 | exp_sym_flag='-Bexport' |
---|
16171 | no_entry_flag="" |
---|
16172 | else |
---|
16173 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
16174 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
16175 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
16176 | 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' |
---|
16177 | else |
---|
16178 | 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' |
---|
16179 | fi |
---|
16180 | aix_use_runtimelinking=no |
---|
16181 | |
---|
16182 | # Test if we are trying to use run time linking or normal |
---|
16183 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
16184 | # need to do runtime linking. |
---|
16185 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
16186 | for ld_flag in $LDFLAGS; do |
---|
16187 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
16188 | aix_use_runtimelinking=yes |
---|
16189 | break |
---|
16190 | fi |
---|
16191 | done |
---|
16192 | esac |
---|
16193 | |
---|
16194 | exp_sym_flag='-bexport' |
---|
16195 | no_entry_flag='-bnoentry' |
---|
16196 | fi |
---|
16197 | |
---|
16198 | # When large executables or shared objects are built, AIX ld can |
---|
16199 | # have problems creating the table of contents. If linking a library |
---|
16200 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
16201 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
16202 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
16203 | |
---|
16204 | archive_cmds_GCJ='' |
---|
16205 | hardcode_direct_GCJ=yes |
---|
16206 | hardcode_libdir_separator_GCJ=':' |
---|
16207 | link_all_deplibs_GCJ=yes |
---|
16208 | |
---|
16209 | if test "$GCC" = yes; then |
---|
16210 | case $host_os in aix4.012|aix4.012.*) |
---|
16211 | # We only want to do this on AIX 4.2 and lower, the check |
---|
16212 | # below for broken collect2 doesn't work under 4.3+ |
---|
16213 | collect2name=`${CC} -print-prog-name=collect2` |
---|
16214 | if test -f "$collect2name" && \ |
---|
16215 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
16216 | then |
---|
16217 | # We have reworked collect2 |
---|
16218 | hardcode_direct_GCJ=yes |
---|
16219 | else |
---|
16220 | # We have old collect2 |
---|
16221 | hardcode_direct_GCJ=unsupported |
---|
16222 | # It fails to find uninstalled libraries when the uninstalled |
---|
16223 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
16224 | # to unsupported forces relinking |
---|
16225 | hardcode_minus_L_GCJ=yes |
---|
16226 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16227 | hardcode_libdir_separator_GCJ= |
---|
16228 | fi |
---|
16229 | esac |
---|
16230 | shared_flag='-shared' |
---|
16231 | else |
---|
16232 | # not using gcc |
---|
16233 | if test "$host_cpu" = ia64; then |
---|
16234 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
16235 | # chokes on -Wl,-G. The following line is correct: |
---|
16236 | shared_flag='-G' |
---|
16237 | else |
---|
16238 | if test "$aix_use_runtimelinking" = yes; then |
---|
16239 | shared_flag='${wl}-G' |
---|
16240 | else |
---|
16241 | shared_flag='${wl}-bM:SRE' |
---|
16242 | fi |
---|
16243 | fi |
---|
16244 | fi |
---|
16245 | |
---|
16246 | # It seems that -bexpall does not export symbols beginning with |
---|
16247 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
16248 | always_export_symbols_GCJ=yes |
---|
16249 | if test "$aix_use_runtimelinking" = yes; then |
---|
16250 | # Warning - without using the other runtime loading flags (-brtl), |
---|
16251 | # -berok will link without error, but may produce a broken library. |
---|
16252 | allow_undefined_flag_GCJ='-berok' |
---|
16253 | # Determine the default libpath from the value encoded in an empty executable. |
---|
16254 | cat >conftest.$ac_ext <<_ACEOF |
---|
16255 | /* confdefs.h. */ |
---|
16256 | _ACEOF |
---|
16257 | cat confdefs.h >>conftest.$ac_ext |
---|
16258 | cat >>conftest.$ac_ext <<_ACEOF |
---|
16259 | /* end confdefs.h. */ |
---|
16260 | |
---|
16261 | int |
---|
16262 | main () |
---|
16263 | { |
---|
16264 | |
---|
16265 | ; |
---|
16266 | return 0; |
---|
16267 | } |
---|
16268 | _ACEOF |
---|
16269 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
16270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
16271 | (eval $ac_link) 2>conftest.er1 |
---|
16272 | ac_status=$? |
---|
16273 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
16274 | rm -f conftest.er1 |
---|
16275 | cat conftest.err >&5 |
---|
16276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16277 | (exit $ac_status); } && |
---|
16278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
16279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16280 | (eval $ac_try) 2>&5 |
---|
16281 | ac_status=$? |
---|
16282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16283 | (exit $ac_status); }; } && |
---|
16284 | { ac_try='test -s conftest$ac_exeext' |
---|
16285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16286 | (eval $ac_try) 2>&5 |
---|
16287 | ac_status=$? |
---|
16288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16289 | (exit $ac_status); }; }; then |
---|
16290 | |
---|
16291 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
16292 | }'` |
---|
16293 | # Check for a 64-bit object if we didn't find anything. |
---|
16294 | 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; } |
---|
16295 | }'`; fi |
---|
16296 | else |
---|
16297 | echo "$as_me: failed program was:" >&5 |
---|
16298 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
16299 | |
---|
16300 | fi |
---|
16301 | rm -f conftest.err conftest.$ac_objext \ |
---|
16302 | conftest$ac_exeext conftest.$ac_ext |
---|
16303 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
16304 | |
---|
16305 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
16306 | 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" |
---|
16307 | else |
---|
16308 | if test "$host_cpu" = ia64; then |
---|
16309 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
---|
16310 | allow_undefined_flag_GCJ="-z nodefs" |
---|
16311 | 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" |
---|
16312 | else |
---|
16313 | # Determine the default libpath from the value encoded in an empty executable. |
---|
16314 | cat >conftest.$ac_ext <<_ACEOF |
---|
16315 | /* confdefs.h. */ |
---|
16316 | _ACEOF |
---|
16317 | cat confdefs.h >>conftest.$ac_ext |
---|
16318 | cat >>conftest.$ac_ext <<_ACEOF |
---|
16319 | /* end confdefs.h. */ |
---|
16320 | |
---|
16321 | int |
---|
16322 | main () |
---|
16323 | { |
---|
16324 | |
---|
16325 | ; |
---|
16326 | return 0; |
---|
16327 | } |
---|
16328 | _ACEOF |
---|
16329 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
16330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
16331 | (eval $ac_link) 2>conftest.er1 |
---|
16332 | ac_status=$? |
---|
16333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
16334 | rm -f conftest.er1 |
---|
16335 | cat conftest.err >&5 |
---|
16336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16337 | (exit $ac_status); } && |
---|
16338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
16339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16340 | (eval $ac_try) 2>&5 |
---|
16341 | ac_status=$? |
---|
16342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16343 | (exit $ac_status); }; } && |
---|
16344 | { ac_try='test -s conftest$ac_exeext' |
---|
16345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
16346 | (eval $ac_try) 2>&5 |
---|
16347 | ac_status=$? |
---|
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16349 | (exit $ac_status); }; }; then |
---|
16350 | |
---|
16351 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
16352 | }'` |
---|
16353 | # Check for a 64-bit object if we didn't find anything. |
---|
16354 | 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; } |
---|
16355 | }'`; fi |
---|
16356 | else |
---|
16357 | echo "$as_me: failed program was:" >&5 |
---|
16358 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
16359 | |
---|
16360 | fi |
---|
16361 | rm -f conftest.err conftest.$ac_objext \ |
---|
16362 | conftest$ac_exeext conftest.$ac_ext |
---|
16363 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
16364 | |
---|
16365 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
16366 | # Warning - without using the other run time loading flags, |
---|
16367 | # -berok will link without error, but may produce a broken library. |
---|
16368 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
---|
16369 | allow_undefined_flag_GCJ=' ${wl}-berok' |
---|
16370 | # -bexpall does not export symbols beginning with underscore (_) |
---|
16371 | always_export_symbols_GCJ=yes |
---|
16372 | # Exported symbols can be pulled into shared objects from archives |
---|
16373 | whole_archive_flag_spec_GCJ=' ' |
---|
16374 | archive_cmds_need_lc_GCJ=yes |
---|
16375 | # This is similar to how AIX traditionally builds it's shared libraries. |
---|
16376 | 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' |
---|
16377 | fi |
---|
16378 | fi |
---|
16379 | ;; |
---|
16380 | |
---|
16381 | amigaos*) |
---|
16382 | 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)' |
---|
16383 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16384 | hardcode_minus_L_GCJ=yes |
---|
16385 | # see comment about different semantics on the GNU ld section |
---|
16386 | ld_shlibs_GCJ=no |
---|
16387 | ;; |
---|
16388 | |
---|
16389 | bsdi4*) |
---|
16390 | export_dynamic_flag_spec_GCJ=-rdynamic |
---|
16391 | ;; |
---|
16392 | |
---|
16393 | cygwin* | mingw* | pw32*) |
---|
16394 | # When not using gcc, we currently assume that we are using |
---|
16395 | # Microsoft Visual C++. |
---|
16396 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
16397 | # no search path for DLLs. |
---|
16398 | hardcode_libdir_flag_spec_GCJ=' ' |
---|
16399 | allow_undefined_flag_GCJ=unsupported |
---|
16400 | # Tell ltmain to make .lib files, not .a files. |
---|
16401 | libext=lib |
---|
16402 | # Tell ltmain to make .dll files, not .so files. |
---|
16403 | shrext_cmds=".dll" |
---|
16404 | # FIXME: Setting linknames here is a bad hack. |
---|
16405 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
16406 | # The linker will automatically build a .lib file if we build a DLL. |
---|
16407 | old_archive_From_new_cmds_GCJ='true' |
---|
16408 | # FIXME: Should let the user specify the lib program. |
---|
16409 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
16410 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
16411 | enable_shared_with_static_runtimes_GCJ=yes |
---|
16412 | ;; |
---|
16413 | |
---|
16414 | darwin* | rhapsody*) |
---|
16415 | if test "$GXX" = yes ; then |
---|
16416 | archive_cmds_need_lc_GCJ=no |
---|
16417 | case "$host_os" in |
---|
16418 | rhapsody* | darwin1.[012]) |
---|
16419 | allow_undefined_flag_GCJ='-undefined suppress' |
---|
16420 | ;; |
---|
16421 | *) # Darwin 1.3 on |
---|
16422 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
16423 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
---|
16424 | else |
---|
16425 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
16426 | 10.[012]) |
---|
16427 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
---|
16428 | ;; |
---|
16429 | 10.*) |
---|
16430 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
---|
16431 | ;; |
---|
16432 | esac |
---|
16433 | fi |
---|
16434 | ;; |
---|
16435 | esac |
---|
16436 | lt_int_apple_cc_single_mod=no |
---|
16437 | output_verbose_link_cmd='echo' |
---|
16438 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
---|
16439 | lt_int_apple_cc_single_mod=yes |
---|
16440 | fi |
---|
16441 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
16442 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
16443 | else |
---|
16444 | 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' |
---|
16445 | fi |
---|
16446 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
16447 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
---|
16448 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
16449 | 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}' |
---|
16450 | else |
---|
16451 | 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}' |
---|
16452 | fi |
---|
16453 | 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}' |
---|
16454 | hardcode_direct_GCJ=no |
---|
16455 | hardcode_automatic_GCJ=yes |
---|
16456 | hardcode_shlibpath_var_GCJ=unsupported |
---|
16457 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
---|
16458 | link_all_deplibs_GCJ=yes |
---|
16459 | else |
---|
16460 | ld_shlibs_GCJ=no |
---|
16461 | fi |
---|
16462 | ;; |
---|
16463 | |
---|
16464 | dgux*) |
---|
16465 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16466 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16467 | hardcode_shlibpath_var_GCJ=no |
---|
16468 | ;; |
---|
16469 | |
---|
16470 | freebsd1*) |
---|
16471 | ld_shlibs_GCJ=no |
---|
16472 | ;; |
---|
16473 | |
---|
16474 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
16475 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
16476 | # does not break anything, and helps significantly (at the cost of a little |
---|
16477 | # extra space). |
---|
16478 | freebsd2.2*) |
---|
16479 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
16480 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16481 | hardcode_direct_GCJ=yes |
---|
16482 | hardcode_shlibpath_var_GCJ=no |
---|
16483 | ;; |
---|
16484 | |
---|
16485 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
16486 | freebsd2*) |
---|
16487 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
16488 | hardcode_direct_GCJ=yes |
---|
16489 | hardcode_minus_L_GCJ=yes |
---|
16490 | hardcode_shlibpath_var_GCJ=no |
---|
16491 | ;; |
---|
16492 | |
---|
16493 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
16494 | freebsd* | kfreebsd*-gnu) |
---|
16495 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
16496 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16497 | hardcode_direct_GCJ=yes |
---|
16498 | hardcode_shlibpath_var_GCJ=no |
---|
16499 | ;; |
---|
16500 | |
---|
16501 | hpux9*) |
---|
16502 | if test "$GCC" = yes; then |
---|
16503 | 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' |
---|
16504 | else |
---|
16505 | 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' |
---|
16506 | fi |
---|
16507 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
16508 | hardcode_libdir_separator_GCJ=: |
---|
16509 | hardcode_direct_GCJ=yes |
---|
16510 | |
---|
16511 | # hardcode_minus_L: Not really in the search PATH, |
---|
16512 | # but as the default location of the library. |
---|
16513 | hardcode_minus_L_GCJ=yes |
---|
16514 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
16515 | ;; |
---|
16516 | |
---|
16517 | hpux10* | hpux11*) |
---|
16518 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
16519 | case "$host_cpu" in |
---|
16520 | hppa*64*|ia64*) |
---|
16521 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16522 | ;; |
---|
16523 | *) |
---|
16524 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
16525 | ;; |
---|
16526 | esac |
---|
16527 | else |
---|
16528 | case "$host_cpu" in |
---|
16529 | hppa*64*|ia64*) |
---|
16530 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16531 | ;; |
---|
16532 | *) |
---|
16533 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
16534 | ;; |
---|
16535 | esac |
---|
16536 | fi |
---|
16537 | if test "$with_gnu_ld" = no; then |
---|
16538 | case "$host_cpu" in |
---|
16539 | hppa*64*) |
---|
16540 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
16541 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
---|
16542 | hardcode_libdir_separator_GCJ=: |
---|
16543 | hardcode_direct_GCJ=no |
---|
16544 | hardcode_shlibpath_var_GCJ=no |
---|
16545 | ;; |
---|
16546 | ia64*) |
---|
16547 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16548 | hardcode_direct_GCJ=no |
---|
16549 | hardcode_shlibpath_var_GCJ=no |
---|
16550 | |
---|
16551 | # hardcode_minus_L: Not really in the search PATH, |
---|
16552 | # but as the default location of the library. |
---|
16553 | hardcode_minus_L_GCJ=yes |
---|
16554 | ;; |
---|
16555 | *) |
---|
16556 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
16557 | hardcode_libdir_separator_GCJ=: |
---|
16558 | hardcode_direct_GCJ=yes |
---|
16559 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
16560 | |
---|
16561 | # hardcode_minus_L: Not really in the search PATH, |
---|
16562 | # but as the default location of the library. |
---|
16563 | hardcode_minus_L_GCJ=yes |
---|
16564 | ;; |
---|
16565 | esac |
---|
16566 | fi |
---|
16567 | ;; |
---|
16568 | |
---|
16569 | irix5* | irix6* | nonstopux*) |
---|
16570 | if test "$GCC" = yes; then |
---|
16571 | 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' |
---|
16572 | else |
---|
16573 | 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' |
---|
16574 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
---|
16575 | fi |
---|
16576 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
16577 | hardcode_libdir_separator_GCJ=: |
---|
16578 | link_all_deplibs_GCJ=yes |
---|
16579 | ;; |
---|
16580 | |
---|
16581 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
---|
16582 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
16583 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
16584 | else |
---|
16585 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
16586 | fi |
---|
16587 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16588 | hardcode_direct_GCJ=yes |
---|
16589 | hardcode_shlibpath_var_GCJ=no |
---|
16590 | ;; |
---|
16591 | |
---|
16592 | newsos6) |
---|
16593 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16594 | hardcode_direct_GCJ=yes |
---|
16595 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
16596 | hardcode_libdir_separator_GCJ=: |
---|
16597 | hardcode_shlibpath_var_GCJ=no |
---|
16598 | ;; |
---|
16599 | |
---|
16600 | openbsd*) |
---|
16601 | hardcode_direct_GCJ=yes |
---|
16602 | hardcode_shlibpath_var_GCJ=no |
---|
16603 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
16604 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
16605 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
16606 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
16607 | else |
---|
16608 | case $host_os in |
---|
16609 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
16610 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
16611 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16612 | ;; |
---|
16613 | *) |
---|
16614 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
16615 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
16616 | ;; |
---|
16617 | esac |
---|
16618 | fi |
---|
16619 | ;; |
---|
16620 | |
---|
16621 | os2*) |
---|
16622 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16623 | hardcode_minus_L_GCJ=yes |
---|
16624 | allow_undefined_flag_GCJ=unsupported |
---|
16625 | 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' |
---|
16626 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
16627 | ;; |
---|
16628 | |
---|
16629 | osf3*) |
---|
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
16633 | else |
---|
16634 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
16635 | 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' |
---|
16636 | fi |
---|
16637 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
16638 | hardcode_libdir_separator_GCJ=: |
---|
16639 | ;; |
---|
16640 | |
---|
16641 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
16642 | if test "$GCC" = yes; then |
---|
16643 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
---|
16644 | 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' |
---|
16645 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
16646 | else |
---|
16647 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
16648 | 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' |
---|
16649 | 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~ |
---|
16650 | $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' |
---|
16651 | |
---|
16652 | # Both c and cxx compiler support -rpath directly |
---|
16653 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
---|
16654 | fi |
---|
16655 | hardcode_libdir_separator_GCJ=: |
---|
16656 | ;; |
---|
16657 | |
---|
16658 | sco3.2v5*) |
---|
16659 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16660 | hardcode_shlibpath_var_GCJ=no |
---|
16661 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
---|
16662 | runpath_var=LD_RUN_PATH |
---|
16663 | hardcode_runpath_var=yes |
---|
16664 | ;; |
---|
16665 | |
---|
16666 | solaris*) |
---|
16667 | no_undefined_flag_GCJ=' -z text' |
---|
16668 | if test "$GCC" = yes; then |
---|
16669 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16670 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
16671 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
16672 | else |
---|
16673 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16674 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
16675 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
16676 | fi |
---|
16677 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
16678 | hardcode_shlibpath_var_GCJ=no |
---|
16679 | case $host_os in |
---|
16680 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
16681 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
16682 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
---|
16683 | esac |
---|
16684 | link_all_deplibs_GCJ=yes |
---|
16685 | ;; |
---|
16686 | |
---|
16687 | sunos4*) |
---|
16688 | if test "x$host_vendor" = xsequent; then |
---|
16689 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
16690 | # files that make .init and .fini sections work. |
---|
16691 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16692 | else |
---|
16693 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
16694 | fi |
---|
16695 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16696 | hardcode_direct_GCJ=yes |
---|
16697 | hardcode_minus_L_GCJ=yes |
---|
16698 | hardcode_shlibpath_var_GCJ=no |
---|
16699 | ;; |
---|
16700 | |
---|
16701 | sysv4) |
---|
16702 | case $host_vendor in |
---|
16703 | sni) |
---|
16704 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16705 | hardcode_direct_GCJ=yes # is this really true??? |
---|
16706 | ;; |
---|
16707 | siemens) |
---|
16708 | ## LD is ld it makes a PLAMLIB |
---|
16709 | ## CC just makes a GrossModule. |
---|
16710 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
16711 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
---|
16712 | hardcode_direct_GCJ=no |
---|
16713 | ;; |
---|
16714 | motorola) |
---|
16715 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16716 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
---|
16717 | ;; |
---|
16718 | esac |
---|
16719 | runpath_var='LD_RUN_PATH' |
---|
16720 | hardcode_shlibpath_var_GCJ=no |
---|
16721 | ;; |
---|
16722 | |
---|
16723 | sysv4.3*) |
---|
16724 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16725 | hardcode_shlibpath_var_GCJ=no |
---|
16726 | export_dynamic_flag_spec_GCJ='-Bexport' |
---|
16727 | ;; |
---|
16728 | |
---|
16729 | sysv4*MP*) |
---|
16730 | if test -d /usr/nec; then |
---|
16731 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16732 | hardcode_shlibpath_var_GCJ=no |
---|
16733 | runpath_var=LD_RUN_PATH |
---|
16734 | hardcode_runpath_var=yes |
---|
16735 | ld_shlibs_GCJ=yes |
---|
16736 | fi |
---|
16737 | ;; |
---|
16738 | |
---|
16739 | sysv4.2uw2*) |
---|
16740 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
16741 | hardcode_direct_GCJ=yes |
---|
16742 | hardcode_minus_L_GCJ=no |
---|
16743 | hardcode_shlibpath_var_GCJ=no |
---|
16744 | hardcode_runpath_var=yes |
---|
16745 | runpath_var=LD_RUN_PATH |
---|
16746 | ;; |
---|
16747 | |
---|
16748 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
16749 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
---|
16750 | if test "$GCC" = yes; then |
---|
16751 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16752 | else |
---|
16753 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16754 | fi |
---|
16755 | runpath_var='LD_RUN_PATH' |
---|
16756 | hardcode_shlibpath_var_GCJ=no |
---|
16757 | ;; |
---|
16758 | |
---|
16759 | sysv5*) |
---|
16760 | no_undefined_flag_GCJ=' -z text' |
---|
16761 | # $CC -shared without GNU ld will not create a library from C++ |
---|
16762 | # object files and a static libstdc++, better avoid it by now |
---|
16763 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16764 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
16765 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
16766 | hardcode_libdir_flag_spec_GCJ= |
---|
16767 | hardcode_shlibpath_var_GCJ=no |
---|
16768 | runpath_var='LD_RUN_PATH' |
---|
16769 | ;; |
---|
16770 | |
---|
16771 | uts4*) |
---|
16772 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16773 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
16774 | hardcode_shlibpath_var_GCJ=no |
---|
16775 | ;; |
---|
16776 | |
---|
16777 | *) |
---|
16778 | ld_shlibs_GCJ=no |
---|
16779 | ;; |
---|
16780 | esac |
---|
16781 | fi |
---|
16782 | |
---|
16783 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
---|
16784 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
---|
16785 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
---|
16786 | |
---|
16787 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
16788 | if test "$GCC" = yes; then |
---|
16789 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
16790 | fi |
---|
16791 | |
---|
16792 | # |
---|
16793 | # Do we need to explicitly link libc? |
---|
16794 | # |
---|
16795 | case "x$archive_cmds_need_lc_GCJ" in |
---|
16796 | x|xyes) |
---|
16797 | # Assume -lc should be added |
---|
16798 | archive_cmds_need_lc_GCJ=yes |
---|
16799 | |
---|
16800 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
16801 | case $archive_cmds_GCJ in |
---|
16802 | *'~'*) |
---|
16803 | # FIXME: we may have to deal with multi-command sequences. |
---|
16804 | ;; |
---|
16805 | '$CC '*) |
---|
16806 | # Test whether the compiler implicitly links with -lc since on some |
---|
16807 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
16808 | # to ld, don't add -lc before -lgcc. |
---|
16809 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
16810 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
16811 | $rm conftest* |
---|
16812 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
16813 | |
---|
16814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
16815 | (eval $ac_compile) 2>&5 |
---|
16816 | ac_status=$? |
---|
16817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16818 | (exit $ac_status); } 2>conftest.err; then |
---|
16819 | soname=conftest |
---|
16820 | lib=conftest |
---|
16821 | libobjs=conftest.$ac_objext |
---|
16822 | deplibs= |
---|
16823 | wl=$lt_prog_compiler_wl_GCJ |
---|
16824 | compiler_flags=-v |
---|
16825 | linker_flags=-v |
---|
16826 | verstring= |
---|
16827 | output_objdir=. |
---|
16828 | libname=conftest |
---|
16829 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
---|
16830 | allow_undefined_flag_GCJ= |
---|
16831 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
16832 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
16833 | ac_status=$? |
---|
16834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16835 | (exit $ac_status); } |
---|
16836 | then |
---|
16837 | archive_cmds_need_lc_GCJ=no |
---|
16838 | else |
---|
16839 | archive_cmds_need_lc_GCJ=yes |
---|
16840 | fi |
---|
16841 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
---|
16842 | else |
---|
16843 | cat conftest.err 1>&5 |
---|
16844 | fi |
---|
16845 | $rm conftest* |
---|
16846 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
---|
16847 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
---|
16848 | ;; |
---|
16849 | esac |
---|
16850 | fi |
---|
16851 | ;; |
---|
16852 | esac |
---|
16853 | |
---|
16854 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
16855 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
16856 | library_names_spec= |
---|
16857 | libname_spec='lib$name' |
---|
16858 | soname_spec= |
---|
16859 | shrext_cmds=".so" |
---|
16860 | postinstall_cmds= |
---|
16861 | postuninstall_cmds= |
---|
16862 | finish_cmds= |
---|
16863 | finish_eval= |
---|
16864 | shlibpath_var= |
---|
16865 | shlibpath_overrides_runpath=unknown |
---|
16866 | version_type=none |
---|
16867 | dynamic_linker="$host_os ld.so" |
---|
16868 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
16869 | if test "$GCC" = yes; then |
---|
16870 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
16871 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
16872 | # if the path contains ";" then we assume it to be the separator |
---|
16873 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
16874 | # assumed that no part of a normal pathname contains ";" but that should |
---|
16875 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
16876 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
16877 | else |
---|
16878 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
16879 | fi |
---|
16880 | else |
---|
16881 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
16882 | fi |
---|
16883 | need_lib_prefix=unknown |
---|
16884 | hardcode_into_libs=no |
---|
16885 | |
---|
16886 | # when you set need_version to no, make sure it does not cause -set_version |
---|
16887 | # flags to be left without arguments |
---|
16888 | need_version=unknown |
---|
16889 | |
---|
16890 | case $host_os in |
---|
16891 | aix3*) |
---|
16892 | version_type=linux |
---|
16893 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
16894 | shlibpath_var=LIBPATH |
---|
16895 | |
---|
16896 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
16897 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16898 | ;; |
---|
16899 | |
---|
16900 | aix4* | aix5*) |
---|
16901 | version_type=linux |
---|
16902 | need_lib_prefix=no |
---|
16903 | need_version=no |
---|
16904 | hardcode_into_libs=yes |
---|
16905 | if test "$host_cpu" = ia64; then |
---|
16906 | # AIX 5 supports IA64 |
---|
16907 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
16908 | shlibpath_var=LD_LIBRARY_PATH |
---|
16909 | else |
---|
16910 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
16911 | # for dependence libraries. The import file would start with |
---|
16912 | # the line `#! .'. This would cause the generated library to |
---|
16913 | # depend on `.', always an invalid library. This was fixed in |
---|
16914 | # development snapshots of GCC prior to 3.0. |
---|
16915 | case $host_os in |
---|
16916 | aix4 | aix4.[01] | aix4.[01].*) |
---|
16917 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
16918 | echo ' yes ' |
---|
16919 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
16920 | : |
---|
16921 | else |
---|
16922 | can_build_shared=no |
---|
16923 | fi |
---|
16924 | ;; |
---|
16925 | esac |
---|
16926 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
16927 | # soname into executable. Probably we can add versioning support to |
---|
16928 | # collect2, so additional links can be useful in future. |
---|
16929 | if test "$aix_use_runtimelinking" = yes; then |
---|
16930 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
16931 | # instead of lib<name>.a to let people know that these are not |
---|
16932 | # typical AIX shared libraries. |
---|
16933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16934 | else |
---|
16935 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
16936 | # and later when we are not doing run time linking. |
---|
16937 | library_names_spec='${libname}${release}.a $libname.a' |
---|
16938 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16939 | fi |
---|
16940 | shlibpath_var=LIBPATH |
---|
16941 | fi |
---|
16942 | ;; |
---|
16943 | |
---|
16944 | amigaos*) |
---|
16945 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
16946 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
16947 | 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' |
---|
16948 | ;; |
---|
16949 | |
---|
16950 | beos*) |
---|
16951 | library_names_spec='${libname}${shared_ext}' |
---|
16952 | dynamic_linker="$host_os ld.so" |
---|
16953 | shlibpath_var=LIBRARY_PATH |
---|
16954 | ;; |
---|
16955 | |
---|
16956 | bsdi4*) |
---|
16957 | version_type=linux |
---|
16958 | need_version=no |
---|
16959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16960 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16961 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
16962 | shlibpath_var=LD_LIBRARY_PATH |
---|
16963 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
16964 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
16965 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
16966 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
16967 | # libtool to hard-code these into programs |
---|
16968 | ;; |
---|
16969 | |
---|
16970 | cygwin* | mingw* | pw32*) |
---|
16971 | version_type=windows |
---|
16972 | shrext_cmds=".dll" |
---|
16973 | need_version=no |
---|
16974 | need_lib_prefix=no |
---|
16975 | |
---|
16976 | case $GCC,$host_os in |
---|
16977 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
16978 | library_names_spec='$libname.dll.a' |
---|
16979 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
16980 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
16981 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
16982 | dldir=$destdir/`dirname \$dlpath`~ |
---|
16983 | test -d \$dldir || mkdir -p \$dldir~ |
---|
16984 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
16985 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
16986 | dlpath=$dir/\$dldll~ |
---|
16987 | $rm \$dlpath' |
---|
16988 | shlibpath_overrides_runpath=yes |
---|
16989 | |
---|
16990 | case $host_os in |
---|
16991 | cygwin*) |
---|
16992 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
16993 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16994 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
16995 | ;; |
---|
16996 | mingw*) |
---|
16997 | # MinGW DLLs use traditional 'lib' prefix |
---|
16998 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16999 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
17000 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
17001 | # It is most probably a Windows format PATH printed by |
---|
17002 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
17003 | # path with ; separators, and with drive letters. We can handle the |
---|
17004 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
17005 | # especially as we might pass files found there to a mingw objdump, |
---|
17006 | # which wouldn't understand a cygwinified path. Ahh. |
---|
17007 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
17008 | else |
---|
17009 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
17010 | fi |
---|
17011 | ;; |
---|
17012 | pw32*) |
---|
17013 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
17014 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
---|
17015 | ;; |
---|
17016 | esac |
---|
17017 | ;; |
---|
17018 | |
---|
17019 | *) |
---|
17020 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
17021 | ;; |
---|
17022 | esac |
---|
17023 | dynamic_linker='Win32 ld.exe' |
---|
17024 | # FIXME: first we should search . and the directory the executable is in |
---|
17025 | shlibpath_var=PATH |
---|
17026 | ;; |
---|
17027 | |
---|
17028 | darwin* | rhapsody*) |
---|
17029 | dynamic_linker="$host_os dyld" |
---|
17030 | version_type=darwin |
---|
17031 | need_lib_prefix=no |
---|
17032 | need_version=no |
---|
17033 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
17034 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
17035 | shlibpath_overrides_runpath=yes |
---|
17036 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
17037 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
---|
17038 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
17039 | if test "$GCC" = yes; then |
---|
17040 | 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"` |
---|
17041 | else |
---|
17042 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
17043 | fi |
---|
17044 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
17045 | ;; |
---|
17046 | |
---|
17047 | dgux*) |
---|
17048 | version_type=linux |
---|
17049 | need_lib_prefix=no |
---|
17050 | need_version=no |
---|
17051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
17052 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17053 | shlibpath_var=LD_LIBRARY_PATH |
---|
17054 | ;; |
---|
17055 | |
---|
17056 | freebsd1*) |
---|
17057 | dynamic_linker=no |
---|
17058 | ;; |
---|
17059 | |
---|
17060 | kfreebsd*-gnu) |
---|
17061 | version_type=linux |
---|
17062 | need_lib_prefix=no |
---|
17063 | need_version=no |
---|
17064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17065 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17066 | shlibpath_var=LD_LIBRARY_PATH |
---|
17067 | shlibpath_overrides_runpath=no |
---|
17068 | hardcode_into_libs=yes |
---|
17069 | dynamic_linker='GNU ld.so' |
---|
17070 | ;; |
---|
17071 | |
---|
17072 | freebsd*) |
---|
17073 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
17074 | version_type=freebsd-$objformat |
---|
17075 | case $version_type in |
---|
17076 | freebsd-elf*) |
---|
17077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
17078 | need_version=no |
---|
17079 | need_lib_prefix=no |
---|
17080 | ;; |
---|
17081 | freebsd-*) |
---|
17082 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
17083 | need_version=yes |
---|
17084 | ;; |
---|
17085 | esac |
---|
17086 | shlibpath_var=LD_LIBRARY_PATH |
---|
17087 | case $host_os in |
---|
17088 | freebsd2*) |
---|
17089 | shlibpath_overrides_runpath=yes |
---|
17090 | ;; |
---|
17091 | freebsd3.01* | freebsdelf3.01*) |
---|
17092 | shlibpath_overrides_runpath=yes |
---|
17093 | hardcode_into_libs=yes |
---|
17094 | ;; |
---|
17095 | *) # from 3.2 on |
---|
17096 | shlibpath_overrides_runpath=no |
---|
17097 | hardcode_into_libs=yes |
---|
17098 | ;; |
---|
17099 | esac |
---|
17100 | ;; |
---|
17101 | |
---|
17102 | gnu*) |
---|
17103 | version_type=linux |
---|
17104 | need_lib_prefix=no |
---|
17105 | need_version=no |
---|
17106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
17107 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17108 | shlibpath_var=LD_LIBRARY_PATH |
---|
17109 | hardcode_into_libs=yes |
---|
17110 | ;; |
---|
17111 | |
---|
17112 | hpux9* | hpux10* | hpux11*) |
---|
17113 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
17114 | # link against other versions. |
---|
17115 | version_type=sunos |
---|
17116 | need_lib_prefix=no |
---|
17117 | need_version=no |
---|
17118 | case "$host_cpu" in |
---|
17119 | ia64*) |
---|
17120 | shrext_cmds='.so' |
---|
17121 | hardcode_into_libs=yes |
---|
17122 | dynamic_linker="$host_os dld.so" |
---|
17123 | shlibpath_var=LD_LIBRARY_PATH |
---|
17124 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
17125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17126 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17127 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
17128 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
17129 | else |
---|
17130 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
17131 | fi |
---|
17132 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
17133 | ;; |
---|
17134 | hppa*64*) |
---|
17135 | shrext_cmds='.sl' |
---|
17136 | hardcode_into_libs=yes |
---|
17137 | dynamic_linker="$host_os dld.sl" |
---|
17138 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
17139 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
17140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17141 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17142 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
17143 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
17144 | ;; |
---|
17145 | *) |
---|
17146 | shrext_cmds='.sl' |
---|
17147 | dynamic_linker="$host_os dld.sl" |
---|
17148 | shlibpath_var=SHLIB_PATH |
---|
17149 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
17150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17151 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17152 | ;; |
---|
17153 | esac |
---|
17154 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
17155 | postinstall_cmds='chmod 555 $lib' |
---|
17156 | ;; |
---|
17157 | |
---|
17158 | irix5* | irix6* | nonstopux*) |
---|
17159 | case $host_os in |
---|
17160 | nonstopux*) version_type=nonstopux ;; |
---|
17161 | *) |
---|
17162 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
17163 | version_type=linux |
---|
17164 | else |
---|
17165 | version_type=irix |
---|
17166 | fi ;; |
---|
17167 | esac |
---|
17168 | need_lib_prefix=no |
---|
17169 | need_version=no |
---|
17170 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
17172 | case $host_os in |
---|
17173 | irix5* | nonstopux*) |
---|
17174 | libsuff= shlibsuff= |
---|
17175 | ;; |
---|
17176 | *) |
---|
17177 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
17178 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
17179 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
17180 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
17181 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
17182 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
17183 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
17184 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
17185 | esac |
---|
17186 | ;; |
---|
17187 | esac |
---|
17188 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
17189 | shlibpath_overrides_runpath=no |
---|
17190 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
17191 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
17192 | hardcode_into_libs=yes |
---|
17193 | ;; |
---|
17194 | |
---|
17195 | # No shared lib support for Linux oldld, aout, or coff. |
---|
17196 | linux*oldld* | linux*aout* | linux*coff*) |
---|
17197 | dynamic_linker=no |
---|
17198 | ;; |
---|
17199 | |
---|
17200 | # This must be Linux ELF. |
---|
17201 | linux*) |
---|
17202 | version_type=linux |
---|
17203 | need_lib_prefix=no |
---|
17204 | need_version=no |
---|
17205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17206 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17207 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
17208 | shlibpath_var=LD_LIBRARY_PATH |
---|
17209 | shlibpath_overrides_runpath=no |
---|
17210 | # This implies no fast_install, which is unacceptable. |
---|
17211 | # Some rework will be needed to allow for fast_install |
---|
17212 | # before this can be enabled. |
---|
17213 | hardcode_into_libs=yes |
---|
17214 | |
---|
17215 | # Append ld.so.conf contents to the search path |
---|
17216 | if test -f /etc/ld.so.conf; then |
---|
17217 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
---|
17218 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
17219 | fi |
---|
17220 | |
---|
17221 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
17222 | # powerpc, because MkLinux only supported shared libraries with the |
---|
17223 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
17224 | # most powerpc-linux boxes support dynamic linking these days and |
---|
17225 | # people can always --disable-shared, the test was removed, and we |
---|
17226 | # assume the GNU/Linux dynamic linker is in use. |
---|
17227 | dynamic_linker='GNU/Linux ld.so' |
---|
17228 | ;; |
---|
17229 | |
---|
17230 | netbsdelf*-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='NetBSD ld.elf_so' |
---|
17240 | ;; |
---|
17241 | |
---|
17242 | knetbsd*-gnu) |
---|
17243 | version_type=linux |
---|
17244 | need_lib_prefix=no |
---|
17245 | need_version=no |
---|
17246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17247 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17248 | shlibpath_var=LD_LIBRARY_PATH |
---|
17249 | shlibpath_overrides_runpath=no |
---|
17250 | hardcode_into_libs=yes |
---|
17251 | dynamic_linker='GNU ld.so' |
---|
17252 | ;; |
---|
17253 | |
---|
17254 | netbsd*) |
---|
17255 | version_type=sunos |
---|
17256 | need_lib_prefix=no |
---|
17257 | need_version=no |
---|
17258 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
17259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
17260 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
17261 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
17262 | else |
---|
17263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
17264 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17265 | dynamic_linker='NetBSD ld.elf_so' |
---|
17266 | fi |
---|
17267 | shlibpath_var=LD_LIBRARY_PATH |
---|
17268 | shlibpath_overrides_runpath=yes |
---|
17269 | hardcode_into_libs=yes |
---|
17270 | ;; |
---|
17271 | |
---|
17272 | newsos6) |
---|
17273 | version_type=linux |
---|
17274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17275 | shlibpath_var=LD_LIBRARY_PATH |
---|
17276 | shlibpath_overrides_runpath=yes |
---|
17277 | ;; |
---|
17278 | |
---|
17279 | nto-qnx*) |
---|
17280 | version_type=linux |
---|
17281 | need_lib_prefix=no |
---|
17282 | need_version=no |
---|
17283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17284 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17285 | shlibpath_var=LD_LIBRARY_PATH |
---|
17286 | shlibpath_overrides_runpath=yes |
---|
17287 | ;; |
---|
17288 | |
---|
17289 | openbsd*) |
---|
17290 | version_type=sunos |
---|
17291 | need_lib_prefix=no |
---|
17292 | need_version=yes |
---|
17293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
17294 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
17295 | shlibpath_var=LD_LIBRARY_PATH |
---|
17296 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
17297 | case $host_os in |
---|
17298 | openbsd2.[89] | openbsd2.[89].*) |
---|
17299 | shlibpath_overrides_runpath=no |
---|
17300 | ;; |
---|
17301 | *) |
---|
17302 | shlibpath_overrides_runpath=yes |
---|
17303 | ;; |
---|
17304 | esac |
---|
17305 | else |
---|
17306 | shlibpath_overrides_runpath=yes |
---|
17307 | fi |
---|
17308 | ;; |
---|
17309 | |
---|
17310 | os2*) |
---|
17311 | libname_spec='$name' |
---|
17312 | shrext_cmds=".dll" |
---|
17313 | need_lib_prefix=no |
---|
17314 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
17315 | dynamic_linker='OS/2 ld.exe' |
---|
17316 | shlibpath_var=LIBPATH |
---|
17317 | ;; |
---|
17318 | |
---|
17319 | osf3* | osf4* | osf5*) |
---|
17320 | version_type=osf |
---|
17321 | need_lib_prefix=no |
---|
17322 | need_version=no |
---|
17323 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17325 | shlibpath_var=LD_LIBRARY_PATH |
---|
17326 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
17327 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
17328 | ;; |
---|
17329 | |
---|
17330 | sco3.2v5*) |
---|
17331 | version_type=osf |
---|
17332 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17334 | shlibpath_var=LD_LIBRARY_PATH |
---|
17335 | ;; |
---|
17336 | |
---|
17337 | solaris*) |
---|
17338 | version_type=linux |
---|
17339 | need_lib_prefix=no |
---|
17340 | need_version=no |
---|
17341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17342 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17343 | shlibpath_var=LD_LIBRARY_PATH |
---|
17344 | shlibpath_overrides_runpath=yes |
---|
17345 | hardcode_into_libs=yes |
---|
17346 | # ldd complains unless libraries are executable |
---|
17347 | postinstall_cmds='chmod +x $lib' |
---|
17348 | ;; |
---|
17349 | |
---|
17350 | sunos4*) |
---|
17351 | version_type=sunos |
---|
17352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
17353 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
17354 | shlibpath_var=LD_LIBRARY_PATH |
---|
17355 | shlibpath_overrides_runpath=yes |
---|
17356 | if test "$with_gnu_ld" = yes; then |
---|
17357 | need_lib_prefix=no |
---|
17358 | fi |
---|
17359 | need_version=yes |
---|
17360 | ;; |
---|
17361 | |
---|
17362 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
17363 | version_type=linux |
---|
17364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17365 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17366 | shlibpath_var=LD_LIBRARY_PATH |
---|
17367 | case $host_vendor in |
---|
17368 | sni) |
---|
17369 | shlibpath_overrides_runpath=no |
---|
17370 | need_lib_prefix=no |
---|
17371 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
17372 | runpath_var=LD_RUN_PATH |
---|
17373 | ;; |
---|
17374 | siemens) |
---|
17375 | need_lib_prefix=no |
---|
17376 | ;; |
---|
17377 | motorola) |
---|
17378 | need_lib_prefix=no |
---|
17379 | need_version=no |
---|
17380 | shlibpath_overrides_runpath=no |
---|
17381 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
17382 | ;; |
---|
17383 | esac |
---|
17384 | ;; |
---|
17385 | |
---|
17386 | sysv4*MP*) |
---|
17387 | if test -d /usr/nec ;then |
---|
17388 | version_type=linux |
---|
17389 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
17390 | soname_spec='$libname${shared_ext}.$major' |
---|
17391 | shlibpath_var=LD_LIBRARY_PATH |
---|
17392 | fi |
---|
17393 | ;; |
---|
17394 | |
---|
17395 | uts4*) |
---|
17396 | version_type=linux |
---|
17397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
17398 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
17399 | shlibpath_var=LD_LIBRARY_PATH |
---|
17400 | ;; |
---|
17401 | |
---|
17402 | *) |
---|
17403 | dynamic_linker=no |
---|
17404 | ;; |
---|
17405 | esac |
---|
17406 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
17407 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
17408 | test "$dynamic_linker" = no && can_build_shared=no |
---|
17409 | |
---|
17410 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
17411 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
17412 | hardcode_action_GCJ= |
---|
17413 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
---|
17414 | test -n "$runpath_var GCJ" || \ |
---|
17415 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
---|
17416 | |
---|
17417 | # We can hardcode non-existant directories. |
---|
17418 | if test "$hardcode_direct_GCJ" != no && |
---|
17419 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
17420 | # have to relink, otherwise we might link with an installed library |
---|
17421 | # when we should be linking with a yet-to-be-installed one |
---|
17422 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
---|
17423 | test "$hardcode_minus_L_GCJ" != no; then |
---|
17424 | # Linking always hardcodes the temporary library directory. |
---|
17425 | hardcode_action_GCJ=relink |
---|
17426 | else |
---|
17427 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
17428 | hardcode_action_GCJ=immediate |
---|
17429 | fi |
---|
17430 | else |
---|
17431 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
17432 | # directories. |
---|
17433 | hardcode_action_GCJ=unsupported |
---|
17434 | fi |
---|
17435 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
---|
17436 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
---|
17437 | |
---|
17438 | if test "$hardcode_action_GCJ" = relink; then |
---|
17439 | # Fast installation is not supported |
---|
17440 | enable_fast_install=no |
---|
17441 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
17442 | test "$enable_shared" = no; then |
---|
17443 | # Fast installation is not necessary |
---|
17444 | enable_fast_install=needless |
---|
17445 | fi |
---|
17446 | |
---|
17447 | striplib= |
---|
17448 | old_striplib= |
---|
17449 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
17450 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
17451 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
17452 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
17453 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
17454 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
17455 | echo "${ECHO_T}yes" >&6 |
---|
17456 | else |
---|
17457 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
17458 | case $host_os in |
---|
17459 | darwin*) |
---|
17460 | if test -n "$STRIP" ; then |
---|
17461 | striplib="$STRIP -x" |
---|
17462 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
17463 | echo "${ECHO_T}yes" >&6 |
---|
17464 | else |
---|
17465 | echo "$as_me:$LINENO: result: no" >&5 |
---|
17466 | echo "${ECHO_T}no" >&6 |
---|
17467 | fi |
---|
17468 | ;; |
---|
17469 | *) |
---|
17470 | echo "$as_me:$LINENO: result: no" >&5 |
---|
17471 | echo "${ECHO_T}no" >&6 |
---|
17472 | ;; |
---|
17473 | esac |
---|
17474 | fi |
---|
17475 | |
---|
17476 | if test "x$enable_dlopen" != xyes; then |
---|
17477 | enable_dlopen=unknown |
---|
17478 | enable_dlopen_self=unknown |
---|
17479 | enable_dlopen_self_static=unknown |
---|
17480 | else |
---|
17481 | lt_cv_dlopen=no |
---|
17482 | lt_cv_dlopen_libs= |
---|
17483 | |
---|
17484 | case $host_os in |
---|
17485 | beos*) |
---|
17486 | lt_cv_dlopen="load_add_on" |
---|
17487 | lt_cv_dlopen_libs= |
---|
17488 | lt_cv_dlopen_self=yes |
---|
17489 | ;; |
---|
17490 | |
---|
17491 | mingw* | pw32*) |
---|
17492 | lt_cv_dlopen="LoadLibrary" |
---|
17493 | lt_cv_dlopen_libs= |
---|
17494 | ;; |
---|
17495 | |
---|
17496 | cygwin*) |
---|
17497 | lt_cv_dlopen="dlopen" |
---|
17498 | lt_cv_dlopen_libs= |
---|
17499 | ;; |
---|
17500 | |
---|
17501 | darwin*) |
---|
17502 | # if libdl is installed we need to link against it |
---|
17503 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
17504 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
17505 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
17506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17507 | else |
---|
17508 | ac_check_lib_save_LIBS=$LIBS |
---|
17509 | LIBS="-ldl $LIBS" |
---|
17510 | cat >conftest.$ac_ext <<_ACEOF |
---|
17511 | /* confdefs.h. */ |
---|
17512 | _ACEOF |
---|
17513 | cat confdefs.h >>conftest.$ac_ext |
---|
17514 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17515 | /* end confdefs.h. */ |
---|
17516 | |
---|
17517 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17518 | #ifdef __cplusplus |
---|
17519 | extern "C" |
---|
17520 | #endif |
---|
17521 | /* We use char because int might match the return type of a gcc2 |
---|
17522 | builtin and then its argument prototype would still apply. */ |
---|
17523 | char dlopen (); |
---|
17524 | int |
---|
17525 | main () |
---|
17526 | { |
---|
17527 | dlopen (); |
---|
17528 | ; |
---|
17529 | return 0; |
---|
17530 | } |
---|
17531 | _ACEOF |
---|
17532 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17534 | (eval $ac_link) 2>conftest.er1 |
---|
17535 | ac_status=$? |
---|
17536 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17537 | rm -f conftest.er1 |
---|
17538 | cat conftest.err >&5 |
---|
17539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17540 | (exit $ac_status); } && |
---|
17541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17543 | (eval $ac_try) 2>&5 |
---|
17544 | ac_status=$? |
---|
17545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17546 | (exit $ac_status); }; } && |
---|
17547 | { ac_try='test -s conftest$ac_exeext' |
---|
17548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17549 | (eval $ac_try) 2>&5 |
---|
17550 | ac_status=$? |
---|
17551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17552 | (exit $ac_status); }; }; then |
---|
17553 | ac_cv_lib_dl_dlopen=yes |
---|
17554 | else |
---|
17555 | echo "$as_me: failed program was:" >&5 |
---|
17556 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17557 | |
---|
17558 | ac_cv_lib_dl_dlopen=no |
---|
17559 | fi |
---|
17560 | rm -f conftest.err conftest.$ac_objext \ |
---|
17561 | conftest$ac_exeext conftest.$ac_ext |
---|
17562 | LIBS=$ac_check_lib_save_LIBS |
---|
17563 | fi |
---|
17564 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
17565 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
17566 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
17567 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
17568 | else |
---|
17569 | |
---|
17570 | lt_cv_dlopen="dyld" |
---|
17571 | lt_cv_dlopen_libs= |
---|
17572 | lt_cv_dlopen_self=yes |
---|
17573 | |
---|
17574 | fi |
---|
17575 | |
---|
17576 | ;; |
---|
17577 | |
---|
17578 | *) |
---|
17579 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
17580 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
17581 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
17582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17583 | else |
---|
17584 | cat >conftest.$ac_ext <<_ACEOF |
---|
17585 | /* confdefs.h. */ |
---|
17586 | _ACEOF |
---|
17587 | cat confdefs.h >>conftest.$ac_ext |
---|
17588 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17589 | /* end confdefs.h. */ |
---|
17590 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
17591 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
17592 | #define shl_load innocuous_shl_load |
---|
17593 | |
---|
17594 | /* System header to define __stub macros and hopefully few prototypes, |
---|
17595 | which can conflict with char shl_load (); below. |
---|
17596 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
17597 | <limits.h> exists even on freestanding compilers. */ |
---|
17598 | |
---|
17599 | #ifdef __STDC__ |
---|
17600 | # include <limits.h> |
---|
17601 | #else |
---|
17602 | # include <assert.h> |
---|
17603 | #endif |
---|
17604 | |
---|
17605 | #undef shl_load |
---|
17606 | |
---|
17607 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17608 | #ifdef __cplusplus |
---|
17609 | extern "C" |
---|
17610 | { |
---|
17611 | #endif |
---|
17612 | /* We use char because int might match the return type of a gcc2 |
---|
17613 | builtin and then its argument prototype would still apply. */ |
---|
17614 | char shl_load (); |
---|
17615 | /* The GNU C library defines this for functions which it implements |
---|
17616 | to always fail with ENOSYS. Some functions are actually named |
---|
17617 | something starting with __ and the normal name is an alias. */ |
---|
17618 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
17619 | choke me |
---|
17620 | #else |
---|
17621 | char (*f) () = shl_load; |
---|
17622 | #endif |
---|
17623 | #ifdef __cplusplus |
---|
17624 | } |
---|
17625 | #endif |
---|
17626 | |
---|
17627 | int |
---|
17628 | main () |
---|
17629 | { |
---|
17630 | return f != shl_load; |
---|
17631 | ; |
---|
17632 | return 0; |
---|
17633 | } |
---|
17634 | _ACEOF |
---|
17635 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17637 | (eval $ac_link) 2>conftest.er1 |
---|
17638 | ac_status=$? |
---|
17639 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17640 | rm -f conftest.er1 |
---|
17641 | cat conftest.err >&5 |
---|
17642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17643 | (exit $ac_status); } && |
---|
17644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17646 | (eval $ac_try) 2>&5 |
---|
17647 | ac_status=$? |
---|
17648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17649 | (exit $ac_status); }; } && |
---|
17650 | { ac_try='test -s conftest$ac_exeext' |
---|
17651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17652 | (eval $ac_try) 2>&5 |
---|
17653 | ac_status=$? |
---|
17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17655 | (exit $ac_status); }; }; then |
---|
17656 | ac_cv_func_shl_load=yes |
---|
17657 | else |
---|
17658 | echo "$as_me: failed program was:" >&5 |
---|
17659 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17660 | |
---|
17661 | ac_cv_func_shl_load=no |
---|
17662 | fi |
---|
17663 | rm -f conftest.err conftest.$ac_objext \ |
---|
17664 | conftest$ac_exeext conftest.$ac_ext |
---|
17665 | fi |
---|
17666 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
17667 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
17668 | if test $ac_cv_func_shl_load = yes; then |
---|
17669 | lt_cv_dlopen="shl_load" |
---|
17670 | else |
---|
17671 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
17672 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
17673 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
17674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17675 | else |
---|
17676 | ac_check_lib_save_LIBS=$LIBS |
---|
17677 | LIBS="-ldld $LIBS" |
---|
17678 | cat >conftest.$ac_ext <<_ACEOF |
---|
17679 | /* confdefs.h. */ |
---|
17680 | _ACEOF |
---|
17681 | cat confdefs.h >>conftest.$ac_ext |
---|
17682 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17683 | /* end confdefs.h. */ |
---|
17684 | |
---|
17685 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17686 | #ifdef __cplusplus |
---|
17687 | extern "C" |
---|
17688 | #endif |
---|
17689 | /* We use char because int might match the return type of a gcc2 |
---|
17690 | builtin and then its argument prototype would still apply. */ |
---|
17691 | char shl_load (); |
---|
17692 | int |
---|
17693 | main () |
---|
17694 | { |
---|
17695 | shl_load (); |
---|
17696 | ; |
---|
17697 | return 0; |
---|
17698 | } |
---|
17699 | _ACEOF |
---|
17700 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17702 | (eval $ac_link) 2>conftest.er1 |
---|
17703 | ac_status=$? |
---|
17704 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17705 | rm -f conftest.er1 |
---|
17706 | cat conftest.err >&5 |
---|
17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17708 | (exit $ac_status); } && |
---|
17709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17711 | (eval $ac_try) 2>&5 |
---|
17712 | ac_status=$? |
---|
17713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17714 | (exit $ac_status); }; } && |
---|
17715 | { ac_try='test -s conftest$ac_exeext' |
---|
17716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17717 | (eval $ac_try) 2>&5 |
---|
17718 | ac_status=$? |
---|
17719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17720 | (exit $ac_status); }; }; then |
---|
17721 | ac_cv_lib_dld_shl_load=yes |
---|
17722 | else |
---|
17723 | echo "$as_me: failed program was:" >&5 |
---|
17724 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17725 | |
---|
17726 | ac_cv_lib_dld_shl_load=no |
---|
17727 | fi |
---|
17728 | rm -f conftest.err conftest.$ac_objext \ |
---|
17729 | conftest$ac_exeext conftest.$ac_ext |
---|
17730 | LIBS=$ac_check_lib_save_LIBS |
---|
17731 | fi |
---|
17732 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
17733 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
17734 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
17735 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
17736 | else |
---|
17737 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
17738 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
17739 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
17740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17741 | else |
---|
17742 | cat >conftest.$ac_ext <<_ACEOF |
---|
17743 | /* confdefs.h. */ |
---|
17744 | _ACEOF |
---|
17745 | cat confdefs.h >>conftest.$ac_ext |
---|
17746 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17747 | /* end confdefs.h. */ |
---|
17748 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
17749 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
17750 | #define dlopen innocuous_dlopen |
---|
17751 | |
---|
17752 | /* System header to define __stub macros and hopefully few prototypes, |
---|
17753 | which can conflict with char dlopen (); below. |
---|
17754 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
17755 | <limits.h> exists even on freestanding compilers. */ |
---|
17756 | |
---|
17757 | #ifdef __STDC__ |
---|
17758 | # include <limits.h> |
---|
17759 | #else |
---|
17760 | # include <assert.h> |
---|
17761 | #endif |
---|
17762 | |
---|
17763 | #undef dlopen |
---|
17764 | |
---|
17765 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17766 | #ifdef __cplusplus |
---|
17767 | extern "C" |
---|
17768 | { |
---|
17769 | #endif |
---|
17770 | /* We use char because int might match the return type of a gcc2 |
---|
17771 | builtin and then its argument prototype would still apply. */ |
---|
17772 | char dlopen (); |
---|
17773 | /* The GNU C library defines this for functions which it implements |
---|
17774 | to always fail with ENOSYS. Some functions are actually named |
---|
17775 | something starting with __ and the normal name is an alias. */ |
---|
17776 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
17777 | choke me |
---|
17778 | #else |
---|
17779 | char (*f) () = dlopen; |
---|
17780 | #endif |
---|
17781 | #ifdef __cplusplus |
---|
17782 | } |
---|
17783 | #endif |
---|
17784 | |
---|
17785 | int |
---|
17786 | main () |
---|
17787 | { |
---|
17788 | return f != dlopen; |
---|
17789 | ; |
---|
17790 | return 0; |
---|
17791 | } |
---|
17792 | _ACEOF |
---|
17793 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17794 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17795 | (eval $ac_link) 2>conftest.er1 |
---|
17796 | ac_status=$? |
---|
17797 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17798 | rm -f conftest.er1 |
---|
17799 | cat conftest.err >&5 |
---|
17800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17801 | (exit $ac_status); } && |
---|
17802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17804 | (eval $ac_try) 2>&5 |
---|
17805 | ac_status=$? |
---|
17806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17807 | (exit $ac_status); }; } && |
---|
17808 | { ac_try='test -s conftest$ac_exeext' |
---|
17809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17810 | (eval $ac_try) 2>&5 |
---|
17811 | ac_status=$? |
---|
17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17813 | (exit $ac_status); }; }; then |
---|
17814 | ac_cv_func_dlopen=yes |
---|
17815 | else |
---|
17816 | echo "$as_me: failed program was:" >&5 |
---|
17817 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17818 | |
---|
17819 | ac_cv_func_dlopen=no |
---|
17820 | fi |
---|
17821 | rm -f conftest.err conftest.$ac_objext \ |
---|
17822 | conftest$ac_exeext conftest.$ac_ext |
---|
17823 | fi |
---|
17824 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
17825 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
17826 | if test $ac_cv_func_dlopen = yes; then |
---|
17827 | lt_cv_dlopen="dlopen" |
---|
17828 | else |
---|
17829 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
17830 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
17831 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
17832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17833 | else |
---|
17834 | ac_check_lib_save_LIBS=$LIBS |
---|
17835 | LIBS="-ldl $LIBS" |
---|
17836 | cat >conftest.$ac_ext <<_ACEOF |
---|
17837 | /* confdefs.h. */ |
---|
17838 | _ACEOF |
---|
17839 | cat confdefs.h >>conftest.$ac_ext |
---|
17840 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17841 | /* end confdefs.h. */ |
---|
17842 | |
---|
17843 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17844 | #ifdef __cplusplus |
---|
17845 | extern "C" |
---|
17846 | #endif |
---|
17847 | /* We use char because int might match the return type of a gcc2 |
---|
17848 | builtin and then its argument prototype would still apply. */ |
---|
17849 | char dlopen (); |
---|
17850 | int |
---|
17851 | main () |
---|
17852 | { |
---|
17853 | dlopen (); |
---|
17854 | ; |
---|
17855 | return 0; |
---|
17856 | } |
---|
17857 | _ACEOF |
---|
17858 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17860 | (eval $ac_link) 2>conftest.er1 |
---|
17861 | ac_status=$? |
---|
17862 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17863 | rm -f conftest.er1 |
---|
17864 | cat conftest.err >&5 |
---|
17865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17866 | (exit $ac_status); } && |
---|
17867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17869 | (eval $ac_try) 2>&5 |
---|
17870 | ac_status=$? |
---|
17871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17872 | (exit $ac_status); }; } && |
---|
17873 | { ac_try='test -s conftest$ac_exeext' |
---|
17874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17875 | (eval $ac_try) 2>&5 |
---|
17876 | ac_status=$? |
---|
17877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17878 | (exit $ac_status); }; }; then |
---|
17879 | ac_cv_lib_dl_dlopen=yes |
---|
17880 | else |
---|
17881 | echo "$as_me: failed program was:" >&5 |
---|
17882 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17883 | |
---|
17884 | ac_cv_lib_dl_dlopen=no |
---|
17885 | fi |
---|
17886 | rm -f conftest.err conftest.$ac_objext \ |
---|
17887 | conftest$ac_exeext conftest.$ac_ext |
---|
17888 | LIBS=$ac_check_lib_save_LIBS |
---|
17889 | fi |
---|
17890 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
17891 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
17892 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
17893 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
17894 | else |
---|
17895 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
17896 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
17897 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
17898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17899 | else |
---|
17900 | ac_check_lib_save_LIBS=$LIBS |
---|
17901 | LIBS="-lsvld $LIBS" |
---|
17902 | cat >conftest.$ac_ext <<_ACEOF |
---|
17903 | /* confdefs.h. */ |
---|
17904 | _ACEOF |
---|
17905 | cat confdefs.h >>conftest.$ac_ext |
---|
17906 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17907 | /* end confdefs.h. */ |
---|
17908 | |
---|
17909 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17910 | #ifdef __cplusplus |
---|
17911 | extern "C" |
---|
17912 | #endif |
---|
17913 | /* We use char because int might match the return type of a gcc2 |
---|
17914 | builtin and then its argument prototype would still apply. */ |
---|
17915 | char dlopen (); |
---|
17916 | int |
---|
17917 | main () |
---|
17918 | { |
---|
17919 | dlopen (); |
---|
17920 | ; |
---|
17921 | return 0; |
---|
17922 | } |
---|
17923 | _ACEOF |
---|
17924 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17926 | (eval $ac_link) 2>conftest.er1 |
---|
17927 | ac_status=$? |
---|
17928 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17929 | rm -f conftest.er1 |
---|
17930 | cat conftest.err >&5 |
---|
17931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17932 | (exit $ac_status); } && |
---|
17933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
17934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17935 | (eval $ac_try) 2>&5 |
---|
17936 | ac_status=$? |
---|
17937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17938 | (exit $ac_status); }; } && |
---|
17939 | { ac_try='test -s conftest$ac_exeext' |
---|
17940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
17941 | (eval $ac_try) 2>&5 |
---|
17942 | ac_status=$? |
---|
17943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17944 | (exit $ac_status); }; }; then |
---|
17945 | ac_cv_lib_svld_dlopen=yes |
---|
17946 | else |
---|
17947 | echo "$as_me: failed program was:" >&5 |
---|
17948 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17949 | |
---|
17950 | ac_cv_lib_svld_dlopen=no |
---|
17951 | fi |
---|
17952 | rm -f conftest.err conftest.$ac_objext \ |
---|
17953 | conftest$ac_exeext conftest.$ac_ext |
---|
17954 | LIBS=$ac_check_lib_save_LIBS |
---|
17955 | fi |
---|
17956 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
17957 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
17958 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
17959 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
17960 | else |
---|
17961 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
17962 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
17963 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
17964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17965 | else |
---|
17966 | ac_check_lib_save_LIBS=$LIBS |
---|
17967 | LIBS="-ldld $LIBS" |
---|
17968 | cat >conftest.$ac_ext <<_ACEOF |
---|
17969 | /* confdefs.h. */ |
---|
17970 | _ACEOF |
---|
17971 | cat confdefs.h >>conftest.$ac_ext |
---|
17972 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17973 | /* end confdefs.h. */ |
---|
17974 | |
---|
17975 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
17976 | #ifdef __cplusplus |
---|
17977 | extern "C" |
---|
17978 | #endif |
---|
17979 | /* We use char because int might match the return type of a gcc2 |
---|
17980 | builtin and then its argument prototype would still apply. */ |
---|
17981 | char dld_link (); |
---|
17982 | int |
---|
17983 | main () |
---|
17984 | { |
---|
17985 | dld_link (); |
---|
17986 | ; |
---|
17987 | return 0; |
---|
17988 | } |
---|
17989 | _ACEOF |
---|
17990 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
17992 | (eval $ac_link) 2>conftest.er1 |
---|
17993 | ac_status=$? |
---|
17994 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17995 | rm -f conftest.er1 |
---|
17996 | cat conftest.err >&5 |
---|
17997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17998 | (exit $ac_status); } && |
---|
17999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
18000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18001 | (eval $ac_try) 2>&5 |
---|
18002 | ac_status=$? |
---|
18003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18004 | (exit $ac_status); }; } && |
---|
18005 | { ac_try='test -s conftest$ac_exeext' |
---|
18006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
18007 | (eval $ac_try) 2>&5 |
---|
18008 | ac_status=$? |
---|
18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18010 | (exit $ac_status); }; }; then |
---|
18011 | ac_cv_lib_dld_dld_link=yes |
---|
18012 | else |
---|
18013 | echo "$as_me: failed program was:" >&5 |
---|
18014 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18015 | |
---|
18016 | ac_cv_lib_dld_dld_link=no |
---|
18017 | fi |
---|
18018 | rm -f conftest.err conftest.$ac_objext \ |
---|
18019 | conftest$ac_exeext conftest.$ac_ext |
---|
18020 | LIBS=$ac_check_lib_save_LIBS |
---|
18021 | fi |
---|
18022 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
18023 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
18024 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
18025 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
18026 | fi |
---|
18027 | |
---|
18028 | |
---|
18029 | fi |
---|
18030 | |
---|
18031 | |
---|
18032 | fi |
---|
18033 | |
---|
18034 | |
---|
18035 | fi |
---|
18036 | |
---|
18037 | |
---|
18038 | fi |
---|
18039 | |
---|
18040 | |
---|
18041 | fi |
---|
18042 | |
---|
18043 | ;; |
---|
18044 | esac |
---|
18045 | |
---|
18046 | if test "x$lt_cv_dlopen" != xno; then |
---|
18047 | enable_dlopen=yes |
---|
18048 | else |
---|
18049 | enable_dlopen=no |
---|
18050 | fi |
---|
18051 | |
---|
18052 | case $lt_cv_dlopen in |
---|
18053 | dlopen) |
---|
18054 | save_CPPFLAGS="$CPPFLAGS" |
---|
18055 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
18056 | |
---|
18057 | save_LDFLAGS="$LDFLAGS" |
---|
18058 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
18059 | |
---|
18060 | save_LIBS="$LIBS" |
---|
18061 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
18062 | |
---|
18063 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
18064 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
18065 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
18066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18067 | else |
---|
18068 | if test "$cross_compiling" = yes; then : |
---|
18069 | lt_cv_dlopen_self=cross |
---|
18070 | else |
---|
18071 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
18072 | lt_status=$lt_dlunknown |
---|
18073 | cat > conftest.$ac_ext <<EOF |
---|
18074 | #line __oline__ "configure" |
---|
18075 | #include "confdefs.h" |
---|
18076 | |
---|
18077 | #if HAVE_DLFCN_H |
---|
18078 | #include <dlfcn.h> |
---|
18079 | #endif |
---|
18080 | |
---|
18081 | #include <stdio.h> |
---|
18082 | |
---|
18083 | #ifdef RTLD_GLOBAL |
---|
18084 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
18085 | #else |
---|
18086 | # ifdef DL_GLOBAL |
---|
18087 | # define LT_DLGLOBAL DL_GLOBAL |
---|
18088 | # else |
---|
18089 | # define LT_DLGLOBAL 0 |
---|
18090 | # endif |
---|
18091 | #endif |
---|
18092 | |
---|
18093 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
18094 | find out it does not work in some platform. */ |
---|
18095 | #ifndef LT_DLLAZY_OR_NOW |
---|
18096 | # ifdef RTLD_LAZY |
---|
18097 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
18098 | # else |
---|
18099 | # ifdef DL_LAZY |
---|
18100 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
18101 | # else |
---|
18102 | # ifdef RTLD_NOW |
---|
18103 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
18104 | # else |
---|
18105 | # ifdef DL_NOW |
---|
18106 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
18107 | # else |
---|
18108 | # define LT_DLLAZY_OR_NOW 0 |
---|
18109 | # endif |
---|
18110 | # endif |
---|
18111 | # endif |
---|
18112 | # endif |
---|
18113 | #endif |
---|
18114 | |
---|
18115 | #ifdef __cplusplus |
---|
18116 | extern "C" void exit (int); |
---|
18117 | #endif |
---|
18118 | |
---|
18119 | void fnord() { int i=42;} |
---|
18120 | int main () |
---|
18121 | { |
---|
18122 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
18123 | int status = $lt_dlunknown; |
---|
18124 | |
---|
18125 | if (self) |
---|
18126 | { |
---|
18127 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
18128 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
18129 | /* dlclose (self); */ |
---|
18130 | } |
---|
18131 | |
---|
18132 | exit (status); |
---|
18133 | } |
---|
18134 | EOF |
---|
18135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18136 | (eval $ac_link) 2>&5 |
---|
18137 | ac_status=$? |
---|
18138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18139 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
18140 | (./conftest; exit; ) 2>/dev/null |
---|
18141 | lt_status=$? |
---|
18142 | case x$lt_status in |
---|
18143 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
18144 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
18145 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
18146 | esac |
---|
18147 | else : |
---|
18148 | # compilation failed |
---|
18149 | lt_cv_dlopen_self=no |
---|
18150 | fi |
---|
18151 | fi |
---|
18152 | rm -fr conftest* |
---|
18153 | |
---|
18154 | |
---|
18155 | fi |
---|
18156 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
18157 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
18158 | |
---|
18159 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
18160 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
18161 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
18162 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
18163 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
18164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
18165 | else |
---|
18166 | if test "$cross_compiling" = yes; then : |
---|
18167 | lt_cv_dlopen_self_static=cross |
---|
18168 | else |
---|
18169 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
18170 | lt_status=$lt_dlunknown |
---|
18171 | cat > conftest.$ac_ext <<EOF |
---|
18172 | #line __oline__ "configure" |
---|
18173 | #include "confdefs.h" |
---|
18174 | |
---|
18175 | #if HAVE_DLFCN_H |
---|
18176 | #include <dlfcn.h> |
---|
18177 | #endif |
---|
18178 | |
---|
18179 | #include <stdio.h> |
---|
18180 | |
---|
18181 | #ifdef RTLD_GLOBAL |
---|
18182 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
18183 | #else |
---|
18184 | # ifdef DL_GLOBAL |
---|
18185 | # define LT_DLGLOBAL DL_GLOBAL |
---|
18186 | # else |
---|
18187 | # define LT_DLGLOBAL 0 |
---|
18188 | # endif |
---|
18189 | #endif |
---|
18190 | |
---|
18191 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
18192 | find out it does not work in some platform. */ |
---|
18193 | #ifndef LT_DLLAZY_OR_NOW |
---|
18194 | # ifdef RTLD_LAZY |
---|
18195 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
18196 | # else |
---|
18197 | # ifdef DL_LAZY |
---|
18198 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
18199 | # else |
---|
18200 | # ifdef RTLD_NOW |
---|
18201 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
18202 | # else |
---|
18203 | # ifdef DL_NOW |
---|
18204 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
18205 | # else |
---|
18206 | # define LT_DLLAZY_OR_NOW 0 |
---|
18207 | # endif |
---|
18208 | # endif |
---|
18209 | # endif |
---|
18210 | # endif |
---|
18211 | #endif |
---|
18212 | |
---|
18213 | #ifdef __cplusplus |
---|
18214 | extern "C" void exit (int); |
---|
18215 | #endif |
---|
18216 | |
---|
18217 | void fnord() { int i=42;} |
---|
18218 | int main () |
---|
18219 | { |
---|
18220 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
18221 | int status = $lt_dlunknown; |
---|
18222 | |
---|
18223 | if (self) |
---|
18224 | { |
---|
18225 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
18226 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
18227 | /* dlclose (self); */ |
---|
18228 | } |
---|
18229 | |
---|
18230 | exit (status); |
---|
18231 | } |
---|
18232 | EOF |
---|
18233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
18234 | (eval $ac_link) 2>&5 |
---|
18235 | ac_status=$? |
---|
18236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18237 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
18238 | (./conftest; exit; ) 2>/dev/null |
---|
18239 | lt_status=$? |
---|
18240 | case x$lt_status in |
---|
18241 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
18242 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
18243 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
18244 | esac |
---|
18245 | else : |
---|
18246 | # compilation failed |
---|
18247 | lt_cv_dlopen_self_static=no |
---|
18248 | fi |
---|
18249 | fi |
---|
18250 | rm -fr conftest* |
---|
18251 | |
---|
18252 | |
---|
18253 | fi |
---|
18254 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
18255 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
18256 | fi |
---|
18257 | |
---|
18258 | CPPFLAGS="$save_CPPFLAGS" |
---|
18259 | LDFLAGS="$save_LDFLAGS" |
---|
18260 | LIBS="$save_LIBS" |
---|
18261 | ;; |
---|
18262 | esac |
---|
18263 | |
---|
18264 | case $lt_cv_dlopen_self in |
---|
18265 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
18266 | *) enable_dlopen_self=unknown ;; |
---|
18267 | esac |
---|
18268 | |
---|
18269 | case $lt_cv_dlopen_self_static in |
---|
18270 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
18271 | *) enable_dlopen_self_static=unknown ;; |
---|
18272 | esac |
---|
18273 | fi |
---|
18274 | |
---|
18275 | |
---|
18276 | # The else clause should only fire when bootstrapping the |
---|
18277 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
18278 | # with your package, and you will get complaints that there are |
---|
18279 | # no rules to generate ltmain.sh. |
---|
18280 | if test -f "$ltmain"; then |
---|
18281 | # See if we are running on zsh, and set the options which allow our commands through |
---|
18282 | # without removal of \ escapes. |
---|
18283 | if test -n "${ZSH_VERSION+set}" ; then |
---|
18284 | setopt NO_GLOB_SUBST |
---|
18285 | fi |
---|
18286 | # Now quote all the things that may contain metacharacters while being |
---|
18287 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
18288 | # variables and quote the copies for generation of the libtool script. |
---|
18289 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
18290 | SED SHELL STRIP \ |
---|
18291 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
18292 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
18293 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
18294 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
18295 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
18296 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
18297 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
18298 | compiler_GCJ \ |
---|
18299 | CC_GCJ \ |
---|
18300 | LD_GCJ \ |
---|
18301 | lt_prog_compiler_wl_GCJ \ |
---|
18302 | lt_prog_compiler_pic_GCJ \ |
---|
18303 | lt_prog_compiler_static_GCJ \ |
---|
18304 | lt_prog_compiler_no_builtin_flag_GCJ \ |
---|
18305 | export_dynamic_flag_spec_GCJ \ |
---|
18306 | thread_safe_flag_spec_GCJ \ |
---|
18307 | whole_archive_flag_spec_GCJ \ |
---|
18308 | enable_shared_with_static_runtimes_GCJ \ |
---|
18309 | old_archive_cmds_GCJ \ |
---|
18310 | old_archive_from_new_cmds_GCJ \ |
---|
18311 | predep_objects_GCJ \ |
---|
18312 | postdep_objects_GCJ \ |
---|
18313 | predeps_GCJ \ |
---|
18314 | postdeps_GCJ \ |
---|
18315 | compiler_lib_search_path_GCJ \ |
---|
18316 | archive_cmds_GCJ \ |
---|
18317 | archive_expsym_cmds_GCJ \ |
---|
18318 | postinstall_cmds_GCJ \ |
---|
18319 | postuninstall_cmds_GCJ \ |
---|
18320 | old_archive_from_expsyms_cmds_GCJ \ |
---|
18321 | allow_undefined_flag_GCJ \ |
---|
18322 | no_undefined_flag_GCJ \ |
---|
18323 | export_symbols_cmds_GCJ \ |
---|
18324 | hardcode_libdir_flag_spec_GCJ \ |
---|
18325 | hardcode_libdir_flag_spec_ld_GCJ \ |
---|
18326 | hardcode_libdir_separator_GCJ \ |
---|
18327 | hardcode_automatic_GCJ \ |
---|
18328 | module_cmds_GCJ \ |
---|
18329 | module_expsym_cmds_GCJ \ |
---|
18330 | lt_cv_prog_compiler_c_o_GCJ \ |
---|
18331 | exclude_expsyms_GCJ \ |
---|
18332 | include_expsyms_GCJ; do |
---|
18333 | |
---|
18334 | case $var in |
---|
18335 | old_archive_cmds_GCJ | \ |
---|
18336 | old_archive_from_new_cmds_GCJ | \ |
---|
18337 | archive_cmds_GCJ | \ |
---|
18338 | archive_expsym_cmds_GCJ | \ |
---|
18339 | module_cmds_GCJ | \ |
---|
18340 | module_expsym_cmds_GCJ | \ |
---|
18341 | old_archive_from_expsyms_cmds_GCJ | \ |
---|
18342 | export_symbols_cmds_GCJ | \ |
---|
18343 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
18344 | postinstall_cmds | postuninstall_cmds | \ |
---|
18345 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
18346 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
18347 | # Double-quote double-evaled strings. |
---|
18348 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
18349 | ;; |
---|
18350 | *) |
---|
18351 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
18352 | ;; |
---|
18353 | esac |
---|
18354 | done |
---|
18355 | |
---|
18356 | case $lt_echo in |
---|
18357 | *'\$0 --fallback-echo"') |
---|
18358 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
18359 | ;; |
---|
18360 | esac |
---|
18361 | |
---|
18362 | cfgfile="$ofile" |
---|
18363 | |
---|
18364 | cat <<__EOF__ >> "$cfgfile" |
---|
18365 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
18366 | |
---|
18367 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
18368 | |
---|
18369 | # Shell to use when invoking shell scripts. |
---|
18370 | SHELL=$lt_SHELL |
---|
18371 | |
---|
18372 | # Whether or not to build shared libraries. |
---|
18373 | build_libtool_libs=$enable_shared |
---|
18374 | |
---|
18375 | # Whether or not to build static libraries. |
---|
18376 | build_old_libs=$enable_static |
---|
18377 | |
---|
18378 | # Whether or not to add -lc for building shared libraries. |
---|
18379 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
---|
18380 | |
---|
18381 | # Whether or not to disallow shared libs when runtime libs are static |
---|
18382 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
---|
18383 | |
---|
18384 | # Whether or not to optimize for fast installation. |
---|
18385 | fast_install=$enable_fast_install |
---|
18386 | |
---|
18387 | # The host system. |
---|
18388 | host_alias=$host_alias |
---|
18389 | host=$host |
---|
18390 | |
---|
18391 | # An echo program that does not interpret backslashes. |
---|
18392 | echo=$lt_echo |
---|
18393 | |
---|
18394 | # The archiver. |
---|
18395 | AR=$lt_AR |
---|
18396 | AR_FLAGS=$lt_AR_FLAGS |
---|
18397 | |
---|
18398 | # A C compiler. |
---|
18399 | LTCC=$lt_LTCC |
---|
18400 | |
---|
18401 | # A language-specific compiler. |
---|
18402 | CC=$lt_compiler_GCJ |
---|
18403 | |
---|
18404 | # Is the compiler the GNU C compiler? |
---|
18405 | with_gcc=$GCC_GCJ |
---|
18406 | |
---|
18407 | # An ERE matcher. |
---|
18408 | EGREP=$lt_EGREP |
---|
18409 | |
---|
18410 | # The linker used to build libraries. |
---|
18411 | LD=$lt_LD_GCJ |
---|
18412 | |
---|
18413 | # Whether we need hard or soft links. |
---|
18414 | LN_S=$lt_LN_S |
---|
18415 | |
---|
18416 | # A BSD-compatible nm program. |
---|
18417 | NM=$lt_NM |
---|
18418 | |
---|
18419 | # A symbol stripping program |
---|
18420 | STRIP=$lt_STRIP |
---|
18421 | |
---|
18422 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
18423 | MAGIC_CMD=$MAGIC_CMD |
---|
18424 | |
---|
18425 | # Used on cygwin: DLL creation program. |
---|
18426 | DLLTOOL="$DLLTOOL" |
---|
18427 | |
---|
18428 | # Used on cygwin: object dumper. |
---|
18429 | OBJDUMP="$OBJDUMP" |
---|
18430 | |
---|
18431 | # Used on cygwin: assembler. |
---|
18432 | AS="$AS" |
---|
18433 | |
---|
18434 | # The name of the directory that contains temporary libtool files. |
---|
18435 | objdir=$objdir |
---|
18436 | |
---|
18437 | # How to create reloadable object files. |
---|
18438 | reload_flag=$lt_reload_flag |
---|
18439 | reload_cmds=$lt_reload_cmds |
---|
18440 | |
---|
18441 | # How to pass a linker flag through the compiler. |
---|
18442 | wl=$lt_lt_prog_compiler_wl_GCJ |
---|
18443 | |
---|
18444 | # Object file suffix (normally "o"). |
---|
18445 | objext="$ac_objext" |
---|
18446 | |
---|
18447 | # Old archive suffix (normally "a"). |
---|
18448 | libext="$libext" |
---|
18449 | |
---|
18450 | # Shared library suffix (normally ".so"). |
---|
18451 | shrext_cmds='$shrext_cmds' |
---|
18452 | |
---|
18453 | # Executable file suffix (normally ""). |
---|
18454 | exeext="$exeext" |
---|
18455 | |
---|
18456 | # Additional compiler flags for building library objects. |
---|
18457 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
---|
18458 | pic_mode=$pic_mode |
---|
18459 | |
---|
18460 | # What is the maximum length of a command? |
---|
18461 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
18462 | |
---|
18463 | # Does compiler simultaneously support -c and -o options? |
---|
18464 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
---|
18465 | |
---|
18466 | # Must we lock files when doing compilation ? |
---|
18467 | need_locks=$lt_need_locks |
---|
18468 | |
---|
18469 | # Do we need the lib prefix for modules? |
---|
18470 | need_lib_prefix=$need_lib_prefix |
---|
18471 | |
---|
18472 | # Do we need a version for libraries? |
---|
18473 | need_version=$need_version |
---|
18474 | |
---|
18475 | # Whether dlopen is supported. |
---|
18476 | dlopen_support=$enable_dlopen |
---|
18477 | |
---|
18478 | # Whether dlopen of programs is supported. |
---|
18479 | dlopen_self=$enable_dlopen_self |
---|
18480 | |
---|
18481 | # Whether dlopen of statically linked programs is supported. |
---|
18482 | dlopen_self_static=$enable_dlopen_self_static |
---|
18483 | |
---|
18484 | # Compiler flag to prevent dynamic linking. |
---|
18485 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
---|
18486 | |
---|
18487 | # Compiler flag to turn off builtin functions. |
---|
18488 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
---|
18489 | |
---|
18490 | # Compiler flag to allow reflexive dlopens. |
---|
18491 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
---|
18492 | |
---|
18493 | # Compiler flag to generate shared objects directly from archives. |
---|
18494 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
---|
18495 | |
---|
18496 | # Compiler flag to generate thread-safe objects. |
---|
18497 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
---|
18498 | |
---|
18499 | # Library versioning type. |
---|
18500 | version_type=$version_type |
---|
18501 | |
---|
18502 | # Format of library name prefix. |
---|
18503 | libname_spec=$lt_libname_spec |
---|
18504 | |
---|
18505 | # List of archive names. First name is the real one, the rest are links. |
---|
18506 | # The last name is the one that the linker finds with -lNAME. |
---|
18507 | library_names_spec=$lt_library_names_spec |
---|
18508 | |
---|
18509 | # The coded name of the library, if different from the real name. |
---|
18510 | soname_spec=$lt_soname_spec |
---|
18511 | |
---|
18512 | # Commands used to build and install an old-style archive. |
---|
18513 | RANLIB=$lt_RANLIB |
---|
18514 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
---|
18515 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
18516 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
18517 | |
---|
18518 | # Create an old-style archive from a shared archive. |
---|
18519 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
---|
18520 | |
---|
18521 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
18522 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
---|
18523 | |
---|
18524 | # Commands used to build and install a shared archive. |
---|
18525 | archive_cmds=$lt_archive_cmds_GCJ |
---|
18526 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
---|
18527 | postinstall_cmds=$lt_postinstall_cmds |
---|
18528 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
18529 | |
---|
18530 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
18531 | module_cmds=$lt_module_cmds_GCJ |
---|
18532 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
---|
18533 | |
---|
18534 | # Commands to strip libraries. |
---|
18535 | old_striplib=$lt_old_striplib |
---|
18536 | striplib=$lt_striplib |
---|
18537 | |
---|
18538 | # Dependencies to place before the objects being linked to create a |
---|
18539 | # shared library. |
---|
18540 | predep_objects=$lt_predep_objects_GCJ |
---|
18541 | |
---|
18542 | # Dependencies to place after the objects being linked to create a |
---|
18543 | # shared library. |
---|
18544 | postdep_objects=$lt_postdep_objects_GCJ |
---|
18545 | |
---|
18546 | # Dependencies to place before the objects being linked to create a |
---|
18547 | # shared library. |
---|
18548 | predeps=$lt_predeps_GCJ |
---|
18549 | |
---|
18550 | # Dependencies to place after the objects being linked to create a |
---|
18551 | # shared library. |
---|
18552 | postdeps=$lt_postdeps_GCJ |
---|
18553 | |
---|
18554 | # The library search path used internally by the compiler when linking |
---|
18555 | # a shared library. |
---|
18556 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
---|
18557 | |
---|
18558 | # Method to check whether dependent libraries are shared objects. |
---|
18559 | deplibs_check_method=$lt_deplibs_check_method |
---|
18560 | |
---|
18561 | # Command to use when deplibs_check_method == file_magic. |
---|
18562 | file_magic_cmd=$lt_file_magic_cmd |
---|
18563 | |
---|
18564 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
18565 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
---|
18566 | |
---|
18567 | # Flag that forces no undefined symbols. |
---|
18568 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
---|
18569 | |
---|
18570 | # Commands used to finish a libtool library installation in a directory. |
---|
18571 | finish_cmds=$lt_finish_cmds |
---|
18572 | |
---|
18573 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
18574 | finish_eval=$lt_finish_eval |
---|
18575 | |
---|
18576 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
18577 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
18578 | |
---|
18579 | # Transform the output of nm in a proper C declaration |
---|
18580 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
18581 | |
---|
18582 | # Transform the output of nm in a C name address pair |
---|
18583 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
18584 | |
---|
18585 | # This is the shared library runtime path variable. |
---|
18586 | runpath_var=$runpath_var |
---|
18587 | |
---|
18588 | # This is the shared library path variable. |
---|
18589 | shlibpath_var=$shlibpath_var |
---|
18590 | |
---|
18591 | # Is shlibpath searched before the hard-coded library search path? |
---|
18592 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
18593 | |
---|
18594 | # How to hardcode a shared library path into an executable. |
---|
18595 | hardcode_action=$hardcode_action_GCJ |
---|
18596 | |
---|
18597 | # Whether we should hardcode library paths into libraries. |
---|
18598 | hardcode_into_libs=$hardcode_into_libs |
---|
18599 | |
---|
18600 | # Flag to hardcode \$libdir into a binary during linking. |
---|
18601 | # This must work even if \$libdir does not exist. |
---|
18602 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
---|
18603 | |
---|
18604 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
18605 | # a binary during linking. This must work even if \$libdir does |
---|
18606 | # not exist. |
---|
18607 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
---|
18608 | |
---|
18609 | # Whether we need a single -rpath flag with a separated argument. |
---|
18610 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
---|
18611 | |
---|
18612 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
18613 | # resulting binary. |
---|
18614 | hardcode_direct=$hardcode_direct_GCJ |
---|
18615 | |
---|
18616 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
18617 | # resulting binary. |
---|
18618 | hardcode_minus_L=$hardcode_minus_L_GCJ |
---|
18619 | |
---|
18620 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
18621 | # the resulting binary. |
---|
18622 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
---|
18623 | |
---|
18624 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
18625 | # and all subsequent libraries and executables linked against it. |
---|
18626 | hardcode_automatic=$hardcode_automatic_GCJ |
---|
18627 | |
---|
18628 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
18629 | # restored at relink time. |
---|
18630 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
18631 | |
---|
18632 | # Whether libtool must link a program against all its dependency libraries. |
---|
18633 | link_all_deplibs=$link_all_deplibs_GCJ |
---|
18634 | |
---|
18635 | # Compile-time system search path for libraries |
---|
18636 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
18637 | |
---|
18638 | # Run-time system search path for libraries |
---|
18639 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
18640 | |
---|
18641 | # Fix the shell variable \$srcfile for the compiler. |
---|
18642 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
---|
18643 | |
---|
18644 | # Set to yes if exported symbols are required. |
---|
18645 | always_export_symbols=$always_export_symbols_GCJ |
---|
18646 | |
---|
18647 | # The commands to list exported symbols. |
---|
18648 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
---|
18649 | |
---|
18650 | # The commands to extract the exported symbol list from a shared archive. |
---|
18651 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
18652 | |
---|
18653 | # Symbols that should not be listed in the preloaded symbols. |
---|
18654 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
---|
18655 | |
---|
18656 | # Symbols that must always be exported. |
---|
18657 | include_expsyms=$lt_include_expsyms_GCJ |
---|
18658 | |
---|
18659 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
18660 | |
---|
18661 | __EOF__ |
---|
18662 | |
---|
18663 | |
---|
18664 | else |
---|
18665 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
18666 | # `config.status --recheck' to rerun these tests and create the |
---|
18667 | # libtool script then. |
---|
18668 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
18669 | if test -f "$ltmain_in"; then |
---|
18670 | test -f Makefile && make "$ltmain" |
---|
18671 | fi |
---|
18672 | fi |
---|
18673 | |
---|
18674 | |
---|
18675 | ac_ext=c |
---|
18676 | ac_cpp='$CPP $CPPFLAGS' |
---|
18677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
18678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
18679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
18680 | |
---|
18681 | CC="$lt_save_CC" |
---|
18682 | |
---|
18683 | else |
---|
18684 | tagname="" |
---|
18685 | fi |
---|
18686 | ;; |
---|
18687 | |
---|
18688 | RC) |
---|
18689 | |
---|
18690 | |
---|
18691 | |
---|
18692 | # Source file extension for RC test sources. |
---|
18693 | ac_ext=rc |
---|
18694 | |
---|
18695 | # Object file extension for compiled RC test sources. |
---|
18696 | objext=o |
---|
18697 | objext_RC=$objext |
---|
18698 | |
---|
18699 | # Code to be used in simple compile tests |
---|
18700 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
---|
18701 | |
---|
18702 | # Code to be used in simple link tests |
---|
18703 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
---|
18704 | |
---|
18705 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
18706 | |
---|
18707 | # If no C compiler was specified, use CC. |
---|
18708 | LTCC=${LTCC-"$CC"} |
---|
18709 | |
---|
18710 | # Allow CC to be a program name with arguments. |
---|
18711 | compiler=$CC |
---|
18712 | |
---|
18713 | |
---|
18714 | # Allow CC to be a program name with arguments. |
---|
18715 | lt_save_CC="$CC" |
---|
18716 | CC=${RC-"windres"} |
---|
18717 | compiler=$CC |
---|
18718 | compiler_RC=$CC |
---|
18719 | lt_cv_prog_compiler_c_o_RC=yes |
---|
18720 | |
---|
18721 | # The else clause should only fire when bootstrapping the |
---|
18722 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
18723 | # with your package, and you will get complaints that there are |
---|
18724 | # no rules to generate ltmain.sh. |
---|
18725 | if test -f "$ltmain"; then |
---|
18726 | # See if we are running on zsh, and set the options which allow our commands through |
---|
18727 | # without removal of \ escapes. |
---|
18728 | if test -n "${ZSH_VERSION+set}" ; then |
---|
18729 | setopt NO_GLOB_SUBST |
---|
18730 | fi |
---|
18731 | # Now quote all the things that may contain metacharacters while being |
---|
18732 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
18733 | # variables and quote the copies for generation of the libtool script. |
---|
18734 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
18735 | SED SHELL STRIP \ |
---|
18736 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
18737 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
18738 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
18739 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
18740 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
18741 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
18742 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
18743 | compiler_RC \ |
---|
18744 | CC_RC \ |
---|
18745 | LD_RC \ |
---|
18746 | lt_prog_compiler_wl_RC \ |
---|
18747 | lt_prog_compiler_pic_RC \ |
---|
18748 | lt_prog_compiler_static_RC \ |
---|
18749 | lt_prog_compiler_no_builtin_flag_RC \ |
---|
18750 | export_dynamic_flag_spec_RC \ |
---|
18751 | thread_safe_flag_spec_RC \ |
---|
18752 | whole_archive_flag_spec_RC \ |
---|
18753 | enable_shared_with_static_runtimes_RC \ |
---|
18754 | old_archive_cmds_RC \ |
---|
18755 | old_archive_from_new_cmds_RC \ |
---|
18756 | predep_objects_RC \ |
---|
18757 | postdep_objects_RC \ |
---|
18758 | predeps_RC \ |
---|
18759 | postdeps_RC \ |
---|
18760 | compiler_lib_search_path_RC \ |
---|
18761 | archive_cmds_RC \ |
---|
18762 | archive_expsym_cmds_RC \ |
---|
18763 | postinstall_cmds_RC \ |
---|
18764 | postuninstall_cmds_RC \ |
---|
18765 | old_archive_from_expsyms_cmds_RC \ |
---|
18766 | allow_undefined_flag_RC \ |
---|
18767 | no_undefined_flag_RC \ |
---|
18768 | export_symbols_cmds_RC \ |
---|
18769 | hardcode_libdir_flag_spec_RC \ |
---|
18770 | hardcode_libdir_flag_spec_ld_RC \ |
---|
18771 | hardcode_libdir_separator_RC \ |
---|
18772 | hardcode_automatic_RC \ |
---|
18773 | module_cmds_RC \ |
---|
18774 | module_expsym_cmds_RC \ |
---|
18775 | lt_cv_prog_compiler_c_o_RC \ |
---|
18776 | exclude_expsyms_RC \ |
---|
18777 | include_expsyms_RC; do |
---|
18778 | |
---|
18779 | case $var in |
---|
18780 | old_archive_cmds_RC | \ |
---|
18781 | old_archive_from_new_cmds_RC | \ |
---|
18782 | archive_cmds_RC | \ |
---|
18783 | archive_expsym_cmds_RC | \ |
---|
18784 | module_cmds_RC | \ |
---|
18785 | module_expsym_cmds_RC | \ |
---|
18786 | old_archive_from_expsyms_cmds_RC | \ |
---|
18787 | export_symbols_cmds_RC | \ |
---|
18788 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
18789 | postinstall_cmds | postuninstall_cmds | \ |
---|
18790 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
18791 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
18792 | # Double-quote double-evaled strings. |
---|
18793 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
18794 | ;; |
---|
18795 | *) |
---|
18796 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
18797 | ;; |
---|
18798 | esac |
---|
18799 | done |
---|
18800 | |
---|
18801 | case $lt_echo in |
---|
18802 | *'\$0 --fallback-echo"') |
---|
18803 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
18804 | ;; |
---|
18805 | esac |
---|
18806 | |
---|
18807 | cfgfile="$ofile" |
---|
18808 | |
---|
18809 | cat <<__EOF__ >> "$cfgfile" |
---|
18810 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
18811 | |
---|
18812 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
18813 | |
---|
18814 | # Shell to use when invoking shell scripts. |
---|
18815 | SHELL=$lt_SHELL |
---|
18816 | |
---|
18817 | # Whether or not to build shared libraries. |
---|
18818 | build_libtool_libs=$enable_shared |
---|
18819 | |
---|
18820 | # Whether or not to build static libraries. |
---|
18821 | build_old_libs=$enable_static |
---|
18822 | |
---|
18823 | # Whether or not to add -lc for building shared libraries. |
---|
18824 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
---|
18825 | |
---|
18826 | # Whether or not to disallow shared libs when runtime libs are static |
---|
18827 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
---|
18828 | |
---|
18829 | # Whether or not to optimize for fast installation. |
---|
18830 | fast_install=$enable_fast_install |
---|
18831 | |
---|
18832 | # The host system. |
---|
18833 | host_alias=$host_alias |
---|
18834 | host=$host |
---|
18835 | |
---|
18836 | # An echo program that does not interpret backslashes. |
---|
18837 | echo=$lt_echo |
---|
18838 | |
---|
18839 | # The archiver. |
---|
18840 | AR=$lt_AR |
---|
18841 | AR_FLAGS=$lt_AR_FLAGS |
---|
18842 | |
---|
18843 | # A C compiler. |
---|
18844 | LTCC=$lt_LTCC |
---|
18845 | |
---|
18846 | # A language-specific compiler. |
---|
18847 | CC=$lt_compiler_RC |
---|
18848 | |
---|
18849 | # Is the compiler the GNU C compiler? |
---|
18850 | with_gcc=$GCC_RC |
---|
18851 | |
---|
18852 | # An ERE matcher. |
---|
18853 | EGREP=$lt_EGREP |
---|
18854 | |
---|
18855 | # The linker used to build libraries. |
---|
18856 | LD=$lt_LD_RC |
---|
18857 | |
---|
18858 | # Whether we need hard or soft links. |
---|
18859 | LN_S=$lt_LN_S |
---|
18860 | |
---|
18861 | # A BSD-compatible nm program. |
---|
18862 | NM=$lt_NM |
---|
18863 | |
---|
18864 | # A symbol stripping program |
---|
18865 | STRIP=$lt_STRIP |
---|
18866 | |
---|
18867 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
18868 | MAGIC_CMD=$MAGIC_CMD |
---|
18869 | |
---|
18870 | # Used on cygwin: DLL creation program. |
---|
18871 | DLLTOOL="$DLLTOOL" |
---|
18872 | |
---|
18873 | # Used on cygwin: object dumper. |
---|
18874 | OBJDUMP="$OBJDUMP" |
---|
18875 | |
---|
18876 | # Used on cygwin: assembler. |
---|
18877 | AS="$AS" |
---|
18878 | |
---|
18879 | # The name of the directory that contains temporary libtool files. |
---|
18880 | objdir=$objdir |
---|
18881 | |
---|
18882 | # How to create reloadable object files. |
---|
18883 | reload_flag=$lt_reload_flag |
---|
18884 | reload_cmds=$lt_reload_cmds |
---|
18885 | |
---|
18886 | # How to pass a linker flag through the compiler. |
---|
18887 | wl=$lt_lt_prog_compiler_wl_RC |
---|
18888 | |
---|
18889 | # Object file suffix (normally "o"). |
---|
18890 | objext="$ac_objext" |
---|
18891 | |
---|
18892 | # Old archive suffix (normally "a"). |
---|
18893 | libext="$libext" |
---|
18894 | |
---|
18895 | # Shared library suffix (normally ".so"). |
---|
18896 | shrext_cmds='$shrext_cmds' |
---|
18897 | |
---|
18898 | # Executable file suffix (normally ""). |
---|
18899 | exeext="$exeext" |
---|
18900 | |
---|
18901 | # Additional compiler flags for building library objects. |
---|
18902 | pic_flag=$lt_lt_prog_compiler_pic_RC |
---|
18903 | pic_mode=$pic_mode |
---|
18904 | |
---|
18905 | # What is the maximum length of a command? |
---|
18906 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
18907 | |
---|
18908 | # Does compiler simultaneously support -c and -o options? |
---|
18909 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
---|
18910 | |
---|
18911 | # Must we lock files when doing compilation ? |
---|
18912 | need_locks=$lt_need_locks |
---|
18913 | |
---|
18914 | # Do we need the lib prefix for modules? |
---|
18915 | need_lib_prefix=$need_lib_prefix |
---|
18916 | |
---|
18917 | # Do we need a version for libraries? |
---|
18918 | need_version=$need_version |
---|
18919 | |
---|
18920 | # Whether dlopen is supported. |
---|
18921 | dlopen_support=$enable_dlopen |
---|
18922 | |
---|
18923 | # Whether dlopen of programs is supported. |
---|
18924 | dlopen_self=$enable_dlopen_self |
---|
18925 | |
---|
18926 | # Whether dlopen of statically linked programs is supported. |
---|
18927 | dlopen_self_static=$enable_dlopen_self_static |
---|
18928 | |
---|
18929 | # Compiler flag to prevent dynamic linking. |
---|
18930 | link_static_flag=$lt_lt_prog_compiler_static_RC |
---|
18931 | |
---|
18932 | # Compiler flag to turn off builtin functions. |
---|
18933 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
---|
18934 | |
---|
18935 | # Compiler flag to allow reflexive dlopens. |
---|
18936 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
---|
18937 | |
---|
18938 | # Compiler flag to generate shared objects directly from archives. |
---|
18939 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
---|
18940 | |
---|
18941 | # Compiler flag to generate thread-safe objects. |
---|
18942 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
---|
18943 | |
---|
18944 | # Library versioning type. |
---|
18945 | version_type=$version_type |
---|
18946 | |
---|
18947 | # Format of library name prefix. |
---|
18948 | libname_spec=$lt_libname_spec |
---|
18949 | |
---|
18950 | # List of archive names. First name is the real one, the rest are links. |
---|
18951 | # The last name is the one that the linker finds with -lNAME. |
---|
18952 | library_names_spec=$lt_library_names_spec |
---|
18953 | |
---|
18954 | # The coded name of the library, if different from the real name. |
---|
18955 | soname_spec=$lt_soname_spec |
---|
18956 | |
---|
18957 | # Commands used to build and install an old-style archive. |
---|
18958 | RANLIB=$lt_RANLIB |
---|
18959 | old_archive_cmds=$lt_old_archive_cmds_RC |
---|
18960 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
18961 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
18962 | |
---|
18963 | # Create an old-style archive from a shared archive. |
---|
18964 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
---|
18965 | |
---|
18966 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
18967 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
---|
18968 | |
---|
18969 | # Commands used to build and install a shared archive. |
---|
18970 | archive_cmds=$lt_archive_cmds_RC |
---|
18971 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
---|
18972 | postinstall_cmds=$lt_postinstall_cmds |
---|
18973 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
18974 | |
---|
18975 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
18976 | module_cmds=$lt_module_cmds_RC |
---|
18977 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
---|
18978 | |
---|
18979 | # Commands to strip libraries. |
---|
18980 | old_striplib=$lt_old_striplib |
---|
18981 | striplib=$lt_striplib |
---|
18982 | |
---|
18983 | # Dependencies to place before the objects being linked to create a |
---|
18984 | # shared library. |
---|
18985 | predep_objects=$lt_predep_objects_RC |
---|
18986 | |
---|
18987 | # Dependencies to place after the objects being linked to create a |
---|
18988 | # shared library. |
---|
18989 | postdep_objects=$lt_postdep_objects_RC |
---|
18990 | |
---|
18991 | # Dependencies to place before the objects being linked to create a |
---|
18992 | # shared library. |
---|
18993 | predeps=$lt_predeps_RC |
---|
18994 | |
---|
18995 | # Dependencies to place after the objects being linked to create a |
---|
18996 | # shared library. |
---|
18997 | postdeps=$lt_postdeps_RC |
---|
18998 | |
---|
18999 | # The library search path used internally by the compiler when linking |
---|
19000 | # a shared library. |
---|
19001 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
---|
19002 | |
---|
19003 | # Method to check whether dependent libraries are shared objects. |
---|
19004 | deplibs_check_method=$lt_deplibs_check_method |
---|
19005 | |
---|
19006 | # Command to use when deplibs_check_method == file_magic. |
---|
19007 | file_magic_cmd=$lt_file_magic_cmd |
---|
19008 | |
---|
19009 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
19010 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
---|
19011 | |
---|
19012 | # Flag that forces no undefined symbols. |
---|
19013 | no_undefined_flag=$lt_no_undefined_flag_RC |
---|
19014 | |
---|
19015 | # Commands used to finish a libtool library installation in a directory. |
---|
19016 | finish_cmds=$lt_finish_cmds |
---|
19017 | |
---|
19018 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
19019 | finish_eval=$lt_finish_eval |
---|
19020 | |
---|
19021 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
19022 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
19023 | |
---|
19024 | # Transform the output of nm in a proper C declaration |
---|
19025 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
19026 | |
---|
19027 | # Transform the output of nm in a C name address pair |
---|
19028 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
19029 | |
---|
19030 | # This is the shared library runtime path variable. |
---|
19031 | runpath_var=$runpath_var |
---|
19032 | |
---|
19033 | # This is the shared library path variable. |
---|
19034 | shlibpath_var=$shlibpath_var |
---|
19035 | |
---|
19036 | # Is shlibpath searched before the hard-coded library search path? |
---|
19037 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
19038 | |
---|
19039 | # How to hardcode a shared library path into an executable. |
---|
19040 | hardcode_action=$hardcode_action_RC |
---|
19041 | |
---|
19042 | # Whether we should hardcode library paths into libraries. |
---|
19043 | hardcode_into_libs=$hardcode_into_libs |
---|
19044 | |
---|
19045 | # Flag to hardcode \$libdir into a binary during linking. |
---|
19046 | # This must work even if \$libdir does not exist. |
---|
19047 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
---|
19048 | |
---|
19049 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
19050 | # a binary during linking. This must work even if \$libdir does |
---|
19051 | # not exist. |
---|
19052 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
---|
19053 | |
---|
19054 | # Whether we need a single -rpath flag with a separated argument. |
---|
19055 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
---|
19056 | |
---|
19057 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
19058 | # resulting binary. |
---|
19059 | hardcode_direct=$hardcode_direct_RC |
---|
19060 | |
---|
19061 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
19062 | # resulting binary. |
---|
19063 | hardcode_minus_L=$hardcode_minus_L_RC |
---|
19064 | |
---|
19065 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
19066 | # the resulting binary. |
---|
19067 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
---|
19068 | |
---|
19069 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
19070 | # and all subsequent libraries and executables linked against it. |
---|
19071 | hardcode_automatic=$hardcode_automatic_RC |
---|
19072 | |
---|
19073 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
19074 | # restored at relink time. |
---|
19075 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
19076 | |
---|
19077 | # Whether libtool must link a program against all its dependency libraries. |
---|
19078 | link_all_deplibs=$link_all_deplibs_RC |
---|
19079 | |
---|
19080 | # Compile-time system search path for libraries |
---|
19081 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
19082 | |
---|
19083 | # Run-time system search path for libraries |
---|
19084 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
19085 | |
---|
19086 | # Fix the shell variable \$srcfile for the compiler. |
---|
19087 | fix_srcfile_path="$fix_srcfile_path_RC" |
---|
19088 | |
---|
19089 | # Set to yes if exported symbols are required. |
---|
19090 | always_export_symbols=$always_export_symbols_RC |
---|
19091 | |
---|
19092 | # The commands to list exported symbols. |
---|
19093 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
---|
19094 | |
---|
19095 | # The commands to extract the exported symbol list from a shared archive. |
---|
19096 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
19097 | |
---|
19098 | # Symbols that should not be listed in the preloaded symbols. |
---|
19099 | exclude_expsyms=$lt_exclude_expsyms_RC |
---|
19100 | |
---|
19101 | # Symbols that must always be exported. |
---|
19102 | include_expsyms=$lt_include_expsyms_RC |
---|
19103 | |
---|
19104 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
19105 | |
---|
19106 | __EOF__ |
---|
19107 | |
---|
19108 | |
---|
19109 | else |
---|
19110 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
19111 | # `config.status --recheck' to rerun these tests and create the |
---|
19112 | # libtool script then. |
---|
19113 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
19114 | if test -f "$ltmain_in"; then |
---|
19115 | test -f Makefile && make "$ltmain" |
---|
19116 | fi |
---|
19117 | fi |
---|
19118 | |
---|
19119 | |
---|
19120 | ac_ext=c |
---|
19121 | ac_cpp='$CPP $CPPFLAGS' |
---|
19122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
19123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
19124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
19125 | |
---|
19126 | CC="$lt_save_CC" |
---|
19127 | |
---|
19128 | ;; |
---|
19129 | |
---|
19130 | *) |
---|
19131 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
---|
19132 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
---|
19133 | { (exit 1); exit 1; }; } |
---|
19134 | ;; |
---|
19135 | esac |
---|
19136 | |
---|
19137 | # Append the new tag name to the list of available tags. |
---|
19138 | if test -n "$tagname" ; then |
---|
19139 | available_tags="$available_tags $tagname" |
---|
19140 | fi |
---|
19141 | fi |
---|
19142 | done |
---|
19143 | IFS="$lt_save_ifs" |
---|
19144 | |
---|
19145 | # Now substitute the updated list of available tags. |
---|
19146 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
---|
19147 | mv "${ofile}T" "$ofile" |
---|
19148 | chmod +x "$ofile" |
---|
19149 | else |
---|
19150 | rm -f "${ofile}T" |
---|
19151 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
---|
19152 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
---|
19153 | { (exit 1); exit 1; }; } |
---|
19154 | fi |
---|
19155 | fi |
---|
19156 | |
---|
19157 | |
---|
19158 | |
---|
19159 | # This can be used to rebuild libtool when needed |
---|
19160 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
---|
19161 | |
---|
19162 | # Always use our own libtool. |
---|
19163 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
19164 | |
---|
19165 | # Prevent multiple expansion |
---|
19166 | |
---|
19167 | |
---|
19168 | |
---|
19169 | |
---|
19170 | |
---|
19171 | |
---|
19172 | |
---|
19173 | |
---|
19174 | |
---|
19175 | |
---|
19176 | |
---|
19177 | |
---|
19178 | |
---|
19179 | |
---|
19180 | |
---|
19181 | |
---|
19182 | |
---|
19183 | |
---|
19184 | |
---|
19185 | |
---|
19186 | |
---|
19187 | if test x$GCC = xyes; then |
---|
19188 | echo "$as_me:$LINENO: checking version 3.x of gcc" >&5 |
---|
19189 | echo $ECHO_N "checking version 3.x of gcc... $ECHO_C" >&6 |
---|
19190 | if test -n "`$CC --version 2>&1|grep '3.'`"; then |
---|
19191 | |
---|
19192 | cat >>confdefs.h <<\_ACEOF |
---|
19193 | @%:@define EXT_HASH |
---|
19194 | _ACEOF |
---|
19195 | |
---|
19196 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
19197 | echo "${ECHO_T}yes" >&6; |
---|
19198 | else |
---|
19199 | echo "$as_me:$LINENO: result: no" >&5 |
---|
19200 | echo "${ECHO_T}no" >&6! |
---|
19201 | fi |
---|
19202 | fi |
---|
19203 | |
---|
19204 | |
---|
19205 | |
---|
19206 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
---|
19207 | if test -n "$ac_tool_prefix"; then |
---|
19208 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
---|
19209 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
---|
19210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
19211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
19212 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
19213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19214 | else |
---|
19215 | case $PKG_CONFIG in |
---|
19216 | [\\/]* | ?:[\\/]*) |
---|
19217 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
19218 | ;; |
---|
19219 | *) |
---|
19220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
19221 | for as_dir in $PATH |
---|
19222 | do |
---|
19223 | IFS=$as_save_IFS |
---|
19224 | test -z "$as_dir" && as_dir=. |
---|
19225 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
19226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
19227 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
19228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
19229 | break 2 |
---|
19230 | fi |
---|
19231 | done |
---|
19232 | done |
---|
19233 | |
---|
19234 | ;; |
---|
19235 | esac |
---|
19236 | fi |
---|
19237 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
19238 | |
---|
19239 | if test -n "$PKG_CONFIG"; then |
---|
19240 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
19241 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
19242 | else |
---|
19243 | echo "$as_me:$LINENO: result: no" >&5 |
---|
19244 | echo "${ECHO_T}no" >&6 |
---|
19245 | fi |
---|
19246 | |
---|
19247 | fi |
---|
19248 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
---|
19249 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
---|
19250 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
19251 | set dummy pkg-config; ac_word=$2 |
---|
19252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
19253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
19254 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
---|
19255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19256 | else |
---|
19257 | case $ac_pt_PKG_CONFIG in |
---|
19258 | [\\/]* | ?:[\\/]*) |
---|
19259 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
---|
19260 | ;; |
---|
19261 | *) |
---|
19262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
19263 | for as_dir in $PATH |
---|
19264 | do |
---|
19265 | IFS=$as_save_IFS |
---|
19266 | test -z "$as_dir" && as_dir=. |
---|
19267 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
19268 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
19269 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
19270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
19271 | break 2 |
---|
19272 | fi |
---|
19273 | done |
---|
19274 | done |
---|
19275 | |
---|
19276 | ;; |
---|
19277 | esac |
---|
19278 | fi |
---|
19279 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
---|
19280 | |
---|
19281 | if test -n "$ac_pt_PKG_CONFIG"; then |
---|
19282 | echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
---|
19283 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 |
---|
19284 | else |
---|
19285 | echo "$as_me:$LINENO: result: no" >&5 |
---|
19286 | echo "${ECHO_T}no" >&6 |
---|
19287 | fi |
---|
19288 | |
---|
19289 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
---|
19290 | else |
---|
19291 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
---|
19292 | fi |
---|
19293 | |
---|
19294 | fi |
---|
19295 | if test -n "$PKG_CONFIG"; then |
---|
19296 | _pkg_min_version=0.9.0 |
---|
19297 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
---|
19298 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 |
---|
19299 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
---|
19300 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
19301 | echo "${ECHO_T}yes" >&6 |
---|
19302 | else |
---|
19303 | echo "$as_me:$LINENO: result: no" >&5 |
---|
19304 | echo "${ECHO_T}no" >&6 |
---|
19305 | PKG_CONFIG="" |
---|
19306 | fi |
---|
19307 | |
---|
19308 | fi |
---|
19309 | |
---|
19310 | pkg_failed=no |
---|
19311 | echo "$as_me:$LINENO: checking for OGRE_CFLAGS" >&5 |
---|
19312 | echo $ECHO_N "checking for OGRE_CFLAGS... $ECHO_C" >&6 |
---|
19313 | if test "${pkg_cv_OGRE_CFLAGS+set}" = set; then |
---|
19314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19315 | else |
---|
19316 | if test "x$ac_cv_env_OGRE_CFLAGS_set" = "xset"; then |
---|
19317 | pkg_cv_OGRE_CFLAGS=$ac_cv_env_OGRE_CFLAGS_value |
---|
19318 | elif test -n "$PKG_CONFIG"; then |
---|
19319 | if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"OGRE\" >/dev/null 2>&1") >&5 |
---|
19320 | ($PKG_CONFIG --exists "OGRE" >/dev/null 2>&1) 2>&5 |
---|
19321 | ac_status=$? |
---|
19322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19323 | (exit $ac_status); }; then |
---|
19324 | pkg_cv_OGRE_CFLAGS=`$PKG_CONFIG --cflags "OGRE" 2>/dev/null` |
---|
19325 | else |
---|
19326 | pkg_failed=yes |
---|
19327 | fi |
---|
19328 | else |
---|
19329 | pkg_failed=untried |
---|
19330 | fi |
---|
19331 | fi |
---|
19332 | echo "$as_me:$LINENO: result: $pkg_cv_OGRE_CFLAGS" >&5 |
---|
19333 | echo "${ECHO_T}$pkg_cv_OGRE_CFLAGS" >&6 |
---|
19334 | echo "$as_me:$LINENO: checking for OGRE_LIBS" >&5 |
---|
19335 | echo $ECHO_N "checking for OGRE_LIBS... $ECHO_C" >&6 |
---|
19336 | if test "${pkg_cv_OGRE_LIBS+set}" = set; then |
---|
19337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19338 | else |
---|
19339 | if test "x$ac_cv_env_OGRE_LIBS_set" = "xset"; then |
---|
19340 | pkg_cv_OGRE_LIBS=$ac_cv_env_OGRE_LIBS_value |
---|
19341 | elif test -n "$PKG_CONFIG"; then |
---|
19342 | if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"OGRE\" >/dev/null 2>&1") >&5 |
---|
19343 | ($PKG_CONFIG --exists "OGRE" >/dev/null 2>&1) 2>&5 |
---|
19344 | ac_status=$? |
---|
19345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19346 | (exit $ac_status); }; then |
---|
19347 | pkg_cv_OGRE_LIBS=`$PKG_CONFIG --libs "OGRE" 2>/dev/null` |
---|
19348 | else |
---|
19349 | pkg_failed=yes |
---|
19350 | fi |
---|
19351 | else |
---|
19352 | pkg_failed=untried |
---|
19353 | fi |
---|
19354 | fi |
---|
19355 | echo "$as_me:$LINENO: result: $pkg_cv_OGRE_LIBS" >&5 |
---|
19356 | echo "${ECHO_T}$pkg_cv_OGRE_LIBS" >&6 |
---|
19357 | |
---|
19358 | if test $pkg_failed = yes; then |
---|
19359 | OGRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "OGRE"` |
---|
19360 | # Put the nasty error message in config.log where it belongs |
---|
19361 | echo "$OGRE_PKG_ERRORS" 1>&5 |
---|
19362 | |
---|
19363 | { { echo "$as_me:$LINENO: error: Package requirements (OGRE) were not met. |
---|
19364 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
---|
19365 | installed software in a non-standard prefix. |
---|
19366 | |
---|
19367 | Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables |
---|
19368 | to avoid the need to call pkg-config. See the pkg-config man page for |
---|
19369 | more details." >&5 |
---|
19370 | echo "$as_me: error: Package requirements (OGRE) were not met. |
---|
19371 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
---|
19372 | installed software in a non-standard prefix. |
---|
19373 | |
---|
19374 | Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables |
---|
19375 | to avoid the need to call pkg-config. See the pkg-config man page for |
---|
19376 | more details." >&2;} |
---|
19377 | { (exit 1); exit 1; }; } |
---|
19378 | elif test $pkg_failed = untried; then |
---|
19379 | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
---|
19380 | is in your PATH or set the PKG_CONFIG environment variable to the full |
---|
19381 | path to pkg-config. |
---|
19382 | |
---|
19383 | Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables |
---|
19384 | to avoid the need to call pkg-config. See the pkg-config man page for |
---|
19385 | more details. |
---|
19386 | |
---|
19387 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
---|
19388 | See \`config.log' for more details." >&5 |
---|
19389 | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
---|
19390 | is in your PATH or set the PKG_CONFIG environment variable to the full |
---|
19391 | path to pkg-config. |
---|
19392 | |
---|
19393 | Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables |
---|
19394 | to avoid the need to call pkg-config. See the pkg-config man page for |
---|
19395 | more details. |
---|
19396 | |
---|
19397 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
---|
19398 | See \`config.log' for more details." >&2;} |
---|
19399 | { (exit 1); exit 1; }; } |
---|
19400 | else |
---|
19401 | OGRE_CFLAGS=$pkg_cv_OGRE_CFLAGS |
---|
19402 | OGRE_LIBS=$pkg_cv_OGRE_LIBS |
---|
19403 | : |
---|
19404 | fi |
---|
19405 | ac_ext=cc |
---|
19406 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
19407 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
19408 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
19409 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
19410 | |
---|
19411 | |
---|
19412 | echo "$as_me:$LINENO: checking for main in -lode" >&5 |
---|
19413 | echo $ECHO_N "checking for main in -lode... $ECHO_C" >&6 |
---|
19414 | if test "${ac_cv_lib_ode_main+set}" = set; then |
---|
19415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19416 | else |
---|
19417 | ac_check_lib_save_LIBS=$LIBS |
---|
19418 | LIBS="-lode $LIBS" |
---|
19419 | cat >conftest.$ac_ext <<_ACEOF |
---|
19420 | /* confdefs.h. */ |
---|
19421 | _ACEOF |
---|
19422 | cat confdefs.h >>conftest.$ac_ext |
---|
19423 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19424 | /* end confdefs.h. */ |
---|
19425 | |
---|
19426 | |
---|
19427 | int |
---|
19428 | main () |
---|
19429 | { |
---|
19430 | main (); |
---|
19431 | ; |
---|
19432 | return 0; |
---|
19433 | } |
---|
19434 | _ACEOF |
---|
19435 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19437 | (eval $ac_link) 2>conftest.er1 |
---|
19438 | ac_status=$? |
---|
19439 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19440 | rm -f conftest.er1 |
---|
19441 | cat conftest.err >&5 |
---|
19442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19443 | (exit $ac_status); } && |
---|
19444 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
19445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19446 | (eval $ac_try) 2>&5 |
---|
19447 | ac_status=$? |
---|
19448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19449 | (exit $ac_status); }; } && |
---|
19450 | { ac_try='test -s conftest$ac_exeext' |
---|
19451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19452 | (eval $ac_try) 2>&5 |
---|
19453 | ac_status=$? |
---|
19454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19455 | (exit $ac_status); }; }; then |
---|
19456 | ac_cv_lib_ode_main=yes |
---|
19457 | else |
---|
19458 | echo "$as_me: failed program was:" >&5 |
---|
19459 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19460 | |
---|
19461 | ac_cv_lib_ode_main=no |
---|
19462 | fi |
---|
19463 | rm -f conftest.err conftest.$ac_objext \ |
---|
19464 | conftest$ac_exeext conftest.$ac_ext |
---|
19465 | LIBS=$ac_check_lib_save_LIBS |
---|
19466 | fi |
---|
19467 | echo "$as_me:$LINENO: result: $ac_cv_lib_ode_main" >&5 |
---|
19468 | echo "${ECHO_T}$ac_cv_lib_ode_main" >&6 |
---|
19469 | if test $ac_cv_lib_ode_main = yes; then |
---|
19470 | cat >>confdefs.h <<_ACEOF |
---|
19471 | @%:@define HAVE_LIBODE 1 |
---|
19472 | _ACEOF |
---|
19473 | |
---|
19474 | LIBS="-lode $LIBS" |
---|
19475 | |
---|
19476 | else |
---|
19477 | { { echo "$as_me:$LINENO: error: Can't find libode" >&5 |
---|
19478 | echo "$as_me: error: Can't find libode" >&2;} |
---|
19479 | { (exit 1); exit 1; }; } |
---|
19480 | fi |
---|
19481 | |
---|
19482 | ac_ext=c |
---|
19483 | ac_cpp='$CPP $CPPFLAGS' |
---|
19484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
19485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
19486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
19487 | |
---|
19488 | |
---|
19489 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
---|
19490 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 |
---|
19491 | if test "${ac_cv_lib_m_pow+set}" = set; then |
---|
19492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19493 | else |
---|
19494 | ac_check_lib_save_LIBS=$LIBS |
---|
19495 | LIBS="-lm $LIBS" |
---|
19496 | cat >conftest.$ac_ext <<_ACEOF |
---|
19497 | /* confdefs.h. */ |
---|
19498 | _ACEOF |
---|
19499 | cat confdefs.h >>conftest.$ac_ext |
---|
19500 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19501 | /* end confdefs.h. */ |
---|
19502 | |
---|
19503 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19504 | #ifdef __cplusplus |
---|
19505 | extern "C" |
---|
19506 | #endif |
---|
19507 | /* We use char because int might match the return type of a gcc2 |
---|
19508 | builtin and then its argument prototype would still apply. */ |
---|
19509 | char pow (); |
---|
19510 | int |
---|
19511 | main () |
---|
19512 | { |
---|
19513 | pow (); |
---|
19514 | ; |
---|
19515 | return 0; |
---|
19516 | } |
---|
19517 | _ACEOF |
---|
19518 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19520 | (eval $ac_link) 2>conftest.er1 |
---|
19521 | ac_status=$? |
---|
19522 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19523 | rm -f conftest.er1 |
---|
19524 | cat conftest.err >&5 |
---|
19525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19526 | (exit $ac_status); } && |
---|
19527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
19528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19529 | (eval $ac_try) 2>&5 |
---|
19530 | ac_status=$? |
---|
19531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19532 | (exit $ac_status); }; } && |
---|
19533 | { ac_try='test -s conftest$ac_exeext' |
---|
19534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19535 | (eval $ac_try) 2>&5 |
---|
19536 | ac_status=$? |
---|
19537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19538 | (exit $ac_status); }; }; then |
---|
19539 | ac_cv_lib_m_pow=yes |
---|
19540 | else |
---|
19541 | echo "$as_me: failed program was:" >&5 |
---|
19542 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19543 | |
---|
19544 | ac_cv_lib_m_pow=no |
---|
19545 | fi |
---|
19546 | rm -f conftest.err conftest.$ac_objext \ |
---|
19547 | conftest$ac_exeext conftest.$ac_ext |
---|
19548 | LIBS=$ac_check_lib_save_LIBS |
---|
19549 | fi |
---|
19550 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
---|
19551 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 |
---|
19552 | if test $ac_cv_lib_m_pow = yes; then |
---|
19553 | cat >>confdefs.h <<_ACEOF |
---|
19554 | @%:@define HAVE_LIBM 1 |
---|
19555 | _ACEOF |
---|
19556 | |
---|
19557 | LIBS="-lm $LIBS" |
---|
19558 | |
---|
19559 | fi |
---|
19560 | |
---|
19561 | |
---|
19562 | echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 |
---|
19563 | echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 |
---|
19564 | if test "${ac_cv_lib_z_gzopen+set}" = set; then |
---|
19565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19566 | else |
---|
19567 | ac_check_lib_save_LIBS=$LIBS |
---|
19568 | LIBS="-lz $LIBS" |
---|
19569 | cat >conftest.$ac_ext <<_ACEOF |
---|
19570 | /* confdefs.h. */ |
---|
19571 | _ACEOF |
---|
19572 | cat confdefs.h >>conftest.$ac_ext |
---|
19573 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19574 | /* end confdefs.h. */ |
---|
19575 | |
---|
19576 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19577 | #ifdef __cplusplus |
---|
19578 | extern "C" |
---|
19579 | #endif |
---|
19580 | /* We use char because int might match the return type of a gcc2 |
---|
19581 | builtin and then its argument prototype would still apply. */ |
---|
19582 | char gzopen (); |
---|
19583 | int |
---|
19584 | main () |
---|
19585 | { |
---|
19586 | gzopen (); |
---|
19587 | ; |
---|
19588 | return 0; |
---|
19589 | } |
---|
19590 | _ACEOF |
---|
19591 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19593 | (eval $ac_link) 2>conftest.er1 |
---|
19594 | ac_status=$? |
---|
19595 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19596 | rm -f conftest.er1 |
---|
19597 | cat conftest.err >&5 |
---|
19598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19599 | (exit $ac_status); } && |
---|
19600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
19601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19602 | (eval $ac_try) 2>&5 |
---|
19603 | ac_status=$? |
---|
19604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19605 | (exit $ac_status); }; } && |
---|
19606 | { ac_try='test -s conftest$ac_exeext' |
---|
19607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19608 | (eval $ac_try) 2>&5 |
---|
19609 | ac_status=$? |
---|
19610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19611 | (exit $ac_status); }; }; then |
---|
19612 | ac_cv_lib_z_gzopen=yes |
---|
19613 | else |
---|
19614 | echo "$as_me: failed program was:" >&5 |
---|
19615 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19616 | |
---|
19617 | ac_cv_lib_z_gzopen=no |
---|
19618 | fi |
---|
19619 | rm -f conftest.err conftest.$ac_objext \ |
---|
19620 | conftest$ac_exeext conftest.$ac_ext |
---|
19621 | LIBS=$ac_check_lib_save_LIBS |
---|
19622 | fi |
---|
19623 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 |
---|
19624 | echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 |
---|
19625 | if test $ac_cv_lib_z_gzopen = yes; then |
---|
19626 | cat >>confdefs.h <<_ACEOF |
---|
19627 | @%:@define HAVE_LIBZ 1 |
---|
19628 | _ACEOF |
---|
19629 | |
---|
19630 | LIBS="-lz $LIBS" |
---|
19631 | |
---|
19632 | fi |
---|
19633 | |
---|
19634 | echo "$as_me:$LINENO: checking for snprintf" >&5 |
---|
19635 | echo $ECHO_N "checking for snprintf... $ECHO_C" >&6 |
---|
19636 | if test "${ac_cv_func_snprintf+set}" = set; then |
---|
19637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19638 | else |
---|
19639 | cat >conftest.$ac_ext <<_ACEOF |
---|
19640 | /* confdefs.h. */ |
---|
19641 | _ACEOF |
---|
19642 | cat confdefs.h >>conftest.$ac_ext |
---|
19643 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19644 | /* end confdefs.h. */ |
---|
19645 | /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf. |
---|
19646 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
19647 | #define snprintf innocuous_snprintf |
---|
19648 | |
---|
19649 | /* System header to define __stub macros and hopefully few prototypes, |
---|
19650 | which can conflict with char snprintf (); below. |
---|
19651 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
19652 | <limits.h> exists even on freestanding compilers. */ |
---|
19653 | |
---|
19654 | #ifdef __STDC__ |
---|
19655 | # include <limits.h> |
---|
19656 | #else |
---|
19657 | # include <assert.h> |
---|
19658 | #endif |
---|
19659 | |
---|
19660 | #undef snprintf |
---|
19661 | |
---|
19662 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19663 | #ifdef __cplusplus |
---|
19664 | extern "C" |
---|
19665 | { |
---|
19666 | #endif |
---|
19667 | /* We use char because int might match the return type of a gcc2 |
---|
19668 | builtin and then its argument prototype would still apply. */ |
---|
19669 | char snprintf (); |
---|
19670 | /* The GNU C library defines this for functions which it implements |
---|
19671 | to always fail with ENOSYS. Some functions are actually named |
---|
19672 | something starting with __ and the normal name is an alias. */ |
---|
19673 | #if defined (__stub_snprintf) || defined (__stub___snprintf) |
---|
19674 | choke me |
---|
19675 | #else |
---|
19676 | char (*f) () = snprintf; |
---|
19677 | #endif |
---|
19678 | #ifdef __cplusplus |
---|
19679 | } |
---|
19680 | #endif |
---|
19681 | |
---|
19682 | int |
---|
19683 | main () |
---|
19684 | { |
---|
19685 | return f != snprintf; |
---|
19686 | ; |
---|
19687 | return 0; |
---|
19688 | } |
---|
19689 | _ACEOF |
---|
19690 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19692 | (eval $ac_link) 2>conftest.er1 |
---|
19693 | ac_status=$? |
---|
19694 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19695 | rm -f conftest.er1 |
---|
19696 | cat conftest.err >&5 |
---|
19697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19698 | (exit $ac_status); } && |
---|
19699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
19700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19701 | (eval $ac_try) 2>&5 |
---|
19702 | ac_status=$? |
---|
19703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19704 | (exit $ac_status); }; } && |
---|
19705 | { ac_try='test -s conftest$ac_exeext' |
---|
19706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19707 | (eval $ac_try) 2>&5 |
---|
19708 | ac_status=$? |
---|
19709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19710 | (exit $ac_status); }; }; then |
---|
19711 | ac_cv_func_snprintf=yes |
---|
19712 | else |
---|
19713 | echo "$as_me: failed program was:" >&5 |
---|
19714 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19715 | |
---|
19716 | ac_cv_func_snprintf=no |
---|
19717 | fi |
---|
19718 | rm -f conftest.err conftest.$ac_objext \ |
---|
19719 | conftest$ac_exeext conftest.$ac_ext |
---|
19720 | fi |
---|
19721 | echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 |
---|
19722 | echo "${ECHO_T}$ac_cv_func_snprintf" >&6 |
---|
19723 | if test $ac_cv_func_snprintf = yes; then |
---|
19724 | |
---|
19725 | cat >>confdefs.h <<\_ACEOF |
---|
19726 | @%:@define HAVE_SNPRINTF |
---|
19727 | _ACEOF |
---|
19728 | |
---|
19729 | fi |
---|
19730 | |
---|
19731 | echo "$as_me:$LINENO: checking for vsnprintf" >&5 |
---|
19732 | echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 |
---|
19733 | if test "${ac_cv_func_vsnprintf+set}" = set; then |
---|
19734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19735 | else |
---|
19736 | cat >conftest.$ac_ext <<_ACEOF |
---|
19737 | /* confdefs.h. */ |
---|
19738 | _ACEOF |
---|
19739 | cat confdefs.h >>conftest.$ac_ext |
---|
19740 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19741 | /* end confdefs.h. */ |
---|
19742 | /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. |
---|
19743 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
19744 | #define vsnprintf innocuous_vsnprintf |
---|
19745 | |
---|
19746 | /* System header to define __stub macros and hopefully few prototypes, |
---|
19747 | which can conflict with char vsnprintf (); below. |
---|
19748 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
19749 | <limits.h> exists even on freestanding compilers. */ |
---|
19750 | |
---|
19751 | #ifdef __STDC__ |
---|
19752 | # include <limits.h> |
---|
19753 | #else |
---|
19754 | # include <assert.h> |
---|
19755 | #endif |
---|
19756 | |
---|
19757 | #undef vsnprintf |
---|
19758 | |
---|
19759 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
19760 | #ifdef __cplusplus |
---|
19761 | extern "C" |
---|
19762 | { |
---|
19763 | #endif |
---|
19764 | /* We use char because int might match the return type of a gcc2 |
---|
19765 | builtin and then its argument prototype would still apply. */ |
---|
19766 | char vsnprintf (); |
---|
19767 | /* The GNU C library defines this for functions which it implements |
---|
19768 | to always fail with ENOSYS. Some functions are actually named |
---|
19769 | something starting with __ and the normal name is an alias. */ |
---|
19770 | #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) |
---|
19771 | choke me |
---|
19772 | #else |
---|
19773 | char (*f) () = vsnprintf; |
---|
19774 | #endif |
---|
19775 | #ifdef __cplusplus |
---|
19776 | } |
---|
19777 | #endif |
---|
19778 | |
---|
19779 | int |
---|
19780 | main () |
---|
19781 | { |
---|
19782 | return f != vsnprintf; |
---|
19783 | ; |
---|
19784 | return 0; |
---|
19785 | } |
---|
19786 | _ACEOF |
---|
19787 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19789 | (eval $ac_link) 2>conftest.er1 |
---|
19790 | ac_status=$? |
---|
19791 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19792 | rm -f conftest.er1 |
---|
19793 | cat conftest.err >&5 |
---|
19794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19795 | (exit $ac_status); } && |
---|
19796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
19797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19798 | (eval $ac_try) 2>&5 |
---|
19799 | ac_status=$? |
---|
19800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19801 | (exit $ac_status); }; } && |
---|
19802 | { ac_try='test -s conftest$ac_exeext' |
---|
19803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
19804 | (eval $ac_try) 2>&5 |
---|
19805 | ac_status=$? |
---|
19806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19807 | (exit $ac_status); }; }; then |
---|
19808 | ac_cv_func_vsnprintf=yes |
---|
19809 | else |
---|
19810 | echo "$as_me: failed program was:" >&5 |
---|
19811 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19812 | |
---|
19813 | ac_cv_func_vsnprintf=no |
---|
19814 | fi |
---|
19815 | rm -f conftest.err conftest.$ac_objext \ |
---|
19816 | conftest$ac_exeext conftest.$ac_ext |
---|
19817 | fi |
---|
19818 | echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 |
---|
19819 | echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6 |
---|
19820 | if test $ac_cv_func_vsnprintf = yes; then |
---|
19821 | |
---|
19822 | cat >>confdefs.h <<\_ACEOF |
---|
19823 | @%:@define HAVE_VSNPRINTF |
---|
19824 | _ACEOF |
---|
19825 | |
---|
19826 | fi |
---|
19827 | |
---|
19828 | |
---|
19829 | ac_config_files="$ac_config_files Makefile ReferenceAppLayer/Makefile ReferenceAppLayer/src/Makefile ReferenceAppLayer/include/Makefile BspCollision/Makefile BspCollision/src/Makefile" |
---|
19830 | |
---|
19831 | |
---|
19832 | cat >confcache <<\_ACEOF |
---|
19833 | # This file is a shell script that caches the results of configure |
---|
19834 | # tests run on this system so they can be shared between configure |
---|
19835 | # scripts and configure runs, see configure's option --config-cache. |
---|
19836 | # It is not useful on other systems. If it contains results you don't |
---|
19837 | # want to keep, you may remove or edit it. |
---|
19838 | # |
---|
19839 | # config.status only pays attention to the cache file if you give it |
---|
19840 | # the --recheck option to rerun configure. |
---|
19841 | # |
---|
19842 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
19843 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
19844 | # following values. |
---|
19845 | |
---|
19846 | _ACEOF |
---|
19847 | |
---|
19848 | # The following way of writing the cache mishandles newlines in values, |
---|
19849 | # but we know of no workaround that is simple, portable, and efficient. |
---|
19850 | # So, don't put newlines in cache variables' values. |
---|
19851 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
19852 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
19853 | { |
---|
19854 | (set) 2>&1 | |
---|
19855 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
19856 | *ac_space=\ *) |
---|
19857 | # `set' does not quote correctly, so add quotes (double-quote |
---|
19858 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
19859 | sed -n \ |
---|
19860 | "s/'/'\\\\''/g; |
---|
19861 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
19862 | ;; |
---|
19863 | *) |
---|
19864 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
19865 | sed -n \ |
---|
19866 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
19867 | ;; |
---|
19868 | esac; |
---|
19869 | } | |
---|
19870 | sed ' |
---|
19871 | t clear |
---|
19872 | : clear |
---|
19873 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
19874 | t end |
---|
19875 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
19876 | : end' >>confcache |
---|
19877 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
19878 | if test -w $cache_file; then |
---|
19879 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
19880 | cat confcache >$cache_file |
---|
19881 | else |
---|
19882 | echo "not updating unwritable cache $cache_file" |
---|
19883 | fi |
---|
19884 | fi |
---|
19885 | rm -f confcache |
---|
19886 | |
---|
19887 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
19888 | # Let make expand exec_prefix. |
---|
19889 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
19890 | |
---|
19891 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
19892 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
19893 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
19894 | # (actually we leave an empty line to preserve line numbers). |
---|
19895 | if test "x$srcdir" = x.; then |
---|
19896 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
19897 | s/:*\$(srcdir):*/:/; |
---|
19898 | s/:*\${srcdir}:*/:/; |
---|
19899 | s/:*@srcdir@:*/:/; |
---|
19900 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
19901 | s/:*$//; |
---|
19902 | s/^[^=]*=[ ]*$//; |
---|
19903 | }' |
---|
19904 | fi |
---|
19905 | |
---|
19906 | DEFS=-DHAVE_CONFIG_H |
---|
19907 | |
---|
19908 | ac_libobjs= |
---|
19909 | ac_ltlibobjs= |
---|
19910 | for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue |
---|
19911 | # 1. Remove the extension, and $U if already installed. |
---|
19912 | ac_i=`echo "$ac_i" | |
---|
19913 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
19914 | # 2. Add them. |
---|
19915 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
19916 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
19917 | done |
---|
19918 | LIB@&t@OBJS=$ac_libobjs |
---|
19919 | |
---|
19920 | LTLIBOBJS=$ac_ltlibobjs |
---|
19921 | |
---|
19922 | |
---|
19923 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
19924 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
19925 | Usually this means the macro was only invoked conditionally." >&5 |
---|
19926 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
19927 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
19928 | { (exit 1); exit 1; }; } |
---|
19929 | fi |
---|
19930 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
19931 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
19932 | Usually this means the macro was only invoked conditionally." >&5 |
---|
19933 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
19934 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
19935 | { (exit 1); exit 1; }; } |
---|
19936 | fi |
---|
19937 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
19938 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
19939 | Usually this means the macro was only invoked conditionally." >&5 |
---|
19940 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
19941 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
19942 | { (exit 1); exit 1; }; } |
---|
19943 | fi |
---|
19944 | |
---|
19945 | : ${CONFIG_STATUS=./config.status} |
---|
19946 | ac_clean_files_save=$ac_clean_files |
---|
19947 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
19948 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
19949 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
19950 | cat >$CONFIG_STATUS <<_ACEOF |
---|
19951 | #! $SHELL |
---|
19952 | # Generated by $as_me. |
---|
19953 | # Run this file to recreate the current configuration. |
---|
19954 | # Compiler output produced by configure, useful for debugging |
---|
19955 | # configure, is in config.log if it exists. |
---|
19956 | |
---|
19957 | debug=false |
---|
19958 | ac_cs_recheck=false |
---|
19959 | ac_cs_silent=false |
---|
19960 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
19961 | _ACEOF |
---|
19962 | |
---|
19963 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
19964 | ## --------------------- ## |
---|
19965 | ## M4sh Initialization. ## |
---|
19966 | ## --------------------- ## |
---|
19967 | |
---|
19968 | # Be Bourne compatible |
---|
19969 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
19970 | emulate sh |
---|
19971 | NULLCMD=: |
---|
19972 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
19973 | # is contrary to our usage. Disable this feature. |
---|
19974 | alias -g '${1+"$@"}'='"$@"' |
---|
19975 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
19976 | set -o posix |
---|
19977 | fi |
---|
19978 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19979 | |
---|
19980 | # Support unset when possible. |
---|
19981 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
19982 | as_unset=unset |
---|
19983 | else |
---|
19984 | as_unset=false |
---|
19985 | fi |
---|
19986 | |
---|
19987 | |
---|
19988 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
19989 | $as_unset ENV MAIL MAILPATH |
---|
19990 | PS1='$ ' |
---|
19991 | PS2='> ' |
---|
19992 | PS4='+ ' |
---|
19993 | |
---|
19994 | # NLS nuisances. |
---|
19995 | for as_var in \ |
---|
19996 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
19997 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
19998 | LC_TELEPHONE LC_TIME |
---|
19999 | do |
---|
20000 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
20001 | eval $as_var=C; export $as_var |
---|
20002 | else |
---|
20003 | $as_unset $as_var |
---|
20004 | fi |
---|
20005 | done |
---|
20006 | |
---|
20007 | # Required to use basename. |
---|
20008 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
20009 | as_expr=expr |
---|
20010 | else |
---|
20011 | as_expr=false |
---|
20012 | fi |
---|
20013 | |
---|
20014 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
20015 | as_basename=basename |
---|
20016 | else |
---|
20017 | as_basename=false |
---|
20018 | fi |
---|
20019 | |
---|
20020 | |
---|
20021 | # Name of the executable. |
---|
20022 | as_me=`$as_basename "$0" || |
---|
20023 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
20024 | X"$0" : 'X\(//\)$' \| \ |
---|
20025 | X"$0" : 'X\(/\)$' \| \ |
---|
20026 | . : '\(.\)' 2>/dev/null || |
---|
20027 | echo X/"$0" | |
---|
20028 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
20029 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
20030 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
20031 | s/.*/./; q'` |
---|
20032 | |
---|
20033 | |
---|
20034 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
20035 | # Avoid depending upon Character Ranges. |
---|
20036 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
20037 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
20038 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
20039 | as_cr_digits='0123456789' |
---|
20040 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
20041 | |
---|
20042 | # The user is always right. |
---|
20043 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
20044 | echo "#! /bin/sh" >conf$$.sh |
---|
20045 | echo "exit 0" >>conf$$.sh |
---|
20046 | chmod +x conf$$.sh |
---|
20047 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
20048 | PATH_SEPARATOR=';' |
---|
20049 | else |
---|
20050 | PATH_SEPARATOR=: |
---|
20051 | fi |
---|
20052 | rm -f conf$$.sh |
---|
20053 | fi |
---|
20054 | |
---|
20055 | |
---|
20056 | as_lineno_1=$LINENO |
---|
20057 | as_lineno_2=$LINENO |
---|
20058 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
20059 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
20060 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
20061 | # Find who we are. Look in the path if we contain no path at all |
---|
20062 | # relative or not. |
---|
20063 | case $0 in |
---|
20064 | *[\\/]* ) as_myself=$0 ;; |
---|
20065 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
20066 | for as_dir in $PATH |
---|
20067 | do |
---|
20068 | IFS=$as_save_IFS |
---|
20069 | test -z "$as_dir" && as_dir=. |
---|
20070 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
20071 | done |
---|
20072 | |
---|
20073 | ;; |
---|
20074 | esac |
---|
20075 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
20076 | # in which case we are not to be found in the path. |
---|
20077 | if test "x$as_myself" = x; then |
---|
20078 | as_myself=$0 |
---|
20079 | fi |
---|
20080 | if test ! -f "$as_myself"; then |
---|
20081 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
20082 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
20083 | { (exit 1); exit 1; }; } |
---|
20084 | fi |
---|
20085 | case $CONFIG_SHELL in |
---|
20086 | '') |
---|
20087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
20088 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
20089 | do |
---|
20090 | IFS=$as_save_IFS |
---|
20091 | test -z "$as_dir" && as_dir=. |
---|
20092 | for as_base in sh bash ksh sh5; do |
---|
20093 | case $as_dir in |
---|
20094 | /*) |
---|
20095 | if ("$as_dir/$as_base" -c ' |
---|
20096 | as_lineno_1=$LINENO |
---|
20097 | as_lineno_2=$LINENO |
---|
20098 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
20099 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
20100 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
20101 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
20102 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
20103 | CONFIG_SHELL=$as_dir/$as_base |
---|
20104 | export CONFIG_SHELL |
---|
20105 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
20106 | fi;; |
---|
20107 | esac |
---|
20108 | done |
---|
20109 | done |
---|
20110 | ;; |
---|
20111 | esac |
---|
20112 | |
---|
20113 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
20114 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
20115 | # line-number line before each line; the second 'sed' does the real |
---|
20116 | # work. The second script uses 'N' to pair each line-number line |
---|
20117 | # with the numbered line, and appends trailing '-' during |
---|
20118 | # substitution so that $LINENO is not a special case at line end. |
---|
20119 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
20120 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
20121 | sed '=' <$as_myself | |
---|
20122 | sed ' |
---|
20123 | N |
---|
20124 | s,$,-, |
---|
20125 | : loop |
---|
20126 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
20127 | t loop |
---|
20128 | s,-$,, |
---|
20129 | s,^['$as_cr_digits']*\n,, |
---|
20130 | ' >$as_me.lineno && |
---|
20131 | chmod +x $as_me.lineno || |
---|
20132 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
20133 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
20134 | { (exit 1); exit 1; }; } |
---|
20135 | |
---|
20136 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
20137 | # (the dirname of $[0] is not the place where we might find the |
---|
20138 | # original and so on. Autoconf is especially sensible to this). |
---|
20139 | . ./$as_me.lineno |
---|
20140 | # Exit status is that of the last command. |
---|
20141 | exit |
---|
20142 | } |
---|
20143 | |
---|
20144 | |
---|
20145 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
20146 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
20147 | ' ECHO_T=' ' ;; |
---|
20148 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
20149 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
20150 | esac |
---|
20151 | |
---|
20152 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
20153 | as_expr=expr |
---|
20154 | else |
---|
20155 | as_expr=false |
---|
20156 | fi |
---|
20157 | |
---|
20158 | rm -f conf$$ conf$$.exe conf$$.file |
---|
20159 | echo >conf$$.file |
---|
20160 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
20161 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
20162 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
20163 | if test -f conf$$.exe; then |
---|
20164 | # Don't use ln at all; we don't have any links |
---|
20165 | as_ln_s='cp -p' |
---|
20166 | else |
---|
20167 | as_ln_s='ln -s' |
---|
20168 | fi |
---|
20169 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
20170 | as_ln_s=ln |
---|
20171 | else |
---|
20172 | as_ln_s='cp -p' |
---|
20173 | fi |
---|
20174 | rm -f conf$$ conf$$.exe conf$$.file |
---|
20175 | |
---|
20176 | if mkdir -p . 2>/dev/null; then |
---|
20177 | as_mkdir_p=: |
---|
20178 | else |
---|
20179 | test -d ./-p && rmdir ./-p |
---|
20180 | as_mkdir_p=false |
---|
20181 | fi |
---|
20182 | |
---|
20183 | as_executable_p="test -f" |
---|
20184 | |
---|
20185 | # Sed expression to map a string onto a valid CPP name. |
---|
20186 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
20187 | |
---|
20188 | # Sed expression to map a string onto a valid variable name. |
---|
20189 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
20190 | |
---|
20191 | |
---|
20192 | # IFS |
---|
20193 | # We need space, tab and new line, in precisely that order. |
---|
20194 | as_nl=' |
---|
20195 | ' |
---|
20196 | IFS=" $as_nl" |
---|
20197 | |
---|
20198 | # CDPATH. |
---|
20199 | $as_unset CDPATH |
---|
20200 | |
---|
20201 | exec 6>&1 |
---|
20202 | |
---|
20203 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
20204 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
20205 | # values after options handling. Logging --version etc. is OK. |
---|
20206 | exec 5>>config.log |
---|
20207 | { |
---|
20208 | echo |
---|
20209 | sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX |
---|
20210 | @%:@@%:@ Running $as_me. @%:@@%:@ |
---|
20211 | _ASBOX |
---|
20212 | } >&5 |
---|
20213 | cat >&5 <<_CSEOF |
---|
20214 | |
---|
20215 | This file was extended by OGRE_REFAPP $as_me 0.10.0, which was |
---|
20216 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
20217 | |
---|
20218 | CONFIG_FILES = $CONFIG_FILES |
---|
20219 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
20220 | CONFIG_LINKS = $CONFIG_LINKS |
---|
20221 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
20222 | $ $0 $@ |
---|
20223 | |
---|
20224 | _CSEOF |
---|
20225 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
20226 | echo >&5 |
---|
20227 | _ACEOF |
---|
20228 | |
---|
20229 | # Files that config.status was made for. |
---|
20230 | if test -n "$ac_config_files"; then |
---|
20231 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
20232 | fi |
---|
20233 | |
---|
20234 | if test -n "$ac_config_headers"; then |
---|
20235 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
20236 | fi |
---|
20237 | |
---|
20238 | if test -n "$ac_config_links"; then |
---|
20239 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
20240 | fi |
---|
20241 | |
---|
20242 | if test -n "$ac_config_commands"; then |
---|
20243 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
20244 | fi |
---|
20245 | |
---|
20246 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20247 | |
---|
20248 | ac_cs_usage="\ |
---|
20249 | \`$as_me' instantiates files from templates according to the |
---|
20250 | current configuration. |
---|
20251 | |
---|
20252 | Usage: $0 [OPTIONS] [FILE]... |
---|
20253 | |
---|
20254 | -h, --help print this help, then exit |
---|
20255 | -V, --version print version number, then exit |
---|
20256 | -q, --quiet do not print progress messages |
---|
20257 | -d, --debug don't remove temporary files |
---|
20258 | --recheck update $as_me by reconfiguring in the same conditions |
---|
20259 | --file=FILE[:TEMPLATE] |
---|
20260 | instantiate the configuration file FILE |
---|
20261 | --header=FILE[:TEMPLATE] |
---|
20262 | instantiate the configuration header FILE |
---|
20263 | |
---|
20264 | Configuration files: |
---|
20265 | $config_files |
---|
20266 | |
---|
20267 | Configuration headers: |
---|
20268 | $config_headers |
---|
20269 | |
---|
20270 | Configuration commands: |
---|
20271 | $config_commands |
---|
20272 | |
---|
20273 | Report bugs to <bug-autoconf@gnu.org>." |
---|
20274 | _ACEOF |
---|
20275 | |
---|
20276 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20277 | ac_cs_version="\\ |
---|
20278 | OGRE_REFAPP config.status 0.10.0 |
---|
20279 | configured by $0, generated by GNU Autoconf 2.59, |
---|
20280 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
20281 | |
---|
20282 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
20283 | This config.status script is free software; the Free Software Foundation |
---|
20284 | gives unlimited permission to copy, distribute and modify it." |
---|
20285 | srcdir=$srcdir |
---|
20286 | INSTALL="$INSTALL" |
---|
20287 | _ACEOF |
---|
20288 | |
---|
20289 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20290 | # If no file are specified by the user, then we need to provide default |
---|
20291 | # value. By we need to know if files were specified by the user. |
---|
20292 | ac_need_defaults=: |
---|
20293 | while test $# != 0 |
---|
20294 | do |
---|
20295 | case $1 in |
---|
20296 | --*=*) |
---|
20297 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
20298 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
20299 | ac_shift=: |
---|
20300 | ;; |
---|
20301 | -*) |
---|
20302 | ac_option=$1 |
---|
20303 | ac_optarg=$2 |
---|
20304 | ac_shift=shift |
---|
20305 | ;; |
---|
20306 | *) # This is not an option, so the user has probably given explicit |
---|
20307 | # arguments. |
---|
20308 | ac_option=$1 |
---|
20309 | ac_need_defaults=false;; |
---|
20310 | esac |
---|
20311 | |
---|
20312 | case $ac_option in |
---|
20313 | # Handling of the options. |
---|
20314 | _ACEOF |
---|
20315 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20316 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
20317 | ac_cs_recheck=: ;; |
---|
20318 | --version | --vers* | -V ) |
---|
20319 | echo "$ac_cs_version"; exit 0 ;; |
---|
20320 | --he | --h) |
---|
20321 | # Conflict between --help and --header |
---|
20322 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
20323 | Try \`$0 --help' for more information." >&5 |
---|
20324 | echo "$as_me: error: ambiguous option: $1 |
---|
20325 | Try \`$0 --help' for more information." >&2;} |
---|
20326 | { (exit 1); exit 1; }; };; |
---|
20327 | --help | --hel | -h ) |
---|
20328 | echo "$ac_cs_usage"; exit 0 ;; |
---|
20329 | --debug | --d* | -d ) |
---|
20330 | debug=: ;; |
---|
20331 | --file | --fil | --fi | --f ) |
---|
20332 | $ac_shift |
---|
20333 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
20334 | ac_need_defaults=false;; |
---|
20335 | --header | --heade | --head | --hea ) |
---|
20336 | $ac_shift |
---|
20337 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
20338 | ac_need_defaults=false;; |
---|
20339 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
20340 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
20341 | ac_cs_silent=: ;; |
---|
20342 | |
---|
20343 | # This is an error. |
---|
20344 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
20345 | Try \`$0 --help' for more information." >&5 |
---|
20346 | echo "$as_me: error: unrecognized option: $1 |
---|
20347 | Try \`$0 --help' for more information." >&2;} |
---|
20348 | { (exit 1); exit 1; }; } ;; |
---|
20349 | |
---|
20350 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
20351 | |
---|
20352 | esac |
---|
20353 | shift |
---|
20354 | done |
---|
20355 | |
---|
20356 | ac_configure_extra_args= |
---|
20357 | |
---|
20358 | if $ac_cs_silent; then |
---|
20359 | exec 6>/dev/null |
---|
20360 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
20361 | fi |
---|
20362 | |
---|
20363 | _ACEOF |
---|
20364 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20365 | if \$ac_cs_recheck; then |
---|
20366 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
20367 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
20368 | fi |
---|
20369 | |
---|
20370 | _ACEOF |
---|
20371 | |
---|
20372 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20373 | # |
---|
20374 | # INIT-COMMANDS section. |
---|
20375 | # |
---|
20376 | |
---|
20377 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
20378 | |
---|
20379 | _ACEOF |
---|
20380 | |
---|
20381 | |
---|
20382 | |
---|
20383 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20384 | for ac_config_target in $ac_config_targets |
---|
20385 | do |
---|
20386 | case "$ac_config_target" in |
---|
20387 | # Handling of arguments. |
---|
20388 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
20389 | "ReferenceAppLayer/Makefile" ) CONFIG_FILES="$CONFIG_FILES ReferenceAppLayer/Makefile" ;; |
---|
20390 | "ReferenceAppLayer/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ReferenceAppLayer/src/Makefile" ;; |
---|
20391 | "ReferenceAppLayer/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES ReferenceAppLayer/include/Makefile" ;; |
---|
20392 | "BspCollision/Makefile" ) CONFIG_FILES="$CONFIG_FILES BspCollision/Makefile" ;; |
---|
20393 | "BspCollision/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BspCollision/src/Makefile" ;; |
---|
20394 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
20395 | "ReferenceAppLayer/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ReferenceAppLayer/include/config.h" ;; |
---|
20396 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
20397 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
20398 | { (exit 1); exit 1; }; };; |
---|
20399 | esac |
---|
20400 | done |
---|
20401 | |
---|
20402 | # If the user did not use the arguments to specify the items to instantiate, |
---|
20403 | # then the envvar interface is used. Set only those that are not. |
---|
20404 | # We use the long form for the default assignment because of an extremely |
---|
20405 | # bizarre bug on SunOS 4.1.3. |
---|
20406 | if $ac_need_defaults; then |
---|
20407 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
20408 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
20409 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
20410 | fi |
---|
20411 | |
---|
20412 | # Have a temporary directory for convenience. Make it in the build tree |
---|
20413 | # simply because there is no reason to put it here, and in addition, |
---|
20414 | # creating and moving files from /tmp can sometimes cause problems. |
---|
20415 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
20416 | $debug || |
---|
20417 | { |
---|
20418 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
20419 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
20420 | } |
---|
20421 | |
---|
20422 | # Create a (secure) tmp directory for tmp files. |
---|
20423 | |
---|
20424 | { |
---|
20425 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
20426 | test -n "$tmp" && test -d "$tmp" |
---|
20427 | } || |
---|
20428 | { |
---|
20429 | tmp=./confstat$$-$RANDOM |
---|
20430 | (umask 077 && mkdir $tmp) |
---|
20431 | } || |
---|
20432 | { |
---|
20433 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
20434 | { (exit 1); exit 1; } |
---|
20435 | } |
---|
20436 | |
---|
20437 | _ACEOF |
---|
20438 | |
---|
20439 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20440 | |
---|
20441 | # |
---|
20442 | # CONFIG_FILES section. |
---|
20443 | # |
---|
20444 | |
---|
20445 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
20446 | # This happens for instance when ./config.status config.h |
---|
20447 | if test -n "\$CONFIG_FILES"; then |
---|
20448 | # Protect against being on the right side of a sed subst in config.status. |
---|
20449 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
20450 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
20451 | s,@SHELL@,$SHELL,;t t |
---|
20452 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
20453 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
20454 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
20455 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
20456 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
20457 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
20458 | s,@exec_prefix@,$exec_prefix,;t t |
---|
20459 | s,@prefix@,$prefix,;t t |
---|
20460 | s,@program_transform_name@,$program_transform_name,;t t |
---|
20461 | s,@bindir@,$bindir,;t t |
---|
20462 | s,@sbindir@,$sbindir,;t t |
---|
20463 | s,@libexecdir@,$libexecdir,;t t |
---|
20464 | s,@datadir@,$datadir,;t t |
---|
20465 | s,@sysconfdir@,$sysconfdir,;t t |
---|
20466 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
20467 | s,@localstatedir@,$localstatedir,;t t |
---|
20468 | s,@libdir@,$libdir,;t t |
---|
20469 | s,@includedir@,$includedir,;t t |
---|
20470 | s,@oldincludedir@,$oldincludedir,;t t |
---|
20471 | s,@infodir@,$infodir,;t t |
---|
20472 | s,@mandir@,$mandir,;t t |
---|
20473 | s,@build_alias@,$build_alias,;t t |
---|
20474 | s,@host_alias@,$host_alias,;t t |
---|
20475 | s,@target_alias@,$target_alias,;t t |
---|
20476 | s,@DEFS@,$DEFS,;t t |
---|
20477 | s,@ECHO_C@,$ECHO_C,;t t |
---|
20478 | s,@ECHO_N@,$ECHO_N,;t t |
---|
20479 | s,@ECHO_T@,$ECHO_T,;t t |
---|
20480 | s,@LIBS@,$LIBS,;t t |
---|
20481 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
20482 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
20483 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
20484 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
20485 | s,@PACKAGE@,$PACKAGE,;t t |
---|
20486 | s,@VERSION@,$VERSION,;t t |
---|
20487 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
20488 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
20489 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
20490 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
20491 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
20492 | s,@install_sh@,$install_sh,;t t |
---|
20493 | s,@STRIP@,$STRIP,;t t |
---|
20494 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
20495 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
20496 | s,@mkdir_p@,$mkdir_p,;t t |
---|
20497 | s,@AWK@,$AWK,;t t |
---|
20498 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
20499 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
20500 | s,@AMTAR@,$AMTAR,;t t |
---|
20501 | s,@am__tar@,$am__tar,;t t |
---|
20502 | s,@am__untar@,$am__untar,;t t |
---|
20503 | s,@build@,$build,;t t |
---|
20504 | s,@build_cpu@,$build_cpu,;t t |
---|
20505 | s,@build_vendor@,$build_vendor,;t t |
---|
20506 | s,@build_os@,$build_os,;t t |
---|
20507 | s,@host@,$host,;t t |
---|
20508 | s,@host_cpu@,$host_cpu,;t t |
---|
20509 | s,@host_vendor@,$host_vendor,;t t |
---|
20510 | s,@host_os@,$host_os,;t t |
---|
20511 | s,@target@,$target,;t t |
---|
20512 | s,@target_cpu@,$target_cpu,;t t |
---|
20513 | s,@target_vendor@,$target_vendor,;t t |
---|
20514 | s,@target_os@,$target_os,;t t |
---|
20515 | s,@CC@,$CC,;t t |
---|
20516 | s,@CFLAGS@,$CFLAGS,;t t |
---|
20517 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
20518 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
20519 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
20520 | s,@EXEEXT@,$EXEEXT,;t t |
---|
20521 | s,@OBJEXT@,$OBJEXT,;t t |
---|
20522 | s,@DEPDIR@,$DEPDIR,;t t |
---|
20523 | s,@am__include@,$am__include,;t t |
---|
20524 | s,@am__quote@,$am__quote,;t t |
---|
20525 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
20526 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
20527 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
20528 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
20529 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
20530 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
20531 | s,@CXX@,$CXX,;t t |
---|
20532 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
20533 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
20534 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
20535 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
20536 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
20537 | s,@EGREP@,$EGREP,;t t |
---|
20538 | s,@LN_S@,$LN_S,;t t |
---|
20539 | s,@ECHO@,$ECHO,;t t |
---|
20540 | s,@AR@,$AR,;t t |
---|
20541 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
---|
20542 | s,@RANLIB@,$RANLIB,;t t |
---|
20543 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
20544 | s,@CPP@,$CPP,;t t |
---|
20545 | s,@CXXCPP@,$CXXCPP,;t t |
---|
20546 | s,@F77@,$F77,;t t |
---|
20547 | s,@FFLAGS@,$FFLAGS,;t t |
---|
20548 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
---|
20549 | s,@LIBTOOL@,$LIBTOOL,;t t |
---|
20550 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
20551 | s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t |
---|
20552 | s,@OGRE_CFLAGS@,$OGRE_CFLAGS,;t t |
---|
20553 | s,@OGRE_LIBS@,$OGRE_LIBS,;t t |
---|
20554 | s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t |
---|
20555 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
20556 | CEOF |
---|
20557 | |
---|
20558 | _ACEOF |
---|
20559 | |
---|
20560 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20561 | # Split the substitutions into bite-sized pieces for seds with |
---|
20562 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
20563 | ac_max_sed_lines=48 |
---|
20564 | ac_sed_frag=1 # Number of current file. |
---|
20565 | ac_beg=1 # First line for current file. |
---|
20566 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
20567 | ac_more_lines=: |
---|
20568 | ac_sed_cmds= |
---|
20569 | while $ac_more_lines; do |
---|
20570 | if test $ac_beg -gt 1; then |
---|
20571 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
20572 | else |
---|
20573 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
20574 | fi |
---|
20575 | if test ! -s $tmp/subs.frag; then |
---|
20576 | ac_more_lines=false |
---|
20577 | else |
---|
20578 | # The purpose of the label and of the branching condition is to |
---|
20579 | # speed up the sed processing (if there are no `@' at all, there |
---|
20580 | # is no need to browse any of the substitutions). |
---|
20581 | # These are the two extra sed commands mentioned above. |
---|
20582 | (echo ':t |
---|
20583 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
20584 | if test -z "$ac_sed_cmds"; then |
---|
20585 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
20586 | else |
---|
20587 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
20588 | fi |
---|
20589 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
20590 | ac_beg=$ac_end |
---|
20591 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
20592 | fi |
---|
20593 | done |
---|
20594 | if test -z "$ac_sed_cmds"; then |
---|
20595 | ac_sed_cmds=cat |
---|
20596 | fi |
---|
20597 | fi # test -n "$CONFIG_FILES" |
---|
20598 | |
---|
20599 | _ACEOF |
---|
20600 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20601 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
20602 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
20603 | case $ac_file in |
---|
20604 | - | *:- | *:-:* ) # input from stdin |
---|
20605 | cat >$tmp/stdin |
---|
20606 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
20607 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
20608 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
20609 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
20610 | * ) ac_file_in=$ac_file.in ;; |
---|
20611 | esac |
---|
20612 | |
---|
20613 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
20614 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
20615 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
20616 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
20617 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
20618 | X"$ac_file" : 'X\(/\)' \| \ |
---|
20619 | . : '\(.\)' 2>/dev/null || |
---|
20620 | echo X"$ac_file" | |
---|
20621 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
20622 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
20623 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
20624 | /^X\(\/\).*/{ s//\1/; q; } |
---|
20625 | s/.*/./; q'` |
---|
20626 | { if $as_mkdir_p; then |
---|
20627 | mkdir -p "$ac_dir" |
---|
20628 | else |
---|
20629 | as_dir="$ac_dir" |
---|
20630 | as_dirs= |
---|
20631 | while test ! -d "$as_dir"; do |
---|
20632 | as_dirs="$as_dir $as_dirs" |
---|
20633 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
20634 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
20635 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
20636 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
20637 | X"$as_dir" : 'X\(/\)' \| \ |
---|
20638 | . : '\(.\)' 2>/dev/null || |
---|
20639 | echo X"$as_dir" | |
---|
20640 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
20641 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
20642 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
20643 | /^X\(\/\).*/{ s//\1/; q; } |
---|
20644 | s/.*/./; q'` |
---|
20645 | done |
---|
20646 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
20647 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
20648 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
20649 | { (exit 1); exit 1; }; }; } |
---|
20650 | |
---|
20651 | ac_builddir=. |
---|
20652 | |
---|
20653 | if test "$ac_dir" != .; then |
---|
20654 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
20655 | # A "../" for each directory in $ac_dir_suffix. |
---|
20656 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
20657 | else |
---|
20658 | ac_dir_suffix= ac_top_builddir= |
---|
20659 | fi |
---|
20660 | |
---|
20661 | case $srcdir in |
---|
20662 | .) # No --srcdir option. We are building in place. |
---|
20663 | ac_srcdir=. |
---|
20664 | if test -z "$ac_top_builddir"; then |
---|
20665 | ac_top_srcdir=. |
---|
20666 | else |
---|
20667 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
20668 | fi ;; |
---|
20669 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
20670 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
20671 | ac_top_srcdir=$srcdir ;; |
---|
20672 | *) # Relative path. |
---|
20673 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
20674 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
20675 | esac |
---|
20676 | |
---|
20677 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
20678 | # the directories may not exist. |
---|
20679 | case `pwd` in |
---|
20680 | .) ac_abs_builddir="$ac_dir";; |
---|
20681 | *) |
---|
20682 | case "$ac_dir" in |
---|
20683 | .) ac_abs_builddir=`pwd`;; |
---|
20684 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
20685 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
20686 | esac;; |
---|
20687 | esac |
---|
20688 | case $ac_abs_builddir in |
---|
20689 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
20690 | *) |
---|
20691 | case ${ac_top_builddir}. in |
---|
20692 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
20693 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
20694 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
20695 | esac;; |
---|
20696 | esac |
---|
20697 | case $ac_abs_builddir in |
---|
20698 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
20699 | *) |
---|
20700 | case $ac_srcdir in |
---|
20701 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
20702 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
20703 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
20704 | esac;; |
---|
20705 | esac |
---|
20706 | case $ac_abs_builddir in |
---|
20707 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
20708 | *) |
---|
20709 | case $ac_top_srcdir in |
---|
20710 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
20711 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
20712 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
20713 | esac;; |
---|
20714 | esac |
---|
20715 | |
---|
20716 | |
---|
20717 | case $INSTALL in |
---|
20718 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
20719 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
20720 | esac |
---|
20721 | |
---|
20722 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
20723 | # use $as_me), people would be surprised to read: |
---|
20724 | # /* config.h. Generated by config.status. */ |
---|
20725 | if test x"$ac_file" = x-; then |
---|
20726 | configure_input= |
---|
20727 | else |
---|
20728 | configure_input="$ac_file. " |
---|
20729 | fi |
---|
20730 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
20731 | sed 's,.*/,,'` by configure." |
---|
20732 | |
---|
20733 | # First look for the input files in the build tree, otherwise in the |
---|
20734 | # src tree. |
---|
20735 | ac_file_inputs=`IFS=: |
---|
20736 | for f in $ac_file_in; do |
---|
20737 | case $f in |
---|
20738 | -) echo $tmp/stdin ;; |
---|
20739 | [\\/$]*) |
---|
20740 | # Absolute (can't be DOS-style, as IFS=:) |
---|
20741 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
20742 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
20743 | { (exit 1); exit 1; }; } |
---|
20744 | echo "$f";; |
---|
20745 | *) # Relative |
---|
20746 | if test -f "$f"; then |
---|
20747 | # Build tree |
---|
20748 | echo "$f" |
---|
20749 | elif test -f "$srcdir/$f"; then |
---|
20750 | # Source tree |
---|
20751 | echo "$srcdir/$f" |
---|
20752 | else |
---|
20753 | # /dev/null tree |
---|
20754 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
20755 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
20756 | { (exit 1); exit 1; }; } |
---|
20757 | fi;; |
---|
20758 | esac |
---|
20759 | done` || { (exit 1); exit 1; } |
---|
20760 | |
---|
20761 | if test x"$ac_file" != x-; then |
---|
20762 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
20763 | echo "$as_me: creating $ac_file" >&6;} |
---|
20764 | rm -f "$ac_file" |
---|
20765 | fi |
---|
20766 | _ACEOF |
---|
20767 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
20768 | sed "$ac_vpsub |
---|
20769 | $extrasub |
---|
20770 | _ACEOF |
---|
20771 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20772 | :t |
---|
20773 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
20774 | s,@configure_input@,$configure_input,;t t |
---|
20775 | s,@srcdir@,$ac_srcdir,;t t |
---|
20776 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
20777 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
20778 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
20779 | s,@builddir@,$ac_builddir,;t t |
---|
20780 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
20781 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
20782 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
20783 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
20784 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
20785 | rm -f $tmp/stdin |
---|
20786 | if test x"$ac_file" != x-; then |
---|
20787 | mv $tmp/out $ac_file |
---|
20788 | else |
---|
20789 | cat $tmp/out |
---|
20790 | rm -f $tmp/out |
---|
20791 | fi |
---|
20792 | |
---|
20793 | done |
---|
20794 | _ACEOF |
---|
20795 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20796 | |
---|
20797 | # |
---|
20798 | # CONFIG_HEADER section. |
---|
20799 | # |
---|
20800 | |
---|
20801 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
20802 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
20803 | # |
---|
20804 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
20805 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
20806 | ac_dB='[ ].*$,\1#\2' |
---|
20807 | ac_dC=' ' |
---|
20808 | ac_dD=',;t' |
---|
20809 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
20810 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
20811 | ac_uB='$,\1#\2define\3' |
---|
20812 | ac_uC=' ' |
---|
20813 | ac_uD=',;t' |
---|
20814 | |
---|
20815 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
20816 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
20817 | case $ac_file in |
---|
20818 | - | *:- | *:-:* ) # input from stdin |
---|
20819 | cat >$tmp/stdin |
---|
20820 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
20821 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
20822 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
20823 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
20824 | * ) ac_file_in=$ac_file.in ;; |
---|
20825 | esac |
---|
20826 | |
---|
20827 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
20828 | echo "$as_me: creating $ac_file" >&6;} |
---|
20829 | |
---|
20830 | # First look for the input files in the build tree, otherwise in the |
---|
20831 | # src tree. |
---|
20832 | ac_file_inputs=`IFS=: |
---|
20833 | for f in $ac_file_in; do |
---|
20834 | case $f in |
---|
20835 | -) echo $tmp/stdin ;; |
---|
20836 | [\\/$]*) |
---|
20837 | # Absolute (can't be DOS-style, as IFS=:) |
---|
20838 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
20839 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
20840 | { (exit 1); exit 1; }; } |
---|
20841 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
20842 | echo "$f";; |
---|
20843 | *) # Relative |
---|
20844 | if test -f "$f"; then |
---|
20845 | # Build tree |
---|
20846 | echo "$f" |
---|
20847 | elif test -f "$srcdir/$f"; then |
---|
20848 | # Source tree |
---|
20849 | echo "$srcdir/$f" |
---|
20850 | else |
---|
20851 | # /dev/null tree |
---|
20852 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
20853 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
20854 | { (exit 1); exit 1; }; } |
---|
20855 | fi;; |
---|
20856 | esac |
---|
20857 | done` || { (exit 1); exit 1; } |
---|
20858 | # Remove the trailing spaces. |
---|
20859 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
20860 | |
---|
20861 | _ACEOF |
---|
20862 | |
---|
20863 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
20864 | # `conftest.undefs', that substitutes the proper values into |
---|
20865 | # config.h.in to produce config.h. The first handles `#define' |
---|
20866 | # templates, and the second `#undef' templates. |
---|
20867 | # And first: Protect against being on the right side of a sed subst in |
---|
20868 | # config.status. Protect against being in an unquoted here document |
---|
20869 | # in config.status. |
---|
20870 | rm -f conftest.defines conftest.undefs |
---|
20871 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
20872 | # Putting comments in sed scripts is not portable. |
---|
20873 | # |
---|
20874 | # `end' is used to avoid that the second main sed command (meant for |
---|
20875 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
20876 | # See the Autoconf documentation for `clear'. |
---|
20877 | cat >confdef2sed.sed <<\_ACEOF |
---|
20878 | s/[\\&,]/\\&/g |
---|
20879 | s,[\\$`],\\&,g |
---|
20880 | t clear |
---|
20881 | : clear |
---|
20882 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
20883 | t end |
---|
20884 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
20885 | : end |
---|
20886 | _ACEOF |
---|
20887 | # If some macros were called several times there might be several times |
---|
20888 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
20889 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
20890 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
20891 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
20892 | rm -f confdef2sed.sed |
---|
20893 | |
---|
20894 | # This sed command replaces #undef with comments. This is necessary, for |
---|
20895 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
20896 | # on some systems where configure will not decide to define it. |
---|
20897 | cat >>conftest.undefs <<\_ACEOF |
---|
20898 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
20899 | _ACEOF |
---|
20900 | |
---|
20901 | # Break up conftest.defines because some shells have a limit on the size |
---|
20902 | # of here documents, and old seds have small limits too (100 cmds). |
---|
20903 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
20904 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
20905 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
20906 | echo ' :' >>$CONFIG_STATUS |
---|
20907 | rm -f conftest.tail |
---|
20908 | while grep . conftest.defines >/dev/null |
---|
20909 | do |
---|
20910 | # Write a limited-size here document to $tmp/defines.sed. |
---|
20911 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
20912 | # Speed up: don't consider the non `#define' lines. |
---|
20913 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
20914 | # Work around the forget-to-reset-the-flag bug. |
---|
20915 | echo 't clr' >>$CONFIG_STATUS |
---|
20916 | echo ': clr' >>$CONFIG_STATUS |
---|
20917 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
20918 | echo 'CEOF |
---|
20919 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
20920 | rm -f $tmp/in |
---|
20921 | mv $tmp/out $tmp/in |
---|
20922 | ' >>$CONFIG_STATUS |
---|
20923 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
20924 | rm -f conftest.defines |
---|
20925 | mv conftest.tail conftest.defines |
---|
20926 | done |
---|
20927 | rm -f conftest.defines |
---|
20928 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
20929 | echo >>$CONFIG_STATUS |
---|
20930 | |
---|
20931 | # Break up conftest.undefs because some shells have a limit on the size |
---|
20932 | # of here documents, and old seds have small limits too (100 cmds). |
---|
20933 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
20934 | rm -f conftest.tail |
---|
20935 | while grep . conftest.undefs >/dev/null |
---|
20936 | do |
---|
20937 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
20938 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
20939 | # Speed up: don't consider the non `#undef' |
---|
20940 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
20941 | # Work around the forget-to-reset-the-flag bug. |
---|
20942 | echo 't clr' >>$CONFIG_STATUS |
---|
20943 | echo ': clr' >>$CONFIG_STATUS |
---|
20944 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
20945 | echo 'CEOF |
---|
20946 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
20947 | rm -f $tmp/in |
---|
20948 | mv $tmp/out $tmp/in |
---|
20949 | ' >>$CONFIG_STATUS |
---|
20950 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
20951 | rm -f conftest.undefs |
---|
20952 | mv conftest.tail conftest.undefs |
---|
20953 | done |
---|
20954 | rm -f conftest.undefs |
---|
20955 | |
---|
20956 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
20957 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
20958 | # use $as_me), people would be surprised to read: |
---|
20959 | # /* config.h. Generated by config.status. */ |
---|
20960 | if test x"$ac_file" = x-; then |
---|
20961 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
20962 | else |
---|
20963 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
20964 | fi |
---|
20965 | cat $tmp/in >>$tmp/config.h |
---|
20966 | rm -f $tmp/in |
---|
20967 | if test x"$ac_file" != x-; then |
---|
20968 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
20969 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
20970 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
20971 | else |
---|
20972 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
20973 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
20974 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
20975 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
20976 | X"$ac_file" : 'X\(/\)' \| \ |
---|
20977 | . : '\(.\)' 2>/dev/null || |
---|
20978 | echo X"$ac_file" | |
---|
20979 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
20980 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
20981 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
20982 | /^X\(\/\).*/{ s//\1/; q; } |
---|
20983 | s/.*/./; q'` |
---|
20984 | { if $as_mkdir_p; then |
---|
20985 | mkdir -p "$ac_dir" |
---|
20986 | else |
---|
20987 | as_dir="$ac_dir" |
---|
20988 | as_dirs= |
---|
20989 | while test ! -d "$as_dir"; do |
---|
20990 | as_dirs="$as_dir $as_dirs" |
---|
20991 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
20992 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
20993 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
20994 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
20995 | X"$as_dir" : 'X\(/\)' \| \ |
---|
20996 | . : '\(.\)' 2>/dev/null || |
---|
20997 | echo X"$as_dir" | |
---|
20998 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
20999 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21000 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21001 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21002 | s/.*/./; q'` |
---|
21003 | done |
---|
21004 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
21005 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
21006 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
21007 | { (exit 1); exit 1; }; }; } |
---|
21008 | |
---|
21009 | rm -f $ac_file |
---|
21010 | mv $tmp/config.h $ac_file |
---|
21011 | fi |
---|
21012 | else |
---|
21013 | cat $tmp/config.h |
---|
21014 | rm -f $tmp/config.h |
---|
21015 | fi |
---|
21016 | # Compute $ac_file's index in $config_headers. |
---|
21017 | _am_stamp_count=1 |
---|
21018 | for _am_header in $config_headers :; do |
---|
21019 | case $_am_header in |
---|
21020 | $ac_file | $ac_file:* ) |
---|
21021 | break ;; |
---|
21022 | * ) |
---|
21023 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
21024 | esac |
---|
21025 | done |
---|
21026 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
21027 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21028 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
21029 | X$ac_file : 'X\(//\)$' \| \ |
---|
21030 | X$ac_file : 'X\(/\)' \| \ |
---|
21031 | . : '\(.\)' 2>/dev/null || |
---|
21032 | echo X$ac_file | |
---|
21033 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21034 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21035 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21036 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21037 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
21038 | done |
---|
21039 | _ACEOF |
---|
21040 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
21041 | |
---|
21042 | # |
---|
21043 | # CONFIG_COMMANDS section. |
---|
21044 | # |
---|
21045 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
21046 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
21047 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
21048 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
21049 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21050 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
21051 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
21052 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
21053 | . : '\(.\)' 2>/dev/null || |
---|
21054 | echo X"$ac_dest" | |
---|
21055 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21056 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21057 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21058 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21059 | s/.*/./; q'` |
---|
21060 | { if $as_mkdir_p; then |
---|
21061 | mkdir -p "$ac_dir" |
---|
21062 | else |
---|
21063 | as_dir="$ac_dir" |
---|
21064 | as_dirs= |
---|
21065 | while test ! -d "$as_dir"; do |
---|
21066 | as_dirs="$as_dir $as_dirs" |
---|
21067 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
21068 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21069 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
21070 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
21071 | X"$as_dir" : 'X\(/\)' \| \ |
---|
21072 | . : '\(.\)' 2>/dev/null || |
---|
21073 | echo X"$as_dir" | |
---|
21074 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21075 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21076 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21077 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21078 | s/.*/./; q'` |
---|
21079 | done |
---|
21080 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
21081 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
21082 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
21083 | { (exit 1); exit 1; }; }; } |
---|
21084 | |
---|
21085 | ac_builddir=. |
---|
21086 | |
---|
21087 | if test "$ac_dir" != .; then |
---|
21088 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
21089 | # A "../" for each directory in $ac_dir_suffix. |
---|
21090 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
21091 | else |
---|
21092 | ac_dir_suffix= ac_top_builddir= |
---|
21093 | fi |
---|
21094 | |
---|
21095 | case $srcdir in |
---|
21096 | .) # No --srcdir option. We are building in place. |
---|
21097 | ac_srcdir=. |
---|
21098 | if test -z "$ac_top_builddir"; then |
---|
21099 | ac_top_srcdir=. |
---|
21100 | else |
---|
21101 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
21102 | fi ;; |
---|
21103 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
21104 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
21105 | ac_top_srcdir=$srcdir ;; |
---|
21106 | *) # Relative path. |
---|
21107 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
21108 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
21109 | esac |
---|
21110 | |
---|
21111 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
21112 | # the directories may not exist. |
---|
21113 | case `pwd` in |
---|
21114 | .) ac_abs_builddir="$ac_dir";; |
---|
21115 | *) |
---|
21116 | case "$ac_dir" in |
---|
21117 | .) ac_abs_builddir=`pwd`;; |
---|
21118 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
21119 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
21120 | esac;; |
---|
21121 | esac |
---|
21122 | case $ac_abs_builddir in |
---|
21123 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
21124 | *) |
---|
21125 | case ${ac_top_builddir}. in |
---|
21126 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
21127 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
21128 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
21129 | esac;; |
---|
21130 | esac |
---|
21131 | case $ac_abs_builddir in |
---|
21132 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
21133 | *) |
---|
21134 | case $ac_srcdir in |
---|
21135 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
21136 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
21137 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
21138 | esac;; |
---|
21139 | esac |
---|
21140 | case $ac_abs_builddir in |
---|
21141 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
21142 | *) |
---|
21143 | case $ac_top_srcdir in |
---|
21144 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
21145 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
21146 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
21147 | esac;; |
---|
21148 | esac |
---|
21149 | |
---|
21150 | |
---|
21151 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
21152 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
21153 | case $ac_dest in |
---|
21154 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
21155 | # Strip MF so we end up with the name of the file. |
---|
21156 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
21157 | # Check whether this is an Automake generated Makefile or not. |
---|
21158 | # We used to match only the files named `Makefile.in', but |
---|
21159 | # some people rename them; so instead we look at the file content. |
---|
21160 | # Grep'ing the first line is not enough: some people post-process |
---|
21161 | # each Makefile.in and add a new line on top of each file to say so. |
---|
21162 | # So let's grep whole file. |
---|
21163 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
21164 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
21165 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21166 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
21167 | X"$mf" : 'X\(//\)$' \| \ |
---|
21168 | X"$mf" : 'X\(/\)' \| \ |
---|
21169 | . : '\(.\)' 2>/dev/null || |
---|
21170 | echo X"$mf" | |
---|
21171 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21172 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21173 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21174 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21175 | s/.*/./; q'` |
---|
21176 | else |
---|
21177 | continue |
---|
21178 | fi |
---|
21179 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
21180 | # from the Makefile without running `make'. |
---|
21181 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
21182 | test -z "$DEPDIR" && continue |
---|
21183 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
21184 | test -z "am__include" && continue |
---|
21185 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
21186 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
21187 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
21188 | # Find all dependency output files, they are included files with |
---|
21189 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
21190 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
21191 | # expansion. |
---|
21192 | for file in `sed -n " |
---|
21193 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
21194 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
21195 | # Make sure the directory exists. |
---|
21196 | test -f "$dirpart/$file" && continue |
---|
21197 | fdir=`(dirname "$file") 2>/dev/null || |
---|
21198 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21199 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
21200 | X"$file" : 'X\(//\)$' \| \ |
---|
21201 | X"$file" : 'X\(/\)' \| \ |
---|
21202 | . : '\(.\)' 2>/dev/null || |
---|
21203 | echo X"$file" | |
---|
21204 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21205 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21206 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21207 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21208 | s/.*/./; q'` |
---|
21209 | { if $as_mkdir_p; then |
---|
21210 | mkdir -p $dirpart/$fdir |
---|
21211 | else |
---|
21212 | as_dir=$dirpart/$fdir |
---|
21213 | as_dirs= |
---|
21214 | while test ! -d "$as_dir"; do |
---|
21215 | as_dirs="$as_dir $as_dirs" |
---|
21216 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
21217 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
21218 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
21219 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
21220 | X"$as_dir" : 'X\(/\)' \| \ |
---|
21221 | . : '\(.\)' 2>/dev/null || |
---|
21222 | echo X"$as_dir" | |
---|
21223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
21224 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
21225 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
21226 | /^X\(\/\).*/{ s//\1/; q; } |
---|
21227 | s/.*/./; q'` |
---|
21228 | done |
---|
21229 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
21230 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
21231 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
21232 | { (exit 1); exit 1; }; }; } |
---|
21233 | |
---|
21234 | # echo "creating $dirpart/$file" |
---|
21235 | echo '# dummy' > "$dirpart/$file" |
---|
21236 | done |
---|
21237 | done |
---|
21238 | ;; |
---|
21239 | esac |
---|
21240 | done |
---|
21241 | _ACEOF |
---|
21242 | |
---|
21243 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
21244 | |
---|
21245 | { (exit 0); exit 0; } |
---|
21246 | _ACEOF |
---|
21247 | chmod +x $CONFIG_STATUS |
---|
21248 | ac_clean_files=$ac_clean_files_save |
---|
21249 | |
---|
21250 | |
---|
21251 | # configure is writing to config.log, and then calls config.status. |
---|
21252 | # config.status does its own redirection, appending to config.log. |
---|
21253 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
21254 | # by configure, so config.status won't be able to write to it; its |
---|
21255 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
21256 | # effectively closing config.log, so it can be properly (re)opened and |
---|
21257 | # appended to by config.status. When coming back to configure, we |
---|
21258 | # need to make the FD available again. |
---|
21259 | if test "$no_create" != yes; then |
---|
21260 | ac_cs_success=: |
---|
21261 | ac_config_status_args= |
---|
21262 | test "$silent" = yes && |
---|
21263 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
21264 | exec 5>/dev/null |
---|
21265 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
21266 | exec 5>>config.log |
---|
21267 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
21268 | # would make configure fail if this is the last instruction. |
---|
21269 | $ac_cs_success || { (exit 1); exit 1; } |
---|
21270 | fi |
---|
21271 | |
---|